Wiping all Cydia Tweaks without Restoring and Rejailbreaking

Discussion in 'iPad Hacking' started by willerz2, Apr 22, 2013.

  1. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Update 03.11.14: SemiRestore7 has been released and tested, and it's more reliable than SemiRestore for iOS 5-6, so I'll be adding SemiRestore7 back to this guide. SemiRestore7 will be at the bottom following option 12 of ILEX RAT.

    This guide is compatible with iOS 4.0 through 7.0.6 on all devices for ILEX R.A.T., and iOS 5.0 through 7.0.6 on all devices for SemiRestore7.

    So this was brought up to me this morning during work when a few of my colleagues installed incompatible tweaks and would end up stuck on the Apple logo, and since they didn't have Safe Mode, they weren't able to remove the incompatible tweak. But, since they're just stuck on the Apple logo, and they had absolutely no clue what the name of the Cydia tweak was, it's difficult to remove the tweak..... So, with that, I used their phones as lab rats to try out ILEX R.A.T. (See what I did there?)

    The Catch:
    ILEX R.A.T. WILL brick your phone if you're using Siriports. If you installed ANYTHING remotely similar to Siriports/Fake Siris, etc, etc through Cydia, and you DO NOT remove it manually, I WILL 100% GUARANTEE that you WILL brick your device. GUARANTEED. If you have a Siriport, and you plan on using ILEX R.A.T., you MUST manually remove Siriports and replace all of its associated system mods. ILEX R.A.T. and SemiRestore7 WILL NOT resolve system file issues as a result of using the "Erase All Contents and Settings" function in Settings.


    What's iLEX R.A.T.?

    ILEX R.A.T. stands for Remove All Tweaks. Basically this removes each and every installed app, tweak and dependency EXCLUDING the defaults from Cydia, so after you've jailbroken your device a while back, and you installed your hundreds of packages, it'll all be removed with a single command.

    What this is primarily used for is if your device ends up in a state where you cannot enter Safe Mode since you don't have it, or if your device is stuck on any screen but is still recognized by your PC, or, if your device can be placed into Safe Mode and you can't remove the tweak for some reason. The bigger use for this would be the general request of "How do I clean my device of all jailbroken apps and start over without restoring". We've all had that thought run through our minds once our devices start to act sluggish.

    So say you have an iPhone 5, and you're on 6.1.2. Your device is acting sluggish, or you're giving it to a family member because you decide that you want a fresh out of the box iPhone 5 instead of your 5 month old iPhone 5. You want to wipe all your tweaks and such so that your successor can install what they please, but because the latest iOS is not jailbreakable, you don't want to restore, and since you have every single Cydia tweak installed, it'll take you ages to delete them all manually. This will be for you.

    This will work for all devices but has a few other requirements as well that you'll have to keep in mind when using ILEX R.A.T.

    Where Do I Start?


    The tweak is simple. Simple download, install, and respring manually. It's an few KB deb, nothing huge.


    Note: After extensive testing, I highly recommend that users avoid the ILEX R.A.T. GUI. The progression of the wiping is imperfect in the GUI, so you have to first make sure that your device is not going to sleep because that will pause the progression, and that in most cases, you will not be able to see what is on your screen, so you will not be warned when you are to reboot your device. The command terminal may be slightly more work in terms of setup, but is a safer route.


    Method 1- Removing only Cydia tweaks.

    To implement the R.A.T feature, you'll need to use a single command, "rat". How do you use the command? Well we have several options
    • MobileTerminal (you can install this free from the default Cydia repos)
    • PuTTy (for Windows users)
    • Terminal (default for OS X users)
    • iFunBox (both Windows and OS X users)
    • Any other utility that allows you to run commands from your PC
    (You can download MobileTerminal and iLEX RAT from the above repository)


    Once you need the feature, simple open up any of these prompts (enabling SSH may be required for utilities like PuTTy and such), and type in 'rat'. You don't have to actually have to enter your credentials for Root access. Simply have a connection between your command terminal to your device (or simple open up MobileTerminal on your device) and type in "rat" without quotes.

    Example would be the following command line:

    And run the command. Then follow the simple instructions that crop up on your screen. Make sure you heed all warnings and read carefully. It's basically just a series of "Y" and "N" options and such.

    [​IMG]

    So to remove all tweaks, once you've ran your command, type in "1", then tap Return. It'll start to compile a list of all tweaks and such that R.A.T will remove. When it asks for do you want to remove ILEX R.A.T, you can say Y or N, that's up to you. Saying Y will not cause your device to blow up, it'll just purge itself after the process. I'd say to say N so that just to keep it there as a future contingency plan.

    Next a prompt will come up warning you that all tweaks will be installed, but your jailbreak AND unlock will be retained (so yes, UltraSn0w and the Fixer, if applicable, will stay if you're relying on them). "Y" and return again.

    R.A.T will now go through the compiled list that its made and remove all the tweaks. This process will take a few minutes or more depending on how many tweaks you have installed. It'll then ask if you want to remove all tweak settings. "Y" if you just want to wipe and start fresh, "N" if you're going to re-install the same tweaks and such.


    Summarized Instructions:


    1. Open Command Terminal
    2. Type in "rat", return.
    3. "1", return
    4. "Y" or "N", return (Y to remove R.A.T along with everything, N to keep)
    5. "Y", return
    6. "Y" or "N", return (Y to delete all user settings, N to keep all user settings)
    7. Respring/reboot

    You're done. I recommend re-springing or rebooting your device as you would be prompted to when you uninstall a tweak from Cydia that affects the system files.



    Method 2- Removing everything except your barebone jailbreak

    This method is slightly different from the first method. The first method is used to strictly remove your jailbroken tweaks and settings. Method 2 however, allows you to wipe your device BUT keep your jailbreak. For many users, they're experiencing lag, slow performance, etc, etc., and they want to restore but yet keep their jailbreak, this feature basically replicates the "Erase All Contents and Settings" in Settings.app, BUT, if your device is jailbroken, using the stock version rather than this version will result in you being issues that will require you to do a manual DFU restore, meaning you'll lose your jailbreak and will have no way of turning back for A5+ users.

    [​IMG]

    Option 12. iLEX-RESTORE: Revive, Speed Up, Clean Up.

    Basically you follow the set-up instruction like method 1, except this time, instead of choosing option '1', you choose option '12'. Resulting in the below screen

    [​IMG]

    Remember that this option will wipe your device, and keep the jailbreak/UltraSn0w that's on your device (if applicable). Type in 'Y', Enter. And it should begin. It'll take a few minutes or longer depending on what you have on your but in the end, it'll wipe your device as if you tapped on the "Erase All Content and Settings" that you normally do not tap on a jailbroken device because it will mess up your device.

    Summarized Instructions:

    1. Open Command Terminal
    2. Type in "rat", return/enter
    3. "12", return/enter
    4. "Y", return/enter
    4A. "Y" or "N", return/enter (ILEX R.A.T. will ask whether or not you want to remove MobileTerminal as well if you're using MobileTerminal)
    5. Reboot

    ---------------------------------------------------------------------------------------------------------------------------------------------

    SemiRestore7 (iOS 5.0 - 7.1.1)

    Why use SemiRestore7?

    SemiRestore7 is more refined than the original SemiRestore released last year, and works for iOS 5, 6 and 7 devices. I've tested this on several devices including ARM64 devices, and none of them are experiencing boot loops or Recovery loops at all. Also unlike ILEX R.A.T., SemiRestore7 retains your Cydia user profile (User, Hacker, Developer) so you won't have to re-set it, it will retain truly crucial packages (which ILEX R.A.T. does as well, but ILEX R.A.T. also saves some residual data in some cases), and it utilizes OpenSSH. Though it utilizes OpenSSH, you will still need to plug your device in.

    What you will need

    • OpenSSH (installed through Cydia)
    • Your password to be changed back to the default password 'alpine' if you've changed it.
    • SemiRestore7 for Windows || Mac || Linux
    * Theoretically it should ask for your SSH password if you've changed it, but for the sake of ensuring a smooth process, I recommend changing it back to alpine, then changing it again afterwards.

    Step 1: Extract SemiRestore 7.

    [​IMG]

    Step 2:
    Run SemiRestore7 (as an administrator on Windows) and connect your device

    [​IMG]

    Step 3:
    Click on the SemiRestore button

    [​IMG]

    *At this point, if your SSH password is not the default 'alpine', SemiRestore will ask for you to input your password. If you've reverted it back to 'alpine', you won't have to do anything as it will progress to the next step.

    Step 4:
    You may or may not see this step. This step occurs extremely quickly so you may not see this.

    [​IMG]

    Step 5: Do not touch your device. Your device will be locked (if your lock timer has been exceeded) or you will see your Springboard if your lock timer has not been exceeded or it has been set to Never.

    [​IMG]

    Step 6: Do not touch your device. Your device will be locked (if your lock timer has been exceeded) or you will see your Springboard if your lock timer has not been exceeded or it has been set to Never.

    [​IMG]

    Step 7: Your device will now perform a reboot. This step is the longest. Depending on how much data is on your device, this can range from 5 minutes to 30 minutes if not more.

    [​IMG]

    Step 8: You're finished. You can now reinstall your packages and restore from an iTunes backup that you've made prior to utilizing SemiRestore7.

    [​IMG]





    Disclaimer:
    I DO NOT own or take ANY credit for creating these utilities, nor do I take any cred for creating other utilities that are used to implement this tweak. Also, we DO NOT endorse the ILEX RAT owner's secondary repository, nor do I recommend using it. I take NO PART in any problems that arouse when you choose to use the secondary repo or from the utilization of these utilities.
    Last edited: Jun 26, 2014
    • Like Like x 1
  2. bifftaz
    Offline

    bifftaz iPF Novice

    Joined:
    Aug 21, 2012
    Messages:
    22
    Thanks Received:
    4
    Trophy Points:
    3
    Location:
    UK
    Ratings:
    +4 / 0
    Nice tutorial. Just wish I had found something like this before I wiped my iPad & updated to 6.1.3.
  3. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Added instructions on connecting using PuTTy.
  4. rocketi05
    Offline

    rocketi05 iPF Novice

    Joined:
    Sep 27, 2012
    Messages:
    10
    Thanks Received:
    1
    Trophy Points:
    0
    Ratings:
    +1 / 0
    Thank you very much. My iPad was getting a little sluggish. Needed a revamp!
  5. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Added MobileTerminal as well to the repo for users that opt for the MobileTerminal method.
  6. basmantard
    Offline

    basmantard iPF Novice

    Joined:
    May 16, 2013
    Messages:
    10
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 0
    i tried to use this with mobile terminal on my ipad 3 with jb ios 5.1.1

    i just downloaded mobile terminal and it says

    mobile$ rat
    -sh: rat: command not found

    what do i do now?
  7. basmantard
    Offline

    basmantard iPF Novice

    Joined:
    May 16, 2013
    Messages:
    10
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 0
    nevermind, you didnt say to look into the repository and download the latest version lol, i found it
  8. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    I'm pretty sure the thread revolved around ILEX R.A.T. and not MobileTerminal. MobileTerminal is just a means of using the command, not the core of the thread itself.
  9. basmantard
    Offline

    basmantard iPF Novice

    Joined:
    May 16, 2013
    Messages:
    10
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 0
    i just meant that you need to go into the source and download ILEX R.A.T. before you can use MobileTerminal

    BTW the source is "cydia.myrepospace.com/willerz2/"

    if you dont put the extra "/" at the end it wont validate. this is just info for all the other noobs out there
  10. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Updated to include option 12, which simulates the "Erase All Contents and Settings" that you normally should not and would not use on a jailbroken device, except this method will work, and will allow you to retain your jailbreak.
  11. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Added SemiRestore, an alternative but similar method to ILEX R.A.T. This method can be done via USB or SSH, and supports Windows, Mac OSX, SSH and Linux. The UI is very Evasi0n/Absinthe-esque. A single window, with a single button.
  12. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Updated repo/source for iLEX RAT as well as 1.0.3 for Semirestore
  13. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Semirestore is now tagged (beta;unstable) because of the inconsistencies that it brings. Some users report it working, some report it not working. I will leave it here as a potential option, but for best results, ILEX R.A.T. is recommended
  14. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Semi-restore has been removed from lack of upkeep from the developer. Because the utility is far from the level of development of ILEX R.A.T., it's safer to resort to ILEX R.A.T. than to risk being forced to restore, which contradicts the purpose of this guide.
  15. gobbles
    Offline

    gobbles iPF Novice

    Joined:
    Apr 1, 2013
    Messages:
    20
    Thanks Received:
    0
    Trophy Points:
    1
    Ratings:
    +0 / 0
    So I still need would need to download mobileterminal even if I run iLex rat on an ipad?
    Does iLex Rat have to be installed on the iPad in order to work or could I connect my iPad to a PC and run it from the PC when the iPad messes up?
  16. Mickey330
    Offline

    Mickey330 Administrator Staff Member

    Joined:
    Aug 30, 2010
    Messages:
    11,481
    Thanks Received:
    1,737
    Trophy Points:
    113
    Location:
    Western NY state (USA)
    Ratings:
    +1,867 / 0
    Yes, you have to install iLex R.A.T. on your iPad. Then, you have the option of installing Mobile Terminal or using various programs on your PC/Mac.

    Though, I've heard that people have better success if they run the rat command from the computer versus via a Mobile Terminal. It's the way that iLex R.A.T. cleans up after itself that sometimes causes and issue...

    Marilyn
  17. gobbles
    Offline

    gobbles iPF Novice

    Joined:
    Apr 1, 2013
    Messages:
    20
    Thanks Received:
    0
    Trophy Points:
    1
    Ratings:
    +0 / 0
    To sum up:
    If I want to run iLex Rat from the actual ipad then I need to install iLex rat and Mobile Terminal on iPad?
    If I want to run iLex Rat from a PC, I need to install iLex rat on the ipad and which program should I download to my PC to run iLex Rat?
    If my laptop is stuck on the apple logo then my only solution would be to run iLex rat from the pc?
  18. Mickey330
    Offline

    Mickey330 Administrator Staff Member

    Joined:
    Aug 30, 2010
    Messages:
    11,481
    Thanks Received:
    1,737
    Trophy Points:
    113
    Location:
    Western NY state (USA)
    Ratings:
    +1,867 / 0
    Yes, you will need iLex R.A.T. on the iPad and, from the first post in this thread:

    Correct. If you can't get into the iPad because it's "stuck," then the only way to get into it is via the PC. However, have you tried re-starting the iPad using Mobile Substrate Safe Mode? It is loaded automatically whenever you install a tweak that uses Mobile Substrate (which is most of the more popular ones). Then, in Safe Mode, you'll be able to access your iPad.

    Hopefully, some of this'll help. Good luck.

    Marilyn
    Last edited: Dec 9, 2013
  19. willerz2
    Offline

    willerz2 iPad Addict

    Joined:
    Feb 22, 2012
    Messages:
    1,259
    Thanks Received:
    230
    Trophy Points:
    63
    Location:
    New York
    Ratings:
    +240 / 0
    Don't forget OpenSSH as well if you're using a computer to run the command. I think I'll need to separate it a little better in the initial post to clarify what's needed for what

    EDIT: I've re-listed the bullet points of the utilities that're needed for using a computer and for directly on the device. Hope that clarifies the bit regarding what is required for each use.
    Last edited: Dec 9, 2013
  20. gobbles
    Offline

    gobbles iPF Novice

    Joined:
    Apr 1, 2013
    Messages:
    20
    Thanks Received:
    0
    Trophy Points:
    1
    Ratings:
    +0 / 0
    can iLex Rat be installed on the iPad through iFunbox and then be run remotely through iFunbox? or is the only way to run ilex rat is through installing it through cydia and then either running it through the ipad or ifunbox?

Share This Page

Search tags for this page
can you wipe a jailbroken ipod exclude cydia
,
cydia app to restore passwords
,
delete all cydia tweaks at once
,
how to delete all cydia packages
,

how to delete all cydia tweaks at once

,
how to delete cydia apps using ifunbox
,
how to delete cydia tweaks using ifunbox
,
how to delete tweaks via pc
,
how to remove all cydia tweaks
,

how to remove all cydia tweaks at once

,
how to remove all installed cydia tweaks
,
how to remove all tweaks from cydia
,
how to remove cydia tweaks manually
,

how to remove cydia tweaks using ifunbox

,
how to uninstall all packages in cydia
,
how to wipe cydia clean
,
remove all cydia tweaks
,
remove all cydia tweaks at once
,
uninstall cydia and all its tweaks
,
wiping all