Last active
March 19, 2023 15:18
-
-
Save BoQsc/305007260fe0975ea689230eba050ef0 to your computer and use it in GitHub Desktop.
Connect internet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
:repeat_run | |
IF EXIST "./gnirehtet-rust-win64/adb.exe" IF EXIST "./gnirehtet-rust-win64/gnirehtet.exe" GOTO :Start | |
TITLE Downloading gnirehtet-rust-win64 | |
curl -L "https://github.com/Genymobile/gnirehtet/releases/download/v2.5/gnirehtet-rust-win64-v2.5.zip" -O | |
TITLE Extracting gnirehtet-rust-win64 | |
tar -xzvf "./gnirehtet-rust-win64-v2.5.zip" | |
TITLE Downloading platform-tools_r33.0.3-windows | |
curl -L "https://dl.google.com/android/repository/platform-tools_r33.0.3-windows.zip" -O | |
TITLE Extracting platform-tools_r33.0.3-windows | |
tar -xzvf "./platform-tools_r33.0.3-windows.zip" | |
TITLE Copying files from platform-tools_r33.0.3-windows to gnirehtet-rust-win64 folder | |
XCOPY "./platform-tools" "./gnirehtet-rust-win64" | |
TITLE After copying files, delete platforms-tools folder | |
RMDIR /S /Q platform-tools | |
:Start | |
CLS | |
TITLE gnirehtet.exe has Started. | |
"./gnirehtet-rust-win64/adb.exe" shell dumpsys package com.genymobile.gnirehtet | |
IF ERRORLEVEL 1 CLS && TITLE Checking if Phone is ready to connect by looking up gnirehtet.exe ERRORLEVEL && ECHO Install "gnirehtet-rust-win64/gnirehtet.apk" and connect Phone via USB Tethering. && TIMEOUT /T 2 && GOTO :repeat_run | |
IF NOT ERRORLEVEL 0 TITLE gnirehtet.exe executable returned %ERRORLEVEL% from Main() function | |
IF ERRORLEVEL 0 "./gnirehtet-rust-win64/gnirehtet.exe" "run" && TITLE gnirehtet.exe started | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
workslikemagic.1.mp4