Несовпадение профиля cts. Кто столкнулся с проблемой прохождения SafetyNet - вот Вам решение

Несовпадение профиля cts. Кто столкнулся с проблемой прохождения SafetyNet - вот Вам решение

По просьбе уважаемого esleer выкладываю гайд по установке Magisk на аппарат Lenovo P2 и обход блокировки Android Pay на рутованном телефоне.

Небольшой дисклеймер: все действия выполняются вами на свой страх и риск. Окирпичить этот телефон кривыми действиями сложно, но тем не менее. Нижеследующая инструкция является по сути повторением инструкции с сайта XDA (искать в гугле по кейворду "XDA Lenovo P2 Magisk") с некоторыми дополнениями от меня лично. Глубинного понимания процессов, происходящих в результате выполнения нижеприведенных действий у меня нет, поэтому буду рад любым уточнениям, дополнениям и исправлениям.

Для установки Magisk, нам понадобится сам аппарат Lenovo P2 c разблокированным загрузчиком и установленным TWRP . Как сделать то и другое - читайте в соответствующих разделах форума. Наличие или отсутствие ранее установленного рута нам не принципиально, так как в процессе мы все равно будем устанавливать дефолтную прошивку, и затирать все следы его присутствия.Также желательно иметь флешку , куда удобно будет записывать бэкапы и установочные файлы.

0: Подготовительные мероприятия: делаем бэкап системы через TWRP. Выключаем аппарат, зажимаем все три клавиши на боку устройства, входим в TWRP, пункт "резервное копирование", выбираем флешку в качестве места сохранения, выделяем все разделы кроме data, и делаем свайп вправо для старта процесса бэкапа. Небольшой момент: если в системе перед бэкапом уже установлен какой-то другой рут, предварительно удаляем само приложение рута из телефона. Сливаем с флешки папку TWRP на компьютер, сохраняем все нужные вам файлы с внутренней памяти устройства. Крайне рекомендую после создания бэкапа и перед прошивкой, избавиться от всех следов аккаунта Google и прочих сторонних аккаунтов на устройстве. Это сильно упростит жизнь при последующей установке чистой прошивки и избавит от непонятных глюков Magisk-а. Для удаления аккаунтов, заходим в настройки, раздел "Безопасность", отключаем полностью блокировку аппарата (пункт "нет"), далее в разделе "Личные данные", заходим в пункт "Аккаунты", "Google", тап по трем точкам сверху справа, "Удалить аккаунт". Таким же образом удаляем и остальные аккаунты из списка.

1: Входим в TWRP, "Очистка > Выборочная очистка". Ставим галочку напротив раздела System. "Восстановить или изменить файловую систему > Изм. файловую систему > EXT4 > свайп слева направо"

Таким образом, мы изменяем файловую систему раздела System на ext4, делая возможной корректную работу Magisk на данном устройстве.

2: Теперь нам понадобится полностью обновить прошивку устройства. Автор оригинальной инструкции утверждает, что может прокатить и простое обновление без вайпа, но не рекомендует делать этого. Поэтому крайне желательно сделать прошивку с полным сбросом всех данных.

Скачиваем вашу версию прошивки в профильной теме на форуме. Лично я проводил все операции на 251й прошивке, по словам автора поддерживаются версии 233/244 и новее, видимо. Устанавливаем её на телефон посредством программы ADB, переведя устройство в режим fastboot. Инструкция по прошивке посредством fastboot также есть на форуме. В процессе прошивки, также прошьется оригинальный образ boot.img, затерев все следы предыдущего рута, если таковой был установлен ранее. Не забываем установить нужный регион-пакет (набрать в диалере код ####682# и выбрать RU или иной), если для вас это принципиально.

3: Снова устанавливаем TWRP.

4: Скачиваем из данной темы последнюю версию программы Magisk: zip архив для установки через TWRP и инсталлятор Magisk Manager. Желательно сразу скачать самые свежие версии, чтобы потом не заморачиваться с переустановками и обновлениями. Также можно скачать Safety Net Fix отсюда же, но его установка опциональна, лично мне он не пригодился. Складываем скачанные файлы в корень карточки памяти.

5: Входим в TWRP, выбираем пункт "Установка" и карту памяти в качестве источника данных, находим на ней zip файл инсталлятора Magisk и устанавливаем свайпом. Если на этом этапе возникают проблемы, например установка не доходит до конца, устройство внезапно выключается, перезагружается и т. п., попробуйте перезагрузиться в ОС устройства, после чего снова войти в TWRP и попробовать еще раз. Мне помогло. После установки желательно очистить кэш, как это предлагается в меню загрузчика после установки.

6: Загружаем телефон, смотрим в списке приложений появился ли Magisk Manager, если нет, то через проводник телефона находим apk-файл на карточке и ставим вручную. Не забываем включить разрешение установки приложений из неизвестных источников.

7: Запускаем Magisk Manager, нажимаем меню в верхнем левом углу, заходим в "Настройки", активируем переключатели "Magisk Hide" и "Systemless hosts" ("Внесистемные хосты"). Выходим на основную страницу программы. Снова тап по меню в верхнем левом углу, пункт "Magisk Hide". Находим в списке (можно воспользоваться поиском) и выделяем галочками приложения Google Services Framework и Play Market . Позднее, нужно будет добавить в этот список приложений для скрытия ваши банковские клиенты и прочие программы, которым не следует знать о руте на вашем устройстве)

8: Заходим в плей-маркет, ищем и устанавливаем оттуда программу Kernel Adiutor , она бесплатная. Запускаем, разрешаем рут-права, тапаем на меню в верхнем левом углу, прокручиваем список вниз до пункта Init.d, входим. Нажимаем розовый плюс, пишем любое название скрипта, скажем, "Run". Открывается окно редактирования скрипта. Копируем туда (можно прямо из браузера телефона) следующие строчки:

#!/system/bin/sh echo "deleting magisk properties" resetprop --delete init.svc.magisk_pfs resetprop --delete init.svc.magisk_pfsd resetprop --delete init.svc.magisk_service resetprop --delete persist.magisk.hide resetprop --delete ro.magisk.disable resetprop --delete magisk.version resetprop --delete persist.magisk.busybox resetprop --delete persist.magisk.hide

Сохраняем тапом на дискету, нажимаем в списке появившийся скрипт и выполняем его. Перезагружаем телефон.

9: Теперь тестируем, проходит ли телефон проверку SafetyNet. Заходим в Magisk Manager и нажимаем на основной странице "Проверить статус SafetyNet". Если видим две зеленые галочки - поздравляю, у вас получилось). Если нет, придется доустановить Safety Net Fix. Заходим в меню Magisk Manager, тапаем пункт "Модули", желтый плюс, находим на вашей карточке файл с патчем, делаем по нему длинный тап и выбираем "Открыть". После отработки установщика, перезагружаем телефон и делаем проверку SafetyNet еще раз.

10: Восстанавливаем бэкап с флешки, если это необходимо. Входим в TWRP, пункт "Восстановление", находим в списке ваш предварительно сделанный на флешку бэкап, тапаем по нему и восстанавливаем свайпом. Лично я не стал восстанавливаться, поскольку телефон был новый и совершенно "голый" в плане софта, но проблем по идее возникнуть не должно. Если будут возникать какие-то проблемы после восстановления, отпишитесь здесь.

11: Теперь можно устанавливать из стора Android Pay, следуя инструкциям привязывать карту, устанавливать другие банковские приложения, тот же Сбербанк Онлайн например, и пользоваться ими без ограничений.

Отредактировал 24 февраля, 2018 qastron
исправил мелкие недочёты

2 пользователям понравился пост

Are you looking for the latest working guide to bypass Safetynet issue? If the answer is yes, then you are at right place. Here we are going to show you how to fix Safetynet issue with the simple android app or Magisk module. The module called as universal SafetyNet Fix this let you run the apps which require the google new security measure aka Safety Net.

Magisk Manager is the one of the fastest growing Non-Playstore App that means unknown sources app which is only designed for the rooting devices systemlessly. One of the Xda-forum members has made this app for hiding the root access from some of the high-security applications. Topjohnwu is the creator of the Magisk Su. It Works as same as Chainfire’s Super Su . But Super Su fails the Safety Net pass so that most of the people switch to Magisk Root.

Table Of Contents

What is SafetyNet?

Safety net is the Topmost Security measure that ensures the device is safe to run some of the android application mostly Banking applications. Recently it was developed by the google to improve the security on android platform.

You might herd about the Android Pay which is introduced by the Google available some countries now. This app will check the safety net thing and if it confirms that then it will work. As like this one, most of the banking applications follow the same procedure to run their apps on the android device.

Even it spread to Netflix. Only Netflix works when it confirms that the device passes the safety net. By Rooting device, you will lose warranty along with the Safety Net pass. That may tend to your device is out of support for these kinds of apps.

Bypass SafetyNet Issue with Universal Safetynet FIX.

If you are using the SuperSu root binaries, then you must switch to the Magisk Su. Here is the best guide for installing Magisk Su. After installing Magisk Root binaries then this process will work for you as like a charm.

Fix Safetynet issue possible with the Magisk Module which is called as Universal Safety Net Fix. Deiki is the XDA forum member and the creator of this Module.

Currently, it is in Beta version so in some of the device it may not work properly. I recommended you to bookmark this page it will help you to get the app updates quickly. Or you will check the updates from the Magisk Manager.

Requirements:-

  • Magisk v12+ ()
  • Magisk Manager
  • New* Latest Module By Didgeridoohan that will help you to Pass the Safetynet measure. – Download
  • (Try this one, if above not works for you) Safetypatcher {Module} by hackintosh5 – Download

Steps to Fix SafetyNet on most of the android devices

  • Download the Universal Safetynet fix flashable zip file from the requirements section according to the Magisk version.
  • Open Magisk Manager and drag the menu from left to right.

  • You will see the Module section. Open it.
  • Now, click on the Yellow color + button. It will open the file manager of your device. Select the Universal safety net fix.Zip file.

  • After that Reboot your device.

Install Universal Safetynet Fix with TWRP (Custom Recovery)

In some of the beta versions, installing directly with the magisk manager is not possible. It will Show some error message when flashing module .zip file. In that case better to flash with custom recovery EG:- TWRP.

  • After downloading the above zip file according to the magisk version.
  • Now, Boot your device into Custom Recovery mode.

  • In the TWRP’s Home select the Install button. Find the required zip file from your Storage.
  • Swipe the install Button. It will take some time to complete the installation procedure. Then simply tap on reboot button.

  • Now, the phone will open normally and check the Safety net pass on the Magisk Manager App.

Final Words:

Working Guide to bypass Safetynet issue on most of the Android ROMs. I hope this guide will help you as much as I think. So, If you have any further queries regarding bypass Safetynet issue comment below. we will help you out as fast we can.

If this useful for you then don’t be shy to share this post with your friends.

Because of Android"s new 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 and , but Google"s (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.

Before You Begin

This 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 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 Hide

The 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.

Once 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 unSU

If 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.

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 Enforcing

If 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 Debugging

For 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 Kernel

As 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 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 Problems

Before 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 Mode

As 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 Scratch

We"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 . Failing that, your best bet would be to do a Google search for "restore stock firmware ." When you"re done there, you can reference 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.

Cover image and screenshots by Dallas Thomas/Gadget Hacks

Related

  • Magisk 101 : How to Install Magisk & Root with TWRP

  • How To : Fix Play Store Uncertified Errors When You Forget to Flash Magisk

  • Magisk 101 : How to Install Magisk Modules from the Repo or Third-Party Sources

  • News : T-Mobile Galaxy S8 Update Breaks SafetyNet & Android Pay

  • Magisk 101 : How to Switch from SuperSU to Magisk & Pass SafetyNet

  • SafetyNet Explained : Why SafetyNet Shows That Google Actually Cares About Android Root

  • How To : Use Twitter Custom Timelines

  • Tasker 101 : How to Import Tasks & Profiles

  • How To : Use the align command to fix normals in modo 101

  • News : Rooters Beware, Google Will Soon Start Locking You Out of Apps

  • News : Google"s March Security Update Breaks Android Pay on Some Pixel & Nexus Devices

  • Tasker 101 : How to Create an Exit Task

  • How To : Root Your OnePlus 6 with Magisk - A Beginner"s Guide

  • How To : Root Your OnePlus 6T with Magisk

  • How To : Easily Change Your Phone"s Font Without Tripping SafetyNet

  • News : Good place to set up a profile

  • How To : fix the error "transaction was not successful"

  • Позволяющий осуществлять бесконтактные платежи. Но не успели владельцы Android-смартфонов порадоваться новым возможностям, как перед многими из них встала проблема. Приложение благополучно устанавливалось на устройство, но при попытке запуска смартфон выдавал сообщение следующего содержания: «Google Pay не поддерживается на этом устройстве. Нам не удалось проверить соответствует ли Ваше устройство стандартам безопасности, установленным для Google Pay. Причина может быть в том, что на нем настроен root-доступ, разблокирован загрузчик операционный системы или установлено неоригинальное ПЗУ».

    Что интересно, пострадала, как обычно, та часть пользователей, которая предпочитает иметь при себе не просто телефон для общения, а удобный и производительный инструмент для решения разного рода повседневных задач. Как вы уже, вероятно, догадались, это те, кто получил Root-права на свой смартфон и установил модифицированные прошивки с качественным переводом на русский язык, разблокировав при этом загрузчик (ознакомиться ). Еще интереснее то, что, к примеру, у смартфонов Xiaomi даже официальная еженедельная сборка для устройств этого популярного бренда не проходит проверку в Google Pay - приложение согласно работать лишь со стабильными версиями MIUI , обновления которых происходят раз в несколько месяцев.


    С подобной проблемой мы уже разбирались полтора года назад, и тогда нам удалось помочь пользователям обойти требования безопасности мобильной версии сервиса « ». Механизмы защиты Google Pay оказались примерно идентичными. Но (повторимся) прошло полтора года, и сегодня, благодаря усилиям тех самых продвинутых и любознательных пользователей, создана программа под названием «Magisk - The Universal Systemless Interface », позволяющая получить нужный результат проще и быстрее - без отказа от прав суперпользователя и установки патченных версий софта. Установка этой программы дает возможность полноценно использовать сервис Google Pay на смартфонах с Root-правами, разблокированным загрузчиком и кастомными прошивками.

    Как воспользоваться программой Magisk?

    Основное условие использования Magisk - наличие её собственных Root-прав (MagiskSU) или официально несистемный SuperSU. В любом другом случае Magisk попытается удалить сторонние root-права и установить по умолчанию MagiskSU.

    Решение проблемы с Google Pay:


    ** В случае, если Вы не хотите устанавливать Magisk и остальное стороннее ПО, существует более простой способ скрытия Root-прав и/или разблокированного загрузчика от Google Pay: необходимо заменить две строчки (имя производителя и модель смартфона) в файле build.prop (например, с помощью

    Last Updated on June 14th, 2017

    Before we go into the guide on , first let’s know about SafetyNet . This is a feature which Google uses to determine whether your Android device is rooted or not and if its found rooted then certain apps will cease to work. For example, Android Pay wouldn’t work on a rooted device – courtesy SafetyNet. Nowadays, rooting an Android device is a normal thing as it gives you power over the OS. You can do many things with a rooted Android device which are otherwise not possible. With a rooted Android device, you can install a custom ROM, a custom Kernel, or overclock the processor etc.

    Magisk is a systemless root utility which hides its presence from SafetyNet. Means, with Magisk installed, SafetyNet won’t be able to detect that your Android device is rooted. However, Google’s CTS is still a problem and even with Magisk installed you might get ‘SafetyNet Failed: CTS Profile Mismatch Error’. Anyhow, in this Android Tutorial we will guide you How to Fix CTS Profile Mismatch Errors. Before we start, we are assuming that Magisk is already installed on your device.

    Switch From SuperSU to MagiskSU to bypass SafetyNet

    CTS Profile Mismatch Error is, in majority cases, caused because of the root management app. SuperSU is one of the most popular root management app in the market. But unfortunately, it’s not systemless and doesn’t hide from SafetyNet. Therefore, it’s highly likely that you will face CTS profile mismatch errors. So, first thing you need to do is to switch from SuperSU to MagiskSU to Fix CTS profile mismatch errors. Follow below steps carefully to successfully switch from SuperSU to MagiskSU.

    1. Uninstall Xposed Installer if it’s already installed on your device. To keep using Xposed modules, you can install systemless version of Xposed using Magisk. Once it’s uninstalled, reboot your device.
    2. As you rooted your device so it’s obvious that you must have installed apps which changed the core system files. You need to uninstall all such apps, or undo any changes made in the system files. The easiest way to revert back all the changes is to Flash the Stock System Image of your phone.
    3. Now you need to Unroot your Android Device. To do so, launch SuperSU and head towards Settings. In Settings, you will find an option called “Full Root”, tap on it and then tap on Continue. Here tap on “Yes” when it asks you that if you want to restore the stock boot image.
    4. Next, it will ask if you want to restore the stock recovery image. Tap on “No” option as TWRP custom Recovery is required to flash Magisk.
    5. Now open the Magisk Manager App and head towards the Install section. Here tap on the option named “Download”. Once the file is downloaded, reboot your device into recovery mode. Once you are in TWRP menu tap on Install and select Magisk.zip from the MagiskManager folder. To install the ZIP file, slide the button to the right and when finished, tap on ‘Reboot System.’
    6. Now go to Magisk Manager App >> Settings >> here enable Magisk Hide, BusyBox , and Systemless hosts options. The last thing is to clear Google Play Store data, to do so go to Settings > Apps > Play Store > Manage Space > Clear Data.

    This is it! This should fix CTS profile mismatch errors. If the error is still bothering you then head towards the next solution.

    Flash unSU to Fix CTS Profile Mismatch Errors

    If the above method failed to work and you are still getting CTS Profile Mismatch Errors then try a flashable zip called unSU developed by osm0sis, and XDA developer. You had to come to this step because doing “Full Unroot” via SuperSU didn’t work and not all the data of SuperSU is removed. Therefore, flashing unSU via TWRP will ensure that no bits of SuperSU are left behind.

    Turn Off USB Debugging to Fix CTS Profile Mismatch Errors

    For some reason, if your USB Debugging option is On with Magisk installed, there are high chances that CTS Profile Mismatch errors will occur. Therefore, turn off USB Debugging option by going to Settings >> Developer Options >> here turn off the USB Debugging Option.

    Set SELinux Back To ‘ENFORCING’ Mode

    If you are still facing CTS Profile Mismatch Errors then this rather simple step. If at some point you changed the mode of SELinux to “Permissive” then it’s time to change the mode back to “Enforcing” which the default mode. Open the same app via which you changed the mode to “Permissive” and revert it back to the default “Enforcing” mode.

    Install a Custom Kernel

    If you are using a Custom ROM then obviously your device won’t pass Google’s certification tests and as result might face CTS profile mismatch errors. However, to overcome this issue you need to install a custom kernel called “Franco Kernel”. And to install Franco Kernel you need to buy an app called “Franco Kernel Updater” or “FKU”. Once FKU is installed, open it and Tap on “Download” option.

    By now you must have got ridden of the CTS Profile Mismatch Errors, but if, the error is still popping up then you must take the hard route. You will have to take things from scratch like flash Stock ROM, install TWRP, and flash Magisk ZIP. We hope it doesn’t come to this. Please let us know at which point you stopped facing CTS Profile Mismatch Errors.