MadeBaruna / paimon-moe

Your best Genshin Impact companion! Help you plan what to farm with ascension calculator and database. Also track your progress with todo and wish counter.
https://paimon.moe
MIT License
1.4k stars 268 forks source link

[Contribution] Android Method wish Import for Genshin Impact 3.2 (No pc,No root and no Wifi Debugging) #333

Open MizukumaMC opened 1 year ago

MizukumaMC commented 1 year ago

Thanks me later paimon.moe devs

https://youtu.be/dCBPJmVL4HA

Deses commented 1 year ago

Cool, yet very convoluted method. I don't think the average user will be able to follow it, and I expect most phones to have different developer options. for instance, my ROM doesn't have that toggle to generate bug reports (Oneplus 7Pro running a custom AOSP ROM).

Also, there are a lot of improvements that could be made in the process shown in your video:

  1. You don't need to email the zip to yourself. Just open "My Files" app and locate the zip.
  2. You don't need a dedicated unzip app, any modern "My Files" app should be able to open compressed files and if not, download a better one. Try CX File Explorer or Amaze File Manager.
  3. I know most default text apps can't open huge log files, but you don't need to install tmux, install some system tool and then cd to the file. That's insane. There are more user friendly ways to do that, for instance, you could use QuickEdit to open the file and from there, copy the desired string.
MizukumaMC commented 1 year ago

Quick edit give me an annonying error that file is too big! Cuz termux less command is a unix file reader so it can read upto 200GB txt files

MizukumaMC commented 1 year ago
  1. Z archiever is just an example and I'm not comfortable to use the file manager that came on my phone!
MizukumaMC commented 1 year ago

If you use custom ROM,try to use stock ROM

MizukumaMC commented 1 year ago

Btw thank you for feedback❤

Deses commented 1 year ago

Quick edit give me an annonying error that file is too big! Cuz termux less command is a unix file reader so it can read upto 200GB txt files

Just how big is that log file?

If you use custom ROM,try to use stock ROM

Yeah. Good one, but github is no place for clowning.

4 replies

You know you can edit posts to add further comments, right?

fghzxm commented 1 year ago

So if my understanding is correct, you basically inspect the system logs and search for an entry tagged MiHoYoWebview.load(L:90). Using adb on my computer through USB debugging, I can do that with one command:

adb logcat -d -b main -v tag | grep --color=never -m1 -xe 'D/MiHoYoWebview\.load(?:\([^)]*\))?: load:.*'

This will grep out the entire line of log, not just the URL. This method as it is does require you to do it on a computer; maybe using wireless debugging you can do this on the phone itself, I haven't tried.

jogerj commented 1 year ago

Yes, we already have multiple variations of this solution in the discord server. I don't think there are plans to permanently have this method as the default. We frequently have inconsistent results with different brands of android phones, not to mention the difficulty for some people to follow

fghzxm commented 1 year ago

We frequently have inconsistent results

Thanks for your feedback @jogerj. Based on my testing, this method needs to be carried out fast enough after you enter the wishing history screen. This is because the Android log buffer can be small, and Android can produce a lot of logs every second which after some time will cause the log entry we're interested in to be purged.

If you remove the -d option to adb, it will keep reading new logs until Ctrl+C is pressed. If you have time I suggest trying making this change then doing it before you enter the wishing screen, and see if you can get better results. Thanks.