[AOSP] Nougat r1 - Sony Xperia Z Ultra

Hello everyone!
Trying to port AOSP Nougat for Sony Z Ultra.
I made the same things on developer android.
http://forum.xda-developers.com/devdb/project/dl/?id=20250
Code:
sudo apt-get update
sudo apt-get install openjdk-8-jdk
Code:
sudo update-alternatives --config java
sudo update-alternatives --config javac
Code:
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
Code:
mkdir ~/bin
PATH=~/bin:$PATH
Code:
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 "[email protected]"
Code:
repo init -u https://android.googlesource.com/platform/manifest -b android-7.0.0_r1
repo sync -jX number of cpus
Code:
mkdir .repo/local_manifests
Code:
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>
Code:
repo sync -j10
Code:
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:
Code:
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

Hey how much RAM your building PC have? you have to callibrate them
more infos u get there : https://android.googlesource.com/pl...f-you-experience-Jack-compilations-failing-on
If there's any way i can help tell me, as i also try to compile it in next days :highfive:
P.S. do you use Ubuntu 16.04 LTS? if yes u need to fix some things If u need it then tell me
Your PDesire

PDesire said:
Hey how much RAM your building PC have? you have to callibrate them
more infos u get there : https://android.googlesource.com/pl...f-you-experience-Jack-compilations-failing-on
If there's any way i can help tell me, as i also try to compile it in next days :highfive:
P.S. do you use Ubuntu 16.04 LTS? if yes u need to fix some things If u need it then tell me
Your PDesire
Click to expand...
Click to collapse
I'm using 16.04 LTS and I have 6 gb ram in a hp pavillion 15 a new one.
Thanx.

which binaries do you use?

matze19999 said:
which binaries do you use?
Click to expand...
Click to collapse
From android 5.1 on the site developer world sony
Sent from my Nexus 5 using Tapatalk

astronfestmon said:
From android 5.1 on the site developer world sony
Click to expand...
Click to collapse
You are using Android 5.1 binaries with Android n?

Yes. I count find others.
Sent from my Nexus 5 using Tapatalk

Why not 6.0 binaries?

I couldn't find it.
Sent from my Nexus 5 using Tapatalk

astronfestmon said:
I couldn't find it.
Click to expand...
Click to collapse
http://developer.sonymobile.com/downloads/software-binaries/

Than
Sent from my Nexus 5 using Tapatalk

Well here is sweet smell of nougat coming for z ultra

PDesire said:
Hey how much RAM your building PC have? you have to callibrate them
more infos u get there : https://android.googlesource.com/pl...f-you-experience-Jack-compilations-failing-on
If there's any way i can help tell me, as i also try to compile it in next days :highfive:
P.S. do you use Ubuntu 16.04 LTS? if yes u need to fix some things If u need it then tell me
Your PDesire
Click to expand...
Click to collapse
You sir are the real MVP thanx for porting nougat

I got the build successful. I will flash it today. Testing today and tomorrow. Then I will give photos after testing.
Thanx

astronfestmon said:
I got the build successful. I will flash it today. Testing today and tomorrow. Then I will give photos after testing.
Thanx
Click to expand...
Click to collapse
Sounds good. Waiting for new Android 7 experience on togari

Testing

android n works very good

Great
Sent from my Nexus 5 using Tapatalk

O couldnt flash boot.img well.
How do you do that?
Sent from my Nexus 5 using Tapatalk

https://www.androidfilehost.com/?fid=24591000424961941
try this kernel

Related

[Q] trouble when trying compile CM10 for nozomi

hi
I was trying to compile CM10 for the sony xperia s (nozomi) ... I sync the CM repo for the jb branch ,then I used this local manifest to get the device's code
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_sony" path="vendor/sony" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_packages_apps_FMRadio" path="packages/apps/FmRadio" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_device_sony_nozomi" path="device/sony/nozomi" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_device_sony_fuji-common" path="device/sony/fuji-common" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_kernel_sony_msm8x60" path="kernel/sony/msm8x60" remote="github" revision="jellybean" />
<project name="CyanogenMod/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" revision="jellybean" />
</manifest>
and sync it with repo sync ,every thing goes right ... but when I type the commande
Code:
brunch nozomi
it say device not found !!
my question is : am I using the right repositories ? is this local_manifest valide ? WHERE can I get the CM10 code sources for the nozomi device ?
thank you .

[Q] Problem on CM 10.2 building

I wanted to build a CM rom with HALO, so I fetched the additional things of roomservice.xml from https://github.com/cristianomatos/manifests/blob/mako/roomservice.xml . Of course, I did not even tried to download mako's device tree, so my roomservice.xml goes like this;
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_htc_enrc2b" path="device/htc/enrc2b" remote="github" />
<project name="CyanogenMod/android_device_htc_tegra3-common" path="device/htc/tegra3-common" remote="github" />
<project name="CyanogenMod/android_kernel_htc_enrc2b" path="kernel/htc/enrc2b" remote="github" />
<project name="HoxPlusCMOfficial/proprietary_vendor_htc.git" path="vendor/htc" remote="github" revision="cm10-2" />
<remove-project name="CyanogenMod/android_vendor_cm" />
<project name="cristianomatos/android_vendor_cm" path="vendor/cm" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Calculator" />
<project name="cristianomatos/android_packages_apps_Calculator" path="packages/apps/Calculator" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Contacts" />
<project name="cristianomatos/android_packages_apps_Contacts" path="packages/apps/Contacts" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_ContactsCommon" />
<project name="cristianomatos/android_packages_apps_ContactsCommon" path="packages/apps/ContactsCommon" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Dialer" />
<project name="cristianomatos/android_packages_apps_Dialer" path="packages/apps/Dialer" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Email" />
<project name="cristianomatos/android_packages_apps_Email" path="packages/apps/Email" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Gallery2" />
<project name="cristianomatos/android_packages_apps_Gallery2" path="packages/apps/Gallery2" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_inputmethods_LatinIME" />
<project name="cristianomatos/android_packages_inputmethods_LatinIME" path="packages/inputmethods/LatinIME" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Mms" />
<project name="cristianomatos/android_packages_apps_Mms" path="packages/apps/Mms" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Nfc" />
<project name="cristianomatos/android_packages_apps_Nfc" path="packages/apps/Nfc" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Phone" />
<project name="cristianomatos/android_packages_apps_Phone" path="packages/apps/Phone" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_providers_MediaProvider" />
<project name="cristianomatos/android_packages_providers_MediaProvider" path="packages/providers/MediaProvider" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_frameworks_native" />
<project name="cristianomatos/android_frameworks_native" path="frameworks/native" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_frameworks_base" />
<project name="cristianomatos/android_frameworks_base" path="frameworks/base" remote="github" revision="cr-main-10.2" />
<remove-project name="CyanogenMod/android_packages_apps_Settings" />
<project name="cristianomatos/android_packages_apps_Settings" path="packages/apps/Settings" remote="github" revision="cr-main-10.2" />
</manifest>
However, when building CM 10.2 with HALO was going in a smooth progress, it was stuck for a few times after such error was shown;
Code:
target Java: Phone (out/target/common/obj/APPS/Phone_intermediates/classes)
packages/apps/Phone/src/com/android/phone/PhoneInterfaceManager.java:60: com.android.phone.PhoneInterfaceManager is not abstract and does not override abstract method toggle2G(boolean) in com.android.internal.telephony.ITelephony
public class PhoneInterfaceManager extends ITelephony.Stub {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [out/target/common/obj/APPS/Phone_intermediates/classes-full-debug.jar] Error 41
So, I just modified the problematic line to the line which starts with; 'abstract class blahblahblah.'
However, Even if there are a complete set of vendor files and device tree, it shows another error;
Code:
-bash: build/tools/roomservice.py: No such file or directory
** Don't have a product spec for: 'cm_enrc2b'
** Do you have the right repo manifest?
I tried breakfast command but it only shows me 1. full-eng not enrc2b. Of course, even if I choose the number 1, it shows me the same message.
I am deleting whole folder and trying to build another rom because of this.
I don't see any erroneous things as far as I know, and it should have been built already, right?
So, I need helps from gurus of build. Is there anything that I did wrong? Could there any suggestions for me?
i assume you've run
repo sync
and then done
. build/envsetup.sh
which all you will have to do after is :
brunch enrc2b
Lloir said:
i assume you've run
repo sync
and then done
. build/envsetup.sh
which all you will have to do after is :
brunch enrc2b
Click to expand...
Click to collapse
Thanks for your comment, I'll try once again. I was still suffering from that damn "cannot find right spec" thungy.
Sent from my One X+ using Tapatalk
Lloir said:
i assume you've run
repo sync
and then done
. build/envsetup.sh
which all you will have to do after is :
brunch enrc2b
Click to expand...
Click to collapse
OK, I am sorry, but I gotta ask you about the procedure from the scratch.
I decided to build the pure CM 10.2 before I use roomservice.xml, so I did the following steps;
0. I am on someone else's server, and everything including JDK were already set up.
1. I made a directory by using mkdir, and I ran 'repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2.' Of course, I did not forget to run './get-prebuilts.'
2. After it was done, I ran repo sync and I saw every files were got in.
3. I ran 'source envsetup.sh' and 'breakfast enrc2b.'
4. After it asked for me to put vendor files into the vendor folder, I ran 'git clone git://github.com/TheMuppets/proprietary_vendor_htc htc' and I found out enrc2b folder is inside of /vendor/htc/ folder.
5. However, when I tried to run brunch enrc2b, the error was shown, and everything got stuck.
Code:
[email protected]:~/cm/build$ cd ../
[email protected]:~/cm$ cd vendor
[email protected]:~/cm/vendor$ ls
cm qcom tmobile
[email protected]:~/cm/vendor$ git clone git://github.com/TheMuppets/proprietary_vendor_htc htc
Cloning into 'htc'...
remote: Counting objects: 5613, done.
remote: Compressing objects: 100% (2454/2454), done.
remote: Total 5613 (delta 3167), reused 5282 (delta 2934)
Receiving objects: 100% (5613/5613), 284.98 MiB | 3.53 MiB/s, done.
Resolving deltas: 100% (3167/3167), done.
Checking out files: 100% (755/755), done.
[email protected]:~/cm/vendor$ cd htc
[email protected]:~/cm/vendor/htc$ ls
endeavoru evita jewel m7-common m7tmo s4-common
enrc2b fireball m7att m7spr m7ul ville
[email protected]:~/cm/vendor/htc$ brunch enrc2b
-bash: build/tools/roomservice.py: No such file or directory
** Don't have a product spec for: 'cm_enrc2b'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
[email protected]:~/cm/vendor/htc$ breakfast enrc2b
-bash: build/tools/roomservice.py: No such file or directory
** Don't have a product spec for: 'cm_enrc2b'
** Do you have the right repo manifest?
Do you think there is anything wrong with my procedure?
Sent from my One X+ using Tapatalk
run .build/envsetup.sh
not source/envsetup
do ls device/htc
do you see enrc2b?
also just easier if you add it all into a local_manifest.xml then you can repo sync them down with the main source

[Q] Building help cm12

guys im trying to build cm12 ??what do i have to write in "local_manifest.xml" before building for sirius???
Edit : After searching online i have come to this code.
Is it enough
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_sony.git" path="vendor/sony" remote="github" revision="cm-12.0" />
<project name="CyanogenMod/android_device_sony_sirius" path="device/sony/sirius" remote="github" revision="cm-12.0"/>
<project name="CyanogenMod/android_kernel_sony_msm8974" path="kernel/sony/msm8974" remote="github" revision="cm-12.0" />
<project name="CyanogenMod/android_device_sony_common" path="device/sony/common" remote="github" revision="cm-12.0"/>
<project name="CyanogenMod/android_device_sony_qcom-common" path="device/sony/qcom-common" remote="github" revision="cm-12.0"/>
<project name="CyanogenMod/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" revision="cm-12.0" />
<project name="CyanogenMod/android_device_sony_fusion3-common" path="device/sony/fusion3-common" remote="github" revision="cm-12.0" />
<project name="CyanogenMod/android_bootable_recovery" path="bootable/recovery" remote="github" revision="cm-12.0"/>
</manifest>
and for Get prebuilt apps from cm is not working from cm guide
Get prebuilt apps
Add a comment to this section
Next,
$ cd ~/android/system/vendor/cm
then enter:
$ ./get-prebuilts
You won't see any confirmation- just another prompt. But this should cause some prebuilt apps to be loaded and installed into the source code. Once completed, this does not need to be done again.
Click to expand...
Click to collapse
EDIT:I was able to fix it and now its compling .....
EDIT FINAL:Thanks to XDA and GOOGLE i was able to get past the errors and now i compiled my first cm rom thanks everyone!!!!!!!!!!!!!!!
Hi! Do you can show how you solved this problem? For me, the same thing happens. I don't had much luck with research as you! lol

[Q] How do i compile LiquidSmooth?

I compiled CM12 successfully, but i keep getting fetch errors while trying to download the lolipop tree.
When i do repo sync, i get stuck at
Code:
Fetching project platform/external/google-tv-pairing-protocol
for ~5 mins, then i get
Code:
error: Cannot fetch platform/external/freetype
error: Cannot fetch CyanogenMod/android_device_common
error: Cannot fetch CyanogenMod/android_external_tcpdump
error: Cannot fetch platform/prebuilts/tools
error: Exited sync due to fetch errors
I'm using a Ubuntu 14.04 VM.
My local_manifest.xml is as follows -
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_oneplus_bacon" path="device/oneplus/bacon" remote="github" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="CyanogenMod/android_device_oppo_msm8974-common" path="device/oppo/msm8974-common" remote="github" />
<project name="CyanogenMod/android_device_oppo_common" path="device/oppo/common" remote="github" revision="cm-12.0" />
<project name="CyanogenMod/android_kernel_oneplus_msm8974" path="kernel/oneplus/msm8974" remote="github" />
<project name="TheMuppets/proprietary_vendor_oppo" path="vendor/oppo" remote="github" />
<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" />
<project name="CyanogenMod/android_frameworks_opt_connectivity" path="frameworks/opt/connectivity" remote="github" revision="cm-11.0" />
</manifest>

How do I solve the "nfc_enchanced.mk is missing" when building lineage-14.1?

How do I solve the "nfc_enchanced.mk is missing" when building lineage-14.1?
After trying the rom for zerofltexx with the name NexusXXXX in it (didn't boot past the Lineage setup guide) I decided to build cm-14.1 for it since https://github.com/LineageOS/android_device_samsung_zerofltexx/branches shows that the cm-14.1 branch exist (even though it's not updated).
I know that SM-G925F is not officially supported by either Cyanogenmod or Lineage, and my build fails to find nfc_enhanced.mk even though all the repos are correct in my local manifest:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_samsung_zerofltexx" path="device/samsung/zerofltexx" remote="github" />
<project name="LineageOS/android_device_samsung_zero-common" path="device/samsung/zero-common" remote="github" />
<project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" />
<project name="LineageOS/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="LineageOS/android_hardware_samsung_slsi-cm_exynos" path="hardware/samsung_slsi-cm/exynos" remote="github" />
<project name="LineageOS/android_hardware_samsung_slsi-cm_exynos5" path="hardware/samsung_slsi-cm/exynos5" remote="github" />
<project name="LineageOS/android_hardware_samsung_slsi-cm_exynos7420" path="hardware/samsung_slsi-cm/exynos7420" remote="github" />
<project name="LineageOS/android_hardware_samsung_slsi-cm_openmax" path="hardware/samsung_slsi-cm/openmax" remote="github" />
<project name="LineageOS/android_kernel_samsung_exynos7420" path="kernel/samsung/exynos7420" remote="github" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" />
</manifest>
How can I fix this so that cm-14.1 will build for this model?
I intend to make a working manifest to start porting to Sailfish OS.
I'm having the same problem. I have a similar local manifest as you do. I'm trying to port Halium. If you PM me we can try and help each other out.
I have found a working solution to build cm-14.1 for zerolte so I'll upload it to my mega repo soon.
This thread and it's issue can therefor be closed as fixed.

Categories

Resources