Physwizz Collection
4.09K subscribers
38 photos
651 files
809 links
Guides, kernels and hints for the Samsung a-series
Download Telegram
TWRP Rules

Rule #1
Make a backup of boot, data, system, vendor and product

Rule #2
Always follow Rule #1

Rule #3
Wipe data before installing a ROM
QwizzROM-a105f

Debloated OneUI 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.
@physwizz

ROM

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

Stock kernel
physwizz_kernel_a10{battery2.3}.zip
11.4 MB
physwizz a10 battery saver v2.3

Based on a105fn source code
@physwizz

-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
-Big: 312 - 1560
-Little: 343 - 1352
-Extended battery life
-Works with Magisk 19.3 - 21.4
-Spectrum support enabled
- MTP enabled

If you experience lagging remove animations from settings and use Spectrum or HKtweaks

If you want performance choose a different kernel.

https://github.com/physwizz?tab=repositories
QwizzROM-a307

Debloated OneUI ROM based on
A307fn

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


Note:
If you want to add or delete apps just use zarchiver and go to system/app or system/priv-app inside the zip

@physwizz

ROM
https://drive.google.com/file/d/10aBrXolb-AZRMx1_JFXWAVjQnbMXv6vk/view?usp=drivesdk


Stock kernel
QwizzROM a10s
V3
Based on a107f
With s8 binary

Knox fixed
Dmverity
Ramdisk

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

https://drive.google.com/file/d/12kiaPyGJ2INRNJOY0e3VJbWHiF5dmYDT/view?usp=drivesdk


v4
Based on a107f
With s8 binary

Knox fixed
Dmverity
Ramdisk

Not deodexed
Not debloated

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


Instructions
1. Backup boot and vendor
2. Flash ROM
3. Restore boot & vendor
4. Format data
5. Flash encryption disabler
6. Reboot

@physwizz
Making your own ROM


CRB

Version 3 was still being developed at the time of writing.
CRB for Windows only

https://forum.xda-developers.com/t/tool-windows-kitchen-crb-v2-2-1-update.3947779/

https://t.iss.one/customrombuilder

https://t.iss.one/CRBplus

Some versions of Windows do not support case sensitive so you need to install Windows Subsystem for Linux(WSL). This can be done from CRB.

Setup
1. Install CRB onto the C: drive.
2. Go to Windows Settings and make the CRB folder an exception for virus protection.

3. Run CRB as Administrator.
4. Import Distro
5. Test Distro
6. Install WSL
7. Reboot Windows
8. Look at videos in help folder

Run CRB as Administrator.

Create new project
Extract ROM (auto)
or Extract ROM (selective)
extract apxxxxxxxxxmd5

Make any changes to the system folder found in the ROM folder
- edit build.prop to change ROM name
- add apps to system/priv-app

Build image
choose system
then choose vendor

The zip creator is not complete but you can still flash the ROM onto your phone

The 3 files you need are
build/system.img
build/vendor.img
source/boot.img

Take these files to your phone
and either flash them individually from TWRP
or
rename system.img to system_new.img
and rename vendor.img to vendor_new.img

insert them into my installer
https://t.iss.one/physwizz2/290


Cirrus ci

https://github.com/physwizz/aosp-building

SuperR Kitchen

Step 1. Download SuperR Kitchen
https://forum.xda-developers.com/f/superr-kitchen.6337/
You can choose from Linux, Windows* and Mac donate versions.

Step 2. Download the firmware for your device

Step 3. Extract the boot.img, system.img, vendor.img from the ap section of the firmware.

Step 4. Patch the boot.img using Magisk.

Step 5. Add the following to the builder

Patched boot.img, system.img, vendor.img

Step 6. Use the builder menu to modify the files.

This will give you a modified stock ROM

@physwizz

SuperR Windows Users

Windows is not case sensitive so it won't distinguish between
libPSi.so and libpsi.so
And the best you can get is black screen.
You must change libpsi.so to libpsi2.so
Then
symlink("libpsi2.so", "/system/system/lib/libpsi.so");
and push it into updater script.
Or
https://docs.microsoft.com/en-us/windows/wsl/install-win10

Thanks to @shumway66, @Neel0210, @el0xren @Haridhayal @JagPanzer
Resources

https://forum.xda-developers.com/t/tutorial-videos-for-superrs-kitchen.3604417/

Another good link
https://t.iss.one/alaskalinuxuser_romdevelopment
3
CRB (Windows only)
V2.11
https://forum.xda-developers.com/t/tool-windows-kitchen-crb-v2-2-1-update.3947779/

Some versions of Windows do not support case sensitive. You can test it in CRB -> Settings -> Test WSL.
If it failed then go to <i> and follow the instructions.
Run CRB as Administrator.

1. Extract system.img
2. Extract vendor.img
3. Copy boot.img to ROM folder
(Or just extract ap....md5 to get all 3)

4. Make any changes
- edit build.prop to change ROM name
- use fast debloat text file method
- use debloat option with tick box
- add apps to system/priv-app
- tools- remove Knox & disable DM-verity
- deodex if you want

5. Build ramdisk
6. Build zip (wait a few minutes)
7. Transfer to the phone and flash with TWRP.
8. Further changes can be made to the zip file using zarchiver app.


For v3 go here
https://t.iss.one/physwizz2/151

QwizzROMs

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

A20e
https://drive.google.com/file/d/1-On7MvR2G19NzsWQ8GOOkLQhqBMOWz1G/view?usp=drivesdk

A30
https://drive.google.com/file/d/10aujDjF2bOuZJCEXIv5_PajsoPnFwZlR/view?usp=drivesdk

A30s
https://drive.google.com/file/d/10aBrXolb-AZRMx1_JFXWAVjQnbMXv6vk/view?usp=drivesdk

A10
https://drive.google.com/file/d/1-DR6LxgCfvXXx1hff4YY7ZFEM7ioAzfj/view?usp=drivesdk

A10s v3
https://drive.google.com/file/d/12kiaPyGJ2INRNJOY0e3VJbWHiF5dmYDT/view?usp=drivesdk

A10s v4
https://drive.google.com/file/d/1yriZkoRcFe2127zM7DmoU6fs57nwAbh9/view?usp=drivesdk
1
A20 Frequencies
-also for a10, a20e, a30 & a40

BIG(2). LITTLE (6). GPU
(2288) 1690. 1300
2184. 1586. 1200
2080. 1352. 1100
1976. 1248. 845
1872. 1144. 676
1768. 1014. 545
1664. 902. 450
1560. 839. 343
1352. 757
1144. 676
936. 546
728. 449
520. 343
312. 208
208

Overclocking for performance
Underclocking for battery

@physwizz
Scroll up for Guides, ROMs and Kernels
I got my first calculator in 1971 for senior high school and it still works
My first electronic calculator for 1st year uni in 1973 still works
physwizz_kernel_a30-v4.5{R-stable}.zip
13.6 MB
physwizz_kernel a30R-V4.5
Stable version
For OneUI or GSI

@physwizz

-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
-Low battery drain
-lz4 compression on zram
-mtp for GSIs(from topser99)

-works with stock and custom dtbo

Installation
1. Upgrade to Android R
2. Install kernel from TWRP
3. Install Magisk for root
4. Reboot

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

GitHub
https://github.com/physwizz?tab=repositories
For Zram
Go to HKtweaks- virtual memory
increase swappiness
choose lz4
increase size
turn on Zram

@physwizz
For Gaming
Set Spectrum to Gaming mode
And OC GPU: 1300 1300
Mali: always_on
GPU Governor: static
GPU Thermal Manager: off
RwizzROM-a202-v2

Debloated OneUI 3.1 ROM (for Android 11 Users only. Upgrade First)

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



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/1RcxfUuO2Gc-QiAOts_bnKzt8dUu1_FvB/view?usp=drivesdk

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
1
physwizz_kernel_a10{Zram2}.zip
11.4 MB
physwizz a10 +Zram2

Based on a105fn source code
@physwizz

-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
-Extended battery life
-Works with Magisk
-Spectrum support enabled
- MTP enabled (topser)
-Zram available
-Voltage control for GPU


Flash magisk for root

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

https://github.com/physwizz?tab=repositories
👍1
For Zram
Go to HKtweaks- virtual memory
increase swappiness
choose lz4
increase size
turn on Zram
leave "apply on boot" OFF
physwizz_kernel_a10{permissive}.zip
11.4 MB
physwizz a10 permissive Kernel

Based on a105fn Q source code
@physwizz

- only for permissive GSIs (Q or R)
-Most securities disabled
-new CPU Governors added: now has conservative, ondemand, userspace, powersave, interactive, performance.
-SE linux permissive
-CPU underclocked(physwizz) and overclocked( Carlos Burero)
-Big: 312 - 2080
-Little: 343 - 1690
-Extended battery life
-Works with Magisk
-Spectrum support enabled
- MTP enabled (topser)
-Zram available
-Voltage control for GPU
-permissive (topser)


Flash magisk for root

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

https://github.com/physwizz?tab=repositories
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