3

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!
Community
  • 1
  • 1
angelokh
  • 9,426
  • 9
  • 69
  • 139

2 Answers2

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.

Dmitry
  • 2,989
  • 2
  • 24
  • 34
0

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!!!

Aleadam
  • 40,203
  • 9
  • 86
  • 108
  • still the same error. `$ ./adb remount` remount succeeded `$ ./adb devices` List of devices attached emulator-5554 device `$ ./adb shell` `# cd /system/app` `# rm Camera.apk` rm failed for Camera.apk, Directory not empty – angelokh May 09 '11 at 04:32
  • @angelokh try recreating the AVD – Aleadam May 10 '11 at 00:08
  • Do you think creating AVD from Eclipse makes any difference? I tried that, the error is still the same. – angelokh May 10 '11 at 01:53