yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] leroy1985:
yeah sorry about that unclear post mate, lol so basicly, i wanted to wipe kernal, was on neatrom asop v8, 4.4.4, apolo 7.1, i tried the script by running the hawkercorev1.26.zip, tried running through twrp it said successfull so i continued to the script folder but its on the sd card folder, twrp uses a differnt folder name? cant remeber the exact but its something like ccct cant remeber now, but anyways when i try go into sd root, theres nothing there when trying to find the zip, but its there using file explorer in twrp, so i copied the folders onto the ccct folder where twrp recognises it, finding it hard to explain now, hope you know what i mean.

anyway when i tried running it from twrp ccct folder wich is the sd root, its just names differnt for some reason, anyway i ran the clear kernal script and ended up with soft brick, just freeses on the start logo, not sure where i went wrong, but it seemed like something to do with the differnt named files structure i dont know maybe i just had bad luck

---------- Post added at 09:29 PM ---------- Previous post was at 09:05 PM ----------

yeah sorry about that unclear post mate, lol so basicly, i wanted to wipe kernal, was on neatrom asop v8, 4.4.4, apolo 7.1, i tried the script by running the hawkercorev1.26.zip, tried running through twrp it said successfull so i continued to the script folder but its on the sd card folder, twrp uses a differnt folder name? cant remeber the exact but its something like ccct cant remeber now, but anyways when i try go into sd root, theres nothing there when trying to find the zip, but its there using file explorer in twrp, so i copied the folders onto the ccct folder where twrp recognises it, finding it hard to explain now, hope you know what i mean.

anyway when i tried running it from twrp ccct folder wich is the sd root, its just names differnt for some reason, anyway i ran the clear kernal script and ended up with soft brick, just freeses on the start logo, not sure where i went wrong, but it seemed like something to do with the differnt named files structure i dont know maybe i just had bad luck

i dont have an external sd card, so i can just delete the hawker core folder and thats it completly removed yeah? thx for the response

so im starting to wonder if this is where it went wrong for me? when i used the script the first time to remove apolo kernal, i rebooted straight after, i was hoping it would just go back the the stock neat rom asop kernal? im wondering if thats not how it works? would you have to remove the kernal then flash another kernal straight away before rebooting mate? actualy thinking about it thats got to be it, lol probably sound really stupid to you, but im new at this stuff, i just thought it would go back to the default one as i didnt have the default kernal to flash straight after removing
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I Use TWRP and I've never seen that folder you mention.

It gets installed into internal storage and you can access the HawkerCore\Scripts folder within there in TWRP

When booted up it will be in /sdcard/HawkerCore
[Galaxy S 4 i9505 Android Development] Giobio:
Hi,

I used the the romnuke script and then I flashed a new rom. I was aspecting for a clean sdcard0 but after checking I found old pictures on DCIM folder. Is it correct?

One more question: after installing the script i needed to reboot into recovery to be able to flash the new rom and not afterwards script flashing.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
That's because the default is not to wipe internal sd. It's far to dangerous to assume this. All this information is in the op/post #2 regarding the options file.

After a romnuke there is no need to reboot into recovery. Just stay in recovery and flash your rom.
[Galaxy S 4 i9505 Android Development] Giobio:
So before of installing a new rom, to have a clean sdcard I need to go in tools/backup/ and do a factory reset?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Tools/backup? No idea what you're talking about sorry.

You can wipe internal sd either through your recovery or with romnuke provided you have edited the options file in order to do so before you run it.

I'm not entirely sure if the Factory Reset function from with the ROM menus wipes internal SD as I've never used it.
[Galaxy S 4 i9505 Android Development] Giobio:
Sorry for my English.. :)

I understood there were something to do with options file but after installing the core file in options I only have Hawkercore.prop and Myaddelete.txt. and don't know how to use them or if you reffering to them.

Yes Factory Reset delete all apps folders leaving only the rom ones...
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Edit HawkerCore.prop

by default SDCARD_FULL_WIPE=0

if you want to also wipe insternal sd, then set this value to 1.

As I already mentioned, all the details regarding this are in Post#2
[Galaxy S 4 i9505 Android Development] Giobio:
Sorry, but that part I jumped a pair foot because if arab for me. Anyway thanks to answer my post...
[Galaxy S 4 i9505 Android Development] leroy1985:
The folder is called emmc. And for some reason SD is separate. But there both root.
[Galaxy S 4 i9505 Android Development] Lucius1972:
Paul! Great scripts. I think you helped me getting rid of my sod which is b*tching me for weeks. Great job buddy!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
A positive post!

Now that doesn't happen very often on this thread.

Perhaps I might not throw the towel in just yet!

It's probably a coincidence but thanks all the same.

:)
[Galaxy S 4 i9505 Android Development] Lucius1972:
Paul. Sometimes no reply means great job bud. If we hadn't you guys we were in trouble sometimes. Keep going my friend [emoji106]

PS: keep an eye on Mahdi ROM thread ?
[Galaxy S 4 i9505 Android Development] leroy1985:
I'm very grearfull for the effort people put into making these tools, things are bound to gi wrong for some I guess even when studying and following instructions, but I know the risks, I was able to fix my problem by just reflashing Rom, but I do think its because of the emmc folder, do you have that mate, its twrp root folder but there's also sd folder.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Not sure why you get problems on TWRP, as I use it, and its working fine for me

Sorry mate.
[Galaxy S 4 i9505 Android Development] leroy1985:
but you know wich folder im talking about, emmc ? you should have that too if using twrp, this is the reason for the problem im sure of it
[Galaxy S 4 i9505 Android Development] hawkerpaul:
emmc is already in the scripts

it goes through all known folder mount points until it finds a valid one
[Galaxy S 4 i9505 Android Development] leroy1985:
Well for me it installed some folders in emmc but they were empty. The correct folders were under sd, I thought if I just copied them in emmc such I did but ended with stuck at first logo, oh well dont matter
[Galaxy S 4 i9505 Android Development] hawkerpaul:
That's intentional.

The scripts install to internal sd csrd and not external
[Galaxy S 4 i9505 Android Development] leroy1985:
yeah i know thats what i said, it installed them to internal sd and it installed a couple of folders to emmc but they were empty

i had to copy the folders from internal sd to emmc to even get it to recognise the file as when i tried pointing it to internal sd it showed nothing even know they were there, but when i copied them to emmc it recognised them, but then i got the freeze, im just trying to work out what went wrong not here is all
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Its entirely intentional to install to internal sd card. I'm not sure what you're trying to say here? Not sure what you mean when you say the files were not recognised on internal.

The hawkercore folder that gets created on external are for any backups etc. That the various scripts might make.
[Galaxy S 4 i9505 Android Development] NoRulesForMe:
Hi Mate where could i DL your latest ROM NUKE? i search everywhere already but cant find.. can you give me the link? Thanks Boss :angel: gladly appreciate it :angel:
[Galaxy S 4 i9505 Android Development] hawkerpaul:
From the download section in the OP mate.
[Galaxy S 4 i9505 Android Development] NoRulesForMe:
i only see HawkerCoreV1.26.zip :(
[Galaxy S 4 i9505 Android Development] hawkerpaul:
its in that zip!

Take time to read the OP, and the post regarding RomNuke and all will become clear
[Galaxy S 4 i9505 Android Development] romhetman:
Link is down!?!?!
[Galaxy S 4 i9505 Android Development] its_Khal:
Please help!!!

Please, i have a SGH-M919... Before now, i can not use TWRP on my device.... If i flash TWRP via Odin, and i boot into recovery, it just hangs on the Blue "TEAMWIN" Splashscreen. It would not load to the menu. My device can not boot up to the homescreen, it would keep Rebooting from the TMobile Boot Animation.... But i can get into Philz CWM but can not do a Factory Reset from CWM, When i tried this from CWM its process loads up to a point and my device would restart it self again...

Please, i want to wipe my whole device so i can start again.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Not sure why you are asking this on this thread?

:confused:

Anyway, ignoring the OT, make sure you are installing the correct TWRP for your device.

Not sure why you cannot FR within Philz. Try doing it from within your ROM instead.
[Galaxy S 4 i9505 Android Development] Giobio:
[MENTION=4272718]hawkerpaul[/MENTION]

Hi, I'm using your "little" swiss knife so far away but now I'm on Lollipop and it seems not work correctly. Is it so from your part?

Romnuke does not nukes and in file manager only the scripts folder is shown (but this could be an android problem).

Thanks for your work and have an happy new year as your readers!!!!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Happy New Year to you too mate

:)

I'm on lollipop, and I've not tried a nuke, but i've done kernelwipes and deltemp, and they work fine

all scripts basically follow the same logic so if one script can run on your device, then they all will, so romnuke should be no different.

have you actually run HawkerCore.zip beforehand?
[Galaxy S 4 i9505 Android Development] Giobio:
Yes kernel and cache scripts work but romnuke tried again right now. If I reboot system it appears.

EDIT: I've tested it again and again and the result it's the same. Romnuke by my side is not working but I think is cause of lollipop. even its own recovery do not do wipes....
[Galaxy S 4 i9505 Android Development] Tim-2.0:
Hi [MENTION=4272718]hawkerpaul[/MENTION]!

I absolutely love your work, it makes tinkering so much easier! Well done and thank you!

I however have an issue which I am hoping you could help me with.. Upon running Romnuke it is "skipping" the system and cache files :( Any idea of how I can rectify this?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
What is in /sdcard/HawkerCore/Logs/ROMNuke.log?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Looks right to me.

Everything wiped as it should have mate.

The skipped messages are for "." and ".." which are directory placeholders in linux
[Galaxy S 4 i9505 Android Development] sydknee:
Why in ROM nuke does it move everything on internal storage to a new file called 0?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I don't know Syd. I've never been able to work that one out.

I think it might have something to do with a difference between the way recovery and kernel mounts the internal sdcard filesystem. I've not really got any intention to get to the bottom of it, as I never use ROMNuke to wipe any more, I just wipe within recovery instead. ROMNuke will still do the job of course, but on a full SD card wipe (SDCARD_FULL_WIPE =1), you may well get your previous internal sd card backed up to a /sdcard/0 subdirectory......not a bad thing though I suppose on certain occasions!
[Galaxy S 4 i9505 Android Development] O-T:
When reading the Romnuke log there was a step to backup efs that caught my eye.

I know back in S9000 days the *p10 partition was sufficient but for S4 a total of 8 partitions seems to be dd to image.

AntaresOne has made a IMEI backup /restore script for several S4 devices including i9505. That script takes in more than the *p10 partition.

http://xdaforums.com/showthread.php?p=57544996

... if it is of interest to investigate
[Galaxy S 4 i9505 Android Development] Tim-2.0:
Uh ok, awesome stuff! How silly of me - The "skipped" threw me that's all! Never doubted ya Paul.. ;) Thanks again champ!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.27 (07/01/2015)

1. Deeper device id detection. Should now pick up S4 devices on S5-emulating ROMs

2. Clean Imperium Kernel in CT-KernelWipe Core Task

3. Suppress SKIPPED display for "." and ".." folders when wiping
[Galaxy S 4 i9505 Android Development] lilicaull:
Can't download this for the life of me
[Galaxy S 4 i9505 Android Development] O-T:
[MENTION=4272718]hawkerpaul[/MENTION]

Do you have experience of the consequences of wiping /firmware /firmware-mdm and /efs as discussed here?

http://xdaforums.com/showthread.php?p=59346933
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Its all done in V1.28
[Galaxy S 4 i9505 Android Development] j1gga84:
So you are currently working on V1.28?

Regards

Sent from my GT-I9100 using german Tapatalk 4
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Yes mate.

As always, work in progress is included in the changelog in post #2
[Galaxy S 4 i9505 Android Development] sydknee:
ETA? ;)
[Galaxy S 4 i9505 Android Development] hawkerpaul:
17 minutes past 10.

.

.

.

If I was to tell you on what day, I would have to kill you Syd!

:D
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I'm considering simplifying things greatly, and only maintain a standalone KernelWipe script.

If so, V1.28 will be the final version of this suite of scripts.

If I go ahead with this, I will start a new thread just for KernelWipe.

Any thoughts on this will be appreciated and considered.
[Galaxy S 4 i9505 Android Development] Giobio:
Rom Nuke too? :)

Anyway, thanks for your work again...
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Apart from very minor tweaks (eg. display) not much changes in all the other scripts.

It's the KernelWipe that has the potential to change and need updating on a more frequent basis.

All other scripts could still be run as normal
[Galaxy S 4 i9505 Android Development] sydknee:
The kernel wipe is by far the most useful, think we'd all appreciate you maintaining that!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
(V1.28 FINAL) (25/03/2015)

1. Deeper detection of apk-related files for removal

2. Include extra partitions in the CT_EFSBACKUP and CT_EFSRESTORE core tasks

3. /sdcard/HawkerCore/Options/MyKeepFiles.txt was being reset on each run

4. Clear Cyanogenmod Eleven music player areas in CT_MediaWipe

5. Android and data folders are now always wiped on internal and external SD Cards in the CT_ADWipe operation, regardless of the SDCARD_FULL_WIPE setting (previously these folders would only get wiped when SDCARD_FULL_WIPE=1)

6. Clean Hulk Kernel in CT-KernelWipe Core Task

7. Clean Hybridmax Kernel in CT-KernelWipe Core Task

NOTE:

V1.28 is the final version for this suite of scripts.

I have however started a separate KernelWipe thread.

This will become the main thread as far as any KernelWipe updates are concerned.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I just ran a ROMWipe, and all my sd card folders are in tact (apart from the ones that its supposed to wipe) and it also successfully created /sdcard/GS4Hawker and all files within. So I'm not quite sure what's happening for you sorry mate.

:(

Did you get lots of display messages on screen during the run, showing what was getting wiped, and showing the log file location?

Its almost as if the shell script that the zip file calls did nothing, as you have no /sdcard/GS4Hawker folder. And the fact that your entire /sdcard contents disappeared is even more confusing as the updater-script only wipes /system, /data and /cache.

I know the first few test runs I did a couple of weeks back didnt run because I didnt have busybox installed, which is why I've bundled this in the zip file.

Theoretically, because of this you now shouldn't need to install busybox spearately, but perhaps there is a problem with the in-zip busybox where no actual busybox has been installed onto the device. (clutching at straws here!)
[Galaxy S 4 i9505 Android Development] sydknee:
No issues for me either when flashing this yesterday, although I previously had busy box installed, but after using ur script, I got a notification that busy box was not installed and I had to reinstall it.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Odd, as the scripts have busybox bundled in now.

Are the .zip file sizes you have around 800Kb, or 150Kb?

Thanks Syd
[Galaxy S 4 i9505 Android Development] edzamber:
Yes !!! Thanks for all i will buy a S4 and i used theses marvelous scripts on my S2 before ;)

Greats news :)
[Galaxy S 4 i9505 Android Development] MVKA:
Hello

Flashed romnuke couple days ago and it did the job perfectly. Great job mate

-MVKA

Sent from my GT-I9505 using Xparent Pink Tapatalk 2
[Galaxy S 4 i9505 Android Development] sydknee:
800
[Galaxy S 4 i9505 Android Development] kubics:
Nice to see you here with your great stuff for this device :thumbup:
[Galaxy S 4 i9505 Android Development] sh00kre:
i ran romnuke and lost half of my pictures on sd card, some of folders, files... and also i cant flash ProBam rom which previously i could, (install failer because some errors on ext-sd card) ... so dont flash any of this if you dont want to destroy your phone.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
These are only betas and anything is possible I suppose but I believe the problem is with your external sd card.

Sounds like you need to reformat your card, or even get a new one.

The script only wipes media thumbnail and cache files, not the media files themselves.
[Galaxy S 4 i9505 Android Development] sh00kre:
you should state to backup external sd to be sure... and right on top of your description with font 100/RED! Would rather have bricked phone then lost memories (pics,vids) from ex-sd. I flashed hundreds of roms, kernels, scripts... but never lost any bit from external card that wasnt suposed to be deleted until this...

And it would be better to call it NukePhone, rather than nukeRom

just trying to help others not to run this script
[Galaxy S 4 i9505 Android Development] kantjer:
Its common sense, specially if something has the words nuke and beta in its title to make backups.

If you do not want to run any risk then don't use beta versions.
[Galaxy S 4 i9505 Android Development] Tunestwo:
Wich one should i use to empty my whole phone? Like i got it new from the box? but ofcourse keep kernel and rom
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I'm sorry if the script did indeed cause this, but like I said it sounds like you have ( or at least had) a problem with your sd card. The script doesn't remove photos etc. Others have run the script without any problem. Should there be issues with any of the scripts then I would of course attempt to address them after feedback. For example if there could be issues depending on the installed kernel you run the script on.

ROMreset
[Galaxy S 4 i9505 Android Development] Tunestwo:
Thanks for the reply with use rom reset, and will tell u how it ended up.
[Galaxy S 4 i9505 Android Development] trveller72:
Glad to see your scripts here.

I used them on SGS2 without issues and were very useful.

Anyway, with all the ROMs and kernels in early stages (your scripts also), someone should be very brave to flash without back up.

Please keep the good work.
[Galaxy S 4 i9505 Android Development] iron@ss:
Great job old boy!

Having used your scripts constantly on my SGS2 I had no hesitation in downloading the full set from post #1.

To date I have only used KernelWipe, MediaWipe and ROMClean and I can confirm that they are working flawlessly on my GT-i9505 running DjeMBeY's Modified ROM.

I have no hesitation in recommending these to anyone who is on the Galaxy S4, GT-i9505, and is into ROM and kernel flashing.

Will give ROMNuke, ROMWipe and ROMReset a go as soon as I change ROM's as, if they are anything like your SGS2 scripts, they make an excellent foundation for ROM flashing.

Have a beer on me old stick... Confirmation number: 0RW39786JS660570Y
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Thanks for the kind words butty. I really appreciate it.

And of course, thank you so very much for the donation! :D

I shall try my best to spend it wisely. :silly:
[Galaxy S 4 i9505 Android Development] kubics:
Wisely? So you say no beer? :p
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I did say "try" my best mate!

:D
[Galaxy S 4 i9505 Android Development] Pard0ned:
Just wanted to say the rom nuke script worked brilliantly! Just flashed it on a new installation of Wanam's rom.

Thanks for this, op. It'll be incredibly handy in the future too. :D
[Galaxy S 4 i9505 Android Development] Tunestwo:
Used the Rom Reset,

Worked like a charm!
[Galaxy S 4 i9505 Android Development] Lither:
Should I use GS4ROMNuke if I want to wipe everything from Internal and External memory?
[Galaxy S 4 i9505 Android Development] Pard0ned:
It doesn't wipe external card. But, yes. To wipe any unnecessary rubbish out from your internal storage romnuke is the way to go.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Added GS4CacheWipe by request.

See OP for details.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
With the exception of GS4CacheWipe, I've updated scripts to beta 1.01 with improved free space calculation method.

This only actually affects GS4ROMNuke, GS4ROMReset and GS4KernelWipe, but I've included the new shell script in all zips just for completeness.
[Galaxy S 4 i9505 Android Development] Repulsa:
hi there does gs4kernelwipe is working as well? because it says pending :D
[Galaxy S 4 i9505 Android Development] hawkerpaul:
It works no problem but currently it is limited in what it removes as I am not aware of any S4 kennel-specific files/folders at the moment.
[Galaxy S 4 i9505 Android Development] Lucius1972:
Ok, switching from AOSP to Touchwiz Rom.

Gonna try GS4ROMWipe, cross your fingers.

Thx for your hard work.
[Galaxy S 4 i9505 Android Development] kewinh0727:
will these scripts in any way damage or harm the device ?

some say it is bad some say it is good...

what is is really ?
[Galaxy S 4 i9505 Android Development] Lucius1972:
I used the GS4Romwipe to change from a AOSP to TW rom.

No issues at all, worked flawless.
[Galaxy S 4 i9505 Android Development] kubics:
some say always do backup in any case ;)

(even if in this case, these scripts are safe if you understand what you are doing)
[Galaxy S 4 i9505 Android Development] FlanjeUK:
Tried the RomWipe 1.0.1 script in latest CWM to go from RootBox 4.2 Stable to AOKP unofficial 4.3 and it wiped my whole internal sd :(
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Only the specific areas described in the op are wiped from the internal sd.

Unless aokp roms are using different mount points for different file systems compared to Samsung roms the only areas the script blanket-wipes are /system, /data and /cache.

I'll try and look into it further...
[Galaxy S 4 i9505 Android Development] scesarin:
I would like to run the ROMNuke scritp, but what's up if this happens? Can my phone be able to flash a new rom inmediately after? or will stay kind of "bricked" phone? If this is the case, how di you sort it out? (to make your phone up and running again)
[Galaxy S 4 i9505 Android Development] kubics:
As written on OP you SHOULD flash ROM immediately after ROMNuke. The phone is not bricked, it is still flashable at least via Odin. And I believe it is as well flashable via recovery on S4, as recovery is more independent from other parts of system as it used to be on older devices...