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.1
Last Updated: 2020-11-11T18:30:00Z
2.Blocks
Methods/Functions
3.Usage
A small documentation…
Returns app name from package
Returns app version code from package
Returns app version name from package
Checks whether specific permission is granted to current app or not
Checks whether specific permission is granted to particular app or not
Checks whether system has a particular feature or not
Returns first install time of a package or app
Returns path to icon of an app
Returns a list of installed packages/apps.You can also filter list by system apps.
Returns true if a particular package is installed else false
Returns last update time of a package/app
Returns target sdk version of an app
Checks whether an app is system app or not
Returns true if device is booted in safe mode else false
Returns a list of system available features
Returns uid associated with particular package
Returns a list of currently running apps
Returns package name of the installer of particular package
Returns a list of permissions used by a package
Checks whether given package/app is running in foreground or not
Tries to uninstall given package
Tries to install app from apk file.It does not need full path.
Tries to get icon of given package and sets to given image’s picture
Launches app from package name
Creates a home screen shortcut of app
4.Download
Aix:
com.sunny.PkgUtils.aix (16.3 KB)
5.Credits
I would like to say thank you to following for helping me to make PkgUtils:
@yusufcihan
and also thank you to @Aditya_Singh for this great idea
also a lot of thanks to @msr79526 for testing and his precious advices
6.Liked PkgUtils/Support Me
Kindly PM me if you want to donate.
Thank you
7.Updates/Bug Fixes
ChangeLog Version 2
New blocks
Some new blocks have been added:-
Changes/Bug Fixes
- Added filter in ‘InstalledApps’ method
- Some other minor changes
ChangeLog Version 3
Changes
- Added necessary permissions in extension
Thanks to @bodymindpower - Fixed grammar and spelling mistakes
- Some internal changes to reduce aix size (16.1 > 14.5 KB)
ChangeLog Version 4
New blocks
Bug Fixes
- Fixed bug
Install App
method
Thanks to @bodymindpower and @Stormi
ChangeLog Version 5
New Blocks
- Added
CreateShortcut
method
Bug Fixes
- Fixed (finally) bug in
InstallApp
method
Changes
-
FirstInstallTiime
andLastInstallTime
methods will now return epoch timestamp - Some minor change in
Icon
method - Removed
RunningAppsList
method
ChangLog Verson 5.1
- AndroidX support (awaiting release since November 2020)