Skip to content

Commit

Permalink
Reporting: Google applications are allowed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 committed Feb 8, 2025
1 parent 27bacdd commit eb00648
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import org.microg.gms.common.GooglePackagePermission
import org.microg.gms.common.PackageUtils
import org.microg.gms.utils.warnOnTransactionIssues

/**
* https://userlocation.googleapis.com/userlocation.UserLocationReportingService/GetApiSettings
* Follow-up: Fill ReportingState based on AccountConfig returned by the interface and persistence processing
*/

//import com.google.android.gms.location.places.PlaceReport;
class ReportingServiceInstance(private val context: Context, private val packageName: String) : IReportingService.Stub() {

Expand All @@ -22,6 +27,7 @@ class ReportingServiceInstance(private val context: Context, private val package
val state = ReportingState()
if (PackageUtils.callerHasGooglePackagePermission(context, GooglePackagePermission.REPORTING)) {
state.deviceTag = 0
state.allowed = true
}
return state
}
Expand Down

0 comments on commit eb00648

Please sign in to comment.