14 lines
346 B
JavaScript
14 lines
346 B
JavaScript
const lat = 27.9864882;
|
|
const lng = 33.7279001;
|
|
|
|
Java.perform(function () {
|
|
var Location = Java.use("android.location.Location");
|
|
Location.getLatitude.implementation = function() {
|
|
send("Overwriting Lat to " + lat);
|
|
return lat;
|
|
}
|
|
Location.getLongitude.implementation = function() {
|
|
send("Overwriting Lng to " + lng);
|
|
return lng;
|
|
}
|
|
}) |