Android source AOSP:删除android后如何在service manager中添加服务:sharedUserId=";android.uid.system“;从舱单

Android source AOSP:删除android后如何在service manager中添加服务:sharedUserId=";android.uid.system“;从舱单,android-source,servicemanager,Android Source,Servicemanager,无法启动服务。行是在创建服务时添加的 <pre>ServiceManager.addService(ACTION_REMOTE_SERVICE, (IBinder) new xxxRemoteservice(this));</pre> Getting error below Caused by: java.lang.SecurityException at android.os.BinderProxy.transactNative(Native Method)

无法启动服务。行是在创建服务时添加的

<pre>ServiceManager.addService(ACTION_REMOTE_SERVICE, (IBinder) new xxxRemoteservice(this));</pre>
Getting error below

Caused by: java.lang.SecurityException
    at android.os.BinderProxy.transactNative(Native Method)
    at android.os.BinderProxy.transact(Binder.java:764)
    at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:150)
    at android.os.ServiceManager.addService(ServiceManager.java:88)