yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.16 (superseded by V1.17) (17/07/2014)

1. If the user has specified BKP_LOCATION=int in /sdcard/HawkerCore/Options/HawkerCore.prop the script no longer attempts to see if an external sd card is present. It is assumed the user has specifically set this value because the device has no external SD card fitted.

2. For GS2 only, /sdcard for some reason is mounted to external sdcard, so unmount it and re-mount to internal sd.

For those who have previously flashed HawkerCoreV1.15, you can either download and re-flash the whole suite of zips or you can replace /sdcard/HawkerCore/Scripts/HawkerCore.sh with the new version

HawkerCoreV1.17 suite of zips

The updated V1.17 HawkerCore.sh only

Note:

With regards to point (2.) above, I seem to remember when I developed these scripts for the S2, that when in recovery, /sdcard was mounted to the external sd card. (I would appreciate if you could confirm this)

The script will now attempt to unmount this initially, then remount /sdcard to the internal sd card.

As I don't have a GS2, this is as yet untested.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.18 (18/07/2014)

1. Issue sync commands prior to unmounting filesystems

2. Common filesystems were not being unmounted on exit

3. Display tweaks

4. Routine that returns getprop values made more robust

For those who have previously flashed HawkerCoreV1.15 or later, you can either download and re-flash the whole suite of zips or you can replace /sdcard/HawkerCore/Scripts/HawkerCore.sh with the new version

HawkerCoreV1.18 suite of zips

The updated V1.18 HawkerCore.sh only
[Galaxy S 4 i9505 Android Development] Jsilver73:
Hey hawkerpaul, all the talk on the other thread has got me thinking!

Can we patch your core zip to work in [MENTION=4277844]chenxiaolong[/MENTION]s dual/multi boot partitions?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I don't know mate. I've never had the need to multi-boot and have never looked into it whatsoever.

I'm guessing he is using the cache partition in some way to hold the second rom but i would need the details of course
[Galaxy S 4 i9505 Android Development] Jsilver73:
OK, I'll ask in [MENTION=4277844]chenxiaolong[/MENTION]s thread and reference your core script there.
[Galaxy S 4 i9505 Android Development] wonsky21:
OK, so I want to make a full wipe with these script... But I don't want to wipe my internal SDCARD.

I want to do it this way:

flash HawkerCore v1.18 in recovery

edit the SDCARD_FULL_WIPE property setting in /sdcard/HawkerCore/Options/HawkerCore.prop to 0

flash RomNuke.zip in recovery

flash a new rom.

Is it proper way?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Yes that'll do nicely.

Double check the setting of SDCARD_FULL_WIPE by all means, but unless you have manually edited the value, it will be set to 0 by default.

ROMNuke will always remove Android and data folders from your internal sd card to ensure a clean start for your next rom, but these will be backed up to your external sd card (in external_sd/HawkerCore/Backups) beforehand just in case, but I am however contemplating skipping this operation in v1.19, or at least including an extra option in the prop file to perform it or not.
[Galaxy S 4 i9505 Android Development] Xipe_Totec:
hi man,

when i try to install your core app it installs correctly.

then i try to run the ROMnuke scripts from the internal directory of the mobile phone via recovery and it returns me this error message:

"ROMnuke: core script failed"

any idea?

(i previously used your stand-alone scripts for SGSII, worked perfectly)
[Galaxy S 4 i9505 Android Development] hawkerpaul:
I think something weird is going on in the s2.

See if it has installed onto the external sd instead.

If so move the Hawker Core folder over to internal.

wait for v1.19

This is a major update and will require a full zip flash.

As i'm working blind on the S2, I've had to make guesses as to what the issue is here, but hopefully this version will resolve it. I recommend S2 users manually remove any folder called HawkerCore on both internal and external sd cards before flashing V1.19
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.19 (20/07/2014)

NOTE: I am simplifying the options file. This has lead to the removal of certain options, but the functionality is still present, and are all controlled by the setting of SDCARD_FULL_WIPE. This update will therefore reset the /sdcard/HawkerCore/Options/HawkerCore.prop options file back to default settings.

1. Attempt to resolve GS2 issues regarding internal/external sd card access. As i'm working blind on the S2, I've had to make guesses as to what the issue is here, but hopefully this version will resolve it. I recommend S2 users manually remove any folder called HawkerCore on both internal and external sd cards before flashing V1.19

2. CT_ADWipe always wipes nonessential areas of both internal and external SD cards, but now, /Android and /data within these cards are now only wiped depending on if SDCARD_FULL_WIPE=1 (default=0)

3. When MyBackup/MyRestore is called as part of a factory reset job, the backup/restore procedure only occurs when SDCARD_FULL_WIPE=1. This has lead to the PROCESS_KEEP_FILES option to be scrapped.

4. ANDROID_DATA_BKP scrapped. Now a backup of /sdcard/Android and /sdcard/data will always be attempted before they are removed in a full wipe operation.

HawkerZipsV1.19
[Galaxy S 4 i9505 Android Development] arpit_nnd:
Still not working on my i9100... :(
[Galaxy S 4 i9505 Android Development] hawkerpaul:
What are the exact messages please
[Galaxy S 4 i9505 Android Development] Artificialkid47:
Core script failed!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Is this when installing the core+zips or when running one of the scripts?

It's probably still not able to install to internal sd card.

I take it you're on the latest build.

Do you have a hawkercore folder in your internal or external sd card?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.20 (26/07/2014)

1. Attempt to resolve GS2 issues regarding internal/external sd card access

2. Display tweaks
[Galaxy S 4 i9505 Android Development] Ganjax:
I have problem with install HawkerZipsV1.19.zip on my SGS2, I have DirtyUnicorn ROM KK 4.4.4 and Dorimanx Kernel by Comp v116

Installing updateee..

Updating..

HawkerCore updated successfully

To uninsta ll, run /sdcard/HawkerCoreDel.zip

Initializing...

Failed to initialize Core options!

Install from sdcard complete.

But i can't use any wipe script.

KernelWipe: Core script failed!

Tried install from internal and external sdcard
[Galaxy S 4 i9505 Android Development] hawkerpaul:
As I no longer have an S2, this is very difficult to get right, so I am relying on you guys to supply me with details for me to work on. If I can't I may have to give up S2 support and you will have to go back to the original S2-Specific scripts from 2 years ago.

1. Is there anything in the Logs folder?

2. What do you have in the HawkerCore folder of your internal SD card?

See if the same thing happens on v20
[Galaxy S 4 i9505 Android Development] Ganjax:
v20 exactly the same.

I can give you every informations and i can be your tester. If u want helper, just PM me

In HawkerCore folder Scripts got all wipe scrips zips +

HarkerCore.sh

HawkerCore.sh.old

LOG:
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.21 (27/07/2014)

1. Streamlined zips. Busybox now gets installed into /sdcard/HawkerCore instead of having to bundle busybox in each of the zips separately. This has reduced the size of the core zip by 10Mb.

2. Remount of /system in script, as later versions of PhilZ seem not be able to mount initially.

3. Further attempts to resolve GS2 issues regarding internal/external sd card access. Many thanks to [MENTION=3491649]Ganjax[/MENTION] for his help and patience in testing for me for this. The conclusion so far is that for GS2 users, the scripts can only be run on TWRP, or on a version older than CWM 6.0.4.7.

HawkerCoreV1.21
[Galaxy S 4 i9505 Android Development] j1gga84:
[MENTION=4272718]hawkerpaul[/MENTION]

Thanks for your work and also for still including the GS2 family :)

What do you think? Will it be possible to run your scripts under CWM higher than 6.0.4.7 one day?

Regards

Sent from my GT-I9100 using german Tapatalk 4
[Galaxy S 4 i9505 Android Development] hawkerpaul:
These scripts work with Twrp for the gs2. As for later versions of cwm, then i don't know at the moment. Not having a gs2 makes it almost impossible for me to test. I might be able to find the problem eventually with the help of testers. Better still maybe someone with an s2 with edify+scripting knowledge might be able to pinpoint the problem.

To be honest, i feel it's something simple that's stopping the script installing correctly on later cwm gs2's. I think it's a permission problem on the internal sdcard when running in recovery that is preventing the script from running busybox commands and/or the core shell script (hawkercore.sh)
[Galaxy S 4 i9505 Android Development] Ganjax:
Today i'll have many time after 4PM to testing, im ready to flash recoveries and test your scripts :)
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.22 (29/07/2014)

1. Resolved issues on GS2 when using later versions of CWM. This has meant a larger core zip (approx 10Mb) as busybox has had to be bundled in with the individual zips again. The problem seemed to be that later CWM versions are unable to execute programs directly off the internal SD card, and must be copied to an alternative temporary location (ie. /tmp) and run from there. Core-shell-only updates (HawkerCore.sh) will become available in subsequent versions if you don't want to download the suite of zips again. My thanks to [MENTION=3491649]Ganjax[/MENTION] again for his testing.

HawkerCoreV1.22
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.23 (07/08/2014)

1. Improve detection of internal and external sd cards

2. Extended searches to remove .write_test file/folder

3. All kernel modules are now removed from /system/lib/modules in CT_KernelWipe
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.24 (08/08/2014)

1. Find files method improved

2. Display tweaks
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.25 (15/08/2014)

1. Internal SD card contents were being stored in a "0" subfolder by a ROMNuke operation

2. Improved application removal function

3 /cache/dalvik-cache included in CT_DalvikWipe

4. Display tweaks
[Galaxy S 4 i9505 Android Development] j1gga84:
Could you explain why a hawkerpaul folder is created on internal AND external SD? Would there be a possibility to choose it?

regards
[Galaxy S 4 i9505 Android Development] hawkerpaul:
No hawkerpaul folder gets created anywhere, only HawkerCore

HawkerCore in the Internal holds the zips/script/logs/options etc

HawkerCore on the External holds any backups it makes

See OP if you want to change backup location to internal.
[Galaxy S 4 i9505 Android Development] scott2ride:
Hi Paul

Just a bit concerned with the ROM Nuke.... Normally I would copy the newRom.zip file to the phones SD card and run the installation from within recovery.

However, if I copy the NewRom.zip to the SD and then run ROMNUKE, wont it wipe the SD card? And if it wipes the SD then my NewRom.zip file is gone... so how do I the immediately load the new rom as an operating system????

I cant copy it to the SD afterwards as the PC wont be able to connect to the phones SD so how do I transfer it?

Im probably missing something simple? :D

Thanks

Scott
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Hi Scott.

Yes you would be correct if the entire internal SD card was wiped by ROMNuke by default, but it is not.

The behaviour can subsequently be controlled by editing the options file.

I'll include a snippet from post #2 which is relevant for you here:

The Options File

/sdcard/HawkerCore/Options/HawkerCore.prop

This options file controls the way all my scripts are run.

SDCARD_FULL_WIPE (default=0)

Set if a FULL WIPE of the internal SD Card is required in the CT_DataWipe operation.

SDCARD_FULL_WIPE=1 performs a full wipe of internal SD Card (/sdcard).

SDCARD_FULL_WIPE=0 keeps the internal SD Card contents (/sdcard, ie. /data/media/0)

See the CT_DataWipe post for more details.

If you are unsure, you can double-check this option before flashing, or, if you have an external SD card, you can always use this to store your ROM's zips instead.

Hope this helps mate

:)
[Galaxy S 4 i9505 Android Development] scott2ride:
Awesome. Thank you! :D
[Galaxy S 4 i9505 Android Development] issy_i:
just lovly
[Galaxy S 4 i9505 Android Development] panoramixmeister:
I used to use these scripts when I had my GS2. They were fantastic!

Now I am using a Note 3 international version with X-Note rom and TWRP Recovery.

Do these scripts work with this model and configuration?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Hi and thanks mate.

Not without a bit of work unfortunately.

1. You would need to check that your device's partition names are compatible. See the Other Devices section of the OP. If these names match (ie. efs, system, cache and userdata) then there is no reason why these scripts cannot run (in theory) on your device.

2. The HawkerCore.sh script checks for specific device ids for safety. See the Currently Supported Devices section of the OP. Your ro.build.model would need to be added to the Get_Handset_ID function of the script.

3. Most functions should work across all devices, but some would need to be altered for specific functions (Eg. KernelWipe would need to check for extra files/folders for kernels specific to your particular device)

4. Path and block device for internal+sd cards would need to be catered for if different. (eg. on the S4, the external sdcard is /dev/block/mmcblk1p1, and can be mounted to any one of /storage/sdcard1, /storage/extSdCard, /external_sd, /extSdCard, /emmc depending on the ROM/recovery you are on)

If you provide me with all the relevant information I would be happy to look into the possibility of adding the relevant code to the script for you, but of course, not having any device other than my GT-i9505, I could not possibly test, and using the script would more than ever be at your own risk"!

:)
[Galaxy S 4 i9505 Android Development] panoramixmeister:
Hi and thank you for the prompt reply.

1. I have followed your instructions using terminal and my device name is SM-N9005.

2. I tried following the instructions below but I've lost it somewhere. Can you please explain to me specifically what I need to type in terminal?:

Type the following at a terminal emulator/adb shell # prompt, and post up your result, noting the following important device names:

GS4

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

lrwxrwxrwx root root 2014-03-20 07:46 cache -> /dev/block/mmcblk0p18

lrwxrwxrwx root root 2014-03-20 07:46 efs -> /dev/block/mmcblk0p10

lrwxrwxrwx root root 2014-03-20 07:46 system -> /dev/block/mmcblk0p16

lrwxrwxrwx root root 2014-03-20 07:46 userdata -> /dev/block/mmcblk0p29

GS2

ls -al /dev/block/platform/dw_mmc/by-name

lrwxrwxrwx root root 2014-03-20 07:46 cache -> /dev/block/mmcblk0p7

lrwxrwxrwx root root 2014-03-20 07:46 efs -> /dev/block/mmcblk0p1

lrwxrwxrwx root root 2014-03-20 07:46 system -> /dev/block/mmcblk0p9

lrwxrwxrwx root root 2014-03-20 07:46 userdata -> /dev/block/mmcblk0p10

P.S. I checked the currently supported devices and mine is not listed. So according to your comments my ro.build.model (SM-N9005) needs to be added to the Get_Handset_ID function of the HawkerCore.sh script

3. Most functions should work across all devices, but some would need to be altered for specific functions (Eg. KernelWipe would need to check for extra files/folders for kernels specific to your particular device)

OK - do I need to provide you with some sort of info on this?

4. Path and block device for internal+sd cards would need to be catered for if different. (eg. on the S4, the external sdcard is /dev/block/mmcblk1p1, and can be mounted to any one of /storage/sdcard1, /storage/extSdCard, /external_sd, /extSdCard, /emmc depending on the ROM/recovery you are on)

How can I check these and provide you with the relevant information? Is there a command I need to type in terminal or use sth like root explorer? Please advise and I will do the needful.

Thanx for your time in replying to my questions!
[Galaxy S 4 i9505 Android Development] hawkerpaul:
At an adb shell # prompt

cd /dev/block/platform

ls

From there you need to look for a folder that contains a folder called by-name

On the GS4 its called msm_sdcc.1

On the GS2 its called dw_mmc

then

cd [that folder]

ls -al

Then note the information for cache, system, userdata and efs

Yes. You would need to install various kernels onto your device and in Root Explorer or similar, look for any files/folders it creates and uses (Places commonly used for kernel work files are for example /data, /data/data, /sdcard etc)

Its not too easy to do this.

On the S2, the internal sdcard was mounted onto a separate device (/dev/block/mmcblk0p11). On the S4, its actually mounted within /data in /data/media/0

External device for both is /dev/block/mmcblk1p1.

You may be better off to ask the relevant questions in the forum specific to your device.

In most cases, the scripts should automatically detect the internal/external via traditional mount paths, but the device name might be needed as a last resort just in case
[Galaxy S 4 i9505 Android Development] atarum0r0:
ty to your job

thanks
[Galaxy S 4 i9505 Android Development] mirroalex:
Hi [MENTION=4272718]hawkerpaul[/MENTION],

This is my first time posting in your thread, My many thanks to you for your great application (scripts)

i have i9505 my recovery is philz latest (as of today)

i have following problem when i want to flash newest hawkercore v1.25 it gives me a message "Hawkercore NOT extracted" is there anyway to solve this?

Also i had GS4Hawkercore v1.14 before and i removed GS4hawker folder from both internal and external SD before flashing new one.
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Will be fixed in 1.26
[Galaxy S 4 i9505 Android Development] mirroalex:
WoW bro, you are FAST... this is the fastest response i ever got in anywhere... (even faster than calling :D ) ThAnK you.

is there any temporary solution for this? because it happens that i want to flash new firmware just now so i prepare everything...
[Galaxy S 4 i9505 Android Development] hawkerpaul:
You would need to edit the updater-script in the installer zip, and any of the zips you later want to use to look at /data/media/0 instead of /sdcard and also ensure the/data partition is mounted
[Galaxy S 4 i9505 Android Development] mirroalex:
I extract update-script of both hawkercorev1.25.zip and romnuke.zip(which is located in hawkercorev1.25.zip), opened it by notepad++ and replaced all /sdcard with /data/media/0 as you mentioned, installation went ok and no error codes appear but there is no scripts folder just jobs,options,logs no scripts, what am i doing wrong???
[Galaxy S 4 i9505 Android Development] hawkerpaul:
V1.26 (07/10/2014)

1. Compatibility with latest Philz Recovery

2. Wipe AEL kernel in CT_KernelWipe core task

3. Display tweaks
[Galaxy S 4 i9505 Android Development] radz_:
I can only flashed this zip once?

Im using philz, whenever i flashed a new ROM i always choose Clean Install New Rom, then this script will also deleted.. i have a zip backup whenever i flashed it again it says Aborted.. i have to redownload it again and flash..
[Galaxy S 4 i9505 Android Development] hawkerpaul:
You are probably wiping internal sd
[Galaxy S 4 i9505 Android Development] radz_:
Yes im wiping it.. so i need to flash your script back.. i have a back up of your zip. However when i do that its not flashing, i need to redownload your zip again and flash.. back ups dont flashed once the zip flash once.. weird..
[Galaxy S 4 i9505 Android Development] hawkerpaul:
1.26 should be fine if you flash it any number of times
[Galaxy S 4 i9505 Android Development] cdzo72:
You could just create a HawkerCore folder on your internal SD and extract all the files from the zip to that folder. That's what I did
[Galaxy S 4 i9505 Android Development] Giobio:
Sorry guys,

I'm searching the script to delete the core. The OP has 2 link and a bottom to download but all 3 are for the core download.

Can anybody, please, tell me where is the right link?

Thanks
[Galaxy S 4 i9505 Android Development] hawkerpaul:
Its included in the HawcerCore/Scripts folder
[Galaxy S 4 i9505 Android Development] Giobio:
Thanks Ian Rush&Ryan Giggs same-land mate for your job. ;)

I only used, until now, SDClean script and did a goog job. I ran clean master app and noted down data. Then ran the script and both Cache(12%) than Ram(10%) was cleaner (I ran again clean master and confirmed new data weight). When I will change rom I will use other ones.

Now I can even unistall clean master...
[Galaxy S 4 i9505 Android Development] leroy1985:
i had alot of problems with this, i follwed everything correctly, im on neatrom asop v8 and apolo v7.1 and i flashed the first file, but it created the folder in ettc, wich i understand in twrp is the sd, anyways i just copied the folder in the sd instead and tried to run the wipe kernal, wich didnt work, tried everything, allways wipe cache, hasd to reinstall rom

just want to know one thing, i did a factory wipe, will that remove the script? id like to try get a fresh as possible install, so want to remove all traces to start fresh, if i delete the folders it created will anyhting be left over?
[Galaxy S 4 i9505 Android Development] hawkerpaul:
What do you mean created a folder in ettc?

All the install creates is /sdcard/HawkerCore, and depending on how far any scripts have gone, possibly a HawkerCore folder on external sd card also