diff --git a/CoreLibrary/src/main/java/com/didi/virtualapk/internal/LoadedPlugin.java b/CoreLibrary/src/main/java/com/didi/virtualapk/internal/LoadedPlugin.java index 59962a6..b426d97 100644 --- a/CoreLibrary/src/main/java/com/didi/virtualapk/internal/LoadedPlugin.java +++ b/CoreLibrary/src/main/java/com/didi/virtualapk/internal/LoadedPlugin.java @@ -521,6 +521,15 @@ protected class PluginPackageManager extends PackageManager { protected PackageManager mHostPackageManager = mHostContext.getPackageManager(); + public Intent buildRequestPermissionsIntent(@NonNull String[] permissions) { + try { + return Reflector.on(PackageManager.class).bind(mHostPackageManager).method("buildRequestPermissionsIntent", String[].class).call((Object)permissions); + } catch (Reflector.ReflectedException e) { + e.printStackTrace(); + } + return null; + } + @Override public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException {