* website: add fontmatter & improve image URLs where necessary * website: add docs to website * website: add prismjs for code highlighting * website: change npm install position in web.sh * website: fix an image URL in lang/cs/README.md * website: improve image paths in lang/cs/translations.md * website: add responsiveness & improve stylings of docs * website: add dir to navbar in blog & docs * website: remove scroll in mobile dropdown menu * website: remove rfcs & add guide docs to website * website: remove file renaming script from web.sh * website: add menu to docs in nav * website: add hash list & add scroll to headers * website: customize docs frontmatter through JS * website: remove supported_languages.json * website: move merge_translations.js to JS folder * website: add the following changes to docs - add frontmatter to new doc merged from master - add ignoreForWeb property to frontmatter of README.md docs * website: remove package-lock.json from .gitignore * website: add package-lock.json from .gitignore * website: add no docs message to docs dropdown * website: improve the sidebar of docs * website: add revision date to docs * website: add script to add version to docs frontmatter * website: add layout to display message in docs if its version is old * website: improve nav responsiveness * website: remove frontmatter form main README & rfcs * website: remove rfcs from website folder * website: add ignore condition for rfcs in .eleventy * website: remove frontmatter from lang README docs * website: remove README from website's lang docs * website: add guides menu in nav * website: following changes - add docs_dropdown.json - extend reference menu in nav - remove docs menu from nav * website: fix in docs sidebar * website: revert main docs README.md files * website: revert main docs README.md files * website: move scripts out of js that are for build * website: remove displayAt form guide docs * website: create a docs_sidebar.json & shift to that approach * update navigation * website: set navbar * website: add icons to external links * website: change the approach for docs sidebar creation * website: update docs template * website: add some strings to en.json and map them accordingly * remove icon --------- Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
2.4 KiB
title | revision |
---|---|
Accessing files in Android app | 07.02.2023 |
Accessing files in Android app
SimpleX uses databases and stores its preferences inside private data directory in Android. The directory contains:
- databases
- sent and received files
- temporary files that will be deleted when not needed
- user preferences.
If you want to view what's stored inside SimpleX data directory you need to have:
- Unix-based operating system (or MinGW on Windows)
- ADB (Android Debug Bridge) tool installed on a computer (download it here and install)
- your device connected via USB or Wi-Fi to the computer.
The process:
- open SimpleX, go to
Database passphrase & export
, enableApp data backup
. This will make other steps working - optional: if you want to view database contents, change database passphrase from random to yours. To do this, stop a chat in
Database passphrase & export
screen, openDatabase passphrase
, enter new passphrase and confirm it, then update it. Do not forget it, otherwise you'll lose all your data in case passphrase will be asked again later - open a terminal emulator (Windows CMD/Powershell will not work) and change directory to the one you want to use for storing the backup:
cd /tmp # just an example
Then run the following:
adb -d backup -f chat.ab -noapk chat.simplex.app &&
tail -n +5 chat.ab > chat.dat &&
printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - chat.dat > chat.gz &&
tar -xvzf chat.gz
Now unlock the device and confirm a backup operation without using a password for encryption, otherwise the commands will not work.
After that the backup should be ended. If you see an error saying tar: Error is not recoverable: exiting now
but before that you have printed some file names, don't worry, it's ok.
Now the backed-up files will be inside ./apps/chat.simplex.app/
.
Please, note, that if you use a modern version of SimpleX, the databases will be encrypted, and you'll not be able to view contents of them without using sqlcipher
application and without knowing decryption passphrase (you need to change it to yours from randomly generated in the app firstly).
Please, follow SQL.md guide for more info of how to decrypt your databases and to make queries to them.