/android_device_jsr_d10f

Android device configuration for the JSR D10F (HighScreen Boost IIse, MSM8226)

Primary LanguageC++

Device tree for JSR D10F (msm8228)

--------------------------
ROM for JSR D10F (HighScreen Boost 2 SE)

Kernel based on CAF AU_LINUX_ANDROID_KK_3.5.04.04.04.003 (2015-03-06)

--------------------------
Install Ubuntu 14.04 x64

sudo apt-get update

sudo apt-get install numlockx
sudo apt-get install schedtool
sudo apt-get install p7zip-rar p7zip-full
sudo apt-get install device-tree-compiler
sudo apt-get install xmlstarlet
sudo apt-get install zlib1g-dev

sudo apt-get install gcc-4.7
sudo apt-get install openjdk-7-jdk
sudo apt-get install dpkg-dev

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 tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

--------------------------
# Install repo tool:
sudo apt-get install curl
mkdir ~/bin/
sudo curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
echo 'PATH=~/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

--------------------------
# Fetch the sources:
mkdir ~/cm12.1
cd ~/cm12.1
git config --global user.email "user@gmail.com"
git config --global user.name "github_account"
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1
mkdir -p .repo/local_manifests
wget https://raw.github.com/S-trace/android_device_jsr_d10f/cm-12.1/jsr_d10f.xml -O .repo/local_manifests/jsr_d10f.xml
repo sync

--------------------------
# Generate keys (without password):
cd ~/cm12.1
mkdir -p vendor/jsr/security/
development/tools/make_key vendor/jsr/security/releasekey '/CN=Your Name'
development/tools/make_key vendor/jsr/security/media '/CN=Your Name'
development/tools/make_key vendor/jsr/security/platform '/CN=Your Name'
development/tools/make_key vendor/jsr/security/shared '/CN=Your Name'
development/tools/make_key vendor/jsr/security/superuser '/CN=Your Name'
development/tools/make_key vendor/jsr/security/testkey '/CN=Your Name/'

--------------------------
# Update OTA configuration:
cd ~/cm12.1
# Dump public key:
source build/envsetup.sh
lunch cm_d10f-userdebug
mka system/core/libmincrypt/tools
java -jar out/host/linux-x86/framework/dumpkey.jar vendor/jsr/security/cm-13.0/releasekey.x509.pem
# Edit configuration:
nano device/jsr/d10f/overlay/packages/apps/OpenDelta/res/values/config.xml
# Edit OTA server URLs (url_*) and replace my OTA key in inject_signature_keys by your key (dumped by dumpkey.jar)

--------------------------
# Build ROM:
cd ~/cm12.1
source build/envsetup.sh
brunch cm_d10f-userdebug