Disabling android services in init.rc
android, android-build, android-service, android-source
Solution
Assuming that you have sucessfully booted, then you can shutdown the android framework with this command:
setprop vold.decrypt trigger_shutdown_framework
This command was implemented as part of the encryption system in Honeycomb. It will shutdown all but the core native sevices:
- init
- adbd - so that you can still adb shell into the phone
- servicemanager - Which handles the native (not android) serivces
- ueventd
You can restart the android framework with the command:
setprop vold.decrypt trigger_restart_framework
Obviously you must be root to do this.
Problem
I am working on a new hardware platform on which i need to flash Android OS.. For initial testing i need to stop all the Android services are there in android init.rc file. I searched for the init.rc file in my code base `./bootable/diskinstaller/init.rc ./bootable/recovery/etc/init.rc ./system/core/rootdir/init.rc` , I need to know about how to identify the android services in the init.rc ?.I am thinking of disabling the android dalvik VM. to stop all the android related services is it good to stop the dalvic VM or just disabling all the services one by one? Thanks!