While looking for a way to give root permissions to an Android app, I read the official documentation and went through the permission FACTORY_TEST in the Manifest.Permissions page.
public static final String FACTORY_TEST
Since: API Level 1
Run as a manufacturer test application, running as the root user. Only available when the device is running in manufacturer test mode. Constant Value: "android.permission.FACTORY_TEST"
So I had my answer for the root question, but I was left with the FACTORY_TEST permission… Do you know when this permission should be used? I can't find a lot of documentation on the subject.
It's only for self educational purposes.
Thanks