[ROM][13][OFFICIAL][4.19][DynamicPartition] PixelExperience (Plus) for Mi Pad 4 / 4 Plus [DISCONTINUED]

Search This thread

Alcatraz323

Senior Member
Apr 4, 2020
235
324
Xiaomi Mi 4
Google Pixel XL

NFjZzFl.png
PixelExperience for Mi Pad 4 (Plus) [clover]

What is this?
PixelExperience is an AOSP based ROM, with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, boot animation)

Our mission is to offer the maximum possible stability and security, along with essential and useful features for the proper functioning of the device

Based on Android 13


Extra Features
PixelExperience feature

Whats working?
Almost everything

Known issues
DON'T FLASH GAPPS, THEY'RE ALREADY INCLUDED
--

ATTENTION: How to flash

* For full steps please check the PixelExperience wiki

Since pixel experience is packed with pixel gapps, the system partition can't hold that large originally.
So I switched to retrofit dynamic partition(aka super.img) and fastbootd(userspace fastboot).
It's logical and won't affect the real partition table which means you can still go mi flash for fastboot or 9008 to flash the system/vendor partiton for un-brick.
However this method DOES NOT support twrp.

To install/OTA update this ROM, you MUST use the pe recovery which is provided with the ROM.(For official, it is also a MUST for publishing, OTA update won't need flash recovery again after/before rom flash, just need you keep the pe recovery)

For flashing recovery, use following command on your PC
fastboot flash recovery <img name>

Boot to recovery
Tap "Factory reset -> format data"(This will delete all your data! Only need for first time switch to PixelExperience
Then tap Apply Update -> Apply from adb
Start sideload by following command on the PC
adb sideload <zip.name>

# Or you can just put ROM on a fat32/exfat/ntfs sdcard/usb otg and insert/plug it, then you can choose it in pe recovery like twrp.

If you see any "metadata", "libfs_mgr" related error, just ignore it, it's common on the first dynamic partition flashing, and won't appear next time

To switch to other ROMs, format data in PE recovery first, and then install another recovery then the ROM.
Eg.
1. reboot to pe recovery -> Factory reset -> format data
2. Back to recovery home -> Advanced -> reboot to bootloader
3. flash another recovery such as twrp
4. press vol+ and power to boot recovery
5. do another factory reset (and a format data if it is twrp)
6. install(/sideload) another ROM's OTA zip like MIUI stock or LineageOS etc.(Warning: the ROM to install must have same kernel version with recovery. Eg. you can't use twrp-4.19 to format then install stock MIUI)

Stay tuned
Download/History Archive

Download
--

 

Attachments

  • Screenshot_20230209-000737_Settings.png
    Screenshot_20230209-000737_Settings.png
    167.7 KB · Views: 3,342
  • Screenshot_20230208-230003_Pixel Launcher.png
    Screenshot_20230208-230003_Pixel Launcher.png
    1.4 MB · Views: 3,191
  • Screenshot_20230208-230018_Pixel Launcher.png
    Screenshot_20230208-230018_Pixel Launcher.png
    1.6 MB · Views: 2,971
  • Screenshot_20230208-230054_Pixel Launcher.png
    Screenshot_20230208-230054_Pixel Launcher.png
    245.3 KB · Views: 2,897
  • Screenshot_20230208-230102_Pixel Launcher.png
    Screenshot_20230208-230102_Pixel Launcher.png
    139.8 KB · Views: 2,775
  • Screenshot_20230208-230115_Android Setup.png
    Screenshot_20230208-230115_Android Setup.png
    103.5 KB · Views: 2,702
Last edited:

Alcatraz323

Senior Member
Apr 4, 2020
235
324
Xiaomi Mi 4
Google Pixel XL
Report Requirements:
What NOT to report:
1. ANYTHING not on this ROM
2. ANYTHING on non-latest build
3. ANYTHING if you flashed any of following: [other kernel]/[Magisk]/[modules]/[other thing related to change system behavior], exception could be made if you are a developer of above
4. ANYTHING you need to know that written on FAQ

How to report correctly:
1. Describe how to reproduce
2. Take a log&dmesg AFTER the issue is triggered FAST then attach them to report
* For logcat tutorial, check: https://wiki.lineageos.org/how-to/logcat
* For dmesg tutorial, use following commands on PC:
adb root
adb shell dmesg

You may get ignored for incorrect reporting

FAQ:
1. What is 13 / 13 (Plus edition)?
The 13 (Plus Edition) NOT means it's for pad 4+, It's PE+, the 13、13 (Plus edition) both available for Mi Pad 4/4+. PixelExperience Plus will have more custom features.
Also, if you are already on normal edition, you can directly dirty flash the same date plus edition or newer plus edition.

2. Why there is always a {"Press any key to shutdown"/fastboot cmd error(like send size error something else} on PC when I try to do something in bootloader like flashing a recovery/unlocking bootloader?
Your USB port on your PC, your cable and your device is not matched. Like Mi Pad 4 is USB 2.0 but you connect to a PC with USB 3.X on that(Usually laptop user). Change your usb setup to match it same: PC USB2.0 cable USB2.0. Or you may google for USB3.0 Reg patch for xiaomi(like this:
).
* Of course, I assume you are using latest usb and fastboot driver. If not, do that first.

3. How to flash certain partition with pe recovery? (like boot, frp, recovery, persist)
Use following command in bootloader mode
fastboot flash partition_name partition_name.img
OR
In pe recovery:
Advanced - enable adb
Then On PC:
adb push partition_name.img /tmp
adb shell
dd if=/tmp/partition_name.img of=/dev/block/bootdevice/by-name/partition_name


4. Why I lost all my sensor/can't rotate screen after flash/time always go wrong after a while(For NO SIM card)/can't use fingerprint as HOME BUTTON/any other weird issue?
* First of all, ROM has been tested without those issue from multiple user and myself, if you encountered any, check the info below:

Clover has a fragile persist partition, sometime it will break and cause these syndrome after a rom flash. It's not only happen when you flash pe, but flash(change) any rom(including flash from LineageOS to MIUI or any combination). To recover, just flash a persist.img backup. However in this stage, if this device has been flashed to a non original backup(means not a backup when this deivce is good) of persist(may not by you but by the one you bought it from, like second handed), it will recover the sensor, but breaks some other function lile RTC timer(resets a wrong time on every RTC sync), real MAC address, HOME BUTTON on fingerprint, ..., so unless you can't find anyway to recover the ORIGINAL one, DON'T flash the back up from others!!!(I did experiment for flashing others' backup, test then flash back to my original one, this is NOT assumption)

Here are methods to try:
[ONLY WORK when you or some other not flashed other's backup, again may not done by you but if you got this device from second hand market, the previous men may do it, ONCE persist is done flashing others, no way back as xiaomi did not provide any fix method for clover] Here are the methods:

Method Recommended: Flash your own persist partition backup(persist.img) is best which is backed up when everything is working then you will be fine, Steps below, if you sure you have done your own backup of persist.img, you can skip to step 2 or you can just go through this whole process to see if it can recover without touching persist manually.

Step 1. How to if I have no any backup of it?
First: go pe recovery -> Factory reset -> Format Data this is for flashing back to other ROM.
Second: try flash the ROM which used to be working, eg. you are from lineageos or miui, then go lineageos or miui, please used the method that required by that ROM(like flash to their twrp or use miflash etc) to flash it back, remember to not boot to the PE but complete this whole process in recovery/fastboot once you have done the "First" section's steps.
* Somebody told me that full flash back to MIUI 9.6.4 or earlier is an always working method, I never tried
Third: boot the system and check if everything is back, like the sensor(auto rotation, etc...), if time can be saved after rebooting, etc... If everything is not back, try miflash MIUI 9.6.4 or earlier package and check again.
Fourth: Now with everything back, do the backup process
- Root your device
- On pc with command "adb shell" or directly on the pad install a terminal app
- Use the backup commands in pc shell or terminal app like below:
su
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img

- Now you can see there is a persist.img file in your internal storage, pull it to your computer and keep it

Step 2. Go flash pe again, check if everything breaks again(this may happen, not breaks every time, I have explained above), flash the persist backup use the FAQ#3 command


------------Please try previous first before you give up and try the "Destructive" below!!!
Method Destructive: you can also download from others like from other's persist backup(this will fix the sensor but also will change the real MAC, cause RTC timer incorrect(resets a wrong time on every reboot or every RTC sync) for your device, causing other weird problem) on xda post(like this: https://xdaforums.com/t/rom-13-clov...omi-mi-pad-4-unofficial.4514507/post-88228039), thanks ichigo_kurosaki), for the flashing instruction please check the #3 FAQ above.

5. How to root with Magisk/Can PE run kernelsu?
Magisk: rename Magisk.apk to Magisk.zip then sideload it in recovery like the ROM or do it from a sdcard/usb otg in the recovery. Also, patch the boot.img from the ROM package then flash patched boot.img through fastboot or recovery is ok(check FAQ#3)
Kernel SU: NEVER from me, it's not so good, I don't like it and is banned from PE. By the way if you flashed other kernel for that you will lose the right to report ANYTHING(Check "Report requirements" section).

==============================================

Special notice: Flash the OFFICIAL RECOVERY and CLEAN FLASH if you are from UNOFFICIAL or OTHER SYSTEM please!!!
Current Update(Both PAD 4/4 Plus):
PE Normal Edition(13):
2024.1.26 - Clean flash please
Device:
  1. kernel: sync with android common kernel f2fs filesystem - CLEAN FLASH
  2. device: enable hardware inlinecrypt process - CLEAN FLASH
Upstream:
  1. Janurary security patch
PE Enhanced Edition(13 Plus Edition):
Dirty flash in rec to manually switch to PE Plus, but backup data in case for any accident!!!
Everything above included, and:
  1. - N/A

==============================================

History Updates (non-plus):
2023.2.10 - First release
  1. Introduce PE 13 for Mi Pad 4 (Plus)
2023.2.12
Device:
  1. kernel: switched to 4.19
  2. device: add mi settings
2023.2.18
Device:
  1. kernel: fixed wake brightness burst
  2. kernel: backported fuse passthrough from kernel 5.4 for better android storage performance
  3. device: fixed camera stuck in 3rd app
  4. device: moved xiaomi settings back in Settings -> System
  5. device: added auto removal for wifi only/no fingerprint models
  6. device: switched to erofs, f2fs, fbeV2+emmc_optimization(MUST use new recovcery and FORMAT DATA)
  7. device: fixed weird power off charging ui
  8. device: fixed SD card format in two modes
  9. device: fixed microphone
  10. device: enabled ZRAM writeback
2023.2.20
Device:
  1. device: fixed backlight adjustment on Plus variant
  2. device: fixed usb mode detect on Windows(Mtp or so)
2023.2.24 - First OFFICIAL build
Device:
  1. device: fixed real MAC reading
  2. device: fixed charging led won't work on high battery percent
  3. device: fully translated xiaomi settings for CN
2023.2.27
Device:
  1. device: fixed brightness driver burst for 8inch. (Plus has no burst issue)
  2. device: fixed device setting can't display by side as tablet mode
  3. kernel: update to 4.19.273
  4. kernel: power optimized
2023.3.3
Device:
  1. device: fixed "UNKNOWN SOC TYPE" in some system info type apps (SDA660)
  2. device: fixed cpu freq scheduler always locks max freq by uclamp
  3. device: enabled 60fps recording in camera
  4. device: enabled cgroup freezer
Upstream:
  1. February security patch
  2. Google Apps updated
  3. Fixed battery drain and lag spike caused by Pixel Launcher (Need to uninstall previous updates of Android System Intelligence or do a clean flash if the issue persists)
  4. Fixed SafetyNet not passing
2023.3.24/5
Device:
  1. kernel: update to 4.19.278
  2. kernel: backport 5.10 fuse filesystem
  3. kernel: reduce power consumption for 8 inch screen
  4. device: reduce continuous ui rendering jitter/lag
2023.4.1
Device:
  1. device: add "Usb fast charge on usb3.0 port"(500mA - 900mA) in Xiaomi Settings
  2. device: switch to aosp task/cpu management for some critical tasks(util clampimg)
  3. device: audio quality HUGE fix
  4. device: "Mi Pad 4 Plus" will be differred in System info as well as the default dpi
  5. device: lower memory pressure caused by bad Qualcomm legacy io scripting
  6. device: optimize round corner
  7. device: won't show a fingerprint page on first boot setup for 8inch now
  8. device: complete software codec2 support (aosp_sw)
  9. device: use qti-usb@1.3 HAL(full USB config panel like reverse charging/role change)
  10. device: set baseband as "Wi-Fi Only" instead of "Unknown" for wifi variant
  11. device: further improve ui/animation lagging
  12. device: optimize RAM consumption
  13. device: optimize background app caching
  14. device: deprecated sdcardfs and use native Android 11 new filesystem base, which supports better scope storage
  15. device: more balanced irq control
  16. device: other minor fix
  17. kernel: minor optimize
Upstream:
  1. Fixed something bad in QPR2(0324/5, below is copied from last)
  2. Android 13 Quarterly Platform Release 2 (QPR2 - lots of new ui/behavior changes)
  3. Enabled multi user switcher on lock screen for large screen device(>600dp)
  4. Source rebased with March security patch
  5. Updated GApps
  6. Updated translations
  7. Minor fixes
2023.4.19
Device:
  1. kernel: update to 4.19.279
  2. kernel: switch default io scheduler to bfq(reduce cpu consumption/power/lag, also +1500 AnTuTu storage score)
  3. kernel: fixed step-chg/sw-jeita(thermal) for pm660_charger/fg
  4. kernel: fixed otg passive mode issue, need one REBOOT after OTA/sideloading
  5. device: fixed system partition not in erofs(increase boot up speed, system app speed)
  6. device: make setup wizard landscape available
  7. device: enable auto rotate by default
  8. device: separate notification and ringtone volumes
  9. device: fixed charge speed issue for LTE/Plus after hang off a call
  10. device: force recovery update with system
  11. device: irq balance now using 4 big cores (previously only 2 big cores)
  12. device: CloverParts: add volume panel trigger in QS
  13. device: CloverParts: add my battery manage system (Settings -> Battery -> Battery Management System) - Step charger / thermal charger switch
    - Mode: limit battery around 40-60%
    - Mode: limit battery around 80%
Upstream:
  1. April security patch
  2. Updated translations
  3. Optimizations on battery usage of Pixel Launcher
  4. Minor issues fixed
2023.5.3
Device:
  1. kernel: update to 4.19.282
  2. kernel: sdm660 kernel driver update from qcom(wifi/kernel/audio)
  3. kernel: minor fix & optimize
  4. device: expand wifi signal tolerance(reduce disconnect on bad wifi)
  5. device: update display driver for sdm660(gralloc - HAL/display)

2023.5.7
Device:
  1. device: allow 5G hotspot(called "Extend compatibility" in settings, reuquires a factory reset if you need it)
Upstream:
  1. May security patch
  2. Updated translations
  3. Updated Google Apps
  4. Minor issues fixed
2023.5.19
Device:
  1. kernel: qcom sdm660 kernel update LA.UM.11.2.1.r1-03900-sdm660.0(kernel main/kgsl/wifi-fw-api)
  2. device: qcom sdm660 driver/HAL update LA.UM.11.2.1.r1-03900-sdm660.0(camera/audio)
  3. device: add fastbootd option in advanced reboot(pe plus only, normal pe has no advanced reboot function)
  4. device: add a switch in battery management system to turn off charging ripple animation
Upstream:
  1. Minor platform framework fix
2023.7.14
Device:
  1. kernel: fix low power mode wrong booting behavior
  2. kernel: fix rmnet_ipa wrong loading behavior
  3. kernel: hotspot: fix hotspot sleep to death
  4. kernel: update Qualcomm snapdragon driver LA.UM.11.2.1.r1-04100-sdm660.0 - wifi/kernel
  5. kernel: tune for optimization
  6. kernel: update 4.19.288
  7. device: add hub mode resources from Pixel Tablet
  8. device: add Pixel Tablet stock wallpapers
  9. device: add translation(RU, IT, ES, JA, EL) for cloverparts
  10. device: correctly updated video/audio codec profile
  11. device: differed 8 inch/10.1inch power profile(battery report value, doesn't matter but let's make it load diffrent for 8/10.1)
  12. device: enable "Hub mode" entry
  13. device: enable user switcher chip
  14. device: fix adoptable storage(format sdcard as internal storage, no data loss after reboot now, but be careful for "PREWARNING" before doing OTA)
  15. device: fix audio feature extension lib loading error(not user sensible)
  16. device: fix IFAA(Mlipay) service, you may use Alipay with fingerprint(maybe, I can't test it), clover doesn't have soter firmware from MIUI modem(non-HLOS).img, so no soter for clover and no Wechat fingerprint payment
  17. device: fix power profile for counting screen, audio, video battery usage
  18. device: fix sim card background service fail and retry, fix ims service error, may fixed some lag, power drop and other sim card related issue
  19. device: fix some unexpected SELinux denial(like qemu.hw.keys prop)
  20. device: fix zram (write back) related kernel/selinux issue
  21. device: hotspot: enable WPA3-Personal, WPA2/WPA3 option on hotspot(need the client not too old, normally just use WPA2 please)
  22. device: hotspot: fix 2.4ghz hotspot doesn't have network on some old devices
  23. device: hotspot: fix 5ghz wifi hotspot without clean flash
  24. device: hotspot: increase wifi hotspot ap client limit to 32
  25. device: implement QCOM WifiDisplay(improve performance, support mouse/keyboard input from remote, support passing audio to remote)
  26. device: improve UI lagging
  27. device: kill keyguard user switcher, enable Bouncer User Switcher
  28. device: make Google Home built in following Pixel Tablet
  29. device: project clean up, remove not needed system libs
  30. device: reset lmk(Low Memory Killer) profile to apply AOSP default new strategy
  31. device: solve 170M HDR type video decoding
  32. device: tune status bar height, match status bar height for keyguard
  33. device: universal wifi config optimization/upgrade
  34. device: update GPU driver(OpenGL 3.2 @a61af92a49 - 2022/5/31, Vulkan 512.502.0 from Android 12 implementation)
  35. device: update gpu firmware to lavender Android Q MIUI 12.5.7
  36. device: update HUGE amount of qualcomm driver/service to Android 12 version(from Honeywell Hon660) and Android 13 version(LA.QSSI13), Can't write it down here, contains too much
  37. device: update Qualcomm snapdragon driver LA.UM.11.2.1.r1-04100-sdm660.0 - audio
  38. device: other minor fix and improvement
Upstream:
  1. July security patch(Already an update of QPR3 June)
  2. Fixed Google Assistant in landscape
  3. Fixed app drawer icon color on launcher for "light theme"
  4. Added Emoji wallpaper workshop(Update gapps from Play store and wait for a while then you will see)
  5. Some preview UI for Android 14, eg. floating taskbar, new back gesture ui, new charging battery chip in status bar...
  6. Source rebased
  7. Updated gapps and translations
  8. Performance and under the hood improvements
2023.7.19
Device:
  1. kernel: fix the HEVC 10bit
  2. kernel: update Qualcomm driver(kernel, audio-kernel) to LA.UM.11.2.1.r1-04200-sdm660.0
  3. kernel: add USB UAS support(you can mount movable harddisk now)
  4. kernel: add bunch of HID device support
  5. kernel: tuning UClamp scheduler values, better performance, power saving
  6. device: update Qualcomm driver(display-commonsys) to LA.UM.11.2.1.r1-04200-sdm660.0
  7. device: add spatial audio support(it's for wired headphone get better effect when playing supported media)
  8. device: optimize the audio system performance
  9. device: dexpreopt optimization(improve apps speed, get smoother), may need clean flash to take effect, clean flash and let it sleep for a while to complete the optimize process
Upstream:
  1. Minor problem fixed
2023.8.12/3
Device:
  1. kernel: update to 4.19.289
  2. device: add spatial audio for speaker
Upstream:
  1. August Security Patch
  2. Pixel Launcher/ASI drain fixes
  3. Gapps Updated
  4. Minor fixes and improvement
2023.9.14
Device:
  1. kernel: upstream 4.19.294
  2. kernel: qualcomm driver update LA.UM.11.2.1.r1-04500-sdm660.0 (audio/kernel/wifi)
  3. kernel: backport and enable Multigen-LRU
  4. kernel: f2fs optimization from MIUI
  5. kernel: arch arm64 optimization
  6. device: qualcomm driver update LA.UM.11.2.1.r1-04500-sdm660.0 (display)
  7. device: optimize uclamp app launch boost
  8. device: optimize uclamp background process restriction
  9. device: add French translation for cloverparts(thanks to pix106)
  10. device: remove redundant zram setup procedure
Upstream:
  1. Still August patch
  2. Fix SystemUI HAL exception
  3. Updated translations
  4. Minor fix & minor upstream update
2023.9.26
Device:
  1. kernel: some lmk tuning
Upstream:
  1. September security patch
2023.10.19
Device:
  1. kernel: update to 4.19.296
Upstream:
  1. - N/A
2023.11.23
Device:
  1. kernel: update to 4.19.297
  2. device: fix selinux security issue
  3. device: switch system/vendor fs from erofs back to ext4
Upstream:
  1. November security patch
  2. Play integrity fix
2024.1.26 - Clean flash please
Device:
  1. kernel: sync with android common kernel f2fs filesystem - CLEAN FLASH
  2. device: enable hardware inlinecrypt process - CLEAN FLASH
Upstream:
  1. Janurary security patch
==============================================

History Plus Updates:
2023.2.10 - First release
  1. - N/A
2023.2.12
  1. - N/A
2023.2.18
  1. - N/A
2023.2.20
  1. - N/A
2023.2.24 - First OFFICIAL build
  1. - N/A
2023.2.27
  1. - N/A
2023.3.3
  1. - N/A
2023.3.24/5
  1. - N/A
2023.4.1
  1. - N/A
2023.4.19
  1. - N/A
2023.5.3
  1. - N/A
2023.5.7
  1. emergency fix: 0503(PE Plus): headphone jack
  2. emergency fix: 0503(PE Plus): camera video recording
2023.5.19
  1. - N/A
2023.7.14
  1. - N/A
2023.7.19
  1. - N/A
2023.8.12/3
  1. - N/A
2023.9.14
  1. - N/A
2023.9.26
  1. - N/A
2023.10.19
  1. - N/A
2023.11.23
  1. - N/A
2024.1.26
  1. - N/A
 
Last edited:

Piccolo1

Member
Jan 15, 2021
36
14
perfect rom installed. I wanted to ask if you could build on kernel 4.19 and include the xiaomi parts to have screen color management and volume enhancement

( kernel 4.4 is no longer supported eol )
 

Piccolo1

Member
Jan 15, 2021
36
14
Trying 4.19, and screen color manage is in Display->Live display for now
if it can be useful to you there is a very good developer pix106 you can use his 4.19 trees and believe that he also integrates the xiaomi parts. of the xiaomi parts it was useful to boost the volume of the speaker

 
  • Like
Reactions: History_exe

Alcatraz323

Senior Member
Apr 4, 2020
235
324
Xiaomi Mi 4
Google Pixel XL
if it can be useful to you there is a very good developer pix106 you can use his 4.19 trees and believe that he also integrates the xiaomi parts. of the xiaomi parts it was useful to boost the volume of the speaker

Successed with his kernel, uploaded 4.19 version, you may try it
thanks for the information, and the future version will be developed base on 4.19
 
Last edited:
  • Like
Reactions: Piccolo1

NetHana

New member
Feb 18, 2023
2
0
Thank you for a great rom.

I installed version 2023-02-18 and during various tests, I noticed an issue with microphone sound not being input.

The test app used Google recorder, and it was able to record the bluetooth microphone, but not the mipad4 device microphone.
 

Batoyer1

New member
Feb 18, 2023
4
3
Thank you very much for the great work.
Very fluid and so far working perfectly.
It only lacks the play protect certification. Uncertified device.
I hope to give my Mi pad 4 tablet a long life with this ROM.
Screenshot_20230218-110011_Google Play Store~2.png
 
  • Like
Reactions: History_exe

Top Liked Posts

  • There are no posts matching your filters.
  • 24

    NFjZzFl.png
    PixelExperience for Mi Pad 4 (Plus) [clover]

    What is this?
    PixelExperience is an AOSP based ROM, with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, boot animation)

    Our mission is to offer the maximum possible stability and security, along with essential and useful features for the proper functioning of the device

    Based on Android 13


    Extra Features
    PixelExperience feature

    Whats working?
    Almost everything

    Known issues
    DON'T FLASH GAPPS, THEY'RE ALREADY INCLUDED
    --

    ATTENTION: How to flash

    * For full steps please check the PixelExperience wiki

    Since pixel experience is packed with pixel gapps, the system partition can't hold that large originally.
    So I switched to retrofit dynamic partition(aka super.img) and fastbootd(userspace fastboot).
    It's logical and won't affect the real partition table which means you can still go mi flash for fastboot or 9008 to flash the system/vendor partiton for un-brick.
    However this method DOES NOT support twrp.

    To install/OTA update this ROM, you MUST use the pe recovery which is provided with the ROM.(For official, it is also a MUST for publishing, OTA update won't need flash recovery again after/before rom flash, just need you keep the pe recovery)

    For flashing recovery, use following command on your PC
    fastboot flash recovery <img name>

    Boot to recovery
    Tap "Factory reset -> format data"(This will delete all your data! Only need for first time switch to PixelExperience
    Then tap Apply Update -> Apply from adb
    Start sideload by following command on the PC
    adb sideload <zip.name>

    # Or you can just put ROM on a fat32/exfat/ntfs sdcard/usb otg and insert/plug it, then you can choose it in pe recovery like twrp.

    If you see any "metadata", "libfs_mgr" related error, just ignore it, it's common on the first dynamic partition flashing, and won't appear next time

    To switch to other ROMs, format data in PE recovery first, and then install another recovery then the ROM.
    Eg.
    1. reboot to pe recovery -> Factory reset -> format data
    2. Back to recovery home -> Advanced -> reboot to bootloader
    3. flash another recovery such as twrp
    4. press vol+ and power to boot recovery
    5. do another factory reset (and a format data if it is twrp)
    6. install(/sideload) another ROM's OTA zip like MIUI stock or LineageOS etc.(Warning: the ROM to install must have same kernel version with recovery. Eg. you can't use twrp-4.19 to format then install stock MIUI)

    Stay tuned
    Download/History Archive

    Download
    --

    7
    Report Requirements:
    What NOT to report:
    1. ANYTHING not on this ROM
    2. ANYTHING on non-latest build
    3. ANYTHING if you flashed any of following: [other kernel]/[Magisk]/[modules]/[other thing related to change system behavior], exception could be made if you are a developer of above
    4. ANYTHING you need to know that written on FAQ

    How to report correctly:
    1. Describe how to reproduce
    2. Take a log&dmesg AFTER the issue is triggered FAST then attach them to report
    * For logcat tutorial, check: https://wiki.lineageos.org/how-to/logcat
    * For dmesg tutorial, use following commands on PC:
    adb root
    adb shell dmesg

    You may get ignored for incorrect reporting

    FAQ:
    1. What is 13 / 13 (Plus edition)?
    The 13 (Plus Edition) NOT means it's for pad 4+, It's PE+, the 13、13 (Plus edition) both available for Mi Pad 4/4+. PixelExperience Plus will have more custom features.
    Also, if you are already on normal edition, you can directly dirty flash the same date plus edition or newer plus edition.

    2. Why there is always a {"Press any key to shutdown"/fastboot cmd error(like send size error something else} on PC when I try to do something in bootloader like flashing a recovery/unlocking bootloader?
    Your USB port on your PC, your cable and your device is not matched. Like Mi Pad 4 is USB 2.0 but you connect to a PC with USB 3.X on that(Usually laptop user). Change your usb setup to match it same: PC USB2.0 cable USB2.0. Or you may google for USB3.0 Reg patch for xiaomi(like this:
    ).
    * Of course, I assume you are using latest usb and fastboot driver. If not, do that first.

    3. How to flash certain partition with pe recovery? (like boot, frp, recovery, persist)
    Use following command in bootloader mode
    fastboot flash partition_name partition_name.img
    OR
    In pe recovery:
    Advanced - enable adb
    Then On PC:
    adb push partition_name.img /tmp
    adb shell
    dd if=/tmp/partition_name.img of=/dev/block/bootdevice/by-name/partition_name


    4. Why I lost all my sensor/can't rotate screen after flash/time always go wrong after a while(For NO SIM card)/can't use fingerprint as HOME BUTTON/any other weird issue?
    * First of all, ROM has been tested without those issue from multiple user and myself, if you encountered any, check the info below:

    Clover has a fragile persist partition, sometime it will break and cause these syndrome after a rom flash. It's not only happen when you flash pe, but flash(change) any rom(including flash from LineageOS to MIUI or any combination). To recover, just flash a persist.img backup. However in this stage, if this device has been flashed to a non original backup(means not a backup when this deivce is good) of persist(may not by you but by the one you bought it from, like second handed), it will recover the sensor, but breaks some other function lile RTC timer(resets a wrong time on every RTC sync), real MAC address, HOME BUTTON on fingerprint, ..., so unless you can't find anyway to recover the ORIGINAL one, DON'T flash the back up from others!!!(I did experiment for flashing others' backup, test then flash back to my original one, this is NOT assumption)

    Here are methods to try:
    [ONLY WORK when you or some other not flashed other's backup, again may not done by you but if you got this device from second hand market, the previous men may do it, ONCE persist is done flashing others, no way back as xiaomi did not provide any fix method for clover] Here are the methods:

    Method Recommended: Flash your own persist partition backup(persist.img) is best which is backed up when everything is working then you will be fine, Steps below, if you sure you have done your own backup of persist.img, you can skip to step 2 or you can just go through this whole process to see if it can recover without touching persist manually.

    Step 1. How to if I have no any backup of it?
    First: go pe recovery -> Factory reset -> Format Data this is for flashing back to other ROM.
    Second: try flash the ROM which used to be working, eg. you are from lineageos or miui, then go lineageos or miui, please used the method that required by that ROM(like flash to their twrp or use miflash etc) to flash it back, remember to not boot to the PE but complete this whole process in recovery/fastboot once you have done the "First" section's steps.
    * Somebody told me that full flash back to MIUI 9.6.4 or earlier is an always working method, I never tried
    Third: boot the system and check if everything is back, like the sensor(auto rotation, etc...), if time can be saved after rebooting, etc... If everything is not back, try miflash MIUI 9.6.4 or earlier package and check again.
    Fourth: Now with everything back, do the backup process
    - Root your device
    - On pc with command "adb shell" or directly on the pad install a terminal app
    - Use the backup commands in pc shell or terminal app like below:
    su
    dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img

    - Now you can see there is a persist.img file in your internal storage, pull it to your computer and keep it

    Step 2. Go flash pe again, check if everything breaks again(this may happen, not breaks every time, I have explained above), flash the persist backup use the FAQ#3 command


    ------------Please try previous first before you give up and try the "Destructive" below!!!
    Method Destructive: you can also download from others like from other's persist backup(this will fix the sensor but also will change the real MAC, cause RTC timer incorrect(resets a wrong time on every reboot or every RTC sync) for your device, causing other weird problem) on xda post(like this: https://xdaforums.com/t/rom-13-clov...omi-mi-pad-4-unofficial.4514507/post-88228039), thanks ichigo_kurosaki), for the flashing instruction please check the #3 FAQ above.

    5. How to root with Magisk/Can PE run kernelsu?
    Magisk: rename Magisk.apk to Magisk.zip then sideload it in recovery like the ROM or do it from a sdcard/usb otg in the recovery. Also, patch the boot.img from the ROM package then flash patched boot.img through fastboot or recovery is ok(check FAQ#3)
    Kernel SU: NEVER from me, it's not so good, I don't like it and is banned from PE. By the way if you flashed other kernel for that you will lose the right to report ANYTHING(Check "Report requirements" section).

    ==============================================

    Special notice: Flash the OFFICIAL RECOVERY and CLEAN FLASH if you are from UNOFFICIAL or OTHER SYSTEM please!!!
    Current Update(Both PAD 4/4 Plus):
    PE Normal Edition(13):
    2024.1.26 - Clean flash please
    Device:
    1. kernel: sync with android common kernel f2fs filesystem - CLEAN FLASH
    2. device: enable hardware inlinecrypt process - CLEAN FLASH
    Upstream:
    1. Janurary security patch
    PE Enhanced Edition(13 Plus Edition):
    Dirty flash in rec to manually switch to PE Plus, but backup data in case for any accident!!!
    Everything above included, and:
    1. - N/A

    ==============================================

    History Updates (non-plus):
    2023.2.10 - First release
    1. Introduce PE 13 for Mi Pad 4 (Plus)
    2023.2.12
    Device:
    1. kernel: switched to 4.19
    2. device: add mi settings
    2023.2.18
    Device:
    1. kernel: fixed wake brightness burst
    2. kernel: backported fuse passthrough from kernel 5.4 for better android storage performance
    3. device: fixed camera stuck in 3rd app
    4. device: moved xiaomi settings back in Settings -> System
    5. device: added auto removal for wifi only/no fingerprint models
    6. device: switched to erofs, f2fs, fbeV2+emmc_optimization(MUST use new recovcery and FORMAT DATA)
    7. device: fixed weird power off charging ui
    8. device: fixed SD card format in two modes
    9. device: fixed microphone
    10. device: enabled ZRAM writeback
    2023.2.20
    Device:
    1. device: fixed backlight adjustment on Plus variant
    2. device: fixed usb mode detect on Windows(Mtp or so)
    2023.2.24 - First OFFICIAL build
    Device:
    1. device: fixed real MAC reading
    2. device: fixed charging led won't work on high battery percent
    3. device: fully translated xiaomi settings for CN
    2023.2.27
    Device:
    1. device: fixed brightness driver burst for 8inch. (Plus has no burst issue)
    2. device: fixed device setting can't display by side as tablet mode
    3. kernel: update to 4.19.273
    4. kernel: power optimized
    2023.3.3
    Device:
    1. device: fixed "UNKNOWN SOC TYPE" in some system info type apps (SDA660)
    2. device: fixed cpu freq scheduler always locks max freq by uclamp
    3. device: enabled 60fps recording in camera
    4. device: enabled cgroup freezer
    Upstream:
    1. February security patch
    2. Google Apps updated
    3. Fixed battery drain and lag spike caused by Pixel Launcher (Need to uninstall previous updates of Android System Intelligence or do a clean flash if the issue persists)
    4. Fixed SafetyNet not passing
    2023.3.24/5
    Device:
    1. kernel: update to 4.19.278
    2. kernel: backport 5.10 fuse filesystem
    3. kernel: reduce power consumption for 8 inch screen
    4. device: reduce continuous ui rendering jitter/lag
    2023.4.1
    Device:
    1. device: add "Usb fast charge on usb3.0 port"(500mA - 900mA) in Xiaomi Settings
    2. device: switch to aosp task/cpu management for some critical tasks(util clampimg)
    3. device: audio quality HUGE fix
    4. device: "Mi Pad 4 Plus" will be differred in System info as well as the default dpi
    5. device: lower memory pressure caused by bad Qualcomm legacy io scripting
    6. device: optimize round corner
    7. device: won't show a fingerprint page on first boot setup for 8inch now
    8. device: complete software codec2 support (aosp_sw)
    9. device: use qti-usb@1.3 HAL(full USB config panel like reverse charging/role change)
    10. device: set baseband as "Wi-Fi Only" instead of "Unknown" for wifi variant
    11. device: further improve ui/animation lagging
    12. device: optimize RAM consumption
    13. device: optimize background app caching
    14. device: deprecated sdcardfs and use native Android 11 new filesystem base, which supports better scope storage
    15. device: more balanced irq control
    16. device: other minor fix
    17. kernel: minor optimize
    Upstream:
    1. Fixed something bad in QPR2(0324/5, below is copied from last)
    2. Android 13 Quarterly Platform Release 2 (QPR2 - lots of new ui/behavior changes)
    3. Enabled multi user switcher on lock screen for large screen device(>600dp)
    4. Source rebased with March security patch
    5. Updated GApps
    6. Updated translations
    7. Minor fixes
    2023.4.19
    Device:
    1. kernel: update to 4.19.279
    2. kernel: switch default io scheduler to bfq(reduce cpu consumption/power/lag, also +1500 AnTuTu storage score)
    3. kernel: fixed step-chg/sw-jeita(thermal) for pm660_charger/fg
    4. kernel: fixed otg passive mode issue, need one REBOOT after OTA/sideloading
    5. device: fixed system partition not in erofs(increase boot up speed, system app speed)
    6. device: make setup wizard landscape available
    7. device: enable auto rotate by default
    8. device: separate notification and ringtone volumes
    9. device: fixed charge speed issue for LTE/Plus after hang off a call
    10. device: force recovery update with system
    11. device: irq balance now using 4 big cores (previously only 2 big cores)
    12. device: CloverParts: add volume panel trigger in QS
    13. device: CloverParts: add my battery manage system (Settings -> Battery -> Battery Management System) - Step charger / thermal charger switch
      - Mode: limit battery around 40-60%
      - Mode: limit battery around 80%
    Upstream:
    1. April security patch
    2. Updated translations
    3. Optimizations on battery usage of Pixel Launcher
    4. Minor issues fixed
    2023.5.3
    Device:
    1. kernel: update to 4.19.282
    2. kernel: sdm660 kernel driver update from qcom(wifi/kernel/audio)
    3. kernel: minor fix & optimize
    4. device: expand wifi signal tolerance(reduce disconnect on bad wifi)
    5. device: update display driver for sdm660(gralloc - HAL/display)

    2023.5.7
    Device:
    1. device: allow 5G hotspot(called "Extend compatibility" in settings, reuquires a factory reset if you need it)
    Upstream:
    1. May security patch
    2. Updated translations
    3. Updated Google Apps
    4. Minor issues fixed
    2023.5.19
    Device:
    1. kernel: qcom sdm660 kernel update LA.UM.11.2.1.r1-03900-sdm660.0(kernel main/kgsl/wifi-fw-api)
    2. device: qcom sdm660 driver/HAL update LA.UM.11.2.1.r1-03900-sdm660.0(camera/audio)
    3. device: add fastbootd option in advanced reboot(pe plus only, normal pe has no advanced reboot function)
    4. device: add a switch in battery management system to turn off charging ripple animation
    Upstream:
    1. Minor platform framework fix
    2023.7.14
    Device:
    1. kernel: fix low power mode wrong booting behavior
    2. kernel: fix rmnet_ipa wrong loading behavior
    3. kernel: hotspot: fix hotspot sleep to death
    4. kernel: update Qualcomm snapdragon driver LA.UM.11.2.1.r1-04100-sdm660.0 - wifi/kernel
    5. kernel: tune for optimization
    6. kernel: update 4.19.288
    7. device: add hub mode resources from Pixel Tablet
    8. device: add Pixel Tablet stock wallpapers
    9. device: add translation(RU, IT, ES, JA, EL) for cloverparts
    10. device: correctly updated video/audio codec profile
    11. device: differed 8 inch/10.1inch power profile(battery report value, doesn't matter but let's make it load diffrent for 8/10.1)
    12. device: enable "Hub mode" entry
    13. device: enable user switcher chip
    14. device: fix adoptable storage(format sdcard as internal storage, no data loss after reboot now, but be careful for "PREWARNING" before doing OTA)
    15. device: fix audio feature extension lib loading error(not user sensible)
    16. device: fix IFAA(Mlipay) service, you may use Alipay with fingerprint(maybe, I can't test it), clover doesn't have soter firmware from MIUI modem(non-HLOS).img, so no soter for clover and no Wechat fingerprint payment
    17. device: fix power profile for counting screen, audio, video battery usage
    18. device: fix sim card background service fail and retry, fix ims service error, may fixed some lag, power drop and other sim card related issue
    19. device: fix some unexpected SELinux denial(like qemu.hw.keys prop)
    20. device: fix zram (write back) related kernel/selinux issue
    21. device: hotspot: enable WPA3-Personal, WPA2/WPA3 option on hotspot(need the client not too old, normally just use WPA2 please)
    22. device: hotspot: fix 2.4ghz hotspot doesn't have network on some old devices
    23. device: hotspot: fix 5ghz wifi hotspot without clean flash
    24. device: hotspot: increase wifi hotspot ap client limit to 32
    25. device: implement QCOM WifiDisplay(improve performance, support mouse/keyboard input from remote, support passing audio to remote)
    26. device: improve UI lagging
    27. device: kill keyguard user switcher, enable Bouncer User Switcher
    28. device: make Google Home built in following Pixel Tablet
    29. device: project clean up, remove not needed system libs
    30. device: reset lmk(Low Memory Killer) profile to apply AOSP default new strategy
    31. device: solve 170M HDR type video decoding
    32. device: tune status bar height, match status bar height for keyguard
    33. device: universal wifi config optimization/upgrade
    34. device: update GPU driver(OpenGL 3.2 @a61af92a49 - 2022/5/31, Vulkan 512.502.0 from Android 12 implementation)
    35. device: update gpu firmware to lavender Android Q MIUI 12.5.7
    36. device: update HUGE amount of qualcomm driver/service to Android 12 version(from Honeywell Hon660) and Android 13 version(LA.QSSI13), Can't write it down here, contains too much
    37. device: update Qualcomm snapdragon driver LA.UM.11.2.1.r1-04100-sdm660.0 - audio
    38. device: other minor fix and improvement
    Upstream:
    1. July security patch(Already an update of QPR3 June)
    2. Fixed Google Assistant in landscape
    3. Fixed app drawer icon color on launcher for "light theme"
    4. Added Emoji wallpaper workshop(Update gapps from Play store and wait for a while then you will see)
    5. Some preview UI for Android 14, eg. floating taskbar, new back gesture ui, new charging battery chip in status bar...
    6. Source rebased
    7. Updated gapps and translations
    8. Performance and under the hood improvements
    2023.7.19
    Device:
    1. kernel: fix the HEVC 10bit
    2. kernel: update Qualcomm driver(kernel, audio-kernel) to LA.UM.11.2.1.r1-04200-sdm660.0
    3. kernel: add USB UAS support(you can mount movable harddisk now)
    4. kernel: add bunch of HID device support
    5. kernel: tuning UClamp scheduler values, better performance, power saving
    6. device: update Qualcomm driver(display-commonsys) to LA.UM.11.2.1.r1-04200-sdm660.0
    7. device: add spatial audio support(it's for wired headphone get better effect when playing supported media)
    8. device: optimize the audio system performance
    9. device: dexpreopt optimization(improve apps speed, get smoother), may need clean flash to take effect, clean flash and let it sleep for a while to complete the optimize process
    Upstream:
    1. Minor problem fixed
    2023.8.12/3
    Device:
    1. kernel: update to 4.19.289
    2. device: add spatial audio for speaker
    Upstream:
    1. August Security Patch
    2. Pixel Launcher/ASI drain fixes
    3. Gapps Updated
    4. Minor fixes and improvement
    2023.9.14
    Device:
    1. kernel: upstream 4.19.294
    2. kernel: qualcomm driver update LA.UM.11.2.1.r1-04500-sdm660.0 (audio/kernel/wifi)
    3. kernel: backport and enable Multigen-LRU
    4. kernel: f2fs optimization from MIUI
    5. kernel: arch arm64 optimization
    6. device: qualcomm driver update LA.UM.11.2.1.r1-04500-sdm660.0 (display)
    7. device: optimize uclamp app launch boost
    8. device: optimize uclamp background process restriction
    9. device: add French translation for cloverparts(thanks to pix106)
    10. device: remove redundant zram setup procedure
    Upstream:
    1. Still August patch
    2. Fix SystemUI HAL exception
    3. Updated translations
    4. Minor fix & minor upstream update
    2023.9.26
    Device:
    1. kernel: some lmk tuning
    Upstream:
    1. September security patch
    2023.10.19
    Device:
    1. kernel: update to 4.19.296
    Upstream:
    1. - N/A
    2023.11.23
    Device:
    1. kernel: update to 4.19.297
    2. device: fix selinux security issue
    3. device: switch system/vendor fs from erofs back to ext4
    Upstream:
    1. November security patch
    2. Play integrity fix
    2024.1.26 - Clean flash please
    Device:
    1. kernel: sync with android common kernel f2fs filesystem - CLEAN FLASH
    2. device: enable hardware inlinecrypt process - CLEAN FLASH
    Upstream:
    1. Janurary security patch
    ==============================================

    History Plus Updates:
    2023.2.10 - First release
    1. - N/A
    2023.2.12
    1. - N/A
    2023.2.18
    1. - N/A
    2023.2.20
    1. - N/A
    2023.2.24 - First OFFICIAL build
    1. - N/A
    2023.2.27
    1. - N/A
    2023.3.3
    1. - N/A
    2023.3.24/5
    1. - N/A
    2023.4.1
    1. - N/A
    2023.4.19
    1. - N/A
    2023.5.3
    1. - N/A
    2023.5.7
    1. emergency fix: 0503(PE Plus): headphone jack
    2. emergency fix: 0503(PE Plus): camera video recording
    2023.5.19
    1. - N/A
    2023.7.14
    1. - N/A
    2023.7.19
    1. - N/A
    2023.8.12/3
    1. - N/A
    2023.9.14
    1. - N/A
    2023.9.26
    1. - N/A
    2023.10.19
    1. - N/A
    2023.11.23
    1. - N/A
    2024.1.26
    1. - N/A
    6
    PE source seems DELAYED, I have done a HUGE update but can't publish yet.

    PREWARNING:
    1. If you have formatted a sdcard as internal storage now, pls format to external before next OTA or you will get BOOTLOOP and need clean flash to recover(loop for all data corruption), check #13 below for detail.
    2. As this is a HUGE update, I maybe able to keep your data not corrupt(not force clean flash), but please prepare for factory reset for some funtion fix(Such as Phone, GPS, Adoptablre storage, Tethering...).

    Estimated changelog:
    Device:
    - kernel: fix low power mode wrong booting behavior
    - kernel: fix rmnet_ipa wrong loading behavior
    - kernel: hotspot: fix hotspot sleep to death
    - kernel: update Qualcomm snapdragon driver LA.UM.11.2.1.r1-04100-sdm660.0 - wifi/kernel
    - kernel: tune for optimization
    - kernel: update 4.19.288
    - device: add hub mode resources from Pixel Tablet
    - device: add Pixel Tablet stock wallpapers
    - device: add translation(RU, IT, ES, JA, EL) for cloverparts
    - device: correctly updated video/audio codec profile
    - device: differed 8 inch/10.1inch power profile(battery report value, doesn't matter but let's make it load diffrent for 8/10.1)
    - device: enable "Hub mode" entry
    - device: enable user switcher chip
    - device: fix adoptable storage(format sdcard as internal storage, no data loss after reboot now, but be careful for "PREWARNING" before doing OTA)
    - device: fix audio feature extension lib loading error(not user sensible)
    - device: fix IFAA(Mlipay) service, you may use Alipay with fingerprint(maybe, I can't test it), clover doesn't have soter firmware from MIUI modem(non-HLOS).img, so no soter for clover and no Wechat fingerprint payment
    - device: fix power profile for counting screen, audio, video battery usage
    - device: fix sim card background service fail and retry, fix ims service error, may fixed some lag, power drop and other sim card related issue
    - device: fix some unexpected SELinux denial(like qemu.hw.keys prop)
    - device: fix zram (write back) related kernel/selinux issue
    - device: hotspot: enable WPA3-Personal, WPA2/WPA3 option on hotspot
    - device: hotspot: fix 2.4ghz hotspot doesn't have network on some old devices
    - device: hotspot: fix 5ghz wifi hotspot without clean flash
    - device: hotspot: increase wifi hotspot ap client limit to 32
    - device: implement QCOM WifiDisplay(improve performance, support mouse/keyboard input from remote, support passing audio to remote) - done
    - device: improve UI lagging
    - device: kill keyguard user switcher, enable Bouncer User Switcher
    - device: make Google Home built in following Pixel Tablet
    - device: minor fix and improvement
    - device: project clean up, remove not needed system libs
    - device: reset lmk(Low Memory Killer) profile to apply AOSP default new strategy
    - device: solve 170M HDR type video decoding
    - device: tune status bar height, match status bar height for keyguard
    - device: update GPU driver(OpenGL 3.2 @a61af92a49 - 2022/5/31, Vulkan 512.502.0 from Android 12 implementation)
    - device: update gpu firmware to lavender Android Q MIUI 12.5.7
    - device: update HUGE amount of qualcomm driver/service to Android 12 version(from Honeywell Hon660) and Android 13 version(LA.QSSI13), Can't write it down here, contains too much
    - device: update media(codec) config from Hon660
    - device: update Qualcomm snapdragon driver LA.UM.11.2.1.r1-04100-sdm660.0 - audio
    Upstream:
    - July security patch(Already an update of QPR3 June)
    - Fixed Google Assistant in landscape
    - Fixed drawer icon color on launcher for "light theme"
    - Added Emoji wallpaper workshop(Update gapps from Play store and wait for a while then you will see)
    - Some preview UI for Android 14, eg. floating taskbar, new back gesture ui, new charging battery chip in status bar...
    - Source rebased
    - Updated gapps and translations
    - Performance and under the hood improvements
    5
    taking a break, support suspended(there is a bot attack), also 13 is EOL, see you in fourteen
    5
    5.3 updated, May security patch, improved power, updated multiple sdm660 driver, tuned wifi... etc. Please check #2 for details.