RikkaApps / websites

Websites for Rikka apps.
https://rikka.app
154 stars 2.61k forks source link

https://github.com/urbandroid-team/dont-kill-my-app/pull/1157 #274

Open HW-Y9PRIME2019 opened 2 months ago

HW-Y9PRIME2019 commented 2 months ago

https://github.com/urbandroid-team/dont-kill-my-app/pull/1157

HW-Y9PRIME2019 commented 2 months ago

https://github.com/urbandroid-team/dont-kill-my-app/pull/1157

HW-Y9PRIME2019 commented 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

HW-Y9PRIME2019 commented 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

HW-Y9PRIME2019 commented 2 months ago

shizuku/introduction.md

HW-Y9PRIME2019 commented 2 months ago

``

HW-Y9PRIME2019 commented 2 months ago

shizuku/introduction.md