Rooting your Android device may not be the best of ideas. Of course, in this manner, you gain root access to the Android OS but that comes with a cost.
For example, many Android users get the error message ‘This app will be terminated because a security violation has been detected‘ when they try to launch their favorite games.
This alert is often accompanied by various error codes, such as:
- 00000034
- 00000032
- 00000021
- 00000009
- 00000003
- 00000004
- 00000035
This security alert affects other apps as well, not just games.
In this guide we’ll be focusing on how to get rid of this alert when it prevents you from playing Android games.
Some of these solutions may prove to be universal, so it’s worth trying them out in other cases as well.
Security policy violations on Android
Before we dive in into the meat of this guide, let’s try to understand why this error occurs in the first place.
So, why does this error keepspopping on your phone’s screen? This issue mainly affects rooted Android devices, but it can sometimes occur on non-rooted Android phones as well for unknown reasons.
Note: I strongly advise you not to root your phone to avoid system issues.
How to Fix This app Will be Terminated Errors
Method 1: Reboot your phone
Using a simple solution such as rebooting your phone may be the answer to your problem.
So, go ahead and restart your device to see if you’re lucky enough to have solved this issue on the first go.
Method 2: Reinstall the game
A second solution is to reinstall the problematic game. If you’re using a non-rooted phone and this error occurs only when launching one particular game, this may indicate there is something wrong with the respective game.
Uninstall it completely from your phone and then reinstall it again from the Play Store. Hopefully, this will work.
Turning off the option that your instances are rooted should fix the problem.
Method 3: Close the emulator
If this problem occurs on your emulator, then close it. Try to play the game directly on your phone to see if the error message still occurs.
Some users suggested that closing the game on the phone and launching it again on the emulator solved the problem.
So, it seems that simply switching from your emulator to your phone and then back to your emulator does the trick.
If you’re using Bluestacks, run the problematic game in a 64-bit instance instead of 32-bit instance.
Method 4: Install the game on the phone
Your Android phone may close an app based on a security violation issue if you installed your game on the external storage. Make sure that it’s installed on your phone.
Method 5: Disable SuperSU
If you installed SuperSU, disabling the tool or uninstalling it completely may help you to fix this issue.
- Go to Settings, check the list of the apps installed on your device
- Select SuperSU and disable it.
Method 6: Go Magisk
Some of the suggestions listed under this method may trigger boot loops, so proceed carefully.
If you use a rooted phone (which I don’t recommend), you can use Magisk to fix this error.
This tool lets you root your system but doesn’t change anything in the system partition. It only modifies the boot partition.
So, hide NXB and Magisk. Now, restart you device and then remove non-hide Magisk. You should be able to launch your game or app now.
If that didn’t work, check to see if you use SuperSU and uninstall it. You can also remove all root and install only Magisk.
Method 7 – Repeatedly enter the game
There’s an interesting workaround that did the trick for many gamers. Basically, you let the problematic game run in the background and then you keep on closing and launching it several times.
- Step 1 – Launch the game
- Step 2 – Wait for 30 seconds or so
- Step 3 – Exit the game
- Step 4 – Enter the game
- Step 5 – Keep on doing that, exist and enter the game several times.
Method 8: Contact support
Well, if none of the methods listed in this guide helped, contact the support team of your game and provide them with as much information about the problem as possible.
Conclusion
There you have eight possible solutions to fix the error ‘This app will be terminated because a security violation has been detected‘.
Let us know which one worked for you.