[WIP][DEV] Ubuntu Touch for Sony Xperia Z Ultra - Sony Xperia Z Ultra

Hi folks,
I just started to port UbuntuTouch for the Sony Xperia Z Ultra and I think I should have a *.zip ready for testing in 2 weeks.
Until then, I will use this thread as a scrap book to document all the troubles I run into, all the things that needed my special attention and fixes that are not that obvious. I hope there will be some fellas brave enough to test everything and report back or even to join me with the development.
Best regards,
Kalle
First Update:
I found that the Ubuntu Touch version that ist based on CyanogenMod was not updated to a more recent version. This means that I have to either look into AOSP or backport everything to CM-10.1. I think backporting is kinda stupid because newer we are writing new software to improve things. Sadly I don't have much experiance with AOSP so I will have to find out how everything works and what the differences to CyanogenMod are.
The good news is, that I'm catching up with the mailing list, which means I'll have a place to call for help.
Also I'm in the progress to start a git repo, but I'm unsure what I will need to add, maybe some common stuff from sony does not need to be changed.
So long,
Kalle
Update!
There is a new porting guide! See here
I already freed some space for it and ordered a bit more ram so after my exam next week, I'll pick this up/Start all over.
Hope you are as excited as I am,
Kalle
XDA:DevDB Information
Ubuntu Touch for Sony Xperia Z Ultra, ROM for the Sony Xperia Z Ultra
Contributors
KalleEatingBrain, Kohelet
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlocked Bootloader
Based On: AOSP
Version Information
Status: Testing
Created 2014-05-14
Last Updated 2015-02-24

freaking awesome!
freaking awesome!
i would like to test. maybe i can help with developing/porting

Thank you for your efforts. I will test if needed.
Sent from my C6806 using XDA Premium 4 mobile app

Great this would be awesome if you can make it happen. I'm here for testing if required.
Sent from my C6833 using XDA Premium 4 mobile app

In also here for testing... Ubuntu Touch has intruiged me, I would love to try it out.

Thx... (thread bookmarked)
Sent from my C6833 using Tapatalk

I keep meaning to reply to this thread... Thanks for putting the effort in to get this working. If you want any hints/tips etc from my experience in getting slim and carbon built for the ZU just ask, I'll be willing to test aswell

iBuzman said:
Thx... (thread bookmarked)
Sent from my C6833 using Tapatalk
Click to expand...
Click to collapse
+1

Nice.ill be watching out everyday
Sent from my C6833 using XDA Premium 4 mobile app

blueether said:
I keep meaning to reply to this thread... Thanks for putting the effort in to get this working. If you want any hints/tips etc from my experience in getting slim and carbon built for the ZU just ask, I'll be willing to test aswell
Click to expand...
Click to collapse
Cool, thanks can you give me a hint on how to deal with new targets in Aosp? I mean setting up the files in a way "lunch" is able to find the right target.
Sent from my C6833 using XDA Free mobile app

vendersetup.sh file in vender/ might be what you are looking for?
have a gander at this http://www.kandroid.org/online-pdk/guide/build_new_device.html

How are you doing on this? I've just started working on this as well and am curious to know how far along you've gotten/what issues you've run into.
Sent from my Nexus 7 using XDA Free mobile app

So I've gotten the build to start, but I'm running into issues with libhybris:
ubuntu/hybris/compat/media/media_codec_layer.cpp:51:40: fatal error: gui/IGraphicBufferProducer.h: No such file or directory
compilation terminated.
make: *** [out/target/product/togari/obj/SHARED_LIBRARIES/libmedia_compat_layer_intermediates/media_codec_layer.o] Error
I'll post here once I've found a solution.

Kohelet said:
So I've gotten the build to start, but I'm running into issues with libhybris:
ubuntu/hybris/compat/media/media_codec_layer.cpp:51:40: fatal error: gui/IGraphicBufferProducer.h: No such file or directory
compilation terminated.
make: *** [out/target/product/togari/obj/SHARED_LIBRARIES/libmedia_compat_layer_intermediates/media_codec_layer.o] Error
I'll post here once I've found a solution.
Click to expand...
Click to collapse
Yeah, thats as far as I got, too. :-/ I tried removing all different libs or compiling different parts and leaving others out but I couldn't get any futher. Also I saw your post to the mailing list but it seems like you wont get a helpful reply either. As far a I could track this problem is the incompatibility of togari CM-11 and the ubuntu AOSP source tree. On xda-university there is a guide for porting from CM to AOSP which I will try but maybe you should take a look, too. Anyways: Great to see there is someone else except lazy me working on this.
Best regards,
Kalle

KalleEatingBrain said:
Yeah, thats as far as I got, too. :-/ I tried removing all different libs or compiling different parts and leaving others out but I couldn't get any futher. Also I saw your post to the mailing list but it seems like you wont get a helpful reply either. As far a I could track this problem is the incompatibility of togari CM-11 and the ubuntu AOSP source tree. On xda-university there is a guide for porting from CM to AOSP which I will try but maybe you should take a look, too. Anyways: Great to see there is someone else except lazy me working on this.
Best regards,
Kalle
Click to expand...
Click to collapse
I actually got past the libhybris issue. The problem was that the porting guide is out of date. It's based on using cm-10.1 whereas the current source for Ubuntu is based on cm-11.0. So if you use 4.4.2 instead instead of 4.2.2 then it works. But there are so many other issues and the documentation for fixing them is so poor. I've kept a running list of problems I've come across and the solutions for them (it's below).
Also they dropped the whole UCM thing so you should be able to get sound working once you actually get a working build, but I couldn't get it to build. The error that is currently in my way has to do with "No rule to make target signapk.jar needed by com.qualcomm.location" or something or other. And I found nothing on how to solve that online.
At this point I've decided to take a short break from the whole thing because it's so frustrating.
Once I get motivated to work on it again, I'll probably start from scratch.
Issues List (I apologize for not being specific about the errors, I didn't write them down verbatim):
If you get an error about libelf you need to add CyanogenMod/android_external_elfutils to your local_manifests/roomservice.xml and also add external/elfutils under subdirs in build/core/main.mk
Don't forget to also add device/sony and vendor/sony to build/core/main.mk as well.
The build will complain about not having a rule to make android-boot.img. To fix you have to go to device/sony/fusion3-common/custombookimg.mk and change boot.img to android-boot.img. You need to make the same change in device/sony/rhine-common/custombootimg.mk
I got an error about android.hardware.bluetooth_le.xml. If you just restart the build it doesn't complain, but I didn't find a proper solution to that.
If you get the libhybris error you have the wrong version of the Ubuntu source. Make sure you're using 4.4.2 when you phablet-dev-botstrap. It should be phablet-dev-bootstrap --sources aosp --repo-branch phablet-4.4.2_r1 [target_directory]
You might get an error about a product_config.mk and how it's missing a makefile for togari. You have to make sure that in device/sony/togari Android.mk, cm.mk, full_togari.mk, and vendorsetup.sh PRODUCT_NAME is the same. I solved this by changing PRODUCT_NAME to cm_togari in all of them and then renamed full_togari.mk to cm_togari.mk
You might get an error like MODULE.TARGET.SHARED_LIBRARIES.libOmxCore already defined in hardware/qcom/media. You should have CyanogenMod/android_hardware_qcom_media-caf-new in your repo manifest with a path of android/qcom/media-caf-new so you can safely rm -rf the hardware/qcom/media directory to get past this error.
If you get an error about dtbToolCM, add /device/qcom/common/dtbtool to your subdirs in build/core/main.mk
You may get an error about mkbootimg, that's because Sony uses a different version of mkbootimg. The only option I found was to download it from the internet (Thanks DooMLorD!). Once you get that version edit device/sony/rhine-common/custombootimg.mk and replace $(MKBOOTIMG) with the path to your downloaded mkbootimg binary.
You might get an error about no rule to make target something/something/signapk.jar needed by something/something/com.qualcomm.location. I didn't find a solution to this error.
Click to expand...
Click to collapse

Thanks for that list, it's sure to help some one. I think I have had most of those errors in trying to get aosp to build.
Can I copy those errors to my [DEV]Random thoughts thread?

blueether said:
Thanks for that list, it's sure to help some one. I think I have had most of those errors in trying to get aosp to build.
Can I copy those errors to my [DEV]Random thoughts thread?
Click to expand...
Click to collapse
Sure, feel free. I built CM for all my devices and regretted not keeping such a list when I did that. So now every time I work on a build I keep lists like that. Eventually, when I have a working build, I'll post a guide for how to build following the same steps I took.

Kohelet said:
Sure, feel free. I built CM for all my devices and regretted not keeping such a list when I did that. So now every time I work on a build I keep lists like that. Eventually, when I have a working build, I'll post a guide for how to build following the same steps I took.
Click to expand...
Click to collapse
Yeh carbon and slim were easy to build, and simple fixes. AOSP on the other hand I wish I had kept a build log

Ah nice, when I last checked CM-11.0 was not working with the 4.4.2r2 branch. I think I know how to fix the problem with the *.apk. Basically you have to remove all java dependencies from all the makefiles. I will look it up, so I can tell you what to grep for. Do you have a git repo we can work on, or should I add you to mine (which is just a fork of the CM-repos)? I will take a look at the sound in the next days. Thanks for you list!
Keep it up,
Kalle
Sent from my C6833 using XDA Free mobile app

KalleEatingBrain said:
Ah nice, when I last checked CM-11.0 was not working with the 4.4.2r2 branch.
Click to expand...
Click to collapse
That could potentially be a major source of my problems. i wasn't aware of that.
I think I know how to fix the problem with the *.apk. Basically you have to remove all java dependencies from all the makefiles. I will look it up, so I can tell you what to grep for. Do you have a git repo we can work on, or should I add you to mine (which is just a fork of the CM-repos)? I will take a look at the sound in the next days. Thanks for you list!
Keep it up,
Kalle
Sent from my C6833 using XDA Free mobile app
Click to expand...
Click to collapse
All I have at the moment is a fork of the CM repos. Feel free to add me to your repo. My username on Github is Kohelet as well. I can start to look into removing java dependencies as well.
As for the sound, the mailing list made it appear as if it was a simple matter of running
Code:
$ sudo apt-add-repository ppa:ci-train-ppa-service/landing-018
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo apt-get install pulseaudio-module-droid
I could be wrong though.

Related

(WIP) Ubuntu Touch

Ubuntu Touch Developer Preview for the Fascinate
// It took me a while to get it right, but here it is.
//Camera works, wireless internet works.
Haven't checked sound.
Don't know if phone or SMS works.
Need testers.
//How to install: DO A BACKUP FIRST!
Get the zip here Then get this. Go to recovery, do a wipe/factory reset.
//Flash the first zip, don't reboot yet. Go to Mounts and Storage, mount /data and then format it or it won't work.
//Then flash the second zip and reboot.
//After you reboot, don't do an apt update. It seems to bork things up for me. Using adb on your computer, type 'phablet-flash -d grouper -b' (to update to the latest).
Enjoy.
The above is the old way. Thanks to UnjustifiedDev the new build is below:
"Ubuntu touch
1. Download bootstrap http://goo.im/devs/Unjust/Fascinate/...scinatemtd.zip
2. Download preinstall http://cdimage.ubuntu.com/ubuntu-tou...blet-armhf.zip
yes it is 300+mb make sure you have space on your sdcard for it
3. Download layout fix http://goo.im/devs/Unjust/Fascinate/...layout_fix.zip
4. Reboot to recovery wipe data etc then flash bootstrap file first the cm-10.1 zip then reboot recovery
5. in ubuntu's purple recovery flash the saucy zip takes a while to flash make sure your battery is charged
6. Flash layout fix right after saucy zip completes then reboot
7. Note this a preview not a daily driver it is pretty cool but it lacks full features. Wifi works idk if sound works or data my phone is not in service
Source https://github.com/Ubuntu-Fascinate I did fix the layout no need for an extra zip next build "
You are the man, Unjust!!
Remember, it's just a developer preview at this point. Not much you can do with it right now.
Redwolves (meandmine)
[
Since the Fascinate is not my daily driver, I have no way to test 3G or SMS. Anyone want to give a try and post your results?
Thanks, Redwolves
I will keep this updated as much as I can. I'll also put detailed instructions an my github page for anyone who wants to compile their own.
I will put up the instructions on my github page tonight. I'll link to it here when I do.
Redwolves
*face palm* good job dude I was just building it was gonna be a surprise for y'all. You beat me to it lol. Nice job.
Sent from my SCH-I500 using Tapatalk 2
Really cool and as far as I know cdma isnt compatible with ubuntu touch but wifi should work. Im just glad yours worked I would really like to see a patch or could you push the source you used to get it working. I tried at least 10 times no luck at all on booting.
edit nvm thanks for this
Unjustified Dev said:
Really cool and as far as I know cdma isnt compatible with ubuntu touch but wifi should work. Im just glad yours worked I would really like to see a patch or could you push the source you used to get it working. I tried at least 10 times no luck at all on booting.
edit nvm thanks for this
Click to expand...
Click to collapse
Is it really can't work for the cdma?
Sent from my SCH-I500 using Tapatalk 4 Beta
ekowanz said:
Is it really can't work for the cdma?
Sent from my SCH-I500 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Works fine for cdma it uses cm10.1 source so anythibg cm10.1 has it can use.
Unjustified Dev said:
Really cool and as far as I know cdma isnt compatible with ubuntu touch but wifi should work. Im just glad yours worked I would really like to see a patch or could you push the source you used to get it working. I tried at least 10 times no luck at all on booting.
edit nvm thanks for this
Click to expand...
Click to collapse
No patch needed boots and works fine for me straight from source but I like android better just lack of apps on Ubuntu. And agreed nice job
Sent from my SCH-I500 using Tapatalk 2
bbrad said:
No patch needed boots and works fine for me straight from source but I like android better just lack of apps on Ubuntu. And agreed nice job
Sent from my SCH-I500 using Tapatalk 2
Click to expand...
Click to collapse
I meant patch as in a diff file to see how he modified things
Unjustified Dev said:
I meant patch as in a diff file to see how he modified things
Click to expand...
Click to collapse
I didnt need to modify anything.
Sent from my SCH-I500 using Tapatalk 2
bbrad said:
I didnt need to modify anything.
Sent from my SCH-I500 using Tapatalk 2
Click to expand...
Click to collapse
Im talking source code you cant just build it like a regular rom there is things you need to modify
Unjustified Dev said:
Im talking source code you cant just build it like a regular rom there is things you need to modify
Click to expand...
Click to collapse
I didn't have to modify anything it just used the cm files. Did you follow the official port guide or some off the wall nut job guide here on xda? Maybe I'm just lucky idk. Who cares.
Sent from my SCH-I500 using Tapatalk 2
I followed the porting guide. Commented out AriesParts and Samsung-something-or-other in a makefile in /devices. Patched /kernel/samsung/aries/fs/proc/array.c and /kernel/samsung/aries/arch/arm/configs. I did some other other patches to a makefile in /build. I played with it for about a month using just the phablet-armhf.zip. I had it booting for about 15 seconds after a while. I was going through logcats and trying to trace them back to any warnings thrown during compilation.
Then I found out it uses the grouper image. Voila, instant boot. I left the changes in the source, though.
redwolves said:
I followed the porting guide. Commented out AriesParts and Samsung-something-or-other in a makefile in /devices. Patched /kernel/samsung/aries/fs/proc/array.c and /kernel/samsung/aries/arch/arm/configs. I did some other other patches to a makefile in /build. I played with it for about a month using just the phablet-armhf.zip. I had it booting for about 15 seconds after a while. I was going through logcats and trying to trace them back to any warnings thrown during compilation.
Then I found out it uses the grouper image. Voila, instant boot. I left the changes in the source, though.
Click to expand...
Click to collapse
I'll put up detailed instructions and the code on my github page when I get the chance. Life has 'a life' in it, you know.
Scott
If anyone is having problems, please see if you can grab a logcat and send it to me.
for some reason wen i install the 2nd zip, i get status 7 error
arqda said:
for some reason wen i install the 2nd zip, i get status 7 error
Click to expand...
Click to collapse
You're the second person who has said that. I can't reproduce it on my phone. I need to find a common thread.
What Baseband version are you running?
Thanks, Scott
redwolves said:
You're the second person who has said that. I can't reproduce it on my phone. I need to find a common thread.
What Baseband version are you running?
Thanks, Scott
Click to expand...
Click to collapse
Ill try to give u as much detai l as possible.
Baseband: i500.04.V.EH03
Tried flashing using CWM4, 6, modified6, and twrp
Using 1gb sd card (class ?) To flash
Finally got around to detailed instructions on my github account. It's here. I'll push the code up shortly.
redwolves said:
Finally got around to detailed instructions on my github account. It's here. I'll push the code up shortly.
Click to expand...
Click to collapse
I did all of that except one thing I forgot array.c also we dont need samsung service mode
Unjustified Dev said:
I did all of that except one thing I forgot array.c also we dont need samsung service mode
Click to expand...
Click to collapse
"While in /device/samsung/aries-common, edit device_base.mk. Comment out AriesParts and SamsungServiceMode under
"# Device-specific packages"."
I thought I had it in there.

[ROM][PORT][MAKO > HUASHAN]PA 3.99 (currently not booting!)

Hello everyone!
I present to you a paranoid android 3.99 port for our Xperia SP
Changelog:
V2: Device no longer hard reboots on bootanimation
V1: initial release
BUGS:
V2: Device doesn't boot (stuck on bootanimation and ADB offline)
V1: Device doesn't boot (hard reboot after 10 seconds of showing splash screen)
Download: PA_HUASHAN_V2
Now as you can see this ROM port is not booting but at least it doesn't do a hard reboot anymore! Currently I have no ADB access as it is listed as offline when doing: ADB devices of course I can't figure out the problem myself so I'm asking you guys for help. Since there is no logcat I know that it might be nasty to determine the problem and where the phone stops booting. I hope you guys can help me get this ROM to boot so we will finally have a working PA rom
thanks to: @-NickHalden- for his nice guide on how to port ROM's
@FXP for the base rom (cm10.2)
and the paranoid android team for the ROM that was ported (pa 3.99 from nexus 4)
Why don't you simply build from source?
kamarush said:
Why don't you simply build from source?
Click to expand...
Click to collapse
I'm trying that as well but i'm having some issues getting these files working
<device>.adds
<device>.removes
pa_<device>.conf
pa_<device>.mk
If I could easily get/make these files a source build would already be here
Do you have a idea on how to create these files? or where I can get them?
for example for the .adds file I need something like this (this comes from nexus 4)
https://github.com/ParanoidAndroid/android_vendor_pa/blob/jb43/manifests/mako.adds
It's pretty simple
Adds and removes are the repos what you need and don't need. About the makefiles. You can simple use the mako files as base, only need to change the values to match for our device.
kamarush said:
It's pretty simple
Adds and removes are the repos what you need and don't need. About the makefiles. You can simple use the mako files as base, only need to change the values to match for our device.
Click to expand...
Click to collapse
OK this is the .adds file I just made can you take a look at it?
huashan.adds
kamarush said:
Why don't you simply build from source?
Click to expand...
Click to collapse
A long ago, i dont have see you on xda....
now you've back....great master
OK guys PA is currently building from source! now let's prepare to wait a long time xD
noahvt said:
OK this is the .adds file I just made can you take a look at it?
huashan.adds
Click to expand...
Click to collapse
This file will be almost the same as the cm dependencies. So this isn't good.
Levered said:
A long ago, i dont have see you on xda....
now you've back....great master
Click to expand...
Click to collapse
Yeah was long time ago i just bought this device a week ago. I just came back to Sony from Samsung
noahvt said:
OK guys PA is currently building from source! now let's prepare to wait a long time xD
Click to expand...
Click to collapse
@kamarush
damn I ran into some building issues already (hopefully nothing to serious)
Lunching device
build/core/product_config.mk:231: *** device/sample/products/pa_huashan.mk: PRODUCT_NAME must be defined.. Stop.
Device huashan not found. Attempting to retrieve device repository from ParanoidAndroid Github (http://github.com/ParanoidAndroid).
Repository for huashan not found in the ParanoidAndroid Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:231: *** device/sample/products/pa_huashan.mk: PRODUCT_NAME must be defined.. Stop.
** Don't have a product spec for: 'pa_huashan'
** Do you have the right repo manifest?
i'll upload my "pa_huashan.mk" file: https://mega.co.nz/#!gZESjTKQ!ESlhCwWQROoh53SFYJ5vqyA177o5jqZdy9V688BWUNs
EDIT: I modified my huashan.adds file
EDIT2: I really needs some help with this! I'm familiar with the compiling process of cyanogenmod but this is a whole new story
I'm a huge fan of PA, I hope this one for our SP will progress nicely. Keep up the good work devs. Currently on CM coz stock is too laggy on my one.
Tapatalked from my Xperia P
noahvt said:
@kamarush
damn I ran into some building issues already (hopefully nothing to serious)
Lunching device
build/core/product_config.mk:231: *** device/sample/products/pa_huashan.mk: PRODUCT_NAME must be defined.. Stop.
Device huashan not found. Attempting to retrieve device repository from ParanoidAndroid Github (http://github.com/ParanoidAndroid).
Repository for huashan not found in the ParanoidAndroid Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:231: *** device/sample/products/pa_huashan.mk: PRODUCT_NAME must be defined.. Stop.
** Don't have a product spec for: 'pa_huashan'
** Do you have the right repo manifest?
i'll upload my "pa_huashan.mk" file: https://mega.co.nz/#!gZESjTKQ!ESlhCwWQROoh53SFYJ5vqyA177o5jqZdy9V688BWUNs
EDIT: I modified my huashan.adds file
EDIT2: I really needs some help with this! I'm familiar with the compiling process of cyanogenmod but this is a whole new story
Click to expand...
Click to collapse
Just need to update/add pa_huashan to the pa vendor makefiles.
@kamarush
Remember you in developing the Xperia line 2011. Glad to see it with our Xperia SP. Some project in mind?
[QOUTE]Yeah was long time ago i just bought this device a week ago. I just came back to Sony from Samsung [/QUOTE]
Great, i really want rom by you. i hope you can make it soon..:good:
OK guys the build has started again! All my previous problems were caused by syncing the old repo (github.com/paranoidandroid) instead of the new one (github.com/AOSPA-legacy) if you get errors like I did try and use the new source (repo init -u git://github.com/AOSPA-legacy/manifest.git -b kitkat)
Just letting you guys know that this project isn't dead
noahvt said:
OK guys the build has started again! All my previous problems were caused by syncing the old repo (github.com/paranoidandroid) instead of the new one (github.com/AOSPA-legacy) if you get errors like I did try and use the new source (repo init -u git://github.com/AOSPA-legacy/manifest.git -b kitkat)
Just letting you guys know that this project isn't dead
Click to expand...
Click to collapse
When you port AOSPA to unlocked Bl's, could you make a version for locked BL's?
MrSteve555 said:
When you port AOSPA to unlocked Bl's, could you make a version for locked BL's?
Click to expand...
Click to collapse
I'm already using the locked bootloader vendor blobs
Sent from my C5303 using XDA Free mobile app
noahvt said:
I'm already using the locked bootloader vendor blobs
Sent from my C5303 using XDA Free mobile app
Click to expand...
Click to collapse
That's really good. :thumbsup: One last question, why aren't you porting the latest PA(4+)?
MrSteve555 said:
That's really good. :thumbsup: One last question, why aren't you porting the latest PA(4+)?
Click to expand...
Click to collapse
I am now! I forgot to tell you that the version updated this ROM will now be 4.4.2 kitkat!
@kamarush still getting product name not defined but build started! I'll finish it tomorrow
Sent from my C5303 using XDA Free mobile app
noahvt said:
I am now! I forgot to tell you that the version updated this ROM will now be 4.4.2 kitkat!
@kamarush still getting product name not defined but build started! I'll finish it tomorrow
Sent from my C5303 using XDA Free mobile app
Click to expand...
Click to collapse
It's really good! If you finish the build tomorrow, I'll flash it right away . I loved PA on my N7, and I think it's the one of the best ROM's on xda. Hopefully PA won't have that annoying freeze bug.
MrSteve555 said:
It's really good! If you finish the build tomorrow, I'll flash it right away . I loved PA on my N7, and I think it's the one of the best ROM's on xda. Hopefully PA won't have that annoying freeze bug.
Click to expand...
Click to collapse
Unfortunately it probably will have the freeze bug as it's based on the vendor blobs that bagyusz uses
Sent from my C5303 using XDA Free mobile app

LG P760 - How to compile Firefox OS ?

Hello,
is there a Firefox OS image for the LG Optimus L9 P760 ?
git clone git://github.com/mozilla-b2g/B2G.git
./config
Valid devices to configure are:
- galaxy-s2
- galaxy-nexus
- nexus-4
- nexus-4-kk
- nexus-5
- nexus-s
- nexus-s-4g
- flo (Nexus 7 2013)
- otoro
- unagi
- inari
- keon
- peak
- leo
- hamachi
- helix
- wasabi
- fugu
- tarako
- tara
- dolphin
- pandaboard
- vixen
- flatfish
- flame
- emulator
- emulator-jb
- emulator-kk
- emulator-x86
- emulator-x86-jb
- emulator-x86-kk
Is there a compatible model in the list ?
Thanks
ds2k5 said:
Hello,
is there a Firefox OS image for the LG Optimus L9 P760 ?
git clone git://github.com/mozilla-b2g/B2G.git
./config
Valid devices to configure are:
- galaxy-s2
- galaxy-nexus
- nexus-4
- nexus-4-kk
- nexus-5
- nexus-s
- nexus-s-4g
- flo (Nexus 7 2013)
- otoro
- unagi
- inari
- keon
- peak
- leo
- hamachi
- helix
- wasabi
- fugu
- tarako
- tara
- dolphin
- pandaboard
- vixen
- flatfish
- flame
- emulator
- emulator-jb
- emulator-kk
- emulator-x86
- emulator-x86-jb
- emulator-x86-kk
Is there a compatible model in the list ?
Thanks
Click to expand...
Click to collapse
No, ROMs are device specific. You have to port it and add it to the list. I could attempt a port of this, I ported Firefox os to kindle fire HD, its hardware is very similar, and as long as there's a cm device tree that is ICS based or higher I should be able to attempt a build. I only haven't tried yet since my bootloader is yet to be unlocked, but I could attempt a build this weekend if you want, I just need a cm device tree.
Sent from my Amazon Tate using Tapatalk
stunts513 said:
No, ROMs are device specific. You have to port it and add it to the list. I could attempt a port of this, I ported Firefox os to kindle fire HD, its hardware is very similar, and as long as there's a cm device tree that is ICS based or higher I should be able to attempt a build. I only haven't tried yet since my bootloader is yet to be unlocked, but I could attempt a build this weekend if you want, I just need a cm device tree.
Sent from my Amazon Tate using Tapatalk
Click to expand...
Click to collapse
Many thanks.
The Problem is, i get the LG in a few days.
If i have it, i try to give you the cm tree.
There is a guy that build a cm 11 rom for the LG.
http://artas182x.tk/?page_id=287
thanks
OK cool, can't wait to see how this works, its funny you mention it after the fact because a few months ago running Firefox is would have been a complete pain because sgx GPU's were having issues, I was around at the time they fixed it working on kfhd builds. Can't wait to attempt a build on this and see how it goes. Only downside is I can't personally test out the ROM. That being said i can already think of a few issues that might present themselves since the hardware is similar but only time will tell...
Sent from my Amazon Tate using Tapatalk
stunts513 said:
OK cool, can't wait to see how this works, its funny you mention it after the fact because a few months ago running Firefox is would have been a complete pain because sgx GPU's were having issues, I was around at the time they fixed it working on kfhd builds. Can't wait to attempt a build on this and see how it goes. Only downside is I can't personally test out the ROM. That being said i can already think of a few issues that might present themselves since the hardware is similar but only time will tell...
Sent from my Amazon Tate using Tapatalk
Click to expand...
Click to collapse
Hi,
sorry my english is poor, do you have now any information that you need to build a FireFox OS Image (for LG P760)?
Or do you need anything else ?
thanks
I still need to find the device tree, but I'm going to bed I have to get up for work tomorrow and its late. I'll look into it this weekend.
Sent from my Amazon Tate using Tapatalk
stunts513 said:
I still need to find the device tree, but I'm going to bed I have to get up for work tomorrow and its late. I'll look into it this weekend.
Sent from my Amazon Tate using Tapatalk
Click to expand...
Click to collapse
>I still need to find the device tree,
can i find this in the ROM Package ?
or how to get the "device tree" ?
thanks
stunts513 said:
I still need to find the device tree, but I'm going to bed I have to get up for work tomorrow and its late. I'll look into it this weekend.
Sent from my Amazon Tate using Tapatalk
Click to expand...
Click to collapse
may be the GIT Repo can help you
https://github.com/artas182x
https://github.com/artas182x/lge-kernel-omap4
https://github.com/artas182x/proprietary_vendor_lge/tree/cm-10.1/p760
https://github.com/TheMuppets/proprietary_vendor_lge/tree/cm-11.0/p760
Thanks, I was hoping for a cm 10.2 dev tree but I can work with cm 11, their 4.3 builds were more stable than my current 4.4 builds on kfhd, though my 4.4 builds have a ton more bugs fixed from upstream. Thanks for that I will take a look at it this weekend.
Sent from my Amazon Tate using Tapatalk
stunts513 said:
Thanks, I was hoping for a cm 10.2 dev tree but I can work with cm 11, their 4.3 builds were more stable than my current 4.4 builds on kfhd, though my 4.4 builds have a ton more bugs fixed from upstream. Thanks for that I will take a look at it this weekend.
Sent from my Amazon Tate using Tapatalk
Click to expand...
Click to collapse
here is the CM 10.2 device tree (i hope so)
https://github.com/artas182x/android_device_lge_p760/tree/cm-10.2
https://github.com/artas182x/android_device_lge_p760/tree/cm-10.2-cwm
thanks
ds2k5 said:
here is the CM 10.2 device tree (i hope so)
https://github.com/artas182x/android_device_lge_p760/tree/cm-10.2
https://github.com/artas182x/android_device_lge_p760/tree/cm-10.2-cwm
thanks
Click to expand...
Click to collapse
ok thanks, thats a good part of it i think, i will have to see about putting together a manifest using that repo plus maybe a few others, last time i did this it was with a device that wasnt official at the time so i had a manifest generated for the process already that made my life easier, so i will have to do some research this time to figure out what repos i need, i can guess that one and definately the proprietary blobs. Will try to get this done sometime soon, ran out of time this weekend because i was also doing something on my domain controller to update some deployment images and the freaking power inverter for the lcd screen died...
a small update before i head to work, i managed to get it to start the compilation process now, so now comes the tedious debugging process, already hit one error about selinux attribs that needs to be set correctly so there arent duplicates, those are easy enough to fix, just thought you might want an update.
if anybody is still curious how this is going, i'm tryin got fix an issue involving the kernel not compiling, finally decided to go with using a prebuilt but iunfortunately having a hard time figuring out why defining TARGET_PREBUILT_KERNEL isnt working...
Found the Firefox OS trining manual (sort of)
stunts513 said:
if anybody is still curious how this is going, i'm tryin got fix an issue involving the kernel not compiling, finally decided to go with using a prebuilt but iunfortunately having a hard time figuring out why defining TARGET_PREBUILT_KERNEL isnt working...
Click to expand...
Click to collapse
Nt really my field of expertise, but I read the post and found something I thought might be helpful. This was a link posted by (Duckbill, I think):
http://csmg.lgmobile.com:9002/gdmsp...1&ret=1&curPage=2&searchtype=&keyword=&arg01=
It is a link to the LG South Korea portal of some kind entitled: 2013-11-04 FireFox OS Training Material. It is presented as a .zip file but when extracted with 7z, it only produces this:
[autorun]
open=LGMain.exe
icon=LGMain.exe,0
The file is larger than 5MB so I'm sure this is simply more LG encryption, although I don't really understand the implications of the instructions. On the remote chance that this is helpful, let me know how it helped.
I got a successful build, not sure if it will work but it built successfully. If you wanna test it post back and i''ll post the link soon, still have to upload it.
*** USE AT YOUR OWN RISK! I AM NOT RESPONSIBLE IF THIS SOFTWARE OR SOMETHING ELSE SUDDENLY FRIES YOUR DEVICE. ***
ok this is just a alpha build so no guarentees it will even boot and since i have the p769 with a locked bootloader i can't really test the build. Again this is for the p760 and i would like to mention if it doesnt work i wouldn tbe surprised if you get stuck at the bootloader logo while the os is actually trying to boot, if this happens i blame the hwc module, so if it does happen i believe you should have superuser access at a adb shell and you can simply run
Code:
adb shell mount -o rw,remount /system
adb shell rm /system/vendor/lib/hw/hwcomposer.p760.so
adb shell rm /system/vendor/lib/hw/hwcomposer.omap4.so
adb reboot
that might fix a not booting issue. This is a barebones build, until i know i have a build that can sucessfully build i dont bother tsing bluetooth and rild and such. I can say that since i didnt make the modifications i did last time that i'm assuming bluetooth is probably not enabled right now.
anyways i will make this a thread in the dev section when its out of testing. Here's a link to the first alpha build if you are willing to try it: http://d-h.st/5Kq
anybody going to test this? I let it sit for a few days but i was hoping to have some testers by now. Can't really debug it myself without having a actual device thats unlockable. Theoretically i might be able to run this with a 2nd init exploit, never tried setting one up on a b2g os though.
stunts513 said:
anybody going to test this? I let it sit for a few days but i was hoping to have some testers by now. Can't really debug it myself without having a actual device thats unlockable. Theoretically i might be able to run this with a 2nd init exploit, never tried setting one up on a b2g os though.
Click to expand...
Click to collapse
I can try to test it
please let me know where to download the image(s)
In the post before last. Thanks BTW.
stunts513 said:
In the post before last. Thanks BTW.
Click to expand...
Click to collapse
I have the CWM v6.0.4.5 from artas182x, and the CyanogenMod 11 from artas182x on my P760
if i do "install zip" -> "choose zip from /external_sd" -> full_p760-ota-eng.stunts513-signed.zip
assert failed: getprop("ro.product.device") == "p760" || getprop("ro.build.product") == "p760"
E:Error in /external_d/full_p760-ota-eng.stunts513-signed.zip
(Status 7)
Installation aborted.

[Q] ROM Compile Successful & works but no sim card message

Hello,
Just staring out and figuring out how everything works. Hopefully one day be able to do more.
I must have missed something and just need a point in the right direction to figure out whats going on. I haven't made any custom changes, just getting the hand of it. So built the rom install from a repo sync and it works ok, but after install it doesn't detect the sim card, so I figure maybe I've missed something in grabbing the device files. Any advice on where to check? Or what may have caused it?
I've tried to find an answer, but I haven't had any luck. Hopefully this is in the right section, thank you.
serathe said:
Hello,
Just staring out and figuring out how everything works. Hopefully one day be able to do more.
I must have missed something and just need a point in the right direction to figure out whats going on. I haven't made any custom changes, just getting the hand of it. So built the rom install from a repo sync and it works ok, but after install it doesn't detect the sim card, so I figure maybe I've missed something in grabbing the device files. Any advice on where to check? Or what may have caused it?
I've tried to find an answer, but I haven't had any luck. Hopefully this is in the right section, thank you.
Click to expand...
Click to collapse
Device? ROM? That might be the reason, if you think you neglected that step.
It's Slimroms, device is d2att , so I have d2-common, d2att msm8960-common in the device/samsung folder and did extract-files.sh from my phone.
Had the same issue with CyanogenMod as well after installing the compiled build. (Cm 12.1). I've dug a bit trying to figure what's missing. But it all looks OK.
Forgot to mention slim lp5.1 was the other source.
Sent from my SAMSUNG-SGH-I747 using XDA Free mobile app
serathe said:
Had the same issue with CyanogenMod as well after installing the compiled build. (Cm 12.1). I've dug a bit trying to figure what's missing. But it all looks OK.
Forgot to mention slim lp5.1 was the other source.
Sent from my SAMSUNG-SGH-I747 using XDA Free mobile app
Click to expand...
Click to collapse
My last and best guess is to take the files not from extract-files but from the github repo "TheMuppets". Other than that, I'm out of ideas. At&T is strange.
Ciuffy's SM-G900F CM 12.1 spirit hath marked this way.
Thank you! I was missing d2gsm in the vendor/samsung folder. It's all working now.

[ROM][DISCONTINUED][UNOFFICIAL] Lineage OS 13 for G4 Play

LINEAGE OS 13 FOR HARPIA​
​In the wake of perfected Nougat and nearly complete Oreo for our beloved G4 Play… the ROM literally none of you have asked for is finally here!!!
​:victory::victory::victory:​
NOTE: This ROM has been discontinued, due to Xposed being released for Nougat, but more so due to sync errors whenever I try to pull the latest changes to my system with repo sync. I'll keep the thread here in case any of you want to build this for yourselves, since the steps needed to build everything differ from what the official Lineage wiki says about building Lin13.
What’s Working
Everything seems good to me
What’s Not Working
I can't find anything, so let me know
How To Build
Follow the standard procedure found on the Lineage Wiki for building Lineage 13, except DO NOT INSTALL OPENJDK 7!!! If you have this on your system, remove it before starting the process. JUST STICK WITH JAVA 8!!!
After doing your repo sync to get everything on your computer, run "breakfast harpia" so it creates a roomservice.xml file. After breakfast is done, replace the roomservice file it auto-generates with this one below:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Dark98/android_device_motorola_harpia" path="device/motorola/harpia" remote="github" />
<project name="Dark98/android_device_motorola_msm8916-common" path="device/motorola/msm8916-common" remote="github" />
<project name="SubhrajyotiSen/android_kernel_motorola_msm8916" path="kernel/motorola/msm8916" remote="github" revision="cm-14.1" />
<project name="LineageOS/android_external_bson" path="external/bson" remote="github" />
<project name="LineageOS/android_external_stlport" path="external/stlport" remote="github" />
<project name="LineageOS/android_device_qcom_common" path="device/qcom/common" remote="github" />
<project name="moto8916/proprietary_vendor_motorola" path="vendor/motorola/" remote="github" revision="cm-13.0" />
</manifest>
and do a "repo sync --force-sync". Once that's done, just brunch it and you'll be good to go!
As a side note, to add custom ringtones/alarms/sounds to your ROM, you need to wait for it to successfully build once, then put your desired .ogg files in the respective /system/media/audio/ folder that's contained in your specific device's /out directory, and build again (don't do a make clean or make clobber, it'll erase your work). Interpret me saying this however you want
Download Link
DOWNLOAD FROM GOOGLE DRIVE HERE
I also recommend a custom kernel, like SomeFeak or SquidKernel.
Questions You May Want To Ask
Why would I even want to use this ROM?
Since Xposed for Nougat just came out, there's literally no practical reason for you to need to use this anymore. I guess if you want some nostalgia, but that's it.
Why would you want to even make this ROM?
Something about me just wants at least one stable, updated MM ROM for this thing. I really can’t tell you why, just a weird urge I have.
I’m getting Java build errors when I try to compile!!!
Make sure you have only Java 8, and no Java 7.
I’m getting build errors at Gello when I try to compile!!!
You can disable Gello during the build process, which I did. Edit the moto8916.mk file in moto8916-common device directory and comment out all the stuff about Gello.
I’m getting status 2 errors at the kernel part when I try to compile!!!
GET RID OF JAVA 7!!!!!
How often will you be updating this?
This is obviously an unofficial build, so while I’ll try to make regular releases if everything works out alright, don’t expect that. I’m thinking maybe once a week or so, maybe every 2 weeks if life gets really busy.
Why won't my device encrypt? When I try to make it encrypt it just bootloops or reboots without doing anything
Make sure you're UNROOTED before you try and encrypt. Having a custom kernel/Xposed/etc. is fine, you just need to take off root before running the encryption process. Once it's done, you can reroot and be happy again.
There's something wrong with jack-admin when I try to compile and it won't work!!!
Run the following commands from inside the root of your build directory:
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx#g" (REPLACE # WITH 1GB LESS THAN THE AMOUNT OF RAM YOU HAVE)
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server
Then try to brunch again, see if that fixes it
Special Thanks
My good man @Dark98 has been a huge help in getting this to work. He was actually the first to make a Lin13 build for Harpia about 2 months ago, so without his initial work in solving all the compiler error stuff (like the BoardConfig thing mentioned above) I wouldn’t be able to release what I did. Also, special thanks to all you guys in the SomeFeak telegram group!
One day I want to learn how to make ROMs and have that same willpower as you. xD
I've never used Xposed. Maybe I'll test the ROM to see what it looks like.
Good luck and good work!
Arushidesu said:
One day I want to learn how to make ROMs and have that same willpower as you. xD
I've never used Xposed. Maybe I'll test the ROM to see what it looks like.
Good luck and good work!
Click to expand...
Click to collapse
I just flashed back to MM firmware from soak test 7.1.1, and even when installing the ROM on this bootloader/firmware it still doesn't boot. Stay tuned though, I feel like I'm VERY close to getting this thing to work!
UPDATE: After fixing a command regarding GCC exporting, I'm getting new compilation errors with the kernel. I COULD skip kernel compilation, but I'm not sure how that would work out when trying to actually flash the ROM.
jasonmerc said:
UPDATE: After fixing a command regarding GCC exporting, I'm getting new compilation errors with the kernel. I COULD skip kernel compilation, but I'm not sure how that would work out when trying to actually flash the ROM.
Click to expand...
Click to collapse
Alright, I don't know a thing about what goes on under the hood here, but doesn't getting compilation errors mean a broken kernel? And as far as I know, a broken kernel would lead to booting errors, won't even boot up I guess? Correct me if I'm wrong, please
NovaKenn said:
Alright, I don't know a thing about what goes on under the hood here, but doesn't getting compilation errors mean a broken kernel? And as far as I know, a broken kernel would lead to booting errors, won't even boot up I guess? Correct me if I'm wrong, please
Click to expand...
Click to collapse
That's exactly what a broken kernel would do. Before the kernel would compile, but it still wouldn't boot even when flashing a different kernel. Something else under the hood is going on here, which I was told my gcc export commands would fix. Now that I put in the gcc export stuff, it can't compile the kernel, and therefore never finishes compiling the ROM. I'm looking into this right now, not sure when I'l get a solution though (seems harder than I thought to fix)
jasonmerc said:
That's exactly what a broken kernel would do. Before the kernel would compile, but it still wouldn't boot even when flashing a different kernel. Something else under the hood is going on here, which I was told my gcc export commands would fix. Now that I put in the gcc export stuff, it can't compile the kernel, and therefore never finishes compiling the ROM. I'm looking into this right now, not sure when I'l get a solution though (seems harder than I thought to fix)
Click to expand...
Click to collapse
Appreciate the amount of effort you're putting in here, but I really think it would have been worth the hard work if you had gone for LOS 15 instead. Not many seem to have interest in opting for a MM ROM now. Personally, I would like to try Xposed on MM at least once as I stumbled across XDA only after N.
Anyways, we'll be waiting for your ROM! All the best to you mate!
NovaKenn said:
Appreciate the amount of effort you're putting in here, but I really think it would have been worth the hard work if you had gone for LOS 15 instead. Not many seem to have interest in opting for a MM ROM now. Personally, I would like to try Xposed on MM at least once as I stumbled across XDA only after N.
Anyways, we'll be waiting for your ROM! All the best to you mate!
Click to expand...
Click to collapse
Some other developers are already working on O roms: There's an alpha build of GZOSP Oreo on Android File Host (made by the same guy that's helped me with building this ROM) if you'd like to look at that as well. I may move to Oreo eventually, but I'd REALLY like to get this working before I do. Even if it's not my daily driver forever, to be able to make builds if I want to would be ideal.
jasonmerc said:
Some other developers are already working on O roms: There's an alpha build of GZOSP Oreo on Android File Host (made by the same guy that's helped me with building this ROM) if you'd like to look at that as well. I may move to Oreo eventually, but I'd REALLY like to get this working before I do.
Click to expand...
Click to collapse
GZOSP done so soon? Well gotta try it out once anyway. Let's taste it once.
NovaKenn said:
GZOSP done so soon? Is that for harpia though?
Click to expand...
Click to collapse
It's far from stable, but yes it is for Harpia. Feel free to take a look and flash it if you want, help give Dark98 some support as a thanks for helping me with this
But back on topic though, I have another build running on my PC at home at the moment. I had to edit the gcc export script a little bit, if it fixes the problem I'll update the first post with the fixed command to add.
UPDATE: My good man @facuarmo suggested I take the boot.img of Josh's older (but more stable) Lin13 build and put it in my newer, non-booting Lin13 build for a sort of workaround until I can figure out how to get sources compiled correctly on my own. I've just uploaded a "fixed" ROM zip to my google drive if any of you want to try this out. I'll be making a NAND backup of my Nougat ROM then giving this a try myself.
EDIT: Replacing the boot image did nothing, so back to the drawing board
GOOD NEWS SORTA!!! Josh was able to compile a new Lineage 13 build, which I tested and can confirm it works. He's gonna share his local manifests with me so I can build and maintain it. If it still won't build even after that, I'll ask him if I can give a link to his build, to hold you guys over who are waiting for this.
Big shout out to Josh who's been a tremendous help this whole time. If I knew his XDA username I'd cite it, but otherwise you can find him on GitHub:
https://github.com/dark98
I am testing the update of Josh and it goes very well, I keep in touch with the (telegram)
Is Lineage 13 marshmallow?
Enviado desde mi Moto G Play mediante Tapatalk
mario156090 said:
Is Lineage 13 marshmallow?
Enviado desde mi Moto G Play mediante Tapatalk
Click to expand...
Click to collapse
yup
Neither Josh nor I have any idea why this isn't working for me. I've seemingly 1:1 copied everything he's done (besides the distro of Linux I use) and I still get weird errors when he gets none. My last hope is going to be replace Ubuntu with Debian for my Android Building VM, and if that doesn't work I'm going to have to abandon this since I'm not sure how to fix the problems I'm getting.
In the meantime though, here is his build of Lin13 in case you all want to run that.
jasonmerc said:
Neither Josh nor I have any idea why this isn't working for me. I've seemingly 1:1 copied everything he's done (besides the distro of Linux I use) and I still get weird errors when he gets none. My last hope is going to be replace Ubuntu with Debian for my Android Building VM, and if that doesn't work I'm going to have to abandon this since I'm not sure how to fix the problems I'm getting.
In the meantime though, here is his build of Lin13 in case you all want to run that.
Click to expand...
Click to collapse
Running stable? Or is it unstable-ish?
NovaKenn said:
Running stable? Or is it unstable-ish?
Click to expand...
Click to collapse
100% stable, everything works great from what I can see. I flashed SomeFeaK kernel as well, so maybe that's attributing to it, but still everything works fine.
Quick update though, I found out from Josh that I apparently DON'T NEED JAVA 7 AT ALL during the compilation, contrary to what Lineage WIki's build instructions say for Lineage 13. Not only am I removing Java 7 completely and trying again, but I'm editing my manifests as well. I hope this works.
Great news guys! It built on my own system!!! I'm not sure if it'll actually boot (since I'm rebuilding with a some little goodies in there to thank you all for your partience) but this is a very good sign! As usual, stay tuned for updates!
EDIT 1: New build is up, check the download link for Lineage 10062017. I haven't been able to test if it boots yet, but it's there nonetheless
I just flashed my new 10-06 build over the 10-01 one Josh made, and I was actually able to boot it!!!!! Everything is officially working now!

Categories

Resources