As I said / assumed:
As I’ve said often enough, I hate permissions (just like my users) and try to avoid them whenever possible.
Therefore, the non-pro version should not request permissions. I had removed both permissions (READ / WRITE) from the Manifest and used an empty .PermissionDenied block
.
No, for both…
No, for both
But it shouldn’t …
In this image, you were supposed to see the icon.
So it needs permission for showing the apps icon.
So it needs permission for showing the apps icon
see the documentation for property DefaultDirectory here App Inventor Extensions: Package Manager | Pura Vida Apps Set the default directory. Default value is /Pictures/.Packages . In the GotPackages event the icons of all the installed apps will be stored in that directory. Note: starting the directory with a dot hides the directory from the Gallery app. Taifun
No, for both
No.
In this image, you were supposed to see the icon
No, only with the Pro version.
To finally clarify that:
- I used the original aia from Taifun and used it to create the APK.
- If you install this APK on a device with API > 22, the folder
/Pictures/Packages
is NOT created, regardless of whether you grant or deny permission. - When you install the APK on a device with API < 23, the folder is created (because permissions are granted at install-time) and even the icons are displayed.
Conclusion:
- The app does NOT automatically request WRITE permission, only READ.
- The APK (non-pro version) will work regardless of this. if you deny permission or, as I have shown with my packagemanager2.apk, if the permissions have been removed from the manifest.
- The default folder
/Pictures/Packages
is only created if WRITE permission is requested manually and then granted. - And again: This folder is not required for the non-pro version to work.
No.
Yees
Are you unable to come to the conclusion that
- extension is made 3 years ago
- builders might handle permissions differently since then
- Taifun should also update the tutorial where stated, that you have to ask for permission
On MIT AI2 neither read or write is asked
For clarification, look at Taifun’s page to see what is the differences between them
- list without icon
- list with icon (this was not possible at that time Aug 24th, 2017)
- chosen app should show icon in both cases
So ask for permission…
Are you unable to come to the conclusion that
- extension is made 3 years ago
This is not a conclusion, but a simple fact (which is also not relevant here).
- Taifun should also update the tutorial where stated, that you have to ask for permission
No, he should note that for the Pro version, WRITE permission should be requested manually.
But he should remove this from the non-pro version, as the icons are not displayed reliably (see below). The non-pro version works, as has been said often enough, even without permissions (but of course without icon).
On MIT AI2 neither read or write is asked
That’s not true. If an app is selected from the packageList, READ permission is requested.
For clarification, look at Taifun’s page to see what is the differences between them
- chosen app should show icon in both cases
No, not (reliably) e.g. on a Galaxy Note8 (Android 9) (only a few):
Examples:
Since I know you have a Galaxy Note8 too, check this …
There is no point in continuing with this as you don’t seem to understand that write permission is required in both cases.
as you don’t seem to understand that write permission is required in both cases
For a very simple reason, because it’s just not true.
If developer says it is needed, why nagging about not needed…
As I’ve said several times, I avoid permission whenever I can. So here too.
I think most developers feel this way because they know from their users that they don’t like permissions at all.
Note: The permissions “problem” might be eliminated by setting the ASD (app-specific directory) as the DefaultDirectory
. With that no permissions should ne necessary.
if you don’t need the icons, then you can remove the permission manually from the manifest
there is only one package manager extension, which provides the data including the icons, however without WRITE permissions the necessary directory can’t be created and the icons can’t be stored…
there is a basic test project and a pro test project. The pro test project additionally displays the icons
hope that helps…
Note : The permissions “problem” might be eliminated by setting the ASD (app-specific directory) as the
DefaultDirectory
. With that no permissions should ne necessary.
I will put this onto my to do list…
Taifun
there is only one package manager extension
Nope, we have one more
1.Introduction PkgUtils is basically related to Package and Package Manager and that is why it is similar to Package Utilities component already available in Kodular. But it has a few more methods in comparison to native component Latest Version: 5 Last Updated: 2020-07-22T18:30:00Z (UTC) 2.Blocks Methods/Functions [image] [image] [image] [image] [image] 3.Usage A small documentation… [scrnli_12_21_2019_12-01-49 PM] Returns app name from package [scrnli_12_…
we have one more
I was talking about my extension and I only offer one packagemanager extension…
I will put this onto my to do list…
I found a bug in the packagemanager extension and fixed it meanwhile… the icon was not extracted for all packages…
also I moved the default directory to a subdirectory of the ASD, which now is /storage/emulated/0/Android/data/<packageName>/files/Packages
.
Now no permissions are required anymore.
@new_code Please download the latest version 2 and try again
Taifun