[ROM][12.1][OnePlus 5/5T] AOSP for OnePlus 5 [07 JULY 2022]

Search This thread

robertogl

Senior Member
Sep 18, 2007
1,810
1,169
Italy
AOSP for OnePlus 5/5T - Android 12
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it!
*/

Most of the information from here can be applied for this ROM.
Introduction

This projects aims to create an upgradable AOSP build system for the Oneplus 5 (Cheeseburger).
No repository from AOSP is changed: no commit over AOSP is at the moment present on the sources for this ROM.

All the changes are provided in separate repositories (HALs, kernel): this allows to upgrade Android with minimal effort, potentially also for future major versions.

Most of the added repositories is provided by LineageOS or CAF, so thanks to them for those repos.

Screenshots are attached.

This ROM is based on the work on Android 11 from here: https://xdaforums.com/t/rom-11-0-on...-19-september-2021-locked-bootloader.4183691/

As usual, only builds with enforcing SELinux, no root access and 'user Android build flavor' will be posted here.

Known issues

- None that I'm aware of.

Changelog

See second post.

Download

Releases can be found on AndroidFileHost.
OnePlus 5 (Cheeseburger): https://androidfilehost.com/?w=files&flid=328726
OnePlus 5T (Dumpling): https://androidfilehost.com/?w=files&flid=328820

Installation

Backup everything.
The provided zip can be installed using the TWRP recovery: clear data while doing that.

The ROM expects the firmware from OOS 10.0.1: different firmwares are not tested.

The provided recovery allows only flashing signed images: use TWRP if you need to flash GApps or different packages.

Sources

Kernel on github: https://github.com/robertoglandroid/kernel_oneplus_msm8998
ROM sources: https://github.com/roberto-sartori-gl/local_manifests/tree/a12/gl

Telegram discussion group here!

XDA:DevDB Information
AOSP for OnePlus 5/5T, ROM for the OnePlus 5/5T

Contributors
robertogl

Thank you to @T1mb3 and @Maitreya29!


ROM OS Version: Android 12
ROM Kernel: Linux 4.x

Version Information
Status:
Beta

Created 2021-10-05
Last Updated 2022-07-07
 

Attachments

  • Screenshot_20211005-152728.png
    Screenshot_20211005-152728.png
    127.8 KB · Views: 4,464
  • Screenshot_20211005-152737.png
    Screenshot_20211005-152737.png
    96.4 KB · Views: 4,458
Last edited:

robertogl

Senior Member
Sep 18, 2007
1,810
1,169
Italy
Changelog

[07/07/2022] aosp12_cheeseburger/dumpling-ota-user-20220707.zip
  • July2022 Security patches (synced with AOSP android-12.1.0_r10)

[08/06/2022] aosp12_cheeseburger/dumpling-ota-user-20220608.zip
  • June 2022 Security patches (synced with AOSP android-12.1.0_r8)
[21/05/2022] aosp12_cheeseburger/dumpling-ota-user-20220521.zip
  • Support f2fs formatted /cache partition
  • Synced with Lineage 19.1 sources
  • Minor fixes
  • Code cleanup
[15/05/2022] aosp12_cheeseburger/dumpling-ota-user-20220515.zip
  • Add option to apply OTA updates from SettingsExtra
    • 4 files can be installed:
      • the ROM OTA - put the zip in /sdcard/update.zip
      • magisk - put the zip in /sdcard/magisk.zip
      • gapps - put the zip in /sdcard/gapps.zip
      • decryption zip - put the zip in /sdcard/decrypt.zip
    • The device will reboot automatically in recovery and apply the updates. Only TWRP can install magisk, gapps or the decryption zip.
  • Fix crash of the Settings app while configuring fingerprint or PIN lock (during the first setup, or from the Settings page)
  • Add possibility to enable location indicator in the Development Options
    • Location indicator is disabled for the Phone Services
[03/05/2022] aosp12_cheeseburger/dumpling-ota-user-20220503.zip
  • May 2022 Security patches (synced with AOSP android-12.1.0_r5)
  • Fix issue with Led Manager (SettingsExtra)

[04/04/2022] aosp12_cheeseburger/dumpling-ota-user-20220404.zip
  • April 2022 Security patches (synced with AOSP android-12.1.0_r4)
  • Fix slow unlock when fingerprint is used
[13/03/2022] aosp12_dumpling-ota-user-20220313.zip
  • Fix Settings app crash when opening fingerprint settings
[08/03/2022] aosp12_cheeseburger/dumpling-ota-user-20220308.zip
  • Android 12L
  • March 2022 Security patches (synced with AOSP android-12.1.0_r1)
  • Fix time and date not persisted after a reboot/factory reset
  • Fix vibration level setting on SettingsExtra
[01/03/2022] aosp12_cheeseburger/dumpling-ota-user-20220301.zip
  • Sync with Lineage 19 source
  • Fix issue with sim2 (data works also on sim2 now)
  • Fix Pocket Mode
  • Fix 'issue' that was causing some apps to detect root without Magisk
[08/02/2022] aosp12_cheeseburger/dumpling-ota-user-20220208.zip
  • February 2022 Security patches (synced with AOSP android-12.0.0_r29)
  • Fix Jio issues with VoLTE calls
[04/01/2022] aosp12_cheeseburger/dumpling-ota-user-20220104.zip
  • January 2022 Security patches (synced with AOSP android-12.0.0_r26)
  • Fix alarms not working with default Clock app
[07/12/2021] aosp12_cheeseburger/dumpling-ota-user-20211207-beta.zip
  • December Security patches (synced with AOSP android-12.0.0_r16)
[02/11/2021] aosp12_cheeseburger/dumpling-ota-user-20211102-beta.zip
  • November Security patches (synced with AOSP android-12.0.0_r13)
  • Add separate wifi and cellular data quick settings tiles (as Android 11)
    • Unified Android 12 tile is still present
[25/10/2021] aosp12_cheeseburger/dumpling-ota-user-20211025-beta.zip
  • Add f2fs support on /data partition
[20/10/2021] aosp12_cheeseburger/dumpling-ota-user-20211020-experimental.zip
  • Add support for OnePlus 5T (Dumpling)
  • Fix data on SIM1 (SIM2 is not working for data in this release)
  • Enable switch for default mobile data between SIM1 and SIM2 directly in the Android Settings (removed tile: less code to mantain)
  • Grant permissions to Play Store (and some Google apps) automatically - allow to setup the device and restore a backup at first boot
  • Fix TWRP not booting after flashing Android 12
  • Now recovery is not updated/overwritten anymore (no need for the persist_twrp mod or anything - installed recovery is persisted)
  • Vibration and alarm icons are back in the status bar
[09/10/2021] aosp12_cheeseburger-ota-user-20211009.zip
  • Fix encryption - Now File Based Encryption is enabled by default
  • Fix SIM1 sometimes not being recognized at boot
  • Fix an issue that caused Android to being stuck at boot sometimes (e.g. after flashing it the first time)
  • Add 'SIM Data Switch' tile to allow switching the default SIM used for mobile data
[06/10/2021] aosp12_cheeseburger-ota-user-20211006-alpha.zip
  • First release: October 2021 Security Patch (synced with AOSP android-12.0.0_2)
  • Only known issue is encryption not working
 
Last edited:

robertogl

Senior Member
Sep 18, 2007
1,810
1,169
Italy
New release: aosp12_cheeseburger-ota-user-20211009.zip

Changelog:
  • Fix encryption - Now File Based Encryption is enabled by default
  • Fix SIM1 sometimes not being recognized at boot
  • Fix an issue that caused Android to being stuck at boot sometimes (e.g. after flashing it the first time)
  • Add 'SIM Data Switch' tile to allow switching the default SIM used for mobile data
So, this release fixes encryption: I only plan to support builds with encryption enabled, so if you flashed the first A12 release (without encryption), you'll need to format /data or disable encryption somehow (I don't provide support for this, sorry, but there should be some flashable zips).
This is the last time that formatting /data will be require, I promise!

This also means that if you have my A11 ROM (linked in the first post) you can actually update to A12 without losing any data (app included). But this is still a beta release, so at your risk! :)
 

Phantom Thief

Senior Member
Apr 24, 2017
331
54
OnePlus 6T
Roms works fine for the most part. I'm not sure if i'm even supposed to test different browsers but chrome and kiwi browser end up crashing when downloading heavy files (> 100Mb)
 

kitamurt

Member
Jun 22, 2019
47
9
hello, there's some problem with the rom and the phone. i accidentaly rebooted in recovery and it stays stuck on logo screen and wont go over, also force rebooting it will always go into twrp and wont boot anyway. tried also to update to lastest recovery verison, but result it'S also the same. any solution or fix for this? p.s.: at the first flash, the rom booted fine.
 

robertogl

Senior Member
Sep 18, 2007
1,810
1,169
Italy
hello, there's some problem with the rom and the phone. i accidentaly rebooted in recovery and it stays stuck on logo screen and wont go over, also force rebooting it will always go into twrp and wont boot anyway. tried also to update to lastest recovery verison, but result it'S also the same. any solution or fix for this? p.s.: at the first flash, the rom booted fine.
What logo? Android animation, oneplus logo, or Android recovery logo?
work on device decrypted and twrp?
The ROM only supports encrypted /data, but there should be some zip on XDA to manage decryption (I never tested that though).
 
  • Like
Reactions: kitamurt

kitamurt

Member
Jun 22, 2019
47
9
What logo? Android animation, oneplus logo, or Android recovery logo?

The ROM only supports encrypted /data, but there should be some zip on XDA to manage decryption (I never tested that though).
it stays stuck on twrp logo, but i can go to fastboot mode also and reboot, but the system wont boot anyway. it will only boot automatically into twrp, but i cant make anything since it stays stuck on twrp logo. i followed the steps above, bootlaoder already unlocked, formatted data, then flashed rom and gapps, eventually rebooted.
 

robertogl

Senior Member
Sep 18, 2007
1,810
1,169
Italy
it stays stuck on twrp logo, but i can go to fastboot mode also and reboot, but the system wont boot anyway. it will only boot automatically into twrp, but i cant make anything since it stays stuck on twrp logo. i followed the steps above, bootlaoder already unlocked, formatted data, then flashed rom and gapps, eventually rebooted.
What TWRP are you using? TWRP should boot as it should not depend on the OS.
 

kitamurt

Member
Jun 22, 2019
47
9
What TWRP are you using? TWRP should boot as it should not depend on the OS.
i'm using the official twrp downloaded from the website, version 3.5.2. what doesn't add up is the reason why the recovery boots and stays stuck on the logo. so it's really weird. i also tried to boot the twrp from adb, giving the command "fastboot boot twrp.img", but the result it's the same.
 

robertogl

Senior Member
Sep 18, 2007
1,810
1,169
Italy
  • Like
Reactions: kitamurt

robertogl

Senior Member
Sep 18, 2007
1,810
1,169
Italy
that worked, thx. but seems that the "signed twrp" can't recognize encrypted data, indeed when asking for pattern/pin, even entering it correctly, will say that isn't recognized and therefore data is not recognized. so normal twrp can't be used for flash this kind of rom and gapps?
For sure current TWRP cannot decrypt data as they need to be updated to support A12.
But at least you can flash/format things now.
I'm not sure why your TWRP didn't work, the signature should not be important (I shared that because it was already uploaded).
 
  • Like
Reactions: kitamurt

kitamurt

Member
Jun 22, 2019
47
9
well, thanks for the advice! that said, the bugs i've encountered so far are:
-wifi very buggy, it disconnects after a while and the signal it's very poor, after it's disconnected it can't reconnect to any network. this is solved by rebooting the device
-random crash of systemui, especially when pressing the settings button
-twrp 3.5.2 not booting after flash the rom, only the signed_twrp will work (but not decrypt data) and allow to flash other things
 

robertogl

Senior Member
Sep 18, 2007
1,810
1,169
Italy
well, thanks for the advice! that said, the bugs i've encountered so far are:
-wifi very buggy, it disconnects after a while and the signal it's very poor, after it's disconnected it can't reconnect to any network. this is solved by rebooting the device
-random crash of systemui, especially when pressing the settings button
-twrp 3.5.2 not booting after flash the rom, only the signed_twrp will work (but not decrypt data) and allow to flash other things
- The networking is a bit broken apparently, I already had different report of this. We are working on fixing this.
- This happens when you open the settings button from the Quick Settings view, right? It is broken also on A11, it should work only if you have a PIN/fingerprint configured (for some reason).
- TWRP will need to be updated to support A12 encrypted, yes :)

Of course, thanks for reporting these issues! Always appreciated, as I cannot test everything by myself :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    AOSP for OnePlus 5/5T - Android 12
    Code:
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it!
    */

    Most of the information from here can be applied for this ROM.
    Introduction

    This projects aims to create an upgradable AOSP build system for the Oneplus 5 (Cheeseburger).
    No repository from AOSP is changed: no commit over AOSP is at the moment present on the sources for this ROM.

    All the changes are provided in separate repositories (HALs, kernel): this allows to upgrade Android with minimal effort, potentially also for future major versions.

    Most of the added repositories is provided by LineageOS or CAF, so thanks to them for those repos.

    Screenshots are attached.

    This ROM is based on the work on Android 11 from here: https://xdaforums.com/t/rom-11-0-on...-19-september-2021-locked-bootloader.4183691/

    As usual, only builds with enforcing SELinux, no root access and 'user Android build flavor' will be posted here.

    Known issues

    - None that I'm aware of.

    Changelog

    See second post.

    Download

    Releases can be found on AndroidFileHost.
    OnePlus 5 (Cheeseburger): https://androidfilehost.com/?w=files&flid=328726
    OnePlus 5T (Dumpling): https://androidfilehost.com/?w=files&flid=328820

    Installation

    Backup everything.
    The provided zip can be installed using the TWRP recovery: clear data while doing that.

    The ROM expects the firmware from OOS 10.0.1: different firmwares are not tested.

    The provided recovery allows only flashing signed images: use TWRP if you need to flash GApps or different packages.

    Sources

    Kernel on github: https://github.com/robertoglandroid/kernel_oneplus_msm8998
    ROM sources: https://github.com/roberto-sartori-gl/local_manifests/tree/a12/gl

    Telegram discussion group here!

    XDA:DevDB Information
    AOSP for OnePlus 5/5T, ROM for the OnePlus 5/5T

    Contributors
    robertogl

    Thank you to @T1mb3 and @Maitreya29!


    ROM OS Version: Android 12
    ROM Kernel: Linux 4.x

    Version Information
    Status:
    Beta

    Created 2021-10-05
    Last Updated 2022-07-07
    20
    New releases:
    cheesburger: aosp12_cheeseburger-ota-user-20211020-experimental.zip
    dumpling: aosp12_dumpling-ota-user-20211020-experimental.zip


    Changelog:
    • Add support for OnePlus 5T (Dumpling)
    • Fix data on SIM1 (SIM2 is not working for data in this release)
    • Enable switch for default mobile data between SIM1 and SIM2 directly in the Android Settings (removed tile: less code to mantain)
    • Grant permissions to Play Store (and some Google apps) automatically - allow to setup the device and restore a backup at first boot
    • Fix TWRP not booting after flashing Android 12
    • Now recovery is not updated/overwritten anymore (no need for the persist_twrp mod or anything - installed recovery is persisted)
    • Vibration and alarm icons are back in the status bar
    So, this is the first release with Dumpling support. You can find the updated download links in the first page.
    Expect issues in particular on Dumpling, as I don't own the device :)
    6
    New releases:
    cheesburger: aosp12_cheeseburger-ota-user-20220707.zip
    dumpling: aosp12_dumpling-ota-user-20220707.zip

    Changelog:
    • July 2022 Security patches (synced with AOSP android-12.1.0_r10)
    5
    Changelog

    [07/07/2022] aosp12_cheeseburger/dumpling-ota-user-20220707.zip
    • July2022 Security patches (synced with AOSP android-12.1.0_r10)

    [08/06/2022] aosp12_cheeseburger/dumpling-ota-user-20220608.zip
    • June 2022 Security patches (synced with AOSP android-12.1.0_r8)
    [21/05/2022] aosp12_cheeseburger/dumpling-ota-user-20220521.zip
    • Support f2fs formatted /cache partition
    • Synced with Lineage 19.1 sources
    • Minor fixes
    • Code cleanup
    [15/05/2022] aosp12_cheeseburger/dumpling-ota-user-20220515.zip
    • Add option to apply OTA updates from SettingsExtra
      • 4 files can be installed:
        • the ROM OTA - put the zip in /sdcard/update.zip
        • magisk - put the zip in /sdcard/magisk.zip
        • gapps - put the zip in /sdcard/gapps.zip
        • decryption zip - put the zip in /sdcard/decrypt.zip
      • The device will reboot automatically in recovery and apply the updates. Only TWRP can install magisk, gapps or the decryption zip.
    • Fix crash of the Settings app while configuring fingerprint or PIN lock (during the first setup, or from the Settings page)
    • Add possibility to enable location indicator in the Development Options
      • Location indicator is disabled for the Phone Services
    [03/05/2022] aosp12_cheeseburger/dumpling-ota-user-20220503.zip
    • May 2022 Security patches (synced with AOSP android-12.1.0_r5)
    • Fix issue with Led Manager (SettingsExtra)

    [04/04/2022] aosp12_cheeseburger/dumpling-ota-user-20220404.zip
    • April 2022 Security patches (synced with AOSP android-12.1.0_r4)
    • Fix slow unlock when fingerprint is used
    [13/03/2022] aosp12_dumpling-ota-user-20220313.zip
    • Fix Settings app crash when opening fingerprint settings
    [08/03/2022] aosp12_cheeseburger/dumpling-ota-user-20220308.zip
    • Android 12L
    • March 2022 Security patches (synced with AOSP android-12.1.0_r1)
    • Fix time and date not persisted after a reboot/factory reset
    • Fix vibration level setting on SettingsExtra
    [01/03/2022] aosp12_cheeseburger/dumpling-ota-user-20220301.zip
    • Sync with Lineage 19 source
    • Fix issue with sim2 (data works also on sim2 now)
    • Fix Pocket Mode
    • Fix 'issue' that was causing some apps to detect root without Magisk
    [08/02/2022] aosp12_cheeseburger/dumpling-ota-user-20220208.zip
    • February 2022 Security patches (synced with AOSP android-12.0.0_r29)
    • Fix Jio issues with VoLTE calls
    [04/01/2022] aosp12_cheeseburger/dumpling-ota-user-20220104.zip
    • January 2022 Security patches (synced with AOSP android-12.0.0_r26)
    • Fix alarms not working with default Clock app
    [07/12/2021] aosp12_cheeseburger/dumpling-ota-user-20211207-beta.zip
    • December Security patches (synced with AOSP android-12.0.0_r16)
    [02/11/2021] aosp12_cheeseburger/dumpling-ota-user-20211102-beta.zip
    • November Security patches (synced with AOSP android-12.0.0_r13)
    • Add separate wifi and cellular data quick settings tiles (as Android 11)
      • Unified Android 12 tile is still present
    [25/10/2021] aosp12_cheeseburger/dumpling-ota-user-20211025-beta.zip
    • Add f2fs support on /data partition
    [20/10/2021] aosp12_cheeseburger/dumpling-ota-user-20211020-experimental.zip
    • Add support for OnePlus 5T (Dumpling)
    • Fix data on SIM1 (SIM2 is not working for data in this release)
    • Enable switch for default mobile data between SIM1 and SIM2 directly in the Android Settings (removed tile: less code to mantain)
    • Grant permissions to Play Store (and some Google apps) automatically - allow to setup the device and restore a backup at first boot
    • Fix TWRP not booting after flashing Android 12
    • Now recovery is not updated/overwritten anymore (no need for the persist_twrp mod or anything - installed recovery is persisted)
    • Vibration and alarm icons are back in the status bar
    [09/10/2021] aosp12_cheeseburger-ota-user-20211009.zip
    • Fix encryption - Now File Based Encryption is enabled by default
    • Fix SIM1 sometimes not being recognized at boot
    • Fix an issue that caused Android to being stuck at boot sometimes (e.g. after flashing it the first time)
    • Add 'SIM Data Switch' tile to allow switching the default SIM used for mobile data
    [06/10/2021] aosp12_cheeseburger-ota-user-20211006-alpha.zip
    • First release: October 2021 Security Patch (synced with AOSP android-12.0.0_2)
    • Only known issue is encryption not working
    5
    New releases:
    cheesburger: aosp12_cheeseburger-ota-user-20220308.zip
    dumpling: aosp12_dumpling-ota-user-20220308.zip

    Changelog:
    • Android 12L
    • March 2022 Security patches (synced with AOSP android-12.1.0_r1)
    • Fix time and date not persisted after a reboot/factory reset
    • Fix vibration level setting on SettingsExtra