List of Bugs Android Oreo on HiKey Board

On August 25, 2017 I have downloaded and compiled the AOSP sources as explained on

The included kernel version is
adb shell uname -a yields
Linux localhost 4.9.39-g5bc470574a05 #1 SMP PREEMPT Wed Jul 26 17:36:38 UTC 2017 aarch64

There have been a number of bugs in Android O I was hoping would be fixed before an official release of Android 8.0 on hikey board, but the bugs persist. I’m opening this thread in the hope that we can fix these bugs or someone point me to the official hikey board bug tracker.

  1. Bug: Runtimeexpception when I run dpm set-device-owner
adb root
adb shell dpm set-device-owner
java.lang.RuntimeException: Can't set package ComponentInfo{} as device owner.
        at Method)

On the DB410c on Android 5.1.1 and Android 6 the same procedure works. Unfortunately, the error message is not very helpful. Has anyone tried to run the hikey board in kiosk mode?

  1. the second bug concerns the virtual keyboard.
    When you click on the ?123 button on the bottom left, the soft keyboard app crashes
W/InputMethodManager: IME died:
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(
at android.view.inputmethod.InputMethodManager.updateSelection(
at android.widget.Editor.sendUpdateSelection(
at android.widget.Editor.finishBatchEdit(
at android.widget.Editor.endBatchEdit(
at android.widget.TextView.endBatchEdit(
at android.view.inputmethod.BaseInputConnection.finishComposingText(
at android.view.inputmethod.BaseInputConnection.closeConnection(
at android.view.inputmethod.InputMethodManager$ControlledInputConnectionWrapper.deactivate(
at android.view.inputmethod.InputMethodManager.startInputInner(
at android.view.inputmethod.InputMethodManager$H.handleMessage(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)
  1. the third bug concerns USB
    I have connected a USB touch device to the hikey board. However, if I don’t click anything after reboot, the USB connection seems to get lost and subsequent touch events are ignored.
    Unplugging the USB cable helps, but is not feasible for production use.

Where should I report these issues and is it realistic that these issues might get resolved in the upcoming month?

thanks for reporting, but its better to report it at where they can be tracked properly.

1 Like

Yes please open a new bug on

FYI I’ve tried to reproduce the issues with the Hikey960 (without analysis for now):
1/ behavior reproducible on hikey-960/Android-O
2/ Not reproduciblae on hikey-960/Android-O
3/ Not reproduciblae on hikey-960/Android-O (dmesg output could help here)

For 1/ I have filed a bug report on

Do you confirm 2/ and 3/ are Android-O specific ? not reproducible on N?

I have not tested Android N, so I can’t confirm.

For issue \1 (dpm set device-owner).

After having a look at the source code, seems the device_admin feature is missing.
You can check enabled features with the following command:
$ adb shell pm list features

If you don’t see, this is the root cause of the problem.

I agree that the java runtime error is not explicit.
I think this is an issue in the hikey/hikey960 device repo, let me check why it is missing.

As temp workaround you can copy the feature file on the target:
$ adb root
$ adb remount
$ adb push aosp/frameworks/native/data/etc/ /system/etc/permissions/
$ adb reboot

Ok, great, thanks for pointing this out :slight_smile:

I have repo synced two hours ago and had another go at bugs 2/ and 3/.
Issue 2/ persists.

Additionally, there is a bug 4/ concerning playback of videos:

09-06 15:57:42.036 2014-2244/system_process I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=content:// typ=video/mp4 flg=0x1} from uid 10009
09-06 15:57:42.712 14978-14978/ W/MediaPlayer: Couldn't open content:// setDataSourceFD failed.: status=0x80000000
09-06 15:57:42.713 2014-2026/system_process W/ActivityManager: Permission Denial: opening provider from (null) (pid=1925, uid=1013) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
[ 09-06 15:57:42.714  1925:16429 D/         ]
openContentUri(content:// caught exception -1
09-06 15:57:42.714 1925-16429/? E/MediaPlayerService: Couldn't open fd for content://
09-06 15:57:42.715 14978-14978/ W/VideoView: Unable to open content: content:// setDataSource failed.: status=0x80000000
at Method)
at android.widget.VideoView.openVideo(
at android.widget.VideoView.access$2200(
at android.widget.VideoView$7.surfaceCreated(
at android.view.SurfaceView.updateSurface(
at android.view.SurfaceView.setVisibility(
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)
09-06 15:57:42.715 14978-14978/ D/VideoView: Error: 1,0

I’ll post the bug on the bugtracker.