[Q]Compile AOSP Gingerbread to ''specific" Device. - Android Q&A, Help & Troubleshooting

Hello !
In Tutorial about compile AOSP GB i see one think. When I write in terminal lunch i have list devices which i can compile. So I am in trouble becouse i don't know how can i add My device. I Download Source GB to my device but I have external folder, bionic and probably hardware (and kernel) So My Question is - How can I Add My phone to compile list, to compile flashable zip work?:fingers-crossed:

cheqolada said:
Hello !
In Tutorial about compile AOSP GB i see one think. When I write in terminal lunch i have list devices which i can compile. So I am in trouble becouse i don't know how can i add My device. I Download Source GB to my device but I have external folder, bionic and probably hardware (and kernel) So My Question is - How can I Add My phone to compile list, to compile flashable zip work?:fingers-crossed:
Click to expand...
Click to collapse
What is your device?
Sent from my GT-I9100 using xda app-developers app

xSkArx said:
What is your device?
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Alcatel Ot - 908 / T-Mobile Move.

Related

[Q] Building Vibrant Source Code

I've been digging through the Vibrant forums for a while now, and I would like to try my hand at building the Froyo release. I downloaded the source and can compile the kernel just fine, but the platform part I am in the dark. Could someone help me with how to build the platform part? Once I get that done, I'll dig around to see how to convert it over to a flashable zip. Thanks in advance.
Slashazard said:
I've been digging through the Vibrant forums for a while now, and I would like to try my hand at building the Froyo release. I downloaded the source and can compile the kernel just fine, but the platform part I am in the dark. Could someone help me with how to build the platform part? Once I get that done, I'll dig around to see how to convert it over to a flashable zip. Thanks in advance.
Click to expand...
Click to collapse
Hey. I myself learning to build my own custom rom too!
Sent from my SGH-T959 using XDA Premium App
The platform source has not been released (and never will be). Only kernel source is required to be released.
Sent from my SGH-T959 using XDA App
In the source package there is a platform tar file. Do I download the AOSP code and overwrite those folders with what was in the platform tar from Samsung? Then build like AOSP?
go into android developement section here on xda or Ask some of developers here, if u ask nicely i think they might help u.

[Q] Quick questions on building from source

I am trying to build GB aosp from source on ubuntu for my phone samsung conquer 4G. I already have the source and in it there is a platform and in the text for it it says to put those files in the folders in the source than build. I am wondering if I would only replace files and not put in new ones? Or if I would even do this. If I shouldnt, how would I even port after its built and does anyone know what poison I should choose? Thanks a bunch
Any reason why GB? ICS or JB would be better wouldn't it? I'm not the best person to try to answer your question, but you will have to supply a little more info, I will help if I can.
onlychevys said:
Any reason why GB? ICS or JB would be better wouldn't it? I'm not the best person to try to answer your question, but you will have to supply a little more info, I will help if I can.
Click to expand...
Click to collapse
Thanks, i am building gb because my phone does not have any official roms like cm,aosp,etc. I am the only person with the device that is capable of building from source i have already built a kernel. Also i am doing gb because my phones version is 2.3.6 and it should be easier to port than ics or jb. If you need any more info i will be glad to give you it.
bump
itzdarockz said:
I am trying to build GB aosp from source on ubuntu for my phone samsung conquer 4G. I already have the source and in it there is a platform and in the text for it it says to put those files in the folders in the source than build. I am wondering if I would only replace files and not put in new ones? Or if I would even do this. If I shouldnt, how would I even port after its built and does anyone know what poison I should choose? Thanks a bunch
Click to expand...
Click to collapse
Could use some clarification
When you refer to the source are you talking aosp? Or your device source?
If your referring to the device source that goes in working/device/manufacturer/devicename/
Could you provide a screenshot of the device source? Wanna make sure it looks like a proper device tree
As for poison...you just add your device to the lunch menu and build it...create a file in your device tree called vendorsetup.sh (just right click and go to create new document and name it that) then open it with a text editor (gedit) and type this and save it :
Code:
add_lunch_combo full_devicename-eng
(replace "devicename" with your device
Then in the root of your working folder type
Code:
. build/envsetup.sh
lunch
Choose your device then type
Code:
make otapackage
or to fully utilize your CPU
Code:
make -j# otapackage
replacing "#" with the number of CPU cores your computer has plus 1 or 2...so for dual core I usually do male -j4 otapackage
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Could use some clarification
When you refer to the source are you talking aosp? Or your device source?
If your referring to the device source that goes in working/device/manufacturer/devicename/
Could you provide a screenshot of the device source? Wanna make sure it looks like a proper device tree
As for poison...you just add your device to the lunch menu and build it...create a file in your device tree called vendorsetup.sh (just right click and go to create new document and name it that) then open it with a text editor (gedit) and type this and save it :
Code:
add_lunch_combo full_devicename-eng
(replace "devicename" with your device
Then in the root of your working folder type
Code:
. build/envsetup.sh
lunch
Choose your device then type
Code:
make otapackage
or to fully utilize your CPU
Code:
make -j# otapackage
replacing "#" with the number of CPU cores your computer has plus 1 or 2...so for dual core I usually do male -j4 otapackage
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
When i mean the source I meant my phones. It has two zips, kernel and platform. It has txt files on how to build the kernel and the update. And thanks man. The screen is attatched. The folders are build, extension, external, libcore, and vendor.
i was afraid of that...doesnt look like a device tree...and unfortunatly i have no expiernece creating a device tree from scratch/from manufacturer source...
anyways heres an example of two device tree i use...
mg2195 said:
i was afraid of that...doesnt look like a device tree...and unfortunatly i have no expiernece creating a device tree from scratch/from manufacturer source...
anyways heres an example of two device tree i use...
Click to expand...
Click to collapse
Thats why it says in a txt to replace files in the aosp source with the ones in the folder.
itzdarockz said:
Thats why it says in a txt to replace files in the aosp source with the ones in the folder.
Click to expand...
Click to collapse
Well do what it says then...it has .mk files and looks like that when placed in aosp?
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Well do what it says then...it has .mk files and looks like that when placed in aosp?
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Actually I think we do have a non manufacturer source does this look good? https://github.com/utkanos/android_device_samsung_SPHD600
itzdarockz said:
Actually I think we do have a non manufacturer source does this look good? https://github.com/utkanos/android_device_samsung_SPHD600
Click to expand...
Click to collapse
Yeah...looks small...but that's a device tree
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Yeah...looks small...but that's a device tree
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Doesn't building, I made the tree like you said with these files no luck.. I went to the Crespo 4gs and it has two folders.. But mine has 1. Also do u think I should port over some of the files i dont have from the crespo 4gs folder
itzdarockz said:
Doesn't building, I made the tree like you said with these files no luck.. I went to the Crespo 4gs and it has two folders.. But mine has 1. Also do u think I should port over some of the files i dont have from the crespo 4gs folder
Click to expand...
Click to collapse
Wouldnt hurt to try
Sent from my HTC PH39100 using Tapatalk 2

xt910 + 4.2 = ?

AOSP 4.2
xt910
One epic fail in vendor name
No ICS precompiled files, no JB 4.1 precompiled files.. no custom kernels...
the only pure Google sources (and SGX drivers of course)
Do all the features work in this build?
hmmm...I can't believe that one guy makes 4.2 run on Razr without any help, just two days after source was released.
Or did you ported this rom to the Razr? Where is an real proof and why that less information? Please make it clear! And if you like to work together with us, contact me.
btw i got it runned in 5 hour after manifest comes.
And no, this is NOT fully worked fw. But had ui worked as well as many basic subsystems
Sent from my XT910 using xda app-developers app
Why don't you show us some more?
Like they said in a forum i used to read.
screen or fake ! !
This screen is just notice that no problem with 4430+4.2
What do you want to see?
Sent from my XT910 using xda app-developers app
Do not work on net subsystem yet. Have no time... iwill try today work on it...
Sent from my XT910 using xda app-developers app
Well if this is for real, first thanks.
Second if you dont have too much time , you should set up a git and share your work i m sure you ll get help.
And could you show us quick settings from status bar ?
sevenup30 said:
Well if this is for real, first thanks.
Second if you dont have too much time , you should set up a git and share your work i m sure you ll get help.
And could you show us quick settings from status bar ?
Click to expand...
Click to collapse
BTW point me to project that have a problem with 4.2 and I will push needed patches....
It seems like there are no screenshot bug on stock kernel, interesting.
lukas77 said:
It seems like there are no screenshot bug on stock kernel, interesting.
Click to expand...
Click to collapse
I do not like custom kernels but what problem are you talking about ?
silentjet said:
I do not like custom kernels but what problem are you talking about ?
Click to expand...
Click to collapse
I didn't say I have problem with this. On all 4.1 ROMs is screen shot and rotation bug, picture is downscaled, on 4.2 is OK. Nice job dude
great work, get in contact with other developers so u can hopefully continue development for xt910:victory:
Which recovery do you use to install it?
Wombatino said:
Which recovery do you use to install it?
Click to expand...
Click to collapse
???
installed via bootmenu
silentjet said:
???
installed via bootmenu
Click to expand...
Click to collapse
He wants to know how do you flash it to the phone for testing or whatever...For which recovery do you build this rom?
awesome I hope 4.2 comes to this device really looking forward to it
silentjet said:
BTW point me to project that have a problem with 4.2 and I will push needed patches....
Click to expand...
Click to collapse
or maybe setup a new one. Pure AOSP + your patches.
My project here is about making a spyder ROM with zero dependent on 3rd-party git.
- Upstream source is either AOSP or CyanogenMod.
- Overlay git for framework changes
- CM style device tree. Prebuilts binaries is pull directly via adb / image file (system.img)
Thanks for the screenshots mate, and i apologize for thinking it was a fake. (you know we've been sceptical over here )
Anyway, i think you should team up with whirleyes, sharing work will make more dev to help you i think.
I'm really interested to know what you did you make pure aosp booting on xt910.

[WIP][UNOFFICIAL][ProtoU]ParanoidAndroid 2.99 port from One V[23/12/2012]

Ok, guys here's the link of the ParanoidAndroid ROM i have been trying to port from One V. I have the permission from 1ceb0x.
LINK: http://d-h.st/Rkj
Gapps: http://d-h.st/ul6
Thanks to 1ceb0x, for giving me permission to use his ROM, and Lloir for his CM9 base...
How to flash:
1. take a nandroid backup.
2. wipe cache and data
3. go to fastboot mode and connect your phone to pc
4. place system.img in the same directory as fastboot
5.open command line (terminal) and go to your fastboot directory
6. type fastboot flash system system.img
7. reboot
We really need stable 4.1 AOSP for me to continue working on this. Waiting.
Changelog
Code:
0.1-----Initial build
0.2-----Used Lloir's vendor and device trees, tweaked build.prop, removed hTC crap
0.3-----Rebased, now using Lloir's CM9. Also, link is now on Dev-Host.
0.4-----Fixed updater-script.
0.5-----Now ROM packed in system.img
Stereo8 said:
Ok, guys here's the link of the ParanoidAndroid ROM i have been trying to port from One V. I have the permission from 1ceb0x.
LINK: https://dl.dropbox.com/u/65113140/Desire_X_ParanoidAndroid_2.50_JB_4.1.2.zip
Gapps: https://dl.dropbox.com/u/65113140/gapps-jb-20121017-KonstaKANG.zip
Thanks to 1ceb0x, for giving me permission to use his ROM, and infernal77, for making a 1.18 software base...
Test this for me guys and I'm not responsible if anything happens to your device.
Good luck!
Click to expand...
Click to collapse
Cool! , just one problem dude you used the HTC Desire X Sense 1.18 as a base which is impossible since you need AOSP, AOKP, CM10 or any other Jellybean ROM for the Desire X as a base for this to boot , or am I wrong? but anyway testing
The Android Manual said:
Cool! , just one problem dude you used the HTC Desire X Sense 1.18 as a base which is impossible since you need AOSP, AOKP, CM10 or any other Jellybean ROM for the Desire X as a base for this to boot , or am I wrong? but anyway testing
Click to expand...
Click to collapse
yea, I thought something like that will happen... Well if it boots then I'm awesome, right..
Stereo8 said:
yea, I thought something like that will happen... Well if it boots then I'm awesome, right..
Click to expand...
Click to collapse
Yeah
ROM updated. I used system/lib, etc, and bin files from Lloir's device tree.
Does it boot?
Sent from my HTC Desire X using xda premium
I have no ideaaa... I don't have the phone...
Sent from my ToasterOven running Toastdroid 4.2
Hey stereo, I tried it, didn't boot (stopped at the HTC logo), here's the logcat
https://www.dropbox.com/s/lb05u0rmbleqlym/logcat_booting.txt
infernal77 said:
Hey stereo, I tried it, didn't boot (stopped at the HTC logo), here's the logcat
https://www.dropbox.com/s/lb05u0rmbleqlym/logcat_booting.txt
Click to expand...
Click to collapse
that's not even a whole lolcat
Lloir said:
that's not even a whole lolcat
Click to expand...
Click to collapse
Ok, don't know what I did wrong, it's "adb logcat >logcat.txt" when you reboot out of recovery after flashing, right ?
edit: Ok, here's what I did second time : full wipe, flash the rom and google apps, then opened my platform-tools folder and typed "adb logcat -v long >logcat.txt" which gave me this : https://www.dropbox.com/s/gszb1ked7e8yjky/logcat.txt
Like first try, the phone hangs during boot, with HTC logo
Stereo8 said:
I have no ideaaa... I don't have the phone...
Sent from my ToasterOven running Toastdroid 4.2
Click to expand...
Click to collapse
Which phone have you previously used? If you wanna blind port, you should at least have some experience of an HTC device before. Just saying ....
Regards
Sent from my HTC Desire X using xda app-developers app
Finally I uploaded the newest build to Dropbox... It includes:
- Lloir's system/lib, etc, and bin files...
-Superuser instead of SuperSU
-Removed hTC crap
-Removed hTC crap from build.prop
-Tweaked build.prop
infernal77 said:
Hey stereo, I tried it, didn't boot (stopped at the HTC logo), here's the logcat
https://www.dropbox.com/s/lb05u0rmbleqlym/logcat_booting.txt
Click to expand...
Click to collapse
dude try porting CM9 fist because there is a base available for it all you need is permission from Llior and a boot.img for CM9
The Android Manual said:
dude try porting CM9 fist because there is a base available for it all you need is permission from Llior and a boot.img for CM9
Click to expand...
Click to collapse
Um, I'm not sure if I'll be able to, I've been trying to get an angle on how all this stuff works and I get the basics but when I look at github, it's like Chinese to me (or Taiwanese, since its HTC). I've looked at countless guides to port CM9, set up VMWare and Ubuntu 10 but it's a steep learning curve. Last month I maxed out our bandwidth (100 gig) trying to set up a local mirror for the source, which kind of defeated the purpose :laugh:
infernal77 said:
Um, I'm not sure if I'll be able to, I've been trying to get an angle on how all this stuff works and I get the basics but when I look at github, it's like Chinese to me (or Taiwanese, since its HTC). I've looked at countless guides to port CM9, set up VMWare and Ubuntu 10 but it's a steep learning curve. Last month I maxed out our bandwidth (100 gig) trying to set up a local mirror for the source, which kind of defeated the purpose :laugh:
Click to expand...
Click to collapse
Source of cm9 is 7gb including all proto device trees .you need an extra 15 gb just for building. I'll help you set all things up, you just have to put in some effort and time....My build from source is ready. Uploading.
Regards
Sent from my HTC Desire X using xda app-developers app
Yasir Javed Ansari said:
Source of cm9 is 7gb including all proto device trees .you need an extra 15 gb just for building. I'll help you set all things up, you just have to put in some effort and time....My build from source is ready. Uploading.
Regards
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
Here you go
http://d-h.st/QmB
regards
Sent from my HTC Desire X using xda app-developers app
Any test results?
Sent from my HTC Desire X using xda app-developers app
Yasir Javed Ansari said:
Any test results?
Sent from my HTC Desire X using xda app-developers app
Click to expand...
Click to collapse
Status 7 (No error Message)
The Android Manual said:
Status 7 (No error Message)
Click to expand...
Click to collapse
OK, back to topic, I'll test stereo's new one, this is his thread
Yasir, why not make a joint thread by anyone here that wants to participate in getting a CM9 to the DX ?
"Project DX" or something, hopefully there's as many people showing up to the party as in Project X (the movie) lol
when you do logcats let it run for about 5minutes -.- also for status 7 just do a recovery log (go to report error under advanced) and put it here i'll check back later

Latest cm10.1 compiling problem

Im trying using latest cm10.1 source to compile the latest cm10.1 for my old phone...i use this tutorial http://forum.xda-developers.com/showthread.php?t=1971645 and an old dev device tree that haves some bugs but at least it compiled for him properly...
First of all when i type
Code:
$ gedit ~/paranoid/.repo/local_manifest.xml
im getting after a while an error with term.apk and it stops..i can't do anything so i keep up... and i type
Code:
$ brunch u8800pro(my device)
after 10-15 minutes im getting this
Code:
make: * [/home/pikachukaki/cm10.1/out/target/product/u8800pro/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/omx_vdec.o] Error 1
always this error!!
and it stops completly...i sync the repo again...nothing....i delete the out folder and try again...nothing...im not very experianced with developing..this is my 1st test complety rom compile...anyone can help thanks!!
fatal: remove-project element specifies non-existent project: CyanogenMod/hardware/qcom/display
at least to this??anyone?
u might have a bigger error then that
mostly it says it above
post 8/15 lines of above the error her also
Sent from my S500 using xda app-developers app
SpaceCaker said:
u might have a bigger error then that
mostly it says it above
post 8/15 lines of above the error her also
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
At least an answer...i manage to pass the 2nd post error by fixing local_manifest.xml
but im still getting the error 1 now...in another cpp..i repo sync again...i will post entire log after getting the error again!!!
Whats the difference between git://github.com/CyanogenMod/android.git -b cm-10.1 and git://github.com/CyanogenMod/android.git -b jellybean???
pikachukaki said:
Whats the difference between git://github.com/CyanogenMod/android.git -b cm-10.1 and git://github.com/CyanogenMod/android.git -b jellybean???
Click to expand...
Click to collapse
jellybean is JB 4.1.2 and cm10.1 is cm10.1 4.2.2
Sent from my S500 using xda app-developers app
SpaceCaker said:
jellybean is JB 4.1.2 and cm10.1 is cm10.1 4.2.2
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Thanks i found another tutorial that uses first this command
lunch cm_devicename-userdebug
and then
make otapackage
That seems to make it through my errors...i dont know the difference between this and brunch...but it seems it work....
As you can think i dont have enought knowlage over coding and programming...i study only about the hardware...i wanna ask something if you don't mind...where the compile procedure find the kernel (boot.img) i dont see the kernel source inside my device tree...only a raw file called kernel!!!
pikachukaki said:
Thanks i found another tutorial that uses first this command
lunch cm_devicename-userdebug
and then
make otapackage
That seems to make it through my errors...i dont know the difference between this and brunch...but it seems it work....
As you can think i dont have enought knowlage over coding and programming...i study only about the hardware...i wanna ask something if you don't mind...where the compile procedure find the kernel (boot.img) i dont see the kernel source inside my device tree...only a raw file called kernel!!!
Click to expand...
Click to collapse
if u do this
. build/envsetup.sh
then it loads all devices
and then do
lunch
then u can see a list of wich devices are available
type the numbe of ur device and it selects it
thwn do make -j6 bacon
thata how i do build
as for kernel
it can be a prebuilt kernel
wich will be using some parts of system/core
Sent from my S500 using xda app-developers app
SpaceCaker said:
if u do this
. build/envsetup.sh
then it loads all devices
and then do
lunch
then u can see a list of wich devices are available
type the numbe of ur device and it selects it
thwn do make -j6 bacon
thata how i do build
as for kernel
it can be a prebuilt kernel
wich will be using some parts of system/core
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
The point is that it compiling all this time...its slow as hell too many cpp's but what can you do...
About the kernel so maybe the rom isn't bootable after this...maybe i have to replace it with a working 4.2.2 boot.img after this!!!
pikachukaki said:
The point is that it compiling all this time...its slow as hell too many cpp's but what can you do...
About the kernel so maybe the rom isn't bootable after this...maybe i have to replace it with a working 4.2.2 boot.img after this!!!
Click to expand...
Click to collapse
jup
also it can take sometimes up to 24 hour to a complete build
i so happen to use VMware soi can pause stop mine always
Sent from my S500 using xda app-developers app
SpaceCaker said:
jup
also it can take sometimes up to 24 hour to a complete build
i so happen to use VMware soi can pause stop mine always
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
No vmware was extremly slow to do other things too so i install ubuntu on a 2nd hard drive...24hours...omg!!
for nightlies i have to do the same again??
Code:
. build/envsetup.sh
lunch cm_devicename-userdebug
make otapackage
pikachukaki said:
No vmware was extremly slow to do other things too so i install ubuntu on a 2nd hard drive...24hours...omg!!
for nightlies i have to do the same again??
Code:
. build/envsetup.sh
lunch cm_devicename-userdebug
make otapackage
Click to expand...
Click to collapse
yeah sure
my total compile time is 8 hours
i use linux mint + gnome classic no effects
also the time depends on how much ram and cpu u have + if u have installed ccache
Sent from my S500 using xda app-developers app
SpaceCaker said:
yeah sure
my total compile time is 8 hours
i use linux mint + gnome classic no effects
also the time depends on how much ram and cpu u have + if u have installed ccache
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Nop i don't run the ccache command...phenom x4 with 4GB ram...its ok..my point was to learn now i found a proper device tree...its ok if it takes time..and also to help the community of my olderst phone that have no dev support at all!!!

Categories

Resources