-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MI 9 Android Q 上的关闭 Shizuku 授权闪退问题。 #45
Labels
Comments
补充一下,刚才在 MI 6 Android P 上测试也有同样的问题。 |
锅看起来是在凄惨 MIUI 的 com.lbe.security.miui( |
感谢回复。 |
rimistri1
added a commit
to rimistri1/websites
that referenced
this issue
Jan 7, 2020
# How to start Shizuku? ## Device is rooted For rooted devices, start Shizuku directly in Shizuku app. ## Device is not rooted For non rooted devices, you need to start Shizuku with `adb`. Using `adb` is not difficult, please read the tutorial below. ### 1. What is `adb`? Android Debug Bridge (`adb`) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you Can use to run a variety of commands on a device. See [Android Developer](https://developer.android.com/studio/command-line/adb) for more information. ### 2. Install `adb` #### 2.1. Windows 1. Download the [SDK Platform Tools](https://dl.google.com/android/repository/platform-tools-latest-windows.zip) provided by Google and extract it to any folder 2. Open the folder with Explorer,hold down Shift and right click, select "Open PowerShell Window here" (for Windows 7, select open CMD) 3. Enter `adb`, if success, you can see a long list of content instead of the prompt not finding adb. ::: tip Please do not close this window. The "terminal" mentioned later refers to this window (if you closed the window, please go back to step 2) ::: ::: tip If you use PowerShell, all `adb` should be replaced with `./adb` ::: #### 2.2. Linux / macOS You definitely can do this yourself :D ### 3. Setting `adb` To use `adb` you first need to turn on USB debugging on your device, usually by following these steps: 1. Open system Settings and go to About. 2. Click "Build number" quickly for several times, you can see a message similar to "You are a developer". 3. At this point, you should able to find "Developer Options" in Settings, enable "USB Debugging". 4. Connect the device to the computer and type `adb devices` in the terminal. 5. At this time, the dialog "Allow debugging" will appear on the device, check "Always allow" and confirm. 6. Enter `adb devices` again in the terminal. If there is no problem, you will see something like the following. ``` List of devices attached XXX device ``` ::: tip The steps for enabling Developer Options on different devices may vary, please search for yourself. ::: #### 3.1. MIUI device _"It's 2019, garbage MIUI still breaks Android features."_ If you use MIUI, you also need to enable "USB Debug (Security options)". If you use MIUI 11, MIUI 11 breaks custom permission (user apps cannot request for custom permission, please refer [this issue](RikkaApps/Shizuku#45) and [this issue](android-in-china/Compatibility#16)), so you must grant permission for user apps in Shizuku app. ### 4. Start Shizuku ::: danger This step needs to be re-executed each time the device is rebooted. ::: Enter `adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/files/start.sh` in the terminal. If there is no problem, you will see that Shizuku has started successfully in Shizuku app. ### 5. How to avoid Shizuku stop (even if there is no restart) ::: danger Please follow the rules below, otherwise it will be stopped. ::: 1. Do not turn off "USB Debugging" 2. Do not modify the USB usage mode after connecting the device to the computer (or change to "charge only" if not) After a security patch, if the USB usage mode is not "charge only", changing the USB usage mode will kill all processes of adb. **Therefore, be sure not to modify the USB usage mode after change to "charge only".** (This step may not be needed if your device has not received security patchs for a long time) In addition, some manufacturers (such as Sony) added a dialog that will modify the USB usage mode when the computer is connected. Please don't click any dialog before disconnecting. #### 5.1. Huawei devices Turn on "Allow ADB Debugging "
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 task
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
你好,最近着手开发一个应用引入了 Shizuku。引入后试着关闭 Shizuku Manager (3.4.5) 中的授权,程序会直接闪退。尝试关闭App Ops,冰箱也有同样问题。系统版本MIUI 10 9.8.22 Android Q。崩溃日志如下。
The text was updated successfully, but these errors were encountered: