android studio and android SDKyay -S android-studio android-sdk-platform-tools
android-studiodevice: pixel 8
API: API 34 android 14.0
services: google play store
system image: recommended x86_64 image
default boot: cold
camera: none
graphics: hardware acceleration
rootAVDgit clone https://gitlab.com/newbit/rootAVD && cd rootAVD
./rootAVD.sh ~/Android/Sdk/system-images/android-34/google_apis_playstore/x86_64/ramdisk.img
magiskcurl -L https://github.com/topjohnwu/Magisk/releases/latest/download/app-release.apk -o magisk.apk
magisk onto the deviceadb install magisk.apk
magisk on the device, then update and reboot if requiredadb shell
su
magisk app and grant permissions when promptedhttptoolkityay -S httptoolkit
httptoolkit and select Android Device via ADBhttptoolkit to find tokens in a request response{
"user": {
"id": 123456,
"email": "cosmo@mail.com",
"address": "0x3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"nickname": "cosmo",
"guid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"credentials": {
"accessToken": "eyJxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"refreshToken": "eyJxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
to my knowledge tokens expire after approximately one week. once expired, tokens can be refreshed using cosmo-refresh. this simple script saves you from having to open up an emulator and monitor the network traffic to get your new tokens every time the old ones expire.