/usr/bin/lunaprop
Jump to navigation
Jump to search
lunaprop:
Appears to be a key:value program for preferences. Preferences are stored in JSON format.
Careful when using lunaprop though. If it cannot find the 'com.palm.*' file in /var/preferences it will create a directory and file. Misuse could lead to potential bloat in the FS.
#/usr/bin/lunaprop
root@castle:/usr/bin# lunaprop -help
usage: lunaprop \
[-n appID] # operate on appID props (otherwise on sys props) \
[-m] # shell mode \
[[-k] key_name # print (or delete, with -k) entry_for_key \
|-s key_name value # set value for key_name \
|-a ] # dump all key/value pairs \
eg: lunaprop -n com.palm.browser
eg: lunaprop -n com.palm.browser currentURL
eg: lunaprop com.palm.properties.installer
eg: lunaprop com.palm.properties.installer -a
root@castle:/usr/bin# lunaprop -a
[
{ "com.palm.properties.GMFLAG": "1" },
{ "com.palm.properties.DMSETS": "{\"sets\":\"base\",\"a\"}" },
{ "com.palm.properties.PN": "REMOVED" },
{ "com.palm.properties.PRODoID": "P100EWW" },
{ "com.palm.properties.KEYoBRD": "z" },
{ "com.palm.properties.PalmSN": "REMOVED" },
{ "com.palm.properties.HWoRev": "A" },
{ "com.palm.properties.BToADDR": "REMOVED" },
{ "com.palm.properties.WIFIoADDR": "REMOVED" },
{ "com.palm.properties.ACCELCAL":
{
"faceup_0": { "x": 183, "y": 109, "z": -9902 },
"faceup_180": { "x": 61, "y": 85, "z": -9902 },
"facedown_0": { "x": 0, "y": 0, "z": 0 },
"facedown_180": { "x": 0, "y": 0, "z": 0 },
"rightup_0": { "x": 0, "y": 0, "z": 0 },
"rightup_180": { "x": 0, "y": 0, "z": 0 },
"leftup_0": { "x": 0, "y": 0, "z": 0 },
"leftup_180": { "x": 0, "y": 0, "z": 0 },
"topup_0": { "x": 0, "y": 0, "z": 0 },
"topup_180": { "x": 0, "y": 0, "z": 0 },
"bottomup_0": { "x": 0, "y": 0, "z": 0 },
"bottomup_180": { "x": 0, "y": 0, "z": 0 }
}
},
{ "com.palm.properties.DMMODEL": "P100EWW" },
{ "com.palm.properties.DMCARRIER": "Sprint" },
{ "com.palm.properties.DMCLoAUTHNAME": "REMOVED" },
{ "com.palm.properties.DMCLoAUTHPW": "REMOVED" },
{ "com.palm.properties.DMCLoNONCE": "REMOVED" },
{ "com.palm.properties.DMSVRoAUTHPW": "REMOVED" },
{ "com.palm.properties.DMSVRoNONCE": "REMOVED" },
{ "com.palm.properties.BATToCH": "REMOVED" },
{ "com.palm.properties.BATToRSP": "REMOVED" },
{ "com.palm.properties.ModemSN": "REMOVED" },
{ "com.palm.properties.ProdSN": "REMOVED" },
{ "com.palm.properties.installer": "trenchcoat" },
{ "com.palm.properties.nduid": "REMOVED" },
{ "com.palm.properties.version": "Palm webOS 1.0.2" },
{ "com.palm.properties.buildName": "Nova-Sprint-Castle" },
{ "com.palm.properties.buildNumber": "118" },
{ "com.palm.properties.storageCapacity": "8220835840" },
{ "com.palm.properties.storageFreeSpace": "6806011904" }
]
root@castle:/var/preferences# lunaprop -n com.palm.rdxd -a
[ { "MEID": [ "REMOVED" ] } ]