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
Recently, iPhone users have been bragging that they can set Live Photos as their lock screen wallpaper. While this is a great way to spice up a boring lock screen, Android users shouldn't feel left out in the cold. The highly customizable and feature-rich OS has a few tricks up its sleeve too, and
How to Get Custom Lock Screen Widgets on Your Samsung Galaxy
Internet browsing on consoles is set to increase as console makers release devices with better browsers and more capabilities—features such as NFC for micropayments in the upcoming Wii U, and voice control and Kinect gesture support in the Xbox 360's coming IE9 browser.
Which game console has the best web browser, PS4 or Xbox One
Google's Night Sight Camera Is Downright Amazing
Here are the top-ranked smartphones that will last the longest on a single charge. These phones held out for at least 11 hours in our test to offer the best phone battery life.
Pinterest recommends using video when your brand has a clear story to tell, such as a D-I-Y project or showing a unique way to use your product. Pinterest's research shows that people watched Promoted Videos 32% longer when there was a storyline that built over time, compared to GIFs or stitched-together stills.
23 Genius Ways To Have The Best Movie Night Ever
Tips to speed up your internet connection. There's no one way to boost your internet speed. Your speed could be suffering from a number of unrelated reasons, so it's in your best interest to explore as many avenues as possible.
How to Speed Up Your Internet Connection: 10 Tips for Better
In today's video, we show you how to completely reformat your Mac and set it back to factory settings, all without the need for a recovery disk or drive. Check out the video above to see how!
formatting - How to format my mac without the installation
There's one thing that I've always liked about iPhones, and that's their centered digital clock in the status bar at the top of the screen. On Android, it's always on the right side by default, and there's no easy setting that lets you just change it to the center position. But if you have a Google
Color Your Status Bar to Match Any App in Android Lollipop
How to get your music onto pandora internet radio. Pandora's new 'thumbprint' algorithm turns your likes into a how to edit an existing music station on pandora radio internet playing create own
Pandora Internet Radio Station List | Mount Mercy University
Reverse phone lookup has never been more easy. You can now identify an unknown caller using our cutting edge cell phone lookup technology. We search millions of records to find the real person or business associated with a phone number. ZLOOKUP is 100% free and entirely hassle free reverse cell phone lookup - and it actually works!
Reverse Cell Phone Number Lookup | National Cellular Directory
Extra: Easily spy on someone's online availability on Facebook using your smartphone. Way to Get Rid of Facebook Chat Heads Pop-up in Android. 1. Launch Facebook Messenger app, then go to settings by tapping on "Gear icon". In the settings page, notice the "Chat Heads" section. Tap on it.
How to Get Chat Head Bubbles for Text Messages on Your Nexus
How To: Jailbreak iOS 7.1 Versions on Your iPad, iPhone, or iPod Touch How To: Jailbreak an Apple iPhone 4 or other iOS 4.1 device with limera1n How To: Use Split View Mode on Any iPad Model How To: Display your iPod Touch, iPhone, or iPad screen on your computer
How To: Install the Xposed Framework on Your Nexus 7 for Insane Customization How To : Easily Access Your Camera from the Lock Screen on Your Samsung Galaxy Note 2 How To : Remove the Carrier Name from Your Lock Screen in Android Lollipop
How to Install the Xposed Framework on Your HTC One for Super
0 comments:
Post a Comment