Skip to content

Commit

Permalink
Chore: bump dependencies (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 authored Oct 22, 2023
1 parent 011e8e2 commit e7dddd7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import com.android.build.gradle.BaseExtension

plugins {
val agp = "8.1.2"
val zygote = "3.0"
val zygote = "3.1"

id("com.android.library") version agp apply false
id("com.android.application") version agp apply false
Expand Down
2 changes: 2 additions & 0 deletions module/src/main/java/com/github/kr328/ifw/Firewall.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public final class Firewall {
private static IntentFirewall instance;

private static void tryGetIntentFirewall() {
Log.d(Main.TAG, "Try get intent firewall");

final Object instance = LocalServices.getService(ActivityManagerInternal.class);
if (instance == null) {
return;
Expand Down
16 changes: 12 additions & 4 deletions module/src/main/java/com/github/kr328/ifw/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ public static void main() {
@Override
public Binder addService(final String name, final Binder service) {
if ("package".equals(name)) {
BinderInterceptors.install(service, next -> {
final IPackageManager original = IPackageManager.Stub.asInterface(next);
return Proxy.FACTORY.create(original, new Proxy(original));
});
Log.d(TAG, "PackageManagerService found");

try {
BinderInterceptors.install(service, next -> {
final IPackageManager original = IPackageManager.Stub.asInterface(next);
return Proxy.FACTORY.create(original, new Proxy(original));
});

Log.d(TAG, "Binder interceptor installed");
} catch (Exception e) {
Log.e(TAG, "Initialize binder interceptor failed", e);
}
}

return super.addService(name, service);
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencyResolutionManagement {
}
versionCatalogs {
create("libs") {
val magic = "1.8"
val magic = "1.9"

library("magic-library", "com.github.kr328.magic", "library").version(magic)
}
Expand Down

0 comments on commit e7dddd7

Please sign in to comment.