Commit Graph

1761 Commits

Author SHA1 Message Date
Comnir
f10060fe8f fix: when decoding with UTF-8 fails, create a new buffer for the retry with CESU-8.
If the decoding fails and there are UTF-8 decodable bytes before the bytes that couldn't be decoded, then the read index of the original buffer is incremented and those bytes will be missing from the decode result.
Now we create a new buffer and the decoding will start at the original start offset.

issue #2546
2021-04-03 13:28:22 +03:00
Connor Tumbleson
0a7b843786
fix: cleanup StringBlock from unused methods 2021-03-28 17:26:35 -04:00
Connor Tumbleson
d2288ef921
fix: remove unused smali builder methods 2021-03-28 17:26:19 -04:00
Connor Tumbleson
bddf575318
fix: remove no longer used resources on ResPackage 2021-03-28 17:26:08 -04:00
Connor Tumbleson
618d9b23e5
fix: remove unused methods from Res* data classes 2021-03-28 17:25:37 -04:00
Connor Tumbleson
edb4fc86cc
fix: remove unused methods/properties from AXmlParser 2021-03-28 17:25:16 -04:00
Connor Tumbleson
64eda064eb
fix: remove unused util methods/exceptions 2021-03-28 17:10:52 -04:00
Connor Tumbleson
3d3dd07cf2
fix: remove unused exceptions 2021-03-28 17:10:01 -04:00
Connor Tumbleson
8a23d0dbc1
refactor: correct spelling mistake of aapt 2021-03-28 10:54:31 -04:00
Connor Tumbleson
6a7f606410
Merge pull request #2545 from iBotPeaches/issue2543
test: add testcase for static field values
2021-03-28 07:56:59 -04:00
Connor Tumbleson
468ead8f10
test: add testcase for static field values 2021-03-28 07:44:16 -04:00
Connor Tumbleson
280a3d8c01
docs: remove roadmap item (library) - completed (/) 2021-03-12 19:17:27 -05:00
Connor Tumbleson
f4c2f9bc50
fix: remove declared exceptions that aren't thrown 2021-03-12 07:47:19 -05:00
Connor Tumbleson
4d11c13e44
refactor: remove duplicated code 2021-03-12 07:37:47 -05:00
Connor Tumbleson
bb2acaf3e1
Merge pull request #2530 from iBotPeaches/maven-publish
Maven Publish
2021-03-11 06:42:32 -05:00
Connor Tumbleson
c5b5d6903f
build: publish sub-projects to satisfy non-fatjar 2021-03-10 07:10:16 -05:00
Connor Tumbleson
a91bf12272
build: properly release snapshots vs releases 2021-03-08 20:10:11 -05:00
Connor Tumbleson
561f84c569
fix: prevent magic text 2021-03-07 15:15:25 -05:00
Connor Tumbleson
a20d63dd14
docs: add information for publishing 2021-03-07 15:12:27 -05:00
Connor Tumbleson
447ba50332
refactor: drop author tags and support javadocs 2021-03-07 15:06:45 -05:00
Connor Tumbleson
36b59a0553
feat: support for maven publish (snapshot/release) 2021-03-07 15:04:16 -05:00
Connor Tumbleson
619c17bdb0
build: ignore gradle.properties 2021-03-07 15:03:11 -05:00
Connor Tumbleson
323935b995
Merge pull request #2527 from LoyieKing/master
support lib/specType out-of-order reading - fix "Invalid chunk type: expected=0x00000200, got=0x00000203"
2021-03-06 09:44:11 -05:00
wangyilei
e0e6cfd03f only log string decode warning when failed 2021-03-06 22:00:54 +08:00
wangyilei
5a66b2c42d support lib/specType chunk out-of-order reading 2021-03-06 21:58:23 +08:00
Connor Tumbleson
a8f87a8b16
Merge pull request #2528 from iBotPeaches/action-fix
build: support actions on prs or pushes
2021-03-06 06:44:12 -05:00
Connor Tumbleson
7e73115971
build: support actions on prs or pushes 2021-03-06 06:43:37 -05:00
Connor Tumbleson
0ddd7de104
docs: correct intellij link in readme 2021-03-04 07:22:17 -05:00
Connor Tumbleson
e9a897febe
build: syntax updates for gradle files 2021-03-04 07:21:22 -05:00
Connor Tumbleson
45c91ef5bf
fix: remove www from buymeacoffee 2021-03-04 07:06:52 -05:00
Connor Tumbleson
202d4ca216
docs: overhaul readme links 2021-03-04 07:06:27 -05:00
Connor Tumbleson
5596cf6efe
docs: drop intellij logo 2021-03-04 07:06:18 -05:00
Connor Tumbleson
d83f2a2c80
build: add funding url 2021-03-04 06:56:50 -05:00
Connor Tumbleson
4514f4fc33
Merge pull request #2519 from iBotPeaches/smali-2.5.0
Baksmali/Smali 2.5.2
2021-03-03 17:27:55 -05:00
Connor Tumbleson
bdc31763e8
build: update to smali/baksmali 2.5.2, drop dexlib2 2021-03-03 06:23:45 -05:00
Connor Tumbleson
ccc0ab72de
build: update to smali/baksmali/dexlib2 2.5.1 2021-03-02 20:20:31 -05:00
Connor Tumbleson
bcd66dc333
fix: add dexlib2 since no longer "api" dependency (compile) 2021-03-02 07:28:04 -05:00
Connor Tumbleson
71f547cfec
build: update to smali/baksmali 2.5.0 2021-03-02 07:03:58 -05:00
Connor Tumbleson
d2f240c0e5
build: update to gradle 6.8.3 2021-03-02 07:03:46 -05:00
Connor Tumbleson
e25c0f1217
docs: roadmap request #2474 2020-12-11 12:19:40 -05:00
Connor Tumbleson
98aa7acb22 fix: skip files that violate safe filepath 2020-12-11 07:10:05 -05:00
Connor Tumbleson
49a167540f fix: cut down length of zipslip exceptions 2020-12-11 07:10:05 -05:00
Connor Tumbleson
b17832f0e1
style: add missing license headers 2020-12-11 07:07:54 -05:00
Connor Tumbleson
83c754cb3f
Merge branch 'Comnir-2299-use-CESU-8-instead-of-UTF-8' 2020-12-11 07:06:34 -05:00
Connor Tumbleson
785cb4f89d
test: add High Brightness Symbol into tests for feature test against #2299 2020-12-11 07:06:14 -05:00
Comnir
961f1f94f6 Rename variables in tests. 2020-12-10 14:44:01 +02:00
Comnir
f1321c8437 fix issue 2299: Unicode code points higher than 0x10000 decoding fails.
- Use CESU8 decoder instead of UTF-8 in StringBlock.
- DEX uses Modified UTF-8 which is close to CESU-8 (https://source.android.com/devices/tech/dalvik/dex-format#mutf-8)
2020-12-10 12:38:55 +02:00
Comnir
201b5976bb Add tests for StringBlock#decodeString with failing tests for code points above 0x10FFFF (issue 2299). 2020-12-10 12:29:34 +02:00
Connor Tumbleson
6d4e503b16 fix: rename duplicate attributes to not start with numeric 2020-12-04 06:14:27 -05:00
Connor Tumbleson
1452014992 fix: early return if no files + enhanced for loop 2020-12-03 06:35:47 -05:00