Android Lollipop - WiFi Hotspot setWifiApEnabled() get InvocationTargetException

前端 未结 5 1843
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-10 11:12

I\'m using in the app

setWifiApEnabled()

from Hidden API (access by reflection). In some older phone it´s working (also with Samsung Galaxy S3,

5条回答
  •  既然无缘
    2021-02-10 11:20

    I found the cause:

    Caused by: java.lang.SecurityException: ConnectivityService: Neither user 10260 nor current process has android.permission.CONNECTIVITY_INTERNAL.
    

    Info:

    How can system app located in /system/app have system permission in Android 4.4 KitKat build?

    It´s a little big problem :)

提交回复
热议问题