version:cube 4.8

fix:修复截图
update:
This commit is contained in:
2022-06-02 18:14:59 +08:00
parent b01f101613
commit 8ac2a6503f
5 changed files with 58 additions and 50 deletions

View File

@@ -83,8 +83,8 @@ android {
//酷比魔方 //酷比魔方
cube { cube {
flavorDimensions "default" flavorDimensions "default"
versionCode 39 versionCode 40
versionName "4.8" versionName "4.9"
buildConfigField "String", "platform", '"ZhanRuiCube"' buildConfigField "String", "platform", '"ZhanRuiCube"'
manifestPlaceholders = [ manifestPlaceholders = [
AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89" AMAP_KEY: "6e339305206eeb43f2b4cc1f31751f89"
@@ -94,8 +94,8 @@ android {
//MTK //MTK
MTKnewly { MTKnewly {
flavorDimensions "default" flavorDimensions "default"
versionCode 17 versionCode 18
versionName "2.6" versionName "2.7"
buildConfigField "String", "platform", '"MTK"' buildConfigField "String", "platform", '"MTK"'
manifestPlaceholders = [ manifestPlaceholders = [
AMAP_KEY: "1af68e0a7edcaac82678b1cbb7643408" AMAP_KEY: "1af68e0a7edcaac82678b1cbb7643408"

View File

@@ -61,6 +61,10 @@
android:name="android.permission.DELETE_PACKAGES" android:name="android.permission.DELETE_PACKAGES"
tools:ignore="ProtectedPermissions" /> tools:ignore="ProtectedPermissions" />
<!--自定义安装应用权限-->
<uses-permission android:name="com.aoleyun.sn.permissions.INSTALL_APK" />
<permission android:name="com.aoleyun.sn.permissions.INSTALL_APK" />
<!-- 【必须】 移动推送 TPNS SDK VIP版本所需权限 --> <!-- 【必须】 移动推送 TPNS SDK VIP版本所需权限 -->
<permission <permission
android:name="com.aoleyun.sn.permission.XGPUSH_RECEIVE" android:name="com.aoleyun.sn.permission.XGPUSH_RECEIVE"
@@ -71,6 +75,7 @@
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<!-- 【常用】 移动推送 TPNS SDK所需权限 --> <!-- 【常用】 移动推送 TPNS SDK所需权限 -->
<uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WAKE_LOCK" />
@@ -79,13 +84,14 @@
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" /> <uses-permission android:name="android.permission.GET_TASKS" />
<!-- ##############################极光推送############################## -->
<!-- Required --> <!-- &lt;!&ndash;##############################极光推送############################## &ndash;&gt;-->
<!-- <permission--> <!-- &lt;!&ndash;Required &ndash;&gt;-->
<!-- android:name="${JPUSH_PKGNAME}.permission.JPUSH_MESSAGE"--> <!-- <permission-->
<!-- android:protectionLevel="signature" />--> <!-- android:name="${JPUSH_PKGNAME}.permission.JPUSH_MESSAGE"-->
<!-- Required --> <!-- android:protectionLevel="signature" />-->
<!-- <uses-permission android:name="${JPUSH_PKGNAME}.permission.JPUSH_MESSAGE" />--> <!-- &lt;!&ndash;Required &ndash;&gt;-->
<!-- <uses-permission android:name="${JPUSH_PKGNAME}.permission.JPUSH_MESSAGE" />-->
<!-- 高德地图 --> <!-- 高德地图 -->
<!-- 用于进行网络定位 --> <!-- 用于进行网络定位 -->
@@ -111,10 +117,6 @@
<!-- 如果您的应用需要后台定位权限且有可能运行在Android Q设备上,并且设置了target>28必须增加这个权限声明 --> <!-- 如果您的应用需要后台定位权限且有可能运行在Android Q设备上,并且设置了target>28必须增加这个权限声明 -->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<!--自定义安装应用权限-->
<uses-permission android:name="com.aoleyun.sn.permissions.INSTALL_APK" />
<permission android:name="com.aoleyun.sn.permissions.INSTALL_APK" />
<application <application
android:name=".base.BaseApplication" android:name=".base.BaseApplication"
android:allowBackup="true" android:allowBackup="true"
@@ -265,24 +267,24 @@
<!-- <category android:name="android.intent.category.DEFAULT" /> --> <!-- <category android:name="android.intent.category.DEFAULT" /> -->
<!-- </intent-filter> --> <!-- </intent-filter> -->
<!-- </receiver> --> <!-- </receiver> -->
<receiver <!-- <receiver-->
android:name=".jpush.MyJPushReceiver" <!-- android:name=".jpush.MyJPushReceiver"-->
android:enabled="true"> <!-- android:enabled="true">-->
<intent-filter> <!-- <intent-filter>-->
<!-- Required 用户注册SDK的intent --> <!-- &lt;!&ndash; Required 用户注册SDK的intent &ndash;&gt;-->
<action android:name="cn.jpush.android.intent.REGISTRATION" /> <!-- <action android:name="cn.jpush.android.intent.REGISTRATION" />-->
<!-- Required 用户接收SDK消息的intent --> <!-- &lt;!&ndash; Required 用户接收SDK消息的intent &ndash;&gt;-->
<action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" /> <!-- <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />-->
<!-- Required 用户接收SDK通知栏信息的intent --> <!-- &lt;!&ndash; Required 用户接收SDK通知栏信息的intent &ndash;&gt;-->
<action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" /> <!-- <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />-->
<!-- Required 用户打开自定义通知栏的intent --> <!-- &lt;!&ndash; Required 用户打开自定义通知栏的intent &ndash;&gt;-->
<action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" /> <!-- <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />-->
<!-- 接收网络变化 连接/断开 since 1.6.3 --> <!-- &lt;!&ndash; 接收网络变化 连接/断开 since 1.6.3 &ndash;&gt;-->
<action android:name="cn.jpush.android.intent.CONNECTION" /> <!-- <action android:name="cn.jpush.android.intent.CONNECTION" />-->
<!-- <category android:name="${JPUSH_PKGNAME}" />--> <!-- &lt;!&ndash; <category android:name="${JPUSH_PKGNAME}" />&ndash;&gt;-->
</intent-filter> <!-- </intent-filter>-->
</receiver> <!-- </receiver>-->
<!-- Required. For publish channel feature --> <!-- Required. For publish channel feature -->
<!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。 --> <!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。 -->
<!-- 例如: --> <!-- 例如: -->
@@ -295,17 +297,6 @@
<!-- 发到 Google Play 的APK可以设置为 google-play; --> <!-- 发到 Google Play 的APK可以设置为 google-play; -->
<!-- 发到其他市场的 APK 可以设置为 xxx-market。 --> <!-- 发到其他市场的 APK 可以设置为 xxx-market。 -->
<!-- 目前这个渠道统计功能的报表还未开放。 --> <!-- 目前这个渠道统计功能的报表还未开放。 -->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.aoleyun.sn.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<!-- 元数据 -->
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
<!-- ##############################极光推送############################## --> <!-- ##############################极光推送############################## -->
<!-- Rich push 核心功能 since 2.0.6 --> <!-- Rich push 核心功能 since 2.0.6 -->
@@ -458,6 +449,7 @@
<uses-library <uses-library
android:name="org.apache.http.legacy" android:name="org.apache.http.legacy"
android:required="false" /> android:required="false" />
<!-- 【必须】 移动推送 TPNS 默认通知 --> <!-- 【必须】 移动推送 TPNS 默认通知 -->
<activity <activity
android:name="com.tencent.android.tpush.TpnsActivity" android:name="com.tencent.android.tpush.TpnsActivity"
@@ -559,6 +551,18 @@
android:name="XG_V2_ACCESS_KEY" android:name="XG_V2_ACCESS_KEY"
android:value="AR7A1L5M0LPH" /> android:value="AR7A1L5M0LPH" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.aoleyun.sn.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<!-- 元数据 -->
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
<!-- 高德地图 --> <!-- 高德地图 -->
<!-- 设置key --> <!-- 设置key -->
<meta-data <meta-data

View File

@@ -42,12 +42,14 @@ public class RemoteService extends Service {
@Override @Override
public List<String> getHideIcon() throws RemoteException { public List<String> getHideIcon() throws RemoteException {
return JGYUtils.getInstance().getHidePackage(); List<String> hide = JGYUtils.getInstance().getHidePackage();
return hide;
} }
@Override @Override
public List<String> getDisableIcon() throws RemoteException { public List<String> getDisableIcon() throws RemoteException {
return JGYUtils.getInstance().getDisablePackage(); List<String> disable = JGYUtils.getInstance().getDisablePackage();
return disable;
} }
}; };

View File

@@ -977,9 +977,9 @@ public class MessageReceiver extends XGPushBaseReceiver {
} }
public void screenshot(String s) { public void screenshot(String s) {
JSONObject jSONObject = JSON.parseObject(s); // JSONObject jSONObject = JSON.parseObject(s);
long createTime = jSONObject.getLong("createTime"); // long createTime = jSONObject.getLong("createTime");
long createTime = System.currentTimeMillis() / 1000;
PowerManager.WakeLock mWakeLock = JGYUtils.acquireWakeLock(mContext, 60 * 1000); PowerManager.WakeLock mWakeLock = JGYUtils.acquireWakeLock(mContext, 60 * 1000);
JGYUtils.release(mWakeLock); JGYUtils.release(mWakeLock);
if (createTime != 0) { if (createTime != 0) {

View File

@@ -5,6 +5,8 @@ import android.content.Context;
import android.util.Log; import android.util.Log;
public class ServiceAliveUtils { public class ServiceAliveUtils {
private static final String TAG = ServiceAliveUtils.class.getSimpleName();
public static boolean isServiceAlive(Context mContext) { public static boolean isServiceAlive(Context mContext) {
boolean isServiceRunning = false; boolean isServiceRunning = false;
ActivityManager manager = ActivityManager manager =
@@ -17,7 +19,7 @@ public class ServiceAliveUtils {
isServiceRunning = true; isServiceRunning = true;
} }
} }
Log.i("ServiceAliveUtils", mContext.getClass().getName() + "isServiceAlice: " + isServiceRunning); Log.i(TAG, mContext.getClass().getName() + " :isServiceAlive: " + isServiceRunning);
return isServiceRunning; return isServiceRunning;
} }
@@ -33,7 +35,7 @@ public class ServiceAliveUtils {
isServiceRunning = true; isServiceRunning = true;
} }
} }
Log.i("ServiceAliveUtils", serviceName + " :isServiceAlice: " + isServiceRunning); Log.i(TAG, serviceName + " :isServiceAlive: " + isServiceRunning);
return isServiceRunning; return isServiceRunning;
} }
} }