Android Wi-Fi CMD汇总(基于Android 6.0-7.1)

来源:互联网 发布:mac怎么导入铃声 编辑:程序博客网 时间:2024/05/21 04:16

以下内容局部肯定有不全的情况存在,请继续补充.

1.WifiStateMachine

CMDCMD NumberRemarksstatic final int BASE = Protocol.BASE_WIFI;131072
static final int CMD_START_SUPPLICANT = BASE + 11;131083
static final int CMD_STOP_SUPPLICANT = BASE + 12;131084
static final int CMD_START_DRIVER = BASE + 13;131085
static final int CMD_STOP_DRIVER = BASE + 14;131086
static final int CMD_STATIC_IP_SUCCESS = BASE + 15;131087
static final int CMD_STATIC_IP_FAILURE = BASE + 16;131088
static final int CMD_STOP_SUPPLICANT_FAILED = BASE + 17;131089
static final int CMD_DELAYED_STOP_DRIVER = BASE + 18;131090
static final int CMD_DRIVER_START_TIMED_OUT = BASE + 19;131091
static final int CMD_CAPTIVE_CHECK_COMPLETE = BASE + 20;131092
static final int CMD_START_AP = BASE + 21;131093
static final int CMD_START_AP_SUCCESS = BASE + 22;131094
static final int CMD_START_AP_FAILURE = BASE + 23;131095
static final int CMD_STOP_AP = BASE + 24;131096
static final int CMD_SET_AP_CONFIG = BASE + 25;131097
static final int CMD_SET_AP_CONFIG_COMPLETED = BASE + 26;131098
static final int CMD_REQUEST_AP_CONFIG = BASE + 27;131099
static final int CMD_RESPONSE_AP_CONFIG = BASE + 28;131100
static final int CMD_TETHER_STATE_CHANGE = BASE + 29;131101
static final int CMD_TETHER_NOTIFICATION_TIMED_OUT = BASE + 30;131102
static final int CMD_BLUETOOTH_ADAPTER_STATE_CHANGE = BASE + 31;131103
static final int CMD_START_AP_BLOCK = BASE + 32;131104
static final int CMD_PING_SUPPLICANT = BASE + 51;131123
static final int CMD_ADD_OR_UPDATE_NETWORK = BASE + 52;131124
static final int CMD_REMOVE_NETWORK = BASE + 53;131125
static final int CMD_ENABLE_NETWORK = BASE + 54;131126
static final int CMD_ENABLE_ALL_NETWORKS = BASE + 55;131127
static final int CMD_BLACKLIST_NETWORK = BASE + 56;131128
static final int CMD_CLEAR_BLACKLIST = BASE + 57;131129
static final int CMD_SAVE_CONFIG = BASE + 58;131130
static final int CMD_GET_CONFIGURED_NETWORKS = BASE + 59;131131
static final int CMD_GET_CAPABILITY_FREQ = BASE + 60;131132
static final int CMD_GET_SUPPORTED_FEATURES = BASE + 61;131133
static final int CMD_GET_PRIVILEGED_CONFIGURED_NETWORKS = BASE + 62;131134
static final int CMD_GET_LINK_LAYER_STATS = BASE + 63;131135
static final int CMD_START_SCAN = BASE + 71;131143
static final int CMD_SET_OPERATIONAL_MODE = BASE + 72;131144
static final int CMD_DISCONNECT = BASE + 73;131145
static final int CMD_RECONNECT = BASE + 74;131146
static final int CMD_REASSOCIATE = BASE + 75;131147
static final int CMD_SET_HIGH_PERF_MODE = BASE + 77;131149
static final int CMD_SET_COUNTRY_CODE = BASE + 80;131152
static final int CMD_ENABLE_RSSI_POLL = BASE + 82;131154
static final int CMD_RSSI_POLL = BASE + 83;131155
static final int CMD_START_PACKET_FILTERING = BASE + 84;131156
static final int CMD_STOP_PACKET_FILTERING = BASE + 85;131157
static final int CMD_SET_SUSPEND_OPT_ENABLED = BASE + 86;131158
static final int CMD_DELAYED_NETWORK_DISCONNECT = BASE + 87;131159
static final int CMD_NO_NETWORKS_PERIODIC_SCAN = BASE + 88;131160
static final int CMD_TEST_NETWORK_DISCONNECT = BASE + 89;131161
static final int CMD_SET_FREQUENCY_BAND = BASE + 90;131162
static final int CMD_ENABLE_BACKGROUND_SCAN = BASE + 91;131163
static final int CMD_ENABLE_TDLS = BASE + 92;131164
static final int CMD_OBTAINING_IP_ADDRESS_WATCHDOG_TIMER = BASE + 93;131165
static final int CMD_ROAM_WATCHDOG_TIMER = BASE + 94;131166
static final int CMD_SCREEN_STATE_CHANGED = BASE + 95;131167
static final int CMD_DISCONNECTING_WATCHDOG_TIMER = BASE + 96;131168
static final int CMD_REMOVE_APP_CONFIGURATIONS = BASE + 97;131169
static final int CMD_DISABLE_EPHEMERAL_NETWORK = BASE + 98;131170
static final int CMD_GET_MATCHING_CONFIG = BASE + 99;131171
static final int CMD_FIRMWARE_ALERT = BASE + 100;131172
static final int CMD_RESET_SUPPLICANT_STATE = BASE + 111;131183
public static final int CMD_ENABLE_P2P = BASE + 131;131203
public static final int CMD_DISABLE_P2P_REQ = BASE + 132;131204
public static final int CMD_DISABLE_P2P_RSP = BASE + 133;131205
public static final int CMD_BOOT_COMPLETED = BASE + 134;131206
public static final int CMD_SET_BATCHED_SCAN = BASE + 135;131207
public static final int CMD_START_NEXT_BATCHED_SCAN = BASE + 136;131208
public static final int CMD_POLL_BATCHED_SCAN = BASE + 137;131209
static final int CMD_UPDATE_LINKPROPERTIES = BASE + 140;131212
static final int CMD_TARGET_BSSID = BASE + 141;131213
static final int CMD_RELOAD_TLS_AND_RECONNECT = BASE + 142;131214
static final int CMD_AUTO_CONNECT = BASE + 143;131215



2.WifiMonitor

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_MONITOR;147456
public static final int SUP_CONNECTION_EVENT = BASE + 1;147457
public static final int SUP_DISCONNECTION_EVENT = BASE + 2;147458
public static final int NETWORK_CONNECTION_EVENT = BASE + 3;147459
public static final int NETWORK_DISCONNECTION_EVENT = BASE + 4;147460
public static final int SCAN_RESULTS_EVENT = BASE + 5;147461
public static final int SUPPLICANT_STATE_CHANGE_EVENT = BASE + 6;147462
public static final int AUTHENTICATION_FAILURE_EVENT = BASE + 7;147463
public static final int WPS_SUCCESS_EVENT = BASE + 8;147464
public static final int WPS_FAIL_EVENT = BASE + 9;147465
public static final int WPS_OVERLAP_EVENT = BASE + 10;147466
public static final int WPS_TIMEOUT_EVENT = BASE + 11;147467
public static final int DRIVER_HUNG_EVENT = BASE + 12;147468
public static final int WIFI_AUTO_CONNECT_EVENT = BASE + 13;147469
public static final int WAPI_AUTHENTICATION_FAILURE_EVENT = BASE + 14;147470
public static final int WAPI_CERTIFICATION_FAILURE_EVENT = BASE + 15;147471
public static final int P2P_DEVICE_FOUND_EVENT = BASE + 21;147477
public static final int P2P_DEVICE_LOST_EVENT = BASE + 22;147478
public static final int P2P_GO_NEGOTIATION_REQUEST_EVENT = BASE + 23;147479
public static final int P2P_GO_NEGOTIATION_SUCCESS_EVENT = BASE + 25;147481
public static final int P2P_GO_NEGOTIATION_FAILURE_EVENT = BASE + 26;147482
public static final int P2P_GROUP_FORMATION_SUCCESS_EVENT = BASE + 27;147483
public static final int P2P_GROUP_FORMATION_FAILURE_EVENT = BASE + 28;147484
public static final int P2P_GROUP_STARTED_EVENT = BASE + 29;147485
public static final int P2P_GROUP_REMOVED_EVENT = BASE + 30;147486
public static final int P2P_INVITATION_RECEIVED_EVENT = BASE + 31;147487
public static final int P2P_INVITATION_RESULT_EVENT = BASE + 32;147488
public static final int P2P_PROV_DISC_PBC_REQ_EVENT = BASE + 33;147489
public static final int P2P_PROV_DISC_PBC_RSP_EVENT = BASE + 34;147490
public static final int P2P_PROV_DISC_ENTER_PIN_EVENT = BASE + 35;147491
public static final int P2P_PROV_DISC_SHOW_PIN_EVENT = BASE + 36;147492
public static final int P2P_FIND_STOPPED_EVENT = BASE + 37;147493
public static final int P2P_SERV_DISC_RESP_EVENT = BASE + 38;147494
public static final int P2P_PROV_DISC_FAILURE_EVENT = BASE + 39;147495
public static final int AP_STA_DISCONNECTED_EVENT = BASE + 41;147497
public static final int AP_STA_CONNECTED_EVENT = BASE + 42;147498
public static final int ASSOCIATION_REJECTION_EVENT = BASE + 43;147499






3.WifiManager

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_MANAGER;151552
public static final int CONNECT_NETWORK = BASE + 1;151553
public static final int CONNECT_NETWORK_FAILED = BASE + 2;151554
public static final int CONNECT_NETWORK_SUCCEEDED = BASE + 3;151555
public static final int FORGET_NETWORK = BASE + 4;151556
public static final int FORGET_NETWORK_FAILED = BASE + 5;151557
public static final int FORGET_NETWORK_SUCCEEDED = BASE + 6;151558
public static final int SAVE_NETWORK = BASE + 7;151559
public static final int SAVE_NETWORK_FAILED = BASE + 8;151560
public static final int SAVE_NETWORK_SUCCEEDED = BASE + 9;151561
public static final int START_WPS = BASE + 10;151562
public static final int START_WPS_SUCCEEDED = BASE + 11;151563
public static final int WPS_FAILED = BASE + 12;151564
public static final int WPS_COMPLETED = BASE + 13;151565
public static final int CANCEL_WPS = BASE + 14;151566
public static final int CANCEL_WPS_FAILED = BASE + 15;151567
public static final int CANCEL_WPS_SUCCEDED = BASE + 16;151568
public static final int DISABLE_NETWORK = BASE + 17;151569
public static final int DISABLE_NETWORK_FAILED = BASE + 18;151570
public static final int DISABLE_NETWORK_SUCCEEDED = BASE + 19;151571
public static final int RSSI_PKTCNT_FETCH = BASE + 20;151572
public static final int RSSI_PKTCNT_FETCH_SUCCEEDED = BASE + 21;151573
public static final int RSSI_PKTCNT_FETCH_FAILED = BASE + 22;151574






4.WifiController

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_CONTROLLER;155648
static final int CMD_EMERGENCY_MODE_CHANGED = BASE + 1;155649
static final int CMD_SCREEN_ON = BASE + 2;155650
static final int CMD_SCREEN_OFF = BASE + 3;155651
static final int CMD_BATTERY_CHANGED = BASE + 4;155652
static final int CMD_DEVICE_IDLE = BASE + 5;155653
static final int CMD_LOCKS_CHANGED = BASE + 6;155654
static final int CMD_SCAN_ALWAYS_MODE_CHANGED = BASE + 7;155655
static final int CMD_WIFI_TOGGLED = BASE + 8;155656
static final int CMD_AIRPLANE_TOGGLED = BASE + 9;155657
static final int CMD_SET_AP = BASE + 10;155658
static final int CMD_DEFERRED_TOGGLE = BASE + 11;155659
static final int CMD_USER_PRESENT = BASE + 12;155660
static final int CMD_AP_START_FAILURE= BASE + 13;155661






5.WifiPasspointManager

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_PASSPOINT_MANAGER;163840
public static final int REQUEST_ANQP_INFO= BASE + 1;163841
public static final int REQUEST_ANQP_INFO_FAILED= BASE + 2;163842
public static final int REQUEST_ANQP_INFO_SUCCEEDED = BASE + 3;163843
public static final int REQUEST_OSU_ICON = BASE + 4;163844
public static final int REQUEST_OSU_ICON_FAILED = BASE + 5;163845
public static final int REQUEST_OSU_ICON_SUCCEEDED= BASE + 6;163846
public static final int START_OSU= BASE + 7;163847
public static final int START_OSU_BROWSER= BASE + 8;163848
public static final int START_OSU_FAILED = BASE + 9;163849
public static final int START_OSU_SUCCEEDED= BASE + 10;163850



6.WifiP2pManager

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_P2P_MANAGER;139264
public static final int DISCOVER_PEERS= BASE + 1;139265
public static final int DISCOVER_PEERS_FAILED= BASE + 2;139266
public static final int DISCOVER_PEERS_SUCCEEDED= BASE + 3;139267
public static final int STOP_DISCOVERY= BASE + 4;139268
public static final int STOP_DISCOVERY_FAILED= BASE + 5;139269
public static final int STOP_DISCOVERY_SUCCEEDED= BASE + 6;139270
public static final int CONNECT= BASE + 7;139271
public static final int CONNECT_FAILED= BASE + 8;139272
public static final int CONNECT_SUCCEEDED= BASE + 9;139273
public static final int CANCEL_CONNECT= BASE + 10;139274
public static final int CANCEL_CONNECT_FAILED= BASE + 11;139275
public static final int CANCEL_CONNECT_SUCCEEDED= BASE + 12;139276
public static final int CREATE_GROUP= BASE + 13;139277
public static final int CREATE_GROUP_FAILED= BASE + 14;139278
public static final int CREATE_GROUP_SUCCEEDED= BASE + 15;139279
public static final int REMOVE_GROUP= BASE + 16;139280
public static final int REMOVE_GROUP_FAILED= BASE + 17;139281
public static final int REMOVE_GROUP_SUCCEEDED= BASE + 18;139282
public static final int REQUEST_PEERS= BASE + 19;139283
public static final int RESPONSE_PEERS= BASE + 20;139284
public static final int REQUEST_CONNECTION_INFO= BASE + 21;139285
public static final int RESPONSE_CONNECTION_INFO= BASE + 22;139286
public static final int REQUEST_GROUP_INFO= BASE + 23;139287
public static final int RESPONSE_GROUP_INFO= BASE + 24;139288
public static final int ADD_LOCAL_SERVICE= BASE + 28;139292
public static final int ADD_LOCAL_SERVICE_FAILED= BASE + 29;139293
public static final int ADD_LOCAL_SERVICE_SUCCEEDED= BASE + 30;139294
public static final int REMOVE_LOCAL_SERVICE= BASE + 31;139295
public static final int REMOVE_LOCAL_SERVICE_FAILED= BASE + 32;139296
public static final int REMOVE_LOCAL_SERVICE_SUCCEEDED= BASE + 33;139297
public static final int CLEAR_LOCAL_SERVICES= BASE + 34;139298
public static final int CLEAR_LOCAL_SERVICES_FAILED= BASE + 35;139299
public static final int CLEAR_LOCAL_SERVICES_SUCCEEDED= BASE + 36;139300
public static final int ADD_SERVICE_REQUEST= BASE + 37;139301
public static final int ADD_SERVICE_REQUEST_FAILED= BASE + 38;139302
public static final int ADD_SERVICE_REQUEST_SUCCEEDED= BASE + 39;139303
public static final int REMOVE_SERVICE_REQUEST= BASE + 40;139304
public static final int REMOVE_SERVICE_REQUEST_FAILED= BASE + 41;139305
public static final int REMOVE_SERVICE_REQUEST_SUCCEEDED= BASE + 42;139306
public static final int CLEAR_SERVICE_REQUESTS= BASE + 43;139307
public static final int CLEAR_SERVICE_REQUESTS_FAILED= BASE + 44;139308
public static final int CLEAR_SERVICE_REQUESTS_SUCCEEDED= BASE + 45;139309
public static final int DISCOVER_SERVICES= BASE + 46;139310
public static final int DISCOVER_SERVICES_FAILED= BASE + 47;139311
public static final int DISCOVER_SERVICES_SUCCEEDED= BASE + 48;139312
public static final int PING= BASE + 49;139313
public static final int RESPONSE_SERVICE= BASE + 50;139314
public static final int SET_DEVICE_NAME= BASE + 51;139315
public static final int SET_DEVICE_NAME_FAILED= BASE + 52;139316
public static final int SET_DEVICE_NAME_SUCCEEDED= BASE + 53;139317
public static final int DELETE_PERSISTENT_GROUP= BASE + 54;139318
public static final int DELETE_PERSISTENT_GROUP_FAILED= BASE + 55;139319
public static final int DELETE_PERSISTENT_GROUP_SUCCEEDED= BASE + 56;139320
public static final int REQUEST_PERSISTENT_GROUP_INFO= BASE + 57;139321
public static final int RESPONSE_PERSISTENT_GROUP_INFO= BASE + 58;139322
public static final int SET_WFD_INFO= BASE + 59;139323
public static final int SET_WFD_INFO_FAILED= BASE + 60;139324
public static final int SET_WFD_INFO_SUCCEEDED= BASE + 61;139325
public static final int START_WPS= BASE + 62;139326
public static final int START_WPS_FAILED= BASE + 63;139327
public static final int START_WPS_SUCCEEDED= BASE + 64;139328
public static final int START_LISTEN= BASE + 65;139329
public static final int START_LISTEN_FAILED= BASE + 66;139330
public static final int START_LISTEN_SUCCEEDED= BASE + 67;139331
public static final int STOP_LISTEN= BASE + 68;139332
public static final int STOP_LISTEN_FAILED= BASE + 69;139333
public static final int STOP_LISTEN_SUCCEEDED= BASE + 70;139334
public static final int SET_CHANNEL= BASE + 71;139335
public static final int SET_CHANNEL_FAILED= BASE + 72;139336
public static final int SET_CHANNEL_SUCCEEDED= BASE + 73;139337
public static final int GET_HANDOVER_REQUEST= BASE + 75;139339
public static final int GET_HANDOVER_SELECT= BASE + 76;139340
public static final int RESPONSE_GET_HANDOVER_MESSAGE= BASE + 77;139341
public static final int INITIATOR_REPORT_NFC_HANDOVER= BASE + 78;139342
public static final int RESPONDER_REPORT_NFC_HANDOVER= BASE + 79;139343
public static final int REPORT_NFC_HANDOVER_SUCCEEDED= BASE + 80;139344
public static final int REPORT_NFC_HANDOVER_FAILED= BASE + 81;139345



7.WifiP2pServiceImpl

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_P2P_SERVICE;143360
public static final int GROUP_CREATING_TIMED_OUT = BASE + 1;143361
private static final int PEER_CONNECTION_USER_ACCEPT = BASE + 2;143362
private static final int PEER_CONNECTION_USER_REJECT = BASE + 3;143363
private static final int DROP_WIFI_USER_ACCEPT = BASE + 4;143364
private static final int DROP_WIFI_USER_REJECT = BASE + 5;143365
public static final int DISABLE_P2P_TIMED_OUT = BASE + 6;143366
public static final int P2P_CONNECTION_CHANGED = BASE + 11;143371
public static final int DISCONNECT_WIFI_REQUEST = BASE + 12;143372
public static final int DISCONNECT_WIFI_RESPONSE = BASE + 13;143373
public static final int SET_MIRACAST_MODE = BASE + 14;143374
public static final int BLOCK_DISCOVERY = BASE + 15;143375
public static final int SET_COUNTRY_CODE = BASE + 16;143376



8.WifiWatchdogStateMachine

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_WATCHDOG;135168
private static final int EVENT_WATCHDOG_TOGGLED = BASE + 1;135169
private static final int EVENT_NETWORK_STATE_CHANGE = BASE + 2;135170
private static final int EVENT_RSSI_CHANGE = BASE + 3;135171
private static final int EVENT_SUPPLICANT_STATE_CHANGE = BASE + 4;135172
private static final int EVENT_WIFI_RADIO_STATE_CHANGE = BASE + 5;135173
private static final int EVENT_WATCHDOG_SETTINGS_CHANGE = BASE + 6;135174
private static final int EVENT_BSSID_CHANGE = BASE + 7;135175
private static final int EVENT_SCREEN_ON = BASE + 8;135176
private static final int EVENT_SCREEN_OFF = BASE + 9;135177
private static final int CMD_RSSI_FETCH = BASE + 11;135178
static final int POOR_LINK_DETECTED = BASE + 21;135188
static final int GOOD_LINK_DETECTED = BASE + 22;135189



9.WifiScanner

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_SCANNER;159744
public static final int CMD_SCAN = BASE + 0;159745
public static final int CMD_START_BACKGROUND_SCAN = BASE + 2;159746
public static final int CMD_STOP_BACKGROUND_SCAN = BASE + 3;159747
public static final int CMD_GET_SCAN_RESULTS = BASE + 4;159748
public static final int CMD_SCAN_RESULT = BASE + 5;159749
public static final int CMD_SET_HOTLIST = BASE + 6;159750
public static final int CMD_RESET_HOTLIST = BASE + 7;159751
public static final int CMD_AP_FOUND = BASE + 9;159752
public static final int CMD_AP_LOST = BASE + 10;159753
public static final int CMD_START_TRACKING_CHANGE = BASE + 11;159754
public static final int CMD_STOP_TRACKING_CHANGE = BASE + 12;159755
public static final int CMD_CONFIGURE_WIFI_CHANGE = BASE + 13;159756
public static final int CMD_WIFI_CHANGE_DETECTED = BASE + 15;159758
public static final int CMD_WIFI_CHANGES_STABILIZED = BASE + 16;159759
public static final int CMD_OP_SUCCEEDED = BASE + 17;159760
public static final int CMD_OP_FAILED = BASE + 18;159761
public static final int CMD_PERIOD_CHANGED = BASE + 19;159762
public static final int CMD_FULL_SCAN_RESULT = BASE + 20;159763
public static final int CMD_START_SINGLE_SCAN = BASE + 21;159764
public static final int CMD_STOP_SINGLE_SCAN = BASE + 22;159765
public static final int CMD_SINGLE_SCAN_COMPLETED = BASE + 23;159766



10.WifiScanningServiceImpl

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_WIFI_SCANNER_SERVICE;160000
private static final int CMD_FULL_SCAN_RESULTS = BASE + 1;160001
private static final int CMD_HOTLIST_AP_FOUND = BASE + 2;160002
private static final int CMD_HOTLIST_AP_LOST = BASE + 3;160003
private static final int CMD_WIFI_CHANGE_DETECTED = BASE + 4;160004
private static final int CMD_WIFI_CHANGES_STABILIZED = BASE + 5;160005
private static final int CMD_DRIVER_LOADED = BASE + 6;160006
private static final int CMD_DRIVER_UNLOADED = BASE + 7;160007
private static final int CMD_SCAN_PAUSED = BASE + 8;160008
private static final int CMD_SCAN_RESTARTED = BASE + 9;160009
private static final int CMD_STOP_SCAN_INTERNAL = BASE + 10;160010



11.DhcpStateMachine

CMDCMD NumberRemarksprivate static final int BASE = Protocol.BASE_DHCP;196608
public static final int CMD_START_DHCP = BASE + 1;196609
public static final int CMD_STOP_DHCP = BASE + 2;196610
public static final int CMD_RENEW_DHCP = BASE + 3;196611
public static final int CMD_PRE_DHCP_ACTION = BASE + 4;196612
public static final int CMD_POST_DHCP_ACTION = BASE + 5;196613
public static final int CMD_ON_QUIT = BASE + 6;196614
public static final int CMD_PRE_DHCP_ACTION_COMPLETE = BASE + 7;196615
private static final int CMD_GET_DHCP_RESULTS = BASE + 8;196616