/system/bin/run-ascommand lets you execute a shell or a package as the owner of the package. But you've to be root or use ADB to use it. And the package has to be debuggable and user owned (i.e. system apps cannot be impersonated like this).
ldd. The cross-compiler does not have an
lddscript, but we can work around that by executing this instead:
arm-none-linux-gnueabi-readelf -a my_cross-compiled_executable | fgrep "Shared library:"
/System/Library/CoreServices/pbsfrom the commandline) helped. It didn't even need root privileges or a reboot.
top(with shift+H to show threads) to get the most CPU intensive threads, use
jstackto get a thread dump from the JVM and look for the "nid=<threadid in hex>" value of your rogue thread in the dump.
fileto check) into a MIME format that eg. Thunderbird can open (if you rename the *.mime file into *.eml).
$HOME/.pam_environment. Eg. if you set some
LC_*variable in your shell config (eg.
$HOME/.profile), chances are that the contents of your
.pam_environmentfile will override it for most GUI apps.