aapt查看apk应用信息

aapt是Android asset package tools,利用aapt命令可以很方便的查看app包信息。

linux下安装配置aapt:先下载aapt,然后放入/usr/bin目录,并改变权限为可执行文件。


aapt帮助,以下截图说的很清楚。


aapt dump badging xxx.apk


有的系统在使用aapt命令时会提示缺失libstdc++.so库文件,可以通过yum方式安装。安装过程中可能会遇到多版本冲突。

[root@lpp-01 8af7892461df5c530161e1139fc60004]# aapt dump badging test2455.shenqi.releasekey.apk 
aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[root@lpp-01 8af7892461df5c530161e1139fc60004]# yum whatprovides libstdc++.so.6
libstdc++-4.4.7-18.el6.i686 : GNU Standard C++ Library
Repo        : base
Matched from:
Other       : libstdc++.so.6

[root@lpp-01 8af7892461df5c530161e1139fc60004]# yum install libstdc++-4.4.7-18.el6.i686
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package libstdc++.i686 0:4.4.7-18.el6 will be installed
--> Processing Dependency: libgcc_s.so.1(GLIBC_2.0) for package: libstdc++-4.4.7-18.el6.i686
       ......此处省略部分打印信息   
       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).
       
       Protected multilib versions: libstdc++-4.4.7-18.el6.i686 != libstdc++-4.4.7-17.el6.x86_64

解决多版本冲突,可以通过删除原来版本,再安装新版本。也可以安装时指定参数--setopt=protected_multilib=false。

[root@lpp-01 8af7892461df5c530161e1139fc60004]# rpm -e libstdc++-4.4.7-17.el6.x86_64 --nodeps
[root@lpp-01 8af7892461df5c530161e1139fc60004]# yum install libstdc++-4.4.7-18.el6.i686
安装完成即可使用aapt命令,产生上面截图一样的结果了。



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

luffy5459

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值