Skip to content

Avoid BuildConfig

relan requested to merge relan/privileged-extension:no-buildconfig into master

BuildConfig class is generated by Gradle. Since we also support building via Android.mk, we should not use Gradle-specific constructs.

Context.getPackageName() returns application ID despite the name, see https://developer.android.com/studio/build/application-id:

The application ID used to be directly tied to your code's package name; so some Android APIs use the term "package name" in their method names and parameter names, but this is actually your application ID. For example, the Context.getPackageName() method returns your application ID.

Merge request reports