Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make generated jar files read-only after creation #181

Merged
merged 3 commits into from
Jul 11, 2022
Merged

Make generated jar files read-only after creation #181

merged 3 commits into from
Jul 11, 2022

Conversation

topjohnwu
Copy link
Contributor

In a future version of Android(^1), dynamically loaded dex files cannot be writable to the loading process. This affects Mockito in instrumentation tests, as dex bytecode is generated and loaded at runtime.

I also took the liberty and updated the gradle project and dependencies. Please let me know if this is unwanted and I can remove those changes.

^1: https://android-review.googlesource.com/q/topic:ro_java_dcl

Copy link
Contributor

@cckroets cckroets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

Would you like a Dexmaker release with this change, or do you anticipate more incoming changes for the next Android OS release?

gradle/wrapper/gradle-wrapper.properties Show resolved Hide resolved
topjohnwu added 3 commits July 8, 2022 02:34
In a future version of Android(^1), dynamically loaded dex files cannot
be writable to the loading process. This affects Mockito in instrumentation
tests, as dex bytecode is generated and loaded at runtime.

^1: https://android-review.googlesource.com/q/topic:ro_java_dcl
@topjohnwu
Copy link
Contributor Author

@cckroets this is the only change currently planned that would affect dexmaker (at least for now). A release would be appreciated!

@topjohnwu topjohnwu requested a review from cckroets July 8, 2022 09:36
@cckroets cckroets merged commit cf2d1e7 into linkedin:main Jul 11, 2022
0xf104a pushed a commit to MilkyWayOS/android_frameworks_base that referenced this pull request Feb 24, 2024
To fix dynamically loaded dex files cannot be writable issue when
target 34.

Upstream: linkedin/dexmaker#181
Platform: https://r.android.com/2128792

Bug: 260441791
Test: Gradle Sync
Test: Run Tests
Change-Id: I532af3c8ac4198a94779b592075295e212ffe77f
elpaablo pushed a commit to elpaablo/frameworks_base that referenced this pull request Oct 19, 2024
To fix dynamically loaded dex files cannot be writable issue when
target 34.

Upstream: linkedin/dexmaker#181
Platform: https://r.android.com/2128792

Bug: 260441791
Test: Gradle Sync
Test: Run Tests
Change-Id: I532af3c8ac4198a94779b592075295e212ffe77f
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants