Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 486
Lubos Avatar asked Oct 15 '17 11:10

Lubos


People also ask

What does an Android APK file contains?

It contains all the resources an app needs to run, including its Java code, native libraries, assets, manifest file, resource files, etc. The APK file format was created, so developers could deliver software to devices in a single compressed file. All the user-oriented programs on smart Android devices use APK files.

What is the structure of an APK?

To make an APK file, a program for Android is first compiled using a tool such as Android Studio or Visual Studio and then all of its parts are packaged into one container file. An APK file contains all of a program's code (such as . dex files), resources, assets, certificates, and manifest file.

What is APK binary?

An . apk file is an Android binary. APK stands for Android Package Kit (also Android Application Package) and is the file format that Android uses to distribute and install apps. It contains all the elements that an app needs to install correctly on your device.


1 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 :)

like image 98
MaterBranch Avatar answered Oct 21 '22 03:10

MaterBranch