• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Terminal 'am start' problem

Hello Phandroid community!

I am having trouble getting the Poot application to run from the Android terminal.

From the Terminal Emulator I am trying to start Poot like so:
Code:
am start -a android.intent.action.MAIN -n org.giantpune.Poot.Poot/android.intent.action.MAIN
But it results in this error message:
Code:
Error type 3 Error: Activity class {org.giantpune.Poot.Poot/android.intent.action.MAIN} does not exist.
I inspected the AndroidManifest.xml and looked for useful intent commands, but had no luck and even converted the .apk with dex2jar.
As I don't have any experience with Java, the sole purpose of decompiling it in the first place was an interesting intent entry on line 136 in the QtActivity.java file.

It is either located in org/kde/necessitas/origo/ as QtActivity.class, when converted with dex2jar.
Or in Poot-debug(W100)/smali/org/kde/necessitas/origo/ as QtActivity.smali, when decompiled with apktool.

What I am trying to achieve is not only starting the app from the console, but to make it run the action of the "Press here to poot" button.
The device is rooted, should that matter at all.

According to this post on Android Enthusiasts, I need to invoke the application with a class name.
But as you can see in the AndroidManifest.xml, there is no class name.

So, how can I achieve this and do I even need intent commands or not?

I hope you can help.
 
Back
Top Bottom