GauthamAsir / WhatsApp_Status_Saver

WhatsApp Status Downloader, preview, share and save files. Android 10+ support
102 stars 50 forks source link

Better use of Permissions MANAGE_EXTERNAL_STORAGE #5

Closed atinagrawal closed 3 years ago

atinagrawal commented 3 years ago

Starting Android 11, Google discourages the use of MANAGE_EXTERNAL_STORAGE, where explicitly not required. As this app only needs photos and videos, this should be possible by MediaStore.

sushantj651 commented 3 years ago

How you access WhatsApp/media/.Statuses

or

Android/media/com.whatsapp/WhatsApp/Media/.Statuses

by using mediastore??

GauthamAsir commented 3 years ago

No, currently not using Mediastore. You are can modify it accordingly.

sushantj651 commented 3 years ago

.Statuses folder is changed for Android 11??🤔 Android/media/com.whatsapp/WhatsApp/Media/.Statuses

I run the WhatsApp in Android 11 but .Statuses folder path is storage/emulated/0/WhatsApp/media/.Statuses

Currently WhatsApp targetSdk version is 29 but Is it really in Android/media after targetSdk 30??

GauthamAsir commented 3 years ago

I have updated the path you can check the latest verison

winnerawan commented 3 years ago

.Statuses folder is changed for Android 11??🤔 Android/media/com.whatsapp/WhatsApp/Media/.Statuses

I run the WhatsApp in Android 11 but .Statuses folder path is storage/emulated/0/WhatsApp/media/.Statuses

Currently WhatsApp targetSdk version is 29 but Is it really in Android/media after targetSdk 30??

how you know that whatsapp target sdk is 29 ?

How you access WhatsApp/media/.Statuses

did you solved it using mediastore?

GauthamAsir commented 3 years ago

I check both the directories WhatsApp/Media/. Statuses if directory is not found my app would check in android/....

On Sat, Jun 19, 2021, 8:30 PM Winnerawan T @.***> wrote:

.Statuses folder is changed for Android 11??🤔 Android/media/com.whatsapp/WhatsApp/Media/.Statuses

I run the WhatsApp in Android 11 but .Statuses folder path is storage/emulated/0/WhatsApp/media/.Statuses

Currently WhatsApp targetSdk version is 29 but Is it really in Android/media after targetSdk 30??

how you know that whatsapp target sdk is 29 ?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/GauthamAsir/WhatsApp_Status_Saver/issues/5#issuecomment-864417461, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGNOE7T2A6R5FNPD6WPNB3TTTSWJVANCNFSM46DKJC2A .

winnerawan commented 3 years ago

I check both the directories WhatsApp/Media/. Statuses if directory is not found my app would check in android/....

On Sat, Jun 19, 2021, 8:30 PM Winnerawan T @.***> wrote:

.Statuses folder is changed for Android 11??🤔 Android/media/com.whatsapp/WhatsApp/Media/.Statuses

I run the WhatsApp in Android 11 but .Statuses folder path is storage/emulated/0/WhatsApp/media/.Statuses

Currently WhatsApp targetSdk version is 29 but Is it really in Android/media after targetSdk 30??

how you know that whatsapp target sdk is 29 ?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/GauthamAsir/WhatsApp_Status_Saver/issues/5#issuecomment-864417461, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGNOE7T2A6R5FNPD6WPNB3TTTSWJVANCNFSM46DKJC2A .

I tried the generated apk in this repo, it's not working, stuck in splashscreen (samsung note 10 android 11) and actually permission manage_external_storage is for file manager application

Edited: works if allow access all files, i think that not the solution for android 11. Have a better idea for select or query the hidden directory ".Statuses" using MediaStore or others?