V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
galaxy
V2EX  ›  Android

生成 boot.img 的 ramdisk 时如何保持文件的执行权限?

  •  
  •   galaxy · Aug 15, 2018 · 11717 views
    This topic created in 2811 days ago, the information mentioned may be changed or developed.
    我用 https://github.com/kiddlu/android-platform-knife 解开 boot.img 后成功允许 ADB 的 root 模式,但 system.img 中没有 su,toybox 也不带 su。

    我自己下载了官方的 toybox,但塞到 ramdisk 根目录并`chmod +x`后,mkbootfs 打包出来的 CPIO.gz 文件还是不带执行权限的。

    该如何处理?是不是 mkbootfs 有其他参数设置文件权限的?

    直接用 cpio 命令可以打包吗?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5845 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 06:04 · PVG 14:04 · LAX 23:04 · JFK 02:04
    ♥ Do have faith in what you're doing.