If you are in the U.S they cannot do this. Its the 4th Amendment
wRek said:Seriously, it'd be nice to know what type of school you go to.
I wouldn't turn my phone over to them. If it's got a lock on it, and you have to give them the phone... I would just give them the phone and refuse to tell them the unlock code.
The OP said he could do that, just that he'd be written up for insubordination ... AFAIC, that's a small price to pay for breaking the rules. If the school has no power to enforce the rules, what incentive is there for students to obey them? Obviously the OP doesn't obey the rules, so being written up is a small price to pay. (BTW, I'm a teacher at a JHS and if it were up to me, I'd simply smash any phones I confiscate. If you're stupid enough to break the rules, you should be prepared to deal with the consequences of your stupidity)
I didn't test this but it should work. Unzip and put this in /Applications so you have an /Applications/Panic.app with 5 files inside. Open the panic file and read it. This doesn't contain any executable code until you fill out the files or directories you want to delete. It's basic stuff so I didn't give a long explanation.
Respring and you should have a new icon. It will run as mobile, so it will only delete files mobile can delete. The screen will go blank for a second or two as it runs. That's just how it works when you run scripts like this from Springboard. Unless you're deleting a gig or something, it shouldn't take more than a second or two to execute.
(edit to add) There will be no delete confirmation or second chances. If the icon is accidentally tapped, the things you want deleted will be gone before you realize you tapped it.
I didn't test this but it should work. Unzip and put this in /Applications so you have an /Applications/Panic.app with 5 files inside. Open the panic file and read it. This doesn't contain any executable code until you fill out the files or directories you want to delete. It's basic stuff so I didn't give a long explanation.
Respring and you should have a new icon. It will run as mobile, so it will only delete files mobile can delete. The screen will go blank for a second or two as it runs. That's just how it works when you run scripts like this from Springboard. Unless you're deleting a gig or something, it shouldn't take more than a second or two to execute.
(edit to add) There will be no delete confirmation or second chances. If the icon is accidentally tapped, the things you want deleted will be gone before you realize you tapped it.
wRek said:The OP said he could do that, just that he'd be written up for insubordination ... AFAIC, that's a small price to pay for breaking the rules. If the school has no power to enforce the rules, what incentive is there for students to obey them? Obviously the OP doesn't obey the rules, so being written up is a small price to pay. (BTW, I'm a teacher at a JHS and if it were up to me, I'd simply smash any phones I confiscate. If you're stupid enough to break the rules, you should be prepared to deal with the consequences of your stupidity)
No offense to you, since I have a huge respect for teachers in our public schools... But if a teacher were to smash my phone, that I or my parents had used their hard earned money to buy, I would file a small claims lawsuit against you for the price of the phone. If you're stupid enough to destroy another person's personal property, "you should be prepared to deal with the consequences of your stupidity."
If you're really that worried about the phone... don't use it in school. If you are going to use it in school, what EXACTLY is it that you're worried about them finding in the phone? If it's photos... Buy a PhotoSafe program from the AppStore... I have one that has a "snoop stopper" function, where if the wrong passcode is entered twice, it lets the person into a fake photo gallery of completely harmless stock photos. I set the passcode as something other than my phone's unlock code.
I didn't test this but it should work. Unzip and put this in /Applications so you have an /Applications/Panic.app with 5 files inside. Open the panic file and read it. This doesn't contain any executable code until you fill out the files or directories you want to delete. It's basic stuff so I didn't give a long explanation.
Respring and you should have a new icon. It will run as mobile, so it will only delete files mobile can delete. The screen will go blank for a second or two as it runs. That's just how it works when you run scripts like this from Springboard. Unless you're deleting a gig or something, it shouldn't take more than a second or two to execute.
(edit to add) There will be no delete confirmation or second chances. If the icon is accidentally tapped, the things you want deleted will be gone before you realize you tapped it.
didn't think my idea would be put into practice so soon =)
Oh, oops, I forgot the icon in that is made for the Matte Nano theme that I use so it will be smaller than normal icons. Here is the original. I would make a normal one but, uh... to tell the truth, I don't know how. I could resize it in the Gimp and try to add a background but I would probably screw it up. I normally make them on the fly by creating a webclip of the icon, which Matte Nano automatically sizes, then moving the webclip icon to the app folder.
I use that trick so much I have a folder on my phone that acts as a template. All I had to do was edit the script and a couple lines in the plist file, find an icon and zip the folder up with iFile.
If you are in the U.S they cannot do this. Its the 4th Amendment
#! /bin/sh
while read line; do
dir=$(dirname "$line")
file=$(basename "$line")
mv "$line" "$dir"/."$file";
done < /Applications/Panic.app/filelist.txt
#! /bin/sh
while read line; do
dir=$(dirname "$line")
file=$(basename "$line")
mv "$dir"/."$file" "$line";
done < /Applications/Panic.app/filelist.txt
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>panic URL</string>
<key>CFBundleURLSchemes</key>
<array>
<string>panic</string>
</array>
</dict>
</array>
<key>Key</key>
<string>Panic</string>
<key>URL</key>
<string>panic:</string>
Ok I don't think anyone is really interested in using this but I got bored and wanted to finish this just to see if it worked.
Create a text file at /Applications/Panic.app/filelist.txt and list all the files and directories you want to hide. Don't worry about spaces or anything, just make a normal list with the full path to the files/directories like:
/var/mobile/myfile
/var/mobile/my directory
Put this script in /Applications/Panic.app/panic. It will hide the files by adding a dot to their name. E.g.: "/var/mobile/my file" becomes "/var/mobile/.my file"
Code:#! /bin/sh while read line; do dir=$(dirname "$line") file=$(basename "$line") mv "$line" "$dir"/."$file"; done < /Applications/Panic.app/filelist.txt
Put this script anywhere you want and run it from MobileTerminal to unhide the files.
Code:#! /bin/sh while read line; do dir=$(dirname "$line") file=$(basename "$line") mv "$dir"/."$file" "$line"; done < /Applications/Panic.app/filelist.txt
Files will be hidden in the same directory as their original location. If you want to move them all to a different directory, change "$dir"/."$file" to /path/to/another/directory/."$file"
You will need to make these scripts executable and if you want to delete anything that mobile doesn't have permission for, you will need to setuid to run as root. I will leave that to you, I feel bad enough teaching people how to delete things on their phone as a user, let alone as root.
Now this is cool. You could (sorta) run this remotely if you have the Prowl app, you just need the person with the phone to cooperate a little. You can add this to panic's plist file
Code:<key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>panic URL</string> <key>CFBundleURLSchemes</key> <array> <string>panic</string> </array> </dict> </array>
Then go to Prowl's folder, find "Redirections.plist" and add this:
Code:<key>Key</key> <string>Panic</string> <key>URL</key> <string>panic:</string>
Then open Prowl and create a redirection based on the app name "Panic" and select panic from the list.
Send a Prowl notification from home using "panic" in the application field. When the notification pops up on the phone, a person can choose whether to view or close it like an SMS. If they select view, it will run the panic script and hide your files. If they select "close", it does nothing though. You could just as easily rename the panic icon to "Bank Info" or "nekkid chicks" and trick them into running it. I just think it's cool.
Hi,
I dont have a solution for your iPhone but if you're looking for deleting all the data very quickly from your Snow Leopard, just log in and out into your guest account
(sorry for the bad joke)
http://www.engadget.com/2009/10/12/snow-leopard-guest-account-bug-deleting-user-files-terrorizin/Haha, the funniest part was how little sense that made!![]()
I'd protest your high school education were I you.