--Hi,
I'm trying to leverage https://developer.android.com/distribute/best-practices/develop/restrictions-non-sdk-interfaces for my Java library.I'm able to generate the Java library which makes use of @SystemApi, @TestApi annotations.I see that the APIs from the Java library generated are listed with blacklist/whitelist/greylist in hiddenapi-flags.csv appropriately.However when i import this Java library (JAR) file to to a debug test app (Android studio project), i do have access to all the APIs and i was able to use set/get APIs from the debug test app even when the APIs are blacklisted.I was expecting Android runtime to intercept and reject the method specially for the blacklisted APIs as described in the below linkAm i missing any step here ? when do we expect the exceptions to be thrown if an app attempts to use non-SDK interfaces.My expectation here is that for my Java library if an API is listed under blacklist category, exception should be thrown.Isn't the expectation correct ?
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/db9c7fc0-822b-4ce1-9f53-df15ecd04927%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to android-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/4c06696a-b4a1-4836-8c93-67041b8dba05%40googlegroups.com.