|
@@ -3,6 +3,7 @@ package com.norman.webviewup.lib.hook;
|
|
|
import android.content.ComponentName;
|
|
|
import android.content.Context;
|
|
|
import android.content.ContextWrapper;
|
|
|
+import android.content.Intent;
|
|
|
import android.content.pm.PackageInfo;
|
|
|
import android.content.pm.PackageManager;
|
|
|
import android.os.Build;
|
|
@@ -103,6 +104,16 @@ public class PackageManagerHook extends BinderHook {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ protected String getInstallerPackageName(String packageName) {
|
|
|
+ if (packageName.equals(webViewPackageName)) {
|
|
|
+ // fake google play
|
|
|
+ return "com.android.vending";
|
|
|
+ } else {
|
|
|
+ return (String) invoke();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
protected IBinder asBinder() {
|
|
|
IBinder proxyBinder = getProxyBinder();
|