Change some log text

This commit is contained in:
Nullptr 2021-09-07 18:44:58 +08:00
parent 3f5279856d
commit 879ab80556
2 changed files with 3 additions and 2 deletions

View File

@ -171,7 +171,7 @@ public class LSPApplication extends ApplicationServiceClient {
if (useManager) { if (useManager) {
try { try {
modules.addAll(managerResolver.getModules()); modules.addAll(managerResolver.getModules());
modules.forEach(m -> Log.i(TAG, "Load module " + m.packageName + " from manager")); modules.forEach(m -> Log.i(TAG, "load module from manager: " + m.packageName));
} catch (NullPointerException | RemoteException e) { } catch (NullPointerException | RemoteException e) {
Log.e(TAG, "Failed to get modules from manager", e); Log.e(TAG, "Failed to get modules from manager", e);
} }
@ -300,7 +300,7 @@ public class LSPApplication extends ApplicationServiceClient {
hookActivityAttach(); hookActivityAttach();
hookServiceAttach(); hookServiceAttach();
} }
hookApplicationStub(); // hookApplicationStub();
int bypassLv = fetchSigbypassLv(context); int bypassLv = fetchSigbypassLv(context);
if (bypassLv >= Constants.SIGBYPASS_LV_PM) { if (bypassLv >= Constants.SIGBYPASS_LV_PM) {
byPassSignature(context); byPassSignature(context);

View File

@ -86,6 +86,7 @@ public class LSPAppComponentFactoryStub extends AppComponentFactory {
@Override @Override
public Application instantiateApplication(ClassLoader cl, String className) throws IllegalAccessException, InstantiationException, ClassNotFoundException { public Application instantiateApplication(ClassLoader cl, String className) throws IllegalAccessException, InstantiationException, ClassNotFoundException {
lspClassLoader.loadClass(PROXY_APPLICATION).newInstance(); lspClassLoader.loadClass(PROXY_APPLICATION).newInstance();
Log.i(TAG, "lspd initialized, instantiate original application");
return originalAppComponentFactory.instantiateApplication(cl, className); return originalAppComponentFactory.instantiateApplication(cl, className);
} }