[Android] Add device model, android version and permissions to the debug logs
Nicolas Pomepuy
git at videolan.org
Mon Nov 7 14:47:55 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Nov 7 14:25:38 2022 +0100| [e644043ebba727be7baf5820980a10c779eb4d97] | committer: Nicolas Pomepuy
Add device model, android version and permissions to the debug logs
> https://code.videolan.org/videolan/vlc-android/commit/e644043ebba727be7baf5820980a10c779eb4d97
---
.../vlc-android/src/org/videolan/vlc/DebugLogService.kt | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt b/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
index aff1bf8cd..6119c1d2c 100644
--- a/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
@@ -42,6 +42,7 @@ import org.videolan.tools.getContextWithLocale
import org.videolan.vlc.gui.DebugLogActivity
import org.videolan.vlc.gui.helpers.NotificationHelper
import org.videolan.vlc.gui.preferences.search.PreferenceParser
+import org.videolan.vlc.util.Permissions
import java.io.*
import java.util.*
@@ -187,6 +188,16 @@ class DebugLogService : Service(), Logcat.Callback, Runnable {
bw.write("libvlc revision: ${getString(R.string.build_libvlc_revision)}\r\n")
bw.write("vlc revision: ${getString(R.string.build_vlc_revision)}\r\n")
bw.write("medialibrary: ${BuildConfig.ML_VERSION}\r\n")
+ bw.write("Android version: ${Build.VERSION.SDK_INT}\r\n")
+ bw.write("Device Model: ${Build.MANUFACTURER} - ${Build.MODEL}\r\n")
+ bw.write("____________________________\r\n")
+ bw.write("Permissions\r\n")
+ bw.write("____________________________\r\n")
+ bw.write("Can read: ${Permissions.canReadStorage(this)}\r\n")
+ bw.write("Can write: ${Permissions.canWriteStorage(this)}\r\n")
+ bw.write("Storage ALL access: ${Permissions.hasAllAccess(this)}\r\n")
+ bw.write("Notifications: ${Permissions.canSendNotifications(this)}\r\n")
+ bw.write("PiP Allowed: ${Permissions.isPiPAllowed(this)}\r\n")
bw.write("____________________________\r\n")
try {
bw.write("Changed settings:\r\n${PreferenceParser.getChangedPrefsString(this)}\r\n")
More information about the Android
mailing list