yashsingh1/xdaforums huggingface dataset:
[HTC One V] ElevateMusic:
I went through your steps provided. And with the completely empty SD card the rom ran 100% smooth, as it should. Only once I started to restore the files did the device slow down again. I think my sd card is too slow for the media scanner.. Does anyone have any tips on speeding up this card or fixing this problem?

-Marcus
[HTC One V] sohamssd:
Ok that's it then! Its something gone wrong with your SD card.. Or one of the files in it..Just buy a new one..

Which one you have now?
[HTC One V] mihirengg19:
Try a class 6 or above sd which has a much greater r/w speed.there was just a recent case here in One v Q&A

wehre the shift from 32gb to 16gb sd made the OP's phone back to normal.
[HTC One V] lars1216:
I tried it aswell same result as scruffy. But my sd card is class 10 so don't think its because of the slow sd card. And before I had a warranty repair it did work with the same sd card and same files.
[HTC One V] sohamssd:
Well, can you try a different SD card? The problem seems to be in it.
[HTC One V] lars1216:
I tried all 3 sd cards I have access too (a 4gb one, a 16gb one and a 32gb one) and they all have the problem :(
[HTC One V] ElevateMusic:
I haven't tried any SD cards other than my 32Gig tbh. That's the only one I have now.
[HTC One V] sohamssd:
Try not restoring your files... If your one v lasts a day, report. If it doesn't, well, we'll get to that late:)
[HTC One V] lars1216:
like soham suggested i made a logcat. so here it is, hopefully someone can work with that :) would really like to fix this problem :)
[HTC One V] sohamssd:
All right even though I am not a "dev" I tried to read your logcat, and all I could see was each app was force closed after 20s or so and there were thousands of permission problems.. I maybe totally wrong, like, all of this may even be normal behavior. :(

But dude, try one thing. Flash the rom, boot in recovery, advanced > fix permissions. Let it complete, and hope to God it works out.

Also, scruffy- put something like [devs- please read this] out in the title so they see this issue, and they may help you two better than me.

Just try the above solution, lars, and report.
[HTC One V] lars1216:
didnt work :( fixed the permissions but the problem is still there.

Sent from my Samsung Omnia W using internet explorer :P
[HTC One V] sohamssd:
FUK

Damn!! I really believed we got it this time:(:mad::banghead:

Now what? Have you tried not putting the SD card in? It worked for scruffy.
[HTC One V] lars1216:
after rebooting after doing the permissions thing I did another reboot, it looks like its working for now. Will report back tonight after testing during the day :)
[HTC One V] sohamssd:
Omg :fingers-crossed-

Its been 2 hours now. how's it doing?
[HTC One V] 1ceb0x:
i think lars is dead.

"Captain! We have a man overboard here!"
[HTC One V] sohamssd:
Haha! So you're in your "funny mood" today ice xD

You read his log? The only thing that was written there was this gas force stopped and that had force stopped.
[HTC One V] lars1216:
So far its still running. Will reboot again when I'm home to see if it will still work after. Hopefully it does :) :fingers crossed:
[HTC One V] sohamssd:
If it works, just remember it was me, and when they call out on my death they should say, " he found out the solution to lars' problems! xD jk:p

(Damn ice your mood is infectious);):p

On a side note, Lars, what apps show up under settings apps running?
[HTC One V] lars1216:
At the moment. Poweramp, stock contacts app, stock SMS app, settings, DSP manager, Google services, and android keyboard. And around 150mb free ram with those apps at this moment. Getting of the train now, will report after a reboot in like 2 hours (gotta cycle home first)

Edit: after a reboot the problem was back. It isn't there without an sd card but as soon as the sd card is mounted ram is stuck at full usage. Hopefully ice or another dev can find the problem in the logcat. I think the problem is in the mediascanner but have no idea how to solve it.
[HTC One V] lars1216:
so i found out the problem is in the sd card (most likely the media scanner cause as soon as that shows up in settings the ram fills up quickly)

the problem is only there if there is a sd card inserted and mounted (its also there if the sd card is completely empty so the problem isnt with a file on the card itself) logcat is in one of the posts above but like soham said, mostly alot of force closes (probally because there is no ram available) but maybe a dev can get something from that :) this is all that i could find out with my knowledge hope it helps for finding the solution :)

thanks in advance and for your help so far everyone :)
[HTC One V] sohamssd:
But why was it working after fixing the permissions and rebooting once? Y u no wonder that way?
[HTC One V] lars1216:
thats a good question indeed. but i tried it again (reflashing and fixing permissions again) and that didnt work. maybe i was just lucky? :confused:

and yes i do have one weird phone :P as soon as i stop the service: MediaSscannerService it works. but than the sd card isnt recognized anymore.
[HTC One V] sohamssd:
No everything has a reason... What's causing the SD card not being read correctly???:confused::confused:
[HTC One V] lars1216:
thats the million dollar question isnt it? :p i do know it isnt the card since i tried 3 different ones.
[HTC One V] milzaaam:
seriously guys, :banghead:

i've tried googled your problem.. and there no specific result. but if i were you. like soham said. mounted the phone as usb storage without sdcard, and format the phone with sdcard formatter app on pc, and then format the sdcard separately with sdcard formatter too. and just restore some data or folder like picts, musics or videos from previous backup. dont restore all folder. lets the phone rewrite it again from beginning. then flash new kernel and lastest cm10 based rom. :)

if that problem still appear, buy new class 10 sdcard sandisk or transcend, maybe? :confused:
[HTC One V] lars1216:
Dude we already tried switching SD cards and formatting everything. Please read the thread before commenting. Would really appreciate that.

Sent from my GT-I8350 using Board Express
[HTC One V] sohamssd:
Relax he's trying to help

Have you tried ruu and then flash? Who knows, it might help:confused:
[HTC One V] lars1216:
Milzaam, sorry I reacted this way, just getting really annoyed by this and I am in a pretty stressfull situation in real life. Which ofcourse isn't an excuse so id like to offer you my apologies and hope you accept it :)

Soham, yea already tried that as well :(

Sent from my GT-I8350 using Board Express
[HTC One V] ddrahos:
Solution

Okay I just read 8 pages of forum at once, so pardon me if I missed something. I'm using my One V with CM9 and the newest hellboy kernel. I have surface dithering on, Kernel samepage merging on, zRAM off and my CPU at 1024 mhz and at conservative.

I had this problem occur back in September and struggled with it for a while. I tracked the problem like you guys did down to the SD card and specifically the media scanner. All my issues went away with taking out the SD card. Here's my temporary solution that I've been using for a couple of months.

Create a .nomedia file by renaming a blank text file, copy it and place the copies in every subdirectory of your SD card that doesn't have media in it. Alternatively if you don't use your SD card for any media you can put the .nomedia file in the SD card root and the problem is solved, but I like using my phone as a MP3 player.

Run the system normally and ensure all your Music/Movies/Pictures are loading into the appropriate app. If you're having trouble clear the app's caches and storage and start from scratch. I use Google Play Music and know Apollo works.

Download Startup Manager (Free) from the Play Store, this was the best app I found to edit startup operations. Give it root permissions and disable Media Storage in the System tab. I also disabled a bunch of other stuff like Exchange Services and the default Email app since I use Gmail. Also you might wanna disable Show System Boot Time in the app's settings and Startup Manager (free) from starting on boot, it's not the greatest app but it was free and got the job done. I would also disable the app "Album Art Grabber" if you have it.

Reboot the device and you should have approx. 125 mb free ram while idling. I know Nova launcher and my hacked in Google Now are reducing my free ram, so vanilla systems will do better.

Now it's sorta tricky to add more media, you have to reenable Media Storage, reboot to let the system rescan, and then disable Media Storage again and reboot. I tried some apps that allowed a manual media rescan but I couldn't get them to work reliably, someone else can try it.

I know this is a pretty sketchy work around and not a long term solution but this problem is devastating. I'm glad to have free RAM and my 29 Gb of music on my phone. I'm sorry I didn't see this thread weeks ago, I could've helped sooner.

I'll try to answer questions. My personal opinion is that the issue stems from broken hardware on my One V or the fact that my SD card is super cheap, it's a 32 GB Patriot Class 10 MicroSD and I got it for $20, so not the best quality I suspect.
[HTC One V] lars1216:
Thanks alot for the suggestion. That's new to me so will try that tomorrow (pretty tired at the moment :p) and report back. Hopefully it works :)

Sent from my GT-I8350 using Board Express

edit/update: This works :) so got it up and running now. It makes switching ROMs a pain in the ass, so like you said its a sketchy work around but it works even after a few reboots so I'm happy. Your the best!!!!!!! I do keep hoping a dev could find a real fix so would appreciate it if this could be left open a little bit longer, but I got my hov up and running again :D you guys are the best :thumbup: :beer:
[HTC One V] 1ceb0x:
Media storage you say? :-?
[HTC One V] lars1216:
Yeah. It has to do with the mediascannerservice. I posted a logcat on the page before this one. :)

Sent from my GT-I8350 using Board Express
[HTC One V] 1ceb0x:
*DELETED* (didn't completely understand the patch) - found the issue few pages forward
[HTC One V] lars1216:
thanks alot man :), let me know. This does make me wonder, why do we have problems with this patch and others dont?
[HTC One V] 1ceb0x:
in order to have an answer is to ask you some questions;

what kind of sdcard do you have? (larger one? 32gb?)

do you have numerous files on your card?

do you have cwm recovery? (backups also?)

seems that this issue is present on numerous devices, not on our phone specifically, it happens even on nexus phones that are running cm10 and it has to do with those sdcards that are enormous with huge amount of files on it. i personally have a 4gb sdcard on my hov and the mediascanner service runs for 10 seconds tops. a quick search on google with keycodes "improve Media Storage scan" will give you the answer.
[HTC One V] lars1216:
first question: yup 16gb.

second question: yes.

third question: yes, 2 backups at the moment (1 suprimo 1 cm10)

i do have a 4gb card aswell though, tried that and still had the problem (3,5gb of the 3,96gb was used on that card)

but by the sounds of it, removing that patch should indeed solve it, hope so :) if it does, is there anyway i can change it myself? or do i have to build the rom all over again to remove that patch?
[HTC One V] 1ceb0x:
the media scanner is an app (actually it is called media storage) and if I remove the patch, you can swap that app in any jb rom and that should solve the problem, hopefully.

interesting thing: i just disabled my media storage, rebooted my phone, then re-enabled it, rebooted my phone and now after I look at the battery - Media has eaten 2%. Furthermore, looking up for this information it seems that all the media apps (drm content, media storage, download manager - but i guess only media storage) have kept my cpu awake for 16 minutes - this means that the battery is draining super fast after you fully recharge your phone, at least for first few minutes.
[HTC One V] lars1216:
Alrighty :) well take your time and just let me know when the rom is ready for me to flash :)

Sent from my GT-I8350 using Board Express
[HTC One V] ddrahos:
32 GB SD card - Check and like I said not a particularly good one

25 GB of Music - Check, 4216 files...

Recoveries - I have my recovery folder commented out with .nomedia files, so those large files shouldn't be disrupting the media scanner

I think this problem is exaggerated by the fact the One V has so little RAM for an Android 4.x device, it uses ALL the RAM. A complete media scan on some high end phones/tablets I suspect wouldn't be noticeable.

---------- Post added at 01:48 PM ---------- Previous post was at 01:43 PM ----------

That may be a better solution, as great as it would be to get it removed in the ROM it's easier to have the separate app reverted so it can be applied to any ROM. Unless every One V ROM gets the patch or Cyangenmod decides to revert back to caching.
[HTC One V] 1ceb0x:
You can't remove it unfortunately :). If you remove it, the phone will not recognize your media files.
[HTC One V] sohamssd:
My god, you're a genius Dragos! You actually found out their issue in a matter of time.:) Hats off to you.

Soo even I like you I found media scanner does eat a lot of battery. Mine was almost 5%. Lets see you rolling out the patch soon.

But just one question, don't even gingerbread ROMs scan the whole media every time the ROM is rebooted?:confused:
[HTC One V] ddrahos:
Sorry I mean remove the patch causing the issue to the Media Scanner app, not the app itself. Better to be able to swap out the app then have it tied to a specific ROM, its too demanding to expect every developer to fix this for a small group of people.
[HTC One V] lars1216:
yeah he totally did a way better job than you did :p you suck! :p

nah just kidding, love you man, you really took alot of time trying to help me, and i do appreciate it alot :highfive:

as for the gingerbread thing, ill check my tablet if you want? thats (unfortunetly) still stuck on CM7 :(
[HTC One V] 1ceb0x:
ok guys..

got deep into the issue - this behaviour is patched in AOSP 4.2 and CM team backported it to 4.0, 4.1 and 4.2.

Thing is - The MediaScanner process is responsible for building a database of all the files in your internal and external storage - why it was done this? because of that NFC thing, google released last year or so.. If your files (jpg, mp3, video, txt, whatever. any kind of file) contains % or _ - time to build that index, is greatly increased and your battery will drain faster - your cpu and ram will hog longer.

Sadly, there is nothing we can patch in our roms anymore - everything is done BUT you can do the following things;

Take every file from your sdcard and also search on your internal card, that has % or _ in their names - mainly jpg files have "_". my folder of 4000+ icons surely have a lot of "_" in file names. RENAME THEM without putting "%" or "_" in their name.

That's the 'fix' for the moment

But you need to do the followings:

It's good in general to be under linux when you do these because linux has the ability to see the .name folders (usually hidden under windows):

take everything from your sdcard down

rename every file you intend to put back up

FORMAT YOUR SDCARD

don't transfer anything yet.

search for a method in order to reach the internal storage of your phone (i think linux can do that too)

search for files that have "_" or "%" in their names (usually browser cache or rss feeds cache or crap like that).

delete them

put your files back on your sdcard (the renamed ones)

go to apps and disable DRM content storage and downloads (optional - I DO NOT KNOW WHAT SIDE EFFECTS THIS WILL HAVE) - first thing that you want to do instead of just disable them is to: Clear data & cache for each of them, force stop them then disable them.

One thing stand thought: every time you browse the internet or you sync your apps, those apps will download files over internet (usually rss feeds apps will download thumbnails which in 99% of the cases will have "_" and "%" in their name) so doing this over and over again is a no go for most of us.

we need to find a better solution thought.
[HTC One V] lars1216:
so this means removing the patch is a no go right? cause like you said, having to do this everytime you browse the internet (which i do quite alot) sucks, than id rather just keep the scanner disabled for now :P, hopefully there is something else that can be done :)
[HTC One V] 1ceb0x:
well - that cache patch was a good thing thought - it improved loading times (as sadly as it sounds - it was far worse than what it is now) :)

as i said, my search time is within a matter of seconds - i am more interested to find a fix because it is eating a lot of battery. and if you turn on show cpu processes in developer options you will notice that every time you enter in gallery, view a file, view a photo, view a video - the com.android.media will work...
[HTC One V] lars1216:
thats too bad :crying: well im happy cause for now atleast i got JB running :) would like it more if i could just use the mediascanner normally but hey you cant have everything :p hope you find something, keep us updated ;)
[HTC One V] 1ceb0x:
one thing - if you have a large sdcard inserted with no files inside, does it hogs your memory? i expect to not search for anything..
[HTC One V] lars1216:
well beside the obvious files needed that is? like the android folder and stuff that android puts on it as soon as its mounted empty. nope that it doesnt, than its just in settings for a few secs (i think like 30 secs) and than it disappears and ram is normal (around 150mb free) this has been tested with a 16gb card, dont know how it handles a 32gb one, cant test either since there are some files on that that i cant delete at the moment.
[HTC One V] ddrahos:
It's safe to disable DRM content, I have had it disabled for months, I think it only applies to DRM play store items.

Disabling Downloads stops the Play Store from downloading apps and updates, do not disable.

Honestly I was looking at my battery consumption on CM9 and wasn't seeing any massive usage by the media app and I know my SD card has weird characters in file names. Maybe I'm wrong.
[HTC One V] lars1216:
Damn I'm happy. Really missed JB.

Any news on the subject by the way?

And I would like to take this opportunity to once again thank everyone that has helped me/us so far and may/will help us in the future.
[HTC One V] tsmith1223:
I just run RAM manager pro on the balance (more multitasking) setting and it seems to keep around 80-140 MBs of Ram free, there is still an occasional freeze, but it's very rare and only happens when i click things too quickly and it just causes it not to respond
[HTC One V] lars1216:
You did see we already found a workaround right? Also, those standard things of you didnt work like we established months ago.
[Samsung Galaxy Nexus] shao3m:
I have searched, and while I've found people posting "low" I/O scores, none are even close to mine. I did read through about 5 threads, just so no one gets angry.

First off, my phone is stock. About four months old, and up until a week ago, it worked fine. Now it is incredibly slow. It takes about 40-60 seconds to open Facebook. It takes about 35 seconds to get a song to start playing. Browsing the web is just awful, and laggy, and freezes all the time. I see the "This app has stopped responding" dialog every few minutes for all my apps. Even launcher freezes.

AnTuTu I/O benchmarks average around 200-300

Quadrant is about 800

From what I see this is much lower than it is supposed to be, and my phone is much, much slower than it was a week ago. I am new to Android, but am kind of wishing I still had my iPhone, so I could just throw my SIM in there while I'm on vacation.

Also, I checked my CPU load, and depending on the time of day, when I turn my phone on, it is anywhere between 5 and 10. Once (with all apps closed), it was 16. That seems insanely high when you aren't using your phone. I remember checking it about a month ago and it was in the range of 1-2.

Thanks for the help, guys. My phone has basically become unusable. I can barely make calls, and texting is so slow, I've basically stopped responding. Forget about doing emails with my phone.

It's still on warranty. Is this possibly a physical problem? Should I bring it back to my provider and show them how it takes a minute to open an app, and then just switch it? How do you back up and Android phone? I know my iPhone was as simple as plugging it into my computer (iTunes would backup automatically).

Thanks a million!

Also: When I reboot the phone, it takes sometimes up to 10 minutes after the lockscreen shows up for it to become usable. Any widgets are "loading", and the homescreens are quite unresponsive. Any notifications show up after 10-15 minutes instead of after 1 minute, like before. If I try to open apps before I let the phone sit for 10-15 minutes, it will not register most of my presses, and the apps often will not even open.
[Samsung Galaxy Nexus] Godra:
Try cleaning cache or freeing some space on internal SD
[Samsung Galaxy Nexus] Doomhamma:
How do you clean cache when you'r completly stock?

Anyway, did this appear after you installed a certain app or just "out of nowhere" ? How much of your storage is filled? 10 - 50 - 80 %?
[Samsung Galaxy Nexus] akash3656:
In 4.2,

Settings -> Storage -> Tap on cached data.

In 4.1, I have no idea of doing it without the use of another app.

Some are reporting once you have less than 3GB space, you get massive slow downs with the newer eMMC chips on the newer batch of Galaxy Nexus.
[Samsung Galaxy Nexus] Doomhamma:
I know, that's why I asked how much free space does he have :D
[Samsung Galaxy Nexus] shao3m:
In response to some of the questions:

The problem appeared out of nowhere. It wasn't after installing a particular app, and can't be traced back to something specific. I have 3.35GB of free space on a 16GB model, so it is mostly full. I've deleted some videos, so now I have 4.23GB available. We'll see if things speed up.

Also, I am running 4.1.1, so I can't clear my cache. At least I don't know how to clear my cache. Maybe someone can inform me.
[Samsung Galaxy Nexus] shao3m:
Doesn't really seem to help. One thing though, I deleted all the songs from a 10 song album by tapping and holding on each song, waiting for the popup menu, hitting delete, and then okay. I did this to all 10 songs before they started to disappear from the list. So, basically 3MB songs were taking 20 seconds each to be deleted from the phone. I once deleted an album this way when I had first gotten the phone, and each song deleted as soon as I pressed okay.

There appears to be something very wrong with my phone.
[Samsung Galaxy Nexus] simms22:
i would try a factory reset. you wont lose your items in storage, and your apps should get reinstalled..
[Samsung Galaxy Nexus] shao3m:
Thanks for that. It told me that it would erase all my photos and music. I'd rather not lose my photos, music, and all that. Also, what about my texts? I'd rather not lose my texts.
[Samsung Galaxy Nexus] simms22:
speaking of texts, do you have an abnormal amount of saved texts? ive heard of way to many saved texts causing slowdowns.
[Samsung Galaxy Nexus] shao3m:
So i deleted most of my texts and changed the limit from 1000 to 400. I don't think I had that many though.

After all this work to try and improve my IO, AnTuTu now gives me an IO score of 107 down from about 250.

I should note that I downloaded the xda app, and it took about 6 minutes to open. It was just sitting at a black screen until anything actually happened.
[Samsung Galaxy Nexus] simms22:
did you reboot first?
[Samsung Galaxy Nexus] shao3m:
I rebooted and now it's 205. Still worse than when I originally tested it.
[Samsung Galaxy Nexus] LiquidXed:
Backup everything to ur pc and do a factory reset