[SCRIPTS] [Updater-Scripts] EFS-backup, Clean_Wipes, Wifi Fix

Search This thread

artbybart

Senior Member
Feb 22, 2012
390
74
Miami, FL
2. Clean_Wipe: This contains multiple layers of delete of old systems files, data files, cache files, dalvik files and any other left overs from a previous ROM. Hopefully flashing this before you flash a ROM will wipe all traces of previous ROM to give you a clean slate. This will not erase your SDcard or microSD card.
DO NOT FLASH THIS unless you are ready to flash a ROM or have a ROM on your SDcard. If you tried to reboot without flashing a ROM, all you will see is a pretty bright white Samsung logo.
Ideally this will eliminate the need to jumping around in CWM trying to manually erase everything.


Thanks Q, you're a great help to the community. That clean wipe reminds me with Dark Side's Super Wipe for the Skyrocket!!

So, wipe data, wipe cache partition, wipe delvik cache, format data, format system, data & cache = Qkster's Clean Wipe?

Thanks man.
 

qkster

Retired Recognized Developer
Apr 5, 2011
3,276
4,422
USA
Thanks Q, you're a great help to the community. That clean wipe reminds me with Dark Side's Super Wipe for the Skyrocket!!

So, wipe data, wipe cache partition, wipe delvik cache, format data, format system, data & cache = Qkster's Clean Wipe?

Thanks man.

:)
Clean wipes..delete all old stuff. And another script to repeat just in case...I didnt format but I think it should suffice and saves time if you wantes to install new.
I just fot tired of doing the same thing in cwm..one time alnost format the sdcard..I figured a script would be safer...and saves the wear on the buttons.
Thnx, Arty.
 

tamelion1117

Senior Member
Oct 14, 2011
857
593
Nampa, ID
Thank you Qkster!

I will be flashing the new build of Zeus and will use the wipe script first.

Thank you for your hard work.
Sent from my Zeus v6 powered Infuse.. Can has Z-TR?
 

qkster

Retired Recognized Developer
Apr 5, 2011
3,276
4,422
USA
Thank you Qkster!

I will be flashing the new build of Zeus and will use the wipe script first.

Thank you for your hard work.
Sent from my Zeus v6 powered Infuse.. Can has Z-TR?

Any time. Gl.

edit: the simplest way for me to use the wipe script:
Have a folder on the SDCARD: /A A ROM (so when you are in cwm, flash from sd, this folder is on top - no need to toggle around)
Put wipe script and other ROMs or utils in it.
Rename wipe script to "A cwm wipe" or whatever..just so you know and it will be the first file in that folder
When you're ready to flash it, it is the first to show up...saves some time from toggling around)
 
Last edited:
  • Like
Reactions: tamelion1117

tamelion1117

Senior Member
Oct 14, 2011
857
593
Nampa, ID
I used the wipe script for the first time while I was test driving saurom. Didn't have any issues. The clean wipe was perfect. Thank you again Qkster!

Sent from my Zeus v.6 powered Infuse!
 

The_Zodiac

Senior Member
Aug 28, 2010
1,956
260
Unknown
:)
Clean wipes..delete all old stuff. And another script to repeat just in case...I didnt format but I think it should suffice and saves time if you wantes to install new.
I just fot tired of doing the same thing in cwm..one time alnost format the sdcard..I figured a script would be safer...and saves the wear on the buttons.
Thnx, Arty.

No joke my down volume button is getting weak from flashing constantly lol

Sent from my SAMSUNG-SGH-I997 using XDA
 

G_T

Member
Apr 7, 2011
42
14
San Diego, CA
Yes QKster THANKS! Used the wipe script three times today in flashing roms! Thank you so much for this and your hard work spread across this forum!

Sent from my SAMSUNG-SGH-I997 using xda premium
 

sexyallknight

Member
Jun 20, 2011
14
2
4. Wifi_Fix: After flashing some ROMs, some people have wifi issues. Dropping etc. I have suspected that it is due to left over from previous ROMs or problems with multiple writes during cache build. I'm not sure. I have not had this happened to me over some many attempts to borked it. I wrote this up as an attempt to delete the broken configuration and force a new file generation.
I tried it on mine and it does just that. However, not being broken before, I can't tell if if will fix your borked wifi connection. The current best fix is reseting your router or changing the DHCP time - which in essense, forces your phone to produce a new configuration. This may save you a walk to your router log in and changing the DHCP.
edit: (3/28/2012) This may not fix more long standing wifi issues some users are having. It may fix the log on/drop off scenario.

The wifi fix only kind of fixed my issues. For some reason my phone almost on the minute every minute will reset the wifi connection... before the fix it would cycle the process a hand full of times then eventually just show the wifi signal but not use it... if that makes sense (would show the bars but they would stay grayed out).

After I applied the fix it still resets every minute but appears to successfully reconnect every time.
 

qkster

Retired Recognized Developer
Apr 5, 2011
3,276
4,422
USA
The wifi fix only kind of fixed my issues. For some reason my phone almost on the minute every minute will reset the wifi connection... before the fix it would cycle the process a hand full of times then eventually just show the wifi signal but not use it... if that makes sense (would show the bars but they would stay grayed out).

After I applied the fix it still resets every minute but appears to successfully reconnect every time.

Thanks. I guess there is no harm in trying it again.
If not, you may need to wipe the phone with wipe script, and flash the rom again.
I had hoped the script would save someone the hassle of reflashing the whole rom.
the other tried and true method is to change the value of dchp on the router.
 

sexyallknight

Member
Jun 20, 2011
14
2
Thanks. I guess there is no harm in trying it again.
If not, you may need to wipe the phone with wipe script, and flash the rom again.
I had hoped the script would save someone the hassle of reflashing the whole rom.
the other tried and true method is to change the value of dchp on the router.

I have been debating on wiping and flashing but as an on call field tech my windows for being with out a phone are very limited. I did flash your script two more times last night and it didn't appear to help then. However, I did just get home and its been connected for over 10 minutes w/o a drop that I have noticed.

Only other things I can think that I changed was I had two identical APNs in an effort to try and get rid of one I did a reset to default which I now can't edit. I also turned on use wireless networks under location and security because I was getting a constant location doesn't exist error throughout the day. I guess maybe google just has to know where and what I am doing every minute and since this was off it would just kill my wifi so it could send the info over data?

Dunno if it would have had anything to do with it but I did spend a lot of time with the wifi on while working today. Analyzing wifi networks but not connecting to any.

I will be trying your script on another phone eventually. He says he has the drop problem on multiple networks. I really only connect mine at home not much anywhere else lately.

I have a DHCP reservation set up in the router for my phone. Do you think this could be an issue as it never expires? I did this a few days ago after the issue had been going on for a few days.

THANKS FOR ALL YOUR HELP!!!:D I hope this wasn't too much useless input.
 
  • Like
Reactions: xDa.Fun and qkster

qkster

Retired Recognized Developer
Apr 5, 2011
3,276
4,422
USA
I have been debating on wiping and flashing but as an on call field tech my windows for being with out a phone are very limited. I did flash your script two more times last night and it didn't appear to help then. However, I did just get home and its been connected for over 10 minutes w/o a drop that I have noticed.

Only other things I can think that I changed was I had two identical APNs in an effort to try and get rid of one I did a reset to default which I now can't edit. I also turned on use wireless networks under location and security because I was getting a constant location doesn't exist error throughout the day. I guess maybe google just has to know where and what I am doing every minute and since this was off it would just kill my wifi so it could send the info over data?

Dunno if it would have had anything to do with it but I did spend a lot of time with the wifi on while working today. Analyzing wifi networks but not connecting to any.

I will be trying your script on another phone eventually. He says he has the drop problem on multiple networks. I really only connect mine at home not much anywhere else lately.

I have a DHCP reservation set up in the router for my phone. Do you think this could be an issue as it never expires? I did this a few days ago after the issue had been going on for a few days.

THANKS FOR ALL YOUR HELP!!!:D I hope this wasn't too much useless input.

I don't think APN is an issue.
Many users have good luck with changing the dhcp value.
While that works, I still think that somewhere in the flash process, something doesn't quite work correctly.
Apparently my thoughts re: forcing a new file config generation has not quite hit the right target.
Back to the drawing board, I guess.

I thinking having wifi is a must. I suggest either changing dhcp or wipe, wipe, wipe and reflash the rom.
gl
 
  • Like
Reactions: xDa.Fun

keijhill

Member
Mar 29, 2010
12
1
bluetooth fix issue

I applied the Bluetooth fix on vagabond 3.5 works but now can't answer calls via Bluetooth have use Ph to answer and make calls using plantronics pro HD bluetooth.. gonna try reapply and fix permissions. Will let u know if that helps

Still same results
 
Last edited:
  • Like
Reactions: qkster

qkster

Retired Recognized Developer
Apr 5, 2011
3,276
4,422
USA
I applied the Bluetooth fix on vagabond 3.5 works but now can't answer calls via Bluetooth have use Ph to answer and make calls using plantronics pro HD bluetooth.. gonna try reapply and fix permissions. Will let u know if that helps

Still same results

Thanks for trying it.
I thought that by replacing all stock apps and setting the correct permissions will solve the BT issue on vb3.5.
Apparently it has not.
For very consistent working BT, flashing the stock kernel will have a stable working BT.
If you are using Entropy's kernel on vb3.5, occasionally after a long charge, the lidroid toggle becomes less responsive.
Usually a reboot fixes this problem.
Leaving the BT on at all times is also another work around while using entropy's kernel.
It may be a combination of kernel, rom and toggles or some sort of deep sleep on the phone that causes this problem.

fix: 1. try leaving bt on at all times. 2. reboot after a long charge if bt toggle is not working. 3. use stock kernel. 4. Use a different bt. 5. (sad for me to say) but use a different rom. :)
 

tfpHumorBlog

Senior Member
May 28, 2008
171
19
47
Chicago
ThoughtsFromParis.com
Thanks for trying it.
I thought that by replacing all stock apps and setting the correct permissions will solve the BT issue on vb3.5.
Apparently it has not.
For very consistent working BT, flashing the stock kernel will have a stable working BT.
If you are using Entropy's kernel on vb3.5, occasionally after a long charge, the lidroid toggle becomes less responsive.
Usually a reboot fixes this problem.
Leaving the BT on at all times is also another work around while using entropy's kernel.
It may be a combination of kernel, rom and toggles or some sort of deep sleep on the phone that causes this problem.

fix: 1. try leaving bt on at all times. 2. reboot after a long charge if bt toggle is not working. 3. use stock kernel. 4. Use a different bt. 5. (sad for me to say) but use a different rom. :)

Can't you just fix it for us? Jeez...

You fix everything else!

Ha. :)
 

xDa.Fun

Senior Member
Feb 1, 2012
599
793
Planet Earth
Is it possible to make a script which can do clean wipes and install the ROM's ZIP in one go. RoM & Clean wipes can be placed in same folder. (it will save our button)

or may be some thing like following can be made:

Clean wipes + Install for Vagabond.zip
Clean wipes+ Install for Aeon.zip

etc. etc. :D
 
Last edited:
  • Like
Reactions: bigfau

bigfau

Inactive Recognized Developer
Is it possible to make a script which can do clean wipes and install the ROM's ZIP in one go. RoM & Clean wipes can be placed in same folder. (it will save our button)

or may be some thing like following can be made:

Clean wipes + Install for Vagabond.zip
Clean wipes+ Install for Aeon.zip

etc. etc. :D

I think Emancipation has a script like that. Correct me if Im wrong.

Sent from my SAMSUNG-SGH-I717 using AEON Rom beta and Tapatalk 2
 

qkster

Retired Recognized Developer
Apr 5, 2011
3,276
4,422
USA
Is it possible to make a script which can do clean wipes and install the ROM's ZIP in one go. RoM & Clean wipes can be placed in same folder. (it will save our button)

or may be some thing like following can be made:

Clean wipes + Install for Vagabond.zip
Clean wipes+ Install for Aeon.zip

etc. etc. :D

Hi, Nits.

What are talking about is slightly more complicated.

In the edify (updater-script), there is an "install_zip" command.

This command will allow you to launch the rom or a zip you wanted in recovery.
However, it will depend on where you store the rom you want.

For example:
You may have Aeon in /sdcard/ROM or /sdcard/A ROM or /sdcard/bigfau/Aeon.
Another user may have it as /sdcard/My Flash Addiction/ etc
I'm not certain how to make this simple script locate the rom you want to launch it.

I can make it launch "update.zip" standard. But it will be up to you to copy and name the rom as "update.zip" on /sdcard/

I believe the "install_zip" was originally design to only launch "update.zip" in recovery.

That's why you will still need to nagivate the cwm to locate the rom you want.

Solution:
You can edit the cwm-wipe script and add a line at the bottom to:
install_zip("/sdcard/location of rom/rom name/");

Or you can make two version of the ROM you want. 1 without wipe and the other with wipe. You just need to incorporate the wipe script into the ROm's edify. And run each version as you see fit.
 

xDa.Fun

Senior Member
Feb 1, 2012
599
793
Planet Earth
Thanks Qk
I will be working on that customized scripts. It will be very handy to me. ( i am waiting to see touch support in cwm recovery ). :thumbup:

Sent from my SAMSUNG-SGH-I997 using XDA
 
  • Like
Reactions: qkster

Top Liked Posts

  • There are no posts matching your filters.
  • 118
    Hey Guys. (THESE HAVE ONLY BEEN TESTED BY ME ON GB 2.3.6)

    I have put together a collection of updater scripts for my own use. I think they will be helpful.

    They are a work in progress...I may need some more testers or feedback.

    I wasn't sure if these belonged in the Themes/apps or Q/A. I guess mod can move if appropriate.

    If more needs come up, I can try to fix or do something else.

    1. The EFS_Backup will back up your EFS into a tar file that can be restore via Odin, Heimdall or extract/copy/paste in the even you lose your EFS on a bad flash. It will be handy to have. I know it works because I tried it several times. You only need 1 or 2. It will make a file on your /SDCARD/EFS_BACKUP/

    2. Clean_Wipe: This contains multiple layers of delete of old systems files, data files, cache files, dalvik files and any other left overs from a previous ROM. Hopefully flashing this before you flash a ROM will wipe all traces of previous ROM to give you a clean slate. This will not erase your SDcard or microSD card.
    DO NOT FLASH THIS unless you are ready to flash a ROM or have a ROM on your SDcard. If you tried to reboot without flashing a ROM, all you will see is a pretty bright white Samsung logo.
    Ideally this will eliminate the need to jumping around in CWM trying to manually erase everything.

    3. Bluetooth_fix. Ideally this would restore the infuse BT function bases on UCLB3 files. Flash it. Fix permission and reboot. It seems to work for some but not others...I don't know why yet. This is tested on INFUSE NATIVE ROM only..I DONT BELIEVE THIS WILL WORK ON MIUI or CM7. I have no idea what that will do. If I get more understanding, I will make revisions if needed.

    4. Wifi_Fix: After flashing some ROMs, some people have wifi issues. Dropping etc. I have suspected that it is due to left over from previous ROMs or problems with multiple writes during cache build. I'm not sure. I have not had this happened to me over some many attempts to borked it. I wrote this up as an attempt to delete the broken configuration and force a new file generation.
    I tried it on mine and it does just that. However, not being broken before, I can't tell if if will fix your borked wifi connection. The current best fix is reseting your router or changing the DHCP time - which in essense, forces your phone to produce a new configuration. This may save you a walk to your router log in and changing the DHCP.
    edit: (3/28/2012) This may not fix more long standing wifi issues some users are having. It may fix the log on/drop off scenario.

    Again...my disclaimer is that this is for development purposes. I have tried them all...I can make no warranties on them or their safety on your phone.

    I hope you can find them useful.

    Feedback is welcome...good or bad...so I can learn some more.
    7
    Bro the wiper file....is the ****zzzz....thanks for the work, u de man! :D

    Love you man...no homo....!

    LOL

    :D

    Thanks, no homo Bro.

    lol..oldbbman, bigjoe..thanks for the supports..
    6
    CONGRATULATION my brother...on your RC...Recognized Contributor

    told you I would not stop til you got the title...you are more deserving of it than me...

    Qkster sir you are AWESOME!
    5
    So flashing the clean wipe completely eliminates the need to do wipe the cache (including Dalvik) AND the factory data reset? I think this will have a permanent place on my sd card!

    The wipe will delete cache, dalvik, data and system. Once you run the wipe script, it would be a clean slate and ready for a new ROM flash. No need for factory reset in cwm.
    This is different from the factory wipe in the ROM under Settings. That factory reset will wipe every trace including the sdcard.

    @brad..the wifi fix delete a config file in the gb. Idk if ics has the same file or location.
    5
    :D

    Thanks, no homo Bro.

    lol..oldbbman, bigjoe..thanks for the supports..

    qkster
    YOU do so much to help this community. Everyone on these forums should be slapping YOUR thanks button a couple if times each. :D

    Aeon the only way to rom!