简体   繁体   中英

How to randomly rename all files in android studio?

I just recently extracted source code of an apk from playstore. When I opened the source code all the function names, variable names were renamed with some random numbers and letters.

So does playstore does that automatically when we upload our apk? If not then how can I do that in android studio?

thats Proguard feature, check this doc: Shrink, obfuscate, and optimize your app

when you use it then your code will be obfuscated for harder reverse engineering (besides some optimisation). you have to enable this feature in your gradle file ( minifyEnabled ), some same how to declare under link above

So does playstore does that automatically when we upload our apk?
-no it was done by some other application

the application you unpacked was previously obfuscated.
you can read more about this here:

https://en.wikipedia.org/wiki/Obfuscation_(software)

Java obfuscator

https://www.preemptive.com/products/jsdefender?gclid=EAIaIQobChMI4bXBqZn48AIVbxitBh1OyQnqEAAYASAAEgJ_XPD_BwE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM