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.
Related
Where should i start first to learn how to code for android, make roms and compile the android tree?
or just a good place to start?
From what starting point?
Building android to make custom builds involves knowing lots of things; java, c, linux, gcc build system, android platform, etc, etc.
To make apps you just need to know java and the android platform.
Start here: http://developer.android.com/
Code for Home screen Pull up Menu
I have a similar request but was unsure if I should start a new thread, If this needs to be moved my apologies (I also searched through Q&A forums as well and came up empty ). Where or how could I get the source code for the Home Screen pull up menu? I checked out the Google Source Code but it requires Linux or Mac OS and I run Windows Vista.
cingall said:
I have a similar request but was unsure if I should start a new thread, If this needs to be moved my apologies (I also searched through Q&A forums as well and came up empty ). Where or how could I get the source code for the Home Screen pull up menu? I checked out the Google Source Code but it requires Linux or Mac OS and I run Windows Vista.
Click to expand...
Click to collapse
i don't think you can compile the source code in windows
david1171 said:
i don't think you can compile the source code in windows
Click to expand...
Click to collapse
Yeah, I'm considering running Linux on my laptop alongside Vista, as I have hit dead-ends on a couple projects simply because you need Linux for different things . All I really need is a place that I could find the source; I had an idea that I proposed to mohsinkhan47 for his Vista theme and he asked me to find the code for the pullup menu. It would be much appreciated if anyone could guide me in the right direction.
i know where you can get the entire source code. grab it from here
Thanks for the link, that was the site that I went too before but says I need either Linux or Mac OS. Still scouring the android sites but coming up with nothing .
Yeah I do not think there is a way to compile the source in windows. I guess like stericson once said "you're going to have to get your hands dirty and use linux" (it was something like that.
Guess I gotta break my cherry sometime, thanks all for the advice.
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...
Now that we know that it is running custom version of ubuntu, anybody want try compiling and running xbmc on it ?
XBMC trunk already contains most of the patches for tegra 2 and more will applied soon according XBMC developer ( davilla ). We should be able to test it now ..
<davilla> ssh in, install build tools, git install xbmc trunk, build for tegra2 and see if it works
That would be AWESOME!! I myself was wondering about running XBMC on webtop.
I tried installing git, but apt-get threw a bunch of dependency errors. I tried "apt-get -f install" but it wanted to remove most of the installed packages because they were not needed.
Any updates ?
Instead of trying to install via git why not download the tar of it and extract it ...
Hey guys!
Any news about it?
I really would like to see XBMC on webtop´s atrix!
I found this for the bravehearts.
http://wiki.xbmc.org/index.php?title=HOW-
TO_install_XBMC_for_Linux_on_Ubuntu,_a_Step-by-Step_Guide
NOTE: I have not tried it. You are in the DEV section, any mod attempts that YOU make to YOUR phone are YOUR own responsibility.
It is not listed here .... https://launchpad.net/ubuntu/jaunty/armel?text=xbmc
So it probably has not been attempted.
I already did this steps but can´t work.
The XBMC is the most important thing to work for me on Atrix. I´ll wait for someone do that work,
brunnogama said:
I already did this steps but can´t work.
The XBMC is the most important thing to work for me on Atrix. I´ll wait for someone do that work,
Click to expand...
Click to collapse
I tried a couple of steps too, dependency hell. Not sure if it will be figured out in DEV section since it's more of an app thing.
I thought I saw a VM once that dev work could be done on. I'm on travel next week 10 hours of flight time plus sitting in Chicago for 3 hours both ways. Maybe I'll get motivated.
Oh man!
I hope you get motivated!
Really thanx!
You would need an x86 emulator or VM to run this I believe as it is only coded for x86. Running it through an emulator would be slow and unreliable or just plain broken most likely. Not to discourage anyone from trying.
XBMC Official Hardware Support List
Asking for a port of it would go in XBMC dev forums
the2dcour said:
You would need an x86 emulator or VM to run this I believe as it is only coded for x86. Running it through an emulator would be slow and unreliable or just plain broken most likely. Not to discourage anyone from trying.
XBMC Official Hardware Support List
Asking for a port of it would go in XBMC dev forums
Click to expand...
Click to collapse
Nope I've seen XBMC running on a beagleboard native, As well it ran very well. We have 2x the ram and 400mhz x2 more speed. So it should run.
I downloaded the XBMC through official site and one of the Readme file (README.armel) talks:
"
This is a port of XBMC for use on ARM Architecture.
As this is not an official version of XBMC, in-depth testing on various setups has not been done. USE WITH CAUTION!
For the purpose of this port, the following Hardware and Software was used.
Software: Scratchbox (cross-compiler) on a Linux (Ubuntu) machine.
Hardware: BeagleBoard (ARM Cortex-A8 with IMG POWERVR SGX).
The source code is based on XBMC for Linux - version 9.11 (Camelot)."
So, I think its possible to run on Atrix, correct? But I have to do a lot of hard things to try it and I´m not able to do it, but it´s a good news.
I think I'm getting lost here....
What is the intention for using XBMC within webtop? Streaming to or streaming from phone?
I've found these apps
https://market.android.com/details?id=com.plexapp.android
https://market.android.com/details?id=com.psa.android.media
http://code.google.com/p/android-xbmcremote/
Longterm features
Download media locally to device's SD card
Stream media to device
And here's the VM http://forum.xda-developers.com/showthread.php?t=992178
xPerfect virtual appliance - Android SDK r10 / NDK r5b - dev
dicksteele
I´ll try to explain (sorry, bad english)
I´ll conect my Atrix on dock HD and 2 hd extern (plugged on dock usb´s port).
So, trought the webtop, I open the XBMC and this show me the files (movies and tv series) on my HD´s.
XBMC has a nice e configurable interface.
I´ll look this apps!
Thanx!
Interesting......
I'd try it but going on travel tomorrow and I need my phone
http://www.debian-multimedia.org/dists/stable/main/binary-armel/package/xbmc.php
Hi man.
I´d tried it (the armel version) but appears a lot of dependecies and I could´t try to install it.
Here is xbmc dev forum with it but for tegra 2 reference board though:
http://forum.xbmc.org/showthread.php?t=71297&highlight=tegra
Is the Ubuntu running as a VM on Atrix4G ?
brunnogama said:
Hi man.
I´d tried it (the armel version) but appears a lot of dependecies and I could´t try to install it.
Click to expand...
Click to collapse
You need to use xbmc trunk which contains all the patches for tegra 2. Can you post what you have tried ? Any errors ?
GhostXtreme said:
Here is xbmc dev forum with it but for tegra 2 reference board though:
http://forum.xbmc.org/showthread.php?t=71297&highlight=tegra
Is the Ubuntu running as a VM on Atrix4G ?
Click to expand...
Click to collapse
I don't believe it's running as a VM, it's running as a full instance.
From what I can read on the XBMC threads there are some problems.
But I found a guide for the BeagleBoard that might help people get going, dont think it will run out-of-the-box with this guide.
http://elinux.org/BeagleBoard/GSoC/2010_Projects/XBMC
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?
Hi,
I have just bought a new Xperia Pro and Here is My first Contribution.Hope you guys like it.
I have tested it personally on the Unoffical MIUI port for PRO.But it should work on other Kernels and Xperia Devices as well.
I am posting a few Screens for you guys and as you can see lxde is already pre-installed for you guys.
Feel Free to comment
Disclaimer:-
I am Not responsible if anything Happens to your Phone.You do it at your own Risk and Responsibilty,
If you Screw Up then dont Blame Me.
I am not responsible for Anything.
What is chroot?
A chroot image is like a Virtual Machine where you are running an O.S within an O.S.The point of this is that you have a whole Linux System running on a phone where you can ofcourse access all the utilities available in Linux.and as it runs inside of android you dont need to flash anything and can use both the chrooted O.S and Android together.
Things required:-
1)Terminal
2)Root
3)Sdcard with atleast 2GB of free space
4)A Brain
Please Consider Donating to add to my late night coffee and Books Fund.
Link:-
https://www.dropbox.com/s/4k1f5l9jxy2nr9n/debian.7z
Mirror:-
http://www.4shared.com/archive/uNEXsuNS/debian.html?refurl=d1url
Note:
Please read the ReadMe.txt file attached to this post first for instructions.
A special request to all those who are donatinglease send me a P.M so that i know who you guys are.
Donators:-
None So Far
Thank you.
Posting Ubuntu over Here
Remember to Read the Read Me File First.
Link:-
https://www.dropbox.com/s/z7ekya7u7zo19p8/ubuntu.7z
Mirror:
http://www.4shared.com/archive/Qv0u_lWN/ubuntu.html
Mirror:
http://min.us/mZVpflpS5
Posting Back Track 5 Linux
Remember to Read the Read Me
Back Track linux Temp mirror(From My O2x Thread)
https://www.dropbox.com/s/ccf7lhfazl7li7u/btl.7z
Mirror:-
http://www.4shared.com/archive/EoGkvPD9/btl.html?refurl=d1url
NOTElease Download the file btl attached to this post and extract it on your computer and copy the btl file within and paste it in the btl directory downloaded from the above hosts replacing the old one.Now the chroot should run.
added a new Script and deleted the old one.Please use that now.I tested it personally on Stock and it is working perfectly.
As soon as it boots it asks if you wanna start VNC server?Press N and then follow the readme file.
Incase of any probs please let me know
and another
One More
Final Reserve
Nice Run..! First..
Nice work:good:
And im gonna donate [if you make mods I need]
But what is so usefull to have this??
xperiap said:
Nice work:good:
And im gonna donate [if you make mods I need]
But what is so usefull to have this??
Click to expand...
Click to collapse
A chroot image is like a Virtual Machine where you are running an O.S within an O.S.The point of this is that you have a whole Linux System running on a phone where you can ofcourse access all the utilities available in Linux.and as it runs inside of android you dont need to flash anything and can use both the chrooted O.S and Android together.check the Screenshots.
GO ahead:Try Ubuntu...it will give you a better Idea.
Hi! Have you tried this on stock kernel? I believe stock kernel doesn't have loop devices enabled and MIUI is a rebase of CM? Not sure though that's why I'm asking.
Riyal said:
Hi! Have you tried this on stock kernel? I believe stock kernel doesn't have loop devices enabled and MIUI is a rebase of CM? Not sure though that's why I'm asking.
Click to expand...
Click to collapse
The Miui i used was on Stock Kernel.The Kernel Does Support Loop devices.Miui is a Rebase of CM but the loop functionality is related to Kernel.So,Yes it Works on Stock Kernel on Locked/Unlocked Bootloaders Both as we are not flashing anything.
Anyway Give Ubuntu a go.
manasgirdhar said:
The Miui i used was on Stock Kernel.The Kernel Does Support Loop devices.Miui is a Rebase of CM but the loop functionality is related to Kernel.So,Yes it Works on Stock Kernel on Locked/Unlocked Bootloaders Both as we are not flashing anything.
Anyway Give Ubuntu a go.
Click to expand...
Click to collapse
Thanks! Just clarifying things out I haven't meddled with stock kernel that much that's why I am asking. Well the kernel sources sony provided has loop devices disabled by default glad that it's enabled on the official precompiled one.
Anyways! Try packing backtrack that should be alot useful than debian w/ lxde or a classic ubuntu image.
I got backtrack to run on Pro sometime ago when I was still using gingerbread.
Riyal said:
Thanks! Just clarifying things out I haven't meddled with stock kernel that much that's why I am asking. Well the kernel sources sony provided has loop devices disabled by default glad that it's enabled on the official precompiled one.
Anyways! Try packing backtrack that should be alot useful than debian w/ lxde or a classic ubuntu image.
I got backtrack to run on Pro sometime ago when I was still using gingerbread.
Click to expand...
Click to collapse
Already Did.Will upload it sometime Later today or tomorrow.
Debian and Ubuntu both have lxde pre-installed.
Edit:-BT5 UP.
Hi! seeing that you're a fanatic of these perhaps it would be useful if I give you these.
http://50.56.186.177/filez/
Those are packed and reduced sizes of debian & fedora arm images made to fit for chrooting on mobile devices. I made those for my previous device and is very stable already with 256mb RAM
the debian image is a squeeze version. Plus included is the fix for pulse audio. I'm not sure if it would work out of the box for android but with just a little bit knowledge with basic linux stuffs you could get it running perfectly
Riyal said:
Hi! seeing that you're a fanatic of these perhaps it would be useful if I give you these.
http://50.56.186.177/filez/
Those are packed and reduced sizes of debian & fedora arm images made to fit for chrooting on mobile devices. I made those for my previous device and is very stable already with 256mb RAM
the debian image is a squeeze version. Plus included is the fix for pulse audio. I'm not sure if it would work out of the box for android but with just a little bit knowledge with basic linux stuffs you could get it running perfectly
Click to expand...
Click to collapse
THANKS for the link...Meego wont chroot..tried it on the optimus a few months ago and failed..problem with zephyr..will give it a go later.fedora I had as well..but the thing is ...Does anyone except me even use these here????
I do but not that much. Like I said I just only tried backtrack and obviously I use it only when needed
Say do you think it would be possible to include a custom kernel on a chrooted image? It would be cool if we have backtrack here with monitor mode enabled. I think the wlan drivers/hardware of Xperia devices have the capability.
Or also try posting this thread to some other Xperia Sub forums. Arc/Pro users seem to be not very open to these kind of works. They just care on custom ROMs
In short they aren't geeky enough They aren't even that interested in dual booting.
Riyal said:
I do but not that much. Like I said I just only tried backtrack and obviously I use it only when needed
Say do you think it would be possible to include a custom kernel on a chrooted image? It would be cool if we have backtrack here with monitor mode enabled. I think the wlan drivers/hardware of Xperia devices have the capability.
Or also try posting this thread to some other Xperia Sub forums. Arc/Pro users seem to be not very open to these kind of works. They just care on custom ROMs
In short they aren't geeky enough They aren't even that interested in dual booting.
Click to expand...
Click to collapse
In theory yes its possible.but changes will have to be made to the arm kernel to chroot.when u type uname in terminal the output inside the chroot is different than the android kernel.but I think native booting will be better than chrooting..not being interested is just odd....its so much fun having linux on the go
manasgirdhar said:
A chroot image is like a Virtual Machine where you are running an O.S within an O.S.The point of this is that you have a whole Linux System running on a phone where you can ofcourse access all the utilities available in Linux.and as it runs inside of android you dont need to flash anything and can use both the chrooted O.S and Android together.check the Screenshots.
GO ahead:Try Ubuntu...it will give you a better Idea.
Click to expand...
Click to collapse
It would help a lot of people if you would put this description in the first post, or even a better description. Great work!
ameer1234567890 said:
It would help a lot of people if you would put this description in the first post, or even a better description. Great work!
Click to expand...
Click to collapse
Thanks for the advice.added to first post...not good with explanations
Riyal said:
I do but not that much. Like I said I just only tried backtrack and obviously I use it only when needed
Say do you think it would be possible to include a custom kernel on a chrooted image? It would be cool if we have backtrack here with monitor mode enabled. I think the wlan drivers/hardware of Xperia devices have the capability.
Or also try posting this thread to some other Xperia Sub forums. Arc/Pro users seem to be not very open to these kind of works. They just care on custom ROMs
In short they aren't geeky enough They aren't even that interested in dual booting.
Click to expand...
Click to collapse
Actually I know I am going to say something Off-Topic
1) People on XDA are now the people who have got a smartphone just because they can afford one and wanna make their phone look "kewl" than the others with the same device
2) People do dumb things like cross flashing kernels.. They dont even read carefully what the OP says..
3) Running linux on a phone would be the best thing.. specially on an xperia pro where you get a harware keyboard..
I would like all noobs to see this - http://forum.xda-developers.com/showpost.php?p=16682226&postcount=2441
and this - http://forum.xda-developers.com/showpost.php?p=15826094&postcount=45