Hello everyone,
I want to start theming and because I'm unsure of some stuff, I'm asking for help.
After some Googling, I found out that to start making CM7 Theme Chooser themes I have to download the CyanogenMod 7 source code first. I found this video that shows how to download all the necessary stuff. But here's the thing.
I'm running Ubuntu 10.04 installed with WUBI (inside Windows 32-bit) and I have only 7GB free space on my C drive for Ubuntu. If it is necessary, I can reinstall and give it more space. Also, I haven't installed Java and the Android SDK yet.
The guy on the video says that it will take aprox. 2 hours to download the source code. I'm guessing that the size of the code is huge.
I have also read that you need a very "strong" computer to compile the CM7 source (I don't know if this applies here).
Having said all those, is my computer able to handle these and do I have enough free space?
Can't I just download the T-Mobile part instead of the whole source code?
A pc with 4gb ram and i5 cpu need about 0.5 hour to compile cm7 source...
But I need it just for themes. Can't I download just the T-Mobile source?
Sent from my X8 using XDA
CM7 sources eats up approx 50gb of your drive.
Why not start with a dummy rom to theme? (Im not certain)
i dont think so for theming you need whole cm7 source...just need to learn xml...i know somewhere on xda a TUT....lemme find it...
cm6 source code was 11.6 gb....and i guess cm7 source is somewhere around 22.xx gb
My interenet connection is darn slow (40 kb/s...lmfao)...otherwise i would have my own sources P...lol)....if anybody can upload it....well downloading tons of gb without able resume it is painful....
PS-i have cm6 source....it took nearly 8-10 days to download....net bill was huge !!! and my dad nearly threw me out of the house...anyway who uses froyo now...
EDIT-link: http://forum.xda-developers.com/showthread.php?t=964391
Thanks for the link. Gonna use that one because I really don't see the point in downloading the whole CM7 source.
Thread solved.
Related
Can someone please explain how to set up CM on my PC so that I can run in an emulator and do some dev? Preferrably using Eclipse IDE.
Thanks!
Nexus One
CM 5.0.5.3
Yeah great post! I'm also looking forward to start dev'ing.
Did you already set up the Android SDK?
Yup. Android SDK is set up.
I just read [source.android.com/download] that you can't compile the Android source on Windows. That basically kills it for me at this time until I get my hands on a non-Windows machine.
Basically, I want to make changes to webkit for adding Arabic support. Can this be done without the above requirement?
daiski said:
Yup. Android SDK is set up.
I just read [source.android.com/download] that you can't compile the Android source on Windows. That basically kills it for me at this time until I get my hands on a non-Windows machine.
Basically, I want to make changes to webkit for adding Arabic support. Can this be done without the above requirement?
Click to expand...
Click to collapse
I'd grab a VMware image for e.g. Ubuntu Server 9.10 (http://www.thoughtpolice.co.uk/vmware/) and use some of the free VMware versions (e.g. Player). Then follow the instructions on Cyanogenmod Wiki to get the source code and build your own system image. There should be plenty of information about how to build it, and support on IRC or the forums. Once you're past that, you can start tinkering with the Webkit code. Webkit is part of the framework (I believe), and probably has a lot of dependencies on it, so you probably cannot build it without the rest.
Maybe you want this thread to be moved to the Development forum.
Thanks for the tips robert I'll get right on that!
This thread was in the Development forum and was moved here by a moderator.
Ah btw, I thought about VMWare Player again. I don't think you can add another disk there, or at least, it's complicated (http://communities.vmware.com/thread/158454). So you might want to use VMWare Server, which is free, too. You will need a couple of gigabytes for the source code, intermediate build files, etc.
robert-qfh said:
Ah btw, I thought about VMWare Player again. I don't think you can add another disk there, or at least, it's complicated (http://communities.vmware.com/thread/158454). So you might want to use VMWare Server, which is free, too. You will need a couple of gigabytes for the source code, intermediate build files, etc.
Click to expand...
Click to collapse
Can you explain why I'd need to add another disk?
Depends on how they set up the disk when they created the image. If they made it large enough, you don't need another disk.
Hi, first of all I hope this is the right place for this if not please close/move and tell me the right place to ask.
I am planning to improve the CM-FM app for our N1s, it works but there is a lot of room for improvement (named stations, autosearch, overriding national limits...).
The problem is that I am working on a Windows machine and the FM app needs the modified CM framework classes to compile, it seems there is no option to compile the full CM distribution under Windows.
But it shouldn't be too difficult given the CM framework compiled to use it with android-SDK and eclipse to build just the app.
So I ask here if someone can provide me the compiled classes.
It would be great to have them published with the nightlies, but as I don't think there would be a lot of changes in this part probably I can work with an outdated version for some time.
Why don't you use a virtual machine with Linux for this?
Of course that's a last resource but surely there are people out there that can provide this classes from their last compilations without problems and maybe this can help other developers also.
You'd probably want to be able to compile CM anyway so just installing Ubuntu 64bit in Virtualbox will work fine and is free. Make sure to enable Hardware Virtualization in your BIOS if your CPU supports it.
I do want to compile CM just the radio app, otherwise I would have installed a linux.
Sent from my Nexus One using XDA App
frisco82 said:
I do want to compile CM just the radio app, otherwise I would have installed a linux.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Why so stubborn? It literally takes less than a few hours to install, download sources, and compile your classes. Instead, you'd rather post here, and sit in waiting for who-knows-how-long to get an answer?
Not flaming, just trying to follow your thought process...
Please note that this is a guide to how to setup an environment to create your own ROM, and to build a test AOSP ICS Rom that will work on an emulator. While it is possible to do all this in 32-bit Win 7, you will find it much (!) easier in 64-bit Win 7. The intention is to allow all the folks who have said they'd like to work on a ROM to get their feet wet. If you complete all the steps in this guide you will have a Vanilla ICS Rom that works in the Android Emulator. You would still need to modify the kernel for the Tegra and add the special radio and other drivers before porting to the Streak.
Of course you can skip step 4 if you are willing to either dual-boot Ubuntu, or go into Ubuntu full time. However I figure a lot of folks on here are still on Windows for one reason or another.
1) Make sure that the ROM for your Windows 7 computer is set to allow Virtualization. If you have a Core i7 this will be the default. Otherwise you will need to make sure to set it manually through the Setup that should come up before BOOT.
2) Download VirtualBox 4.1.8
DL Link here for VB:
http://download.virtualbox.org/virtualbox/4.1.8/VirtualBox-4.1.8-75467-Win.exe
DL Link here for VB Extensions (necessary for USB, shared folders, etc):
http://download.virtualbox.org/virt...alBox_Extension_Pack-4.1.8-75467.vbox-extpack
3) Download Ubuntu 11.04 64-bit
DL Link here:
http://www.ubuntu.com/download/ubuntu/download
Make sure (!) to select the 64-bit version before clicking download
4) Install VirtualBox and Ubuntu:
Install and Setup Guide:
http://www.sevenforums.com/tutorial...ndows-7-virtual-machine-using-virtualbox.html
(Note that some of the images from this guide are from an earlier version of Ubuntu)
I personally recommend that as long as you have at least a Quad Core that you give your VB machine Two Cores and Two Gigs of RAM. For the HD size of your Virtual HD remember that the Android Source Code is almost 16 Gigs. For speed and other purposes I suggest creating a fixed size 80 Gig (or larger) Virtual HD. While this can be on an external drive, if you have room on an internal drive that will also improve performance.
5) Install the Toolchain (Android Build Environment):
http://mjanja.co.ke/2011/11/building-android-4-0-on-ubuntu-11-10/
The first three steps will take between 1-2 hours. Step 4 will take an hour or so as well. Step 5 takes multiple hours due to the size of the Android repo source library. Plan accordingly
Hope this helps!
Looks good, but its way easier to use a direct Ubuntu installation, dude.
So far as i can see, you can use the sdk on 32-bit, too.
Mind everyone he said this was for AN EMULATOR
giveen said:
Mind everyone he said this was for AN EMULATOR
Click to expand...
Click to collapse
And that it still requires tuning for the Tegra chip and the custom radios. This is not a new ROM, rather it is what you would need to do to setup an environment to create a ROM.Just saw so many folks saying they would like to help, that it seemed to make sense to show them how to get started. If anyone has gone through this and is ready to take that next step, this would be a good place to let folks know.
exebreez said:
Looks good, but its way easier to use a direct Ubuntu installation, dude.
So far as i can see, you can use the sdk on 32-bit, too.
Click to expand...
Click to collapse
Support on 32-bit is "experimental" according to Google. As for a direct install, that'sonly true if you are ready to convert to Linux or dual boot. On a fast machine having the VM is actually pretty quick, and allows you to mess up without impacting everything else.
It's a tuto to creat a ROM for a smartphone or a computer?
Samoht59 said:
It's a tuto to creat a ROM for a smartphone or a computer?
Click to expand...
Click to collapse
This is more of a guide on how to build an environment were you can begin to build android.
How to Compile Skia Rendering Engine to a rom. (for Indic Support)
rahulsby said:
How to Compile Skia Rendering Engine to a rom. (for Indic Support)
Click to expand...
Click to collapse
Missing a link?
USB Driver
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/ASUS_Android_USB_drivers_for_Windows_20150212.zip
ZE550ML ROM
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/UL-Z008-WW-2.12.40.9-user.zip.secure
ZE551ML ROM
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.12.40.9-user.zip.secure
Kernel source
ZE550ML/ZE551ML
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/zenfone2_2_12_40.zip
Great!! Looking forward for great dev support..
Fire code said:
USB Driver
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/ASUS_Android_USB_drivers_for_Windows_20150212.zip
ZE550ML ROM
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/UL-Z008-WW-2.12.40.9-user.zip.secure
ZE551ML ROM
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.12.40.9-user.zip.secure
Kernel source
ZE550ML/ZE551ML
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/zenfone2_2_12_40.zip
Click to expand...
Click to collapse
Links for ZE551ML and ZE550ML ROMs are broken.
BACKUP
Quote:
Originally Posted by Fire code
USB Driver
https://drive.google.com/open?id=0B-1_qo5woThsQkNWQnVwZG9CVzA&authuser=0
ZE550ML ROM
N/A(sorry ~i didn't backup this~ )
ZE551ML ROM
https://drive.google.com/open?id=0B-1_qo5woThsTnM3bjQxaHJoUzg&authuser=0
Kernel source
ZE550ML/ZE551ML
http://dlcdnet.asus.com/pub/ASUS/Zen...e2_2_12_40.zip
https://drive.google.com/open?id=0B-1_qo5woThsOHhkTUNEUFItdFU&authuser=0
I can't wait tell I get this device. Nothing but good old cyanogenmod and aosp roms.
Sent from my SM-T230NU using XDA Free mobile app
Anyone rip any apps out and had success with them running on AOSP yet?
Do you guys think there will be an Ubuntu Touch edition for the ZenFone 2? It has an Intel CPU, I really wish that.
update link
USB Driver:
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/ASUS_Android_USB_drivers_for_Windows_20150212.zip
ZE500CL
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500CL/UL-ASUS_Z00D-WW-12.16.4.3-user.zip
ZE550ML
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/UL-Z008-WW-2.12.40.11-user.zip
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550ML/UL-Z008-WW-2.12.40.9-user.zip
ZE551ML
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.12.40.11-user.zip
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/UL-Z00A-WW-2.12.40.9-user.zip
hp420 said:
Anyone rip any apps out and had success with them running on AOSP yet?
Click to expand...
Click to collapse
You can get some ZenFone 2 apps From :-
I have deodexed rom.
and ported some apps and they are working flawlessly on CM11 without any bug.
http://forum.xda-developers.com/and...enfone-2-apps-port-root-t3073195#post59906345
ThunderSky7 said:
You can get some ZenFone 2 apps From :-
I have deodexed rom.
and ported some apps and they are working flawlessly on CM11 without any bug.
http://forum.xda-developers.com/and...enfone-2-apps-port-root-t3073195#post59906345
Click to expand...
Click to collapse
Deodexed rom meaning you have a zenfone 2 stock deodexded rom? Do you have a link to it or the rom is private?
You should add screenshots.. :good:
thanks for drivers
sooo much repo'ing to get AOSP before the compiling even begins. There's gotta be a better way for them to maintain the repository. :/
Edit:
After downloading around 40 gigs of files from AOSP, won't compile on our phones. Looks like build tools are only 64-bit and the Debian Jessie chroot I'm using on the phone isn't allowing the 64-bit tools to execute. Our kernel reports that it IS in fact x86_64, but I can't seem to find the phone's /lib64 directory to map to the chroot. So, something that could be fun is now a huge headache -- may need to put together a pc just to build this kernel & hope I still have enough bandwidth from my ISP to repo another 40 gigs.
ycavan said:
sooo much repo'ing to get AOSP before the compiling even begins. There's gotta be a better way for them to maintain the repository. :/
Edit:
After downloading around 40 gigs of files from AOSP, won't compile on our phones. Looks like build tools are only 64-bit and the Debian Jessie chroot I'm using on the phone isn't allowing the 64-bit tools to execute. Our kernel reports that it IS in fact x86_64, but I can't seem to find the phone's /lib64 directory to map to the chroot. So, something that could be fun is now a huge headache -- may need to put together a pc just to build this kernel & hope I still have enough bandwidth from my ISP to repo another 40 gigs.
Click to expand...
Click to collapse
It's already several years ago Android build tools migrated to x64-only. So, you cannot build Android (even 32bit version) on x32 machine.
Zenfone 2 kernel is 64bit. But Android itself is 32bit. You still can start 64bit binaries if you want. I'm using 64bit busybox and some other utilities I've made.
I didn't try to compile Zf2 kernel yet because there is no unlocked bootloader exist, so you simply can't boot your own kernel.
I was able to apt-get lib64 on debian jessie ( was called libc6-amd64 ) & that moved things along until the assembler refused to load libz.so. No amount of looking around helped figure that one out since libz.so did exist.
This is just something fun to do while waiting for the unlocked bootloader. Wouldn't it be nice to be able to just compile your own kernel on your phone?
Compilation requires a lot of typing in command line. I cannot imagine doing this on phone. It's simply crazy. I'm not even talking about time needed for compilation.
I'm using PC (with linux VM) to compile everything.
sorg said:
Compilation requires a lot of typing in command line. I cannot imagine doing this on phone. It's simply crazy. I'm not even talking about time needed for compilation.
I'm using PC (with linux VM) to compile everything.
Click to expand...
Click to collapse
@sorg..so currently is there anything that you have produced for zenfone 2? and is it possible for this phone to be developed once asus release and unlock the BL?
cangcan said:
@sorg..so currently is there anything that you have produced for zenfone 2? and is it possible for this phone to be developed once asus release and unlock the BL?
Click to expand...
Click to collapse
Yes, i've compiled many binaries already.
Of course it's possible to develop for ZF2. There is ASUS Nexsus Player (fugu) device in CM12 repository which is basically very close to ZE550/ZE551. So, there is already a lot of code in Cyanogenmod. But, i prefer stock ROM anyway.
sorg said:
Yes, i've compiled many binaries already.
Of course it's possible to develop for ZF2. There is ASUS Nexsus Player (fugu) device in CM12 repository which is basically very close to ZE550/ZE551. So, there is already a lot of code in Cyanogenmod. But, i prefer stock ROM anyway.
Click to expand...
Click to collapse
That's good news sorg, great to know you've been getting some code flowing while waiting for the bootloader unlock tool.:thumbup: I'll have to check out your repositories when I get the chance, especially since I wanted the device tree for my rom projects.
Sent from the Ace's MB865 using Tapatalk
edit: nvm
Here anyone can give me clues why i'm getting this errors?I searched on Google but didn't get any proper solutions.I'm building a cynogenmod rom from the source and following cm guide.I need help.
Thanks in advance.
Røbin said:
Here anyone can give me clues why i'm getting this errors?I searched on Google but didn't get any proper solutions.I'm building a cynogenmod rom from the source and following cm guide.I need help.
Thanks in advance.
Click to expand...
Click to collapse
Most of the errors you can ignore. Only concentrate on the error thats actually stopping the build. I don't know the spec of your pc but you need as much free space on your drive as you can get, at least 50 Gb.. 100 Gb is better.. Also an minimum of 4 Gb RAM, 8 Gb is better and so on for a near error free build.. If someone wants to build MM on a old machine, it becomes difficult as the spec of the machine plays a huge part in the build process.. @Daedroza has given you the commands and tips/tricks but i personally think the problems are with the spec of your machine and/or the setup..
hagar006 said:
Most of the errors you can ignore. Only concentrate on the error thats actually stopping the build. I don't know the spec of your pc but you need as much free space on your drive as you can get, at least 50 Gb.. 100 Gb is better.. Also an minimum of 4 Gb RAM, 8 Gb is better and so on for a near error free build.. If someone wants to build MM on a old machine, it becomes difficult as the spec of the machine plays a huge part in the build process.. @Daedroza has given you the commands and tips/tricks but i personally think the problems are with the spec of your machine and/or the setup..
Click to expand...
Click to collapse
In virtual box I set hard disk to 80gb to store all the necessary files and tools and my pc have 4gb ram so virtual box suggested me to only use minimum 2gb of ram.So should I now give the full ram power to the building process?
Worth a try brother.. My machine has 4gb RAM but it also gave errors building MM.. Recommendations are for 8 or more gb RAM.. AOSP for lp is also taking a massive amount of resources on the machine..
hagar006 said:
Worth a try brother.. My machine has 4gb RAM but it also gave errors building MM.. Recommendations are for 8 or more gb RAM.. AOSP for lp is also taking a massive amount of resources on the machine..
Click to expand...
Click to collapse
Didn't work. pc hang and need to restart.So maybe I need to virtually increase the ram somehow.
hagar006 said:
Worth a try brother.. My machine has 4gb RAM but it also gave errors building MM.. Recommendations are for 8 or more gb RAM.. AOSP for lp is also taking a massive amount of resources on the machine..
Click to expand...
Click to collapse
Did you check log that I attached? Dose that really mean my pc don't have enough amount of resources?
Yes I looked at the log and getting a whole ream of errors is usual but only concentrate on the error that stopped the build.. I personally would use the command "make clean", hand over more RAM to the VM and start the build again..
hagar006 said:
Yes I looked at the log and getting a whole ream of errors is usual but only concentrate on the error that stopped the build.. I personally would use the command "make clean", hand over more RAM to the VM and start the build again..
Click to expand...
Click to collapse
i can't set more than 3gb ram for virtual box.so 3gb is enough?and cleaning just waste my time but no good results
No, those are very poor specs for building ROM. I have 8 gigs DDR4, i7-6700 with water-cooling(<-- water cooling was to exaggerate ).
I don't use VMbox, and my builds usually finish in 40 minutes on HDD.
Regarding this thread post #59 everybody gets build errors and they are very verbose. Fix it yourself if you want to learn and google will help you as it help me(You were really asking easy ones bro you didn't even knew basic fixing deps)
Building with VMbox with low-specs is a long shot.
Before creating more threads and queries :
repo sync -j4
source build/envsetup.sh
breakfast dogo
make clean
make bacon -j16 (If you keep getting different errors, reduce 16 --> 8 --> 4 and also use make clean everytime).
Daedroza said:
No, those are very poor specs for building ROM. I have 8 gigs DDR4, i7-6700 with water-cooling(<-- water cooling was to exaggerate ).
I don't use VMbox, and my builds usually finish in 40 minutes on HDD.
Regarding this thread post #59 everybody gets build errors and they are very verbose. Fix it yourself if you want to learn and google will help you as it help me(You were really asking easy ones bro you didn't even knew basic fixing deps)
Building with VMbox with low-specs is a long shot.
Before creating more threads and queries :
repo sync -j4
source build/envsetup.sh
breakfast dogo
make clean
make bacon -j16 (If you keep getting different errors, reduce 16 --> 8 --> 4 and also use make clean everytime).
Click to expand...
Click to collapse
I googled every problem that I faced but no specific result was found.I need to understand those errors meanings but can't get any help from Google. So I needed help from experienced developer like you.Yes now I know and can understand some errors that require tools to solve it but those java error are complicated for me to understand.So I'm now trying again from the beginning following your tips.But as you said my pc spec are old to build a rom so maybe this will be my last try.I need to upgrade my pc first.I have a question if my pc spec not good enough to build cm13 so can I build old custom android version like lollipop or kitkat?because someone (can't remember his name)told me cm13(Android Marshmallow) need higer spec to build.
Daedroza said:
No, those are very poor specs for building ROM. I have 8 gigs DDR4, i7-6700 with water-cooling(<-- water cooling was to exaggerate ).
I don't use VMbox, and my builds usually finish in 40 minutes on HDD.
Regarding this thread post #59 everybody gets build errors and they are very verbose. Fix it yourself if you want to learn and google will help you as it help me(You were really asking easy ones bro you didn't even knew basic fixing deps)
Building with VMbox with low-specs is a long shot.
Before creating more threads and queries :
repo sync -j4
source build/envsetup.sh
breakfast dogo
make clean
make bacon -j16 (If you keep getting different errors, reduce 16 --> 8 --> 4 and also use make clean everytime).
Click to expand...
Click to collapse
Hello sir please for the last time help me with this,I"m now building rom using architekt in VB and its default java jdk version is 6 but i want to change it to 7.I"ve tried your given command but its showing command not found.what should i do?i can use command to sync repo,and other command to download and setup all other thing to prepare build environment.Solution for architekit is very rare in google.So i need some help.This is the link for architekit that i found in google http://nathanpfry.com/architekt/
EDITroblem Solved and founded solution.