yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] fakhersidhu:
whenever i try to compile back the classes.dex file it says

Any idea?
[Galaxy S II Android Development] Goldie:
Re: [How-To] Potential Media Scanner Fix for XXLSJ&XWLS8

You read one post above right?
[Galaxy S II Android Development] fakhersidhu:
my apologies i didn't.... :(

So all those, having issue with this are at LS8.

LS8 should be removed from the title as it only works with LSJ I guess ........
[Galaxy S II Android Development] shoman94:
This works on both... its the same code. The line I posted above was a typo in the OP which nobody had issues until now it seems or they figured it out in their own. :rolleyes:

So I edited the first post to fix the typo.
[Galaxy S II Android Development] fatjoez:
anyone able to implement this on the MIUI XXLSJ patchrom for i9100?

I tried decompiling its framework.jar & framework2.jar but could not at all find this mediascanner.smali
[Galaxy S II Android Development] rush25:
i made one for Neat ROM XWLS8 but will work on all XWLS8 ROMs :D

Please try and report

http://xdaforums.com/showpost.php?p=37451842&postcount=27687
[Galaxy S II Android Development] egps2:
Re: [How-To] Potential Media Scanner Fix for XXLSJ&XWLS8

Thanks so much for sharing this! I've been testing it for the last few days and seems to have made a huge difference! I can now unfreeze the stock gallery app which was my last workaround and now taking photos does not result in the nedia scan freaking out! Even if this zip does nothing then I'm still really happy with this amamzing coincidence :)

Ps to anyone nervous about trying, flashing this zip appeared to cause no harm and seems to work well for me. It's not a signed zip so I had to used the philz kernel's cwm to flash it but now my media scanner seems to run like it did on ICS :good:

EDIT: I'm using stock LS8 rom but please update is for the new LSD update when it comes out (only OTA right now) but hopefully these bugs are fixed natively :)

Sent from my GT-I9100
[Galaxy S II Android Development] aehmkei:
I tested it and it finally fixed my battery drain (caused by media scanner).

Will u make one too for LSD if NeatRom based on LSD comes out?
[Galaxy S II Android Development] egps2:
Hi if you are comfortable flashing LSD to test it and then flashing LS8 back if you don't like it then I would recommend trying it! For me at least, LSD works just as well as LS8 with the media scanner fix posted in this thread and it may work for you as well although I may have just been lucky for the day I've been using LSD.
[Galaxy S II Android Development] aehmkei:
Successfully installed the fix for LS8 on LSD (neatrom). thx again.
[Galaxy S II Android Development] egps2:
Sorry I'm glad everything is working fine but I meant flash LSD WITHOUT the fix to see if you still needed it as I was not sure or not it was safe to use the LS8 fix on an LSD build! Luckily it appears it is so I'm happy nothing went wrong but I'm so sorry for potentially putting you at risk.

Also, does this mean that you still have the media scanner bug on LSD? For me it appears ok so far (LS8 was horrible without the fix!). If you still had the bug on LSD but is fixable with the mediafix then it must mean Samsung have not patched the firmware themselves...
[Galaxy S II Android Development] jgcaap:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

Fix for Lsd is needed
[Galaxy S II Android Development] shoman94:
This fix works on XWLSD also.
[Galaxy S II Android Development] edubertoldi:
Excluding folder from mediascan

I have a folder with many thousands of subfolders and files, and it causes long mediascanner wakelocks, even after installing this fix. There are no media files in them, so this is just a waste of battery and resources. Does anyone know if there is a way to force android to completely exclude a folder (and its subfolders) from media scanner, since the .nomedia method no longer works?

Thanks.

Phone: Samsung GS2 i9100

ROM: NeatROM Lite 4.3 (LSD)

Kernel: Philz 4.22

SD card: Sandisk 16GB
[Galaxy S II Android Development] jgcaap:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

But a fix made only for Lsd version in a zip :p lol
[Galaxy S II Android Development] wanam:
Here you go, if you are using my Rom, it's already included, i just forgot to put it on features list.
[Galaxy S II Android Development] egps2:
Thanks for sharing this but can you please confirm that it is the same code that's in the LS8 fix? I flashed the LS8 fix on LSD which I belive should be ok yeah? Thanks!
[Galaxy S II Android Development] jgcaap:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

I was using... Ahhh thanks :D
[Galaxy S II Android Development] wanam:
I don't know about LS8 fix, but it uses the same sources as the one posted by Shoman94.
[Galaxy S II Android Development] egps2:
Ok thank you anyway, I have used the zip from this post http://xdaforums.com/showpost.php?p=37451842&postcount=27687 (on LSD) and so far everything seems fine.

I hope this was not a bad idea and won't do any harm!
[Galaxy S II Android Development] shoman94:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

That's a bad idea because there are other changes to the jar in xwlsd.

This is the reason why I don't include flashable zips here. Ask your rom author to include this or make a separate add on.
[Galaxy S II Android Development] egps2:
I had no idea but thanks for letting me know! Long story short I've already flashed the zip (silly me) and luckily have had no problems so far. If undesirable changes were made then what's my best option? Will flashing LSD again without wiping replace the modified files? As for my 'rom author' I'm using stock XWLSD which seemed to have fixed the media scanner issue for me personally but others said they still had it so I flashed the fix anyway as it helped my a lot on LS8.

Does anybody know of a flashable zip compatible with stock XWLSD? Thanks guys!
[Galaxy S II Android Development] shoman94:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

Yes just flash again with no wipe and it will be fine.
[Galaxy S II Android Development] ahac85:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

Has anyone created a flashable zip for Samsung galaxy s3 roms

Sent from my GT-I9300
[Galaxy S II Android Development] jeboo:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

S3s run 4.2.x which has been fixed by google.
[Galaxy S II Android Development] dragon135:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

Latest S3 is still 4.1.2

Sent from my GT-I9300
[Galaxy S II Android Development] egps2:
Has anyone made a zip for stock LSD like the one that was made for stock LS8? Thanks :)
[Galaxy S II Android Development] egps2:
A fix for LSD made/uploaded by MyLifeRocks10 and posted by gevans35.

EDIT: Sorry for the double post, usually it merges but today it didn't!
[Galaxy S II Android Development] altae:
I've got a question: It seems the recently released JB rom for the Galaxy Note does also suffer from the media scanner bug. Would it be possible to apply this fix to the media scanner on the Note too?
[Galaxy S II Android Development] shoman94:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

Likely.... You would have to check the note cm10.1 chide against those one to see if they are the same. If they are then yes.
[Galaxy S II Android Development] king.com:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

+1
[Galaxy S II Android Development] lhurtado:
Re: [How-To] Potential Media Scanner Fix for XXLSJ/XWLS8/XWLSD

I think it could be fixed for everyone (and every ROM) by a xposed module, it should be simple to implement, just need the java code for this function... I'll try to do it later.

Regards.
[Galaxy S II Android Development] rwanek:
ouch, i flashed your patch/ fix on WanamLite 14.1 XWLSD and it messed up my sgs2 - I lost upper status bar with clock, notification, etc. I even cannot take a screenshot. :(

how can I revert this without flashing again? I customized my rom, removed a lot of unused apps. thanks!
[Galaxy S II Android Development] lomistars:
Well done ! works like a charm, no more battery drain thanksss

i implemented the fix on stock deodexed LSD
[Galaxy S II Android Development] sten_amund:
Will this work if flashed via stock recovery; meaning will it work without root?

Thanx, and sorry if this is obvious - being a noob it's not obvious to me :o
[Galaxy S II Android Development] Ruben1987:
Have to report that on my GT-i9100 with XWLSD Deodexed or my previous ROM XWLSJ Leak both the LSD fix and the first fix mess up the sound s=somehow in these ROMs, all my ringtones, sms notifications etc do not work anymore and make no sound at all.

I have tried wiping chache, I always wipe Dalvik after flashing any mod, and still the issue is there every time after flashing this fix.

Could the Dev please take a look at it why this happens?
[Galaxy S II Android Development] danividalg:
Hi lhurtado,

Have you tried to make a Xposed module to fix this?

I think there are two features to implement or two separate modules as prefered.

1.- Implement fix commented here.

To to that probably all that is needed is here https://android.googlesource.com/platform/frameworks/base/+/8ab2dc2f9680307febe997631c2148729f714e3d

I don't know exactly how to make a xposed module, but I suppose that you only need to overwrite the function "FileEntry makeEntryFor(String path)" of the file "media/java/android/media/MediaScanner.java"

2.- Undo ".nomedia" and ".XXX" folders ignore

By undoing this will cause problems on MTP file transfer, because as I have readed, it's needed to scan everything because MTP need it.

I do not use MTP to transfer files to/from the phone, so I do not need it.

This seems to be a little more complicated.

Commits that affect this seems to be this (https://android.googlesource.com/platform/frameworks/base/+/997354e4b4a9666cedd62282471e97822affced9) and this (https://android.googlesource.com/platform/frameworks/base/+/92e1314ad9ddbacfb806405e9aceeea4a8aae19f)

I don't know if there is any other commit that affects this.

Probable, will be enought only modifying the file "media/libmedia/MediaScanner.cpp" under "// ignore directories that contain a ".nomedia" file" and under "// ignore directories with a name that starts with '.'", on the "status_t MediaScanner::doProcessDirectory" function.

But I don't know if is possible to modify/overwrite a function on a .cpp file with xposed (don't know if it is only possible with java files)

Well, If I can help you in any way please let me know :)

Best regards.
[Galaxy S II Android Development] sohail99:
Any fix for XWLSN? My s2's battery life got reduced to like 12-15hrs standby after I flashed Neatrom!

Thanks to the damned media scanner!! (Even a virus wont cause that much problems lol)
[Galaxy S II Android Development] shoman94:
Same fix applies too lsn. Pretty sure the fix is in neat already. Unless you installed something that removed it.
[Galaxy S II Android Development] sohail99:
Yea I know that the fix is in the list of included mods!

But the problem is still there since I flashed the rom! Rescan media root seems to stop it if you catch the scanner going crazy and in case you need to populate the gallery again.

But sometimes the scanner randomly starts while the phone is in my pocket and starts to heat up and gobble loads of battery! :crying:
[Galaxy S II Android Development] lovegambler:
+1
[Galaxy S II Android Development] shoman94:
More then likely, if you still have issues, there are garbage duke or corrupt files causing it.

I would figure out which drive is causing the issue and save what you need then format it. Should solve issue.
[Galaxy S II Android Development] lovegambler:
hmmm..

well as a workaround I've removed my SD-Card nd it really solved the issue for me no heating nd no excessive battery drainage for now but I don't knw wat would I do with my card if I cant use it on my device :'(
[Galaxy S II Android Development] shoman94:
App it sounds like either the sd card is bad or you have corrupt data on it. Save the files you want(not folders) and then format it and restore them see what happens.
[Galaxy S II Android Development] lovegambler:
Thnx sir will try that nd will report if it solves the issue :)
[Galaxy S II Android Development] woodyxxl:
SGS2 XWLSS -> Media Scanner Fix included?? Didn´t find a hint... but have a lot of battery drain (up 2 -150mA with 4.0.4 ~ -20mA)

Thx
[Galaxy S II Android Development] yelkarama:
Fix working for me on Galaxy note N7000 JB XXLT4

Hi

I implemented this fix on my custom TW ROM on my Galaxy note N7000 and I confirm it's working flawlessly :)

Media scanning time went down from mote than 15 minutes to 1m42s :)

Very good job! :good:

I voted 5 stars for this thread.

Thanks
[Galaxy S II Android Development] jgcaap:
If there was a fix for the odex version would be perfect.

Sent from my GT-I9100
[Galaxy S II Android Development] shoman94:
deodex the jar then make the mod and then reodex it.
[Galaxy S II Android Development] jgcaap:
dunno how to do that :( but after exams i'll try since you say is possible :)
[Galaxy S II Android Development] tariq2kn:
Any cwm file for lss odex?
[Galaxy S II Android Development] dracula8275:
Hi friends, have this problem to but i'm not a software specialist. Is there a fix to flash to resolve the media scan problem? Or can some one create a such fix. Thank you in advance

SGS 2, Disasater 11 rom

Apolo 4.7 Extreme V.0 kernel
[Galaxy S II Android Development] shoman94:
Ask your rom dev to include it with the rom. I'm not sure why he isn't.
[Galaxy S II Android Development] Ba7rani123:
In some samsung roms the fix breaks the start of some games like fun run, which i think should be fixed here

Fixed here : http://xdaforums.com/showthread.php?p=40177845
[Galaxy S II Android Development] Goldie:
Its not fixed there. That just removes the media scan fix. So its either media scan fix or fun run. Not looked into it but not sure why the media fix would break a game :/
[Galaxy S II Android Development] Ba7rani123:
Oow I thought it was a fix, thanks for the heads up :D. Maybe the game needs to scan the sdcard for its folder or something like that
[Galaxy S II Android Development] mattiadj:
Can I apply this fix on my 4.1.2 Sammy rom on gs3?

From universe with my gs3
[Galaxy S II Android Development] shoman94:
You can try. ... I don't have an sgs3 to try.
[Galaxy S II Android Development] mattiadj:
How can I decompile framework with smali with apktools I can't see smali

From universe with my gs3
[Galaxy S II Android Development] Goldie:
Then you did something wrong as you should have nothing but smali
[Galaxy S II Android Development] mattiadj:
I have res and assets and any error from apktools

From universe with my gs3
[Galaxy S II Android Development] Goldie:
Lol!! Framework.jar not framework-res.apk! :p
[Galaxy S II Android Development] Biftor:
No pb just rename framework.jar to

framework.apk and decompile it wit apktools,apkmanger or apk multitools....

This is very easy for you...

Goodluck

Armin.
[Galaxy S II Android Development] Goldie:
You dont need to rename anything to decompile with apktool....
[Galaxy S II Android Development] Biftor:
For apkmanger and apkmultitools just rename ".jar" to ".apk"

And after that we can decompile and compile same other normal apk...

Finally we can rename that from ".apk" to ".jar"

This is easy for all noob ppls....

Goodluck

Armin.
[Galaxy S II Android Development] KingOfDope:
I'm new to android

can just upload myFramework.jar and one of you guyz do it

because i don't want to brick my phone :(

anyway thank you for posting this

here is the download link for my Framework.jar, its in de zip:

https://mega.co.nz/#!mQhVlR4I!qFKeFDhXftWsQjsJrO7_8i8l2fGUVI4yhuY3tb3MlNE
[Galaxy S II Android Development] shoman94:
Are you already running a deodex ROM?
[Galaxy S II Android Development] KingOfDope:
I asked the guy who made the rom i am using, and he said media scanner is fixed ;D

so don't have to use this, anyway thnx guyz
[Galaxy S II Android Development] Sami Kabir:
Will this "fix" work for other phones as well? In my case its a Galaxy S Advance running Samsung's Android 4.1.2 firmware..
[Galaxy S II Android Development] mstdzw:
$ java -Xmx512M -jar smali-2.0.2.jar classout/ -o new.dex
classout/android/media/MediaScanner.smali[5382,4] Error for input '.parameter': Invalid directive
classout/android/media/MediaScanner.smali[5382,15] mismatched input '"path"' expecting END_METHOD_DIRECTIVE

I have problem with compilation, can anybody help?
[Galaxy S II Android Development] shoman94:
Glad it's still helping!
[Galaxy S II Android Development] Sami Kabir:
Will this fix work for other phones as well? In my case its a Galaxy S Advance running Samsung's Android 4.1.2 firmware..
[Galaxy S II Android Development] shoman94:
Not sure about that.... There is probably some differences that would need to be done.
[Galaxy S II Android Development] isaak:
I ported it for I9070 here:

[MOD][4.1.2] Media scanner Fix for I9070
[Galaxy S I9000 Q&A, Help & Troubleshooting] darthebar:
After looking through forums and gathering information about rooting my device i decided to give it a shot, I followed the instructions to a 'T after using Odin and my preferred pda I found my phone had got stuck on the Samsung start-up screen. I looked more and was told i had bricked my phone ..

I was also told it was 'unbrickable' which means I could fix it by loading a PIT into Odin, I followed the instructions on how to achieve this, Odin told me everything went successful and Now my phone wont turn on or charge, In fact it's Black as the night..

I'm telling myself this might could be fixed, I would very much appreciate any help anyone can offer me on this problem

Darren
[Galaxy S I9000 Q&A, Help & Troubleshooting] muhammadnajmi96:
Try remove your battery for a while and restart it
[Galaxy S I9000 Q&A, Help & Troubleshooting] osterizerble:
I think you are flashing wrong file. Check the history of releases for your model by your carrier and get the right stock froyo or gingerbread file to flash.
[Galaxy S I9000 Q&A, Help & Troubleshooting] darthebar:
Thank you, I give this a try and have access to the 'Downloading screen' again. I still can't get to the Recovery option.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Jonboy2011:
just flash stock rom with odin
[Galaxy S I9000 Q&A, Help & Troubleshooting] darthebar:
Thanks for your input mate. I took your advice, For some reason my phone still won't boot

E:failed to mount /dbdata (invalid agument)_dbdata_media

E:failed to mount /dbdata (File exists)

E:copy_dbdata_media: can't mount /dbdata

your storage not prepared yet. please use UI menu for format and reboot actions.

Been through and nothing sems get it going
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] garytako:
I've just flash a rom (download from xda, which is in *.zip format JB4.12) by CWM to my note 1, successfully.

Now I've just backup the rom, with some apps and data, by rom manager. However, the backup come with several files include a *.img instead of a zip file.

Anybody know, how can I make these files to become one *zip file, which I can flash it to the system and make it become factory default??

Please help...
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] Shyam:
I would suggest you taking a nandroid using CWM recovery..its easy to backup & restore..about your question regarding rom manager, may be you can put all the .img files into 1 .zip file, but i really don't know if it will make a flashable rom..
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] garytako:
simply say, how to backup thwart whole roman with data which is flashable to cwm?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] nokiamodeln91:
Nandroid backup backs up the entire rom and is restorable via cwm.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] garytako:
Thanks for prompt reply.

Will it create *.zip files that can be used to flash to factory default rom?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] Shyam:
Not .zip AFAIK..it does on .tar format & another format (forgot the name)..anyways, u should be able to flash .tar using mobile odin..
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] nokiamodeln91:
It doesnot make a zip file. it makes a folder with the date and time when you made the backup. in it has ext4 files of you system,data cache, modem kernel etc.. all you need to do is boot into recovery and go to backup & restore and choose the folder you want to restore and it will do the job.. it doesnot require a zip file this way.
[General Questions and Answers] M015T:
hello folks.

Have updated my Xperia U to 4.0 some time ago- didn't think about it for couple of days but now need to use some autostart manager. Was using ROM toolbox before but now tried this one as well as other ones. Nothing works. In all of them after "scanning apps" only thing is "no receivers found". Any ideas what to do about this one? Before in R.toolbox in autostart after "apps scanning" everything was working allright. Do you guys have any idea what to do about this one?

cheers, and all the best for New Year!
[General Questions and Answers] SammiSaysHello:
flash stock ics again and see if issue persists
[General Questions and Answers] M015T:
I've tried. Still same. My phone is rooted with busybox installed. Before update everything was working allright... Any other ideas? Maybe i should try to grant SU to autostart app manually but have no idea how to do it.
[Sprint Samsung Galaxy S III] jameski182:
I have my new GS3 and i want to download and save youtube videos any apps that can you recommend to me.
[Sprint Samsung Galaxy S III] ChaseBroyles:
http://m.tubemate.net/
[Sprint Samsung Galaxy S III] jameski182:
Thanks for the reply does this apps can be found in PlayStore?
[Sprint Samsung Galaxy S III] bluedevils2003:
I got it from the amazon app store ,

http://www.amazon.com/gp/mas/get/android

Or

http://m.tubemate.net/
[Sprint Samsung Galaxy S III] ReapersDeath:
Love that app. You can download in any version that the video allows and you can download as mp3
[Sprint Samsung Galaxy S III] jameski182:
I have try this...

Thanks for sharing...
[Sprint Samsung Galaxy S III] topherk:
Follow-up Question: Download Resolution

As a follow-up question on Tubemate:

I've been using Tubemate for about 5 months now and absolutely love it. One thing I've noticed, though, is that sometimes when I download a video at full resolution, it doesn't play very well in any video player I have tried (stock TW Video Player, MXPlayer, VLC). The video will play for a certain length (sometimes 1/2 the video, sometimes 3/4 of it) and the video will freeze (sound continues) and then the video will restart from the beginning. If I skip ahead of the "freeze point" the video continues fine.

I know that Tubemate downloads the files in sections and stitches it together (think of old-school r.00 and r.01 files), so it sounds like the problem is that the particular section the "freeze point" is in was corrupt. If I download the video in a different format (or redownload it at the original resolution) it sometimes works better.

I was wondering if anyone else has had this problem with Tubemate downloads.
[Sprint Samsung Galaxy S III] BroadcastJunkie:
I've had this issue before.. It happens. Sometimes I go to the download folder and make sure its really at a 100%. But I figure its the video codecs on the phone.. sometimes they just hitch a part and its all downhill from there. But tubemate is by far the best. not only do you not have to deal with ads, it gives you options to select which video size you want which is always a plus
[Sprint Samsung Galaxy S III] otterboxfan4l:
No problem man have you tried it yet ? This is one of my favorite apps

Sent From My Samsung Galaxy S3
[Sprint Samsung Galaxy S III] monstaX:
I believe its because our phones are 1280x720 and if you download at 1920x1080 then your phone can't play it cause it can't handle it. Its the same for me. As for everyone else.
[T-Mobile Samsung Galaxy Note] HD2FORNICK:
How do I go back to stock recovery. I want to get the note exchanged.