yashsingh1/xdaforums huggingface dataset:
[Touch Pro2, Tilt 2 Android Development] Entropy512:
For some reason my copy-and-pasted #defines for D() were failing.

Using LOGD() directly works.

I'm adding another set of LOGD()s now - It appears that something is calling update_gps_location() with bogus data.

BINGO! - It appears we are receiving PDSM_PD_EVENT_HEIGHT and PDSM_PD_EVENT_VELOCITY events prior to a position fix. No clue why - but even though GPS_LOCATION_HAS_LAT_LONG is not set, apps assume lat/long is valid when an update_gps_position() callback occurs.

Going to make it so we only do the update_gps_location() callback when GPS_LOCATION_HAS_LAT_LONG is set. Also going to try and figure out the right situations where we can call update_gps_svstatus() - right now it is only done when we get a PDSM_PD_EVENT_POS.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
This is a good suggestion, but the bind mount statement would go in the froyo.user.conf, not the startup.txt ;).
[Touch Pro2, Tilt 2 Android Development] bzo:
yea, yea, that's what I meant :p, thanks for the correction
[Touch Pro2, Tilt 2 Android Development] Entropy512:
Figured that one out. :) I haven't figured out how to just rebuild the library without rebuilding everything though. (edit, figured it out: make out/target/product/msm/system/lib/libhardware_legacy.so )

I think I've got the "invalid data" issue solved - instead of calling update_gps_location() when fix.flags is anything nonzero, only call it when GPS_LOCATION_HAS_LAT_LONG is set. I have it working on my phone, but I need to clean up this mess of logging lines before generating a patch.

I also want to figure out how to get SV status outside of PDSM_PD_EVENT_POS so people know how close they are to a lock. Not sure how to do this yet.
[Touch Pro2, Tilt 2 Android Development] bzo:
getting the SV status pre-fix should work fine. It is handled by dispatch_pdsm_ext(), and you can see it in action by using an app like "GPS Test" to see the visible satellite status as it tries to get a fix.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
At least on my Tilt2, dispatch_pdsm_ext() never gets entered. Maybe it's something specific to GPS Status and Toolbox (see first post comparing behaviors between the Tilt2 and a Huawei S7), I'll try GPS Test to see if maybe it is doing something to trigger PDSM_EXT to occur.

An interesting thing I see is that pre-fix, before the anomalous PDSM_PD_EVENT_HEIGHT events, I will see PDSM_PD events with event=0 (e.g. no event flags set.) I'll try to grab a logdump tonight... I wonder if those PDSM_PD events with event=0 contain valid SV status data.

Edit:

I will usually get PDSM PDs in this order when not locked:

pdsm_client_get_position() is called

PDSM_PD dispatch is entered in the following pattern:

event = 0x0 (nothing??? Maybe this is an SV update?)

0x20 (BEGIN)

0x4 (HEIGHT - This is what was causing the anomalous fixes near 0,0 - we had HEIGHT but no POS so timestamp and lat/long were uninitialized garbage) - Once locked this stays as 0x4

0x4 (HEIGHT - Once locked this transitions to 0x7 to indicate POS, HEIGHT, VELOCITY)

0x10 (END)

0x8 (DONE)

I'm trying ChartCross GPS Test - same exact behavior, PDSM_EXT is never happening, so no SV status until lock (which hasn't happened yet, testing indoors = this takes a LONG time even with AGPS data downloaded)
[Touch Pro2, Tilt 2 Android Development] bzo:
When I last worked on this, I had a diam500. It sv status was definately working with that device (and pretty sure on diam100/raph100/raph800 etc). It could be that with the rhodium/amss6125 that the rpc procid is different for that event.

With the right debugging output on the rpc code, you should be able to see everything that comes back and determine if we're looking at the right procid for dispatch_pdsm_ext() on the rhodium.

Getting a cold lock will always take a long time with the current code, unless you pre-initialize it in windows mobile. The code doesn't implement any of the speed ups like time/location injection.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
I've always wondered if we could fix this...? I think GPS Test is supposed to do the same thing as QuickGPS in WinMo does... what's preventing it from working correctly? This will probably become much more important when we're on NAND.
[Touch Pro2, Tilt 2 Android Development] bzo:
Someone just needs to code it up. I don't think there is anything blocking us aside from someone's expertise and time.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
And possibly documentation of the appropriate commands for time/loc injection...

Unless I somehow botched *just* that one log line, we weren't getting any unknown serv ids in dispatch() - I added a log line to print out if we got any. Just PDSM_PDs, nothing else.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
Just uploaded a test library that should fix the 0,0 bug.

The patch against the xdandroid source tree used to build this library was submitted to the xdandroid-dev mailing list yesterday.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Works for me, thanks man! I had some odd issues with my user.conf file, seem to be user error. Don't get it, it was just a LF at the end of the file... Very strange.

But, your patch does work great, again thank you. Hopefully you can figure out the rest of it, perhaps a commit should wait for that... No offense, this is a great patch - just seems like your GPS quest is not yet complete ;)
[Touch Pro2, Tilt 2 Android Development] Entropy512:
No reason for the GPS quest to only generate one patch. :)

I worry about holding off on commits because of how long it might be until the next one - the next step in the GPS quest is going to be a LOT more difficult than this one was.

Also the one possible issue with this commit is that the amount of debugging output is pretty decent - it may be desirable (up to the devs) to make GPS_DEBUG 0 instead of 1 in releases.
[Touch Pro2, Tilt 2 Android Development] anotherhawkeye:
Thanks, Entropy. Have been waiting for this fix for a long time. The 0,0 fix was trying me mad :). Will give it a try.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
For the sake of completeness, while sending the patch to xdandroid-dev and indicating I did that technically meets the word of the GPL, I don't like technicalities.

For ease of access, the patch is also attached here. It is against the froyo xdandroid branch.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
This library should no longer be needed - It has been committed to the xdandroid source tree, and I believe it is part of the FRX06 release.

EDIT: Arrggh has told me that the commit did not appear to make it into FRX06.
[Touch Pro2, Tilt 2 Android Development] anish88:
has there been any fix to this? i am still getting 0,0
[Touch Pro2, Tilt 2 Android Development] highlandsun:
The fix went into FRX06, but the rootfs overrode it so it didn't show up.
[Touch Pro2, Tilt 2 Android Development] anish88:
im sorry im stupid, so i guess that means no?
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Hrm, thought I posted a reply to this thread...

At any rate, that means you have to apply the fix manually, per the first post - or wait for the next release, it will be in there.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
Who builds/maintains rootfs? No problems with the system image, it's rootfs that is the problem.

No point in integrating the change into yet another rootfs branch - enough exist and this fix can be implemented using bindmounting as described in my first post. However it would be nice if the default rootfs didn't override the fix. :)
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Who else but stine?

It'll be fixed in the next version ;).
[Touch Pro2, Tilt 2 Android Development] highlandsun:
Yeah, I removed the bindmounts in my series of rootfs patches...
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
The time has come to bump this thread...

Why? Well a kind soul by the name of Stinger22 (thanks again!) has pointed me to what I hoped would happen...

The guys on LEO (HD2) have gotten advanced GPS features like aGPS, XTRA, warm injection, the works, to work!

Can any of our wizards make it work for us? Please say yes! (hyc, emwe, Entropy512 I'm lookin at you ;)) Source code/thread is here!

[19.July.2011][Dev] GPS Libraries v1.8 with AGPS support for HD2 Gingerbread
[Touch Pro2, Tilt 2 Android Development] Eodun:
Wooow!

It's the last thing I need to stay in WM less than 30 seconds each reboot! :DDD Please please please!

I'll have a look too ;)
[Touch Pro2, Tilt 2 Android Development] Entropy512:
While I've been primarily playing with my Infuse lately, I might try taking a look at this.

How useful that drop is depends on whether the HD2's AMSS has the same interface as ours or a different one. Unfortunately I suspect that since the HD2 is a Snapdragon, the AMSS is going to be different. But at least this might provide a starting point for cleaning up our codebase.

I don't have too much time this week to look into it much though.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
HD2 is certainly a Snapdragon device.

I didn't expect the code to just 'drop-in' to our port... That would be too easy after all. But using the code as a base should allow us to get it to work on our port - hopefully? It's definitely beyond me, I'm just a bad messenger at this point :p.
[Touch Pro2, Tilt 2 Android Development] Entropy512:
Well, from looking at the code - It looks like the WinMo AMSS for Snapdragons has an almost identical interface to the MSM7k interface, the big delta is WinMo vs. Android. The source is almost identical to ours!

Maybe I'll poke at it more next week.
[Touch Pro2, Tilt 2 Android Development] arrrghhh:
Work your magic... :D

Would be great to have this, especially when NAND becomes stable...
[EVO 4G Q&A, Help & Troubleshooting] Sulten:
Ok so i've installed CM7 RC1 and it looks like the sms icon is chomp? is this correct? and if do can i download themes for it?

I know about handcent and others but i would like to keep it within the sms app and put themes through them rather then download other sms apps.
[EVO 4G Q&A, Help & Troubleshooting] nolageek:
What are you talking about? :) CM7 is AOSP only - I seriously doubt ChompSMS has been merged with AOSP. (Android Open Source Project)
[EVO 4G Q&A, Help & Troubleshooting] sultan.of.swing:
Definitely not chomp, pure AOSP.
[EVO 4G Q&A, Help & Troubleshooting] Sulten:
Ok thanks, ill have to download something. thanks.
[EVO 4G Q&A, Help & Troubleshooting] donatom3:
Chomp's icon actually looks like AOSP's messaging icon. You might as well Flash CM7 nightly 7 though, quite a few improvements from Rc1 such as 4g, Shiznul's advanced camera options, ability to put battery percentage in bar and an option in the AOSP messaging app to split texts over 160 characters.
[Nexus S Themes and Apps] mojonation1487:
Anyone got the APK for the stock gingerbread launcher. All the ones online are for nexus one 2.2. No 3D app drawer, nada. Anyone have the file ripped straight for a stock nexus s?
[Nexus S Themes and Apps] dario3040:
There is one on the Android market that has 3d scrolling.

You can also try Franks Cm7 mod, it replaces ADW with The stock launcher
[Nexus S Themes and Apps] kenvan19:
Do not post requests or apps in the Development Section.
[Nexus S Themes and Apps] tmhung:
http://xdaforums.com/showthread.php?t=957777 <==== this link for u
[Epic 4G General] 1greek4u:
So I'm on EB13 and I can't connect to USB storage. I hit the "connect USB Storage" button but there's no response. Any ideas?
[Epic 4G General] cjobanion:
Do you still have the USB debugging checked in your settings>applications>development?

I ask because when I flashed EB13, it defaulted to unchecked (security, I'm sure). I spent a few hectic minutes trying to decide if I wanted to just use my sd card adapter and my computer until a fix came out or flash back to the recovery I had made. Luckily, I took a few more breaths ( LOL ) and started with the "little" things it might have been!

Hope this helps!
[Epic 4G General] 1greek4u:
No, lol USB debugging was off. I kept trying to get it to work by restarting the phone, it finally worked when I pulled the battery.
[Epic 4G General] copticwalad:
I had the same issue and even though I restarted several times, the ONLY thing that worked was pulling the battery for a few seconds. Strange but effective. Thanks!
[Epic 4G General] thizzmaster:
if pulling battery dont work flash back to earlier version before eb13 using cwm, and then re-odin eb13...worked for me
[Epic 4G General] robl45:
so i'm getting this same problem, i hit the button and nothing happens, but it works fine when usb debugging is activated. starting doing it with bonsai, i flashed acs and still doing it. so i have to pull the battery to fix it?
[Epic 4G General] murso74:
yeah... only works with debugging turned on. forgot to add that to the bug thread for EB13. no one tested that ****ing rom
[Epic 4G General] robl45:
well i'm on eb13 and it was working fine yesterday without using debugging so I don't think its the rom.
[Vibrant Q&A, Help & Troubleshooting] sjt88:
It seems to me that custom Kernels such as overstock, DOW, Dragon, ect all seem to destroy the ability to play the avatar movie. Yes, I've reset the DRM cache data under manage applications and rebooted and no such luck with the custom kernels. Now Bionix V 1.2.1 has always played avatar fine and when I tested other kernels it was nice to know that I could go back to the the KB1 + voodoo via SGS Flasher and watch avatar. The reason I love Bionix is because everything works for me. Now that overstock is included in Bionix 1.3 avatar is broken.

So now for my question...what is it about custom kernels versus the KB1 + voodoo kernel that breaks avatar? And why can the KB1 + voodoo kernel play it? I think if the devs figure this out, avatar can be fixed.

FYI: it's not a deal breaker for me, I'm still flashing 1.3 the thought just struck me that it must be something in the kernel that is breaking avatar. I guess I'll just have to flash my nandroid back up if I want to watch avatar :)
[Vibrant Q&A, Help & Troubleshooting] djordan79:
How many times do you want to watch Avatar dude? :-)
[Vibrant Q&A, Help & Troubleshooting] sjt88:
I just watched it this past weekend, and it's a good way to wow people with the screen.

But do I really need to justify wanting to use something I paid for?
[Vibrant Q&A, Help & Troubleshooting] brandonyoung:
Blame the movie companies for their insistence on using annoying copy protection.
[Vibrant Q&A, Help & Troubleshooting] Br1cK'd:
Its something messed up with the DRM, and if you clear the DRM information, it takes a few reboots (random number, some people can reboot 5 times and report it works, I remember one who reported three days later it started working out of the blue) for the phone to get it back. Its happening, hit or miss seemingly, on all the recent roms. Kernel, modem, what rom chef you use, doesn't seem to matter. Mine was working on Loki, but testing, I cleared my DRM data, and it has yet to restore. Minor inconvenience IMHO, just shedding maybe a little light on it for you.
[Vibrant Q&A, Help & Troubleshooting] brandonyoung:
So is there some minimum time to wait between reboots, and should I clear the data between each?
[Vibrant Q&A, Help & Troubleshooting] mystycs:
How do you clear DRM?
[Vibrant Q&A, Help & Troubleshooting] Emama:
A dumb Q: How to you play it with Bionix? Where can I flash the Avatar.apk
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
I had an att tech that i am friends with root my phone but im not sure what rom it is. I was actually looking on how to switch to another rom. Can anyone help me? All help is appreciated Thanks..
[Captivate Q&A, Help & Troubleshooting] Dr.GreenLeaf:
If all he did was root, then its still stock rom. Go to settings/about phone/ and look at firmware and all that info is there.
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Settings, about phone

Baseband

Kernel

Build.

What do they say
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
Im sorry he did put a rom on it. Baseband-i9000ugjk4 kernel-2.6.32.9 build# firefly 2.2 im wanting to find a better rom. But im not good at this stuff lol. Can anyone help
[Captivate Q&A, Help & Troubleshooting] mcord11758:
What are you looking to flash
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
My samsung captivate
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Pay the man

What rom do you want to flash

I already realized we were not talking about your ford pinto
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
What rom is pretty much the best one..
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Matter of opinion, impossible to answer
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
Well lets just say i am wanting to just try diffetent roms. But would like to be able to go back to the current one im on now if im not satsified
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Go to my files, do you have a file on there that says fire fly
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
Yes it says firefly_2-2.zip
[Captivate Q&A, Help & Troubleshooting] mcord11758:
You ever want to go back you flash that.

Pick a rom
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
soo i see there is a upgrade from 2.2 to 2.3 how do i do that
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Go to ff website, downloads, dl update 2.2 to 2.3

Let me know when done

Link to website on op of thread
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok thanks. Give me a few
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
i am downloading the three mirros now.. there are two more that said clock notification on status bar and no clock notification in status bar. do i have to download both clocks?
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Just one version of the update, the mirrors are the same files
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok i downloadeds mirror 1 now what?
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Go to my files/download

Look for the download

Is it there
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok i messed up. i downloaded it to my computer and not phone
[Captivate Q&A, Help & Troubleshooting] bdpyo:
Download and flash serendipity.
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Not a problem, mount phone to pc, put file into internal sd
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok i have it in my download file now
[Captivate Q&A, Help & Troubleshooting] mcord11758:
This us just an update but the process us similar to flashing another rom

Long press power button

Select recovery

Select instal zip from sd

Choose zip

Download/fire fly update

Confirm

Phone will flash

Back

Reboot phone

If you were flashing a rom we would need to backup things, updates do not require this
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok im gonna try it. and i was suppose to put the new update in my external sd correct?
[Captivate Q&A, Help & Troubleshooting] circuitjerker:
....a better rom....they dont get much better...whatta ya lookin for.exactly?
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Internal sd
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
all i see is external sd and then there is one that just says SD
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Where is the file currently
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
the firefly update is still in the external. but as soon as i go to my files. the SD is on the very bottom by the External sd
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Go to external sd in my files, find file, long press, select copy, select paste on bottom

That should place it where yet needs to be
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok im confused sorry. you said paste on bottom? paste where on bottom. the update is also on the download page. when I go to my files and then to download it is in the download section
[Captivate Q&A, Help & Troubleshooting] mcord11758:
You said the file is on your external sd

When you select copy, the program automatically goes to your internal sd and there is an option to paste on the bottom. Paste

This places a copy if the file on your internal sd
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok soo i copied it to the sd folder.
[Captivate Q&A, Help & Troubleshooting] mcord11758:
This is what you need to do
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok im gonna try it hold on
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok all i see is update zip underneath firefly 2.2
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Not sure where you placed it but it should be there if toy follows what I posted
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
yes i did. all i see is firefly 2.2 and underneath it says update.zip
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Go back, twice, reboot phone, let me know when back up
[Captivate Q&A, Help & Troubleshooting] mcord11758:
If you followed steps I posted it should of been there
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
wow ok it said back menu disbaled
[Captivate Q&A, Help & Troubleshooting] mcord11758:
What?

You are in clockwork recovery correct?

If you can't go back just pull battery. Then power back on
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
yep in went in clock recovery i just took battery outand powered back on
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
now it says reboot system now or go back
[Captivate Q&A, Help & Troubleshooting] mcord11758:
You booted up?

When booted up go to my files

Scroll up and down

Do you see the update file
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok im sorry.. lol. i re added it. now when i go to my files i see the update.
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Repeat steps above
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
ok sweet!!! I appreciate you taking the time and walking me through the steps!!!
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
is there anything else i need to do now since i have rebooted my phone and im back to the home screen
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Go to settings, about phone, bottom

Build should read 2.3 if it does, good to go
[Captivate Q&A, Help & Troubleshooting] brandonhinds:
Yep it does!!! It has some new features also. I really appreciate it!!!
[Captivate Q&A, Help & Troubleshooting] mcord11758:
Enjoy, no problem
[Captivate Q&A, Help & Troubleshooting] rpicaso:
HAHAHAHAHAH! That was fukkin priceless...:p:D
[Captivate Q&A, Help & Troubleshooting] goob1284:
Not gonna lie, I rarely read entire posts, but this was soooo funny! Hope you enjoy firefly! And good work on giving him instructions
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] knjigor:
Ok, I know that this is mainly because of sd card incompatibility, but just now I have done some tests, I took out microsd from this post out of my hd2 and took som other cards with this results:

- transcend 8 gb cl2 - not working at all

- kingston 2gb cl2 -used to work, not any more

- kingston 8 gb cl4 - working

- transcend 8gb cl6 - working

Wierd thing,

I tried to make my phone work somehow becouse i tought that restarting have something with localization (regional and language settings).

On both cards i have instaled complete htc hub, and restarted fiew times, all work fine, but no custom settings, but when i custommited my settings (on kingstone card it hase been done automaticly when i updated connection settings) phone keeps restarting after htc screen and i have to do hard reset and before that took out my sd card.

now ill try to do same thing but except installing connection manager and setting localization (not so important to me at all)

Maby i'm wrong, but...

btw, i'm from Serbia
[HD2 Windows Phone 7 Q&A, Help & Troubleshooting an] knjigor:
So far so good, instaled everithing on cl6 8 gb transcend activated and left regional at united states, work's ok for now

Maby that is problem, at last for me I hopoe :) :) :D :D