Questions tagged [android-obfuscation]

This is for obfuscation of code in the context of Android apps. So, this may include java obfuscation, e.g., renaming of classes, method names, strings, so that their meanings are not clearly seen to a reverse engineer.

This is for obfuscation of code in the context of Android apps. So, this may include java obfuscation, e.g., renaming of classes, method names, strings, so that their meanings are not clearly seen to a reverse engineer.

It may be related to what Proguard, Dexguard, etc., can help to do, or open source obfuscation projects like obfuscapk. It may even be for questions on obfuscation attempts that do not involve use of such 3rd party assistants.

25 questions
0
votes
0 answers

How can the Android OS identify AndroidX fragments if they are obfuscated?

I am doing a reverse-engineering work related to Android fragments. I found out in many apks (decompiled with apktool, dexToJar, ...), the androidx.fragment.app.Fragment class is obfuscated. In most of the cases the class members are obfuscated,…
0
votes
1 answer

how to apply proguard at particular part of code or class or Activity in android

we are enabling proguard in android project for all packages regularly. so, we are using keep functionality and exclude some particular classes or packages or Library aar's from obfuscate(proguard) in Android. Here my exact query, Instead of…
harikrishnan
  • 1,985
  • 4
  • 32
  • 63
0
votes
0 answers

Xamarin.Android app crashes after running Obfuscar (Visual Studio for Mac)

I've got a basic Xamarin.Android project setup with Obfuscar configured The obfuscar.xml:
Jay Sidri
  • 6,271
  • 3
  • 43
  • 62
0
votes
1 answer

What does --keepattributes SourceFile in Proguard do?

I'm trying to figure out how Firebase will do the mapping from obfuscated code to real code and according to their docs, I need to add this line - -keepattributes SourceFile,LineNumberTable This is supposed to keep the file names and line numbers…
vepzfe
  • 4,217
  • 5
  • 26
  • 46
0
votes
1 answer

Kotlin - Firestore toObject method not working as intended

I am using Firestore for my Android project and I am using the following code to convert the fetched document to a custom data class val userData = user.toObject(UserData::class.java)!! Now this line works perfectly when no code obfuscation is…
0
votes
0 answers

How do you use proguard just to replace class names and variables?

I had a horrible time with proguard and ultimately decided not to use it to remove code. Instead I intent to use it just to replace the variable and classes name just so that my code is not all available with a simple JDAX decompile. Anyone knows…
JoanaBrew
  • 11
  • 4
0
votes
0 answers

android lock main thread after obfuscating app

I created my app and the app is working correctly in debug mode.after obfuscating a part of application that get codes list and shows in recyclerview not working properly in this fragment I am going to get the codes list-codes is my parcelable…
john
  • 345
  • 1
  • 4
  • 20
0
votes
1 answer

proguard: Unable to disable obfuscation to one specific class

I have the following for debug purposes: debug { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } I have a class MyClass, and I'm using Gson to convert…
Amos
  • 1,321
  • 2
  • 23
  • 44
0
votes
0 answers

Android Proguard - obfuscate method arguments and local variables

I'm using PROGUARD in my application. when I decompile the APK, I still see the original names of the method parameters and also the local variables that were declared inside the method body. I was trying to use this rule: -keepattributes…
Elior
  • 3,178
  • 6
  • 37
  • 67
-1
votes
1 answer

How to obfuscate cordova plugin java code

I have been working on ionic 3 mobile applications. I obfuscate typescript codes using ionic-voricles-obfuscate plugin (https://www.npmjs.com/package/ionic-voricles-obfuscate) While reverse-engineering the APK using Apktool , Android library classes…
1
2