I got the libdroidmedia.so
now for the XA2:
build with this script in ./makelib
#!/bin/bash
# have jdk8 and the repo tool from android installed
export VENDOR=sony
export DEVICE=h4113
export HABUILD_DEVICE=pioneer
export FAMILY=nile
export BRANCH=8.1.0_r52
export HAVERSION="hybris-sony-aosp-"$BRANCH"_20190206"
export PORT_ARCH=aarch64
export LC_ALL=C
cd build
source build/envsetup.sh
export USE_CCACHE=1
lunch aosp_h4113-eng
make -j$(nproc --all) droidmedia
on this docker image in docker/Dockerfile
FROM python:2.7-buster
ENTRYPOINT [ "/bin/bash" ]
RUN apt-get update && apt-get install -y \
software-properties-common build-essential gcc-multilib make ccache libncurses5 \
&& wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - \
&& add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ \
&& apt-get update && apt-get install -y adoptopenjdk-8-hotspot \
&& rm -rf /var/cache/apk/*
Instructions
- Setup the repositories with repo and clone droidmedia into
build/
# have jdk8 and the repo tool from android installed
cd build
export VENDOR=sony
export DEVICE=h4113
export HABUILD_DEVICE=pioneer
export FAMILY=nile
export BRANCH=8.1.0_r52
export HAVERSION="hybris-sony-aosp-"$BRANCH"_20190206"
export PORT_ARCH=aarch64
repo init -u https://github.com/mer-hybris/android.git -b $HAVERSION -m tagged-manifest.xml
repo sync -c --fetch-submodules
git clone https://github.com/mer-hybris/droid-src-sony-nile droid-src
git clone https://github.com/sailfishos/droidmedia external/droidmedia
- write the build script to makelib and the dockerfile to
docker/
- run
docker build docker/
and get the image hash
- run
docker run -it -v(pwd):/camera2api -w /camera2api <imagehash>
to get into the image
- execute
bash makelib
- find libdroidmedia in
build/out/target/product/pioneer/system/lib/
(or maybe lib64 if you are on another device)
- if this works run
cd build && make clean && cd ..
- now you can switch the branch for droidmedia and rebuild with the camera2 api
- deploy it to
/usr/libexec/droid-hybris/system/lib/libdroidmedia.so
on your phone (maybe lib64 on other devices.make sure you do not mix lib and lib64