When it comes to customizing Android, there is no better way to do it yourself than by installing a custom ROM. You get new features that were not available on the warehouse that came with the phone, and you get complete control over how your system looks and feels. But there is definitely a learning curve.
A major problem with ROMs is that Google requires the device to send its SafetyNet certification check so that you can install some apps and updates from the Play Store. You can get around this with Magic, but if you start up your phone before flash Magically with a custom ROM, and you will get the dreaded "Device unverified" when you check into the Play Store app settings .
Because Magic was absent from your system during the first check, you basically hit a flag to capture the unverified label. That's why it's a good exercise to browse Magic right after you flash your ROM ̵
If you already flashed Magic when you realized that your Play Store was unencrypted, proceed to step 3. But if you still don't have flashed Magic you need to do it right now. To start, start the phone to a custom reset.
There is more than one way to get the device to recovery mode, so you can choose which method is best for you. A universal way of achieving this on all devices is from your boot loader menu – you can use the volume keys to highlight "Recovery Mode" and then confirm with the power button to boot into TWRP.
Now that you are in the main menu of TWRP, navigate to "Install" and then to the folder when your Magic file is stored. Point to that file, and then "Swipe to confirm Flash" to install it on your system. When Magic is completed, you can press "Reboot System." Since you have installed a custom ROM and are reading this guide now, this step should not be new to you because you simply forgot to browse Magic.
Now that you are back in operation, you want to go into your system settings and find the section where you can manage your installed apps. A general place you can find here would be in the example as follows:
Settings> Apps and Messages> Show All Apps
Alternatively, from the main setup screen, you should be able to search all your system settings by typing some text. Tap the search box and type "app info" and then tap the section that pops up to get to the same page quickly. It may be located or labeled differently depending on which ROM you have, but look for something related to "apps installed" or manage your installed apps.
If you run a newer version of Android, you can see the recently opened apps for quick access. If the Play Store was not recently opened, tap the "View All Apps" section and find the "Google Play Store" on that list. Once you have pressed the appropriate list, enter the "Storage" section and then press the "Clear Storage" button. A message will appear because you know that Play Store data will be wiped clean and then press the "OK" button to confirm it.
Since there is not much to create in the Play Store, the cleansing of data will not be a question if you have to do it often. Once you have cleared the data successfully, continue and restart the phone before proceeding to make sure everything runs smoothly.
Enter the Magic Manager app, then use the "Start SafetyNet check button". You need to download a fast extension that Magic needs to initiate the SafetyNet control. Press "Yes" to confirm it, and within a few seconds you should see the message "SafetyNet Check Success" if everything went well when you installed Magic before.
If the SafetyNet control fails for any reason, see  our guide on fixing errors like "CTS Profile Mismatch."
Step 5: Verify your Play Store Status
Return and install Magic without tipping Play Store data is not enough because Play Store is already checked to see if your device threw the SafetyNet flag on initial installation. It will be flagged as unverified until you clear Play Store data, which some may not have shown otherwise. Now that you know that your device has passed the SafetyNet control, it is also safe to do with the Play Store certificate control.
Enter the Play Store, tap the menu on the left and go to "Settings". Scroll down to the "About" section, and the device should now display the message "Device is certified" under the "Play Protect certification" section. That's all! Now you are all certified again and can keep you protected and get all the updates as usual from here.