content: package top.niunaijun.blackbox.proxy;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.util.Log;
  
  import androidx.annotation.Nullable;
  
  import top.niunaijun.blackbox.BlackBoxCore;
  import top.niunaijun.blackbox.app.BActivityThread;
  import top.niunaijun.blackbox.fake.hook.HookManager;
  import top.niunaijun.blackbox.fake.service.HCallbackProxy;
  import top.niunaijun.blackbox.proxy.record.ProxyActivityRecord;
  import top.niunaijun.blackbox.proxy.record.ProxyPendingRecord;
  import top.niunaijun.blackbox.utils.Slog;
  
  /**
   * updated by alex5402 on 3/28/21.
   * * ∧＿∧
   * (`･ω･∥
   * 丶　つ０
   * しーＪ
   * TFNQw5HgWUS33Ke1eNmSFTwoQySGU7XNsK (USDT TRC20)
   */
  public class ProxyActivity extends Activity {
      public static final String TAG = "ProxyActivity";
  
      //因为HCallbackProxy已经hook了消息循环拦截了创建消息，所有一般情况下这里不会调用，可能是为了稳定性(消息循环hook失败就会走到这里)
      @Override
      protected void onCreate(@Nullable Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          Log.d(TAG, "onCreate");
          finish();
  
          HookManager.get().checkEnv(HCallbackProxy.class);
  //        HookManager.get().checkEnv(AppInstrumentation.class);
  
          ProxyActivityRecord record = ProxyActivityRecord.create(getIntent());
          if (record.mTarget != null) {
              record.mTarget.setExtrasClassLoader(BlackBoxCore.getApplication().getClassLoader());
              startActivity(record.mTarget);
              return;
          }
      }
  
      public static class P0 extends ProxyActivity {
  
      }
  
      public static class P1 extends ProxyActivity {
  
      }
  
      public static class P2 extends ProxyActivity {
  
      }
  
      public static class P3 extends ProxyActivity {
  
      }
  
      public static class P4 extends ProxyActivity {
  
      }
  
      public static class P5 extends ProxyActivity {
  
      }
  
      public static class P6 extends ProxyActivity {
  
      }
  
      public static class P7 extends ProxyActivity {
  
      }
  
      public static class P8 extends ProxyActivity {
  
      }
  
      public static class P9 extends ProxyActivity {
  
      }
  
      public static class P10 extends ProxyActivity {
  
      }
  
      public static class P11 extends ProxyActivity {
  
      }
  
      public static class P12 extends ProxyActivity {
  
      }
  
      public static class P13 extends ProxyActivity {
  
      }
  
      public static class P14 extends ProxyActivity {
  
      }
  
      public static class P15 extends ProxyActivity {
  
      }
  
      public static class P16 extends ProxyActivity {
  
      }
  
      public static class P17 extends ProxyActivity {
  
      }
  
      public static class P18 extends ProxyActivity {
  
      }
  
      public static class P19 extends ProxyActivity {
  
      }
  
      public static class P20 extends ProxyActivity {
  
      }
  
      public static class P21 extends ProxyActivity {
  
      }
  
      public static class P22 extends ProxyActivity {
  
      }
  
      public static class P23 extends ProxyActivity {
  
      }
  
      public static class P24 extends ProxyActivity {
  
      }
  
      public static class P25 extends ProxyActivity {
  
      }
  
      public static class P26 extends ProxyActivity {
  
      }
  
      public static class P27 extends ProxyActivity {
  
      }
  
      public static class P28 extends ProxyActivity {
  
      }
  
      public static class P29 extends ProxyActivity {
  
      }
  
      public static class P30 extends ProxyActivity {
  
      }
  
      public static class P31 extends ProxyActivity {
  
      }
  
      public static class P32 extends ProxyActivity {
  
      }
  
      public static class P33 extends ProxyActivity {
  
      }
  
      public static class P34 extends ProxyActivity {
  
      }
  
      public static class P35 extends ProxyActivity {
  
      }
  
      public static class P36 extends ProxyActivity {
  
      }
  
      public static class P37 extends ProxyActivity {
  
      }
  
      public static class P38 extends ProxyActivity {
  
      }
  
      public static class P39 extends ProxyActivity {
  
      }
  
      public static class P40 extends ProxyActivity {
  
      }
  
      public static class P41 extends ProxyActivity {
  
      }
  
      public static class P42 extends ProxyActivity {
  
      }
  
      public static class P43 extends ProxyActivity {
  
      }
  
      public static class P44 extends ProxyActivity {
  
      }
  
      public static class P45 extends ProxyActivity {
  
      }
  
      public static class P46 extends ProxyActivity {
  
      }
  
      public static class P47 extends ProxyActivity {
  
      }
  
      public static class P48 extends ProxyActivity {
  
      }
  
      public static class P49 extends ProxyActivity {
  
      }
  }
  