Search code examples
androidandroid-manifestfactory-pattern

how to install android application in factory test mode


I am trying to install android application in factory test mode. I make device(beagle board) to enter into factory test mode with corresponding android froyo build. It is entering factory test mode successfully, and when I try to install an application from ADB shell, it shows the following error

(ERROR : could not find package manager,Is the system running?)

I am using required permission in manifest file. But it is showing above error. any help would be greatly appreciated.

<uses-permission android:name="android.permission.FACTORY_TEST"></uses-permission>

Solution

  • This permission is granted only to the system applications or the application that is signed with "Firmware key"(The key used to sign the system applications). If u have firmware key then add this tag in AndroidManifest and sign ur application with that key.

         android:sharedUserId="android.uid.system"
    

    U can get firmware key if u r working with device manufacturer ow forget it!! Refer this::

    enter link description here