-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathservice.sh
21 lines (20 loc) · 1.22 KB
/
service.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/system/bin/sh
APIE=$(cat /system/build.prop | grep ro.build.version.sdk | cut -d '='-f2)
if [ -f /data/adb/modules/rboard-themes_addon/system.prop ] || [ -f /data/adb/modules/gboardnavbar/system.prop ] || [ -f /data/adb/modules/rboard-themes/system.prop ]; then
printf 'do nothing'
else
resetprop ro.com.google.ime.kb_pad_port_b 1.0
fi
while [ "$(getprop sys.boot_completed | tr -d '\r')" != "1" ]; do sleep 1; done
sleep 1
cmd overlay fabricate --target android --name test2 android:dimen/navigation_bar_height 0x05 0x03
cmd overlay enable com.android.shell:test2
cmd overlay fabricate --target android --name test android:dimen/navigation_bar_frame_height 0x05 0x01
cmd overlay enable com.android.shell:test
cmd overlay fabricate --target android --name test3 android:dimen/navigation_bar_gesture_height 0x05 0x9000
cmd overlay enable com.android.shell:test3
cmd overlay fabricate --target com.android.systemui --name test4 com.android.systemui:dimen/navigation_handle_radius 0x05 0x0
cmd overlay fabricate --target com.android.systemui --name test5 com.android.systemui:dimen/navigation_home_handle_width 0x05 0x0
cmd overlay enable com.android.shell:test4
cmd overlay enable com.android.shell:test5
killall com.android.systemui