twrp 3.2.3.1 - Xiaomi Redmi 4X Questions & Answers

Why is there no decription of twrp 3.2.3.1 on the official site https://twrp.me ?
And why is it so much smaller than all versions before ?
https://eu.dl.twrp.me/santoni/
Can we really use it for HM4X now instead of twrp 3.2.3.0 e.g. with MIUi from xiaomi.eu ?
What is the difference between twrp 3.2.3.1 and 3.2.3.0 ?

They may have removed the addons like su ,magisk manager , disable dmverity etc which can be accessible from tools section of twrp

amandeep0007 said:
They may have removed the addons like su ,magisk manager , disable dmverity etc which can be accessible from tools section of twrp
Click to expand...
Click to collapse
Thanks for the reply ! :highfive:

Related

Install OOS Open Beta 8 (N) / 7 (MM) without Breaking official TWRP

This guide allows you to install OOS Open Beta 8 (N) / 7 (MM) without having to switch to modified TWRP
All credits to the respective developers
Downloads : G-Drive | MEGA
Unified Links above contains the following.
[Added] OOS Leaked Open Beta 9 (Mirror only) will modify Once it is released
1- Modded OOS Open Beta 8 (No F2FS , Downgradable to any OOS version)
2- Modded OOS Open Beta 7
3 - Debloater / Pixel Laucher (Black) and H2OS Icon Packs , Google Assistant (Unified Flashable Zip)
4- Super SU 2.78-SR5
5- Official TWRP
6 - Modified TWRP Recovery 3.0.2-1.28 Credits @eng.stk
7- Latest Xposed Installer (Beta 7 Only) (It will give you the option to download / install the latest version of framework automatically)
8- Open Beta 8 Full flash able (F2FS support with Modified Recovery @Funk Wizard)
Instructions for Clean / Dirty Flash (Over any Open Beta after 3.5.1) :
1. Boot into TWRP (modified or official which ever you are on)
2. Wipe Dalvik / ART cache & cache OR Factory Reset ( If you are coming from another ROM)
3. Flash Modded OOS Open Beta 8 (Dont Switch /system and /data to F2FS if you want to root) or Beta 7
4. Wipe Dalvik and Cache
5 . Flash official twrp as image (even if you are already on it)
6. Reboot to into recovery directly (this will prevent recovery from being overwrite by the stock)
7. Flash SuperSu (Optional)
8. Flash Debloater / Pixel Laucher (Black) and H2OS Icon Packs , Google Assistant (Clear Google App Data after Booting) (Unified Flashable Zip) (Optional)
9. Reboot to System (It will reboot twice if you flashed SuperSU) - That is normal
You are good to go :good:
Regards ,
Muhammad A. Iftikhar
Is there any kernel for this build ???
Normas Interruptor said:
Is there any kernel for this build ???
Click to expand...
Click to collapse
Eng.stk yesterday teased us with an upcoming kernel for 3.5.4 Community Beta.
Whatch this thread: http://forum.xda-developers.com/oneplus-3/development/kernel-t3404970 .
Can I dirty flash it from FreedomOS based on 3.2.7?
xGOGI said:
Can I dirty flash it from FreedomOS based on 3.2.7?
Click to expand...
Click to collapse
Nope, they are two different ROMs on different channels: for instance you could have dirty flashed if you were on 3.5.2 or 3.5.3.
I need to wipe system too? Or only cache/dalvik + data?
xGOGI said:
Can I dirty flash it from FreedomOS based on 3.2.7?
Click to expand...
Click to collapse
Yes you can as you have firmware of 3.2.7
xGOGI said:
I need to wipe system too? Or only cache/dalvik + data?
Click to expand...
Click to collapse
System Wipe only if you are coming from another ROM , I.E CM or AOSP based / Nougut
How do i flash official twrp in modified twrp, do i have to extract the downloaded file?
puschkin said:
How do i flash official twrp in modified twrp, do i have to extract the downloaded file?
Click to expand...
Click to collapse
Click Install > "Install Image" it will showup in the location you download the file should have ".img" extention .
simply download it in the phone from the link in OP.
ahmediftikhar said:
Click Install > "Install Image" it will showup in the location you download the file should have ".img" extention .
simply download it in the phone from the link in OP.
Click to expand...
Click to collapse
Thanks for the quick reply!!
puschkin said:
Thanks for the quick reply!!
Click to expand...
Click to collapse
This will further help you out
Thanks for this great tutorial, worked like a charm
I want to try new CB but more likely I will be going back to official 3.2.7 I have nandroid backup ready. My question is, if I follow your guide and then I want to restore my backup, will I be able to do it without the hassle?
Wysłane ze zmywarki
ralph78 said:
I want to try new CB but more likely I will be going back to official 3.2.7 I have nandroid backup ready. My question is, if I follow your guide and then I want to restore my backup, will I be able to do it without the hassle?
Wysłane ze zmywarki
Click to expand...
Click to collapse
You can even dirty flash this over 3.2.7 (will take some time after 1st boot to optimize apps depending on the number of apps installed) , Nandroid can be restored with out hassle if you choose to clean flash 3.2.7 after testing CB
I'm on TWRP 3.0.2-1, and I can't install Rom zip, it always tells me that zip file is corrupted. I've downloaded it twice however, once from Google drive, once from AFH.
Any idea of what's wrong?
XS_31 said:
I'm on TWRP 3.0.2-1, and I can't install Rom zip, it always tells me that zip file is corrupted. I've downloaded it twice however, once from Google drive, once from AFH.
Any idea of what's wrong?
Click to expand...
Click to collapse
Try re-flashing Twrp by downloading a fresh copy , and manually mount system before flashing the ROM ,
You can also try downloading it directly to your gdrive and let it sync in your PC / phone by "make available offline" feature in drive app
how to back from 3.5.4 to stock again?
File corrupt from both links, also.
ritchiedrama said:
File corrupt from both links, also.
Click to expand...
Click to collapse
Yes... File is corrupted... So much of mobile data wasted..

[ROM][KangV Tools][VNS-LX1] Arsenik Rom

Arsenik Rom
For Huawei P9 lite
ALL CREDITS GOES TO KangV !!
ASK PERMISSION BEFORE TAKING MY WORK(EVEN PARTIALLY)​
FEATURES
+based on b380/b385 version
+pre-rooted with chainfire's SuperSu, you can choose also MagikSu
+Kernel adiutor installed
+Emui theme editor installed
+Fingerprint quick action installed
+ double tap to wake up, draw a letter to wake up added
+ deleted all huawei chinese apps and added some missed google apps
+VNS-L31
+VNS-L21(need testers for other variants)
+transparent notification shade enabled
+App twin added
+p10 camera app added
+android O bootanimation added
+android O emojis
+3d panorama app added
+added the ability to make earpiece acting as a speaker and increased it ,you will have an amazing sound when you put your phone next to your ear,trust me
+more performance and less battery drain
+adblock -MoaAB- via k-setting
+new Viper4Android interface for 2.5
+raw image mode added
+June security patch
+slow motion camera mode
+KangVip framework added !
INSTRUCTIONS
1.download the zip file and extract it, you will find system.img and flash_patch.zip.
2..Reboot to latest TWRP
3..backup system,boot,vendor
4.flash system.img via install image (install image>choose system.img> select SYSTEM
5.Flash 'flash_patch.zip
6.reboot system(it will take about 10-15min)
7.reboot again to twrp(this is stupid, but sorry you have to do that otherwise magisk won't mount image)
8.go to third post and chose which root you want, you can choose between magisk or supersu
9.reboot(it won't be as long as the first boot)
DOWNLOAD LINK
Arsenik Rom-V2
THANK YOU ALL FOR THE 616 DOWNLOADS of Arsenik v1.1 IN LESS THAN 30 DAYS !
If you cant insert a pin code at first boot, please flash this zip
https://drive.google.com/file/d/0By4OnnXj6y6ebDF5Vk9OcW9ZUkU/view?usp=drivesdk
i recommend to download it and flash it, so that you will be sure that you wont have this bug
BUGS
+usb debugging is disabled when you reboot
NOTES
+do not update supersu binaries because it won't work, flash Special SuperSu for Arsenik Rom in 3rd post instead
CREDITS
+KangV for his awesome Kangvip Framework !
+ @Tecalote for helping me
+ @Chainfire for his awesome superSU
+ @OldDroid (openKirin team) for bringing us TWRP.
+ @millo1978 for giving a fix to call recording
+ @NoctisCaelumFFXV for testing in his VNS-L21
+ @Chisetdel31260 for testing in his VNS-L31
+ @BSDgeek_Jake for creating the amazing MoaAB !!
+ @zgomot for the tip of enabling raw mode
i spent endless hours so as to make kangvip framework working on our p9 lite, every donation will be much appreciated!​
Screenshots Of ArseniK rom http://bit.ly/2sojvYG
ROOT METHODS
======FOR ARSENIK V2 ONLY==========
- chainfire's SuperSu 2.78 (it is preinstalled)
***update Supersu to latest version 2.82:
http://bit.ly/2ublmkr thanks to @Tecalote highly recommended)
-Magisk v13.3(updated to latest version)
the old method doesn't work well, safetynet isnt bypassed, this new method works like a charm :
Follow this steps so as to k-setting would not crash:
-go to supersu app and remove all permissions,dont revoke it,juste remove it.
1/flash this file http://bit.ly/2ubcR8L
2/open kernel adiutor mod, open the left panel and enable init.d
3/uninstall Supersu app
4/check if usb debugging is enabled
5/done
ps: in kernel adiutor you will see that selinux is enforcing, but in truth selinux is permissive
==========FOR ARSENIK V1/v1.1==========
- chainfire's SuperSu 2.78 (it is preinstalled)
***update Supersu to latest version 2.82:
https://drive.google.com/file/d/0B-fDlEGo76S0Q0RwalRZNDROZFU/view?usp=drivesdk thanks to @Tecalote !***(highly recommended)
-Magisk v13 (updated to latest version)
the old method doesn't work well, safetynet isnt bypassed, this new method works like a charm :
Follow this steps so as to k-setting would not crash:
-go to supersu app and remove all permissions,dont revoke it,juste remove it.
1/flash this file http://bit.ly/2udKEii
2/open kernel adiutor mod, open the left panel and enable init.d
3/uninstall Supersu app
4/check if usb debugging is enabled
5/done
ps: in kernel adiutor you will see that selinux is enforcing, but in truth selinux is permissive
NOTE : IF YOU FLASHED MAGISK AND YOU WANNA INSTALL SUPERSU, UNINSTALL MAGISK BEFORE AND THEN INSTALL SUPERSU
CHANGELOG
Arsenic + BugFixer
✓first release
Arsenik + BugFixer2 :
✓Fixed Hw call recorder
✓Fixed camera force close
Arsenik-V1.1
✓Fixed hw sound recorder force close
✓increased earpiece sound for best dual-speaker
✓changed interface of Viper4android
✓mixed Arsenik and BugFixer 2 in one flash-able zip
✓set google play as a system app(now you can wipe data without flashing gapps)
✓added rotation of the home screen
✓Now you can use Adblock from K-setting !
Arsenik-v1.1 + SmallUpdate.zip
✓added the majority of gapps
✓added raw mode, stock gallery app can even read .dng files also !!
Arsenik-v2.0 :
✓based on b385, with june security patch
✓changelog of kangV , translated to English using Google translator : https://pastebin.com/a3t7SMp3
SOME TIPS&TRICKS
HOW TO ENABLE RAW FORMAT:
1)Open camera app, swipe to the top(it wil enable pro mode
2) swipe to the left( it will enable setting)
3)click on raw format
4) Done
Raw mode will take two pictures, one in .dng format, and another one in .jpg format .So don't worry if you see two pictures instead of one
HOW TO ENABLE GOOGLE ASSISTANT
1/go to settings=>app=>google=>permissions
2/enable all the permission
3/go to setting=>app=>setting=>voice assistant & outpout and set google
4/go to google app=>setting=>setting=>phone=> 'ok google detection' =>retrain voice model
5/train your voice and go back to homescreen and tell ok google, google assistant will appear
five
Hi simo255
Call recording...
With Nougat I used this:
http://www.androidiani.com/forum/showthread.php?p=7832522
(Italian forum)
It worked good with B370...
Maybe with B380 also, but I didn't test it.
(Now I have Android 6)
Try and tell me
Inviato dal mio HUAWEI VNS-L21 utilizzando Tapatalk
Hello. Installation it went well, I will continue to discover. Thank you for all your work.
millo1978 said:
Hi simo255
Call recording...
With Nougat I used this:
http://www.androidiani.com/forum/showthread.php?p=7832522
(Italian forum)
It worked good with B370...
Maybe with B380 also, but I didn't test it.
(Now I have Android 6)
Try and tell me
Inviato dal mio HUAWEI VNS-L21 utilizzando Tapatalk
Click to expand...
Click to collapse
yes it works !
thank you!
i will upload a fix soon
Chisetdel31260 said:
Hello. Installation it went well, I will continue to discover. Thank you for all your work.
Click to expand...
Click to collapse
thanks, check please and tell me if there is any bug
i found new bug, camera force close sometimes,
will try to fix it asap
new root method! !
magisk v13
Got an error on TWRP while flashing "zip file is corrupted" . Im on L31C432B380 using OpenKirin TWRP
nitroax said:
Got an error on TWRP while flashing "zip file is corrupted" . Im on L31C432B380 using OpenKirin TWRP
Click to expand...
Click to collapse
corrupted? are u sure
check if you downloaded the files correctly
simo255 said:
new root method! !
magisk v13
Click to expand...
Click to collapse
We can install magisk v13 beta now, directly or wait?
Chisetdel31260 said:
We can install magisk v13 beta now, directly or wait?
Click to expand...
Click to collapse
flash the zip that i provided, otherwise it won't work
simo255 said:
corrupted? are u sure
check if you downloaded the files correctly
Click to expand...
Click to collapse
will try again but know i cant boot to the stock system. Flashing this rom will work anyway?
nitroax said:
will try again but know i cant boot to the stock system. Flashing this rom will work anyway?
Click to expand...
Click to collapse
yes
did you backup system ? if yes restore it !
simo255 said:
yes
did you backup system ? if yes restore it !
Click to expand...
Click to collapse
I have a "old" backup in my home PC so i didnt backed up this time. Will try flash again without restore the system. If it doesnt work, later i will put the backup in the SD and restore it
nitroax said:
I have a "old" backup in my home PC so i didnt backed up this time. Will try flash again without restore the system. If it doesnt work, later i will put the backup in the SD and restore it
Click to expand...
Click to collapse
old backups won't work with 3.1.1-0 recovery, i suggest you to flaqh system.img through fastboot
simo255 said:
old backups won't work with 3.1.1-0 recovery, i suggest you to flaqh system.img through fastboot
Click to expand...
Click to collapse
yeah i know, i will restore it with the same recovery i did the backup. Anyway i downloaded your rom again and will try to flash it again
EDIT: This time worked, booting right now. Will give the feedback later. Thanks

[TWRP] 3.3.1 Aroma/Busybox compatible (ultra-low brightness)

Aroma compatible twrp (recovery.img) : https://androidfilehost.com/?fid=6006931924117889478
(tested on latest April Xperia Pie : 47.2.A.10.45)
BASIC guidance :
Be sure to read NewFlasher thread carefully first (Widevine L3 instead of L1 for locked bootloader).
0) recovery download
1) fastboot mode blueLight :$ fastboot flash recovery 270recovery9omni8-1FBEkeymaster3-twrp3_3_1.img
2) reboot STRAIGHT to twrp and always backup /boot only before Magisk-ified (needed with /system only in case of complete re-initialization or format, and for Treble roms)
3) flash magisk (min 17.3)
4) boot Pie (SafetyNet and Playstore certified should be ok with latest Magisk app after few mn)
Note: don't force remove bloatware: just disable them, so they won't reappear after future ota.
Once done, with your original /boot backup ( plus complete/full Magiskified backup), you can switch, without format /data, to my (xz1 enhanced) aosp Treble /system image: https://forum.xda-developers.com/pr...arm64aosp-9-0-0r21-microg-ufofficial-t3878115 , and restore back SonyXperia later with your full backup.
Future upgrade(ota):
-XperiFirm new firmware download + move away fotaKernel..sin & userdata..sin & simlock.ta + newflasher(with greenLight!)
-reboot STRAIGHT to recovery (and backup /boot only, before Magisk-ified)
-flash latest Magisk (min 17.3)
-boot Pie (SafetyNet and Playstore certified should be ok with latest Magisk app after few mn)
Optionally:
(-install Magisk Screen recorder or Snapdragon gallery, or aospEmail-SnapExchange free of analytics... )
-For better battery use KernelAdiutor with [conservative]highCpu & [ondemand]lowCpu (Adaway...)
Note: with or without su/hack, NightLight dim brightness is actually broken (wip)
Supplement:
This edition includes latest Aroma File Manager and TA partition backup: saves copies in sdcard/TWRP/ of TA, modemst1&2, boot.img plus some /vendor files like the identification build.prop ( default.prop fstab.qcom gps.conf uevent.rc). Every backup proceeds a copy of previous sdcard/TWRP/ TA.bin modemst1&2.bin and Id. build.prop in sdcard/TWRP/BACKUPS/.
Recovery simplified source : https://gitlab.com/oF2pks/twrppoplardevice/tree/aromaBusybox_Omni-8_1 (47.1.A.12.270)
with : TW_TARGET_USES_QCOM_BSP := false & Busybox v1.22.1
kernel : https://github.com/cryptomilk/android_kernel_sony_msm8998
prim-origin : https://github.com/cryptomilk/android_device_sony_yoshino/blob/lineage-15.1/twrp.mk
Thank you, working fine. How i change ui color? Flash the attached zips?
snake218 said:
Thank you, working fine. How i change ui color? Flash the attached zips?
Click to expand...
Click to collapse
No, just re-create (sdcard)/TWRP/theme/ui.zip exactly, and then launch Advanced§ReloadTheme from twrp recovery . Since I didn't include languages/*xml in them, you can only select Settings§Language without my uploaded themes (ui.zip) first. (Advanced§AromaFM & backupTA lines are also missing in regular uiBlueClassic.zip xml).
They are many twrp themes on xda, just be sure to use 3.3.0 ui.zip compatible edition.
Thanks for the new TWRP with Encryption. Device SOV36
Thank you for this fine version of twrp.
I am getting this error when making a full backup (ticked all partitions)
"error backing up system image, cleaning up folder"
I am running stock 47.2.A. 10.45 and j4nn kernel. Ric is off (i can write in system) and twrp are flashed.
i press "cancel" when asking for a password.
Normally the twrp just backup everything without any issues, so i must do something wrong??
Kind regards torben5247
Some themes for this ?
kojak1989 said:
Some themes for this ?
Click to expand...
Click to collapse
You can also use these themes for the 3.3.xx twrp
https://forums.oneplus.com/threads/custom-themes-for-twrp.849931/
Or if you search with Google, you can use all the 3.2.3 theme
theflanker said:
You can also use these themes for the 3.3.xx twrp
https://forums.oneplus.com/threads/custom-themes-for-twrp.849931/
Or if you search with Google, you can use all the 3.2.3 theme
Click to expand...
Click to collapse
but I do not know who will be good so that's why I'm asking
kojak1989 said:
but I do not know who will be good so that's why I'm asking
Click to expand...
Click to collapse
Why do you think it's a risk? If it doesn't work, it doesn't fit the theme and I use it!
@oF2pks
Hi, your newest version have original theme from TWRP or that from your previous version ?
Why can't I install any other ROM with this recovery?
Getting some invalid zip error.

Xiaomi Mi MIX2 working encryption with latest Android 9 (Pie) ROM

(short) Tutorial in getting your Xiaomi Mi MIX2 encrypted with latest Android 9 (Pie) ROM released by xiaomi.eu (and propably also with the beta ROMs released by Xiaomi/miui.com)
Preparations:
- your phone is unlocked
- a custom recovery is installed on your phone already
- download OrangeFox recovery 9.0-1 or later (others may work too but had not tested for this tutorial / TWRP 3.3.0-0 may produce errors)
- download force-enryption script for Mi MIX2 Android Pie
- download NO enryption restore script for Mi MIX2 Android Pie (reverts fstab config to default - wipe of data needed)
- download latest Android 9 Pie based MIUI ROM (tested only with the modified ROM from xiaomi.eu - official beta ROM may work too)
- optional: download latest Magisk to receive root (may needed by your backup/recovery app to restore your apps within android)
CAUTION!
When folliging this procedure you will loose all current data on your device! DO A APP-BASED BACKUP IN ANDROID FIRST!!! (TWRP or OrangeFox recovery based backups won't work for this procedure!)
Have done your Backup? No? DO IT NOW! really!
Let the phone boot and encrypt itself after flashing the scipt linked in HowTo.
Up to now (bug has been reported) it is to be mentioned that encrypting Xiaomi.EU rom via setting/privacy/encrypt leads direct to PHONE RESET.
FORMAT DATA is required then to get it back to life. @lolo9393 thanks for that hint!
Exact proceedings:
1. you've done a backup eh? - good
2. ... did you save that backup on a other device than your phone? Remember you'll loose all data stored on the phone!!!
3. reboot your phone in your currently installed recovery
3.1 copy the OrangeFox recovery to your device
3.2 select "Install" and choose the OrangeFox recovery .zip file to install (replace your current recovery)
3.3 OrangeFox installer will reboot the recovery after its install
4. Select "Wipe"
4.1 Select "Advanced Wipe"
4.2 Select every Partition exept USB-OTG
4.3 Swipe to Wipe
5. reboot your recovery to recovery again
6. Select "Wipe"
6.1 Select "Advanced Wipe"
6.2 Select "Format Data"
6.3 type in "yes" and confirm that step
7. reboot your recovery to recovery again
8. copy the latest Android 9 Pie based MIUI ROM to your phone
9. copy the latest version of the force-enryption script to your phone
10. Select "Install" and select the Android ROM first then "Add to queue" and select the force-encryption script as second item to flash
10.1 Swipe to Install
11. reboot to system
11.1 go to "Settings"
11.2 scroll down to "SYSTEM SETTINGS" area
11.3 select "Additional settings"
11.4 select "Privacy"
11.5 scroll down to "ADVANCED" area
11.6 check the status of "Encryption & credentials" - it should state "Encrypted"
12. now continue in setting up your system (e.g. enable developer mode, enable advanced power menu, usb debugging if needed, ...)
13. DONE ...
... ok, maybe you're missing your apps and settings - here is a possible way to restore them ... (i personally prefer Titanium Backup)
Root & how to restore apps & app data
14. copy Magisk installer to your device
14.1 reboot your device to recovery
14.2 select "Install" and choose the Latest Magisk-vXX.X.zip file to install (in the log you should read something about "keep forced encryption" - this is good )
14.3 when done - reboot to system again
15. Install Titanium Backup (from a store or as APK from file)
15.1 copy your Titanium Backup or TWRP backup (that could be restored by Titanium Backup Pro) to insternal storage
15.2 restore apps & app data with Titanium Backup (for a detailed HowTo please visit official Titanium Backup Website: https://www.titaniumtrack.com/kb/titanium-backup-kb/titanium-backup-user-guide.html#restore)
15.3 Profit!
That guide may has helped you ...
... say thanks and/or donate for my massive Whiskey consumption -> https://forum.xda-developers.com/donatetome.php?u=496297 :fingers-crossed:
FAQ
Q: Is that procedure ROM update safe? / What if xiaomi.eu releases an ROM update or my ROM has to be reinstalled?
A: When Xiaomi.eu releases an update you have to flash that script right afterwards that update in your favorite recovery. - No further actions should be needed. This procedure has to be repeated for every ROM update or reinstall.
Procedure is verified as working with update 9.5.9 up to 9.6.27​Q: Does TWRP recovery work also?
A: There is feedback that TWRP 3.3.0-0 does not work as intended (THX @mguz on post 11 for the feedback)
Maybe TWRP 3.3.1-0 that was released short ago solves that problem ...​
How to update later?
cineq said:
How to update later?
Click to expand...
Click to collapse
... hmm sorry did not get what you like to do - could you please describe in detail what you mean/like to achieve?
When there will be next build of xiaomi.eu what is the procedure to update it? Just install new in recovery without any wipes? Is force-encryption script needed when updating?
cineq said:
When there will be next build of xiaomi.eu what is the procedure to update it? Just install new in recovery without any wipes? Is force-encryption script needed when updating?
Click to expand...
Click to collapse
When Xiaomi.eu releases an update you have to flash that script right afterwards that update in your favorite recovery.
No further actions should be needed.
Thanks for the hint - will update the guide with that question/answer
raupe said:
When Xiaomi.eu releases an update you have to flash that script right afterwards that update in your favorite recovery.
No further actions should be needed.
Thanks for the hint - will update the guide with that question/answer
Click to expand...
Click to collapse
Procedure is verified as working with update 9.5.9 -> 9.5.16
raupe said:
(short) Tutorial in getting your Xiaomi Mi MIX2 encrypted with latest Android 9 (Pie) ROM released by xiaomi.eu (and propably also with the beta ROMs released by Xiaomi/miui.com)
@raupe
VERY good work.
Very useful for people having security concern when using a TWRP.
My comments:
-This procedure is valid with any latest 3.3. TWRP version that can decrypt now. (?)
- This is applicable to all XIAOMI phone under PIE. (Fstab must be exchanged in the zip tool in order to fit with the phone model)
- NOTE :
Up to now (bug has been reported) it is to be mentioned that encrypting EU rom via setting/privacy/encrypt leads direct to PHONE RESET and FORMAT DATA required.
Regards
Click to expand...
Click to collapse
Hi,
- download force-enryption script for Mi MIX2 Android Pie
- download NO enryption restore script for Mi MIX2 Android Pie
both links are down, re-upload possible ?
EDIT: Links are working now
Help out a noob. Why would one need to have phone encrypted? Whats the purpose of encryption?
I'd like to update to 9.5.x Xiaomi.eu Pie but hear complaints of GCam, SuperSU, FindDevice, fingerprint, etc not working. Would encryption help these issues?
stoshie said:
Help out a noob. Why would one need to have phone encrypted? Whats the purpose of encryption?
I'd like to update to 9.5.x Xiaomi.eu Pie but hear complaints of GCam, SuperSU, FindDevice, fingerprint, etc not working. Would encryption help these issues?
Click to expand...
Click to collapse
Its not about encr. Problems.Pie uses vendor for most stuff now and for gcam is needed additional line in build prop to make it work.magisk 19 can root it without problems
Hi,
thank you for this helpful tutorial.
First time I tried with TWRP 3.3.1-0 and it did not work (Bootloop).
With OrangeFox Recovery it works as described.
Regards
On official TWRP-3.3.1-1 works as intended, thanks!

[RECOVERY] [TREBLE] TWRP 3.3.1-0 with Tissot Manager

Thread template from CosmicDan's thread.
About
This is a TWRP Installer ZIP and bootable IMG with extra capability such as Treble-izing and other power-user tools with integrated TWRP-powered submenus that CosmicDan originally called Tissot Manager.
Few months ago, CosmicDan officially decided to leave Tissot development, and his twrp was stuck on 3.2.3. So I decided to update that to 3.3 and convert all the aroma stuff into TWRP-powered menus etc, in order to preserve better future compatibility.
HIGHLY recommended reading and guide for everyone new to Treble - [TREBLE][GUIDE] From Stock to Treble - everything you need to know! by CosmicDan. It also has some general protips hidden within there, for example the seamless/slot system interactions and nuances, so it's worth reading for anyone who wants to be a master of the Android flashing domain
Features:
TWRP fully Treble-ready based on 3.3.1-0;
Fully compatible with non-Treble devices - can be used as normal without Treble partitioning;
Full USB-OTG support;
Full MTP support;
Optional TWRP Survival function, that works both in hotboot and real recovery;
Optional Active slot install method, selectable right before the zip flash;
Option to ignore Payload<>Recovery certificate failures (fix for newer LOS-based ROMs);
Added a Tissot Manager list item under Advanced Menu, totally built-into TWRP itself that allows you to do:
Has the option to shrink Userdata to create Vendor partitions. All relevant partitions will be resized and formatted in one go.
Treble-izing will ERASE DATA AND INTERNAL STORAGE COMPLETELY - but your device will stay compatible with all existing non-Treble ROM's
Adds a "Patches" section with the following current options:
Patch kernel from Enforcing to Permissive and vice versa
More features coming!
All of this info is detailed inside the Tissot Manager GUI.
See screenshots in post 2.
Since this is an early version (still stable), some original features from 3.2.3 are still not available. I'll do my best to constantly add new functions when possible!
Instructions
Optionally boot the boot-recovery.img to get a temporary TWRP if you don't have it installed, unzipped from TWRP-3.3-withTM-BOOT.zip
Code:
fastboot boot boot-recovery.img
Warning - do not EVER flash this img - hotboot it only.
Flash the TWRP Installer. Any slot, any ROM, any existing Recovery - it doesn't matter - it will be installed to both slot kernels.
Reboot Recovery
Optional - Use the "Advanced > Tissot Manager" option for repartition options and other advanced ROM patches, this time built-in TWRP itself for better compatibility with future versions.
About TWRP survival
Starting from 1.0, TWRP Survival will be able both in hotboot mode 'n real recovery mode. Just tick the checkbox 'n flash!
Download
All downloads (and source code) always at:
https://github.com/Giovix92/twrp_device_xiaomi_tissot/releases
Additional sources not able to be listed in DevBB:
Modified update_engine: https://github.com/Giovix92/android_system_update_engine
What's next?
See [TREBLE][GUIDE] From Stock to Treble - everything you need to know! by CosmicDan for detailed instructions and learning on how to Treble like a pro.
FAQ
Q) After I flash TWRP, I get kicked into a Recovery loop when trying to boot the ROM!
A) This is probably because you have a kernel that does not disable dm-verity. To fix this, flash Magisk.
Q) After I flash TWRP, I get kicked into fastboot when trying to boot the ROM!
A) Your kernel is not Treble-compatible.
Q) How do I update TWRP?
A) Just flash the ZIP installer again, then Reboot Recovery. Note that this will erase Magisk on BOTH slots if you have it installed to either, requiring you to reflash it to one/both slots. See my Treble guide FAQ section for more info on Magisk interaction.
Q) If I shrink Userdata for Treble, will stock and OTA work?
A) I have heard varying results on this. It does for some, not for others. Please assume that this will NOT work.
Q) Can I restore a non-Treble TWRP backup after I repartition for Treble? And the other way around?
A) Yes! In fact, this is the easiest way for using stock ROM on Treble repartition. May also require a custom kernel with dm-verity disabled (see Questions above regarding fastboot kick and recovery loop).
Q) I see "Failed to mount '/system' (Device or resource busy)" red error in TWRP after flashing a ROM
A) You can safely ignore it. You just need to reboot recovery before you can flash anything else (like Gapps) to this ROM. This may occur while flashing in the active slot.
Q) What "Inject TWRP after install" option does?
A) It's TWRP Survival. If you check that checkbox, then after the installation of your zip file the TWRP will automatically reinstall TWRP into your slot.
Bugs Report
If any bug/problem may occur, feel free to report it here! Explain the problem and attach the recovery log. You can get it by going to Advanced - Copy Log and sliding. Kernel log isn't necessary.
If, for some strange reasons, you are unable to get into that menu', connect your phone to PC, open up CMD (aka command prompt) and type:
Code:
adb pull /tmp/recovery.log
Credits and Thanks
- @CosmicDan for tips, helps and his amazing work on TWRP 3.2.3, which I've taken many things from
- @nicknitewolf for his DT
- @chondoe for always being present in testing and reporting bugs/good news
- @flex1911 for DT stuff
- @mauronofrio for inject twrp function
XDA:DevDB Information
TWRP 3.3.1-0 with Tissot Manager, ROM for the Xiaomi Mi A1
Contributors
Giovix92
Source Code: [url]https://github.com/Giovix92/device_xiaomi_tissot[/URL]
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2019-10-01
Created 2019-10-01
Last Updated 2019-10-01
Reserved
Changelog:
**10-11-2019**
- Fixed error 28 and 13, this led to some issues while doing a clean installation.
- Restored active slot install functionality, now it's fully working.
**18-10-2019**
Version: 2.0 (MAJOR UPDATE)
- Fixed all kind of problems while flashing:
- Error 51, 15, 31, 17, 35 (postinstall)
- Unability to make a clean flash
- Removed changelog section from Tissot Manager
- Added ADB God Mode
- Added missing binary, required in order to let selinux changer work properly
- Now the 2 new checkboxes won't stay checked anymore after any zip install
- Added system remount to r/w after zip flash in order to flash multiple zips in the same recovery session (like ROM + magisk + gapps and then reboot)
- Fixed linker problem that was causing some options in Tissot Manager to fail
- Smoother experience
Older changelogs:
**01-10-2019**
Version: 1.0
- Initial release with Tissot Manager, now powered by TWRP
- Optional TWRP Survival
- Ability to install into same slot
- Ability to repartititon to Treble and vice versa
- More features coming!
Reserved
Great work.
Sent from my Mi A1 using Tapatalk
Thanks ??
Nice. Bro you carried legacy ?
nice work waiting for shrp version of this ??
Noice :good:
Sent from my Mi A1 using XDA Labs
This is an update of TWRP Comic Dan?
manchirua said:
This is an update of TWRP Comic Dan?
Click to expand...
Click to collapse
Read op
Any way to flash it using cosmic dan's twrp? I don't have any pc now
Anikur Rahman said:
Any way to flash it using cosmic dan's twrp? I don't have any pc now
Click to expand...
Click to collapse
Q) How do I update TWRP?
A) Just flash the ZIP installer again, then Reboot Recovery. Note that this will erase Magisk on BOTH slots if you have it installed to either, requiring you to reflash it to one/both slots. See my Treble guide FAQ section for more info on Magisk interaction.
Great job dude ?
Awesome work!
Thank you so much for this.
@Giovix92
Great Job.
Is there a way to show the current slot status like in CosmicDan's ?
sdeft said:
@Giovix92
Great Job.
Is there a way to show the current slot status like in CosmicDan's ?
Click to expand...
Click to collapse
You can check current slot from reboot menú.
Where is the survival checkbox??
What is this "inject twrp" does ?
oskrprez said:
Where is the survival checkbox??
Click to expand...
Click to collapse
Anikur Rahman said:
What is this "inject twrp" does ?
Click to expand...
Click to collapse
That's the TWRP survival option
Unipo said:
That's the TWRP survival option
Click to expand...
Click to collapse
So, Isn't it automatically reinstalled like Comic Dan's version?

Categories

Resources