get_class_source
Fetch the Java source of a specific class from decompiled Android apps, optionally with line numbers for placing comments; Kotlin metadata is stripped by default.
Instructions
Fetch the Java source of a specific class.
Set with_line_numbers=True to get every line prefixed with its 1-based line number. Those are the numbers add_comment takes as its 'line' argument, so use this before placing a line comment instead of counting lines yourself.
Kotlin compiler metadata (@Metadata / @DebugMetadata) is stripped by default, which is where a large part of a Kotlin dump goes; the line numbers stay the same, so add_comment keeps working. Pass slim=False for a raw, unmodified dump.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slim | No | ||
| class_name | Yes | ||
| with_line_numbers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||