The Custom Droid

Android Tutorials, Tips and Tricks

How to Fix Factory Mode Harmful App Warning on OxygenOS 5.0.1

Fix Factory Mode Harmful App Warning on OxygenOS

Yet another security issue has risen concerning OnePlus 3 and 3T running OxygneOS 5.0.1. Here in this article, we will show you how to fix Factory Mode Harmful App warning.

Advertisement

OnePlus has been pretty quick with updates recently. And no doubt they are meant to make the overall experience better with latest features and security updates. Recently, the manufacturer announced OxygenOS 5.0.1 update for the OnePlus 3 and 3T. The new build brought Qualcomm aptX HD BT codec, December security patches, and several other improvements. Unfortunately, the update also brought an unusual warning with it. After several speculations, it is believed that the warning isn’t without a reason and users who have installed the update should be concerned.

Fix Factory Mode Harmful App Warning on OxygenOS
Fix Factory Mode Harmful App Warning on OxygenOS 5.0.1

Google Play Protect shows ‘Factory Mode’ as Harmful App on OnePlus 3/3T

It is not the first time that OnePlus has been blamed for its security flaws. We have already seen them collecting critical user data through OnePlus Device Manager. And later in November, last year, ‘Engineering Mode’ came into light. It was an app that came pre-installed in the firmware and could be used as a potential backdoor for gaining root access.

Most of the previous issues required extensive research and were not easily visible to an average user. But thanks to Google Play Protect, that wasn’t the case here. Before you even get to the steps to fix Factory Mode Harmful App warning, read a bit more about the issue below.

A number of users, who have already updated to OxygenOS 5.0.1, have reported (Reddit, OnePlus) seeing ‘Harmful App‘ warning for ‘Factory Mode‘ app via Google Play Protect. Upon expanding the message, it is shown that “This app contains code that attempts to bypass Android’s security protections”.

Fix Factory Mode Harmful App Warning - Screenshot

Now, it doesn’t explicitly state which part of the app code is harmful. It might require some detailed insight before we get to the conclusion. But we are quite sure Play Protect warning is not something a user should ignore.

It also seems like OnePlus has called off the OOS 5.0.1 OTA updates. So for the time being, until we have an official statement from OnePlus regarding it, you can try and uninstall Factory Mode app from your device.

How to Fix Factory Mode Harmful App Warning

A few users have also mentioned that using the ‘Disable’ option still doesn’t stop the warning notifications. So, we have covered a few simple ADB commands that will help you completely uninstall the app, and fix Factory Mode Harmful App warning. The method does not require any special permissions.

  1. You must first enable USB debugging and install Android SDK tools on your PC.
  2. Open the CMD/PowerShell or Terminal window on your PC.
  3. Connect your OnePlus 3/3T to the PC.
  4. Check if your device is correctly being detected by ADB:
    adb devices
  5. The command should return a device ID.
  6. Next, initiate the ADB shell:
    adb shell

    In Terminal:

    ./adb shell
  7. Finally, uninstall Factory Mode app:
    pm uninstall -k --user 0 com.oneplus.factorymode
    
    pm uninstall -k --user 0 com.oneplus.factorymode.specialtest

    In Terminal:

    ./pm uninstall -k --user 0 com.oneplus.factorymode
    
    ./pm uninstall -k --user 0 com.oneplus.factorymode.specialtest
  8. This should easily remove the app and fix Factory Mode Harmful App warning.

OnePlus is definitely rising above as an Android manufacturer. But issues like these, that concerns the security of a device could negatively affect its reputation. We are waiting to see OnePlus’ response regarding this and will keep you updated.

Via: XDA

About the Author

Founder and Editor-in-Chief

Dhananjay has more than 11 years of experience in Android software customization and development, and has spent the past 10 years writing about it. He spends most of his prime time reading, learning and writing about Android and other open-source projects. He is also a community-taught web developer. Apart from that, he loves mountain biking and playing video games on his PlayStation.

Leave a Reply

Comments are moderated, and published only if they are relevant to the topic and add value in a constructive way. If you disagree with something, please be polite and respectful. We suggest you read our comment policy before commenting.