Tap88 / terminal-ide

Automatically exported from code.google.com/p/terminal-ide
0 stars 0 forks source link

demo_android fails to install/run on Android 4.2 #78

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow Help Tutorial 5 to build full Android app with ./builder.sh.
2. Attempt to install with ./install.sh.

What is the expected output? What do you see instead?
Expect to see running Android app on the device. Instead, get a Java stack 
trace with this error:

java.lang.SecurityException: Permission Denial: startActivity asks to run as 
user -2 but is calling from user 0; this requires 
android.permission.INTERACT_ACROSS_USERS_FULL

What version of the product are you using? On what operating system?
Terminal IDE v1.991 Android 4.2.1

Please provide any additional information below.
Attempt to add line to AndroidManifest.xml doesn't make any difference:

<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />

Original issue reported on code.google.com by p.klav...@gmail.com on 29 Jan 2013 at 10:25

GoogleCodeExporter commented 8 years ago
Worked for me when I edited the install.sh file and included the option --user 
0 in the am command.

am start --user 0 -a android.intent.action.VIEW -t 
application/vnd.android.package-archive -d 
file:///sdcard/demo_android_signed.apk

Original comment by jho...@gmail.com on 10 Mar 2013 at 9:29

GoogleCodeExporter commented 8 years ago
Cheers. Had same issue, added --user 0.
Thanks!
Alexander Mark Etter

Original comment by rhettna...@gmail.com on 8 Aug 2013 at 5:58

GoogleCodeExporter commented 8 years ago
I confirm it works too after adding --user 0 , using 4.3 in my N7
Thanks !

Original comment by enrique....@gmail.com on 26 Aug 2013 at 8:49