Hi,

I am trying to add new system service and following steps mentioned by
Dianne Hackborn @

http://groups.google.com/group/android-porting/browse_thread/thread/f9a383ce949d1557

I have created package with
- broadcastreceiver with which I am planning to start system service
- actual System service implementation.

in broadcastReceiver, On Boot completed intent,
onReceive(context)
{
 ....
  if ( BOOT_COMPLETED) ServiceManager.addService("test",new
TestService
(context));
 ...


But this doesn't happen but getting PERMISSION DENIED error.

This link mentions to run my app as System APP, i can add
"android:sharedUserId="android.uid.system" in manifest.

http://groups.google.com/group/android-platform/msg/7b56c90c109842b6

but on this I can't install my package with error
UPDATE_INCOMPATIBLE.  One more mail thread suggested using "emulator -
wipe-data" to clean emulator data, but isn't working.

So what needs to be done additional or its not possible to add system
service from packages. I can change framework and add same service in
SystemServer.

Regards
Digambar





-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to