Skip to content

Commit 47cbce2

Browse files
committed
udpate doc
1 parent 1cd5e93 commit 47cbce2

File tree

14 files changed

+676
-607
lines changed

14 files changed

+676
-607
lines changed

README-cn.md

Lines changed: 405 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 253 additions & 324 deletions
Large diffs are not rendered by default.

library/src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
package="com.code19.library">
1919

2020
<uses-permission android:name="android.permission.CALL_PHONE"/>
21+
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
22+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
23+
2124
<application
2225
android:allowBackup="true"
2326
android:supportsRtl="true">

library/src/main/java/com/code19/library/AppUtils.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
/**
4242
* Create by h4de5ing 2016/5/18 018
43-
* checked
4443
*/
4544
public class AppUtils {
4645

@@ -251,9 +250,6 @@ public static boolean isSystemApp(Context context, String packageName) {
251250
return isSys;
252251
}
253252

254-
/**
255-
* className "com.xxx.xx..XXXService"
256-
*/
257253
public static boolean isServiceRunning(Context context, String className) {
258254
boolean isRunning = false;
259255
ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
@@ -380,7 +376,7 @@ public static void cleanDatabases(Context context) {
380376
FileUtils.deleteFileByDirectory(new File(filepath));
381377
}
382378

383-
public static void cleanSharedPreference(Context context){
379+
public static void cleanSharedPreference(Context context) {
384380
String filepath = String.format(String.format(context.getFilesDir().getParent() + File.separator + "%s", "shared_prefs"));
385381
FileUtils.deleteFileByDirectory(new File(filepath));
386382
}

library/src/main/java/com/code19/library/CacheUtils.java

Lines changed: 0 additions & 46 deletions
This file was deleted.

library/src/main/java/com/code19/library/DensityUtil.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
/**
3232
* Create by h4de5ing 2016/5/7 007
33-
* checked
3433
*/
3534
public class DensityUtil {
3635

library/src/main/java/com/code19/library/DeviceUtils.java

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343
/**
4444
* https://github.com/nisrulz/easydeviceinfo
45-
* unchecked
4645
*/
4746
public class DeviceUtils {
4847

@@ -118,11 +117,6 @@ public static String getSIMSerial(Context ctx) {
118117
return tm.getSimSerialNumber();
119118
}
120119

121-
public static String getPhoneNumber(Context ctx) {
122-
TelephonyManager tm = (TelephonyManager) ctx.getSystemService(Context.TELEPHONY_SERVICE);
123-
return tm.getLine1Number();
124-
}
125-
126120
public static String getMNC(Context ctx) {
127121
String providersName = "";
128122
TelephonyManager telephonyManager = (TelephonyManager) ctx.getSystemService(Context.TELEPHONY_SERVICE);
@@ -228,9 +222,7 @@ public static String getOSVersion() {
228222
return Build.VERSION.RELEASE;
229223
}
230224

231-
/**
232-
* <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
233-
*/
225+
//<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
234226
public static String getGSFID(Context context) {
235227
String result;
236228
final Uri URI = Uri.parse("content://com.google.android.gsf.gservices");
@@ -246,9 +238,7 @@ public static String getGSFID(Context context) {
246238
return result;
247239
}
248240

249-
/**
250-
* <uses-permission android:name="android.permission.BLUETOOTH"/>
251-
*/
241+
//<uses-permission android:name="android.permission.BLUETOOTH"/>
252242
@SuppressWarnings("MissingPermission")
253243
public static String getBluetoothMAC(Context context) {
254244
String result = null;
@@ -347,9 +337,7 @@ public static String getDensity(Context ctx) {
347337
return densityStr;
348338
}
349339

350-
/**
351-
* <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
352-
*/
340+
//<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
353341
@SuppressWarnings("MissingPermission")
354342
public static String[] getGoogleAccounts(Context ctx) {
355343
if (ctx.checkCallingOrSelfPermission(Manifest.permission.GET_ACCOUNTS) == PackageManager.PERMISSION_GRANTED) {

library/src/main/java/com/code19/library/GsonUtil.java

Lines changed: 0 additions & 155 deletions
This file was deleted.

library/src/main/java/com/code19/library/ImageUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
/**
4343
* Create by h4de5ing 2016/5/21 021
4444
* https://github.com/sharinghuang/ASRabbit
45-
* unchecked
4645
*/
4746
public class ImageUtils {
4847

library/src/main/java/com/code19/library/JsonUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
/**
3131
* Create by h4de5ing 2016/5/7 007
32-
* checked
3332
*/
3433
public class JsonUtils {
3534
public static String toJson(Object obj) {

0 commit comments

Comments
 (0)