Is it possible Android 10 work on hikey960?

Hi. I’m trying to build Android 10 on hikey960 but it doesn’t work well.

I downloaded AOSP android-10.0.0_r2 branch from https://android.googlesource.com/
and built using hikey960-user debug lunch menu.

after that, i tried to upload android images using /device/linaro/hikey/installer/hikey960/flash-all.sh

I could see the ANDROID boot LOGO but, it shows blackscreen and repeated logcat error messages.

--------- beginning of crash
09-10 15:49:01.016 3188 3188 E AndroidRuntime: FATAL EXCEPTION: main
09-10 15:49:01.016 3188 3188 E AndroidRuntime: Process: com.android.phone, PID: 3188
09-10 15:49:01.016 3188 3188 E AndroidRuntime: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at com.android.internal.telephony.PhoneSwitcher.switchPhone(PhoneSwitcher.java:876)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at com.android.internal.telephony.PhoneSwitcher.activate(PhoneSwitcher.java:867)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at com.android.internal.telephony.PhoneSwitcher.onEvaluate(PhoneSwitcher.java:848)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at com.android.internal.telephony.PhoneSwitcher.onRequestNetwork(PhoneSwitcher.java:665)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at com.android.internal.telephony.PhoneSwitcher.handleMessage(PhoneSwitcher.java:453)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7356)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
09-10 15:49:01.016 3188 3188 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
09-10 15:49:01.019 2737 3236 V RescueParty: Disabled because of active USB connection
09-10 15:49:01.019 2737 3391 I DropBoxManagerService: add tag=system_app_crash isTagEnabled=true flags=0x2
09-10 15:49:01.021 3188 3188 I Process : Sending signal. PID: 3188 SIG: 9
09-10 15:49:01.048 2403 2403 I ServiceManager: service ‘isub’ died
09-10 15:49:01.048 2403 2403 I ServiceManager: service ‘simphonebook’ died
09-10 15:49:01.048 2403 2403 I ServiceManager: service ‘iphonesubinfo’ died
09-10 15:49:01.048 2403 2403 I ServiceManager: service ‘isms’ died
09-10 15:49:01.048 2403 2403 I ServiceManager: service ‘phone’ died
09-10 15:49:01.048 2403 2403 I ServiceManager: service ‘carrier_config’ died


Does anyone succeed in running Android 10 on hikey960?

or Did I skipped some building process?

Thanks for reading.

1 Like

You’re pretty fast here. Android 10 just dropped a few days ago.
Why don’t you give it a little time?

lol I should get more patience

Oh, and one other thing I just noticed is that you’re trying to use the release branch. Hikey960 isn’t supported in release branches. You need to use the master branch.

@jstultz Have the Android 10 specific changes merged to master yet?

Yes, and there’s always a bit of breakage when a new release lands in AOSP/master. Wifi is broken at the moment and needs the following fix:
https://android-review.googlesource.com/c/device/linaro/hikey/+/1121337

Hopefully that is it, but we’ll be doing more testing this week.

yes, I got the same error. But I don’t use PhoneSwitcher, so comment out those few functions. You can give it a try.

a lot of work for adapting Android10 in hikey960

r2 does finish booting. Just powercycle after flashing

There is more to something “working” than just the ability to finish booting.

@coffee90506 said his build was stuck in boot loop. It was not specified what he wants “working”