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?