Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. QT for android 傳送指令沒有權限
Qt 6.11 is out! See what's new in the release blog

QT for android 傳送指令沒有權限

Scheduled Pinned Locked Moved Unsolved Chinese
1 Posts 1 Posters 811 Views
  • 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 Offline
    M Offline
    minyou
    wrote on last edited by
    #1

    您好:
    我正使用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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved