Magisk 101: How to Fix SafetyNet 'CTS Profile Mismatch' Errors
Because of Android's new SafetyNet system, certain apps can now block rooted users or prevent you from accessing them altogether — but at least for now, there are still ways around these restrictions.You can pass most of SafetyNet's checks with Magisk and systemless root, but Google's Compatibility Test Suite (CTS) remains a hurdle in some cases. With certain setups, you'll still get a "CTS Profile Mismatch" error that causes the SafetyNet check to fail, even with Magisk installed.If this has happened to you, there are a number of potential causes, ranging from incompatible root management apps to issues with Magisk Hide. So to help you get to the bottom of the issue, we'll go over seven solutions below.Don't Miss: Why SafetyNet Shows That Google Actually Cares About Android Root
Before You BeginThis guide assumes you've already installed Magisk, which is a systemless root utility that can hide its presence from SafetyNet. If you haven't already done this, head here to get started.When it comes to actually checking your SafetyNet status, the easiest way to do that would be to open the Magisk Manager app and tap the "SafetyNet Check" button at the bottom of the screen. So while following this guide, periodically re-check your SafetyNet status by opening the Magisk Manager app, swiping down to refresh, then tapping the "SafetyNet Check" button again. Checking SafetyNet status in Magisk Manager.
Step 1: Get Rid of SuperSU and Use MagiskSU with Magisk HideThe most likely cause of a CTS profile mismatch is a root management app that doesn't hide itself from SafetyNet. This is the case with Chainfire's SuperSU, which is the most popular root management out there.Chances are, you originally rooted your phone using the SuperSU ZIP or CF Auto Root, which both install SuperSU as the default root management app. If you did that, and then installed Magisk, the leftover root binaries from SuperSU will cause SafetyNet to trip.So if this is the cause of your CTS issues, you'll need to uninstall SuperSU's binaries and replace them with Magisk's built-in root management app. But there's one more wrinkle: If you have the Xposed Framework installed or if you've modified any system files using root access, you'll need to undo those changes as well. Not to worry, though, we've outlined that entire process with a separate guide, so head to the following link to get squared away.Don't Miss: How to Switch from SuperSU to Magisk to Bypass SafetyNetOnce you've done that, make sure the "Magisk Hide" option is enabled in your Magisk Manager app. From there, you may want to hide additional apps using Magisk Hide, which essentially prevents the apps from knowing that you're rooted.To do that, head to the side navigation menu in your Magisk Manager app and select "Magisk Hide." From here, it may be helpful to tick the boxes next to Google Play Store and Google Services Framework as well as any other app you're having SafetyNet issues with.
Step 2: Still No Good? Try Flashing unSUIf the above guide didn't fix your CTS profile mismatch problems and you're certain you've undone any system mods, it's possible that you still have a few bits of data left over from SuperSU. The "Full Unroot" option in the SuperSU app is supposed to get rid of everything, but it's not always perfect.So to make sure you've completely eradicated SuperSU and its binaries, you can use a flashable ZIP created by developer osm0sis. To start, just tap the following link from your Android device, then boot into custom recovery.Download unSU to completely remove SuperSU (.zip) From there, tap the "Install" button in TWRP's main menu, then navigate to your Download folder and select UPDATE-unSU-signed.zip. After that, swipe the slider to flash the ZIP and eradicate all traces of SuperSU, and when you're done, go back and re-flash the Magisk ZIP. After rebooting, check your SafetyNet status again — if you still don't pass, move onto the next step.
Step 3: Change SELinux to EnforcingIf you're still stuck, this next step is rather simple, though it would only apply if you've previously used an app to set your SELinux mode to "Permissive." Magisk attempts to hide your SELinux status from SafetyNet, but it's not always perfect, so your best bet is to set SELinux back to its default mode of "Enforcing."So open whichever SELinux mode changer app you used to set the mode to "Permissive" in the first place, then toggle the setting back to "Enforcing" and reboot. Sadly, we can't share apps that change SELinux modes since Google blacklists sites that do, so if you've uninstalled the app, you'll have to find it again on your own. That's easy, though — just head to the XDA forums and search for "SELinux."
Step 4: Turn Off USB DebuggingFor some strange reason, a fairly common cause of SafetyNet issues with Magisk is the "USB Debugging" setting in Developer options. So if you have this option enabled, head to your Settings menu to disable it, then reboot and see if that solved your SafetyNet issues.
Step 5: Custom ROM? Try a Custom KernelAs I mentioned earlier, CTS stands for "Compatibility Test Suite." This is the process Google uses to verify that a device and its firmware meet certification standards, and to put it simply, a custom ROM will never officially pass this test.However, some custom kernels can help with this issue. The most popular kernel that's been known to help with custom ROM incompatibility is Franco Kernel. It's available for all Nexus, Pixel, and OnePlus devices, as well as the Redmi Note3, and the easiest way to install it would be to purchase the FKU app, then tap the "Download" button on the main page. Otherwise, you can search your device's XDA forum to find a free flashable ZIP. For some custom ROMs (particularly Lineage OS), this option may not fully solve the problem. However, many apps that use SafetyNet only check one CTS-related aspect called "Basic Integrity," and flashing Franco kernel will usually fix that aspect. So while Magisk Manager may still report a CTS mismatch, you may very well be able to use all of your apps now.Finally, for Xiaomi users that are running a custom ROM, there's another option. This Magisk module by developer Deic will reportedly make your phone pass the CTS test, so try installing it, then rebooting.
Step 6: Address Other Potential ProblemsBefore you take the nuclear approach outlined in Step 8 below, there are a few less-common issues that might cause SafetyNet to fail based on a CTS profile mismatch, so they're worth a shot.First, it's possible that the Magisk Hide daemon isn't starting properly on your phone. To fix that, try heading to the settings menu in your Magisk Manager app, then toggling the "Magisk Hide" option off and back on. Failing that, disable Magisk Hide, reboot, then re-enable the option. Some users have also reported that Magisk's "Systemless hosts" and "BusyBox" options caused them to experience issues with SafetyNet. As such, you may want to disable these two options in the Magisk Manager app's settings menu, though note that disabling systemless hosts may cause issues with ad blockers like AdAway.
Step 7: Enable Core Only ModeAs a last-ditch effort, you can try enabling the "Core only mode" option in Magisk Manager's settings. This will disable any Magisk modules you've installed which could be causing conflicts with SafetyNet, leaving you only with Magisk SU and root.It may not be the ideal solution, but after Google updated SafetyNet to detect Magisk, enabling "Core only mode" seems to be the only fix that helps most users pass the CTS test. To try it out, head to the settings menu in Magisk Manager and tick the box next to "Core only mode," then reboot and run the SafetyNet check again.
Step 8: If All Else Fails, Start from ScratchWe've saved this step for last because it's a catchall solution, but it's a painful pill to swallow. If all else fails, simply restore your device's stock firmware, reinstall custom recovery, then flash the Magisk ZIP that you can download in the Magisk Manager app. This will work in almost all cases.The process of restoring your stock firmware will vary depending on the device, but if your phone has a bootloader menu that supports Fastboot commands, we've covered the process at this guide. Failing that, your best bet would be to do a Google search for "restore stock firmware <phone name>." When you're done there, you can reference this guide for re-installing TWRP.So have you finally solved your CTS profile mismatch issues? Do you have any other tips that will help get people past that dreaded SafetyNet check? If so, drop us a line in the comment section below.Don't Miss: The 5 Best Phones for Rooting & ModdingFollow Gadget Hacks on Facebook, Twitter, Google+, and YouTube Follow Android Hacks on Facebook, Twitter, and Pinterest Follow WonderHowTo on Facebook, Twitter, Pinterest, and Google+
Cover image and screenshots by Dallas Thomas/Gadget Hacks
How to Take apart the HP iPAQ hw6515 cell phone for repair
How To: Make the AccuWeather Widget Transparent on Your Samsung Galaxy Note 3 How To: Music Not Loud Enough? Here's How to Increase the Volume Limits on Your Samsung Galaxy Note 2 How To: Watch 2 Videos Simultaneously on Your Galaxy Note 9
Samsung Galaxy S5: How to Get Back Accuweather Widget to Home
Interested in teaching an online course using your own server but can't quite figure out how to install everything you'll need? This video demonstrates how to install Moodle, the free, open source course management utility, to your server via the Webmin interface. For step-by-step instructions, take a look.
How to Install Webmin on a Debian server via SSH - WonderHowTo
Click "Photos," then uncheck the folders you no longer want on your iPhone. Delete all of them at once by un-checking "sync photos from". When prompted, confirm that you want to delete the photos. If they are photos you took with the iPhone camera, open the Photos app on your iPhone, tap the photo, then tap the trash can.
3 Ways to Transfer Photos from iPhone to iPad - wikiHow
If you have this tablet device and you wish to root it, unlock its bootloader and install a custom recovery like ClockworkMod or TWRP, we have come with a perfect guide (at least I think so) for the same. Using this guide, you can root your Galaxy Tab 2 on Ice Cream Sandwich and Android 4.1.2 Jelly Bean firmware.
Today we are pleased to announce the end to the Apple vs. Android war. About a year ago, our Gadget Hacks team started working on a top-secret project to dual-boot both Android and iOS on the same phone—and we couldn't be more proud to announce that we've finally succeeded! Your phone can now run
Hacker gets Android running on iPhone - Geek.com
How to Get watchOS 2 Beta on Your Apple Watch Right Now
Android O feature spotlight: Notifications for apps displaying over other apps can once again be disabled Three annoying notifications. is displaying over other apps" one. To disable it
How to Disable or Mute Annoying App Notifications on the
CES 2015: Linx Headbands Can Keep You Safe from Permanent Head Injuries CES 2015: Check Out the All New LG G Flex 2, the Gorgeous, Self-Healing Curved Phone CES 2015: The Swiss Army Knife of Sports Bottles Plays Music & Holds Your Phone, Cash, Keys, & More CES 2015: Use iLuv's Selfy Phone Case to Take Hands-Free Selfies & Sharper Photos
A Youth Sports Growth Plate Injury: Sever Disease « Sports
How To: Use Spotify's New Free Mobile Streaming on Your Nexus 7 Tablet or Other Android Device News: 23 Important Apps That Work Great on Both Android & iOS How To: Sync Your Entire iTunes Library to Spotify's New "My Music" Section
How to Use Your Android as a Streaming Wi-Fi Camera
AR camera effects are coming to Instagram in a closed beta, CEO Mark Zuckerberg announced at Facebook's F8 conference today. Instagram will debut new filters through partnerships with Kylie
How to Add Song Lyrics to Playing Music in Your Instagram
How to Quick Reply & Compose Text Messages Without Leaving
With this DIY parabolic microphone from the folks over at GBPPR, you can listen in from a distance and do your sleuthing without ever leaving the couch. Image via sourcedns.com A parabolic microphone uses a parabolic reflector to focus sound waves onto a receiver.
Best Free Cloud Storage 2019 - Getting the Best for Nothing
0 comments:
Post a Comment