函数名

getPackageName()

函数介绍

方法名称:获取当前脚本的包名

返回值:返回获取到的APK包名


注意:此函数不支持无APP运行

函数例子

local pkg = getPackageName()
print(pkg)