调试过程中遇到的问题
1. logcat中显示错误
E/dalvikvm( 786): Unable to find mount point for /system
对应代码位置在 dalvik/vm/init.cpp
// Mark /system as NOSUID | NODEV
const char* android_root = getenv("ANDROID_ROOT");
if (android_root == NULL) {
SLOGE("environment variable ANDROID_ROOT does not exist?!?!");
return -1;
}
std::string mountDev(getMountsDevDir(android_root));
if (mountDev.empty()) {
SLOGE("Unable to find mount point for %s", android_root);
return -1;
}
这个错误对挂载NFS没有太大的影响.
2. logcat中显示错误
Exception Ljava/lang/NullPointerException; thrown while initializing Landroid/os/debug
详细原因见前一篇, 解决办法是在init.xxx.rc中指定