• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM] [6.0.1] Android Open Source Project Marshmallow [2016/10/12]

GHsR

Senior Member
Aug 21, 2014
387
1,575
0
This is a build of the Android Open Source Project (AOSP) based on Android 6.0.1 for people who prepare pure Android without the extra feature of CyanogenMod or other ROMs.

Code:
#include 
/*
 * 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.
 */
Device-specific source code:

Downloads

What works?
  • Wi-Fi
  • Bluetooth
  • RIL (Calls, SMS, Mobile Data)
  • Sensors (Accelerometer, Compass, Light, Proximity, etc.)
  • Camera
  • Video (playback & recording)
  • Audio (playback & recording)
  • GPS
  • Everything else not listed under "known issues"

Known Issues
  • Runtime storage permission does not work properly (setns patches are not applied, see PermissionsHostTest CTS test)

Installation Instructions
  • Make sure you are either on any Lollipop ROM or on 4.2.2 TW based ROM
    and NOT on 4.1.2 TW based ROM
  • Download the ROM and GApps
  • Reboot to recovery
  • Take a nandroid backup
  • Wipe data/factory reset
  • Flash the ROM and then GApps
  • For GT-I9105 flash nfc destroyer
  • Reboot your phone
  • Enjoy!

To upgrade to a newer build, simply flash the zip. You also need to flash Google Apps and other addons again because addon.d support is not included in this ROM.

Changelog
Code:
20161012:
- Added EAP-SIM authentication support
- Optional overclocking to 1.6 Ghz
- Based on [URL="https://github.com/ghsr/changelog/blob/android-6.0/aosp/android-6.0.1_r52-to-android-6.0.1_r72.txt"]android-6.0.1_r72[/URL]

20160709:
- Based on [URL="https://github.com/ghsr/changelog/blob/android-6.0/aosp/android-6.0.1_r46-to-android-6.0.1_r52.txt"]android-6.0.1_r52[/URL]

20160614:
- Enabled Ambient Display
- Reverted setns patches due to some issues with the kernel
- Added sio sioplus zen I/O schedulers
- Added lulzactive smartassV2 smartassH3 governors
- Based on [URL="http://www.androidpolice.com/android_aosp_changelogs/android-6.0.1_r43-to-android-6.0.1_r46-AOSP-changelog.html"]android-6.0.1_r46[/URL]

20160504:
- Fixed unstable usb connection
- Fixed runtime storage permission (applied setns patches in the kernel)
- Enabled auto power modes
- Added some encryption fixes
- Enabled gesture typing and fixed LatinIME fc (thanks to @[URL="http://forum.xda-developers.com/member.php?u=6429309"]DodoGTA[/URL] for providing working gesture typing library)
- Fixed youtube issue (stopping video playback after 5-7 seconds)
- Updated blobs from I9105PXXUBOB2
- Based on [URL="https://gist.github.com/ghsr/41fe9983d725c8668abaa8cbc1983a9e"]android-6.0.1_r43[/URL]

20160407:
- Based on [URL="http://www.androidpolice.com/android_aosp_changelogs/android-6.0.1_r22-to-android-6.0.1_r24-AOSP-changelog.html"]android-6.0.1_r24[/URL]

20160314:
- Fixed SIM card detection when phone is encrypted
- Based on [URL="https://gist.github.com/ghsr/7cb38b3ec218308b9096"]android-6.0.1_r22[/URL]

20160204:
- Fixed call mute
- Enabled zRAM and zCache
- Added SELinux status to Settings -> About phone
- Resized launcher icons
- Based on [URL="https://gist.github.com/ghsr/35002dc10adb47fb9924"]android-6.0.1_r16[/URL]

20160109:
- Fixed Google Play Movies (widevine DRM)
- SELinux in enforcing mode
- Based on [URL="https://gist.github.com/ghsr/7642f572c6a097633fea"]android-6.0.1_r10[/URL]

20151209:
- Fixed Flashlight issues
- Disabled gesture typing on AOSP Keyboard to prevent crash with some gapps
- Updated WebView to 47.0.2526.76
- Based on [URL="https://gist.github.com/pawitp/d3d47d92c0e3ed0e3a36"]android-6.0.1_r3[/URL]

20151121:
- Fixed AutoRotation after sleep
- Fixed stock browser fc
- Fixed Camera crop/rotate issue
- Disabled journaling to save system.img space

20151103:
- Removed QuickSearchBox
- Fixed 2G only network mode
- Added performance media codecs
- Fixed "Optimizing apps" dialog on each boot
- Enabled clear all recents button
- Updated RIL for M
- Updated uid_cputime in the kernel
- Based on [URL="https://cdn.rawgit.com/anonymous/70006daaaaffd2da4d16/raw/71ba1503d476dd89b2adec4862b8340cd192de7e/index.html"]android-6.0.0_r26[/URL]

20151016:
- Fixed RIL (Calls, SMS, Mobile Data)
- Fixed USB otg storage mounting
- Fixed NFC
- Applied show_uid_stat kernel patch
- Fixed installation on both devices

20151013:
- Initial alpha release based on android-6.0.0_r1
Reporting Bugs

You may report bugs in this thread, note that I do not intend to update this ROM often and bug reports may be ignored. If you're looking for a ROM which is often updated, please use CyanogenMod.

  • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
  • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
  • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

Bug report format
Code:
What is your--
Phone model (i9105 or i9105p):
Radio (baseband):
ROM version:
Gapps version:

Did you--
wipe:
restore with titanium backup:
reboot after having the issue:

Are you using--
a task killer:
a non-stock kernel:
other modifications:

Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:
Credits

XDA:DevDB Information
AOSP Marshmallow, ROM for the Samsung Galaxy S II Plus

Contributors
GHsR
Source Code: https://android.googlesource.com/

ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.0.x
ROM Firmware Required: 4.2.2

Version Information
Status: Beta

Created 2015-10-14
Last Updated 2016-10-20
 

GHsR

Senior Member
Aug 21, 2014
387
1,575
0
FAQ

Can you include the "ask first" option for sending messages?
The "ask first" option is not available in AOSP. However, you can select the SIM when you send the message if you use Google's Messenger app.

Battery Statistics shows that Wi-Fi is always on even though I've turned it off.
If you are using "scanning always available" in Advanced Wi-Fi Settings, then Wi-Fi will always be on to scan for available network to aid location discovery.

How do I enable root?
Root need to be flashed manually.

I'm having battery issues
Read http://forum.xda-developers.com/gal...galaxy-grand-duos-i9082-t2942255/post57836573

After installing, my storage was reduced from 8 GB to 4 GB
You only have 4 GB for user data in the first place. The other 4 GB is used by system files. This is the same with stock as well. However, stock might have displayed it as "8 GB with 4 GB used by system files", but AOSP-based ROMs will only display the space available for user data.

Can you include Feature X into your ROM?
No. This ROM will have AOSP's feature set.

Can you include S-Note/S-Planner/MultiWindow/Insert Samsung App Here?
No. This is an AOSP ROM and cannot have TouchWiz applications.

Can you include call recording?
No.

What kernel does this ROM use?
A slightly modified version of the stock kernel, the source code is linked above.

I've heard that Broadcom doesn't release source, how can you make this ROM?
Contrary to the popular belief, userspace driver source code is not always required to make an AOSP-based ROM as long as the proprietary binaries shipped with the device does not modify the API too heavily (or is from a very different version of Android). Instead of modifying the source code of the drivers, the Android source code was adapted to be able to use the proprietary binaries.

Can I use your ROM as a base?
http://source.android.com/source/licenses.html

Most of Android is licensed under the Apache License with other small parts licensed under other open-source licenses. Which means that you may modify and redistribute without asking for permission as long as the proper credits is given.

Can contacts be saved to phone/SIM?
No. It is not supported in AOSP-based ROMs.

Can I send files over Wi-Fi Direct?
Yes, but you must use third-party applications. The implementation provided on Samsung ROMs is not an open standard. AOSP/CM does not provide a native way to send files over Wi-Fi Direct.

Can I mirror your ROM?
You're free to, but I will not list it in this post.
 
Last edited:

bonerserk

Senior Member
Jun 16, 2014
206
42
0
Verona
Thanks but I have this error when flashing it with twrp 2.8.7:
This package is for device: s2ve; this device is s2vep.
I have to modify some files in the zip or have you uploaded the s2ve version?
thanks!

edit:
I have modified the file aosp-6.0-20151014-UNOFFICIAL-i9105p\META-INF\com\google\android\updater-script replacing s2ve with s2vep
now the script runs and I'm installing!
 
Last edited:

GHsR

Senior Member
Aug 21, 2014
387
1,575
0
Thanks but I have this error when flashing it with twrp 2.8.7:
This package is for device: s2ve; this device is s2vep.
I have to modify some files in the zip or have you uploaded the s2ve version?
thanks!
This rom for both devices. I will fix it in the next build.

All works great!
The default browser causes system reboot.
Have you found any working gapps?
I'll try to fix it in the next build.
GApps links:
http://www.technobuzz.net/download-google-gapps-for-android-6-0-marshmallow-roms/
http://androiding.how/android-6-0-marshmallow-gapps
http://www.gammerson.com/2015/09/download-gapps-for-andorid-marhsmallow.html
http://www.theandroidsoul.com/download-android-6-0-marshmallow-gapps-google-apps-85083/
I do not know which one will work, you can test and tell us.

@GHsR this commit should help fix the NFC
https://github.com/hak86/android_de...mmit/351df41c62749adf1662f82d5b23a9b683df7740

it's worked on my AOSP 5.0 should work on M too :)
I think this commit should fix the NFC - https://github.com/ghsr/android_dev...mmit/d7386fbd9bbcb26badffdbe5af1fab99f8abd8e5
AOSP doesn't support BOARD_NFC_HAL_SUFFIX flag and nfc_nci.bcm2079x.capri can't be built. But I can't test it, I have a device without nfc.

Maybe tomorrow I will update rom with some fixes.
 
  • Like
Reactions: uNNNk

haky 86

Recognized Contributor
Oct 5, 2012
3,321
7,381
113
Hama (Syria)
This rom for both devices. I will fix it in the next build.


I'll try to fix it in the next build.
GApps links:
http://www.technobuzz.net/download-google-gapps-for-android-6-0-marshmallow-roms/
http://androiding.how/android-6-0-marshmallow-gapps
http://www.gammerson.com/2015/09/download-gapps-for-andorid-marhsmallow.html
http://www.theandroidsoul.com/download-android-6-0-marshmallow-gapps-google-apps-85083/
I do not know which one will work, you can test and tell us.


I think this commit should fix the NFC - https://github.com/ghsr/android_dev...mmit/d7386fbd9bbcb26badffdbe5af1fab99f8abd8e5
AOSP doesn't support BOARD_NFC_HAL_SUFFIX flag and nfc_nci.bcm2079x.capri can't be built. But I can't test it, I have a device without nfc.

Maybe tomorrow I will update rom with some fixes.
Well at the moment I'm trying it with cm-13.0 and got several erros in sepolicy in vendor/cm/sepolicy not related with NFC, i just remove sepolicy.mk in that folder, compilation work fine until now.
About NFC, strange i didn't remove BOARD_NFC_HAL_SUFFIX on AOSP 5.1.1 and it work at all, i will report if NFC work on my CM Marshmallow. :)
 

GHsR

Senior Member
Aug 21, 2014
387
1,575
0
Well at the moment I'm trying it with cm-13.0 and got several erros in sepolicy in vendor/cm/sepolicy not related with NFC, i just remove sepolicy.mk in that folder, compilation work fine until now.
About NFC, strange i didn't remove BOARD_NFC_HAL_SUFFIX on AOSP 5.1.1 and it work at all, i will report if NFC work on my CM Marshmallow. :)
You added prebuilt nfc libraries: https://github.com/hak86/android_de...mmit/351df41c62749adf1662f82d5b23a9b683df7740
Try to test nfc without this commit. The same will be on cm-13.0.
 
  • Like
Reactions: uNNNk

bonerserk

Senior Member
Jun 16, 2014
206
42
0
Verona
This rom for both devices. I will fix it in the next build.


I'll try to fix it in the next build.
GApps links:
http://www.technobuzz.net/download-google-gapps-for-android-6-0-marshmallow-roms/
http://androiding.how/android-6-0-marshmallow-gapps
http://www.gammerson.com/2015/09/download-gapps-for-andorid-marhsmallow.html
http://www.theandroidsoul.com/download-android-6-0-marshmallow-gapps-google-apps-85083/
I do not know which one will work, you can test and tell us.


I think this commit should fix the NFC - https://github.com/ghsr/android_dev...mmit/d7386fbd9bbcb26badffdbe5af1fab99f8abd8e5
AOSP doesn't support BOARD_NFC_HAL_SUFFIX flag and nfc_nci.bcm2079x.capri can't be built. But I can't test it, I have a device without nfc.

Maybe tomorrow I will update rom with some fixes.
I've already tried all these gapps without success.
The problem is related to the google play services that crash. I've also tried to install various versions of google play services for MM directly on pure AOSP but the problem remains the same.
I'll try this evening to get a logcat of this error.

The problem related to the reboot caused by the browser depends on the denied location permission.
If you give to google site the permission to access your location but in the browser security application section this permission is denied, the system crashes and reboots.
 
  • Like
Reactions: uNNNk

GHsR

Senior Member
Aug 21, 2014
387
1,575
0
I've already tried all these gapps without success.
The problem is related to the google play services that crash. I've also tried to install various versions of google play services for MM directly on pure AOSP but the problem remains the same.
I'll try this evening to get a logcat of this error.

The problem related to the reboot caused by the browser depends on the denied location permission.
If you give to google site the permission to access your location but in the browser security application section this permission is denied, the system crashes and reboots.
GApps minimal for Marshmallow - https://s.basketbuild.com/filedl/devs?dev=GHsR&dl=GHsR/gapps_minimal_mm.zip
Based on gapps by @djsubterrain .

Use Google Chrome Browser.
I tested the stock browser and I didn't get reboot. Stock Browser only crash after scrolling.
 
  • Like
Reactions: uNNNk

djsubterrain

Elite Member
Jan 4, 2012
3,535
3,391
113
Livingston