How to run android application using adb shell?

I am trying to run an android application using adb shell. I'm not doing well

Attached file AndoridManifest.XML:

<?xml version="1.0" encoding="UTF-8"?> <manifest android:versionCode="4" android:versionName="0.0.5.0" android:installLocation="auto" package="com.supascale.supascale" xmlns:android="http://schemas.android.com/apk/res/android"> <application android:label="@string/app_name" android:icon="@drawable/i_c_o_n_e________1"> <activity android:theme="@android:style/Theme.Translucent" android:label="@string/app_name" android:name=".wdgen.GWDPSupaScale_Android$WDLanceur"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> ... 

I tried the following call:

 adb shell am start -a android.intent.action.MAIN -n com.supascale.supascale/com.supascale.supascale.wdgen.GWDPSupaScale_Android 

This does not work ... I tried all kinds of iterations after ... /

I get Error Type 3, intent class does not exist!

Any help would be greatly appreciated. Regards Adrian

Some of my error messages are: enter image description here

+4
source share
1 answer

You should avoid $ - \$ - otherwise it will be changed to nothing. $WDLanceor interpreted as a shell variable by the android shell, and since the variable is not set, it becomes an empty string.

Quoting arguments ( adb ... -n "... GWDPSupaScale_Android$WDL‌​a‌​nceur" ) will only indicate on the Windows side, when it enters the shell on the Android side, it will be without quotes. The backslash will survive on the Windows command line and will be converted to real $ on the android shell.

+2
source

Source: https://habr.com/ru/post/1387612/


All Articles