Commit Graph

2338 Commits

Author SHA1 Message Date
Away
276ee537e1
fix: remove unused ExcHandlers blocks (PR #2086)
* Removing unused ExcHandlers blocks

* Improving removing unused ExcHandlers blocks

* Removing gradlew of the commit

* Adding test 2 for UnreachableCatch

* Update jadx-core/src/test/java/jadx/tests/integration/trycatch/TestUnreachableCatch2.java

---------

Co-authored-by: Away-pp <vladimir@DESKTOP-KESF23K>
Co-authored-by: skylot <118523+skylot@users.noreply.github.com>
2024-02-04 18:02:34 +00:00
Andrei Kudryavtsev
7e628ad1a1
fix(gui): detecting tab click with mousePressed instead of mouseClicked (PR #2097) 2024-02-04 17:36:02 +00:00
Sebastian Gallese
0a40b53412
docs: update Build Status shield in README (PR #2095) 2024-02-01 17:20:02 +00:00
dependabot[bot]
682f90de2f
build(deps): bump gradle/gradle-build-action from 2 to 3 (PR #2094)
* build(deps): bump gradle/gradle-build-action from 2 to 3

Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action) from 2 to 3.
- [Release notes](https://github.com/gradle/gradle-build-action/releases)
- [Commits](https://github.com/gradle/gradle-build-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: gradle/gradle-build-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* migrate to gradle/actions/setup-gradle@v3

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: skylot <118523+skylot@users.noreply.github.com>
2024-01-29 20:00:31 +00:00
Skylot
1a07ab8ab1
chore: update dependencies 2024-01-25 20:10:39 +00:00
Skylot
d86449a8ea
fix(res): ignore resource table entries with '../' in name 2024-01-25 20:09:21 +00:00
Skylot
75d2e540aa
refactor: add new task executor, remove task barrier (#1879) 2024-01-25 19:45:23 +00:00
bagipro
e73612b4d2
feat(res): disable XML pretty print (PR #2087)
Co-authored-by: bagipro <bugi@bugi>
2024-01-22 15:01:38 +00:00
Away
a19aec9d9f
fix: use correct order in removeUnreachableBlocks (PR #2085)
* Fixing wrong order in removeUnreachableBlocks
* Removing dead code in TestTernary4 test
* Do not clear instructions in detach blocks method
2024-01-21 16:05:02 +00:00
Skylot
61be1d8b0a
fix(gui): allow to reset variable name, fix renames for inner classes 2024-01-18 20:36:51 +00:00
Skylot
4483533417
fix(gui): highlight word even if cursor at the end of that word (#2083) 2024-01-18 19:40:53 +00:00
Skylot
fb703cd856
fix(gui): scroll to first error on jadx script check/run 2024-01-18 18:17:53 +00:00
Skylot
c0ff7572ac
fix(gui): round file size to block size for cache usage calculation 2024-01-17 18:25:35 +00:00
Skylot
8e7ffc8ddb
fix: support switch over enum by ordinal 2024-01-16 20:40:51 +00:00
Skylot
f994abee21
build: add Java 21 to Gitlab CI 2024-01-15 19:34:29 +00:00
Skylot
6f1dfb6848
chore: update dependencies 2024-01-15 22:18:45 +03:00
Skylot
306bc7abc3
feat(java-input): support jsr/ret opcodes (#2039) 2024-01-15 22:18:44 +03:00
Skylot
8ed48183c7
feat(plugins): add API for search/use other plugins 2024-01-15 22:18:44 +03:00
Skylot
fdc3fe1a8d
fix(java-input): use correct registers for dup2_x* opcodes 2024-01-15 22:18:44 +03:00
Away
2805770510
fix: removeUnreachable not searching in all blocks (PR #2082)
Co-authored-by: Away-pp <vladimir@DESKTOP-KESF23K>
2024-01-14 17:07:39 +00:00
Skylot
03052baabe
chore: update dependencies 2024-01-11 19:10:44 +00:00
Iscle
23e643c686
fix(gui): attempt to resolve field rename issues with shortcut (#1440)(PR#2075)
This is an attempt to fix the issues that sometimes arise when renaming functions or variables using the "n" shortcut as stated in issue #1440.

The reasoning behind the change: The instance creation of the RenameDialog was somehow affecting the UI thread and not allowing for the key release event to be dispatched. By running everything inside the invokeLater block, this might get fixed as it will execute after all previous tasks are finished.
We now also only show the dialog after EVERYTHING is set up, not before.
2024-01-05 21:42:06 +03:00
Iscle
faeae086d1
feat(gui): improve search bar behavior when using key bindings (PR #2074)
Before, the search bar would toggle, which was quite annoying. Now, it replicates IntelliJ's search bar behaviour.

1.1. If the user has selected text, use that as the search text
1.2. Otherwise, use the previous search text (or empty if none)
2. Select all text in the search bar and give it focus
2024-01-05 21:31:34 +03:00
Iscle
38e64fafbd
feat: add an option to generate kotlin code for xposed (PR #2070)
* feat: add an option to generate kotlin code for xposed

A new setting was added, bumping the settings version to 19.

* refactor: applied spotless

* refactor: fixed formatting

* refactor: fixed formatting once again
2024-01-05 21:24:08 +03:00
Skylot
e723c245ee
fix: use correct type printer in json output mode (#2053) 2023-12-23 18:46:39 +00:00
Skylot
3e57dacfd3
chore: update dependencies 2023-12-21 19:00:33 +00:00
Iscle
f5accc8464
feat: add support for xapk files (#1597)(PR #2064)
* feat: annotate JadxPlugin with NotNull

Allows for better Kotlin support

* feat: add support for custom resources loader

* feat: add support for xapk resources loading

* fix: rename "decode" to "load"

* refactor: annotate JadxCodeInput with NotNull

* feat: add support for xapk code loading

* feat: add xapk support to file filter

* fix code formatting

* revert NotNull annotation

* several improvements

* refactor: fix typo

---------

Co-authored-by: Skylot <skylot@gmail.com>
2023-12-21 18:46:40 +00:00
Skylot
238fe17df0
fix(gui): add hint for class renaming (#1590) 2023-12-18 18:14:56 +00:00
Skylot
295befbaaa
fix: check class alias for Kotlin Intrinsics search (#1590) 2023-12-18 18:14:56 +00:00
dependabot[bot]
5f20033f18
build(deps): bump actions/upload-artifact from 3 to 4 (#2060)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 17:59:11 +00:00
dependabot[bot]
5f376c6e21
build(deps): bump github/codeql-action from 2 to 3 (#2061)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-18 17:57:37 +00:00
Skylot
68a99c5410
chore: update dependencies 2023-12-16 19:20:45 +03:00
Skylot
8db70ee7a5
fix(gui): resolve reset and commit issues for disk code cache 2023-12-16 19:20:43 +03:00
LanBaiCode
b6155afd32
fix(gui): use correct type for generic params in Xposed snippet (PR #2057)
* Fix: Resolved an issue with incorrectly generated xposedMethodSnippet when the parameter type is generic.
Add: Introduced xposedGenerateFieldSnippet.

* fix code format

* Fixed: Resolved the issue where Xposed code generation was incorrect when dealing with generic parameters and alias fields.

---------

Co-authored-by: skylot <118523+skylot@users.noreply.github.com>
2023-12-11 17:14:10 +00:00
Away-pp
d5bf9f20a6
fix: IndexOutOfBoundsException with negative register index (PR #2056)
Co-authored-by: Away-pp <awaytesting1@gmail.com>
2023-12-10 18:51:25 +00:00
Skylot
2d5c0fda4a
fix: prefer early return for 'if-else-if' block (#2052) 2023-12-05 21:08:22 +00:00
Skylot
5d56001826
build(deps): migrate to Google fork of Smali 2023-12-04 20:42:09 +00:00
Skylot
2de91f9a3a
chore: update gradle and dependencies 2023-12-04 23:18:51 +03:00
dependabot[bot]
e06e6bd483
build(deps): bump actions/setup-java from 3 to 4 (#2051)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 19:55:32 +00:00
nitram84
1e57e85382
fix: gradle export for APKs without strings.xml (PR #2050) 2023-12-03 17:38:46 +00:00
LanBaiCode
ca03406a3d
fix: correct type for generic params in Xposed snippet, add fields support (PR #2047)
* Fix: Resolved an issue with incorrectly generated xposedMethodSnippet when the parameter type is generic.
Add: Introduced xposedGenerateFieldSnippet.

* fix code format

---------

Co-authored-by: skylot <118523+skylot@users.noreply.github.com>
2023-11-25 17:55:53 +00:00
Skylot
2d28da9b0e
feat: allow to set zip max entries count using env var (#1751) 2023-11-16 20:48:08 +03:00
Skylot
edb1717969
fix: support variables reuse for enum restore (#2042) 2023-11-16 20:48:07 +03:00
Skylot
1b51234edc
chore: update dependencies 2023-11-16 20:48:07 +03:00
nitram84
e6d896d91e
fix(plugin): check for valid identifiers from Kotlin metadata (PR #2041) 2023-11-10 22:29:54 +00:00
Skylot
a989fa7e64
refactor(deobf): split deobfuscation conditions (#2040) 2023-11-05 20:22:15 +00:00
nitram84
f7002c7fad
feat(deobf): implement a whitelist for deobfuscation (PR #2040) 2023-11-05 20:21:41 +00:00
Skylot
41d986bdca
feat(script): use cache for compiled scripts 2023-10-27 23:35:03 +03:00
Skylot
192a8116f1
chore: update FlatLaf 2023-10-27 23:35:01 +03:00
Markslin
173d85bf84
fix(res): resolve resourceIds reuse issue (PR #2037)
Co-authored-by: mingyinsun <mingyinsun@tencent.com>
2023-10-24 18:47:17 +01:00