20111875 #2393
mthulsiram367-crypto
started this conversation in
Ideas
20111875
#2393
Replies: 2 comments
|
adb shell /data/app/~~IwkOhOUUIBo1hUHJbAA6eA==/moe.shizuku.privileged.api-RGoQX3WICaWI4mi6nYTSgA==/lib/arm64/libshizuku.soEasy as you are a system app public static void grantRuntimePermission(String packageName, String permissionName, int userId) { |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
adb shell /data/app/~~IwkOhOUUIBo1hUHJbAA6eA==/moe.shizuku.privileged.api-RGoQX3WICaWI4mi6nYTSgA==/lib/arm64/libshizuku.soEasy as you are a system app
private 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);
}
}
All reactions