Skip to content

Commit

Permalink
Implemented CellInfoCallback() & more changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ploink committed Mar 4, 2020
1 parent bfbce30 commit 8e10746
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ android {
targetSdkVersion 29
versionCode 69
versionName "1.4.23-ploink"
setProperty("archivesBaseName", "GsmBackend-$versionName")
}

buildTypes {
Expand Down Expand Up @@ -47,7 +48,6 @@ dependencies {
implementation 'com.octo.android.robospice:robospice:1.4.14'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.github.machinarius:preferencefragment:0.1.2'
implementation 'org.jetbrains:annotations-java5:15.0'
}


1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!--
Temporarily REMOVED from service tag until org.microg.nlp is fixed:
android:permission="android.permission.ACCESS_COARSE_LOCATION"
https://github.com/microg/android_packages_apps_GmsCore/issues/986
-->

<application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ public void onCellInfoChanged(List<android.telephony.CellInfo> cellInfo) {

@Override
protected synchronized Location update() {
// https://developer.android.com/guide/components/services
String s = Thread.currentThread().getStackTrace()[3].getClassName();
if (!s.equals("org.microg.nlp.api.LocationBackendService$Backend")) {
Log.e(TAG, "ACCESS DENIED for " + s);
return null;
}

if (DEBUG) Log.i(TAG, "update()");

if (Build.VERSION.SDK_INT >= 29 && tm != null) {
Expand Down

0 comments on commit 8e10746

Please sign in to comment.