Ok so the main reason for Xposed not working on Xperia Z2/Z3/Z3c Lollipop 5.0.2 was that it lacks recovery and Xposed for lollipop only installs via recovery, and manual pushing resolting in bootloop. Well a kinda found a solution for this. Its actualy simple. Here we go:
WARNING: DO THIS AT YOUR OWN RISK PLEASE MAKE A BACKUP YOU MIGHT NEED TO REFLASH
Requirements:
Z2/Z3/Z3c Rooted Lollipop 5.0.2 Stock Rom with unlocked bootloader
You need to download
1. Nut's Adv Stock Kernel with recoveryes (?) from here http://nut.xperia-files.com/ (Cick te XZDualRecovery Kernel tab in the right side of the site/ Click "Yes i have an unlocked bootloader / Select your model in the drop down menu (in this case its the Z2 D6503) / Select your firmware (in this case the 23.1.A.0.690 lollipop fw from all the way down in the drop down menu) / Click D6503_23.1.A.0.690_XZDRKernel2.8.3-RELEASE.flashable.zip and download.
2. Any 4.4.4 Kernel with recovery as boot.img
3. Flashtool
4. Xposed Lollipop Files from HERE Namely the xposed-arm-20150308.zip for flashing and XposedInstaller_3.0-alpha2.apk for running the modules.
And here we go:
1. After you download Nut's adv kernel and xposed zip file put them in internal memory
2. Install xposed for lollpop apk
3. First open Flash tool select Fastboot mode (without selecting anything yet), connect your phone (holding volume up) to your pc entering fastboot mode (while connected your phone led should be blue). Now in flash tool select kernel to flash and choose your 4.4.4 boot.img (kitkat kernel with actual working recovery) and flash.
4. After flashing the 4.4.4 Kernel reboot your device continuasly pressing the volme up button while rebooting (especialy when the sony logo appears) thus entering a 4.4.4 kitkat recovery.
5. After entering the recovery select flash zip from internal memory card, select the xposed zip file, flash and do not reboot, browse agan and search for nut's adv kernel select it and flash again but do not reboot device, WIPE ALL CHACHE'S especialy Dalvik/ART after that reboot
6. Reboot and wait util the apps update.
7. After that your phone will start as normal. Entering the Xposed App will show that it needs to be flashed via recovery. Select soft reboot. Selecting it resolts in a bootloop, dont panic
8. After entering the bootloop, power off your phone , flash 4.4.4 kitkat kernel with working recovery , after that enter the recovery, flash nut's adv kernel again, WIPE Cahe again (normal an dalvik) reboot , wait for the apps to optimize and woala. You have Xposed working.
NOTE.
1. Entering the xposed app my show that it needs to install via recovery, ignore that, the modules work. I'll upload a video for proof of a module working on 5.0.2 Lollipop
2. This is a temporary workaround, i dont know how much it will hold until a normal fix show's up
IF YOU LIKE IT HIT THE THKS BUTTON
AS I FOUD OUT AT SOME POINT WHEN YOU REBOOT YOUR DEVICE IT ENTERS BOOTLOOP UNLESS YOU CLEAR CACHE AND DALVIK CACHE AT BOOT UP... So..
Proof
https://www.youtube.com/watch?v=2jBvg5irGgA
Hey wanted to ask you about what happens if you reboot the phone? will it break?
Reboot bootloop
So I have bootloop issue once I reboot the phone after installing xposed apk. I removed .jar file and deleted .apk from CWM (using adb shell)
then it was fine.
Thanks for your instruction!
But as others, I have boot-loop problems too. I've done what you wrote, but everytime I rebooted, I got the boot-loop.
If I could wipe cache/dalvik-cache everytime before the phone started, xposed would work.
Somebody told me the boot-loop is related with Titanium Backup. Then I deleted TB, but the boot-loop came as usual...
So...How to make xposed work as normal?
Thanks again!
[email protected] said:
Thanks for your instruction!
But as others, I have boot-loop problems too. I've done what you wrote, but everytime I rebooted, I got the boot-loop.
If I could wipe cache/dalvik-cache everytime before the phone started, xposed would work.
Somebody told me the boot-loop is related with Titanium Backup. Then I deleted TB, but the boot-loop came as usual...
So...How to make xposed work as normal?
Thanks again!
Click to expand...
Click to collapse
the same to you,my phone is l50u,how about yours?
hubo19890319 said:
the same to you,my phone is l50u,how about yours?
Click to expand...
Click to collapse
放弃了……没准儿之后更新的时候能搞定……
其实现在主要问题也就是插底座直接横屏和状态栏颜色的问题……
[email protected] said:
放弃了……没准儿之后更新的时候能搞定……
其实现在主要问题也就是插底座直接横屏和状态栏颜色的问题……
Click to expand...
Click to collapse
English please !
Sent From My Z2 On LP 5.0.2 Full Debloated !
When can we expect a recovery for lollipop?
Pandemic said:
English please !
Sent From My Z2 On LP 5.0.2 Full Debloated !
Click to expand...
Click to collapse
Sorry for that.
Using native language sometimes can save a lot of space and time.
Please forgive my poor English.
It would be really kind if you can ignore what I wrote before.
@beniamin24 - do we need to clear Dalvik/ART cache after every reboot once Xposed running, or only two times as mentioned in the instructions?
Edit: after each reboot I've got bootloop, clearing of the cache does help, but it takes too long to optimise all the applications, not worth the regular usage yet
Well now we do have recovery again. Makes all this a lot easier
perfect @AndroPlus
Reb0rn said:
Well now we do have recovery again. Makes all this a lot easier
Click to expand...
Click to collapse
yes man :good:
Guys, you already changed selinux yet? It has to be permissive.
I have TWRP working along side with Stock ROM since yesterday, as AndroPlusKernel is now available for 5.0.
I got the boot.img off AndroPlusKernel and flashed it via fastboot, now I can access TWRP.
So after many experiments: (get xposed-arm-20150308-1.zip which works on SELinux enforcing not xposed-arm-20150308.zip)
Installed Framework > Restart > Fine
Installed Framework > Installed Xposed APK > Restart > Bootloop
Installed Framework > Installed Xposed APK > Restart to recovery > Wipe Dalvik Cache > Fine [This is really hideous process as it will start Optimizing apps]
Maybe if you can provide catlogs to the Xposed thread to see if they can do something about it.
Sent from my D6503 using XDA Free mobile app
themightydeity said:
I have TWRP working along side with Stock ROM since yesterday, as AndroPlusKernel is now available for 5.0.
I got the boot.img off AndroPlusKernel and flashed it via fastboot, now I can access TWRP.
So after many experiments: (get xposed-arm-20150308-1.zip which works on SELinux enforcing not xposed-arm-20150308.zip)
Installed Framework > Restart > Fine
Installed Framework > Installed Xposed APK > Restart > Bootloop
Installed Framework > Installed Xposed APK > Restart to recovery > Wipe Dalvik Cache > Fine [This is really hideous process as it will start Optimizing apps]
Click to expand...
Click to collapse
Could you please upload the file somewhere? It is not available on dropbox anymore. Thanks!
_mysiak_ said:
@beniamin24 - do we need to clear Dalvik/ART cache after every reboot once Xposed running, or only two times as mentioned in the instructions?
Edit: after each reboot I've got bootloop, clearing of the cache does help, but it takes too long to optimise all the applications, not worth the regular usage yet
Click to expand...
Click to collapse
Yes, after installing xposed and modules, Dalvik Cache must be wiped at every reboot or we get bootloop !!! It's not bearable...
This issue might be fixed if SElinux permissive mode would be enabled by default in the advanced LP kernel. I've just requested AndroPlus to do it.
_mysiak_ said:
Could you please upload the file somewhere? It is not available on dropbox anymore. Thanks!
Click to expand...
Click to collapse
Here you go:
[MEGA] xposed-arm-20150308-1.zip
[Mediafire] xposed-arm-20150308-1.zip
GUIDE SECTIONS QUICK LINKS
#1 - MIUI ROM, Types of MIUI ROM
#2 - TWRP, Types of TWRP, Flashing TWRP
#3 - Unlock, Root, Flashing via TWRP
#4 - Custom ROM, Types of custom ROMs
MIUI ROM
MIUI (pronounced as Me-You-I) is Xiaomi's custom built firmware like Samsung's OneUI, HTC's SenseUI, OnePlus's OxygenOS which is built on top of Android's AOSP base with its own modifications and features. At first glance it resembles like a hybrid between Google's Material Design and Apple's iOS. But unlike Stock Android or iOS, MIUI is very intuitive, feature rich and has multiple tweaking options. MIUI is updated regularly depending on the development branch. Xiaomi gathers reports, feedbacks and suggestions from the community, addresses the bug-fixes and integrates new features upon request. Most of Xiaomi devices are regularly patched with security updates every 2-3 months. The flagship "Mi" series like Mi9 receive quicker Android version updates than their budget "Redmi" series like Redmi 7, Redmi Note 7 Pro etc.
TYPES OF MIUI ROM
There are 2 development branches of MIUI ROMs for all Xiaomi devices.
A) Stable Builds
It is updated on a monthly basis or longer
New features are added slowly after testing
Higher system stability and less bugs than Beta ROMs
It has a four digit numbering scheme (X.X.X.X)
For eg. 8.X.X.X is MIUI8 Stable Build
Stable builds come in 2 variants
1. MIUI China Stable ROM
This ROM is pre-installed on all Xiaomi devices sold in China.
It is made for the Chinese market & contains Chinese MIUI apps.
Google Apps are absent. You can install them manually.
It supports Chinese & English languages.
2. MIUI Global Stable ROM
This ROM is pre-installed on all Xiaomi devices sold outside China.
It is made for the International market & contains English MIUI apps.
Google apps are pre-installed by default.
It supports 50+ languages.
B) Beta Builds
It is updated on a weekly/bi-weekly basis or longer.
New features are added quickly for testing.
Lower system stability and more bugs than Stable builds.
It has a three digit numbering scheme (X.X.X)
For eg. 6.11.21 is MIUI8 Beta build for 21th Nov, 2016.
This ROM is not pre-installed on any Xiaomi device.
You can install Beta build over Stable build manually.
Beta/Developer builds come in 2 variants.
1. MIUI China Beta ROM
It is made for the Chinese market & contains Chinese MIUI apps.
Google Apps are absent. You can install them manually.
It supports Chinese & English language.
2. MIUI Global Beta ROM It is made for the International market & contains English MIUI apps.
Google apps are pre-installed by default.
Supports more than 50+ languages.
TWRP
Team Win Recovery Project is a custom recovery which is flashed over the stock recovery as it gives user more options such as flashing custom ROMs, kernels & scripts, take full system backups, restore backups, root etc.
TYPES OF TWRP
1. TWRP by iscle: https://forum.xda-developers.com/mi-max-2/development/recovery-twrp-3-1-1-0-touch-recovery-t3652762
Based on Stock TWRP 3.1.1-0 with no modifications.
Ported from Redmi Note 4 (mido)
English language as default
Need to flash dm-verity zip immediately after flashing this TWRP, else your phone wont boot.
2. TWRP by xuefer: https://forum.xda-developers.com/mi-max-2/development/twrp-max2-oxygen-t3634437
Built using LineageOS 14.1 source
Built and tweaked for Mi Max 2 (oxygen)
Decryption support added for /data
Faster transfer using adb push
Extra fonts added
FLASHING TWRP
Unlock bootloader here: https://forum.xda-developers.com/mi-max-2/how-to/guide-unlocking-bootloader-mi-max-2-t3641257
Install "Minimal ADB+Fastboot Drivers": https://forum.xda-developers.com/showthread.php?t=2317790
Download TWRP file and copy the file in the C:\Program Files (x86)\Minimal ADB and Fastboot folder
Download dm-verity disabler and copy the file in your phone: https://build.nethunter.com/android-tools/no-verity-opt-encrypt/
Switch off phone. Hold Power + Volume Down to boot into fastboot mode. Connect it to PC.
Inside the folder where TWRP file is present, open command prompt window.
Type "fastboot devices". Your phone will get detected with serial number.
Type "fastboot flash recovery <recovery_name.img>". TWRP will get flashed on your device.
E.g. "fastboot flash recovery twrp_3.1.1-0.img".
Type "fastboot boot <recovery_name.img>". You will boot into TWRP. Disconnect phone from PC.
E.g. "fastboot boot twrp_3.1.1-0.img".
On the screen, swipe to allow modifications and select your language. Uncheck "Keep system read-only"
Select Install and then choose the dm-verity disabler zip and swipe to flash.
Select Backup and check all partitions. Swipe to backup. The backup will be stored in "TWRP" folder
Select Reboot and then system. You will be asked if you want to disable the stock recovery. Swipe to disable.
You will boot into MIUI with TWRP installed.
TWRP ZIPs
These zips are meant to be flashed with TWRP with a specific order. Before flashing any zip make sure you have taken full backup of your device partitions using TWRP.
1. no-verity-opt-encrypt: https://build.nethunter.com/android-tools/no-verity-opt-encrypt/
Also called as dm-verity disabler/lazy flasher
"dm-verity" is a feature in the MIUI kernel which checks and prevents the phone from booting normally if you modify the phone. (e.g. flash TWRP)
To prevent that, you need to flash the dm-verity disabler zip which removes dm-verity check and also decrypts the /data partition so that you can boot into MIUI normally.
Else you can flash a custom ROM immediately after flashing TWRP which removes the MIUI system and kernel
2. Xiaomi.EU ROM Patch: https://forum.xda-developers.com/mi-max-2/development/xiaomi-eu-rom-patches-dpi-change-t3656296
You need to install Xiaomi.EU ROM before installing these zips via TWRP.
MIUI to Google Apps: Replaces default MIUI apps with Google apps.
Google Now/Pixel Launcher: Replaces stock MIUI launcher and enables Google Assistant via build.prop tweak.
DPI changer: Change values from stock 440 (low res, bigger) to 325 (high res, smaller).
3. Hardware Key Disabler : https://forum.xda-developers.com/mi-max-2/themes/mod-disable-hardware-keys-lineageos-rom-t3696108
This mod enables on screen navigation bar and disables the hardware keys
You can revert back to stock configuration by flashing "enable_HWkeys.zip"
FLASHING VIA TWRP
Some important terms to remember:
Formatting data: Factory resets the phone, will erase internal storage, will remove encryption
Wiping data: Factory resets the phone, will not erase internal storage, will not remove encryption
Clean flash: Flashing a new ROM or an updated version of the same ROM by wiping or formatting data of current ROM in TWRP. Cache & dalvik is automatically wiped in TWRP.
Dirty flash: Flashing an updated version of the same ROM without wiping or formatting data of current ROM in TWRP. Cache & dalvik wipe is recommended in TWRP.
Treble TWRP: Custom TWRP which uses existing /cust partition and formats it into /vendor partition which is needed for non-MIUI Oreo and Pie ROMs where Treble is used.
Notes:
Always read the entire post & comments of the custom ROM page before asking any questions, chances are your query has already been answered.
You do not need to wipe /system partition manually, it its automatically wiped when a ROM is flashed by the updater-script inside the ROM zip. General rule of thumb is always clean flash any ROM, unless mentioned by the ROM developer or maintainer that dirty flashing is okay.
Requirements:
Unlocked bootloader with TWRP installed
Phone partition backup using TWRP
All data backup from internal storage (sms, contacts, files etc.)
Official MIUI ROM encrypts /data partition, you will need to Wipe > Format Data to decrypt it completely else need to flash dm-verity disabler zip or Magisk zip.
1. Rooting MIUI / non-MIUI ROM
Boot into TWRP (Power+Volume Up)
Install > Magisk zip
Reboot > System
2. Flashing official MIUI recovery ROM
Boot into TWRP
Wipe > Format data (if storage is encrypted)
Reboot > Recovery
Install > MIUI ROM zip + Magisk Zip
Reboot > System
3. Flashing custom MIUI ROM (Xiaomi.EU / RevOS / Mi Globe)
Boot into TWRP
Wipe > Format data (if storage is encrypted)
Reboot > Recovery
Wipe > Factory reset
Install > Custom MIUI ROM zip
Reboot > System
4. Flashing LineageOS/AOSP ROMs (Non-Treble)
Boot into TWRP
Wipe > Format data and Reboot > Recovery (if storage is encrypted)
Wipe > Factory reset
Install > Firmware + ROM Zip + Google Apps Zip
Reboot > System
5. Flashing LineageOS/AOSP ROMs (Treble)
Boot into Treble TWRP
Wipe > Format data (if storage is encrypted)
Reboot > Recovery
Wipe > Factory reset
Install > Firmware + ROM Zip + Google Apps Zip
Reboot > System
TYPES OF CUSTOM ROMs
There are mainly two types of custom ROMs for any Android device. You need to flash them on your phone using custom recovery such as TWRP.
1. Stock based ROMs
They are based on the factory ROM which came pre-installed on your device. In case of Xiaomi devices, developers take the stock China Stable/Beta MIUI ROMs as base, perform modifications and tweaking and then re-pack it. Examples of stock based MIUI ROMs.
Xiaomi.EU: https://xiaomi.eu/
MIUI Pro: https://miuipro.by/
Mi Globe: http://mi-globe.com/
Epic ROM: http://www.epicrom.pro/
2. Custom based ROMs
They are typically based on either AOSP or LineageOS code. They can either be ported from similar devices or built using the kernel source code of a particular device. Xiaomi has not yet released kernel source code for Mi Max 2. Kernel source codes are needed for relatively stable and bug-free experience on custom ROMs. Examples of some popular custom ROMs
A) AOSP based ROMs
AOSPExtended: https://www.aospextended.com/
Nexus Experience: http://www.nxrom.us/
SlimRoms: https://slimroms.org/
B) LineageOS based ROMs
LineageOS: https://lineageos.org/
Resurrection Remix: http://www.resurrectionremix.com/
XenonHD: http://www.xenonhd.com/
Reserved #4
Reserved #5
Thanks for wonderful explanation and for content too
Hi,
I flashed TWRP from PC using above procedure & tried to install no-verity-opt-encrypt (version 5.1.zip).
I got below error while installing :
Error: unpacking ramdisk failed
Phone booted normally & TWRP is not there.
How to fix this issue?
I know these questions are sometimes annoying, but for someone who hasn't been following Android development since Android 4.4.4, I'm a little overwhelmed by all this information. What does the "Oxygen" mean? Is it just a certain model of the Mi Max 2? I see all ROMs say Oxygen but none explain what it means. If it's a model of the Max 2, how can I know if the version I have is Oxygen?
Thanks and sorry if it's a dumb question
It's a code name for Max 2, so you don't mistakenly flash the wrong ROM, if it says Oxygen, than you're sure it's for your model, not for i.e. Mi Max...
Sent from my Mi Max 2 using Tapatalk
Hello,
I have a Mimax 2 bootloader unlocked, rooted, SuperSU, twrp 3.1.0-0 (cofface) installed. I installed, after some difficulties, the rom xiaomi.eu 7.12.28. When I'm in recovery, after the flash I sometimes have a red line that says "... no-verity-opt-encrypt ..." blah blah. But the phone boot normally, everything works fine. Do I have to install lazyflasher-no-verity-opt-encrypt or can I do without it?
thank you and sorry for my bad english
Hi, I have unlocked BL and installed Developer ROM 7.12.28. for a few weeks now. Can I install latest 8.1.4 developer ROM with TWRP without wiping cache/dalvik and will I keep my data/apps that way?
Thanks.
Sent from my Mi Max 2 using Tapatalk
@frulex, I installed the 8.1.4 (via updater) after using the 7.12.28, without any problem. That you erase the cache where not, you will not lose the data of your apps
What was the size of that update file you installed? I first got notification of 8.1.4 update and it said it's something like 95 MB file size. Tried to install it twice via updater, it starts updating, boots to TWRP and ends with error without installing. After reboot notification changed and now it offers update of full 1.5 GB 8.1.4 version ROM. I didn't have time to download and try that but I wonder will that also end in error and that's why I ask about downloading .zip and flashing through TWRP.
Sent from my Mi Max 2 using Tapatalk
These are the roms I used, as you see 8.1.4 weighs 1.2 Go
edit: I had uploaded an image of the explorer but it does not appear! (decidedly i'm struggling with this forum, lol)
Not many roms for this phone..it sux..I regret exchanging it with my oneplus 3..
How many ROMs have you expected in 3 days since kernel source has been released?
Sent from my Mi Max 2 using Tapatalk
good tutorial
thanks to you @SharkcpN . this is such a clearly, easily tutorial "How to Flash TWRP" for newbie like me..
I tried and succeed with no error at all.. once again, thanks for your good job :good:
Hi there! Thanks for the excellent thread and collection of links. I started here and found a setting on this phone's NVRAM that I have not seen mentioned anywhere else, and you will need it for LTE unlocking.
Below are the exact steps, many taken from this guide, that I used to go from a phone with an unlocked bootloader to flipping the LTE B2 and LTE B4 bits on. After I did it and rebooted, I suddenly had a working LTE connection!
I cannot yet PROVE that this actually enabled the bands, but it hasn't hurt anything. I will test for that in a couple days, because the only dumb thing I did was afterwards, when I accidentally re-locked the bootloader by not paying attention to what I was doing. If you use the MiFlash program to install a ROM, don't forget to change the setting in the lower right corner!
Notes for those wishing to use this as a guide:
I don't think you can brick the phone completely playing with just these settings, but you should be prepared to restore everything. Take backups where I mention them, and if you need the device working, you should have a current MIUI fastboot flashable image, available from the official website, on hand.
This is LTE only and there are different settings for GSM that work the same way.
The steps are numbered, but you should also understand mostly what they do.
You may ignore the VM part and just boot your normal Win7 with driver signature checking DISABLED (F8 on boot). I use Linux and I'm security-conscious about downloading programs that I can't verify, so I'm using a VM.
There is a dialpad option for opening the diag port (if you have root), but it did not work for me, so I have provided a method that I know works and it clears itself upon reboot
QXDM's NV browser has a checkbox for "DUAL SIM". You don't need to check it for this process, you won't lose SIM2.
Downloads section:
(REQUIRED) Most are in the links provided by OP:
MiFlash (official one)
QPST 2.7.460
QXDM 3.12.714
Minimal adb and fastboot
no-verity-opt-encrypt-6.0.zip
twrp-3.2.1-0-oxygen.zip
SuperSU-v2.82-201705271822.zip
(OPTIONAL, needed if you mess up. I chose to have it ready to go.):
From MIUI official site, go to the ROMs for the Max 2. The one on the download button here is NOT what you want.
Select Flashing guide, then on on the left hand side select FastBoot.
Download the image for your device. I have a copy of oxygen_global_images_V9.0.3.0.NDDMIEI_20171209.0000.00_7.1_global_298fd5f49c.tgz
SETUP SECTION (install tools and root phone):
Enable developer mode and USB debugging on phone
Boot into a Windows VM, pressing F8 to go into unsigned drivers mode
Install MiFlash, just to get the drivers
Install QPST and QXDM for later
Install adb and fastboot
Pass USB port through to VM and check adb is working by twice typing
Code:
adb devices
Shutdown phone and remove SD card from phone.
Add no-verity-opt-encrypt-6.0.zip and SuperSU-v2.82-201705271822.zip to SD card
Put SD card back in phone
Reboot phone into fastboot mode using PWR & VOL-, and re-pass to VM if needed
From cmd terminal in adb folder,
Code:
fastboot flash recovery twrp-3.2.1-0-oxygen.img
Code:
fastboot boot twrp-3.2.1-0-oxygen.img
Once TWRP comes up, install no-verity-opt-encrypt-6.0.zip
(OPTIONAL) Make a backup. I didn't because I don't want the ROM that's on there anyway.
Reboot and ensure MIUI loads
Shutdown phone and reboot into TWRP using PWR & VOL+
Install SuperSU as a system app
Reboot into MIUI
Access and edit the NVRAM:
Connect the device back to the computer, pass to VM if necessary
From your terminal in the adb folder,
Code:
adb devices
Grant debug permission on the device, if it asks again
Code:
adb shell
Code:
$su
Grant permission in superSU popup
Code:
#setprop sys.usb.config diag,adb
When the device reconnects, re-pass to VM if needed, and it may install another driver
Open QPST Configuration and make sure the device's port is enabled.
At the top, go to "start clients" and open "software download"
In the "Backup" tab, choose a location to save your file and hit Start, just in case you do break something
Once finished, close "software download" but leave QPST Configuration running
Open QXDM Professional
Under Options->Communications, make sure your phone is set "active" then set "target port" to the port it's on, then press OK
Go to NV Browser in the dropdown on the upper left.
Scroll down to 06828 :"nv_lte_bc_config_type.lte_bc_config"
Press READ and save this value somewhere in case you forget which bits you set! Mine was: 2061584302293
It's little-endian, and I wanted to flip bits from 0 to 1 to enable bands {2} and {4}, so I added 2^({2}-1)+2^({4}-1) = 10 to get a value of 2061584302303
Enter your new value in the "value" field and press "write"
Now, scroll down to the corresponding LTE prefs value at 65633
Read again. This should be the same number you had before, in hexadecimal format. Mine was 0x1E0000000D5, so to add B2 and B4 (Combined value 0xA), I changed it to 0x1E0000000DF
Again, enter your new value in the "value" field and press "write"
I doubt this requires any sort of "safe shutdown," but I hit "offline" then closed QXDM, then closed QPST, then rebooted the phone.
For a quick test, you can set network preferences to "LTE ONLY" by going to the dialpad and hitting *#*#INFO#*#*, then selecting your SIM card and using the dropdown in there. Mine was preferring HSPAP because the signal was stronger, even though the data was blocked.
Further testing I want to do when I get the bootloader unlocked again:
Use an app that shows what bands are in use to prove I'm on B2 or B4
Try disabling bands I will never use that have similar frequencies to the bands I want to see if signal improves
TWRP ZIPs
These zips are meant to be flashed with TWRP with a specific order. Before flashing any zip make sure you have taken full backup of your device partitions using TWRP.
1. no-verity-opt-encrypt: https://build.nethunter.com/android-...y-opt-encrypt/
Also called as dm-verity disabler/lazy flasher
"dm-verity" is a feature in the MIUI kernel which checks and prevents the phone from booting normally if you modify the phone. (e.g. flash TWRP)
To prevent that, you need to flash the dm-verity disabler zip which removes dm-verity check and also decrypts the /data partition so that you can boot into MIUI normally.
Else you can flash a custom ROM immediately after flashing TWRP which removes the MIUI system and kernel
2. Xiaomi.EU ROM Patch: https://forum.xda-developers.com/mi-...hange-t3656296
You need to install Xiaomi.EU ROM before installing these zips via TWRP.
MIUI to Google Apps: Replaces default MIUI apps with Google apps.
Google Now/Pixel Launcher: Replaces stock MIUI launcher and enables Google Assistant via build.prop tweak.
DPI changer: Change values from stock 440 (low res, bigger) to 325 (high res, smaller).
What does It mean??
NOTE: IF YOU DON'T WANT TO USE MAGISK THEN JUST FOLLOW STEPS FROM 1 to 7 WITHOUT STEP 6a
<strike>asd </strike>
A lot of Mi Max 2 users have problem with Dual Boot Patcher. You can pass installation step, but if you want to boot into secondary ROM the phone just vibrate and boot into recovery?
If your answer is "YES" then this guide is for you and it also contain how to get fully working Magisk (optionaly)
What is causing crash? It's encryption on internal storage.
What you have to do:
1) Boot into recovery
2) Make a backup of /system /data /boot on SD Card (it's important to make it on sd card!)
3) Wipe internal storage (it will erase all of your data including photos, music etc.)
4) Restore your backup and boot to your ROM
5) Install Dual Boot Patcher,go to ROM tab -> press 3 dots and press "Update ramdisk" and choose "Reboot now" It causes bootloop for some users and its only necessary for "App sharing" feature but it doesn't work properly on our device, so don't update RAMDISK and go to next step
6) Patch your ROM and install it as secondary on /system or on /data partition - it's your choice. I have MIUI and LOS installed on /system partition and it has still 1.7 GB of free space there
6a) Patch Magisk_v12.zip (see attachment) as a zip for secondary ROM and flash it
7) Select your secondary ROM in ROM list and reboot.
From now on everything what is below we will do on secondary ROM
8) Install Dual Boot Patcher.
9) Install magisk.apk (see attachment)
10) Open Magisk Manager
11) Go to Modules-> press "+" button -> search for Magisk_v15.3.zip -> hold your finger on it -> press "Open". Wait for installation end. Now press close button. Don't restart
12) Open Dual Boot Patcher -> confirm for change current kernel
13) Reboot and voila! You have fully working secondary ROM with Magisk!
English is not my native language. If there are any eye-bleeding language mistakes then send me PM with corrected text. Thanks!
reserved
so if i wanna install 3rd rom. i have to wipe internal again ?
phuocrose said:
so if i wanna install 3rd rom. i have to wipe internal again ?
Click to expand...
Click to collapse
No! It's just for decrypct internal storage. No need to wipe internal again
it worked and the 2nd rom booted correctly then i added magisk 15.3 and set kernel .. the next boot the phone boots to the primary rom and stuck at bootanimation
when checking from recovery it appears that data partition cant be read and twrp asks for password
i managed to format and restore a backup
but what exactly caused this ??
Hi, I tried to follow each step as described but after clicking 'reboot' in the dual boot patcher app it just reboots to TWRP and I can't boot into the os anymore..... Anyone having the same issue?
kalawy said:
it worked and the 2nd rom booted correctly then i added magisk 15.3 and set kernel .. the next boot the phone boots to the primary rom and stuck at bootanimation
when checking from recovery it appears that data partition cant be read and twrp asks for password
i managed to format and restore a backup
but what exactly caused this ??
Click to expand...
Click to collapse
Thread updated. Try to follow steps again. I have removed updating ramdisk step because it causes random bootloops
Benoît Lagasse said:
Hi, I tried to follow each step as described but after clicking 'reboot' in the dual boot patcher app it just reboots to TWRP and I can't boot into the os anymore..... Anyone having the same issue?
Click to expand...
Click to collapse
Dirty flash your current ROM and don't update ramdisk. Thread updated. If it boot then go to dual boot patcher and set kernel for your primary rom, if it asks
Unable to boot in primary os
Well thank you so much for this post
I followed all step carefully did same as written
Didn't keep miui as primary,
ISSUES
I went to Recovery fresh install of superior os
Did Backup , Wipe ,and restore now rebooted
Installed DBP Patch Miui 11 ROM and I thought that there's no enough storage in my system partition so flashed it in data slot )))
Switched to Miui 11 everything worked fine!
But I'm unable to boot in my primary superior os
FOA I were unable to switch ROM to superior then I updated kernel and ramdisk switched successfully but still
I can't boot to my primary superior os Everytime I reboot I boot into Miui 11 -
Using
Mi Max 2 (oxygen)