-
Notifications
You must be signed in to change notification settings - Fork 0
/
Wireless Desktop.bat
79 lines (62 loc) · 3.28 KB
/
Wireless 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
71
72
73
74
75
76
77
78
79
@echo off
REM ADB Patch
cd "c:\adb\"
REM ADB Connecting
adb kill-server
adb start-server
adb -s DEVICE_ID tcpip 5555
adb connect DEVICE_IP:5555
REM Device Information (optional)
REM adb -s DEVICE_IP:5555 shell wm density
REM adb -s DEVICE_IP:5555 shell wm size
REM adb -s DEVICE_IP:5555 shell getprop ro.product.model
REM adb -s DEVICE_IP:5555 shell getprop ro.build.version.release
REM adb -s DEVICE_IP:5555 shell getprop ro.product.board
REM adb -s DEVICE_IP:5555 shell dumpsys battery
REM Screen
adb -s DEVICE_IP:5555 shell settings put system screen_off_timeout 2147483647
adb -s DEVICE_IP:5555 shell wm size 1920x1080
adb -s DEVICE_IP:5555 shell wm density 215
adb -s DEVICE_IP:5555 shell settings put system font_scale 1.20
REM Launcher
adb -s DEVICE_IP:5555 shell settings put global policy_control immersive.full=*
adb -s DEVICE_IP:5555 shell pm enable com.farmerbb.taskbar
adb -s DEVICE_IP:5555 shell pm disable-user bitpit.launcher
adb -s DEVICE_IP:5555 shell cmd package set-home-activity com.farmerbb.taskbar/.activity.HomeActivity
adb -s DEVICE_IP:5555 shell cmd notification allow_listener com.farmerbb.taskbar/com.farmerbb.taskbar.service.NotificationCountService
adb -s DEVICE_IP:5555 shell settings put secure enabled_accessibility_services com.farmerbb.taskbar/.a.i
adb -s DEVICE_IP:5555 shell pm grant com.farmerbb.taskbar android.permission.WRITE_SECURE_SETTINGS
adb -s DEVICE_IP:5555 shell settings put global enable_freeform_support 1
adb -s DEVICE_IP:5555 shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN
REM Rotation
adb -s DEVICE_IP:5555 shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
REM Keyboard
adb -s DEVICE_IP:5555 shell ime set com.wparam.nullkeyboard/.NullKeyboard
REM Stuff
adb -s DEVICE_IP:5555 shell cmd vibrator vibrate 100
adb -s DEVICE_IP:5555 shell cmd vibrator vibrate 100
adb -s DEVICE_IP:5555 shell cmd vibrator vibrate 100
adb -s DEVICE_IP:5555 shell cmd vibrator vibrate 100
timeout /t 1 /nobreak >nul
REM Scrcpy
scrcpy -s DEVICE_IP:5555 --render-driver=direct3d --rotation 0 -m1366 -b6M --max-fps 30 -f -Sw --disable-screensaver --window-title 'ANDROID-DESKTOP'
REM Screen
adb -s DEVICE_IP:5555 shell settings put system screen_off_timeout 60000
adb -s DEVICE_IP:5555 shell wm size reset
adb -s DEVICE_IP:5555 shell wm density reset
adb -s DEVICE_IP:5555 shell settings put system font_scale 1.0
timeout /t 1 /nobreak >nul
REM Rotation
adb -s DEVICE_IP:5555 shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:1
REM Keyboard
adb -s DEVICE_IP:5555 shell ime set com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
REM Launcher
adb -s DEVICE_IP:5555 shell settings put global policy_control null*
adb -s DEVICE_IP:5555 shell pm enable bitpit.launcher
adb -s DEVICE_IP:5555 shell pm disable-user com.farmerbb.taskbar
adb -s DEVICE_IP:5555 shell cmd package set-home-activity bitpit.launcher/.ui.HomeActivity
adb -s DEVICE_IP:5555 shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN
REM Stuff
adb -s DEVICE_IP:5555 shell cmd vibrator vibrate 100
echo "REMEMBER VISIT US: https://t.me/ScrcpyDesktop"
timeout /t 10 /nobreak >nul