FORUMS
Remove All Ads from XDA

[ROM][5.0 Lollipop] AOSP build

680 posts
Thanks Meter: 1,062
 
By C-o-M, Senior Member on 5th November 2014, 10:10 AM
Post Reply Email Thread
Welcome to Lollipop

Clean install with custom recovery (TWRP) (recommended)
  1. Download the following files:
  2. Recommended: Backup your apps:
    Code:
    adb backup -apk -obb -all -system
  3. Recommend: Backup your internal storage (see FAQ below for the reason). Either copy all files in Explorer or use adb:
    Code:
    adb pull /sdcard/
  4. Boot to recovery
  5. Recommend: Factory reset. Warning: All your apps and app data will be deleted! Make sure you have a backup!
  6. Recommend: Format/wipe internal storage (see FAQ below for the reason). Warning: All your files will be deleted! Make sure you have a backup!
  7. Format/wipe system
  8. Unmount system
  9. Install aosp_mako-ota-eng.5.0.zip (or aosp_mako-ota-eng-preroot.5.0.zip)
  10. Install gapps-lp-20141105-signed.zip
  11. Optional: Install BETA-SuperSU-v2.19.zip
  12. Reboot
  13. Have a break and don't panic! The first boot can take 5 to 10 minutes
  14. Optional: Recover from backup:
    Code:
    adb restore backup.ab
  15. Optional: Copy your files back to internal storage

Clean install with fastboot

You won't have GApps this way ...
WARNING: If you flash userdata.img, all your data will be gone! Even the files on internal storage!
  1. Download the images
  2. Boot to bootloader
  3. Flash
    Code:
    fastboot flash recovery recovery.img
    fastboot flash boot boot.img
    fastboot flash cache cache.img
    fastboot flash userdata userdata.img
    fastboot flash system system.img


FAQ

Oh no, all my files are lost!!!
or
Why should I wipe internal storage?
5.0 uses a much stricter SELinux policy than most 4.4 ROMs do. Normally the first boot should migrate all the things (and it did for me, but only the first time). If not, you are no longer able to see your internal storage (aka SD card). E.g. Camera says: Please enter an SD card. To fix that problem you have to either wipe the internal storage and let Android recreate the file structure. (You can before still access the /sdcard in TWRP for a backup with adb). Or you can fix the SELinux context with the following command (in recovery):
Code:
adb shell
IFS="

"
for i in `find /data/media`; do chcon u:object_r:media_rw_data_file:s0 "$i"; done
Is this the official update from Google?
No, this is an AOSP build from the latest Lollipop sources.

Do I need to be on stock 4.4.4 before flashing?
No, but you should consider doing a factory reset otherwise.

Can I do a dirty upgrade?
Yes, you can. But you might spend a lot of time in fixing F/Cs...

Can this ROM be rooted?
Yes, just flash aosp_mako-ota-eng-preroot.5.0.zip (or aosp_mako-boot-root.5.0.zip) and BETA-SuperSU-v2.19.zip


Known issues

General:
  • No access to internal storage, even not with adb or as root. Seems like SELinux is misconfigured. See FAQ for solution

Due to incomplete GApps:
  • WLAN/mobile based location isn't working
  • No face unlock (libs missing) works with new gapps
  • calendar sync provider missing works with new gapps


How to build

This ROM is build with the original Google sources:
Code:
repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.0_r2
See https://source.android.com/source/building.html for build instructions.

Binary blobs are taken from https://developers.google.com/androi.../blobs-preview.

The kernel is the default precompiled kernel provided by Google (can be found in device/lge/mako-kernel/kernel).

To prepare for root, you have to remove the seclabel line from system/core/rootdir/init.rc:
Code:
service flash_recovery /system/bin/install-recovery.sh
    class main
    seclabel u:r:install_recovery:s0
    oneshot
Attached Thumbnails
Click image for larger version

Name:	1415182248480.jpg
Views:	29184
Size:	46.8 KB
ID:	3000377  
The Following 61 Users Say Thank You to C-o-M For This Useful Post: [ View ] Gift C-o-M Ad-Free
 
 
5th November 2014, 10:17 AM |#2  
Senior Member
Flag Bombay
Thanks Meter: 169
 
More
Quote:
Originally Posted by C-o-M

Welcome to Lollipop

Download: https://drive.google.com/file/d/0B10...ew?usp=sharing

We don't have 5.0 gapps yet, so I flashed pa-gapps-modular-mini-4.4.4-20140930 (after removing the version check in updater-script). Works great so far.

I'm running a dirty upgrade from 4.4.4, no issues so far. Just format /system, flash ota.zip and gapps, wipe cache and enjoy.

I guess this requires me to be running stock 4.4.4 before flashing.
Could you post the system.img , userdata.img , cache.img , boot.img and recovery.img so I could flash it via fastboot.

Thanks
5th November 2014, 10:25 AM |#3  
daimhafizy23's Avatar
Junior Member
Thanks Meter: 5
 
More
Amazing work!!
can you upload modified pa gapps??
or any instruction to modify it?
5th November 2014, 10:33 AM |#4  
camp70's Avatar
Senior Member
Thanks Meter: 150
 
More
Good job!

trasteando...
5th November 2014, 10:35 AM |#5  
richardyusan's Avatar
Member
Flag Purwokerto, Indonesia
Thanks Meter: 7
 
More
is this from google ?
5th November 2014, 10:40 AM |#6  
groovepeppy's Avatar
Senior Member
Flag Parijs van Java
Thanks Meter: 109
 
More
Quote:
Originally Posted by richardyusan

is this from google ?

all ROM's are from Google's base dude
maybe what you really mean is from stock L image?
5th November 2014, 10:40 AM |#7  
aymnahmd's Avatar
Senior Member
Flag Egypt
Thanks Meter: 72
 
More
is this rooted guys?
5th November 2014, 10:41 AM |#8  
SRun's Avatar
Member
Thanks Meter: 11
 
More
Is this official aosp build and can I clean flash?
5th November 2014, 10:44 AM |#9  
Member
Flag RUSSIA
Thanks Meter: 51
 
More
Please explain how to root tris ROM?!
5th November 2014, 10:45 AM |#10  
Bladyle's Avatar
Senior Member
Flag Sofia
Thanks Meter: 61
 
Donate to Me
More
Quote:
Originally Posted by C-o-M

Welcome to Lollipop

Download: https://drive.google.com/file/d/0B10...ew?usp=sharing

We don't have 5.0 gapps yet, so I flashed pa-gapps-modular-mini-4.4.4-20140930 (after removing the version check in updater-script). Works great so far.

I'm running a dirty upgrade from 4.4.4, no issues so far. Just format /system, flash ota.zip and gapps, wipe cache and enjoy.

dirty flash from stock 4.4.4 ?
also can you provide a link to working gapps
The Following User Says Thank You to Bladyle For This Useful Post: [ View ] Gift Bladyle Ad-Free
5th November 2014, 10:45 AM |#11  
nguyenquyhoc's Avatar
Member
Flag Hà Nội
Thanks Meter: 8
 
More
great job , waiting issues from other
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