apkanalyzer
Π‘ ΠΏΠΎΠΌΠΎΡΡΡ ΡΡΠΎΠ³ΠΎ ΠΈΠ½ΡΡΡΡΠΌΠ΅Π½ΡΡ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΡΠΎΡΠΌΠΎΡΡΠ΅ΡΡ ΡΠ°Π·Π½ΠΈΡΡ ΠΌΠ΅ΠΆΠ΄Ρ Π΄Π²ΡΠΌΡ apk-ΡΠ°ΠΉΠ»Π°ΠΌΠΈ, ΠΏΠΎΠ»ΡΡΠΈΡΡ ΠΎΠ±ΡΡΡ ΠΈΠ½ΡΠΎΡΠΌΠ°ΡΠΈΡ ΠΎ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ.
ΠΡΠΈΠΌΠ΅Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ:
Π€ΡΠ»Π» Π΄ΠΎΠΊ: https://developer.android.com/studio/command-line/apkanalyzer
ΠΠ±ΡΠΈΠΉ ΡΠΈΠ½ΡΠ°ΠΊΡΠΈΡ:
apkanalyzer [global-options] subject verb [options] apk-file [apk-file2]
global-options:
-h, --human-readable - Prints sizes in human-readable format.
subject: - Ρ ΡΠ΅ΠΌ Π²Π·Π°ΠΈΠΌΠΎΠ΄Π΅ΠΉΡΡΠ²ΡΠ΅ΠΌ
apk - Analyze APK file attributes such as application ID, version code, and version name
files - Analyze the files inside the APK file
manifest - Analyze the contents of the manifest inside the APK file
dex - Analyze the DEX files inside the APK file
resources - View text, image, and string resources
verb - ΡΡΠΎ Ρ
ΠΎΡΠΈΠΌ ΡΠ·Π½Π°ΡΡ ΠΎ subject (ΡΠΌ Π½ΠΈΠΆΠ΅)
ΠΡΠΈΠΌΠ΅ΡΡ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΡ:
apk summary apk-file - ΡΠ·Π½Π°ΡΡ appId, Π²Π΅ΡΡΠΈΡ
apk features [--not-required] apk-file - Ρ ΡΠ΅ΠΌ Ρ
ΠΎΡΠ΅Ρ Π²Π·Π°ΠΈΠΌΠΎΠ΄Π΅ΠΉΡΡΠ²ΠΎΠ²Π°ΡΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅
apk compare [options] apk1 apk2 - ΠΏΠΎΠΊΠ°Π·Π°ΡΡ ΡΠ°ΠΉΠ»Ρ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΎΡΠ»ΠΈΡΠ°ΡΡΡΡ
options:
--different-only: Print directories and files with differences.
--files-only: Do not print directory entries.
--patch-size: Show an estimate of the file-by-file patch instead of a raw difference.
files list apk-file - ΡΠΏΠΈΡΠΎΠΊ ΡΠ°ΠΉΠ»ΠΎΠ² Π²Π½ΡΡΡΠΈ apk
files cat --file <path, ex: /AndroidManifest.xml> apk-file - ΠΏΡΠΎΡΠΈΡΠ°ΡΡ ΡΠ°ΠΉΠ»
manifest print apk-file
manifest application-id apk-file
manifest version-name apk-file
manifest version-code apk-file
manifest min-sdk apk-file
manifest target-sdk apk-file
manifest permissions apk-file
manifest debuggable apk-file
dex list apk-file
dex packages [option1 option2 ...] apk-file - Π²ΡΠ²Π΅ΡΡΠΈ ΠΊΠ»Π°ΡΡΡ, ΠΎΠ±ΡΡΠ²Π»Π΅Π½Π½ΡΠ΅ Π² Π±ΠΈΠ½Π°ΡΠ΅
In the output, P, C, M, and F indicate packages, classes, methods, and fields, respectively.
And x, k, r, and d indicate removed, kept, referenced and defined nodes, respectively.
Add the following options to refine the output:
--defined-only: Include only classes defined in the APK in the output.
--files: Specify the DEX file names to include. Default: all DEX files.
--proguard-folder file: Specify the Proguard output folder to search for mappings.
--proguard-mappings file: Specify the Proguard mappings file.
--proguard-seeds file: Specify the Proguard seeds file.
--proguard-usages file: Specify the Proguard usages file.
--show-removed: Show classes and members that were removed by Proguard.
Last updated
Was this helpful?