Home » Android » What is the purpose of HACKED-META-INF folder in Android app APK

What is the purpose of HACKED-META-INF folder in Android app APK

Posted by: admin April 23, 2020 Leave a comment

Questions:

Recently I noticed that APKs generated in Android Studio (v. 2.3.3) have different inner structure than before. What caught my attention was especially the folder named HACKED-META-INF. Does anybody know what is the purpose of this folder? It contains following files:

HACKED-META-INF/services/io.grpc.ManagedChannelProvider

HACKED-META-INF/services/io.grpc.NameResolverProvider

Recently I updated to build tools to 26.0.2 and compileSdkVersion to 26. Could that be related?

How to&Answers:

https://nakedsecurity.sophos.com/2013/07/10/anatomy-of-a-security-hole-googles-android-master-key-debacle-explained/

“The theory is that if you tamper with either the META-INF files or the app itself, for example to replace files in the package with malware-infected imposters, Android will block the package to protect you from catastrophe.”

hope this helps 🙂