Remove Phone application from Android emulator?

I have an idea how this could be done but this is not an easy way It requires source code of the Android OS you need an emulator for. Then in the make files you can disable including of the Phone application to the output image and build the OS with 'make sdk' task. This will produce an SDK (like ones available from the Google site) with the binaries that has Phone application excluded.

Then when you will create an emulator with this SDK it won't have the Phone. Apk Painful but if you really need it, give it a try.

I have an idea how this could be done but this is not an easy way. It requires source code of the Android OS you need an emulator for. Then in the make files you can disable including of the Phone application to the output image and build the OS with 'make sdk' task.

This will produce an SDK (like ones available from the Google site) with the binaries that has Phone application excluded. Then when you will create an emulator with this SDK it won't have the Phone.apk. Painful but if you really need it, give it a try.

I was really hoping not having to go that route, and just be able to hack together some shell script stripping out the apps using adb. But if this is the only possible course of action, then that is what I will do. – bjarkef Jun 28 at 11:26 Okay, I just finished building a new SDK + emulator without the Phone and Contacts app, and it does indeed seem to work as expected.

When pushing the Phone off button, it displays a toast with the message that no Phone app is installed. As expected. If nobody else comes up with a simpler solution in a few days, I will award you the bonus.Thanks.

– bjarkef Jun 28 at 11:45.

If you have root acces you can remove the . Apk file that provides this app. You would have to look around in the folders on the device where it is installed.

This is the emulator, thus I have root access. I have already tried that, it does not work. Even when I do adb remount to mount the /system partition in read-write mode, I am not allowed to do a rm /system/app/Phone.apk.

I can however do a echo "" > /system/app/Phone. Apk which I find weird that that works. However that just causes the emulator to keep displaying a dialogue saying the Phone app has crashed.

– bjarkef Jun 22 at 12:57 hmmm are you sure the Phone. Apk is the one that makes the stock app? It looks like this apk is the os or something like that.

– dragon112 Jun 22 at 12:59 Phone. Apk and Contacts. Apk makes the stock telephony app that you see, (e.g. Dialer + call log tabs are from Phone.

Apk contacts tab is from Contacts. Apk). I am sure of this.

:) – bjarkef Jun 22 at 13:04 Ok then I suppose it is a part of the emulator that can't be deleted. – dragon112 Jun 22 at 13:05 Funny thing is, if I compile my own android build, without the Phone and without the Contacts app, everything runs fine, except there is no telephony functionality. That leads me to believe that it should be possible to remove the Phone/Contacts app in a stock Android emulator.

– bjarkef 12 Jun3 at 6:57.

I successfully remove Phone apps WITHOUT rebuilding the SDK (very long op...) You can edit you system. Img in your SDK (located for ex : ~/android-sdk-linux_x86/platforms/android-10/images/system. Img) corresponding to the system part of your emulator ( Phone apos is located at /system/apps/Phone.

Apk) I launched the emulator, connect with adb to the emulator shell. I removed the packaged /system/apps/Phone. Pak after remounting the system partition with read/write option ( mount -o rw,remount /system /system ) I push into my emulator the mkfs.

Yaffs2 tools compiled for arm found here (http://code.google.com/p/android-group-korea/downloads/detail?name=mkfs.yaffs2.arm) use this tools to recreate my system. Img in my emulator shell: mkfs. Yaffs2 /system /sdcard/system.

Img pull the /sdcard/system. Img into my PC. Replace the system.

Img of the emulator (~/android-sdk-linux_x86/platforms/android-10/images/system. Img) and restart the emulator. The Phone app is Gone!

1 I don't think so. This is a system app so it can't be removed in that way. – dymmeh Jun 22 at 12:53 As dymmeh says, it cannot be removed like any other 3rd app.

– bjarkef Jun 27 at 11:13.

It may be necessary to re-compile the Android OS that is running on the emulator. During the compile the default apps are rolled up into the build so it would be a matter of getting the egg before the chicken... or killing the chicken before it lays the egg...

Thanks, this is essentially what Maciej Pigulski already answered. – bjarkef Jul 1 at 9:37.

Img of the emulator (~/android-sdk-linux_x86/platforms/android-10/images/system. Img) and restart the emulator. The Phone app is Gone!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions