I'm developing an Android app which gets signed by the platform certificate. For testing purposes I'm using the Android Emulator with x86_64 AOSP image, API Level 27, Android 8.1.
The app wants to use a function that has been declared as hidden with the @hide annotation. As expected Android Studio 3.0 can't resolve the symbol.
I could use reflection, but since my app has the rights to use the internal functions, I try to avoid reflection.
How can I make Android Studio aware of the hidden functions ? I searched on SO and google, but couldn't find a suitable solution, only old ones (two years and older) that doesn't work (anymore). oat2dex method that doesn't work