Skip to content

Somewhat different take on android's root problems

Notifications You must be signed in to change notification settings

etherwvlf/eclipse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Eclipse

CHECK JAVA:

java -version

INSTALL adb AND fastboot:

wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip

unzip platform-tools-latest-linux.zip -d ~

INSTALL PREREQUISITES:

apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

ADD adb AND fastboot to PATH(EDIT .bashrc AND ADD):

============================================

if [ -d "$HOME/platform-tools" ] ; then

PATH="$HOME/platform-tools:$PATH"

fi

if [ -d "$HOME/bin" ] ; then

PATH="$HOME/bin:$PATH"

fi

============================================

INIT REPO:

source ~/.bashrc

mkdir -p ~/bin

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

chmod a+x ~/bin/repo

CREATE NEW BUILD ENVIRONMENT:

mkdir newbuild

cd newbuild

repo init -u https://github.com/etherwvlf/eclipse.git -b cm-14.1

SYNC SOURCES:

time repo sync

CREATE RELEASE KEYS FROM BUILD ROOT(DONT USE PASSWORD WHEN PROMPTED):

subject='/C=US/ST=Texas/L=El Paso/O=Pa!N/OU=Eclipse/CN=Eclipse/[email protected]'

mkdir ~/.android-certs

for x in releasekey platform shared media; do ./development/tools/make_key ~/.android-certs/$x "$subject"; done

TO BUILD:

SETUP COMPILER:

export USE_CCACHE=1

ccache -M 50G

export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx8G"

PREP DEVICE SPECIFIC:

source build/envsetup.sh

breakfast jfltexx

EXTRACT PROP BLOBS(ENABLE ADB ROOT ACCESS ON DEVICE):

cd device/samsung/jfltexx/

./extract-files.sh

REINIT ENVIRONMENT AND BUILD:

source build/envsetup.sh

croot

export WITH_SU=true

time brunch jfltexx && killall java

OR BUILD OFFICIAL RELEASE:

source build/envsetup.sh

breakfast jfltexx

croot

export WITH_SU=true

time mka target-files-package dist && killall java

AFTER CONSTRUCTION SIGN APKS:

croot

./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs out/dist/*-target_files-*.zip signed-target_files.zip

GENERATE INSTALL BUNDLE:

./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey --block --backup=true signed-target_files.zip signed-ota_update.zip

OR IN ONE GO - SIGN APKS AND BUNDLE:

./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs out/dist/*-target_files-*.zip signed-target_files.zip && ./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey --block --backup=true signed-target_files.zip signed-ota_update.zip

About

Somewhat different take on android's root problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published