Need Guide to Install Treble Rom - Xiaomi Redmi S2 Questions & Answers

Can anybody help me to install Project Treble Rom to my Redmi S2?
i have downloaded .img file from the Lineage/AOSP but failed to install. the custom recovery twrp 3.2.1_ysl has no partition named "system".
regards

the gsi file will be flashable through cmd .You first have to connect your device in fastboot mode to computer and then you have to open cmd and type fastboot devices through the location where you have put your gsi l.umg file and then type
fastboot flash system gsifilename.img

Zaid Sheikh said:
the gsi file will be flashable through cmd .You first have to connect your device in fastboot mode to computer and then you have to open cmd and type fastboot devices through the location where you have put your gsi l.umg file and then type
fastboot flash system gsifilename.img
Click to expand...
Click to collapse
i tried this method.. my rom is based on 32 bit, i want to flash 64 bit rom. i have flashed 32 bit rom, always failing to flash 64 bit.. note: my processor is 64 bit. is there any way to flash 64 bit rom?

kanak_ae said:
i tried this method.. my rom is based on 32 bit, i want to flash 64 bit rom. i have flashed 32 bit rom, always failing to flash 64 bit.. note: my processor is 64 bit. is there any way to flash 64 bit rom?
Click to expand...
Click to collapse
which do you have you have ?
if you have redmi s2 then your processor support 64 bit but the kernel xiaomi provided is 32 bit and it can only run 32 bit os .If you want to run 64 bit os then you should have a 64 bit kernel to run that .☺

Related

Need a cwm recovery for Huawei g6-l11 (LTE)

I can't find any cwm recovery suitable for g6-l11 LTE. Can someone help me develop or find one Pls.
-=-♔♚Need help♚♔-=-
There is twrp recovery u can download it from here
https://drive.google.com/file/d/0B-wMRksKspUMNFY1LWI5X1ltMFU/view?usp=sharing
if u have ubuntu x64 & speed internet connection i can help u to compile cwm
How do you get Ubuntu?? I'm. Using windows 7.
-=-♔♚Need help♚♔-=-
I tried flashing the .img and it worked! Thanks :thumbup::thumbup:
-=-♔♚Need help♚♔-=-
Btw if I accidentally installed a wrong version of cynogenmod will my device soft/hard brick?? And if something else happen what should I do??Should I flash stock boot image? Or what??
-=-♔♚Need help♚♔-=-
Btw on my Huawei G6-L11 Android 4.3 Jellybean. Should I install
CM 10.2/CM 7.2 which??
-=-♔♚Need help♚♔-=-
Need CynogenMod for Huawei G6-L11.
-=-♔♚Need help♚♔-=-
Can anyone help me build one?I have issues with sudo. It kept giving me command not allowed.
-=-♔♚Need help♚♔-=-
i'm building one for u10 i can help u pm me ur fb account or any method to contact with you
I found this guid in other forum. It also have a link for a TWRP recovery.
http://www.htcmania.com/showthread.php?t=969144
Direct Link for the TWRP recovery>
https://yadi.sk/d/SSDNtX5xeMeDB
Note - I did not tried it!
This tutorial is what I have done on my device, I hope can use them my help
Emui installed in your device 3.0 beta we need to install this ROM but does not work...
We will need to download the ROM b370 here I leave the linck: https://yadi.sk/d/gqWACWBleVQAG
And we will do the following for installation, after downloaded extractor must install the Huawei on our computer here the link: http://forum.xda-developers.com/show...php?t=2433454
Then with the Huawei exhaust unzip the following
-Boot.img
-Cust.img
-Recovery.img
-System.img
Now you will have to download the android adb and the SDK tools, adb link here: http://www12.zippyshare.com/v/67744317/file.html
And put the adb on the local disk c and in the folder adb, place the custom recovery.
And we will do the following, execute the cmd in windows
And write the following: chdir c:\adb
And execute the following
-fastboot flash cust cust.img
-fastboot flash recovery recovery.img
-fastboot flash boot boot.img
-fastboot flash system system.img
-fastboot reboot
And ready we already have the system installed with the b370 and the system will tell us that it is Huawei p7 mini not the g6-l11
Now we go to the root of this phone
For that the tutorials need recovery twrp here:
http://www.htcmania.com/showthread.php?t=967406
This is a compilation of the user pepe0000 and there was where remove information in 4pda so stay us more clear tutorial
Agradeciemientos to pepe0000 for bringing us this recovery
He clarified that to install this recovery is mandatory to have the unlocked bootloader, but I know here in this link to go back: http://www.htcmania.com/showthread.php?t=939960
This tutorial was made by D.ceres which I also thank you for this tutorial
1.*descargar and unzip the contents of the ADB at the root of the C: drive * http://www12.zippyshare.com/v/67744317/file.html
TWRP G6-L11 2.*Descargue *: https://yadi.sk/d/SSDNtX5xeMeDB
3.*Copy the downloaded content to the folder file root ADB *
4.*Conect the phone to the computer in Fastboot (bootloader). *(Vol-+ botón de encendido)
5.* Holding down the SHIFT key, right-click on the ADB folder and select the option "Open command window" *
6.* In the command prompt, type without quotes "fastboot flash recovery TWRP_G6-L11.img" or if you want to rename to write the name that been placed
Enter 7.*Pulse now and execute the following code "fastboot reboot"
If you want to return to the original recovery you have to download this file: https://yadi.sk/d/cAphF5smcwmUX
And perform the same procedure.
Again I thank Pepe0000 also for your tutorial because of remove the info there and I couldn't do it on my phone
Click to expand...
Click to collapse
After you install the recovery, downloaded the super su, link its here: https://yadi.sk/d/a92MoztteJAKe
We installed it and ready we will have root on our phone...
That's it, this is what I did and I thank 4pda also because of pull out there is rom
Click to expand...
Click to collapse
How abt cyanogenmod for this device?
-=-♔♚Need help♚♔-=-
flightdragonz said:
How abt cyanogenmod for this device?
-=-♔♚Need help♚♔-=-
Click to expand...
Click to collapse
as far as we know no one is working on it,
some people are working on cm12 for G6-U10, maybe later they will port it to the L11
Twrp g6 l11
messi2050 said:
There is twrp recovery u can download it from here
if u have ubuntu x64 & speed internet connection i can help u to compile cwm
Click to expand...
Click to collapse
Maybe you know where can I get new version of TWRP recovery.img for Huawei G6-L11?

[GUIDE] Mi4i (ferrari)-Prepared device before flashing custom rom ( cm 12 / cm 13 )

My experience flashing ferrari Mi4i with cm 12.1 from stock MIUI 7, and face bootloop. some thread suggesting flash MIUI stock 6 or lower. Downloading fastboot rom of about 900 MB painful for slow internet. after investigating, the bootloop is caused by CM 12.1 (including Mokee rom) built with compatibility on stock rom 6 or lower. So I repack the tools from fastboot stock rom Mi4iGlobal_V6.5.4.0.LXIMICD and delete userdata.img, system.img, ADDED TWRP-3.0.0-ferrari (to replace stock recovery): modify the script to achieve Mi4i stage to ready to flash with custom rom (cm 12 probably cm 13) and no bootloopTested with cm 12.1
PC Pre-requirements :
Your ferrari
Download custom rom your wish to flash to ferrari
Download appropriate gapps
Dowload supersu (not mandatory)
Put all zip file in your root of sdcard storage (internal storare)
In Your PC : windows or linux
Working fastboot (and adb) on the PC
USB Driver for ferrari installled
Procedure
Dowdload zipped tools HERE
Extract the tools any where in your home directore
Open Terminal/console > Navigate to the extracted folder
Turn your ferrari to fastboot mode ( push power button and volume down simultaneously)
Connect ferrari to PC via usb
For linux > execute $sh linux-flash-mi4i_b4_cm.sh > hit enter. Note : if you should use sudo to access fastboot execute $ sudo sh linux-flash-mi4i_b4_cm.sh
For window > double click win-flash_mi4i_b4_cm.bat
After finishing flashing your ferrari will still in FASTBOOT MODE. Switch off (push power button and release) push volume up before release. Sub all going well you will prompted with TWRP 3 on your ferrari do flashing your customs ROM :
Wipe system, cache, dalvik cache (NOTE : do not wipe /sdcard coz you have custom rom.zip and gapps.zip for flashing)
Install cm rom zip, gapps .zip
Wipe cache
Reboot to system
Enjoy CM without bootlop
after double click on win-flash_mi4i_b4_cm.bat nothing happens?
ShawnMercer said:
after double click on win-flash_mi4i_b4_cm.bat nothing happens?
Click to expand...
Click to collapse
worked for me. did you open a terminal in the specific folder?
x1123 said:
My experience flashing ferrari Mi4i with cm 12.1 from stock MIUI 7, and face bootloop. some thread suggesting flash MIUI stock 6 or lower. Downloading fastboot rom of about 900 MB painful for slow internet. after investigating, the bootloop is caused by CM 12.1 (including Mokee rom) built with compatibility on stock rom 6 or lower. So I repack the tools from fastboot stock rom Mi4iGlobal_V6.5.4.0.LXIMICD and delete userdata.img, system.img, ADDED TWRP-3.0.0-ferrari (to replace stock recovery): modify the script to achieve Mi4i stage to ready to flash with custom rom (cm 12 probably cm 13) and no bootloopTested with cm 12.1
PC Pre-requirements :
Your ferrari
Download custom rom your wish to flash to ferrari
Download appropriate gapps
Dowload supersu (not mandatory)
Put all zip file in your root of sdcard storage (internal storare)
In Your PC : windows or linux
Working fastboot (and adb) on the PC
USB Driver for ferrari installled
Procedure
Dowdload zipped tools <link removed>
Extract the tools any where in your home directore
Open Terminal/console > Navigate to the extracted folder
Turn your ferrari to fastboot mode ( push power button and volume down simultaneously)
Connect ferrari to PC via usb
For linux > execute $sh linux-flash-mi4i_b4_cm.sh > hit enter. Note : if you should use sudo to access fastboot execute $ sudo sh linux-flash-mi4i_b4_cm.sh
For window > double click win-flash_mi4i_b4_cm.bat
After finishing flashing your ferrari will still in FASTBOOT MODE. Switch off (push power button and release) push volume up before release. Sub all going well you will prompted with TWRP 3 on your ferrari do flashing your customs ROM :
Wipe system, cache, dalvik cache (NOTE : do not wipe /sdcard coz you have custom rom.zip and gapps.zip for flashing)
Install cm rom zip, gapps .zip
Wipe cache
Reboot to system
Enjoy CM without bootlop
Click to expand...
Click to collapse
Thanks ever so much :good:. That worked like a charm! Now I have AICP 12.1

Android 11 Custom Rom for the Xperia XZs

Hi can anyone make an android 11 custom rom(Pixel experience/ evolution x/ havoc os) for this phone pls? Thank You.
Yes, you can:
go to https://forum.xda-developers.com/t/10-0-project-treble-for-xperia-xzs-2020-03-18.3976367/ then download the zip file and flash vendor.img and boot.img (steps provided in the zip).
then download any android 11 custom rom GSI having arm64 and AB or A/B NOT A only or B only and flash it with fastboot command:
Code:
fastboot flash system <GSI filename>.img
You will need to download and install adb and fastboot tools from google to get the above code working. Also have a bit of patience while first boot your custom ROM after flashing, I will take some time for it to boot up
I have tried:
- Pixel Experience Plus and non-Plus
- Corvus OS
- Havoc OS
Link to official GSI ROMs supporting Project treble devices(This device is included): https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
i get "Invalid sparse file format at header magic"
and my phone won't boot HELP
prayagprajapati17 said:
Yes, you can:
go to https://forum.xda-developers.com/t/10-0-project-treble-for-xperia-xzs-2020-03-18.3976367/ then download the zip file and flash vendor.img and boot.img (steps provided in the zip).
then download any android 11 custom rom GSI having arm64 and AB or A/B NOT A only or B only and flash it with fastboot command:
Code:
fastboot flash system <GSI filename>.img
You will need to download and install adb and fastboot tools from google to get the above code working. Also have a bit of patience while first boot your custom ROM after flashing, I will take some time for it to boot up
I have tried:
- Pixel Experience Plus and non-Plus
- Corvus OS
- Havoc OS
Link to official GSI ROMs supporting Project treble devices(This device is included): https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
Click to expand...
Click to collapse
i get "Invalid sparse file format at header magic"
and my phone won't boot HELP
uh btw don't be stupid like me and rename .xz to .img use 7zip to OPEN the .xz then extract the .img inside
prayagprajapati17 said:
Yes, you can:
go to https://forum.xda-developers.com/t/10-0-project-treble-for-xperia-xzs-2020-03-18.3976367/ then download the zip file and flash vendor.img and boot.img (steps provided in the zip).
then download any android 11 custom rom GSI having arm64 and AB or A/B NOT A only or B only and flash it with fastboot command:
Code:
fastboot flash system <GSI filename>.img
You will need to download and install adb and fastboot tools from google to get the above code working. Also have a bit of patience while first boot your custom ROM after flashing, I will take some time for it to boot up
I have tried:
- Pixel Experience Plus and non-Plus
- Corvus OS
- Havoc OS
Link to official GSI ROMs supporting Project treble devices(This device is included): https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
Click to expand...
Click to collapse
How did Havoc OS work for you?
I am always afraid to flash something that doesn't say precisely that it is for the XZs. But I should mainly be concerned about the kernel, right? If the image is wrong it just won't boot? But the kernel can brick it. Is my assumption correct?
Thanks to everyone who help us illiterates out...
Cordially,
Martin Book
Just follow the guide in the xda thread link I gave, you can use and android 11 GSI ARM64 AB image and you will be fine as far as my testing goes...
Just flash the vendor.img, boot.img and after that find a GSI image with ARM64 AND AB(The file name might use some other code name for this so just make sure the one you download has AB partition).
Note: Android 12 won't work and also daily use is not recommended

How can i install Lineage OS on Doogee X95 ?

So, I want to install Lineage OS instead of Android 10 Go Edition on my Doogee X95, but I can't find any TWRP build for the Doogee X95, so the thing is: How can i do to install Lineage OS on Doogee X95 ? Can anyone help me please ?
The Dogee X95 is a low-end phone, hence Android 10 GO got pre-installed what IMO is absolutely correct.
Of course you can try to flash LOS via ADB Sideload method.
Read
Generic system images | Android Open Source Project
source.android.com
Use this GSI arm64 A-only
[DISCONTINUED][GSI][11] LineageOS 18.x GSI (all archs)
Background: This is a natural continuation/extension of the LineageOS 17.x GSIs I've been making since November 2019. LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance...
forum.xda-developers.com
Unlock bootloader first
Ok i'll check that right now
Ok so i checked for ADB Sideload, but it seems like i need TWRP, and there is no TWRP build for the Doogee X95, so i think i'll try to use the Lineage OS GSI image, and i'll see how can i install it
LR7875, there is a problem with the GSI you told me to use, it's an ARM64; and when i install Droid Hardware Info, it say that i'm using an ARMv7 (armeabi-v7a, armeabi) CPU, same for Treble Check that's saying that i use a 32-bit ARM CPU, but if i check on google the Doogee X95 it says that, it is, indeed, a 64-bit ARM CPU, but the thing is why is it saying that i use a 32bit ARM if it is a 64bit ARM ? Is it safe to use the ARM64 A-Only GSI ?
DidierSardine said:
Ok so i checked for ADB Sideload, but it seems like i need TWRP, and there is no TWRP build for the Doogee X95, so i think i'll try to use the Lineage OS GSI image, and i'll see how can i install it
Click to expand...
Click to collapse
ADB Sideload is a mode bootloader boots into to allow to flash ROMs located on computer: has really nothing to do with TWRP.
Code:
adb devices
adb reboot sideload
adb sideload <ROM-ZIP>
ARMV7 CPU is 32-bit CPU. Hence you can only flash ROMs what are compiled for ARMV7 CPUs.
Ok i'll try to flash the A-only ARM 32bit rom of Lineage OS using sideload, i hope it will works
Hum i just remembered the Lineage OS is a .xz Archive containing the .img, what should i do ?
adb sideload lineage-18.1-20210808-UNOFFICIAL-treble_arm_avS.img (extracted .img file)
or
adb sideload lineage-18.1-20210808-UNOFFICIAL-treble_arm_avS.img.xz (archive)
Sorry, you need to flash arm (32) GSIs, not 64
DidierSardine said:
Hum i just remembered the Lineage OS is a .xz Archive containing the .img, what should i do ?
adb sideload lineage-18.1-20210808-UNOFFICIAL-treble_arm_avS.img (extracted .img file)
or
adb sideload lineage-18.1-20210808-UNOFFICIAL-treble_arm_avS.img.xz (archive)
Click to expand...
Click to collapse
Flash the extracted .IMG file.
jwoegerbauer said:
ADB Sideload is a mode bootloader boots into to allow to flash ROMs located on computer: has really nothing to do with TWRP.
Code:
adb devices
adb reboot sideload
adb sideload <ROM-ZIP>
Click to expand...
Click to collapse
As far as I have concerned it is impossible to ADB sideload a custom ROM via stock recovery.
Also a GSI is a system image, which is impossible to ADB sideload because you cannot dump it into a zip. For ADB sideloadable zips the zip always contains a META-INF file which vertified the ROM.
Hence it is only flashable in fastboot.
The original poster also needs a vbmeta.img from stock rom and flash it in fastboot with a special command, to disable boot vertification (even if bootloader unlocked you still need to disable vertification)
Because you quoted me: WTF? Has nothing whatsoever to do with what I said.
jwoegerbauer said:
Because you quoted me: WTF? Has nothing whatsoever to do with what I said.
Click to expand...
Click to collapse
I mean how can he ADB sideload without twrp
@DidierSardine
If your phone is Project Treble enabled ( should be - but verify this ) then take note that TWRP isn't needed at all to flash a GSI ROM.
How-to in detail is described here:
How to flash a Generic System Image (GSI) on Project Treble supported devices
So your device supports Project Treble, what does that mean for you? It means you can flash a Generic System Image such as LineageOS or Resurrection Remix! Enjoy AOSP-based custom ROMs! Here's a guide on how to install these ROMs.
www.xda-developers.com
Ok, so, i don't flash it using adb sideload, but using fastboot (as described in the link you sent), but the thing is, in the Flash GSI without TWRP section, there is that line:
fastboot -u flash system name_of_system.img
but the thing is: I have to put in the Lineage OS GSI .img file (lineage-18.1-20210808-UNOFFICIAL-treble_arm_avS.img) or the system.img file, because i don't have the system.img file of Lineage OS, and i don't know how can i get it. So i have to put "lineage-18.1-20210808-UNOFFICIAL-treble_arm_avS.img" instead of "name_of_system.img"
like this:
fastboot -u flash system lineage-18.1-20210808-UNOFFICIAL-treble_arm_avS.img
?
Yes, if it's a 32-bit image
Ok thanks, i'll try this right now
I've a problem, when i do
fastboot erase system
i get this error: FAILED (remote: 'not allowed in locked state')
but the thing is: my bootloader is unlocked, so why is it happening ?

[NB1 - Nokia 8][Android 9]Patching Stock boot.img with TWRP?

Hi!
I have coped, with DD (/dev/block/ sda6) on adb slot_a and slot_b to .img files. 64 MB (65535 KB). This is the latest OTA SP for the Official Android 9 from Nokia.
I am trying to patch TWRP onto it, but I can't find a guide for it. Does anyone have one or can tell me how-to? Should I get the TWRP from the twrp.me for my device and patch with, or how should I do it. I'm a bit rusty, it's been a while since I hacked Android.
From TWRP later I can switch slots and copy / backup that partition too, right?

Categories

Resources