Related
Updated post for Lineage OS 14.1
Thanks a lot to @Anik_khan , @P.Kosunen , TWRP and CM team and all XDA forumers who asked questions that allowed me to update my phone.
I am not responsible for any trouble you might run into, always cross-check your sources.
Whole process took me 1h15 / 1h30
Will rework/add links upon request, will quote names upon request,
Thanks,
Sources/Links:
http://forum.xda-developers.com/redmi-3/development/recovery-twrp-3-0-0-0-touch-recovery-t3340118
https://forum.xda-developers.com/redmi-3/development/rom-cyanogenmod-14-0-t3481701
http://forum.xda-developers.com/red...eveloper-rom-unlock-bootloader-t3339246/page6
http://en.miui.com/unlock/
Miflash: http://api.bbs.miui.com/url/MiFlash
Mi Unlock: http://bigota.d.miui.com/miflashunlock/MiFlashUnlock_1.1.0317.1_en.zip
http://en.miui.com/download-298.html
http://en.miui.com/a-234.html
https://twrp.me/devices/xiaomiredmi3.html
Others...
Request unlocking permission:
Go to http://en.miui.com/unlock/
"Unlock Now" (refresh if page fails to load)
Create a "Mi Account ID" (you can also create it from your phone Miui app)
Apply for unlocking permission: Your Name, Phone number, Justification "Android developer"
Download "Mi Unlock": http://en.miui.com/unlock/download_en.html
Extract "Mi Unlock" file ("MiFlashUnlock")
Install developer ROM:
Download Miflash tool http://api.bbs.miui.com/url/MiFlash
Install Miflash tool
Restart computer as per section: Windows 10 "Disable driver signature enforcement"
Download last Chinese developer ROM for Xiaomi Redmi 3 http://en.miui.com/a-234.html
Note: Global ROM does not allow for ROOT activation
Extract ROM, tgz, then tar
Reboot to recovery, power off, power on "Vol. up" + "Power"
Touch "Download" button (screen goes black)
Plug-in USB cable
Open Miflash tool
Click "Browse" and select directory from ROM extract
Select "Flash all" at the bottom
Click "Refresh" and then "Flash", wait for install
...
Maintain "Power" to reset the phone, let it boot
(You can also install whatever official MIUI ROM you want from there http://en.miui.com/a-234.html)
Windows 10 "Disable driver signature enforcement":
Maintain "Shift" key while you click the "Restart" option in Windows
"Troubleshoot" > "Advanced options" > "Startup settings" > "Restart"
...restarting...
F7 "Disable driver signature enforcement"
Unlock Bootloader:
AFTER YOU GET APPROVAL SMS (last request took 15 minutes to be accepted)
Ensure you installed a developer ROM ("Flash all")
Skip everything
Note: Login with your MIUI account if you have never done it, do NOT activate FIND application
Power OFF device
Start fastboot, hold "Vol. down" + "Power"
Execute "MiFlashUnlock.exe" from "Mi Unlock" extract
Agree and "Sign in" with your created "Mi Account ID"
Connect phone
Unlock
Restart...
Install TWRP:
Connect device to computer
Connect to WIFI
Activate Root on the phone (different from TWRP): Setting > Permissions > Root access
Activate root access
Phone will install and restart
...meanwhile...
Install Android tools https://developer.android.com/studio/index.html#linux-bundle-size
(Install Java SDK)
...phone restarted...
Run Windows command prompt as administrator
"Windows" key, type "CMD", right click "Run as administrator"
Execute "cd C:\Program Files (x86)\Android\android-sdk\platform-tools"
Or whatever is your path to Android SDK
Execute "adb devices", ensure that your phone is listed
Execute "adb root"
Execute "adb disable-verity" (Note: You do not need to perform this step again if you want to UPDATE TWRP version)
Restart... (disable verity to take effect)
Download TWRP application
http://download.jmzsoftware.com/TWRPManager.apk
Copy it at the root of your phone
Install it from MIUI embedded file explorer
Start TWRP application and wait for phone to prompt for root access
Give TWRP Root acess: Settings > Permissions (Device) > Root access
Allow TWRP root access (Next to all, long...)
Launch TWRP
Click sandwich menu ///
Install TWRP
DEVICE INFO > Device name: Xiaomi Redmi 3 / ido
INSTALL > Recovery version to install > click latest
INSTALL > Install Recovery
TWRP will download and install itself (Click Yes to try flash, Yes to reboot to recovery)
Install CM and GApps:
Download Lineage OS: https://forum.xda-developers.com/redmi-3/development/rom-cyanogenmod-14-0-t3481701
Download GApps ARM64 (7.1 for LineageOS 14.1): http://opengapps.org/
https://github.com/opengapps/opengapps/wiki/FAQ
Connect device to computer
Reboot to recovery (see "Reboot to recovery")
Select "Keep read only"
Manually wipe Data partition and System partition
(I wiped all because of "can't install this package on top of incompatible data" message)
Copy CM and GApps to phone
On TWRP: Install and flash ROM and GApps (add to queue, GApps takes a while)
Wipe Dalvik & Cache
Reboot
Recovery reboot:
- On CM
https://wiki.cyanogenmod.org/w/All_About_Recovery_Images
Activate Developer mode: https://wiki.cyanogenmod.org/w/Doc:_developer_options
Settings > Developer options > Advanced reboot = On
Hold the power button to see the reboot menu
- Using ADB
Run command prompt as administrator
cd C:\Program Files (x86)\Android\android-sdk\platform-tools
adb reboot recovery
Thanks man, awesome job!
Hey guys. Thanks for the guide, I'm stuck however. I installed the latest global developer ROM in order to root and flash twrp, but there is no native option to root the ROM. What am I doing wrong? Bootloader is unlocked with xiaomi approval. Or is root China Rev ROM exclusive? If yes, the op should make that very clear, so that even dimwits like me understand it.
Rotpeter said:
Hey guys. Thanks for the guide, I'm stuck however. I installed the latest global developer ROM in order to root and flash twrp, but there is no native option to root the ROM. What am I doing wrong? Bootloader is unlocked with xiaomi approval. Or is root China Rev ROM exclusive? If yes, the op should make that very clear, so that even dimwits like me understand it.
Click to expand...
Click to collapse
Hi there,
I did not use global ROM, true, don't know if possible with it.
Did you perform this step?
- Connect to WIFI
- Setting > Permissions > Root access
- Activate root access
The phone will then download a bunch of things and reboot.
After that you will be able to install TWRP and give it root access.
If not, tell me, I will update guide,
and you can reinstall Chinese ROM, to complete process, a matter of a few minutes.
Let me know
Thanks for your help! I already fixed in in the meantime, though. The permissions app only shows the root-button, if you are on the Chinese dev ROM. Which I wasn't (global one instead). Maybe you should add some extra weight to that in the guide. Other than that, it worked like a charm! Thanks buddy!
Edit: Sorry, didn't see that you pretty much already wrote all of that.
anyone else waiting more than two days for the request to be accepted?
en.miui.com/unlock/download_en.html
without waiting
Hi,
I have problem after this step
Install TWRP:
TWRP will download and install itself (Click Yes to try flash, Yes to reboot to recovery)
Click to expand...
Click to collapse
Answer from TWRP is Success, but after reboot to recovery there is no TWRP, just MI logo all the time.
Model is Redmi 3S Global
and of course:
C:\xx\platform-tools>adb disable-verity
Verity already disabled on /system
Click to expand...
Click to collapse
Have you downloaded the TWRP version for the 3 S? Not the Redmi 3?
I am not sure what are the differences here, but maybe the phone cannot boot if it is the wrong version.
parphane said:
Have you downloaded the TWRP version for the 3 S? Not the Redmi 3?
I am not sure what are the differences here, but maybe the phone cannot boot if it is the wrong version.
Click to expand...
Click to collapse
sorry, I realized that not all Redmi 3 are ido, my is land :crying: so TWRP for land is working
Hi all,
I am on:
- 02-06 nightly (https://download.lineageos.org/ido)
- ARM64 7.1 Stock GApps (http://opengapps.org/)
Camera app is not working at all, crashing instantly,
Do you know what could I have missed? Maybe not wiped correctly?
What could I do to troubleshoot/fix?
Thanks,
Answered: Inhibit Camera app automatic updates for the moment...
Updated post for LineageOS 14.1 and checked if links are still ok.
Hello there,
I need a little help : I get stuck trying to install the latest Chinese developper ROM.
I get a "ping target failed" error, as seen in the pic here : http://hpics.li/32bd109
Can you help me please ?
Galdanor
Galdanor said:
Hello there,
I need a little help : I get stuck trying to install the latest Chinese developper ROM.
I get a "ping target failed" error, as seen in the pic here : http://hpics.li/32bd109
Can you help me please ?
Galdanor
Click to expand...
Click to collapse
Hmm, never seen that one,
Just to be sure, you did the following steps:
- Restart computer as per section: Windows 10 "Disable driver signature enforcement"
[...]
- Reboot to recovery, power off, power on "Vol. up" + "Power"
- Touch "Download" button (screen goes black)
- Plug-in USB cable
- Open Miflash tool... (this I know you did cause of the screen capture)
Do you have any devices identified as not properly installed in the Window peripherals?
Maybe try and install Android tools (also in the tuto) before and try to issue commands to your device.
Also, Googling "ping target failed xiaomi" I found that: http://en.miui.com/thread-354050-1-1.html
You might want to use older tool version.
Let us know
Thank you for your time.
parphane said:
Also, Googling "ping target failed xiaomi" I found that: http://en.miui.com/thread-354050-1-1.html
You might want to use older tool version.
Let us know
Click to expand...
Click to collapse
This worked !
Can't believe I didn't google my error thoroughly... Seems that the older I get, the lazier I become...
Just need to wait for the approval SMS now.
Thanks a lot for your help !
Galdanor
ambient display (dt2w option) for me don't work
wetito said:
ambient display (dt2w option) for me don't work
Click to expand...
Click to collapse
We don't have DT2W support by default.
Sent from my Redmi 3 using XDA Labs
This rom drain my battere a lot. It's a Shame. 8 hours in aeroporto mode, 20% battery less
wetito said:
This rom drain my battere a lot. It's a Shame. 8 hours in aeroporto mode, 20% battery less
Click to expand...
Click to collapse
Maybe you did something wrong cause most of the people here on XDA have no issue.
Try using an older ROM, or clean install... let us know!
By the way, this is just a guide to flashing,
Which I believe was useful for you cause you were able to change ROM.
Don't report bugs/issues on the ROM here, it is just a guide, report them on the ROM thread itself: https://forum.xda-developers.com/redmi-3/development/rom-cyanogenmod-14-0-t3481701
Hey guys,
I really do not know what to do.
with redmi one - i did not have problems - ok only one time
now I tried to put new international rom on my redmi 3 in holiday. I really treid it for at least 10 hours now! no success. I think, i am stupid....
flash unlock with sms and tool "miflash_unlock-en-2.2.406.5" worked.
next step is to power off and turn on with power up and power button.
If I do this, the redmi device always goes to fastboot picture rabbit and does not react to anything.
At this point I could not do anything. I always waited until accu was empty (1day) and then try it again in some other way.
Is there some really good guide? I do not know what i am doing wrong.
thank you in advance.
my redmi 3s crashed yesterday and i have the same problem now.
see here:
https://forum.xda-developers.com/xiaomi-redmi-3s/help/phone-crashed-fingerprint-deleted-120-t3603930
for redmi 3 i downloaded a lot:
roms
02 MiFlashUnlock
03 TWRP
05 Root SuperSU
TWPR and RootSuperuser i do not get installed, too.
[TWRP][HUAWEI Y7-Y7 PRIME] recovery and root
Follow at your own risk, i don’t take any responsibility if anything goes wrong
Files are developed by chinese developers, so there’s limited support for this device so far.
Your warranty will be void after root
Supported Devices:
tested devices: TRT-AL00, TRT-AL00A, TRT-TL10, TRT-TL10A, TRT-L21A, TRT-LX1, TRT-LX3
no tested devices: TRT-LX2, TRT-L03, TRT-L53
Note: on some devices touch screen does not work in TWRP mode, you are advised to use mouse with OTG connector to work in TWRP
Tutorial:
RECOVERY
1. Backup all important data
2. Unlock bootloader of your phone
3. Download FILES
4. Extract downloaded file on your computer
5. Power off phone, Hold volume down and insert cable. phone should enter fastboot mode.
6. Open MAF32 and type ” fastboot flash recovery TRT-TWRP-3.1.1-0818.img ” and press enter
7. Once installation completed. Disconnect from pc. and hold volume up and power, keep holding until you see TWRP screen.
8. Recovery will be in chinese, Tap on right side button, and choose 2nd option, recovery will be changed to English.
ROOT
9. Now swipe to allow modifications. (Advised to make backup in TWRP for safe side)
10. Then tap on advanced. and tap root button.
11. Swipe to install root.
12. Reboot phone to normal mode.
13. After several boots , your phone should be up and running.
14. Now go in settings > Application manager > super su > permissions and allow all permissions.
15. Done, now install any root checker to verify root access.
thanks so much bro it works
add trt-l53 ... + i bricked my trt-l53 does anybody have a backup on mega or gdrive i need the firmware please
astusal said:
[TWRP][HUAWEI Y7-Y7 PRIME] recovery and root
Follow at your own risk, i don’t take any responsibility if anything goes wrong
Files are developed by chinese developers, so there’s limited support for this device so far.
Your warranty will be void after root
Supported Devices:
tested devices: TRT-AL00, TRT-AL00A, TRT-TL10, TRT-TL10A, TRT-L21A
no tested devices: TRT-LX1, TRT-LX2 TRT-LX3, TRT-L03
Note: on some devices touch screen does not work in TWRP mode, you are advised to use mouse with OTG connector to work in TWRP
Tutorial:
RECOVERY
1. Backup all important data
2. Unlock bootloader of your phone
3. Download FILES
4. Extract downloaded file on your computer
5. Power off phone, Hold volume down and insert cable. phone should enter fastboot mode.
6. Open MAF32 and type ” fastboot flash recovery TRT-TWRP-3.1.1-0818.img ” and press enter
7. Once installation completed. Disconnect from pc. and hold volume up and power, keep holding until you see TWRP screen.
8. Recovery will be in chinese, Tap on right side button, and choose 2nd option, recovery will be changed to English.
ROOT
9. Now swipe to allow modifications. (Advised to make backup in TWRP for safe side)
10. Then tap on advanced. and tap root button.
11. Swipe to install root.
12. Reboot phone to normal mode.
13. After several boots , your phone should be up and running.
14. Now go in settings > Application manager > super su > permissions and allow all permissions.
15. Done, now install any root checker to verify root access.
Click to expand...
Click to collapse
Hi Guys!!! I just root my device but it´s a little diferent the method, once you enter on advance, you have to tap install SU, it's take 3 tries to sucessfully instal Super SU, once Super SU installed the phone automatically reboot.
It's reboot a couple of time, and to check I install root checker and IT'S WORK!!!!!!!!
Thanks a lot for the help!!!!!TRT-LX3 check!!!!!! :laugh::laugh::laugh::laugh::laugh::laugh::laugh:
ADB-1 said:
add trt-l53 ... + i bricked my trt-l53 does anybody have a backup on mega or gdrive i need the firmware please
Click to expand...
Click to collapse
How to bricked your device?
Andrea_santiba said:
Hi Guys!!! I just root my device but it´s a little diferent the method, once you enter on advance, you have to tap install SU, it's take 3 tries to sucessfully instal Super SU, once Super SU installed the phone automatically reboot.
It's reboot a couple of time, and to check I install root checker and IT'S WORK!!!!!!!!
Thanks a lot for the help!!!!!TRT-LX3 check!!!!!! :laugh::laugh::laugh::laugh::laugh::laugh::laugh:
Click to expand...
Click to collapse
It's Great! ?
cryotick said:
thanks so much bro it works
Click to expand...
Click to collapse
What is your device?
ADB-1 said:
add trt-l53 ... + i bricked my trt-l53 does anybody have a backup on mega or gdrive i need the firmware please
Click to expand...
Click to collapse
+1 I also bricked mine (TRT-LX2) I need a backup or the hicloud download to stock rom
@astusal
Can you provide us the source of all of this ?
Is there a seperate SuperSU zip available ?
Thnx !
raystef66 said:
@astusal
Can you provide us the source of all of this ?
Is there a seperate SuperSU zip available ?
Thnx !
Click to expand...
Click to collapse
Check your inbox
ashd999 said:
+1 I also bricked mine (TRT-LX2) I need a backup or the hicloud download to stock rom
Click to expand...
Click to collapse
not have any backup but i searching for...
Look here for TWRP on TRT-LX3 with Magisk 15.3
https://www.youtube.com/watch?v=bnEA__fbZ6U
So basicly they use the twrp out of OP
So flash recovery in fastboot
Reboot into recovery (vol++power)
Backup !
Format data
Flash magisk
reboot
Run Magisk Manager
done !
METHOD FOR TRT-LX1
Thnx for the above files !
I just did following steps : (almost like OP but slightly different)
0. follow here
1. Download above package from OP, be sure to be bl unlocked and frp unlocked
1a. Put latest Magisk 15.3 and manager on your extSD or flash supersu from within twrp package. It will be your choice how to root (btw, supersu in this package has chinese characters above)
1b. enable usb debugging, connect phone...
2. Run adb (devices)...you know by now, right
3. run following commands :
a. adb reboot bootloader
b. fastboot flash recovery TRT-TWRP-3.1.1-0818.img
4. when flashed, disconnect phone, and hold vol+ + power to boot into twrp recovery, select english
5. back up all !
6. format data
7. install Magisk or SuperSU at choice from your extSD. NOTE : when flashed and you want to reboot, select : not install supersu
8. reboot. It will take some reboots but all ok :good:
Can anyone in this thread post their build number? I'm trying to use firmware finder to get the stock rom
https://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146
Thanks.
astusal said:
What is your device?
Click to expand...
Click to collapse
I have a huawei y7 prime
Xposed Framework?
astusal said:
[TWRP][HUAWEI Y7-Y7 PRIME] recovery and root
Follow at your own risk, i don’t take any responsibility if anything goes wrong
Files are developed by chinese developers, so there’s limited support for this device so far.
Your warranty will be void after root
Supported Devices:
tested devices: TRT-AL00, TRT-AL00A, TRT-TL10, TRT-TL10A, TRT-L21A, TRT-LX1, TRT-LX3
no tested devices: TRT-LX2, TRT-L03, TRT-L53
Note: on some devices touch screen does not work in TWRP mode, you are advised to use mouse with OTG connector to work in TWRP
Tutorial:
RECOVERY
1. Backup all important data
2. Unlock bootloader of your phone
3. Download FILES
4. Extract downloaded file on your computer
5. Power off phone, Hold volume down and insert cable. phone should enter fastboot mode.
6. Open MAF32 and type ” fastboot flash recovery TRT-TWRP-3.1.1-0818.img ” and press enter
7. Once installation completed. Disconnect from pc. and hold volume up and power, keep holding until you see TWRP screen.
8. Recovery will be in chinese, Tap on right side button, and choose 2nd option, recovery will be changed to English.
ROOT
9. Now swipe to allow modifications. (Advised to make backup in TWRP for safe side)
10. Then tap on advanced. and tap root button.
11. Swipe to install root.
12. Reboot phone to normal mode.
13. After several boots , your phone should be up and running.
14. Now go in settings > Application manager > super su > permissions and allow all permissions.
15. Done, now install any root checker to verify root access.
Click to expand...
Click to collapse
Have you been able to install xposed framework? Or still can not flash zips in these recoverys?
KevinFer said:
Have you been able to install xposed framework? Or still can not flash zips in these recoverys?
Click to expand...
Click to collapse
I installed xposed without problems. Running f.e. gravitybox without problem.
So flashing with this twrp is no problem.
Perhaps follow my post here.
Btw, for this device flash xposed sdk24
raystef66 said:
I installed xposed without problems. Running f.e. gravitybox without problem.
So flashing with this twrp is no problem.
Perhaps follow my post here.
Btw, for this device flash xposed sdk24
Click to expand...
Click to collapse
could you pass me the files that I have to flash to install the xposed in the huawei y7 trt-lx3 pleasee!
KevinFer said:
could you pass me the files that I have to flash to install the xposed in the huawei y7 trt-lx3 pleasee!
Click to expand...
Click to collapse
See here : https://forum.xda-developers.com/showthread.php?t=3034811
So flash : http://dl-xda.xposed.info/framework/sdk24/arm/ take the v89 http://dl-xda.xposed.info/framework/sdk24/arm/xposed-v89-sdk24-arm.zip
And flash the installer from the thread.
That's all !
I see strange folders when looking for zip files
https://ibb.co/gVOOUG
---------- Post added at 03:39 PM ---------- Previous post was at 03:31 PM ----------
can I put the files in the root and flash from there?
https://ibb.co/jjvTUG
I would like to thank PBRP, Teamwin for their amazing work!
As usual, I am not responsible for damage to your device, you, the user is choosing to make these modifications.
Your device's warranty is VOID if this procedure is followed, Proceed at your own caution!
With the new update of Android 10 for our device SM-M305[F] / M305[M], Samsung reimplemented RMM and called it KG(KnoxGuard), there is confusion in the device community on how to install TWRP and root device.
Follow these updated instructions to get PBRP working with Latest Stock Firmware.
This thread will be updated regularly.
STRONGLY ADVICE TO BACKUP DATA.
Steps to get PBRP working with stock firmware
First of all flash completely stock firmware, you can always root with Magisk later.
If you are rooted and have PBRP installed already and you are not on Latest Firmware mentioned above then flash latest firmware.
Select BL, AP, CP, CSC (Use HOME_CSC).
Never only flash AP, will cause your /data to shrink.
Once you're updated to latest firmware mentioned above, make sure you unlock your bootloader.
Go into Settings>Software Info>Tap build number seven times.
Go into Settings>Developer Options>OEM Unlock & enable it.
It will prompt you with password/pin confirming to unlock bootloader. Device will reboot and wipe itself.
Setup device once it reboots and again enable developer options and see OEM unlock to be enabled and togglable.
Next enable USB debugging in Settings>Developer Options>USB Debugging.
Open up ADB/FASTBOOT Utility on your computer and connect your device with USB C cable.
Type in following commands without the quotations.
1."adb reboot download" ; reboots your device into Download mode, can flash device via Odin Downloader(Windows) or Heimdall Utility(Linux)
2.Download the attached PBRP.tar if you're using Odin or PBRP.img if you're using Heimdall to flash.
3.Flash the TWRP recovery by
ODIN:-
Clicking AP in Odin and make sure the Repartition and Auto Reboot boxes are UNTICKED/NOT SELECTED.
Click Start at bottom.
Heimdall:-
Open up a terminal window in the directory where twrp.img is downloaded.
Type in heimdall flash --RECOVERY pbrp.img --no-reboot
4.Once flash is complete, press Volume Down+Power Button to shutdown and as soon as screen is black IMMEDIATELY PRESS AND HOLD VOLUME UP+POWER Button and let go of Power button when you see samsung logo, continue holding Volume Up until device boots into TWRP.
5.Once device boots into PBRP, swipe to allow modifications and then Click Wipe>Format Data>type in "yes". This will format everything and reset the device.
6.Go into Wipe>Advanced Wipe>Tick only Cache and swipe to wipe it.
7.Reboot back into recovery by Reboot>Recovery>Do not Install.
8.Once rebooted back into PBRP, transfer the attached zip to phone Internal or SDcard, DO NOT RENAME THE ZIP.
9.Flash the zip by, Install > Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip, swipe to flash it.
10.Wipe cache and dalvik cache, reboot into system by, Reboot > System > Do not install.
11.Device will boot into Android, wait patiently for about 15mins.
12.Once device boots, setup as usual, you will need internet.
13.Voila! You have successfully installed PBRP alongside Stock firmware.
Thanks to @MiyamuraNEET for his persistent testing and timely directions that helped me to bring you this guide.
Thanks to @SahilSonar for bringing TWRP to our device initially
Thanks to @Akhil99 (me) for fixing MTP/ADB in TWRP recovery and bringing you this guide.
HIT THANKS IF WE HELPED YOU.
Downloads:
PBRP:
1. https://www.mediafire.com/file/gtjj6p0ou3hikz9/PBRP-m30lte-3.0.0-20201222-1227-UNOFFICIAL.img/file
2. https://www.mediafire.com/file/wi9v33cr8mkjyay/PBRP-m30lte-3.0.0-20201222-1227-UNOFFICIAL.zip/file
Disable DM_Verity_ForceEncrypt : https://androidfilehost.com/?fid=8889791610682882483
XDAevDB Information
[RECOVERY][UNOFFICIAL]PitchBlackRecoveryProject 3.0.0 [m30lte], Tool/Utility for the Samsung Galaxy M30
Contributors
Akhil99
Source Code: https://github.com/akhil1999/pbrp_device_samsung_m30lte
Version Information
Status: Stable
Stable Release Date: 2020-12-22
Created 2020-12-22
Last Updated 2020-12-22
awesome!
Only dev constantly releasing new to builds/mods to give us great experience,
Appreciate you bro,
Akhil 99 said:
Only dev constantly releasing new to builds/mods to give us great experience,
Appreciate you bro,
Click to expand...
Click to collapse
Thanks for your kind words. A new Port is incoming watch out for that!
Akhil99 said:
Thanks for your kind words. A new Port is incoming watch out for that!
Click to expand...
Click to collapse
It's me Zan,
A51 port tester...
hi, does this work with September 2021 patch.?
I have rooted my phone and interested to replace this with already flashed twrp since someone said PBRP has disable dm-verity feature?
[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4 Snapdragon stock to Android 12.1
[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4/4X Snapdragon SOC (codename mido) stock to Android 12 / LineageOS 19.1
Complete guide to install Android 12 on your Xiaomi Redmi Note 4 (Snapdragon or 4X).
This tutorial only applies to this model, to check the correct version:
in Android, go to Settings > About phone, make sure Device model is Redmi Note 4.
It must be Snapdragon: below Device model, CPU must be Octa-core Max 2.0Ghz
### If CPU is not Octa-core Max 2.0Ghz, you have the Mediatek version (codename Nikel), see here:
https://forum.xda-developers.com/f/xiaomi-redmi-note-4-mediatek-roms-kernels-reco.5784/
### If phone is not Redmi Note 4, quit this tutorial
CHANGELOG
v4. Minor improvements, Android 13 incoming (+ Google Camera) !
v3. Android 12.1 thanks to awesome Zeelog (and @anandsvm), migrate to MindTheGApps, upgrade TWRP
v2. BitGApps, updated TWRP + Magisk
v1. Initial release
1) WHAT YOU NEED
- djibe Redmi Note 4 pack: https://bit.ly/djibe-redminote4-pack
(contains all you need: USB drivers + Mi Unlock tool + fastboot & adb + TWRP Recovery 3.6.2_9-0 + Magisk root v23)
+ ROM LineageOS Unofficial 19.1: https://forum.xda-developers.com/t/...ineageos-18-1-mido-vanilla-by-zeelog.4186179/
Download latest build: https://github.com/zeelog/OTA/releases
+ MindTheGApps 12.1 ARM64: http://downloads.codefi.re/jdcteam/javelinanddart/gapps
or BitGApps ARM61 12.1 v1.4+: https://github.com/BiTGApps/BiTGApps-Release/releases
2) INSTALL DRIVERS
First uninstall all Oneplus, Oculus ... Android drivers.
Go to the folder you unzipped earlier.
navigate to usb_driver_r13-windows > usb_driver.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.
### If you experience problems with phone connection later, use https://github.com/lostindark/DriverStoreExplorer (thanks @Lysolus for sharing)
3) BACKUP YOUR DATA
Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect phone to PC, search for all .jpg, .mp3, .mp4 files on your phone and retrieve data.
4) UNLOCK BOOTLOADER
### Before going further, you need the latest official firmware.
Go to Settings > About phone.
MIUI version must be 11.0.2.0 (NCFMIXM).
Unlock Developer settings:
Tap 7 times on MIUI version item.
If not: connect to Wifi, tap on System update > Check for updates.
### System won't update ? Download latest firmware from here: https://xiaomifirmwareupdater.com/firmware/mido/
MIUI Account
Insert your SIM card.
Enter Sim PIN and turn off wifi, turn on mobile data and sync.
Go to Settings > Mi Account
Enter your phone number adapted to prefix and create an account (if not yet done).
Make sure phone Mi Account is active, in Settings, besides Mi account is written an identifier.
Go to Settings > Additional settings > Developer options and scroll to Mi Unlock Status item.
Permission required, Agree
### Make sure Wifi is off and mobile data on, then tap on Add account and device, then Got it.
### As written, don't sign out of Mi account, perform factory reset or erase system data for now.
### Keep calm and carry on.
Now open the \Mi Unlock subfolder from my pack.
Launch miflash_unlock.exe ad administrator: right click on .exe > Run as administrator
Agree to terms.
Login to your Mi account (with phone number prefixed or email)
Confirm login with SMS verification.
### Alternative: Open this webpage from your PC: https://en.miui.com/unlock/
### Click on Unlock now, then Download Mi Unlock archive. Unzip and refer to previous steps.
Back to phone, turn it off.
Then hold Volume down + Power buttons until phone vibrates and displays Fastboot screen.
Connect phone to USB.
Back to PC, Mi Unlock now says "Phone connected".
Unlock button is available, click on it and confirm with Unlock anyway.
Wait until Unlocked successfully is displayed.
Click on Reboot phone.
Unlocked is written at the bottom of screen during boot.
### Need to quit Fastboot mode ? Hold Power until phone vibrates and restarts.
5) FLASH TWRP RECOVERY
Back to Android, go to Settings > Additional settings > Developer options,
switch OEM unlocking ON and USB debugging ON.
Connect phone to PC.
Open a Windows command prompt on the /flash subfolder folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here
In command, enter
Code:
adb devices
Commands starts adb and returns: bfacf0c80104 unauthorized
On the phone, Allow USB debugging and send command again.
Command now returns: bfacf0c80104 device
Now enter
Code:
adb reboot bootloader
Phone restarts in bootloader/fastboot mode.
Enter
Code:
fastboot devices
Command returns: bfacf0c80104 fastboot
### If not, you may try to reinstall USB drivers or try another PC.
Now enter
Code:
fastboot flash recovery twrp-3.6.2_9-0-mido.img
Command returns: Finished. Total time: 1.540s
Now enter
Code:
fastboot boot twrp-3.6.2_9-0-mido.img
and wait while TWRP recovery boots.
TWRP asks: Decrypt data, tap on Cancel.
then Swipe to Allow Modifications.
Leave phone connected to PC.
We must remove encryption to access partitions.
From TWRP Home screen, go to Wipe > Format Data. This will remove all data on phone.
Type yes and confirm with bottom right icon.
6) BACKUP SYSTEM
Now go to Home screen > Backup.
Select System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
Swipe to Backup and wait during Backup.
Back to Home > Mount.
Using Windows Explorer, access Redmi Note 4 and copy the TWRP folder from Internal Storage folder to somewhere safe.
Then copy LineageOS 19.1 and gapps.zip (+ magisk if you want root) to the same phone's Internal Storage folder.
### Copy both zip files straightforward. Don't unzip archives.
7) FLASH ANDROID 12.1
Once again Swipe to Allow Modifications.
Go to Install > lineage*.zip,
then Add more zips: mind*.zip.
### Optional: to flash Magisk root, go to Reboot > Recovery. Then Install > Magisk*.zip
Go to Reboot > System
8) ROOT ACCESS AND DEVELOPER MENU (OPTIONAL)
With Magisk, you are root once phone is started. No extra manipulation needed.
Superuser permissions can be managed from Magisk Manager app (it was flashed during Magisk flash. Or get it https://github.com/topjohnwu/Magisk/releases).
You can now remove install files from Internal storage.
For developer menu:
open the Settings menu, select "About Phone".
Tap on the "Build number" entry seven times. You should be notified, that the developer settings are now active.
Now go to Settings menu > System > Developer settings.
That's it.
Enjoy,
djibe
Thanks: Zeelog, @anandsvm, Aryan Kedare, @xtrymind @flex1911, LineageOS team, TWRP team, MindTheGApps team
Thanks for this... Will try it in 2-3 days
[email protected] said:
Thanks for this... Will try it in 2-3 days
Click to expand...
Click to collapse
Hi,
Any feedback is very welcome.
Normally you have all you need to hack it.
Enjoy
Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?
[email protected] said:
Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?
Click to expand...
Click to collapse
Hi, no idead for payment.
But MagiskHide normally does the trick.
Unlock bootloader is fast with all the tools in my pack.
[email protected] said:
Will payment apps work after installing magisk? like Gpay, PhonePe
Also will it take 7 days to unlock bootloader?
Click to expand...
Click to collapse
Root is optional.
Can't get majisk install after several times can't install it tried for super su but that too not installing in los 18.1
Jn1441 said:
Can't get majisk install after several times can't install it tried for super su but that too not installing in los 18.1
Click to expand...
Click to collapse
Hi, what is the error during flash in TWRP ?
Error1 displayed but after reflashing with mindgapps majisk is working now
Jn1441 said:
Error1 displayed but after reflashing with mindgapps majisk is working now
Click to expand...
Click to collapse
Cool, enjoy. The phone is still good
A very nice and clean tutorial, thanks for that!
I already unlocked bootloader with another tutorial and for now I will leave the device on the last stock firmware. But I already tested magisk. It's very new to me. The last phone I flashed is some years ago and I only knew SuperSU.
The Note 4 is only a "second device" and I won't use it as a daily driver. But it's fun to play around with it and test some things.
@djibe89 Good hint, that I have to use an older rom as an intermediate step to avoid problem, this is new to me.
Also I wondered when I looked up the partitions to backup. There are 15 (!?) partitions (Pics attached). You are writing, that following partitions have to be backed up: System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
When I flash lineage and then want to go back, can I just restore the partitions? What happens to the other partitions when I flash a rom? Will they be deleted? Some years ago a phone just had 4 or 5 partitions...
Hi @tito_puente, you can start from step 7 to enjoy a clean Note 4.
Many thanks for the guide. Worked well. Can I remove Magisk to unroot or would I need to start Over?
the_real_grumpazoid said:
Many thanks for the guide. Worked well. Can I remove Magisk to unroot or would I need to start Over?
Click to expand...
Click to collapse
Hi, you can uninstall from the Magisk app
Installation
The Magic Mask for Android
topjohnwu.github.io
Great guide, Im new to flashing roms and this seems understandable. Is this usable for Xiaomi Redmi Note 4x (snapdragon)?
nysrin said:
Great guide, Im new to flashing roms and this seems understandable. Is this usable for Xiaomi Redmi Note 4x (snapdragon)?
Click to expand...
Click to collapse
Hi,
Yes.
Like written in the Title, it is for the snapdragon version, Aka 4X
Ooh i did not know the only difference between the note 4 and note 4x is that the 4x uses snapdragon.
The reason I was doubting is that I got a different device ID so I thought i my phone is a different model
List of devices attached
e640de900903 device
Click to expand...
Click to collapse
I will proceed later tonight, thank you for your quick response.
djibe89 said:
[GUIDE/TUTORIAL/HOWTO] Xiaomi Redmi Note 4 Snapdragon SOC (codename mido) stock to Android 11 R / LineageOS 18.1
Complete guide to install Android 11 on your Xiaomi Redmi Note 4 (Snapdragon).
This tutorial only applies to this model, to check the correct version:
in Android, go to Settings > About phone, make sure Device model is Redmi Note 4.
It must be Snapdragon: below Device model, CPU must be Octa-core Max 2.0Ghz
### If CPU is not Octa-core Max 2.0Ghz, you have the Mediatek version (codename Nikel), see here:
https://forum.xda-developers.com/f/xiaomi-redmi-note-4-mediatek-roms-kernels-reco.5784/
### If phone is not Redmi Note 4, quit this tutorial
CHANGELOG ----------------------------------------
v1. Initial release
1 ) WHAT YOU NEED
- djibe Redmi Note 4 pack: https://bit.ly/djibe-redminote4-pack
(contains all you need: USB drivers + Mi Unlock tool + fastboot & adb + TWRP Recovery 3.5.0_9-0 + OrangeFox recovery + Magisk root)
+ ROM LineageOS Unofficial 17.1: https://forum.xda-developers.com/t/ota-3-18-4-9-unofficial-lineageos-17-1-mido.4039907/
Download latest build: https://androidfilehost.com/?w=files&flid=309016&sort_by=date&sort_dir=DESC
Yes we need both LineageOS (LOS) ROMS !
+ ROM LineageOS Unofficial 18.1: https://forum.xda-developers.com/t/...ineageos-18-1-mido-vanilla-by-zeelog.4186179/
Download latest build: https://github.com/zeelog/OTA/releases
+ FlameGApps Basic: https://sourceforge.net/projects/flamegapps/files/arm64/android-11/BETA/
2 ) INSTALL DRIVERS
Go to the folder you unzipped earlier.
navigate to usb_driver_r13-windows > usb_driver.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.
3 ) BACKUP YOUR DATA
Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect phone to PC, search for all .jpg, .mp3, .mp4 files on your phone and retrieve data.
4 ) UNLOCK BOOTLOADER
### Before going further, you need the latest official firmware.
Go to Settings > About phone.
MIUI version must be 11.0.2.0 (NCFMIXM).
Unlock Developer settings:
Tap 7 times on MIUI version item.
If not: connect to Wifi, tap on System update > Check for updates.
### System won't update ? Download latest firmware from here: https://xiaomifirmwareupdater.com/firmware/mido/
MIUI Account
Insert your SIM card.
Enter Sim PIN and turn off wifi, turn on mobile data and sync.
Go to Settings > Mi Account
Enter your phone number adapted to prefix and create an account (if not yet done).
Make sure phone Mi Account is active, in Settings, besides Mi account is written an identifier.
Go to Settings > Additional settings > Developer options and scroll to Mi Unlock Status item.
Permission required, Agree
### Make sure Wifi is off and mobile data on, then tap on Add account and device, then Got it.
### As written, don't sign out of Mi account, perform factory reset or erase system data for now.
### Keep calm and carry on.
Now open the \Mi Unlock subfolder from my pack.
Launch miflash_unlock.exe ad administrator: right click on .exe > Run as administrator
Agree to terms.
Login to your Mi account (with phone number prefixed or email)
Confirm login with SMS verification.
### Alternative: Open this webpage from your PC: https://en.miui.com/unlock/
### Click on Unlock now, then Download Mi Unlock archive. Unzip and refer to previous steps.
Back to phone, turn it off.
Then hold Volume down + Power buttons until phone vibrates and displays Fastboot screen.
Connect phone to USB.
Back to PC, Mi Unlock now says "Phone connected".
Unlock button is available, click on it and confirm with Unlock anyway.
Wait until Unlocked successfully is displayed.
Click on Reboot phone.
Unlocked is written at the bottom of screen during boot.
### Need to quit Fastboot mode ? Hold Power until phone vibrates and restarts.
5 ) FLASH TWRP RECOVERY
Back to Android, go to Settings > Additional settings > Developer options,
switch OEM unlocking ON and USB debugging ON.
Connect phone to PC.
Open a Windows command prompt on the /flash subfolder folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here
In command, enter
Code:
adb devices
Commands starts adb and returns: bfacf0c80104 unauthorized
On the phone, Allow USB debugging and send command again.
Command now returns: bfacf0c80104 device
Now enter
Code:
adb reboot bootloader
Phone restarts in bootloader/fastboot mode.
Enter
Code:
fastboot devices
Command returns: bfacf0c80104 fastboot
### If not, you may try to reinstall USB drivers or try another PC.
Now enter
Code:
fastboot flash recovery twrp-3.5.0_9-0-mido.img
Command returns: Finished. Total time: 1.540s
Now enter
Code:
fastboot boot twrp-3.5.0_9-0-mido.img
and wait while TWRP recovery boots.
TWRP asks: Decrypt data, tap on Cancel.
then Swipe to Allow Modifications.
Leave phone connected to PC.
We must remove encryption to access partitions.
From TWRP Home screen, go to Wipe > Format Data. This will remove all data on phone.
Type yes and confirm with bottom right icon.
6 ) BACKUP SYSTEM
Now go to Home screen > Backup.
Select System, Vendor, Boot, Bootloader, Firmware and EFS partitions.
Swipe to Backup and wait during Backup.
Back to Home > Mount.
Using Windows Explorer, access Redmi Note 4 and copy the TWRP folder from Internal Storage folder to somewhere safe.
Then copy OrangeFox and LineageOS 17.1 to the same phone's Internal Storage folder.
7 ) FLASH ORANGEFOX RECOVERY
Now go to Home screen > Install
Select OrangeFox*.zip and Swipe to confirm Flash, recovery will auto-reboot.
8 ) FLASH LINEAGEOS 17.1
Coming from Android 7, we need to flash Android 10 to prevent bugs with fingerprint or bootloops...
Once again Swipe to Allow Modifications.
On bottom navigation bar, tap on Files.
Then select lineage-17.1*.zip and Swipe to Install.
Then tap on Wipe Caches > Swipe to wipe,
then Reboot System.
Wait during boot.
Quickly setup Android and try to skip configs.
Once finished, turn phone off.
9 ) FLASH LINEAGEOS 18.1
Boot in Recovery mode:
Hold Power + Volume+ until Mi logo shows up and release buttons.
Wait during OrangeFox recovery boot.
On bottom navigation bar, tap on Wipe.
Select Dalvik/ART cache, Cache, System, Data and Vendor partitions,
then Swipe to Wipe.
Back to Home > Menu (right icon of navigation bar) > Mount
Copy lineage-18.1*.zip, FlameGApps, Magisk*.zip and Magisk Manager*.apk on Internal Storage.
Then back to Files menu (left item of navigation bar).
Tap in lineage > Add to Queue > Magisk > Add to Queue > FlameGApps and Swipe to Install.
When flash is over > Wipe Caches and Reboot System.
10 ) ROOT ACCESS AND DEVELOPER MENU
With Magisk, you are root once phone is started. No extra manipulation needed.
Superuser permissions can be managed from Magisk Manager app (it was flashed during Magisk flash. Or get it https://github.com/topjohnwu/Magisk/releases).
You can now remove install files from Internal storage.
For developer menu:
open the Settings menu, select "About Phone".
Tap on the "Build number" entry seven times. You should be notified, that the developer settings are now active.
Now go to Settings menu > System > Developer settings.
That's it.
Enjoy,
djibe
Thanks: anandsvm, Zeelog, Aryan Kedare, @xtrymind @flex1911, LineageOS team, TWRP team, OrangeFox recovery team
Click to expand...
Click to collapse
Hi @syzw,
Can you reinstall USB drivers in Administrator mode ?
Or try another computer ?
djibe89 said:
Hi @syzw,
Can you reinstall USB drivers in Administrator mode ?
Or try another computer ?
Click to expand...
Click to collapse
I updated USB drivers in device manager of PC.
Now I am enjoying A11.
Thanks.
hello, I need your help please.
since I use the pixel smartphones, I have no longer flashed. now I got the SM-T585 gift and wanted to flash the https://forum.xda-developers.com/t/unofficial-rom-t585-lineageos-18-x-11-0-64-bit-treble.4511073/ on it. but I'm a bit rusty now and would need your help.
Where do I get latest bootloader and modem?
How do I flash them to the tablet?
When do I flash the repartition script?
How do I get TWRP on the tablet?
How to backup all partitions (it least efs) and store somewhere?
I appreciate any support.
Thanks, Markus from Germany
bavmouse said:
hello, I need your help please.
since I use the pixel smartphones, I have no longer flashed. now I got the SM-T585 gift and wanted to flash the https://forum.xda-developers.com/t/unofficial-rom-t585-lineageos-18-x-11-0-64-bit-treble.4511073/ on it. but I'm a bit rusty now and would need your help.
Where do I get latest bootloader and modem?
Click to expand...
Click to collapse
These are part of the firmware package for your device. You can use programs such as Frija, or websites such as Sammobile to download the latest firmware.
bavmouse said:
How do I flash them to the tablet?
Click to expand...
Click to collapse
Put the tablet in download mode, and use Odin to flash the files. Make sure the bootloader is unlocked. You most likely cannot immediately flash custom binaries after you unlock the bootloader; skip through initial setup, connect to the Internet, ensure OEM Unlocking is still visible in Developer Options.
When in download mode, there should be a line that reads KG STATUS. If this is CHECKING or COMPLETED, you should be OK. If it says PRENORMAL, you need to boot the OEM firmware and ensure OEM Unlocking is visible. This is due to Vaultkeeper - even after the bootloader is unlocked, Samsung throws a few wrenches into the mix to make things tricky.
bavmouse said:
When do I flash the repartition script?
Click to expand...
Click to collapse
After you've installed TWRP.
bavmouse said:
How do I get TWRP on the tablet?
Click to expand...
Click to collapse
The TWRP image for your tablet should be available as an AP.tar file. Once you've ensured Vaultkeeper has unleashed your bootloader, you can flash this using Odin in download mode to the AP slot.
bavmouse said:
How to backup all partitions (it least efs) and store somewhere?
Click to expand...
Click to collapse
You can use TWRP to create a backup.
bavmouse said:
I appreciate any support.
Thanks, Markus from Germany
Click to expand...
Click to collapse
Here to help.
V0latyle said:
These are part of the firmware package for your device. You can use programs such as Frija, or websites such as Sammobile to download the latest firmware.
Put the tablet in download mode, and use Odin to flash the files. Make sure the bootloader is unlocked. You most likely cannot immediately flash custom binaries after you unlock the bootloader; skip through initial setup, connect to the Internet, ensure OEM Unlocking is still visible in Developer Options.
When in download mode, there should be a line that reads KG STATUS. If this is CHECKING or COMPLETED, you should be OK. If it says PRENORMAL, you need to boot the OEM firmware and ensure OEM Unlocking is visible. This is due to Vaultkeeper - even after the bootloader is unlocked, Samsung throws a few wrenches into the mix to make things tricky.
After you've installed TWRP.
The TWRP image for your tablet should be available as an AP.tar file. Once you've ensured Vaultkeeper has unleashed your bootloader, you can flash this using Odin in download mode to the AP slot.
You can use TWRP to create a backup.
Here to help.
Click to expand...
Click to collapse
thank you very much for your detailed answer.
I have now collected all the programs and files.
but could you please give me a brief list of the exact order of procedure in bullet points, that would be very helpful.
and when and how do i unlock the bootloader?
thank you, markus
bavmouse said:
thank you very much for your detailed answer.
I have now collected all the programs and files.
but could you please give me a brief list of the exact order of procedure in bullet points, that would be very helpful.
and when and how do i unlock the bootloader?
thank you, markus
Click to expand...
Click to collapse
Unlock bootloader:
Enable developer options
Toggle OEM Unlocking to ON
Power off device completely (disconnect USB cable)
Start device in download mode: hold both Volume buttons, do not press Power, plug in USB cable from PC, device should start in download mode
Unlock bootloader; hold Volume Up until bootloader unlock screen appears, select Continue. This will wipe data
Disable Vaultkeeper:
Boot device and skip through initial setup. Connect to Internet. Enable Developer Options and ensure OEM Unlocking toggle is still visible. If it is not, Vaultkeeper is still enabled and you won't be able to flash custom binaries.
If OEM Unlocking is visible (should read "Bootloader is already unlocked"), power off device and start in download mode. Look for KG STATUS: If this says COMPLETED or CHECKING, you should be OK. If it says PRENORMAL or BROKEN, you won't be able to flash custom binaries, and you need to go back to step 1 to ensure Vaultkeeper is disabled.
Flash firmware:
Put device in download mode and leave connected to PC
Start Odin, device should appear: blue box under ID: COM, "Added!" in log
Flash firmware - BL goes in BL slot, AP goes in AP slot, etc. There are two CSC files - CSC and HOME_CSC. CSC is for factory reset, HOME_CSC keeps user data. Keep in mind for future update.
Flash TWRP:
Download TWRP for your device
Put device in download mode
Start Odin and flash TWRP .tar in AP slot
When device reboots, hold Volume Up to start in recovery mode
Disable encryption:
Download Multidisabler, transfer to device, flash in TWRP
Format data (Wipe > Format data > type YES)
Install LineageOS:
With device in TWRP mode and connected to computer, download desired LineageOS image
Note: should be arm64, be aware that some of the bvN/bgN "secure" builds may boot loop. VNDKlite not required. bvS/bgS builds have built in root, just need PHH SuperSU app. bvN/bvS builds do not have Gapps, will need to flash a Gapps package such as MindtheGapps (make sure you select the appropriate version)
Transfer LineageOS image to device storage (MTP should work in TWRP)
Install LineageOS (Install > Select Storage> select storage you uploaded the image to > Install Image > select System (DO NOT flash image to /boot, /recovery, or any other partition)
If necessary, install Gapps
Note: if this fails, you may need to resize /system. After flashing LineageOS, go to Wipe > Advanced Wipe > select System > Repair or Change File System > Resize File System
Reboot to system