My intention is to instantiate a Notification.TvExtender() which is annotated as @SystemApi as you can see in Android_SDK\sources\android-30\android\app\Notification.java 
According to this medium article, I would need to modify the Android.mk file. Since I don't have this file in my project and I also don't use NDK, how can I create this file?
I manually created the file in a jni/ folder, but it won't appear in the project. What do I need to do?
To use @SystemApi, you need to build you apk using full AOSP sources.
To do this, you can follow documentation here : https://source.android.com/setup/start?hl=en
You need also to create Android.mk or Android.bp to build your application using private api. (ex : https://android.googlesource.com/platform/packages/apps/TvSettings/+/refs/heads/pie-release/Settings/)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With