Failure trying to reinstall new Camera.apk to android emulator 2.2

懵懂的女人 提交于 2019-12-10 19:34:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!