yashsingh1/xdaforums huggingface dataset:
[Samsung Infuse 4G] qkster:
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.
[Samsung Infuse 4G] ppalbicke:
I like the practicality this has.

Sent from an Emancipated Infuse bleeding Orange
[Samsung Infuse 4G] qkster:
thanks, ppal.

Can you theme these for me? :)
[Samsung Infuse 4G] deathblade:
I'm really looking at regularly using the wipe, sound every handy and just what alot of people need to make away issues, nice job

just used it, works like a charm thank you for your excellent work :)
[Samsung Infuse 4G] qkster:
Thanks..one more confirmed working.

The idea I had in the wipe script is that sometimes a complete wipe is not needed. One may want to save some data. In vagabond, I had put in complete wipes to ensure first time installation success... that got tedious after frequent set ups when I was testing. If I set up another build, no wipe will be in the ROM. The end user can decide. I thought this would be useful for others as well switching between ROMs without the hassle of navigating in cwm.
[Samsung Infuse 4G] jason4962:
thanks qkster

the Clean Wipe is it just a faster way to wipe data/wipe cache/wipe dalvik? is it better then going odin or Heimdall?
[Samsung Infuse 4G] qkster:
It's faster than trying to jump around in cwm wiping everything. It will ensure a 99% clean..I'm leaving the last 1% for the idk moment. For most instances, it will suffice.

I use Heimdall or Odin only when I need to fix a boot loop, system file error, partition corruption or if I thought the problem came from using a froyo base with a gb rom.
[Samsung Infuse 4G] Bronk93:
I really like this idea. The wipe file is genius.
[Samsung Infuse 4G] teknhard:
Man you are always coming up with the most helpful posts. Thanks bro
[Samsung Infuse 4G] qkster:
mp guys...I figured if I used 'em enough, someone else has to.

if you found a prob, lmk

enjoy...
[Samsung Infuse 4G] oldbbman:
Excellant! Thanks for sharing much appreciated :cool:

Aeon the only way to rom!
[Samsung Infuse 4G] Clark Joseph Kent:
Bro the wiper file....is the ****zzzz....thanks for the work, u de man! :D

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

LOL
[Samsung Infuse 4G] qkster:
:D

Thanks, no homo Bro.

lol..oldbbman, bigjoe..thanks for the supports..
[Samsung Infuse 4G] oldbbman:
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!
[Samsung Infuse 4G] Catchpen:
Ohhh goodies!!! :D:):D;)
[Samsung Infuse 4G] Erik_T:
I love you. HOMO INTENDED. :D

Nice work qkster.
[Samsung Infuse 4G] Clark Joseph Kent:
:confused::rolleyes::confused::rolleyes::confused::confused::confused::confused:
[Samsung Infuse 4G] qkster:
lol..thanks, Erik. Just for you, elbow bump, fist bump, high five or low five..but no hugs unless I see your hands at all times. :D
[Samsung Infuse 4G] Clark Joseph Kent:
Just don't make eye contact....and it's cool...:eek::D

Just tested your wiper cwm file...nice...I be wip'n...:p it wipes, it cleans...
[Samsung Infuse 4G] Clark Joseph Kent:
The cwm wiper...it's the sham wow for the Infuse...thx qkster! :D
[Samsung Infuse 4G] oldbbman:
"You getting this camera guy? "

:o

Aeon the only way to rom!
[Samsung Infuse 4G] xDa.Fun:
Clean wipes worked for me after stucking in bootloop due to bad flashing. Thanks Qk it is 100% working script.
[Samsung Infuse 4G] teknhard:
Same here. Wipes script fixed it up nicely. Great script
[Samsung Infuse 4G] qkster:
thanks, guys.

I'm glad it works like it's suppose to. :)
[Samsung Infuse 4G] kalebdevil:
Hi qkster, can i use the wipe scrip and then flash any rom what i like???? Just go to recovery and flash this scrip like normal on cwm ????
[Samsung Infuse 4G] qkster:
ypu..flash..it will wipe old rom...just make sure u have new rom ready
[Samsung Infuse 4G] kalebdevil:
Thanks qkster will flash your vagabond 3.3 tomorrow....
[Samsung Infuse 4G] Clark Joseph Kent:
Works great from what I can tell...used it 3 times already... :D

Thx qkster!
[Samsung Infuse 4G] blaker13:
Wifi did not fix problem on my girls infuse, but setting to static IP fix it, seems all the roms in the development section screw her wifi....hmmmm
[Samsung Infuse 4G] qkster:
I need to know a few things.

re: router do you have it on hidden or just simple encrypted? Does other device connect w.o probs?

Do you have a second infuse to compare at the same time for broken connection?

When you are on a custom ROM, can you connect to public wifi?

If you run stock gb, will it connect?

I'll needed some more info so i can isolate the issue.
[Samsung Infuse 4G] Clark Joseph Kent:
Dovetailing off of Qkster comments...are all your wireless devices require a static ip? A reset of the modem and routers I have found helps...I run 5 diff devices wireless phone/tab and find a reset of my routers helps....
[Samsung Infuse 4G] qkster:
thanks, joe.

that was what i was trying to figure out...there wasnt enough info.

the quick wifi fix was design only for the wifi pickup and drop off i noted some people were having.

blaker's issue seems to be more involved..more to do with his s.o's setup
[Samsung Infuse 4G] Clark Joseph Kent:
Yes sir...

Just seems odd that he has to setup an static ip...fixed..

Thx
[Samsung Infuse 4G] anmaymap:
First of, thanks for the wipe, it works great and as you stated, saved me time to move around CWM to do all of them. I can relate to the issue mentioned. have an issue with an Infuse's wifi. I believe this was all started after I rooted and installed a few ROM, please don't ask which since I pretty much tried them all. My issue is that Wifi would showed a really low/poor connection standing about 10 feet away from the router. all other devices, including a stock/non-rooted Infuse, showed great signal strength through out my house and even down the basement, where this rooted phone would just die when attempt to do anything network related. I had tried doing everything, even went back to stock, and nothing helps. one weird thing about this issue, and it was mentioned above, if I use the advance setting and set static IP address, the connection would last, eventhough it would still show poor strength compare to other devices. this is bugging me greatly and anything information you need trying to figure this out, please let me know. thanks again.
[Samsung Infuse 4G] qkster:
It's kinda odd that you would get a somewhat decent signal with stock, unrooted. I don't think this has any bearing on the wifi though.

Most of the custom ROM usually don't change the wifi in anyway.

It's the same config file.

The significant difference between custom rom and pure stock rom are:

1. Custom is deodexed. Many are built off a base deodex ...in this case, dman has done most to all of the recent leaks for us. The ports from Captivate are prob due by their dev's. Try a port to see if the prob exist for you as well.

2. Most custom rom runs on file voodoo lagfix by supercurio -ext4 instead on rfs stock. You can run a custom kernel with lagfix off to see it the prob persists. You can also run a stock kernel on your custom rom to see if wifi prob persists.

3. However, the puzzling situation is why is your phone in the minority. Most of our phone don't have these issues.

One corrective measure, if you haven't done so, or want to try:

take out microsd card. copy what you want off the sdcard. factory reset from in the current rom. flash the heimdall one click...this will give your bootloaders.

flash the custom kernel to get recovery. use wipe script. flash the rom.

wait 10 minutes before set up. then set up...(with wifi on any mode) see if that connects. that's the only thing i can think off which may make a difference.

last option..maybe hardware..trade your phone in for another..
[Samsung Infuse 4G] qkster:
On another note regarding the wifi_fix:

Did anyone have any wifi issues like dropping wifi, using the fix and found it working?

tia
[Samsung Infuse 4G] The_Zodiac:
edit made a mistake
[Samsung Infuse 4G] RoryB:
Me. The night before last the WiFi could not stay connected. Rebooted and it worked. BT also acted up yesterday.

So, I flashed both BT and WiFi fixes. Both have been working. Final test will be later this morning when I leave for work. It will have been on the charger all night.
[Samsung Infuse 4G] noy-z:
I've always had a problem with my wifi dropping. When I was on CM7, I would lose connection for at least 10 secs or more throughout the day. Highly annoying. But then I found the 1 APN fix and it essentially nixed my problem. Moved on over to our Samsung based ROMs and I kept having the same problem, although it would be quicker to connect. Still, it seemed as if I lost connection even more often throughout the day and the 1 APN trick didn't work this time.

I finally took your advice and took a look at my router's DHCP lease time. I had no idea what the hell this was. Googling all over the web, I ended up in my router's settings and lo and behold, the lease time was set to 3600 secs which is equivalent to 1 hour. It did seem that I would lose connection about every hour if I was playing with my phone for an extensive period.

Just something to really consider because my gf's iPhone also had the same problem. She's less knowledgeable about tech so she didn't realize she was using data a lot of the time at home which caused her to go over. This seems to have fixed her problem as well. Thanks qkster for the suggestion!
[Samsung Infuse 4G] RoryB:
Last night WiFi and BT worked fine. This morning WiFi was working.

New problem: When I turned off WiFi I could not get data. I pressed data toggle and nothing happened. Tried flight mode, still nothing. Tried several times through toggles and settings. Had to reboot the phone. Data worked. WiFi worked. Turned it off and started BT. It went green and then turned off. I tried again and it stayed on.

About 50 minutes since unplugged. Very little WiFi and about 30 minutes BT. Battery is down to 88%.
[Samsung Infuse 4G] artbybart:
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.
[Samsung Infuse 4G] qkster:
:)

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.
[Samsung Infuse 4G] tamelion1117:
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?
[Samsung Infuse 4G] qkster:
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)
[Samsung Infuse 4G] tamelion1117:
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!
[Samsung Infuse 4G] The_Zodiac:
No joke my down volume button is getting weak from flashing constantly lol
[Samsung Infuse 4G] G_T:
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!
[Samsung Infuse 4G] sexyallknight:
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.
[Samsung Infuse 4G] tuto3324:
thanks man! i've been looking for something like this for a looong time, it will be very useful :D
[Samsung Infuse 4G] qkster:
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.
[Samsung Infuse 4G] sexyallknight:
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.
[Samsung Infuse 4G] qkster:
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
[Samsung Infuse 4G] keijhill:
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
[Samsung Infuse 4G] qkster:
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. :)
[Samsung Infuse 4G] tfpHumorBlog:
Can't you just fix it for us? Jeez...

You fix everything else!

Ha. :)
[Samsung Infuse 4G] xDa.Fun:
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
[Samsung Infuse 4G] bigfau:
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
[Samsung Infuse 4G] xDa.Fun:
I have to check it then, (if i can find) :D
[Samsung Infuse 4G] qkster:
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.
[Samsung Infuse 4G] xDa.Fun:
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:
[Samsung Infuse 4G] diablo009:
Thanks a bunch for the life saver qkster!!!
[Samsung Infuse 4G] cmoRe-_-:
Thanks for the clean wipe.. very handy
[Samsung Infuse 4G] Deputy13:
All of these worked great for me! Just used blue tooth and it fixed me right up
[Samsung Infuse 4G] theandrewmillett:
Thanks, qkster! I flashed AEON v1.3.1, and BT wasn't even toggling on. Used the BT fix, and it worked like a charm! :D
[Samsung Infuse 4G] qkster:
You're welcome, but I don't think I had much to do with it. I've found the lidroid toggles sometime don't work with uclb3 as well. Usually a reboot brings it back. That's goes for the data, wifi and bt toggle. Keep and eye out for that behavior.

Sometimes a reboot is needed ti get the one you want to respond.
[Samsung Infuse 4G] Clark Joseph Kent:
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!
[Samsung Infuse 4G] Zen Arcade:
+1 - way to go qk!
[Samsung Infuse 4G] RoryB:
Congratulations Q
[Samsung Infuse 4G] bradman117:
Will the wifi fix work on ICS roms?
[Samsung Infuse 4G] theandrewmillett:
I should have added that it wouldn't switch on from the settings menu, either. So, yes, your fix did the trick. :thumbup:

Send from my Aeon'd Infuse with xda
[Samsung Infuse 4G] oldbbman:
You are AWESOME qkster! No doubt about it.

peeps

If you haven't already slap Q's thanks button. Show some love. No homo!
[Samsung Infuse 4G] diablo009:
Hi R.C Qk!!! Congrats mate!!!
[Samsung Infuse 4G] JordanO81:
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!
[Samsung Infuse 4G] iTchill:
Qkster you are a god !!! That clean wipe zip is amazing ..i started to have problem 2 days ago ...very bad flash left me with some app from a previous rom ,no status bar ,even odin to stock did not work at the time ...real life saver you are tanks a million !!!
[Samsung Infuse 4G] qkster:
I'm not sure
[Samsung Infuse 4G] qkster:
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.
[Samsung Infuse 4G] isaiahe97:
The efs back up didn't make a folder or back up will retry in a bit
[Samsung Infuse 4G] qkster:
if you run it, make sure you run it in cwm.

run it before you wipe anything.

if you wipe all systems, it will not work.

The other better tool to use is Zen's Tool Kit.

That will also have options to back up your efs.

http://xdaforums.com/showthread.php?t=1702026
[Samsung Infuse 4G] isaiahe97:
Tried both still no backup:(
[Samsung Infuse 4G] qkster:
If you are on ICS or JB, I'm not sure if the partition is different.

Zen tool kit should have given you a efs back up.

If not, and you still want one, use root explorer or similar.

navigate to /system/etc/efs - long press the efs folder, and you should get an option to make a tar or just copy the folder into your sd card.

just to be clear..if you are on ics..did you check the /mnt folder?

it is possible the scripts tried to copy into sdcard and ics uses /mnt
[Samsung Infuse 4G] isaiahe97:
I'll check and thanks I am on pics should've said that

Edit - retried toolkit it worked thanks for the help qkster.

Sent from my AOKP'd Infuse 4G
[Samsung Infuse 4G] Digital_Biped:
This is excellent man, thanks for the effort!