Back

GetInstalledApps

JS Py
Hello World

Returns a list of objects containing informations about installed apps.

Note: This function is deprecated. Filters are applied since Android 11. Full functionality can be accessed in the X-Version of DS.
See Android Package Visibility for more information.

See Also: GetRunningApps, GetRunningServices

Example - Show installed apps

function OnStart()
{
    app.ShowProgress();

    var lay = app.CreateLayout( "linear" );

    var list = app.GetInstalledApps();

    lst = app.CreateList( "", 1, 1 );
    lay.AddChild( lst );

    for(var i in list) {
        var a = list[i];
        lst.AddItem(a.packageName);
    }

    app.AddLayout(lay);

    app.HideProgress();
}
from native import app

def OnStart():
    app.ShowProgress()

    lay = app.CreateLayout("linear")

    list = app.GetInstalledApps()

    lst = app.CreateList("", 1, 1)
    lay.AddChild(lst)

    for i in range(len(list)):
        a = list[i]
        lst.AddItem(a.packageName)

    app.AddLayout(lay)

    app.HideProgress()
Copy All       Run      
String
Number: integer
String: path to file or folder ( “/absolute/...” or “relative/...” )