0

I know that the SystemProperties class won't be exported as part of the public SDK because of the @hide annotation.

What I've done:

  1. Added the android:sharedUserId="android.uid.system" attributes on the AndroidManifest.xml file

    manifest

  2. The application is signed with platform key

    mk file

and still get a compiling error...

note: I've already checked out the where is os systemproperties question.

But this solution doesn't work for me.

ziLk
  • 3,120
  • 21
  • 45

1 Answers1

0

I've just added the below line on my Android.mk file, and it works

# Can only use LOCAL_PRIVATE_PLATFORM_APIS on Android 9+
ifneq (0, $(shell expr $(PLATFORM_VERSION) \>= 9))
LOCAL_PRIVATE_PLATFORM_APIS := true
endif
ziLk
  • 3,120
  • 21
  • 45