yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S 4] klabit87:
Ah. So you have. My bad. To be honest I skimmed your thread and noticed a few times of using Odin when flashing a custom rom.

I just don't care to be tethered to my pc when flashing.

The only difference I see is the fact that I used the nc5 kernel instead of nc2 and I am using Carl's zip file to reinstall the oc1 kernel instead of using Odin to restore it.

Well to each their own lol I just prefer this route.

Thanks.
[Verizon Samsung Galaxy S 4] jam0688:
FYI [MENTION=3618916]gigilie[/MENTION] his sole purpose of porting this is to make life easier on the average day user. Why go way back to nc2 when nc5 is more stable. With FlashFire still being in the beta stage we're working towards avoiding odin and FlashFire as much as we can. Which by doing this we have created a stable way for users to still be able to use Safestrap as they're recovery. But as he said to each their. As we are treating in uncharted waters with lollipop and Samsung art, the safer the method in flashing things the better.
[Verizon Samsung Galaxy S 4] ForevermanRGPC:
Works great, it's nice not having to be tied to a PC. .thanks for the port
[Verizon Samsung Galaxy S 4] buhohitr:
[MENTION=4168602]klabit87[/MENTION], I also have a Verizon Galay S5, is it possible you can make this one for the S5?? I'm sure everyone in the S5 threads will be thrill!!! Thanks.
[Verizon Samsung Galaxy S 4] klabit87:
Pm sent
[Verizon Samsung Galaxy S 4] gigilie:
hey bud your one of the few ppl around thats had some app dev i havent kept up on my java so its almost become foreign to me again hadn't built an apk for years before my nc2flasher.apk but why can't we just infuse this process into SS? I tried using some scripts but i must not be calling the flashes at the correct times... I'd like to just infuse this all into SS have SS install the 2 kernels we need to a directory like /system/kernels/nk4 or ncx then call up a script to flash the files when we restart to safestrap from the APK and if the SS recovery mode isnt triggered have another script flash the lollipop boot was my initial idea before I found the work that ben had done for the kernel flasher .apks... Want to take this on with me? I'm doubting hash would mind hes moved on from it and I see a ton of SS hacked versions on XDA now.

[MENTION=4709833]jam0688[/MENTION] its not necessary to use anything else... but i don't care klabit87 helped me with the wifi bypass back on 4.4.2... regardless I'd like to just argue your point that NC5 is more stable. It is NOT. However using this method we never actually boot the ROM from this firmware. Therefore all your arguments are nullified lol. NC2 is very stable but all we need to do is hook for Safestrap. We could use NG6, NK2, NC2,NC5 all will yield the same results a bootable Safestrap but unbootable ROM until lollipop kernel is flashed... I've been infusing this as an upgrade process into my ROM's for a while now so theres no need to flash the upgrade kernel. But theres no point or difference in having it reboot to safestrap with NC2 or NC5 because we never use the kernel to boot the ROM! (Duh) I know this because I tried and built copies of this for every stock kernel available. but appreciate your uninformed criticism I mean... I do believe It was me that 1st told people not to use FlashFire and to use safestrap and how and put out the 1st custom ROM etc... so why preach bs to the choir? rather than troll why not pickup a book or research and dev something to help the public like klabit87, Surge, muniz, reggie cheeks or one of the other developers for the phone have done. even if your not successful at least you didn't waste time by ill informing users and telling me i dont know what im talking about LOL and you wont look stupid to the users that actually know whats what or waste my time having to defend whats actually public knowledge when you make false claims and try to make me look like the douche
[Verizon Samsung Galaxy S 4] klabit87:
When i first decided to go back to using safestrap I looked into the source.

which was short lived when i came across the kernel flasher and the script to workaround the kernel flashing block in ss (if i remember correctly hash made it so you couldn't flash a kernel)

I was going to look into removing that block so i could flash the lp kernel....

Getting into safestrap from lp i never took the time to look into.

I will pm you what im thinking on that and we will see whats what.

But to answer, yeah I could take a stab at it.

I'm not very well versed in java or creating apks from the ground up but I can follow code well enough to make alterations to do what we want.
[Verizon Samsung Galaxy S 4] Effestioc:
ROOT

some method to root the SCH- I545 android s4 5.0.1

:confused: :(
[Verizon Samsung Galaxy S 4] klabit87:
As far as I know there is no way to root oc1.

This is for those that upgraded via muniz_ri or gigilie method to upgrade to lollipop and keep root.
[Verizon Samsung Galaxy S 4] Effestioc:
no method

then there is no method of root even for those who updated OTA or recovery
[Verizon Samsung Galaxy S 4] klabit87:
Nope. Not now and no idea when there may be one if ever.
[Verizon Samsung Galaxy S 4] klabit87:
Updated the OP with a workaround for the SS splashscreen showing a few times before booting into rom.

[MENTION=5364192]skepticmisfit[/MENTION] I know this was a bug that bothered you a bit.

when the SS splashscreen shows, tap the menu button for recovery instead of back button for continue

If you flashed the OC1 kernel you will boot straight into the rom.

If you forgot to flash the OC1 kernel you will boot into SS.

Or at least this works for me.

Feel free to test it out.

Thanks.
[Verizon Samsung Galaxy S 4] {davros}:
This method correct me if wrong is for people already on oc1 to gain ss access.
[Verizon Samsung Galaxy S 4] klabit87:
Yes. Must be on OC1 and rooted.
[Verizon Samsung Galaxy S 4] {davros}:
K I'm still on nc5/nk1
[Verizon Samsung Galaxy S 4] klabit87:
Then you get to safestrap the normal way.

This is only for those that wish to use safestrap on oc1
[Verizon Samsung Galaxy S 4] {davros}:
Yep. I knows thanks
[Verizon Samsung Galaxy S 4] jam0688:
Well actually i do know what im talking about because im the guy that first tests all of [MENTION=4168602]klabit87[/MENTION] stuff before he ever posts it. His methods we did as a team so that argument is nullified. I don't see how the nc2 kernel could be more stable than nc5 when it's an older kernel but everyone is entitled to their opinion on here as are you [MENTION=3618916]gigilie[/MENTION]. No offense to your work or anything. I wouldn't post something if I didn't know what I was talking about because otherwise it would be pointless to do. No one claimed to disregard your method but why use odin if it's not absolutely necessary to do so. The more times you use odin the more risk you have in hard bricking your phone especially since now we have embarked upon uncharted waters in lollipop. I bid you farewell sir and thank you for the work you have contributed to xda.
[Verizon Samsung Galaxy S 4] rrrrrrredbelly:
Running deodexed oc1 rom currently. If i flash a different oc1 rom using this method, do i still have to flash the kernel afterwards or am i good because of the oc1 kernel that comes with the rom?
[Verizon Samsung Galaxy S 4] klabit87:
Very doubtful. Unless the dev has the workaround script to force the kernel to flash in his updater-script.

I would still flash the kernel after the rom flash unless specifically instructed by the dev not to.
[Verizon Samsung Galaxy S 4] rrrrrrredbelly:
Thanks, 2nd question. Once in ss, can i restore a NC5 kk backup made with ss?
[Verizon Samsung Galaxy S 4] jam0688:
Should be able to as long as you do a wipe before restoring so no component's of lollipop are left over
[Verizon Samsung Galaxy S 4] klabit87:
Also obviously dont flash the OC1 kernel when going back to kk just flash NC5 wifi modules and reboot
[Verizon Samsung Galaxy S 4] jam0688:
Yeah that's right too just incase you run into issues with wifi not working
[Verizon Samsung Galaxy S 4] klabit87:
OP has been updated to include the NC5 kernel in Safestrap flashable zip

Just in case anybody wants to use it for anything. Or to make sure of your kernel.
[Verizon Samsung Galaxy S 4] stang5litre:
Sorry If this is a dumb question as I am a mdk but I have a rom that also is SS friendly. Would these set of instructions be correct to install OC1?

Thanks for all the info
[Verizon Samsung Galaxy S 4] klabit87:
Yes coming from any oc1 rom.

If coming from nc5, the user would need to follow muniz_ri's upgrade guide or gigilie's upgrade method before being able to follow these instructions.
[Verizon Samsung Galaxy S 4] stang5litre:
Thanks for the quick reply ? got ya do you mind if I put these in my OP? Will give you credit of coruse

Thanks again ☺
[Verizon Samsung Galaxy S 4] klabit87:
No problem go right ahead.
[Verizon Samsung Galaxy S 4] Osama Chishty:
want to ask i think can i flash this rom using safestarp?

http://xdaforums.com/galaxy-s4/i9505-develop/rom-albe95-lollirom-official-1-0-t3049564

i a m currently ruining 5.0.1 with root access please can anyone help thanks in advance ?
[Verizon Samsung Galaxy S 4] klabit87:
You will need an international port zip in order for the rom to work on Verizon or att.

I believe [MENTION=3618916]gigilie[/MENTION] may have been working on one.

I'm not sure if it has been tested enough or not though.
[Verizon Samsung Galaxy S 4] Osama Chishty:
what do you mean by international port zip ? so u saying this room will not work with safestarp on verizon ?
[Verizon Samsung Galaxy S 4] klabit87:
Yes it will not work bc that rom is for the international s4.

You will need a ported version or a flashable zip that will make it compatible with our Verizon s4
[Verizon Samsung Galaxy S 4] XxD34THxX:
[MENTION=4168602]klabit87[/MENTION]

It doesn't reboot to safestrap on Stang5litre ROM... I have been waiting for 10 minutes, SuperSU set on auto grant with no popup, and I tried from safestrap as well. I assume this is a ROM problem?
[Verizon Samsung Galaxy S 4] klabit87:
I noticed this also last night just forgot to post about it. It is safe to hold power and select reboot though
[Verizon Samsung Galaxy S 4] XxD34THxX:
Really? I soft bricked my phone when I did it. Lost a few hours of sleep since Odin didn't want to work and the flash took a lot longer than normal.
[Verizon Samsung Galaxy S 4] klabit87:
I did it twice last night and both times after the kernel flashed the button for reboot came up and I held power selected restart then selected reboot.

Booted straight into ss for me. And I'm on stangs rom also.

Sorry but I'm not entirely sure how you soft bricked.
[Verizon Samsung Galaxy S 4] XxD34THxX:
neither am i.

:/
[Verizon Samsung Galaxy S 4] Packerman20:
I found out an app called kingroot that can root the galaxy s4 OC1 :) i don't remember the exact version but it starts with 4.7
[Verizon Samsung Galaxy S 4] klabit87:
Yes thanks.

That post was made when even Kingroot didn't work.
[Verizon Samsung Galaxy S 4] npjohnson:
You need to tag the OP with a note that people on full OC1 (with bootloaders) that use this app will Brick. Cause NC5 kernel is behind the rollback counter value for true OC1 devices.
[Verizon Samsung Galaxy S 4] klabit87:
Ok thanks.

Will do.
[Verizon Samsung Galaxy S 4] sinner822:
Using TWRP >2.8.1.0 in SS results in the ability to restore backups of 5.01 and 4.4. Still have to flash the NC5 kernel to boot into SS though.
[Verizon Samsung Galaxy S 4] klabit87:
Yeah but there is no way to update twrp in ss that I know of.

Unless I'm either completely overthinking it or its too obvious for me to see.

Do you know how to update twrp base in safestrap?
[Verizon Samsung Galaxy S 4] Surge1223:
Well I made 2.8.1.0 like a year ago when NC5 came out. I dunno if I posted it or not. But I definitely did the bare minimum for my needs (i.e., rom slots don't work, and the ramdisk is mounted in Permissive mode by default so I could test around with kexec)

So yeah you can definitely update the twrp part. Who knows maybe you guys will get it to work on lollipop without a work around. I mean I booted into it on lollipop, but I'm on mdk and using a custom lollipop kernel. So stock would require some hackery.
[Verizon Samsung Galaxy S 4] sinner822:
Doesn't need any fixin. Works as is. No slots but no biggie.

Have my doubts about it ever working without flipping kernels.
[Verizon Samsung Galaxy S 4] klabit87:
I must have missed this somewhere lol.

Do you mind sharing that apk?

I would really appreciate it.

My thinking was yeah it would be some hackery but I was going to modify the ss reboot button to dd the nc5 kernel that I would also include in the apk then reboot into ss. Users would need to flash the oc1 kernel to boot back to oc1.

I found your kernel-jfltevzw-06-12-15-kexec.zip in afh would that ramdisk.img do the trick if I swapped them out in the ss apk?

Scratch that. Just got a little excited and now realize that is a kexec kernel
[Verizon Samsung Galaxy S 4] klabit87:
I never used slots anyways lol
[Verizon Samsung Galaxy S 4] Surge1223:
https://copy.com/uWgIVqN61HYVr1Tu

It probs won't work as is on OC1, and idk if I'd mess with the reboot function. Someone is bound to accidently install the app, and then "accidently" decided to reboot.

Idk has anyone even tried to fix Safestrap for Lollipop?
[Verizon Samsung Galaxy S 4] klabit87:
Thanks! I'm not sure how we could go about fixing SS for those on OC1 bootloader.

But gigillie and I have discussed it off and on. we could put a check in place that looks at the bl version so it would only flash the nc5 kernel if the user is not OC1

I do understand your apprehension though. I don't plan to share this.

Many users have jumped to FlashFire and I just don't want to go to that as I explained in the OP

Thanks again!
[Verizon Samsung Galaxy S 4] sinner822:
Personally I just install TWRP with SS. Delete the app after. It won't boot into TWRP unless you have the NC5 kernel swapped out first. So easiest way is to use your NC5 flasher as your way into recovery.

I don't forsee any problems with OC1 BL. As it will just cycle boot. I would say no harm no foul on that.

There are 2 issues.

1.) Once you install recovery. SS crashes then upon reopening it says that you are not rooted. Reinstall SuperSu app and let update.

(No flashing needed.)

2.)Upon installation of new Rom. TWRP is wiped SS needs to be reinstalled.
[Verizon Samsung Galaxy S 4] klabit87:
I probably won't carry this much further just because so many have switched to flashfire. I doubt many would use it. I will do as you have said and just use the nc5flasher to get it.

1.)I also experienced this. But it finally took.

And the app shows as installed.

2.)I installed a test rom of stangs and the updater script was messed up so I restored my backup (which worked flawlessly :thumbup: ) ss was still installed also.

Hope to test this further after work.
[Verizon Samsung Galaxy S 4] sinner822:
Yes. Stays installed on restore. It is on instalation of new rom that recovery needs a redo.
[Verizon Samsung Galaxy S 4] klabit87:
I wonder what could be done to fix this.

I think this lies within the ramdisk which is beyond my scope.

I can take a look just to familiarize myself though.

If i understand it correctly, SS 3.75 version is modified to skip ss files and folders when wiping? i think.
[Verizon Samsung Galaxy S 4] sinner822:
The install script of the rom deletes SS. Write install script to not delete all just as TWRP does.
[Verizon Samsung Galaxy S 4] klabit87:
Yeah I've started looking at the scripts and ram disks.

But have to test a rom tonight first so we shall see
[Verizon Samsung Galaxy S 4] sinner822:
Include folder:

system/etc/safestrap p:0700
[Verizon Samsung Galaxy S 4] klabit87:
I'm sure this is trivial to you guys but I've searched all over the ramdisk-recovery.img and can't seem to find where it needs to be put.

I figure i could put it where the /data/media is protected so that internal storage doesn't get wiped but I'm not seeing it.

Found scripts for backup.sh and restore.sh but nothing for a wipe.

Could you point me in the right direction?

Thanks.
[Verizon Samsung Galaxy S 4] Surge1223:
What do you mean?

It's in the apk in assets/install-files.zip in etc/

Safestrap hijack takes care of unpacking it to rootfs, you can just open the e2fsck bin file (it's just a script and read through it)

unpacking the ramdisk image is just like any other:

mkdir tmp

cp ramdisk-recovery.img ramdisk.cpio.gz

cd tmp

gunzip -c ../ramdisk.cpio.gz | cpio -i
[Verizon Samsung Galaxy S 4] klabit87:
I meant I've gotten the ramdisk and opened it. That's where I found the backup and restore.sh scripts as well as the scripts that create a new slot and filesystem.

Just haven't found where to add in the ss folder to protect it from being wiped.

I will look through e2fsck though.
[Verizon Samsung Galaxy S 4] klabit87:
Wanted to note that upon installing Surge's recovery 3.82, su binaries need to be updated.

Which gives the appearance of losing root? or maybe it does lose root.

either way open supersu and update the binaries then reboot all is fixed.
[Verizon Samsung Galaxy S 4] klabit87:
OP updated with OF1 kernel.
[Verizon Samsung Galaxy S 4] Blue:
Hello for some reason it will not reboot the device. I DO have BusyBox Installed.(Latest version) and in the SuperSU logs it says reboot: no such tool...
[Verizon Samsung Galaxy S 4] klabit87:
You can just press and hold power and select reboot from the power menu.

I haven't had time to work on this issue even though it is minor.
[Verizon Samsung Galaxy S 4] Blue:
Got it :)

Thank you very much!
[Verizon Samsung Galaxy S 4] sinner822:
It is not fault of nc5 flasher. Works fine on muniz and stock. Appears to be from system builds.
[Verizon Samsung Galaxy S 4] texz71:
So, probably a dumb question...but not real clear from reading the entire thread.... I have stock rooted i545 OF1 (with I assume the latest OF1 associated kernal and bootloader), can I install safestrap for use? If so, do the same directions work as listed in the first post (using the I545_OF1_Stock_KERNEL_SafeStrap-Flashable.zip)?
[Verizon Samsung Galaxy S 4] klabit87:
No this will only work for those with the bootloader version stated in the title
[Verizon Samsung Galaxy S 4] texz71:
Thanks for clarifying. I thought that was the case, but wanted to find out for sure. I'm guessing that we won't see a safestrap or similar recovery for the S4 given it obsolescence.
[Verizon Samsung Galaxy S 4] Legitsu:
anybody have a OC1 odin tar.md5

I screwed up my safestrap install apparently rom will boot just need a OC1 kernel
[Verizon Samsung Galaxy S 4] ImpytheBiscuit:
I found this. I'm not sure if you looked into it (or if it's possible to pick and choose within the file itself.)

http://xdaforums.com/galaxy-s4-verizon/general/of1-stock-tar-t3216417
[Verizon Samsung Galaxy S 4] Legitsu:
nm got it

if anybody else manages to ****up safestrap AND flash NC5 at the same time

flash this via odin in the ap slot

https://www.androidfilehost.com/?fid=24052804347820944
[Verizon Samsung Galaxy S 4] klabit87:
[MENTION=5417447]Legitsu[/MENTION] Sorry been pretty busy today. But glad you found it.

Ive been meaning to add this to the OP. Again just been busy.

Also [MENTION=5491743]ImpytheBiscuit[/MENTION] for future reference you can't pick and choose what to flash from an Odin package.

if you wish to flash just a certain part you have to create the package yourself with just those parts in it.
[Verizon Samsung Galaxy S 4] klabit87:
OC1_kernel.tar.md5 added to OP.

Just in case something goes wrong with SS so you can still boot into LP rom.

Thanks [MENTION=5417447]Legitsu[/MENTION] for bringing this to my attention.
[Verizon Samsung Galaxy S 4] Legitsu:
androidfilehost ftw ;)

still don't know why safestrap died when I ran NC flasher ....

ran NC flasher hit the flash button rebooted expecting to get into safestrap and nada .... no safestrap splash nothing ....

guess ill stick to swaping kernels with odin ...
[Verizon Samsung Galaxy S 4] klabit87:
thats weird. whichever rom youve been running must have some wiping scripts in it or something.

I've never had a problem with it and still use this method until Flashfire gets more stable.

Once its out of beta I plan to move to it.
[Verizon Samsung Galaxy S 4] Legitsu:
it was gogodelux 3.3 I think the wipe routine may have failed to remove safestrap A03 and when 4.20-googlie was installed over it it broke it ...

who knows this S4 has always been janky ....

kitpop 1.3 is what I was running and could have been some weird issue with going from ASOP@samsung kernel to touchwiz 5.1.1

will likely just go back to kitpop even tho its 4.4.4 and the wifi only works if you cold boot;hot reboot and usb debugging doesn't work at all ... its still ASOP and thus superior lol
[Verizon Samsung Galaxy S 4] klabit87:
Yeah i liked KitPop. I may wind up going back to it myself.

Lollipop sucks battery big time even with Greenify and the rest of my stuff setup like i had it on KK
[Verizon Samsung Galaxy S 4] npjohnson:
Not to get OT, but Debugging/ADB push/pull works fine. Its MTP that's borked.
[Verizon Samsung Galaxy S 4] sinner822:
Probably wouldn't hurt to include the NC5 odin kernel also. Been handy for me when I bork my os. Lots of people probably odin back and don't need to.
[Verizon Samsung Galaxy S 4] klabit87:
Good point thanks [MENTION=2810645]sinner822[/MENTION] :good:

NC5 kernel added to OP.
[Verizon Samsung Galaxy S 4] Legitsu:
might be a windows 10 issue then I needed to use it the other day and it would't play nice

rolled back to kitpop anyway I just can't stomach touchpiss

OT

as for the wifi issue on kitpop ,what happens if you cold boot the phone but don't load the module until after boot is complete ?

could rename the module and just load it via a script at every boot ....

may be also be possible to write a helper module to handle it as well

as for mtp likely just easier to patch the rom to support the verizon/samsung code then dicking around with UMS ....

work is kicking at my ass atm ill investigate more when I have time ... this has been gnawing at me for awhile
[Verizon Samsung Galaxy S 4] klabit87:
Just dropping in to say thanks to those that have helped with this.

I am moving on to the Nexus 6 now but I will keep checking in every now and then.

I believe most are using Flashfire now anyways and those that are using SafeStrap know how to use it well enough.

Thanks again.
[Verizon Samsung Galaxy S 4] dslacks:
When I poem the flash program it says can't work with iut busy box or safestrap and I have both any help please
[Verizon Samsung Galaxy S 4] klabit87:
Just having the apps on your device aren't enough. You need to have the busybox installed by opening the app and select install as well as the safestrap recovery.
[Verizon Samsung Galaxy S 4] dslacks:
Busy box is installed ver. 1.24 but safestrap doesn't install when I click on it
[Verizon Samsung Galaxy S 4] klabit87:
What version safestrap are you using?
[Verizon Samsung Galaxy S 4] dslacks:
3.75 the one on this page
[Verizon Samsung Galaxy S 4] klabit87:
What bootloader do you have?
[Verizon Samsung Galaxy S 4] dslacks:
How to find out
[Verizon Samsung Galaxy S 4] klabit87:
Send screenshot of this app after you open it.

https://play.google.com/store/apps/details?id=org.vndnguyen.phoneinfo
[Verizon Samsung Galaxy S 4] dslacks:


---------- Post added at 02:29 AM ---------- Previous post was at 02:28 AM ----------
[Verizon Samsung Galaxy S 4] klabit87:
ok your only option is to use Flashfire.

Safestrap will not work for those on a lollipop bootloader.
[Verizon Samsung Galaxy S 4] dslacks:
K thanks for the quick replies
[Verizon Samsung Galaxy S 4] dviant:
Sorry - wrong forum.
[Verizon Samsung Galaxy S 4] tdurdenn:
Wait so I install SS, and flash the recovery? or just install the app, then nk and have that install.
[Verizon Samsung Galaxy S 4] klabit87:
This is a separate app to flash the nc5 kernel in order to access safestrap. You will need to have safestrap already installed.
[Verizon Samsung Galaxy S 4] sergemerge:
Androidfilehost shows "OOPS! no mirrors found" for NC5Flasher.apk. Is there any other place to get it, or will it start working eventually?