Tuesday, 15 March 2011

run-as Package 'a.b.c' is unknown - Galaxy S4 Jellybean or Android 4.3 -


I can not run run-of (or NDK-GDB) for Jellybean 4.2.2 running Galaxy S4. $ adb shell shell @ android: / $ run-ABC ls run-es: package 'aBC' is unknown

There are many answers pre- For this issue for ICS devices, but they have been set up in the ICS.

Update - August 2013: After appearing on the Galaxy S4 with Jellybean 4.2.2 initially, the run-issue is now on all 4.3 devices. See it.

See approved Android issues.

Update - November 2013: Google posted fix fixes according to Android 4.4.

Success has been added by adding this activity:

  Private Zero Start Trygadbers () {{try new processbilder (). Order (getFilesDir () GetParent () + "/ lib / gdbserver", "Tcp: 5039", "--attach", "" + android.os.Process.myPid ()) .REDirectErrorStream (true) .start ( ); } Hold (IOException e) {log. A (Tag, "IOException failed to launch gdbserver"); }}   

Then I wrapped startGdbServer in the Android service and updated the ndk-gdb script to launch the server instead of run-as command.

Extra Extra Here:

  & lt; Service Android: Enabled = "True" Android: name = "com.apportable.activity.GdbServerService" Android: label = "@ string / app_name" Android: icon = "@drawable / icon" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "apportable.FoundationTests.GdbServerService" /> & Lt; / Intent-Filter & gt; & Lt; / Services & gt; Here are the relevant NDC-GDB changes (in Python):  
  Remote_GoodSaver = '/ data / data /' + env ['APPLICATION_IDENTIFIER'] + "/user" option in the "/ lib / gdbserver" print "pin" + pid #Android 4.2 requires if the "--user" result: user_option = "--user 0" Other: user_option = "first" It can not be the result in the versions = env.Execute ([env ['ADB'], 'shell', 'am']) "adb.AsyncShell (env, 'am startService' + user_option + '-a' + env ['APPLICATION_IDENTIFIER'] '.GdbServerService --es gdbserver_name' + remote_gdbserver + '--ei gdbserver_port' + str (env ['ANDROID_REMOTE_DEBUG_PORT'])) # Hack: Magic No. Ensure gdb server is actually running up and running time.sleep (2) # 1 is usually enough, but not always, after reboot or heavy system load adb.forward (env, env ['ANDROID_LOCAL_DEBUG_PORT'], env ['ANDROID_REMOTE_DEBUG_PORT as well']) adb.Pull (env, process_path, '/ system / bin / app_process') setup_path = '' '+ setup_path +' '' if env ['CGDB'] is none: cmd = [Env ['CGDB'], '-D', NV ['GDB'], '-', '-x', setup_path] and: CMD = [NV ['GDB'], '-x', setup_path ] Env.RunCommand (cmd)   

from full .apportable / SDK / site_scons / Android / Apportable SDK Downloadable sources available in sdk.py

No comments:

Post a Comment