[Alpha][Systemless Root][tomato] Rooted Boot Images - YU Yureka Android Development

Read before continue:
http://forums.yuplaygod.com/threads/15124/
http://forum.xda-developers.com/showpost.php?p=63197935
http://forum.xda-developers.com/android/software-hacking/wip-selinux-capable-superuser-t3216394
Requirements:
Completely stock, untouched device (Yureka/Yureka Plus).
Unlocked bootloader.
Rooted boot images:
cm-12.1-YOG4PAS8A4-tomato-boot-debuggable-rooted.img
cm-12.1-YOG4PAS3JM-tomato-boot-debuggable-rooted.img
Usage:
Download the rooted boot image that matches with your installed build.
Flash using fastboot:
Code:
fastboot -i 0x1ebf flash boot XXX.img
Install the SuperUser manager app: https://play.google.com/store/apps/details?id=me.phh.superuser
Profit!
To take incremental OTA:
Download the stock boot image that matches with your installed build. For now, extract them from signed fastboot flashable zips - I'll provide separate mirrors soon.
Flash using fastboot:
Code:
fastboot -i 0x1ebf flash boot XXX.img
You should be able to take & install the OTA, if /system isn't tampered previously.
Note:
The rooted boot images are based on official boot-debuggable images & super-bootimg by @phhusson.
The whole thing is in alpha stage & still WIP, so expect bugs.
Not all apps are compatible with systemless root approach, so root access mayn't be visible to them.
Please provide detailed feedback to me, @phhusson & the concerned app developer.

Reserved for future.

Reserved for future v2.

What does it do?
Sent from my YU5510 using Tapatalk

@powerasp
Reading the prerequisites should help
Anyway, it helps you to achieve root without touching /system partition, thus updating via OTA is lot more easier.

Added support for cm-12.1-YOG4PAS8A4 build.

Related

[2015-11-01] ROM - Lollipop (Single-Dual) - Tomal's Discovery v2.00

My custom build of Lollipop for Desire 820 single/dual sim (MSM chipset) devices.
Description of the build:
- Android Lollipop 5.0.2
- Fully rooted
- Modified boot image (boot.img)
- Custom boot animation
- Added busybox
- USB Debuging Enabled (by default)
- Some HTC tools removed (sorry, I never use them)
- Virtual SDCARD (/sdcard) unformated
- Multi-language support (including Indic)
- Added init.d script support
- SD card Permissions (extSD can read/write);
- Advertisement blocking (by hosts file)
- GPS Enhancement
- and many more
Requirements:
- Custom Recovery (i.e. TWRP)
- MSM based single/dual sim device
How to Install:
Kitkat based device:
You must flash Lollipop firmware (firmware.zip) before installing this rom. Please note, flashing Lollipop firmware is irreversible.
- Make sure that you have adb / naked adb driver installed in your computer
- Lock / relock the bootloader (re-unlock before rom installation)
- Boot the device in Bootloader and flash firmware.zip
Code:
fastboot oem rebootRUU
fastboot flash zip firmware.zip
fastboot reboot
- Now, flash TWRP recovery
- Reboot into TWRP recovery
Lollipop based device:
- Flash TWRP recovery
- Reboot into TWRP recovery
Download all parts of the rom and use Winrar to merge/extract them.
Copy the Rom to your device under a folder of your sdcard/ext-sd. Reboot your device in recovery. Then, touch Install and select the file. Follow on-screen instructions.
How to write to system partition?
Make sure that you have adb / naked adb driver installed in your computer. Enter adb shell in command prompt. Then, following command into android console:
Code:
su
mount -o remount,rw /system
Notice: I'll not take any responsibility if you brick your device.
Download:
https://drive.google.com/folderview?id=0BxNlt7tBriTPSDVqTHgyV3FyMWM&usp=sharing
really awesome job love you dear
waiting for download link
modified boot ? is it able to system write ??
or need s off too ???
Waiting your awesome work
Wow. I need this ROM
Nice mate, waiting for that!
Please note, flashing Lollipop firmware is revertible.
Click to expand...
Click to collapse
You mean it's irreversible!
cr3h said:
Nice mate, waiting for that!
You mean it's irreversible!
Click to expand...
Click to collapse
yep. typo error.
download link provided...
Sir..,
Can you provide custom kernal with system
Writeable for d820 dual sim lolipop5.0.2
sandeep saxena said:
Sir..,
Can you provide custom kernal with system
Writeable for d820 dual sim lolipop5.0.2
Click to expand...
Click to collapse
Single sim kernel dual sim should be able to use!
I installed it. Great job!
tomal said:
My custom build of Lollipop for Desire 820 single sim (MSM chipset) devices. I'll try to provide the same for dual sim devices, but it may take some time.
Description of the build:
- Android Lollipop 5.0.2
- Fully rooted
- Modified boot image (boot.img)
- Custom boot animation
- Added busybox
- USB Debuging Enabled (by default)
- Some HTC tools removed (sorry, I never use them)
- Virtual SDCARD (/sdcard) unformated
- Multi-language support (including Indic)
- Added init.d script support
- SD card Permissions (extSD can read/write);
- Advertisement blocking (by hosts file)
- GPS Enhancement
- and many more
Requirements:
- Custom Recovery (i.e. TWRP)
- MSM based single device
How to Install:
Kitkat based device (820n):
You must flash Lollipop firmware (firmware.zip) before installing this rom. Please note, flashing Lollipop firmware is irreversible.
- Make sure that you have adb / naked adb driver installed in your computer
- Lock / relock the bootloader (re-unlock before rom installation)
- Boot the device in Bootloader and flash firmware.zip
Code:
fastboot oem rebootRUU
fastboot flash zip firmware.zip
fastboot reboot
- Now, flash TWRP recovery
- Reboot into TWRP recovery
Lollipop based device (820n):
- Flash TWRP recovery
- Reboot into TWRP recovery
Download all parts of the rom and use Winrar to merge/extract them.
Copy the Rom to your device under a folder of your sdcard/ext-sd. Reboot your device in recovery. Then, touch Install and select the file. Follow on-screen instructions.
How to write to system partition?
Make sure that you have adb / naked adb driver installed in your computer. Enter adb shell in command prompt. Then, following command into android console:
Code:
su
mount -o remount,rw /system
Notice: I'll not take any responsibility if you brick your device.
Download:
https://drive.google.com/folderview?id=0BxNlt7tBriTPSDVqTHgyV3FyMWM&usp=sharing
Click to expand...
Click to collapse
He.. bro this work 820 dual plz helpp...
---------- Post added at 11:17 PM ---------- Previous post was at 11:12 PM ----------
tomal said:
My custom build of Lollipop for Desire 820 single sim (MSM chipset) devices. I'll try to provide the same for dual sim devices, but it may take some time.
Description of the build:
- Android Lollipop 5.0.2
- Fully rooted
- Modified boot image (boot.img)
- Custom boot animation
- Added busybox
- USB Debuging Enabled (by default)
- Some HTC tools removed (sorry, I never use them)
- Virtual SDCARD (/sdcard) unformated
- Multi-language support (including Indic)
- Added init.d script support
- SD card Permissions (extSD can read/write);
- Advertisement blocking (by hosts file)
- GPS Enhancement
- and many more
Requirements:
- Custom Recovery (i.e. TWRP)
- MSM based single device
How to Install:
Kitkat based device (820n):
You must flash Lollipop firmware (firmware.zip) before installing this rom. Please note, flashing Lollipop firmware is irreversible.
- Make sure that you have adb / naked adb driver installed in your computer
- Lock / relock the bootloader (re-unlock before rom installation)
- Boot the device in Bootloader and flash firmware.zip
Code:
fastboot oem rebootRUU
fastboot flash zip firmware.zip
fastboot reboot
- Now, flash TWRP recovery
- Reboot into TWRP recovery
Lollipop based device (820n):
- Flash TWRP recovery
- Reboot into TWRP recovery
Download all parts of the rom and use Winrar to merge/extract them.
Copy the Rom to your device under a folder of your sdcard/ext-sd. Reboot your device in recovery. Then, touch Install and select the file. Follow on-screen instructions.
How to write to system partition?
Make sure that you have adb / naked adb driver installed in your computer. Enter adb shell in command prompt. Then, following command into android console:
Code:
su
mount -o remount,rw /system
Notice: I'll not take any responsibility if you brick your device.
Download:
https://drive.google.com/folderview?id=0BxNlt7tBriTPSDVqTHgyV3FyMWM&usp=sharing
Click to expand...
Click to collapse
Plz plz plz bro.....develop and work htc 820 dual lolypop...... i wait u ....
its give this error when try to flash frimware.zip
medohatem said:
its give this error when try to flash frimware.zip
Click to expand...
Click to collapse
1- Your device should be LOCKED or RELOCKED via this FASTBOOT command (fastboot oem lock)
2- Then RENAME the firmware.zip to 0PFJIMG.zip and put it in your sdcard then go to hboot , it will be installed after your confirmation.
3- FINALY flash any custom recovery [ i prefere TWRP in this thread ] , then install this custom rom.
tareqak13 said:
1- Your device should be LOCKED or RELOCKED via this FASTBOOT command (fastboot oem lock)
2- Then RENAME the firmware.zip to 0PFJIMG.zip and put it in your sdcard then go to hboot , it will be installed after your confirmation.
3- FINALY flash any custom recovery [ i prefere TWRP in this thread ] , then install this custom rom.
Click to expand...
Click to collapse
1- my device is relocked
2-i tried rename it it give signature error in hboot
medohatem said:
1- my device is relocked
2-i tried rename it it give signature error in hboot
Click to expand...
Click to collapse
Be sure that you extracted the firmware.zip from the right OTA
medohatem said:
its give this error when try to flash frimware.zip
...
Click to expand...
Click to collapse
Use the fastboot.exe available in my download site (under Tools). Repeat the flash a few times...
If still getting the error then manually flash the boot and recovery img from firmware.zip, reboot the device and try once again.
chitranjn_k said:
He.. bro this work 820 dual plz helpp...
...
Plz plz plz bro.....develop and work htc 820 dual lolypop...... i wait u ....
Click to expand...
Click to collapse
Pls DO NOT QUOTE the whole 1st post...
Working for dual sim is a bit complicated for me since I don't have one at the moment. But I'll try.
tomal said:
Pls DO NOT QUOTE the whole 1st post...
Working for dual sim is a bit complicated for me since I don't have one at the moment. But I'll try.
Click to expand...
Click to collapse
Why I can not remove bloatware or other or add to system app new one from this rom? its about kernel?
Can be this fixed or another way to do this?
tomal said:
Use the fastboot.exe available in my download site (under Tools). Repeat the flash a few times...
If still getting the error then manually flash the boot and recovery img from firmware.zip, reboot the device and try once again.
Click to expand...
Click to collapse
i did like u said but no hope the same problem
Weather with animation choses :/
free picture upload

Guide [Simple]: OTA update with rooted and unlocked

Hi,
After much read of guides, I post here my SIMPLE guide for OTA upgrades when your Moto G is unlocked and you use systemless root and TWRP.
This guide is safe and works!
For example, with this guide you can upgrade from STOCK MPJ24.139-23.4 to MPJ24.139-63:
Warning: I assume you know the concepts "fastboot", "systemless root" and TWRP.
For the original stock firmware search here for your exact MODEL and VERSION: http://mirrors.lolinet.com/firmware/moto/athene/official/
1) Reboot to TWRP and make a FULL BACKUP of your current firmware. Use the SD-Card and not the internal memory.
2) To Apply the OTA you need to restore BOOT.IMG and SYSTEM.IMG.
2a) If you rooted your device, for sure your BOOT.IMG isn't the original one. You can:
- Option 1: Restore it from an original backup of your firmware (if you backup it prior to root).
- Option 2: Download the STOCK and ORIGINAL firmware for your device, extract "boot.img" and flash it in the fastboot mode using "fastboot flash boot boot.img".
2b) If you use Systemless SuperSU then your system partition can be untouched. In case of doubt, or if the patch shows an error, you can restore it...
- Option 1: Restore it from one backup of your firmware (only if you backup it prior to root).
- Option 2: Download the STOCK and ORIGINAL firmware for your device, extract "system.img_sparsechunk.0-7" and flash them in the fastboot mode using these 8 commands (execute one, wait until completes, then execute the next one):
Code:
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
3) Boot to the TWRP Custom Recovery (you don't need to restore the original Recovery partition).
4) Download the OTA (Blur_Version.24.24.4.athene.retail.en.US.zip) or copy it from the downloaded directory. Copy the ZIP file to a computer, extract the file "/META-INF/com/google/android/updater-script" and edit it... Remove these three lines (this only removes the check of the running build, because you like to execute it inside TWRP):
Code:
getprop("ro.build.thumbprint") == "6.0.1/MPJ24.139-63/64:user/release-keys" ||
getprop("ro.build.thumbprint") == "6.0.1/MPJ24.139-23.4/4:user/release-keys" ||
abort("Package expects build thumbprint of 6.0.1/MPJ24.139-63/64:user/release-keys or 6.0.1/MPJ24.139-23.4/4:user/release-keys; this device has " + getprop("ro.build.thumbprint") + ".");
After that, copy (repack) this edited file to the ZIP file of the OTA. I suggest to change the name of the ZIP, for example to "Blur_Version.24.24.4.athene.retail.en.US-TWRP.zip". Now, you can run this patch file running TWRP.
5) Copy the patch OTA file to the SD-CARD, boot to the TWRP and apply the OTA... After several minutes the task completes. Reboot and check if the update is done and all works well. Your data needs to be already there...
6) Reboot into the fastboot mode and reflash the TWRP Custom Recovery using "fastboot flash recovery twrp-3.0.2-0-athene.img". Then boot in the recovery mode and do another Backup (for save untouched "system.img" and "boot.img" partitions).
7) Now you can re-root using the TWRP mode and SuperSU 2.78 in Systemless mode (remember to execute "echo SYSTEMLESS=true>>/data/.supersu" prior to install the SuperSU.zip)
I hope this helps you!
This guide only uses the minimum and required steps.
:good:
If you like to download one already patched OTA, then download it from here (join the two files first!):
Part 1: http://www.sendspace.com/file/dkws7p
Part 2: http://www.sendspace.com/file/xaompg
Part 1: http://www.sendspace.com/file/e3of46
Part 2: https://www.sendspace.com/file/a3tl4r
CRC:
filename=Blur_Version.24.24.4.athene.retail.en.US-TWRP.zip
size=508332365
crc32=AFEC5752
Thank you, I was wondering about just this. Will come In handy.
Do you need to resign the zip with signapk?
Thanks for you guide!
I used it to update my Lenovo P2 to Nougat.
I would love to unlock my phone, alas, I am on an amazon variant of the G4, so it cannot be done. I would love to try out the OS listed here.
Indianvixen9 said:
I would love to unlock my phone, alas, I am on an amazon variant of the G4, so it cannot be done. I would love to try out the OS listed here.
Click to expand...
Click to collapse
I've heard this from a few people. I got the Amazon variant little more than a week ago. Unlocked BL and rooted lickety splits, no issues.
I consider myself pretty tech savvy, but the post might as well have been in Swahili. Can it be dumbed down any further?
The links at the end of your post for the two patched ota downloads aren't any good, would you please upload them again? Thanks
t0mm13b said:
Do you need to resign the zip with signapk?
Click to expand...
Click to collapse
No, just re-zip! :victory:
Dbush72 said:
The links at the end of your post for the two patched ota downloads aren't any good, would you please upload them again? Thanks
Click to expand...
Click to collapse
Done! :highfive:
Thank you for the reply and refreshing the download links
As far as I can tell you are flashing this via TWRP which is why the zips dont need signed is that correct?
I have an xt1625 non-amazon version that im working with.
I tried flashing Blur_Version.25.11.12.athene.retail.en.US on top of ATHENE_MPJ24.139-49_cid50_subsidy-DEFAULT_CFC.xml which didnt work with this error:
E3005: "EMMC:/dev/block/bootdevice/by-name/boot:
has unexpected contents
I also tried flashing Blur_Version.25.11.12.athene.retail.en.US on top of ATHENE_MPJ24.139-48_cid50_subsidy-DEFAULT_CFC.xml
Failed with the same error as last time
I also tried flashing Blur_Version.24.31.48.athene.retail.en.US on top of ATHENE_MPJ24.139-48_cid50_subsidy-DEFAULT_CFC.xml which does seem to pass the version checks but gives this error:
"eom/app/BRApps2/oat/arm/BRApps.odex" has unexpected contents.

[ROM][8.1][STOCK][MONTANA] Android 8.1.0 Oreo - Stock Firmware (Fastboot & TWRP)

Code:
#include "std_disclaimer.h"
/*
* Your warranty is now void... Well, probably not.
*
* 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 features included in this ROM
* before flashing 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.
* A lot.
*
* Tl;dr: if your device crashes and burns, I'm sorry, but I'm not to be blamed.
*/
Hey guys.
This is a guide on how to install official Android 8.1.0 "Oreo" on our beloved, forgotten, poor Moto G5s (montana). As you all may know, Lenovorola still hasn't released Oreo for everyone worldwide. Only a few Latin American countries are receiving the update, with Brazil due to receive it Soon™, since we've already received the August security patch (still Nougat though :/).
Update 2018.09.29: Brazil and India have also started receiving Oreo, but with a different build (OPP28.65-37-2).
However, this is Lenovorola we're dealing with, so I went ahead, captured the OTA and created a TWRP flashable zip, by patching the June firmware (NPPS26.102-49-11) with said OTA. And also, there's the standard .xml.zip to be used with fastboot, directly from Moto.
For those of you who want to keep everything stock, locked bootloader and all, I recommend going with the fastboot zip. For those who already have unlocked their phone's bootloaders and have TWRP installed, or are coming from a custom ROM but don't want to fiddle around with fastboot, you should use the TWRP flashable zip.
I can't stress this enough. ALWAYS BACK UP YOUR STUFF!!!! Do a TWRP backup (data, system, boot). I recommend backing up the contents of your internal storage as well. And for those willing to downgrade at some point, back up your persist and efs partitions, otherwise you'll lose IMEI!
Oh, and I assume you already have adb, fastboot and the Motorola USB drivers installed. In case you don't...
Motorola USB Drivers
Android SDK Platform Tools (includes adb & fastboot)
If you use Linux, you don't need to install any drivers, but you may have to configure udev to allow fastboot to detect your device. But that, along with telling how to configure adb and fastboot, is beyond the scope of this thread.
I don't know how things work in the Apple side, so kindly don't ask me how to do that on macOS.
This firmware should work on all Moto G5s models (XT1791/2/3/4/5/7). I can't tell if it works on model XT1799-2 (aka Green Pomelo / Qingyou).
A few warnings:
1. Forced encryption has not been disabled. So, if your phone is not encrypted, it will be encrypted again upon the very first boot. Don't interrupt the process, otherwise you'll lose ALL of your data! (You can flash @Zackptg5's dm-verity / forced encryption disabler if you want to)
2. Xposed doesn't work, whether it's installed to /system or via Magisk (systemless). I've already opened an issue on GitHub and am awaiting a reply.
3. (Fastboot only) Updating to this firmware will also update your bootloader and partition table. If you're unsure about that and/or afraid of a possible hard brick, skip the gpt and bootloader lines.
4. Please install the proper build for your software channel. For retbr and retin, use OPP28.65-37-2. For the other channels, go with OPP28.65-37.
5. If your phone's software channel is retbr or retin and you have already flashed the -37 build, you can simply dirty flash the -37-2 build over it. No need to factory reset / fastboot erase userdata.
With that out of the way, let's get to what matters most.
Downloads:
Build OPP28.65-37 (retla):
Fastboot ZIP (Android File Host | MEGA)
TWRP Flashable ZIP (Google Drive)
Click to expand...
Click to collapse
Build OPP28.65-37-2 (retbr & retin):
Fastboot ZIP (Android File Host)
TWRP Flashable ZIP (Google Drive)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Installation Guide:
Fastboot ZIP:
1. Download (obviously)
2. Extract the contents to a folder of your choice
3. Go to the folder which you extracted the files to
3. Inside the folder, open a command prompt, PowerShell, terminal or whatever you use as a command line interface
4. Put your device into fastboot mode if you haven't already done that (just hold Vol Down + Power for a while) and connect it to your PC
5. Execute the following commands:
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
reboot
6. Have fun
Click to expand...
Click to collapse
TWRP Flashable ZIP:
1. Download (duh)
2. Put the file at the root of your internal storage (/sdcard)
3. Reboot to TWRP
4. Do a factory reset (optional if coming from stock Nougat) and then format /system
(If your device is encrypted and you want to remove encryption, you will have to format /data and then flash the forceencrypt disabler I mentioned above after flashing the ROM)
5. Flash the zip
6. Reboot
7. Have fun
Click to expand...
Click to collapse
Thanks to:
@NZedPred for the excellent tutorial on how to build flashable zips based on stock firmware and/or OTAs
@Cesarcami53 for telling us that the update was out for retla
@erfanoabdi for his Motorola OTA Link Generator and IMG Patch Tools
@lohanbarth for mirroring the fastboot zips to AFH / Mega
In case I forgot someone, please do let me know.
F.A.Q. (Read this before crying!!!!)
Q: Why did you come up with this?
A: Because Lenovorola is pulling a Samsung, taking forever to officially deliver the Oreo update to everyone.
Q: ERMAHGERD DIS ROM SUCKZ, MAH BATTERY IS DEAD IN 30 MINS, PLZ HALP!
A: Please do blame Motorola, or yourself, or your apps' developers, but not me. I haven't got anything to do with that. I haven't changed anything.
Q: What works and what doesn't?
In theory, everything should work, and nothing should be broken, since this is a stock ROM.
Q: Will you add feature xyz?
A: No.
Q: Why no inbuilt root/Magisk/xyz/abc?
A: Because not. 1. There's something called freedom of choice, and that must be respected. / 2. I want to keep everything as bit-perfect as possible, and as close as possible to what you would get by flashing a real OTA.
Q: How do I report bugs?
A: If you wanna report a bug, send me a logcat. In case of a kernel panic, /proc/last_kmsg will help.
Q: How do I flash this?
A: I suggest you scroll up and read the OP. The instructions are there.
Q: How do I tweak this ROM?
A: For theming, there's full OMS/Substratum support. Xposed doesn't work, so no extra tweaks for now.
Q: This kid is such a n00b!
A: Oh well then, why don't you go do something like this yourself, instead of criticizing my work and wasting your time?
Reserved again
Oh look! Another reserved post!
And as a bonus, have this nice little dark boot logo from me, which hides that dreaded "N/A" and also "bad key" things. Extract the zip file and flash the logo3.bin file inside using fastboot:
Code:
fastboot flash logo logo3.bin
Good Night Guys, if I install it for twrp will the installation fiddle with the bootloader?
Which security pet
Official or Soak test?
Kamin4ri said:
Thanks to:
@NZedPred for the excellent tutorial on how to build flashable zips based on stock firmware and/or OTAs
[/SIZE]
Click to expand...
Click to collapse
Hey man, I am so thankful that someone has found my guide and made something for another device.
Well done, and best of luck with this thread. :good:
I can tell you that this build work very well in european distribution (reteu).
Basicly everything work including sim and nfc(paying not tested yet)
The link with the Fastboot ZIP doesn't work for me, I guess I'm the unlucky one. Is there any chance that you can upload it elsewhere? Thanks.
Also not able to download, please offer another download Location!
Do I need to unlock my bootloader on Russian type of XT1794 to flash this firmware via PC?
ilovepanda said:
Good Night Guys, if I install it for twrp will the installation fiddle with the bootloader?
Click to expand...
Click to collapse
No. Your bootloader will be updated if, and only if, you install via fastboot and actually execute the respective command.
[email protected] said:
Official or Soak test?
Click to expand...
Click to collapse
This is the official firmware released for retla (Latin America). However, the soak tests in Brazil haven't finished yet. I'll update the OP with the link for the Brazilian firmware as soon as it's available.
NZedPred said:
Hey man, I am so thankful that someone has found my guide and made something for another device.
Well done, and best of luck with this thread. :good:
Click to expand...
Click to collapse
Thank you, friend! I'll be definitely using that guide again.
7opex0 said:
Do I need to unlock my bootloader on Russian type of XT1794 to flash this firmware via PC?
Click to expand...
Click to collapse
Only if you're flashing via TWRP. If you're using fastboot, there's no need to unlock your bootloader, since this is an official firmware signed by Motorola.
giugiura said:
The link with the Fastboot ZIP doesn't work for me, I guess I'm the unlucky one. Is there any chance that you can upload it elsewhere? Thanks.
Click to expand...
Click to collapse
dau999 said:
Also not able to download, please offer another download Location!
Click to expand...
Click to collapse
I have the zip here, but uploading it using my home Internet connection would take ages. I'll do it next Monday, I'll use my university's connection. I can get 100+ Mbps transfer rates, so it should be really quick for a file this size (1.5 GB).
Kamin4ri said:
If you're using fastboot, there's no need to unlock your bootloader, since this is an official firmware signed by Motorola.
Click to expand...
Click to collapse
Okay then! Thanks for information.
7opex0 said:
Okay then! Thanks for information.
Click to expand...
Click to collapse
Not at all!
Kamin4ri said:
I have the zip here, but uploading it using my home Internet connection would take ages. I'll do it next Monday, I'll use my university's connection. I can get 100+ Mbps transfer rates, so it should be really quick for a file this size (1.5 GB).
Click to expand...
Click to collapse
Please upload it on some other cloud so that we can download it thanks for help sir
In advance

[GUIDE][GRUS]How to flash TWRP and GSI ROMs on MI 9 SE

# I assume you are confident with ADB and Fastboot commands and you know what you are doing. #
# If you don't, search on Google before messing with your device. #
# I am not responsible for...you know what I mean. On the other hand, please feel free to point out any error in this guide. #
# Lots of useful information can be found on Telegram Group for Mi 9 SE #
# If you already unlocked your bootloader and flashed TWRP, go directly to part 2 of this guide #
PART 1 - UNLOCK DEVICE AND FLASH TWRP
# Before starting, be sure that you can unlock your bootloader and you have these files: #​
- Mi Unlock tool (http://en.miui.com/unlock/)
- Minimal ADB & Fastboot 1.4.3 (https://forum.xda-developers.com/showthread.php?t=2317790)
- TWRP recovery for your device (please check the development section).
Install ADB and Fastboot drivers on your PC, if you don't have them already.
- enable developer options on device, allow OEM unlock and ADB debug.
- install Minimal ADB & Fastboot tool and run a command window. PLEASE DON'T USE WINDOWS 10 POWER SHELL. Double click on "cmdhere.dll" in root folder instead.
- move twrp image in the same folder where Minimal ADB & Fastboot is installed.
- for your convenience, rename twrp file as "twrp" only.
- connect your device to your PC USB port, pair it with PC then reboot it to bootloader (power + volume down combo).
Unlock bootloader using Mi Unlock tool (full unlocking guide at https://c.mi.com/thread-1635834-1-1.html)
Unlocking bootloader will erase all of your data, including storage.
Once you unlocked:
- reboot and setup device
- enable developer options again
- double check bootloader status and allow ADB debug
- connect to USB port and pair device with PC for ADB debug bridge then type in command window:
Code:
adb devices
Code:
adb reboot bootloader
once in bootloader screen code:
Code:
fastboot devices
Code:
fastboot flash recovery twrp.img
- don't give fastboot command "fastboot boot recovery twrp" or "fastboot reboot recovery twrp". Just press and hold power+volume up for about 10 seconds to reboot to recovery.
- swipe to allow twrp modifications.
- I would suggest to NOT format data to get rid of encryption unless you actually need it. Encryption does not slow down your device or harm your battery life.
- I would also suggest to NOT wipe system and reboot to recovery because it could lead to a fastboot bootloop.
PART 2 - HOW TO FLASH A GSI ROM​
# IMPORTANT #​
When flashing a GSI ROM, it is recommended to use a Stable firmware as base.
If device is running different builds, flash latest Global or China Stable before starting using MiFlash tool.
Beware that device could have the anti-rollback enabled, so be careful when flashing another firmware.
Mi 9 SE is a system-as-root device, so you must flash A/B type GSI ROMs. ​
You will need these files:
- GSI A/B ROM (FlokoROM at https://treble.andro.plus/ or choose one at https://forum.xda-developers.com/project-treble/trebleenabled-device-development)
- vbmeta.img (https://androidfilehost.com/?fid=818070582850505317)
- gapps for Google services (https://opengapps.org/) - select ARM64 - 9.0 - I would suggest nano or pico package.
- magisk for root and modules (https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445)
- MiFlash flashable STABLE stock firmware (http://en.miui.com/download or https://mirom.ezbox.idv.tw/en/phone/grus/)
- MiFlash tool (https://www.xiaomiflash.com/)
If you are already running a Stable firmware start from here, if you don't, flash a Stable firmware.
- move GSI and vbmeta images in the same folder where Minimal ADB & Fastboot is installed.
- for your convenience, rename GSI file as "system" only.
- reboot device to bootloader, ensure you are connected with your PC properly
- to double check it, run a command window and type:
Code:
fastboot devices
once you get the device recognized type:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
this command will disable dm-verity and AVB on device. PLEASE DON'T USE WINDOWS 10 POWER SHELL to disable vbmeta or you will get an error feedback. Double click on "cmdhere.dll" in root folder instead.
then:
Code:
fastboot flash system system.img
this command will flash system.img
Code:
fastboot -w
this command will wipe data on device
Reboot your device in recovery using button combo and resize system partition to install Gapps.
From TWRP Wipe menu > advanced wipe > system > repair or change file system > resize system > swipe to resize
- move magisk and gapps from PC to device
- go to mount menu and tick mount system
- go back to install menu and flash gapps
- once you flashed gapps unmount system
- go to install and flash magisk
- go to wipe menu and swipe for factory reset
- reboot
once rebooted, complete the device setup.
be aware that some GSI could bootloop or not boot at all even if you followed the guide properly.
in case rely on GSI devs for assistance or fixes.
Of course you can flash a GSI ROM using TWRP.
The only fastboot command you need to perform is to disable dm-verity and AVB.
If you already disabled it while flashing TWRP for the first time, you can follow these steps to flash a GSI using TWRP:
- Tap on advanced Wipe menu and wipe cache, dalvik, data and system
- Tap on Install > Install Image > select image and flash it to system
- Install Gapps with the same process shown above.
- Swipe for factory reset and reboot.
-----------------------------------------------------------------------------------------------------------------------------------------------
If updating GSIs builds from the same branch (e.g. Floko 060219 to Floko 060919) you are not required to wipe data. You can update flashing system.img on TWRP and Gapps time by time.
If you are moving from unofficial builds to official, or if you are moving between branches (e.g. Floko to Havoc), you need to wipe data as well.
@pengus77 provided for a very useful Magisk Module that will fix adaptive brightness, battery stats and in-call BT. You will find it here: https://forum.xda-developers.com/showpost.php?p=79762257&postcount=242
If you flashed a GSI ROM, you are basically using a system.img flashed on top of your stock firmware so, unless you performed modifications to vendor or boot partition, you can revert to stock using fastboot or TWRP.
You need to extract system.img (and boot and vendor, if needed) from the stock firmware.
You will need the vbmeta file as well to re-enable AVB and dm-verity otherwise the device will reboot in fastboot mode only.
Beware: you must flash EXACTLY the same system.img of the firmware you were running before flashing a GSI
Once you have both files, you can follow these steps to go back to stock using fastboot:
- place the files on Minimal ADB & Fastboot root folder
- reboot bootloader
- start a command window from Minimal ADB and type: fastboot devices
once your device has been recognized type the following commands:
- fastboot -w
- fastboot flash system system.img
- (optional) fastboot flash vendor vendor.img
- (optional) fastboot flash boot boot.img
- fastboot flash vbmeta vbmeta.img
- fastboot reboot
You can also revert to stock using TWRP, by the way you will still need fastboot to flash vbmeta partition.
These are the steps to follow if you are using TWRP:
- place system.img on your device and vbmeta.img in Minimal ADB & Fastboot root folder.
- reboot to twrp and wipe dalvik, cache and data
- flash system.img to system partition
- (optional) flash vendor.img to vendor partition
- (optional) flash boot.img to boot partition
- reboot to bootloader
Start a command window in Minimal ADB & Fastboot, then type:
- fastboot devices
- fastboot flash vbmeta vbmeta.img
- fastboot reboot
Thansk for your work.
Does TWRP backup work?For getting back to stock?
Moh3n.B said:
Thansk for your work.
Does TWRP backup work?For getting back to stock?
Click to expand...
Click to collapse
I hope it is helpful
Backup worked for me on the TWRP I mentioned above.
If you want revert to stock you can flash again stock firmware using MiTool (fastboot ROM) or twrp (Recovery ROM).
Good thread! Might be confusing if there's no guide to install TWRP and GSI ?
Great guide. It will help a lot of people to flash and test roms. And us by extension to find the best rom for our device !
Today I had some time and I tried to install the latest Havoc Gsi, unfortunately the result was negative, I ran the guide both from xda and from here, my basic rom was 10.2.3.0, arrived at the command fastboot -w performs the various wipes, but then it does not allow me to go into recovery, it always and only goes in fastboot, and the only way to make the smartphone work is to use miflash and put the official version back.
scorpionredblack said:
Today I had some time and I tried to install the latest Havoc Gsi, unfortunately the result was negative, I ran the guide both from xda and from here, my basic rom was 10.2.3.0, arrived at the command fastboot -w performs the various wipes, but then it does not allow me to go into recovery, it always and only goes in fastboot, and the only way to make the smartphone work is to use miflash and put the official version back.
Click to expand...
Click to collapse
Try to flash vbmeta.
For me is not necesary.
Try like this from twrp:
- Wipe cache, dalvik cache, system, data
- Flash latest weekly eu firmware as base xiaomi.eu_multi_MI9SE_9.6.5_v10-9.zip
- Than flash havoc as system
Optional: flash magisk and custom kernel
Just stuck on bootloader unlocking.
Got this error "current account is not bound to this device"
I added device from mi unlock status too.
Moh3n.B said:
Just stuck on bootloader unlocking.
Click to expand...
Click to collapse
Search on Google. It looks like to be a common issue. If needed, follow the unlocking guide I linked on OP.
successfully flash Foloko ROM to Mi9 se, run very well!
just a small queastion, is DT2W is not working in all GSI rom?
Anyone try it yet?
Is there way to enable DC dimming (anti-pwm)?
I am using Havoc OS and my eyes are hurting..
sky104hk said:
successfully flash Foloko ROM to Mi9 se, run very well!
just a small queastion, is DT2W is not working in all GSI rom?
Anyone try it yet?
Click to expand...
Click to collapse
For now all gsi have same problem.
how to flash gapps ... i got error 70
raber111 said:
how to flash gapps ... i got error 70
Click to expand...
Click to collapse
Read carefully post n.2
Before I flash this, I world like to know from those already using this rom: How is the camera quality and finger print unlock response /speed?
I'm pissed at the frequent snow down of the miui system because I run vpn all day on my phone.
Sent from my Mi 9 SE using Tapatalk
krispuniq said:
Before I flash this...
Click to expand...
Click to collapse
Generally speaking, all the GSIs ROMs are based on Phhusson AOSP GSI ROM, so they have more or less the same performance and bugs.
At he moment FOD is not working well. You cannot unblock the device while on screen off or while on AOD.
For camera, you can install BSG Google Camera mod, that is working quite good.

Nook Tablet 10.1" BNTV650 stock firmware files v1.0.9 Android 8.1 Oreo

Download link: https://drive.google.com/file/d/1gLshzM9zYEvR0Cknl4eh6KI32nEZbL5O/view?usp=sharing
I tried backing up the userdata.img, but that kept filling up my device storage. It was going beyond 19GB in size. So I cancelled the operation.
Enjoy these files, they will be useful for ROM porting, system restore, or system downgrade.
Editing these files can lead to a brick or a non booting state. So be careful.
I pulled all of these files from my device's system partitions.
What did you do to dump these? Did you use dd to dump them or any other method? I dumped a few partitions from my BNTV460 a while back, but I'm unsure if I did it properly, so I was curious of how you dumped it from your BNTV650.
turtleletortue said:
What did you do to dump these? Did you use dd to dump them or any other method? I dumped a few partitions from my BNTV460 a while back, but I'm unsure if I did it properly, so I was curious of how you dumped it from your BNTV650.
Click to expand...
Click to collapse
I temp rooted the Nook. Then I pulled the firmware files with ADB.
I saw that global MediaTek root tool posted earlier, I was just going to dump the partitions myself. Thank you for posting these OP! Does anyone know if there's a TWRP image for our devices? There's one posted for a "Barnes & Nobel Nook Tablet", but I haven't a clue if it's for the BNTV650.
I did make a TWRP for this device.
tgp1994 said:
I saw that global MediaTek root tool posted earlier, I was just going to dump the partitions myself. Thank you for posting these OP! Does anyone know if there's a TWRP image for our devices? There's one posted for a "Barnes & Nobel Nook Tablet", but I haven't a clue if it's for the BNTV650.
Click to expand...
Click to collapse
How to unlock the bootloader:
1) allow OEM unlocking in developer options in the device settings
2) download ADB onto your computer https://developer.android.com/studio/releases/platform-tools.html
3) cd to the directory in CMD
4) enter this command: adb reboot bootloader
5) once the device is in fastboot mode, do: fastboot oem unlock
How to flash the stock OEM recovery:
1) fastboot flash recovery STOCK_recovery.img
How to flash the tested buggy TWRP recovery:
1) fastboot flash recovery TESTED_recovery.img
How to flash the untested TWRP recovery:
1) fastboot flash recovery UNTESTED_recovery.img
How to reboot back into the OS:
1) fastboot reboot
Downloads:
- Stock: https://drive.google.com/file/d/1Z7AJH6fSbeOkLLWt2JVwsCKiwxt0vlYK/view?usp=sharing
- Tested: https://drive.google.com/file/d/1R4ph5Z5mofsac0Qd352H_BEEz9JS4wBA/view?usp=sharing
- Untested: https://drive.google.com/file/d/1zP81MuR5LLvdYuDvYQHPVCJlgCOUBPlt/view?usp=sharing
secretwolf98 said:
How to unlock the bootloader:
1) allow OEM unlocking in developer options in the device settings
2) download ADB onto your computer https://developer.android.com/studio/releases/platform-tools.html
3) cd to the directory in CMD
4) enter this command: adb reboot bootloader
5) once the device is in fastboot mode, do: fastboot oem unlock
How to flash the stock OEM recovery:
1) fastboot flash recovery STOCK_recovery.img
How to flash the tested buggy TWRP recovery:
1) fastboot flash recovery TESTED_recovery.img
How to flash the untested TWRP recovery:
1) fastboot flash recovery UNTESTED_recovery.img
How to reboot back into the OS:
1) fastboot reboot
Downloads:
- Stock: https://drive.google.com/file/d/1Z7AJH6fSbeOkLLWt2JVwsCKiwxt0vlYK/view?usp=sharing
- Tested: https://drive.google.com/file/d/1R4ph5Z5mofsac0Qd352H_BEEz9JS4wBA/view?usp=sharing
- Untested: https://drive.google.com/file/d/1zP81MuR5LLvdYuDvYQHPVCJlgCOUBPlt/view?usp=sharing
Click to expand...
Click to collapse
Oh, there are recoveries? Thanks! What's wrong with the buggy version?
I will try to update this thread soon with the latest software update. If I can remember how I pulled the system files.
secretwolf98 said:
I will try to update this thread soon with the latest software update. If I can remember how I pulled the system files.
Click to expand...
Click to collapse
Did B&N release a software update?
tgp1994 said:
Did B&N release a software update?
Click to expand...
Click to collapse
Yep. It is v1.0.21. With the build date of June 2020. And with the security patch of May 5, 2020.
so there is no twrp or custom rooted rom for this device?

Categories

Resources