Calling force_xtra_injection() will return false in the following two situations.

Your device indeed not supports the AGPS injection.

Your device supports the AGPS injection but the GPS is used (i.e., the GPS engine is locked) when doing the AGPS injection.

I'm not sure which one matches your device.

Thanks again for the detailed reply tytung.

With that said, I went on to do my research to find out what have I done to make the widget stop working (as it was working fine at some point in time while I restoring phone to normal state after 4.3 upgrade). So something must have happened that's been preventing the AGPS injection, or as you said, GPS engine was being locked. I was unable to pinpoint any apps causing this kind of problem, and then I found "a solution". I simply switched GPS ON via the 'Quick Settings panel', and then performed the injection using the widget, and it worked. After switching to GPS OFF the same way, I was able to perform AGPS injections successfully. So that was it, sorry for the long-ish reply, but just wanted to lay it out there in case anyone else runs into this specific issue.

Thanks for your help and following up on this quickly tytung, the HD2 is that much better and alive just because of you. Thank you.

With that said, I went on to do my research to find out what have I done to make the widget stop working (as it was working fine at some point in time while I restoring phone to normal state after 4.3 upgrade). So something must have happened that's been preventing the AGPS injection, or as you said, GPS engine was being locked. I was unable to pinpoint any apps causing this kind of problem, and then I found "a solution". I simply switched GPS ON via the 'Quick Settings panel', and then performed the injection using the widget, and it worked. After switching to GPS OFF the same way, I was able to perform AGPS injections successfully. So that was it, sorry for the long-ish reply, but just wanted to lay it out there in case anyone else runs into this specific issue.

Thanks for your help and following up on this quickly tytung, the HD2 is that much better and alive just because of you. Thank you.

Thanks for your detailed reply and finding the solution.I switched GPS OFF and rebooted my HD2. Then I got the same failure message.I think I must check GPS ON/OFF setting before doing the AGPS injection.

@symbuzzer:Did you switch GPS ON when using my GB ROM? Maybe your "not supported" failure message is also caused by the GPS OFF setting.

Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

tytung wrote:Thanks for your detailed reply and finding the solution.I switched GPS OFF and rebooted my HD2. Then I got the same failure message.I think I must check GPS ON/OFF setting before doing the AGPS injection.

@symbuzzer:Did you switch GPS ON when using my GB ROM? Maybe your "not supported" failure message is also caused by the GPS OFF setting.

No, tytung. I will try when I have free time and feedback to you. Thanks.

Thanks for new version tytung.I have a feature request. If I didnt remember wrong, javelin's Notification toggles also open gps settings, doesnt turn on/off gps. But javelin added a feature in next versions which if it installed as a system app, it can turn on/off gps directly. Is that feature possible for agps injector?

symbuzzer wrote:Thanks for new version tytung.I have a feature request. If I didnt remember wrong, javelin's Notification toggles also open gps settings, doesnt turn on/off gps. But javelin added a feature in next versions which if it installed as a system app, it can turn on/off gps directly. Is that feature possible for agps injector?

I don't know who's javelin?I know we can force GPS on/off as long as the app is a system app. I have the source code in hand.But can I upload a system app to Google Play? I'm not sure so far.

Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

tytung wrote:I don't know who's javelin?I know we can force GPS on/off as long as the app is a system app. I have the source code in hand.But can I upload a system app to Google Play? I'm not sure so far.

His Notification Toggle also a Google Play app, but we can move it system. When he updates app, we can see update notifications and we can install newer version of it. I am using Link2SD for move this update to system. J4velin already updates it rarely like you. So no problem for me:)

His Notification Toggle also a Google Play app, but we can move it system. When he updates app, we can see update notifications and we can install newer version of it. I am using Link2SD for move this update to system. J4velin already updates it rarely like you. So no problem for me:)

Well, with root privileges, can we turn on/off gps?

Thanks.

The root privilege is necessary to move the app to the system partition.But AFAIK, the root privilege is not required to run this system app.