Multiple ZIP entries with the same name: AndroidManifest.xml///.xml

Đang mở
#169 3 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, java
Lĩnh vực
mobile-dev

Hướng nghiên cứu

Reproduce the reported workflow with apktool, APKEditor v1.4.2, and Android SDK apksigner on Windows 11. Inspect the resulting APK's ZIP entries, especially AndroidManifest.xml///.xml, and use the apksigner stack trace as a starting point. Done looks like the APK no longer has duplicate entry names and apksigner can sign it.

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

Mô tả

Describe the bug
Apksigner.jar can't sign the apk protected by apkeditor.

To Reproduce
Steps to reproduce the behavior:

  1. Used version v1.4.2
  2. Operating system Windows 11

Log/Stacktrace

[01:19] Exception in thread "main" com.android.apksig.apk.ApkFormatException: Multiple ZIP entries with the same name: AndroidManifest.xml///.xml
[01:19] 	at com.android.apksig.ApkSigner.parseZipCentralDirectory(ApkSigner.java:939)
[01:19] 	at com.android.apksig.ApkSigner.sign(ApkSigner.java:282)
[01:19] 	at com.android.apksig.ApkSigner.sign(ApkSigner.java:237)
[01:19] 	at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:425)
[01:19] 	at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:94)

Used apk file
https://apkcombo.app/duel-links/jp.konami.duellinks/download/apk

Additional context
I used apktool to decompile/compile apk, protect apk using apkeditor and sign using apksigner from Android SDK. I know apkeditor support recompiling but I want to keep using apktool to maintain compatibility with my scripts

Ngôn ngữ chính
Java
Star
2.3k
Fork
417
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 REAndroid/APKEditor

Tất cả issue của REAndroid/APKEditor

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.