Open HW-Y9PRIME2019 opened 2 months ago
static final IPackageManager PACKAGE_MANAGER = IPackageManager.Stub.asInterface( new ShizukuBinderWrapper(SystemServiceHelper.getSystemService("package")));
public static void grantRuntimePermission(String packageName, String permissionName, int userId) { try { PACKAGE_MANAGER.grantRuntimePermission(packageName, permissionName, userId); } catch (RemoteException tr) { throw new RuntimeException(tr.getMessage(), tr); } } TIP
static final IPackageManager PACKAGE_MANAGER = IPackageManager.Stub.asInterface( new ShizukuBinderWrapper(SystemServiceHelper.getSystemService("package")));
public static void grantRuntimePermission(String packageName, String permissionName, int userId) { try { PACKAGE_MANAGER.grantRuntimePermission(packageName, permissionName, userId); } catch (RemoteException tr) { throw new RuntimeException(tr.getMessage(), tr); } } TIP
shizuku/introduction.md
``
shizuku/introduction.md
https://github.com/urbandroid-team/dont-kill-my-app/pull/1157