On this page
1. Turn on Developer options
Open Settings.
Go to Settings, then About phone and tap Build number 7 times. No such line? Type Build number into the Settings search bar.
Enter your PIN if asked. You see You are now a developer!
Find Developer options. Search for it in Settings if you can't see it.
Turn on USB debugging.
Sources: Android developer options docs
2. Extra switches this brand needs
In Developer options, turn off Flyme payment protection. On Flyme 8 it is in the Security app instead. Without it, Shizuku says the permission of adb is limited.
Sources: Shizuku setup guide, Issue 54
3. Pair and start
Follow the Wireless debugging steps. On a computer instead? The computer steps.
Sources: Shizuku setup guide
4. Keep Shizuku from stopping
Mark Shizuku as Protected.
Turn on Keep running after screen off for Shizuku.
Allow background processes for Shizuku.
Also do the four steps every phone needs: unrestricted battery, Disable adb authorization timeout, No data transfer as the USB default, and leaving debugging on. They are on the Wireless page.
Sources: Don't kill my app: Meizu
5. Known problems on Meizu
The permission of adb is limited
Turn off Flyme payment protection (step 2).
Sources: Shizuku setup guide, Issue 54
6. Turn it all back off
First, in each app that used Shizuku, undo what it changed, while Shizuku still runs. Some changes an app makes through Shizuku stay after Shizuku stops. Firewall and Fileglow have their own steps.
In Shizuku, switch off every app in the list of authorized apps.
Stop Shizuku with its stop option, or restart the phone.
Open Developer options, then Wireless debugging, then Paired devices, tap the shizuku entry, then Forget.
In Developer options, tap Revoke USB debugging authorizations. This removes every paired computer and device.
Turn Flyme payment protection back on.
Turn off Disable adb authorization timeout if you turned it on, and set Default USB configuration back to File transfer if you want.
Turn off Wireless debugging, then USB debugging.
Turn off the switch at the top of Developer options: where you found it.
Set Shizuku's battery setting back to the default (Optimized) if you like.
Uninstall Shizuku the normal way if you don't need it any more.
Sources: Shizuku setup guide, Android adb docs, Android developer options docs, Issue 467, Issue 451, Discussion 1000