Home  >  Q&A  >  body text

android 如何读取系统文件

系统已经 root, 我想读取 /data/wifi/misc/wpa_supplicant.conf 文件, 已经添加申请 root 权限代码

当我读取这个文件的时候,系统输出 没有权限访问文件

PHPzPHPz2765 days ago785

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-04-17 13:20:35

    "Application for root permission code", did you adjust su in the rooted system? This should not result in loss of permissions.

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 13:20:35

    First execute the su command with code, and then read the file.
    p.s. Some machines may not provide the su executable program, so before doing this, use the command line to confirm whether su is already available
    p.s. In addition, if you use a root application to perform rooting, an authorization window will usually pop up. At this time, you must click Confirm to authorize.

    Please refer to:
    How To Change folder permission via SU [root] eclipse android
    Copy files to another package folder (root, su)

    reply
    0
  • Cancelreply