I would guess the problem is that you aren't signing your app with the platform cert, which is required if you want to share its uid.
Also if you are not having the code run in the system process, then your code here is very broken -- the intent receiver will run, and you will make the object and publish it, and then the intent receiver is done... and the system thinks your process is empty, and eventually kills it. You want to have this coming from a started services. Though honestly -- system services really should just run in the system process, since that one won't go away. If you absolutely want your service running in another process, you must make it persistent like the phone process. On Wed, Jan 13, 2010 at 9:13 AM, Digambar Rasal <movewr...@googlemail.com>wrote: > 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: > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-porting > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
-- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting