[ROM][5.0 Lollipop] AOSP build

Search This thread

C-o-M

Senior Member
Oct 20, 2010
700
1,063
Welcome to Lollipop :cool:

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/android/nexus/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
 

Attachments

  • 1415182248480.jpg
    1415182248480.jpg
    46.8 KB · Views: 29,422
Last edited:

joshuab227

Senior Member
Aug 20, 2011
374
178
Bombay
Welcome to Lollipop :cool:

Download: https://drive.google.com/file/d/0B10l7w-7w3boRzlmT1pxSFF5YlU/view?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
 
Last edited:

Bladyle

Senior Member
Jan 25, 2010
508
65
Welcome to Lollipop :cool:

Download: https://drive.google.com/file/d/0B10l7w-7w3boRzlmT1pxSFF5YlU/view?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
 
  • Like
Reactions: mgeranimus

Bladyle

Senior Member
Jan 25, 2010
508
65
What he means is this proper aosp fully working 100% and has latest kernel and everything?

it will be 100% working when we have OTA or after some time with AOSP when developers fix all the missing binaries, libraries, bugs and etc.
 
Last edited:

Loopy Frog

Member
Oct 2, 2011
49
7
Hobart
I'm returning to stock 4.4.4 as I type this, and then I will do a clean flash of this 5.0 AOSP build and see how I go. Shall report back here upon completion. :D
 

un.droid

Senior Member
Oct 27, 2011
509
132
how to i disable the version check to install gapps?
anyway to get the official launcher? the one in this rom looks like 4.4 stock
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 60
    Welcome to Lollipop :cool:

    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/android/nexus/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
    5
    Updated links and instructions in first post
    2

    No, I used the L preview binaries