Files
and-bak/app/build/tmp/kotlin-classes/debug/com/hikoncont/service/GuardKeepAliveService.class

150 lines
13 KiB
Plaintext
Raw Normal View History

2026-02-11 16:59:49 +08:00
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>4+com/hikoncont/service/GuardKeepAliveServiceandroid/app/Service<init>()V 
kotlinx/coroutines/Dispatchers getIO*()Lkotlinx/coroutines/CoroutineDispatcher;
kotlinx/coroutines/SupervisorKtSupervisorJob$defaultP(Lkotlinx/coroutines/Job;ILjava/lang/Object;)Lkotlinx/coroutines/CompletableJob; 
"kotlin/coroutines/CoroutineContext&kotlinx/coroutines/CoroutineDispatcherplusJ(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext; 
#kotlinx/coroutines/CoroutineScopeKtCoroutineScopeI(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineScope; 
! serviceScope#Lkotlinx/coroutines/CoroutineScope; #$ %u0MAIN_SERVICE_RESTART_INTERVALJ )* +this-Lcom/hikoncont/service/GuardKeepAliveService;onCreate /
0GuardKeepAlive2"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 守护保活服务创建4android/util/Log6i'(Ljava/lang/String;Ljava/lang/String;)I 89
7:ensureForeground <
=acquireWakeLock ?
@startMonitoring B
ConStartCommand(Landroid/content/Intent;II)I$Lorg/jetbrains/annotations/Nullable;java/lang/ExceptionH守护保活服务启动命令JstartForegroundImmediately L
M1❌ 启动前台服务失败,尝试备用方案Ojava/lang/ThrowableQe<(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I ST
7ULjava/lang/Exception;intentLandroid/content/Intent;flagsIstartIdonBind.(Landroid/content/Intent;)Landroid/os/IBinder; onDestroy<1F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 守护保活服务销毁`releaseWakeLock b
c
monitorJobLkotlinx/coroutines/Job; ef g#kotlinx/coroutines/Job$DefaultImplsicancel$defaultZ(Lkotlinx/coroutines/Job;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V kl
jme(Lkotlinx/coroutines/CoroutineScope;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V ko
pshouldRestartMainService()Z rs
trestartMainKeepAliveService v
wsendRestartBroadcast y
z.⏳ 跳过主服务重启,防止循环启动|d ~9
7 _
<00>1❌ 守护保活服务销毁过程中发生错误<00>kotlinx/coroutines/Job<00>power<00>getSystemService&(Ljava/lang/String;)Ljava/lang/Object; <00><00>
<00><null cannot be cast to non-null type android.os.PowerManager<00>kotlin/jvm/internal/Intrinsics<00> checkNotNull'(Ljava/lang/Object;Ljava/lang/String;)V <00><00>
<00><00>android/os/PowerManager<00>RemoteControl::GuardKeepAlive<00> newWakeLock7(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock; <00><00>
<00><00>wakeLock"Landroid/os/PowerManager$WakeLock; <00><00> <00> '<27> android/os/PowerManager$WakeLock<00>acquire(J)V <00><00>
<00><00>2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 守护保活WakeLock已获取10分钟<00>❌ 获取WakeLock失败<00> powerManagerLandroid/os/PowerManager;java/lang/Object<00>release <00>
<00><00>$<24><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 守护保活WakeLock已释放<00>❌ 释放WakeLock失败<00>=com/hikoncont/service/GuardKeepAliveService$startMonitoring$1<00>P(Lcom/hikoncont/service/GuardKeepAliveService;Lkotlin/coroutines/Continuation;)V <00>
<00><00>kotlin/jvm/functions/Function2<00>kotlinx/coroutines/BuildersKt<00>launch$default<00>(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job; <00><00>
<00><00>checkMainKeepAliveServiceactivity<00>@null cannot be cast to non-null type android.app.ActivityManager<00>android/app/ActivityManager<00><><7F><EFBFBD>getRunningServices(I)Ljava/util/List; <00><00>
<00><00>runningServices<00>checkNotNullExpressionValue <00><00>
<00><00>java/lang/Iterable<00>java/util/Collection<00>isEmpty <00>s <00><00>iterator()Ljava/util/Iterator; <00><00> <00><00>java/util/Iterator<00>hasNext <00>s <00><00>next()Ljava/lang/Object; <00><00> <00><00>.android/app/ActivityManager$RunningServiceInfo<00>serviceLandroid/content/ComponentName; <00><00> <00><00>android/content/ComponentName<00> getClassName()Ljava/lang/String; <00><00>
<00><00>.com/hikoncont/service/EnhancedKeepAliveService<00>java/lang/Class<00>getName <00><00>
<00><00>areEqual'(Ljava/lang/Object;Ljava/lang/Object;)Z <00><00>
<00><00>7⚠ 主保活服务未运行,启动主保活服务w 9
7startMainKeepAliveService 
%❌ 检查主保活服务状态失败 P$i$a$-any-GuardKeepAliveService$checkMainKeepAliveService$isMainServiceRunning$1it0Landroid/app/ActivityManager$RunningServiceInfo;
element$ivLjava/lang/Object;$i$f$any $this$any$ivLjava/lang/Iterable;activityManagerLandroid/app/ActivityManager;Ljava/util/List;isMainServiceRunningZjava/util/Listandroid/content/Intentandroid/content/Context-(Landroid/content/Context;Ljava/lang/Class;)V 
android/os/Build$VERSION!SDK_INT #[ "$startForegroundService9(Landroid/content/Intent;)Landroid/content/ComponentName; &'
( startService *'
+"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 主保活服务已启动-❌ 启动主保活服务失败/java/lang/System1currentTimeMillis()J 34
25lastMainServiceRestartTime 7* 81<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 主保活服务已重启(互保机制):❌ 重启主保活服务失败<java/lang/StringBuilder>
?0⏳ 主服务重启间隔过短,跳过重启: Aappend-(Ljava/lang/String;)Ljava/lang/StringBuilder; CD
?E(J)Ljava/lang/StringBuilder; CG
?Hms < JmsLtoString N<00>
?O currentTimetimeSinceLastRestart$android.mycustrecev.RESTART_SERVICESS(Ljava/lang/String;)V U
V sendBroadcast(Landroid/content/Intent;)V XY
Z"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 服务重启广播已发送\❌ 发送重启广播失败^guard_keepalive_channel` notificationbDnull cannot be cast to non-null type android.app.NotificationManagerdandroid/app/NotificationManagerfandroid/app/NotificationChannelhjava/lang/CharSequencej.(Ljava/lang/String;Ljava/lang/CharSequence;I)V l
im setShowBadge(Z)V op
iq enableLights sp
itenableVibration vp
iwsetSound3(Landroid/net/Uri;Landroid/media/AudioAttributes;)V yz
i{ setBypassDnd }p
i~createNotificationChannel$(Landroid/app/NotificationChannel;)V <01><01>
g<01> android/app/Notification$Builder<01>.(Landroid/content/Context;Ljava/lang/String;)V <01>
<01><01>(Landroid/content/Context;)V <01>
<01><01><01>setContentTitle<(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder; <01><01>
<01><01>setContentText <01><01>
<01><01>  setSmallIcon%(I)Landroid/app/Notification$Builder; <01><01>
<01><01>
setOngoing%(Z)Landroid/app/Notification$Builder; <01><01>
<01><01> setPriority <01><01>
<01><01> setShowWhen <01><01>
<01><01> setAutoCancel <01><01>
<01><01> setVisibility <01><01>
<01><01>build()Landroid/app/Notification; <01><01>
<01><01>4builder
.build()<01>startForeground(ILandroid/app/Notification;)V <01><01>
<01>foregroundStarted <01> <01>I✅ 守护保活服务已立即进入前台运行(完全隐藏通知)<01>Hcom/hikoncont/service/GuardKeepAliveService$startForegroundImmediately$1<01>
<01><00>'无法移除通知(这是正常的)<01>(❌ 守护保活服务前台启动失败<01>channel!Landroid/app/NotificationChannel; channelIdLjava/lang/String; channelNamenotificationManager!Landroid/app/NotificationManager;builder"Landroid/app/Notification$Builder;Landroid/app/Notification;java/lang/String<01>android/app/Notification<01>❌ 确保前台服务失败<01> access$checkMainKeepAliveService0(Lcom/hikoncont/service/GuardKeepAliveService;)V <00>
<01>$this<clinit>5com/hikoncont/service/GuardKeepAliveService$Companion<01>1(Lkotlin/jvm/internal/DefaultConstructorMarker;)V <01>
<01><01> Companion7Lcom/hikoncont/service/GuardKeepAliveService$Companion; <01><01> <01>#Lorg/jetbrains/annotations/NotNull;TAGNOTIFICATION_ID<03>Lkotlin/Metadata;mvkxi0d1<01><><EFBFBD>N




<EFBFBD><EFBFBD>



<EFBFBD><EFBFBD>

<EFBFBD><EFBFBD>


<EFBFBD><EFBFBD>



<EFBFBD><EFBFBD>



 <18><> $20:$B¢J0HJ0HJ0HJ020HJ0HJ0HJ"0202020HJ0HJ0HJ0HJ 0HJ!0HJ"0HJ#0HR0X‚
<EFBFBD><EFBFBD>R0X‚¢
<EFBFBD><EFBFBD>R0X‚¢
<EFBFBD><EFBFBD>R0 X‚¢
<EFBFBD><EFBFBD>R
0 X‚¢
<EFBFBD><EFBFBD>R 0 R0X‚¢
<EFBFBD><EFBFBD>¨%d2Landroid/app/Service;Landroid/os/IBinder; app_debugRunningServiceInfoBuilder(android/content/Context$BindServiceFlags<01>BindServiceFlags#android/content/res/Resources$Theme<01>android/content/res/Resources<01>Theme4android/database/sqlite/SQLiteDatabase$CursorFactory<01>&android/database/sqlite/SQLiteDatabase<01> CursorFactoryandroid/os/BuildVERSIONWakeLock DefaultImplsEnhancedKeepAliveService.kt*Lkotlin/jvm/internal/SourceDebugExtension;valuePSMAP
EnhancedKeepAliveService.kt
Kotlin
*S Kotlin
*F
+ 1 EnhancedKeepAliveService.kt
com/hikoncont/service/GuardKeepAliveService
+ 2 _Collections.kt
kotlin/collections/CollectionsKt___CollectionsKt
*L
1#1,869:1
1747#2,3:870
*S KotlinDebug
*F
+ 1 EnhancedKeepAliveService.kt
com/hikoncont/service/GuardKeepAliveService
*L
609#1:870,3
*E
RuntimeInvisibleAnnotations ConstantValueCodeLineNumberTableLocalVariableTable StackMapTable$RuntimeInvisibleParameterAnnotations InnerClasses
SourceFileSourceDebugExtensionRuntimeVisibleAnnotations1 <01><01> <01>#$ <01>ef G<00><00> G<01>7*)*<01><01>
3 <01><01>[
<01> X"*<2A>*<2A><01><14><16><1C>"<22>&*'<27>,<2C> <01><01><01>!<01> "-./ W*<2A>135<>;W*<2A>>*<2A>A*<2A>D<> <01><01> <01><01><01><01> -.EF <00>%3K<>;W*<2A>N<>:3P<04>R<>VW*<2A>><04> IPI <01><01> <01><01><01><01># 4SW%-.%XY%Z[%\[ G]^ 6<01>  -.XY GG_ f3a<>;W*<2A>d*<2A>hY<68> <01>n<>W*<2A>&<01>q*<2A>u<>*<2A>x*<2A>{<7B> 3}<7D><00>W*<2A><00><>L3<12>+<2B>R<>VW*<2A><00><>
L*<2A><00>+<2B><>CJIC^JW^^_^^<00>FISR F   )04;C!G"JKW!["^!e# K SWf-.? <00>G*<12><><00>Y<12><><00><><00>L*+<12><><00><><00>*<2A><00>Y<EFBFBD> <00><><00><>W3<12><>;W<>L3<12>+<2B>R<>VW<56>69I&<04>-<00><00><00>
I<> <00> . )*+,-+0.192:3F5 %<00><00>: SWG-.b <00>.*<2A><00>Y<EFBFBD> <09><00><>W*<01><00>3<12><>;W<>L3<12>+<2B>R<>VW<56> I O<00>OI  ;<=> ?!@-B ! SW.-.B J**<2A>&<01><00>Y*<01><00><><00><01>ĵh<>
HW -.<00> <01>
<00>*Ƕ<00>Yɸ<00><><00>L+̶<00>M,Ҹ<00>,<2C><00>:6<04>ٙ<04>ٹ<00><00><03>A<04><00>:<06><00><00>-<06><00>:<07><00>:6 <08><00><><00><12><><00><><00><><EFBFBD><04>><1D>!3<02>W*<2A><08>L3
+<2B>R<>VW<56><00><00>IG<06>@<00><00><00><00>3<EFBFBD><00><00><01>I<> <00> B]^_a'f@gfbvg}h~ae<00>f<00>g<00>j<00>k<00>m f
f [ c  \!'W[$Zx<00><00> SW<00>-. <00>A<00>Y*<2A><12><> L<>%<1A> *+<2B>)W<> *+<2B>,W3.<2E>;W<>L30+<2B>R<>VW<56>/2I<04> <05> I<> <00> & stuv x&z2{3|@~  XY3 SWA-.v <00>H<00>Y*<2A><12><> L<>%<1A> *+<2B>)W<> *+<2B>,W*<2A>6<>93;<3B>;W<>L3=+<2B>R<>VW<56>69I<04> <05>I<> <00> *
<02><02><02><02> <02>&<02>-<02>9<02>:<02>G<02> 'XY: SWH-.rs <00>E<>6@*<2A>9eB!*<2A>,<2C><>23<>?Y<>@B<>F!<21>IK<>F*<2A>,<2C>IM<>F<>P<><00>W<03><04><01>C <02><02> <02><02>A<02>C<02> AQ* :R*E-.y <00>,<00>YT<>WL*+<2B>[3]<5D>;W<>L3_+<2B>R<>VW<56>I ]I<> <00> <02><02> <02><02><02><02>+<02>  XY SW,-.L <02>aL3M*c<><00>Ye<><00><>gN<67>%<1A>7<>iY+,<2C>k<03>n:<03>r<03>u<03>x<01>|<03>-<04><01><>%<1A><12><01>Y*<2A>+<2B><01><><0E><01>Y*<2A><1D><01>:<01><>k<><01><01><>k<><01><01><><01><04><01><10><><01><03><01><03><01><02><01><><01>Y<01><><00>:*<03><05><01>*<04><01>3<01><>;W<00>%<18><*<2A>&<01><01>Y*<01><01><><00><01><00>W<EFBFBD>!:3<01><><00>W<EFBFBD>L3<01>+<2B>R<>VW+<2B><><00><00><00>I<00><00>IU<06>V<01><01>gJ<01><>w<01><01>g<01><01>I<> I<><01><01>g<01><01> <00>'<02><02><02><02><02>"<02>1<02>7<02>=<02>C<02>J<02>P<02>V<02>^<02>m<02>x<02>z<02>|<02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02><00><02> <02><02> \ 1%<01><01><00> SW<00><01><01><00><01><01><00><01><01>z<00><01><01><00>Fb<01><00>SW-.< }*<2A><01><><04>*<2A>N<>L3<01>+<2B>R<>VW<56> IGI  <02><02> <02><02><02><02>  SW-.<01><01> /*<2A>ӱ <01> <01>.<01>  <0C><01>Y<01>ڳޱZ <00><00><01> <01><01><01> <01><01><01><01><01><01><01><01> " <00><00><01><01><01><00>j<00>PSMAP
EnhancedKeepAliveService.kt
Kotlin
*S Kotlin
*F
+ 1 EnhancedKeepAliveService.kt
com/hikoncont/service/GuardKeepAliveService
+ 2 _Collections.kt
kotlin/collections/CollectionsKt___CollectionsKt
*L
1#1,869:1
1747#2,3:870
*S KotlinDebug
*F
+ 1 EnhancedKeepAliveService.kt
com/hikoncont/service/GuardKeepAliveService
*L
609#1:870,3
*E
<00><01><01>[I<01>I<01>I<01><01>I<01><01>I<01><01>[s<01><01>[&s.s<01>ss)s<01>s<01>s<01>s7sesfs#s$s<00>s<00>s<00>s?s<01>s<00>s<s]s<01>sXsYs/s_sEs<01>sZs\sbsvsysrsLssBs<01>s<01> [s