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
9
votes
1 answer

What symbols to upload to Play Store with Flutter and native obfuscation?

For an Android Flutter app, you can obfuscate the Dart code and the native Android code. Obfuscate Dart code with the flags --obfuscate --split-debug-info=/path/to/place/symbols while building aab, apk, ipa or ios. You can obfuscate the Android…
Bugzilla
  • 1,856
  • 1
  • 10
  • 16
3
votes
1 answer

Obfuscate an EXPO file

First time I use Expo (react native app) to deploy an app into Googgle play store. Expo Generates an aab -file that I can upload to the store. But it seems like it is not obfuscated. Reading through the Expo documents I don't get my head around how…
Jonas
  • 43
  • 6
3
votes
2 answers

How to secure data model classes from reverse engineering when using R8 and Proguard in Android?

Right now, on reverse engineering the android application APK file, I can see the data model classes in the plain text as I have used @keep annotation. Without the annotation, the app is crashing as these files are being removed by the R8. How do I…
Harshal Kshatriya
  • 5,630
  • 11
  • 44
  • 60
2
votes
1 answer

Undo from enable minify after release the app

At some point of devlopment I changed minifyEnabled to true without any rules in proguard then release the app to google play with v.1.4.0. many of bugs occured to uses when updated the app, I knew the problem because the obfuscated of classes. and…
2
votes
1 answer

Why fragments and views doesn't obfuscate?

Although Fragment and View classes aren't android MainComponent and no reference of them in AndroidManifest.xml, but classes that extends Fragment or View don't change their name/package when minify is enabled and Proguard is working well. Why they…
beigirad
  • 4,986
  • 2
  • 29
  • 52
2
votes
2 answers

Retrofit2 not working when enabling Proguard

I have an application which uses retrofit to fetch logo form an API. When i don't obfuscate and shrink my code, everything works fine. But when i enable it, the API call stops working. I don't get any crash or error messages, i just don't get any…
Mervin Hemaraju
  • 1,921
  • 2
  • 22
  • 71
1
vote
1 answer

What do I use now that Obfuscated is not working in Kotlin or Java Code?

I try to obfuscate my project so that I enable a few settings in Gradle. then I try to reverse the code but not fully obfuscate I refer many sites I did not find an exact solution yet I try to decompile very famous apps like any google app &…
Bolt UIX
  • 5,988
  • 6
  • 31
  • 58
1
vote
1 answer

@Keep annotation and keep rules are not working for interfaces nested inside classes or other interfaces by enabling Android R8 obfuscation

I am using Android R8 obfuscation in my Android library. After including the AAR file in the application module of the library's client project, I am getting compile time errors for interfaces that are declared inside the class or another…
gsv
  • 11
  • 3
1
vote
1 answer

Proguard/R8 do not rename classes used in XML layouts

I need to obfuscate the whole code of an Android library except some classes/methods which will be used by developers. I succeed except that some classes invoked in my XML layouts have not been renamed and I struggle to find an option in R8/Proguard…
Doc_1faux
  • 141
  • 5
  • 15
1
vote
1 answer

Does adding "minifyEnabled true" and 'proguard-android-optimize.txt' obfuscate the sqlite database and make it incompatible with previous versions?

I'm submitting an update for my android app and all previous versions did not have these two settings. The database remains the same, but if the names are obfuscated, I'm worried that the user's data will be lost. In other words, I'm worried that…
0
votes
0 answers

Issues with Proguard and obfuscation of Javascript code

In my android app I have a part that is a webview that send the application some javascript code. And the obfuscation when I build for release is not listening to me :( My proguard is looking like this: -keepclassmembers class * { …
lagos
  • 1,968
  • 3
  • 17
  • 26
0
votes
1 answer

Proguard rules for Sealed classes

I have a sealed class as below. sealed class Fruits(private val category: String) { object Apple : Fruits("APPLE") class Banana : Fruits("BANANA) } It gets obfuscated when minifyEnabled is true and debuggable is enabled like…
Navinpd
  • 772
  • 7
  • 15
0
votes
0 answers

android. Proguard can cause incorrect check

When enable proguard then checks in my code are not working correctly. For example I have class: class SomeData implements Parcelable From kotlin code I check whether the passed object is SomeData (data is SomeData) . But the check returns me…
testivanivan
  • 967
  • 13
  • 36
0
votes
0 answers

Obfuscate package names in Android with Proguard from React Native

I want to obfuscate the native android code with the ProGuard and I created a set of rules for that as it follows: -flattenpackagehierarchy -overloadaggressively -repackageclasses '' -allowaccessmodification -keep class…
poPaTheGuru
  • 1,009
  • 1
  • 13
  • 35
0
votes
3 answers

How can I disable renaming names of fragments classes during obfuscation?

Which ProGuard/R8 rules to use? Currently only Activites aren't renamed I need to keep names of Fragment for screens logging as well but the code itself in fragments should be obfuscated
user924
  • 8,146
  • 7
  • 57
  • 139
1
2