-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWireless Mirror Only.bat
47 lines (34 loc) · 1.41 KB
/
Wireless Mirror Only.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
@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
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
REM Scrcpy
scrcpy -s DEVICE_IP:5555 --render-driver=direct3d -m1366 -b6M --max-fps 30 -f -w --disable-screensaver --window-title 'ANDROID-DESKTOP'
REM Keyboard
adb -s DEVICE_IP:5555 shell ime set com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
REM Screen
adb -s DEVICE_IP:5555 shell settings put system screen_off_timeout 60000
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