• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][12.0][OnePlus 5/5T] AOSP for OnePlus 5 [02 NOVEMBER 2021][BETA]

Search This thread

robertogl

Senior Member
Sep 18, 2007
1,519
840
Arzignano, 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://forum.xda-developers.com/t/...-19-september-2021-locked-bootloader.4183691/

This is an beta version. Expect issues. As usual, only builds with enforcing SELinux, no root access and 'user Android build flavor' will be posted here.
Known issues

- Mobile data may not work reliably

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.

GApps are not available for Android 12 yet (for what I know).

The provided recovery allows only flashing signed images: use TWRP if you need to flash GApps or different packages.
If you want to keep the TWRP flashed, flash the persist_twrp.zip provided here:
https://sourceforge.net/projects/aosponeplus/files/Misc/
And flash the TWRP image you prefer.
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 2021-11-02
 

Attachments

  • Screenshot_20211005-152728.png
    Screenshot_20211005-152728.png
    127.8 KB · Views: 2,139
  • Screenshot_20211005-152737.png
    Screenshot_20211005-152737.png
    96.4 KB · Views: 2,134
Last edited:

robertogl

Senior Member
Sep 18, 2007
1,519
840
Arzignano, Italy
Changelog
[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,519
840
Arzignano, Italy
Booting with locked bootloader

This ROM can be booted with locked bootloader.

Not supported at the moment.

For more info, refer to the A11 thread (the information are the same):
 
Last edited:
  • Like
Reactions: bigchrizzieboy

robertogl

Senior Member
Sep 18, 2007
1,519
840
Arzignano, 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
273
42
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
40
6
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,519
840
Arzignano, 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
40
6
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,519
840
Arzignano, 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
40
6
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,519
840
Arzignano, Italy
  • Like
Reactions: kitamurt

robertogl

Senior Member
Sep 18, 2007
1,519
840
Arzignano, 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
40
6
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,519
840
Arzignano, 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.
  • 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 :)
    18
    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://forum.xda-developers.com/t/...-19-september-2021-locked-bootloader.4183691/

    This is an beta version. Expect issues. As usual, only builds with enforcing SELinux, no root access and 'user Android build flavor' will be posted here.
    Known issues

    - Mobile data may not work reliably

    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.

    GApps are not available for Android 12 yet (for what I know).

    The provided recovery allows only flashing signed images: use TWRP if you need to flash GApps or different packages.
    If you want to keep the TWRP flashed, flash the persist_twrp.zip provided here:
    https://sourceforge.net/projects/aosponeplus/files/Misc/
    And flash the TWRP image you prefer.
    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 2021-11-02
    5
    New releases:
    cheesburger: aosp12_cheeseburger-ota-user-20211025-beta.zip
    dumpling: aosp12_dumpling-ota-user-20211025-beta.zip


    Changelog:
    • Add f2fs support on /data partition
    3
    New releases:
    cheesburger: aosp12_cheeseburger-ota-user-20211102-beta.zip
    dumpling: aosp12_dumpling-ota-user-20211102-beta.zip


    Changelog:
    • 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
    2
    Changelog
    [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