[parasitic] Fix autofill timeout (#1192)

This commit is contained in:
LoveSy 2021-09-30 07:48:11 +08:00 committed by GitHub
parent 01d3ed1ba7
commit 862988be2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -231,7 +231,7 @@ androidComponents.onVariants { v ->
filter<ReplaceTokens>("tokens" to tokens) filter<ReplaceTokens>("tokens" to tokens)
filter<FixCrLfFilter>("eol" to FixCrLfFilter.CrLf.newInstance("lf")) filter<FixCrLfFilter>("eol" to FixCrLfFilter.CrLf.newInstance("lf"))
} }
from("${project(":app").buildDir}/${if (rootProject.extra.properties["android.injected.invoked.from.ide"] == "true") "intermediates" else "outputs"}/apk/${variantLowered}") { from("${project(":app").buildDir}/outputs/apk/${variantLowered}") {
include("*.apk") include("*.apk")
rename(".*\\.apk", "manager.apk") rename(".*\\.apk", "manager.apk")
} }

View File

@ -237,6 +237,7 @@ public class ConfigManager {
if (info != null) { if (info != null) {
managerUid = info.applicationInfo.uid; managerUid = info.applicationInfo.uid;
} else { } else {
managerUid = -1;
Log.i(TAG, "manager is not installed"); Log.i(TAG, "manager is not installed");
} }
} catch (RemoteException ignored) { } catch (RemoteException ignored) {

View File

@ -117,7 +117,7 @@ public class ParasiticManagerHooker {
if (param.args[i] instanceof Intent) { if (param.args[i] instanceof Intent) {
var intent = (Intent) param.args[i]; var intent = (Intent) param.args[i];
checkIntent(managerService, intent); checkIntent(managerService, intent);
intent.setComponent(new ComponentName(BuildConfig.MANAGER_INJECTED_PKG_NAME, "org.lsposed.manager.ui.activity.MainActivity")); intent.setComponent(new ComponentName(intent.getComponent().getPackageName(), "org.lsposed.manager.ui.activity.MainActivity"));
} }
} }
} }