0

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>
Jehof
  • 34,674
  • 10
  • 123
  • 155
candy
  • 734
  • 1
  • 11
  • 22

2 Answers2

2

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

Rohit
  • 593
  • 2
  • 8
  • I heard like, device applications run in Factory test mode having root permissions . Is it compulsory to sign the application even to install it in Factory Test mode?. – candy Oct 17 '11 at 11:46
  • Ofcourse! See, to run application in Factory test mode u need FACTORY_TEST system level permission. System level permissions are not granted to normal user. http://www.krvarma.com/2010/10/security-permissions-in-android/ and http://stackoverflow.com/questions/3476600/why-are-these-permissions-being-refused – Rohit Oct 18 '11 at 12:48
-1

i think it is related to the certificate you are using. you require a manufacturer certificate to sign your app in order to access this kind of permission

njzk2
  • 38,969
  • 7
  • 69
  • 107