Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[RECOVERY LOCKED] Safestrap Recovery v3.71/v3.72 [2014-04-02 KK Beta]

OP Hashcode

Announcement from Hashcode: Safestrap: Custom recovery for locked devices!
18th September 2013, 06:41 AM   |  #1  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,680
 
3,242 posts
Join Date:Joined: Sep 2011
Donate to Me
More
*** DISCLAIMER ***
I work on projects that may brick your device. Don't sue me, hate me or try and kill my dog if that happens. I will feel bad the community will feel bad and hopefully we'll find a way to get you going again. But, the very nature of my projects involves a certain amount of risk taken by YOU. And by using the projects that I work on, you've accepted that fact.

WARNING #1: CURRENTLY THERE IS AN UNKNOWN ISSUE WHERE IF YOU HAVE ENCRYPTION ENABLED AND INSTALL SS IT BOOTLOOPS. IF YOU FIT THIS DESCRIPTION PLEASE STAY AWAY FROM SAFESTRAP FOR NOW.

USEFUL LINK OF TW ROMS:
http://forum.xda-developers.com/show....php?t=2616221

CURRENT PROJECT STATUS:
v3.72 (NB1): Beta testing, no rom-slots
v3.71 (MK2): Debugging some rom-slot issues
v3.65 (TW4.2): Stable


WHAT IS SAFESTRAP?

Safestrap is a Bootstrap / Recovery for locked bootloader phones. The goal is to avoid touching your primary system (I'll call this "stock" system) and only flash or make large changes to another place on your phone that Safestrap treats as a "2nd system" (in this case, it's a series of virtual ROM slots located on the internal emmc area: "/sdcard"). Once installed, you will see a "Splashscreen" giving you the option to hit "menu" to enter recovery. The recovery portion of Safestrap is now based on TWRP 2.6.3.0 (a touch based recovery) and you can perform .zip installs, backups and restores here. The additional features I've added to TWRP are mostly located under the "Boot Options" menu:
  1. Here you can create virtual ROM-slots (2 on the S4 due to partition size and internal space) for flashing ROMs. These ROM-slots allow for 3 different sizes of /data partitions: 1GB, 2GB and 3GB. NOTE: The bigger you make the /data partition the less room you will have to make other ROM-slots.
  2. You can activate a new ROM-slot by choosing the slot you wish to make active and then selecting the "Activate" button. Once active, you will see the "rom-slot#" up in the top of the screen shown in green. If you make the "stock" ROM active, then you can see it in the top shown in red.
  3. Once a ROM-slot is active, all actions you would normally perform using TWRP are directed to that ROM-slot. For example, "Install" to flash a .zip, backup and restore.

For more information you can read up here:
http://blog.hash-of-codes.com/how-to-safestrap/


HOW DO I INSTALL SAFESTRAP?
  1. Requirement: Root
  2. Requirement: Allow APK install from Unknown Sources
  3. Download the Safestrap APK
  4. Find the APK using a Filemanager tool and open it on your device, then click "Install".
  5. (If updating from an existing Safestrap you might be warned that this will over-write the existing installation. Click the "Yes" equivalent to this message.)
  6. Once installed, open up the Safestrap application as you would any other app.
  7. Agree to the disclaimer that you won't try to sue me and hunt me down with a rifle if you manage to break your phone..
  8. Then use the "Install Recovery" button. You should see the current version down in the lower left corner of the window. And the "Status:" should say "Installed" when you're done.
  9. From there you can reboot and you *should* see a new splash screen during the boot up. While this is showing you can enter Safestrap Recovery using the [ menu ] button.
  10. That's it for the installation! Read below for a brief overview of Safestrap Recovery v3.x


HOW DO I ENTER RECOVERY?

During each reboot a splashscreen will be displayed showing whether the device is running a rom-slot or on the "Stock ROM".
Press under the button shown on the screen to either enter "RECOVERY" or "CONTINUE" booting.
By "under", I mean on the touch key portion of the front display on either side of the center button.


HOW DO I UPGRADE SAFESTRAP?
  • Push the APK up to your sdcard.
  • Boot back into the "stock" rom-slot.
  • Go into your old Safestrap app and use the "Uninstall Recovery" button
  • THEN, open a "file explorer" of some sort (even TW "My Files" will work)
  • Browse to where you pushed the APK
  • Click on it and install like normal
  • Once installed, open the APK
  • Grant SU access
  • Use the "Install Recovery" button
  • All set, now you can reboot and re-activate whatever rom-slot you were using

KNOWN ISSUES:
  • [v3.72] ROM-SLOTs aren't supported yet
  • [v3.72] "Reboot Recovery" doesn't work in the APK?


NEW TO v3.72:
  • TWRP 2.7.0.x update for the base recovery. This includes vibration support, backup time/date fixes and more.
  • ROM-SLOTs now have a 16gb size limit (vs 4gb previously) [THEY DON'T WORK YET IN KK THO SO BE PATIENT]


DOWNLOADS:
CONFIRM THAT YOU ARE USING AN AT&T SAMSUNG GALAXY S4 (NOT THE ACTIVE MODEL)

MAKE SURE IF YOU ARE UPGRADING TO v3.7x FROM v3.65 THAT YOU USE THE "UNINSTALL RECOVERY" BUTTON IN THE v3.65 APK BEFORE INSTALLING v3.7x.


NOTE: USE ONLY ROMS THAT MATCH UP WITH YOUR TOUCHWIZ VERSION. IF YOU'RE ON MK2 THEN ONLY USE ROMS BASED ON MK2 AND IF YOU'RE ON MF3 ONLY USE ROMS BASED ON MF3


FIND YOUR STOCK OPERATING SYSTEM VERSION BELOW AND USE THAT FILENAME:

FOR USERS OF NB1:
USE 3.72+:BETA Safestrap-JFLTE-3.72.apk (updated 2014-04-02)

FOR USERS OF MK2:
USE 3.71+:BETA Safestrap-JFLTEATT-3.71.apk (updated 2013-12-27)

FOR USERS OF MF3 (TW4.2):
LATEST FILE: Safestrap-JFLTEATT-3.65.apk (updated 2013-11-15)

Main XDA Downloads Page
Mirror 1 (Goo.im)
Mirror 2 (Crackflashers)


ALSO DOWNLOAD THE KERNEL MODULES .ZIP THAT MATCHES YOUR BUILD # (FLASH THIS AFTER ROMS):
MF3: http://forum.xda-developers.com/devd...ect/dl/?id=508
MK2: http://forum.xda-developers.com/devd...ct/dl/?id=3275


HOW TO MANUALLY REMOVE SAFESTRAP:
[ INSTRUCTIONS ONLY FOR PRIOR TO v3.65. REMOVE VIA APK FOR v3.70+ ]

Enter adb shell from your pc:
Code:
su
mount -o remount,rw /system
mv /system/etc/init.qcom.modem_links.sh.bin /system/etc/init.qcom.modem_links.sh
rm -rf /system/etc/safestrap
rm /system/etc/firmware/q6.mdt
ln -s /firmware/image/q6.mdt /system/etc/firmware/q6.mdt
mount -o remount,ro /system

As of version 3.6x, Safestrap Recovery is now based on TWRP 2.6.3.x. For more on TWRP you can visit their website: http://www.teamw.in/

WARNING: Safestrap is heavily modified to be "Safe" for your device. Do not download TWRP from their website and expect it to work the same way. Also TWRP does not support Safestrap, tho some issues that may come up will be TWRP dependant, please try and contact myself or look on the forums for your device for answers before hunting down TWRP people. They won't be able to help w/ Safestrap specific questions.

This thread is a development ONLY thread.
For discussion go here:
http://forum.xda-developers.com/showthread.php?t=2428254



XDA:DevDB Information
Safestrap Recovery v3.71 (JB) / v3.72 (KK), a Tool/Utility for the AT&T Samsung Galaxy S 4

Contributors
Hashcode, DeesTroy & TeamWin

Version Information
Status: Beta
Current Stable Version: 3.71
Stable Release Date: 2013-12-27
Current Beta Version: 3.72
Beta Release Date: 2014-04-02

Created 2013-09-18
Last Updated 2014-04-02
Attached Thumbnails
Click image for larger version

Name:	background-nonsafe.jpg
Views:	64504
Size:	12.7 KB
ID:	2265250   Click image for larger version

Name:	background-safe.jpg
Views:	63295
Size:	15.7 KB
ID:	2265251   Click image for larger version

Name:	ss-3.50-01-main.jpg
Views:	63443
Size:	19.9 KB
ID:	2265252   Click image for larger version

Name:	ss-3.50-02-choose-romslot.jpg
Views:	62066
Size:	18.7 KB
ID:	2265253   Click image for larger version

Name:	ss-3.50-03-create-romslot.jpg
Views:	61231
Size:	19.6 KB
ID:	2265254  
Last edited by Hashcode; 10th December 2013 at 06:05 AM.
The Following 231 Users Say Thank You to Hashcode For This Useful Post: [ View ]
18th September 2013, 06:41 AM   |  #2  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,680
 
3,242 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Reserved
KNOWN ISSUES:
  • Bluetooth remote control isn't working on rom-slots.

CHANGELOG:
[2013/11/13] TWRP updates
[2013/11/13] "toolbox" binary / symlinks in recovery fixed
[2013/11/11] Uninstall from the APK fixed
[2013/09/17] /sdcard mounting bugfix
[2013/09/17] Hijack improments to support default rootfs files
[2013/09/17] ROM-slot image creation bugfix for size > 2gb
[2013/09/12] Much improved block device handling
[2013/09/11] Bugfix in script translation
[2013/09/11] hijack / init.rc tweaks
[2013/09/11] Bugfix for display lag / buffering issue (WIP)
[2013/09/10] Adjust "ROM-slot" display in UI
[2013/09/10] /data/media handling changes
[2013/09/06] custom twrp.fstab files
[2013/09/06] /data/media handling changes
Last edited by Hashcode; 14th November 2013 at 12:02 AM.
The Following 39 Users Say Thank You to Hashcode For This Useful Post: [ View ]
18th September 2013, 06:41 AM   |  #3  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,680
 
3,242 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Reserved
KNOWN ROM INSTALL / ISSUES:
  • All TW-based ROMs. If you don't have wifi make sure to flash the kernel modules for your stock kernel version.
Last edited by Hashcode; 19th September 2013 at 09:51 AM.
The Following 31 Users Say Thank You to Hashcode For This Useful Post: [ View ]
18th September 2013, 06:44 AM   |  #4  
Senior Member
Thanks Meter: 50
 
374 posts
Join Date:Joined: Aug 2011
Looks promising,

Thanks

Sent from my GT-I9505G using XDA Premium HD app
The Following 3 Users Say Thank You to jhong91 For This Useful Post: [ View ]
18th September 2013, 08:59 AM   |  #5  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,680
 
3,242 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Add the MF3 kernel module .zip to the "Downloads" section.
http://forum.xda-developers.com/devd...=680#downloads

Keep this on your SD card and flash it to the ROM-slot AFTER flashing a rom.

This will update your kernel modules to match the MF3 kernel and restore function to: wifi, bluetooth, gps etc.
The Following 32 Users Say Thank You to Hashcode For This Useful Post: [ View ]
18th September 2013, 09:04 AM   |  #6  
Andrew149's Avatar
Senior Member
Flag Modesto CA
Thanks Meter: 232
 
1,423 posts
Join Date:Joined: Jul 2010
More
Thank you so much hash!

Sent from my SAMSUNG-SGH-I337 using Tapatalk 4
18th September 2013, 09:17 AM   |  #7  
rebel1699's Avatar
Senior Member
Flag Oklahoma
Thanks Meter: 1,239
 
1,694 posts
Join Date:Joined: Feb 2008
More
An at&t thread. Yes! andyfredrick

Sent from my Nexus 7 using XDA Premium 4 mobile app
18th September 2013, 09:25 AM   |  #8  
Andrew149's Avatar
Senior Member
Flag Modesto CA
Thanks Meter: 232
 
1,423 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by Hashcode

Add the MF3 kernel module .zip to the "Downloads" section.
http://forum.xda-developers.com/devd...=680#downloads

Keep this on your SD card and flash it to the ROM-slot AFTER flashing a rom.

This will update your kernel modules to match the MF3 kernel and restore function to: wifi, bluetooth, gps etc.


WIFI WORKS!!!!!!!! and so does everything else...

Hash can i backup my stock rom to the external sd card and than delete it so i get my 10gigs back? is that safe?
18th September 2013, 09:32 AM   |  #9  
iB4STiD's Avatar
Recognized Contributor
Flag U.S.A
Thanks Meter: 20,834
 
11,196 posts
Join Date:Joined: Nov 2008
Donate to Me
More
hope this helps out some people!!.. nice job man!!
18th September 2013, 09:36 AM   |  #10  
Andrew149's Avatar
Senior Member
Flag Modesto CA
Thanks Meter: 232
 
1,423 posts
Join Date:Joined: Jul 2010
More
Just install gpe wifi gps work! i also went back to stock rom and everything worked perfect

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes