I got the XZ2 Compact and I understand there's no DisplayPort Alt support. I know the 845 (and 835 before) chipset supports it but I don't know what goes into the chipset firmware blobs we can't touch. Is it simply not supported in software, e.g. kernel, HAL, or somewhere else past the bootloader? Is it technically feasible, even if Sony won't help, to enable DisplayPort Alt? After seeing Samsung Dex, I bought two XZPs specifically for an open platform that I could develop into a desktop replacement with RDP and web apps, but it looks like there a disconnect below the kernel that allows detection of an display connection (probably just a pull down) but not EDID or anything else. Sony's support for AOSP homebrew deserves worship from any power user but wireless display casting is not a viable solution for work or anything sensitive. We've all bought one at some point and we all drop them for lack of reliability, nevermind the complication of sharing it with random people. A $15 USB-C dock with HDMI, 1x USB (wireless kb/m), and PD for charging can negate all of that and is easily shared. Samsung, HTC, LG, and other flagship phones can do this. I would think a relatively clean phone like Sony's would do it too. I'm hoping that Sony has not gone out of their way to disable functionality that would be enabled on any SnapDragon dev board, and I won't need a NDA with Qualcomm to make it work.
... View more
First off I want to offer my thanks to Sony team for fostering open source development on their devices and providing the walkthroughs necessary for proof of concept. I hit a few complications but that's really due to the Oreo release timing and changes in the build process as I was learning. I'm really impressed that Sony has stuck with it the entire time and continued to improve their documentation and resources. I was able to build Oreo and a custom kernel for ethernet. The 2nd sim on my device is not working, but I would like to dig into that myself as well as develop phone apps for custom USB hardware. I'm finding it difficult to get a complete set of documentation on Android development below the app level, e.g. App Framework, Binder IPC, System Services, and HAL. I purchased a few books but none of them touch on any of these topics in details, they all skim through just enough to build and maintain AOSP from scratch: Android System Programming Embedded Programming with Android Learning Embedded Android N Programming I'm looking for an API reference where I can look up functions with brief explanations of how to use commands. For all their faults, Microsoft has some good developer resources on technet where you can look up almost any command in any of their support programming/scripting languages along with usage examples. Is there anything comparable on Android at the system level? How do Sony devs learn to code for custom hardware, is it all reverse engineering, training classes, or is there some knowledge base not publicly available? I'm not looking for C/Java programming tutorials, I need an index is functions, their parameters, and a brief description of their behavior. Google provides some documentation centered around HIDL and how to implement common devices, but I can't find a complete index to discover what's possible. Any sites or books would be appreciated.
... View more
I caught a typo in a prior post and was able to reach the adb push step but I get errors trying to write to the device. I have not been able to upgrade beyond the stock rom since the Xperia flash tool does not show anything newer. I'm using the XZ Premium dual sim FR version. # ../adb push * /odm/
adb: error: failed to copy 'bin/adsprpcd' to '/odm/bin/adsprpcd': remote secure_mkdirs failed: Read-only file system
adb: error: failed to copy 'firmware/a530_pfp.fw' to '/odm/firmware/a530_pfp.fw': couldn't read from device
adb: error: failed to send ID_SEND message '/odm/lib/libC2D2.so,33188': Success
adb: error: failed to send ID_SEND message '/odm/lib64/libC2D2.so,33188': Success
adb: warning: skipping empty directory 'lost+found/'
lost+found/: 0 files pushed. 1 file skipped.
0 files pushed. 1 file skipped. 1.3 MB/s (22156 bytes in 0.016s) Update: I used some grey market tools download and flash 45.0.A.7.137 before successfully trying the oem img again, but I would still like to know the proper way to do it within the confines of AOSP and official support.
... View more
I'm also having the same issue with G8142 using stock sony kernel 4.10 and following Sony's Oreo instructions. I've compiled 7.1.2 successfully and I even rolled back my build VM to download and compile Oreo from scratch using only Sony resources. ============================================
[38/38] bootstrap out/soong/.minibootstrap/build.ninja.in
[4/4] cp out/soong/.bootstrap/bin/bpglob
[621/622] glob vendor/*/*/Android.bp
[40/40] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-aosp_g8142.ninja is missing, regenerating...
Checking build tools versions...
[9/986] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[147/986] including ./device/sony/common/Android.mk ...
device-sony-common-init: init_sony for "maple", platform "yoshino", with ' -DDEV_BLOCK_PATH="\"/dev/block/sde"\" -DDEV_BLOCK_FOTA_PATH="\"/dev/block/sde45"\" -DDEV_BLOCK_FOTA_NUM="45" -DDEV_BLOCK_FOTA_MAJOR="259" -DDEV_BLOCK_FOTA_MINOR="29" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[336/986] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[368/986] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[402/986] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:865: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:874: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:879: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:884: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[529/986] including ./hardware/qcom/gps/Android.mk ...
build/core/base_rules.mk:238: error: hardware/qcom/gps/msm8998/core: MODULE.TARGET.SHARED_LIBRARIES.libloc_core already defined by hardware/qcom/gps/msm8994/core.
19:20:58 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
#### make failed to build some targets (01:15 (mm:ss)) ####
... View more