[Sony Xperia Z Ultra] astronfestmon:
Hello everyone!

Trying to port AOSP Nougat for Sony Z Ultra.

I made the same things on developer android.

http://xdaforums.com/devdb/project/dl/?id=20250

sudo apt-get update
sudo apt-get install openjdk-8-jdk

sudo update-alternatives --config java
sudo update-alternatives --config javac

sudo apt-get install git-core gnupg flex bison gperf build-essential
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache
libgl1-mesa-dev libxml2-utils xsltproc unzip

mkdir ~/bin
PATH=~/bin:$PATH

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

repo init -u https://android.googlesource.com/platform/manifest -b android-7.0.0_r1

repo sync -jX number of cpus

mkdir .repo/local_manifests

inside .repo/local_manifets type nano sony.xml

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="sony" fetch="git://github.com/sonyxperiadev/" />
<remove-project name="platform/hardware/qcom/camera" />
<project path="device/sony/sepolicy" name="device-sony-sepolicy" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/amami" name="device-sony-amami" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/aries" name="device-sony-aries" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/castor" name="device-sony-castor" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/castor_windy" name="device-sony-castor_windy" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/common" name="device-sony-common" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/common-headers" name="device-sony-common-headers" groups="device" remote="sony" revision="aosp/LA.BR.1.3.3_rb2.14" />
<project path="device/sony/common-kernel" name="vendor-sony-kernel" groups="device" remote="sony" revision="aosp/LA.BR.1.3.3_rb2.14" />
<project path="device/sony/honami" name="device-sony-honami" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/kanuti" name="device-sony-kanuti" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/ivy" name="device-sony-ivy" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/karin" name="device-sony-karin" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/karin_windy" name="device-sony-karin_windy" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/kitakami" name="device-sony-kitakami" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/leo" name="device-sony-leo" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/loire" name="device-sony-loire" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/rhine" name="device-sony-rhine" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/satsuki" name="device-sony-satsuki" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/scorpion" name="device-sony-scorpion" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/scorpion_windy" name="device-sony-scorpion_windy" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/suzu" name="device-sony-suzu" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/shinano" name="device-sony-shinano" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/sirius" name="device-sony-sirius" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/sumire" name="device-sony-sumire" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/suzuran" name="device-sony-suzuran" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/togari" name="device-sony-togari" groups="device" remote="sony" revision="m-mr1" />
<project path="device/sony/tulip" name="device-sony-tulip" groups="device" remote="sony" revision="m-mr1" />
<project path="hardware/qcom/camera" name="camera" groups="device" remote="sony" revision="aosp/LA.BR.1.3.3_rb2.14" />
<project path="kernel/sony/msm" name="kernel" groups="device" remote="sony" revision="aosp/LA.BR.1.3.3_rb2.14" />
<project path="vendor/qcom/opensource/dataservices" name="vendor-qcom-opensource-dataservices" groups="device" remote="sony" revision="master" />
<project path="vendor/sony-oss/thermanager" name="thermanager" groups="device" remote="sony" revision="master" />
<project path="vendor/sony-oss/macaddrsetup" name="macaddrsetup" groups="device" remote="sony" revision="master" />
<project path="vendor/sony-oss/timekeep" name="timekeep" groups="device" remote="sony" revision="master" />
</manifest>

repo sync -j10

source build/envsetup.sh

lunch name_of_togari

make -j2

When I copied the files from sonyxperiadev into this repo folder, I got issues. I am seeing which one are making that.

Through jack building I made this:

export ANDROID_JACK_EXTRA_ARGS="--verbose debug --sanity-checks on -D
sched.runner=single-threaded"

prebuilts/misc/linux-x86/ccache/ccache -M 80G
export USE_CCACHE=1
export CCACHE_DIR=$home/.ccache

Then I will post them here to fix them with the community.

ROM download uploaded. If boot.img doesn't work flash the file from here.

Thanx a lot.

XDA:DevDB Information

AOSP android-7.0.0_r1, ROM for the Sony Xperia Z Ultra

Contributors

astronfestmon, astronfestmon

ROM OS Version: 6.0.x Marshmallow

ROM Kernel: Linux 3.4.x

Version Information

Status: Testing

Created 2016-08-28

Last Updated 2016-08-28