PqSave icon indicating copy to clipboard operation
PqSave copied to clipboard

Editor doesn't work with Android and iOS

Open mickeyandkaka opened this issue 7 years ago • 11 comments

Also want to know, does it work on ios or android version?

mickeyandkaka avatar Jun 29 '18 19:06 mickeyandkaka

It seems that it doesn't work for my ios version. I run the binary and dll in windows and macos, but they all get exception.

mickeyandkaka avatar Jun 29 '18 21:06 mickeyandkaka

Can you post an ios or android save?

Thealexbarney avatar Jun 29 '18 22:06 Thealexbarney

https://drive.google.com/file/d/11SD80sKdv6ocYXEU70nqStJ2jiSVLtwR/view?usp=sharing

this is what i get from my ios11 users folder, using imazing

exception is Unhandled Exception: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.

i guess there are something different with key iv checksumkey private static readonly byte[] Key = Encoding.UTF8.GetBytes("C7PxX4jPfPQ2SmzB"); private static readonly byte[] Iv = Encoding.UTF8.GetBytes("nSdhdc3ecDDEM7fA"); private static readonly byte[] ChecksumKey = Encoding.UTF8.GetBytes("chikuwa-hanpen");

mickeyandkaka avatar Jun 30 '18 04:06 mickeyandkaka

@Thealexbarney Android version(Ios idk) has a different KEY and IV. The IV needs to be reversed

ghost avatar Jul 01 '18 07:07 ghost

Will this be getting fixed anytime soon?

Preware avatar Jul 05 '18 22:07 Preware

Is there any method to dump the AES key and iv of the Android version?

pmsmall avatar Jul 07 '18 22:07 pmsmall

@Thealexbarney Are the AES key and iv compiled into the libil2cpp.so? Or written in some other files?Could you please write a tutorial about how to dump the key and iv?

pmsmall avatar Aug 01 '18 11:08 pmsmall

I've taken a quick look into the Android version and the key appears to be the same as the Switch version, so I'm not sure what the differences between the versions are. Someone would have to look into it more.

Thealexbarney avatar Aug 01 '18 11:08 Thealexbarney

@Thealexbarney The Android version use the /data/data/jp.pokemon.pokemonquest/shared_prefs/pqdata.xml to make the AES key, but the iv and the checksumKey are some as the switch version.

pmsmall avatar Aug 06 '18 12:08 pmsmall

on https://gbatemp.net/threads/qedit-a-pokemon-quest-web-based-save-editor.509951/page-4, post #75 says:

Update: Got it. IV: 6E 53 64 68 64 63 33 65 63 44 44 45 4D 37 66 41 AES Key: 2F 39 65 45 45 65 76 6D 77 4A 36 41 6E 75 58 39 AES Type: 256 bit CBC

hope that can be of use.

tom23rd avatar Sep 19 '18 23:09 tom23rd

i have to take that back, seems the skey is on a per user basis. there are instructions later in that same thread in my previous post to use game guardian, search for the iv and recover the user's skey which is in plaintext in memory.

tom23rd avatar Sep 29 '18 03:09 tom23rd