Hi, I have a simple question. I have some anti-piracy code in my app, and I was wondering how I could force quit the app (if the app is pirated). Any help is appreciated! Thanks!
i'm curious how you are implementing anti-piracy security into your app. please give details.
I think apple broke the terminate selector in 3.0 I used to use it in a game I was developing and it stopped working after I upgraded to 3.0.
Sure, blame it on Apple when you use a private method and it stops working
You could use class-dump on UIKit framework for the simulator to find out if it's been changed or renamed but otherwise you shouldn't use that method, or if you do use some checks (e.g. respondsToSelector) before calling it.
from what i've read so far about pirating apps, the hackers search for strings (namely: @"SignerIdentity")... perhaps it would be more effective to produce this string by appending characters so it's less traceable?
I don't get why you would want to be polite to a cracker, its not like they downloaded a cracked version of your app by accident. All this BS about try before you buy is a pathetic excuse. If you owned a shop and someone stole an item from it you would be straight on the phone to the cops, you wouldn't be nice to them in the hope that they would come back and buy the item from you once they decided they liked it.
i'm curious whether it's possible to search for comments in code. i mean, it would be unfortunate to safeguard a @"SignerIdentify" string with encoding only for it to be tagged with an obvious comment above the method. i know nothing about cracking.
keeping in line with the OPs discussion. since the ability to force quit an app may change (has changed?), i'd just toss up an image instead of adding the viewController.view during applicationDidFinishLaunching. besides, quitting an app for a cracker is more polite than presenting a static image which they'll have to exit from themselves. attached is what i use for my own apps. also, images are ideal to avoid using strings such as "This Application Has Been Pirated", which can be located.
Yeah, I just put an image instead. The image says "Stop Pirating this App" or something like that. You said dont use something like that, why not?
an image of text will be fine, except for localization purposes... but i mean, who is really going to localize this type of message?
i've been reading about several methods which allow people to crack iPhone apps. the most prominent is to scan for string objects to either remove or change them rendering the anti-piracy method ineffective. so it seems you are at a greater risk if you use unencrypted string objects as they can be easily located.
Oh, okay. Makes sense. Thanks for the info![]()
ha, im subscribed to you on youtube and watched your tutorial about 20 minutes before seeing this thread, little did i know it was you again... haha. ps if you wanna make a tut on using the ipod functionality within the app (and itd be a welcome addition to your app, which i did pay for), im pretty sure youd be the first to make such a tut cuz i havent seen any and i sure have looked.
I am so glad that everyone is ignoring this "solution". Good job, people!Press and hold the sleep/wake button as if you're turning the phone off.
When the "slide to power off" thing comes up, press and hold the home button until the app in the background shuts off.
I am so glad that everyone is ignoring this "solution". Good job, people!