yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] hawkerpaul:
As stated in the OP and as kubics has already commented, it is advisable to flash your rom immediately after, so you are still in the same recovery session, but ROMNuke (or any other of these scripts for that matter) does not touch the Recovery partition in any way, so whatever Recovery you have on your S4 will remain even if you reboot your device without flashing a ROM....you just wouldn't be able to boot normally, but could still have the ability to get into recovery/download mode.
[Galaxy S 4 i9505 Android Development] FlanjeUK:
[MENTION=731006]scesarin[/MENTION]

Just to be clear, I flashed my ROM immediately after the script as instructed and the phone booted flawlessly, like new, just too new ;) the OS flashed no issues at all I just had nothing on the phone at all it was like a brand new phone - all gone :(

P.S. I took the risk and it is clearly stated it's a BETA, also I can't be 100% sure why I lost my data anyway... I will still use [MENTION=4272718]hawkerpaul[/MENTION]s scrips in the future :)
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Sorry to hear that mate.

All I can think of is that there must be some differences to the devices/mount points on AOKP compared to Samsung ROM.

The shell script itself only removes specific individual folders.

The only things that are cleared on mass are within the updater-script itself, ie:

system (rom):

mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");

delete_recursive("/system");

data (factory reset)

mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");

delete_recursive("/data");

dalvik cache

delete_recursive("/data/dalvik-cache");

cache

mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");

delete_recursive("/cache");

so I really can't see why this would differ when run on an AOKP rom as no mass wipe of sdcard is ever performed by the script.
[Galaxy S 4 i9505 Android Development] scesarin:
Hi:

Thanks for your feedback.

FYI: I executed ROMNUke, without any problem, actually I didn't loose anything; about my external SD card, I just took it out before. (in case of..)

Great script.

Thanks a lot
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Scripts updated to v1.02 in general.

This will hopefully solve the /sdcard deletion problem for certain users.

Emphasis on HOPEFULLY, so please still perform backup of /sdcard as described in the OP until you are happy things are behaving themselves.

Also added GS4ROMResetLite, GS4EFSBackup and GS4EFSRestore scripts.

See OP for full details.
[Galaxy S 4 i9505 Android Development] kubics:
From where you know that I am looking for easy solution for backup and restore of EFS??? ;) :D
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Lucky guess mate!

Actually I decided to did it when I lost my baseband trying to revert back to MGA from MJ5, Not that this was the actual problem in the end tho, but that's another story for another thread!

:)
[Galaxy S 4 i9505 Android Development] diddly3000:
Used the ROM wipe script for last 3 updates. And all wiped my entire internal storage for some reason. Even tried latest one 10 mins ago same wiped everything from internal :(
[Galaxy S 4 i9505 Android Development] FlanjeUK:
Which ROM where you running when you ran the script? And which Recovery?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I really can't pin point this internal storage deletion problem I'm afraid. I'll keep looking of course but for now you will have to back up first unfortunately, so the warning in the op still stands.
[Galaxy S 4 i9505 Android Development] wonsky21:
Yeah, it happened to me once. I flashed RomNuke script, and couldn't flash a new rom, because all my zips were vanished from internal scdard. I was lucky I had cwm backuo on external sdcard. AOSP rom (SlimBean) and Philz recovery.

GT-I9505 | SlimBean 4.3.1 build 1.9
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I've identified the/sdcard wiping issue.

I will be issuing an update some time this week. I can't do it just yet as I am in the middle of a big rewrite, restructuring the script and the way it is used by the zips.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
All scripts have been updated and now use my new Core system.

In summary, you will initially need to flash GS4HawkerCoreV1.zip, and then copy all the individual zips you require onto your GS4. These use the core that GS4HawkerCore installs.

This now means in future, when updates are issued, only the core will ever need to be flashed again, and all the individual zips that you flash will automatically be using the updated version.

Full instructions are of course in OP
[Galaxy S 4 i9505 Android Development] diddly3000:
Flashed core, then romwipe. Sorry but wiped internal storage again paul
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I'm at a dead end then sorry mate. Its not doing it for me

:confused:

Are you sure you didn't run the old GS4ROMWipe beta zip file by mistake?
[Galaxy S 4 i9505 Android Development] diddly3000:
No bud I downloaded the romwipe when I was downloading new core. Is there anything I can do to show you my internal storage path? Maybe it's different I dunno lol. Your log isn't there from the install cos it was wiped. Lol
[Galaxy S 4 i9505 Android Development] diddly3000:
This is my root

I have a internal memory option in screen 1 and a storage folder which you can see it's contents in second screen. Dunno if it's any use to you
[Galaxy S 4 i9505 Android Development] hawkerpaul:
This is so annoying. It takes up SO much of my time testing these.

I've removed romnuke romwipe romreset and romresetlite from downloads and will investigate even further.

:(
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Still no progress made with the data wipe also removing sdcard I'm afraid.

I think I'll have to circumvent it somewhat, so I'm putting a setting in the options file to complete wipe or not. If it's set for a complete wipe then the scripts work exactly as they do now.

If the option is not set (by default) then the data partition is not wiped at all by the scripts, but the folders within /data are all individually removed (with the exception of /data/media). This should get around the sdcard wipe and perform a factory reset, but if you end up in a boot loop, you may have to do a manual factory reset in recovery.

I will try to release an update as soon as I can.

I think having the option of a complete sdcard wipe is in fact a valid one so I will keep the option in whether I solve the problem or not.
[Galaxy S 4 i9505 Android Development] edlimym:
Hi hawkerpaul, thanks for your great effort. Got a question here - what if I like to wipe out my internal sdcard datas, i can use these tools right? What are the consequences of wiping out all my internal sdcard? Appreciates your advice. Thanks again.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
wiping the entire sd card is the absolute cleanest way to begin to flash a new rom

the romnuke/wipe/reset scripts I posted yesterday do this (but not by design) which is why I took them down.

however, if you're happy to wipe the /sdcard during these procedures then you can use the scripts without a problem.

you just need to be aware of what you actually have stored on your internal sd card currently

for example you may have photos in DCIM folder, or have mp3 files etc.

if you are unsure, follow the advice in the OP, and take a backup of your /sdcard before a flash.
[Galaxy S 4 i9505 Android Development] edlimym:
:good:

Thanks for your reply. Absolutely the cleanest way.
[Galaxy S 4 i9505 Android Development] pompeymark:
Hi i would like to use this tool to do a fresh install could you pm me a link to download i would like to clean my entire internal sd card.

Or can anyone post me a link to this please.:good::good:
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Just download a beta version from the downloads
[Galaxy S 4 i9505 Android Development] pompeymark:
Thanks for the reply will i loose root if i do this?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
No mate
[Galaxy S 4 i9505 Android Development] zhuchella:
hawkerpaul

With some of your scripts can I do only wiping cache, dalvik-cache but not fixing permissions ?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
You may as well do it manually in recovery.

My cache wipe script does what you want. It also fixes permissions as you mentioned, in /system/app and /system/framework. There is no reason you wouldn't want this to be done
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I think a complete wipe of the internal sd is the way to go in these scripts.

On the S4, /sdcard is part of /data (and my thanks goes out to PhilZ for some general advice he's been giving me)

This is why entire /sdcard gets wiped in a format (or a delete_recursive) of /data

I believe this is also what happens by running a normal factory reset.

So, always backup /sdcard before running GS4ROMNuke, GS4ROMWipe and GS4ROMReset, as these do a factory reset, and by default your internal SD card WILL be wiped.

However, I'm working on a version to have an option in the properties file to full wipe internal sd in those 3 scripts or not.

By default this will be set to ON. (1)

Setting this to 0 (off) will attempt to wipe everything in /data apart from the /sdcard contents.

However, for me, this hangs my device on the samsung logo screen (still going after half an hour) on first boot.

This problem may be just on my own device, so I'll keep the option in just in case.

I'll just have to wait and see how this one runs in the real world.

I've made updates to the core but also updated on how all the zips call the core, so you will have to update ALL files in the next update.

I just don't have the time at the moment to complete everything I need to do before getting things into a releasable state, but hopefully I'll be updating on here by the middle of next week. The betas (or the ones I took down, if you have them) can still be used as a full wipe in the meantime.
[Galaxy S 4 i9505 Android Development] adl:
Hi and thanks so much for your scripts!

When i flash a new ROM i want everyting to be as clean as possible, that´s why i usually do following:

- wipe data/factory reset

- wipe cache

- advanced -->wipe dalvik cache

- mounts and storage -->format cache

- mounts and storage -->format system

- mounts and storage -->format data

- mounts and storage -->format preload

- mounts and storage -->format sdcard

- install zip from sdcard -->choose zip from external sdcard

- flash ROM

- reboot

I read all descriptions about your scripts, but still can´t my head really around if that´s what your "Nuke ROM" S´script or the new "GS4HawkerCore" script does. I am on the i95050 (S4 international) and found that with PhilZ Recovery the "clean for new ROM" thing doesn´t wipe internal sd card, that´s why i do that manually, but if your script does that it would be much easier. :D

Thanks for a short reply!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
It does everything you do manually with the exception of preload as this is not used on the s4 (at least yet)

If you are doing a format of data then this will wipe the entire sdcard as its contents are actually held within /data/media/0.

As for that option in philz, i'm not sure what steps this actually performs exactly so you would be better off asking him.

With all the hassle I've been getting with these scripts I think I may just stop doing the romnuke/wipe/reset ones and just stick with the philz option to perform the wipe/factory reset instead.
[Galaxy S 4 i9505 Android Development] adl:
Oh, sorry to hear that you are having trouble with the scripts. :(

And thank you very much for your answer, it helped me a lot. :good:
[Galaxy S 4 i9505 Android Development] Ritchiejoe:
I don't think you should stop doing them mate, they will have their uses. Don't be disheartened :good:
[Galaxy S 4 i9505 Android Development] MrMarkEdward:
Will this work with AT&T?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
GT-i9505 but it may work on other S4 variants. Not owning one, I cannot say for sure.

I've uploaded a new set of betas.

The core, and all zips will require updating.

See OP for details.
[Galaxy S 4 i9505 Android Development] pompeymark:
Cheers for this nice one.
[Galaxy S 4 i9505 Android Development] MrMarkEdward:
Gonna try it out let ya know.
[Galaxy S 4 i9505 Android Development] MrMarkEdward:
Didnt work kept saying i337 not supported.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I need to know the exact rejection message that the script gives, in particular, what its stating to be the device name (case sensitive)

For anyone wanting these scripts to run on an S4 variant other than the GT-i9505, do the following, and I will look into the possibility of including the variant in the script:

1. Report your device name in build.prop (ro.product.model)

2. Type the following at a terminal emulator # prompt, and post up your result

....ls -al /dev/block/platform/msm_sdcc.1/by-name

Core Beta2 has been released. The properties file was being overwritten on each run.

See OP for more details.
[Galaxy S 4 i9505 Android Development] Lucius1972:
Hi hawkerpaul,

Just to report.

I used the Nuke script and it works just fine, cleaned up my internal and external SD as it should be.

I just needed to flash the HawkerCoreV1B2 twice before it recognized the Nuke script in CWM 6.0.4.4, maybe a little bug don`t know.

Looking forward for any updates of your scripts.

Keep up the good work :good:
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Beta3 now available

All zips require updating too. (hopefully this will be the final versions for these)

See post #2 for details
[Galaxy S 4 i9505 Android Development] iron@ss:
Cheers and many thanks for that hawkerpaul!

IMHO, these are a, "must have", in any GT-i9505 flasher's armoury.

Good, clear, precise, instructions in posts #1 - #9.

Already d/l'd the scripts into a folder on my extsd card and flashed the Core script via recovery in preparation for the next kernel or ROM flash. ;)
[Galaxy S 4 i9505 Android Development] Lucius1972:
Hi Paul,

Gonna switch from AOSP to TW in the weekend, will let you know how it went.

Thx again for the updated scripts.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
For those of you who were quick out of the blocks, please download GS4HawkerCoreV1.b3.zip again, as I noticed a small problem in the Fix Permissions core task.

Edit:

Dev host is playing up at the moment and I can't do an upload.

I'll keep trying. When you see it appear in the list, download it again please.

Thanks
[Galaxy S 4 i9505 Android Development] iron@ss:
That'll teach me to be premature. ;)

Are we there yet?

UPDATE

Got it!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
No change there then butty! :D

Yup!

Uploaded at last! :silly:
[Galaxy S 4 i9505 Android Development] Lucius1972:
Hi paul,

As said I switched from AOSP to TW and no issues with the nuke script but I got one thing to report.

I always need to flash the core script twice before the other scripts get recognised in CWM 6.0.4.4.

Am I doing something wrong?

Thanks again. :thumbup:
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Are you getting any messages?

Not sure what you mean exactly mate.

1. Copy core and zips to device.

2. Flash core (if first install or new update)

3. Flash gs4? Zip

You only need to copy and flash the core for an update of it.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Added GS4BloatWipe

Please see Post #2 for more details.

You will need Beta4 of the core for this zip.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Updated core to V1. beta 5

See post #2 for details
[Galaxy S 4 i9505 Android Development] TDC-94:
Hi, I wonder if someone here can help me!

So I have a I9505 and there is no sound coming out of it, I'm pretty sure its a software issue cos yesterday I managed to get a bit of sound out of it after flashing different kernels.

I've just flashed I9505XXUEMK8-PRE-ROOTED-KNOX-FREE-ODEX-FULL and MK8 Modem and "wifi fix" on top but no difference!!

I've tried everything I can think of with no luck. :(

So I wonder if there is a way to erase any files that could be causing the problem before flashing or just a way to get the sound to work?! :rolleyes:

I just don't know who to ask any more! :eek: Hope someone here can help me!

Thanks in advice!! :o
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Flash MGA wifi fix
[Galaxy S 4 i9505 Android Development] TDC-94:
Hi thanks for replying but I already tried that, I just tried it again while being in MK8 just in case but it just caused WiFi not to work.

I also tried MGA modem but no difference, WiFi works again after flashing MK8 WiFi fix, no sound though!

Update:

I just flashed I9505XXUEMI8_I9505OXAEMI8_I9505XXUEMI8_OXA and I got the sound to work while booting, but not afterwards!

Then I flashed MGA WiFi fix and then I get no WiFi and no sound when booting.

Then I flashed MK8 WiFi fix and WiFi works again and booting sound as well but still no sound after booting.

So I think this has nothing to do with the common sound issue!

OK now this is a new thing, just flashed I9505XXUEMK8-PRE-ROOTED-KNOX-FREE-ODEX-FULL and its booting while I'm typing.

The sound while booting started and then stopped half way, Didn't finish booting.

I go into stock recovery, factory reset and no sound at all while booting nor once booted.

Any ideas what it could be?!
[Galaxy S 4 i9505 Android Development] sir adem:
Thank you :good::good:
[Galaxy S 4 i9505 Android Development] HaGii:
Hey there i wanted to try out your scripts, but they won't work me...

I installed the Core Script via CWM and then i wanted to flash the RomNuke.zip. Once i did it, I get an error message that says that

No Internal SD Card was found.

And then: GS4ROMNuke: Core script failed!

I don't know what to do... Maybe it's important that also after installing the GS4Hawker Core Script, there was a little Failure. "Failed ti initialise GS4Hawker options!

But from there on, installation continued and i tried RomNuke.zip and got the error message mentioned above.

So do you have any advice? :)

Thanks!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
what recovery, rom and kernel are you using?

for some reason, its not finding the /sdcard folder.

Try posting up /sdcard/GS4Hawker/Logs/GS4ROMNuke.log if its present
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Core Update, Build 1 Beta6 (14/01/2014)

1. Display tweaks

2. Not restoring GS4Hawker folder and files defined in MyKeepFiles after a full wipe

3. Identified more files to wipe in the KernelWipe operation for KT and Audism kernels.

4. GT-I9505G now supported.
[Galaxy S 4 i9505 Android Development] iron@ss:
Thank you for these indispensable scripts. Takes all the guesswork out of flashing ROMs and Kernels when it comes to preparing the ground. Like the update for GT-i9505G builds on KitKat. :good:
[Galaxy S 4 i9505 Android Development] elxufas:
greattt:p
[Galaxy S 4 i9505 Android Development] elxufas:
great
[Galaxy S 4 i9505 Android Development] bubba949:
Hi, how do I remove the core after installing? Tried deleting the GS4Hawker folder with no luck.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
How do you mean no luck? Did your file explorer fail in the deletion process or something?

Just delete/sdcard/GS4Hawker folder. Should be as straight forward as that.

Obviously doing so well render any of the scripts useless
[Galaxy S 4 i9505 Android Development] bubba949:
Yes the file explore tells me I can't delete.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
See if you can change permission of the folder in the properties to rwx throughout.

If not, navigate to/data/media/0 and set it's permissions within there
[Galaxy S 4 i9505 Android Development] bubba949:
No I still have the same issue with that approach. Write is enabled and root features.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Try my above post.

What are the permission properties for the folder?

May also be worth trying to delete using pc/card reader.

I'll write an uninstall script tomorrow
[Galaxy S 4 i9505 Android Development] Ritchiejoe:
Just wanted to say great work [MENTION=4272718]hawkerpaul[/MENTION] I use your scripts every time I install a new Rom and they have worked flawlessly for me.

Keep up the good work :)
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Thank you for your kind words Ritchie. :good:

Added GS4HawkerCoreDel.zip to remove all traces of my scripts and any backups made.

See OP for details.
[Galaxy S 4 i9505 Android Development] bubba949:
Thank you hawkerpaul, that's done the trick. Not sure why I couldn't delete it manually though. Great work as usual :D
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Thanks for letting me know.

I'm not sure either, as the scripts create its all of its work folders with write permissions.

Odd.
[Galaxy S 4 i9505 Android Development] bubba949:
I'm not sure if its related to your script but since I've flashed it I don't have any network. Only just noticed after being off wifi a while. Is it possible the script could have broke something?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
No not at all.

Which script did you run? I thought you wanted to install it.

You will need to check your apn settings
[Galaxy S 4 i9505 Android Development] bubba949:
The core deletion script, it probably isn't. I'm guessing O2 are updating the network for 4G and it's affecting my area. Sorry for the concern.

EDIT - no sounds or music playback either now. ??
[Galaxy S 4 i9505 Android Development] hawkerpaul:
All the core deletion script does is to remove GS4Hawker folders held on the internal and external sd cards. It removes nothing from system areas.

with no sound, then it seems like you have flashed an incorrect non-hlos.bin for your current bootloader. This also affects wifi. your data problem could also be modem related.

have you flashed anything recently?
[Galaxy S 4 i9505 Android Development] bubba949:
I haven't flashed anything other than your script though?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I can assure you, all the GS4HawkerCoreDel.zip removes is

/sdcard/GS4Hawker (internal storage)

/storage/extSdCard/GS4Hawker (external sd card)

these folders contain only files associated with my scripts, and nothing else.

I tested it on my own device, and it removed those folders and nothing else

and I still have working data/sound

:)
[Galaxy S 4 i9505 Android Development] bubba949:
I really don't doubt you or your work, I just can't understand what happened because I haven't made any other changes. I've had to re-flash my firmware now anyway so I'm going to start fresh.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I'm just trying to assure you that its nothing that the script would have done thats all mate.

the problem you seem to be having is

1. incorrect modem for your current firmware

2. incorrect non-hlos.bin for your current bootloader.

its impossible for the uninstall script to do anything in these areas, as the relevant partitions in which modem/non-hlos.bin are kept are not even mounted by the script, and besides, these partitions can only be flashed through Odin and cannot be done through a cwm flashable zip.

As you've not flashed anything, then this really is an odd one.

Good luck with the firmware re-flash.
[Galaxy S 4 i9505 Android Development] kewinhdorff:
help

would...

wipe data factory reset

format cache

format system

foramt data (app data)

format internal storage (media........)

be the exakt same as flashing RomNuke...

and if you was going to flash samsung stock firmware on your phone which scripts would you use and in what ordes cus i dont quite understand why well not the purpose of why corescript is needed before flashing the other scripts xd since as i have read flashing samsung stock firmware wipes the whole phone why is this needed before flashing stock firmwares ?