FORUMS
Remove All Ads from XDA

[EXPERIMENTAL][AOSP][O] Homemade Oreo for OnePlus 5

479 posts
Thanks Meter: 1,139
 
By updateing, Senior Member on 7th September 2017, 03:55 PM
Post Reply Email Thread
Code:
#include <std_disclaimer.h>
/*
 * 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! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh atyou.
 */
Hi everyone, here is my port of Oreo on OnePlus 5. Source is based on AOSP android-8.0.0_r3 (r9 since 20170916, r15 for 20171008), as it's for Pixel. Device repo, kernel and vendor etc are available at the end of the post.

And the same note as before: this ROM is highly experimental, and only meant for the brave ones. I may not update this work regularly.

Hardware features:
Things went more smoothly than before.Majority of hardware features are working, including mobile network, WiFi, Bluetooth (file transfer, network, audio etc), GPS, camera / camcorder, fingerprint, sensors, HW-based encryption etc.

There are some minor issues regarding HW:

1. Virtual keys and hardware keys are enabled altogether. You can disable hardware keys at /proc/touchpanel/key_disable and /sys/module/fpc1020_tee/parameters/ignor_home_for_ESD . If you do want the virtual keys to hide, read first several pages of replies and there are some solutions.
2. Slider is not working, but it produces key event. There are lots of tools that can be used to customize actions for key events, and examples can be found in the first several pages of replies as well.
3. No offscreen gestures.
4. No option for color profile switching (default, sRGB, DCI-P3). You can switch that manually at /sys/class/graphics/fb0/color_profile

Known bugs:
1. Permissive SELinux, and init allows services without a SELinux domain to start
2. Behavior of camera is not consistent - it works on my phone, but it may crash yours. If your phone reboots into EDL/9008 mode after flashing this ROM, use recovery or fastboot to flash back to other ROMs IMMEDIATELY!
3. Sometimes the system does not show charging status (no flash sign in battery icon, but LED lights up as usual), while the battery is being charged just fine.
4. No UI shown when alarm clock goes off. This is an AOSP bug (missing NotificationChannel parameters). Use Google Clock from Play Store instead.
5. VoLTE is broken. Maybe we need to wait for an official release for updated blobs.

And as you may have already known, AOSP does not include a fully functional browser nor a file manager. An `adb install` may be needed after flashing.

Screenshots:





Download:
Make backups! Make backups! Make backups!
20171008: https://drive.google.com/open?id=0Bw...HYwUE1BSGkxbTQ
20170924: https://drive.google.com/open?id=0Bw...2lUVEVQcDRuaDQ
20170916: https://drive.google.com/open?id=0Bw...kpMWFU1R1VLNDA
20170910: https://drive.google.com/open?id=0Bw...GsyZ3hYWkZZcFU
20170907: https://drive.google.com/open?id=0Bw...EVQX3h0UG1pUHM

You will lose Magisk and GAPPS after upgrading since boot and system partitions are overwritte. Better flash GAPPS right after the firmware, otherwise apps depend on GAPPS will FC even if GAPPS are re-installed.

This is NOT a flashable zip. Use fastboot to flash:
Code:
fastboot erase boot
fastboot flash boot boot.img
fastboot flash system system.img
And wipe data before usage.

NOTE: This ROM requires encrypted data partition. If your data partition is not encrypted, format it. Moreover, OxygenOS [s]4.5.10[/s] 4.5.12 firmwares are required.

Changelog:
20171008
Since proper development on Oreo has started, this ROM has served its purpose as an experimental (or first-taste-only) ROM, and thus will not receive any updates anymore.
Updated blobs to OxygenOS 4.5.12 (baseband version was not changed, but better use the new firmware bundled with 4.5.12)
Updated to android-8.0.0_r15
Switched to new kernel source used by MoKee (may solve some WiFi issue, and possibly some others)
Some minor cosmetic changes
No new patches applied, the 0924 archive would be fine.

20170924
Fixed voice translation in Google Translate (maybe other apps as well)
Add a power HAL and double tap to wake is available in settings now (wondering if it actually works)
Use RenderScript driver from OnePlus 3 Oreo beta. Stock one is too old for Oreo, thus it was not loading at all.
Included navigation bar fix from this post
(Also tried new kernel used in MoKee and Lineage OS, but it still causes stalls when remounting so I switched back to the old kernel)

20170916
Bluetooth address should be correct
Fixed broken compress_offload feature (some music player (or ringtones) rely on this)
Make DASH chargers recognized as standard AC charger with fast charging support
Update to android-8.0.0_r9

20170910
Fixed Bluetooth audio. Now LDAC, AAC and SBC all work. If you want aptX / HD, find libaptX{,HD}_encoder.so elsewhere and push them to the phone.
Fixed AOSP keyboard crash when switching to symbol / numbers panel: https://android-review.googlesource....nIME/+/469478/

20170910
Initial build

Sources:
Kernel: https://github.com/updateing/android...neplus_msm8998 (aosp-o-new branch)
Device: https://github.com/updateing/android...s_cheeseburger (aosp-o branch)
Vendor: https://github.com/updateing/android...s_cheeseburger (aosp-o branch)

In order to build kernel with AOSP, you need build/core/tasks/{kernel,dt}.mk from other ROMs build system. And external/{libnfnetlink,libnetfilter_conntrack} needs to be forwarded to AOSP master.

Source patches are attached to this post.

Credits:
MoKee/@XiNGRZ for this awesome kernel
Qualcomm for the great SoC
And Google for the OS

Thank you all!
The Following 50 Users Say Thank You to updateing For This Useful Post: [ View ] Gift updateing Ad-Free
 
 
7th September 2017, 04:09 PM |#2  
djsubterrain's Avatar
Senior Member
Flag Livingston
Thanks Meter: 2,475
 
More
Nice, will give it a go later, I presume there shouldn't be a problem with TWRP and going back to our present rom?

You also didn't post any gapps link, would these work ok?

http://www.cyanogenmods.org/forums/t...oid-oreo-roms/
The Following User Says Thank You to djsubterrain For This Useful Post: [ View ] Gift djsubterrain Ad-Free
7th September 2017, 04:17 PM |#3  
daleski75's Avatar
Senior Member
Flag Northampton
Thanks Meter: 6,446
 
More
You're a brave man @djsubterrain
The Following 4 Users Say Thank You to daleski75 For This Useful Post: [ View ] Gift daleski75 Ad-Free
7th September 2017, 04:18 PM |#4  
Junior Member
Thanks Meter: 2
 
More
Does this work as a secondary ROM on multirom?
7th September 2017, 04:20 PM |#5  
gouthamgoumi's Avatar
Senior Member
Thanks Meter: 74
 
More
Quote:
Originally Posted by ZachChampion2020

Does this work as a secondary ROM on multirom?

No..As it says its not a flashable zip
7th September 2017, 04:20 PM |#6  
daleski75's Avatar
Senior Member
Flag Northampton
Thanks Meter: 6,446
 
More
Quote:
Originally Posted by ZachChampion2020

Does this work as a secondary ROM on multirom?

Judging by the way you need to flash this it's categorically NO
The Following User Says Thank You to daleski75 For This Useful Post: [ View ] Gift daleski75 Ad-Free
7th September 2017, 04:21 PM |#7  
djsubterrain's Avatar
Senior Member
Flag Livingston
Thanks Meter: 2,475
 
More
Quote:
Originally Posted by ZachChampion2020

Does this work as a secondary ROM on multirom?

It's labelled "EXPERIMENTAL" so it's highly unlikely, you really think that would be a priority to get it working with multiboot when the rom isn't even fully working?
The Following 2 Users Say Thank You to djsubterrain For This Useful Post: [ View ] Gift djsubterrain Ad-Free
7th September 2017, 04:22 PM |#8  
Feedmeeeee's Avatar
Senior Member
Flag Ankara
Thanks Meter: 127
 
More
niceeeeee
7th September 2017, 04:36 PM |#9  
Member
Flag Hyderabad
Thanks Meter: 20
 
More
Nice to see some OREO love for our device. Thanks Developer for your hard work.
The Following User Says Thank You to diwakar2030 For This Useful Post: [ View ] Gift diwakar2030 Ad-Free
7th September 2017, 04:43 PM |#10  
OP Senior Member
Flag Wuhan
Thanks Meter: 1,139
 
Donate to Me
More
Quote:
Originally Posted by djsubterrain

Nice, will give it a go later, I presume there shouldn't be a problem with TWRP and going back to our present rom?

You also didn't post any gapps link, would these work ok?

http://www.cyanogenmods.org/forums/t...oid-oreo-roms/

TWRP should work fine. Personally I'm using TWRP 3.1.1, official build, and haven't noticed any issue.

There should not be any issue when going back to 7.x ROMs (though I have not tried myself), but as wiping data is always involved when changing ROMs, do make a backup of everything including internal storage!

I have not tried any unoffical build of Gapps, and the only official build available now is DeltaGapps. It doesn't work OOB however, I need to extract some libs from APKs to get it to work.
The Following User Says Thank You to updateing For This Useful Post: [ View ] Gift updateing Ad-Free
7th September 2017, 04:55 PM |#11  
Snapdragon815's Avatar
Senior Member
Flag mysore
Thanks Meter: 178
 
More
1st to release N for bacon, O for cheeseburger.
Good job bro.
The Following User Says Thank You to Snapdragon815 For This Useful Post: [ View ] Gift Snapdragon815 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes