Skip to content

Instantly share code, notes, and snippets.

View afaneh92's full-sized avatar
😉
If you’re good at something, never do it for xda.

mohammad.afaneh92 afaneh92

😉
If you’re good at something, never do it for xda.
View GitHub Profile
# Place your up_param.bin.lz4 in the working directory
# Extract up_param.bin.lz4 to up_param.bin
unlz4 up_param.bin.lz4 up_param.bin
# make temp directory
mkdir param
cd param
tar xf ../up_param.bin
chmod 775 *
# make your change now
chmod 444 *
# Install the main build packages with this command:
sudo apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev repo python2
# Fix "python: command not found" on Ubuntu 22.04+, run "which python" to see the correct path
sudo ln -nsf /usr/bin/python2 /usr/bin/python
or
sudo ln -nsf /usr/bin/python2 /usr/local/bin/python
# OpenJDK 1.8 (Android 6.0+)