Is there any way to uninstall/replace the inbuilt application in android emulator so that i can install my customized apps for Mail, Contacts, Music etc.
I have downloaded android 2.2 code for Email application and i want to modify certain things and install.
Please let me know if there is any way.
I have done this way:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /data
rm /system/app/MyAppName.apk
rm -rf /data/data/package_name_here/
mount -o remount,ro -t yaffs2 /dev/block/mtdblock0 /system
mount -o remount,ro -t yaffs2 /dev/block/mtdblock1 /data
pm uninstall package_name_here
exit
Take care points :
You have to provide details of your application:
Line number 4: rm /system/app/ MyAppName.apk
Line number 5: rm -rf /data/data/ package_name_here /
Line number 8: pm uninstall package_name_here
Done
There's no point in replacing the apps in /system
while the emulator is running, since the emulator doesn't save /system
anyway.
In order to permanently replace apps in /system
, one can edit the system.img
file. It's quite easy really. As easy as extracting, moving files around, and compressing it back.
http://www.rodneybeede.com/Customize_an_Android_system_img.html
Launch your emulator, then make sure it is connected via adb, by typing:
adb -e devices
Make /system writable, by typing:
adb -e remount
Backup & remove Email.apk:
adb -e pull /system/app/Email.apk
adb -e rm /system/app/Email.apk
Push you own Email.apk:
adb -e push Email.apk /system/app
That's about it.
所有我可以说的是,我也试图找到解决方案,但你可以尝试替代,尝试通过系统应用程序卸妆卸载不必要的应用程序,现在从市场安装类似于相同目的的应用程序,看看它是否工作相同。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.