哦,我试了一下,发现执行/system/bin/am和/system/bin/pm(因为没有export path所以打绝对路径)
都会提示"exec: app_process: not found"
我cd /system/bin后,./pm或./am也是同样的情况。。
我打印了这两个sh的内容:
cd /system/bin
./cat pm
# Script to start "pm" on the device, which has a very rudimentary
# shell.
#
base=/system
export CLASSPATH=$base/framework/pm.jar
exec app_process $base/bin com.android.commands.pm.Pm "$@"
./cat am
# Script to start "am" on the device, which has a very rudimentary
# shell.
#
base=/system
export CLASSPATH=$base/framework/am.jar
exec app_process $base/bin com.android.commands.am.Am "$@"