Changing default.prop makes recovery unbootable - Porting Problem ZCX TWRP - Android Q&A, Help & Troubleshooting

I had ported ZCX-TWRP from Redmi Note 3 (kenzo) to Redmi 3S Prime (land). As i cant find sources of ZCX-TWRP, I ported it by replacing files from another working recovery.
The ported recovery works good until i make changed in default.prop. If i change it it wont boot.
What i did :
1. Extracted Images with Android Image Kitchen
a) TCX-TWRP of Redmi Note 3
b) Stock Recovery Of Redmi 3S Prime
c) TWRP of Redmi 3S Prime
2. Replace zImage of ZCX-TWRP from Stock
3. Copy and Replace following files from TWRP of Redmi 3S Prime to ZCX-TWRP
Code:
init, init.qcom.usb.sh, init.recovery.usb.rc, property_contexts, seapp_contexts, selinux_version, sepolicy, service_contexts, ueventd.qcom.rc, ueventd.rc
After above steps... the ported ZCX-TWRP booting and everying working but i dont made any changes to "default.prop" i.e. changing ro.product.device to land.
Because of this when flashing roms they shows "Error 7. This zip is for land. but your device is kenzo". So i changed device name to land in default.prop. But after that recovery is not working. Its only working when device name is set to kenzo. I also found "kenzo" string in 3 other files from sbin directory of Ported TCX-TWRP (libc.so, linker64.so, recovery)
Whenever i try to make changes these files ZCX-TWRP wont boot... How can i Solve this...

Related

[help] possibly bricked device

So I was on MIUI 7 with unlocked bootloader, custom recovery (twrp) and rooted. I wanted to try MIUI 8 so I downloaded the zip version from MIUI website and moved it to my phone then I go to custom recovery. I flashed the rom and before the flashing completed there was a red line of error code saying
'cannot mount /factory'
I thought that kind of error can be ignored but I guess I was wrong and now my phone stuck in MI logo.
I can still go to fastboot,
I can go to recovery,
I don't know how can i go to EDL to reflash with miflash,
when I tried going into fastboot and using adb, no devices detected.
Is this the end of my redmi note 3 life or is there a way ? Please, any help is greatly appreciated.
n.b :
It's redmi note 3 snapdragon version.
dokiace said:
So I was on MIUI 7 with unlocked bootloader, custom recovery (twrp) and rooted. I wanted to try MIUI 8 so I downloaded the zip version from MIUI website and moved it to my phone then I go to custom recovery. I flashed the rom and before the flashing completed there was a red line of error code saying
'cannot mount /factory'
I thought that kind of error can be ignored but I guess I was wrong and now my phone stuck in MI logo.
I can still go to fastboot,
I can go to recovery,
I don't know how can i go to EDL to reflash with miflash,
when I tried going into fastboot and using adb, no devices detected.
Is this the end of my redmi note 3 life or is there a way ? Please, any help is greatly appreciated.
n.b :
It's redmi note 3 snapdragon version.
Click to expand...
Click to collapse
here is the solution :- http://forum.xda-developers.com/redmi-note-3/how-to/guide-reboot-to-edl-mode-fastboot-test-t3398718
p.s : also check your driver installed correctly.
zooreo said:
here is the solution :- http://forum.xda-developers.com/redmi-note-3/how-to/guide-reboot-to-edl-mode-fastboot-test-t3398718
p.s : also check your driver installed correctly.
Click to expand...
Click to collapse
Exactly. Sound like your drivers aren't installed correctly. After that you should be able to flash the phone.
Sent from Note 3, Xiaomi Redmi Note 3.
zooreo said:
here is the solution :- http://forum.xda-developers.com/redmi-note-3/how-to/guide-reboot-to-edl-mode-fastboot-test-t3398718
p.s : also check your driver installed correctly.
Click to expand...
Click to collapse
mr.loverlover said:
Exactly. Sound like your drivers aren't installed correctly. After that you should be able to flash the phone.
Sent from Note 3, Xiaomi Redmi Note 3.
Click to expand...
Click to collapse
That is very awesome! I just finished reflashing back to global stable with mi flash, thank you very much!
So the problems are on my driver? not on the twrp source file or maybe the modded boot img ? because I thought that I forgot to modify the boot.img before flashing twrp

Solved: [Redmi Note 4x] E:/ [cofface]Error hadn't found /system/build.prop

I was using pixel experience oreo for my Redmi Note 4x previously. Then I installed miui 10 rom, but I found miui 10 is not good as pixel experience rom.
So, tried to flash pixel experience back. [I'm using Teamwin recovery]
I wiped data, Cache and Dalvik and again tried to flash Pixel experience.
But the rom couldn't be installed and returned an Error saying -
E:/ [cofface]Error hadn't found /system/build.prop
...........
Warning: No file_contexts
E3004: This package is for device: mido; this device is .
Updater process ended with ERROR: 7
Error installing zip file.............
Again I tried to install miui 10 and it installs. But I want to get back to pixel experience.
( I edited build.prop for enabling camera 2 API )
Is there any solution for this problem?
Please help me out of this problem.
TIA
Your device codename is mido. Am i right?
Try to wipe System,Data,Dalvik,Cache,Internal Storage
and put ur .zip in sdcard
If this do not help try fastboot the miui
Peak.Krittin said:
Your device codename is mido. Am i right?
Try to wipe System,Data,Dalvik,Cache,Internal Storage
and put ur .zip in sdcard
If this do not help try fastboot the miui
Click to expand...
Click to collapse
Thanks a lot bro. It worked

[ GUIDE] [ CURTANA ]Decrypt Data partition

As curtana has dynamic partition, we can't flash any zips to modify partitions. That's why we can't change/edit fstab to make data encryptable. But i found out, that, the partitions' content can be edited right after flashing any rom. They become RO only after first boot.​
Instructions:
1. Download any Eu rom for you variant
2. Download decrypt zip from here
3. Flash Eu and flash en_de-crypt_v2.zip right after that without reboot
4. Unmount vendor partition
5. Format data and reboot.
Thanks. I'm going to try this later.
So after that you can edit root files? cuz i want to edit mixer_paths.xml because of the very low sound
After this , phone always reboot in fastboot , xiaomi eu 11.0.9.0 ! who can i fix this now?
Anasbel said:
After this , phone always reboot in fastboot , xiaomi eu 11.0.9.0 ! who can i fix this now?
Click to expand...
Click to collapse
I got the same issue and the only one thing I can fix it was to reinstall ROM or flash stock ROM via MiFlash.
I think rebooting in fastboot shows that the ROM on your device is broken.
For example when I'd tried to install Xiaomi.eu after installing LineageOS (ofc did full_wipe), I got the rebooting issue. But flashing Stock ROM before installing that ROM, It went well.
It sometimes depends on the installed ROM or other zips which you install it with
For me it worked also with Global 11.01, but not by the first Try and I could not see it in Miui, but after flashing a Custom Rom (Havoc) over it, the Device was decrypted.
Can't flash it with Joyeuse.
Can someone please port it?
Thanks!
this method does not work, writes rw, but when you delete the system application after restarting, you get bootlop.
I can't believe he provided a boot-loop tutorial
will it work for poco m2 pro (GRAM)?
@Sudeep Duhoon Bro can you help this thread out plz?
Unable to decrypt FBE device
Plz anybody help this out... I unlocked bootloader, then immediately flashed Pitchblack recovery, then booted into recovery. Initially console shows decrypted FBE device with default password. But Encryption status : Encryped So I went into wipe...
forum.xda-developers.com
There is a newer Version v3 of the decryption Zip. Could you please update the Link?
If I am not mistaken, the zip is designed to encrypt, it will not work to decrypt.
Via recovery:
- If the file exists: -
/vendor/etc/fstab.qcom.bak
1 - Go to the file:
/vendor/etc/fstab.qcom
2 - With a text editor change in fstab.qcom:
"encryptable = ice" to "fileencryption = ice"
- If the file does not exist: -
/vendor/etc/fstab.qcom.bak
1 - Go to the file:
/vendor/etc/fstab.qcom
2 - We copy it in the form:
/vendor/etc/fstab.qcom.bak
3 - With a text editor change in fstab.qcom:
"encryptable = ice" to "fileencryption = ice"
The error is displayed in the selected line of the encryption.sh file, the command has the strings reversed.
Changing that line in the file should work the .zip

Is TWRP out for Redmi Note 9?

Okay, I have been looking everywhere... Is Official TWRP out for Note 9 yet? I dont want to install unofficial ROM, and compiling my own version is too much time. If its out, can someone throw me with a link? If not, what do you think, when will they upload it?
Thanks for you answers.
https://twrp.me/Devices/
zerodeaths000 said:
Okay, I have been looking everywhere... Is Official TWRP out for Note 9 yet? I dont want to install unofficial ROM, and compiling my own version is too much time. If its out, can someone throw me with a link? If not, what do you think, when will they upload it?
Thanks for you answers.
Click to expand...
Click to collapse
No, no official TWRP out there, yet. I don't know for the RN9 (merlin), but for the RN9s/Pro India (curtana) there are LR TWRP, LOS recovery and PBRP out. For the RN9Pro global (joyeuse) and RN9ProMAX(excalibur) only PBRP.
Don't flash a recovery for curtana on a joyeuse or an excalibur! It could hardbrick the phone and only a service centre or a MI account with special rights to flash in EDL mode (which Xiaomi doesn't give out anymore) would be able to fix that!
There are already many ROMs for the curtana out there, but for the others only a few.
For the RN9(merlin) is a sperate forum here on XDA.
Tried all sorts, none worked.
Until I found this.
https://www.cyanogenmods.org/twrp-recovery-redmi-note-9-pro/
Offered there for Redmi Note 9 Pro / 9s [curtana]
But also works on my Redmi Note 9 Pro Joyeuse.
Backup was created without an error message.
Restoring data also worked correctly.
All other versions had a problem with this and issued an error and the data was of course destroyed.
The misc.bin is important for the installation, which was not included in all other versions
Ps:
Point 8 does not work there,
fastboot oem reboot-recovery
fastboot does not know this command.
Then just by
fastboot reboot
reboot and quickly via buttons
Power + volume up
boot into recovery mode
Thanks!
tinaeire said:
No, no official TWRP out there, yet. I don't know for the RN9 (merlin), but for the RN9s/Pro India (curtana) there are LR TWRP, LOS recovery and PBRP out. For the RN9Pro global (joyeuse) and RN9ProMAX(excalibur) only PBRP.
Don't flash a recovery for curtana on a joyeuse or an excalibur! It could hardbrick the phone and only a service centre or a MI account with special rights to flash in EDL mode (which Xiaomi doesn't give out anymore) would be able to fix that!
There are already many ROMs for the curtana out there, but for the others only a few.
For the RN9(merlin) is a sperate forum here on XDA.
Click to expand...
Click to collapse
Thanks for reminding, I didn't even know I had a joyeuse device, with QJZEUXM rom. I wanted to flash curtana... You saved me
nostra_DE said:
Tried all sorts, none worked.
Until I found this.
https://www.cyanogenmods.org/twrp-recovery-redmi-note-9-pro/
Offered there for Redmi Note 9 Pro / 9s [curtana]
But also works on my Redmi Note 9 Pro Joyeuse.
Backup was created without an error message.
Restoring data also worked correctly.
All other versions had a problem with this and issued an error and the data was of course destroyed.
The misc.bin is important for the installation, which was not included in all other versions
Ps:
Point 8 does not work there,
fastboot oem reboot-recovery
fastboot does not know this command.
Then just by
fastboot reboot
reboot and quickly via buttons
Power + volume up
boot into recovery mode
Click to expand...
Click to collapse
What ROM does your device use?
@zerodeaths000
Redmi Note 9 Pro – EEA Stable ROM
V11.0.4.0.QJZEUXM
https://mirom.ezbox.idv.tw/en/phone/joyeuse/
If you actually have the ROM QJZEUXM, then your phone is a Redmi Note 9 Pro
Without Pro, it had to have the following ROM QJOEUXM
https://mirom.ezbox.idv.tw/en/phone/merlin/
So never overlook the Pro, Pro and not Pro differ.
nostra_DE said:
@zerodeaths000
Redmi Note 9 Pro – EEA Stable ROM
V11.0.4.0.QJZEUXM
https://mirom.ezbox.idv.tw/en/phone/joyeuse/
If you actually have the ROM QJZEUXM, then your phone is a Redmi Note 9 Pro
Without Pro, it had to have the following ROM QJOEUXM
https://mirom.ezbox.idv.tw/en/phone/merlin/
So never overlook the Pro, Pro and not Pro differ.
Click to expand...
Click to collapse
I have a PRO, bought in Hungary, and even looked up that I had that ROM in the settings! Thanks for your reply!
Also, one more question. That ROM that you have provided, In case anything goes wrong, how can I flash it back?(MIUI 11.0.4.0)
The best way is by fastboot, see my post # 6 here
https://forum.xda-developers.com/re...9-pro-dead-t4141055/post83194647#post83194647
https://mirom.ezbox.idv.tw/en/phone/joyeuse/
Fastboot
joyeuse_eea_global_images_V11.0.4.0.QJZEUXM_20200715.0000.00_10.0_eea_dcfb9c0b60.tgz
https://bigota.d.miui.com/V11.0.4.0...EUXM_20200715.0000.00_10.0_eea_dcfb9c0b60.tgz
nostra_DE said:
The best way is by fastboot, see my post # 6 here
https://forum.xda-developers.com/re...9-pro-dead-t4141055/post83194647#post83194647
https://mirom.ezbox.idv.tw/en/phone/joyeuse/
Fastboot
joyeuse_eea_global_images_V11.0.4.0.QJZEUXM_20200715.0000.00_10.0_eea_dcfb9c0b60.tgz
https://bigota.d.miui.com/V11.0.4.0...EUXM_20200715.0000.00_10.0_eea_dcfb9c0b60.tgz
Click to expand...
Click to collapse
Unfortunately, I cant get MiFlash tool to work(Doesn't install the drivers after a long waiting), so I'm going to have to do it in fastboot(command line). Also, I got the .zip version, but if required, I can get the tar file.
Please refresh the forum link I gave here again.
I accidentally wrote Power + Up for the fastboot mode instead of Power + down
Just seen and corrected.
---------------------------------
The * .zip are only for recovery or OTA flash.
For fastboot with flashtool you absolutely need the content from * .tgz
Winrar completely unpacks folders and files that you need for fastboot.
7-zip, however, still displays a * .tar archive, which could then be flashed with the fastboot command line. Not tried myself.
Ps: driver problem maybe an administrator problem?
Start setup as administrator.
Or a snake oil problem (third-party Antivir)?
nostra_DE said:
Please refresh the forum link I gave here again.
I accidentally wrote Power + Up for the fastboot mode instead of Power + down
Just seen and corrected.
---------------------------------
The * .zip are only for recovery or OTA flash.
For fastboot you absolutely need the content from * .tgz
Winrar completely unpacks folders and files that you need for fastboot.
7-zip, however, still displays a * .tar archive, which could then be flashed with the fastboot command line. Not tried myself.
Ps: driver problem maybe an administrator problem?
Start setup as administrator.
Or a snake oil problem (third-party Antivir)?
Click to expand...
Click to collapse
Got it. I can fix the driver issue for sure. I will try this method, with the cyanogenmod link you gave. I will notify you when its done, because I have 3 more days until I can unlock the bootloader. Hope I won't have to flash the firmware again, and that nothing goes wrong.
One more thing though
"The folder with the extracted files must be on the root of a partition, otherwise there are error messages"
Does this mean that the files found in the tar file have to be extracted directly to C:\ or any other partition?
Partition doesn't matter, it doesn't have to be C :
I get an error message in the not root, probably because the path name was too long.
Didn't investigate further, but copied it straight into the root.
Looks like.
Before that, the folder was on the desktop, which of course made the path name very long.
Maybe the long folder name would have been enough
joyeuse_eea_global_images_V11.0.4.0.QJZEUXM_20200715.0000.00_10.0_eea
shorten by renaming.

Redmi note 5 - TWRP(vince)

Hi, I have Redmi Note 5 and I tried to install TWRP recovery(twrp-3.5.2_9-0-vince.img). But every time in the TWRP it is telling that "Internal Memory" is showing as 0 MB and I am unable to change it. It would be pleasure if you know a method to overcome this issue. Thank you.
Baranetharan said:
Hi, I have Redmi Note 5 and I tried to install TWRP recovery(twrp-3.5.2_9-0-vince.img). But every time in the TWRP it is telling that "Internal Memory" is showing as 0 MB and I am unable to change it. It would be pleasure if you know a method to overcome this issue. Thank you.
Click to expand...
Click to collapse
I think you have to format your data partition, but then you will lose all. Backup first all photos and other things. And why not orange fox?
joke19 said:
I think you have to format your data partition, but then you will lose all. Backup first all photos and other things. And why not orange fox?
Click to expand...
Click to collapse
Redmi Note 5 - Whyred or Vince?
Hello, just come over to ask, want to buy my wife and me new phones and found the xiaomi redmi note 5 (global version). Specs are good enought for us, so want to buy it and want (of course) flash lineageOS but now i am confused with...
forum.xda-developers.com
Thank you so much for the help.
joke19 said:
Redmi Note 5 - Whyred or Vince?
Hello, just come over to ask, want to buy my wife and me new phones and found the xiaomi redmi note 5 (global version). Specs are good enought for us, so want to buy it and want (of course) flash lineageOS but now i am confused with...
forum.xda-developers.com
Click to expand...
Click to collapse
OrangeFOx recovery is also asking for a PIN, that why I am thinking.
Ok, I will prepare to format my device the help.
Thank you so much for the help.
Help request.
Situation:
- Redmi 4X (Global, santoni), bootloader unlocked,
- flash recovery TWRP, v. 3.6.0_9-0 performed by ADB and using "Temporary" same
versions of TWRP,
- flash recovery TWRP, v. 3.5.1_9-0 performed by ADB and using "Temporary" same
versions of TWRP,
- Backup partition recovery is used to check if the flash has actually taken place.
Always with a positive result (each version is checked with "sh2")!
- Reboot into recovery or shutdown and put into recovery mode, always with a positive
result - TWRP recovery works!
- Once the OS has been booted at least once, the contents of the partition recovery will
take effect immediately returns to stock recovery - ALWAYS!
- an attempt was made with flash stock recovery - the result was adequate,
- all these experiments took place even after using SW MiFlash20210226 with parameter
Save user data. Results without change - always returned stock recovery.
Thank you for your help (please excuse your English level - thank you)
nemohouci said:
Help request.
Situation:
- Redmi 4X (Global, santoni), bootloader unlocked,
- flash recovery TWRP, v. 3.6.0_9-0 performed by ADB and using "Temporary" same
versions of TWRP,
- flash recovery TWRP, v. 3.5.1_9-0 performed by ADB and using "Temporary" same
versions of TWRP,
- Backup partition recovery is used to check if the flash has actually taken place.
Always with a positive result (each version is checked with "sh2")!
- Reboot into recovery or shutdown and put into recovery mode, always with a positive
result - TWRP recovery works!
- Once the OS has been booted at least once, the contents of the partition recovery will
take effect immediately returns to stock recovery - ALWAYS!
- an attempt was made with flash stock recovery - the result was adequate,
- all these experiments took place even after using SW MiFlash20210226 with parameter
Save user data. Results without change - always returned stock recovery.
Thank you for your help (please excuse your English level - thank you)
Click to expand...
Click to collapse
I recommend this recovery.
Xiaomi Redmi 4X (santoni) build releases | OrangeFox Recovery Downloads
Orangefox recovery for Xiaomi Redmi 4X (santoni)
orangefox.download
You use mi flash tool as last? Then the customer recovery will be replaced. Mi flash tool, development settings, OEM unlock and flash your recovery over fastboot. Here is a good guide, but don't use the recovery from this site.
[All-in-One] Redmi Note 7 (lavender): Unlock Bootloader, Flash TWRP, Root, Flash ROM
Dear Redmi Note 7 user, I'm not responsible if anything happens to your device. If you execute these AiO procedures properly then you shouldn't face any problems. Before you proceed please back up all your important data and make sure that...
forum.xda-developers.com
Begin by point c

Categories

Resources