IPhoneApplicationsPXLFormat Program Development Instance operations, first to understandPXL,PXLIs a widely used iOS program installation package in China. It can only be installed on Cracked versions.IPhone/IPad and other devices. Compared with the official IPA format, pxl format programs have their unique features.
1,PXLComparison with IPA
IPA, as the official installation package format of apple, is obviously advantageous in the early days. It is easy to install and uninstall. It can be installed, synchronized, and uninstalled only by using iTunes, third-party Assistant Software generally supports the IPA format. However, because it is an official format, there are restrictions on the sandbox feature. That is to say, he can only access the directories in the sandbox.
PXL, as a widely used software in China, also has its own advantages. First, it has a stronger access scope for file directories. Because PXL is installed on Cracked hosts, PXL software accesses the entire file system. Therefore, if you want to do system-related software, for example, if you install other software or modify system configurations, IPA cannot.
Secondly, he has more flexibility before and after installation and uninstallation. If you want to do some preparation before installation, or do some special things during uninstallation, you can use PXL installation and uninstallation to complete your purpose.
Third, the PXL program can obtain higher permissions. You can use some means to give your application root permissions.
The disadvantages of PXL are also obvious! He only supports cracked iOS devices. At the same time, he will also lose some of the features of IPA software.
2. Differences between PXL software development process and IPA software development process
The PXL development process is different from the IPA development process. If you do not understand the differences, they may have some impact on your software operation process.
1. PXL may not be able to obtain the directories where IPA, such as Document and Library, must exist.
In IPA software, after the software is installed, its directory format is roughly as follows:
- Xxxxxx guid directory generated by Apple)
- |
- |____ MyApp. app
- |____ Document
- |____ Library
- |____ Tmp
- |____ Other xxxx Directories)
After PXL software is installed on the cracking machine, its directory format is as follows:
- /Applications
- |
- |____MyApp.app
2. Can I use directories such as Document and Libarary IN THE PXL program?
The answer is yes. Why? This may be related to the machine's cracking situation. Generally, you can use the system API to obtain the Document directory. The directory you will obtain is/var/mobile/Document. Similarly, the Library will point to/var/mobile/Library. Basically, these directories exist on the cracking machine! But _ does not guarantee that _ these directories exist, and there is a very small probability that the directory will not exist on the machine where the attack is problematic .)
Are there any precautions for using these directories?
First, the Document directories of all pxl software point to the same directory/var/mobile/Document directory, so there may be a risk of duplicate names!
Second, when the software is uninstalled, the files under your Document and Libary will not be deleted!
3. What is the recommended data storage method for PXL program development?
In the PXL program development process, what methods are recommended to store information?
Generally, you can use NSBundle to obtain the path of your app, and create a data storage directory under your app directory, you can import the package directly or directly store it in your app directory ). Store your data under this directory.
There is also a situation where your program needs to generate both ipa and pxl, so you may need to adapt to these situations in the program. So what should you do with this situation?
First, try to avoid using directories such as Document and Libarary directly in the Code. encapsulate them before accessing these directories. For example:
- NSString * getMyDocumentPath ()
- {
- NSString * path = nil;
- If (isJailBreak)
- {
- Path = MyJailBreakPath; // cracked custom path
- }
- Else
- {
- Path = DocumentPath; // the system's Document path
- }
- }
So how should we determine whether jailBreak is used? One way is to directly specify in the code before packaging. What about the dynamic determination method? In fact, it is very easy to directly access a file that exceeds the sandbox directory. If you can access it, it must have been jailBreak.
For example:
- BOOL isJailBreak()
- {
- int res = access(”/var/mobile/Library/AddressBook/AddressBook.sqlitedb”, F_OK);
- if (res != 0)
- return NO;
- return YES;
- }
Summary:IPhoneApplicationsPXLThe operations on the formatting Program Development Instance are completed. I hope this article will help you.