Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,807 Members 52,352 Now Online
XDA Developers Android and Mobile Development Forum
Announcement from Hashcode: Safestrap: Custom Recovery for Locked Devices!

[RECOVERY LOCKED] Safestrap Recovery v3.71 [2013-12-27 EXFAT Fix]

Tip us?
 
Hashcode
Old
(Last edited by Hashcode; 10th December 2013 at 05:03 AM.)
#1  
Hashcode's Avatar
Recognized Developer - OP
Thanks Meter 22011
Posts: 3,208
Join Date: Sep 2011

 
DONATE TO ME
Default [RECOVERY LOCKED] Safestrap Recovery v3.71 [2013-12-27 EXFAT Fix]

VERIZON SAMSUNG GALAXY S4 (JFLTEVZW)

*** 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.

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.


CURRENT PROJECT STATUS:
v3.71: Debugging some rom-slot issues (almost stable)
v3.65: Stable for ME7/MI1 builds

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.1.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.


DOWNLOADS:
CONFIRM THAT YOU ARE USING A VERIZON WIRELESS SAMSUNG GALAXY S4

FOR USERS OF MJ7/MK2:
USE 3.71+:BETA Safestrap-JFLTEVZW-3.71.apk (updated 2013-12-27)
Mirror 1: http://goo.im/devs/Hashcode/jfltevzw

FOR USERS OF ME7/MI1:
USE v3.65 ONLY!: Safestrap-JFLTEVZW-3.65.apk (updated 2013-11-15)
Main XDA Downloads Page
Mirror 1: http://goo.im/devs/Hashcode/jfltevzw

ALSO DOWNLOAD THE KERNEL MODULES .ZIP THAT MATCHES YOUR BUILD # (FLASH THIS AFTER ROMS):
ME7: http://forum.xda-developers.com/devd...ect/dl/?id=507
MI1: http://forum.xda-developers.com/devd...ct/dl/?id=1342
MJ7: http://forum.xda-developers.com/devd...ct/dl/?id=2459
MK2: http://forum.xda-developers.com/devd...ct/dl/?id=2536


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

Enter adb shell from your pc:
Code:
Select 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.


For the purposes of direct user testing I've established a channel on freenode.net IRC: #safestrap
I'm in the channel mostly all the time, but may not be active for discussion.

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



XDA:DevDB Information
Safestrap Recovery v3.71, a Tool/Utility for the Verizon Samsung Galaxy S 4

Contributors
Hashcode, DeesTroy & TeamWin

Version Information
Status: Stable
Current Stable Version: 3.65
Stable Release Date: 2013-11-15
Current Beta Version: 3.71
Beta Release Date: 2013-12-27

Created 2013-09-12
Last Updated 2014-01-10
Attached Thumbnails
Click image for larger version

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

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

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

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

Name:	ss-3.50-03-create-romslot.jpg
Views:	27499
Size:	19.6 KB
ID:	2251669  

The Following 202 Users Say Thank You to Hashcode For This Useful Post: [ Click to Expand ]
 
Hashcode
Old
(Last edited by Hashcode; 12th September 2013 at 06:32 AM.)
#2  
Hashcode's Avatar
Recognized Developer - OP
Thanks Meter 22011
Posts: 3,208
Join Date: Sep 2011

 
DONATE TO ME
Default Reserved

MAIN MENU:
  • Boot Options: This area is for managing your virtual ROM-slots. You create a new ROM-slot by clicking on one and if it doesn't exist you will be prompted to create it. Follow the on-screen guides. Once a ROM-slot is created you select that slot to activate or delete it. Under each ROM slot (once created) you can:
    • Activate: Makes the chosen ROM-slot the "current" one, where almost all of the features of TWRP affect that slot. This will also be the ROM that is booted.
    • Set Nickname: For convenience you can set a small name for each ROM-slot. This is limited to 10 characters as it will eventually be added to the beginning of backup names. This name is shown on the ROM-slot button once it is set.
    • Check FS: This performs a file system checks on the ROM-slot and fixes any errors found.
    • Delete: Delete the ROM-slot files (disabled if the ROM is active — please choose another ROM-slot to activate and then come back) USE WITH CAUTION, THERE'S NO GETTING THESE BACK UNLESS YOU HAVE BACKUPS.
  • Install: This is for flashing a .zip file to the currently active system. Currently, this is disabled for the stock system. In a future release I will enable flashing to the stock system.
  • Backup / Restore: This should be self-explanitory, but you use these options for making backups of the currently selected system. Or restoring a previously made backup to the currently selected system (regardless of where you backed it up from). DON'T RESTORE A CUSTOM ROM-SLOT BACKUP TO THE STOCK ROM. THIS WILL MOST LIKELY BRICK YOUR PHONE.
  • Mount: You can manually manage mounts here. NOTE: the "system", "data" and "cache" mounts will use the currently selected ROM-slot.
  • Wipe: Manually erase portions of the device. NOTE: You only have 1 internal and 1 external SD card. These are not "virtual" if you erase them. They are gone. Use with caution. Wiping the "system" when "stock" ROM is selected will try and keep the Safestrap hijack in place.
  • Advanced:
    • Copy Log to SD: Experienced something odd and want to report it? DO THIS and include the log when you send me the report. Otherwise, the recovery.log will disappear when you reboot.
    • Fix Permissions: This can fix up ROMs which are displaying odd force close issues, etc. You will probably never need to do this.
    • Partition SD Card: You can add ext3 partitions to the external SD card if you want. I'm not sure we have much of a need for this on our devices.
    • File Manager: This works like any other file manager inside Android. You can thank the TWRP people for this, because it is quite possibly one of the best features I've ever seen in a recovery.
    • Terminal Command: Also very handy for those once in a while moments when you have to do something via terminal but don't have adb handy. USE WITH CAUTION
    • Settings:
      • Here you can turn on and off signature verification of .zip files
      • Force MD5 sum checks on .zip files prior to flashing
      • "Use rm -rf instead of formatting" this may or may not be checked in Safestrap, but the key partitions which are signed and cannot be truely formatted will automatically use this feature
      • There are a few other checkbox options in here. Please know what you are doing.
      • Simulate most actions for theme testing. If you have this checked, Safestrap/TWRP will not perform most actions but show the dialog boxes so you can review theme elements. If you turn this on, it STAYS ON till you turn it off. And will show "SIMULATING ACTIONS" up top.
      • Set the Time Zone (use "Set Time Zone" button after choosing which time zone you want)
      • Restore Defaults. Use this to reset all options back to default as it came when you installed for the first time. Does not erase backups or ROM-slots, tho it might change the active slot.
  • Reboot: Choose from 2 options for rebooting "System" which performs a reset/reboot of the device and "Power Off" which turns the device off.
The Following 98 Users Say Thank You to Hashcode For This Useful Post: [ Click to Expand ]
 
Hashcode
Old
(Last edited by Hashcode; 27th December 2013 at 07:33 PM.)
#3  
Hashcode's Avatar
Recognized Developer - OP
Thanks Meter 22011
Posts: 3,208
Join Date: Sep 2011

 
DONATE TO ME
KNOWN ISSUES:
  • Bluetooth remote control isn't working on rom-slots.

CHANGELOG:
[2013/12/27] EXFAT fix for 64gb SD cards
[2013/12/17] BETA for SElinux Builds
- Added support for new rom-slot system partition creation method to pass verification checks (THANKS @evilpotatoman for sharing the verification check info!)
- Added "Instant Stock" button support during the Safestrap Splashscreen. If you press the "HOME" button you will instantly boot to stock without having to go into Safestrap. NOTE: This is a temporary selection. The next reboot will go back into the current "active" slot.
- Added hijack rules for skipping in recovery and charge only modes
[2013/12/16] ALPHA for SElinux Builds
- New hijack to support safestrap under SElinux!
[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
The Following 87 Users Say Thank You to Hashcode For This Useful Post: [ Click to Expand ]
 
twizzlejr
Old
#4  
twizzlejr's Avatar
Member
Thanks Meter 5
Posts: 31
Join Date: Dec 2012
Nice thanks hash

Sent from my SCH-I545 using xda app-developers app
The Following User Says Thank You to twizzlejr For This Useful Post: [ Click to Expand ]
 
Gunthermic
Old
#5  
Gunthermic's Avatar
Recognized Contributor / Themer
Thanks Meter 7693
Posts: 2,928
Join Date: Mar 2011

 
DONATE TO ME
Awesome, even though I have MDK Bootloader and can flash away, this is awesome news and great work @HasH..


Wanna Chat? Looking for theming advice, answers..
Join me at -> guntherm66@gmail.com Use Gtalk to Join!
Team BlackOut Email: teamblackoutapps@gmail.com
Average Joes Team Memebers: Me, jonathanphx1, dan_joegibbsf, strongsteve
Team BlackOut Memebers: Me, B-Boy, DJ, Trapv and more
 
wolfgrrl
Old
#6  
wolfgrrl's Avatar
Senior Member
Thanks Meter 165
Posts: 651
Join Date: Jul 2012
Glad to see this! Been following your other thread religiously. Thanks for all your hard work.


Yes, I am a lady......ROCK ON!

Really, it's all about the EYE CANDY.
The Following User Says Thank You to wolfgrrl For This Useful Post: [ Click to Expand ]
 
ncdub
Old
#7  
ncdub's Avatar
Senior Member
Thanks Meter 25
Posts: 129
Join Date: Apr 2010
Location: Greensboro
I rooted and recovered my MDK phone prior to the update but, I love seeing community members working I'm this!

Sent from my SCH-I545 using Xparent Skyblue Tapatalk 2
Sent over the Ninja Network from my THUNDERBOLT
 
h311sdr0id
Old
#8  
h311sdr0id's Avatar
Recognized Developer
Thanks Meter 1053
Posts: 532
Join Date: Jul 2011

 
DONATE TO ME
This is GREAT. A positive step forward towards freedom. Thank you for taking the time to do something that will help others for no cost at all. People tend to forget that what we do here is for FREE and because we believe in something bigger. Thank you again for all the time you put into this.

-h311sdr0id

Sent from my SCH-I605 using Tapatalk 4
__________

PLEASE HIT MY "THANKS" BUTTON


Always Available On Google+ Hangouts (Click Below):

The Following 13 Users Say Thank You to h311sdr0id For This Useful Post: [ Click to Expand ]
 
an21281
Old
#9  
Senior Member
Thanks Meter 57
Posts: 374
Join Date: May 2011
Location: Dix Hills
Wow, love safestrap! Will be flashing now thanks!!!

Sent from my SCH-I545 using Tapatalk 2
 
my-blue-snog-box
Old
#10  
my-blue-snog-box's Avatar
Senior Member
Thanks Meter 282
Posts: 412
Join Date: Aug 2013
Location: Frostburg, MD

 
DONATE TO ME
Quote:
Originally Posted by an21281 View Post
Wow, love safestrap! Will be flashing now thanks!!!

Sent from my SCH-I545 using Tapatalk 2
I hope that by "now" you don't mean "at this very moment". There aren't any useable ROMs for SS at the moment. Plus SS isn't totally ready.

Sent from my SAMSUNG-SGH-I537 using Tapatalk 4
Contact me on Hangouts

Follow me on Twitter: @MyBlueSnogBox

The Following 4 Users Say Thank You to my-blue-snog-box For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes