Skip to content

Instantly share code, notes, and snippets.

@tcr
Created May 1, 2018 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcr/4083162f7fe82b6fea47fa8775125a02 to your computer and use it in GitHub Desktop.
Save tcr/4083162f7fe82b6fea47fa8775125a02 to your computer and use it in GitHub Desktop.
Sort iOS home page
make an itunes backup
Go to `~/Library/Application Support/MobileSync/Backup`
Find the backup id folder
Look up `Manifest.db` in that dir to identify Files row with `relativePath=Library/SpringBoard/IconState.plist` and its `fileID`
in the `<backup_id>/<first two digits>/<that hash>` file, run
`plutil -convert json <file> -o -`
Outputs some JSON:
```
{
"iconLists": [
[
"com.apple.Preferences",
"com.lastpass.ilastpass",
"com.lastpass.authenticator",
"com.apple.mobiletimer",
...
]
],
"buttonBar": [
"com.apple.mobilephone",
"com.apple.MobileSMS",
"com.spotify.client",
"org.mozilla.ios.Firefox"
]
}
```
Query for each app icon:
https://itunes.apple.com/lookup\?bundleId\=by.walla.Wallaby
Select `.results[0].artworkUrl100` and download the app icon
Rewrite the file, and restore from backup (i guess!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment