[FIX] FED-Patcher v8 (ForceEncrypt Disable Patcher)

mikevb

Member
Jan 9, 2017
28
4
0
Re-visiting a question from a couple years ago, could someone add an addon.d script for this? The issue, at the time, was something about not having access to the boot image when the script would be run, but Magisk seems to do it just fine (I haven't looked too deep into the nitty-gritty).
 

madbat99

Senior Member
Mar 1, 2014
5,538
3,285
113
Re-visiting a question from a couple years ago, could someone add an addon.d script for this? The issue, at the time, was something about not having access to the boot image when the script would be run, but Magisk seems to do it just fine (I haven't looked too deep into the nitty-gritty).
Not the same. You have to patch before you boot system to avoid encryption. Even if you patched it after, you would already be encrypted.
 
Last edited:

mikevb

Member
Jan 9, 2017
28
4
0
Not the same. You have to patch before you boot system to avoid encryption. Even if you patched it after, you would already be encrypted.
From what I can tell, Magisk's addon.d script is run as soon as Lineage's update is finished (even before other zips I queued), unless updating Lineage otherwise triggers Magisk's reinstall, I can only assume it's Magisk's addon.d script. So why couldn't fed patcher's addon.d script be run at the same point?

This was from memory of Lineage's update a few days ago, just tested and reproduced no problem. In the header for the Magisk bit it actually states it's Magisk's addon.d script.
Steps:
  1. have Magisk installed
  2. select lineage ota (for dirty flash)
  3. select "Add more zips"
  4. select fed patcher
  5. swipe to flash
  6. watch lineage update, then magisk's addon.d script, then fed patcher

Using Nexus 6, TWRP 3.2.1.0.
 

spiral777

Senior Member
Oct 21, 2011
574
221
73
33
Chicago
Xt1103

Hello everybody,

I created a tool - initially for the nexus 9 (flounder|flounder_lte) - that gets rid of the ForceEncrypt flag in a generic way (meaning it should work no matter what rom you are on). It does that by patching the currently installed boot.img.
I enhanced that tool to make it work for other devices too. (See the list below to see if your device is supported)

Disclaimer
Code:
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about the features in this tool
 * before using it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
 */
Needed this in the worst way for my nexus 6...now I can flash oreo... Thank you
 

Ing_Emperor

Member
May 24, 2013
28
5
0
I can confirm it is working for Android 8.1 Oreo on Nexus 6! My phone is not encrypted anymore, thank you a lot :)

Tested on newest bootloader/baseband with official LOS 15.1.

1. Format Data (NOT WIPE!) in TWRP, go into "Wipe"-menu und then, there's a button "FORMAT DATA", you have to type "yes"
2. Copy your ROM/Gapps/Patcher onto the phone or use a USB OTG drive
3. Flash 1. ROM 2. Gapps 3. Patcher
4. Reboot, you're done :)
 

Swaziboy

Member
Sep 28, 2011
42
14
28
Decrypt N9 - what's the correct sequence of steps?

Hi folks, wondering if someone can help me decrypt my N9 device.

I am running RR Remix and the latest version of TWRP as well as vendor img etc. from Google.

My challenge is I cannot figure out what order or tasks I need to complete to successfully decrypt the device - I either end up in a boot loop on the RR boot screen, a google boot screen (the word "Google") or it loads into RR, but the device is encrypted.

Can you confirm this is the sequence of events to perform please. Note, this is after I have installed latest Google vendor.img, TWRP, and performed a full factory reset on the device.
  1. Flash RR remix + GApps
  2. Boot at least once into ROM
  3. Reboot to recovery
  4. Flash Fed-patcher
  5. Format (not wipe) Data
  6. Reboot

If I follow this list of steps, I get a bootable device, but still encrypted - I am sure I am missing something, so any help would be appreciated.
 

madbat99

Senior Member
Mar 1, 2014
5,538
3,285
113
Hi folks, wondering if someone can help me decrypt my N9 device.

I am running RR Remix and the latest version of TWRP as well as vendor img etc. from Google.

My challenge is I cannot figure out what order or tasks I need to complete to successfully decrypt the device - I either end up in a boot loop on the RR boot screen, a google boot screen (the word "Google") or it loads into RR, but the device is encrypted.

Can you confirm this is the sequence of events to perform please. Note, this is after I have installed latest Google vendor.img, TWRP, and performed a full factory reset on the device.
Flash RR remix + GApps
Boot at least once into ROM
Reboot to recovery
Flash Fed-patcher
Format (not wipe) Data
Reboot


If I follow this list of steps, I get a bootable device, but still encrypted - I am sure I am missing something, so any help would be appreciated.
Try this disabler.
Follow his instructions.
 
  • Like
Reactions: Swaziboy

Swaziboy

Member
Sep 28, 2011
42
14
28
Disabled encryption - solved

Try this disabler.
Follow his instructions.
Thanks very much @madbat99

Can confirm this worked for me as follows:
  • Boot into recovery (TWRP)
  • Formatted ALL partitions (system, data, cache, dalvik)
  • Perform full factory wipe (probably not necessary)
  • Flash (in order): ROM, the linked (above) encryption fix, gapps
  • Reboot
 
Last edited:

mrk2815

Senior Member
May 16, 2012
1,350
308
103
burbank
so how do you use the fed patch if you are going to flash a custom rom . So do you first install the fed patcher before installing the rom and gapps or after . what is the order to install so that the decription is removed on lineage builds.
 

mrk2815

Senior Member
May 16, 2012
1,350
308
103
burbank
i tried the way that was explain in one of the posts.i installed rom, then fed patcher then gapps then reboot.i set up my device and still i have device incripted on lineage 15.1.what did i do wrong.

---------- Post added at 07:15 PM ---------- Previous post was at 07:14 PM ----------

i'm using twrp 3.2.1 for the flash an then fedpatcher on nexus 6 but its not decripting for me.what did i do wrong.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone