PkgUtils : Some tools to work with Package

1.Introduction

Hi
Probably you have seen that I was not so much active on Community for some weeks…because I was so much busy in developing ‘PkgUtils’ and was unable to use Community but now extension is complete and ready to be used.
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 :wink:

Latest Version: 2
Last Updated: 2020-03-01T13:10:00Z

2.Blocks

image
image
image
image

It has total 22 methods and 4 properties

3.Usage

A small documentation for PkgUtils…

scrnli_12_21_2019_12-01-49 PM

Returns app name from package

scrnli_12_21_2019_12-02-30 PM

Returns app version code from package

scrnli_12_21_2019_12-03-11 PM

Returns app version name from package

Checks whether specific permission is granted to current app or not

scrnli_12_21_2019_12-04-51 PM

Checks whether specific permission is granted to particular app or not

scrnli_12_21_2019_12-06-56 PM

Checks whether system has a particular feature or not

scrnli_12_21_2019_12-07-43 PM

Returns first install time of a package or app

scrnli_12_21_2019_12-08-21 PM

Returns path to icon of an app

image

Returns a list of installed packages/apps.You can also filter list by system apps.

scrnli_12_21_2019_12-09-26 PM

Returns true if a particular package is installed else false

scrnli_12_21_2019_12-10-38 PM

Returns last update time of a package/app

scrnli_12_21_2019_12-10-54 PM

Returns target sdk version of an app

scrnli_12_21_2019_12-11-07 PM

Checks whether an app is system app or not

component_method (12)

Returns true if device is booted in safe mode else false

component_method (13)

Returns a list of system available features

image

Returns uid associated with particular package

image

Returns a list of currently running apps

image

Returns package name of the installer of particular package

image

Returns a list of permissions used by a package

image

Checks whether given package/app is running in foreground or not

image

Tries to uninstall given package

image

Tries to install app from apk file.It does not need full path.

4.Extension/Aix file

Here are two download links:

Download Link1: com.sunny.PkgUtils.aix (16.1 KB)

Download Link2: PkgUtils.aix - Google Drive

5.Credits

I would like to say thank you to following for helping me to make PkgUtils:
@yusufcihan
@Taifun

and also thank you to @Aditya_Singh for this great idea
also a lot of thanks to @msr79526 for testing and his precious advice :heart_eyes:

6.Liked PkgUtils/Support Me

Really???:heart_eyes:
If you want to do so then please download this extension from this shortened link:

Download Link3: MiniURL

Thank you :slightly_smiling_face:

7.Updates/Bug Fixes

ChangeLog Version 2

New blocks
Some new blocks have been added:-
image
image
image
image
image
image
image

Changes/Bug Fixes

  • Added filter in ‘InstalledApps’ method
  • Some other minor changes
15 Likes

Great work! Keep it up :smile:

1 Like

Great extension!!!

1 Like

great extention.
The Installed Apps Block is easer to understand bcoz it returnes it in list format

1 Like

Great work, clicked on mini url 2 times, and downloaded twice, :heart_eyes:

2 Likes

This is the best way of presenting an extension, by explaining in detail what each block does and providing examples. Some of us are old people, and we are a little slow you know? :grin: Thanks!

6 Likes

ChangeLog Version 2

New blocks
Some new blocks have been added:-
image
image
image
image
image
image
image

Changes/Bug Fixes

  • Added filter in ‘InstalledApps’ method
  • Some other minor changes

Thanks to @msr79526 for his tests and advice :heart_eyes:

5 Likes