Skip to content

Commit

Permalink
Removing of binary patches (it breaks some apps), bundle format change
Browse files Browse the repository at this point in the history
  • Loading branch information
ZonD80 committed Dec 19, 2020
1 parent 1265481 commit d4b68f9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions duppy2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.0;
MARKETING_VERSION = 1.2.1;
PRODUCT_BUNDLE_IDENTIFIER = zond80.duppy2;
PRODUCT_NAME = Duppy;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -430,7 +430,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.0;
MARKETING_VERSION = 1.2.1;
PRODUCT_BUNDLE_IDENTIFIER = zond80.duppy2;
PRODUCT_NAME = Duppy;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>duppy2.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>4</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
Expand Down
Binary file not shown.
7 changes: 4 additions & 3 deletions duppy2/AppInfoViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ class AppInfoViewController: UIViewController {
let mainBundleId = mainInfoPlistEntities["CFBundleIdentifier"] as! String
self.log("Main bundle id is \(mainBundleId)")

newBundleId = "duppy."+self.randomString(length: mainBundleId.count-6); // make sure that new bundle ID has the same length
//newBundleId = "duppy."+self.randomString(length: mainBundleId.count-6); // make sure that new bundle ID has the same length
newBundleId = mainBundleId+".duppy."+self.randomString(length: 6);

self.log("Replacement bundle id is \(newBundleId)")

Expand Down Expand Up @@ -463,8 +464,8 @@ class AppInfoViewController: UIViewController {
let entitlementWriteResult = self.task(launchPath: "/usr/bin/ldid",arguments: "-S"+localPath+"/work_dir/Entitlements.xml",executablePath);
self.log("entitlement write result: \(entitlementWriteResult)");
}
let appGroupPatchResult = self.task(launchPath: "/usr/bin/perl", arguments: "-pi","-e", "s/"+mainBundleId+"/"+newBundleId+"/g",executablePath);
self.log("binary patch result: \(appGroupPatchResult)");
/*let appGroupPatchResult = self.task(launchPath: "/usr/bin/perl", arguments: "-pi","-e", "s/"+mainBundleId+"/"+newBundleId+"/g",executablePath);
self.log("binary patch result: \(appGroupPatchResult)");*/

} else {
self.log("no executables in plist at location \(fileURL.absoluteString)")
Expand Down
4 changes: 2 additions & 2 deletions duppy2/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ class ViewController: UIViewController , UICollectionViewDelegate, UICollectionV
self.log("app path is \(self.selfAppPath)")
self.log("documents path URL is \(self.localPathURL)");

let perlTestResult = self.task(launchPath: "/usr/bin/perl",arguments: "-v");
//let perlTestResult = self.task(launchPath: "/usr/bin/perl",arguments: "-v");

if (!perlTestResult.contains("This is perl")) {
if (false/*!perlTestResult.contains("This is perl")*/) {
self.log("looks like there is no perl on device");
self.setStatusText(text: "Looks there is no perl.\nPlease install perl from Cydia")
} else {
Expand Down

0 comments on commit d4b68f9

Please sign in to comment.