Android该怎样获取系统上安装的APP信息
答案:2 悬赏:0 手机版
解决时间 2021-01-04 00:48
- 提问者网友:姑娘长的好罪过
- 2021-01-03 12:17
Android该怎样获取系统上安装的APP信息
最佳答案
- 五星知识达人网友:老鼠爱大米
- 2021-01-03 13:07
publicclass AppInfo {
public String appName="";
public String packageName="";
public String versionName="";
publicint versionCode=0;
public Drawable appIcon=null;
publicvoid print()
{
Log.v("app","Name:"+appName+" Package:"+packageName);
Log.v("app","Name:"+appName+" versionName:"+versionName);
Log.v("app","Name:"+appName+" versionCode:"+versionCode);
}
}
ArrayList appList = new ArrayList(); //用来存储获取的应用信息数据
List packages = getPackageManager().getInstalledPackages(0);
for(int i=0;i
PackageInfo packageInfo = packages.get(i);
AppInfo tmpInfo =new AppInfo();
tmpInfo.appName = packageInfo.applicationInfo.loadLabel(getPackageManager()).toString();
tmpInfo.packageName = packageInfo.packageName;
tmpInfo.versionName = packageInfo.versionName;
tmpInfo.versionCode = packageInfo.versionCode;
tmpInfo.appIcon = packageInfo.applicationInfo.loadIcon(getPackageManager());
appList.add(tmpInfo);
}
// 这下手机上安装的应用数据都存在appList里了。
public String appName="";
public String packageName="";
public String versionName="";
publicint versionCode=0;
public Drawable appIcon=null;
publicvoid print()
{
Log.v("app","Name:"+appName+" Package:"+packageName);
Log.v("app","Name:"+appName+" versionName:"+versionName);
Log.v("app","Name:"+appName+" versionCode:"+versionCode);
}
}
ArrayList appList = new ArrayList(); //用来存储获取的应用信息数据
List
for(int i=0;i
AppInfo tmpInfo =new AppInfo();
tmpInfo.appName = packageInfo.applicationInfo.loadLabel(getPackageManager()).toString();
tmpInfo.packageName = packageInfo.packageName;
tmpInfo.versionName = packageInfo.versionName;
tmpInfo.versionCode = packageInfo.versionCode;
tmpInfo.appIcon = packageInfo.applicationInfo.loadIcon(getPackageManager());
appList.add(tmpInfo);
}
// 这下手机上安装的应用数据都存在appList里了。
全部回答
- 1楼网友:渡鹤影
- 2021-01-03 14:37
首先你要获得root权限,然后连接电脑,确定驱动已经装好,然后。
在命令行里输入 adb shell 回车,你会看到$,然后输入su,再回车,出现#
然后输入以下命令,最后的文件名是要删除的程序名称,请根据自己需要确定是否要删除该程序
/system/bin/rm /system/app/com.htc.twitterwidget.*
/system/bin/rm /system/app/htctwitter.*
/system/bin/rm /system/app/htcfootprintswidget.*
/system/bin/rm /system/app/htcfootprints.*
/system/bin/rm /system/app/stock.*
/system/bin/rm /system/app/com.htc.stockwidget.*
/system/bin/rm /system/app/vvm.*
/system/bin/rm /system/app/quickoffice.*
/system/bin/rm /system/app/pdfviewer.*
/system/bin/rm /system/app/calculator.*
/system/bin/rm /system/app/mail.*
/system/bin/rm /system/app/htcmailwidgets.*
/system/bin/rm /system/app/htcmsgwidgets.*
/system/bin/rm /system/app/htcringtonetrimmer.*
/system/bin/rm /system/app/flickr.*
/system/bin/rm /system/app/cityid.*
/system/bin/rm /system/app/friendstream.*
/system/bin/rm /system/app/com.htc.friendstreamwidget.*
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯