Skip to content

Commit

Permalink
删除动态读取心跳间隔(gms包下无法通过XSharedPreferences读配置,以后再说)
Browse files Browse the repository at this point in the history
  • Loading branch information
kooritea committed Sep 18, 2020
1 parent e7af6ca commit 9e92ca6
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ protected void beforeHookedMethod(final MethodHookParam param) throws Throwable
// 修改心跳间隔
Intent intent = (Intent) XposedHelpers.getObjectField(param.thisObject,"e");
if("com.google.android.gms.gcm.HEARTBEAT_ALARM".equals(intent.getAction())){
String heartbeatIntervalString = getXSharedPreferences().getString("heartbeatInterval","");
if(heartbeatIntervalString.equals("")){
heartbeatIntervalString = "117000";
}
long heartbeatInterval = new Long(heartbeatIntervalString).longValue();
if(heartbeatInterval>5000L){
param.args[0] = heartbeatInterval;
}
param.args[0] = 117000L;
}
}
@Override
Expand Down

0 comments on commit 9e92ca6

Please sign in to comment.