想将android.content.res.TypedArray#getDrawable hook住,但是编译报错

Đang mở
#1,329 2 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
Lĩnh vực
mobile

Hướng nghiên cứu

The issue concerns hooking android.content.res.TypedArray#getDrawable and getDrawableForDensity, but does not identify a source file or test. Start by checking the project’s hook entry points and how it handles Android APIs annotated as hidden; determine whether either method can be hooked and explain the compilation error. Done means a reproducible answer or fix, but the issue has had no recent response.

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

Mô tả

请教下,我最开始hook的是 public Drawable getDrawableForDensity(@StyleableRes int index, int density) ,报错说找不到,我发现有hide注解,然后我看getDrawable没有hide注解,想转调下,但是也报错找不到,想问下,这个能被hook吗

11

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

Chuẩn bị môi trường

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 Tencent/Shadow

Tất cả issue của Tencent/Shadow

Issue tương tự

Thêm issue về Java

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.