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

@@ -61,6 +61,10 @@
android:name="android.permission.DELETE_PACKAGES"
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版本所需权限 -->
<permission
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.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<!-- 【常用】 移动推送 TPNS SDK所需权限 -->
<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.GET_TASKS" />
<!-- ##############################极光推送############################## -->
<!-- Required -->
<!-- <permission-->
<!-- android:name="${JPUSH_PKGNAME}.permission.JPUSH_MESSAGE"-->
<!-- android:protectionLevel="signature" />-->
<!-- Required -->
<!-- <uses-permission android:name="${JPUSH_PKGNAME}.permission.JPUSH_MESSAGE" />-->
<!-- &lt;!&ndash;##############################极光推送############################## &ndash;&gt;-->
<!-- &lt;!&ndash;Required &ndash;&gt;-->
<!-- <permission-->
<!-- android:name="${JPUSH_PKGNAME}.permission.JPUSH_MESSAGE"-->
<!-- android:protectionLevel="signature" />-->
<!-- &lt;!&ndash;Required &ndash;&gt;-->
<!-- <uses-permission android:name="${JPUSH_PKGNAME}.permission.JPUSH_MESSAGE" />-->
<!-- 高德地图 -->
<!-- 用于进行网络定位 -->
@@ -111,10 +117,6 @@
<!-- 如果您的应用需要后台定位权限且有可能运行在Android Q设备上,并且设置了target>28必须增加这个权限声明 -->
<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
android:name=".base.BaseApplication"
android:allowBackup="true"
@@ -265,24 +267,24 @@
<!-- <category android:name="android.intent.category.DEFAULT" /> -->
<!-- </intent-filter> -->
<!-- </receiver> -->
<receiver
android:name=".jpush.MyJPushReceiver"
android:enabled="true">
<intent-filter>
<!-- Required 用户注册SDK的intent -->
<action android:name="cn.jpush.android.intent.REGISTRATION" />
<!-- Required 用户接收SDK消息的intent -->
<action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />
<!-- Required 用户接收SDK通知栏信息的intent -->
<action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />
<!-- Required 用户打开自定义通知栏的intent -->
<action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />
<!-- 接收网络变化 连接/断开 since 1.6.3 -->
<action android:name="cn.jpush.android.intent.CONNECTION" />
<!-- <receiver-->
<!-- android:name=".jpush.MyJPushReceiver"-->
<!-- android:enabled="true">-->
<!-- <intent-filter>-->
<!-- &lt;!&ndash; Required 用户注册SDK的intent &ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.REGISTRATION" />-->
<!-- &lt;!&ndash; Required 用户接收SDK消息的intent &ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />-->
<!-- &lt;!&ndash; Required 用户接收SDK通知栏信息的intent &ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />-->
<!-- &lt;!&ndash; Required 用户打开自定义通知栏的intent &ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />-->
<!-- &lt;!&ndash; 接收网络变化 连接/断开 since 1.6.3 &ndash;&gt;-->
<!-- <action android:name="cn.jpush.android.intent.CONNECTION" />-->
<!-- <category android:name="${JPUSH_PKGNAME}" />-->
</intent-filter>
</receiver>
<!-- &lt;!&ndash; <category android:name="${JPUSH_PKGNAME}" />&ndash;&gt;-->
<!-- </intent-filter>-->
<!-- </receiver>-->
<!-- Required. For publish channel feature -->
<!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。 -->
<!-- 例如: -->
@@ -295,17 +297,6 @@
<!-- 发到 Google Play 的APK可以设置为 google-play; -->
<!-- 发到其他市场的 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 -->
@@ -458,6 +449,7 @@
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<!-- 【必须】 移动推送 TPNS 默认通知 -->
<activity
android:name="com.tencent.android.tpush.TpnsActivity"
@@ -559,6 +551,18 @@
android:name="XG_V2_ACCESS_KEY"
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 -->
<meta-data

View File

@@ -42,12 +42,14 @@ public class RemoteService extends Service {
@Override
public List<String> getHideIcon() throws RemoteException {
return JGYUtils.getInstance().getHidePackage();
List<String> hide = JGYUtils.getInstance().getHidePackage();
return hide;
}
@Override
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) {
JSONObject jSONObject = JSON.parseObject(s);
long createTime = jSONObject.getLong("createTime");
// JSONObject jSONObject = JSON.parseObject(s);
// long createTime = jSONObject.getLong("createTime");
long createTime = System.currentTimeMillis() / 1000;
PowerManager.WakeLock mWakeLock = JGYUtils.acquireWakeLock(mContext, 60 * 1000);
JGYUtils.release(mWakeLock);
if (createTime != 0) {

View File

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