yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] Leonick:
Thanks for testing that.

I've noticed files still in cache too actually (on my Galaxy Tab).

Not sure if it's due to the new market or us tampering with the cache, not that changing the cache should make any difference. Have you noticed it with default cache? (I haven't had my device for very long)

Guess that's one of the good things about the old script taking 18 sec to overwrite the cache when, it will be empty :p
[Galaxy S I9000 Android Development] anoneemooz:
I haven't tested the .zip you gave. I opened it up and noticed that the change cache file was in .txt format so I wasn't too sure if it was a mistake or what. Does it matter? Or should I erase the extension?

Yep even without messing with the cache, a lot of stuff fills up the cache even after install. Really annoying. I have to use a cache cleaning app everytime I download a particularly large app just so it doesn't get in the way.

I haven't checked or noticed if when the market exits the cache automatically clears out. I think I'll observe it now.
[Galaxy S I9000 Android Development] Leonick:
Good of you to spot that. Normally startup script should be without extension yes :p

I had the file saved as txt and forgot to remove the extension...

I fixed it and reuploaded the zip, check last post again.

As for the cache filling up, well I figure it clears at some point or I would have run in to problems with it more. I wonder why any files are left though, logically you'd have the market move the downloaded apk and change it's name, if you are going to bother with a small cache partition to begin with...
[Galaxy S I9000 Android Development] anoneemooz:
Alright then! just tried it now after some sleep. And my phone did boot up much faster now (back to normal boot time, barely 1 flash of the sgs boot anim, versus using the old scripit which took around 4 or 5)

but oops my cache size is back at 30ish (31.04 mb to be exact) lol
[Galaxy S I9000 Android Development] Leonick:
So that one was basically just a bag of hurt... Very hit and miss if it'll work due to the if clause... I guess it could be my zip failing too but I don't think so...

Well, lets go for the split script approach then...

Check the attached file.

In there is a folder with two scripts, one that prepares by creating the file used as cache and formats it (for you anoneemooz this should already be taken care of), and one that can be used to mount the cache.

There is also a flashable zip that will put the mounting script in /system/etc/init.d.

It's the same script, I just split it in two (like a few pages earlier).

This way it wont be taking time to recreate the flash on ever boot (takes 18 seconds on my tab) but just mount the file that was created by the prepare script.

This should also make it work for pretty much everyone as it's only using basic command (there is surely going to be some rom/kernel that makes it fail but still).
[Galaxy S I9000 Android Development] anoneemooz:
Still a no go I'm afraid. Boot up is fast but with no change to the /cache size. Checked the init.d folder and I see the script there so flash went fine. Am I right in deleting the cache script by corgar before flashing the one(s) you provided?
[Galaxy S I9000 Android Development] Leonick:
Doh, why didn't I think of that earlier... Well I am pretty sure this is it at least...

Run my prepare script.

You've only run corgars script right? He put the cache file in a different location than stratosk and I've been doing...

He put it in /dbdata/ while we used /data/local/ :p

So run my prepare script once from a terminal, remove the old cache file from /dbdata/ it does take some space after all, not that I think anything is using it.

And here I went and said you could ignore the prepare script as you already had the file, sorry about that ^^

And yes, you did right in removing the old scripts first, no need to have several scripts remounting /cache...
[Galaxy S I9000 Android Development] anoneemooz:
Oops! I mean I was using the CWM provided by stratosk in the first post. I haven't tried out corgar's. I didn't recheck the name of the thread starter lol

Anyway, I'll try out running the prepare script and stuff now.
[Galaxy S I9000 Android Development] Leonick:
The CWM zip in the OP was made by corgar so that's his modified script.

Let me know how it works out for you :)
[Galaxy S I9000 Android Development] anoneemooz:
Not working still unfortunately. I deleted the stuff you said I should delete and retried it. I see the cache.img file in the right place at /data/local as well as the mount_cache script in the init.d folder but the /cache folder itself is still at 30mb :o
[Galaxy S I9000 Android Development] Leonick:
What the... how is that possible...

Could you run the mount script from a terminal? Just to see if it's something with the script that goes wrong or if it simply doesn't work at startup...
[Galaxy S I9000 Android Development] darckengel:
Anybody want to test this pit file (it works on my phone).

I increased the cache size and reduced a little the dbdata partition.

(make a nandbackup before it will wipe your phone).

I had an error after flashing, but after reboot, i don't have any problems.

Thx to ykk_five to have explained how to mod the pit and for the sources.

I successfully installed and played battle bears lite.
[Galaxy S I9000 Android Development] anoneemooz:
After a fresh reinstall of my rom and kernel (trying new things) it's actually working now! Your method I mean.

I see the cache.img file of around 55mb or so at /data/local and I've been able to download large apps and all.

Weird thing is though it seems my /cache is uhh not being used?? lol When I check it with root explorer the partition size is no longer indicated :o it's just an empty folder.. and I don't see any download remnants in it.

Instead though I see download files in /data/cache/ lol I don't know if that folder was always there or what but yeah.

And even weirder is that aforementioned /data/cache/ folder doesn't have a partition size or anything. It's size is the same as the /data/ folder size O_O

It seems the script unmounted my original cache? I have no idea lol
[Galaxy S I9000 Android Development] iXNyNe:
this works perfect for me on my captivate using the 3.1.3 market (and 3.0.27).

rom: apex 9.2

kernel: talon 0.4.4.22
[Galaxy S I9000 Android Development] Kyuta Syuko:
Does this only work with I9000 bootloaders/partition table? I'm using I897 bootloaders and partition table on my Capy and when I get down to mounting the virtual cache I get a "mount: Device or resource busy" error.
[Galaxy S I9000 Android Development] Leonick:
Well the mounting of the cache takes place at the stage where the lockscreen first appears (or just before), it doesn't effect the partition table in any way so that's not the problem.

However, I do not know what the problem is, I've had such a problem once but a restart solved that. A few other people has also got that error but we haven't been able to figure out why, or well it is because something is using the /cache partition for whatever reason, only the market should be.

I have a Galaxy Tab, while it is similar in hardware the roms available are different so it makes testing for the Galaxy S hard. (I didn't do the original script)
[Galaxy S I9000 Android Development] iXNyNe:
I'm all i897 and its working for me.
[Galaxy S I9000 Android Development] kingird72:
Thank you very much....flashed through CWM and confirm now has Cache of 50MB, now I can download Third Blade that's at close to 49mb
[Galaxy S I9000 Android Development] Kyuta Syuko:
Anyone else try this?

This is exactly why I want the increased Cache size :P
[Galaxy S I9000 Android Development] haloimplant:
Hah I also wanted Third Blade when I ran into this problem. I fixed it by mounting a directory on sdcard as cache.

su

umount /cache

mkdir /sdcard/cache

busybox mount /sdcard/cache /cache

Need to repeat after a reboot but I reboot my phone maybe once a month once it is working well (which it is right now!).
[Galaxy S I9000 Android Development] networkdood:
I, too, was trying to download Third Blade. No luck with the fix yet, but I may be doing it incorrectly, or it may be an issue with not working with the BOOG kernel on FUSION V.
[Galaxy S I9000 Android Development] Kyuta Syuko:
You put the Cache directory elsewhere and it still worked? I'll have to try that!

*edit*

No matter where I try to put it I get the "mount: Device or resource busy" error...
[Galaxy S I9000 Android Development] iXNyNe:
With a little more investigation I found the fix I was using to not actually be working.

This handy app https://market.android.com/details?id=ru.krikun.freespace shows my cache still at 30mb, I did see the 54.4mb cache.img file, so it does get created, just doesn't seem to mount.

I'm still experimenting and will report back with results.
[Galaxy S I9000 Android Development] haloimplant:
Did you do 'busybox mount' for sure? I know it didn't work for me when I left out the busybox.

Oops I also notice I typo'd and put 'unmount' instead of 'umount' but I guess you figured that out. Just tried it again and it worked fine. 10G free space on cache should be enough to install apps, stupid market 3!
[Galaxy S I9000 Android Development] iXNyNe:
Just to verify, what are you using to confirm your cache is different than before? I am using the app mentioned above.
[Galaxy S I9000 Android Development] haloimplant:
df shows that the cache has the same free space as sdcard. I was able to install Third Blade , 49MB app. That app doesn't seem to recognize my cache (it just shows blanks) perhaps it doesn't like that it is a mounted folder rather than a partition.
[Galaxy S I9000 Android Development] iXNyNe:
So far I have modified the script and I have it running properly when I call it from script manager but I cannot get it to run from init.d

I believe it is a permission issue. When I run it from script manager I run it as root or it doesn't work. I think its not running as root from init.d or something.

*edit*

my progress;

the init.d file im using does create the cache.img but i cant get it to mount it no matter what i do

anyone else have any luck with this?

it does seem to sometime unmount the regular cache, but then i have no cache at all (or something i dont know, but it doesnt seem to show me having any cache)
[Galaxy S I9000 Android Development] iXNyNe:
OK try this

Rename to remove .txt extension, chmod to 777 and then reboot. Verify by running "df" command in terminal.

Or use this:

CWM flashable version

Anyone know if clearing cache at boot is a good/bad thing?
[Galaxy S I9000 Android Development] yobbei:
This works like a charm
[Galaxy S I9000 Android Development] networkdood:
I flashed the CWM version but this did not work. Do I do the chmod 777 in the script itself, which is towards the end, and then reboot?

Also, I notice I have a busybox in both /system/bin and /system/xbin, and I hope that it does not matter...
[Galaxy S I9000 Android Development] anoneemooz:
From what I learned, those 2 instances of busybox are linked to eachother. Even if you try deleting the one in /bin, it comes backs.

Corgar's cwm version linked in the first post works for me on my SGS i9000. I just comment out the create and convert parts after my cache.img is initially set up. This normalizes boot time instead of the extra few seconds used to create and convert something that had already been prepared before.

A check for the cache.img would be possible but I'm not familiar enough with this stuff to do so.

I prefer Corgar's version of using /dbdata as the location for the cache.img. Using /data/local variations of the script stops working for me after a while for some reason. And I prefer saving that 50+mb anyhow.
[Galaxy S I9000 Android Development] iXNyNe:
The one I posted does check for an existing file before creating one, and the size can be changed as well as the location.

Ill probably be attempting to make an app to handle all of this.
[Galaxy S I9000 Android Development] mar90:
how to get back to stock cache after flashing the CWM file? because now my phone shows that /cache is ext2,50mb free but i cannot download anything from the android market.keeps getting " <app name> cannot be downloaded due to error" ..
[Galaxy S I9000 Android Development] stratosk:
Remove the change_cache script from /system/etc/init.d directory and reboot.
[Galaxy S I9000 Android Development] mar90:
thank you very much! works again :D
[Galaxy S I9000 Android Development] Pilotxxx:
This should fix the problem for all with this market problem.

Just fixed some permission problem.
[Galaxy S I9000 Android Development] romdroid.:
Hellloo!

will this work with official 2.3.3 with CF-ROOT? also will anything be deleted from the phone? thanks!
[Galaxy S I9000 Android Development] stratosk:
Hello, nothing is deleted. You can revert back the changes deleting the script and reboot. It should work with cfroot.
[Galaxy S I9000 Android Development] mobidzid:
News for SGS users: the latest CyanogenMod Nightly (#172) makes the script here obsolete. I have just installed 42MB Atari Greatest Hits :)
[Galaxy S I9000 Android Development] romdroid.:
thank u very much:D
[Galaxy S I9000 Android Development] pesca:
Worked like a charm on my i9000T - UBJV6. Thanks!
[Galaxy S I9000 Android Development] burakgon:
What a clever guy.
[Galaxy S I9000 Android Development] JhonnyGo:
Great!!

Thank you very much guys!

Now I can install a lot more games!

:-)
[Galaxy S I9000 Android Development] MultiKoopa:
I'm trying to run the original script in the first post on an AT&T Captivate.

Rooted, without a custom ROM. Although I did do the official upgrade to 2.2.

So, running the script through a terminal absolutely will not work for me for some reason.

I tried running it through a script manager, and this is what I get as an error.

It says it cannot find the device "mount"

What exactly is the problem? Can you please help me? I really want to fix this cache problem...
[Galaxy S I9000 Android Development] iXNyNe:
one page back is a cwm flashable version that works on the captivate. Posted by pilotxxx. You will obviously need cwm available (probably through a kernel) and for that one to work your kernel will need to support init.d scripts. If you prefer to just run it through terminal or script manager they should both work as well, just unzip it.
[Galaxy S I9000 Android Development] MultiKoopa:
So there's no way to do it on an unmodified Captivate?

I'm rooted, but that's all I've done to it.
[Galaxy S I9000 Android Development] Ashtrix:
+1 yep, he's made a perfect tweak to fix the market issue =).
[Galaxy S I9000 Android Development] iXNyNe:
unfortunately not, root is the bare minimum needed to get this working through terminal or script manager

The init.d method requires a kernel that supports init.d, and 99% of those have clockwork recovery, so that's why its prepped as a cwm package.

Init.d will make the script run automatically at boot.
[Galaxy S I9000 Android Development] MultiKoopa:
but why won't the non-clockwork mod version work on my Captivate?
[Galaxy S I9000 Android Development] iXNyNe:
the one in the op isn't up to date

Extract the one from the cwm package and use it instead.
[Galaxy S I9000 Android Development] the1soulhunter:
I recently developed an application that lets you move the cache in a similar way (rather than moving it to /data/local/ moves it to /data/data/<app.package>/files/) , and also lets you move the cache to the system memory reserved for temporary files (RAM or SWAP), like ZTE Blade does.

His name is Cache Fixer, and you can find in the Android Market.

I hope you find it useful. It solves all my Android Market problems. (Must force close Android Market before move cache)

Tested on Google Nexus One and Samsung Galaxy S (i9000)
[Galaxy S I9000 Android Development] impactor:
This looks like a perfect solution, but it gives me Force Close error every time I open Play Store (Gingerbread).
[Legend Q&A, Help & Troubleshooting] madcat340:
Just wondering if I did a backup then installed a new Rom

To return to my old Rom can I just flash the nandroid backup? Just thinking of testing some Roms but I don't want to mess about setting stuff if I want to return to my old Rom

Lazy me I know :D

Sent from my HTC Legend
[Legend Q&A, Help & Troubleshooting] Asovse1:
Yes you can! But it's not called flashing, that's what you do to ROMs, it's called a restore. You can put it off as long as you can and it'll be there waiting for you when you need it most. :)
[Legend Q&A, Help & Troubleshooting] madcat340:
Thanks a bunch I might try a few Roms now then and see which I like the most thanks :)

Sent from my HTC Legend
[HTC Sensation] caliber177:
Just curious as to how many of you guys use one... and how your battery life is with or without it.

Was using Juice Defender Ultimate myself to disable 4G when screen is off... going to try to go without it for a few days to see how I do as well....
[HTC Sensation] caliber177:
Bump

Would really love to get some input.
[HTC Sensation] tacklebury87:
I use advanced task killer and battery monitor widget, also got a 1900 mA Anker battery which had helped ALOT!
[HD2 Android Q&A, Help & Troubleshooting and Genera] kreekhoorn:
Is it possible to flash to android, with a simlock.

Or is it possible to remove simlock, free? (i read something about hard spl?)

If it's possible, and i can just buy a vodafone simcard to make it work(it's a vodafone nl simlock) I would be pleased too.

Many thanks in advance!

Kreekhoorn
[HD2 Android Q&A, Help & Troubleshooting and Genera] samsamuel:
yes,simlock makes no difference

no,buy an unlock code online or ask the network operator it came from. Simlock is completely unconnected to roms and flashing and hspl.
[HD2 Android Q&A, Help & Troubleshooting and Genera] kreekhoorn:
Many Thanks!

So, (the simlock is vodafone) If I buy a vodafone simcard, and flash the hd2 to android, I can use him like all android users do :)

Another quick question, is it also possible to root?:)
[HD2 Android Q&A, Help & Troubleshooting and Genera] malybru:
Hi,

Most ROMS are already rooted.

:)
[XPERIA X10 Q&A, Help & Troubleshooting] costlyman:
Hello PPL

I want to create an app to change the CDI number by just selecting the region.

I am new to app creation

I will be really greatful if someone could direct me to right app creation tools.
[XPERIA X10 Q&A, Help & Troubleshooting] CescVicious:
Here you can find the Software Developers Kit for Android: http://developer.android.com/sdk/index.html

And follow this instructions for installing the SDK and setting up your PC: http://developer.android.com/sdk/installing.html
[XPERIA X10 Q&A, Help & Troubleshooting] costlyman:
Thank u very much

How do I start creating an app
[XPERIA X10 Q&A, Help & Troubleshooting] sabaramo:
Follow CesV's post above.

I can guarantee if you read what he suggested you will be on your way.

If not, then app dev isn't for you.
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] Beuzel:
I tried several wm7 roms on my htc hd2.

In all cases i could not establish a wifi-connection.

my phone doesn't see wifi-routers at all.

Please help
[EVO 4G Q&A, Help & Troubleshooting] twinsin:
Hi everyone,

So I just flashed Synergy RC2 over RC1 and everything is amazing...can't wait to try out the pano cam. I would have posted this questions in the thread in development but I don't have enough posts to do so.

I'm not sure if I had this in RC1, but I've flashed RC2 twice with a dalvik and cache only wipe and still had this problem.

In the dropdown on the quick settings tab (where you can toggle the wireless networks), all of them say FC for some reason, and if they're on...well, refer to the screenshot. It doesn't seem to interfere with connections, just kinda annoying that they say that. I'm guessing I need to clear data in an app, but I'm not sure which. If I'm way off base, please point me in the right direction.

Thanks!
[EVO 4G Q&A, Help & Troubleshooting] Watcher07:
That is strange. I'll say that I tend to come from the camp of full wipes before putting in a new ROM, not installing over an old one unless its specified that you can (even then I tend not to). My best recommendation for the least number of headaches for you would be to copy your SD to your comp, use amon_RA to wipe everything 3x, then flash the rc2 and enjoy the ROM.

If you really feel like trying to make it all play nice, try wiping dalvik and cache.
[EVO 4G Q&A, Help & Troubleshooting] dougjamal:
+1 with the exception of wiping the SD card. Being that he has already had success in flashing RC-2, a wipe of the card shouldn't be necessary, but like you, I'm a fan of full wipes...;)
[EVO 4G Q&A, Help & Troubleshooting] twinsin:
So what you guys are saying is:

- copy my entire SD card to my comp (i.e. go into E: and copy all contents to the desktop)

- amon_RA "wipe everything 3x." What wipes am I doing specifically (data/cache/dalvik/system/etc.) and what does everything mean? SD card and...?

- put everything back from the comp onto the SD card and reflash

Please correct me on anything I got wrong as I want to make sure I don't brick my phone.

Also, this may be a noob question but whenever I flash a new ROM, I do a Titanium Backup of app data, flash, and restore the app data. Yes, this restores my apps but is there a way to make it so I don't have to redo my home screens with the widget locations and apps I had on there prior to flashing? It's getting annoying having to do this every time I flash.

Thanks in advance.
[EVO 4G Q&A, Help & Troubleshooting] Watcher07:
No worries. To answer your questions.

1) Yeah, copy your entire sd card to your computer. Any flashaholic will tell you that cards can go bad and that when flashing, things can go wrong so its very helpful to have all your photos and whatnot saved on your computer regularly.

2) Wipe everything on the list that can be wiped. As DJ said though, wiping the card isn't always a necessity, I simply do it because I love a good, solid clean start when going from say an AOSP rom to a Sense based one.

3) Usually I keep all my data and personal stuff in the cloud so I tend not to do alot of sd backups and restores. Every photo I take is regularly uploaded to picasa, my contacts come from gmail, all my emails are server hosted by gmail, documents are in google docs, you get the idea. So when I come into a new rom, I just download the apps I need and everything populates as I need it to. However if you have alot of photos or music and such, find it on the card backup on your comp and just copy that stuff back. Dont forget your nandroid backup as well.

4) As I'm not big into restoring and more into clean starts, I don't tend to use titanium backup for anything, so that question might be better geared for someone else to answer, but I think one of the big points of the program is to actually try to restore everything to the way it was, so I would imagine that it is a feature of the program, but again, really not sure.

As for bricking your phone, experience and observation of thread upon thread of people worrying about having bricked their phone has shown that for the most part, your EVO is a pretty damn durable beast. Really the ways to brick it are few and far between (dont pull the battery when updating radios and such). For the most part, anything you screw up can be undone. When I was first learning how to root and all that, I saw all sorts of threads and ideas and how to's that lead me down SO MANY wrong paths. I thought I bricked it like 5 or 6 times, but it just turned out I had pressed a wrong button on boot up, didn't flash the right recovery, didnt wipe something enough times, etc. etc.

These forums have alot of great people on them, if you think you borked your phone, dont do anything to it, toss up a message and a description of what happened, and you should get some decent responses pretty quick. Good luck with your rom flashing.
[EVO 4G Q&A, Help & Troubleshooting] twinsin:
You're so helpful Watcher, I thanked you twice :)

Anyways, I forgot to mention I've had a couple of random power offs since installing Synergy so it's probably a good idea I go all-out on my wiping anyways.

I'll report back with results later today when I get around to reflashing.