diff --git a/README.md b/README.md index f84c7d5005d5d952ce5350d5afe53a4a42749b8b..215c00516ec1bbb6658691bdc49f27dab178ea55 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 aff51444271e0325934badd7c6fc66aaabadb962..e8d64cf9c1f355627064ee7e8d30296b063e6bcc 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;