Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
feat(prayer): add SYSTEM_ALERT_WINDOW for reliable background alert display on Android 10+
9E55b787.df18104cc4bb
diff --git a/addons/prayer-times/README.md b/addons/prayer-times/README.mdindex b47ecb704..4683da236 100644--- a/addons/prayer-times/README.md+++ b/addons/prayer-times/README.md@@ -29,6 +29,7 @@ countdown to it, plus today's Gregorian and Hijri dates. Each prayer has its Ara| `SCHEDULE_EXACT_ALARM` | Exact alarm scheduling for prayer time reminders. || `RECEIVE_BOOT_COMPLETED` | Reschedules prayer alarms automatically when the TV boots. || `WAKE_LOCK` | Briefly wakes the screen to deliver the on-screen alert card. |+| `SYSTEM_ALERT_WINDOW` | Displays the unobtrusive top-right alert card over other apps and video playback on Android 10+. |That is all. What is sent: today's date, the latitude and longitude from `config.xml`, and the method number. Noaccount, no telemetry, no ads, no background service, no location permission. Backups are off.@@ -56,8 +57,8 @@ Prayer icons: [Lucide](https://lucide.dev) (ISC) and [Feather](https://featheric## Tested on-Xiaomi TV (MiTV-MOOR2), Google TV 11, RTM5.220609.003: the page, the countdown, the card prompt and the card-shown in the launcher's dock.+- Xiaomi TV (MiTV-MOOR2), Google TV 11, RTM5.220609.003: the page, the countdown, the card prompt and the card shown in the launcher's dock.+- TCL 43A50 (Smart TV Pro), Android 11 (build RP1A.200622.001): background prayer alarms, top-right unobtrusive alert card over active apps and home screen, and auto-dismiss after 10 seconds.## Maintainerdiff --git a/addons/prayer-times/app/src/main/AndroidManifest.xml b/addons/prayer-times/app/src/main/AndroidManifest.xmlindex 14155efad..e93095963 100644--- a/addons/prayer-times/app/src/main/AndroidManifest.xml+++ b/addons/prayer-times/app/src/main/AndroidManifest.xml@@ -9,6 +9,8 @@<uses-permission android:name="android.permission.WAKE_LOCK" /><uses-permission android:name="android.permission.VIBRATE" /><uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />+ <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />+ <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /><applicationandroid:label="Prayer Times"diff --git a/addons/prayer-times/app/src/main/java/com/majnioui/tv/prayer/PrayerReceiver.java b/addons/prayer-times/app/src/main/java/com/majnioui/tv/prayer/PrayerReceiver.javaindex 72319f5e1..7642071c4 100644--- a/addons/prayer-times/app/src/main/java/com/majnioui/tv/prayer/PrayerReceiver.java+++ b/addons/prayer-times/app/src/main/java/com/majnioui/tv/prayer/PrayerReceiver.java@@ -72,12 +72,15 @@ public class PrayerReceiver extends BroadcastReceiver {nm.createNotificationChannel(ch);}- Intent openIntent = new Intent(context, MainActivity.class);- openIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);- PendingIntent contentPi = PendingIntent.getActivity(+ Intent alertIntent = new Intent(context, PrayerAlertActivity.class);+ alertIntent.putExtra(PrayerScheduler.EXTRA_PRAYER_NAME, name);+ alertIntent.putExtra(PrayerScheduler.EXTRA_PRAYER_TIME, time);+ alertIntent.putExtra(PrayerScheduler.EXTRA_PLACE, place);+ alertIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);+ PendingIntent alertPi = PendingIntent.getActivity(context,- 0,- openIntent,+ (int) System.currentTimeMillis(),+ alertIntent,PendingIntent.FLAG_UPDATE_CURRENT | (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ? PendingIntent.FLAG_IMMUTABLE : 0));@@ -95,8 +98,8 @@ public class PrayerReceiver extends BroadcastReceiver {.setContentText(body).setSmallIcon(R.drawable.icon).setAutoCancel(true)- .setContentIntent(contentPi)- .setFullScreenIntent(contentPi, true)+ .setContentIntent(alertPi)+ .setFullScreenIntent(alertPi, true).setPriority(Notification.PRIORITY_MAX).setCategory(Notification.CATEGORY_ALARM).setColor(Color.parseColor("#2BB673"));