1.4.0428 增加Huaruian8768
This commit is contained in:
31
build.gradle
31
build.gradle
@@ -71,8 +71,8 @@ android {
|
|||||||
// versionName "2.3.9"
|
// versionName "2.3.9"
|
||||||
|
|
||||||
//cube
|
//cube
|
||||||
versionCode 115
|
versionCode 126
|
||||||
versionName "1.4.0319"
|
versionName "1.4.0428"
|
||||||
|
|
||||||
ndk {
|
ndk {
|
||||||
//选择要添加的对应 cpu 类型的 .so 库。
|
//选择要添加的对应 cpu 类型的 .so 库。
|
||||||
@@ -135,7 +135,7 @@ android {
|
|||||||
v2SigningEnabled false
|
v2SigningEnabled false
|
||||||
}
|
}
|
||||||
|
|
||||||
zhanruiG10Z{
|
zhanruiG10Z {
|
||||||
storeFile file("keystore/zhanruiG10Z.keystore")
|
storeFile file("keystore/zhanruiG10Z.keystore")
|
||||||
storePassword "123456"
|
storePassword "123456"
|
||||||
keyAlias "zhanruiG10Z"
|
keyAlias "zhanruiG10Z"
|
||||||
@@ -169,9 +169,32 @@ android {
|
|||||||
keyPassword "123456"
|
keyPassword "123456"
|
||||||
v2SigningEnabled false
|
v2SigningEnabled false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Huaruian8768 {
|
||||||
|
storeFile file("keystore/Huaruian8768.jks")
|
||||||
|
storePassword "123456"
|
||||||
|
keyAlias "Huaruian8768"
|
||||||
|
keyPassword "123456"
|
||||||
|
v1SigningEnabled true
|
||||||
|
v2SigningEnabled true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
Huaruian8768Debug.initWith(debug)
|
||||||
|
Huaruian8768Debug {
|
||||||
|
versionNameSuffix "-debug"
|
||||||
|
debuggable true
|
||||||
|
signingConfig signingConfigs.Huaruian8768
|
||||||
|
buildConfigField "String", "platform", '"MT8768"'
|
||||||
|
}
|
||||||
|
|
||||||
|
Huaruian8768Release.initWith(release)
|
||||||
|
Huaruian8768Release {
|
||||||
|
signingConfig signingConfigs.Huaruian8768
|
||||||
|
buildConfigField "String", "platform", '"MT8768"'
|
||||||
|
}
|
||||||
|
|
||||||
G11Debug.initWith(debug)
|
G11Debug.initWith(debug)
|
||||||
G11Debug {
|
G11Debug {
|
||||||
versionNameSuffix "-debug"
|
versionNameSuffix "-debug"
|
||||||
@@ -182,7 +205,7 @@ android {
|
|||||||
|
|
||||||
G11Release.initWith(release)
|
G11Release.initWith(release)
|
||||||
G11Release {
|
G11Release {
|
||||||
signingConfig signingConfigs.G10P
|
signingConfig signingConfigs.G11Userdebug
|
||||||
buildConfigField "String", "platform", '"MTKG11"'
|
buildConfigField "String", "platform", '"MTKG11"'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
Huaruian8768Debug {}
|
||||||
|
Huaruian8768Release {}
|
||||||
G11Debug {}
|
G11Debug {}
|
||||||
G11Release {}
|
G11Release {}
|
||||||
YXPD1Debug {}
|
YXPD1Debug {}
|
||||||
|
|||||||
BIN
keystore/Huaruian8768.jks
Normal file
BIN
keystore/Huaruian8768.jks
Normal file
Binary file not shown.
@@ -337,8 +337,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
|||||||
private DeviceProfile mStableDeviceProfile;
|
private DeviceProfile mStableDeviceProfile;
|
||||||
private RotationMode mRotationMode = RotationMode.NORMAL;
|
private RotationMode mRotationMode = RotationMode.NORMAL;
|
||||||
|
|
||||||
public static boolean isForeground = false;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
RaceConditionTracker.onEvent(ON_CREATE_EVT, ENTER);
|
RaceConditionTracker.onEvent(ON_CREATE_EVT, ENTER);
|
||||||
@@ -545,6 +543,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void SetWallPaper() {
|
private void SetWallPaper() {
|
||||||
|
Log.e(TAG, "SetWallPaper: ");
|
||||||
//利用WallpaparManager,添加权限set_wallpaper
|
//利用WallpaparManager,添加权限set_wallpaper
|
||||||
WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
|
WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
|
||||||
try {
|
try {
|
||||||
@@ -1277,7 +1276,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
|||||||
RaceConditionTracker.onEvent(ON_RESUME_EVT, EXIT);
|
RaceConditionTracker.onEvent(ON_RESUME_EVT, EXIT);
|
||||||
|
|
||||||
Log.e(TAG, "onResume: ");
|
Log.e(TAG, "onResume: ");
|
||||||
isForeground = true;
|
|
||||||
/*打开霸屏应用*/
|
/*打开霸屏应用*/
|
||||||
String always_top_packagename = Settings.System.getString(getContentResolver(), "always_top_packagename");
|
String always_top_packagename = Settings.System.getString(getContentResolver(), "always_top_packagename");
|
||||||
if (!TextUtils.isEmpty(always_top_packagename)) {
|
if (!TextUtils.isEmpty(always_top_packagename)) {
|
||||||
@@ -1481,7 +1479,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
|||||||
if (mLauncherCallbacks != null) {
|
if (mLauncherCallbacks != null) {
|
||||||
mLauncherCallbacks.onPause();
|
mLauncherCallbacks.onPause();
|
||||||
}
|
}
|
||||||
isForeground = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ public class LoaderTask implements Runnable {
|
|||||||
/**
|
/**
|
||||||
* 需要隐藏的图标
|
* 需要隐藏的图标
|
||||||
*/
|
*/
|
||||||
private HashSet<String> hideApp = new HashSet<String>() {{
|
private static final HashSet<String> hideApp = new HashSet<String>() {{
|
||||||
this.add(BuildConfig.APPLICATION_ID);
|
this.add(BuildConfig.APPLICATION_ID);
|
||||||
this.add("com.android.quicksearchbox");
|
this.add("com.android.quicksearchbox");
|
||||||
this.add("com.st.nfc.dta.mobile");
|
this.add("com.st.nfc.dta.mobile");
|
||||||
@@ -263,12 +263,13 @@ public class LoaderTask implements Runnable {
|
|||||||
this.add("com.mediatek.factorymode");
|
this.add("com.mediatek.factorymode");
|
||||||
this.add("org.chromium.browser");
|
this.add("org.chromium.browser");
|
||||||
this.add("com.android.email");
|
this.add("com.android.email");
|
||||||
|
this.add("com.android.soundrecorder");
|
||||||
}};
|
}};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统应用只显示这几个
|
* 系统应用只显示这几个
|
||||||
*/
|
*/
|
||||||
public static HashSet<String> showApp = new HashSet<String>() {{
|
public static final HashSet<String> showApp = new HashSet<String>() {{
|
||||||
// this.add(BuildConfig.APPLICATION_ID);
|
// this.add(BuildConfig.APPLICATION_ID);
|
||||||
//aoleyun
|
//aoleyun
|
||||||
this.add("com.aoleyun.sn");
|
this.add("com.aoleyun.sn");
|
||||||
@@ -337,18 +338,18 @@ public class LoaderTask implements Runnable {
|
|||||||
/*系统应用*/
|
/*系统应用*/
|
||||||
if (JGYUtils.getInstance().getDeviceIsLocked() && aihuaUnlock != 1) {
|
if (JGYUtils.getInstance().getDeviceIsLocked() && aihuaUnlock != 1) {
|
||||||
if ((app.getApplicationFlags() & ApplicationInfo.FLAG_SYSTEM) == 1) {
|
if ((app.getApplicationFlags() & ApplicationInfo.FLAG_SYSTEM) == 1) {
|
||||||
if (!showApp.contains(app.getApplicationInfo().packageName)) {
|
if (hideApp.contains(app.getApplicationInfo().packageName)) {
|
||||||
Log.e("verifyApplications", "skip1: " + app.getApplicationInfo().packageName);
|
Log.e("verifyApplications", "skip1: " + app.getApplicationInfo().packageName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (TextUtils.isEmpty(whiteList)) {
|
if (TextUtils.isEmpty(whiteList)) {
|
||||||
if (!showApp.contains(app.getApplicationInfo().packageName)) {
|
if (hideApp.contains(app.getApplicationInfo().packageName)) {
|
||||||
Log.e("verifyApplications", "skip2: " + app.getApplicationInfo().packageName);
|
Log.e("verifyApplications", "skip2: " + app.getApplicationInfo().packageName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else if (!whiteList.contains(app.getApplicationInfo().packageName)) {
|
} else if (!whiteList.contains(app.getApplicationInfo().packageName)) {
|
||||||
if (!showApp.contains(app.getApplicationInfo().packageName)) {
|
if (hideApp.contains(app.getApplicationInfo().packageName)) {
|
||||||
Log.e("verifyApplications", "skip3: " + app.getApplicationInfo().packageName);
|
Log.e("verifyApplications", "skip3: " + app.getApplicationInfo().packageName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -246,15 +246,6 @@ public class ItemClickHandler {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String[] packages = {
|
|
||||||
"com.appstore.uiui",
|
|
||||||
"com.uiuios.updatetools",
|
|
||||||
"com.info.sn",
|
|
||||||
"com.android.uiuios",
|
|
||||||
"com.easyold.uiuios",
|
|
||||||
"com.jiaoguanyi.store"
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Event handler for a folder icon click.
|
* Event handler for a folder icon click.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user