吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 562|回复: 5
收起左侧

[Android CTF] 2025解题领红包 Android初级

  [复制链接]
cakeuser 发表于 2025-2-13 10:23
本帖最后由 Coxxs 于 2025-2-13 11:27 编辑
@Override // androidx.fragment.app.Fragment    
public void onViewCreated(View view, Bundle savedInstanceState) {
  Intrinsics.checkNotNullParameter(view, "view");
  super.onViewCreated(view, savedInstanceState);
  final ImageView imageView = (ImageView) view.findViewById(C1347R.id.imageView);
  final GestureDetector gestureDetector = new GestureDetector(requireContext(), new GestureDetector.SimpleOnGestureListener() { // from class: com.zj.wuaipojie2025.FoldFragment2$onViewCreated$gestureDetector$1            @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener            public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {                long j;
      int i;
      int i2;
      int i3;
      float f;
      float f2;
      float f3;
      float f4;
      float f5;
      float f6;
      float f7;
      float f8;
      Intrinsics.checkNotNullParameter(e2, "e2");
      if (e1 == null) {
        return true;
      }
      long currentTimeMillis = System.currentTimeMillis();
      j = FoldFragment2.this.l;
      long j2 = currentTimeMillis - j;
      i = FoldFragment2.this.g;
      if (j2 < i) {
        return true;
      }
      float x = e2.getX() - e1.getX();
      i2 = FoldFragment2.this.f;
      if (x >= (-i2)) {
        i3 = FoldFragment2.this.f;
        if (x > i3) {
          FoldFragment2 foldFragment2 = FoldFragment2.this;
          f = foldFragment2.a;
          f2 = FoldFragment2.this.r;
          foldFragment2.a = RangesKt.coerceAtLeast(f - f2, 0.0 f);
        }
      } else {
        FoldFragment2 foldFragment22 = FoldFragment2.this;
        f6 = foldFragment22.a;
        f7 = FoldFragment2.this.r;
        float f9 = f6 + f7;
        f8 = FoldFragment2.this.b;
        foldFragment22.a = RangesKt.coerceAtMost(f9, f8);
      }
      ImageView imageView2 = imageView;
      f3 = FoldFragment2.this.a;
      imageView2.setRotationY(f3);
      f4 = FoldFragment2.this.a;
      f5 = FoldFragment2.this.b;
      if (f4 >= f5) {
        SPU spu = SPU.INSTANCE;
        Context requireContext = FoldFragment2.this.requireContext();
        Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext(...)");
        spu.m136s(requireContext, 1, "2hyWtSLN69+QWLHQ");
      }
      FoldFragment2.this.l = currentTimeMillis;
      return true;
    }
  });
/* JADX INFO: Access modifiers changed from: private */
public static final void startLongPressTimer$lambda$1(FoldFragment2 this$0) {
  Intrinsics.checkNotNullParameter(this$0, "this$0");
  this$0.un = true;
  SPU spu = SPU.INSTANCE;
  Context requireContext = this$0.requireContext();
  Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext(...)");
  spu.m136s(requireContext, 2, "hjyaQ8jNSdp+mZic7Kdtyw==");
  this$0.getParentFragmentManager().beginTransaction().replace(C1347R.id.fold2, new FoldFragment1()).addToBackStack(null).commit();
  Toast.makeText(this$0.requireContext(), C1349TO.INSTANCE.m142db("cYoiUd2BfEDc/V9e4LdciBz9Mzwzs3yr0kgrLA=="), 0).show();
}


把2hyWtSLN69+QWLHQ
hjyaQ8jNSdp+mZic7Kdtyw==
分别拷贝覆盖掉cYoiUd2BfEDc/V9e4LdciBz9Mzwzs3yr0kgrLA==
再把MainActivity中的viewPager2.setUserInputEnabled(false)改为true
打包成apk,安装。。。得到flag{ 和 xnkl2025!}两个字符串,合起来就是Flag

免费评分

参与人数 1吾爱币 +7 热心值 +1 收起 理由
正己 + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

cattie 发表于 2025-2-13 10:24
建议用markdown重新排一下版,把代码用代码块框一下
现在的格式混乱了。
 楼主| cakeuser 发表于 2025-2-13 10:29
uLY3M 发表于 2025-2-13 10:49
wcnjeusr 发表于 2025-2-13 11:36
改完setUserInputEnabled,看逻辑是写配置文件,直接去preference文件就拿到了。
Coxxs 发表于 2025-2-13 11:40
Markdown 可以用 ``` 符号把代码框选起来,格式就不会混乱了。已经辅助编辑了,只修正了格式,未作其他改动。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-3-19 00:25

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表