Building with Clang version 4
Some phones need clang to build the kernel instead of gcc
Follow the instructions in README_kernel.txt
Download the correct toolchain
Here are a few examples
Note:
For Mediatek you will need to apply the strcpy patch
https://github.com/physwizz/a22/commit/5b705dfa2e98961d3b72b0ba32ac77884e9a42e0
Build Method #1 Clang
You will need 3 toolchains
1. Cross-compile (gcc)
https://github.com/physwizz/toolchain_cross-compile
Or
https://github.com/physwizz/compiler
I put it here
/home/<user>/gcc
2. Clang
https://github.com/physwizz/toolchain_clang
Or
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+archive/android-10.0.0_r3/clang-r353983c.tar.gz
I put it here
/home/<user>/clang
3. Clang-triple
https://github.com/physwizz/toolchain_clang-triple
Or
https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
I put it here.
/home/<user>/gcc-linaro
Edit Makefile with these
CROSS_COMPILE=/home/<user>/gcc/bin/aarch64-linux-android-
CC=/home/<user>/clang/bin/clang
CLANG_TRIPLE=
/home/<user>/gcc-linaro/aarch64-linux-gnu-
To build I used these commands
$ make clean && make mrproper
$ export ANDROID_MAJOR_VERSION=q
$ export ARCH=arm64
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y <your-device_defconfig
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y
Output can be found in
home/<user>/out
Build Method #2 Proton-Clang
Download Proton-Clang
https://github.com/physwizz/Toolchains-for-Eureka
I put it here.
/home/<user>/toolchains/proton-clang
Don't edit Makefile
Add proton-clang to your path
export PATH="$HOME/toolchains/proton-clang/bin:$PATH"
Build with
$ make clean && make mrproper
$ export ANDROID_MAJOR_VERSION=r
$ export ARCH=arm64
$ export CC=clang
$ export CROSS_COMPILE=aarch64-linux-gnu-
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y <your-device>_defconfig
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y
Output can be found in
home/<user>/out
If you get a python error
Change "python" to "python3" in Makefile
Mediatek
Patch for strcpy error
git remote add a125 git@github.com:physwizz/A125M.git
git fetch --all
git cherry-pick 3aea117fb57d4eba3e592cc953054b98256a31c6
git push origin main -f
For clang errors
https://github.com/kdrag0n/proton-clang
@physwizz
Some phones need clang to build the kernel instead of gcc
Follow the instructions in README_kernel.txt
Download the correct toolchain
Here are a few examples
Note:
For Mediatek you will need to apply the strcpy patch
https://github.com/physwizz/a22/commit/5b705dfa2e98961d3b72b0ba32ac77884e9a42e0
Build Method #1 Clang
You will need 3 toolchains
1. Cross-compile (gcc)
https://github.com/physwizz/toolchain_cross-compile
Or
https://github.com/physwizz/compiler
I put it here
/home/<user>/gcc
2. Clang
https://github.com/physwizz/toolchain_clang
Or
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+archive/android-10.0.0_r3/clang-r353983c.tar.gz
I put it here
/home/<user>/clang
3. Clang-triple
https://github.com/physwizz/toolchain_clang-triple
Or
https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
I put it here.
/home/<user>/gcc-linaro
Edit Makefile with these
CROSS_COMPILE=/home/<user>/gcc/bin/aarch64-linux-android-
CC=/home/<user>/clang/bin/clang
CLANG_TRIPLE=
/home/<user>/gcc-linaro/aarch64-linux-gnu-
To build I used these commands
$ make clean && make mrproper
$ export ANDROID_MAJOR_VERSION=q
$ export ARCH=arm64
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y <your-device_defconfig
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y
Output can be found in
home/<user>/out
Build Method #2 Proton-Clang
Download Proton-Clang
https://github.com/physwizz/Toolchains-for-Eureka
I put it here.
/home/<user>/toolchains/proton-clang
Don't edit Makefile
Add proton-clang to your path
export PATH="$HOME/toolchains/proton-clang/bin:$PATH"
Build with
$ make clean && make mrproper
$ export ANDROID_MAJOR_VERSION=r
$ export ARCH=arm64
$ export CC=clang
$ export CROSS_COMPILE=aarch64-linux-gnu-
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y <your-device>_defconfig
$ make -C $(pwd) O=$(pwd)/out KCFLAGS=-w CONFIG_SECTION_MISMATCH_WARN_ONLY=y
Output can be found in
home/<user>/out
If you get a python error
Change "python" to "python3" in Makefile
Mediatek
Patch for strcpy error
git remote add a125 git@github.com:physwizz/A125M.git
git fetch --all
git cherry-pick 3aea117fb57d4eba3e592cc953054b98256a31c6
git push origin main -f
For clang errors
https://github.com/kdrag0n/proton-clang
@physwizz
GitHub
strcpy patch ยท physwizz/a22@5b705df
Contribute to physwizz/a22 development by creating an account on GitHub.
QwizzROM-a20-v1.0
My first ROM built with CRB
Just stock OneUI a205yn
@physwizz
https://mega.nz/file/V880FKoS#jkU0Flz7yiU5A1MA24TpWxCaBIHxrcKVvJUiFa4qzP0
My first ROM built with CRB
Just stock OneUI a205yn
@physwizz
https://mega.nz/file/V880FKoS#jkU0Flz7yiU5A1MA24TpWxCaBIHxrcKVvJUiFa4qzP0
mega.nz
1.9 GB file on MEGA
physwizz_kernel_a30{stable}.zip
13.2 MB
physwizz a30 stable
@physwizz
Tester @krithik
-OneUI or GSI
-Most securities disabled
-CPU Governors: conservative, ondemand, userspace, powersave, interactive, performance.
-Interactive is default governor
-SE linux enforcing
-CPU overclocked and underclocked
-Big: 312 - 2080
-Little: 208 - 1690
-GPU: 343 - 1300
-Extended battery life
-doesn't need Magisk
But if you use magisk
Works with 19.3 - 21.4
DON'T USE HIDE WITH MAGISK 22
https://github.com/physwizz?tab=repositories
@physwizz
Tester @krithik
-OneUI or GSI
-Most securities disabled
-CPU Governors: conservative, ondemand, userspace, powersave, interactive, performance.
-Interactive is default governor
-SE linux enforcing
-CPU overclocked and underclocked
-Big: 312 - 2080
-Little: 208 - 1690
-GPU: 343 - 1300
-Extended battery life
-doesn't need Magisk
But if you use magisk
Works with 19.3 - 21.4
DON'T USE HIDE WITH MAGISK 22
https://github.com/physwizz?tab=repositories
physwizz_kernel_a40_1.05{stable}.zip
12.9 MB
physwizz a40 stable
@physwizz
-OneUI or GSI
-Most securities disabled
-CPU Governors: conservative, ondemand, userspace, powersave, interactive, performance.
-Interactive is default governor
-SE linux enforcing
-CPU overclocked and underclocked
-Big: 312 - 2080
-Little: 208 - 1690
-GPU: 343 - 1300
-Extended battery life
-Works with Magisk 19.3 - 21.4
-Spectrum support enabled
https://github.com/physwizz?tab=repositories
@physwizz
-OneUI or GSI
-Most securities disabled
-CPU Governors: conservative, ondemand, userspace, powersave, interactive, performance.
-Interactive is default governor
-SE linux enforcing
-CPU overclocked and underclocked
-Big: 312 - 2080
-Little: 208 - 1690
-GPU: 343 - 1300
-Extended battery life
-Works with Magisk 19.3 - 21.4
-Spectrum support enabled
https://github.com/physwizz?tab=repositories
QwizzROM-a20-v2.0
Debloated OneUI ROM
Extras:
Battery charge limit
Clean Master
Coloured battery icon ๐
ES file explorer
HKtweaks
SimpleReboot
@physwizz
https://mega.nz/file/Q4M3xAxB#c30dqGtNptS8jf5R_qrPEvXkEIWyb93ddAESuSpVpLs
Debloated OneUI ROM
Extras:
Battery charge limit
Clean Master
Coloured battery icon ๐
ES file explorer
HKtweaks
SimpleReboot
@physwizz
https://mega.nz/file/Q4M3xAxB#c30dqGtNptS8jf5R_qrPEvXkEIWyb93ddAESuSpVpLs
mega.nz
1.63 GB file on MEGA
QwizzROM-a20-v2.2
Debloated OneUI ROM
Extras:
Battery charge limit
Clean Master
Coloured battery icon ๐
ES file explorer
HKtweaks
SimpleReboot
Includes physwizz kernel & magisk 20.4
Note:
This ROM contains everything I like.
If you want something else, I can show you how to build your own.
@physwizz
https://mega.nz/file/Y8kQBBoA#a9Y1bkfiJSlsLegAfnGnCxHiWgab8vdNVDPG-lqOEc4
Debloated OneUI ROM
Extras:
Battery charge limit
Clean Master
Coloured battery icon ๐
ES file explorer
HKtweaks
SimpleReboot
Includes physwizz kernel & magisk 20.4
Note:
This ROM contains everything I like.
If you want something else, I can show you how to build your own.
@physwizz
https://mega.nz/file/Y8kQBBoA#a9Y1bkfiJSlsLegAfnGnCxHiWgab8vdNVDPG-lqOEc4
mega.nz
1.64 GB file on MEGA
โค1
practice.zip
6.5 MB
Making your own version of QwizzROM
No PC needed
1. Download QwizzROM-a20-v2.2 (below) and rename it.
2. Download zarchiver from appstore
3. Unzip the 2 practice apps (attached)
4. Use zarchiver to copy the 2 apps and paste them into the ROM zip file at system/system/priv-app.
5. Delete any apps you don't want from
system/system/priv-app
And
system/system/app
6. Flash the new ROM
7. Enjoy
@physwizz
https://mega.nz/file/Y8kQBBoA#a9Y1bkfiJSlsLegAfnGnCxHiWgab8vdNVDPG-lqOEc4
No PC needed
1. Download QwizzROM-a20-v2.2 (below) and rename it.
2. Download zarchiver from appstore
3. Unzip the 2 practice apps (attached)
4. Use zarchiver to copy the 2 apps and paste them into the ROM zip file at system/system/priv-app.
5. Delete any apps you don't want from
system/system/priv-app
And
system/system/app
6. Flash the new ROM
7. Enjoy
@physwizz
https://mega.nz/file/Y8kQBBoA#a9Y1bkfiJSlsLegAfnGnCxHiWgab8vdNVDPG-lqOEc4
To find out what kernel is in the TWRP
1. Reboot to recovery
2. Go to Advanced --> Terminal
3. Type uname -a
@physwizz
1. Reboot to recovery
2. Go to Advanced --> Terminal
3. Type uname -a
@physwizz
AIK.Mobile.Installer.zip
14.2 MB
Install from magisk modules
Use rootexplorer to access
/data/local/AIK-MOBILE
Add boot.img or recovery.img and tap unpackimg.sh
Exit the folder and return to see the files.
Edit the files (eg to add a new Image rename Image to boot.img-zImage and insert in split-image folder)
Tap repackimg.sh
Use rootexplorer to access
/data/local/AIK-MOBILE
Add boot.img or recovery.img and tap unpackimg.sh
Exit the folder and return to see the files.
Edit the files (eg to add a new Image rename Image to boot.img-zImage and insert in split-image folder)
Tap repackimg.sh
dtbo-installer.zip
178 KB
