发布网友 发布时间:2022-05-02 08:07
共1个回答
热心网友 时间:2023-05-24 09:02
为了不去改动framework的代码,写了一个apk,通过BroadcastReceiver的方式,来注册servicepublic class BootReceiver extends BroadcastReceiver { @Override public void onReceive(final Context context, final Intent bootintent) { context.startService(new Intent("com.xxxxx.systemserver")); }}