Android, IT

Various native Android error messages

I’ve decided to keep a blog post containing various error messages encountered during Android debugging / playing …

These errors were encountered via deep trips in Android source both native and java source code, while trying to get zygote to execute a process as root (and hopefully this way, be able to somehow invoke the elusive forceStopPackage method which Google decided to ditch from Android 2.2; but is still there hidden behind proxies since it is very useful).


Connecting to /dev/socket/zygote (unix domain socket) from a native .C application and sending the following commands:

--setuid=0 --setgid=0 --enable-debugger --peer-wait --runtime-init android.app.ActivityThread

produces the log:

W/ActivityManager( 1559): No pending application record for pid 3544 (IApplicati
onThread android.app.ApplicationThreadProxy@405d6cc0); dropping process
I/Process ( 1559): Sending signal. PID: 3544 SIG: 9

It probably means that I did not provide an application record to be executed by the process zygote created. I need to research how to do that …


After building an ARM toolchain using build root, I was trying to compile some library using the config files from the Android toolchain. I had to xscale as family, but instead I selected generic-arm:

[9:20:29 PM] c1: error: unrecognized command line option "-mandroid"
cc1: error: unrecognized command line option "-mthumb-interwork"
cc1: error: unrecognized command line option "-mthumb"
cc1: error: unrecognized command line option "-mlong-calls"
conftest.c:1: error: bad value (armv5te) for -march= switch
conftest.c:1: error: bad value (xscale) for -mtune= switch
configure: failed program was:

#line 958 "configure"
#include "confdefs.h"

main(){return(0);}

Leave a Reply