[Galaxy S 4 Active Android Development] Hashcode:
*** 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.

WARNING #2: BECAUSE THERE ARE NO ODIN FILES FOR MF3, DO NOT FLASH THE STOCK ROM AT ALL. PLAY IT SAFE AND USE ROM-SLOTS.

CURRENT PROJECT STATUS:

v3.72 (TW4.4): Beta testing, no rom-slots

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

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 different sizes of /data partitions. NOTE: The bigger you make the /data partition the less room you will have to make other ROM-slots.

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.

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?

Requirement: Root

[NEW FOR KK/v3.73] Install Busybox via the Play Store (Busybox Free Installer)

[NEW FOR KK/v3.73] Remove XPOSED framework for the Safestrap install. It causes conflicts sometimes. Can re-install afterward.

Requirement: Allow APK install from Unknown Sources

Download the Safestrap APK

Find the APK using a Filemanager tool and open it on your device, then click "Install".

(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.)

Once installed, open up the Safestrap application as you would any other app.

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

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.

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.

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.

KNOWN ISSUES:

[v3.73] ROM-SLOTs aren't supported yet

[v3.73] "Reboot Recovery" doesn't work in the APK (? -- need verified)

NEW TO v3.73:

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 ACTIVE

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 TW4.2 USE SS3.65 AND ONLY USE TW4.2 ROMS. IF ON TW4.4 USE SS3.73 AND ONLY USE TW4.4 ROMS

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

FOR USERS OF KK/TW4.4:

USE 3.73+:BETA Safestrap-JFLTEATT-ACTIVE-3.73.apk (updated 2014-06-02)

FOR USERS OF MF3 (TW4.2):

LATEST FILE: Safestrap-JFLTEATT-ACTIVE-3.65.apk (updated 2013-11-15)

Main XDA Downloads Page

Mirror 1 (Goo.im): http://goo.im/devs/Hashcode/jflteatt-active/safestrap

Mirror 2 (Crackflasher): http://downloads.crackflasher.com/?dir=Devs/Hashcode0f/jflteatt-active/safestrap

HOW TO MANUALLY REMOVE SAFESTRAP:

Enter adb shell from your pc:

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.7x, Safestrap Recovery is now based on TWRP 2.7.x.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://xdaforums.com/showthread.php?t=2447764

XDA:DevDB Information

Safestrap Recovery v3.65 (JB) / v3.73 (KK), Tool/Utility for the Samsung Galaxy S 4 Active

Contributors

Hashcode, DeesTroy & TeamWin

Version Information

Status: Beta

Current Stable Version: 3.65

Stable Release Date: 2013-11-15

Current Beta Version: 3.73

Beta Release Date: 2014-06-02

Created 2013-09-18

Last Updated 2014-06-02