FORUMS
Remove All Ads from XDA

[EXPERIMENTAL][CAF][MRA58K] Homemade Android 6.0 Marshmallow build

464 posts
Thanks Meter: 1,068
 
By updateing, Senior Member on 15th October 2015, 06:00 AM
Post Reply Email Thread
Hello everybody, I'm glad to share these days' work of bringing Marshmallow to the OnePlus One.

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 at you.
*/
This ROM is based on CAF release LA.BF.1.1.3-00110-8x74.0, with some little modification to some components to make it build. The kernel is based on CM12.1. You can check the kernel source on my GitHub. Links will be posted later.

Nearly all basic feature should be working: 4G data, 4G->3G fallback on calls, SMS, camera/camcorder, BT, WiFi, MTP, 4K recording, HW decoding etc.

kexec hardboot is supported.

Known issues:
1. Stock camera doesn't work well. Here is a list of comparison:
Quote:

Feature - Working on Stock camera - OppoCamera port - CameraNextMod?
Switching front/back cam - No - Yes - Yes
Camcorder <=1080p - No - Yes - Yes
4K Recording - No - No - Yes

(maybe I should get a monospace font in Firefox)
2. Battery drains... a little faster? (Just a little)
3. The ROM comes with ancient Launcher2. Launcher3 is not included. I will post this as an attachment. Launcher3 has been added since 20151018
4. Picture in apps are sometimes automatically zoomed out (and distorted) and can not be zoomed in. Is this a common problem among AOSP-based Marshmallow ROMs? I tried AOSP and CAF sources, and they both have the same issue. Need to change DPI via build.prop
5. Security related: SELinux is disabledpermissive in 20151018. HW Crypto is not working. Software-based credentials storage.
6. No gestures (DT2W etc) Workaround available in Q&A
7. Kernel panics/reboots on switching adb on & off.
8. WiFi AP still runs on 2.4G even when 5G is selected.

If you find more issues, feel free to post here. However, I may not be able to solve them since schoolwork is so heavy... And this ROM may not be updated regularly.

Video Tutorials by @udimars30:
https://www.youtube.com/watch?v=XxjnTae2nCM - How to install ROM and Gapps
https://www.youtube.com/watch?v=kWZcxVs992c - How to get root
https://www.youtube.com/watch?v=vZ7qW4j3Kso - How to enable softkeys, Now on Tap
Thanks!

Q&A:
Quote:

1. Kernel Compatibility
The kernel of this ROM is based on CM12.1, but not exactly the same. You can not use kernels built for CM12.1 with this ROM. Marshmallow requires new features like updated SELinux, uid_cputime, etc, but CM12.1 source does not contain these features. You can take a look at commits and it will be clear.

Quote:

2. Recovery Compatibility
I am using TWRP 2.8.7.0 with MultiROM support (TWRP_multirom_bacon_20150803-00.img from MultiROM thread). If you can not get the ROM installed properly, please try updating your recovery.

Quote:

3. Rooting
Since this is a experimental build, I have turned off SELinux completely. SELinux is permissive. Just flash SuperSU 2.50 zip in the recovery and it will be fine.

Quote:

4. F2FS Support
The kernel has F2FS driver builtin and corresponding entries in fstab file (as CM does). Vold has F2FS files as well, so you can give it a try. But I can not guarantee that it will work flawlessly.
EDIT: Some people tested and reported it not working. Make a backup before you try.

Quote:

5. GApps
I'm using DeltaGapps with SetupWizard removed (yes it is the one that keeps force closing. you can disable that via adb as well). I think the lack of permissions(appops_whitelist.xml I guess) caused this failure. After allowing every permission required by Google apps and adding the account manually, Sync and Store works as expected. Now on Tap seems broken. Maps is working, and gets a lock in secs..
There are some other GApps package links in the first few pages. Some people say Now on Tap works with them, you can have a try.

Quote:

6. Disabling HW Keys and Enabling Softkeys - The Easy Way

Code:
echo qemu.hw.mainkeys=0 >> /system/build.prop
reboot # enables soft keys
echo 0 > /proc/touchpanel/keypad_enable # disables hw keys, need to do this on every boot

Quote:

7. Where Is The App Switcher?
If you are comfortable with softkeys, goto 6.
If you are not, goto 3 and take a look at http://forum.xda-developers.com/show...&postcount=115double tap the home key.

Quote:

8. LCD Density

Code:
wm density 440 # if you want 440
wm density reset # self-explanatory
Above will lead to corrupted pics.
Change
Code:
ro.sf.lcd_density=480
to
Code:
ro.sf.lcd_density=VALUE_YOU_WANT
(Note: I did this before installing GApps, not sure if this is related to Google Now Launcher FCs)

Quote:

9. DT2W Workaround

Code:
echo 1 > /proc/touchpanel/double_tap_enable # do this on every boot
Then add this line to /system/usr/keylayout/Generic.kl:
Code:
key 255 POWER

DT2W has been added into settings since 20151027.


Quote:

10. Apps Not Working
Settings -> Apps -> YOUR_APP -> Permissions -> Turn on everything

Quote:

11. Fixing random freezes
http://forum.xda-developers.com/show...&postcount=682
Thanks @The Dork Knight Rises

Now screenshot spoiler (with Google Now Launcher):









Discussion Thread:
http://forum.xda-developers.com/onep...d-6-0-t3227234

Download:
20151027
https://drive.google.com/file/d/0Bwk...ew?usp=sharing
Marshmallow's native DT2W setting (thanks CM)
USB MIDI support (What for?)
Fixed some crashes by removing SeempLog (try TiBu and network settings)
Double tap on Home key now brings up Recent View
Added a reboot option in power key menu/global actions menu
Note: if you have drain when NFC is on (or NFC setting is grayed out), please attach a logcat of booting process. I can not reproduce this on my phone... Thanks!


MAKE A BACKUP FIRST!
(I'm using TWRP 2.8.7.0 and it works well with this package.)

Sources:
Kernel: https://github.com/updateing/android...neplus_msm8974 (marshmallow branch)
Device tree: https://github.com/updateing/android..._oneplus_bacon
Blobs: https://github.com/updateing/proprietary_vendor_oneplus
local_manifest: http://www.hastebin.com/netamapate.xml
Hope you can enjoy the new feel of Marshmallow!
The Following 195 Users Say Thank You to updateing For This Useful Post: [ View ] Gift updateing Ad-Free
 
 
15th October 2015, 06:05 AM |#2  
madsponge26's Avatar
Senior Member
Flag Doha
Thanks Meter: 989
 
More
Wow! Need this rom to improve.
The Following 3 Users Say Thank You to madsponge26 For This Useful Post: [ View ] Gift madsponge26 Ad-Free
15th October 2015, 06:06 AM |#3  
threetwentyfizzle's Avatar
Senior Member
Flag Albuquerque
Thanks Meter: 403
 
Donate to Me
More
Excited flashing now!

Sent from my A0001 using Tapatalk
15th October 2015, 06:15 AM |#4  
Junior Member
Flag Jacksonville
Thanks Meter: 6
 
More
Finally the sweet taste of marshmallow on the OnePlus One!
15th October 2015, 06:21 AM |#5  
Senior Member
Flag Shimla
Thanks Meter: 83
 
More
Great work ! ^_^
15th October 2015, 06:28 AM |#6  
L0X0R's Avatar
Senior Member
Flag Melbourne
Thanks Meter: 79
 
More
Battery drains faster?

Guess I'll wait a little bit longer, as it's the main reason I wanna switch to M.
15th October 2015, 06:29 AM |#7  
Senior Member
Thanks Meter: 82
 
More
Kernel dilemma
If the kernel on it is based on cm 12.1 .. Can we flash any other kernels that work with CM 12.1? It should work or atleast i hope so! But yeah I'll try and get back!
Cheers! Keep up the good work!
15th October 2015, 06:31 AM |#8  
copi's Avatar
Senior Member
Flag jakarta
Thanks Meter: 119
 
More
Do we need to flash gapps & supersu?

Sent from my A0001 using Tapatalk
15th October 2015, 06:36 AM |#9  
Killer.shubham's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 183
 
More
will it work with F2FS ? separate build would be helpful, if its not tested i will test it

---------- Post added at 11:06 AM ---------- Previous post was at 11:05 AM ----------

Quote:
Originally Posted by horizon_KJ

If the kernel on it is based on cm 12.1 .. Can we flash any other kernels that work with CM 12.1? It should work or atleast i hope so! But yeah I'll try and get back!
Cheers! Keep up the good work!

i guess it would be tweaked for more compatibility to android 6.0
15th October 2015, 06:45 AM |#10  
wingedpanther's Avatar
Senior Member
Flag Kerala(Home)//Riyadh(Present)
Thanks Meter: 374
 
More
Great work man !!
15th October 2015, 06:48 AM |#11  
~KV's Avatar
Senior Member
Thanks Meter: 1,056
 
Donate to Me
More
Anyone flashed it successfully?
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