[ROM][5.1.1_r24][LMY48W][MAKO] Pure AOSP [Oct-07-2015]

woland_ca

Senior Member
Sep 28, 2009
102
80
0
Calgary
Pure AOSP 5.1.1_r24 [LMY48W]. Blobs from [LMY48T].
No code changes or extra features.
Compiled for myself but decided to share it. :)

The necessary changes
  • Added xml overlay that enable network locations (Gapps required)
  • Added xml overlay that enable gesture typing in AOSP keyboard (Gapps required)
  • Added xml overlay that enable account backup (Gapps required)
  • Added xml overlay that removes updates check option
  • AOSP default boot animation replaced by stock.

Code:
package aosp;

import disclaimer;

public class AOSP extends Disclaimer {

    /**
     * Your warranty is now likely void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * spontaneous combustion, or any other host of cosmic penalties
     * which may befall you, your family, animals or your phone.
     *
     */
    public AOSPDisclaimer(){
        warranty.set(0);
    }
}
  • Previous versions here
 
Last edited:

russells.android

Senior Member
May 27, 2012
365
76
0
Bulacan
Pure AOSP 5.1.1_r6 [LMY48G]. No code changes or extra features.
Compiled for myself but decided to share it. :)

The necessary changes

  • Added xml overlay that enable network locations (Gapps required)

  • Added xml overlay that enable gesture typing in AOSP keyboard (Gapps required)

  • Added xml overlay that enable account backup (Gapps required)

  • AOSP default boot animation replaced by stock.

Code:
package aosp;

import disclaimer;

public class AOSP extends Disclaimer {

    /**
     * Your warranty is now likely void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * spontaneous combustion, or any other host of cosmic penalties
     * which may befall you, your family, animals or your phone.
     *
     */
    public AOSPDisclaimer(){
        warranty.set(0);
    }
}

Will it be pure AOSP? Any plans to add maybe layers?
 

wong.izzat

Senior Member
Jan 21, 2012
342
180
0
No idea what are the changes between r6 and r8. In git them looks like a two different branches (R6 belongs to LMxxxx builds and R8 to LVxxxx builds) most of commits are the same in both of them but not a 100%. If somebody know the difference please explain.
Good job. Simple and plain AOSP. Subscribing this thread

Sent from my Nexus 4 using Tapatalk
 

woland_ca

Senior Member
Sep 28, 2009
102
80
0
Calgary
No idea what are the changes between r6 and r8.
After digging a little bit I found that R8 is actually a special build with Project Fi api enabled, which is useless for most of us. So it looks like there is no valuable difference between R6 and R8, and probably R6 is even better for N4. (Despite of that the R8 build is running well so far on my N4)
 

cewrld

Senior Member
Aug 4, 2013
183
81
0
  • Added xml overlay that enable network locations (Gapps required)
  • Added xml overlay that enable gesture typing in AOSP keyboard (Gapps required)
  • Added xml overlay that enable account backup (Gapps required)
  • AOSP default boot animation replaced by stock.
When you have time, can you explain these xml changes and how we can apply them to our own AOSP builds shortly. It will be informative.
 

woland_ca

Senior Member
Sep 28, 2009
102
80
0
Calgary
When you have time, can you explain these xml changes and how we can apply them to our own AOSP builds shortly. It will be informative.
NP.
All files paths are relative to project root.
Xml overlay that enable network locations
By default AOSP uses only device GPS sensor. Network location (Battery saving) and hybrid (High accuracy) modes provided by the Google and in order to activate them you should edit:
device/lge/mako/overlay/frameworks/base/core/res/res/values/config.xml
Add inside <resources> tag:
Code:
    <string-array name="config_locationProviderPackageNames" translatable="false">
        <item>com.google.android.gms</item>
        <item>com.android.location.fused</item>
    </string-array>
Xml overlay that enable gesture typing in AOSP keyboard
By default AOSP keyboard has gesture typing disabled and has no decoding library. In order to enable it you should add new overlay file:
device/lge/mako/overlay/packages/inputmethods/LatinIME/java/res/values/gesture-input.xml
With code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <bool name="config_gesture_input_enabled_by_build_config">true</bool>
</resources>
And your Gapps should install proper libjni_latinime.so library. Not all Gapps have it. This one, for example, has it.

Xml overlay that enable account backup
By default AOSP will backup your account details into private debug cache. To point the backup to your Google account you should edit:
device/lge/mako/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
Add inside <resources> tag:
Code:
<string name="def_backup_transport" translatable="false">com.google.android.gms/.backup.BackupTransportService</string>
Xml overlay that removes system update option
Copy the file packages/apps/Settings/res/xml/device_info_settings.xml to device/lge/mako/overlay/packages/apps/Settings/res/xml/device_info_settings.xml, then edit copied file and comment first section that deals with update check:
Code:
	<!--
        <PreferenceScreen android:key="system_update_settings"
                android:title="@string/system_update_settings_list_item_title" 
                android:summary="@string/system_update_settings_list_item_summary">
            <intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS" />
        </PreferenceScreen>
	-->
Replace default boot animation
Put the stock (or any other) boot animation file here:
vendor/lge/mako/prebuild/bootanimation.zip
Edit the file:
device/lge/mako/full_mako.mk
add right after:
PRODUCT_COPY_FILES := device/lge/mako/apns-full-conf.xml:system/etc/apns-conf.xml
the line:
PRODUCT_COPY_FILES += vendor/lge/mako/prebuild/bootanimation.zip:system/media/bootanimation.zip:lge
You can also fix Model number string to proper one:
PRODUCT_MODEL := AOSP on MAKO
to:
PRODUCT_MODEL := Nexus 4

Enjoy!
 
Last edited: