{"action":"created","issue":{"url":"https://api.github.com/repos/jackpal/Android-Terminal-Emulator/issues/390","labels_url":"https://api.github.com/repos/jackpal/Android-Terminal-Emulator/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/jackpal/Android-Terminal-Emulator/issues/390/comments","events_url":"https://api.github.com/repos/jackpal/Android-Terminal-Emulator/issues/390/events","html_url":"https://github.com/jackpal/Android-Terminal-Emulator/issues/390","id":59414173,"number":390,"title":"App crashes when trying to launch terminal (Permission denial when permission declared)","user":{"login":"zacthespack","id":1653539,"avatar_url":"https://avatars.githubusercontent.com/u/1653539?v=3","gravatar_id":"","url":"https://api.github.com/users/zacthespack","html_url":"https://github.com/zacthespack","followers_url":"https://api.github.com/users/zacthespack/followers","following_url":"https://api.github.com/users/zacthespack/following{/other_user}","gists_url":"https://api.github.com/users/zacthespack/gists{/gist_id}","starred_url":"https://api.github.com/users/zacthespack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacthespack/subscriptions","organizations_url":"https://api.github.com/users/zacthespack/orgs","repos_url":"https://api.github.com/users/zacthespack/repos","events_url":"https://api.github.com/users/zacthespack/events{/privacy}","received_events_url":"https://api.github.com/users/zacthespack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-01T19:51:41Z","updated_at":"2015-03-02T11:10:53Z","closed_at":null,"body":"I am the creator of the LinuxonAndroid app, and finally got around to making the changes suggested in https://github.com/jackpal/Android-Terminal-Emulator/issues/374 to get my app working again.\r\n\r\nSo I have changed how we launch the intent from:\r\n\r\n    Intent intent = new Intent(Intent.ACTION_MAIN);\r\n    intent.setComponent(new ComponentName(\"jackpal.androidterm\",\"jackpal.androidterm.RemoteInterface\"));\r\n    intent.setAction(\"jackpal.androidterm.RUN_SCRIPT\");\r\n    intent.putExtra(\"jackpal.androidterm.iInitialCommand\", cmdString);\r\n    startActivity(intent);\r\n\r\nto:\r\n    Intent intent = new Intent(Intent.ACTION_MAIN);\r\n    intent.setAction(\"jackpal.androidterm.RUN_SCRIPT\");\r\n    intent.putExtra(\"jackpal.androidterm.iInitialCommand\", cmdString);\r\n    startActivity(intent);\r\n\r\nHowever I now get:\r\n\r\n>java.lang.RuntimeException: Unable to start activity >ComponentInfo{com.zpwebsites.linuxonandroid/com.zpwebsites.linuxonandroid.Widget_Activity}: >java.lang.SecurityException: Permission Denial: starting Intent { act=jackpal.androidterm.RUN_SCRIPT cmp=jackpal.androidterm/.RunScript (has extras) } from ProcessRecord{440c1080 5420:com.zpwebsites.linuxonandroid/u0a10147} (pid=5420, uid=10147) requires jackpal.androidterm.permission.RUN_SCRIPT\r\nat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295)\r\nat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)\r\nat android.app.ActivityThread.access$700(ActivityThread.java:159)\r\nat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)\r\nat android.os.Handler.dispatchMessage(Handler.java:99)\r\nat android.os.Looper.loop(Looper.java:176)\r\nat android.app.ActivityThread.main(ActivityThread.java:5419)\r\nat java.lang.reflect.Method.invokeNative(Native Method)\r\nat java.lang.reflect.Method.invoke(Method.java:525)\r\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)\r\nat de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)\r\nat dalvik.system.NativeStart.main(Native Method)\r\nCaused by: java.lang.SecurityException: Permission Denial: starting Intent { act=jackpal.androidterm.RUN_SCRIPT cmp=jackpal.androidterm/.RunScript (has extras) } from ProcessRecord{440c1080 5420:com.zpwebsites.linuxonandroid/u0a10147} (pid=5420, uid=10147) requires jackpal.androidterm.permission.RUN_SCRIPT\r\nat android.os.Parcel.readException(Parcel.java:1431)\r\nat android.os.Parcel.readException(Parcel.java:1385)\r\nat android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2242)\r\nat android.app.Instrumentation.execStartActivity(Instrumentation.java:1436)\r\nat android.app.Activity.startActivityForResult(Activity.java:3464)\r\nat android.app.Activity.startActivityForResult(Activity.java:3425)\r\nat android.app.Activity.startActivity(Activity.java:3661)\r\nat android.app.Activity.startActivity(Activity.java:3629)\r\nat com.zpwebsites.linuxonandroid.Widget_Activity.startLinux(Widget_Activity.java:154)\r\nat com.zpwebsites.linuxonandroid.Widget_Activity.onCreate(Widget_Activity.java:103)\r\nat android.app.Activity.performCreate(Activity.java:5372)\r\nat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1104)\r\nat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2257)\r\n... 12 more\r\n\r\nMy manifest:\r\n\r\n    <manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    package=\"com.zpwebsites.linuxonandroid\"\r\n    android:versionCode=\"51\"\r\n    android:versionName=\"2.8.1\" >\r\n\r\n    <uses-sdk\r\n        android:minSdkVersion=\"8\"\r\n        android:targetSdkVersion=\"19\" />\r\n    <uses-permission android:name=\"android.permission.INTERNET\" />\r\n\t<uses-permission android:name=\"jackpal.androidterm.permission.RUN_SCRIPT\"/>\r\n    <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>\r\n    <uses-permission android:name=\"android.permission.ACCESS_SUPERUSER\"/>"},"comment":{"url":"https://api.github.com/repos/jackpal/Android-Terminal-Emulator/issues/comments/76694433","html_url":"https://github.com/jackpal/Android-Terminal-Emulator/issues/390#issuecomment-76694433","issue_url":"https://api.github.com/repos/jackpal/Android-Terminal-Emulator/issues/390","id":76694433,"user":{"login":"FrankWestlake","id":639979,"avatar_url":"https://avatars.githubusercontent.com/u/639979?v=3","gravatar_id":"","url":"https://api.github.com/users/FrankWestlake","html_url":"https://github.com/FrankWestlake","followers_url":"https://api.github.com/users/FrankWestlake/followers","following_url":"https://api.github.com/users/FrankWestlake/following{/other_user}","gists_url":"https://api.github.com/users/FrankWestlake/gists{/gist_id}","starred_url":"https://api.github.com/users/FrankWestlake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrankWestlake/subscriptions","organizations_url":"https://api.github.com/users/FrankWestlake/orgs","repos_url":"https://api.github.com/users/FrankWestlake/repos","events_url":"https://api.github.com/users/FrankWestlake/events{/privacy}","received_events_url":"https://api.github.com/users/FrankWestlake/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T11:10:53Z","updated_at":"2015-03-02T11:10:53Z","body":">java.lang.SecurityException: Permission Denial: starting Intent ... requires jackpal.androidterm.permission.RUN_SCRIPT\n\nConfirm that you are testing this with  the"}}