Skip to content

Instantly share code, notes, and snippets.

@argraur
Created March 12, 2021 18:53
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save argraur/93cce1c96d377d7eae9b6b45d3fc9c2b to your computer and use it in GitHub Desktop.
Save argraur/93cce1c96d377d7eae9b6b45d3fc9c2b to your computer and use it in GitHub Desktop.
PixelROM March Update
Changelog:
- Updated AOSP to version 11.0.0 r32 (RQ2A.210305.006)
- Updated Google Mobile Services stack to RQ2A.210305.006 of redfin
- Mask device as Pixel 5 (redfin)
- Inlined UICC NFC configs with crosshatch (dipper & polaris)
- Added Extreme Battery Saver support
- Added display low-power mode support
- Unified brightness configurations for all devices*
- Updated kernel-headers from crosshatch
- Built sound trigger HAL and graphite-client from source
- Built HotwordEnrollment from source, fixed Ok Google/Hey Google detection
- Removed CarrierConfig in favor of Google's CarrierSettings
- Built cnss-daemon from source to fix old lib dependency
- Added Google Wi-Fi overlay
- Switched to Pixel's original power-libperfmgr HAL
- Switched to crosshatch power init script
- Updated powerhint from crosshatch
- Fixed SettingsGoogle overlays
- Introduced metadata encryption**
- Fixed Google Play system updates
- Added AOSP recovery flash on boot
- Switched to AOSP Wi-Fi HAL
- Added missing CPU cores configuration from Pixel
- Added missing blkio configuration from Pixel
- Added missing UFS configuration from Pixel
- Added missing sched_boost disabling from Pixel
- Updated keymaster from 3.0 to 4.0 (dipper & polaris)
- Vendor is compatible with Android S xiaomi_sdm845 system image (coming soon)
* (for beryllium and polaris) If the kernel that you want to use doesn't have these commits:
- https://gitlab.com/pixelrom/kernel/msm-dipper/-/commit/3c38423b9ebd67cc82a5da372b268ed696c5ac25
- https://gitlab.com/pixelrom/kernel/msm-dipper/-/commit/4349afdf2ff89143ea73abb74f2234422b7d9f97
- https://gitlab.com/pixelrom/kernel/msm-dipper/-/commit/ff5e1d0246eefd7ac3152ca725b00793142c29c0
- https://gitlab.com/pixelrom/kernel/msm-dipper/-/commit/8bf0916e4bfea0d5c002df4252199c396477b87f
Brightness will behave weirdly on PixelROM.
** Requires this kernel commit: https://gitlab.com/pixelrom/kernel/msm-dipper/-/commit/c883fd2adc40618725278e2cdd83f2a537cf76dd
Installation (RECOMMENDED, AOSP Recovery):
This installation will also make your device eligible for incremental updates.
- Flash AOSP recovery for your device via fastboot:
fastboot flash recovery recovery.img
fastboot boot recovery.img
- When you see "No command" screen:
1. Hold power button for 1 second
2. Press volume up button
3. You should see recovery menu now.
- Using volume buttons choose "Wipe data or factory reset" (THIS WILL DESTROY ALL YOUR DATA ON DEVICE!) and confirm using power button. Factory data reset IS REQUIRED.
- Choose "Apply update from ADB" and use following command from PC:
adb sideload filename.zip (replace filename.zip with zip path)
OR copy ROM zip to USB flash drive, connect to device via OTG, choose "Apply update from sdcard" and choose update file using volume buttons and confirm using power button.
- Make sure it says "script succeeded"
- Choose reboot system now.
Installation (UNRECOMMENDED & UNTESTED, TWRP Recovery):
- Format data partition as F2FS (ext4 won't work at all)
- Format cache partition as F2FS
- Format cust partition as ext4
- Flash ROM zip
- Mount /vendor
- Open file manager
- Go to vendor
- Choose recovery-from-boot.p
- Delete (to prevent system from flashing AOSP recovery)
- Reboot
Incremental Updates
Incremental updates are small updates (up to 100-150 MB) that just patch existing system instead of reflashing it fully.
Incremental updates require UNMODIFIED system (it check system and vendor hashes during flash) or it'll fail.
How to know if zip is incremental update: it has small size and has -incremental- in name
I will provide incremental AND full updates from this point on.
How to flash incremental updates
- Reboot to recovery (it should be AOSP recovery)
- Hold power button for 1 second and press volume up button
- Apply update either from ADB:
adb sideload filename-incremental.zip
- Or apply update from sdcard (USB OTG)
- Choose reboot system now
Build number
All builds now have a consecutive build number.
To check your current build number, open Settings, About phone, Android version see -ab<number> appendix in kernel version, that number is the build number.
This will be useful for determining if you can flash incremental update over your current build
Kernel source
In order to comply the GPL License, common kernel source for Xiaomi sdm845 is now publicly available at: https://gitlab.com/PixelROM/kernel/msm-dipper
Build info:
Kernel: 4.9.260-Disrupt-Mona
SELinux status: Enforcing
SafetyNet status: PASS
Build number: RQ2A.210305.006
Security patch level: March 5, 2021
Available Play system updates patch: March 1, 2021
dipper
Full update: https://drive.google.com/uc?id=1xY0MUeH4AiFvdl6m1fmCIWiyMTXfo_y0&export=download
Recovery: https://drive.google.com/uc?id=1hkrTO5KgXhfScUhqVWP9i-w9O9HcuLg7&export=download
polaris
Full update: https://drive.google.com/uc?id=1WPbg5gMXnyRCVwOh3GUh3WfnLn26TNCj&export=download
Recovery: https://drive.google.com/uc?id=1Y3CZfXiw1oe0Pdkb0qe83cCYszQE_fdI&export=download
beryllium
Full update: https://drive.google.com/uc?id=1HSJ5UUy7LjQ4_fm756o-hLRued15X94b&export=download
Recovery: https://drive.google.com/uc?id=1fH0fA4yhCjC-dnv_COmULPf1uqslKWts&export=download
Please consider donating for sustainable support and access to internal builds at https://www.patreon.com/argraur or a one-time donation at paypal.me/arsgraur if you liked my work! Thanks for your support!
@yashu0
Copy link

yashu0 commented Mar 13, 2021

Download?

@naneepatel
Copy link

Nice

@MDnoyon123
Copy link

Please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment