#jogerj ๐ฎ๐ฉ ๐ฌ๐ง ๐ฉ๐ช ๐ณ๐ฑ ๐ฏ๐ต (2022-08-27)
1 messages ยท Page 1 of 1 (latest)
Your feedback thread is automatically created, you can continue your message on this thread!
requires Android USB debugging/wifi debugging
cons: it's pain to get usb debugging connected, sometimes fails to connect for absolute no reason 
pros: the URL gets copied to the PC
pros: it's possible to port to bash and run in background with Termux
then access via wifi-debugging
cons: wifi debugging is only android 8+ iirc 
but it's definitely possible to run adb and self-connect in termux, I've tried it before https://github.com/jogerj/block-clipboard-android
In bash:
adb connect localhost:5555
url="$(grep -m 1 -oP "https.+/log" <( grep -P "OnGetWebViewPageFinish" <( adb logcat ) ); kill $! 2> /dev/null)";
echo "$url";
termux-clipboard-set "$url"
wait this one is better
prerequisite:
apt update
apt install -y android-tools termux-api
adb tcpip 5555
adb connect localhost:5555
url="$(grep -m 1 -oE "https.+/log" <( adb logcat -m 1 -e "OnGetWebViewPageFinish" ) )"; echo "$url"; termux-clipboard-set "$url"
Get Wish URL in Genshin Impact 3.0 on Android using Android Debugging Tools - Genshin Impact 3.0 URL Android.md
bash for macos and linux users (untested btw)
@cobalt frigate has leveled up to LEVEL 4 
run with bash -c "$(curl -fsSL https://cdn.discordapp.com/attachments/1013172719082274956/1013239301892489317/getlink_android.sh | sed 's/\r//')" (sed needed bcs i made an oopsie when writing from windows
)
- Download https://play.google.com/store/apps/details?id=com.cgutman.androidremotedebugger
- Enable USB debugging in developer options
- Copy this
am start -a android.intent.action.VIEW -d "$(logcat -m 1 -e "OnGetWebViewPageFinish.+https.+\/log" | grep -oE "https.+\/log")"
- Open Remote ADB Shell. Connect to
localhostport 5555 - Paste and run
- Open Genshin Impact and then open Wish History
- Wish History will open in your browser and you can copy the URL. If browser does not open, try switching back to Remote ADB Shell
- Turn off USB debugging! (Important for your security!)
this is cool
jogerj ๐ฎ๐ฉ ๐ฌ๐ง ๐ฉ๐ช ๐ณ๐ฑ ๐ฏ๐ต (2022-08-27)
wait, this doesnt need a PC?
Not necessarily
Can this be done on termux or terminal emulator?
well I just tried it, cannot connect with the remote adb shell app
Run apt update && apt install android-tools
Yea unfortunately it does that
Like connect once to adb via usb on pc
Then run adb tcpip 5555
https://stackoverflow.com/questions/18930050/adb-connection-over-tcp-not-working-now
https://developer.android.com/studio/command-line/adb#wireless
Well, if it can be done via termux or terminal emulator, then you won't need adb isnt it?
well for the first time, need PC then?
Uhh what's your android version
11
I think android 8-10 had no problems
It's the wifi adb that broke it, from 11+ iirc
So enable usb debugging -> open remote adb shell -> connect localhost:5555 -> connection failed
hmm wifi adb huh
By default adb via tcpip is disabled
Connecting via wifi on 11+ use adb pair ip:port first
That unfortunately you cannot self adb
cannot do it via termux?
Because you need the pairing window open
You can but jank af, using split screen to keep it open
I tried adb pair ip:port, it never show anything on the phone lel
So this is me connecting to my other phone with android 10
Resetting adb fixed it
But for adb pair
U need
Like this
This is android 11+ i think
so its easier with pc yeah
Anyways, usb method still foolproof i thinj
Doesn't have to be a pc, can be another phone
But android11+ need to pair first
So recap:
- Android 10 or below, connect via tcpip at port 5555. If doesn't work, restart adb
- Android 11+, connect with adb pairing, use adb pair ip:port on same wifi network. Then adb connect ip:port (pairing and connect port may be different). Once paired (with split screen jank method) connecting next time is ez
hmm for now will make tutorial with usb I guess, its much simpler
Gotta include enabling developer option tutorial.... Generally tap build number 7x
Etc etc
Tho different phones are different so might as well just redirect to https://developer.android.com/studio/debug/dev-options#enable
ayy it works nice
Just tested on macos. Sorta works, needs fixing few lines bcs macos is dumb brb
bash -c "$(curl -fsSL https://cdn.discordapp.com/attachments/1013172719082274956/1013426575313739848/getlink_android.sh)"
ok i've put everything on the gist
@shrewd latch can we do it for ios tho ๐ค I don't have ios device to test on tho
https://stackoverflow.com/a/11862712
well i dont have any mac
Got iphone/ipad?
iTools/iOSLogInfo
Seems promising
just tried, the link not showed sadly
