version:1.5.0723
bugfixes: add:优化开发者选项
This commit is contained in:
@@ -29,8 +29,8 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.aoleyun.sn"
|
applicationId "com.aoleyun.sn"
|
||||||
versionCode 187
|
versionCode 188
|
||||||
versionName "1.5.0719"
|
versionName "1.5.0723"
|
||||||
|
|
||||||
//There are no CERT files because If the mini sdk version is 23+, the AGP will ignore the V1 scheme signature.
|
//There are no CERT files because If the mini sdk version is 23+, the AGP will ignore the V1 scheme signature.
|
||||||
minSdkVersion 24
|
minSdkVersion 24
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ public class MainActivity extends BaseMvvmActivity<MainViewModel, ActivityMainBi
|
|||||||
// Uri uri = Uri.parse("https://www.baidu.com");
|
// Uri uri = Uri.parse("https://www.baidu.com");
|
||||||
// Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
// Intent intent = new Intent(Intent.ACTION_VIEW, uri);
|
||||||
// startActivity(intent);
|
// startActivity(intent);
|
||||||
|
// Log.e(TAG, "initView: Build.getSerial = " + Build.getSerial());
|
||||||
// startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));
|
// startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));
|
||||||
JgyUtils.getInstance().getAllRunningAppProcessInfo();
|
JgyUtils.getInstance().getAllRunningAppProcessInfo();
|
||||||
JgyUtils.getInstance().getAllRunningServices();
|
JgyUtils.getInstance().getAllRunningServices();
|
||||||
|
|||||||
@@ -1488,6 +1488,7 @@ public class JgyUtils {
|
|||||||
HashSet<String> pkgSet = new HashSet<>(defaultPackages);
|
HashSet<String> pkgSet = new HashSet<>(defaultPackages);
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
pkgSet.add("com.reqable.android");
|
pkgSet.add("com.reqable.android");
|
||||||
|
pkgSet.add("com.ttstd.codetest1");
|
||||||
}
|
}
|
||||||
pkgSet.addAll(pkgs);
|
pkgSet.addAll(pkgs);
|
||||||
pkgSet.addAll(getWhitePkgList());
|
pkgSet.addAll(getWhitePkgList());
|
||||||
@@ -1514,6 +1515,7 @@ public class JgyUtils {
|
|||||||
HashSet<String> pkgSet = new HashSet<>(defaultPackages);
|
HashSet<String> pkgSet = new HashSet<>(defaultPackages);
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
pkgSet.add("com.reqable.android");
|
pkgSet.add("com.reqable.android");
|
||||||
|
pkgSet.add("com.ttstd.codetest1");
|
||||||
}
|
}
|
||||||
pkgSet.addAll(getWhitePkgList());
|
pkgSet.addAll(getWhitePkgList());
|
||||||
pkgSet.removeIf(TextUtils::isEmpty);
|
pkgSet.removeIf(TextUtils::isEmpty);
|
||||||
@@ -2090,7 +2092,7 @@ public class JgyUtils {
|
|||||||
* @param state 1打开 0关闭
|
* @param state 1打开 0关闭
|
||||||
*/
|
*/
|
||||||
public void setDeveloperOptions(int state) {
|
public void setDeveloperOptions(int state) {
|
||||||
Log.e(TAG, "getDeveloper: state = " + state);
|
Log.e(TAG, "setDeveloperOptions: state = " + state);
|
||||||
|
|
||||||
int oldStatu = Settings.System.getInt(crv, CommonConfig.AOLE_ACTION_DEVELOPER_OPTIONS, 0);
|
int oldStatu = Settings.System.getInt(crv, CommonConfig.AOLE_ACTION_DEVELOPER_OPTIONS, 0);
|
||||||
if (oldStatu == state) {
|
if (oldStatu == state) {
|
||||||
|
|||||||
Reference in New Issue
Block a user