Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Swapnote .apd Files and Pokemon Shuffle Mobile Archives

Featured Replies

  • Author
  • Localization

Larsenv, posted Sun Sep 06, 2015 2:15 pm (7240)


Swapnote:

Here.

The one without an extension looks like it stores JPEGs inside it (and maybe more stuff), and the .apd files look like it stores graphics in there...

Pokemon Shuffle Mobile:

Here.

It looks like these store Zlib compressed files.
  • Author
  • Localization

aluigi, posted Mon Sep 07, 2015 2:53 am (7253)


You can use a file ripper (like HyperRipper/DragonUnpacker) to extract the jpg.
  • Author
  • Localization

Larsenv, posted Mon Sep 07, 2015 7:03 pm (7282)


Yeah, but the Swapnote ones contain other stuff in them so please make a QuickBMS script for it if you can...
  • Author
  • Localization

aluigi, posted Mon Sep 07, 2015 7:04 pm (7283)


I checked it and the format is not that simple.
There is a 32bit size value before each jpg but then the format changes.
  • Author
  • Localization

einstein95, posted Tue Sep 08, 2015 11:57 am (7302)


Basic Pokemon Shuffle mobile BMS script:
Code:
goto 0x10
get FILEZ long
goto 0x18
for i = 0 < FILEZ
   get HASH long
   get UNK1 long
   get SIZE long
   get OFF long
   get UNK2 long
   get UNK3 long
   get UNK4 long
   get NULL long
   log "" OFF SIZE
next i

Despite the extension QuickBMS gives them, they're not .zip archives, but custom compressed archives it seems.
  • Author
  • Localization

aluigi, posted Tue Sep 08, 2015 5:27 pm (7311)


Oops, I tought the second folder was related to the first link :) It's better to open a thread for each game to avoid confusion, imho.

The extracted files are correct zip archives with their names replaced by zeroes, they can be extracted with 7-zip without problems.

You can use this modified script to unzip them on-the-fly:
Code:
comtype deflate
goto 0x10
get FILES long
get ZERO long
for i = 0     get DUMMY1 long
    get DUMMY2 long
    get ZSIZE long
    get OFFSET long
    get SIZE long
    get DUMMY3 long
    get DUMMY4 long
    get DUMMY5 long

    savepos TMP
    goto OFFSET
    get SIGN long
        get ver             short
        get flag            short
        get method          short
        get modtime         short
        get moddate         short
        get crc             long
        get comp_size       long
        get uncomp_size     long
        get name_len        short
        get extra_len       short
        getdstring name     name_len
        getdstring extra    extra_len
        savepos offset
    goto TMP

    if method == 0
        log "" OFFSET comp_size
    else
        clog "" OFFSET comp_size uncomp_size
    endif
next i
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.