diff --git a/android/handcircle/JYOU PRO SDK/android-sdk-jy/android-smartband-sdk-sxrblejy2/.gitignore b/android/.gitignore similarity index 100% rename from android/handcircle/JYOU PRO SDK/android-sdk-jy/android-smartband-sdk-sxrblejy2/.gitignore rename to android/.gitignore diff --git a/android/OldPeopleHome/.gitignore b/android/OldPeopleHome/.gitignore deleted file mode 100644 index 39fb081..0000000 --- a/android/OldPeopleHome/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -*.iml -.gradle -/local.properties -/.idea/workspace.xml -/.idea/libraries -.DS_Store -/build -/captures -.externalNativeBuild diff --git a/android/OldPeopleHome/.idea/libraries/android_arch_core_common_1_1_0_jar.xml b/android/OldPeopleHome/.idea/libraries/android_arch_core_common_1_1_0_jar.xml new file mode 100644 index 0000000..6bf5068 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/android_arch_core_common_1_1_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/android_arch_core_runtime_1_1_0.xml b/android/OldPeopleHome/.idea/libraries/android_arch_core_runtime_1_1_0.xml new file mode 100644 index 0000000..62bf574 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/android_arch_core_runtime_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_common_1_1_0_jar.xml b/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_common_1_1_0_jar.xml new file mode 100644 index 0000000..e700771 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_common_1_1_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_livedata_core_1_1_0.xml b/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_livedata_core_1_1_0.xml new file mode 100644 index 0000000..22b0496 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_livedata_core_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_runtime_1_1_0.xml b/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_runtime_1_1_0.xml new file mode 100644 index 0000000..3f6dcf5 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_runtime_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_viewmodel_1_1_0.xml b/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_viewmodel_1_1_0.xml new file mode 100644 index 0000000..d3de51b --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/android_arch_lifecycle_viewmodel_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/android_smartband_sdk_sxrblejy2aidl_release__aar.xml b/android/OldPeopleHome/.idea/libraries/android_smartband_sdk_sxrblejy2aidl_release__aar.xml new file mode 100644 index 0000000..4c600a3 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/android_smartband_sdk_sxrblejy2aidl_release__aar.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/android_smartband_sdk_sxrblejy2library_release__aar.xml b/android/OldPeopleHome/.idea/libraries/android_smartband_sdk_sxrblejy2library_release__aar.xml new file mode 100644 index 0000000..876cb51 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/android_smartband_sdk_sxrblejy2library_release__aar.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_animated_vector_drawable_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_animated_vector_drawable_27_1_1.xml new file mode 100644 index 0000000..df9da55 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_animated_vector_drawable_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_appcompat_v7_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_appcompat_v7_27_1_1.xml new file mode 100644 index 0000000..acc1f6f --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_appcompat_v7_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_cardview_v7_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_cardview_v7_27_1_1.xml new file mode 100644 index 0000000..1e50dce --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_cardview_v7_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_constraint_constraint_layout_1_1_3.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_constraint_constraint_layout_1_1_3.xml new file mode 100644 index 0000000..92d99e3 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_constraint_constraint_layout_1_1_3.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml new file mode 100644 index 0000000..e293471 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_design_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_design_27_1_1.xml new file mode 100644 index 0000000..0b4184a --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_design_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_recyclerview_v7_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_recyclerview_v7_27_1_1.xml new file mode 100644 index 0000000..cfaf846 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_recyclerview_v7_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_support_annotations_27_1_1_jar.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_support_annotations_27_1_1_jar.xml new file mode 100644 index 0000000..6f56f79 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_support_annotations_27_1_1_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_support_compat_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_support_compat_27_1_1.xml new file mode 100644 index 0000000..98f7e39 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_support_compat_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_support_core_ui_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_support_core_ui_27_1_1.xml new file mode 100644 index 0000000..1ff3d37 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_support_core_ui_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_support_core_utils_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_support_core_utils_27_1_1.xml new file mode 100644 index 0000000..08ce0f7 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_support_core_utils_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_support_fragment_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_support_fragment_27_1_1.xml new file mode 100644 index 0000000..912cae8 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_support_fragment_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_support_media_compat_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_support_media_compat_27_1_1.xml new file mode 100644 index 0000000..fb31f56 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_support_media_compat_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_support_v4_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_support_v4_27_1_1.xml new file mode 100644 index 0000000..925da39 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_support_v4_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_support_vector_drawable_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_support_vector_drawable_27_1_1.xml new file mode 100644 index 0000000..3129d2e --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_support_vector_drawable_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_test_espresso_espresso_core_3_0_2.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_test_espresso_espresso_core_3_0_2.xml new file mode 100644 index 0000000..67a0419 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_test_espresso_espresso_core_3_0_2.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_3_0_2.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_3_0_2.xml new file mode 100644 index 0000000..06f3aa9 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_3_0_2.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_test_monitor_1_0_2.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_test_monitor_1_0_2.xml new file mode 100644 index 0000000..8ceab15 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_test_monitor_1_0_2.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_test_runner_1_0_2.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_test_runner_1_0_2.xml new file mode 100644 index 0000000..cc4032f --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_test_runner_1_0_2.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_android_support_transition_27_1_1.xml b/android/OldPeopleHome/.idea/libraries/com_android_support_transition_27_1_1.xml new file mode 100644 index 0000000..72adccd --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_android_support_transition_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_github_PhilJay_MPAndroidChart_v3_0_3_jar.xml b/android/OldPeopleHome/.idea/libraries/com_github_PhilJay_MPAndroidChart_v3_0_3_jar.xml new file mode 100644 index 0000000..e86ae9e --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_github_PhilJay_MPAndroidChart_v3_0_3_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_annotations_4_9_0_jar.xml b/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_annotations_4_9_0_jar.xml new file mode 100644 index 0000000..587f09c --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_annotations_4_9_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_disklrucache_4_9_0_jar.xml b/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_disklrucache_4_9_0_jar.xml new file mode 100644 index 0000000..615aa42 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_disklrucache_4_9_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_gifdecoder_4_9_0.xml b/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_gifdecoder_4_9_0.xml new file mode 100644 index 0000000..2d56ad2 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_gifdecoder_4_9_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_glide_4_9_0.xml b/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_glide_4_9_0.xml new file mode 100644 index 0000000..4ac476b --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_github_bumptech_glide_glide_4_9_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml b/android/OldPeopleHome/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml new file mode 100644 index 0000000..6343119 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_jakewharton_butterknife_8_8_0.xml b/android/OldPeopleHome/.idea/libraries/com_jakewharton_butterknife_8_8_0.xml new file mode 100644 index 0000000..58543f8 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_jakewharton_butterknife_8_8_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_jakewharton_butterknife_annotations_8_8_0_jar.xml b/android/OldPeopleHome/.idea/libraries/com_jakewharton_butterknife_annotations_8_8_0_jar.xml new file mode 100644 index 0000000..e5e9c28 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_jakewharton_butterknife_annotations_8_8_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_mxn_soul_flowingdrawer_core_2_1_0.xml b/android/OldPeopleHome/.idea/libraries/com_mxn_soul_flowingdrawer_core_2_1_0.xml new file mode 100644 index 0000000..4078e21 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_mxn_soul_flowingdrawer_core_2_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_nineoldandroids_library_2_4_0_jar.xml b/android/OldPeopleHome/.idea/libraries/com_nineoldandroids_library_2_4_0_jar.xml new file mode 100644 index 0000000..f4c901d --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_nineoldandroids_library_2_4_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_ryanjeffreybrooks_indefinitepagerindicator_1_0_10.xml b/android/OldPeopleHome/.idea/libraries/com_ryanjeffreybrooks_indefinitepagerindicator_1_0_10.xml new file mode 100644 index 0000000..ca82299 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_ryanjeffreybrooks_indefinitepagerindicator_1_0_10.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml b/android/OldPeopleHome/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml new file mode 100644 index 0000000..cdb8c22 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/javax_inject_javax_inject_1_jar.xml b/android/OldPeopleHome/.idea/libraries/javax_inject_javax_inject_1_jar.xml new file mode 100644 index 0000000..b028368 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/javax_inject_javax_inject_1_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/junit_junit_4_12_jar.xml b/android/OldPeopleHome/.idea/libraries/junit_junit_4_12_jar.xml new file mode 100644 index 0000000..a026090 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/junit_junit_4_12_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/me_itangqi_waveloadingview_library_0_3_5.xml b/android/OldPeopleHome/.idea/libraries/me_itangqi_waveloadingview_library_0_3_5.xml new file mode 100644 index 0000000..4512e72 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/me_itangqi_waveloadingview_library_0_3_5.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/me_zhouzhuo_zzhorizontalprogressbar_zz_horizontal_progressbar_1_1_0.xml b/android/OldPeopleHome/.idea/libraries/me_zhouzhuo_zzhorizontalprogressbar_zz_horizontal_progressbar_1_1_0.xml new file mode 100644 index 0000000..0afc7ba --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/me_zhouzhuo_zzhorizontalprogressbar_zz_horizontal_progressbar_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/net_sf_kxml_kxml2_2_3_0_jar.xml b/android/OldPeopleHome/.idea/libraries/net_sf_kxml_kxml2_2_3_0_jar.xml new file mode 100644 index 0000000..ee85b61 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/net_sf_kxml_kxml2_2_3_0_jar.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml b/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml new file mode 100644 index 0000000..8bc8974 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml b/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml new file mode 100644 index 0000000..6fd1927 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml b/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml new file mode 100644 index 0000000..5225e0e --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/org_jetbrains_annotations_13_0_jar.xml b/android/OldPeopleHome/.idea/libraries/org_jetbrains_annotations_13_0_jar.xml new file mode 100644 index 0000000..321d813 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/org_jetbrains_annotations_13_0_jar.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_1_2_41_jar.xml b/android/OldPeopleHome/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_1_2_41_jar.xml new file mode 100644 index 0000000..7f266a8 --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_1_2_41_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_2_41_jar.xml b/android/OldPeopleHome/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_2_41_jar.xml new file mode 100644 index 0000000..96c1e5d --- /dev/null +++ b/android/OldPeopleHome/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_2_41_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/OldPeopleHome/.idea/workspace.xml b/android/OldPeopleHome/.idea/workspace.xml new file mode 100644 index 0000000..26e0273 --- /dev/null +++ b/android/OldPeopleHome/.idea/workspace.xml @@ -0,0 +1,3054 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #707070 + @color/choosed + des + 200 + , + connected + onScanCallback + permi + 扫描ing + handle + getsen + onReceiveSensorData + + + @color/choosed + #3F51B5 + 150 + ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1566005969452 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/gradle.xml b/android/WIFITrick/.idea/gradle.xml new file mode 100644 index 0000000..7ac24c7 --- /dev/null +++ b/android/WIFITrick/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_core_common_1_0_0_jar.xml b/android/WIFITrick/.idea/libraries/android_arch_core_common_1_0_0_jar.xml new file mode 100644 index 0000000..ee12c7f --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_core_common_1_0_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_core_common_1_1_0_jar.xml b/android/WIFITrick/.idea/libraries/android_arch_core_common_1_1_0_jar.xml new file mode 100644 index 0000000..6bf5068 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_core_common_1_1_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_core_runtime_1_1_0.xml b/android/WIFITrick/.idea/libraries/android_arch_core_runtime_1_1_0.xml new file mode 100644 index 0000000..b7edb06 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_core_runtime_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_lifecycle_common_1_0_0_jar.xml b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_common_1_0_0_jar.xml new file mode 100644 index 0000000..66e22be --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_common_1_0_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_lifecycle_common_1_1_0_jar.xml b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_common_1_1_0_jar.xml new file mode 100644 index 0000000..e700771 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_common_1_1_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_lifecycle_livedata_core_1_1_0.xml b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_livedata_core_1_1_0.xml new file mode 100644 index 0000000..71a04c7 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_livedata_core_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_lifecycle_runtime_1_0_0.xml b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_runtime_1_0_0.xml new file mode 100644 index 0000000..b9f1d8a --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_runtime_1_0_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_lifecycle_runtime_1_1_0.xml b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_runtime_1_1_0.xml new file mode 100644 index 0000000..f38e83f --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_runtime_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/android_arch_lifecycle_viewmodel_1_1_0.xml b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_viewmodel_1_1_0.xml new file mode 100644 index 0000000..8a6866f --- /dev/null +++ b/android/WIFITrick/.idea/libraries/android_arch_lifecycle_viewmodel_1_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_animated_vector_drawable_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_animated_vector_drawable_26_1_0.xml new file mode 100644 index 0000000..32fec90 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_animated_vector_drawable_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_animated_vector_drawable_27_1_1.xml b/android/WIFITrick/.idea/libraries/com_android_support_animated_vector_drawable_27_1_1.xml new file mode 100644 index 0000000..8a41cd9 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_animated_vector_drawable_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_appcompat_v7_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_appcompat_v7_26_1_0.xml new file mode 100644 index 0000000..e6495b7 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_appcompat_v7_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_appcompat_v7_27_1_1.xml b/android/WIFITrick/.idea/libraries/com_android_support_appcompat_v7_27_1_1.xml new file mode 100644 index 0000000..be90622 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_appcompat_v7_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_constraint_constraint_layout_1_1_3.xml b/android/WIFITrick/.idea/libraries/com_android_support_constraint_constraint_layout_1_1_3.xml new file mode 100644 index 0000000..3d2cf2a --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_constraint_constraint_layout_1_1_3.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml b/android/WIFITrick/.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml new file mode 100644 index 0000000..e293471 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_1_3_jar.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_annotations_26_1_0_jar.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_annotations_26_1_0_jar.xml new file mode 100644 index 0000000..c6c1dfa --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_annotations_26_1_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_annotations_27_1_1_jar.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_annotations_27_1_1_jar.xml new file mode 100644 index 0000000..6f56f79 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_annotations_27_1_1_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_compat_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_compat_26_1_0.xml new file mode 100644 index 0000000..25013e8 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_compat_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_compat_27_1_1.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_compat_27_1_1.xml new file mode 100644 index 0000000..ef423ef --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_compat_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_core_ui_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_core_ui_26_1_0.xml new file mode 100644 index 0000000..f76814a --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_core_ui_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_core_ui_27_1_1.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_core_ui_27_1_1.xml new file mode 100644 index 0000000..99c929c --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_core_ui_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_core_utils_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_core_utils_26_1_0.xml new file mode 100644 index 0000000..53fd84e --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_core_utils_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_core_utils_27_1_1.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_core_utils_27_1_1.xml new file mode 100644 index 0000000..6188f6e --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_core_utils_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_fragment_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_fragment_26_1_0.xml new file mode 100644 index 0000000..b802467 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_fragment_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_fragment_27_1_1.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_fragment_27_1_1.xml new file mode 100644 index 0000000..59ea3d0 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_fragment_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_media_compat_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_media_compat_26_1_0.xml new file mode 100644 index 0000000..446f502 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_media_compat_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_v4_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_v4_26_1_0.xml new file mode 100644 index 0000000..17fef46 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_v4_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_vector_drawable_26_1_0.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_vector_drawable_26_1_0.xml new file mode 100644 index 0000000..8414966 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_vector_drawable_26_1_0.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_support_vector_drawable_27_1_1.xml b/android/WIFITrick/.idea/libraries/com_android_support_support_vector_drawable_27_1_1.xml new file mode 100644 index 0000000..7dc559d --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_support_vector_drawable_27_1_1.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_test_espresso_espresso_core_3_0_2.xml b/android/WIFITrick/.idea/libraries/com_android_support_test_espresso_espresso_core_3_0_2.xml new file mode 100644 index 0000000..833efdb --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_test_espresso_espresso_core_3_0_2.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_3_0_2.xml b/android/WIFITrick/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_3_0_2.xml new file mode 100644 index 0000000..e66a64e --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_3_0_2.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_test_monitor_1_0_2.xml b/android/WIFITrick/.idea/libraries/com_android_support_test_monitor_1_0_2.xml new file mode 100644 index 0000000..2e37be2 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_test_monitor_1_0_2.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_android_support_test_runner_1_0_2.xml b/android/WIFITrick/.idea/libraries/com_android_support_test_runner_1_0_2.xml new file mode 100644 index 0000000..466cbaf --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_android_support_test_runner_1_0_2.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml b/android/WIFITrick/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml new file mode 100644 index 0000000..6343119 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_google_code_gson_gson_2_7_jar.xml b/android/WIFITrick/.idea/libraries/com_google_code_gson_gson_2_7_jar.xml new file mode 100644 index 0000000..8672413 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_google_code_gson_gson_2_7_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml b/android/WIFITrick/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml new file mode 100644 index 0000000..cdb8c22 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_squareup_okhttp3_mockwebserver_3_12_0_jar.xml b/android/WIFITrick/.idea/libraries/com_squareup_okhttp3_mockwebserver_3_12_0_jar.xml new file mode 100644 index 0000000..4f13c07 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_squareup_okhttp3_mockwebserver_3_12_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_squareup_okhttp3_okhttp_3_12_0_jar.xml b/android/WIFITrick/.idea/libraries/com_squareup_okhttp3_okhttp_3_12_0_jar.xml new file mode 100644 index 0000000..688de51 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_squareup_okhttp3_okhttp_3_12_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/com_squareup_okio_okio_1_15_0_jar.xml b/android/WIFITrick/.idea/libraries/com_squareup_okio_okio_1_15_0_jar.xml new file mode 100644 index 0000000..025f705 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/com_squareup_okio_okio_1_15_0_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/javax_inject_javax_inject_1_jar.xml b/android/WIFITrick/.idea/libraries/javax_inject_javax_inject_1_jar.xml new file mode 100644 index 0000000..b028368 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/javax_inject_javax_inject_1_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/junit_junit_4_12_jar.xml b/android/WIFITrick/.idea/libraries/junit_junit_4_12_jar.xml new file mode 100644 index 0000000..a026090 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/junit_junit_4_12_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/net_sf_kxml_kxml2_2_3_0_jar.xml b/android/WIFITrick/.idea/libraries/net_sf_kxml_kxml2_2_3_0_jar.xml new file mode 100644 index 0000000..ee85b61 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/net_sf_kxml_kxml2_2_3_0_jar.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml b/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml new file mode 100644 index 0000000..8bc8974 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml b/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml new file mode 100644 index 0000000..6fd1927 --- /dev/null +++ b/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml b/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml new file mode 100644 index 0000000..5225e0e --- /dev/null +++ b/android/WIFITrick/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/misc.xml b/android/WIFITrick/.idea/misc.xml new file mode 100644 index 0000000..3963879 --- /dev/null +++ b/android/WIFITrick/.idea/misc.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/modules.xml b/android/WIFITrick/.idea/modules.xml new file mode 100644 index 0000000..1e45170 --- /dev/null +++ b/android/WIFITrick/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/runConfigurations.xml b/android/WIFITrick/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/android/WIFITrick/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/.idea/workspace.xml b/android/WIFITrick/.idea/workspace.xml new file mode 100644 index 0000000..fb28b02 --- /dev/null +++ b/android/WIFITrick/.idea/workspace.xml @@ -0,0 +1,2712 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + STATE2 + private + 打开 + 已连接 + 26 + upok + success + + + public static + 27 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1567473868333 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/app/.gitignore b/android/WIFITrick/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/android/WIFITrick/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/android/WIFITrick/app/build.gradle b/android/WIFITrick/app/build.gradle new file mode 100644 index 0000000..851a2f6 --- /dev/null +++ b/android/WIFITrick/app/build.gradle @@ -0,0 +1,34 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 27 + defaultConfig { + applicationId "com.scorpiomiku.wifitrick" + minSdkVersion 19 + targetSdkVersion 27 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation 'com.android.support:appcompat-v7:27.1.1' + implementation 'com.android.support.constraint:constraint-layout:1.1.3' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' + + //okhttp + implementation("com.squareup.okhttp3:okhttp:3.12.0") + testImplementation("com.squareup.okhttp3:mockwebserver:3.12.0") + //gson + implementation 'com.google.code.gson:gson:2.7' +} diff --git a/android/WIFITrick/app/proguard-rules.pro b/android/WIFITrick/app/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/android/WIFITrick/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/android/WIFITrick/app/src/androidTest/java/com/scorpiomiku/wifitrick/ExampleInstrumentedTest.java b/android/WIFITrick/app/src/androidTest/java/com/scorpiomiku/wifitrick/ExampleInstrumentedTest.java new file mode 100644 index 0000000..e5a7681 --- /dev/null +++ b/android/WIFITrick/app/src/androidTest/java/com/scorpiomiku/wifitrick/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.scorpiomiku.wifitrick; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.scorpiomiku.wifitrick", appContext.getPackageName()); + } +} diff --git a/android/WIFITrick/app/src/main/AndroidManifest.xml b/android/WIFITrick/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..0ea687d --- /dev/null +++ b/android/WIFITrick/app/src/main/AndroidManifest.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/MainActivity.java b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/MainActivity.java new file mode 100644 index 0000000..590859a --- /dev/null +++ b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/MainActivity.java @@ -0,0 +1,133 @@ +package com.scorpiomiku.wifitrick; + +import android.Manifest; +import android.annotation.SuppressLint; +import android.content.Context; +import android.content.pm.PackageManager; +import android.net.ConnectivityManager; +import android.net.wifi.ScanResult; +import android.net.wifi.WifiConfiguration; +import android.net.wifi.WifiManager; +import android.os.Build; +import android.os.Handler; +import android.os.Message; +import android.support.annotation.RequiresApi; +import android.support.v4.app.ActivityCompat; +import android.support.v4.content.ContextCompat; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.telephony.SubscriptionManager; +import android.telephony.TelephonyManager; +import android.util.Log; +import android.view.View; +import android.widget.Button; +import android.widget.TextView; + +import com.google.gson.Gson; +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; + +import java.io.IOException; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; + +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Response; + +public class MainActivity extends AppCompatActivity { + + private static final String TAG = "MainActivity"; + private Button testButton; + private Button testButton2; + private Button startButton; + private static TextView textView; + private static WifiManager wifiManager; + private List wifiList = new ArrayList<>(); + private static Handler handler; + private static Context context; + + @SuppressLint("HandlerLeak") + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + handler = new Handler() { + @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1) + @Override + public void handleMessage(Message msg) { + super.handleMessage(msg); + switch (msg.what) { + case 1: + //关闭wifi的逻辑 + Log.d(TAG, "handleMessage: 关网"); + wifiManager.setWifiEnabled(false); + break; + } + } + }; + context = this; + testButton = findViewById(R.id.test); + testButton2 = findViewById(R.id.test2); + startButton = findViewById(R.id.start); + textView = findViewById(R.id.text); + wifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE); + +// checkPermission(); + startButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + openWifi(); + } + }); + } + + + /** + * 获取wifi列表 + */ + private void getWifiList() { + wifiList = wifiManager.getScanResults(); + if (wifiList.size() == 0) { + Log.d(TAG, "onClick: empty"); + } else { + for (ScanResult result : + wifiList) { + Log.d(TAG, "onReceive: " + result.toString()); + } + } + } + + /** + * 延时10s关闭wifi + */ + public static void delayCloseWifi() { + new Thread(new Runnable() { + @Override + public void run() { + try { + Thread.sleep(2000); + handler.sendEmptyMessage(1); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + }).start(); + } + + /** + * 打开wifi,自动链接 + */ + public static void openWifi() { + wifiManager.setWifiEnabled(true); + } + + public static void connectWifi() { + WifiConnect wifiConnect = new WifiConnect(context, textView); + wifiConnect.addNetWork("sunplus_009", ""); + } + + +} diff --git a/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/NetworkReceiver.java b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/NetworkReceiver.java new file mode 100644 index 0000000..1fe055b --- /dev/null +++ b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/NetworkReceiver.java @@ -0,0 +1,161 @@ +package com.scorpiomiku.wifitrick; + +import android.annotation.SuppressLint; +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.net.ConnectivityManager; +import android.net.NetworkInfo; +import android.net.wifi.SupplicantState; +import android.net.wifi.WifiInfo; +import android.net.wifi.WifiManager; +import android.os.Handler; +import android.os.Message; +import android.os.Parcelable; +import android.util.Log; + +import java.io.IOException; +import java.util.HashMap; + +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Response; + +/** + * Created by ScorpioMiku on 2019/9/3. + */ + +public class NetworkReceiver extends BroadcastReceiver { + private static final String TAG = "NetworkReceiver"; + public static final int STATE1 = 1;//密码错误 + public static final int STATE2 = 2;//连接成功 + public static final int STATE3 = 3;//连接失败 + public static final int STATE4 = 4;//正在获取ip地址 + public static final int STATE5 = 5;//正在连接 + public static HashMap mapData = new HashMap<>(); + @SuppressLint("HandlerLeak") + private Handler handler = new Handler() { + @Override + public void handleMessage(Message msg) { + super.handleMessage(msg); + switch (msg.what) { + case 1: + upData(); + break; + } + } + }; + + @Override + public void onReceive(Context context, Intent intent) { + if (WifiManager.SUPPLICANT_STATE_CHANGED_ACTION.equals(intent.getAction())) { + //密码错误广播,是不是正在获得IP地址 + int linkWifiResult = intent.getIntExtra(WifiManager.EXTRA_SUPPLICANT_ERROR, -1); + if (linkWifiResult == WifiManager.ERROR_AUTHENTICATING) { + //密码错误 + Log.d(TAG, "onReceive: 密码错误"); + } + SupplicantState supplicantState = intent.getParcelableExtra(WifiManager.EXTRA_NEW_STATE); + NetworkInfo.DetailedState state = WifiInfo.getDetailedStateOf(supplicantState); + if (state == NetworkInfo.DetailedState.CONNECTING) { + //正在连接 + Log.d(TAG, "onReceive: 正在连接"); + } else if (state == NetworkInfo.DetailedState.FAILED + || state == NetworkInfo.DetailedState.DISCONNECTING) { + //连接失败 + Log.d(TAG, "onReceive: 连接失败"); + } else if (state == NetworkInfo.DetailedState.CONNECTED) { + //连接成功 + Log.d(TAG, "onReceive: 连接成功"); + } else if (state == NetworkInfo.DetailedState.OBTAINING_IPADDR) { + //正在获取ip地址 + Log.d(TAG, "onReceive: 正在获取ip地址"); + } else if (state == NetworkInfo.DetailedState.IDLE) { + //闲置的 + Log.d(TAG, "onReceive: 闲置"); + } + } else if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(intent.getAction())) { + // 监听wifi的打开与关闭,与wifi的连接无关 + int wifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, 0); + switch (wifiState) { + case WifiManager.WIFI_STATE_DISABLING://正在停止0 + Log.d(TAG, "onReceive: 正在停止"); + break; + case WifiManager.WIFI_STATE_DISABLED://已停止1 + Log.d(TAG, "onReceive: 已停止"); +// upData(); + new Thread(new Runnable() { + @Override + public void run() { + try { + Thread.sleep(5000); + handler.sendEmptyMessage(1); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + }).start(); + break; + case WifiManager.WIFI_STATE_UNKNOWN://未知4 + Log.d(TAG, "onReceive: 未知"); + break; + case WifiManager.WIFI_STATE_ENABLING://正在打开2 + Log.d(TAG, "onReceive: 正在打开"); + break; + case WifiManager.WIFI_STATE_ENABLED://已开启3 + Log.d(TAG, "onReceive: 已打开"); + MainActivity.connectWifi(); + break; + default: + break; + } + } else if (WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(intent.getAction())) { + // 监听wifi的连接状态即是否连上了一个有效无线路由 + Parcelable parcelableExtra = intent + .getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO); + if (null != parcelableExtra) { + // 获取联网状态的NetWorkInfo对象 + NetworkInfo networkInfo = (NetworkInfo) parcelableExtra; + //获取的State对象则代表着连接成功与否等状态 + NetworkInfo.State state = networkInfo.getState(); + //判断网络是否已经连接 + boolean isConnected = state == NetworkInfo.State.CONNECTED; +// Log.v(Constants.HTTP_WZ, "isConnected:" + isConnected); + if (isConnected) { +// ToastUtils.showTipMsg(R.string.linked_success); + } + } + } + } + + @SuppressWarnings("unused") + private String getConnectionType(int type) { + String connType = ""; + if (type == ConnectivityManager.TYPE_MOBILE) { + connType = "移动网络"; + } else if (type == ConnectivityManager.TYPE_WIFI) { + connType = "WIFI网络"; + } + return connType; + } + + + /** + * 上传数据到服务器 + */ + private void upData() { + WebUtils.upRoomState(mapData, new Callback() { + @Override + public void onFailure(Call call, IOException e) { + Log.e(TAG, "onFailure: " + e.getMessage()); + } + + @Override + public void onResponse(Call call, Response response) throws IOException { + Log.d(TAG, "onResponse: upok"); + mapData.clear(); + MainActivity.openWifi(); + } + }); + } +} \ No newline at end of file diff --git a/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/Node.java b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/Node.java new file mode 100644 index 0000000..f38be7c --- /dev/null +++ b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/Node.java @@ -0,0 +1,56 @@ +package com.scorpiomiku.wifitrick; + +/** + * Created by ScorpioMiku on 2019/9/3. + */ + +public class Node { + private String nwkAddr; + private String parAddr; + private String macAddr; + private funcList[] funcList; + + public com.scorpiomiku.wifitrick.funcList[] getFuncList() { + return funcList; + } + + public void setFuncList(com.scorpiomiku.wifitrick.funcList[] funcList) { + this.funcList = funcList; + } + + @Override + public String toString() { + return "Node{" + + "nwkAddr='" + nwkAddr + '\'' + + ", parAddr='" + parAddr + '\'' + + ", macAddr='" + macAddr + '\'' + + ", funcList=" + funcList + + '}'; + } + + public String getNwkAddr() { + return nwkAddr; + } + + public void setNwkAddr(String nwkAddr) { + this.nwkAddr = nwkAddr; + } + + public String getParAddr() { + return parAddr; + } + + public void setParAddr(String parAddr) { + this.parAddr = parAddr; + } + + public String getMacAddr() { + return macAddr; + } + + public void setMacAddr(String macAddr) { + this.macAddr = macAddr; + } + + +} diff --git a/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/RoomData.java b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/RoomData.java new file mode 100644 index 0000000..b88ff77 --- /dev/null +++ b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/RoomData.java @@ -0,0 +1,84 @@ +package com.scorpiomiku.wifitrick; + +import java.util.HashMap; + +/** + * Created by ScorpioMiku on 2019/9/3. + */ + +public class RoomData { + private String isin; + private String temporature; + private String humidity; + private String time; + private String roomId; + + public RoomData(String isin, String temporature, String humidity, String time, String roomId) { + this.isin = isin; + this.temporature = temporature; + this.humidity = humidity; + this.time = time; + this.roomId = roomId; + } + + public HashMap getMap() { + HashMap mapData = new HashMap<>(); + mapData.put("roomId", getRoomId()); + mapData.put("time", TimeUtils.getTime()); + mapData.put("temperature", getTemporature()); + mapData.put("humidity", getHumidity()); + mapData.put("isin", getIsin()); + return mapData; + } + + public String getIsin() { + return isin; + } + + public void setIsin(String isin) { + this.isin = isin; + } + + public String getTemporature() { + return temporature; + } + + public void setTemporature(String temporature) { + this.temporature = temporature; + } + + public String getHumidity() { + return humidity; + } + + public void setHumidity(String humidity) { + this.humidity = humidity; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getRoomId() { + return roomId; + } + + public void setRoomId(String roomId) { + this.roomId = roomId; + } + + @Override + public String toString() { + return "RoomData{" + + "isin='" + isin + '\'' + + ", temporature='" + temporature + '\'' + + ", humidity='" + humidity + '\'' + + ", time='" + time + '\'' + + ", roomId='" + roomId + '\'' + + '}'; + } +} diff --git a/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/TimeUtils.java b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/TimeUtils.java new file mode 100644 index 0000000..b545d2a --- /dev/null +++ b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/TimeUtils.java @@ -0,0 +1,22 @@ +package com.scorpiomiku.wifitrick; + +import android.annotation.SuppressLint; + +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.Date; +import java.util.TimeZone; + +/** + * Created by ScorpioMiku on 2019/9/3. + */ + +public class TimeUtils { + public static String getTime() { + @SuppressLint("SimpleDateFormat") + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");// HH:mm:ss + //获取当前时间 + Date date = new Date(System.currentTimeMillis()); + return simpleDateFormat.format(date); + } +} diff --git a/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/WebUtils.java b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/WebUtils.java new file mode 100644 index 0000000..f773029 --- /dev/null +++ b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/WebUtils.java @@ -0,0 +1,77 @@ +package com.scorpiomiku.wifitrick; + +import android.util.Log; + +import com.google.gson.JsonObject; +import com.google.gson.JsonParser; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Set; + +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.FormBody; +import okhttp3.MediaType; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; + +/** + * Created by ScorpioMiku on 2019/9/3. + */ + +public class WebUtils { + private static final String TAG = "WebUtils"; + private static WebUtils instance = new WebUtils(); + private static OkHttpClient mClient = new OkHttpClient(); + private static final String webHost = "http://39.105.65.209:8080"; + + private WebUtils() { + } + + public static WebUtils getInstance() { + return instance; + } + + public static FormBody getBody(HashMap data) { + FormBody.Builder bodyBuilder = new FormBody.Builder(); + Set keys = data.keySet(); + for (String key : keys) { + bodyBuilder.add(key, data.get(key)); + } + + return bodyBuilder.build(); + } + + public static RequestBody getRequestBody(HashMap data) { + String body = ""; + MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded"); + Set keys = data.keySet(); + for (String key : keys) { + body += key + "=" + data.get(key) + "&"; + } + body = body.substring(0, body.length() - 1); +// Log.d(TAG, "getRequestBody: " + body); + RequestBody requestBody = RequestBody.create(mediaType, body); + return requestBody; + } + + public static void upRoomState(HashMap hashMap, Callback callback) { + Request request = new Request.Builder().post(getRequestBody(hashMap)) + .url(webHost + "/rstate/add/").build(); + Call call = mClient.newCall(request); + call.enqueue(callback); + } + + public static void getTest(Callback callback) { + Request request = new Request.Builder() + .url("http://192.168.0.1/cgi-bin/node.cgi") + .build(); + Call call = mClient.newCall(request); + call.enqueue(callback); + } + + +} diff --git a/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/WifiConnect.java b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/WifiConnect.java new file mode 100644 index 0000000..94f5ce3 --- /dev/null +++ b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/WifiConnect.java @@ -0,0 +1,218 @@ +package com.scorpiomiku.wifitrick; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.net.wifi.WifiConfiguration; +import android.net.wifi.WifiManager; +import android.os.Handler; +import android.os.Message; +import android.util.Log; +import android.widget.TextView; + +import com.google.gson.Gson; + +import java.io.IOException; +import java.util.List; + +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.Response; + +/** + * Created by ScorpioMiku on 2019/9/3. + */ + +public class WifiConnect { + private WifiManager mWifiManager; + private List wifiConfigurationList; + private Context mContext; + private TextView textView; + + private String isin; + private String temporature; + private String humidity; + private String time; + private String roomId; + + private Handler handler; + private static final String TAG = "WifiConnect"; + + + @SuppressLint("HandlerLeak") + public WifiConnect(Context context, TextView view) { + // 常驻 + mWifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE); + textView = view; + handler = new Handler() { + @Override + public void handleMessage(Message msg) { + super.handleMessage(msg); + switch (msg.what) { + case 1: + getRoomData(); + break; + } + } + }; + } + + public WifiConnect(List wifiConfigurationList, WifiManager mWifiManager) { + this.wifiConfigurationList = wifiConfigurationList; + this.mWifiManager = mWifiManager; + } + + + /** + * 连接wifi + */ + public void addNetWork(String SSID, String PASSW) { + int netId = -1; + if (removeWifi(SSID)) { + Log.e("sin", "移除,新建config"); + netId = mWifiManager.addNetwork(createWifiInfo(SSID, PASSW)); + } else { + if (getExitsWifiConfig(SSID) != null) { + Log.e("sin", "这个wifi是连接过"); + netId = getExitsWifiConfig(SSID).networkId; + } else { + Log.e("sin", "没连接过的,新建一个wifi配置 "); + netId = mWifiManager.addNetwork(createWifiInfo(SSID, PASSW)); + } + } + + Log.e("sin", "netId: " + netId); + + boolean b = mWifiManager.enableNetwork(netId, true); // 无论咋这都会返回true; + Log.e("sin", "ssss: " + b); + if (!b) { + Log.e("SSSSSSSSSSSS", "-0.0-"); + // 如果这里失败,再从新获取manager 重新配置config; + mWifiManager = (WifiManager) mContext.getApplicationContext().getSystemService(Context.WIFI_SERVICE); + // 配置config + } else { + Log.e("SIN", "success"); + new Thread(new Runnable() { + @Override + public void run() { + try { + Thread.sleep(5000); + handler.sendEmptyMessage(1); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + }).start(); + } + + } + + private void getRoomData() { + WebUtils.getTest(new Callback() { + @Override + public void onFailure(Call call, IOException e) { + + } + + @Override + public void onResponse(Call call, Response response) throws IOException { + NetworkReceiver.mapData.clear(); + String body = response.body().string(); + Gson gson = new Gson(); + Node[] nodes = gson.fromJson(body, Node[].class); + for (Node node : nodes) { + funcList[] funcLists = node.getFuncList(); + for (funcList funcList : funcLists) { + if (funcList.getType().equals("安防")) { + isin = String.valueOf((int) funcList.getData()); + } else if (funcList.getType().equals("温度")) { + temporature = String.valueOf(funcList.getData()); + } else if (funcList.getType().equals("湿度")) { + humidity = String.valueOf(funcList.getData()); + } + } + } + RoomData roomData = new RoomData(isin, temporature, humidity, TimeUtils.getTime(), "1"); + NetworkReceiver.mapData.putAll(roomData.getMap()); + Log.d(TAG, "onResponse: " + roomData); + MainActivity.delayCloseWifi(); + } + }); + } + + /** + * 存在过的wifiConfiguration + */ + public WifiConfiguration getExitsWifiConfig(String SSID) { + wifiConfigurationList = mWifiManager.getConfiguredNetworks(); + for (WifiConfiguration wifiConfiguration : wifiConfigurationList) { + if (wifiConfiguration.SSID.equals("\"" + SSID + "\"")) { + return wifiConfiguration; + } + } + return null; + } + + + public boolean removeWifi(int netId) { + // + return mWifiManager.removeNetwork(netId); + } + + /** + * config里存在; 在mWifiManager移除; + */ + public boolean removeWifi(String SSID) { + if (getExitsWifiConfig(SSID) != null) { + return removeWifi(getExitsWifiConfig(SSID).networkId); + } else { + return false; + } + } + + + /** + * CHUANJian + * + * @param SSID + * @param password + * @return + */ + public WifiConfiguration createWifiInfo(String SSID, String password) { + WifiConfiguration config = new WifiConfiguration(); + + if (config != null) { + config.allowedAuthAlgorithms.clear(); + config.allowedGroupCiphers.clear(); + config.allowedKeyManagement.clear(); + config.allowedPairwiseCiphers.clear(); + config.allowedProtocols.clear(); + config.SSID = "\"" + SSID + "\""; + + //如果有相同配置的,就先删除 + WifiConfiguration tempConfig = getExitsWifiConfig(SSID); + if (tempConfig != null) { + mWifiManager.removeNetwork(tempConfig.networkId); + mWifiManager.saveConfiguration(); + } + config.preSharedKey = "\"" + password + "\""; + config.hiddenSSID = true; + config.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); + config.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); + config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); + config.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.TKIP); + //config.allowedProtocols.set(WifiConfiguration.Protocol.WPA); + config.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); + config.allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.CCMP); + config.status = WifiConfiguration.Status.ENABLED; + + Log.e("sin", "config: " + config.SSID + " config: " + config.toString()); + return config; + } else { + + Log.e("SSS", "WOCAO NULL !!!"); + return null; + } + + } +} + diff --git a/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/funcList.java b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/funcList.java new file mode 100644 index 0000000..5bdff9a --- /dev/null +++ b/android/WIFITrick/app/src/main/java/com/scorpiomiku/wifitrick/funcList.java @@ -0,0 +1,57 @@ +package com.scorpiomiku.wifitrick; + +import java.util.HashMap; + +/** + * Created by ScorpioMiku on 2019/9/3. + */ + +public class funcList { + + private String typeCode; + private String type; + private float cycle; + private float data; + + @Override + public String toString() { + return "funcList{" + + "typeCode='" + typeCode + '\'' + + ", type='" + type + '\'' + + ", cycle=" + cycle + + ", data=" + data + + '}'; + } + + public String getTypeCode() { + return typeCode; + } + + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public float getCycle() { + return cycle; + } + + public void setCycle(float cycle) { + this.cycle = cycle; + } + + public float getData() { + return data; + } + + public void setData(float data) { + this.data = data; + } +} diff --git a/android/WIFITrick/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android/WIFITrick/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..c7bd21d --- /dev/null +++ b/android/WIFITrick/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/android/WIFITrick/app/src/main/res/drawable/ic_launcher_background.xml b/android/WIFITrick/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..d5fccc5 --- /dev/null +++ b/android/WIFITrick/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/WIFITrick/app/src/main/res/layout/activity_main.xml b/android/WIFITrick/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..de0fd7d --- /dev/null +++ b/android/WIFITrick/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,46 @@ + + + +