[WARN] W/com.appc.test: Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
[WARN] W/com.appc.test: Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
[DEBUG] EGL_emulation: eglMakeCurrent: 0xd5a1aa80: ver 3 0 (tinfo 0xbc082370)
[INFO] chatty: uid=10133(com.appc.test) RenderThread identical 3 lines
[DEBUG] EGL_emulation: eglMakeCurrent: 0xd5a1aa80: ver 3 0 (tinfo 0xbc082370)
[WARN] W/com.appc.test: Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
[DEBUG] EGL_emulation: eglMakeCurrent: 0xd5a1aa80: ver 3 0 (tinfo 0xbc082370)
[INFO] chatty: uid=10133(com.appc.test) RenderThread identical 22 lines
[DEBUG] EGL_emulation: eglMakeCurrent: 0xd5a1aa80: ver 3 0 (tinfo 0xbc082370)
[WARN] W/com.appc.test: Accessing hidden field Ljava/nio/Buffer;->position:I (greylist, JNI, allowed)
[WARN] W/com.appc.test: Accessing hidden field Ljava/nio/Buffer;->limit:I (greylist, JNI, allowed)
[WARN] W/com.appc.test: Accessing hidden field Ljava/nio/Buffer;->_elementSizeShift:I (greylist, JNI, allowed)
[DEBUG] EGL_emulation: eglMakeCurrent: 0xd5a1aa80: ver 3 0 (tinfo 0xbc082370)
[INFO] chatty: uid=10133(com.appc.test) RenderThread identical 154 lines
[DEBUG] EGL_emulation: eglMakeCurrent: 0xd5a1aa80: ver 3 0 (tinfo 0xbc082370)
[WARN] W/com.appc.test: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
Reproducible on our app (available to the team) using latest 9.0.0 master.
[~hknoechel], us migrating the Google Support libraries to AndroidX got rid of a bunch of these. In my test app, I'm seeing the following...
The only private method Titanium is accessing is
getCompatibilityInfo()
here... [TiPlatformHelper.java](https://github.com/appcelerator/titanium_mobile/blob/c27b90877bf41311d74339905aff240b46febe20/android/titanium/src/java/org/appcelerator/titanium/util/TiPlatformHelper.java#L67) Many of the hidden API warnings are coming from Google's AndroidX libraries. There is an open ticket on Google's end here... https://issuetracker.google.com/issues/123699881#comment12 AndroidX is calling hiddencomputeFitSystemWindows()
andmakeOptionalFitsSystemWindows()
methods via reflection here... [AndroidX ViewUtils.java](https://github.com/aosp-mirror/platform_frameworks_support/blob/a9ac247af2afd4115c3eb6d16c05bc92737d6305/v7/appcompat/src/main/java/androidx/appcompat/widget/ViewUtils.java) AndroidX is calling hiddengetTextDirectionHeuristic()
method via reflection here... [AndroidX AppCompatTextViewAutoSizeHelper.java](https://github.com/aosp-mirror/platform_frameworks_support/blob/a9ac247af2afd4115c3eb6d16c05bc92737d6305/v7/appcompat/src/main/java/androidx/appcompat/widget/AppCompatTextViewAutoSizeHelper.java#L712) AndroidX is calling hiddengetOpticalInsets()
method via reflection here... [AndroidX DrawableUtils.java](https://github.com/aosp-mirror/platform_frameworks_support/blob/a9ac247af2afd4115c3eb6d16c05bc92737d6305/v7/appcompat/src/main/java/androidx/appcompat/widget/DrawableUtils.java#L76) The following hidden API warnings are coming from Google'sWebView
. We can't do anything about it. https://stackoverflow.com/questions/51988819/android-p-api-28-what-does-the-strictmode-policy-violation-smartselectionevThe following
sun/misc/Unsafe
hidden API warnings you are seeing comes from the AndroidX version of Google Maps. I can see it in their code here... [AndroidX CodedOutputStream.java](https://github.com/aosp-mirror/platform_external_protobuf/blob/f86b2973c1f2994a879544c60304f2a34b34e92c/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java)*Bottom Line:* The only hidden API warning message Titanium is guilty of is the below, which comes from our [TiPlatformHelper.java](https://github.com/appcelerator/titanium_mobile/blob/c27b90877bf41311d74339905aff240b46febe20/android/titanium/src/java/org/appcelerator/titanium/util/TiPlatformHelper.java#L67) source file.
I'm not sure what we can do about the warnings coming from Google's end... other than to hope they'll resolve them in their newest libraries.
Thanks! This can be resolved as wont fix then (and maybe fix the one issue).
I wrote up Titanium's hidden API issue here: [TIMOB-27743] Thanks for bringing this up [~hknoechel]. I'm sure this will come up as a tech-support issue later, so, this ticket will be a good reference.