Physwizz Collection
4.09K subscribers
38 photos
651 files
809 links
Guides, kernels and hints for the Samsung a-series
Download Telegram
To Unlock Bootloader
Part1.
=====
Settings
About phone
Software information
Tap Build number until developer options appears

On phone developer options in settings allow OEM unlocking and enable usb debugging by moving both
sliders RIGHT

If you don't see the OEM unlock
- insert a sim card
-Disable Auto System Update
-Then disable Automatic date and time (Found in General Management) > then set the time back 14 days
- Connect to the internet
-Go to software update then check for update and wait a long time (up to 3 days) till it registers the device on server
-Once it's registered the OEM Unlock should be visible in the Developer Options

Part 2
=====
then connect phone to PC or to another phone or smart device.

Reboot into download mode by holding down both Vol up and Vol down
(You might need to long press vol up to unlock bootloader)

then press vol up to continue

Then setup phone
1
Building a Kernel with gcc

0. Setup Linux

Linux setup
***
sudo apt update
sudo apt upgrade
sudo apt-get install git-all

# Increase linux swapfile size

sudo swapoff -a

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

free -m

sudo apt-get install aptitude

# add sudo cmd before apt install python3-virtualenv

sudo apt install python-is-python3 build-essential openssl pip

sudo aptitude install libssl-dev


pip install virtualenv

export PATH=$PATH:/home/physwizz/.local/bin

apt install python3-virtualenv

sudo apt install python2.7

# 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

Follow the instructions in README_kernel.txt
Download the correct toolchain
Here are a few examples

2. Download a toolchain

https://github.com/physwizz/toolchain_cross-compile
Or
https://github.com/physwizz/compiler

I put it here
/home/<user>/compiler


3. Set up GitHub
(se
e my guide)

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_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y

CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y

# CONFIG_TIMA is not set
# CONFIG_TIMA_LKMAUTH is not set
# CONFIG_TIMA_LKM_BLOCK is not set
# CONFIG_TIMA_LKMAUTH_CODE_PROT is not set
# CONFIG_UH is not set
# CONFIG_UH_RKP is not set
# CONFIG_RKP_KDP is not set
# CONFIG_RKP_NS_PROT is not set
# CONFIG_RKP_DMAP_PROT is not set

# CONFIG_TIMA_LOG is not set
# CONFIG_KNOX_KAP is not set

# CONFIG_DM_VERITY is not set

# CONFIG_SEC_RESTRICT_ROOTING is not set
# CONFIG_SEC_RESTRICT_SETUID is not set
# CONFIG_SEC_RESTRICT_FORK is not set
# CONFIG_SEC_RESTRICT_ROOTING_LOG 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_SECURITY_DSMS is not set
# CONFIG_PROCA is not set


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

cd Kernel

sudo apt-get install make
sudo apt-get install gcc
sudo apt install build-essential


make clean && make mrproper
export CROSS_COMPILE=/home/<user>/compiler/bin/aarch64-linux-android-
export ARCH=arm64
export ANDROID_MAJOR_VERSION=q
make <your_device>_defconfig
make

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


To use Anykernel to make your own zip

Extract MyKernel.7z to a folder, copy kernel image there, open terminal in that folder and type:

zip -r9 UPDATE-AnyKernel3.zip * -x .git README.md *placeholder

TheUPDATE-AnyKernel3.zip will be in the folder.
Cut and paste it outside the folder then flash it from TWRP.
Make sure you don't leave the UPDATE-AnyKernel3.zip in the MyKernel folder because it will interfere with the next zip you make.



@physwizz
2
physwizz_a10s_mtp-test3.zip
11.7 MB
physwizz kernel a10s mtp
A107f Q binary 8
@physwizz
Zip from @topser
-Most securities disabled
-CPU Governors: conservative, ondemand, userspace, powersave, interactive, performance, schedutil.
-SE linux enforcing
-Works with Magisk
-Spectrum support enabled
-Zram with lz4 compression
-mtp enabled

For Zram
Go to HKtweaks- virtual memory
increase swappiness
choose lz4
increase size
turn on Zram
leave "apply on boot" OFF

Bugs
Rear camera


https://github.com/physwizz?tab=repositories
RwizzROM-a30

Debloated OneUI 3.1 ROM (for Android 11 Users only)
Upgrade to R first

Extras:
Battery charge limit
Clean Master
ES file explorer
HKtweaks
SimpleReboot
Viper



Note:
This ROM contains everything I like.
If you want something else, I can show you how to build your own.
@physwizz

ROM
https://drive.google.com/file/d/1HH46-LtilCwzX8iA16-K3aCBQfSFo6tb/view?usp=sharing
Kernel
Stock

Installation (try this method)
1. backup boot, system, vendor
2. Install RwizzROM
3. flash boot.img and vendor.img
4. Format data
5. Reboot to recovery
6. Install dmverity
7. Reboot
physwizz-extras-a205.zip
68.3 MB
Extra OneUI System Apps
For a205 Q only

(Bootloop on R)

Battery charge limit
Clean Master
Coloured battery icon 🔋
Dual speaker (Yasir)
ES file explorer
HKtweaks
SimpleReboot
Root Explorer
Viper
Zarchiver

Backup system.
Install from TWRP
reboot


Please send me any feedback
@physwizz
physwizz-extras-ex.zip
59 MB
Extra OneUI System Apps V2

For all a-series exynos models
OneUI 2.0 or 3.1


Battery charge limit
Clean Master
ES file explorer
HKtweaks
SimpleReboot
Root Explorer
Viper (Q only)
Zarchiver
physwizz-2 app

Backup system.
Install from TWRP
reboot

You can use zarchiver to add your own apps or vendor changes


Please send me any feedback
@physwizz
physwizz-extras-mtk.zip
59 MB
Extra OneUI System Apps a10s and a12

Battery charge limit
Clean Master
ES file explorer
HKtweaks
SimpleReboot
Root Explorer
Viper
Zarchiver
physwizz-2 app

Backup system.
Install from TWRP
reboot

You can use zarchiver to add your own apps or vendor changes


Please send me any feedback
@physwizz
physwizz-debloater-v3-ex.zip
4.8 MB
physwizz Debloater v3 Exynos
(Not Exynos850)

With physwizz-2 app
Updated to fix file picker

For all a-series exynos models

I'm using a very unusual method.
I replace the apps with a blank apk file.


Installation

Backup system
Install from TWRP

If you find you want to get one of the apps back just restore the system backup
Then use zarchiver to remove the apk from my Debloater.
Then reinstall it.

Debloat list:
https://t.iss.one/physwizz2/200

@physwizz
physwizz-debloat-list.txt
5 KB
I used this list to make my debloater.
physwizz-debloater-a10s-v2.zip
814.2 KB
physwizz Debloater v2
For a107 (a10s
)

OneUI 2.0 or 3.1

I'm using a very unusual method.
I replace the apps with a blank apk file.


Installation

Backup system
Install from TWRP

If you find you want to get one of the apps back just restore the system backup
Then use zarchiver to remove the apk from my Debloater.
Then reinstall it.

Debloat list:
https://t.iss.one/physwizz2/200

@physwizz
1
physwizz_kernel_a20e-v1{R}.zip
13.1 MB
physwizz A20e (SM-a202xx)
+Zram
For OneUI R or GSI (Q or R)



@physwizz

-Samsung securities disabled.
-CPU Governors: conservative, ondemand, userspace, powersave, interactive, performance.
-Interactive is default governor
-SE linux enforcing
-CPU overclocked and underclocked
-Big: 208 - 2184
-Little: 208 - 1690
-Extended battery life
-Spectrum support enabled
-Zram

Flash magisk for root



https://github.com/physwizz?tab=repositories
physwizz_kernel_a205-v1.0{R}.zip
13.3 MB
physwizz A20 (SM-a205xx)
For OneUI 3.1 for GSI (Q or R)


@physwizz

-Samsung securities disabled.
-CPU Governors: conservative, ondemand, userspace, powersave, interactive, performance.
-Interactive is default governor
-SE linux enforcing
-CPU overclocked and underclocked
-Big: 208 - 2184
-Little: 208 - 1690
-Extended battery life
-Spectrum support enabled
-Zram

Flash magisk for root


https://github.com/physwizz?tab=repositories
QwizzROM-a20-v2.45(Q or R)

Debloated OneUI 2.0 ROM

Installation
If using R baseband you need to install your R dtbo.img
https://t.iss.one/physwizz2/250

Install ROM zip from twrp

Extras:
Battery charge limit
Clean Master
Coloured battery icon 🔋
ES file explorer
HKtweaks
SimpleReboot

Dual speaker v5 @YasirArafatShihab
Root Explorer
Viper
Zarchiver

Includes physwizz kernel with Zram & magisk 20.4

-Samsung securities disabled.
-CPU Governors: conservative, ondemand, userspace, powersave, interactive, performance.
-Interactive is default governor
-SE linux enforcing
-CPU overclocked and underclocked
-Big: 208 - 2184
-Little: 208 - 1690
-GPU: 343 - 1300
-GPU thermal & voltage control
-Extended battery life
-Works with Magisk 19.3 - 21.4
-Spectrum support enabled
-1.5 gb zswap
-4gb Zram

For Zram
Go to HKtweaks- virtual memory
increase swappiness
choose lz4
increase size
turn on zram

Debloat list:
https://t.iss.one/physwizz2/200

Note:
This ROM contains everything I like.
If you want something else, I can show you how to build your own.
@physwizz

https://drive.google.com/file/d/1HJeWm_kK1hTgsH5aiiva_MGG2hh4nY2b/view?usp=drivesdk

Kernel
https://github.com/physwizz?tab=repositories
QwizzROM-a105f-v2

Debloated OneUI 2.0 ROM based on

XFA-A105FDDS6BUB1

Extras:
Battery charge limit
Clean Master
ES file explorer
HKtweaks
SimpleReboot
Root Explorer
Viper
Zarchiver


Note:
This ROM contains everything I like.
If you want something else, I can show you how to build your own.

Download ROM
https://drive.google.com/file/d/13LefarETFA0NXT2VQCOKZL9pj-9u0Y09/view?usp=sharing
Or
https://noob.miorszx07.workers.dev/0:/QwizzROM-A105.zip

Includes physwizz kernel

Based on a105fn source code

-OneUI or GSI (Q or R)
-Most securities disabled
-new CPU Governors added: now has conservative, ondemand, userspace, powersave, interactive, performance.
-SE linux enforcing
-CPU underclocked(physwizz) and overclocked( Carlos Burero)
-Big: 312 - 2080
-Little: 343 - 1690
-Low battery drain
-Flash Magisk to root
-Spectrum support enabled
- MTP enabled (topser)
-Zram available
-Voltage control for GPU

Debloat list:
https://t.iss.one/physwizz2/200

Flash magisk for root

For Zram
Go to HKtweaks- virtual memory
increase swappiness
choose lz4
increase size
turn on Zram

@physwizz

https://github.com/physwizz?tab=repositories
QwizzROMs
Cost nothing to produce and distribute.
They are very simple ROMs based on OneUI 2.0
Please use them as a learning tool and let me know how you have modified it to suit your needs.
wizzROM-creator-ex.zip
56.9 MB
wizzROM Creator Exynos

for all Samsung Exynos phones

For a10, a20, a20e, a30, a40 , a50, a70
Updated to fix file picker


Turn any stock or custom OneUI into a QwizzROM or RwizzROM

OneUI 2.0 will become QwizzROM
OneUI 3.1 will become RwizzROM

Debloated ROM with Extras

Extras:
Battery charge limit
Clean Master
ES file explorer
HKtweaks
SimpleReboot
Root Explorer
Zarchiver
physwizz-2 app

Make sure your OneUI ROM iis running befote you start
Installation
1 Backup system from recovery
2 Install the creator
3 Reboot
4. Install my kernel
https://t.iss.one/physwizz2/240
5. Enjoy

Debloat list:
https://t.iss.one/physwizz2/200


Name your wizzROM (optional)

1. Use a root explorer to copy and paste system/build.prop to new location
2. Edit build.prop like this

ro.build.display.id=<your-name>

3. Use zarchiver to paste the new build.prop into the system folder inside wizzROM-creator zip
4. Install wizzROM-creator zip

@physwizz
wizz-ROM-creator-mtk.zip
56.9 MB
wizzROM Creator Mediatek

for Samsung a10s, a12 & a22

Updated to fix file picker

Turn any stock or custom OneUI into a QwizzROM or RwizzROM

OneUI 2.0 will become QwizzROM
OneUI 3.1 will become RwizzROM

Debloated ROM with Extras

Extras:
Battery charge limit
Clean Master
ES file explorer
HKtweaks
SimpleReboot
Root Explorer
Zarchiver
physwizz-2 app

Make sure your OneUI ROM iis running befote you start
Installation
1 Backup system from recovery
2 Install the creator
3 Reboot
4. Install my kernel
https://t.iss.one/physwizz2/240
5. Enjoy

Debloat list:
https://t.iss.one/physwizz2/200

Name your wizzROM (optional)

1. Use a root explorer to copy and paste system/build.prop to new location
2. Edit build.prop like this

ro.build.display.id=<your-name>

3. Use zarchiver to paste the new build.prop into the system folder inside wizzROM-creator zip
4. Install wizzROM-creator zip

@physwizz
QwizzROM a10s
V4.5

Based on a107f
With s8 binary

Knox fixed
Dmverity
Ramdisk

Not deodexed
debloated

Unlock phone and only use swipe before you install

Add extras with extras zip
@physwizz

https://drive.google.com/file/d/1JGhXr4IQdKpNC7_zI84zL8UKe9qUOeqi/view?usp=drivesdk
Name your wizzROM (optional)

1. Use a root explorer to copy and paste system/build.prop to new location
2. Edit build.prop like this

ro.build.display.id=<Your-Name>

3. Use zarchiver to paste the new build.prop into the system folder inside wizzROM-creator.zip
4. Install wizzROM-creator.zip

@physwizz
To Escape the Black Screen of Death or Bootloop

To boot to RECOVERY MODE

Method 1
First connect phone to the PC for 30 minutes
Hold all 3 keys and release volume down when it buzzes.

Method 2
1. Plug in USB cable to PC
2. Hold down all 3 buttons on phone.
3. When it buzzes release volume down and plug in USB cable to phone.

Then restore your backup or install a ROM

To boot to DOWNLOAD MODE

Method 1
First connect phone to the PC for 30 minutes
Hold all 3 keys and release power when it buzzes.

Method 2
1. Plug in USB cable to PC
2. Hold down all 3 buttons on phone.
3. When it buzzes release power button and plug in USB cable to phone.
If it's really bad wait until the battery wears down and try then

Then use Odin to flash official firmware.

@physwizz
Install OneUI 2.0 or 3.1 without a PC

You only need zarchiver on your phone.

You can use this method to upgrade to R or downgrade to P

1. Download your firmware from Samfw or Samfrew. (It doesn't need to be exact but it should be for your model. I found that "files" stopped working if it wasn't the exact model.)
2. Extract the AP section
3. Extract boot.img.lz4, system.img.lz4 and vendor.img.lz4
If you find super.img.lz4 you can use CRB to extract.
https://t.iss.one/physwizz2/289
4. Extract boot.img, system.img and vendor.img
5. Boot into TWRP and backup.
6. Wipe data, system & vendor
7. Install boot.img, system.img and vendor.img
8. Install dmverity (or multidisabler)
Reboot to recovery
9. Reboot to system

To make your new ROM run silky smooth you can

1. Install a custom kernel.
If you installed a 2.0 ROM you need a Q kernel.
If you installed a 3.1 ROM you need an R kernel.

2. Install my debloater (or my wizzROM-creator) available from @physwizz2.

I am not responsible for a bricked phone or an alien invasion.
@physwizz