-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Location: Entire rewrite of the location subsystem
No modules anymore, they became unreliable in recent Android versions due to "energy savings".
- Loading branch information
Showing
141 changed files
with
11,420 additions
and
1,946 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
play-services-basement/src/main/java/org/microg/gms/common/Hide.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023 microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.microg.gms.common; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Hide the class, method or field from the public API. | ||
*/ | ||
@Retention(RetentionPolicy.SOURCE) | ||
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR}) | ||
public @interface Hide { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,72 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ SPDX-FileCopyrightText: 2020, microG Project Team | ||
~ SPDX-FileCopyrightText: 2020 microG Project Team | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
<manifest package="org.microg.gms.location.core" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
<manifest xmlns:tools="http://schemas.android.com/tools" | ||
package="org.microg.gms.location.core" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | ||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> | ||
<uses-permission android:name="android.permission.BODY_SENSORS"/> | ||
|
||
<uses-permission android:name="android.permission.LOCATION_HARDWARE" | ||
tools:ignore="ProtectedPermissions"/> | ||
<uses-permission android:name="android.permission.NETWORK_SCAN" | ||
tools:ignore="ProtectedPermissions"/> | ||
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" | ||
tools:ignore="ProtectedPermissions"/> | ||
<uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" | ||
tools:ignore="ProtectedPermissions"/> | ||
<uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" | ||
tools:ignore="ProtectedPermissions"/> | ||
<uses-permission android:name="android.permission.WATCH_APPOPS" | ||
tools:ignore="ProtectedPermissions"/> | ||
|
||
<application> | ||
<uses-library android:name="com.android.location.provider" /> | ||
|
||
<service android:name="org.microg.gms.location.GoogleLocationManagerService"> | ||
<service | ||
android:name="org.microg.gms.location.manager.LocationManagerService" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="com.google.android.location.internal.GoogleLocationManagerService.START"/> | ||
</intent-filter> | ||
</service> | ||
<service android:name="org.microg.gms.location.ReportingAndroidService"> | ||
<service android:name="org.microg.gms.location.reporting.ReportingAndroidService" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="com.google.android.location.reporting.service.START"/> | ||
<action android:name="com.google.android.gms.location.reporting.service.START"/> | ||
|
||
<category android:name="android.intent.category.DEFAULT"/> | ||
</intent-filter> | ||
</service> | ||
<service | ||
android:name="org.microg.gms.location.network.NetworkLocationService" | ||
android:exported="false"/> | ||
<service | ||
android:name="org.microg.gms.location.provider.NetworkLocationProviderService" | ||
android:exported="true" | ||
android:permission="android.permission.WRITE_SECURE_SETTINGS"> | ||
<intent-filter> | ||
<action android:name="com.android.location.service.v2.NetworkLocationProvider"/> | ||
<action android:name="com.android.location.service.v3.NetworkLocationProvider"/> | ||
</intent-filter> | ||
<meta-data android:name="serviceVersion" android:value="2"/> | ||
</service> | ||
<service | ||
android:name="org.microg.gms.location.provider.GeocodeProviderService" | ||
android:exported="true" | ||
android:permission="android.permission.WRITE_SECURE_SETTINGS"> | ||
<intent-filter> | ||
<action android:name="com.android.location.service.GeocodeProvider"/> | ||
<action android:name="com.google.android.location.GeocodeProvider"/> | ||
</intent-filter> | ||
<meta-data android:name="serviceVersion" android:value="2"/> | ||
</service> | ||
</application> | ||
</manifest> |
Oops, something went wrong.