[Miscellaneous Android Development] eNCHANT:
Hello Joe.stone, I've done what you said "adb shell logcat" and shows some bugs with wifi:

I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiStateMachine( 349): Failed 6 times to start supplicant, unload driver
E/WifiHW ( 137): Failed to open wlan fw path param (No such file or directory)

E/SoftapController( 137): Softap fwReload - failed: -1
E/WifiStateMachine( 349): Failed to reload STA firmware java.lang.IllegalStateE
xception: Error communicating to native daemon
W/CommandListener( 137): Failed to retrieve HW addr for eth0 (No such device)
D/CommandListener( 137): Setting iface cfg
E/WifiStateMachine( 349): Unable to change interface settings: java.lang.Illega
lStateException: Unable to communicate with native daemon to interface setcfg -
com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg eth0 0.
0.0.0 0 [down]} failed with code 400 : {Failed to set address (No such device)}
D/NetworkManagementService( 349): rsp <213 00:00:00:00:00:00 0.0.0.0 0 [down]>
D/NetworkManagementService( 349): flags <[down]>
E/AudioHardwareMSM8660( 142): Cannot open /dev/msm_pcm_out errno: 12
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: channels
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: format
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx : sampleRate
E/wpa_supplicant( 2788): Could not read interface eth0 flags: No such device
E/wpa_supplicant( 2788): WEXT: Could not set interface 'eth0' UP
E/wpa_supplicant( 2788): eth0: Failed to initialize driver interface
I/logwrapper( 2786): /system/bin/wpa_supplicant terminated by exit(255)
V/AudioHardwareMSM8660( 142): open driver
V/Sensors ( 349): void cb_onMotion(uint16_t)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
E/AudioHardwareMSM8660( 142): Cannot open /dev/msm_pcm_out errno: 12
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: channels
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: format
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx : sampleRate
W/AudioFlinger( 142): write blocked for 5019 msecs, 33 delayed writes, thread 0
x15c00
V/AudioHardwareMSM8660( 142): open driver
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
E/AudioHardwareMSM8660( 142): Cannot open /dev/msm_pcm_out errno: 12
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: channels
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: format
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx : sampleRate
W/AudioFlinger( 142): write blocked for 5019 msecs, 34 delayed writes, thread 0
x15c00
V/AudioHardwareMSM8660( 142): open driver
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiHW ( 349): Supplicant not running, cannot connect
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiStateMachine( 349): Failed to setup control channel, restart supplicant
E/WifiHW ( 137): Failed to open wlan fw path param (No such file or directory)

E/SoftapController( 137): Softap fwReload - failed: -1
E/WifiStateMachine( 349): Failed to reload STA firmware java.lang.IllegalStateE
xception: Error communicating to native daemon
W/CommandListener( 137): Failed to retrieve HW addr for eth0 (No such device)
D/CommandListener( 137): Setting iface cfg
E/WifiStateMachine( 349): Unable to change interface settings: java.lang.Illega
lStateException: Unable to communicate with native daemon to interface setcfg -
com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg eth0 0.
0.0.0 0 [down]} failed with code 400 : {Failed to set address (No such device)}
D/NetworkManagementService( 349): rsp <213 00:00:00:00:00:00 0.0.0.0 0 [down]>
D/NetworkManagementService( 349): flags <[down]>
E/AudioHardwareMSM8660( 142): Cannot open /dev/msm_pcm_out errno: 12
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: channels
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: format
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx : sampleRate
E/wpa_supplicant( 2817): Could not read interface eth0 flags: No such device
E/wpa_supplicant( 2817): WEXT: Could not set interface 'eth0' UP
E/wpa_supplicant( 2817): eth0: Failed to initialize driver interface
I/logwrapper( 2814): /system/bin/wpa_supplicant terminated by exit(255)
W/AudioFlinger( 142): write blocked for 5020 msecs, 35 delayed writes, thread 0
x15c00
V/AudioHardwareMSM8660( 142): open driver
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
E/AudioHardwareMSM8660( 142): Cannot open /dev/msm_pcm_out errno: 12
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: channels
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx: format
E/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx : sampleRate
W/AudioFlinger( 142): write blocked for 5022 msecs, 36 delayed writes, thread 0
x15c00
D/AudioHardwareMSM8660( 142): AudioStreamOutMSM72xx::standby()
I/power ( 349): *** set_screen_state 0
V/Sensors ( 349): virtual int MPLSensor::enable(int32_t, int)
V/Sensors ( 349): handle : 14 en: 0
V/Sensors ( 349): sensor state change what=14
V/Sensors ( 349): mEnabled = 0
V/Sensors ( 349): void set_power_states(int, bool)
V/Sensors ( 349): enabled_sensors: 0 dmp_started: 1
V/Sensors ( 349): Stopping DMP
I/MPL-mldl_cfg_mpu:( 349): mpu3050_suspend: suspending sensors to 0000
D/SurfaceFlinger( 139): About to give-up screen, flinger = 0xf918
E/msm8660.gralloc( 139): In fb_enableHDMIOutput: externaltype = 0
I/MPL-mldl_cfg_mpu:( 349): mpu3050_suspend: Will resume next to 0070
V/Sensors ( 349): int MPLSensor::update_delay()
V/Sensors ( 349): virtual int MPLSensor::setDelay(int32_t, int64_t)
V/Sensors ( 349): setDelay handle: 14 rate 66
V/Sensors ( 349): int MPLSensor::update_delay()
V/AudioHardwareMSM8660( 142): setParameters() screen_state=off
D/AccelerometerListener( 761): enable(false)
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiHW ( 349): Supplicant not running, cannot connect
E/WifiStateMachine( 349): Failed to setup control channel, restart supplicant
V/TransportControlView( 349): Create TCV com.android.internal.widget.TransportC
ontrolView@40dbba40
W/Adreno200-EGLSUB( 349): SetSwapInterval() interval: 0 not set
I/TabletStatusBar( 2024): DISABLE_CLOCK: yes
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
I/dun_service( 202): The value returned from dun_getusbmodemstate_fromsys is 1

I/dun_service( 202): Post event 1
I/dun_service( 202): received event: DUN_EVENT_USB_UNPLUG
I/dun_service( 202): received event(DUN_EVENT_USB_UNPLUG) in state(DUN_STATE_US
B_UNPLUG)
I/dun_service( 202): Ignoring the event DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STAT
E
I/dun_service( 202): Moved to state(DUN_STATE_USB_UNPLUG)
^C
C:\Users\Xemy>

then I did what in the code samples, but there is no wifi in zte folder:

C:\Program Files\ZTE Tablet USB Driver>adb shell
root@android:/ # cd /persist
cd /persist
root@android:/persist # ls
ls
lost+found
zte
root@android:/persist # cd zte
cd zte
root@android:/persist/zte # ls
ls
root@android:/persist/zte # cd wifi
cd wifi
/system/bin/sh: cd: /persist/zte/wifi - No such file or directory
1|
root@android:/persist/zte # ls
ls
root@android:/persist/zte #

Can you think of anything?

Thank you very much for everything