In Android SDK, the @hide
annotation is only used when building the stub version of android.jar
. At compile-time symbols are imported from this stub jar and only non-hidden symbols are available. At runtime in device or emulator the symbols are there in the platform libraries and they can be seen for example via reflection.
If your SDK only consists of a jar file or something similar, there really isn't a way to hide symbols in it.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…