Let signapk access internal APIs under OpenJDK 9 toolchain
signapk relies on internal APIs sun.security.{pkcs,x509}, for example in com.android.apksig.internal.apk.v1.V1SchemeSigner. This breaks at signapk runtime under OpenJDK 9 because those packages are not exported by the java.base module. This CL unbreaks signapk by allowing it to access these internal packages. In the long term, signapk should migrate away from these internal APIs (bug 37137869). Test: make ANDROID_COMPILE_WITH_JACK=false checkbuild tests \ && make checkbuild tests (with OpenJDK 8u45 toolchain on the PATH) Test: make EXPERIMENTAL_USE_OPENJDK9=true \ ANDROID_COMPILE_WITH_JACK=false checkbuild (with jdk 9-ea+170 toolchain on the PATH) Bug: 37137869 Bug: 38177295 Change-Id: I64cab83e6eb7b135cf2ad7b523736cb409aaae02
Loading
Please register or sign in to comment