developer tip

Android APK 파일의 내용을 보는 방법은 무엇입니까?

optionbox 2020. 8. 19. 07:58
반응형

Android APK 파일의 내용을 보는 방법은 무엇입니까?


.apk 파일의 내용을 추출하고 보는 방법이 있습니까?


실제로 apk 파일은 zip 아카이브 일 뿐이므로 파일 이름을 theappname.apk.zipzip 유틸리티 (예 : 7zip)로 압축을 풀 수 있습니다.

androidmanifest.xml파일과 자원이 추출되고 소스 코드가 패키지에없는 반면에 볼 수 있습니다 - 단지 컴파일 덱스 파일 ( "달빅 실행")


현재 Android Studio와 함께 제공됩니다. 그냥 갈 ... APK를 분석 / 빌드 후 APK를 선택합니다 :)

여기에 이미지 설명 입력


압축을 풀면 리소스가 표시되지만는 AndroidManifest.xml인코딩됩니다. apktool다른 많은 것들 중에서도이 파일을 디코딩 할 수 있습니다.

응용 프로그램 App.apk을 폴더로 디코딩하려면 App다음을 실행하십시오.

apktool decode App.apk App

apktool 공식 Android SDK에는 포함되어 있지 않지만 대부분의 패킷 저장소를 사용하여 사용할 수 있습니다.


zzos있습니다 . (전체 공개 : 내가 썼습니다). dex 부분이 아닌 실제 리소스 만 디 컴파일합니다 ( 내가 작성하지 않은 baksmali 는 해당 부분을 처리하는 훌륭한 작업을 수행합니다).

Zzos는 apktool보다 훨씬 덜 알려져 있지만 더 잘 처리되는 APK가 있습니다 (그 반대도 마찬가지입니다. 나중에 더 자세히 설명합니다). 대부분 사용자 지정 리소스 유형 (수정자가 아님)을 포함하는 APK는 마지막으로 확인했을 때 apktool에서 처리하지 않았으며 zzos에서 처리합니다. zzos가 더 잘 처리하는 이스케이프 사례도 있습니다.

부정적인 측면에서 zzos (현재 버전)를 설치하려면 몇 가지 지원 도구가 필요합니다. (Java로 작성된 APKTool과는 반대로) perl로 작성되었으며 실제 디 컴파일에 aapt를 사용합니다. 또한 아직 속성 리소스를 디 컴파일하지 않습니다 (APKTool이 수행함).

이름의 의미는 한 글자 아래로 이동 한 Android의 리소스 컴파일러 인 "aapt"입니다.


다양한 도구가 있습니다.

Apktool

Android Multitool

APK 뷰어

ApkShellext


apk 파일을 여는 4 가지 방법 :

1. Android Studio에서 APK 파일 열기 (사진, 자바 코드 및 크기 분석) 가장 좋은 방법

여기에 이미지 설명 입력

2. 응용 프로그램 winRar, 7zip 등으로 열기 (사진 및 ...)

3. 웹 사이트 javadecompilers 사용 (사진 및 자바 코드 용)

4. APK 도구 사용 (사진 및 자바 코드 용)


There is a online decompiler for android apks

http://www.decompileandroid.com/

Upload apk from local machine

Wait some moments

download source code in zip format.

Unzip it, you can view all resources correctly but all java files are not correctly decompiled.

For full detail visit this answer


unzip my.apk

This does the trick from the Linux command line.


Depending on your reason for wanting to extract the APK, APK Analyzer might be sufficient. It shows you directories, and file sizes. It also shows method counts grouped by package that you can drill down into.

APK Analyzer is built into Android Studio. You can access it from the top menu, Build -> Analyze APK.


In case of Hybrid apps developed using cordova and angularjs, you can:

1) Rename the .apk file to .zip
2) Extract/Unzip the contents
3) In the assets folder you will get the www folder


You can also use Jadx - https://github.com/skylot/jadx. I have used all the tools mentioned in this page and found that Jadx works the best. The manifest file and other class files are converted to readable format as much as possible by this tool.

PS - http://www.javadecompilers.com/apk also uses the jadx decompiler to do the same work online. Simpler if you want to unarchive a single apk.

Cheers!


You can also see the contents of an APK file within the Android device itself, which helps a lot in debugging.

앱의 매니페스트를 포함한 모든 파일은 루팅이 필요없이 이메일, 클라우드 등을 사용하여보고 공유 할 수 있습니다. 앱은 다음에서 사용할 수 있습니다.

https://play.google.com/store/apps/details?id=com.dasmic.android.apkpeek

면책 조항 : 나는이 앱의 작성자입니다.


APK 스캐너는 PC에 APK 파일의 정보를 표시 할 수 있습니다.
또한 안드로이드 장치에서 apk 파일을 가져올 수 있습니다.
그리고 다른 도구에 연결할 수 있습니다. (JADX-GUI, JD-GUI ...)

여기에 이미지 설명 입력

참고 URL : https://stackoverflow.com/questions/3599210/how-to-view-the-contents-of-an-android-apk-file

반응형