tsteward Well-Known Member Licensed User Longtime User Nov 9, 2021 #1 In the code below the list apps does not contain all the apps installed. "com.ecartek.en.kd" definately exists but is not returned in the list. Am I doing something wrong? It does return 300 odd other apps Dim pm As PackageManager Dim apps As List apps.Initialize apps = pm.GetInstalledPackages If apps.IndexOf("com.ecartek.en.kd") > -1 Then lst1i.Add("Launch KeyDIY App") End If
In the code below the list apps does not contain all the apps installed. "com.ecartek.en.kd" definately exists but is not returned in the list. Am I doing something wrong? It does return 300 odd other apps Dim pm As PackageManager Dim apps As List apps.Initialize apps = pm.GetInstalledPackages If apps.IndexOf("com.ecartek.en.kd") > -1 Then lst1i.Add("Launch KeyDIY App") End If
agraham Expert Licensed User Longtime User Nov 9, 2021 #2 Looks OK to me. What is your targetSdkVersion in the manifest? Upvote 0
tsteward Well-Known Member Licensed User Longtime User Nov 9, 2021 #3 I get most but not all apps returned. <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="30"/> Upvote 0
I get most but not all apps returned. <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="30"/>
agraham Expert Licensed User Longtime User Nov 9, 2021 #4 Try lowering the target to 28 and see what happens https://developer.android.com/reference/android/content/pm/PackageManager Note: If your app targets Android 11 (API level 30) or higher, the methods in this class each return a filtered list of apps. Learn more about how to manage package visibility. Click to expand... Upvote 2
Try lowering the target to 28 and see what happens https://developer.android.com/reference/android/content/pm/PackageManager Note: If your app targets Android 11 (API level 30) or higher, the methods in this class each return a filtered list of apps. Learn more about how to manage package visibility. Click to expand...
tsteward Well-Known Member Licensed User Longtime User Nov 9, 2021 #5 Okay so dropping it to 28 solves the problem. But google wants apps to start supporting target 30 so its not really a solution. Upvote 0
Okay so dropping it to 28 solves the problem. But google wants apps to start supporting target 30 so its not really a solution.
agraham Expert Licensed User Longtime User Nov 10, 2021 #6 No, but it tells us why. It"s the new limitations. There should be a way to query individual known apps. I'll look later if no-one else responds. Upvote 0
No, but it tells us why. It"s the new limitations. There should be a way to query individual known apps. I'll look later if no-one else responds.
Pendrush Well-Known Member Licensed User Longtime User Nov 10, 2021 #7 Use of the broad package (App) visibility (QUERY_ALL_PACKAGES) permission - Play Console Help Google Play restricts the use of high-risk or sensitive permissions, including the QUERY_ALL_PACKAGES permission, which gives visibility into the inventory of installed support.google.com Upvote 0
Use of the broad package (App) visibility (QUERY_ALL_PACKAGES) permission - Play Console Help Google Play restricts the use of high-risk or sensitive permissions, including the QUERY_ALL_PACKAGES permission, which gives visibility into the inventory of installed support.google.com