account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

Xperia XA2 Ultra AOSP boot up fails

Learner
Message 1 of 4
1,918 Views
Message 1 of 4

Xperia XA2 Ultra AOSP boot up fails

AOSP built imgs has my Xperia XA2 Ultra stuck in boot loop. Logcat shows zygote64 crashes.

 

Userdebug version is the only one that I can get my device to boot.

Build script that I use:

#!/bin/bash
BRANCH="android-8.1.0_r26"
if [ ! -d "android" ]
then
        mkdir ~/android
        cd ~/android
        repo init -u https://android.googlesource.com/platform/manifest -b $BRANCH
        cd .repo
        git clone https://github.com/sonyxperiadev/local_manifests
        cd local_manifests
        git checkout $BRANCH
        cd ../..
else
        cd ~/android
fi
rm -r out
repo sync -j $(nproc)
./repo_update.sh

# Userdebug # source build/envsetup.sh && lunch aosp_h4213-userdebug
#

source build/envsetup.sh && lunch aosp_h4213
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx7168m" export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx7168m"
make -j$(nproc)

adb logcat - crash dump

02-03 15:38:01.861  2315  2315 I SystemServer: WaitForDisplay
02-03 15:38:01.861  2315  2315 I SystemServiceManager: Starting phase 100
02-03 15:38:01.864   629   754 I SDM     : HWCDisplay::GetColorModeCount: Supported color mode count = 1
02-03 15:38:01.864   629   754 I SDM     : HWCDisplay::GetColorModes: Supports color mode[0] = 0
02-03 15:38:01.866   629   754 I SDM     : HWCDisplay::GetHdrCapabilities: HDR is not supported
02-03 15:38:01.868  2315  2338 I DisplayManagerService: Display device added: DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1080 x 1920, modeId 1, defaultModeId 1, supportedModes [{id=1, width=1080, height=1920, fps=60.000004}], colorMode 0, supportedColorModes [0], HdrCapabilities android.view.Display$HdrCapabilities@1d6308, density 480, 370.702 x 369.454 dpi, appVsyncOff 1000000, presDeadline 16666666, touch INTERNAL, rotation 0, type BUILT_IN, state UNKNOWN, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
02-03 15:38:01.866   629   754 I SDM     : HWCDisplay::GetHdrCapabilities: HDR is not supported
02-03 15:38:01.872   643   643 D SurfaceFlinger: Set power mode=2, type=0 flinger=0x7a8765e000
02-03 15:38:01.877  2315  2315 D SystemServerTiming: WaitForDisplay took to complete: 15ms
02-03 15:38:01.877  2315  2338 I DisplayManagerService: Display device changed state: "Built-in Screen", ON
02-03 15:38:01.878  2315  2315 I SystemServer: StartPackageManagerService
02-03 15:38:01.882  2315  2315 W FileUtils: Failed to chmod(/data/system/packages.list): android.system.ErrnoException: chmod failed: ENOENT (No such file or directory)
02-03 15:38:01.888  2315  2315 D SELinuxMMAC: Using policy file /system/etc/selinux/plat_mac_permissions.xml
02-03 15:38:01.890  2315  2315 D SELinuxMMAC: Using policy file /vendor/etc/selinux/nonplat_mac_permissions.xml
02-03 15:38:01.891  2315  2315 I PackageManager: No settings file; creating initial state
02-03 15:38:01.906  2315  2315 I PackageManager: /vendor/overlay/framework-res__auto_generated_rro.apk changed; collecting certs
02-03 15:38:01.914  2315  2315 I PackageManager: /vendor/overlay/SysuiDarkTheme changed; collecting certs
02-03 15:38:01.922  2315  2315 W PackageManager: Failed to parse /system/framework/arm64: Missing base APK in /system/framework/arm64
02-03 15:38:01.923  2315  2315 W PackageManager: Failed to parse /system/framework/oat: Missing base APK in /system/framework/oat
02-03 15:38:01.928  2315  2315 W PackageManager: Failed to parse /system/framework/arm: Missing base APK in /system/framework/arm
02-03 15:38:01.937  2315  2339 F zygote64: java_vm_ext.cc:534] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal continuation byte 0xff
02-03 15:38:01.937  2315  2339 F zygote64: java_vm_ext.cc:534]     string: 'irq/61-c084'
02-03 15:38:01.938  2315  2339 F zygote64: java_vm_ext.cc:534]     input: '0x69 0x72 0x71 0x2f 0x36 0x31 0x2d 0x63 0x30 0x38 0x34 0xea <0xff> 0xff 0xff'
02-03 15:38:01.938  2315  2339 F zygote64: java_vm_ext.cc:534]     in call to NewStringUTF
02-03 15:38:01.938  2315  2339 F zygote64: java_vm_ext.cc:534]     from boolean android.os.Process.readProcFile(java.lang.String, int[], java.lang.String[], long[], float[])
02-03 15:38:01.938  2315  2339 F zygote64: java_vm_ext.cc:534] "CpuTracker" prio=5 tid=20 Runnable
02-03 15:38:01.939  2315  2339 F zygote64: java_vm_ext.cc:534]   | group="main" sCount=0 dsCount=0 flags=0 obj=0x13006c48 self=0x75a4959800
02-03 15:38:01.939  2315  2339 F zygote64: java_vm_ext.cc:534]   | sysTid=2339 nice=0 cgrp=default sched=0/0 handle=0x75965f54f0
02-03 15:38:01.939  2315  2339 F zygote64: java_vm_ext.cc:534]   | state=R schedstat=( 48088743 18785371 72 ) utm=3 stm=1 core=0 HZ=100
02-03 15:38:01.939  2315  2339 F zygote64: java_vm_ext.cc:534]   | stack=0x75964f3000-0x75964f5000 stackSize=1037KB
02-03 15:38:01.939  2315  2339 F zygote64: java_vm_ext.cc:534]   | held mutexes= "mutator lock"(shared held)
02-03 15:38:01.940  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #00 pc 00000000003c951c  /system/lib64/libart.so (art:Grinning FaceumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*)+208)
02-03 15:38:01.940  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #01 pc 000000000049970c  /system/lib64/libart.so (art::Thread:Grinning FaceumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+348)
02-03 15:38:01.940  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #02 pc 00000000002fc4a4  /system/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1048)
02-03 15:38:01.941  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #03 pc 00000000002fc894  /system/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+116)
02-03 15:38:01.941  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #04 pc 000000000010dd4c  /system/lib64/libart.so (art::ScopedCheck::AbortF(char const*, ...)+148)
02-03 15:38:01.941  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #05 pc 000000000010e224  /system/lib64/libart.so (art::ScopedCheck::CheckUtfString(char const*, bool)+736)
02-03 15:38:01.941  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #06 pc 000000000010bd4c  /system/lib64/libart.so (art::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::JniValueType*)+644)
02-03 15:38:01.942  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #07 pc 00000000001024ac  /system/lib64/libart.so (art::CheckJNI::NewStringUTF(_JNIEnv*, char const*)+636)
02-03 15:38:01.942  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #08 pc 0000000000121d24  /system/lib64/libandroid_runtime.so (android_os_Process_parseProcLineArray(_JNIEnv*, _jobject*, char*, int, int, _jintArray*, _jobjectArray*, _jlongArray*, _jfloatArray*)+1004)
02-03 15:38:01.942  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #09 pc 0000000000121f9c  /system/lib64/libandroid_runtime.so (android_os_Process_readProcFile(_JNIEnv*, _jobject*, _jstring*, _jintArray*, _jobjectArray*, _jlongArray*, _jfloatArray*)+228)
02-03 15:38:01.942  2315  2339 F zygote64: java_vm_ext.cc:534]   native: #10 pc 000000000072a13c  /system/framework/arm64/boot-framework.oat (Java_android_os_Process_readProcFile__Ljava_lang_String_2_3I_3Ljava_lang_String_2_3J_3F+284)
02-03 15:38:01.943  2315  2339 F zygote64: java_vm_ext.cc:534]   at android.os.Process.readProcFile(Native method)
02-03 15:38:01.943  2315  2339 F zygote64: java_vm_ext.cc:534]   at com.android.internal.os.ProcessCpuTracker.collectStats(ProcessCpuTracker.java:511)
02-03 15:38:01.943  2315  2339 F zygote64: java_vm_ext.cc:534]   at com.android.internal.os.ProcessCpuTracker.update(ProcessCpuTracker.java:387)
02-03 15:38:01.943  2315  2339 F zygote64: java_vm_ext.cc:534]   at com.android.internal.os.ProcessCpuTracker.init(ProcessCpuTracker.java:311)
02-03 15:38:01.944  2315  2339 F zygote64: java_vm_ext.cc:534]   at com.android.server.am.ActivityManagerService$4.run(ActivityManagerService.java:2802)
02-03 15:38:01.944  2315  2339 F zygote64: java_vm_ext.cc:534]   - locked <0x0554208d> (a com.android.internal.os.ProcessCpuTracker)
02-03 15:38:01.944  2315  2339 F zygote64: java_vm_ext.cc:534]
02-03 15:38:02.050  2315  2339 F zygote64: runtime.cc:523] Runtime aborting...
02-03 15:38:02.050  2315  2339 F zygote64: runtime.cc:523] Dumping all threads without appropriate locks held: thread list lock mutator lock
02-03 15:38:02.050  2315  2339 F zygote64: runtime.cc:523] All threads:
02-03 15:38:02.051  2315  2339 F zygote64: runtime.cc:523] DALVIK THREADS (27):

02-03 15:38:02.068  2315  2339 F zygote64: runtime.cc:523]   at com.android.server.SystemServer.main(SystemServer.java:267)
02-03 15:38:02.068  2315  2339 F zygote64: runtime.cc:523]   at java.lang.reflect.Method.invoke(Native method)
02-03 15:38:02.068  2315  2339 F zygote64: runtime.cc:523]   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
02-03 15:38:02.069  2315  2339 F zygote64: runtime.cc:523]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:787)
02-03 15:38:02.069  2315  2339 F zygote64: runtime.cc:523]
02-03 15:38:02.069  2315  2339 F zygote64: runtime.cc:523] "Signal Catcher" prio=5 tid=2 WaitingInMainSignalCatcherLoop
02-03 15:38:02.069  2315  2339 F zygote64: runtime.cc:523]   | group="" sCount=1 dsCount=0 flags=1 obj=0x12fc00b8 self=0x75a740e000
02-03 15:38:02.070  2315  2339 F zygote64: runtime.cc:523]   | sysTid=2320 nice=0 cgrp=default sched=0/0 handle=0x75a78084f0
02-03 15:38:02.070  2315  2339 F zygote64: runtime.cc:523]   | state=S schedstat=( 530260 416719 2 ) utm=0 stm=0 core=1 HZ=100
02-03 15:38:02.070  2315  2339 F zygote64: runtime.cc:523]   | stack=0x75a770e000-0x75a7710000 stackSize=1005KB
02-03 15:38:02.070  2315  2339 F zygote64: runtime.cc:523]   | held mutexes=
02-03 15:38:02.071  2315  2339 F zygote64: runtime.cc:523]   kernel: __switch_to+0x8c/0xa0
02-03 15:38:02.071  2315  2339 F zygote64: runtime.cc:523]   kernel: do_sigtimedwait+0x17c/0x240
02-03 15:38:02.071  2315  2339 F zygote64: runtime.cc:523]   kernel: SyS_rt_sigtimedwait+0xb0/0x118
02-03 15:38:02.071  2315  2339 F zygote64: runtime.cc:523]   kernel: el0_svc_naked+0x24/0x28
02-03 15:38:02.072  2315  2339 F zygote64: runtime.cc:523]   native: #00 pc 0000000000069e58  /system/lib64/libc.so (__rt_sigtimedwait+8)
02-03 15:38:02.072  2315  2339 F zygote64: runtime.cc:523]   native: #01 pc 00000000000284f0  /system/lib64/libc.so (sigwait+60)
02-03 15:38:02.072  2315  2339 F zygote64: runtime.cc:523]   native: #02 pc 0000000000488430  /system/lib64/libart.so (art::SignalSet::Wait()+44)
02-03 15:38:02.072  2315  2339 F zygote64: runtime.cc:523]   native: #03 pc 0000000000487f44  /system/lib64/libart.so (art::SignalCatcher::WaitForSignal(art::Thread*, art::SignalSet&)+248)
02-03 15:38:02.073  2315  2339 F zygote64: runtime.cc:523]   native: #04 pc 0000000000486770  /system/lib64/libart.so (art::SignalCatcher::Run(void*)+268)
02-03 15:38:02.073  2315  2339 F zygote64: runtime.cc:523]   native: #05 pc 00000000000676dc  /system/lib64/libc.so (__pthread_start(void*)+36)
02-03 15:38:02.073  2315  2339 F zygote64: runtime.cc:523]   native: #06 pc 000000000001edc0  /system/lib64/libc.so (__start_thread+68)
02-03 15:38:02.073  2315  2339 F zygote64: runtime.cc:523]   (no managed stack frames)
02-03 15:38:02.074  2315  2339 F zygote64: runtime.cc:523]
02-03 15:38:02.074  2315  2339 F zygote64: runtime.cc:523] "JDWP" prio=5 tid=3 WaitingInMainDebuggerLoop
02-03 15:38:02.074  2315  2339 F zygote64: runtime.cc:523]   | group="" sCount=1 dsCount=0 flags=1 obj=0x12fc1e88 self=0x75afabf400
02-03 15:38:02.074  2315  2339 F zygote64: runtime.cc:523]   | sysTid=2322 nice=0 cgrp=default sched=0/0 handle=0x75a73ff4f0
02-03 15:38:02.075  2315  2339 F zygote64: runtime.cc:523]   | state=S schedstat=( 482135 0 1 ) utm=0 stm=0 core=1 HZ=100
02-03 15:38:02.075  2315  2339 F zygote64: runtime.cc:523]   | stack=0x75a7305000-0x75a7307000 stackSize=1005KB
02-03 15:38:02.075  2315  2339 F zygote64: runtime.cc:523]   | held mutexes=
02-03 15:38:02.075  2315  2339 F zygote64: runtime.cc:523]   kernel: __switch_to+0x8c/0xa0
02-03 15:38:02.076  2315  2339 F zygote64: runtime.cc:523]   kernel: __skb_recv_datagram+0x460/0x4bc
02-03 15:38:02.076  2315  2339 F zygote64: runtime.cc:523]   kernel: unix_dgram_recvmsg+0x9c/0x3b4
02-03 15:38:02.076  2315  2339 F zygote64: runtime.cc:523]   kernel: unix_seqpacket_recvmsg+0x4c/0x68

My build env:

OS:
Ubuntu 16.04 (Linux ubuntu 4.4.0-124-generic #148-Ubuntu SMP Wed May 2 13:00:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux)

Java: 
java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

What gives. Thanks!


3 REPLIES 3
Developer World
Message 2 of 4
1,777 Views
Message 2 of 4

Re: Xperia XA2 Ultra AOSP boot up fails

Hi,

 

I can not replicate the issue. Please sync and rebuild

 

Regards

Alin

 

One time poster
Message 3 of 4
1,739 Views
Message 3 of 4

Re: Xperia XA2 Ultra AOSP boot up fails

I have very same issue with my Xiaomi mido build.

Tryed my Gentoo amd64 with openjdk-8u171 and Ubuntu 18.04 chroot.

 

Did you found solution? Maybe it is latest openjdk issue?

Highlighted
Developer World
Message 4 of 4
1,718 Views
Message 4 of 4

Re: Xperia XA2 Ultra AOSP boot up fails

Hi

I tested the build using Ubuntu 16.04 and 18.01 and the XA2 device boots fine

Did you flash all the partitions?

boot

system

vendor

oem

userdata

 

Regards

Alin