SysLog icon indicating copy to clipboard operation
SysLog copied to clipboard

Granting `READ_LOGS` does not remove note.

Open RokeJulianLockhart opened this issue 1 year ago • 0 comments

Issue

Per https://github.com/Tortel/SysLog/blob/85eeab330a00f5a0c610b95583246b6ee8bae050/Readme.md?plain=1#L24:~:text=adb%20shell%20pm%20grant%20com.tortel.syslog%20android.permission.READ_LOGS, I have invoked the undermentioned command (as the superuser on my host):

adb shell pm grant com.tortel.syslog android.permission.READ_LOGS

However, this hasn't caused the error element to disappear within the application, even after force stopping it:

  1. By default, it's not granted:

    image

  2. Consequently, I grant it:

    root@sayw4i:/home/RokeJulianLockhart# adb shell pm grant com.tortel.syslog android.permission.READ_LOGS
    
  3. However, it doesn't appear to work:

    image

    ...despite https://f-droid.org/repo/io.github.muntashirakon.AppManager_430.apk (from https://github.com/MuntashirAkon/AppManager/releases/download/v3.1.7/AppManager_v3.1.7.apk) stating that it's been granted:

    image

    Interestingly, as you can see in the full output of adb shell dumpsys package com.tortel.syslog undermentioned, I appear to see that the permission was requested but not granted:

    root@sayw4i:/home/RokeJulianLockhart# adb shell dumpsys package com.tortel.syslog
    Activity Resolver Table:
      Non-Data Actions:
          android.intent.action.MAIN:
            1c7eba8 com.tortel.syslog/.FragmentMainActivity filter 7dcb6c1
              Action: "android.intent.action.MAIN"
              Category: "android.intent.category.LAUNCHER"
    
    Receiver Resolver Table:
      Non-Data Actions:
          androidx.profileinstaller.action.SAVE_PROFILE:
            8841a54 com.tortel.syslog/androidx.profileinstaller.ProfileInstallReceiver filter ac47543
              Action: "androidx.profileinstaller.action.SAVE_PROFILE"
          androidx.profileinstaller.action.INSTALL_PROFILE:
            8841a54 com.tortel.syslog/androidx.profileinstaller.ProfileInstallReceiver filter 13cfdfd
              Action: "androidx.profileinstaller.action.INSTALL_PROFILE"
          androidx.profileinstaller.action.SKIP_FILE:
            8841a54 com.tortel.syslog/androidx.profileinstaller.ProfileInstallReceiver filter b096af2
              Action: "androidx.profileinstaller.action.SKIP_FILE"
          androidx.profileinstaller.action.BENCHMARK_OPERATION:
            8841a54 com.tortel.syslog/androidx.profileinstaller.ProfileInstallReceiver filter 63287c0
              Action: "androidx.profileinstaller.action.BENCHMARK_OPERATION"
    
    Provider Resolver Table:
      Non-Data Actions:
          android.content.action.DOCUMENTS_PROVIDER:
            7607cf9 com.tortel.syslog/.LogProvider filter bbf443e
              Action: "android.content.action.DOCUMENTS_PROVIDER"
    
    Domain verification status:
    
    Permissions:
      Permission [com.tortel.syslog.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION] (3b85a07):
        sourcePackage=com.tortel.syslog
        uid=10285 gids=[] type=0 prot=signature
        perm=PermissionInfo{956a734 com.tortel.syslog.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION}
        flags=0x0
    
    Registered ContentProviders:
      com.tortel.syslog/androidx.startup.InitializationProvider:
        Provider{70f395d com.tortel.syslog/androidx.startup.InitializationProvider}
      com.tortel.syslog/androidx.core.content.FileProvider:
        Provider{fe3f2d2 com.tortel.syslog/androidx.core.content.FileProvider}
      com.tortel.syslog/.LogProvider:
        Provider{7607cf9 com.tortel.syslog/.LogProvider}
    
    ContentProvider Authorities:
      [com.tortel.syslog.documents]:
        Provider{7607cf9 com.tortel.syslog/.LogProvider}
          applicationInfo=ApplicationInfo{8768fa3 com.tortel.syslog}
      [com.tortel.syslog.fileprovider]:
        Provider{fe3f2d2 com.tortel.syslog/androidx.core.content.FileProvider}
          applicationInfo=ApplicationInfo{55102a0 com.tortel.syslog}
      [com.tortel.syslog.androidx-startup]:
        Provider{70f395d com.tortel.syslog/androidx.startup.InitializationProvider}
          applicationInfo=ApplicationInfo{a0b0e59 com.tortel.syslog}
    
    Key Set Manager:
      [com.tortel.syslog]
          Signing KeySets: 145
    
    Packages:
      Package [com.tortel.syslog] (6ea6a1e):
        appId=10285
        pkg=Package{f5882ff com.tortel.syslog}
        codePath=/data/app/~~ZI0fNHiUKg5YLv91inY5FA==/com.tortel.syslog-QRaUOkFyfcuRjg3U5il04w==
        resourcePath=/data/app/~~ZI0fNHiUKg5YLv91inY5FA==/com.tortel.syslog-QRaUOkFyfcuRjg3U5il04w==
        legacyNativeLibraryDir=/data/app/~~ZI0fNHiUKg5YLv91inY5FA==/com.tortel.syslog-QRaUOkFyfcuRjg3U5il04w==/lib
        extractNativeLibs=false
        primaryCpuAbi=null
        secondaryCpuAbi=null
        cpuAbiOverride=null
        versionCode=37 minSdk=23 targetSdk=34
        minExtensionVersions=[]
        versionName=2.5.0
        usesNonSdkApi=false
        splits=[base]
        apkSigningVersion=3
        flags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ]
        privateFlags=[ PRIVATE_FLAG_ACTIVITIES_RESIZE_MODE_RESIZEABLE_VIA_SDK_VERSION ALLOW_AUDIO_PLAYBACK_CAPTURE PRIVATE_FLAG_ALLOW_NATIVE_HEAP_POINTER_TAGGING ]
        forceQueryable=false
        dataDir=/data/user/0/com.tortel.syslog
        supportsScreens=[small, medium, large, xlarge, resizeable, anyDensity]
        usesOptionalLibraries:
          androidx.window.extensions
          androidx.window.sidecar
        timeStamp=2024-05-21 11:10:46
        lastUpdateTime=2024-05-21 11:10:47
        installerPackageName=null
        installerPackageUid=-1
        initiatingPackageName=com.looker.droidify
        originatingPackageName=null
        packageSource=0
        appMetadataFilePath=null
        signatures=PackageSignatures{d3a8cc version:3, signatures:[9f88fe7d], past signatures:[]}
        installPermissionsFixed=true
        pkgFlags=[ HAS_CODE ALLOW_CLEAR_USER_DATA ]
        privatePkgFlags=[ PRIVATE_FLAG_ACTIVITIES_RESIZE_MODE_RESIZEABLE_VIA_SDK_VERSION ALLOW_AUDIO_PLAYBACK_CAPTURE PRIVATE_FLAG_ALLOW_NATIVE_HEAP_POINTER_TAGGING ]
        apexModuleName=null
        declared permissions:
          com.tortel.syslog.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: prot=signature
        requested permissions:
          android.permission.READ_LOGS
          android.permission.ACCESS_SUPERUSER
          com.tortel.syslog.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
        install permissions:
          android.permission.READ_LOGS: granted=true
          com.tortel.syslog.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: granted=true
        User 0: ceDataInode=321010 installed=true hidden=false suspended=false distractionFlags=0 stopped=false notLaunched=false enabled=0 instant=false virtual=false
          installReason=0
          firstInstallTime=2024-05-21 11:10:47
          uninstallReason=0
          overlay paths:
            /data/resource-cache/com.android.systemui-neutral-6M4o.frro
            /data/resource-cache/com.android.systemui-accent-mqyR.frro
            /data/resource-cache/com.android.systemui-dynamic-orhz.frro
          gids=[1007]
          runtime permissions:
    
    Queries:
      system apps queryable: false
      queries via forceQueryable:
      queries via package name:
      queries via component:
        com.android.settings.intelligence:
          com.tortel.syslog
        com.microsoft.office.outlook:
          com.tortel.syslog
        it.mirko.beta:
          com.tortel.syslog
        org.breezyweather:
          com.tortel.syslog
        com.facebook.orca:
          com.tortel.syslog
        org.torproject.android:
          com.tortel.syslog
        com.instagram.android:
          com.tortel.syslog
        com.sony.songpal.mdr:
          com.tortel.syslog
        com.adobe.reader:
          com.tortel.syslog
        com.zhiliaoapp.musically:
          com.tortel.syslog
        com.facebook.katana:
          com.tortel.syslog
        com.dv.adm:
          com.tortel.syslog
        com.cloudflare.onedotonedotonedotone:
          com.tortel.syslog
      queryable via interaction:
        User 0:
          [com.android.providers.settings,com.android.server.telecom,android,com.android.localtransport,com.android.dynsystem,com.qti.snapdragon.qdcm_ff,com.android.inputdevices,com.android.settings,com.tct.iris,com.android.wallpaperbackup,com.android.mmi,com.android.location.fused,com.qualcomm.qti.xrvd.service,com.android.keychain,vendor.qti.qesdk.sysservice,com.qti.diagservices]:
            com.tortel.syslog
          [com.google.android.gsf,com.google.android.gms]:
            com.tortel.syslog
          com.google.android.inputmethod.latin:
            com.tortel.syslog
          com.google.android.apps.docs:
            com.tortel.syslog
          com.tortel.syslog:
            com.google.android.documentsui
            com.google.android.apps.docs
      queryable via uses-library:
    
    Dexopt state:
      [com.tortel.syslog]
        path: /data/app/~~ZI0fNHiUKg5YLv91inY5FA==/com.tortel.syslog-QRaUOkFyfcuRjg3U5il04w==/base.apk
          arm64: [status=speed-profile] [reason=bg-dexopt] [primary-abi]
            [location is /data/app/~~ZI0fNHiUKg5YLv91inY5FA==/com.tortel.syslog-QRaUOkFyfcuRjg3U5il04w==/oat/arm64/base.odex]
    
    Compiler stats:
      [com.tortel.syslog]
        (No recorded stats)
    root@sayw4i:/home/RokeJulianLockhart#
    

Environments

  1. Operating System: Fedora Linux 40
    KDE Plasma Version: 6.1.4
    KDE Frameworks Version: 6.5.0
    Qt Version: 6.7.2
    Kernel Version: 6.10.6-200.fc40.x86_64 (64-bit)
    Graphics Platform: Wayland
    Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
    Memory: 30.5 GiB of RAM
    Graphics Processor: AMD Radeon RX 5700
    Manufacturer: ASRock
    Product Name: X670E Taichi
    
  2. FP5.UT20.B.041.20240624

RokeJulianLockhart avatar Aug 28 '24 11:08 RokeJulianLockhart