sh 文件如下所示
#!/system/bin/sh
am start -a android.intent.action.MAIN -n com.android.settings/.Settings
echo hello,world
exit 1
但它报告错误
Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.Sett
}gs
Error type 3
} does not exist.lass {com.android.settings/com.android.settings.Settings
hello,world
exit: Illegal number: 1
但是当我直接在 sh shell 中输入它时,比如在 adb shell 提示符中,输入am start -a android.intent.action.MAIN -n com.android.settings/.Settings
,它可以工作,并运行 activty
所以有什么问题?