From 7d51cf5a2dfc69e2a424f317c1b28dda1cb39ae5 Mon Sep 17 00:00:00 2001 From: vincent Bourgmayer Date: Wed, 5 Oct 2022 15:08:48 +0200 Subject: [PATCH] Add missing licence header and update Readme --- README.md | 22 ++++++++++++++++++- .../foundation/e/drive/utils/ReleaseTree.java | 10 +++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f84c7d50..215c0051 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,28 @@ To enable/disable the synchronisation, go into your account settings: # Interrobility -eDrive can also receive broadcast intent for forcing the synchronization. +eDrive can also receive some broadcast intent for different purprose: + +**Force the synchronization.** ```bash adb shell am broadcast -a foundation.e.drive.action.FORCE_SYNC --receiver-include-background ``` + +**Generate a database dump accessible by the user** + +```bash +adb shell am broadcast -a foundation.e.drive.action.DUMP_DATABASE --receiver-include-background +``` + +**Disable log limit on release build** + +```bash + adb shell am broadcast -a foundation.e.drive.action.FULL_LOG_ON_PROD --receiver-include-background --ez full_log_enable true +``` + +**Limit log output on release build** *(after previous command)* + +```bash + adb shell am broadcast -a foundation.e.drive.action.FULL_LOG_ON_PROD --receiver-include-background --ez full_log_enable false +``` \ No newline at end of file diff --git a/app/src/main/java/foundation/e/drive/utils/ReleaseTree.java b/app/src/main/java/foundation/e/drive/utils/ReleaseTree.java index aff51444..e8d64cf9 100644 --- a/app/src/main/java/foundation/e/drive/utils/ReleaseTree.java +++ b/app/src/main/java/foundation/e/drive/utils/ReleaseTree.java @@ -1,3 +1,10 @@ +/* + * Copyright © ECORP SAS 2022. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the GNU Public License v3.0 + * which accompanies this distribution, and is available at + * http://www.gnu.org/licenses/gpl.html + */ package foundation.e.drive.utils; import android.util.Log; @@ -7,6 +14,9 @@ import androidx.annotation.Nullable; import timber.log.Timber; +/** + * @author vincent Bourgmayer + */ public class ReleaseTree extends Timber.DebugTree{ private static boolean debugEnable = false; -- GitLab