René's URL Explorer Experiment


Title: fix(DexFactory): register injected proxy dex with a single class loader by edusperoni · Pull Request #1968 · NativeScript/android · GitHub

Open Graph Title: fix(DexFactory): register injected proxy dex with a single class loader by edusperoni · Pull Request #1968 · NativeScript/android

X Title: fix(DexFactory): register injected proxy dex with a single class loader by edusperoni · Pull Request #1968 · NativeScript/android

Description: Injecting a generated proxy into the app's PathClassLoader by opening it through a temporary DexClassLoader and splicing its dex element left the same DexFile claimed by two class loaders. ART rejects this unconditionally ("Attempt to register dex file ... with multiple class loaders"), but the second registration only materializes on non-debuggable builds, so release apps crashed on the first runtime-generated proxy while debug builds worked. Build the dex element through the target class loader itself instead, so the DexFile only ever has one owner: on API 24+ via BaseDexClassLoader.addDexPath, below that via DexPathList's static makePathElements/makeDexElements factories spliced into dexElements (the MultiDex technique). If injection fails, fall back to the isolated DexClassLoader path (pre-#1951 behavior) instead of failing the subsequent loadClass with ClassNotFoundException. Adds tests covering the original FragmentFactory scenario: proxies generated at runtime (hidden from the static binding generator) must be resolvable via Class.forName through the app's class loader. Fixes #1962 Refs #1951 Summary by CodeRabbit Tests Added a startup-loaded test suite that verifies discovery and reflective instantiation of runtime-generated classes. Refactor Improved dynamic class-loading behavior: injection now reports success/failure and falls back to a safer loading path when injection isn’t possible.

Open Graph Description: Injecting a generated proxy into the app's PathClassLoader by opening it through a temporary DexClassLoader and splicing its dex element left the same DexFile claimed by two class loaders. ART ...

X Description: Injecting a generated proxy into the app's PathClassLoader by opening it through a temporary DexClassLoader and splicing its dex element left the same DexFile claimed by two class loaders. ...

Opengraph URL: https://github.com/NativeScript/android/pull/1968

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4a938dc3-f8f7-af8e-cb52-234358333c4f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA842:143885:12EBDE6:1B15F77:6A63426C
html-safe-nonce3a9f99ed42a365fbaaead1cb36f3560c44e7973f4d4961e991d34c95f65420c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODQyOjE0Mzg4NToxMkVCREU2OjFCMTVGNzc6NkE2MzQyNkMiLCJ2aXNpdG9yX2lkIjoiMjcxMjI1OTY5NDQ1MTQ0MjI4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacaa1d7a82156c21198d0ec8c5c0f7eadaaaa1ddbd7610a5cd6074bb8ed7efc7be
hovercard-subject-tagpull_request:3849737034
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/android/pull/1968/files
twitter:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
og:image:altInjecting a generated proxy into the app's PathClassLoader by opening it through a temporary DexClassLoader and splicing its dex element left the same DexFile claimed by two class loaders. ART ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release990295d92a4cc7b63fbbd83a046217cd7d77d49c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/android/pull/1968/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F1968%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F1968%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/pull/1968/files
Reloadhttps://github.com/NativeScript/android/pull/1968/files
Reloadhttps://github.com/NativeScript/android/pull/1968/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1968/files
NativeScript https://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Please reload this pagehttps://github.com/NativeScript/android/pull/1968/files
Notifications https://github.com/login?return_to=%2FNativeScript%2Fandroid
Fork 144 https://github.com/login?return_to=%2FNativeScript%2Fandroid
Star 562 https://github.com/login?return_to=%2FNativeScript%2Fandroid
Code https://github.com/NativeScript/android
Issues 98 https://github.com/NativeScript/android/issues
Pull requests 13 https://github.com/NativeScript/android/pulls
Actions https://github.com/NativeScript/android/actions
Projects https://github.com/NativeScript/android/projects
Wiki https://github.com/NativeScript/android/wiki
Security and quality 0 https://github.com/NativeScript/android/security
Insights https://github.com/NativeScript/android/pulse
Code https://github.com/NativeScript/android
Issues https://github.com/NativeScript/android/issues
Pull requests https://github.com/NativeScript/android/pulls
Actions https://github.com/NativeScript/android/actions
Projects https://github.com/NativeScript/android/projects
Wiki https://github.com/NativeScript/android/wiki
Security and quality https://github.com/NativeScript/android/security
Insights https://github.com/NativeScript/android/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://github.com/NathanWalker
mainhttps://github.com/NativeScript/android/tree/main
fix/prod-inject-dexhttps://github.com/NativeScript/android/tree/fix/prod-inject-dex
Conversation 5 https://github.com/NativeScript/android/pull/1968
Commits 1 https://github.com/NativeScript/android/pull/1968/commits
Checks 7 https://github.com/NativeScript/android/pull/1968/checks
Files changed https://github.com/NativeScript/android/pull/1968/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1968/files
fix(DexFactory): register injected proxy dex with a single class loader https://github.com/NativeScript/android/pull/1968/files#top
Show all changes 1 commit https://github.com/NativeScript/android/pull/1968/files
56a78de fix(DexFactory): register injected proxy dex with a single class loader edusperoni Jun 11, 2026 https://github.com/NativeScript/android/pull/1968/commits/56a78def813730045fdd476977dde5a4ad5ff584
Clear filters https://github.com/NativeScript/android/pull/1968/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1968/files
Please reload this pagehttps://github.com/NativeScript/android/pull/1968/files
mainpage.js https://github.com/NativeScript/android/pull/1968/files#diff-b7fd6c22bfc29391e9e3ed935d6c6194b1ad595c7592690229952b5ddb99c0d5
testClassForNameDiscovery.js https://github.com/NativeScript/android/pull/1968/files#diff-4eb3143997333416a487579d44a0f33ca2c0f4568be6326578ac36d034cbbde7
DexFactory.java https://github.com/NativeScript/android/pull/1968/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
test-app/app/src/main/assets/app/mainpage.jshttps://github.com/NativeScript/android/pull/1968/files#diff-b7fd6c22bfc29391e9e3ed935d6c6194b1ad595c7592690229952b5ddb99c0d5
View file https://github.com/NativeScript/android/blob/56a78def813730045fdd476977dde5a4ad5ff584/test-app/app/src/main/assets/app/mainpage.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/1968/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/1968/files#diff-b7fd6c22bfc29391e9e3ed935d6c6194b1ad595c7592690229952b5ddb99c0d5
https://github.com/NativeScript/android/pull/1968/files#diff-b7fd6c22bfc29391e9e3ed935d6c6194b1ad595c7592690229952b5ddb99c0d5
test-app/app/src/main/assets/app/tests/testClassForNameDiscovery.jshttps://github.com/NativeScript/android/pull/1968/files#diff-4eb3143997333416a487579d44a0f33ca2c0f4568be6326578ac36d034cbbde7
View file https://github.com/NativeScript/android/blob/56a78def813730045fdd476977dde5a4ad5ff584/test-app/app/src/main/assets/app/tests/testClassForNameDiscovery.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/1968/{{ revealButtonHref }}
test-app/runtime/src/main/java/com/tns/DexFactory.javahttps://github.com/NativeScript/android/pull/1968/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
View file https://github.com/NativeScript/android/blob/56a78def813730045fdd476977dde5a4ad5ff584/test-app/runtime/src/main/java/com/tns/DexFactory.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/1968/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/1968/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/1968/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/1968/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/1968/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
https://github.com/NativeScript/android/pull/1968/files#diff-7f8ef213b415ed89638d410cdc1813a95a7aafb2b6ae962e4862099ae1a8f95d
Please reload this pagehttps://github.com/NativeScript/android/pull/1968/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.