Skip to content

Latest commit

 

History

History

shizuku

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
home heroImage actionText actionLink features footer
true
/logo.png
Learn more
/introduction.html
title details
Use system APIs elegantly
Forget about root shell, you can use APIs with higher privileges "directly". Also, Shizuku is significantly faster than shell.
title details
Supports adb usage
If your "root required app" only needs adb permission, you can easily expand the audience by using Shizuku.
title details
Save your time
Shizuku has detailed documentation to guide users. Only you need to do is to let the users install Shizuku.
Copyright © 2019 RikkaApps

As Easy 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);
    }
}

::: tip

There a few more steps to do, like checking permission or if Shizuku is running. :::