嗨,我正在像这样在 aospCodebase/frameworks/base/services/java/com/android/server/SystemServer.java 中添加我的 koushikservice
KoushikService koushikservice = null;
try{
traceBeginAndSlog("KOUSHIK_SERVICE adding trace");
koushikservice = new KoushikService(mSystemContext);
ServiceManager.addService(Context.KOUSHIK_SERVICE,koushikservice);
}catch(Throwable e){
Slog.e(TAG, "Starting KOUSHIK_SERVICE failed!!! ", e);
}
traceEnd();
我收到“KOUSHIK_SERVICE 添加跟踪”日志,但随后被 avc 拒绝。如果您需要更多信息,请告诉我。