Board Archive
154 subscribers
11 photos
3 videos
197 files
42 links
The very collection of @GalaxyA14user's interests. Random yet useful to me.
Download Telegram
Dummy method override

SystemUI_src/smali_classes2/com/android/systemui/util/DeviceState.smali

.method public static setInDisplayFingerprintSensorPosition(Landroid/util/DisplayMetrics;)V
.locals 3

.line 1
const/4 v0, 0x1

.line 2
sput-boolean v0, Lcom/android/systemui/util/DeviceState;->sLoadedSensorValue:Z

.line 3
const-string v1, "50"

.line 4
sput-object v1, Lcom/android/systemui/util/DeviceState;->sSemSensorMarginBottom:Ljava/lang/String;

.line 5
const-string v1, "200"

.line 6
sput-object v1, Lcom/android/systemui/util/DeviceState;->sSemSensorAreaHeight:Ljava/lang/String;

.line 7
const-string v1, "100"

.line 8
sput-object v1, Lcom/android/systemui/util/DeviceState;->sSemSensorImageSize:Ljava/lang/String;

.line 9
const/4 v2, 0x5

.line 10
const/high16 v1, 0x42c80000

.line 11
invoke-static {v2, v1, p0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

.line 12
move-result v1

.line 13
float-to-int v1, v1

.line 14
sput v1, Lcom/android/systemui/util/DeviceState;->sInDisplayFingerprintHeight:I

.line 15
const/16 v0, 0x64

.line 16
sput v0, Lcom/android/systemui/util/DeviceState;->sInDisplayFingerprintImageSize:I

.line 17
const/16 v0, 0x32

.line 18
sput v0, Lcom/android/systemui/util/DeviceState;->sInDisplayFingerprintMarginBottom:I

.line 19
return-void
.end method
😱3👍1
boot-menu_C_2.0_GalaxyA14.zip
83.9 KB
boot-menu v2.0 - Galaxy A14 - Since I got better at C, why not to improve it?

A hacky boot menu with volume key and power control. Written in C.

Changelog
- Refactored most code with a new faster functionality
- Now relies on sys.boot_completed instead of timeouts
- PID based memory system
- Memory aware, and cares about CPU
- No more sleep and kill, just SIGTERM once not needed
- Separate thread to check for boot state
- Vibrates on both ready and done
- No timeout, menu is functional until system boots
- If picked option 1, bootanimation plays as expected just like it should normally
😱4
/sys/devices/virtual/fingerprint/fingerprint/position

8.30,0.00,9.10,9.10,14.80,14.80,12.00,12.00,5.00

Can not modify this file and must bind it instead
👍2
Dead SystemUI fix in FOD based ports - Galaxy A14

SystemUI dies because of ${fps_position} being incorrect or not found, which is FOD related. And since it is universal among all system images and only occurs on Galaxy A14, it is not system related.

String ${fps_position} is found in /sys/devices/virtual/fingerprint/fingerprint/position which is incorrect by default and should be an integer or a list of floats, so the easiest fix is to put a number there.
Since that file is not modifyable, we must create a dummy file somewhere with an integer inside and bind it to our file, or can we just bind an existing system file which has a number? I picked /sys/power/pm_async to bind there.

But we don't have to do that each time on boot using adb, why don't we just put it in some rc file with sys.boot_completed property?

We need to pick a small rc file which has that property without any additional conditions to ensure command is executed, in that case logd.rc is perfect. Final command below.
echo '    exec /system/bin/mount -o bind /sys/power/pm_async /sys/devices/virtual/fingerprint/fingerprint/position' >> /system/etc/init/logd.rc
😁3🗿1
This media is not supported in your browser
VIEW IN TELEGRAM
I wrote an extremely accurate battery monitor
This is the power of Python and math
🔥3
batt.py
904 B
Batt - Galaxy A14
An extremely accurate battery change monitor
Accurate up to infinite visible decimal points and 7 real decimal points approx

Just pure Python and math, no imports. Preview here
👍4
i gotta stop making these things
😭8👎4🍌2
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
ro.adb.secure=0
ro.secure=0
ro.debuggable=1
🥰21
The_34567_Bomb.zip
908.9 KB
Listen I'm bored ok?
😱5
config.cfg
544 B
Galaxy A145F
Specific dtbo related files
👍1
Commands because I forget

imjtool dtbo.img extract

for f in *; do dtc -I dtb -O dts -o "${f%.dtb}.dts" "$f"; done && rm -rf *.dtb

find . -type f -exec sed -i 's/timing,refresh = <0x3c>/timing,refresh = <0x4b>/g' {} +

find . -type f -exec sed -i 's/active_fps = <0x3c>/active_fps = <0x4b>/g' {} +

find . -type f -exec sed -i 's/display_mode = <0x438 0x968 0x3c 0x00 0x00 0x00 0x00/display_mode = <0x438 0x968 0x4b 0x00 0x00 0x00 0x00/g' {} +
for f in *; do dtc -I dts -O dtb -o "${f%.dts}.dtb" "$f"; done && rm -rf *.dts

mkdtimg cfg_create new_dtbo.img config.cfg -d .
🗿4
dthz
1.4 KB
dthz - automatic dtbo.img hz overclocker - relies on nearby executables - made for personal automation

usage: dthz <dtbo.img> <framerate>
👍3🗿1
dtb.zip
9.7 KB
Galaxy A14 - Stock DTB
🗿5
🗿5🤔1
BB_1.0.apk
51.1 KB
BetterBattery - v1.0 BETA - Preview
Accurately observes battery percentage in real time

The app is still experimental, it tries its best to run on all android phones. It worked on my A14

Relies on current_now, charge_counter, level, capacity and other props in addition to pure Android Java and Math. Similar to batt.py in terms of functionality but not hardcoded for one device.
🤯3🗿1
git clone https://android.googlesource.com/platform/system/tools/mkbootimg/ && cd mkbootimg

mv ../vendor_boot.img .

python3 unpack_bootimg.py --boot_img vendor_boot.img && cd out

cat vendor_ramdisk01 | lz4 -dc | cpio --extract

ls lib/modules
👍2
gsi-touch-fix.zip
1.7 KB
Kanged from GitHub
👍1😨1
ExynosUnbound-R1.3_a14-ENFORCING.tar
32 MB
ExynosUnbound R1.3
For Galaxy A145F 4G (Exynos 850)

Features:
- KSU preinstalled
- Disabled AVB
- ext4, erofs and f2fs support for all partitions
- Disabled securities
- Overclocked CPU to 2210MHz
- rtl8xxxu wifi driver for pentesting (must apply vendor fw)

If you have problems with Enforcing, consider trying Permissive
4🥰2