Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[photos] Document Android ADB log export

laurenspriem8b5636d9d8f9
diff --git a/mobile/apps/photos/docs/android-cli.md b/mobile/apps/photos/docs/android-cli.md
index d8ee0fa0bb..46fbfa4d8d 100644
--- a/mobile/apps/photos/docs/android-cli.md
+++ b/mobile/apps/photos/docs/android-cli.md
@@ -26,3 +26,13 @@ flutter run --flavor independent -d sdk
```
The above is macOS-specific, but swap `brew` for your package manager (unless `brew` is your package manager) and skip the JDK symlink step and it should work on Linux too.
+
+## App logs
+
+With ADB authorized, open the app with `internalUser` enabled and unlock the device. Export up to 40 MiB of saved logs, newest files first:
+
+```sh
+adb shell dumpsys activity io.ente.photos/io.ente.photos.MainActivity --ente-logs > ente-logs.txt
+```
+
+For independent builds, change the package before `/` to `io.ente.photos.independent`. For Android logs, use `adb logcat -d`.