Physwizz Collection
4.09K subscribers
38 photos
651 files
809 links
Guides, kernels and hints for the Samsung a-series
Download Telegram
physwizz_M236b-T-s4-v2.zip
20.8 MB
physwizz M236B kernel
Android 13 S4 version 2
Qualcomm SM7225 Snapdragon 750G 5G
For OneUI 5.1
(May also work for GSIs)

Samsung securities disabled
Defex
Dm_verity
Integrity


Bugs:
Doesn't boot on OneUI
Sound issue in GSIs

Installation
https://t.iss.one/physwizz2/454

Kernel source code
https://github.com/physwizz?tab=repositories

========================
A12s Channel:  https://t.iss.one/a127f_res
A12s group:  https://t.iss.one/a12schat
Physwizz group: https://t.iss.one/physwizz3
Physwizz Channel:  https://t.iss.one/physwizz2

@physwizz
physwizz_A032m-u2-S-kernel.zip
9.5 MB
A032m kernel u2
Unisoc SC9863A
Android 12

For testing


Installation
https://t.iss.one/physwizz2/454

===========================
A12s Channel:  https://t.iss.one/a127f_res
A12s group:  https://t.iss.one/a12schat
Physwizz group: https://t.iss.one/physwizz3
Physwizz Channel:  https://t.iss.one/physwizz2

@physwizz
Building a Kernel for Beginners
=========================
Summary
1. Download source code
2. Expand to folder
3. Push to github.com
4. Modify (add changes and cherry-picks)
5. Push changes to github.com
6. Compile kernel
7. Add Image file to boot.img or add to zip installer

Requirements
---------------------
You need a PC with Linux
I use mint mate on virtual box external SSD from my iMac

0. Setup Linux
---------------------

Open terminal

sudo apt update
sudo apt upgrade
sudo apt-get install git-all aptitude make gcc
sudo apt install python-is-python3 build-essential openssl pip

# Increase linux swapfile size (works best on SSD)

sudo swapoff -a

sudo dd if=/dev/zero of=/swapfile bs=1G count=8
sudo mkswap /swapfile
sudo swapon /swapfile

free -m

# install python 2
pip install virtualenv

export PATH=$PATH:/home/<your@name>/.local/bin

apt install python3-virtualenv

sudo apt install python2.7
sudo apt install openssl
sudo aptitude install libssl-dev

sudo apt-get install libtinfo5

# install repo

mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo

1. Download the Source Code
-------------------------------------------- (https://opensource.samsung.com/main)
Search for your device

Extract the kernel.tar.7z
extract into "Kernel" folder

2. Setup toolchains
------------------------------
Follow the instructions in README_kernel.txt
Also look at build_kernel.sh and makefile for toolchain information
(Search for CROSS_COMPILE for gcc and CC for clang)

Search github.com and download the correct toolchains if they're not already in the toolchain folder


Here are a few examples

https://github.com/physwizz/toolchain_cross-compile
Or
https://github.com/physwizz/compiler
Or
https://github.com/physwizz/A217m-S-SB/tree/main/toolchain

You might need to put gcc toolchain outside the kernel folder
Eg
/home/<user>/toolchains


3. Set up GitHub
------------------------
See this guide
https://t.iss.one/physwizz2/10

Create new repo on GitHub.com
Like this one
https://github.com/physwizz/New
Copy the text section "or create a new repository on the command line"
Something like this

echo "# New" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:physwizz/New.git
git push -u origin main
Open Terminal In The Kernel Folder

Paste the section from github
Type
git add --all
git commit -a
Type "initial"
Ctrl o
Ctrl x
git push origin main -f

4. Kernel Building
---------------------------

1. open the defconfig file with text editor located at
/home/<user>/Kernel/arch/arm64/configs/<your_device>_defconfig

You can make a copy of this file and call it original_defconfig

Make these changes

CONFIG_LOCALVERSION="-<user>"

# CONFIG_LOCALVERSION_AUTO is not set
# CONFIG_CC_STACKPROTECTOR_STRONG is not set

# CONFIG_SECURITY_DEFEX is not set

# CONFIG_PROCA is not set
# CONFIG_DM_VERITY is not set

# CONFIG_INTEGRITY is not set
# CONFIG_INTEGRITY_SIGNATURE is not set
# CONFIG_INTEGRITY_ASYMMETRIC_KEYS is not set
# CONFIG_INTEGRITY_AUDIT is not set

CONFIG_KERNEL_GZIP=y
Configures Output of Image.gz

For further changes see my GitHub
https://github.com/physwizz

cd Kernel

./build_kernel.sh

If you get python errors you might need to use python 2

https://t.iss.one/physwizz2/424

3. Output is found in /home/<user>/Kernel/arch/arm64/boot

4. Copy Image from boot folder and Insert it into the MyKernel.zip

5. Extract Version and AnyKernel.sh and edit it then reinsert.

Use folder name found in
/dev/block/platform

You could also use AIK to insert the kernel into boot.img

Note: if it doesn't build and you can't see the error message, delete the -j** from the build script

To check for boot errors look at
proc/last_kmsg

Note:
For Apatch kallsyms enabled

@physwizz
3
physwizz_A032m-u2-S-v2-kernel.zip
9.4 MB
A032m kernel u2 v2
Unisoc SC9863A
Android 12

Boots with GSIs

Samsung securities removed

Installation
https://t.iss.one/physwizz2/454

===========================
A12s Channel:  https://t.iss.one/a127f_res
A12s group:  https://t.iss.one/a12schat
Physwizz group: https://t.iss.one/physwizz3
Physwizz Channel:  https://t.iss.one/physwizz2

@physwizz
Physwizz_kernel_v3.2-m20lte(Fixed).zip
9.6 MB
physwizz_kernel M20
Exynos 7904
M205 S8 v3
Android 10
For 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: 208 - 1976
-Little: 208 - 1586
-GPU: 343 - 1300 without custom dtbo
-Low battery drain
-lz4 compression default on zram
-mtp for GSIs(from topser99)
-works with stock dtbo.img

Installation
https://t.iss.one/physwizz2/454

GitHub
https://github.com/physwizz?tab=repositories

========================
A12s Channel:  https://t.iss.one/a127f_res
A12s group:  https://t.iss.one/a12schat
Physwizz group: https://t.iss.one/physwizz3
Physwizz Channel:  https://t.iss.one/physwizz2

@physwizz

Thanks to @Kotadama for zip
m307-perm-boot.tar
25.4 MB
physwizz M30s (M307FN CIS  S4 ) R kernel
Exynos 9611
Permissive

Samsung securities disabled
More CPU governors
Conservative, On-demand, Userspace, powersave, performance, energy_step, shedutil
Optimised for performance

CPU:
Big 936 MHz - 2314MHz
Little  403MHz - 2054MHz
lz4 default compression added to zram

Install from odin
Installation
https://t.iss.one/physwizz2/454


Kernel
https://github.com/physwizz?tab=repositories

@physwizz
a04e-ofox-port.tar
32 MB
A04e (A042) ofox
Mediatek MT6765 Helio P35 

Tested and working

Installation Instructions
https://t.iss.one/a127f_res/142

Ported from a037 by
@physwizz
physwizz_A042f-T-kernel-s3-ksu.zip
13.4 MB
A04e (SM-A042) kernel s3
Mediatek MT6765 Helio P35 
KernelSU
Android 13

For testing on non rooted systems only

Disabled
-Defex
-Dm_verity


Installation
https://t.iss.one/physwizz2/454

Kernel source code
https://github.com/physwizz?tab=repositories

@physwizz
physwizz-kernel-J810.zip
13.8 MB
J810 (J8) kernel v1
Qualcomm SDM450 Snapdragon 450



Tested and working

Installation
https://t.iss.one/physwizz2/454

Kernel source code
https://github.com/physwizz?tab=repositories

@physwizz
physwizz-N970-note10-kernel.tar
43.9 MB
physwizz SM-N970 (Note 10) s8
Kernel beyondx
For Note 10 Android 12 only
Exynos 9825

Flash tar from Odin or flash img from twrp

For OneUI
( also works for wizzROM, GSIs )

More CPU governors
Userspace, powersave, performance, shedutil
Optimised for performance
Underclocked for battery
little 182 - 1950
big 377 - 2400
prime 350 - 3016
lz4 as default in zram

Bugs
Gcam?

Installation
https://t.iss.one/physwizz2/454

Kernel source code
https://github.com/physwizz?tab=repositories

@physwizz
physwizz-kernel-J810-v2.zip
13.8 MB
J810 (J8) kernel v2
Qualcomm SDM450 Snapdragon 450

Optimised for performance
Boost added
Extra CPU governors

Better performance than v3

Installation
https://t.iss.one/physwizz2/454

Kernel source code
https://github.com/physwizz?tab=repositories

@physwizz
g975-unpatched-v1-boot.tar
42.4 MB
physwizz SM-G975f(S10+)
Kernel (beyond2)
For Android 12 only
Exynos 9820

Kernel with stock boot.img

For testing
Flash tar from Odin

For OneUI
( also works for wizzROM, GSIs )

Underclocked to reduce battery drain
little 182 - 1950
big 377 - 2400
prime 350 - 3016


Bugs
Gcam?

Installation
https://t.iss.one/physwizz2/454

Kernel source code
https://github.com/physwizz?tab=repositories

@physwizz
physwizz-kernel-J810-v3.zip
13.8 MB
J810 (J8) kernel v3
Qualcomm SDM450 Snapdragon 450

Optimised for performance
Boost added
Extra CPU governors

Zram
Selinux
Qualcomm Wlan
Freq limit schedboost


Installation
https://t.iss.one/physwizz2/454

Kernel source code
https://github.com/physwizz?tab=repositories

@physwizz
physwizz_A032f-u4-T-v2-kernel.zip
9.6 MB
A032f kernel u4
Unisoc SC9863A
Android 13

Working


Installation
https://t.iss.one/physwizz2/454

=========================
A12s Channel:  https://t.iss.one/a127f_res
A12s group:  https://t.iss.one/a12schat
Physwizz group: https://t.iss.one/physwizz3
Physwizz Channel:  https://t.iss.one/physwizz2

@physwizz
physwizz_E625-T-u4-kernel-ksu.zip
18.6 MB
F62 ksu.
Auto using kprobes.

For testing
If it doesn't give ksu I will do manual patches

Installation
https://t.iss.one/physwizz2/454

=========================
A12s Channel:  https://t.iss.one/a127f_res
A12s group:  https://t.iss.one/a12schat
Physwizz group: https://t.iss.one/physwizz3
Physwizz Channel:  https://t.iss.one/physwizz2

@physwizz
physwizz_m136b-T-s5-kernel.zip
16.6 MB
M136b custom kernel
Mediatek Dimensity 700 

Working

Bugs
Wifi

Samsung securities disabled

Installation
https://t.iss.one/physwizz2/454

=========================
A12s Channel:  https://t.iss.one/a127f_res
A12s group:  https://t.iss.one/a12schat
Physwizz group: https://t.iss.one/physwizz3
Physwizz Channel:  https://t.iss.one/physwizz2

@physwizz
fastbootd-recovery-a245-android14.tar
80 MB
A245
Mediatek Helio G99

from
@eliseovasquezdv

stock recovery.img patched for fastbootd.


Installation Instructions
https://t.iss.one/physwizz2/843
physwizz_A042-T-kernel-s5-v2.zip
13.4 MB
Mediatek MT6765 Helio P35

For testing

Installation
https://t.iss.one/physwizz2/454

=========================
A12s Channel:  https://t.iss.one/a127f_res
A12s group:  https://t.iss.one/a12schat
Physwizz group: https://t.iss.one/physwizz3
Physwizz Channel:  https://t.iss.one/physwizz2