open Storage & USB in the catalog ↗
Services
| service | methods | what it does |
|---|---|---|
com.webos.service.pdm | 40 | Physical Device Manager: detects and manages attached USB and storage devices, listing attached devices, ejecting, formatting, and running… |
com.webos.service.attachedstoragemanager | 23 | Manages attached USB storage: lists devices and folder contents, copies, deletes, decompresses and formats, ejects devices, and extracts… |
com.palm.filecache | 16 | File-cache manager: defines cache object types and inserts, copies, resizes, expires and queries cached files, reporting cache status,… |
com.webos.service.filecache | 16 | File-cache service managing a global shared file cache: defines cache types and inserts, copies, resizes, expires and touches typed cache… |
com.webos.service.printing | 15 | Printing service: adds, removes and configures printers, sets the default printer and options, and manages print jobs (list, cancel,… |
com.webos.service.storageaccess | 13 | Storage-access service: lists storage providers and attached devices, reports device properties, and performs file operations (copy, move,… |
com.webos.service.storagestatistics | 8 | Storage statistics: reports per-app storage usage, lists large apps and files, clears app data and removes files. |
com.palm.storage | 3 | Mass-storage service: enters USB mass-storage (MSM) disk mode, queries its status, and erases all storage. |
com.webos.service.lowlevelstorage | 3 | Low-level key/value storage service exposing get/set data and shutdown. |
com.palm.backup | 1 | Legacy Palm/HP webOS backup service: starts a backup of device data. |
com.palm.downloadmanager | 1 | Legacy download/upload manager: queues and controls file downloads and uploads, tracks history and status, and exposes debug helpers. |
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… |
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.
List attached storage devices
params: deviceType
$ luna-send -n 1 -f luna://com.webos.service.attachedstoragemanager/listDevices '{}'Allows apps to modify the parameters of a cache type other than its name. You must specify the name of the cache type, and those cache type parameters that have to be modified. The cache type values are all as defined…
params: typeName, loWatermark, hiWatermark, size, cost, lifetime
$ luna-send -n 1 -f luna://com.webos.service.filecache/ChangeType '{}'Enables copying of an object from the file cache to a non-cached location. On successful completion, newPathName will be returned as it may be different than expected due to filename collisions. If there is a name…
params: pathName, destination, fileName
$ luna-send -n 1 -f luna://com.webos.service.filecache/CopyCacheObject '{}'Defines a new cache type. This is intended for use by the backup service. Optionally you may specify the default values for the size, cost, and lifetime. These defaults will be applied to all objects inserted into this…
params: typeName, loWatermark, hiWatermark, size, cost, lifetime, dirType
$ luna-send -n 1 -f luna://com.webos.service.filecache/DefineType '{}'Allows you to delete a previously defined cache type and frees up its space. All objects in the cache must be expired in order to delete a cache type. The app can call the ExpireCacheObject to force the objects to…
params: typeName
$ luna-send -n 1 -f luna://com.webos.service.filecache/DeleteType '{}'Returns cache type details. The DescribeType will return the currently assigned values for all cache type parameters. Note: Filesize as it resides on disk after accounting for the filesystem blocksize of 4096…
params: typeName
$ luna-send -n 1 -f luna://com.webos.service.filecache/DescribeType '{}'Objects will normally be automatically expired form the cache as space is needed. If you want to force an item to be removed or if you want to remove items prior to calling DeleteType , you can expire an object…
params: pathName
$ luna-send -n 1 -f luna://com.webos.service.filecache/ExpireCacheObject '{}'Allows you to query the original filename of a particular object in a cache type. In order to get the cache object file name the app must specify the path name of the object.
params: pathName
$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheObjectFilename '{}'Allows you to query a particular object size in a cache type. In order to get the cache object size, the app must specify the pathname of the object.
params: pathName
$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheObjectSize '{}'Give status of the cache as a whole. The GetCacheStatus will return: the number of cache types defined the total space used by the objects in all cache types the number of objects in all cache types the available space…
$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheStatus '{}'Returns an array of all defined cache types.
$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheTypes '{}'Allows you to query the status of a particular cache type to obtain: the total space used by the objects in the specified cache type the number of objects in the specified cache type
params: typeName
$ luna-send -n 1 -f luna://com.webos.service.filecache/GetCacheTypeStatus '{}'Returns the version of the File Cache API.
$ luna-send -n 1 -f luna://com.webos.service.filecache/GetVersion '{}'Inserts a new object of the specified type into the cache. The fileName parameter is required. It is stored with the object to ensure that the correct extension is provided, so that other module can choose a strategy…
params: typeName, fileName, size, cost, lifetime, subscribe
$ luna-send -n 1 -f luna://com.webos.service.filecache/InsertCacheObject '{}'By calling the ResizeCacheObject you can specify the size of the cached object after it is inserted into the cache. Call this method if the final size of the object, which is being inserted into the cache, is not known…
params: pathName, newSize
$ luna-send -n 1 -f luna://com.webos.service.filecache/ResizeCacheObject '{}'Enables you to subscribe an object in the cache and hold a subscription to the object for the duration of your usage. An object cannot be expired from the cache while at least one subscription is active.
params: pathName
$ luna-send -n 1 -f luna://com.webos.service.filecache/SubscribeCacheObject '{}'Allows you to mark an object as recently used. This decreases the chances of the object from getting expired from the cache when the space is being reclaimed.
params: pathName
$ luna-send -n 1 -f luna://com.webos.service.filecache/TouchCacheObject '{}'Unmounts all drives of the storage device for safe removal. Prerequisite: The storage device must be connected.
params: deviceNum
$ luna-send -n 1 -f luna://com.webos.service.pdm/eject '{}'Formats the connected drive.
params: driveName, fsType, volumeLabel
$ luna-send -n 1 -f luna://com.webos.service.pdm/format '{}'Checks the file system by performing fsck (File System Check) of the corresponding connected drive. Note : On connecting a USB device with a large number of files, the PDM service prompts for “Check & Repair” and “Open…
params: driveName
$ luna-send -n 1 -f luna://com.webos.service.pdm/fsck '{}'Gets the status information of connected device(s).
params: subscribe
$ luna-send -n 1 -f luna://com.webos.service.pdm/getAttachedDeviceStatus '{}'Gets the status information of connected non-storage device(s).
params: subscribe, category, groupSubDevices
$ luna-send -n 1 -f luna://com.webos.service.pdm/getAttachedNonStorageDeviceList '{}'Gets status information of connected storage device(s).
params: subscribe
$ luna-send -n 1 -f luna://com.webos.service.pdm/getAttachedStorageDeviceList '{}'Provides debug logs with detailed information of all connected storage and non-storage device list.
$ luna-send -n 1 -f luna://com.webos.service.pdm/getExample '{}'Gets the space information of the connected drive. Note : The drive must be mounted.
params: driveName, directCheck
$ luna-send -n 1 -f luna://com.webos.service.pdm/getSpaceInfo '{}'Checks the file system attribute of the drive and returns whether it is writable.
params: driveName
$ luna-send -n 1 -f luna://com.webos.service.pdm/isWritableDrive '{}'Mounts the device without performing Fsck. Alternatively, it can be configured to perform Fsck and then mount the device.
params: mountName, needFsck
$ luna-send -n 1 -f luna://com.webos.service.pdm/mountandFullFsck '{}'Sets the volume label of the drive. It is supported only when file system type is FAT.
params: driveName, volumeLabel
$ luna-send -n 1 -f luna://com.webos.service.pdm/setVolumeLabel '{}'Unmounts all drives.
$ luna-send -n 1 -f luna://com.webos.service.pdm/umountAllDrive '{}'Copies a file or directory from the source location to the destination.
params: srcStorageType, srcDriveId, srcPath, destStorageType, destDriveId, destPath, overwrite, subscribe
$ luna-send -n 1 -f luna://com.webos.service.storageaccess/device/copy '{}'luna-send yourself. See dangerous.md.