Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8292211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:23:47+00:00 2026-06-08T13:23:47+00:00

I have an obfuscated application in Monodroid and my problem is that the mscorlib

  • 0

I have an obfuscated application in Monodroid and my problem is that the mscorlib assembly included in apk doesn’t implements the method System.String.Intern() and my application doesn’t work.

My obfuscator calls this method to obfuscate strings and I get a MissingMethodException. This method doesn’t exists in the assembly included in apk but strangely it does exists in myproject/obj/release/assemblies/mscorlib.dll

These files are quite different. If I put the file myproject/obj/release/assemblies/mscorlib.dll in apk it works but this solution is a bad solution because the app fails in other point causing TypeLoadException because of the change of the dll.

Can anyone tell me why monodroid uses the mscorlib reduced file and an alternative solution?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:23:49+00:00Added an answer on June 8, 2026 at 1:23 pm

    Can anyone tell me why monodroid uses the mscorlib reduced file and an alternative solution?

    The smaller file is used to reduce application size by linking the assemblies. Linking can be brittle, as the linker doesn’t trace runtime behavior. For example, using Type.GetType("Foo") will not preserve the type Foo, and thus the linker may remove it if it’s not otherwise referenced.

    obj\Release\assemblies\mscorlib.dll is the source assembly. obj\Release\android/assets/mscorlib.dll is the linked (smaller) assembly, which is included in the .apk.

    If your obfuscator is directly using String.Intern(), this may suggest a bug in the linker. However, if your obfuscator is using Reflection (e.g. Type.GetMethod()), then this would be expected behavior. To fix it, you explicitly use String.Intern() within a falseflag block so that the method is preserved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .NET application. When I obfuscated the assembly, namespace, class name and
I have a closed source assembly (isn't obfuscated or anything like that), but I
I have a free application that has a number of paid-for upgrade applications you
I have a WPF application that we have integrated credit card processing into. We're
I have a Delphi (5) application that uses a log-in screen (standard user name/password)
I have obfuscated my android application using Proguard on Eclipse, now I have to
Problem Background I am currently working on a camel based ETL application that processes
I have an ALPHA application which allows you grab an obfuscated font from and
I am struggling with this problem since last one week. I have obfuscated exe
I have written a winform application that connects to a database on our corporate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.