Closed Bug 1332434 Opened 7 years ago Closed 4 years ago

Add support for enabling Baidu geolocation via a preference

Categories

(Firefox for Android Graveyard :: General, defect, P5)

defect

Tracking

(firefox53 affected)

RESOLVED WONTFIX
Tracking Status
firefox53 --- affected

People

(Reporter: mkaply, Assigned: mkaply)

References

Details

Attachments

(1 file)

The MozillaOnline version of Firefox currently has code changes to enable Baidu geolocation:

https://github.com/MozillaOnline/gecko-dev/commit/924b209f06992083a91b6f6e14af6d91c281d192

We should provide this in the core Fennec and allow it to be turned on via a preference for the Chinese distribution.
> BaiduLBS_Android.jar

I wonder if the source code of this lib is available.
It does not appear to be. The jar is obtained from here:

http://lbsyun.baidu.com/index.php?title=android-locsdk
So while we are waiting on legal reviews, I thought it would be worthwhile to at least get some code together.

This code is based on the MozillaOnline patch:

https://github.com/MozillaOnline/gecko-dev/commit/e88d7578327aa9005e375c27bfdef107eff94c71

but I've worked to completely separate the Baidu code out so that it can be turned on/off with a build switch.

All Mozilla China has to do is drop in the jar and so and things will build.

I'm not sure if the locations of these files are correct; it's based on the work they did.
Assignee: nobody → mozilla
Note that for this to pass tests, we'll need a way to turn off Gradle linting for the BaiduLocation.java file since none of the references in the file are valid without the .jar.
Comment on attachment 8877306 [details]
Bug 1332434 - Add Baidu location support code (no libraries).

https://reviewboard.mozilla.org/r/148634/#review154052
Attachment #8877306 - Flags: review?(snorp) → review+
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195

Needinfo :susheel if you think this bug should be re-triaged.
Priority: -- → P5

No more fennec.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: