This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
KERNEL_TOOLS=/home/daniel/android/lineage-21.0/prebuilts/kernel-build-tools/linux-x86/bin/ | |
CLANG_PATH=/home/daniel/android/lineage-21.0/prebuilts/clang/host/linux-x86/clang-r487747c/bin/ | |
export PATH="$KERNEL_TOOLS:$CLANG_PATH:$PATH" | |
TARGET=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First you'll need to clone acdb_extract. I used the one by J510-Dev which is originally based on the one by luca020400. | |
git clone https://github.com/J510-Dev/acdb_extract | |
Then, as the README says you must generate the acdb header. For Qualcomm devices? The stock audio hal would be audio.primary.msm8996.so which is found on my stock ROM from /system/lib/hw/audio.primary.msm8996.so which I could just copy into the acdb_get folder... so for example, I'd use this: | |
./generate_acdb_data.sh audio.primary.msm8996.so | |
which will generate a file called acdb_data.h which is needed for the next step. | |
Since acdb_extract doesn't require being built in the AOSP environment? You can just build it using... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First go here: | |
https://wiki.codeaurora.org/xwiki/bin/QAEP/release | |
This site gives information about all msm soc release details with tag + android version | |
Search your msm here.. Check the latest one and look for correct android version and mark that tag. | |
Now open one of the following links (dependent on your linux kernel version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Tested with Samsung Galaxy Note 3 (your mobile phone may have different paths and partitions!!) | |
#check adb connection... | |
adb devices | |
#copy the boot.img image to the mobile phone (in this case, the root of the SD Card) | |
adb push <path_to_your_boot.img_extracted_from_custom_rom_zip>/boot.img /external_sd/boot.img | |
#open shell | |
adb shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install ccache: | |
In Arch: | |
$ sudo pacman -S ccache | |
Or Ubuntu: | |
$ sudo apt-get install ccache |