Development [DISCONTINUED][TWRP][3.5.2-11][dre8t][WIP] Unofficial TWRP for OnePlus Nord N200 5G

Search This thread

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T

Disclaimer:​

Code:
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* 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.
* Your warranty will be void if you tamper with any part of your device / software.

Warning: This build is still WIP in early stages. I posted this version so everyone can at least flash magisk and other standard zips without too much hassle. Expect bugs and possibly other unexpected behaviors, especially if you attempt to use any features not listed below. Currently working on encryption and getting the other TWRP features online.

=========

Update (10/14/2021): I am taking a hiatus from this unofficial TWRP build. With that being said, you are welcome to fork the device tree at the bottom of the post or submit PRs. I may continue working on this when I have more time, but I'm sure another experienced developer will be able to pick up and accomplish what I had trouble with before.

=========


What Works:

* Booting to TWRP.
* Installing ZIPs.
* System, Product, Vendor, ODM, opluslog, Metadata, Persist, modem.
* a/b slot
* sdcard

What doesn't work:​

* userdata decryption. Requires forceencrypt disabler.
* Backup for any partition besides Super.
* Restore
* Factory Reset
* CPU temperature

Downloads:​

0.2.0: https://www.androidfilehost.com/?fid=7161016148664790178
0.1.0: https://www.androidfilehost.com/?fid=7161016148664789523

Installation:​







This release is built w/ the stock kernel (5.4.61-qgki-gf8e532b).

Source
Manifest: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp
Device Tree: https://github.com/EnumC/android-OnePlusN200TMO-TWRP
Pull requests to the device tree are welcome!

Ayee soo I'm working on fixing up your twrp. Can you inform me how you linked the kernel modules into the build? I got it "booting" (stays at bootloader is unlocked and can't be trusted screen but with adb recovery commands working. I found a big reason you couldn't get decryption working. Wrong sysfs location listed in the fstab. I'll send a pull request 😎 also most of your "inclusion of fbe" is already included in device/qcom/twrp-common 👍
 
Feb 18, 2014
21
2
Moto G 5G

Disclaimer:​

Code:
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* 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.
* Your warranty will be void if you tamper with any part of your device / software.

Warning: This build is still WIP in early stages. I posted this version so everyone can at least flash magisk and other standard zips without too much hassle. Expect bugs and possibly other unexpected behaviors, especially if you attempt to use any features not listed below. Currently working on encryption and getting the other TWRP features online.

=========

Update (10/14/2021): I am taking a hiatus from this unofficial TWRP build. With that being said, you are welcome to fork the device tree at the bottom of the post or submit PRs. I may continue working on this when I have more time, but I'm sure another experienced developer will be able to pick up and accomplish what I had trouble with before.

=========


What Works:

* Booting to TWRP.
* Installing ZIPs.
* System, Product, Vendor, ODM, opluslog, Metadata, Persist, modem.
* a/b slot
* sdcard

What doesn't work:​

* userdata decryption. Requires forceencrypt disabler.
* Backup for any partition besides Super.
* Restore
* Factory Reset
* CPU temperature

Downloads:​

0.2.0: https://www.androidfilehost.com/?fid=7161016148664790178
0.1.0: https://www.androidfilehost.com/?fid=7161016148664789523

Installation:​







This release is built w/ the stock kernel (5.4.61-qgki-gf8e532b).

Source
Manifest: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp
Device Tree: https://github.com/EnumC/android-OnePlusN200TMO-TWRP
Pull requests to the device tree are welcome!
Worked like a charm 😂
 

edale1

Senior Member
Sep 5, 2016
138
76
Is this still being worked on? What exactly still needs to be figured out to get TWRP fully functional?
 

AiM2LeaRn

Senior Member
Aug 11, 2021
52
10
Is this still being worked on? What exactly still needs to be figured out to get TWRP fully functional?
to be honest with you i notice most of the more recent one plus 8 devices use some kind of custom recovery (non-twrp) and the roms are sideloaded via adb or fastboot. TWRP still has some nice features though, i like the simplicity of EDL/Fast boot that EnumC integrated.
 

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T
Is this still being worked on? What exactly still needs to be figured out to get TWRP fully functional?
yes it is, i just got decryption of userdata working :) then fixed touchscreen on screen off, then fixed mtp/adb functionality on boot, fixed fastbootd, fixed flashing stock OTAs, tested flashing a stock OTA (from internal storage) and it worked with no issues. no red error messages at all. Only thing i have left to fix (before i apply for Official) is to fix booting the OS when building from source. THAT IS IT!. I will have a thread up soon with the usable (fastboot boot twrp.img ONLY, no fastboot flash boot, your device wont be able to boot any OS). but it at least can flash zip files, use SD card, use USB OTG.
 

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T
yes it is, i just got decryption of userdata working :) then fixed touchscreen on screen off, then fixed mtp/adb functionality on boot, fixed fastbootd, fixed flashing stock OTAs, tested flashing a stock OTA (from internal storage) and it worked with no issues. no red error messages at all. Only thing i have left to fix (before i apply for Official) is to fix booting the OS when building from source. THAT IS IT!. I will have a thread up soon with the usable (fastboot boot twrp.img ONLY, no fastboot flash boot, your device wont be able to boot any OS). but it at least can flash zip files, use SD card, use USB OTG.
And I can now boot the ROM. I'll have an updated TWRP thread posted later today, after thorough testing I will apply for official maintainer.
I will start work on LineageOS soon now that TWRP is nearly polished.
On a not so high note, my home internet just got disconnected a few hours ago due to a missed payment (T-Mobile at Home).

This is going to significantly hinder my ability to continue with bringup as I haven't had an active SIM card in months and my main source of internet connectivity just got axed until my tax refund rolls in.
Yaaaaaay. 😮💨
IMG_20220222_072228_332.jpg
img_20220222_072348_921-png.5543697
 

Attachments

  • IMG_20220222_072348_921.png
    IMG_20220222_072348_921.png
    165.5 KB · Views: 904
  • Like
Reactions: lentm

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T

These builds have an issue with being able to charge while in recovery (battery stats are not updated in recovery), and when the device dies, it will only charge via EDL mode) I do not recommend using these builds at this time for that reason. For temporary usage just to achieve a specific task and restore the previous boot image afterwards would be fine. If you need magisk, you need to use the magisk app to modify your stock boot image, and disable verity and verification (fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img) which requires having the stock vbmeta.img

Here are my latest TWRP and OrangeFox recovery builds for N200.

DO NOT FASTBOOT FLASH THESE
You'll have a bad experience and probably won't be able to boot back into your stock ROM until you switch back to a proper boot.img.

Fastboot boot the image then go to advanced settings and "install this TWRP/OrangeFox" (depending on which you're on)

I'm running 11.0.5.0.DE17AA N/A firmware (on my T-Mobile branded variant)

You must remove your lockscreen security (you can re-enable it when you're done in twrp).
If you don't remove your password,pin,pattern,fingerprint you're not going to be able to access your data within recovery.


I'll upload my device tree later today and get threads made.
For me, I can daily driver this to achieve anything I need custom recovery.

The build flags I set should support metro, T-Mobile, and unbranded/NA variant.

I have flashed the latest NA build from the OnePlus website with this project and it switched me from slot A to slot B in the process without an issue

If you encounter issues (aside from decryption because your have a password set), I'll do my best to resolve them
 
Last edited:

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T


Here are my latest TWRP and OrangeFox recovery builds for N200.

DO NOT FASTBOOT FLASH THESE
You'll have a bad experience and probably won't be able to boot back into your stock ROM until you switch back to a proper boot.img.

Fastboot boot the image then go to advanced settings and "install this TWRP/OrangeFox" (depending on which you're on)

I'm running 11.0.5.0.DE17AA N/A firmware (on my T-Mobile branded variant)

You must remove your lockscreen security (you can re-enable it when you're done in twrp).
If you don't remove your password,pin,pattern,fingerprint you're not going to be able to access your data within recovery.


I'll upload my device tree later today and get threads made.
For me, I can daily driver this to achieve anything I need custom recovery.

The build flags I set should support metro, T-Mobile, and unbranded/NA variant.

I have flashed the latest NA build from the OnePlus website with this project and it switched me from slot A to slot B in the process without an issue

If you encounter issues (aside from decryption because your have a password set), I'll do my best to resolve them
Decryption does work with Android 12 (including GSI) this is NOT a device specific bug. You may be able to find a flashable patch to disable force encryption to allow you to mount userdata in recovery
 

Link575

Senior Member
Dec 21, 2015
142
27
Samsung Galaxy S22 Ultra
Hey I'm having issues getting your TWRP to flash. I'm fastboot booting it but despite picking the TWRP version it shows up as OrangeFox and there's not advanced settings. Any idea what I'm doing wrong?

Edit: NVM I see now install this.... but it seems the TWRP is OrangeFox.
 
Last edited:

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T
Hey I'm having issues getting your TWRP to flash. I'm fastboot booting it but despite picking the TWRP version it shows up as OrangeFox and there's not advanced settings. Any idea what I'm doing wrong?
Edit: NVM I see now install this.... but it seems the TWRP is OrangeFox.
Yeah I had a derp. I'll get that fixed
 
  • Like
Reactions: Link575

Link575

Senior Member
Dec 21, 2015
142
27
Samsung Galaxy S22 Ultra
Hey I'm having issues getting your TWRP to flash. I'm fastboot booting it but despite picking the TWRP version it shows up as OrangeFox and there's not advanced settings. Any idea what I'm doing wrong?

Yeah I had a derp. I'll get that fixed
Np and thanks for your work. Curious, will we be able to wipe the phone so no more dirty flashing? Or it's just for flashing only.
 

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T
Mod Edit├┤Quote removed as post was removed├

you can look at my GitHub trees here:
You're right I totally copy and pasted EnumC's work without working decryption and when I compiled it decryption magically worked. That user messed up by wiping the Super partition partition within TWRP. Because of this I will be disabling the ability to wipe the super partition and probably more.

Stick to your GSI's while I do ACTUAL dev work.
 
Last edited by a moderator:

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T
Mod Edit├┤Quote removed as post was removed├

It's all stolen yupp. Dude look at the commit history. That was ME. NOT stolen in any way 🤣 even the tree I initially forked was a super generic base that I had to add device specifics to. That gpt-utils didn't shim itself for our specific device 😂🤣

Just to show you how much I "copied" (not quite sure who I could have copied from, other devices? CAF?) I'm going to successfully bring up TWRP on the N100 too.

Am I supposed to disable the terminal to prevent people from bricking their phones?

Don't blame my software out of spite of me. That's just petty. That guy could have broken any phone that way in ANY TWRP not just mine.

(This isn't fully up to date with my local changes yet)

I bet this work is all stolen too. I'm nearly at the point of being able to compile full custom ROMs for this specific device with a CAF based kernel I'm bringing up myself.

I'll let my software speak for itself, I reaaaaaaaally don't need to defend it like this 😂
 
Last edited by a moderator:

Travisholt92

Senior Member
Jun 28, 2012
1,313
1,192
31
Fort Wayne, Indiana
OnePlus 8
OnePlus 8T
Mod Edit├┤Quote removed as post was removed├

Look at the commit history yourself before you make such accusations. Download his device tree and my device tree, run a diff script or use meld to see just how much difference there is between my tree and his. It's quite a bit more than you're making it out to be 😂🤣 I HAD used one of EnumC's prebuilt TWRPs and shimmed some files within it as a proof of concept before implementing those changes and many more into a new build tree. And I wouldn't have needed EnumC's previous TWRP work to make it happen. And with my lineageOS bringup, who am I stealing that from? Can you tell me who else is working on lineageOS for the n200? Because the dev group for the N200 all seems to be waiting for me to finish bringup 🤷 So please show me who I'm stealing all of this work from so I can give credit where credit is due. I know EnumC is going to get a shout-out in all of my n200 ROM/recovery threads.
 
Last edited by a moderator:

Top Liked Posts

  • There are no posts matching your filters.
  • 10

    ***​

    This is an unofficial and early build of TWRP that has not been updated since 2021. If you want a functional custom recovery, get the official LineageOS Recovery from the LineageOS Thread.​

    ***​

    Disclaimer:​

    Code:
    * I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
    * 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.
    * Your warranty will be void if you tamper with any part of your device / software.

    Warning: This build is still WIP in early stages. I posted this version so everyone can at least flash magisk and other standard zips without too much hassle. Expect bugs and possibly other unexpected behaviors, especially if you attempt to use any features not listed below. Currently working on encryption and getting the other TWRP features online.

    =========

    Update (10/14/2021): I am taking a hiatus from this unofficial TWRP build. With that being said, you are welcome to fork the device tree at the bottom of the post or submit PRs. I may continue working on this when I have more time, but I'm sure another experienced developer will be able to pick up and accomplish what I had trouble with before.

    =========


    What Works:

    * Booting to TWRP.
    * Installing ZIPs.
    * System, Product, Vendor, ODM, opluslog, Metadata, Persist, modem.
    * a/b slot
    * sdcard

    What doesn't work:​

    * userdata decryption. Requires forceencrypt disabler.
    * Backup for any partition besides Super.
    * Restore
    * Factory Reset
    * CPU temperature

    Downloads:​

    0.2.0: https://www.androidfilehost.com/?fid=7161016148664790178
    0.1.0: https://www.androidfilehost.com/?fid=7161016148664789523

    Installation:​

    1. Run
    Code:
    fastboot boot twrp-3.5.2-11-holi.img
    . This will not boot you to twrp, but you should see the device boot to system successfully. If it boots properly, run adb reboot bootloader. If it bootloops or freezes, STOP. Leave your model number in the comments and force reboot your device.

    2. Run
    Code:
    fastboot getvar current-slot
    to get your current active partition slot. If it's A, then run
    Code:
    fastboot flash boot_a twrp-3.5.2-11-holi.img
    . If it's B, run
    Code:
    fastboot flash boot_b twrp-3.5.2-11-holi.img

    3. Run
    Code:
    fastboot reboot
    to get back to the system

    This release is built w/ the stock kernel (5.4.61-qgki-gf8e532b).

    Source
    Manifest: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp
    Device Tree: https://github.com/EnumC/android-OnePlusN200TMO-TWRP
    Pull requests to the device tree are welcome!
    4

    These builds have an issue with being able to charge while in recovery (battery stats are not updated in recovery), and when the device dies, it will only charge via EDL mode) I do not recommend using these builds at this time for that reason. For temporary usage just to achieve a specific task and restore the previous boot image afterwards would be fine. If you need magisk, you need to use the magisk app to modify your stock boot image, and disable verity and verification (fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img) which requires having the stock vbmeta.img

    Here are my latest TWRP and OrangeFox recovery builds for N200.

    DO NOT FASTBOOT FLASH THESE
    You'll have a bad experience and probably won't be able to boot back into your stock ROM until you switch back to a proper boot.img.

    Fastboot boot the image then go to advanced settings and "install this TWRP/OrangeFox" (depending on which you're on)

    I'm running 11.0.5.0.DE17AA N/A firmware (on my T-Mobile branded variant)

    You must remove your lockscreen security (you can re-enable it when you're done in twrp).
    If you don't remove your password,pin,pattern,fingerprint you're not going to be able to access your data within recovery.


    I'll upload my device tree later today and get threads made.
    For me, I can daily driver this to achieve anything I need custom recovery.

    The build flags I set should support metro, T-Mobile, and unbranded/NA variant.

    I have flashed the latest NA build from the OnePlus website with this project and it switched me from slot A to slot B in the process without an issue

    If you encounter issues (aside from decryption because your have a password set), I'll do my best to resolve them
    3
    This twrp build was abandoned and is very likely to cause issues. I would not base anything off this. If you are interested in building twrp of your project, I would suggest check out their resources for building.
    Yeah, I made this unstable build to root the phone initially. This was back when practically no development was available for this device.
    Since this thread keeps getting bumped to the front, I have added an additional disclaimer to the OP that points to the official LineageOS recovery. If anyone wants to take over this thread and the GitHub repo, feel free to PM me.
    3
    Mod Edit├┤Quote removed├

    Do not share my broken builds.
    There is a high priority bug with charging from 0% (and charging in recovery) that needs to be addressed before I promote it here again on XDA.

    And it's definitely not stolen, the broken builds were made from trees for a moto device that I brought up from information obtained from the latest stock dump that I extracted and staged myself/fastboot commands/adb getprop and a few bits pulled from OnePlus 9 Pro after talking with the 9 Pro TWRP developer (Nebrassy) asking what he would suggest, and he suggested forking his entire tree as a base, which I also did not do for TWRP bringup.

    There are sooo many boardconfig flags alone that are set properly in my tree that weren't event touched or present in EnumC's TWRP because he used a script to generate his base for TWRP. I tried the script and didn't like how minimal information was output, so I went the route suggested by ArtiicPanda to fork his personal Moto TWRP tree which is for a device on the same chipset, and use it for a base, upon analysis of the source I deemed this to be the cleanest base that I could use. I then stripped Motorola OEM specific code, substituted with alternatives for either CAF (Qualcomm) source for our specific chipset's CAF tag, or from the OnePlus 9/Pro modified as much as necessary to be meant specifically for N200.

    I really shouldn't have to explain my development process to prove myself against these claims that you know damn well to be false. I'm very open about my development process, secrets when it comes to these projects has an overall negative impact on the community and slows progress for everyone.

    I keep linking my GitHub in response because I have alot of commit history on there. Albeit quite noobish commit history as I'm not the best with using Git, but I put my time into doing all of this crap not just for myself but in hopes that it gives other people a better user experience with their own devices. Just to have people such as yourself claiming "he steals work" because you don't know how to click a link a look at a few commits yourself?

    Just stop man. You're not doing anyone any favors by trying your absolute hardest to push away one of the two ROM developers on a device that has no custom ROM support aside from GSI.
    2
    Is this still being worked on? What exactly still needs to be figured out to get TWRP fully functional?
    yes it is, i just got decryption of userdata working :) then fixed touchscreen on screen off, then fixed mtp/adb functionality on boot, fixed fastbootd, fixed flashing stock OTAs, tested flashing a stock OTA (from internal storage) and it worked with no issues. no red error messages at all. Only thing i have left to fix (before i apply for Official) is to fix booting the OS when building from source. THAT IS IT!. I will have a thread up soon with the usable (fastboot boot twrp.img ONLY, no fastboot flash boot, your device wont be able to boot any OS). but it at least can flash zip files, use SD card, use USB OTG.