Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved QT for android 傳送指令沒有權限

    Chinese
    1
    1
    323
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      minyou last edited by

      您好:
      我正使用QT 5.9.1在win7開發app給i.max6 Android6.0使用
      而我使用QProcess 傳送以下指令
      1.ifconfig eth0 down
      2.wpa_cli -i wlan0 add_network
      3.ip link set can0 up
      並得到以下沒有權限的回覆
      1."ifconfig: ioctl 8914: Operation not permitted"
      2."Failed to connect to non-global ctrl_ifname: wlan0 error: Permission denied\nUsing interface 'wlan0' "
      3."RTNETLINK answers: Operation not permitted"

      若只傳送ifconfig、ip link並可以完美的執行
      似乎是app沒有權限可以設定eth0 & wlan0 & can0
      請問有什麼方法可以改善嗎?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post