[ROM][11.0][OnePlus 5] AOSP for OnePlus 5 [06 OCTOBER 2021][Locked bootloader]

Search This thread

robertogl

Senior Member
Sep 18, 2007
1,644
1,026
Arzignano, Italy
AOSP for OnePlus 5
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!
*/
This ROM boots also with a locked bootloader.
See second post to get more information.
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.
Known issues

See Third post.

Changelog

See third post.

Download

Releases can be found on AndroidFileHost: here
Old releases on SourceForge: here
Installation

Backup everything and remove PIN protection before installing this ROM.
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 can be found here:
https://sourceforge.net/projects/nikgapps/files/Releases/NikGapps-R/30-Jan-2021/

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 (if you have a locked bootloader, follow the steps in the second post).
Sources

Manifest on github: https://github.com/robertoglandroid/local_manifests
Kernel on github: https://github.com/robertoglandroid/kernel_oneplus_msm8998

Telegram discussion group here!

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

Contributors
robertogl
Source Code: https://github.com/robertoglandroid/local_manifests

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

Version Information
Status:
Stable

Created 2020-10-29
Last Updated 2021-10-06
 
Last edited:

robertogl

Senior Member
Sep 18, 2007
1,644
1,026
Arzignano, Italy
Boot with locked bootloader
Following the next points, you will be able to boot this ROM with the locked bootloader on OnePlus 5. This will grant the security of your own data, as no one will be able to flash any new image without first deleting everything from the data partition: this is because unlocking the bootloader again requires to format the data partition.
If the data are encrypted (if you are using a PIN or the fingerprint to unlock your device), your data are safe.
Also, no more wait time or 'you have unlocked the bootloader' screen at boot :)
Be aware that in this 'beta' version, I'm still using AOSP keys, that are actually publicly available.

ATTENTION: ALL THE DATA ON THE DEVICE WILL BE LOST FOLLOWING THIS PROCEDURE
The following link contains different useful files:
https://androidfilehost.com/?w=files&flid=320711
  • a signed twrp image: signed_twrp.zip Thanks @codeworkx for the actual TWRP recovery!
  • a signed boot image with Magisk preinstalled: signed_magisk_boot_[date].img
  • a 'persist twrp' recovery zip: persist_twrp.zip
  1. Download the signed TWRP image signed_twrp.zip
  2. Enter in fastboot mode. There are two ways, select the one you prefer:
    1. from adb, run the command 'adb reboot bootloader'
    2. or power on the device pressing the power up button and the power button at the same time
  3. Run the following command to flash the signed recovery:
    1. fastboot flash recovery signed_twrp.img
  4. Using the volume buttons, select 'RECOVERY' and using the power button boot into recovery.
  5. This TWRP version does not support decrypting data if a numeric PIN is used, but this is not an issue. If asked for a PIN, just 'cancel' the dialog to get into the TWRP main screen.
  6. From adb, push the OTA file and the GAPPS file:
    1. adb push aosp_cheeseburger-ota-user-20201121.zip /data/update.zip
    2. adb push FlameGApps-11.0-basic-arm64-20201024-ALPHA-10.zip /data/gapps.zip
      (any gapps package should work, but I've only tested this)
    3. adb push signed_magisk_boot_[date].img /data/magisk.img (only if you need Magisk)
    4. adb push persist_twrp.zip /data/persist_twrp.zip (only if you want to persist the TWRP recovery after boot)
  7. From the TWRP interface, select 'Install' and flash first the 'update.zip' file and secondly the 'gapps.zip' file.
  8. If you want to persist the TWRP recovery, flash also the 'persist_twrp.zip' file.
  9. If you need magisk, from the TWRP interface select 'Install Image' and install also the magisk.img file in the boot partition.
  10. From the TWRP interface, reboot into fastboot (bootloader) mode again.
  11. Run the command (ATTENTION: ALL THE DATA ON THE DEVICE WILL BE DELETED):
    1. fastboot oem lock
  12. Confirm the lock operation on the device's screen.
  13. After the reboot, the device will probably boot again into the TWRP recovery: in this case, clear all the data from /data and restart the device (Wipe -> Format Data). Android will boot with the locked bootloader.
Important note: the device will now boot only signed image. DO NOT change boot.img without first check if it is signed. The images provided in this thread all are signed using AOSP keys.
If you are using Magisk, DO NOT UPDATE MAGISK after this installation. You can only update the Magisk Manager. At first boot, open the Magisk Manager and follow the instructions on screen.

If you don't flash the persist_twrp.zip archive, Android will replace the recovery at every boot with the stock signed recovery*. This stock recovery only flashes signed images (the OTAs from this thread are all signed), so if you need the TWRP, you have to use ADB sideload to flash the signed TWRP.
I've uploaded here a signed zip that can flash the signed TWRP while using the locked bootloader:
https://androidfilehost.com/?w=files&flid=320711
(signed_twrp.zip)
  1. enter into recovery (with the physical buttons or with 'adb reboot recovery')
  2. Press and hold the Power button. While holding the Power button press the Volume Up button then release the Volume Up button then the Power button to get into the Recovery UI
  3. select 'apply update from ADB'
  4. connect the phone and the pc, and from the pc run:
    1. adb sideload twrp_signed.zip
  5. reboot the phone selecting the 'reboot system now' from the recovery. Immediately after confirming the reboot, press the volume up button and keep it pressed until the boot mode is requested: select 'Recovery mode' and the phone will boot into the signed TWRP recovery. If the phone does not reboot, press the power button and after one second press the volume button keeping both buttons pressed until the device boots again.
Remember that, if you boot Android, you will lose the TWRP again.

How to update via TWRP

TWRP cannot decrypt the data partition using this ROM if you are using a PIN (it works fine using a pattern, for example).
To update the ROM:
- enter into TWRP recovery
- push the .zip update via adb:
$ adb push update.zip /data/
- from the TWRP recovery, select 'Install' e select the zip as /data/update.zip

If you need the TWRP recovery to be persisted, flash also the persis_twrp.zip archive again.
If you have a locked bootloader and you are using Magisk, flash the boot image with Magisk preinstalled again.

Notification LED control (BETA)
The ROM has an integrated Led Manager. It can be enabled from the SettingsExtra preinstalled app.
When enabled, the Android LED API will not work anymore: the colors
indicated in any application will not work: the only way to turn on the
LED is to use SettingsExtra.
Note that no error will be generated when a third party will try to turn
on the LED: the LED will simply not work.

The Led colors, blinking effect and filters are configurable, but there is no UI available.
The configuration can be injected using a text file, for example:

Code:
com.example.myapplication,,00FFFF,
com.example.myapplication,display,FFFF00,blink,500,5000
com.example.myapplication,test,0000FF,blink,500,500
android,debugging,FF00FF,blink,500,5000

The file should contains only lines with that structure, it should be named SettingsExtraLedConfiguration.conf, and it should be push as:
adb push SettingsExtraLedConfiguration.conf /sdcard/

You can also generate the file directly on the phone, but it could be a bit difficult as the file needs to be formatted correctly.

The rules are:
- colors are in hexadecimal, and they can be generated here (any website will work fine): https://htmlcolorcodes.com/
- the structure of every line is:
application package name, string, color, blink?, milliseconds ON, milliseconds OFF

where:
- application package name: the application package name, for example com.whatsapp for Whatsapp or com.android.settings for the Android Settings. You can use simple 'android' for the SystemUI notification (for example for the USB debugging notification)
- string: a word or a phrase to match the title of the notification. For example, setting as application package name 'com.whatsapp' and as string 'Name Surnane', this rules will only apply to notifications including the text 'Name Surname' in the notification title. Useful to filter for particular contact, for example. It is case insensitive. Leave this field empty to assign the same color to all the notifications from the indicated application.
- color: the hexadecimal color of the led
- bling: use the work 'blink' if you want the led to blink. Leave this empty, and not include the milliseconds parameters if you want the led to be always on
- milliseconds ON: integer value to indicate how much the led should stay on
- milliseconds OFF: integer value to indicate how much the led should stay off

The led is hardcoded to be yellow while the phone is charging and green when the phone is charging but with 100% battery.
The priorities are:
- the charging led colors have the lowest priority -> if a notification with a color is present, the charging status will not be shown
- if multiple notifications are present, the latest notification color is shown
- when one notification goes away, the color of the latest notification appeared will be shown
- the rule with a string indicated has priority over a rule for the same app but without matching string.

When the Led Manager is enabled from SettingsExtra, it is already working but I suggest a reboot so that the application can get all the notifications from the boot.
When the configuration file is updated, restart the manager from SettingsExtra (turn the LED manager option off and on again) or reboot the phone to load the new rules.

*as clarification, with 'stock recovery' the stock recovery from this ROM is intendend (not the Oxygen OS recovery).
 
Last edited:
  • Like
Reactions: Malroth and itsy

robertogl

Senior Member
Sep 18, 2007
1,644
1,026
Arzignano, Italy
Future plans

- Bug fixing. Known problems reported by users:
  • unable to go to setting from notification panel when lockscreen is disabled
  • unable to make/receive video call from dailer (call get disconnet) - voip calls (whatsapp, telegram, zoom) work fine
- New features to add:
  • face unlock
  • Different ringtones for the two sims
  • hide battery icon on status bar

Already fixed issues/added features

  • 'find out what music is playing near you' Pixel feature is not working OnePlus 5 is not supported (OnePlus' blobs)
  • Gestures does not work correctly They are not supported by AOSP
  • wifi bridge Validated with OS release 20210225
  • gaming mode Added in SettingsExtra with OS release 20210210
  • vowifi is not working Fixed with OS release 20210123
  • advanced power menu Added in SettingsExtra with OS release 20210110
  • couldn't restore data from cloud (tried with alpha and beta flameGApps) Gapps issues (solved with NikGapps from december 31, 2020)
  • Auto brightness tile Added with OS release 20201227
  • volte/vowifi icon missing in status bar Fixed with OS release 20201225
  • No bluetooth battery level icon on status bar Fixed with OS release 20201205
  • I could not set up my work profile for my office application (Intune Company Portal Microsoft) - Should be fixed with OS release 20201205, waiting feedback
  • Call recording Done with OS release 20201205
  • Double tap to wake is not working with Always On Display mode enabled Fixed with OS release 20201128
  • USB Preferences are greyed out when launched from notification bar, but works for developer options Fixed with OS release 20201125
  • The menu on the display color gamut selection in the Settings Extra app overlaps with the menu title Fixed with OS release 20201125
  • This must be a Gapps issue, but could not restore my old backup from cloud Fixed with OS release 20201125
  • nfc tile is greyed out Fixed with OS release 20201125
  • Android auto is not working Fixed with gapps 'NikGapps-basic-arm64-11-20201122-signed.zip'
  • Cannot sign in chrome by default. First you need to go to settings and give it all the permissions it needs. Same for few other apps. Solved using different Gapps, for example the Nick Gapps (Thanks @SunitTalwar)
  • system navigation option in both accessibility and system/gestures Google decided this way :)
  • Update blobs from OOS 10.0.1 Done with OS release 20201121
  • no option to swap recents and back buttons Added with OS release 20201121
  • I couldn't find a way to hide that horrible google search bar Not possible without changing the Launcher code. Third party launchers (like Nova Launcher) do not have this issue.
  • backlight on hardware buttons not working Fixed with OS release 20201106
  • play store not certified Fixed with OS release 20201108
  • google pay not working Fixed with OS release 20201108
  • Dash charge is not tested Confirmed working with OS release 20201108
  • backlight on hardware buttons not consistent in case of quick multiple touches Fixed with OS release 20201109
  • Missing Android 10 theme customization on developer options Fixed with OS release 20201114
  • Always On Display Added with OS release 20201109

Changelog
[06/10/2021] aosp_cheeseburger-ota-user-20211006.zip
  • October 2021 Security Patch (synced with AOSP android-11.0.0_46)
Changelog of previous releases

[19/09/2021] aosp_cheeseburger-ota-user-20210919.zip
  • September 2021 Security Patch (synced with AOSP android-11.0.0_43)
  • A lot of code change to prepare support for Android 12
[08/08/2021] aosp_cheeseburger-ota-user-20210808.zip
  • August 2021 Security Patch (synced with AOSP android-11.0.0_40)
  • SettingsExtra: fix an issue causing call recording to not detect call ending
  • SettingsExtra: fix issue causing buttons backlight to stay with screen off
[08/07/2021] aosp_cheeseburger-ota-user-20210708.zip
  • July 2021 Security Patch (synced with AOSP android-11.0.0_r39)
  • Enable 'Cards and passes' (Settings -> System -> Gestires -> Power menu)
    • Requires Google Pay installed
  • Gestures are now working properly
  • SettingsExtra: add option to enable on-screen navigation bar
  • SettingsExtra: add option to turn off capacitive buttons backlight
  • Update Call Recording/Vibration: both call recording and vibration now actually starts when other side picks up (and not when you dial the number!)
  • SettingsExtra: add option to select Call Recordings directory
[15/06/2021] aosp_cheeseburger-ota-user-20210615.zip
  • Fix stock recovery not working
[13/06/2021] aosp_cheeseburger-ota-user-20210613.zip
  • June 2021 Security Patch (synced with AOSP android-11.0.0_r38)
  • Synced with LineageOS sources
  • Switch to AMR files for call recording (for better quality and compatibility)
  • SettingsExtra: add option to enable vibration at call connect/disconnect
[04/05/2021] aosp_cheeseburger-ota-user-20210504.zip
  • May 2021 Security Patch (synced with AOSP android-11.0.0_r37)
  • Phone now turns on automatically if an alarm is set
  • Fix device rebooting into recovery while listening to Whatsapp audio messages with LED manager enabled
[19/04/2021] aosp_cheeseburger-ota-user-20210419.zip

Changelog:
  • SettingsExtra: enable call recording on volte/vowifi calls
[18/04/2021] aosp_cheeseburger-ota-user-20210418.zip

Changelog:
  • Sync kernel sources with LineageOS
    • Should fix charging issues
  • Various fixes to SettingsExtra
    • Fix some issues with Dynamic Modem
    • Fix an issue causing the VoLTE icon to not be present in some situations
    • Disable call recording in case of VoLTE/VoWifi calls (Android does not support recording those calls)
[05/04/2021] aosp_cheeseburger-ota-user-20210405b.zip

Changelog:
  • April 2021 Security Patch (synced with AOSP android-11.0.0_r34)
[05/04/2021] aosp_cheeseburger-ota-user-20210405.zip

Changelog:
  • Switch back to the Lineage-based kernel
  • Synced with LineageOS sources
  • SettingsExtra: fix 'set vibration intensity' on Lazy kernel
  • Fix search not working on Settings app
  • Fix wrong strings on 'System' page in the Settings app
  • Fix audio not working during some calls
  • Fix wrong NFC icon tile
  • Improve fingerprint responsiveness with screen off
[20/03/2021] aosp_cheeseburger-ota-user-20210320.zip

Changelog:
[07/03/2021] aosp_cheeseburger-ota-user-20210307.zip

Changelog:
  • March 2021 Security Patch (synced with AOSP android-11.0.0_r32)
[25/02/2021] aosp_cheeseburger-ota-user-20210225.zip

Changelog:
  • Improvements to LED Manager
  • Validate wifi bridge - when wifi is connected and hotspot is enabled, the phone will work as wifi extender
[10/02/2021] aosp_cheeseburger-ota-user-20210210.zip

Changelog:
  • Add gaming mode tile - when enabled, capacitive buttons/auto brightness/heads up notifications are disable
  • Fix an issue causing audio to be disabled during voice calls
  • Improvements to LED Manager
[07/02/2021] aosp_cheeseburger-ota-user-20210207.zip

Changelog:
  • (BETA) Add notification LED control options
[04/02/2021] aosp_cheeseburger-ota-user-20210204.zip

Changelog:
  • Sync with LineageOS 18.1 product definition sources
  • Fix low audio level on recorded video
  • Add option to select vibration intensity (SettingsExtra)
[02/02/2021] aosp_cheeseburger-ota-user-20210202.zip

Changelog:
  • February 2021 Security Patch (synced with AOSP android-11.0.0_r31)
[23/01/2021] aosp_cheeseburger-ota-user-20210123.zip

Changelog:
  • Sync LineageOS 18.1 product definition sources
  • Fix VoWifi not working
  • Add option to show the VoWifi icon on status bar (SettingsExtra)
[10/01/2021] aosp_cheeseburger-ota-user-20210110.zip

Changelog:
  • Fixed race condition causing the bluetooth icon on status bar to be present without devices connected
  • Rewrite the mechanism to manage slider events - should be a lot more stable now!
  • Disabled audio safe volume level warning
  • Added advanced reboot options to SettingsExtra (only reboot in recovery or fastboot mode at the moment)
[04/01/2021] aosp_cheeseburger-ota-user-20210104.zip

Changelog:
  • January 2021 Security Patch (synced with AOSP android-11.0.0_r27)
[03/01/2021] aosp_cheeseburger-ota-user-20210103.zip

Changelog:
  • Fix front camera not working with some applications using Camera API1
[02/01/2021] aosp_cheeseburger-ota-user-20210102.zip

Changelog:
  • Allow disabling heads up notifications from SettingsExtra
  • Fix SettingsExtra disabling all Accessibility Services except SettingsExtra at boot
  • Improve mechanism to manage screen off slider events (this should prevent the screen from turning on sometimes when the volume slider is used)
[27/12/2020] aosp_cheeseburger-ota-user-20201227.zip

Changelog:
  • Add Adaptive Brightness tile (automatic brightness)
  • Add support for Pocket Mode (SettingsExtra) - disable fingerprint reader and double tap to wake when proximity sensor is covered and screen is off
  • Some code refactoring
[25/12/2020] aosp_cheeseburger-ota-user-20201225.zip

Changelog:
  • Fix Wellbeing not working
  • Add option to show the VoLTE icon on status bar (SettingsExtra)
  • Add support for multiple users (Settings -> System -> Multiple user)
  • Add blur to the background when notification bar is pulled down (it is possible to disable this from developer options -> Enable blurs)
  • Sync LineageOS 18.1 product definition
  • Sync with Google release android-11.0.0_r24
[08/12/2020] aosp_cheeseburger-ota-user-20201208.zip
  • December 2020 Security Patch (synced with AOSP android-11.0.0_r21)
  • Add Dynamic Modem feature to SettingsExtra: allow to automatically change network mode (GSM, LTE, 3G, etc...) when wifi connects or disconnects
  • Internal code refactoring of SettingsExtra
[06/12/2020] aosp_cheeseburger-ota-user-20201206.zip
  • Fix Bluetooth status bar icon not showing the battery level
[05/12/2020] aosp_cheeseburger-ota-user-20201205.zip
  • Add option to enable Call Recording - available in the Settings Extra app
  • Add battery level on the bluetooth icon on status bar (when a bluetooth device reports a battery level)
  • Update Qualcomm HALs to the latest sources from Lineage
[28/11/2020] aosp_cheeseburger-ota-user-20201128.zip
  • Double tap to wake now works with Always On Display mode enabled
  • Fix NFC tile crash at boot
[25/11/2020] aosp_cheeseburger-ota-user-20201125.zip
  • USB preferences now works when launched from notification panel
  • Add working NFC tile
  • Fix overlapping of display color gamut menu on Settings Extra app
  • Add AOSP messaging app - Fix first boot backup restoring
[21/11/2020] aosp_cheeseburger-ota-user-20201121.zip
  • Update OnePlus blobs from OOS 10.0.1 (Added Camera EIS): you have to flash the correct firmware or the latest official OOS release before flashing this ROM! Firmwares can be found in the LineageOS 18 thread (first post)
  • Double tap to wake is now working (not in Always On Display mode)
  • Double tap to wake is disabled by default - enable it from Settings -> Display -> Tap to wake
  • Added Settings Extra app:
    • Allow to swap back and recent capacitive buttons
    • Allow to enable display DC dimming
    • Allow to change display color gamut (DCI-P3 or sRGB)
  • Following the steps in the second post, it is now possible to boot this ROM with a locked bootloader
[14/11/2020] aosp_cheeseburger-ota-user-20201114.zip
  • Dark mode is now really dark on the Android Settings (and not grey)
  • Enable AOSP theming options on Settings -> display -> Styles & wallpapers
  • Enable AOSP Night Light filter options (low blue light) on Settings -> display -> Night Light
[09/11/2020] aosp_cheeseburger-ota-user-20201109.zip
  • Show the correct Android Security Patch version on the Android Settings UI
  • Improve reliability of the capacitive buttons backlight
  • Add Always On Display - Enable from Settings -> Display -> Lock Screen -> 'Always show time and info'
[08/11/2020] aosp_cheeseburger-ota-user-20201108.zip
  • SafetyNull fully passes*
  • Google Play Store is now certified
* This is tested with this ROM and GApps installed - no Magisk Works also with Magisk installed
* To pass SafetyNet, the 'Android Security Update' on the Android Settings is reporting 'April 5, 2020': this is only reported as old Security Patches, the ROM has actually the latest secutiry patches available from Google. Fixed with OS release 20201109

[07/11/2020] aosp_cheeseburger-ota-user-20201107.zip
  • Allow thirdy party apps to access the fingerprint sensor
  • Fix an issue causing a 'Device lock by admin' warning when unlocking the device

[06/11/2020] aosp_cheeseburger-ota-user-20201106.zip
  • Enable backlight for capacitive hardware buttons

[04/11/2020] aosp_cheeseburger-ota-user-20201104.zip
  • November 2020 Security Patch
  • Sync with AOSP android-11.0.0_r17 tag

[29/10/2020] aosp_cheeseburger-ota-user-20201029.zip
  • First release
 
Last edited:

robertogl

Senior Member
Sep 18, 2007
1,644
1,026
Arzignano, Italy
No, I haven't yet. I tried yaap 11.0 before I found this thread. I'd like to try it but I think I will encouter the same issues. Will google pay work on it? If not, is there any way to make it work?

At the moment, Google Pay won't work as in most custom rom.
I think that signing the images and locking the bootloader will help, but as explained in the second post this is still a work in progress on my side.
 

petrea_86

Senior Member
Apr 24, 2012
56
8
At the moment, Google Pay won't work as in most custom rom.
I think that signing the images and locking the bootloader will help, but as explained in the second post this is still a work in progress on my side.
I definitely can help you with testing but you can help me with other stuff :) It's been 10 years now since I haven't played around with all this but it's comming back little by little. Although a lot of things have changed. Now magisk is the king I see.
 

SunitTalwar

Senior Member
Mar 4, 2012
146
83
Did you try the rom? Do you have any feedback?

I did try this ROM, initial impressions pretty Fast (boot and general operations) , Tried this with NIK Stock GAPPS . Camera was working and so was alert slider . Calls, sound and other basic stuff.

Only thing missing was backlight for hardware buttons. Can you please add that as well .

Also Google playstore showed device as not certified . Assuming it is due to device signatures in build prop as other custom roms are able to bypass this by spoofing phone as a Pixel device. Not sure if this could be used in a pure AOSP ROM .

Apart from that pretty stable , was just missing hardware key light and uncertified play store .
 

petrea_86

Senior Member
Apr 24, 2012
56
8
I'm currently on stock OOS 10 with locked bootloader after checking yaasp today. Can anyone tell me how to get a full nandroid backup? I would like to test this rom as well and help you out as much as possible, but don't wanna go through clean install process each time I do it. I'd use it as my daily driver even with some bugs unsorted, but can't do that without google pay.
 

robertogl

Senior Member
Sep 18, 2007
1,644
1,026
Arzignano, Italy
I definitely can help you with testing but you can help me with other stuff :) It's been 10 years now since I haven't played around with all this but it's comming back little by little. Although a lot of things have changed. Now magisk is the king I see.

I'll work on the new signed images in the following couple of weeks. Hopefully, we'll get google pay working :)

I did try this ROM, initial impressions pretty Fast (boot and general operations) , Tried this with NIK Stock GAPPS . Camera was working and so was alert slider . Calls, sound and other basic stuff.

Thank you, every feedback is important at this stage.

Only thing missing was backlight for hardware buttons. Can you please add that as well .

I saw how other roms do this, and it was not compatible to a pure AOSP rom. I did not give it much importance at first, but I'd look into this for the next release.
Also Google playstore showed device as not certified . Assuming it is due to device signatures in build prop as other custom roms are able to bypass this by spoofing phone as a Pixel device. Not sure if this could be used in a pure AOSP ROM .

Apart from that pretty stable , was just missing hardware key light and uncertified play store .

You are probably correct about the play store certification. And yes, we can do the spoofing stuff also on this ROM, as far as I'm aware of the tricks other ROMs are doing. I'll look into this.

Second post updated with:
- backlight on hardware buttons not working
- play store not certified
- google pay not working.
 

robertogl

Senior Member
Sep 18, 2007
1,644
1,026
Arzignano, Italy
I'm currently on stock OOS 10 with locked bootloader after checking yaasp today. Can anyone tell me how to get a full nandroid backup? I would like to test this rom as well and help you out as much as possible, but don't wanna go through clean install process each time I do it. I'd use it as my daily driver even with some bugs unsorted, but can't do that without google pay.

You should be able to do a full nandroid using a TWRP recovery (look at the thread from codeworkx here on xda). Note that TWRP does not support parallel app at the moment, so if you'are using those you cannot do the nandroid.
Also, you cannot do this process with an unlocked bootloader.
 

petrea_86

Senior Member
Apr 24, 2012
56
8
T̶h̶e̶ ̶p̶r̶o̶b̶l̶e̶m̶ ̶i̶s̶ ̶t̶h̶a̶t̶ ̶t̶w̶r̶p̶ ̶d̶i̶s̶a̶p̶p̶e̶a̶r̶s̶ ̶o̶n̶c̶e̶ ̶I̶ ̶l̶o̶c̶k̶ ̶t̶h̶e̶ ̶b̶o̶o̶t̶l̶o̶a̶d̶e̶r̶.̶ ̶H̶o̶w̶ ̶t̶o̶ ̶i̶n̶s̶t̶a̶l̶l̶ ̶t̶w̶r̶p̶ ̶w̶i̶t̶h̶ ̶t̶h̶e̶ ̶b̶o̶o̶t̶l̶o̶a̶d̶e̶r̶ ̶b̶e̶i̶n̶g̶ ̶l̶o̶c̶k̶e̶d̶?̶ Done using adb full backup. Now back to testing. :)
 
Last edited:

robertogl

Senior Member
Sep 18, 2007
1,644
1,026
Arzignano, Italy
New build in the first post: aosp_cheeseburger-ota-user-20201104.zip
Changelog:
  • November 2020 Security Patch
  • Sync with AOSP android-11.0.0_r17 tag
Also added instructions to the third post on how to update the rom using the TWRP recovery (in case of encrypted data).

Any screenshots? Features?
There is nothing particular. There are no features over the AOSP operating system. I like this way :)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    AOSP for OnePlus 5
    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!
    */
    This ROM boots also with a locked bootloader.
    See second post to get more information.
    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.
    Known issues

    See Third post.

    Changelog

    See third post.

    Download

    Releases can be found on AndroidFileHost: here
    Old releases on SourceForge: here
    Installation

    Backup everything and remove PIN protection before installing this ROM.
    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 can be found here:
    https://sourceforge.net/projects/nikgapps/files/Releases/NikGapps-R/30-Jan-2021/

    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 (if you have a locked bootloader, follow the steps in the second post).
    Sources

    Manifest on github: https://github.com/robertoglandroid/local_manifests
    Kernel on github: https://github.com/robertoglandroid/kernel_oneplus_msm8998

    Telegram discussion group here!

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

    Contributors
    robertogl
    Source Code: https://github.com/robertoglandroid/local_manifests

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

    Version Information
    Status:
    Stable

    Created 2020-10-29
    Last Updated 2021-10-06
    4
    Actually, I changed my mind. I'll only release new OS updates with the Lineage-based kernel for now. While I understand people who wants Lazy kernel, it is giving me more issues to debug compared to the 'old' kernel.
    If you really want Lazy kernel, you can keep the bootloader unlocked and flash it on the device from recovery.
    So, if you had any issue with 20210320 release, please try this new one and let me know.

    New release: aosp_cheeseburger-ota-user-20210405.zip
    • Switch back to the Lineage-based kernel
    • Synced with LineageOS sources
    • SettingsExtra: fix 'set vibration intensity' on Lazy kernel
    • Fix search not working on Settings app
    • Fix wrong strings on 'System' page in the Settings app
    • Fix audio not working during some calls
    • Fix wrong NFC icon tile
    • Improve fingerprint responsiveness with screen off

    If you are using TWRP, remember to flash also the persist_twrp zip.
    If you are using Magisk and a locked bootloader, flash also the boot image with magisk preinstalled. This boot image is now updated (signed_magisk_boot_20210405.img)
    3
    New release: aosp_cheeseburger-ota-user-20210504.zip

    Changelog:
    • May 2021 Security Patch (synced with AOSP android-11.0.0_r37)
    • Phone now turns on automatically if an alarm is set
    • Fix device rebooting into recovery while listening to Whatsapp audio messages with LED manager enabled
    If you are using TWRP, remember to flash also the persist_twrp zip.
    If you are using Magisk and a locked bootloader, flash also the boot image with magisk preinstalled.

    @akii rock this should fix the issue you mentioned :)
    3
    New release: aosp_cheeseburger-ota-user-20210123.zip

    Changelog:
    • Sync LineageOS 18.1 product definition sources
    • Fix VoWifi not working
    • Add option to show the VoWifi icon on status bar (SettingsExtra)
    If you are using TWRP, remember to flash also the persist_twrp zip.

    If you are using Magisk and a locked bootloader, flash also the boot image with magisk preinstalled. This boot image is now updated (signed_magisk_boot_20210123.img)
    3
    New release: aosp_cheeseburger-ota-user-20210418.zip

    Changelog:
    • Sync kernel sources with LineageOS
      • Should fix charging issues
    • Various fixes to SettingsExtra
      • Fix some issues with Dynamic Modem
      • Fix an issue causing the VoLTE icon to not be present in some situations
      • Disable call recording in case of VoLTE/VoWifi calls (Android does not support recording those calls)
    If you are using TWRP, remember to flash also the persist_twrp zip.
    If you are using Magisk and a locked bootloader, flash also the boot image with magisk preinstalled. This boot image is now updated (signed_magisk_boot_20210418.img)