diff --git a/play-services-base-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java b/play-services-base-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java
index 50c3445f..539f4ed4 100644
--- a/play-services-base-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java
+++ b/play-services-base-core/src/main/java/org/microg/gms/common/ForegroundServiceContext.java
@@ -15,6 +15,8 @@ import android.util.Log;
import androidx.annotation.RequiresApi;
+import org.microg.gms.base.core.R;
+
import java.util.List;
public class ForegroundServiceContext extends ContextWrapper {
@@ -66,14 +68,16 @@ public class ForegroundServiceContext extends ContextWrapper {
@RequiresApi(api = Build.VERSION_CODES.O)
private static Notification buildForegroundNotification(Context context) {
NotificationChannel channel = new NotificationChannel("foreground-service", "Foreground Service", NotificationManager.IMPORTANCE_NONE);
- channel.setLockscreenVisibility(Notification.VISIBILITY_SECRET);
channel.setShowBadge(false);
+ channel.setLockscreenVisibility(0);
channel.setVibrationPattern(new long[0]);
context.getSystemService(NotificationManager.class).createNotificationChannel(channel);
return new Notification.Builder(context, channel.getId())
.setOngoing(true)
.setContentTitle("Running in background")
- //.setSmallIcon(R.drawable.gcm_bell)
+ .setContentText("This notification ensures, that microG does not get killed.")
+ .setSmallIcon(R.drawable.ic_foreground_notification)
+ .setColor(0xFFFFFF)
.build();
}
}
diff --git a/play-services-base-core/src/main/res/drawable/ic_foreground_notification.xml b/play-services-base-core/src/main/res/drawable/ic_foreground_notification.xml
new file mode 100644
index 00000000..ec4310fd
--- /dev/null
+++ b/play-services-base-core/src/main/res/drawable/ic_foreground_notification.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/play-services-base-core/src/main/res/drawable/ic_microg.xml b/play-services-base-core/src/main/res/drawable/ic_microg.xml
new file mode 100644
index 00000000..dd607418
--- /dev/null
+++ b/play-services-base-core/src/main/res/drawable/ic_microg.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/play-services-core/src/main/AndroidManifest.xml b/play-services-core/src/main/AndroidManifest.xml
index 2695086a..093a47b5 100644
--- a/play-services-core/src/main/AndroidManifest.xml
+++ b/play-services-core/src/main/AndroidManifest.xml
@@ -34,7 +34,7 @@
+ android:icon="@mipmap/ic_launcher" />
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/play-services-core/src/main/res/mipmap-hdpi/ic_launcher.png b/play-services-core/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 00000000..bbac7d45
Binary files /dev/null and b/play-services-core/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/play-services-core/src/main/res/mipmap-mdpi/ic_launcher.png b/play-services-core/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 00000000..b571d1c0
Binary files /dev/null and b/play-services-core/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/play-services-core/src/main/res/mipmap-xhdpi/ic_launcher.png b/play-services-core/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 00000000..9af22edc
Binary files /dev/null and b/play-services-core/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/play-services-core/src/main/res/mipmap-xxhdpi/ic_launcher.png b/play-services-core/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 00000000..fbd9f4a3
Binary files /dev/null and b/play-services-core/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/play-services-core/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/play-services-core/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 00000000..dddf346f
Binary files /dev/null and b/play-services-core/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ