Physwizz Collection
4.09K subscribers
38 photos
651 files
809 links
Guides, kernels and hints for the Samsung a-series
Download Telegram
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
Channel photo updated
QwizzROM-a20-v1.0
My first ROM built with CRB
Just stock OneUI a205yn
@physwizz

https://mega.nz/file/V880FKoS#jkU0Flz7yiU5A1MA24TpWxCaBIHxrcKVvJUiFa4qzP0
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_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
fast_debloat.txt
5 KB
Debloat list for QwizzROM-a20-v2.0
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
dtbo-a20-stock-u4.zip
253.8 KB
Stock dtbo.img for U4 binary
dtbo-a20-stock-s6.zip
250.3 KB
Stock dtbo.img for S6 binary
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
โค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
To find out what kernel is in the TWRP
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
Add boot.img or recovery.img and tap unpackimg.sh
dtbo-installer.zip
178 KB
How to Install Stock Kernel & dtbo

1. Extract boot.img and dtbo.img from the ap section of your firmware.
2. Insert dtbo.img into the dtbo-installer.
3. Reboot to recovery.
4. Flash boot.img into the boot partition.
5. Flash the dtbo-installer

@physwizz
Thanks to @topser for the zip