open Database (db8) in the catalog ↗
Services
| service | methods | what it does |
|---|---|---|
com.webos.service.db | 52 | DB8 database service: lets apps store persistent JSON data as typed 'kinds' with indexed queries (find/get/put/del/batch), compaction and… |
com.palm.db | 38 | Legacy alias for the db8 JSON database (com.webos.service.db): stores and queries objects with find/get/del/batch, manages kinds, and… |
com.palm.tempdb | 38 | Temporary (volatile) db8 database instance: same JSON object-store API as the main database (find/get/del/batch, kinds, compaction,… |
com.webos.epgdb | 35 | DB8 database instance for EPG (electronic program guide) data: stores typed records with find/get/del/batch queries, plus EPG backup,… |
com.webos.mediadb | 35 | Media metadata database (a db8-style store, including EPG data): find, get, put, delete and batch records, compact and dump the store, and… |
com.webos.accountdb | 28 | DB8 database instance for user-account data: stores typed records (kinds) with find/get/put/del/batch queries, plus compaction,… |
com.webos.service.irdbmanager | 24 | IR database manager: manages the infrared code database for controlling external devices, listing brands/manufacturers and key lists,… |
com.webos.service.utp.ssu | 3 | System software update over-the-air helper (utp stack): starts/cancels OTA updates, reports progress, version, and status, and manages… |
com.webos.service.micomservice | 2 | MICOM microcontroller service: reports power on/off history, OLED self-diagnosis, IR custom codes and hardware diagnostics, and controls… |
com.webos.service.personalsoundwizard | 2 | Personal sound wizard service that gets and sets sound-bar status and personalization settings. |
com.webos.service.utp.externaldevice | 2 | UTP external-input/device service: reports current and last input, external-input and signal state, switches inputs, and handles CEC IDs… |
com.webos.service.wowplay | 2 | WOWCAST wireless-audio/soundbar service: pairs and connects soundbars over BLE and Wi-Fi P2P, reports soundbar status, calibration and… |
com.webos.app.igallery.preview | 1 | Appears to back the image-gallery preview app: creates gallery database and account folders, lists view themes, and reports status via the… |
com.webos.service.admanager | 1 | Advertising manager: issues banner/asset ad requests, manages the advertising ID, tracking contexts and cookies, EULA/consent (CMP) checks… |
com.webos.service.asc | 1 | ASC service handling BLE advertising and device registration (including Wake-on-BLE): start/stop advertising, read/register BLE devices,… |
com.webos.service.avmutemanager | 1 | Audio/video mute manager: coordinates AV mute across clients, tracking mute status, owners, timing, and registered services, and setting… |
com.webos.service.commercial.scapadapter | 1 | Commercial/pro-TV SCAP adapter (set-top/conditional-access integration) with a large configuration surface: OSD language and lock, picture… |
com.webos.service.factorymanager | 1 | Factory/production manager: runs factory test commands, performs calibration (ADC, Vcom, white balance), controls LED bar and test… |
com.webos.service.ftms | 1 | Fitness-machine (BLE FTMS) service: connects to fitness equipment, reads and saves workout data, and manages a blocked-device scan filter. |
com.webos.service.ics | 1 | IR-blaster / universal-control service: manages a database of IR and IP-controlled devices, with brand/model/key lists, device add/delete… |
com.webos.service.ledbarcontroller | 1 | Controls the LED backlight bar (single method to set the A+ LED-bar control). |
com.webos.service.pbsw | 1 | Broadcast channel-map service: builds and edits the channel list and favorite groups, queries channel info and EPG events, and reports… |
com.webos.service.sm | 1 | Security manager: handles app security permissions, USB-access authentication, device IDs, licensing, and cryptographic operations (file… |
com.webos.service.tts | 1 | Text-to-speech and audio-guidance service: speaks text, manages voice/language packs, toggles audio guidance, and controls playback… |
com.webos.service.update | 1 | Software/firmware update service: checks for, downloads and applies system updates, reports progress and current software/hardware… |
Documented methods to start with
Public and SSAP methods from LG's documentation, none flagged dangerous. Each opens in the catalog with its full parameter table. Run them on a rooted TV or in Developer Mode.
Executes multiple database operations in one request.
params: operations
$ luna-send -n 1 -f luna://com.palm.db/batch '{}'Deletes JSON data objects.
params: ids, query, purge
$ luna-send -n 1 -f luna://com.palm.db/del '{}'Deletes a kind and ALL objects of that kind.
params: id
$ luna-send -n 1 -f luna://com.palm.db/delKind '{}'Returns objects matching the query.
params: query, count, watch
$ luna-send -n 1 -f luna://com.palm.db/find '{}'Retrieves objects by IDs (fastest retrieval).
params: ids
$ luna-send -n 1 -f luna://com.palm.db/get '{}'Returns a list of active attached media, and shards.
$ luna-send -n 1 -f luna://com.palm.db/listActiveMedia '{}'Updates properties of existing objects.
params: objects, query, props
$ luna-send -n 1 -f luna://com.palm.db/merge '{}'The mergePut method updates the properties of existing objects. If an object doesn't exist, a new one will be created in the database. The object to be updated can be specified in one of the following ways: A query An…
params: objects, query, props
$ luna-send -n 1 -f luna://com.palm.db/mergePut '{}'The purgeStatus method returns the status of the last run purge command. If the last run purge command was successful, the objects were permanently deleted, and the purgeStatus method will return the updated database…
$ luna-send -n 1 -f luna://com.palm.db/purgeStatus '{}'Stores JSON objects of a kind.
params: objects
$ luna-send -n 1 -f luna://com.palm.db/put '{}'Registers a kind with the database.
params: id, owner, schema, sync, extends, indexes, revsets, private
$ luna-send -n 1 -f luna://com.palm.db/putKind '{}'Grants other apps/services access to the app DB8 data.
params: permissions
$ luna-send -n 1 -f luna://com.palm.db/putPermissions '{}'Reserves a block of object IDs.
params: count
$ luna-send -n 1 -f luna://com.palm.db/reserveIds '{}'Like find but supports the ? full-text operator.
params: query, watch
$ luna-send -n 1 -f luna://com.palm.db/search '{}'Marks an external media as transient for the specified DB8 shard Id. This means that all data, relative to the shard, are not required by any application and will be removed by garbage collector. In other words,…
params: shardId, transient
$ luna-send -n 1 -f luna://com.palm.db/setShardMode '{}'Retrieves the state of a shard, like shard activity, associated media devices, mount point.
params: shardId
$ luna-send -n 1 -f luna://com.palm.db/shardInfo '{}'Watches for updates that would change a query result.
params: query
$ luna-send -n 1 -f luna://com.palm.db/watch '{}'The batch method enables apps to execute multiple database operations in one service request. It allows only the following database operations: put get del find (without a watch) merge Atomicity is NOT guaranteed…
params: operations
$ luna-send -n 1 -f luna://com.palm.tempdb/batch '{}'The del method deletes JSON data objects from the database. Apps can specify the objects to be deleted by providing: a set of IDs to be deleted a DB8 query
params: ids, query, purge
$ luna-send -n 1 -f luna://com.palm.tempdb/del '{}'The delKind method deletes a Kind from the database. Deleting a Kind deletes ALL data objects of that Kind.
params: id
$ luna-send -n 1 -f luna://com.palm.tempdb/delKind '{}'The find method returns a set of objects that match the query specified in the query parameter. The app can specify the number of results to return. However, if the app does not want to specify a limit, it can set the…
params: query, count, watch, subscribe
$ luna-send -n 1 -f luna://com.palm.tempdb/find '{}'The get method retrieves JSON data objects by ids. This is the fastest way to retrieve data.
params: ids
$ luna-send -n 1 -f luna://com.palm.tempdb/get '{}'Returns a list of active attached media, and shards.
$ luna-send -n 1 -f luna://com.palm.tempdb/listActiveMedia '{}'The merge method updates the properties of existing objects. The objects can be specified in one of the following ways: A query An array of IDs
params: objects, query, props, ignoreMissing
$ luna-send -n 1 -f luna://com.palm.tempdb/merge '{}'The mergePut method updates the properties of existing objects. If an object doesn't exist, a new one will be created in the database. The object to be updated can be specified in one of the following ways: A query An…
params: objects, query, props
$ luna-send -n 1 -f luna://com.palm.tempdb/mergePut '{}'The purgeStatus method returns the status of the last run purge command. If the last run purge command was successful, the objects were permanently deleted, and the purgeStatus method will return the updated database…
$ luna-send -n 1 -f luna://com.palm.tempdb/purgeStatus '{}'The put method stores JSON data objects of a particular Kind into the database. The put method will: Assign an id field to each object, if it was not set. Return the id and rev for each stored object.
params: objects, shardId
$ luna-send -n 1 -f luna://com.palm.tempdb/put '{}'The putKind method registers a kind with the database. Kinds define the owner, and the indexes for a JSON data object. Indexes can be composed of single or multiple properties. When you create your index, be aware that…
params: id, owner, schema, sync, extends, indexes, revsets, private
$ luna-send -n 1 -f luna://com.palm.tempdb/putKind '{}'The putPermissions method enables other apps or services to access an app's stored DB8 data. The app can give permissions to access data objects of a specific Kind.
params: type, object, caller, operations, create, read, update, delete
$ luna-send -n 1 -f luna://com.palm.tempdb/putPermissions '{}'When a client service creates objects that have references between each other, the service can ask the database through the reserveIds method to regenerate ids of objects. The client service can use such ids as…
params: count
$ luna-send -n 1 -f luna://com.palm.tempdb/reserveIds '{}'luna-send yourself. See dangerous.md.