Well i'm back at it again with the Palm Pre just like anything else its a love/hate relationship.Anyway enough rambling from me, the following is a tutorial on how to use the Luna Send command from the command line of the Palm Pre to do some really cool stuff check it out and enjoy :).
1. Using luna-send to refresh the Launcher panel.
command: luna-send -n 1 palm://com.palm.applicationManager/rescan {}
2. Get a list of all installed apps:
command: luna-send -n 1 "palm://com.palm.applicationManager/listLaunchPoints" "{}"
3. Using luna-send to launch an application:
command: luna-send -n 1 palm://com.palm.applicationManager/launch {\"id\":\"com.palm.app.browser\"}
luna-send -n 1 palm://com.palm.applicationManager/launch {\"id\":\"com.palm.app.browser\",\"params\":{\"scene\":\"page\",\"target\":\"http://www.google.com\"}}
4. Using luna-send to download a file to /media/internal/downloads/:
command: luna-send -n 1 palm://com.palm.downloadmanager/download {\"target\":\"http://www.google.com/index.html\"}
5. Using luna-send to control the palm progress animation (The pulsing "palm" logo seen at boot):
command: luna-send -n 1 palm://com.palm.systemmanager/runProgressAnimation {\"state\":\"start\"}
luna-send -n 1 palm://com.palm.systemmanager/runProgressAnimation {\"state\":\"stop\"}
6. Using Luna with GPS from the command line
command: luna-send -n 1 palm://com.palm.location/setUseGps {\"useGps\":\"true\"}
luna-send -n 1 palm://com.palm.location/setAutoLocate {\"autoLocate\":\"true\"}
luna-send -n 1 palm://com.palm.location/getCurrentPosition {}
7. List all of the processes which are running
command: sudo luna-send -n 1 palm://com.palm.applicationManager/running {}
** Message: serviceResponse Handling: 2, { "running": [ { "id": "com.palm.launcher", "processid": "1006" }, { "id": "com.palm.systemui", "processid": "1007" }, { "id": "com.palm.app.email", "processid": "1000" }, { "id": "com.palm.app.phone", "processid": "1001" }, { "id": "com.palm.app.contacts", "processid": "1002" }, { "id": "com.palm.app.camera", "processid": "1003" }, { "id": "com.palm.app.messaging", "processid": "1004" }, { "id": "com.palm.app.calendar", "processid": "1005" }, { "id": "com.palm.app.phone", "processid": "1008" }, { "id": "com.palm.app.camera", "processid": "1014" } ] }
8. Close a process
command: luna-send -n 1 "palm://com.palm.applicationManager/close" "{\"processId\":\"1058\"}"
9. Activate the vibrator:
command:luna-send -n 1 palm://com.palm.vibrate/vibrate {\"period\":1,\"duration\":1000\}
10. Set system volume - "volume" range is 0-100
command: luna-send -n 1 palm://com.palm.audio/system/setVolume '{"volume":80}'
11. Set ringtone volume - "volume" range is 0-100
command: luna-send -n 1 palm://com.palm.audio/ringtone/setVolume '{"volume":100}'
12. Dail a number - this actually calls the number, not just setup
command: luna-send -n 1 palm://com.palm.telephony/dial '{"number":"8001234567"}'
13. Hang up a phone call :-) There are ways to end specific types of calls but I think this is good enough for now. Let me know if you want the other methods.
command:luna-send -n 1 palm://com.palm.telephony/hangupAll {}
14. Send a text message - only need to change phone "value" and "messageText"
command: luna-send -n 1 palm://com.palm.messaging/sendMessageFromCompose '{"recipientJSONArray": [{"lastName": "", "pictureLoc": "", "contactCount": 1, "displayText": "", "firstName": "", "pictureLocBig": "", "imAvailability": 6, "pictureLocSquare": "", "contactDisplay": "", "Person_id": "", "personId": "", "type": "phone", "value": "8165551234", "alreadyValidated": true, "prefix": "to$A", "identifier": ""}], "messageText": "Content of message here"}'
15. set phone to no roam
command: luna-send -n 1 palm://com.palm.telephony//roamModeSet '{"mode":"homeonly"}'
16. set the phone to auto roam
command: luna-send -n 1 palm://com.palm.telephony//roamModeSet '{"mode":"any"}'
17. set a phone to roam only
command: luna-send -n 1 palm://com.palm.telephony//roamModeSet '{"mode":"roamonly"}'
18. Enable Airplane mode
command: luna-send -n 1 palm://com.palm.systemservice/setPreferences '{"airplaneMode":true}'
19. Disable AirPlane Mode
command: luna-send -n 1 palm://com.palm.systemservice/setPreferences '{"airplaneMode":false}'
Well thats all i have for Now, I Hope this was some useful information. Now off to bed until breakfast yeaaaaaaaaah
Random Adventures and thoughts from the mind of a Security Researcher. Hacking is not a Job its a LifeStyle
Subscribe to:
Post Comments (Atom)
Cracking Kerberos Service Tickets (TGS) Using Kerberoasting
As of late I've been spending a lot of time researching and learning different techniques when it comes to attacking Active Directory En...
-
As of late I've been spending a lot of time researching and learning different techniques when it comes to attacking Active Directory En...
-
Poison has been retired i believe for at least 2 weeks now. This box was fun and special to me at the same time.This is the first box that i...
No a lot of worrying regarding your fridge's cleanliness and maintenance because it is currently sensible enough to require care of itself. If you're ignoring its shut down for the past few days, it'll provide you with a warning on constant with a wise indication, for more information visit here Home Automation Jupiter Island.
ReplyDelete