Skip to content

Instantly share code, notes, and snippets.

View muralivijay's full-sized avatar
💭
404 not found right now

Muralidharan muralivijay

💭
404 not found right now
  • TRICHY, TAMILNADU.INDIA
  • 20:04 (UTC +05:30)
View GitHub Profile
@danielml3
danielml3 / kernel-build.sh
Last active November 14, 2024 09:04
Build a QCOM GKI kernel with external modules and generate the module.load files
#!/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
@ThEMarD
ThEMarD / gist:0d6041fd38d6147e99130307e094f807
Last active June 2, 2024 16:24
How to use acdb_get & get_snd_names
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...
@DD3Boh
DD3Boh / gist:6c51fd3c5f91b1042e956771483714de
Created July 19, 2017 14:59
How to merge a newer CAF tag in an android kernel
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)
@silvae86
silvae86 / script.sh
Last active June 20, 2023 03:40
Flashing a boot.img (Kernel, for example) in an Android mobile phone via adb shell
#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
@SunRain
SunRain / ccache_help
Created January 14, 2012 02:12 — forked from adumont/ccache_help
Use ccache to reduce build time
Install ccache:
In Arch:
$ sudo pacman -S ccache
Or Ubuntu:
$ sudo apt-get install ccache