yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Heraku:
I still have Media Scanner Wakelock problems with the 4.2 version.

Mediascanner freezes / runs for an infinite amount of time when I use a SD card, without a SD card the mediascanner finishes after 12s.

The two main folders on my SD Card are Music and Pictures.

When I add a .nomedia file to both folders, then the mediascanner finishes in just a few seconds.

Would I delete one of the two .nomedia files in either of the two folders then it runs for hours.

The app SD Scanner which I recommended for Mediascanner issues under Kitkat does not work for me,as it hangs on several files(I stops while scanning one files, you force quit it and then it hangs on another file...)

It is said that corrupt files cause the media scanner to hang. So I used a mp3 fixing tool http://www.gromkov.com/faq/repair/mp3_validator.html

Which still made the mediascanner run wild.

I did the same for the image files on my SD card through the app "corrupt image finder" that can be found in the playstore.

But no luck

I also ran chkdsk on my SD card , but it found no errors.

By using Poweramp I could live with having a .nomedia file in my music folder, as it has its on index database.

But I would like to also see my Pictures in the standard Gallery app... which I cant as the Mediascanner would run ammok otherwise.

There is also the issue, that the mediascanner is apparently inefficently coded as it takes quite a while for it to scan files that include an underscore( "_" ) character. All my Image files on the SD Card have one to two underscores.... so maybe the mediascaner just needs 10h to scann through all of that....:rolleyes:

I have also tried to delete the media storage files/cache numerous...to no avail.

Can anyone help me? It seems that there are no other options left.
[Galaxy S II Android Development] DoItJust:
It sounds as if you have corrupt media files in your library, is it possible to identify them with SD scanner and remove them to see if the problem persists.

You can also try QuickPic for photos, etc and put a .nomedia file in your camera folder.

Search for posts by GeScha a few pages back, he has a workaround for a similar problems

All the best
[Galaxy S II Android Development] akupanjang:
Many many thanks bro.. :good:
[Galaxy S II Android Development] Heraku:
The SD Scanner app doesnt help as I think that it shows "false positives" as I said in my post: without an SD card the media scaner works fine, HOWEVER the app SD Scanner can also crash with files that are on my internal SD card. And as I said: Mediascanner works for the Internal SD card.

I know about the .nomedia file but for me it is only a workaround as for example BubbleUPnP needs to have the files indexed in order to use it to its full potential.

And I also know that the mediascanner CAN WORK with all the files on my SD card because the Mediascanner finished a full scan(internal+external) at the second boot of my phone after I installed this ROM(didn't work at the first startup and any other time than at the second).

And here comes the kicker: I deleted the .nomedia file in the Picture folder(leaving the .nomedia in my music folder intact) and after a reboot mediascanner took only 26s in order to index the Pictures. So now apparently my pictures do work!

So now it is only my music...

And as I wrote before: Mediascanner was able to at least for one time to finish it's procedure with my files... so there does not seem to be a problem with them...
[Galaxy S II Android Development] psychlist:
Some thoughts, maybe useful, maybe not (and if i haven't understood your problem correctly, i apologise now):

If you were to remove all files from sd card (take copies to pc if necessary, of course), reformat card, then add just a few files (preferably ones of whose integrity you are confident - maybe mp3s you ripped yourself, rather than downloaded ones, where the possibility of corruption increases) to the reformatted card, it might give some insight into whether your problem is being caused by (a) (if the scanner problem stops): corrupted files (even though mp3 validator says they're ok) or too many files, or (b) (if the problem continues): a problem with the scanner or the card . If the problem does continue, i suppose the next thing to do would be try another card: i don't know whether you only checked for file system errors with chkdsk, and i don't even know if chkdsk works on sd cards to identify bad sectors, but sd cards can be unpredictable, and unfortunately your card could be broken even if it's new; and the easiest way to check would be to substitute a different card.

Other than that, you could try:

flash back to an ics rom, then reflash neatrom 4.2 - i say this because if there's a problem with media scanner, i've found in the past that reflashing the same rom, even after full wipe, doesn't always replace the culprit file(s), whereas flashing to a different version of android and back again is more likely to overwrite those files (at least, that's the theory - all i can say for sure is that i've had problems in the past that were not solved even though i reflashed the same rom many times (this was not with neatrom), and when i flashed back to a different android version, then back to the rom i wanted, the problem went away: maybe someone else on this thread could comment on whether this was just a happy coincidence). Even though i expect you checked the rom md5 before flashing, a file might have been corrupted in the flashing process.

All that said, android's media scanner is notorious for these problems.
[Galaxy S II Android Development] velocity90:
Was anything changed to the wifi or 3g in latest of neatrom versions?

I can't use Apolo kernel anymore. If my phone is in sleep (15 mins or so) the wifi and 3g turn orange(not receiving any messages) until I unlock my phone, than they turn white within 20secs and receive all my messages. Stock kernel doesn't have that problem but I have terrible battery life with that.

Apolo hasn't changed anything to the kernel.
[Galaxy S II Android Development] cmdrtuvok:
MediaScanner

It worked for a few days, now I have the problem again. MediaScanner starts and at some point gets stuck on inspecting a file on the external SD card. It is never the same file. I checked all of them and they are all ok. Also formating the SD Card did not help.

Any Idea or what debug information would be useful?
[Galaxy S II Android Development] TreckeR:
Tried installing but always the same error, unable to open the zip file. Tried downloading again several times, format the sdcard but nothing....So i installed back the latest neat 5.9
[Galaxy S II Android Development] psychlist:
I'm going to assume that you carefully followed the instructions for installation in the OP. My question for you is, did you check the md5sums of the kernel/recovery zip (it's called CWM-KitKatCompatible-i9100.zip) and the rom zip while they were on your internal sd and before you installed them? If you haven't yet got one, there are several free apps on play with which you can check md5sums. In your position, if you haven't done so already, my first move would be to check the md5sum of the kernel/recovery zip you installed, assuming it's still on your internal sd. If the sums don't match, that's the problem and you need to download that file again. For future reference, if the md5sum of a file matches the sum posted by the uploader, the probability of the file being corrupt is probably less than the probability of a brontosaurus landing on your head, so if the sums do match, there's really very little point in downloading the file again.

I'm not especially confident that this is going to provide the solution, and you may have to wait for somebody else who knows more about this stuff than i do to help you, but at least this info should save you some time and effort in the future, by stopping you from unnecessarily downloading multiple copies of the same file.

I hope you get this rom installed ok. It's definitely worth having on your phone.
[Galaxy S II Android Development] TreckeR:
I will check it and compare. Thank you!
[Galaxy S II Android Development] _Sale_:
first follow this guide:

http://xdaforums.com/showpost.php?p=44009547&postcount=66329

then clear the media storage data and reboot device. Also make sure "scan media on boot" in setiings/advanced options is set
[Galaxy S II Android Development] cmdrtuvok:
Strange ....

What I did:

* Clear Data of 'Media Storage'

* chkdsk /r of the SD Card: Reported no errors whatsoever

* Wipe Cache & Dalvik

* reboot.

Now the Media-Scanner finished, just like it did after full wipe install of 4.2 ... i am curious how long it lasts this time ....
[Galaxy S II Android Development] :
Yesterday I had a funny crash....was listening to music in a plane (flightmode) and after listening for 2 hours w/o any issue 8Rocket Player) the phone stopped to accept any input, could only switch on/off the display, but basically nothing else could be done. Funnily the Music was going on playing (could not go to next track, no volume +/-) nothing....

Had anyone ever experienced such a thing.

Not a big deal, just rebooted phone and all was OK again...was just wondering that it not completely crashed, but kept playing the song....

---------- Post added at 02:40 PM ---------- Previous post was at 02:38 PM ----------

I just installed the new released google camera, generally it works, but i cannot enter settings.

this one has sphere :)

Can anyone test if it works on any other Neat AOSP phone?

https://play.google.com/store/apps/details?id=com.google.android.GoogleCamera
[Galaxy S II Android Development] Vivek_Neel:
May be you can try other music player
[Galaxy S II Android Development] Heraku:
This doesnt work for me.

At the moment I only have Problems with my Music collection on the SD Card. SO I put a .nomedia file in the folder and the media scanner works (but doenst scan my music). So I thought: Maybe just some of my Music is corrupt and causes the media scanner to hang(After all I ran my mp3s through a VBR Tag fixer, chkdsk and an Mp3 fixer)

SO I created a second Music folder on my SD card without a .nomedia file and transfered 40 Music folders to the new Music folder that could be scanned. Result: Media scanner runs for far too long.

So I put the files in the scanable Folder back into the .nomedia folder and copied 30 DIFFERENT Folders out and into the scanable Music folder.

Result: Media scanner still runs for far too long.

Now I did the above with just 18 Different Music Folders. Result: stays the same.

So I think that either all my Mp3 are somehow corrupted... or my Mediascanner just won't work with Audio files.

[ I cleared the Mediascanner cache every time I did the above things]

This problem is really infuriating!!!!!!!!!!

Next Step: Deleting all the Music of my SD Card and puting just a few different folders into it.

Or maybe I just transfer some music to the Internal SD card and try to see how the Mediascanner approaches that..........

EDIT: Or my SD Card is just broken, it got formated a few weeks before and I had to do a full run of a recovery program to get pictures back. Maybe that was when it "broke".

I'm saying this now, as I tried to copy Music from my external to my Internal SD card and the file stransfer proces just froze after a couple of files. This happend three times now, all with different files... *grrrr*
[Galaxy S II Android Development] _Sale_:
i think you have to reformat your ext sd again

edit: FAT32
[Galaxy S II Android Development] :
Thanks...usually player works...wanted just to share the incident...as mentioned... Not a big deal....I allow the device to crash from time to time.... :)

Gesendet von meinem GT-I9100 mit Tapatalk
[Galaxy S II Android Development] Munchkin86:
Hello,

I want to install this Rom coming from Stock rom.

My questions, is it possible to use cronmod scripts with this rom and KitKat 4.4?

Because another phone I use, Sony Ericsson Arc it is working.

Is there a functioning one for this Rom for Samsung Galaxy S2?

Another question which languages are supported?

Is Traditional Chinese (Taiwan) supported?
[Galaxy S II Android Development] tarzan11:
Hey...anyone tried New Google Camera yet?? http://slimroms.net/index.php/news/455-new-google-camera-and-compatibility

---------- Post added at 05:24 PM ---------- Previous post was at 05:21 PM ----------

Ha...just seen this post...lol...See my link above...Slim has fix for fc...?

Edit...its still fc...only working on 4.4 Stock....
[Galaxy S II Android Development] Vivek_Neel:
Yes ...I have tried it.

Great features... Especially blur.:)
[Galaxy S II Android Development] velocity90:
And again,,,

Was anything changed to the wifi or 3g in latest of neatrom versions?

I can't use Apolo kernel anymore. If my phone is in sleep (15 mins or so) the wifi and 3g turn orange(not receiving any messages) until I unlock my phone, than they turn white within 20secs and receive all my messages. Stock kernel doesn't have that problem but I have terrible battery life with that.

Apolo hasn't changed anything to the kernel.

:confused: hoping for an answer
[Galaxy S II Android Development] Vihru:
Why my name is linked in donors and different color? :D
[Galaxy S II Android Development] psychlist:
This isn't an answer to your question, but it might be a solution to your problem. I haven't tried it out because i'm on stock kernel.

As far as i can see from the way my phone behaves, the phone signal icon goes orange when there is no data connection, and the wi-fi icon goes orange when network connection is absent. If these assumptions are correct, this might work:

Install (if you don't already have it) macrodroid (free on play), and create and enable 2 macros:

One macro has the condition: Data connectivity change > No data connection; and the action: Mobile data on/off > Data on.

The other macro has the condition: Wi-fi state change > Disconnect from network; and the action: Wi-fi On/off > Connect to network. (Alternatively, if my guess is wrong and the orange wi-fi icon in fact signifies that wi-fi is off, this second macro would be: condition: Wi-fi state change > wi-fi disabled; and action: Wi-fi on/off > Enable wi-fi.)

If you don't want wi-fi and data enabled all the time, you'll need to add constraints, for example limiting the operation of the macros' actions to certain times of day. If i recall correctly, the free version of macrodroid permits only one constraint per macro. I could think of ways round that if you needed more than one constraint, but the paid version is cheap and the developer's a nice bloke, so if you want a way round it, you'll have to figure that one out for yourself; otherwise, you could simply turn the macros (or indeed the whole of macrodroid) on or off as needed.

If you already have Tasker, you could do the same thing with that app, although as a Tasker user, i'd recommend macrodroid for this particular task, because it's much easier to use, and actually has help screens that relate to the current version (not that you need help screens, because the app is spectacularly user-friendly).

As i said, i'm not sure that this idea would work (although i can't see why it shouldn't, assuming i've understood your problem correctly), but it's very easy to implement in order to find out (unless i'm overlooking something obvious which means that you don't need to try it out, because you can see straight away that it wouldn't work). I have been able to check and confirm that macrodroid responds to loss of wi-fi network connection while the device is sleeping. I don't know how much additional battery drain using these macros would cause, but i'm hoping that it wouldn't be too significant compared with the drain produced by permanently enabled wi-fi and data.

Whether this works for you or not, i hope you get a solution soon.
[Galaxy S II Android Development] akupanjang:
I have a problem on media scanner.. Its dont have any music and photo on sd card.. I,ve made restart several times but it wont work... I also try to disable media storage and enable but also not work.. How to solve this problem
[Galaxy S II Android Development] velocity90:
Crashes when entering settings here also.
[Galaxy S II Android Development] :
Did it work w/o FC on your phone?

Gesendet von meinem GT-I9100 mit Tapatalk

---------- Post added at 09:28 AM ---------- Previous post was at 08:59 AM ----------

Yes, also tried the fix, but still FC at entering settings...

BTW, do you know how these pictures can be viewed? Sphere and blur pictures can be seen in stock gallery (original from this rom) or do you view it with something else?

---------- Post added at 09:35 AM ---------- Previous post was at 09:28 AM ----------

What I finally did (as it went crazy one day ago again):

General: I use

Rocket Player (scans independent from Media Scanner, selection of scanned folders in the App, Behaviour of scanner when ".nomedia" file present is selectable)

Quick Pics(scans independent from Media Scanner, selection of scanned folders in the App, seems to ignore ".nomedia" file anyhow)

Media Scanner behaviour on Boot: Ask if scan should be done (not sure if this is still required after the new setting below)

New: I put a ".nomedia" file on the external SD card into root, to let the original media scanner skip the ext SD card (sdcard1) completely. This seems to be no issue, also ringtone setting out of Rocket Player or file manager works as long as "media storage" is not freezed...

Finally, no matter how often my external SD is re-formated, media scanner on some point in time crashes on it.

BTW, I use a 32GB Samsung SD card, FAT32 formated.

Do all the people with Media scanner issues use a 32GB card? maybe it's the size?
[Galaxy S II Android Development] It_ler:
Some names (like yours) are directly linked to your xda user profile ... via the MENTION tag.

This tag is automatically inserted when writing an xda username after the "@" into a post, but sometimes it doesn't work properly, e.g. if you overwrite the name or parts of the name afterwards, or if the name contains special characters, etc.
[Galaxy S II Android Development] DoItJust:
I use a 32GB Adata Class 10 FAT32 formated card.

I have now moved all but a handful of mp3 files from the ext card and uploaded > 4500 songs to Google Play.

Still have > 300 photos on ext card.

So far problems have disappeared.:fingers-crossed:

Will continue to investigate what triggers the scanner bug by moving chunks of songs back to the card and try to determine if it's a specific file that triggers the problem or if it's just the number of files. Simply want to find out what I can and cannot do.

All the best
[Galaxy S II Android Development] :
The difficulty is that for some time the mediascanner works w/o any issue, and suddenly it goes crazy altough nothing is changed wrt the content of the ext SD. So whatever fix I tried, I could never be sure that this really is a fix....
[Galaxy S II Android Development] DoItJust:
I know, it takes a lot of time and patience. And you sometimes get random results ...

However, I have found that rebooting or connecting in USB mode often triggers the craziness, provided there are enough files on the ext card.

All the best
[Galaxy S II Android Development] :
Based on your comment....

I just checked, when connecting the device to USB (I use MTP) the Media scanner swithces from a "cached process" to a "active process" and back again when disconnecting.

So maybe there is a bug when switching back from active to cached when disconnected (or vice versa)...just a thought
[Galaxy S II Android Development] _Sale_:
Hmm good thinking will look again

Sent from my NeatRom'ed GT-I9300 wifi hotspoting from my NeatRom'ed GT-I9100
[Galaxy S II Android Development] _Sale_:
Fixed :)

Sent from my NeatRom'ed GT-I9300 wifi hotspoting from my NeatRom'ed GT-I9100
[Galaxy S II Android Development] Heraku:
JESUS CHRIST!!!!!!!

What is going on with this Mediascanner.

So I deleted all my Music of the SD card, restarted Phone... mediascanner runs.. everything is fine.

I then creat a new music folder put into it some music, restart(without clearing any caches) and media scanner finishes after 22s and indexed all my Music files on first try.

I then reboot, just to make sure that this is not a one time thing: media scanner finishes after 26s, indexes every file...all ok.

I then Put into an extra folder in the music folder some more music and restart.... mediascanner hangs.

I cut the folder out of the Music folder and put it into the root of my SD card and put a .nomedia file into it, restart and mediascanner hangs.

I clear media storage cache and restart... media scanner hangs.

I delete the extra newer music folder so that everything should be like the first try where mediascanner worked, clear mediastorage cache, restart: MEDIASCANNER HANGS!

Its like after the first indexing of files it just stops working alltogether!
[Galaxy S II Android Development] tarzan11:
Hey...jesus is here...yes my child.

Try turn off phone.

Remove sd card.

Reboot phone without sd.

Observe mediascanner.

If ok...then its you sd card that maybe is not compatable with Aosp roms...i only have a 8gb sd card..i read many user's have issues with 32gb cards....
[Galaxy S II Android Development] akupanjang:
What button to take a screenshot? I try power + home it now work..
[Galaxy S II Android Development] tarzan11:
[MENTION=5242753]Heraku[/MENTION] try this...create a folder on your sd card...eg 'Herakuplayer' then place ALL your mp3 into this folder...DONT make another folder...just have 1 folder on your sd card containing all your music.
[Galaxy S II Android Development] Sun90:
Try Vol Down + power and see :)
[Galaxy S II Android Development] akupanjang:
Many thanks brother
[Galaxy S II Android Development] xike:
Borrowed my friends 64gb class 10 sd card, and it sadly wasnt detected on my s2, do you think its hardware or software limitation? It worked on my friends 4.4.2 samsung ace 2.

My 32gb sdcard is starting to be too small xD
[Galaxy S II Android Development] _Sale_:
look here

http://xdaforums.com/galaxy-s2/help/64gb-microsd-cards-s2-t1947892/page3

also try this:

http://download.cnet.com/MiniAide-Fat32-Formatter/3000-2094_4-75701815.html
[Galaxy S II Android Development] avirk:
Lol this made my day to laugh and I came to know this serious guy can crack jokes. :D;)
[Galaxy S II Android Development] Dogshad:
Battery drops

Everytime i restart my phone the battery percentage seems to drop off. any idea why?
[Galaxy S II Android Development] la_malacoda:
Are you on Apolo? If yes, read Apolo OP

Sent from somewhere around the world
[Galaxy S II Android Development] velocity90:
Hi,

Thank you, will try it but why does it need this, it wasn't so on earlier neatrom versions.

Does this gcm wakelock prove there is really no connection? Never have seen that one before.