yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S 4] muniz_ri:
**Updated** Safestrap-I545-KitKat-v3.75 w/Working ROM Slots!

**No Mirrors Please** All precautions, limitations, and known issues stated in the OP still apply! Proceed to install and use at your own risk!

Current Version:

[11/15/2014] - Safestrap-I545-3.75-KitKat-A03.apk [NC5/NG6/NK1] - **Prerequisites** Root Access & BusyBox! (Make certain that you open the BusyBox app after downloading from the Play Store and actually install BusyBox!)

Installation Instructions:

1. Uninstall previous Safestrap recovery version using the Safestrap app "Uninstall Recovery" function.

2. Uninstall the previous Safestrap app from your app drawer.

3. Go into SuperSu settings and "forget" the previous Safestrap version's root privileges.

4. Place the new Safestrap-I545-KitKat-3.75.apk onto your sdcard or extsdcard.

5. Install the new Safestrap-I545-KitKat-3.75.apk.

6. Locate and open the new Safestrap app from your app drawer and press "Install Recovery." Done!

Previous Versions:

[11/11/2014] Safestrap-I545-3.75-KitKat-A02.apk [NC5/NG6]

[10/19/2014] Safestrap-I545-3.75-KitKat-A01.apk [NC5/NG6]

[Initial Release] Safestrap-I545-3.75-KitKat.apk [NC5/NG6]

Changelog:

vA03 - [Current Version] Resolved issue where the Safestrap app would "force close" or fail to install after OTA updates. Setting SELinux to permissive is no longer required.

vA02 - Failed! resolved "reboot from rom slot bug."

vA01 - Added Surge1223's feature setting selinux to permissive upon install and eliminating the need for the SELinux Mode Changer app.

v3.75 - Initial Release - Enabled ROM Slots.

Known Issues:

1) When powering down from the ROM running on a ROM slot the phone will hang. You must long-press the power button to shut down the device. I will debug as time permits.

2) Backups made with earlier Safestrap versions will not Restore. You must make a new backup using v3.75.

3) Per Hashcode......."the system size is now not adjustable on 4.3. Samsung put in a verification that has issues if the partition size changes too much. So I opted to keep it exactly the same as stock."

This is a Development Thread! Therefore, please do not post comments related to ROM specific issues, favorite ROM's, that weird rash that won't go away, etc., in this thread. Please use the following thread in the General section for non-development related discussion: http://xdaforums.com/galaxy-s4-verizon/general/updated-safestrap-i545-kitkat-v3-75-rom-t2905885

Credits:

[MENTION=4243514]Hashcode[/MENTION]

[MENTION=4939386]Surge1223[/MENTION] - vA01
[Verizon Samsung Galaxy S 4] Hollywood67:
Is this version 3.75 posted tonight any way different from the 3.75 I already have? (Not sarcasm)

And I have the rash that I think is a result of dirty flashing... (sarcasm)
[Verizon Samsung Galaxy S 4] muniz_ri:
Lol, yes rom slots work on this latest version.
[Verizon Samsung Galaxy S 4] bryantjopplin:
So hashcode is done with the SS for now? Or taking a break?

---------- Post added at 11:36 PM ---------- Previous post was at 11:22 PM ----------

Can mdk bootloader phone's use this just to have multiple roms? Also if there are different roms can different kernels be installed? Just wondering.

Thanks
[Verizon Samsung Galaxy S 4] DX.Deception:
Thanks for you work. This is awesome!
[Verizon Samsung Galaxy S 4] pscshuler:
I got Empty Galaxy to install to Slot 1 no problem. Reboot didn't work on its own but Power+Home did. Downloading Hyperdrive 19 & will try it next.

Does anyone have any suggestions on what sizes I should use for system/data/cache when making a new ROM slot? I'd hate to waste more room than I need...
[Verizon Samsung Galaxy S 4] Hollywood67:
Great! Looking forward to trying out some new roms. When trying to create in slot 1 it says selected space 5800MB, but only 3668MB free. Wiped cache and davlik and running HD on the stock side. How can I free up some more space to try out something new??
[Verizon Samsung Galaxy S 4] bamige1:
are you on the latest update or nc5? would love to hear nc5 so i can not update and have rom slots
[Verizon Samsung Galaxy S 4] DX.Deception:
I'm on NC5 and currently running hyperdrive on ROM slot 1
[Verizon Samsung Galaxy S 4] bamige1:
YEEEEEEEEEEEEEEES! Installing right now. Have a thanks!
[Verizon Samsung Galaxy S 4] DX.Deception:
Thank muniz_ri for making this possible :D
[Verizon Samsung Galaxy S 4] 9tr3g:
issue

Ok so I have root acess on my phone. I downloaded safe strap and installed it. when I click on install recovery it says its installing. It says install complete but status is not installed and not active. I have restarted the phone a few times with no luck. Any ideas? I even tried an older version
[Verizon Samsung Galaxy S 4] DX.Deception:
Did you set se Linux to permissive?
[Verizon Samsung Galaxy S 4] 9tr3g:
No I didn't. That is what I was forgetting. Thanks. I was starting to get mad lol
[Verizon Samsung Galaxy S 4] DX.Deception:
No problem
[Verizon Samsung Galaxy S 4] bryantjopplin:
So anyone know if this will work on mdk so it can have multiple roms?
[Verizon Samsung Galaxy S 4] Fadtydawg:
SS 3.75 for verizon NC5 sch-i545 S4 works very nicely. Nice to have another rom slot to work with. Thanks for all the work [MENTION=4243514]Hashcode[/MENTION]0f and muniz_ri !!
[Verizon Samsung Galaxy S 4] liljoe727:
I keep getting app not installed. I have busybox installed, selinux set to permissive, unknown sources allowed, and deleted safestrap 3.71. Ideas?
[Verizon Samsung Galaxy S 4] Fadtydawg:
I uninstalled ss recovery then the ss 3.71 app. Then set selinx to enforceing, uninstalled busy box. Rebooted phone. Then installed busybox, set selinx to permissive, then installed ss 3.75. Then set up safestrap recovery in 3.75.
[Verizon Samsung Galaxy S 4] liljoe727:
Profit. Appreciation.

---------- Post added at 06:04 PM ---------- Previous post was at 05:55 PM ----------

Anybody tried 3.75 on the S5 yet?
[Verizon Samsung Galaxy S 4] Hollywood67:
Can anyone help?
[Verizon Samsung Galaxy S 4] UK_Wildcats_Fans:
Have you tried moving apps, photos, etc. to the external microSD card?
[Verizon Samsung Galaxy S 4] pscshuler:
Is anyone else having problems with losing Wifi access on either their stock or slot 1 when rebooting?

I have Hyperdrive 19 on slot 1 and stock 4.4.2 NC5 on my stock slot. I need to flash the NC2 fix whenever booting hyperdrive or wifi won't work. Any suggestions?
[Verizon Samsung Galaxy S 4] Hollywood67:
I haven't experienced the problem myself, but did you flash the module fix immediately after the rom a and before the first boot? Others that have not had a clean flash also reported problems
[Verizon Samsung Galaxy S 4] pscshuler:
Yeah I tried it immediately after flashing the ROM as well as after 1st boot.

What really confused me was when I lost wifi on my stock slot.

I haven't tried the regular stock nc5 modem without wifi fix yet. Going to give it a shot later to see if things are different. :confused::confused:
[Verizon Samsung Galaxy S 4] Hollywood67:
Finally able to create a new slot.

I've got hyper drive in the stock slot, what are others running? Haven't search around lately.
[Verizon Samsung Galaxy S 4] gpz1100:
Does this now allow aosp rom/kernel capability?
[Verizon Samsung Galaxy S 4] skepticmisfit:
no, just working ROM slots
[Verizon Samsung Galaxy S 4] vicariouscheese:
This has happened to me as well as several people in the hyperdrive thread. muriz has said it's not necessarily safestrap related, but as it's happening to people with a bunch of different combinations of roms I personally think it's somehow tied to ss. Happened to me with stock nc5 on stock and blackbox on rom 1, others had hyperdrive on stock slot or rom slot 1 with other roms. No one has tried out blackbox outside of that thread as far as I can tell :P
[Verizon Samsung Galaxy S 4] rslu2:
Can't restore to slot 1

Haven't seen this reported :

I had SS 3.72 installed and am running Hyperdrive 19. Things seemed to be working within the limits of ss3.72. I uninstalled 3.72 and used TiB to uninstall the apk from the system. I then installed ss3.75. Having read in the posts above that backups aren't compatible I did a backup of the stock slot in 3.75. I can create slot 1 and have a clean install of Hyperdrive 19 running in slot 1.

Now my issue. I deleted that slot 1 install, recreated slot 1 and tried to restore my stock slot backup to slot 1. The restore process starts, Safestrap starts checking the MD5 and after a few seconds the screen blanks and then goes to the main SS page (the one with 8 boxes: Boot options, Install, Backup, etc).

I would like to get back to how SS was intended to be used with a basic stock set up in the stock slot and my favorite roms in the slots, but I don't want to have to recreate everything from scratch if possible.

Am I missing something or is this a bug in 3.75? I am running NC5 with an MK2 bootloader
[Verizon Samsung Galaxy S 4] Fadtydawg:
See here: http://xdaforums.com/showpost.php?p=56030788&postcount=2281

Updates:

Safestrap-I545-3.75-KitKat-A01.apk [10/19/2014- Incorporated [MENTION=4939386]Surge1223[/MENTION] 's feature setting selinux to permissive upon install]

Bravo!! Muniz_ri !!!

Nice job with the set enforce 0 on the new Safestrap. Great job!! Works like a charm.
[Verizon Samsung Galaxy S 4] bryantjopplin:
So you will this work on mdk with multiple rom availability?
[Verizon Samsung Galaxy S 4] muniz_ri:
People keep asking that but not sure its been attempted. You can try, not much risk involved.
[Verizon Samsung Galaxy S 4] bryantjopplin:
Yeah I searched but turned up little results. I'll try and let everyone know. I just didn't want it to over write my mdk or something weird.

---------- Post added at 07:46 AM ---------- Previous post was at 07:34 AM ----------

Also anyway to install to external so card or have SS based off twrp 2.8.0.1?
[Verizon Samsung Galaxy S 4] pscshuler:
I'm not sure I'd it's just me but when I do a clean install of Hyperdrive 19 on slot 1 I always have to flash the NC2 wifi fix to get Wifi to work (in reality I'm running NC5 but that isn't working, neither are the stock modems) after rebooting or switching to stock.

Flashing the wifi fix isn't a huge deal but it seems like whenever I switch back to my stock nc5 slot I also lose wifi & need to reflash the nc2 wifi fix again. If I reboot to the same ROM it sticks.

It seems like whenever I flash it on either slot (stock or slot 1) I end up losing Wifi on the opposite slot. Any idea what would cause this to happen? Shouldn't all the ROM slots be isolated from each other? :confused::confused:

Any pointers or suggestions? I'd hate to Odin back... Ugh
[Verizon Samsung Galaxy S 4] bryantjopplin:
OK so SS works on mdk as I successfully flash a gpe rom. The only issue I am having is the sdcard isn't present or the external sd card. I cannot mount anything so I can update or download anything. I see that SS makes it a datamedia like the hp touchpad does in its newest form. I can see the internal sdcard from root explorer built in gpe and can see everything on it but can not write to it or mount it.
[Verizon Samsung Galaxy S 4] npjohnson:
Sweet! Good to know it is MDK Comp.

---------- Post added at 12:15 AM ---------- Previous post was at 12:13 AM ----------

Common issue. No known workaround yet. One report says when switching ROM Slots, flash the NC2 Wifi fix before switching ROMs, untested though.
[Verizon Samsung Galaxy S 4] ericmtnbkr:
No file found for Safestrap-I545-3.75-KitKat-A01.apk [10/19/2014- Incorporated [MENTION=4939386]Surge1223[/MENTION] 's feature setting selinux to permissive upon install]. Any mirrors or other sources?
[Verizon Samsung Galaxy S 4] muniz_ri:
I just fixed the link. Also, there should not be any mirrors posted. I will have them taken down. thx.
[Verizon Samsung Galaxy S 4] cjamison08:
Ok I need help. I'm kinda lost. I have the latest version of safestrap app on my s4 but when I click install it says the installation is complete, but I get no safestrap and the reboot to recovery menu stays grayed out. Any ideas?

Sent from my Baja'd 4.4.2 Note 3

Edit: I think I forgot to set Selinux to permissive

---------- Post added at 01:05 AM ---------- Previous post was at 12:52 AM ----------

Yep forgot to set Selinux to permissive. My bad.

Sent from my Baja'd 4.4.2 Note 3
[Verizon Samsung Galaxy S 4] muniz_ri:
Use the latest version 3.75-A01 it eliminates the need for selinux mode changer.

---------- Post added at 11:11 PM ---------- Previous post was at 10:31 PM ----------

I keep seeing posts about people experiencing wifi issues on Hyperdrive....so many that I decided to try it out myself. First, what an impressive set-up from flash to boot! It runs just like my S5 on ART. Anyway, as for an S4 I don't own an I545 I own an Att I337 but I suspect my findings also apply to the I545.

I flashed Hyperdrive on rom slot-1 using ss v.3.75(not A01 although will deliver the same results) and the flash and boot were flawless. However once booted I did not have wifi so I flashed the kernel modules to match my kernel and non-hlos and wifi immediately worked. I then tried switching back and forth between rom slot-1 and stock slot and everything worked without a hitch.

Conclusion.....Hyperdrive includes kernel modules that may not match your kernel and non-hlos which will cause wifi not to work(in general all three need to match in order for wifi to work). Also, Hyperdrive does not re-flash another version of safestrap as was previously speculated. Last, I have not tested but I do not recommend that you re-install safestrap on a stock-slot. I will add to this post if I encounter any other nuances. Hope this helps somebody!

Edit: I also noticed that supersu binaries failed to update resulting in no root access. Quickly fixed by flashing the latest supersu update zip.
[Verizon Samsung Galaxy S 4] Hollywood67:
The above post helps me! However I have hyper drive already on the stock side running. I can't get slot 1 to boot. I can flash, but the phone won't start. NC2 base. SS v3.75.

Can you help?
[Verizon Samsung Galaxy S 4] muniz_ri:
What exactly happens when you try to boot from slot 1?
[Verizon Samsung Galaxy S 4] Hollywood67:
I get the galaxy name at the start and the it just goes black
[Verizon Samsung Galaxy S 4] muniz_ri:
Im assuming you have a rom installed in slot 1? Try a wipe on slot 1 and reflash whatever rom you intended to run.
[Verizon Samsung Galaxy S 4] Hollywood67:
Been messing around with this most of the day. Reflashed twice and now I have deleted slot 1. Maybe I will go to whatever stock is right now (in the stock slot ) and then try and flash HD in slot 1

I have now tried three different roms. None go past SS screen. Silly question but how do I get back to stock on the stock side?
[Verizon Samsung Galaxy S 4] UK_Wildcats_Fans:
Reboot into SafeStrap recovery. Under Boot Options, select Stock ROM. I assume that previous SafeStrap restrictions would apply to ROM 1. Previously, the kernel used in the other slots had to be a stock variant. Were the Kernel's in the previous ROMs that you flashed a stock variant?
[Verizon Samsung Galaxy S 4] muniz_ri:
It does sound like a kernel/rom incompatibility issue however safestrap does not flash to the boot partition.
[Verizon Samsung Galaxy S 4] bilestoad:
This solved my wi-fi issues with hyperdrive r19. I'm on nc5 with safestrap 3.75-a01. I installed hyperdrive into slot 1, then installed newest SU zip. Then I installed NC5 nonhlos/modems edit, AND the modules file (so three zip files total: SuperSU, nc5 modules, and nc5 modem/apn nonhlos). Booted, no wifi. Booted back into safestrap and again installed nc5 apn/non-hlos and modules. booted again, wifi works! Been using hyperdrive for a few days now and it's so much better than the stockish nc5 I was using. I've switched back and forth between slot 1 and stock with no problems.

Thanks for your help.
[Verizon Samsung Galaxy S 4] Hashbang173:
Can I have links to the files you flashed? Just want to make sure I flash the right ones.
[Verizon Samsung Galaxy S 4] bilestoad:
Super SU: http://download.chainfire.eu/451/SuperSU/UPDATE-SuperSU-v2.01.zip

NC5 Modules: https://www.androidfilehost.com/?fid=23486521113837640

NC5 Modem/apnhlos: https://www.androidfilehost.com/?fid=23329332407589325

Sorry, in my original post I meant to write I flashed nc5 MODULE and modems. Here are both, though.

Enjoy.
[Verizon Samsung Galaxy S 4] pscshuler:
Glad it's working for you! :thumbup:

Bilestoad: have you been able to retain wifi on both your stock slot & HD slot 1 when swapping between the two? I'm currently on NC5 but the only module & modem working for me in NC2 :confused: & only then I find I need to flash the NC2 module & modem prior to booting either ROM. Not a huge deal, just an annoyance.

Thinking of using Odin to go back & starting over, time permitting. :what:
[Verizon Samsung Galaxy S 4] bilestoad:
Yes, I can switch between stock and slot 1 and retain wifi. It seems to take a few minutes after the reboot though for the wifi to become 'normal' - before that it's pretty slow, which may be due to updates happening behind the scenes, etc.
[Verizon Samsung Galaxy S 4] Hashbang173:
I get a black screen when swiping for factory reset on ROM-slot 1. Anyone else? Using latest safestrap 3.75 (Downloaded this morning).
[Verizon Samsung Galaxy S 4] Hollywood67:
+1. I can't get anything to boot in slot 1.

Here is what I have on the stock side
[Verizon Samsung Galaxy S 4] muniz_ri:
I was only able to replicate this when attempting to wipe a rom slot without a ROM installed. Since this does not happen when there is a rom installed in the rom slot, and there is no need to wipe when there isn't a rom installed, I would not consider this an issue.

---------- Post added at 08:33 PM ---------- Previous post was at 07:54 PM ----------

Mk2 bl, nc5 build, nc2 baseband? lol.

I suggest you odin flash back to nc5 stock to make certain that you get to a starting point where you know all partitions match. Only then should you expect 4.4 roms to run as intended in either stock or rom slots.
[Verizon Samsung Galaxy S 4] Stryke_the_Orc:
Let's keep this thread on topic, links to others threads the are unrelated are not acceptable.
[Verizon Samsung Galaxy S 4] deviouskind:
Finally got safestrap loaded on nc5. Is there any reason why the lockscreen in safestrap doesn't swipe to unlock? I have to pull the battery to reboot.
[Verizon Samsung Galaxy S 4] quarky42:
Safestrap-I545-KitKat-3.75-A01 is installed and SafeStrap is active. (I can boot into recovery).

I cannot open the SafeStrap app, though. When I try to, it force closes. I have BusyBox Free installed (Stericson's). I have the latest SuperSU. Titanium Backup and Terminal Window are both working normally.

I think something is wrong with my safestrap installation itself. I've tried removing the app and reinstalling it, but that doesn't work either. I've cleared cache and done multiple reboots.

Is it possible to put together a safestrap recovery flashable "safestrap installation" based on the 3.75 A01 so that it basically refreshes everything (including permissions / ownership) on the installed safestrap recovery?

Is there a log output that would help troubleshoot this? I can try to pull the logs via adb if you want.
[Verizon Samsung Galaxy S 4] muniz_ri:
When did the Safestrap-I545-KitKat-3.75-A01 app begin force closing, e.g. after installing SuperSu, busybox?
[Verizon Samsung Galaxy S 4] quarky42:
It started happening after updating to ng6. I did a full wipe and restore with titanium backup. I only did the other stuff to try and troubleshoot. I even tried that se Linux permissive app.

I followed the same method on my other phone and it works without issue.
[Verizon Samsung Galaxy S 4] muniz_ri:
Try unistalling the ss app from your app drawer, reboot, then reinstall the ss apk. That will hopefully reset selinux to permissive. Updating to ng6 reset selinux policies.
[Verizon Samsung Galaxy S 4] quarky42:
I've already done that numerous times. I even installed an app that sets se Linux back to permissive. That doesn't work. Still force closes.
[Verizon Samsung Galaxy S 4] muniz_ri:
I'm assuming you updated to ng6 via ota. In my how to root thread there is an ng6 stock rooted rom. Flash that, it resets some of the selinux policies to permissive.
[Verizon Samsung Galaxy S 4] quarky42:
No. I flashed that rom in safestrap. Not the ota.

I did the one that didn't wipe data. I found that it caused problems without the wipe so in the second phone I did the factory reset the second time without trying to avoid it.

Thank you for trying to help me, but really I do know a little of what I'm doing. I tried to be thorough in my initial report but I admit I missed a couple important details. I still stand by my initial request. .. either a flashable zip that installs the safe strap recovery as if it was installed by the app itself or tell me which logs from when it's crashing do you need? Or what files can I check the permissions on?

---------- Post added at 07:55 PM ---------- Previous post was at 07:54 PM ----------

My replies are coming from a phone. If my sentences are a little odd, it's because of that.
[Verizon Samsung Galaxy S 4] muniz_ri:
"That didn't wipe data?"........I think you mean you flashed a .tar in Odin. I was referring to my ROM at the bottom of this thread: http://xdaforums.com/galaxy-s4-verizon/general/how-to-root-i545vrufng6-t2905848

I don't have time to do that or look through a log. Good luck!
[Verizon Samsung Galaxy S 4] quarky42:
No, I flashed a zip (called: I545_NC5_to_NG6_KeepRoot_OTA-deKNOXd2.zip) in SafeStrap to upgrade to NG6.

On my first phone, I tried to just keep my data (wiped cache and dalvik cache). That had all sorts of freeze / hot boot reboot problems, so I wiped data (factory reset) and reloaded my data using titanium backup. That phone's been working smoothly.

On my second phone (my wife's, the one I'm having problems with now) I did the same safestrap flash, wiped cache, dalvik and factory reset and then reloaded data using titanium backup. This is the one that safestrap won't open on after the update to NG6.

I'll go ahead and try your zip. Now that I'm on a computer I can see that yours is different than the one I originally downloaded. However, I'm telling you I have an app that can set SE Linux to Permissive and it isn't making a difference. It isn't the permissive that's the problem. I suspect that there is a permission or something out of whack on the actual safestrap recovery.

Thanks again for trying to help.
[Verizon Samsung Galaxy S 4] muniz_ri:
lol, that KeepRoot .zip is something I put together which some dude took and modified to remove the knox apps(http://xdaforums.com/showpost.php?p=56054714&postcount=16).

Anyways the problem that you are experiencing is not new we just thought that it had been solved with the A01 version of safestrap. I will keep an eye on it and see if others have the same experience.

I think you will be pleasantly surprised after flashing my rom.

PS the exploit which allowed SE Linux mode changer to work was patched on version ng6.
[Verizon Samsung Galaxy S 4] ryanw5489:
Ok I'm totally new to this safestrap. I am on Android 4.4.2 nc5 galaxy s4 and I was getting ready to install a rom Hyperdrive. I just recently installed the latest safestrap. I installed the recovery and did a backup only thing is I haven't wiped yet due to I wanted to make sure everything is OK. But for some reason since I installed safestrap my phone is lagging really bad, any ideas!
[Verizon Samsung Galaxy S 4] muniz_ri:
some users of the new 3.75 safestrap versions have reported trouble installing the app. I have not been able to reproduce the issue but I have just uploaded fresh apk's which I recompiled, signed, and re-zipaligned in hope users have a more consistent experience.
[Verizon Samsung Galaxy S 4] ryanw5489:
So should I download the new update?
[Verizon Samsung Galaxy S 4] muniz_ri:
Not if your current apk installs without issues.