Development [RECOVERY][UNOFFICIAL][3.7.0][PDX215] TWRP for Sony Xperia 1 III - Sony Xperia 1 III

Code:
/*
*Disclaimer
*
* Your warranty is now void.
*
* We're 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 us for messing up your device, we will laugh at you.
*/
Working :
Boot
Decryption data
Flashing
Android 12/13 support
Not working :
Vibration (involve driver loading which i'm inexperience about this)
otg
Supported devices :
Sony Xperia 1 III
Sony Xperia 5 III is currently work in progress
Flashing Process :
Code:
1. Power off device
2. Hold Vol + and plug it into PC
3. fastboot getvar current-slot
3. fastboot --set-active=(inactive slot)
4. fastboot flash boot_(inactive slot) (path to boot.img)
5. fastboot reboot recovery
6. Once you're done head to the reboot menu and change to the other slot and reboot back to system
Download : Link
Special Thanks :
- Hellobbn for testing and kernel
- @Ainz_Ooal_Gown for testing
- @Sakuu for testing and instruction
- @Miustone for some hints, and testing
Source :
Twrp Device tree
Kernel Source
Donation : Paypal

reserved

Good times ahead for Xperias!
Let's see if we also get Stock ROMs again from someone...
There are also some AOSP ROMs on the Way. Ez installs with TWRP for everyone

Miustone said:
Good times ahead for Xperias!
Let's see if we also get Stock ROMs again from someone...
There are also some AOSP ROMs on the Way. Ez installs with TWRP for everyone
Click to expand...
Click to collapse
Yeah indeed he did it great and i thought you was working on it also but suddenly we hear none from you bro.

Miustone said:
Good times ahead for Xperias!
Let's see if we also get Stock ROMs again from someone...
There are also some AOSP ROMs on the Way. Ez installs with TWRP for everyone
Click to expand...
Click to collapse
is eally will be normally custom rom for this phone?

Sakuma_Eitarou said:
is eally will be normally custom rom for this phone?
Click to expand...
Click to collapse
* i didn't own this phone, all of the results are come from a lot of testers
and yeah, custom rom already happened. just in testing

loipuru said:
and yeah, custom rom already happened. just in testing
Click to expand...
Click to collapse
okay

How to enter recovery when boot up ?
Edit: this step is kinda unclear,
4. fastboot flash boot_(inactive slot) (path to boot.img)
i dunno what todo and get this:
unknown partition blablabla
please help

Pandemic said:
How to enter recovery when boot up ?
Edit: this step is kinda unclear,
4. fastboot flash boot_(inactive slot) (path to boot.img)
i dunno what todo and get this:
unknown partition blablabla
please help
Click to expand...
Click to collapse
Pretty sure you don't have Google's ADB drivers installed

Sakuu said:
Pretty sure you don't have Google's ADB drivers installed
Click to expand...
Click to collapse
Oke and where can i get them, any link ?

Pandemic said:
Oke and where can i get them, any link ?
Click to expand...
Click to collapse
From this thread https://forum.xda-developers.com/t/...re-and-gsi-rom-flashing-without-twrp.4344371/
You should honestly have both the Google Driver's and the Sony Xperia 1 III driver's....

Thanks and h
Ainz_Ooal_Gown said:
From this thread https://forum.xda-developers.com/t/...re-and-gsi-rom-flashing-without-twrp.4344371/
You should honestly have both the Google Driver's and the Sony Xperia 1 III driver's....
Click to expand...
Click to collapse
Thanks and howto ener twrp when boot up, pressing the volume key - or + ?

Pandemic said:
Thanks and h
Thanks and howto ener twrp when boot up, pressing the volume key - or + ?
Click to expand...
Click to collapse
I haven't figured that one out myself, what I have been doing while testing is while connected to PC doing adb reboot recovery

Ainz_Ooal_Gown said:
I haven't figured that one out myself, what I have been doing while testing is while connected to PC doing adb reboot recovery
Click to expand...
Click to collapse
Oke well some people dont have a pc whole the time but i will figure it out.

Pandemic said:
Oke well some people dont have a pc whole the time but i will figure it out.
Click to expand...
Click to collapse
well you can try the default method and see if it works https://www.hardreset.info/devices/sony/sony-xperia-1-iii/recovery-mode/

Ainz_Ooal_Gown said:
well you can try the default method and see if it works https://www.hardreset.info/devices/sony/sony-xperia-1-iii/recovery-mode/
Click to expand...
Click to collapse
I think you guys understand me well... What must you set here ?
4. fastboot flash boot_(inactive slot) (path to boot.img)
By (inactive slot) and (path to boot.img) ?
I installed all the CORRECT drivers so all is good but i dont get it what i need to type what i explained yet between the (...)

and fastboot devices should see the phone
Pandemic said:
I think you guys understand me well... What must you set here ?
4. fastboot flash boot_(inactive slot) (path to boot.img)
By (inactive slot) and (path to boot.img) ?
I installed all the CORRECT drivers so all is good but i dont get it what i need to type what i explained yet between the (...)
Click to expand...
Click to collapse
Inactive slot is usually b on stock so it's fastboot flash boot_b and path to boot img is where you downloaded TWRP -_-

Sakuu said:
and fastboot devices should see the phonei
Inactive slot is usually b on stock so it's fastboot flash boot_b and path to boot img is where you downloaded TWRP -_-
Click to expand...
Click to collapse
Ooh yes, thankzz anyway -___-

Pandemic said:
Ooh yes, thankzz anyway -___-
Click to expand...
Click to collapse
if you put twrp into adb folder and run terminal/cmd/powershell from that folder then you can just do fastboot flash boot_b twrp.img you just need to rename boot.img to twrp.img

Ainz_Ooal_Gown said:
if you put twrp into adb folder and run terminal/cmd/powershell from that folder then you can just do fastboot flash boot_b twrp.img you just need to rename boot.img to twrp.img
Click to expand...
Click to collapse
Great this what i exactly looking for and it works and btw i figured also out howto reboot into recovery.
When the device boots up keep pressing volume down
And when you want to reboot to system, tap on slot a and boot to system otherwise it keep stay on the b slot and you will reboot into twrp again, so tap on slot a before you boot into system 🫡

Related

[HOW TO] Flash A Custom Rom & Custom Kernel [Noob's Guide]

[HOW TO] Flash A Custom Rom & Custom Kernel [Noob's Guide]
here's just a simple guide on how to flash pretty much any ROM.
Most people probably, know how to do this, but for those unaware here is a simple and easy to follow guide i put together.
Before installing a custom rom, you have to make sure your phone is rooted.
There are already guides on that so here are some links.
Click to expand...
Click to collapse
Links On How To Root & Unlock​
Written Guide:[How to unlock bootloader] http://forum.xda-developers.com/showthread.php?t=2011611 By Jcase
After you Unlock bootloader you can now root
Root Guide: http://forum.xda-developers.com/showthread.php?t=1996389 - HQRaja
Video Guide [Shows how to unlock bootloader and root] http://forum.xda-developers.com/showthread.php?t=2012346 By owenbeals
Click to expand...
Click to collapse
Mac Users Please Read​
For mac..
1) no drivers needed, and
2) replace fastboot in the steps below with ./fastboot-mac
Click to expand...
Click to collapse
How To Install A ROM​
1) install CWM Custom recovery from here http://forum.xda-developers.com/showthread.php?t=1993454
OR install TWRP custom recovery from here: http://forum.xda-developers.com/showthread.php?t=1994662
[At the moment CWM seems to be more stable] [DO NOT INSTALL BOTH! ONE OR THE OTHER!]
2) download rom on your phone and put in SDCARD. [it should already be there, most likely in the "download" folder. OR download the rom to your computer and transfer it to your phone
3. Download the Boot.img Onto your computer
4. Make a folder in C: called android. put he boot.img in it
5. Connect your phone to your computer, and make sure your htc drivers are installed and usb debugging is on. [Setting>Developer options>Then Check USB DEBUGGING]
6. Open Command Prompt (To get there you click start> Type in CMD on search > and then click command Prompt.)
7. In command prompt Type in "Adb Reboot bootloader"
8. That should put your phone into boot loader.
9. Then in CMD type "Fastboot flash boot <C:\android\boot.img>"
10. Once that is done you can close CMD
11.) Reboot your phone, and hold down on the volume rocker at the same time to get into bootloader.
12.) Now go to recovery and press power to click. (In recovery you use volume rockers to go up and down and power to click)
13) *make a backup in case anything goes wrong*
14) Then full wipe (cache, davlik, factory, etc)
15) go to install and find the .zip file of the rom and flash it, be patient it may take a while
16 reboot system and you'll be done be patient for this one too, first boot always takes a while
***NOTE*** some rom have specific directions that may differ from this, so make sure to read them. But this guide is how you install most roms
Click to expand...
Click to collapse
How To Flash A Custom Kernel​
1. Same as ROM. 1) install CWM Custom recovery from here http://forum.xda-developers.com/sho...m.xda-developers.com/showthread.php?t=1994662
2. Download the kernal modules on your phone and place them in your sd card.
3. Download the Boot.img Onto your computer ( Could be called something different but on the kernal, the op will usually tell you what to flash in fastboot and what to flash in recovery)
4. Connect your phone to your computer, and make sure your htc drivers are installed and usb debugging is on. [Setting>Developer options>Then Check USB DEBUGGING]
5. Open Command Prompt (To get there you click start> Type in CMD on search > and then click command Prompt.)
6. In command prompt Type in "Adb Reboot bootloader"
7. That should put your phone into boot loader.
8. Then in CMD type "Fastboot flash boot <Insert file name here>" That is boot.img you downloaded, or whatever its called.
9. Once that is done you can close CMD
10. Then go into recovery and flash the Kernal Modules you downloaded and placed into your sd card.
11. Then reboot your device and you should be done.
***NOTE*** This method may change in the future, and some kernals may have some additional insturctions.
Click to expand...
Click to collapse
If i missed anything please tell me
hope this helped you . If it did, it would mean a lot for you if you hit that thanks button
Click to expand...
Click to collapse
this was first posted in dna android developed, but i deleted it there and posted it here​
don't you have to have s-off to flash a custom kernel? Your links are bringing up 404 errors.
Are you sure you are in the right forum?
nrfitchett4 said:
don't you have to have s-off to flash a custom kernel? Your links are bringing up 404 errors.
Are you sure you are in the right forum?
Click to expand...
Click to collapse
haha fixed the links.
also theres kernals in original android development forum. An example is cubed kernal
dont use "etc..." explain that ****
What else would I say.....
Sent from my HTC6435LVW using xda app-developers app
Thanks for this!
C-Lang said:
Thanks for this!
Click to expand...
Click to collapse
No problem
nrfitchett4 said:
don't you have to have s-off to flash a custom kernel? Your links are bringing up 404 errors.
Are you sure you are in the right forum?
Click to expand...
Click to collapse
By using adb and the fastboot program, found in the sdk-tools, you don't necessarily need S-off for anything. Most of the stuff you need s-off for is avoided using the sdk-tools.
can this be done from ubuntu ?
Sent from my cm_tenderloin using Tapatalk 2
ufish2 said:
can this be done from ubuntu ?
Sent from my cm_tenderloin using Tapatalk 2
Click to expand...
Click to collapse
yes but you might have to use a different program then command prompt. Im not completly sure what unbuntu has. If ubuntu has command prompt then it should be same. It should be the same no matter what "terminal emulator" u have
added fixes for people having trouble with mac
MustafaHadaKing said:
added fixes for people having trouble with mac
Click to expand...
Click to collapse
Thanks
Sent from my Nexus 4
Toaster Strudels said:
Thanks
Sent from my Nexus 4
Click to expand...
Click to collapse
no problem! Hope it helped
MustafaHadaKing said:
no problem! Hope it helped
Click to expand...
Click to collapse
You posted that "Thanks" from my phone. I revoke my thanks.
updated to v2

[Guide]-[TWRP]-[SuperSu]-How to Root P10 Lite

Hello
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
*/
This guide will show you how to install TWRP and SuperSU on your P10 Lite.
What we need to do?
*Installing ADB and Fastboot in your computer if you haven't*
*Unlock Bootloader*
*Flash TWRP*
*Flash SuperSU*
Installing ADB and Fastboot
https://forum.xda-developers.com/showthread.php?t=2588979
Unlocking the Bootloader
Note: Unlocking bootloader will completely wipe your device’s data(Everything like music, photos, videos & apps).So it's recommended taking backup of your important data.
*Install HiSuite drivers are inluded*
http://consumer.huawei.com/minisite/HiSuite_en/index.html
*Now open the link below and sign in with your huawei ID and follow the Instructions until you get your 16-digt code*
https://hwid5.vmall.com/CAS/portal/loginAuth.html?lang=en-us&validated=true&themeName=red&service=http%3A%2F%2Femui.huawei.com%2Fen%2Fplugin%2Fhwlogin%2Fvalidate%3Fru%3Dhttp%253A%252F%252Femui.huawei.com%252Fen%252Fplugin%252Funlock%252Findex&loginChannel=22000000&reqClientType=2023
*Go to Developer Option and Enable OEM Unlock and USB Debugging
*Now plug your usb and open ADB and type*
adb reboot bootloader
Click to expand...
Click to collapse
Once you're in the bootloader type this
fastboot oem unlock your 16-digit code
Click to expand...
Click to collapse
Your Device will automatically factory-reset and reboot.
Now you have an Unlocked-Bootloader.
Installing TWRP:
Download(Thanks to Manuela.K):
https://mega.nz/#!tUJhmJiZ!ZgV9ZTPqNYG8XhRycVhT8FOBG0ffkUxIesf5V3abmqE
Connect your Phone and type this in ADB
adb devices
Click to expand...
Click to collapse
it will show the coonnected devices
adb reboot bootloader
Click to expand...
Click to collapse
When you're in fastboot mode type this
fastboot flash recovery (Drag the downloaded twrp)
Click to expand...
Click to collapse
Now type
fastboot reboot
Click to expand...
Click to collapse
When the phone starts
adb reboot recovery
Click to expand...
Click to collapse
Now you will boot into recovery
Installing SuperSu (ROOT!!):
*First Download SuperSu for EMUI 5 SuperSu is not officially supported yet*
https://forum.xda-developers.com/p9/development/root-supersu-2-81-emui-5-t3612258
*choose 1a or 1b*
*Put it in SDcard and boot to TWRP by adb or by holding power+vol-up until huawei logo show up*
*In Twrp press install and select storage SDcard and select your supersu zip*
*Flash it*
*Reboot and check your root by root checker*
maxwelx64 said:
Link for getting unlock code is not working for me.
I get the unlock code from here:
emui.huawei.com/en/plugin/unlock/index
Another thing is the usb debugging mode need to switch on again after the reset.
Hope this will help.
Click to expand...
Click to collapse
​
aburezk said:
adb reboot bootloader
Click to expand...
Click to collapse
When you're in fastboot mode type this
fastboot flash recovery (Drag the downloaded twrp)
Click to expand...
Click to collapse
Now type
adb reboot
Click to expand...
Click to collapse
Click to expand...
Click to collapse
adb reboot bootloader
Click to expand...
Click to collapse
: the device enters to bootloader/fastboot mode
When you're in fastboot mode type this
fastboot flash recovery (Drag the downloaded twrp)
Click to expand...
Click to collapse
: flash a custom recovery
Now type
adb reboot
Click to expand...
Click to collapse
Wrong !
Wile device in bootloader mode, ONLY fastboot command are allowed !
Please send the right command : "adb reboot" -> "fastboot reboot"
Now type
fastboot reboot
Click to expand...
Click to collapse
Regards,​
surdu_petru said:
: the device enters to bootloader/fastboot mode
When you're in fastboot mode type this
: flash a custom recovery
Now type
Wrong !
Wile device in bootloader mode, ONLY fastboot command are allowed !
Please send the right command : "adb reboot" -> "fastboot reboot"
Now type
Regards,​
Click to expand...
Click to collapse
Sorry, thanks
aburezk said:
Hello
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
*/
This guide will show you how to install TWRP and SuperSU on your P10 Lite.
What we need to do?
*Installing ADB and Fastboot in your computer if you haven't*
*Unlock Bootloader*
*Flash TWRP*
*Flash SuperSU*
Installing ADB and Fastboot
https://forum.xda-developers.com/showthread.php?t=2588979
Unlocking the Bootloader
Note: Unlocking bootloader will completely wipe your device’s data(Everything like music, photos, videos & apps).So it's recommended taking backup of your important data.
*Install HiSuite drivers are inluded*
http://consumer.huawei.com/minisite/HiSuite_en/index.html
*Now open the link below and sign in with your huawei ID and follow the Instructions until you get your 16-digt code*
https://hwid5.vmall.com/CAS/portal/loginAuth.html?lang=en-us&validated=true&themeName=red&service=http%3A%2F%2Femui.huawei.com%2Fen%2Fplugin%2Fhwlogin%2Fvalidate%3Fru%3Dhttp%253A%252F%252Femui.huawei.com%252Fen%252Fplugin%252Funlock%252Findex&loginChannel=22000000&reqClientType=2023
*Go to Developer Option and Enable OEM Unlock and USB Debugging
*Now plug your usb and open ADB and type*
Once you're in the bootloader type this
Your Device will automatically factory-reset and reboot.
Now you have an Unlocked-Bootloader.
Installing TWRP:
Download(Thanks to Manuela.K):
https://mega.nz/#!tUJhmJiZ!ZgV9ZTPqNYG8XhRycVhT8FOBG0ffkUxIesf5V3abmqE
Connect your Phone and type this in ADB
it will show the coonnected devices
When you're in fastboot mode type this
Now type
When the phone starts
Now you will boot into recovery
Installing SuperSu (ROOT!!):
*First Download SuperSu for EMUI 5 SuperSu is not officially supported yet*
https://forum.xda-developers.com/p9/development/root-supersu-2-81-emui-5-t3612258
*choose 1a or 1b*
*Put it in SDcard and boot to TWRP by adb or by holding power+vol-up until huawei logo show up*
*In Twrp press install and select storage SDcard and select your supersu zip*
*Flash it*
*Reboot and check your root by root checker*​
Click to expand...
Click to collapse
Link for getting unlock code is not working for me.
I get the unlock code from here:
emui.huawei.com/en/plugin/unlock/index
Another thing is the usb debugging mode need to switch on again after the reset.
Hope this will help.
Why is this thread here, we have P10 Lite forum?
dejansabo said:
Why is this thread here, we have P10 Lite forum?
Click to expand...
Click to collapse
I created this before p10 lite forum was made
TWRP problems
Hey man, i unlocked the bootloader and installed twrp. In the twrp install menu it shows me a bunch of numbers and letters being my internal storage. What can i do? I have huawei p10 lite
SebiTheJOker said:
Hey man, i unlocked the bootloader and installed twrp. In the twrp install menu it shows me a bunch of numbers and letters being my internal storage. What can i do? I have huawei p10 lite
Click to expand...
Click to collapse
That's because of encrypted files
aburezk said:
That's because of encrypted files
Click to expand...
Click to collapse
Can you explain me more about that? Is there something I can do to decrypt them? I have put the supersu file on internal storage and it shows encrypted. It s my first Huawei and I m newbie with it. Thank you very much
SebiTheJOker said:
Can you explain me more about that? Is there something I can do to decrypt them? I have put the supersu file on internal storage and it shows encrypted. It s my first Huawei and I m newbie with it. Thank you very much
Click to expand...
Click to collapse
You need an SDcard first put the Supersu.zip in the SDcard then you can install it
aburezk said:
You need an SDcard first put the Supersu.zip in the SDcard then you can install it
Click to expand...
Click to collapse
Thank you, it worked. Is there any way to flash stock firmware again? Before i flashed supersu i tried using dload folder with update.app and it didn't worked. (was-LX1 europe)
SebiTheJOker said:
Thank you, it worked. Is there any way to flash stock firmware again? Before i flashed supersu i tried using dload folder with update.app and it didn't worked. (was-LX1 europe)
Click to expand...
Click to collapse
I haven't tried flashing any stock updates
aburezk said:
That's because of encrypted files
Click to expand...
Click to collapse
SebiTheJOker said:
Hey man, i unlocked the bootloader and installed twrp. In the twrp install menu it shows me a bunch of numbers and letters being my internal storage. What can i do? I have huawei p10 lite
Click to expand...
Click to collapse
i got the same problem, i also have an external sd card but the phone didn't detect it, what can i do to resolve this issue?
simo1994 said:
i got the same problem, i also have an external sd card but the phone didn't detect it, what can i do to resolve this issue?
Click to expand...
Click to collapse
You need to install .zip from SD Card
Try this TWRP
https://forum.xda-developers.com/android/development/beta-t3619496
aburezk said:
You need to install .zip from SD Card
Try this TWRP
https://forum.xda-developers.com/android/development/beta-t3619496
Click to expand...
Click to collapse
it says version 3.1.1-0 but when i install it says 3.1.1-2 that i already installed before...
and files are still encrypted and i don't find the zip
simo1994 said:
it says version 3.1.1-0 but when i install it says 3.1.1-2 that i already installed before...
and files are still encrypted and i don't find the zip
Click to expand...
Click to collapse
Backup your apps and data in Huawei backup
Flash this zip
https://build.nethunter.com/android-tools/no-verity-opt-encrypt/
Wipe data in twrp which will remove encryption
aburezk said:
Backup your apps and data in Huawei backup
Flash this zip
https://build.nethunter.com/android-tools/no-verity-opt-encrypt/
Wipe data in twrp which will remove encryption
Click to expand...
Click to collapse
i've solved using another method, i've installed the zip file via ADB sideload
Hi. I have done all the steps and now i have twrp installed, but when supersu is installed my p10 lite wont work with headphones. This happens exclusively after installing supersu, after remove root my phone went normal :/ any ideas? I need root acces to install viper4android (sorry for my bad english) thanks
Hello, excuse my English but not very comfortable on it.
To the page "emui.huawei.com/en/plugin/unlock/detail" I fill in the information in order to apply for the unlock password, knowing that I have a "P10 Lite Mod: WAS-L1" Tab "PRODUCT IMEI or MEID" I register my imei, but apparently I have two imei. I have to try several combinations (ex: xxxxx / xxxxx) and it puts me "IMEI must be composed of decimal numbers (0 ~ 9) or letters (a ~ z or A ~ Z)." How should I register these IMEIs to validate my application?
Thanks in advance.
pika83 said:
Hello, excuse my English but not very comfortable on it.
To the page "emui.huawei.com/en/plugin/unlock/detail" I fill in the information in order to apply for the unlock password, knowing that I have a "P10 Lite Mod: WAS-L1" Tab "PRODUCT IMEI or MEID" I register my imei, but apparently I have two imei. I have to try several combinations (ex: xxxxx / xxxxx) and it puts me "IMEI must be composed of decimal numbers (0 ~ 9) or letters (a ~ z or A ~ Z)." How should I register these IMEIs to validate my application?
Thanks in advance.
Click to expand...
Click to collapse
Just put one imei.the first or the second..

[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

[RECOVERY][3.4.0-15][surya]TWRP Xiaomi Poco X3

Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Code:
#include <std_disclaimer.h>
/*
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/
Features:
- Decryption works
- Otg works
- Flash Rom works
- F2FS support
- Fastboot boot command support
Not working:
- Fastbootd
- Adb sideload
- Backup restore and image flash (system-vendor-product)
- Android 11 fully support
- Touch works
Download:
TWRP 3.4.0-15 Unofficial by mauronofrio
TWRP 3.4.0-14 Unofficial by mauronofrio
TWRP 3.4.0-12 Unofficial by mauronofrio
To Flash the TWRP:
Code:
fastboot flash recovery twrp-3.3.1-xx-xxxxxx-mauronofrio.img
Then reboot in TWRP manually or using a fastboot command.
Code:
fastboot boot twrp-3.3.1-xx-xxxxxx-mauronofrio.img
or
Code:
fastboot oem reboot-recovery
REMEMBER: is important that from fastboot you directly go in TWRP mode or the TWRP will be overwritten.
Reccomended ADB and Fastboot binaries:
Adb and Fastboot Installer
Source code:
https://github.com/Teamwin/android_bootable_recovery
https://github.com/mauronofrio/android_device_xiaomi_surya
My Telegram TWRP Support Group:
https://t.me/twrp_Mauronofrio
Donations:
Credits:
- Thanks to @bigbiff and @Captain_Throwback for the hard work on this android 10 TWRP
Thanks to all testers on the Telegram Group
Created 2020-09-23
Tyvm
Ok men
this gets hot
Thanks
Wow! The first one
I am still waiting for my bootloader to be unlocked but then I will give it a try for sure
not working fastboot? what impact does that have? Fastboot not working? Thank you
Thanks for your work
Not working : image flash (system-vendor-product)
Click to expand...
Click to collapse
Doest it mean that when flashing a rom from recovery, theses partitions won't be updated ?
adrenochrome25 said:
Thanks for your work
Doest it mean that when flashing a rom from recovery, theses partitions won't be updated ?
Click to expand...
Click to collapse
means you cant flash .img yet (like for gsi roms). zip roms will work fine
My phone is not here yet.
Can you backup persist.img partition using dd command from twrp terminal?
do you need to unlock recovery to flash twrp? unlocking will cause data erase, right? is it possible to do it without data loss?
Yes! It came earlier than expected, didn't even receive my phone yet, very good news!
crazyjuliano said:
do you need to unlock recovery to flash twrp? unlocking will cause data erase, right? is it possible to do it without data loss?
Click to expand...
Click to collapse
Yes for first two questions . No for the 3rd One.
LUNARIO said:
Yes for first two questions . No for the 3rd One.
Click to expand...
Click to collapse
Thank you, one more question though, once we have twrp ready does it also mean we have possibility to root device as well?
Hi
I have a little problem...
I have done:
fastboot flash recovery twrp-3.4.0-12-surya-mauronofrio.img
and fastboot says:
Sending 'recovery' (131072 KB) FAILED (remote: 'Requested download size is more than max allowed
')
Finished. Total time: 0.004s
How could I fix?
crazyjuliano said:
Thank you, one more question though, once we have twrp ready does it also mean we have possibility to root device as well?
Click to expand...
Click to collapse
Yes it it will be possible to Root
---------- Post added at 11:55 AM ---------- Previous post was at 11:31 AM ----------
Phoenix_Alx said:
Hi
I have a little problem...
I have done:
fastboot flash recovery twrp-3.4.0-12-surya-mauronofrio.img
and fastboot says:
Sending 'recovery' (131072 KB) FAILED (remote: 'Requested download size is more than max allowed
')
Finished. Total time: 0.004s
How could I fix?
Click to expand...
Click to collapse
Fastboot by default wont work with USB 3 ports. Connect to USB 2 or you need to install Windows 7 drivers
LUNARIO said:
Yes it it will be possible to Root
---------- Post added at 11:55 AM ---------- Previous post was at 11:31 AM ----------
Fastboot by default wont work with USB 3 ports. Connect to USB 2 or you need to install Windows 7 drivers
Click to expand...
Click to collapse
upps sorry I didn't say. It is connected in USB2 and linux.
Anyway. After of many reboots in bootloader I have flash recovery but...
now, whe phone enter in twrp doesn't working touch in screen and show a screen with the title: mount and it ask a password.
very strange
Phoenix_Alx said:
upps sorry I didn't say. It is connected in USB2 and linux.
Anyway. After of many reboots in bootloader I have flash recovery but...
now, whe phone enter in twrp doesn't working touch in screen and show a screen with the title: mount and it ask a password.
very strange
Click to expand...
Click to collapse
O, fixed.
I have flashed the rom from xiaomi.eu https://forum.xda-developers.com/xiaomi-poco-x3-nfc/how-to/rom-xiaomi-eu-rom-poco-x3-nfc-t4165247
and boot with its boot.img. Miui has started fine and then I have restarted in recovery mode. it's working fine now
Phoenix_Alx said:
upps sorry I didn't say. It is connected in USB2 and linux.
Anyway. After of many reboots in bootloader I have flash recovery but...
now, whe phone enter in twrp doesn't working touch in screen and show a screen with the title: mount and it ask a password.
very strange
Click to expand...
Click to collapse
Are you in stock or xiaomi.eu?
Very happy to see this thread. Thank you for your work
piranime said:
Are you in stock or xiaomi.eu?
Click to expand...
Click to collapse
before, with the problem in stock. Now in xiaomi.eu
Phoenix_Alx said:
upps sorry I didn't say. It is connected in USB2 and linux.
Anyway. After of many reboots in bootloader I have flash recovery but...
now, whe phone enter in twrp doesn't working touch in screen and show a screen with the title: mount and it ask a password.
very strange
Click to expand...
Click to collapse
I've managed the same, I guess it's because I forgot to remove any fingerprint / password before flashing
So now phone always boots into twrp and is stuck at the Mount / Decrypt Data screen where it's asking for a password
I've downloaded stock ROM xxx://bigota.d.miui.com/V12.0.2.0.QJGEUXM/miui_SURYAEEAGlobal_V12.0.2.0.QJGEUXM_c68aede605_10.0.zip and am wondering how to get working system back
Would this be the correct steps?
1) extract boot.img from the ROM
2) flashing the boot.img through command fastboot flash boot boot.img
Any other step necessary to get my phone to boot back to stock?
Thanks for your help

problem with flashing rom

Hi guys,
i unlocked the bootloader of my p20lite with PotatoNV and i installed TWRP recovery.
Then i wiped alla data including internal storage. I tried to flashing some ROM (with zip file and with img file), but they don't work(it seems they aren't installed), at every reboot system smartphone shows me TWRP recovery.
I don't know what to do. Do you have any tips please?
Thank you
After attached image i show only TWRP
freddie993 said:
Hi guys,
i unlocked the bootloader of my p20lite with PotatoNV and i installed TWRP recovery.
Then i wiped alla data including internal storage. I tried to flashing some ROM (with zip file and with img file), but they don't work(it seems they aren't installed), at every reboot system smartphone shows me TWRP recovery.
I don't know what to do. Do you have any tips please?
Thank you
After attached image i show only TWRP
Click to expand...
Click to collapse
Look here
https://forum.xda-developers.com/t/i-bricked-my-p20-lite.4449545/#post-86936013
Hi tried to follow those instructions . When i hold both volume button i receive attached screen. i tried to install ROM with sideload method but nothing to do.
freddie993 said:
Hi tried to follow those instructions . When i hold both volume button i receive attached screen. i tried to install ROM with sideload method but nothing to do.
Click to expand...
Click to collapse
Hi,
in fastboot mode run commands :
fastboot oem get-build-number
fastboot oem get-product-model
fastboot getvar vendorcountry
fastboot oem oeminforead-CUSTOM_VERSION
fastboot oem oeminforead-SYSTEM_VERSION
and post the results.
Some might fail, so don't worry about it.
i can't access in fastboot mode neither from TWRP
i did it @-Alf-
freddie993 said:
i did it @-Alf-
Click to expand...
Click to collapse
does this mean problem solved?
-Alf- said:
does this mean problem solved?
Click to expand...
Click to collapse
unfortunately no , i tried to install system via fastboot but at the reboot i show TWRP....
freddie993 said:
unfortunately no , i tried to install system via fastboot but at the reboot i show TWRP....
Click to expand...
Click to collapse
In fastboot mode flash stock recovery_ramdisk, download Here
Use command fastboot flash recovery_ramdisk RECOVERY_RAMDISK-9.1.img, then run command
fastboot erase userdata, and reboot.
-Alf- said:
In fastboot mode flash stock recovery_ramdisk, download Here
Use command fastboot flash recovery_ramdisk RECOVERY_RAMDISK-9.1.img, then run command
fastboot erase userdata, and reboot.
Click to expand...
Click to collapse
with this command i resolved, the ROM has been installed Thank you , but now i must install again twrp?
freddie993 said:
now i must install again twrp?
Click to expand...
Click to collapse
if you need it ...
My little advice - install TWRP instead of eRecovery, it makes things easier... And please use RECOMMENDED TWRP , not this sh... 3.5.2 and above.
-Alf- said:
if you need it ...
My little advice - install TWRP instead of eRecovery, it makes things easier... And please use RECOMMENDED TWRP , not this sh... 3.5.2 and above.
Click to expand...
Click to collapse
i'd installed
twrp-3.6.1_9-0-anne is this wrong for you??
freddie993 said:
i'd installed
twrp-3.6.1_9-0-anne is this wrong for you??
Click to expand...
Click to collapse
this TWRP has caused you problems, but I will not force my opinion on you.
Happy flashing!
-Alf- said:
this TWRP has caused you problems, but I will not force my opinion on you.
Happy flashing!
Click to expand...
Click to collapse
don't worry. thank you very much for your tips
freddie993 said:
don't worry. thank you very much for your tips
Click to expand...
Click to collapse
hey hi id like to know which version of twrp you ended up installing? if any.
had the same issue as you and solved it the same way but id like to keep twrp as my main recovery
James1807 said:
hey hi id like to know which version of twrp you ended up installing? if any.
had the same issue as you and solved it the same way but id like to keep twrp as my main recovery
Click to expand...
Click to collapse
hi, sorry for waiting, i have 3.5.1 version
freddie993 said:
hi, sorry for waiting, i have 3.5.1 version
Click to expand...
Click to collapse
ok and uh any special procedure to keep twrp as your main? or you just flashed it to the recovery like that and thats it?
James1807 said:
ok and uh any special procedure to keep twrp as your main? or you just flashed it to the recovery like that and thats it?
Click to expand...
Click to collapse
just flashed to the main recovery, but they both remained and for enter in the twrp i must push vol up+down togheter.

Categories

Resources