Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Hooking mainAcitvity doesn't work on some apps

Đang mở
#116 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
android, java, javascript
Lĩnh vực
mobile-dev, tooling

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện script trên ứng dụng Android được báo cáo và kiểm tra stack tại frida/node_modules/frida-java/lib/env.js:222. Theo dõi cách MainActivity được khởi tạo và thread nào gọi nó, sau đó so sánh hành vi đó với lỗi Looper được báo cáo. Hoàn tất khi xác định được đây là lỗi của Frida hay một ngữ cảnh khởi tạo không hợp lệ, đồng thời ghi lại hành vi được hỗ trợ hoặc thay đổi cần thiết.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I used the following js code to create a new instance of MainActivity
setTimeout(function () { Java.perform(function () { var myClass = Java.use("com.example.app.MainActivity"); var myInstance = myClass.$new(); send("here"); var res = myInstance.func("Parameter"); send("result ==> "+res); }); }, 0);

Which apparently gave me the following error
{u'columnNumber': 1, u'description': u"Error: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()", u'fileName': u'frida/node_modules/frida-java/lib/env.js', u'lineNumber': 222, u'type': u'error', u'stack': u"Error: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()\n at frida/node_modules/frida-java/lib/env.js:222\n at MainActivity (input:1)\n at apply (native)\n at r (frida/node_modules/frida-java/lib/class-factory.js:940)\n at [anon] (script1.js:5)\n at frida/node_modules/frida-java/lib/vm.js:39\n at y (frida/node_modules/frida-java/index.js:325)\n at frida/node_modules/frida-java/index.js:297\n at frida/node_modules/frida-java/lib/vm.js:39\n at java.js:2208\n [...]"}

I don't understand why this is not working, it should be able to do it, shouldn't it?

Ngôn ngữ chính
Python
Star
873
Fork
173
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của frida/frida-python

Tất cả issue của frida/frida-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.