Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resign Cydia App to Install on Non-Jailbroken iPhone

I'm part of the apple developer program so I can code sign and install on my device.

Is it possible to take an application from Cydia (it doesn't appear to use mobilesubstrate, it's packaged as a .deb) and re-sign it so I can install it on my non-jailbroken iPhone?

Thanks!

like image 264
BarrettJ Avatar asked Jul 01 '10 20:07

BarrettJ


People also ask

Do you need to jailbreak your iPhone for Cydia?

If you really need Cydia, you'll need to jailbreak your iPhone to get it. Check out How to Jailbreak an iPhone for easy-to-follow instructions on jailbreaking your iPhone. Jailbreaking is only recommended for advanced users, as it allows you to install apps and tweaks that aren't reviewed by Apple.

Is Cydia harmful to iPhone?

Is Cydia Safe? Yes, so long as you install the jailbreaks using the official sources and only use preinstalled sources, because third-party repositories may contain malware.

Why was Cydia shut down?

Cydia claimed that it was forced to shut down because of Apple's allegedly unlawful control of app distribution on iOS. Cydia shut down in 2018.

Can I install apps on a jailbreak iPhone?

Jailbreaking your iPhone means freeing it from the limitations imposed by Apple. Although you can continue using the App Store, you can also install other apps from other stores, change the look of the operating system, and plenty more.


4 Answers

Probably. Depending on the app. Some applications are just App Store applications (or similar), that were or would be rejected. If it is one of those, extracting the .app file then codesign-ing the binary inside there should get it to work.

However, many Cydia apps require themselves to be installed to the "system" directory (/Applications), so won't work in the App Store/Developer directories, and also may require root access or access to other files that Apple would deny.

Your best bet, if you want to run one of these apps, is to jailbreak.

like image 145
Grant Paul Avatar answered Nov 11 '22 20:11

Grant Paul


You can use the built in codesign terminal command to resign your app by typing:

codesign -fs "iPhone Developer : <your name>" application.app
like image 45
Jay BMan Avatar answered Nov 11 '22 20:11

Jay BMan


As long as the application does not go anywhere beyond the Sandbox - you can resign it using your developer account. You don't need the source for that.

You might check www.aironapp.com it does the recodesigning procedure. All you need to do is configure your Developers Apple Account there.

like image 45
shader Avatar answered Nov 11 '22 20:11

shader


If the full source code for that app is provided in the .deb (which you can extract and see) then you could probably resign the code and put it on your device. However, you would need everything that the actual developer had, which as I understand does not happen. (If you compile an iPhone app and look at the .app package contents, you'll notice all your resources, but no .h /. files, just a data.momd file.

If you do some tricky decompiling, perhaps you could get all the files you need, but that's a different story.

like image 24
Ethan Mick Avatar answered Nov 11 '22 19:11

Ethan Mick