I just recently rooted my phone so I could install SL4A. I want to execute some commands via a Python script, specifically turn Google voice off for all calls, make the call and then turn it back on. I'm just guessing that I need access to whatever the binary is, but there doesn't seem to be a /bin/ folder, so where are my apps installed to? (p.s. Searching from my mobile browser doesn't work on SE so if this a duplicate, please link me and I'll go ahead and delete the question.)
Tell me more
×
Android Enthusiasts Stack Exchange is a question and answer site for
enthusiasts and power users of the Android operating system. It's 100% free, no registration required.
|
|
Android apps aren't binaries. They're .apk's, similar to Java .jar files, and .dex or .odex files when in bytecode form. They're run in the Dalvik virtual machine, again very similar to a Java VM. You can launch an app from a shell as follows:
For example, Angry Birds:
The name of the activity is found in the AndroidManifest.xml file inside the .apk under //manifest/application/activity/@name. For Google Voice there are quite a few activities, and you may need to use other intents. I don't have SL4A. You can also disable apps temporarily with this:
And re-enable:
|
|||||||
|