yashsingh1/xdaforums huggingface dataset:
[Milestone XT720 Android Development] Dexter_nlb:
Media scanner bug found!

The problem with the media scanner is found, and its now finding covers for albums and scanning sdcard etc...

problem could be now: speeds noticed when booting might decrease as mediascanner starts when main screen is shown, so it can probably seem laggy, when you're first start using it, so remember mediascanner is only running once when sdcard or any event triggers it, but it is intensive and is a known "issue" on Galaxy S, where they actually implemented the option to disable/enable scanning because of the lag noticed .. this is all up ahead info, so i dont hear much about complaint or so.. thats how its supposed to be for now..

some 2.2.1 libraries where needed, but not compatible with our 2.2 korean edition, so to fix it, i had to do small framework change, and got it running, to explain the reason for the crash of mediascanner, it was only seen when sdcard was unmounted so initially i did not notice as i did do much usb storage mounting..

but for now its ok, i will do a full image update, as several libs changed, but no wipe will be needed, just a nandroid restore, and it will be ok for now.. the framework change will at first boot slow bootup until all signatures are corrected, but it is not going into bootloops, just refreshing signatures.

when im confident in functionality i will upload it..

dont waste more time on music/media issues, it is a bug and found!!
[Milestone XT720 Android Development] Mioze7Ae:
That is my understanding. The Froyo native App2SD moves encrypted copies to /mnt/sdcard/.android_secure. I suspect the deencryption overhead (combined with the loss of random access) are why things get bogged down there. This is why it's best to let the developer decide whether the app should be moved to .android_secure or not. Using ext2 or ext3 avoids the encryption and allows random access.

That makes perfect sense to me, but I have no guess whether internal (which the ext2 actually is) or SD would have priority, though.

I would expect that if you have a pristine ext2 and /data/app points to the ext2 partition on the SD card, then when Move2SD moves the app from the SD card to "internal", it's actually moving it to the ext2 partition. This is only the case when the entire /data/app directory has been moved to the SD card. App2card does things differently.

The really confusing one is when you start throwing Link2SD in the mix. Probably apps that have been moved to SD card using Link2SD have to be moved to internal before they can go to .android_secure and vica-versa.
[Milestone XT720 Android Development] Dexter_nlb:
very brief explained, you nand memory is much faster in response times than your sdcard, so it will be hard to gain those rates with sdcards, but its only an indication of whether ext2/sdcard setup is better or slows the apps..

you need a class10 card probably to gain the huge performance nand memory gives you. Motorola models are kinda famous for memory performance, but lacks 3d graphics, in benchmarks..
[Milestone XT720 Android Development] reverendkjr:
No. I have not referenced the media scan issue at all. My original post was to address slowness and browser crashes after doing update. I eliminated my ext3 partition and made a fresh new ext2 partition and reflashed. Now, my phone is not slow or laggy, and my browser no longer crashes. I have not tried media scan as of yet.

In terms of apps2card is concerned, the 1.1b update added support for ext2 partitions to hold the apps instead of the fat32 partition. That is what screwed up a lot of us. Previously, we were using apps2sd with a diffferent hack that required an ext2 partition.

Right now, what you want to do, is create an ext2 partition, just 1 gig, and then the rest as fat32. This will allow the new apps2ext to move the apps over to the card.

I hope this helps. I smell another video tutorial in the works! :D
[Milestone XT720 Android Development] d23wilson:
nope..i am lost..

i moved all my apps back to internal storage...went and checked the internal storage space...did not change from 78mb...thuoght that was strange, as i thuoght that should decrease now i have apps back from sdcard onto internal (i use quick settings to check that).

restarted into nandroid, applied update...restarted the phone, ran linpack..same score (900..ran again 1050). Again far cry from first instance of 1.1b patch which had 1300+ linpack.

Whatever happened the first time with the 1.1b patch that was working with my ext2 (from the 2.1 customised days) seems to be gone after that ext2 format.

downloaded flixster to see where that would go. went to admin, settings, applicatrions and saw that i had the optino to move to sdcard, which would see it go to Fat32 partition, and checked quick settings and saw the internal storage gone down to 75.5mb.
[Milestone XT720 Android Development] ronnbon:
great!

and...

don't be annoyed of the repeatedly reported same media bug- as you told me yourself there are always people who thinks reading former post are wasted time...

Just ignore them and I will ranting and raving at them..
[Milestone XT720 Android Development] d23wilson:
LOL...i love it !!

sorry...i have not even had a drink myself and i am talking drunkenese. :)
[Milestone XT720 Android Development] ronnbon:
:D this pain kiler I took because of a twisted back is really great- I feel a little tipsy..
[Milestone XT720 Android Development] d23wilson:
ouch...dude..i hope you sitting a good chair then...i know sitting in front of a computer can only make backs worse.

i suggest doing some very gentle stretches whilst the pain killer is in action rather than sitting (possibly awkwardly) in the computer chair.

take care bro.
[Milestone XT720 Android Development] d23wilson:
also..tahnks for the replies to my rambles...i will leave them there in case others can make sense of them and feel they can contribute.

I think i will leave it and wait for the next release dext has just suggested

BUT..if you think it will only lead to more queries which will only take up time, and make this post more convoluted, then let me know and i will delete them.
[Milestone XT720 Android Development] ronnbon:
thanks

I guess I will better go to bed now- for me its 11:42pm... ;)
[Milestone XT720 Android Development] dateno1:
why need 50/60hz option on HDMI (i know hdmi needless it)

i use app2ext3 after leaked day and innstall 100+ apps but no slow or problem :D

dexter i think if you want to fix mediascanner's hearvy problem just replace /system/bin/mediaserver download from http://dateno1.egloos.com/28452 :) (they from droid rom)
[Milestone XT720 Android Development] alx294:
what I wanna know.... is how to use the tv out feature... unless its not used for viewing your phone screen on your tv like I thought lol
[Milestone XT720 Android Development] Dexter_nlb:
i tried different moto binaries and those are all the same, the primary function of the mediaserver is using libraries like libmedia and libmedia_jni, which is the important part of it, then comes libomx and libOMX and libwebcore for mediatypes and decoding..
[Milestone XT720 Android Development] Dexter_nlb:
use it in mediaplayer -> settings -> playontv, or supposedly in realhdmi app which makes your phone display on tv, but phone is off im told so its kinda fun controlling without seeing anything on phone..
[Milestone XT720 Android Development] alx294:
I've tried realhdmi, but its only really supposed to work with droid x... so part of the screen is cut off.
[Milestone XT720 Android Development] Dexter_nlb:
ok, i will maybe look into the app, because i think its just some parameters which are off, because droidx only send lower resolution to the tv maybe..

if media player can send 720p, im sure your desktop should be shown too..

but i could be wrong..
[Milestone XT720 Android Development] easye420:
Real hdmi worked perfect on cbw 2.1 and korean 2.2.1 but screen only gets cut off i dexters 2.2 I havnt tried 1.1b yet tho since I can't use move2sd and I dont wanna partition my sdcard. I believe I am using v 1.0.5.4 the new versions didn't work for me on 2.1.
[Milestone XT720 Android Development] alx294:
i dont know what setting i changed, but either in tv out or hdmi settings, i changed something and the screen got zoomed out, a LOT. from there i just zoomed in xD

EDIT: I changed the tv out setting to pal... I'm not sure how that worked out, but it did. I live in the US btw, also hdmi settings is set to automatic.
[Milestone XT720 Android Development] dateno1:
i alrealy know mediaserver binary is not important but 50R's hearvy cpu is can fix just replace it

also i suggest this overclock script download from http://dateno1.egloos.com/48460

it more easy to edit and add goverment and auto get address if you change os or modules and enable/disable overclock on openrecovery if you use my new version(not released yet) recovery :)

next version recovery will have apk type installer/launcher/setting and new recovery replace clockworkmod (based from defy recovery's source code) and more function :D
[Milestone XT720 Android Development] alsolh:
Is there any hope to get an RTL fix for the arabic language...

Thanks and great ROM, using daily now...
[Milestone XT720 Android Development] ghostboy:
I found a bug of 1.1b about the Motorola Overclock, it will return to default 550MHz at each boot even i click the option "Autoload on boot", I needed to set to 1 GHz manually after each boot, there is no problem for 1.1a since I test this problem by start everything at the most beginning, reflash the 2.1 rom, format SD Card then upgrade to 1.1a, there is no problem of Over Clocking Autoload to 1 GHz at every boot. Does anyone also encounter this problem or just my special case?
[Milestone XT720 Android Development] Riley600:
I am also experiencing the problem where Milestone Overclock defaults back to 550 mhz after each boot. I'm not sure how to fix it.
[Milestone XT720 Android Development] TG2008:
My Milestone is fine on 1.1b... it keeps my settings on reboot.

---

Could someone with speed issues or milestone problems try these steps for re-installing:

1. Remove SD Card from the phone and format it in Windows.

2. Install 2.1 (I used US BrightPoint), Root, turn off.

3. Install SD Card, turn on, unmount and format, then remove card, insert it back into Windows and copy over Nandroid folder and 1.1a files.

4. Now Re-Insert card and Mount.

5. Install OpenRecovery then reboot.

6. Install Recovery System, copy over 1.1a-Update (i.e. 1.1b via USB mode) to the update folder, then Recovery Boot.

7. Nandroid update via 1.1a. *Remember to Wipe All*

8. Reboot device, then Recovery-Reboot again.

9. Update 1.1b. *Wipe all again.*

Speed fast now?

Hope this helps.
[Milestone XT720 Android Development] warrenkb:
I am also unable to successfully load this site in the browser, very annoying not knowing which sites you can get to and which you can not.
[Milestone XT720 Android Development] ronnbon:
You mean this site?

I am sorry, but I don't have any problems with that. As long as I remind so far I had not any crashes the last day- but I also have to admit that I did not use it very much for surfing through the web.

And I don't have the milstone overclock problem- with the galaxy froyo update the media scanning bug is solved (I now you have solved it too, Dexter... ;)) my only problem at the moment is the not working metamorph...
[Milestone XT720 Android Development] R-D:
For some reason your browser has opened the full site and not redirected to the mobile version, would expect the same problem either way though. Regardless, others have commented on the same issue, I wish mine worked as well as yours sounds like it is working.

Question - why are your icons different, have you applied some additional theme?
[Milestone XT720 Android Development] Mioze7Ae:
I think ronnbon is running the galaxyfroyo theme that khalpowers posted. That's based on the 1.1 not 1.1a
[Milestone XT720 Android Development] ronnbon:
I did not want to doubt your browser problem- sorry- just wanted to report that I don't have it.

I also have no problem with the mobile site....

correct.
[Milestone XT720 Android Development] Canadaboy:
This URL will always crash my browser in 2.2.1b

http://www.howardforums.com/forum.php

(worked fine in 2.1 standard)
[Milestone XT720 Android Development] Mioze7Ae:
I think the big difference between 1.1 and 1.1a is that they use entirely different frameworks. 1.1a is based on the Milestone 2.2.1 leak. Dexter said he's identified some missing libraries (that's what kills the media scan on 1.1a). Missing libraries could also be behind the browser crashes (and the LauncherPro wierdness). I think we need to be a little patient wait for the next 1.1a/b series release.

It seems pointless to keep having people say that 1.1a/b are broken and then have people reply that 1.1 is working.
[Milestone XT720 Android Development] ronnbon:
I agree with that- but have to mention that I was running 1.1a before I did khalpowers galaxy froyo update- is that important?
[Milestone XT720 Android Development] Mioze7Ae:
I don't think so. The galaxyfroyo update is a nandroid system.img (the boot.img's are all the same UK kernel). When you installed galaxyfroyo you completely replaced the 1.1a system.img with a modified 1.1 system.img.
[Milestone XT720 Android Development] grigorbg:
This thread is spammed a lot... I suggest to clean it from the spam.

I`m not sure that is a good idea to have one tread for revisions, bug report, ideas and 3rd party user minds..... I came every day and there is a 10-20 post with non useful information for me, for Dexer and for new users.

4-5 pages someone ask about battery life - After 1st working day is was same or a little better performance - 9AM (100%) to 10PM (10%) with a lot of calls and 3G on all time (gmail, facebook and other sync on).

About the buttons led - Only after start the phone (cold boot) they don`t work 1st time. After that they work (on/off display to turn on). I see that yesterday when i was sunny they was off again and i must cover the sensor to turn on.

About lag - there is some lag (1-4 sec) when I start some apps. There is no matter if they are system/downloaded or installed on SDcard. Annd 90% it was only on 1st start of the app - Facebook and some other programs open normal if you want to access it again (but not kill in task manager).

------------

My ideas/wish list:

- If I`m right Korean rom has more free space that EU roms. Is it possible to make this in next revision ? OK, we have app2sd, we have froyo native apps2sd, but still some programs want to be installed only in phone memory and more memory is better :-)

- i was read in other thread that there is some SDcard speed optimizations (scripts). If they are ok and safe is it possible to be added in next revision ?

- Battery indicator for me is not accurate in all original/custom versions. There is ( i see it in ZTE blade and HTC desire 2.2) indicator with % and more detailed scale. This is not important, but I think that will be much more comfort for users.

- I love this build-in multi-touch keyboard but there is no a lot of languages. Is it possible to be added IN keyboard annd if there is a way can I help with that ? I`m not a programmer, but if someone ask me to made some language table/pics/xml or what is need and after that made the apk this can be done. And I think that if this is possible other people can do this job for their languages.

That is for me for the moment.
[Milestone XT720 Android Development] R-D:
Just to add some more info to the issue with the stock browser in 1.1b - if I clear Cache and Data for the Browser app, it does not seem to crash (repeatedly) again until bunch more sites are visited. Then they will randomly and consistently crash again until Data/Cache are cleared once more.
[Milestone XT720 Android Development] khalpowers:
nope...i do optimization from dexter 1.1a and move cache to sd..patch1,1b also works with galaxyfroyo...only facebook still can't sync.:)
[Milestone XT720 Android Development] ronnbon:
I don't really agree with that. First not everything which is not usefull for you might be usefull for another person and second- by comparison to other threads- this is really not much spammed- I am somebody who is rather sensitiv to unrelated post.

If you refer to some of the just personal post I did the last two days- I don't think that this destroying this thread, don't you?

Where I agree, is the problem with the different versions, it might be usefull to relate every post to a version- like 1.1/ 1.1a/ galaxyfroyo update...

so I am sure some user who read this...

will disagree because of other experiences with their version. ;)

and just to mention: this

is also mentioned before...

and this, for example,

is not usefull for me- but I wouldn't declare it as needless for this reason. :rolleyes:
[Milestone XT720 Android Development] grigorbg:
Yes,

Most of these are mentioned before... somewhere in the deep... That`s the problem (IMO).

I know that there is few versions, different users and stiles and even request... and I think that maybe is not a bad idea to have some separation of the problems/wishes.
[Milestone XT720 Android Development] Canadaboy:
Bug: .wav no longer work

Status Update: non-specific to Dexter's Froyo 2.2.1

New Findings: Did some additional looking at this problem. This seems to be a 2.2/2.2.1/2.2.2 issue with .wav not supported. Lots of material on this.

New Solution: Download "Wireless Wave Free" and select that application when opening up .wav file attachements from email. Solution is free and works very very well easy.

New standing: Bug closed.
[Milestone XT720 Android Development] Den88:
Dexter_nlb

Can you add "Fix - two finger rotation" for Google maps in upgrate?
[Milestone XT720 Android Development] JerseySeven:
XT720 from Starhub Singapore?

I have the XT720 from Starhub Singapore. Do I still follow the normal procedure on the 1st page of this thread??
[Milestone XT720 Android Development] Dexter_nlb:
i will leave that as a custom fix, it require the whole build.prop replaced, from ie. a samsung galaxy with model+sig etc include, then it works.

and i personally dont want to hack maps to work with all models.
[Milestone XT720 Android Development] ghostboy:
Problem still occur, return to default speed 550 MHz at each boot, but anyway, thanks a lot for your help.
[Milestone XT720 Android Development] Dexter_nlb:
default speed makes sense is normal behaviour, nothing changed here.. if you go back and use my "oc-settings" file you can set the speed at bootup..
[Milestone XT720 Android Development] youbaoer:
When I applied the 1.1b update.zip, reboot happened once soon after that patch.

Hope I am the only unlucky bear.
[Milestone XT720 Android Development] alsolh:
Could you please advise me where to get an RTL fix for Arabic characters to be displayed from right to left?

Thanks...
[Milestone XT720 Android Development] ronnbon:
Did you do a search here at the xda forum? I found a lot- I don't know if theres the right one for you among the search results-but its always nice to look yourself first and ask then more specific in case you will not find a solution. ;) If you already searched- you could tell for example which one does not work for you and what exactly does not work.
[Milestone XT720 Android Development] ronnbon:
and than? What does it means- that the phone is constantly rebooting?

Did you try to reflash to, lets say 1.1a, and do the patching again?
[Milestone XT720 Android Development] youbaoer:
just once.
[Milestone XT720 Android Development] eshelly:
v1.2

I noticed version 1.2 is out on your site Dexter, is this tasty goodness ready for use?
[Milestone XT720 Android Development] metalizer2000:
please wait for dexter's instruction,he's not yet tell us about a new update
[Milestone XT720 Android Development] ronnbon:
sorry, you wrote that before, I missed it.
[Milestone XT720 Android Development] sariugur:
yes i've seen it too, but i also think we should wait... maybe he adds something in the last minute or there might be an important info for it...
[Milestone XT720 Android Development] Mioze7Ae:
Well, like I said earlier, I was trying to figure out what to port from galaxyfroyo to 1.1b to make the media scan work. I extracted the /system directories of 1.1, 1.1a, 1.1b and galaxyfroyo and compared them (using diff -qr x/ y/ | wc -l). Here's the number of changed files between galaxyfroyo and

galaxyfroyo-system vs dexter-11a-system: 152 different files

galaxyfroyo-system vs dexter-11b-system: 161 different files

galaxyfroyo-system vs dexter-11-system: 46 different files

galaxyfroyo-system vs galaxyfroyo-system: 0 different files

On the other hand, changed files starting from dexter-11-system:

dexter-11-system vs dexter-11a-system: 125 different files

dexter-11-system vs dexter-11b-system: 134 different files

dexter-11-system vs dexter-11-system: 0 different files

dexter-11-system vs galaxyfroyo-system: 46 different files

It seems pretty clear based on the number different files that galaxyfroyo's system.img is based on dexter's 1.1 not 1.1a or 1.1b since going from 1.1 to 1.1a or b requires over 125 changes but galaxyfroyo only has 46 changes.

Edit: Ah, I see. It's possible to apply the 1.1b patch to both 1.1 and 1.1a--the update contains updated shell scripts in the ramdisk, some kernel modules and replacement facebook and setting apks. So we have to distinguish between 1.1+1.1b and 1.1a+1.1b ;)
[Milestone XT720 Android Development] Dexter_nlb:
v1.2 online

Changelog v1.2 (Android v2.2.1 edition) Download nandroid image here

- fixed mediascanner issue

- removed old mediagallery (not supported) , now only Gallery3D available.

- removed VoiceCommands app, cpu intensive and taking much storage.

Note, due to the bug in mediascanner and decoding and on top ext2sd support, quadrant benchmarks drastically drops when ext2 is enabled, if the sdcard is not a class6 or higher.. but media decoding bug alone caused incorrect reportings, so dont be surprised when you test now.

Its a full nandroid for new and existing users. if you're using 1.1+ you do not need to WIPE settings, just restore nandroid and reboot, signatures will be recalculated and bootup takes maybe little more, but it works fine.
​
[Milestone XT720 Android Development] AllGamer:
Awesome work!

Thanks Dexter
[Milestone XT720 Android Development] DemoJameson:
good job, thank you.
[Milestone XT720 Android Development] Dexter_nlb:
make the media scan work is not just about changing some binary when you mix frameworks. i had to modify part of the framework to make it korean 2.2 compatible, as its diferrent from milestone in functions, but to keep korean functionality the calls in framwork needed changing.

so if you copy the 1.1 framework and 1.1b together and on top mix the galaxyfroyo changes, it becomes really confusing.

the normal way of making a graphics mod is to make an update.zip with framework, apk's changes. doing a full nandroid makes it alot harder to maintain as long as framework does not change, so people cannot easily restore the mod on top of v1.2 as example now. (and i read it based on 1.1)

so for others, make a update.zip and find a good updater-script you can use.. my MotoFrenzy mod for milestone has similar theme's added with a rather simple updater-script used. (do note themes buggy and su gets no superuser permission but rest is good)