• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TheCustomDroid

  • News
    • 2018
    • 2019
  • Tips
  • ROM
    • Stock Firmware
    • Custom ROM
  • Downloads
  • Root
  • Reviews
  • MyMobileStory
Home » Tips » Disable DEFEX Security to Root Samsung Galaxy Devices on Oreo (Guide)

Disable DEFEX Security to Root Samsung Galaxy Devices on Oreo (Guide)

Tips By Dhananjay on October 13, 2018

Every new Android version carries few implications that would affect the normal rooting procedure. In the same manner, manufacturers too might add different layers of security. As a live proof, Samsung injected a new security feature known as ‘DEFEX‘ that would prevent you from rooting your Samsung Galaxy device running Android Oreo. If you’d like to properly root your Samsung Galaxy device on Oreo, then this tutorial will help you easily disable DEFEX security.

Recently, many Galaxy smartphones including the Note 9, A8/A8+, J7 Pro, and J5 Pro received the Android Oreo update. However, not much later users realized that rooting their phones on Oreo didn’t succeed. Although, flashing Magisk/SuperSU would work, but the apps that required root permissions would fail rigorously.

Back in September, a guest user on XDA posted a thread explaining the cause to this problem and put Samsung’s new security feature ‘DEFEX’ at fault. According to him, this new security feature in the latest Samsung firmware prevents any process to run as root, until it is has been whitelisted in the provided kernel source code. A good example of this would be apps like Titanium Backup and ES File Explorer, which when trying to run an executable in /data/local/tmp, gets killed.

To sum up, even if you manage to successfully flash Magisk/SuperSU to root your Samsung Galaxy device on Oreo, many root-enabled apps/mods/Magisk modules would fail to run.

Recommended: How to Bypass Pre-normal RMM State on Samsung

How to Disable DEFEX Security Feature on Samsung Galaxy Devices?

Even more recently, another XDA forum member – AndroidDef came up with a solution that would help you easily disable DEFEX security to root your Galaxy device on Oreo. Upon thorough research, the forum member found a HEX patch that when injected into the Magisk/SuperSU boot patching process disables the new security feature. Finally, he compiled the new modified root packages for the users. Simply follow the instructions below.

  1. Download DEFEX patched Magisk/SuperSU zip package:
    • SuperSU_2.82_SR5_for_defex .zip
    • Magisk_2018-10-08_for_defex .zip
  2. Make sure to transfer the downloaded package to the phone’s storage, if you have downloaded it on your PC.
  3. Boot your Samsung Galaxy device into TWRP recovery mode.
  4. Tap on the ‘Install’ button.
  5. Navigate to the location where the zip file was downloaded/transferred.
    Disable DEFEX Security Feature on Samsung Galaxy Devices - Instructions
  6. Select the zip file and swipe the button on the screen to disable DEFEX security feature on your Samsung Galaxy device.
  7. Once the flashing process finishes, tap on ‘Reboot System’.

When your phone boots back into the OS, you should be able to run root-enabled apps/Magisk modules on it.

At the time of writing this, the following Samsung smartphones contain this new DEFEX security feature:

  • Galaxy A8 / A8+ 2018 – 8.x.x – (SM-A530F / SM-A730F) – Tested
  • Galaxy J7 Core – 8.x.x – (SM-J701F) – Not Tested
  • Galaxy J7 Pro – 8.x.x – (SM-J730*) – Tested
  • Galaxy J5 Pro – 8.x.x – (SM-J530*) – Not Tested
  • Galaxy Note 9 – 8.x.x – (SM-N960F – Base: RH & RI) – Tested

As you can see, users have already confirmed that this new patch works flawlessly on Galaxy A8/A8+, J7 Pro, and Note 9 running the latest Android Oreo firmware. If the regular rooting process is not working for your Samsung Galaxy device and you’re looking for a solution, then do give a try to the DEFEX patched Magisk/SuperSU package provided here. Credits for all this go to XDA member AndroidDef!

So, this was our tutorial to help you disable DEFEX security to root Samsung Galaxy devices on Oreo. If you have any questions, please leave a comment below.

#Android 8.0 Android 8.1 Android Oreo How-To MagiskSU Rooting guides Samsung SuperSU

«
Previous story
Sony Xperia XZ2 is getting the Android 9.0 Pie update now
»
Next story
Download Nokia Camera App Port for Any Android 8.0+ Device (APK)

Dhananjay

Editor-in-Chief |

He comes with a background of exploring and operating the Android OS since the past 8 years. Its open-source nature and the enormous scope for customization have intrigued him and ultimately led him to start "The Custom Droid". Most of the time, you will find him tinkering with his Android device, and spending the rest mountain biking or gaming on his PS4.

Reader Interactions

Comments

  1. Adrian Harris says

    April 28, 2019 at 9:37 am

    Could you help me please. Do I install the defex file befor or after root? Thank you very much.

    Reply
    • Dhananjay says

      April 30, 2019 at 1:59 pm

      Hi Adrian. I believe you’re using Magisk to root your Samsung Galaxy device, right?

      Reply

Leave a Reply Cancel reply

Do not flame, hate, spam, or impersonate staff

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Latest ROMs

Download and Install Nokia 7.1 Android 10 Update

Download and Install Nokia 7.1 Android 10 Update (OTA)

Download and Install Samsung Galaxy S10 Android 10 (One UI 2.0) Update

Download and Install Galaxy S10/S10+/S10e Android 10 (One UI 2.0) Update

Download Asus Zenfone 5Z Stable Android 10 Update

Download Asus Zenfone 5Z Android 10 Update (OTA)

Download and Install One UI 2.0 Beta on Samsung Galaxy Note 9

Download and Install One UI 2.0 Beta on Galaxy Note 9 (OTA)

Download and Install OnePlus 6/6T Android 10-based OxygenOS 10 Update

Download OnePlus 6/6T Android 10-based OxygenOS 10.0.1 Update

Download Asus Zenfone 6/6z Android 10 OTA Update

Download Asus Zenfone 6/6z Android 10 Update (OTA)

How to Install Android 10-based One UI 2.0 Beta on Samsung Galaxy Note 10/Note 10+

Install One UI 2.0 Beta on Samsung Galaxy Note 10/10+ (OTA)

Recent comments

  • Dhananjay on Install Stable Android 8.1 Oreo on Moto G4/G4 Plus (OTA and TWRP)
  • abdi musa on Install Stable Android 8.1 Oreo on Moto G4/G4 Plus (OTA and TWRP)
  • Dhananjay on How to Root Redmi K20 Pro/Xiaomi Mi 9T Pro and Install TWRP Recovery
  • Yves on How to Root Redmi K20 Pro/Xiaomi Mi 9T Pro and Install TWRP Recovery
  • Dhananjay on Install TWRP & Root Samsung Galaxy S10/S10+/S10e using Magisk

Latest Downloads

Download Frija Tool - Samsung Firmware Downloader

Download Frija Tool and How to Use it to Download Latest Samsung Stock Firmware

Download Google Camera Port for Xiaomi Mi A3

Download Google Camera Port for Xiaomi Mi A3 (Works Without Root)

Download Google Camera 7.2 and 7.0 Ports with Astrophotography Mode

Download Google Camera 7.2/7.0 Ports with Pixel 4 Astrophotography Mode

Download Google Camera Port (GCam) APK

Download Google Camera Port for Any Android Device

Download Google Play Services for AR (ARCore) APK

Download Google Play Services for AR (ARCore) APK

Download All Google Pixel 4 (XL) Apps for Android Devices

Download Google Pixel 4 (XL) Apps for Your Android Device

Download OnePlus 7T and OnePlus TV Stock Wallpapers by Hampus Olsson

Download OnePlus 7T and OnePlus TV Stock Wallpapers

© 2019 · TheCustomDroid · Designed & optimized by NEXTVOID.com

  • About Us
  • Contact
  • We’re Hiring
  • Privacy Policy
  • Disclaimer
  • Terms of Use
  • Sitemap