28-02-2019, 02:35 AM
So I decided to update magisk and it's manager on my phone and suddenly i was unable to get root because magisk manager won't show the super user prompts anymore. This guide will show how to fix magisk manager not showing the super user prompts when apps request for root privilege.
UPDATE
At the time of writing this post, magisk v18.1 was the cause of the issue. An easier fix has emerged, change magisk update channel from within magisk settings from stable to BETA, then refresh magisk manager. It should display V19 avaiable, simply patch boot using this new V19 magisk
Requirements
- Download and install DB browser @ https://sqlitebrowser.org/dl/ on your PC
- Download magisk.db @ https://mega.nz/#!QSJ2XKQb!1-CT8UnJyBJIB...GYHhgEmU9c
- Find the package name and UserID of the app using this guide
- You must have a custom recovery installed on the phone. You can check the android dev section for TWRP / Philz porting tool
Steps on how to fix magisk manager not showing the super user prompts or granting apps super user privileges
Follow the steps below to fix magisk manager not showing the super user prompts or granting super user privileges
- Launch DB browser tool
- Click File > Open Database...
- In the window that opens next, navigate to and select the magisk.db file then click Open
- DB browser will load the contents of the file, click 'Browse Data'
- In the drop down bar besides table, select policies
- To edit an existing app policy, select or highlight the item > enter the new data in the textbox at the right hand side then click Apply
- To add a new app to the list, click 'New Record'
- A new row will be added with values set as Null
- Simply edit the values of each item as follows
UID = UserID of the application on your phone
package_name = packname of the application
Policy = 1 for auto reject root and 2 for auto grant / allow root
Until = 0
Logging = 1
Notification = 1
- When you're done and satisfied adding new applications to the list, click File > Write Changes
- Exit DB browser tool and copy magisk.db into your phone's storage
- Boot into TWRP recovery and select the following >
- Advanced >
- File manager >
- Navigate to and select the magisk.db file >
- Copy file >
- Navigate to root\data\adb\ >
- Paste the copied file into adb folder >
- Swipe the slide bar to confirm >
- You should get the message if all goes well, you can now reboot your phone back to home screen
- Advanced >
- Check Magisk manager > superuser to confirm the changes (here you'll find all the apps that you added with root permissions set)
Important Notice
- If you have Philz or CWM as your recovery, you can use Aroma File manager @ https://forum.xda-developers.com/showpos...ostcount=2
- The folder location of magisk.db within the android file system might change as time goes on. You can always look through another magisk rooted phone without this problem to get the new location
- I'll advice that you add any root file explorer to the list at the first chance you get. So subsequently, you won't need to use custom recovery to replace the file. You could easily replace the magisk.db file using the root file manager after reboot afterwards to enable magisk manager pick up the new changes
- If you want to delete all items from a table, leave at least one item on the list. Deleting all items from a table breaks the DB file and magisk manager will crash each time you try to open the superuser tab