Post Reply Subscribe to Thread Email Thread

SEMI-PURE AOSP ROM - 5.1 LMY47I (26.03.2015)

26th December 2014, 04:37 PM |#1  
malcho's Avatar
OP Senior Member
Flag Sarajevo
Thanks Meter: 3,976
 
3,509 posts
Join Date:Joined: Aug 2010
Donate to Me
PURE AOSP ROM FOR NEXUS 5



Nexus 5




This is pure AOSP rom for Nexus 5 build straight from google source(latest revision 5.1.0_r1)
Removed some stuff(live wallpapers)
This project is in learning mode,which means i will try to explain all stuff i do with rom,
including building,modifying,github stuff,etc.


ROM DOWNLOAD:


26.03.2015

Latest source built 5.1
Stock kernel included.
AOSP bootanimation included(credits to guerreromanuel).
Banks gapps minimal included (credits to euroskank).
Rom flash takes 5 min to flash.DO NOT PANIC!!!!
Rom is named aosp_hammerhead LMY47I SEMIPURE .zip.



ROM Download on GDrive

ROM Download in DEVDB


INSTALL INSTRUCTIONS:

1.Download rom
2.Download Supersu(in same folder)
3.Reboot in recovery
4.Full wipe
5.Install rom and supersu.
7.Reboot






Thanks and credits:

Google for source
chainfire for supersu
guerreromanuel for bootanimation.
euroskank for gapps.


Random videofrom my YOUTUBE channel

XDA:DevDB Information
SEMI-PURE AOSP ROM - 5.1 LMY47I (26.03.), ROM for the Google Nexus 5

Contributors
malcho
ROM OS Version: 5.0.x Lollipop
ROM Kernel: Linux 3.4.x

Version Information
Status: Alpha

Created 2014-12-26
Last Updated 2015-03-26
The Following 27 Users Say Thank You to malcho For This Useful Post: [ View ]
26th December 2014, 04:37 PM |#2  
malcho's Avatar
OP Senior Member
Flag Sarajevo
Thanks Meter: 3,976
 
3,509 posts
Join Date:Joined: Aug 2010
Donate to Me
Angry
GUIDE 1
Initiate build enviroment and download source.

This link contains all that is needed to initialize source build on ubuntu.I suggest use LTS(long term support) versions of ubuntu.
https://source.android.com/source/initializing.html

Here is the link where you can find how to download source and initialize repo.
https://source.android.com/source/downloading.html
Pay attention on how to choose the right branch.You can find all info about branches here.
https://source.android.com/source/build-numbers.html
For example if you want to build from the latest brunch choose android-5.0.2_r1.

After this download binaries(drivers)for your device.
You have to download three files.Broadcom,LG and Qualcom.
Copy three files to your build directory.If you create folder /build/aosp copy files to that directory nad extract it.
Run all file with following commands,for example ./extract_broadcom_hammerhead.sh.

Now it's time for building.

. build/envsetup.sh
lunch - Choose the device you want(hammerhead is 14)
make otapackage

GUIDE 2


Ok let's spice up thing a little bit.
I want to remove and add some stuff to rom.First thing i need to do is to enable Show hidden files and folders in ubuntu.
In your build folde go to folder .repo(this folder is hidden).
In that folder create folder local_manifests.
After that create file roomservice.xml

Here is example of my file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--Please do not manually edit this file-->
<manifest>
  <remote  name="github"
           fetch="https://github.com"
            />

  <remove-project name="platform/packages/apps/Gallery"  />
  <remove-project name="platform/packages/apps/Browser"  />
  <remove-project name="platform/packages/apps/Calendar"  />
  <remove-project name="platform/packages/apps/Camera2"  />
  <remove-project name="platform/packages/apps/Gallery2"  />
  <remove-project name="platform/packages/apps/Music"  />
  <remove-project name="platform/packages/apps/MusicFX"  />
  <remove-project name="platform/packages/apps/QuickSearchBox"  />
  <remove-project name="platform/packages/wallpapers/HoloSpiral"  />
  <remove-project name="platform/packages/wallpapers/Galaxy4"  />
  <remove-project name="platform/packages/wallpapers/MagicSmoke"  />
  <remove-project name="platform/packages/wallpapers/NoiseField"  />
  <remove-project name="platform/packages/wallpapers/PhaseBeam"  />
   <remove-project name="platform/packages/apps/VoiceDialer"  />
  <project path="packages/apps/Camera2" name="CyanogenMod/android_packages_apps_Camera2" remote="github" revision="cm-12.0"/>
  <project path="packages/apps/Browser" name="CyanogenMod/android_packages_apps_Browser" remote="github" revision="cm-12.0"/>
  <project path="packages/apps/Gallery2" name="CyanogenMod/android_packages_apps_Gallery2" remote="github" revision="cm-12.0"/>    
 
</manifest>
Like this i removed package Camera 2 for example and added Camera2 package from Cyanogenmod github.
Pay attention that i have to add remote github at the start of file and also i have to add revision on end of package.

How to add bootanimation into build.
I downloaded bootanimation.zip file.I create folder in vendor/lge/hammerhead and i named it bootanimation.
I copied zip file there.
Then i go to folder vendor/lge/hammerhead and open file device-partial.mk.
Use right click and open file with gedit.
I add this on end of the file.

Code:
vendor/lge/hammerhead/bootanimation/bootanimation.zip:system/media/bootanimation.zip:lge \
Like this i can have bootanimation directly built in my otapackage.

GUIDE 3

HOW TO ADD LAYERS SUPPORT TO ROM

Go to this site
http://forum.xda-developers.com/andr...-developers%29

First you need to go on second post on this thread and open all links from android-review.googlesource.com
Cherry pick this in your source.
Go to respective folder in this case go to frameworks/base and paste cherry-pick link here.

Next you need to add cherry picks from https://github.com/bgill55.

Go to respective folder for example for this case Exposing hard coded resources for type 2 overlay access [3/6].
This have to go to packages/apps/Contacts
Next add remote like this:
git remote add layers git://github.com/bgill55/platform_packages_apps_Contacts.git where layers is a name of remote branch.
git fetch layers
git cherry pick number of commit which you can find bellow

Exposing hard coded resources for type 2 overlay access [3/6]
Have to expose hard coded hex coding to changeable resources for theming purposes. For the Layers type 2 overlays
frankie-mr-1 (#1)
commit 888a7be7ec16960cb80fd8371ff694b9dacb9002 1 parent 5402f10
bgill55 bgill55 authored 23 days ago


Repeat these steps for every project.
Last edited by malcho; 16th February 2015 at 12:46 PM.
The Following 16 Users Say Thank You to malcho For This Useful Post: [ View ]
26th December 2014, 04:38 PM |#3  
malcho's Avatar
OP Senior Member
Flag Sarajevo
Thanks Meter: 3,976
 
3,509 posts
Join Date:Joined: Aug 2010
Donate to Me
Angry
More info in OP in next few days.
Don't have so much time.
The Following User Says Thank You to malcho For This Useful Post: [ View ]
26th December 2014, 04:48 PM |#4  
luisangel89's Avatar
Senior Member
Flag Seattle
Thanks Meter: 433
 
644 posts
Join Date:Joined: Feb 2012
More
You should put that this is a ROM and not a question in the subject line. Thank you though!

Sent from my Nexus 5 using XDA Free mobile app
The Following User Says Thank You to luisangel89 For This Useful Post: [ View ]
26th December 2014, 04:52 PM |#5  
nkhanh's Avatar
Senior Member
Thanks Meter: 33
 
110 posts
Join Date:Joined: Mar 2011
Thanks
26th December 2014, 05:45 PM |#6  
derboedi's Avatar
Senior Member
Flag Bielefeld
Thanks Meter: 302
 
648 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Thumbs up
Great to see you over here, Malcho! I have your rom for Galaxy S i9000 in pretty good memory. Looking forward to this project!
26th December 2014, 05:51 PM |#7  
malcho's Avatar
OP Senior Member
Flag Sarajevo
Thanks Meter: 3,976
 
3,509 posts
Join Date:Joined: Aug 2010
Donate to Me
Quote:
Originally Posted by derboedi

Great to see you over here, Malcho! I have your rom for Galaxy S i9000 in pretty good memory. Looking forward to this project!

Thanks man.
I will do my best.

Sent from my AOSP on HammerHead using XDA Free mobile app
The Following User Says Thank You to malcho For This Useful Post: [ View ]
26th December 2014, 05:53 PM |#8  
7sen's Avatar
Senior Member
Flag KHOBAR
Thanks Meter: 280
 
1,237 posts
Join Date:Joined: Aug 2013
More
If pure and straight from google[emoji25] why you add cm camera and gallary. Keep it pure [emoji19]

[emoji51] wait for info
26th December 2014, 06:00 PM |#9  
malcho's Avatar
OP Senior Member
Flag Sarajevo
Thanks Meter: 3,976
 
3,509 posts
Join Date:Joined: Aug 2010
Donate to Me
Quote:
Originally Posted by 7sen

If pure and straight from google[emoji25] why you add cm camera and gallary. Keep it pure [emoji19]

[emoji51] wait for info

I had to add some things i like

Sent from my AOSP on HammerHead using XDA Free mobile app
The Following 2 Users Say Thank You to malcho For This Useful Post: [ View ]
26th December 2014, 08:46 PM |#10  
pachangaz's Avatar
Junior Member
Flag Guadalajara
Thanks Meter: 2
 
22 posts
Join Date:Joined: Nov 2012
More
very good project, I would like to learn as you go changing the rom, so you'll have my full attention, some tutorial you refer me which programs I need, thanks in advance.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes