Project

General

Profile

Bug #4157

Draw over other apps not able to enable in Driver

Added by Rafi M about 1 year ago. Updated 11 months ago.

Status:
QA Passed
Priority:
High
Assignee:
Target version:
Start date:
05/09/2025
Due date:
05/09/2025 (about 11 months late)
% Done:

90%

Estimated time:
Milestone:
Sprint 26 Tukxi Ride 2025 Jan 01 to Jan 31
Branch name:
sprint-26_sreededvi_4157

Description

Draw over other apps not able to enable in Driver

Specification:

Device : Pixel
OS : Android 15


Files

IMG-20250116-WA0001.jpg (12.9 KB) IMG-20250116-WA0001.jpg Rafi M, 01/17/2025 12:54 AM
IMG-20250116-WA0000.jpg (4.72 KB) IMG-20250116-WA0000.jpg Rafi M, 01/17/2025 12:54 AM
IMG-20250116-WA0002.jpg (25.4 KB) IMG-20250116-WA0002.jpg Rafi M, 01/17/2025 12:54 AM
WhatsApp Image 2025-02-12 at 11.49.58 (1).jpeg (31.8 KB) WhatsApp Image 2025-02-12 at 11.49.58 (1).jpeg Sreedevi K S, 02/17/2025 11:38 PM
WhatsApp Image 2025-02-12 at 11.49.58.jpeg (34.7 KB) WhatsApp Image 2025-02-12 at 11.49.58.jpeg Sreedevi K S, 02/17/2025 11:38 PM

Impact Analysis

Draw over the app screen

#1

Updated by Sreedevi K S about 1 year ago

  • Due date set to 02/08/2025
  • Start date changed from 01/17/2025 to 02/07/2025
  • Branch name set to sprint-26_sreededvi_4157
#2

Updated by Sreedevi K S about 1 year ago

  • Status changed from New to In Progress
#3

Updated by Sreedevi K S about 1 year ago

  • % Done changed from 0 to 90
  • Impact Analysis updated (diff)

Google has restricted SYSTEM_ALERT_WINDOW usage. Many OEMs also have additional security policies preventing direct permission requests.
Enables the permission feature

#4

Updated by Sreedevi K S about 1 year ago

Waiting for the confirmation from tukxi team

#5

Updated by Sreedevi K S about 1 year ago

  • Status changed from In Progress to On Hold
#7

Updated by Anupama P about 1 year ago

  • Due date changed from 02/08/2025 to 02/21/2025
  • Status changed from On Hold to In Progress
  • Start date changed from 02/07/2025 to 02/18/2025
#8

Updated by Sreedevi K S about 1 year ago

  • Status changed from In Progress to Resolved

The inability to grant the SYSTEM_ALERT_WINDOW (draw over other apps) permission on certain devices.
This issue appears to be related to stricter enforcement of this permission in newer Android versions (especially with targetSdkVersion 34) and on Pixel devices.

Alternatives to SYSTEM_ALERT_WINDOW wherever possible. This includes:

The best approach is to avoid using SYSTEM_ALERT_WINDOW if at all possible. It's often misused and there are usually better alternatives. Ask yourself why you need this permission. Common use cases and their better alternatives:

1. Floating Chat Heads/Bubbles: Use the Bubble API (introduced in Android 10). It's specifically designed for this purpose and provides a much better user experience.

2. System-Level Alerts/Overlays: If you absolutely must display something over other apps (e.g., critical alerts), consider using a foreground service with a notification that's highly visible. This is less intrusive and more aligned with Android's design principles.

3.Drawing Over Other Apps (General): If you're drawing something interactive over other apps, explore the OverlayView class or similar approaches that don't require the SYSTEM_ALERT_WINDOW permission. These are more restricted but safer.

#9

Updated by Anupama P 11 months ago

  • Status changed from Resolved to QA Ready
#10

Updated by Shalu T S 11 months ago

  • Due date changed from 02/21/2025 to 05/09/2025
  • Status changed from QA Ready to QA In Progress
  • Start date changed from 02/18/2025 to 05/09/2025
#11

Updated by Shalu T S 11 months ago

  • Status changed from QA In Progress to QA Passed

verified in an Android device; need to check the cases with a Pixel phone.

Also available in: Atom PDF