DEEPL (by darken):
Here is a list of folders that are desirable to clean to save space.
Since the application is popular, I think that for some folders it is suitable to create specific filters in AppCleaner (in the window where there are separate filters for Telegram, WhatsApp, Threema, WeChat), so that the deletion does not happen immediately, but after a certain number of days. Or just so that the user has a choice to clear the folder or not, as some users will want to clear some folders, others will want to keep them.
/storage/emulated/0/Android/data/com.viber.voip/files/.converted_videos
- when sending a large size video, it is compressed, this folder stores compressed copies, which are automatically deleted after about 10 days. After the folder is cleared, the video continues to play in the chat as the original video from the gallery is played. The user may want to clear the folder sooner, as sending a large number of videos can take up a lot of space in the folder. If you clear the folder before the contact is online, the videos will still be successfully delivered (stored on the server).
/storage/emulated/0/Android/data/com.viber.voip/files/.import
- any types of files sent to Viber from other apps using the "share" item. Not deleted over time. Gradually the folder may grow to a large size. If the folder is cleared, I no longer have access to the sent files in chat, even if the files are still on the device. If you clear the folder before the contact is online, the videos are still successfully delivered.
/storage/emulated/0/Android/data/com.viber.voip/files/.image
- received photos are saved here. If you save a photo in the chat, it is moved from this folder to the gallery; if you do not save it, it stays in the folder forever, it will not be deleted over time. If the folder is cleared, when you view the photo in the chat, it is loaded into it again.
/storage/emulated/0/Android/data/com.viber.voip/files/.video
- received videos are saved here. If you save the video in the chat, it is moved from this folder to the gallery; if not saved, it stays in the folder forever, it is not deleted over time. Gradually, the folder can grow to a larger size. If you clear it, when you view it in chat, the video is loaded again.
/storage/emulated/0/Android/data/com.viber.voip/files/.gif
- incoming gifs. If you save them to the gallery, they are moved from this folder to the gallery. If you clear the folder, when you click in the chat on the gif, it is downloaded again to the folder from the server. They are not deleted over time.
/storage/emulated/0/Android/data/com.viber.voip/files/.ptt
- incoming and outgoing voice messages. Over time, they themselves are not deleted. If you clear the folder, only messages sent to me are downloaded from the server again (messages that I sent me are not downloaded).
/storage/emulated/0/Android/data/com.viber.voip/files/.vptt
- incoming and outgoing video messages recorded by the built-in Viber function (video messages in a circle). Over time, they themselves are not deleted. If you clear the folder, only sent messages are downloaded from the server again
Здесь список папок, которые желательно очищать для экономии места.
Так как приложение популярное, я думаю что для некоторых папок подходит создать специфичные фильтры в AppCleaner (в окне, где находятся отдельные фильтры для Telegram, WhatsApp, Threema, WeChat), чтобы удаление происходило не сразу, а через определенное количество дней. Либо просто чтобы у пользователя был выбор очищать папку или нет, т.к. некоторые папки одни пользователи захотят очистить, другие захотят сохранить.
/storage/emulated/0/Android/data/com.viber.voip/files/.converted_videos — при отправке видео большого размера, оно сжимается, в этой папке хранятся сжатые копии, которые автоматически удаляются примерно через 10 дней. После очистки папки видео продолжает воспроизводиться в чате, так как воспроизводится оригинал видео из галереи. Возможно пользователь захочет очистить папку раньше, т.к. при отправке большого количества видео папка может занять много места. Если очистить папку до появления контакта в сети, видео все равно успешно доставятся (хранятся на сервере).
/storage/emulated/0/Android/data/com.viber.voip/files/.import — любые типы файлов, отправленные в Вайбер из других приложений с помощью пункта "поделиться". Не удаляются со временем. Постепенно папка может вырасти до большого размера. Если папку очистить, то у меня в чате к отправленным файлам больше нет доступа, даже если файлы ещё остались на устройстве. Если очистить папку до появления контакта в сети, видео все равно успешно доставятся.
/storage/emulated/0/Android/data/com.viber.voip/files/.image — сюда сохраняются полученные фото. Если в чате сохранить фото в галерею, оно перемещается из этой папки в галерею; если не сохранить, остаётся в папке навсегда, со временем не удаляется. Если папку очистить, при просмотре фото в чате оно загружается в нее снова.
/storage/emulated/0/Android/data/com.viber.voip/files/.video — сюда сохраняются полученные видео. Если в чате сохранить видео в галерею, оно перемещается из этой папки в галерею; если не сохранить, остаётся в папке навсегда, со временем не удаляется. Постепенно папка может вырасти до больших размеров. Если очистить, то при просмотре в чате видео загружается опять.
/storage/emulated/0/Android/data/com.viber.voip/files/.gif — входящие гифки. Если сохранить в галерею, перемещаются из этой папки в галерею. Если очистить папку, то при нажатии в чате на гифку, она опять загружается в папку с сервера. Со временем не удаляются.
/storage/emulated/0/Android/data/com.viber.voip/files/.ptt — входящие и исходящие голосовые сообщения. Со временем сами не удаляются. Если очистить папку, с сервера опять загружаются только сообщения отправленные мне (сообщения, которые отправил я мне не загружаются).
/storage/emulated/0/Android/data/com.viber.voip/files/.vptt — входящие и исходящие видеосообщения, записанные встроенной функцией Вайбера (видеосообщения в кружке). Со временем сами не удаляются. Если очистить папку, с сервера опять загружаются только сообщения отправленные мне (сообщения, которые отправил я мне не загружаются).