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.

Still unable to get touchscreen working on AOSP on H8324 (XZ2 Compact dual sim)

Highlighted
Apprentice
Message 1 of 4
757 Views
Message 1 of 4

Still unable to get touchscreen working on AOSP on H8324 (XZ2 Compact dual sim)

Hi,

I've been following the earlier threads but am still unable to get the touchscreen working on the H8324 AOSP. I am following https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-p-... and https://developer.sony.com/develop/open-devices/guides/kernel-compilation-guides/how-to-build-and-fl... building a new kernel with CONFIG_TOUCHSCREEN_SYNAPTICS_TCM=y but no luck.

 

Does anyone have any ideas on what to do? 

 

Below is the build script I use.

#!/bin/bash -e

# ----------------------------------------
# Settings
dir=~/android
repo=~/bin/repo
branch="android-9.0.0_r31"
lunch="aosp_h8324-userdebug"
device="apollo"
swbinaries="~/Downloads/SW_binaries_for_Xperia_Android_9.0_2.3.2_v5_tama.img"
# ----------------------------------------

echo
echo "=== `date` BUILD '$branch', DEVICE '$device' ==="
echo "dir=$dir
branch=$branch
lunch=$lunch
device=$device
swbinaries=$swbinaries"
export PATH=~/bin:$PATH

echo
echo "Set up environment..."
sudo sysctl -w net.ipv4.tcp_window_scaling=0

echo
echo "Tidy up..."
cd $dir/..
sudo rm -Rf .repo*
sudo rm -Rf $dir
mkdir $dir
cd $dir

echo
echo "Clone branch '$branch'..."
$repo init -u https://android.googlesource.com/platform/manifest -b $branch

echo
echo "Clone manifests..."
cd .repo
git clone https://github.com/sonyxperiadev/local_manifests
cd local_manifests
git checkout $branch

echo
echo "Repo sync ..."
cd $dir
$repo sync -j1

echo
echo "Get upstream pachtes ..."
cd $dir
./repo_update.sh

echo "Add touch screen ..."
# Add CONFIG_TOUCHSCREEN_SYNAPTICS_TCM=y in /android/kernel/sony/msm-4.9/kernel/arch/arm64/configs/aosp_tama_apollo_defconfig
echo "
# X2C touchscreen
CONFIG_TOUCHSCREEN_SYNAPTICS_TCM=y" >> $dir/kernel/sony/msm-4.9/kernel/arch/arm64/configs/aosp_tama_apollo_defconfig

echo
echo "Set device environment variables ..."
cd $dir
. build/envsetup.sh && lunch $lunch

echo
echo "Build kernel ..."
cd $dir/kernel/sony/msm-4.9/common-kernel
# Reduce kernel build scope to apollo only
sed -i.b1 "s/^TAMA=\".*\"$/TAMA=\"apollo\"/" build-kernels.sh
sed -i.b2 "s/^PLATFORMS=\".*\"$/PLATFORMS=\"TAMA\"/" build-kernels.sh
rm -f build-kernels.sh.b1 build-kernels.sh.b2
./build-kernels.sh

echo
echo "Build boot image ..."
cd $dir
make -j 1 bootimage

echo
echo "Build images ..."
cd $dir
make -j 1

echo "Flash AOSP ..."
fastboot flash boot_a $dir/out/target/product/$device/boot.img
fastboot flash dtbo $dir/out/target/product/$device/dtbo.img
fastboot flash system_a $dir/out/target/product/$device/system.img
fastboot flash userdata $dir/out/target/product/$device/userdata.img
fastboot flash vbmeta $dir/out/target/product/$device/vbmeta.img
fastboot flash vendor $dir/out/target/product/$device/vendor.img

echo "Flash SW binaries ..."
fastboot flash oem $swbinaries

 

3 REPLIES 3
Developer World
Message 2 of 4
726 Views
Message 2 of 4

Re: Still unable to get touchscreen working on AOSP on H8324 (XZ2 Compact dual sim)

Hi,

I can not replicate the issue on my device

 

Please post the issue on the bug tracker

https://github.com/sonyxperiadev/bug_tracker/

 

Thanks

Alin

 

One time poster
Message 3 of 4
647 Views
Message 3 of 4

Re: Still unable to get touchscreen working on AOSP on H8324 (XZ2 Compact dual sim)

Hi, 

 

Just jumping into this thread as well.  Is there somewhere I can get the stock recovery.img for the H8324?  I think I must have accidentally used fastboot to overwrite the recovery image, as I can't get the device to show up in Emma.  Fastboot is working though.

 

Are these instructions for pie accurate?  I see other image files that may be necessary to flash?

https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-android-p-...

 

Thanks!

Developer World
Message 4 of 4
634 Views
Message 4 of 4

Re: Still unable to get touchscreen working on AOSP on H8324 (XZ2 Compact dual sim)

Hi,

 

the Xperia XZ2 uses A/B updates and there is no separate recovery partition

 

The build instructions are updated

 

Regards

Alin