Move me

  • 首页
  • About
    • History
  • 技术与技巧
    • 编程
    • 软件
  • ACG
    • 动画欣赏
    • 游戏
  • 随笔
    • 诗赋
    • 观点
    • 吐槽
  • 文章存档
  • 友情链接
Move me
My footprint on web
  1. 首页
  2. 技术与技巧
  3. 编程
  4. 正文

提取并解析IPA内plist文件

2023年11月22日 6347次阅读 1人点赞 0条评论

为了明确iOS发布包内申明的权限,写了脚本提取全部Info.plist文件,如果需要包含其他plist文件,也很容易修改:

For getting all permissions in an pre-publish ipa file, use following shell code to output all info.plist files content to result file as Json formatting:

Bash
IPA=xxx.ipa
result=xxxx.txt

rm $result
rm -r Payload
unzip $IPA `zipinfo -1 $IPA | grep -i info.plist`
ls ./Payload/**/Info.plist | xargs plutil -convert json
ls ./Payload/**/Info.plist | xargs -I {} sh -c "cat {} | python3 -m json.tool" > $result
标签: 暂无
最后更新:2025年1月9日

一树小草

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

取消回复

公告

终于能正常访问了,希望这次能撑得久一点。

——2021.11.04

普通的有机生命体;

beta版的智人

总是跳过OP、ED的坏孩子;

有自知之明的变态

COPYRIGHT © 2021 spdf.me. ALL RIGHTS RESERVED.

Theme Kratos by Seaton Jiang. PJAX fork by 小白-白.