Permit Whatsapp to access all files (not only media)

  • Thread starter Thread starter Swamp Thing
  • Start date Start date
  • Tags Tags
    files
Click For Summary
SUMMARY

The discussion centers on the limitations of WhatsApp's file access permissions on Android devices, specifically the inability to grant "management of all files" access. Users can only choose to allow access to media or deny it entirely. WhatsApp does not request full storage permissions, adhering to best practices that recommend using granular media permissions. Despite this limitation, users can still perform local backups through Google Drive, indicating that the app has sufficient permissions to read and write files, even if it cannot create local backups under certain conditions.

PREREQUISITES
  • Understanding of Android app permissions and Manifest.xml configuration
  • Familiarity with granular media permissions in Android development
  • Knowledge of backup processes in WhatsApp
  • Basic troubleshooting skills for app permission issues
NEXT STEPS
  • Research Android app permission management and best practices
  • Explore the implications of READ_EXTERNAL_STORAGE and granular permissions
  • Learn about local backup strategies for WhatsApp and other apps
  • Investigate methods for reverse engineering Android apps for permission modification
USEFUL FOR

Android developers, app permission managers, and users seeking to optimize WhatsApp's functionality and backup capabilities.

Swamp Thing
Insights Author
Messages
1,047
Reaction score
782
When I look at the permissions settings for Whatsapp on my Android phone, I see these options:

* Allow access to media only
* Deny

Now, I want to allow access to all files, not just media, because without that WhatsApp is not able to create local backup files. I do see that some apps like Adobe Acrobat have the following permission options:

* Allow management of all files
* Deny.

How can I allow WhatsApp to do "management of all files"?
 
Computer science news on Phys.org
In the Manifest.xml file, developers are able to list the permissions their apps require. Some permissions are automatically granted by the system and it's not visible to you, like permission to vibrate the phone and permission to use the network. Sensitive permissions are required to be requested at runtime.

WhatsApp developers have not listed the permission to access full storage. This is done keeping in mind the current best practices, which advises not to use the READ_EXTERNAL_STORAGE permission unless necessary, but to use the granular media permissions instead. You cannot change this, unless you reverse engineer the app.

But WhatsApp can backup to local storage properly even without the full access permission. I can see on my device that the local backup is saved properly. Is WhatsApp on your device throwing a SecurityException when trying to backup to local storage?
 
  • Like
Likes   Reactions: Swamp Thing
It doesn't show any error, but silently fails to create any backup file. A google search turned up some suggestions that this could be due to permission issues.

I could finally do the backup/restore via Google Drive, so I'm good now. (I wanted to have a local backup just in case drive didn't work... that's just how I am :smile: )
 
Swamp Thing said:
A google search turned up some suggestions that this could be due to permission issues.
If you have already allowed all the granular file and media permissions, then that issue is not related to permissions. If WhatsApp can download and upload any files from your device, the app already has the permission to read/write files. Not being able to create a local backup is definitely a different issue. You cannot give a permission to an app which it hasn't asked for.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 16 ·
Replies
16
Views
8K
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 22 ·
Replies
22
Views
5K
  • · Replies 23 ·
Replies
23
Views
3K