[APP][1.1] AutoMagisk - Auto-disable Magisk's root when certain apps are running

8,077 posts
Thanks Meter: 6,792
By Quinny899, Recognized Developer / Recognized Contributor on 17th September 2016, 12:24 PM
Thread Closed Email Thread
AutoMagisk no longer works, as Magisk stopped supporting this method in v8

Automatically disable Magisk root when certain apps, such as Android Pay or Pokemon Go are running to bypass SafetyNet

Note: You MUST have Magisk installed, with an unmodified system and Phh's Superuser. This is very important, AutoMagisk will NOT work otherwise.
Confused on how to do this? See this Android Police guide

Note: Using android pay to pay only works from the screen off with the option enabled in AutoMagisk's settings to disable root when the screen is off. If you try to pay with the screen already on from an app which does not have root disabled, AutoMagisk will NOT disable root in time and you will get rejected.

AutoMagisk has the following features:
- Disable Magisk root when an app is launched and re-enable it when an app that's not also set to disable is launched (usually when the app is closed again)
- Disable Magisk root when the screen is locked (optional, enable in the settings), to probably allow Android Pay to work from the screen being off
- Ignore certain apps: Say you have Pokemon Go set to disable root, and you open Facebook's chat heads, with Pokemon Go behind it. Root will not be disabled, but if you open Messenger without Go being open in the background, root will not be disabled
- Notification when root is disabled (can be turned off in the settings), as a reminder

How does it achieve this?
- An AccessibilityService to monitor app launch
- A background service/broadcast receiver for the screen turning off (turning back on is handled when an app is launched)
Because it uses an AccessibilityService, you MUST enable it in settings. You will be prompted to do this when launching AutoMagisk.

Apps with root disabled by default:
Android Pay
Google Play Services
Pokemon Go
NatWest Offshore
Isle of Man Bank
Ulster Bank

Apps ignored by default:
Facebook Messenger
System UI


Still confused? Watch this video to show it in action

Download from Google Drive (Also available on XDA Labs)
The Following 51 Users Say Thank You to Quinny899 For This Useful Post: [ View ]
17th September 2016, 07:35 PM |#2  
Funk Wizard's Avatar
Forum Moderator
Flag New Delhi
Thanks Meter: 17,007
Thanks will give it a shot
18th September 2016, 06:27 PM |#3  
ayeitschris's Avatar
Senior Member
Flag California
Thanks Meter: 171
Very nice thanks. It works perfectly.

Sent from my SM-N910T using Tapatalk
18th September 2016, 09:45 PM |#4  
nba1341's Avatar
Senior Member
Flag San Bernardino, California
Thanks Meter: 167
Works great thanks
19th September 2016, 04:12 AM |#5  
Senior Member
Thanks Meter: 570
Is there any way to add a way or function to hide the superuser app (I'm using too? My cable provider is blocking live streaming for root users and the trigger is the su app.

I flashed nexus factory image and removed Magisk. Should be 100% stock. AT&T Uverse app still blocked live tv. I uninstalled the su app, and live tv worked. Re-installed app without root (as in only installed app, didn't flash any form of root) and live tv blocked again.

If this app isn't capable of doing this, any suggestions would be welcome, even of manual steps are required.
19th September 2016, 10:13 AM |#6  
Jeanxito's Avatar
Senior Member
Thanks Meter: 7
Love the app..working like a charm on Oneplus one. Kudos for the author!

Enviado do meu A0001 atrav├ęs de Tapatalk
19th September 2016, 11:04 AM |#7  
Junior Member
Thanks Meter: 0
Has anyone test this to see if its working with the modified systemless root version of xposed, or the normal xposed module?
19th September 2016, 12:17 PM |#8  
daleski75's Avatar
Senior Member
Flag Northampton
Thanks Meter: 6,567
Is there a way to make a donation to get rid of the ads?
19th September 2016, 01:33 PM |#9  
Quinny899's Avatar
OP Recognized Developer / Recognized Contributor
Flag Salford, Greater Manchester, UK
Thanks Meter: 6,792
Donate to Me
Originally Posted by daleski75

Is there a way to make a donation to get rid of the ads?

Unfortunately not, as the app isn't on the Play Store and won't be because I believe it will get removed for TOS violation
19th September 2016, 01:40 PM |#10  
daleski75's Avatar
Senior Member
Flag Northampton
Thanks Meter: 6,567
Originally Posted by Quinny899

Unfortunately not, as the app isn't on the Play Store and won't be because I believe it will get removed for TOS violation

I was thinking more adding the lines of a donation version here on XDA only?
The Following User Says Thank You to daleski75 For This Useful Post: [ View ] Gift daleski75 Ad-Free
19th September 2016, 02:31 PM |#11  
Senior Member
Flag Brooklyn
Thanks Meter: 507
Donate to Me
unmounting root? what am i doing wrong here ? I have the pph superuser installed
Thread Closed Subscribe to Thread

automagisk, magisk, root, safetynet
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes