Share this post on:

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.

Latest Version: 5

Released: Dec 21, 2019

Last Updated: November 12,2020

 

2.Blocks


image
image
image
image

3.Documentation

A small documentation…

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

 

scrnli_12_21_2019_12-03-51 PMscrnli_12_21_2019_12-03-51 PM697×198 6.6 KBChecks whether specific permission is granted to current app or not

scrnli_12_21_2019_12-04-51 PMChecks 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

imageReturns uid associated with particular package

image

Returns a list of currently running apps

imageReturns 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.

 

blocks (47)blocks (47)702×106 8.12 KBTries to get icon of given package and sets to given image’s picture

 

blocks (48)blocks (48)726×80 6.8 KBLaunches app from package name

image

Creates a home screen shortcut of app

4.Downloads

Aix: com.sunny.PkgUtils.aix

5.Updates

ChangeLog Version2

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

ChangLog Version3

Changes

  • Added necessary permissions in extension
  • Fixed grammar and spelling mistakes
  • Some internal changes to reduce aix size (16.1 > 14.5 KB)

ChangeLog Version4

New blocks
image

Bug Fixes

  • Fixed bug Install App method

ChangLog Version5

New Blocks

  • Added CreateShortcut method
    image

Bug Fixes

  • Fixed (finally) bug in InstallApp method

Changes

  • FirstInstallTiime and LastInstallTime methods will now return epoch timestamp
  • Some minor change in Icon method
  • Removed RunningAppsList method

ChangeLog Version 5.1

  • Added AndroidX support
Subscribe
Notify of
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Xoma
1 year ago

Nice