FORUMS

3D Printable Mobile Microscope? Nexus 7 Discontinued – XDA TV

The Nexus 7 2013 has been discontinued on the Google Store! That and … more

Which Lockscreen Security Type Do You Use?

From pattern locks to the controversial face unlock, there are a number of different ways you … more

Xposed 3.0 Alpha 3 Released

A new alpha for the Xposed framework is out and brings several bug fixes. You’ll only need to flash … more

XDA Recap: This Week In Android (Apr 18 – 25)

Here in the digital XDA newsroom, we spend our days pouring over an average of … more
Post Reply Subscribe to Thread Email Thread

[ROM / Build Guide][Flo/Deb] - Pure AOSP 5.0.2_r1 Build LRX22G

7th October 2013, 11:43 PM |#1  
scrosler's Avatar
OP Recognized Developer
Flag Fargo
Thanks Meter: 61,223
 
Donate to Me
More
This is a PURE AOSP ROM with no mods or enhancements.



This thread is about learning to build your own ROM following the instructions in post #2. The ROM posted in this thread is for example output. Feel free to download and use the ROMS @GROGG88 and I build! Feel free to try and build your own. We are here to help!





Screenshot is actual wallpaper but launcher is Nova and Gapps have been installed.

Things you need to know or do before flashing....
  • Must have TWRP 2.8.1.0+!
  • Must have 4.0.4 Boot loader from latest Preview build. If not its attached. Reboot to bootloader and run the batch file that says update bootloader.
  • Copy ROM to storage
  • Once bootloader is updated choose boot to recovery
  • If you want Root then flash SuperSU from HERE!
  • Profit!
  • All new posts start HERE!



Updates / Post ROM Release Info
  • All Functions are a go at this time!
  • If you cant see your internal storage look at THIS POST for fix by @freakzapster
  • Troubleshooting: If you have any of the following issues: Status bar not showing up, WiFi acting wonky, Gapps F/C, cant obtain root, etc. You should reflash a factory image to reformat.





Build Info
  • Build: LRX22G
  • Build Version: 5.0.2_r1
  • Build date: 1/17/2017


Quick Change Log
  • 1/17 - Updated build with official 5.0.2 Binaries. Fixed Browser "Settings" crash.
  • 12/19 - Updated my Flo builds to Android 5.0.2_r1
  • 12/9 - Updated my Flo build. Will not be doing a Deb Build any more.
  • 12/2 @GROGG88 has updated his builds. I have not! I will update tomorrow. I did however get thefactory stock rooted ROM up HERE!
  • 11/18 - @GROGG88 and I have joined forces to create two ROMS! I will be creating PURE AOSP ROMS and he will be creating Modified ROMS with many useful features! Each ROM can als be user built because all commits are shared in post #2!!!
  • 11/15 - B8 - Updated the 5.0.0_r6. Deb is only using preview binaries due to lack of final binary files.
  • 11/14 - B7 - Updated the 5.0.0_r5. Deb is only using preview binaries due to lack of final binary files.
  • 11/10 - B6 - File system install instead of block install, Added Google Location Services to framework, Fixed a root issue that couple DEB users were having
  • 11/9 - B5 - Changed wallpaper again. Fixed stock recovery at source level (Thanks to @Gnome and @GROGG88)
  • 11/8 - B4 - Changed wallpaper to android 5 Wallpaper, fixed reverting to stock recovery (No need for save-recovery.zip), pre-rooted boot.img (No need for extra boot.img!)
  • 11/7 - B3 - Removed it. Bad files. Reverted back to Build 2.
  • 11/5 - B2 -- Fixed MTP bug that google has left in every version of AOSP, made ROM recovery flashable and added 2 zips to the OP
  • 11/4 - B1 - Update to 5.0.0_r2. PC install via fastboot


Additional Downloads
  • Root by @Chainfire HERE!
  • Gapps for Lollipop HERE! There may be others so shop around!
  • Stericson's Busybox in flashable zip format is attached! Thanks to @Stericson for the binaries!


Quote:

Quote:



@GROGG88's Special Builds are HERE!

My plain builds are HERE!!




Please hit Thanks! It just as easy as hitting Download!

Attached Files
File Type: zip Bootloader-4.0.4-Flo.zip - [Click for QR Code] (1.46 MB, 7532 views)
File Type: zip BusyBox-1.22.1-Stericson.zip - [Click for QR Code] (730.0 KB, 12174 views)
Last edited by scrosler; 17th January 2015 at 10:56 PM.
The Following 406 Users Say Thank You to scrosler For This Useful Post: [ View ]
 
 
7th October 2013, 11:46 PM |#2  
scrosler's Avatar
OP Recognized Developer
Flag Fargo
Thanks Meter: 61,223
 
Donate to Me
More
Ubuntu 14.04 Set up and Build Guide

Updated 11/05/2014

Feel free to ask any questions about the build process. Do not ask questions about Ubuntu!

This guide assumes the following
  1. Have Ubuntu 14.04 setup, fully operation, and up to date. Hard Machine or Virtual, makes no difference. Must meet the minimum specs for compiling. Info from Google HERE
  2. Understand terminal command line entry as this is all command line processors.
  3. You are not here to ask for help with Linux, only the Android build process!


Add Java
Code:
sudo apt-get install openjdk-7-jdk

Add Build tools (Adds the required packages at the time of this posting)
Code:
sudo apt-get install git gnupg flex bison gperf build-essential \
  zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386

Add Repo command (Syncs Google Repository with your local machine)
Code:
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

Add bin folder to path for repo command (After you do this close Terminal and re-open to institute changes (easy way))
Code:
sudo gedit .bashrc
export PATH=~/bin:$PATH <-(add to end of bashrc)
Identify Yourself to the Repo (One day you may make commits so think about that when choosing your info!)
Code:
git config --global user.email "you@youremail.com"
git config --global user.name "yourpreferredusername"
Synch Repo (Download source... Sit back and grab a pop and a sandwich...)
Code:
mkdir ~/AOSP
cd ~/AOSP
repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.1_r1
repo sync
Note: I use AOSP as my directory name. You can use what you want. You could use "aosp" or "Source" or "android" or "whateveryoulike"


Install proprietary binaries (Needed for things like GPS and Bluetooth, they are not Open Source like android) (Install proprietary binaries from here in the root of AOSP folder (or whatever you called yours))


Run envsetup.sh
Code:
source build/envsetup.sh
Choose Device
Code:
lunch
Build it!
Code:
make -j8 otapackage

See Build Notes and ramblings from me in post #3!
Last edited by scrosler; 3rd December 2014 at 07:00 AM.
The Following 81 Users Say Thank You to scrosler For This Useful Post: [ View ]
7th October 2013, 11:52 PM |#3  
scrosler's Avatar
OP Recognized Developer
Flag Fargo
Thanks Meter: 61,223
 
Donate to Me
More
Notes
  • The ROM build will be a PURE AOSP ROM with no Gapps at all. See links in post #1 to PA Gapps for a good set of Google Apps!
  • The ROM will also have terminal level SU. So becareful! In other words its fully rooted and could be open to vulnerabilities. Flash your favorite Superuser Package if you need it. I dont. I recommend SuperSU by @Chainfire HERE. Download the flashable zip and flash after you flash ROM.
  • make -j8 is the number of worker threads that the make command will use to build. To me 8 is a safe number for an i7 processors. For an i5 Processor I would use -j4. I have experimented with a multitude of different values and it seems to me that the number of logical cores is also the best number to use with the make command.
  • Google recommends between -j24 and -j32 (to me that is excessive and causes my machine to error out every once in a while). Keep in mind the higher you push the more load the CPU will undertake. If your O/C'ing real hard you better have some nice cooling! I had to cut back OC on my 4770k from 4.65 to 4.4 with a Corsair H60 cooler just so it wouldn't over heat. When in doubt start low.
  • My i7 machine clocked at 4.4 and 16 gigs of RAM on a Samsung 840 Pro 256 Gig SSD take about 38 minutes to build the entire ROM.
  • With a 50 Meg download link it took maybe 30 to 45 minutes to sync the repo.

Changes from Source
Quote:

Quote:

Check out @GROGG88 patches HERE!

Last edited by scrosler; 10th December 2014 at 07:06 AM.
The Following 51 Users Say Thank You to scrosler For This Useful Post: [ View ]
8th October 2013, 12:49 AM |#4  
mpmilestogo's Avatar
Senior Member
Flag Union City California
Thanks Meter: 65
 
More
Quote:
Originally Posted by Mindrocket

Right on Scott! Can't wait to give it a spin.

---------- Post added at 07:37 PM ---------- Previous post was at 07:15 PM ----------

Security settings crashes says"unfortunately settings has stopped" .

I think its the same error some other folks are facing. Rascarlo and a few others would release their AOSP builds but it appears this blocks them from releasing. Read this over on a few pages on a few ROMs in this neighborhood.
The Following User Says Thank You to mpmilestogo For This Useful Post: [ View ]
8th October 2013, 01:05 AM |#5  
scrosler's Avatar
OP Recognized Developer
Flag Fargo
Thanks Meter: 61,223
 
Donate to Me
More
Quote:
Originally Posted by whoamanwtf

I have faith in you making it work :P

Can anyone post a snippet of logcat during the crash? Particular the actually error itself.

Place it in the [CODE] box if you can.

If not I get out of work in a few hours and can look then...
The Following 6 Users Say Thank You to scrosler For This Useful Post: [ View ]
8th October 2013, 02:16 AM |#6  
scrosler's Avatar
OP Recognized Developer
Flag Fargo
Thanks Meter: 61,223
 
Donate to Me
More
Quote:
Originally Posted by mjwhirly

Nice to see you venturing into new projects. Most people start with CM since its not to hard to compile, but you did it the opposite way which will make all the difference in the end

Sent from my LG-D800 using XDA Premium 4 mobile app

IMHO: If you dont start with the basics you will end in a mess
The Following 7 Users Say Thank You to scrosler For This Useful Post: [ View ]
8th October 2013, 07:30 AM |#7  
Senior Member
Thanks Meter: 42
 
More
got to try this as your clean rom works well iam sure this one will be great also
keep up the great work to you and who helps you.

Where would i start to try baking my own cake .. i use archlinux what programs needed to do a build
The Following User Says Thank You to rocksyjj For This Useful Post: [ View ]
8th October 2013, 07:37 AM |#8  
scrosler's Avatar
OP Recognized Developer
Flag Fargo
Thanks Meter: 61,223
 
Donate to Me
More
Quote:
Originally Posted by rocksyjj

got to try this as your clean rom works well iam sure this one will be great also
keep up the great work to you and who helps you.

Where would i start to try baking my own cake .. i use archlinux what programs needed to do a build

Never used archlinux but I used Ubunutu 13.04

Here is where I started: http://forum.xda-developers.com/show....php?t=2224142

(I hate nano so used gedit of course. )

But at the last two shell commands i didint use the AOKP tree I used the AOSP base so you want to look here for that: http://source.android.com/source/downloading.html


Then follow the instructions from that page on forward until you have yourself a ROM


Also pay attention to the blurb about proprietary binaries

Quote:

Obtaining proprietary binaries

The Android Open-Source Project can't be used from pure source code only, and requires additional hardware-related proprietary libraries to run, specifically for hardware graphics acceleration.
Official binaries for the supported devices can be downloaded from Google's Nexus driver page, which add access to additional hardware capabilities with non-Open-Source code.
When building the master branch for a device, the binaries for the most recent numbered release or with the most recent date are the ones that should be used.

There is a link for the Nexus binaries in that blurb. Make sure you install them before building and you are good.
Last edited by scrosler; 8th October 2013 at 07:39 AM.
The Following 5 Users Say Thank You to scrosler For This Useful Post: [ View ]
8th October 2013, 10:12 AM |#9  
scrosler's Avatar
OP Recognized Developer
Flag Fargo
Thanks Meter: 61,223
 
Donate to Me
More
Alright then...

Build 20131008.010041 up!


Changes
  • Re-synced repo for 2013/10/08
  • Fixed Settings -> Security F/C
  • Changed SU to SuperSU


Also can I have some people rate the thread 5 stars... The Nexus 7 FHD troll is at it again. He is going around rating my threads, and others, 1 star.

Any help with that would be appreciated. Damn trolls, lol!
The Following 12 Users Say Thank You to scrosler For This Useful Post: [ View ]
8th October 2013, 10:18 AM |#10  
Senior Member
Thanks Meter: 49
 
More
Quote:
Originally Posted by scrosler

Alright then...

Build 20131008.010041 up!


Changes

  • Re-synced repo for 2013/10/08
  • Fixed Settings -> Security F/C
  • Changed SU to SuperSU


Also can I have some people rate the thread 5 stars... The Nexus 7 FHD troll is at it again. He is going around rating my threads, and others, 1 star.

Any help with that would be appreciated. Damn trolls, lol!

You fixed the security settings fc! Mind sharing how you managed to fix that?

Sent from my Nexus 7 using Tapatalk 4
The Following User Says Thank You to ktkr For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes