Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (122 of 122 strings) Translation: Shizuku/manager Translate-URL: https://weblate.rikka.app/projects/shizuku/manager/pt_BR/
- Loading branch information
889734b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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);
}
}