Today I'll show you how to build your AOSP rom from source for zerofltexx.
This trips your KNOX warranty counter!
Your warranty is now void.
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed.
I am not responsible for any damage that may happen to your device. Do this at your risk.
XDA-Developers.com and I are not responsible for any problem.
I am not responsible for any damage to hardware, objects, people, animals and / or data loss.
I'm not responsible for theft data or hacker's attacks.
I'm not responsible for system vulnerabilities.
I do not assume any responsibility, do this at your risk.
WHAT DO YOU NEED:
- 64 bit PC
- Ubuntu 16.04 (yes, you can use it in virtual machine)
- Good connection
- Patiente
- Brain
SETTING UP ENVIRORMENT
You need to install some packages to start to build your rom.
For install a package use "sudo apt-get install", after install write the package you want to install.
Install this packages in this order.
1.
2.
3.
Now you need to setup openjdk-8-jdk because it is not "fully supported".
Add this line to your bashrc
Reboot your pc.
CREATE DIRECTORIES
Now you need to create two directories, one for your rom source and the other one for download the "repo" binary and make it executable.
1.
# executable binary repo.
2.
# rom source code.
SETUP /bin FOLDER
1.
# inizialize and download repo.
2.
# become it executable.
You can check this by opening "~/.profile" with a text editor and verifying the following code exists (add it if it is missing):
# this will be setup bin folder for compiling.
INITIALIZE SOURCE REPOSITORY (I do this example for CyanogenMod)
1.
# go to the position where you want to download the source, that directory has been created before.
2.
# initialize repository, after -b write the branch that you want to download.
3.
# this starts to download repository, (it is about 13GB).
Reboot your pc.
LATEST DOWNLOAD
1.
# go inside you repository folder.
2.
# this will become ready for build, but wait, it's not ready yet.
3.
# now it downloads necessary files for build for zerofltexx.
4. Go inside /android/system/ and search for "kernel" forlder, if you dont have that create one.
5. Go inside ~/android/system/kernel/ and create "samsung" folder
6. Go inside ~/android/system/kernel/samsung/ and create "exynos7420" folder
6. Now download source code of kernel inside ~/android/system/kernel/samsung/exynos7420/
START BUILDING
1.
# go in root folder of your repository.
2.
# become repository ready for build.
3.
# cheack dependecies.
4.
# start building.
GET ZIP OF YOUR ROM
1.
where your rom is.
OPTIZIONAL: TURN ON CACHING FOR SPEED UP YOUR BUILD
1.
add this to your bashrc.
2.
where 50G is 50GB of cache.
Best regards,
Astrubale.
This trips your KNOX warranty counter!
Your warranty is now void.
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed.
I am not responsible for any damage that may happen to your device. Do this at your risk.
XDA-Developers.com and I are not responsible for any problem.
I am not responsible for any damage to hardware, objects, people, animals and / or data loss.
I'm not responsible for theft data or hacker's attacks.
I'm not responsible for system vulnerabilities.
I do not assume any responsibility, do this at your risk.
WHAT DO YOU NEED:
- 64 bit PC
- Ubuntu 16.04 (yes, you can use it in virtual machine)
- Good connection
- Patiente
- Brain
SETTING UP ENVIRORMENT
You need to install some packages to start to build your rom.
For install a package use "sudo apt-get install", after install write the package you want to install.
Install this packages in this order.
1.
HTML Code:
android-tools-adb android-tools-fastboot repo HTML Code:
bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop maven openjdk-8-jdk pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev HTML Code:
g++-multilib gcc-multilib lib32ncurses5-dev lib32readline6-dev lib32z1-dev Add this line to your bashrc
HTML Code:
export EXPERIMENTAL_USE_JAVA8=true CREATE DIRECTORIES
Now you need to create two directories, one for your rom source and the other one for download the "repo" binary and make it executable.
1.
HTML Code:
mkdir -p ~/bin 2.
HTML Code:
mkdir -p ~/android/system SETUP /bin FOLDER
1.
HTML Code:
curl http://ift.tt/1mQuHPR > ~/bin/repo 2.
HTML Code:
chmod a+x ~/bin/repo You can check this by opening "~/.profile" with a text editor and verifying the following code exists (add it if it is missing):
HTML Code:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi INITIALIZE SOURCE REPOSITORY (I do this example for CyanogenMod)
1.
HTML Code:
cd ~/android/system/ 2.
HTML Code:
repo init -u http://ift.tt/1nR8keD -b cm-13.0 3.
HTML Code:
repo sync Reboot your pc.
LATEST DOWNLOAD
1.
HTML Code:
cd ~/android/system/ 2.
HTML Code:
. build/envsetup.sh 3.
HTML Code:
breakfast zerofltexx 4. Go inside /android/system/ and search for "kernel" forlder, if you dont have that create one.
HTML Code:
cd ~/android/system/
mkdir -p ~/kernel/ HTML Code:
cd ~/android/system/kernel/
mkdir -p ~/samsung/ HTML Code:
cd ~/android/system/kernel/samsung/
mkdir -p ~/exynos7420/ START BUILDING
1.
HTML Code:
cd ~/android/system/ 2.
HTML Code:
. build/envsetup.sh 3.
HTML Code:
breakfast zerofltexx 4.
HTML Code:
brunch zerofltexx GET ZIP OF YOUR ROM
1.
HTML Code:
cd ~/android/system/out/target/product/zerofltexx/ OPTIZIONAL: TURN ON CACHING FOR SPEED UP YOUR BUILD
1.
HTML Code:
export USE_CCACHE=1 2.
HTML Code:
android/system/prebuilts/misc/linux-x86/ccache/ccache -M 50G Best regards,
Astrubale.
from xda-developers http://ift.tt/2b3q34C
via IFTTT
Aucun commentaire:
Enregistrer un commentaire