java.lang.SecurityException: WifiService: Neither user 10085 nor current process has android.permission.CHANGE_WIFI_STATE.

JIRA | ariesjia | 2 years ago
  1. 0

    This is my log : My cordova android version is 3.6.4 , also crash on 3.5.1 Can you help me D/AudioPolicyManagerALSA( 256): isStreamActive: 0 E/ALSAStreamOps( 256): setParameters(): keyRouting with device2 0x2 D/AudioHardwareALSA( 256): device = 0x2,mCurDevice 0x2 I/AudioHardwareALSA( 256): Device and mCurDevice is the same, no need to routing I/AudioFlinger( 256): setAppName(), name=[system_server], active=[1] W/AudioFlinger( 256): session id 1025 not found for pid 847 D/ALSADevice( 256): route: devices 0x2 in mode 0 D/ALSADevice( 256): setEndpDevice: device 2 D/ALSADevice( 256): setMixerControl:: name DS1 DAP Endpoint count 1 D/ALSADevice( 256): DMID value: 0 D/ALSADevice( 256): setMixerControl:: name DS1 Security count 1 D/ALSADevice( 256): switchDevice: device 0x2 mode:0 D/ALSADevice( 256): getUCMDevice for output device: devices:2 is input device:0 D/ALSADevice( 256): switchDevice: rxDevice Speaker devices:0x2 D/ALSADevice( 256): getUCMDevice for input device: devices:0 is input device:1 D/ALSADevice( 256): No valid input device: 0 D/ALSADevice( 256): switchDevice: txDevice:(null) devices:0x2 D/alsa_ucm( 256): snd_use_case_set(): uc_mgr 0xb867d380 identifier _enadev value Speaker D/ALSADevice( 256): switchDevice: mCurTxUCMDevice DMIC Endfire mCurRxDevDevice Speaker D/ALSADevice( 256): rx_ACDB_id=14, tx_ACDB_id=41 D/alsa_ucm( 256): snd_use_case_set(): uc_mgr 0xb867d380 identifier _verb value HiFi Lowlatency D/alsa_ucm( 256): Set mixer controls for Speaker enable 1 D/alsa_ucm( 256): acdb_id 14 cap 1 enable 1 D/ACDB-LOADER( 256): ACDB -> send_audio_cal, acdb_id = 14, path = 0 D/ACDB-LOADER( 256): ACDB -> send_adm_topology D/ACDB-LOADER( 256): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID D/ACDB-LOADER( 256): ACDB -> send_audtable D/ACDB-LOADER( 256): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE D/ACDB-LOADER( 256): ACDB -> AUDIO_SET_AUDPROC_CAL D/ACDB-LOADER( 256): ACDB -> send_audvoltable D/ACDB-LOADER( 256): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE D/ACDB-LOADER( 256): ACDB -> AUDIO_SET_AUDPROC_VOL_CAL D/ACDB-LOADER( 256): ACDB -> AUDIO_SET_AFE_CAL D/alsa_ucm( 256): Setting mixer control: SLIM RX1 MUX, value: AIF1_PB I/ActivityManager( 847): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.test.tros/.barbarian bnds=[206,856][342,992]} from pid 1287 D/alsa_ucm( 256): Setting mixer control: SLIM_0_RX Channels, value: One D/alsa_ucm( 256): Setting mixer control: RX4 MIX1 INP1, value: RX1 D/alsa_ucm( 256): Setting mixer control: RX4 Digital Volume, value: 70 D/alsa_ucm( 256): Setting mixer control: SPK DAC Switch, value: 1 D/alsa_ucm( 256): Setting mixer control: COMP0 Switch, value: 1 D/alsa_ucm( 256): Set mixer controls for HiFi Lowlatency enable 1 D/alsa_ucm( 256): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia5, value: 1 D/ALSADevice( 256): close: handle 0xb8783ba0 h 0x0 D/ALSADevice( 256): open: handle 0xb8783ba0, format 0x2 D/ALSADevice( 256): Music case D/ALSADevice( 256): Device value returned is hw:0,15 D/ALSADevice( 256): flags 0, devName hw:0,15 D/ALSADevice( 256): handle->format: 0x2 D/ALSADevice( 256): setHardwareParams: reqBuffSize 960 channels 2 sampleRate 48000 D/ALSADevice( 256): setHardwareParams: buffer_size 7680, period_size 960, period_cnt 8 D/dalvikvm(28162): Late-enabling CheckJNI I/ActivityManager( 847): Start proc com.test.tros for activity com.test.tros/.barbarian: pid=28162 uid=10085 gids={50085, 3003, 1015, 1028} I/NotifierManager( 1287): onUnregister: miui.maml.NotifierManager$BroadcastNotifier@42ddcc08 I/RenderThread( 1287): RenderThread paused, waiting for signal D/dalvikvm( 254): GC_EXPLICIT freed 40K, 56% free 6512K/14720K, paused 2ms+1ms, total 38ms D/dalvikvm(28162): Trying to load lib /data/data/com.lbe.security.miui/app_hips/liblbeclient.so 0x426ebfa8 D/dalvikvm(28162): Added shared lib /data/data/com.lbe.security.miui/app_hips/liblbeclient.so 0x426ebfa8 D/dalvikvm( 254): GC_EXPLICIT freed <1K, 56% free 6512K/14720K, paused 2ms+2ms, total 20ms D/dalvikvm( 254): GC_EXPLICIT freed <1K, 56% free 6512K/14720K, paused 1ms+1ms, total 15ms D/PhoneStatusBar( 1067): disable: < expand icons alerts ticker system_info back home recent clock > W/ActivityThread(28162): Application com.test.tros can be debugged on port 8100... I/AudioFlinger( 256): setAppName(), name=[system_server], active=[0] I/CordovaLog(28162): Changing log level to DEBUG(3) I/CordovaLog(28162): Found start page location: index.html D/Whitelist(28162): Unlimited access to network resources D/CordovaActivity(28162): CordovaActivity.onCreate() W/XWalkInternalResources(28162): org.xwalk.core.R$styleis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$stringis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$menuis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$layoutis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$idis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$drawableis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$dimenis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$attris not found. W/XWalkInternalResources(28162): org.xwalk.core.R$dimenis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$coloris not found. W/XWalkInternalResources(28162): org.xwalk.core.R$styleis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$drawableis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$layoutis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$idis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$stringis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$styleis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$stringis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$mipmapis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$menuis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$layoutis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$idis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$drawableis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$dimenis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$coloris not found. W/XWalkInternalResources(28162): org.xwalk.core.R$attris not found. W/System.err( 847): java.lang.SecurityException: WifiService: Neither user 10085 nor current process has android.permission.CHANGE_WIFI_STATE. W/System.err( 847): at android.app.ContextImpl.enforce(ContextImpl.java:1603) W/System.err( 847): at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1632) W/System.err( 847): at com.android.server.wifi.WifiService.enforceChangePermission(WifiService.java:314) W/System.err( 847): at com.android.server.wifi.WifiService.getWifiServiceMessenger(WifiService.java:760) W/System.err( 847): at android.net.wifi.IWifiManager$Stub.onTransact(IWifiManager.java:416) W/System.err( 847): at android.os.Binder.execTransact(Binder.java:388) W/System.err( 847): at dalvik.system.NativeStart.run(Native Method) D/dalvikvm(28162): Trying to load lib /data/app-lib/com.test.tros-2/libxwalkcore.so 0x4271f530 D/dalvikvm(28162): Added shared lib /data/app-lib/com.test.tros-2/libxwalkcore.so 0x4271f530 I/LibraryLoader(28162): Time to load native libraries: 28 ms (timestamps 2975-3003) I/LibraryLoader(28162): Expected native library version number "",actual native library version number "" I/LibraryLoader(28162): Expected native library version number "",actual native library version number "" I/chromium(28162): [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0 I/BrowserStartupController(28162): Initializing chromium process, singleProcess=true W/AudioManagerAndroid(28162): Requires BLUETOOTH permission D/libEGL (28162): loaded /vendor/lib/egl/libEGL_adreno.so D/libEGL (28162): loaded /vendor/lib/egl/libGLESv1_CM_adreno.so D/libEGL (28162): loaded /vendor/lib/egl/libGLESv2_adreno.so I/Adreno-EGL(28162): <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_3.2_RB2.04.03.00.129.098_msm8226_JB_3.2_RB2__release_AU () I/Adreno-EGL(28162): OpenGL ES Shader Compiler Version: 20.00.08 I/Adreno-EGL(28162): Build Date: 03/04/14 Tue I/Adreno-EGL(28162): Local Branch: I/Adreno-EGL(28162): Remote Branch: quic/jb_3.2_rb2.32 I/Adreno-EGL(28162): Local Patches: NONE I/Adreno-EGL(28162): Reconstruct Branch: AU_LINUX_ANDROID_JB_3.2_RB2.04.03.00.129.098 + NOTHING W/chromium(28162): [WARNING:proxy_service.cc(909)] PAC support disabled because there is no system implementation W/ContentViewCore(28162): Setting contentDescription to 'Web View' as no value was specified. W/ResourceType(28162): No package identifier when getting value for resource number 0x00000000 W/System.err(28162): java.lang.reflect.InvocationTargetException W/System.err(28162): at java.lang.reflect.Constructor.constructNative(Native Method) W/System.err(28162): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) W/System.err(28162): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:226) W/System.err(28162): at org.xwalk.core.XWalkView.<init>(XWalkView.java:185) W/System.err(28162): at org.apache.cordova.CordovaWebView.<init>(CordovaWebView.java:139) W/System.err(28162): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:301) W/System.err(28162): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:336) W/System.err(28162): at com.test.tros.barbarian.onCreate(barbarian.java:65) W/System.err(28162): at android.app.Activity.performCreate(Activity.java:5133) W/System.err(28162): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) W/System.err(28162): at com.lbe.security.service.core.client.internal.InstrumentationDelegate.callActivityOnCreate(InstrumentationDelegate.java:76) W/System.err(28162): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178) W/System.err(28162): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2264) W/System.err(28162): at android.app.ActivityThread.access$600(ActivityThread.java:144) W/System.err(28162): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259) W/System.err(28162): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err(28162): at android.os.Looper.loop(Looper.java:137) W/System.err(28162): at android.app.ActivityThread.main(ActivityThread.java:5137) W/System.err(28162): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err(28162): at java.lang.reflect.Method.invoke(Method.java:525) W/System.err(28162): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:756) W/System.err(28162): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:572) W/System.err(28162): at miui.dexspy.DexspyInstaller.main(DexspyInstaller.java:171) W/System.err(28162): at dalvik.system.NativeStart.main(Native Method) W/System.err(28162): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 W/System.err(28162): at android.content.res.Resources.getText(Resources.java:240) W/System.err(28162): at android.content.res.MiuiResources.getText(MiuiResources.java:131) W/System.err(28162): at android.content.res.Resources.getString(Resources.java:326) W/System.err(28162): at android.content.Context.getString(Context.java:337) W/System.err(28162): at org.xwalk.core.internal.XWalkUIClientInternal.initResources(XWalkUIClientInternal.java:62) W/System.err(28162): at org.xwalk.core.internal.XWalkUIClientInternal.<init>(XWalkUIClientInternal.java:57) W/System.err(28162): at org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(XWalkViewInternal.java:355) W/System.err(28162): at org.xwalk.core.internal.XWalkViewInternal.init(XWalkViewInternal.java:335) W/System.err(28162): at org.xwalk.core.internal.XWalkViewInternal.<init>(XWalkViewInternal.java:211) W/System.err(28162): at org.xwalk.core.internal.XWalkViewBridge.<init>(XWalkViewBridge.java:49) W/System.err(28162): ... 24 more D/AndroidRuntime(28162): Shutting down VM W/dalvikvm(28162): threadid=1: thread exiting with uncaught exception (group=0x4208f898) E/AndroidRuntime(28162): FATAL EXCEPTION: main E/AndroidRuntime(28162): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.tros/com.test.tros.barbarian}: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException E/AndroidRuntime(28162): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2214) E/AndroidRuntime(28162): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2264) E/AndroidRuntime(28162): at android.app.ActivityThread.access$600(ActivityThread.java:144) E/AndroidRuntime(28162): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259) E/AndroidRuntime(28162): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(28162): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(28162): at android.app.ActivityThread.main(ActivityThread.java:5137) E/AndroidRuntime(28162): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(28162): at java.lang.reflect.Method.invoke(Method.java:525) E/AndroidRuntime(28162): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:756) E/AndroidRuntime(28162): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:572) E/AndroidRuntime(28162): at miui.dexspy.DexspyInstaller.main(DexspyInstaller.java:171) E/AndroidRuntime(28162): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(28162): Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException E/AndroidRuntime(28162): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:207) E/AndroidRuntime(28162): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:234) E/AndroidRuntime(28162): at org.xwalk.core.XWalkView.<init>(XWalkView.java:185) E/AndroidRuntime(28162): at org.apache.cordova.CordovaWebView.<init>(CordovaWebView.java:139) E/AndroidRuntime(28162): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:301) E/AndroidRuntime(28162): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:336) E/AndroidRuntime(28162): at com.test.tros.barbarian.onCreate(barbarian.java:65) E/AndroidRuntime(28162): at android.app.Activity.performCreate(Activity.java:5133) E/AndroidRuntime(28162): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) E/AndroidRuntime(28162): at com.lbe.security.service.core.client.internal.InstrumentationDelegate.callActivityOnCreate(InstrumentationDelegate.java:76) E/AndroidRuntime(28162): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178) E/AndroidRuntime(28162): ... 12 more E/AndroidRuntime(28162): Caused by: java.lang.reflect.InvocationTargetException E/AndroidRuntime(28162): at java.lang.reflect.Constructor.constructNative(Native Method) E/AndroidRuntime(28162): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) E/AndroidRuntime(28162): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:226) E/AndroidRuntime(28162): ... 21 more E/AndroidRuntime(28162): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 E/AndroidRuntime(28162): at android.content.res.Resources.getText(Resources.java:240) E/AndroidRuntime(28162): at android.content.res.MiuiResources.getText(MiuiResources.java:131) E/AndroidRuntime(28162): at android.content.res.Resources.getString(Resources.java:326) E/AndroidRuntime(28162): at android.content.Context.getString(Context.java:337) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkUIClientInternal.initResources(XWalkUIClientInternal.java:62) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkUIClientInternal.<init>(XWalkUIClientInternal.java:57) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(XWalkViewInternal.java:355) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkViewInternal.in it(XWalkViewInternal.java:335) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkViewInternal.<init>(XWalkViewInternal.java:211) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkViewBridge.<init>(XWalkViewBridge.java:49) E/AndroidRuntime(28162): ... 24 more W/ActivityManager( 847): Force finishing activity com.test.tros/.barbarian I/Process (28162): Sending signal. PID: 28162 SIG: 9 I/ActivityManager( 847): Process com.test.tros (pid 28162) has died. I/RenderThread( 1287): RenderThread resumed I/NotifierManager( 1287): onRegister: miui.maml.NotifierManager$BroadcastNotifier@42ddcc08 D/PhoneStatusBar( 1067): disable: < expand icons alerts ticker system_info back home recent clock > W/InputMethodManagerService( 847): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43696530 attribute=null, token = android.os.BinderProxy@428b8e50

    JIRA | 2 years ago | ariesjia
    java.lang.SecurityException: WifiService: Neither user 10085 nor current process has android.permission.CHANGE_WIFI_STATE.
  2. 0

    Lenovo P780 - Обновление S220_140722 на S221_140729 KitKat - Страница 22 - Lenovo P780 официальные прошивки - Форум Lenovo

    lenovo-forums.ru | 1 year ago
    java.lang.SecurityException: WifiService: Neither user 10107 nor current process has android.permission.CHANGE_WIFI_STATE.
  3. 0

    Crash on Android before splash with error EGL_BAD_ATTRIBUTE | Unity Community

    unity3d.com | 3 months ago
    java.lang.SecurityException: WifiService: Neither user 10040 nor current process has android.permission.CHANGE_WIFI_STATE.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MMS doesn't support user/pass credentials

    GitHub | 2 years ago | MatthewWilkes
    java.lang.SecurityException: No permission to write APN settings: Neither user 10228 nor current process has android.permission.WRITE_APN_SETTINGS.
  6. 0

    textsecure cannot write APN settings --> no outgoing text

    GitHub | 2 years ago | talexand
    java.lang.SecurityException: No permission to write APN settings: Neither user 10208 nor current process has android.permission.WRITE_APN_SETTINGS.

  1. mukky 81 times, last 4 months ago
  2. brunosatriani 2 times, last 5 months ago
  3. adawolfs 352 times, last 5 months ago
  4. laszlo.kustra 27 times, last 8 months ago
  5. Nisha Singh 10 times, last 8 months ago
2 more registered users
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.SecurityException

    WifiService: Neither user 10085 nor current process has android.permission.CHANGE_WIFI_STATE.

    at android.app.ContextImpl.enforce()
  2. Android Platform
    ContextImpl.enforceCallingOrSelfPermission
    1. android.app.ContextImpl.enforce(ContextImpl.java:1603)
    2. android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1632)
    2 frames
  3. com.android.server
    WifiService.getWifiServiceMessenger
    1. com.android.server.wifi.WifiService.enforceChangePermission(WifiService.java:314)
    2. com.android.server.wifi.WifiService.getWifiServiceMessenger(WifiService.java:760)
    2 frames
  4. Android Platform
    NativeStart.run
    1. android.net.wifi.IWifiManager$Stub.onTransact(IWifiManager.java:416)
    2. android.os.Binder.execTransact(Binder.java:388)
    3. dalvik.system.NativeStart.run(Native Method)
    3 frames