Retrieve resource images in IOS apps/restore PNG files in IOS apps

Source: Internet
Author: User

On the Internet, I found out how to restore the resources and images in the app for a long time. The amount of information is small. I only need to make a few general statements and specifically record the following information for others to check.


Brief description:

We can use iPhonePNG to retrieve resource images from some apps in the app store, but the usage is slightly complicated.

In fact, iPhonePNG is not a decompilation function, but after the ios app is decompressed, there will be blurred resource images, which can be restored by this tool.

(Not all images can be restored. Some images cannot be restored in some applications)


Step 1 download iPhonePNG

I downloaded and decompressed the package and put it in the Finder application. It is not necessary to store it, but remember the path.

 

View the path, select a file in iphonepng, and view the description in the email. The directory is/Applacations/iPhonePNG.

 

Step 2 modify the file path to be compiled (The following figure shows the iPhone ename as your mac name)

Double-click the. php file and use xcode to open it. Modify the path of the second line, $ path. This program places a directory for the image to be modified and the image to be modified, so you can only modify the path.

The PHP file code is as follows:
<? Php
$ Path = '/Users/iphonename/Desktop/testimage/Payload/UrlWebViewForIpad ';
// '/IPhone/Resource/ColorSchemer 1.1/Payload/ColorSchemer ';
$ Dir = opendir ($ path );
$ Cmd = '"'. dirname (_ FILE _). '/iPhonePNG "';
$ Files = array ();
While ($ file = readdir ($ dir )){
$ Ext = substr (strrchr ($ file, '.'), 1 );
// Echo "$ file \ n ";
If ($ ext = "png "){
$ Files [] = "\" $ path/$ file \"";
}
}
Closedir ($ dir );
Foreach ($ files as $ file ){
Exec ("$ cmd $ file ");
// Echo "$ cmd $ file \ n ";
}
?>


Step 3 download the app from itunes

After the download, you can click the downloaded app to view the overview. The path is/Users/iphonename/Music/iTunes Media/Mobile Applications.
All applications are in this directory.

Copy the ipa file from this directory to the desktop, change the suffix to zip, and decompress it. If there is no thumbnail In the extracted directory, decompress the file in the subfolders until you see the thumbnail.

Step 4 restore images/extract resource file Images
Copy the extracted thumbnail to the $ path and run the php script.

Double-click the execution file of the same name in iPhonePNG to open a program similar to the terminal name on the windows console as follows:

Run the command to run the file.
1. control + c end all current commands (newly opened and ignored)
2. Run cd/Applactions/iPhonePNG to enter the iPhonePNG folder.
3. php./iPhonePNG. php: execute this directory and modify $ path to get the php file.

After the execution is complete, go to the path directory to view the resource image. Www.2cto.com
After you press enter in the command in the terminal program, you have to prompt that the text is not prompted here. The feedback information is relatively simple, so it is easy to understand whether to enter the folder correctly and whether the execution is successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.