I want to run an app for testing some specific scenarios in root mode. From the android developer site Android does not provide apps with root privileges except when using FACTORY_TEST permission. From reading online I found that for using the permission, I need to sign it with platform keys that are generated while building the Android source code. If I have access to platform signatures then how to add android.permission.FACTORY_TEST permission?
Every time I add this setting in the manifest.xml, the xml displays an error saying only factory applications can use this. All the online help turned up till now asks me to do the following steps.
- Add
android:sharedUserId="android.uid.system. Export the apk as unsigned apk from eclipse. - Sign the apk with platform keys.
- Install and it and use it.
Since the manifest throws the error, do I need to simply ignore the error and continue?
Are there any detailed steps on how to do it?