问题
According to this, I tried to modify GLRootView.java and reinstall new Camera.apk; however, some errors show up when I tried to uninstall the old Camera.apk. Do you know what's the issue and how to resolve it?
$ ./adb remount
remount succeeded
$ ./adb shell rm /system/app/Camera.apk
rm failed for /system/app/Camera.apk, Directory not empty
$ ./adb uninstall com.android.camera
Failure
reinstall from eclipse
[2011-05-08 17:41:43 - Camera] Uploading Camera.apk onto device 'emulator-5554'
[2011-05-08 17:41:43 - Camera] Installing Camera.apk... [2011-05-08 17:42:11 - Camera]
Re-installation failed due to different application signatures. [2011-05-08 17:42:11 -
Camera] You must perform a full uninstall of the application. WARNING: This will
remove the application data! [2011-05-08 17:42:11 - Camera] Please execute 'adb
uninstall com.android.camera' in a shell. [2011-05-08 17:42:11 - Camera] Launch
canceled!
回答1:
I've got the same error. I think it can be connected with system image size.
Try to start an emulator with parameter -partition-size 150
. In my case it solved the issue.
There is a tutorial with pictures "How to install Android market into SDK" describing similar problem.
回答2:
If that failed for some reason, type in the command prompt:
adb remount
adb shell
and in inside the shell:
cd /system/app
rm Camera.apk
Use it only in the emulator!!!
来源:https://stackoverflow.com/questions/5931444/failure-trying-to-reinstall-new-camera-apk-to-android-emulator-2-2