These instructions are for users with Genshin Impact installed on Android. For installations on PC, see other guide.
-
Open and Download Termux (Do not download from Play Store as it is not up-to-date)
-
- Android 11 and above: Enable Wireless Debugging on your Android phone.
- Android 10 or below: You need a PC to enable port
5555
, follow these instructions to connect then skip step 5-7.
-
Open Termux and run
pkg update && pkg install android-tools termux-api
(if failed, runapt update && apt install android-tools termux-api
instead) -
Open Settings > System > Developer Options > Wireless Debugging. Open the app switcher then tap and hold the Settings app icon. Select "Split top", then select Termux as the bottom half.
-
Tap on "Pair device with pairing code" and a window will appear. Go to Termux and run
adb pair localhost:12345
replacing 12345 with the port number shown in the window (192.168.x.x:12345). Enter the pairing code when prompted, DO NOT CLOSE PAIRING CODE PROMPT the pairing window will close automatically. -
Run
adb connect localhost:23456
replacing 23456 with the port number shown under "IP address & Port" (192.168.x.x:23456) -
Run following
adb logcat -m 1 -e "OnGetWebViewPageFinish.+https.+/log" | grep -oE "https.+/log" | tee >(termux-clipboard-set) &
-
Open Genshin Wish history
-
The wish URL should be written to your clipboard already. If not, you can copy the text output in Termux
-
Paste to any wish import websites (e.g. paimon.moe).
After running once, start from step 6 when you want to fetch wish URL again
Alternative steps (see video):
-
Run
adb shell
-
Run following:
am start -a android.intent.action.VIEW -d "$(logcat -m 1 -e "OnGetWebViewPageFinish.+https.+/log" | grep -oE "https.+/log" | tee /dev/tty)" &
-
Open Genshin Wish history. Once opened, the page would load in a browser instead
-
Tap on the address bar, select all, and copy
-
Paste to paimon.moe.
via WebADB (Video Demo)
-
Enable USB debugging on your phone (About phone -> tap Build Number 7x, then go to Developer Options)
-
Connect phone with USB cable to PC.
-
Open https://tango-adb.github.io/old-demo/ in Chrome/MS Edge (Firefox/Safari/etc. not supported)
-
Click on "Add" and select your device (If you don't see your device, make sure to follow step 1-2 correctly)
-
A pop-up will appear on your phone. Check "Always allow from this computer" and click "Allow"
-
Open Interactive Shell. You should see something like
oriole:/ $
-
Enter the following into the shell (Ctrl-C then use Ctrl-Shift-V to paste, or use right-click)
am start -a android.intent.action.VIEW -d "$(logcat -m 1 -e "OnGetWebViewPageFinish.+https.+/log" | grep -oE "https.+/log" | tee /dev/tty)" &
-
Open wish history on your phone
-
Wish history should open in your phone browser. Alternatively the URL should also appear on the shell terminal, which you can copy too (use right-click)
-
Copy the URL and paste to paimon.moe
-
Connect your Android phone to your computer with a USB cable
-
Enable USB Debugging on your Android phone
-
Windows: Press Win+R and paste:
powershell iex(irm 'https://gist.githubusercontent.com/jogerj/2372d0e5bee51e001a6d8956240d527b/raw/getlink_android.ps1')
Linux/macOS: Open Terminal and paste:
bash -c "$(curl -fsSL https://gist.githubusercontent.com/jogerj/2372d0e5bee51e001a6d8956240d527b/raw/getlink_android.sh)"
-
Paste to paimon.moe under PC > Method 1
-
Download this app Remote ADB Shell
-
Copy this script to clipboard:
am start -a android.intent.action.VIEW -d "$(logcat -m 1 -e "OnGetWebViewPageFinish.+https.+\/log" | grep -oE "https.+/log" | | tee /dev/tty)" &
-
Follow steps here https://www.youtube.com/watch?v=uHyBDCAlSBQ
-
Troubleshooting "connection refused", see https://stackoverflow.com/a/24889119
The Android Debug Bridge is a developer tool for Android that allows your computer to interact with your Android phone. It also allows you to invoke commands on your phone from your computer and monitor its output directly. This script will download ADB to your computer and runs it to interact with your phone. After the script finishes, it will clean up after itself. The download is about 5 MB.
- Try disabling/enabling USB debugging
- Open notification drawer, tap on "Charging this device via USB", change to "File Transfer" or "MTP"
- You can also connect with adb via wifi (instructions soon)
You can download ADB from here and extract the zip file. You can connect to your phone with ADB via Wi-Fi. (Android 11+ guide, Android 10 and lower guide) or with a USB cable.
-
Windows:
Open Powershell in the
platform-tools
directory and paste following:.\adb logcat -m 1 -e "OnGetWebViewPageFinish" | % {if ($_ -match "https.+/log") { $wishUrl = $Matches[0]; Write-Host $wishUrl; Set-Clipboard -Value $wishUrl}}
-
macOS:
Open Terminal in the
platform-tools
directory and paste following:url="$(grep -m 1 -oE "https.+/log" <( adb logcat -m 1 -e "OnGetWebViewPageFinish" ) )"; echo "$url"; echo -e "$url" | pbcopy;
-
Linux:
Open Terminal in the
platform-tools
directory and paste following:url="$(grep -m 1 -oE "https.+/log" <( adb logcat -m 1 -e "OnGetWebViewPageFinish" ) )"; echo "$url"; echo -e "$url" | xclip -selection c;
-
Android:
In Termux first run
apt install android-tools termux-api
and connect over Wi-Fi. Paste following:url="$(grep -m 1 -oE "https.+/log" <( adb logcat -m 1 -e "OnGetWebViewPageFinish" ) )"; echo "$url"; echo -e "$url" | termux-clipboard-set;
-
Attempt to use already installed adb if available instead of downloading adb every time
-
Backport this to older powershell. There exists the following code but still needs more testing. Copy paste to powershell:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex (New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/c72102e26c811ce789c83f3ca37f0162/raw/android.ps1')
@Mccoy2101 You can try the other methods or checkout the discord server, there lots of people can help you too