• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[BETA][5.0.2][LRX22G] AOSP Lollipop by tank0412 [A500CG][A501CG]

Search This thread


Senior Member
Sep 2, 2015
České Budějovice
150 dollars for new motherboard?... that money can buy another zen 5...

Sent from my ASUS_T00J using XDA-Developers mobile app

it was about 3000,- czech moneys, transport cost about 650,- from this sum, so it is 135-150 euros :/ new zenfone cost obout 200,- in my cauntry and i wont make some ZenUI themes, so i need my zenfone :)

BUT IT ISNT point of this thread :)

Top Liked Posts

  • There are no posts matching your filters.
  • 25

    What is AOSP?
    The Android Open Source Project is the original unmodified version of android. It's the base ROM that all other ROM's work on. There are a few changes from CAF (code aurora forums) and cyanogenmod to get this working for non-nexus devices like ours.

    Bug list:
    • GPS & FM

    What is working:
    • Media (IT IS FIXED) But Youtube can be dead
    • Audio (IT IS FIXED)
    • RIL (baseband) (IT IS FIXED)
    • Touchscreen xD
    • Image decoding
    • MTP
    • Webview
    • Camera
    • Sensors
    • Houdini (stable)
    • Wi-Fi

    Rom features:
    • The main target of this rom is to provide opportunity to use custom roms for people, who have a screen freezes after bootloader unlock. (My AOSP rom use stock kernel)
    • First Lollipop AOSP rom
    • I used proprietary files from WW V3.24.40.87
    • I used device tree by quanganh2627 for building so this way community will get all fixes

    How to flash it:

    Step 1:
    You should download files for flashing:
    IMG file to flash it via drodiboot: (system_20032016.img)
    Stock boot.img (boot_3.24.40.87.img)
    ADB v1.0.32
    Step 2:
    1) Unpack archive with ADB and put image with rom and kernel there.
    3) Then you should reboot your phone in the droidboot mode. (turn off you gadget then press Turn off button and volume + button)
    Then go to the ADB folder and hold Shift + Right Mouse button and write this command:
    fastboot flash system system_20032016.img
    fastboot flash boot boot_3.24.40.87.img
    Do not forget to wipe cache and data.
    Bug reporting:​
    Attach logcat and detailed describe the issue. Send this to me (tank0412)

    @quanganh2627 (i used his device tree)
    morrey from 4PDA for RIl fix


    XDA:DevDB Information
    AOSP Lollipop by tank0412, ROM for the Asus Zenfone 5

    Source Code: https://github.com/tank0412/aosp_device_asus_a500cg

    ROM OS Version: 5.0.x Lollipop
    ROM Kernel: Linux 3.10.x
    Based On: AOSP

    Version Information
    Status: Beta
    Current Beta Version: 3.1
    Beta Release Date: 2016-03-20

    Created 2016-01-03
    Last Updated 2016-03-20
    Fixing video recording using camera app
    Using AICP device tree by @quanganh2627 with my bring up to AOSP
    Using another libmultidispaly source
    Problem with hardware buttons was fixed
    Fixes for second SIM (it have not tested yet)
    Use old AOSP device tree from Github
    Audio is fixed
    Media is fixed (but Youtube can be dead)
    RIL fix is applyed
    Using img file for drodiboot

    New bugs/issues:
    Problem with Hardware buttons. (Maybe it is only on my phone) Use Back button only. Or install Xposed to enable sreen buttons.
    RIL was fixed. Using otapackage. (flashable zip for TWRP)
    Using blobs files from WW V3.24.40.87
    Using stock kernel from WW V3.24.40.87 (boot_3.24.40.87.img file)
    Using another RIL class (Unfortunatly, RIL is stay dead)
    Wi-Fi was fixed
    Houdini was fixed
    Rom become much stable
    Camera was totally fixed
    Minor fixes for audio
    Removed many apps from Asus stock.
    Initial release
    So this rom just 5.0 and cant update to 5.1.1 because u want to lock bootloader?
    Many users which have a screen freezes asked me to create a rom, where bootloader unlock is not needed.
    So i published this rom for them,
    Personally i prefer to use 5.1.1.. Moreover i plan to build AOSP 6.0 Marshmallow.
    this AOSP is something like training for me.
    Guys, major update is released ( system_06012016.img )
    Wi-Fi was fixed
    Houdini was fixed
    Rom become much stable
    Camera was totally fixed
    Minor fixes for audio
    Removed many apps from Asus stock.

    The main bug is a RIL. It is still dead.
    @tank0412 there may be a chance to get RIL working
    initally, check the RIL class variable on the mk files. i found that the RIL on my CM build wasn't working because the path works as RELATIVE to the directory that 'make' was at the moment that the class was required. so, check for build warnings/errors like this one:
    '../../../device/asus/a500cg/ril: not found'
    anyway, Google has moved RIL.java to another directory on commit a639b311e93ad14d9ee5c2b2c215ed2d86c32d2a (change-id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad) with the creation of telephony-common
    you can see more info about the commit here: https://github.com/android/platform_frameworks_base/commit/a639b311e93ad14d9ee5c2b2c215ed2d86c32d2a
    they moved RIL.java from platform/frameworks/base/telephony/java/com/android/internal/telephony/RIL.java to platform/frameworks/opt/telephony/src/java/com/android/internal/telephony/RIL.java
    and I recommend to use GitHub's History feature to check what broke the RIL with our device on old RIL
    History for RIL on frameworks/base: https://github.com/android/platform.../java/com/android/internal/telephony/RIL.java
    and Google's Git Blame or even Log feature to check the same thing on new RIL
    Blame https://android.googlesource.com/pl.../java/com/android/internal/telephony/RIL.java
    Log https://android.googlesource.com/pl.../java/com/android/internal/telephony/RIL.java
    this may help with something, although I do not have any experience with RIL classes etc
    also, if a AOSP is not possible, there's a chance to get CyanogenMod 12 with base as 5.0.2 and mod the stock kernel
    I guess Asus wants that everyone stay on their horrible and bloated stock ROM, as they don't provide us a single line of code from anything but kernel (if there wasn't open source licenses, I guess they wouldn't even share this!)
    unless people do something like a petition to make asus distribute device files or even build aosp/cyanogenmod on their own servers and allow us to choose the operating system of our device, we'll be stuck here needing help of more experient developers