4,110
questions
0
votes
0
answers
8
views
Click on buttons using accessibility [permissions dialog] - Android 14
i cant click on buttons in permissions dialog using accessibility since android 14
AccessibilityNodeInfo rootNode = getRootInActiveWindow();
if (rootNode != null) {
...
0
votes
0
answers
9
views
How to start debug mode programatically in Android?
I need to start debug mode for some time in android app which is device owner and then turn it off. How can I achieve that?
0
votes
0
answers
8
views
How to grant android:permission="android.permission.DUMP" permission to device owner app in android
I have tried below code.
val dpm = context.getSystemService(Context.DEVICE_POLICY_SERVICE) as DevicePolicyManager
val componentName = ComponentName(context, SampleReceiver::class.java)
dpm....
0
votes
1
answer
33
views
How to clear app cache programmatically on every app start without system permissions in Java?
I'm working on an Android app where I need to clear the app's cache every time the app starts. I'm currently using this code to try and delete the cache:
File dir = new File(cacheFilePath);
if (dir ...
0
votes
1
answer
21
views
How to locate a device just after permissions are granted
I am currently developing an Android application that requires geolocation. However, once the permissions are granted, the application does not have enough time to retrieve the device's coordinates. I ...
0
votes
0
answers
12
views
Remove permissions .DUMP and "Activity (com.canhub.cropper.CropImageActivity)"
I developed a React Native app with Expo for a payment machine.
During the homologation process, I was asked to remove certain permissions.
I managed to remove basic permissions like .INTERNET and ....
-1
votes
0
answers
29
views
Handling SecurityException for Content URIs in Android 11+
I’m working on an Android app that targets API level 34 (Android 14) and needs to handle media files. However, I’m encountering a java.lang.SecurityException when attempting to access files in Android ...
0
votes
0
answers
24
views
PlatformException(channel-error, Unable to establish connection on channel., null, null) await getApplicationDocumentsDirectory();
While run release app.
pick image from device and during store that path during throw this error.
PlatformException(channel-error, Unable to establish connection on channel., null, null)
Here code.
...
0
votes
1
answer
69
views
Why won't the permission_handler request permssion for Video on Android SDK 34?
I am using the permission_handler package for my flutter app and with a Pixel 8 Pro API 35 emulator, I am trying to request access to device gallery. This is the error i get when trying to request ...
0
votes
0
answers
20
views
BLE Scan for Android Automotive not finding any devices
I am currently trying to scan for BLE devices within Android Automotive which however does not return any device. BTH Classic is working fine.
I am starting the scan via mBluetoothScanner.startScan(...
1
vote
2
answers
85
views
Correct way to fetch location in latest Android 15
I'm encountering difficulties retrieving the user's location accurately in my Android app, specifically on newer Android versions. I've implemented a solution based on a Stack Overflow answer, but it'...
0
votes
0
answers
17
views
Can Android app detect whether bluetooth permission cannot be granted due to MDM policy?
I have an app with optional Bluetooth functionality for communicating between a desktop and the phone. I would like to know whether the end user is unable to use Bluetooth in my app because an ...
1
vote
0
answers
154
views
SecurityException: Starting FGS with type mediaProjection (Android 14)
Since targeting SDK 34 (Android 14), I've seen a few crashes on Android 14 (though small minority of Android 14 users):
java.lang.SecurityException: Starting FGS with type mediaProjection callerApp=...
1
vote
0
answers
21
views
Problem with using speedtest-go using adb
I'm working on a project (I'm begginer) where I need to run the speedtest-go command on my Android device via Termux and then download the result to my PC using PowerShell and ADB. Here’s what I’m ...
0
votes
1
answer
63
views
Do I Need to Handle Permissions for Saving Images in the Pictures Directory in Flutter?
I'm working on a Flutter application where I need to capture a widget and save it as an image file to /storage/emulated/0/Pictures/MyApp. The method _captureAndSaveImage below successfully captures ...
1
vote
0
answers
63
views
How to Create a Folder and Copy Files to Android/obb Directory in Flutter?
I'm developing an app where I need to create a folder in the Android/obb directory and copy some files into it. The goal is to install a game or an app on the user's device that requires additional ...
0
votes
1
answer
65
views
How to remove android.permission.MANAGE_EXTERNAL_STORAGE and add a non-violating permission and use ( WhatsApp/Media/.Statuses ) folder in flutter
This code is working well but in this 1 permission violate google play policy so how to update my code and permission of android.permission.MANAGE_EXTERNAL_STORAGE.
Google Play Review: If your app ...
0
votes
0
answers
29
views
Mobile Application Permissions in Webview
I am building a expo react native mobile application for my already existing website. In this mobile application I am using the webview component to render my website. This way with less work I can ...
0
votes
0
answers
31
views
Why my file is getting stored in external storage on API 28 even after permission denied?
I am building one android app in which I am trying to save file in External storage. I am running that app on API 28 (Before introduction of scoped storage).
When the app launches, I am denying the ...
0
votes
0
answers
30
views
Get android permissions with FRIDA timing problem
I'm trying to fetch the manifest permissions using FRIDA. My code is below and works for youtube, however I don't like the setTimeout bit. If is not there, it throws:
TypeError: cannot read property '...
0
votes
1
answer
56
views
Permission Dialog for Kotlin App not showing up
I am making an Android App with Kotlin for a College Assignment. The assignment has a requirement to store an image into an SQLite database. I code in the code to request permissions to access the ...
0
votes
0
answers
198
views
React Native 0.74.3 crashes when the app starts on Android 14 with Display over App enabled
package.json
{
"name": "Picky_Assist",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native ...
0
votes
0
answers
31
views
How to fetch blocked contacts list in android without making it default dialer
I need to display a list of blocked contacts from the device. I want to retrieve this information without setting my app as the default dialer. I understand that accessing blocked contacts usually ...
0
votes
0
answers
43
views
Android - How to remember the device permission
I have (non-rooted) android tablet and I developed MAUI application to run on it. This application (tablet) is to be communicating with embedded system using FTDI cable.
The application is supposed to ...
1
vote
0
answers
91
views
Android Full Screen Intent Compliance
Problem: Our app, which includes essential video conferencing functionality, has been rejected by Google Play due to the use of the USE_FULL_SCREEN_INTENT permission. Google claims this permission is ...
0
votes
1
answer
31
views
Can't get bluetooth permissions in react native
I'm trying to get permissions to use bluetooth in Android, I've tried different options, both single and multiple requests, but I don't get permission requests. Moreover, requests for camera or other ...
0
votes
0
answers
18
views
Android - DND permission from Unit tests
I'm writing unit tests to test the notification service layer. So while testing out the create channel feature, I would like to test all of the properties of the NotificationChannel object. Hence, I'm ...
-1
votes
1
answer
100
views
Android 13 keeps denying READ_MEDIA_IMAGES permission even thou I clicked "allow permission". How do I solve this?
I made a READ_MEDIA_IMAGES permission to access pictures from the gallery, but when the request permission dialog pops up, I click "Allow" but on the logcat, the permissions get denied ...
0
votes
0
answers
57
views
(OS Error: Permission denied, errno = 13) Flutter Error Only in Android 10
I keep get error like this when i run my app in android 10
Failed to ensure /storage/0DFE-330F/Android/data/my_app/files: java.lang.IllegalStateException: Failed to prepare /storage/0DFE-330F/Android/...
0
votes
0
answers
21
views
How to check if some other package is able to post notifications on Android 10~12?
My app enhances the notification experience of the default SMS app, it shows notification when there is incoming SMS message.
I need user to disable the notification of the default SMS app, otherwise ...
0
votes
0
answers
15
views
Is there a way in the gradle build system to prevent all permissions of library dependencies from getting merged into application's manifest?
Recently, Google Play Billing library added Network related permissions, which are not really required for the billing functionality. See Google Play Billing Library 6.0 introduces the INTERNET ...
0
votes
0
answers
29
views
Can I grant android permissions to a C++ only NDK compiled application?
I am to port a linux application to Android. Right now it is being compiled with CMake using the NDK toolchain. I want to use NDK features such as the camera but I am getting permission errors at ...
0
votes
0
answers
91
views
For devices running 34+ do I need to request both READ_MEDIA_VISUAL_USER_SELECTED and READ_MEDIA_IMAGES?
If I'm targeting SDK 34 and I'm on a device running 34, do I need to request both READ_MEDIA_VISUAL_USER_SELECTED and READ_MEDIA_IMAGES, or can I get away with just READ_MEDIA_VISUAL_USER_SELECTED?
0
votes
0
answers
50
views
Android Grant permissions on folder without DocumentUI
I am facing an issue with some Android devices while trying to grant permissions on user selected folders.
The application already ask for permissions and everything is fine but when the user click to ...
3
votes
5
answers
994
views
When app need: SCHEDULE_EXACT_ALARM and USE_EXACT_ALARM android permissions
In app manifest I have:
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
<uses-permission android:name="android.permission.USE_EXACT_ALARM"/>
...
2
votes
1
answer
544
views
Android 14 - ACCESS_FINE_LOCATION never asked nor granted
my Manifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:...
0
votes
0
answers
120
views
Google Play Protect Warning: "This app tries to spy on your personal data, such as SMS messages, photos or call history." How to Resolve?
I'm encountering a serious issue with my app on the Google Play Store. After uploading my app, users are receiving the following Google Play Protect warning:
"This app tries to spy on your ...
0
votes
0
answers
70
views
facing issue while deleting file from Download directory on android 12 or more
I am facing an issue while deleting files from the Download directory on Android 12 or more
can anyone help me resolve this issue?
Code
bool statusFileExists = await status.exists();
if (!...
0
votes
0
answers
42
views
How to Disable One Signal Notification in Android
I have a notification button in my app and I want to enable and disable notification when user clicks on that button. I am able to get the notification enabled with permission but don't know how to ...
0
votes
0
answers
66
views
'No Sensor Detected On This Device' Kotlin Android Studio
I'm trying to get my android app to request activity recognition permission when it is not allowed, but I get the message 'No sensor detected on this device when I run the below code. I'm testing on a ...
-1
votes
1
answer
56
views
How to request permissions to Android in Unity?
I made android unity game, that sometimes working with file system, creating new folder and files, editing those files. When I was testing this on android device, nothing happened with files. I know, ...
0
votes
1
answer
108
views
Awesome Notifications - Different dialogs to request to permission from user in Android
Awesome Notifications package is nicely integrated into my app and sends notifications as it should.
However, I have an issue with the requestPermissionToSendNotifications under Android. In my app, ...
0
votes
0
answers
24
views
Android studio/ react native
I have a code, that asks a permissions for an Android storage. When i run it on emulator(pixel 8 pro) it works correctly, but when i build project as release version and install it on my own Galaxy ...
0
votes
0
answers
27
views
How to save file to secondary external volume on Android 10 without Storage Access Framework?
I need to save files to the root volume directories.
To do this I'm using
WRITE_EXTERNAL_STORAGE
permission for old devices and
MANAGE_EXTERNAL_STORAGE
for newer ones.
Currently I am able to write ...
0
votes
1
answer
83
views
Open in-app notification settings from inside the app
android.provider.Settings on docs
Is there anyway to open "In-app notification settings" from within my app? Currently I open the app's details page and then I have to click manually:
...
0
votes
3
answers
67
views
Automated screenshots - Which Storage API?
I'm automating the creation of screenshots using instrumented tests (androidTest) on a debug version of my app using UiAutomator and a shell script that uses adb pull.
Once each screenshot has been ...
0
votes
1
answer
237
views
com.google.android.gms.permission.AD_ID permission permission not included - RE-OCCURANCE
On trying to upload my build to dev console I Was greeted with that error
A manifest file in one of your active artifacts doesn't include the com.google.android.gms.permission.AD_ID permission.
This ...
0
votes
1
answer
175
views
How do I request permission to read phone's storage? - Kotlin Android
I'm new to Android software development, on Kotlin, there was a problem that the application basically refuses to request permission to read memory, in particular audio files, even if you manually ...
0
votes
3
answers
817
views
Read external storage Permission not working
I want to later in my app be able to choose an Image to be displayed in the PhotoView and it is supposed to stay there after restarting the app. For this, I need to read the External storage, but ...
2
votes
1
answer
120
views
Start Intent from ViewModel
I would like to start a Foreground Service and call a LauncherForActivityResult.
As far as I know, i neither can start a Service from a ViewModel, nor call a LauncherForActivityResult.
I am working on ...