-
Notifications
You must be signed in to change notification settings - Fork 0
/
USB Desktop.bat
70 lines (55 loc) · 2.85 KB
/
USB Desktop.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@echo off
REM ADB Patch
cd "c:\adb\"
REM Device Information (optional)
REM adb -s DEVICE_ID shell wm density
REM adb -s DEVICE_ID shell wm size
REM adb -s DEVICE_ID shell getprop ro.product.model
REM adb -s DEVICE_ID shell getprop ro.build.version.release
REM adb -s DEVICE_ID shell getprop ro.product.board
REM adb -s DEVICE_ID shell dumpsys battery
REM Screen
adb -s DEVICE_ID shell wm size 1920x1080
adb -s DEVICE_ID shell wm density 215
adb -s DEVICE_ID shell settings put system font_scale 1.20
REM Launcher
adb -s DEVICE_ID shell settings put global policy_control immersive.full=*
adb -s DEVICE_ID shell pm enable com.farmerbb.taskbar
adb -s DEVICE_ID shell pm disable-user bitpit.launcher
adb -s DEVICE_ID shell cmd package set-home-activity com.farmerbb.taskbar/.activity.HomeActivity
adb -s DEVICE_ID shell cmd notification allow_listener com.farmerbb.taskbar/com.farmerbb.taskbar.service.NotificationCountService
adb -s DEVICE_ID shell settings put secure enabled_accessibility_services com.farmerbb.taskbar/.a.i
adb -s DEVICE_ID shell pm grant com.farmerbb.taskbar android.permission.WRITE_SECURE_SETTINGS
adb -s DEVICE_ID shell settings put global enable_freeform_support 1
adb -s DEVICE_ID shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN
REM Rotation
adb -s DEVICE_ID shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
REM Keyboard
adb -s DEVICE_ID shell ime set com.wparam.nullkeyboard/.NullKeyboard
REM Stuff
adb -s DEVICE_ID shell cmd vibrator vibrate 100
adb -s DEVICE_ID shell cmd vibrator vibrate 100
adb -s DEVICE_ID shell cmd vibrator vibrate 100
adb -s DEVICE_ID shell cmd vibrator vibrate 100
timeout /t 1 /nobreak >nul
REM Scrcpy
scrcpy -s DEVICE_ID --render-driver=direct3d --rotation 0 -m1366 -b60M --max-fps 30 -f -Sw --disable-screensaver --window-title 'ANDROID-DESKTOP'
REM Screen
adb -s DEVICE_ID shell wm size reset
adb -s DEVICE_ID shell wm density reset
adb -s DEVICE_ID shell settings put system font_scale 1.0
timeout /t 1 /nobreak >nul
REM Rotation
adb -s DEVICE_ID shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:1
REM Keyboard
adb -s DEVICE_ID shell ime set com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
REM Launcher
adb -s DEVICE_ID shell settings put global policy_control null*
adb -s DEVICE_ID shell pm enable bitpit.launcher
adb -s DEVICE_ID shell pm disable-user com.farmerbb.taskbar
adb -s DEVICE_ID shell cmd package set-home-activity bitpit.launcher/.ui.HomeActivity
adb -s DEVICE_ID shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN
REM Stuff
adb -s DEVICE_ID shell cmd vibrator vibrate 100
echo "REMEMBER VISIT US: https://t.me/ScrcpyDesktop"
timeout /t 10 /nobreak >nul