I'm working on a status saver app that works on all devices except Android 11. I also updated the route, but it still works with the manage external storage permission, which I don't want to use because my app was rejected by Google. Is there any way to get WhatsApp status copied into a hidden folder in Android 11?
if (Build.VERSION.SDK_INT >= 29) {
targetPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Android/media/com.whatsapp/WhatsApp/Media/.Statuses";
}
else{
targetPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/WhatsApp/Media/.Statuses";
}