owned this note
owned this note
Published
Linked with GitHub
---
tags: 耍智障亂搞
---
# Flash / Root / Modify / Customized Smartphones 在Android世界裡,只有想不到沒有做不到
## Current devices
- S21 ultra(SM-G9980)
- Tab s7+(SM-T970)
- [samFw links](https://samfw.com/firmware/SM-T970)
- Galaxy watch 4 Classic (SM-R890)
- Redmi note 5 pro(whyred)
- [Pixel GSI port](https://www.pling.com/p/1405136/#files-panel)
- [Panda Kernel(OC,EAS)](https://forum.xda-developers.com/t/kernel-9-0-10-0-11-hmp-eas-panda-kernel-v8-4.4088365/)
- [Superior OS](https://sourceforge.net/projects/superioros/files/whyred/)
- [Arror OS](https://arrowos.net/download/whyred)
- [AEX , An excellent ROM](https://www.pling.com/p/1613676)
~~- Zuk z2~~ Dead... QQ...
## Practical Magisk plugins
- Adblock
- AOSP mods
- Hide navigation bar
- reVanced(Youtube crack, all premium features unlock)
- pixelify(Google Album unlimited)
## Unbrick
### Redmi note 5 pro(whyred) stuck at twrp mark
Recovery : TWRP 3.7.0 official
System ver : A12, A13 AOSP like
Treble status : A only
#### Situation:
Flash pixelexperience A13 and get stuck, cannot get into TWRP nor entering system. Plugin USB and smartphone is in ADB recovery mode.
#### Problem:
File system incompatible, I'm using F2FS, however it's not supported by pixelexperience.
#### Solution:
Format partition via ADB commands. As follows:
(I'm using windows powershell, so change adb -> .\adb.exe)
> .\adb.exe shell
> mkexfatfs /dev/block/by-name/userdata
> mkexfatfs /dev/block/by-name/cache
> mkexfatfs /dev/block/by-name/system
> exit
> .\adb.exe reboot recovery
Then format partition to ext4, exfat or f2fs as you needed.
### Redmi note 5 pro(whyred) cannot enter bootloader
#### Situation:
Reboot after plugin USB cable
#### Problem:
Well, I don't know.
#### Solution:
Change another USB cable.(I'm sure the old cable works......)
## Samsung devices(W/O root)
### Adhell3 (Not working in OneUI 4 and higher)
It's a awesome application that can block ADs via system hosts. Also can change some permission and disable apps.
1. Install NotifyRDS Add-on: Samsung
2. Given permission
3. Turn off application
4. Enable secure folder
5. Add NotifyRDS into secure folder
6. In main system, turn off the permission of NotifyRDS and uninstall it.
7. Turn off secure folder without moving media files out of secure folder.
8. Install Adhell3
### New way to install adhell3 (Both root and unroot devices)
[S23 ultra solution](https://disp.cc/ptt/MobileComm/1agc_0lL)
### Odin
Flash samsung original system
[A free website for download samsung firmware](https://samfw.com/)
### Goodlocks
### Galaxy watch 4 series Enable BIA in Taiwan
My artical~
https://www.mobile01.com/topicdetail.php?f=738&t=6465099
## Termux
- tmoe tool:
curl https://raw.githubusercontent.com/2moe/tmoe-linux/master/debian.sh --output debian.sh
chmod +x debian.sh
./debian.sh
- Android 12 phantom kill process problem:
adb shell "/system/bin/device_config set_sync_disabled_for_tests persistent; /system/bin/device_config put activity_manager max_phantom_processes 2147483647"
## Samsung devices(With root / Tab s7+ SM-T970)
### Magisk patch
1. Unzip the file download from [samFw links](https://samfw.com/firmware/SM-T970).
2. Copied the AP_xxx file to smartphone and patched with [magisk app](https://github.com/topjohnwu/Magisk/releases).
3. Copied the patched .tar file back to computer and open Odin3.
4. Open [Odin3](https://odindownload.com/), choose BL_xxx file in odin BL box and choose CSC_xxx file in CSC box. Then choose Magisk_xxx.tar tile in AP box.
>4.1 Choose HOME_CSC_xxx can avoid wiping data, however, the first time you root need CSC and clean data, then you can use HOME_CSC if you want to reset system.

5. Turn off smartphone / tablet. Press volumn up + down and plugin usb cable, when the screen is on, press volumn up to continue enter the download mode.
6. Press start flash and the device will reboot automatically after the process finish.
7. Enjoy magisk root~.
### Konabess
[Konabess Repo](https://github.com/libxzr/KonaBess)
#### GPU Undervolt
I take the table from [here](https://forum.gamer.com.tw/C.php?bsn=60559&snA=61731) with 865+ (Tab s7+).
:::warning
Notice!!!!!! 865+ is kona v2.1, which lock the maximum GPU frequency. If the frequency is too high, the device will stock at first screen.
:::
>So, here I change 690Mhz down to 670Mhz in the table and ignore higher frequency.
In my situation, the voltage cannot be lower or the device becomes unstable.
#### GPU Overclock
865+ cannot overclock, and in Tab s7+, it's no bother to overclock, because the thermal threshold, 865+ with undervolt still cannot run in highest clock rate.
#### Genshin Impact Enhencement
In Samsung devices, GOS will limit the performance of smartphone / tablet. The "Alternate Game Performance Management" options in game plugin and "Thermal Threshold" in thermal guardian and "Auto Control" in game booster can better use of this SoC. However, while using SmartPack Kernel Manager, we can lock neither CPU clock nor GPU clock, throttling still happens.
Here, disable GOS make the thing get even worse, disable GOS means the performance manage by system default, which is awful.
##### My solution
Remove lower frequency from Konabess, then the throttling cannot reduce the GPU frequency.
##### My Settings


### Enable Google Feed on old Devices
Modified /system/etc/floating_feature.xml
Search spage and paste com.google.android.googlequicksearchbox behind com.samsung.android.app.spage
```xml
<SEC_FLOATING_FEATURE_LAUNCHER_CONFIG_ZERO_PAGE_PACKAGE_NAMES>com.google.android.googlequicksearchbox,com.samsung.android.app.spage</SEC_FLOATING_FEATURE_LAUNCHER_CONFIG_ZERO_PAGE_PACKAGE_NAMES>
```
:::warning
This modified may cause infinity boot and needs to use odin3 to flash system again if you make some mistakes. Modified it carefully !
:::
### FPS monitor
Use scene4 instead of scene5. scene5 cannot work on OneUi 5.1 in Tab S7.
Scene5 root mode is not free feature, while scene4 is.