[Q] How much to partition for Android Development? - General Questions and Answers

Hey guys, I've been around here for a while, and I've finally decided to try and start compiling and building from source myself. I know that it's possible to develop from there, and I've set up Virtual Box multiple times, but I'm not sure what to assign to it (hardware). As much as I'd like to dual boot my system, my computer was set up to have a dynamic partition, and so sadly it isn't possible to do so.
So here are my main questions:
How many gigabytes of storage do I partition for Virtual Box?
How many cores will I need to assign?
How much RAM do I allow my virtual environment?
__________________________________________________
When answering, keep in mind that I will be compiling Jelly Bean.
Hardware Components on my PC
Quad Core 2nd Gen i7 Processor @ 2.2gHz (w/hyper threading)
2x 350gb 5400rpm hard drives
8 gb RAM

A normal rom data is about 20GB...
I dunno how much ram it require. Most of the developers run Linux. And even in i7 and SSD, it takes about 2 hours to compile a rom...
For apps, I'm not too sure. A 5MB app Is about 40mb after decompile.
Accidentally sent from my Samsung Galaxy Note 2

Awesome, thanks!
Sent from my Nexus 4 using xda premium

Related

Comp upgrade question.

Other forums are being very unhelpful.
I'm going to upgrade a PC that was handed down to me, but the upgrade.specs baffled me. Been working with comps for a long while, but this just makes no sense. I would like to upgrade to at least 8gb ram.
Memory upgrade information
Dual channel memory architecture
Two DDR3 DIMM (240-pin) sockets
Supported DIMM types:
PC3-8500 (DDR3-1066)
PC3-10600 (DDR3-1333)
Non-ECC memory only, unbuffered
Supports 2GB DDR2 DIMMs
Supports up to 4 GB* on 32 bit PCs
*32-bit operating systems cannot address a full 4.0 GB of memory.
Sent from my SGH-i677 using XDA Windows Phone 7 App
Unless its just a typo. Which now makes sense, I am tired, but looking for someone with more knowledge of newer PC stuff.
Sent from my SGH-i677 using XDA Windows Phone 7 App

How much Ram for developing?

I have googled the hell out of this, and there just isnt much out there. How much Ram is best for building ROM's? I understand that there is no such thing as too much RAM, but how much is really beneficial? I am currently building from source, and doing some cherry picks with a gateway laptop. 2.1 GHZ dual core AMD vision processor, 4GB Ram DDR3 PC-8500. I am thinking about upgrading to 8GB DDR PC10200. I am wondering if this will speed anything up or not. Or is it just unnecessary spending? The memory is only like $45 shipped so its not overly pricey, but the only thing increasing memory will help me with (or will it?) is compiling and buiding, and syncing. My internet is only ATT DSL and my max download is like 5mb. It is typically my hinderence. Please advise!
And no I cannot upgrade my internet, my complex wont let us have cable from anyone but them and they only offer 1.5mb from bloom, and they want $45 per month. I am paying $20 per month for ATT DSL @ 6mb (which i never get obviously). There are no other DSL providers and like I said the complex wont let any other company bring in cable connections.
It really depends on what OS you're running. A lot of OEMs put x32 Windows on their systems, even though they're all capable of x64 now. If you have a 32-bit system and are running Windows, your OS will limit you to ~3GB of available memory, regardless of how much you have physically installed.
If you're running Linux (which is recommended, I believe, for development), then more memory is always a good thing. The more memory and the faster processor means faster compiling speeds. Faster compiling speed means you can test your ROM/app faster.
Syncing will depend solely on your download speeds, so RAM will not really have any effect on that at all.
liquidzoo said:
It really depends on what OS you're running. A lot of OEMs put x32 Windows on their systems, even though they're all capable of x64 now. If you have a 32-bit system and are running Windows, your OS will limit you to ~3GB of available memory, regardless of how much you have physically installed.
If you're running Linux (which is recommended, I believe, for development), then more memory is always a good thing. The more memory and the faster processor means faster compiling speeds. Faster compiling speed means you can test your ROM/app faster.
Syncing will depend solely on your download speeds, so RAM will not really have any effect on that at all.
Click to expand...
Click to collapse
You can't build source in windows and he has stated he is building from source so he's on linux.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
---------- Post added at 04:26 PM ---------- Previous post was at 04:24 PM ----------
Illnevertell said:
You can't build source in windows and he has stated he is building from source so he's on linux.
Ram isn't dudes problem your processor could use an upgrade though with a decent dual core building at standard -j4 will take roughly 2 hours on cm
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Illnevertell said:
You can't build source in windows and he has stated he is building from source so he's on linux.
Click to expand...
Click to collapse
That wasn't mentioned in the OP, but my comments about 32-bit vs 64-bit still hold. There are ways to virtualize, and that would run differently than a full install.
Ram isn't dudes problem your processor could use an upgrade though with a decent dual core building at standard -j4 will take roughly 2 hours on cm
Click to expand...
Click to collapse
The AMD Vision series are dual, quad, and octo core processors. I'm guessing that his is at least a dual core already. Not saying an upgrade wouldn't help, but it's harder to upgrade a laptop processor than a desktop one.
liquidzoo said:
That wasn't mentioned in the OP, but my comments about 32-bit vs 64-bit still hold. There are ways to virtualize, and that would run differently than a full install.
The AMD Vision series are dual, quad, and octo core processors. I'm guessing that his is at least a dual core already. Not saying an upgrade wouldn't help, but it's harder to upgrade a laptop processor than a desktop one.
Click to expand...
Click to collapse
It's a dual core, wish it was quad lol. I am running Linux mint, 64 bit so that won't limit me thankfully. Good info guys!
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
I just read that you can't compile 2.3.x+ without a 64-bit OS, so my comments about the OS are rendered mostly useless. Other comments still hold, though.
liquidzoo said:
I just read that you can't compile 2.3.x+ without a 64-bit OS, so my comments about the OS are rendered mostly useless. Other comments still hold, though.
Click to expand...
Click to collapse
At one point in time I was compiling cm9 on my 32bit system. Took about an two and a half hours though. Dual core with 3gig ram
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
ICS I could compile on 32 bit jb I need 64 bit
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
I think I'm gonna just grab an 8gb kit from crucial and see what happens
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
That's dumb no point get a better processor before that much ram it will not help you at all with compiling without something to use that data
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Illnevertell said:
That's dumb no point get a better processor before that much ram it will not help you at all with compiling without something to use that data
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
I can't find a processor that's compatible, plus so far building cm10 hasn't even used 75% of my processor. If you can find a way to replace a laptop processor let me know. I hear it's a pain.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
I can do it on my dell inspiron bro and why get 8 gigs of ram your not doing anything that needs it if your also not pushing the processor
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Illnevertell said:
I can do it on my dell inspiron bro and why get 8 gigs of ram your not doing anything that needs it if your also not pushing the processor
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
I'll look into finding a drop in quad core, it will take time to research tho.
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Rom Building Setup
Decepticaons said:
I have googled the hell out of this, and there just isnt much out there. How much Ram is best for building ROM's? I understand that there is no such thing as too much RAM, but how much is really beneficial? I am currently building from source, and doing some cherry picks with a gateway laptop. 2.1 GHZ dual core AMD vision processor, 4GB Ram DDR3 PC-8500. I am thinking about upgrading to 8GB DDR PC10200. I am wondering if this will speed anything up or not. Or is it just unnecessary spending? The memory is only like $45 shipped so its not overly pricey, but the only thing increasing memory will help me with (or will it?) is compiling and buiding, and syncing. My internet is only ATT DSL and my max download is like 5mb. It is typically my hinderence. Please advise!
And no I cannot upgrade my internet, my complex wont let us have cable from anyone but them and they only offer 1.5mb from bloom, and they want $45 per month. I am paying $20 per month for ATT DSL @ 6mb (which i never get obviously). There are no other DSL providers and like I said the complex wont let any other company bring in cable connections.
Click to expand...
Click to collapse
I'm currently using an old Vista computer with an AMD Athlon Dual core 4600+, GeForce 210 PCIe, & 2GB of DDR2. Nothing fancy nor overclocked. I have Linux Mint 13 "Maya" - Cinnamon (64-bit) installed and it all works quite nicely. Your biggest downfall is going to be your DSL (I have the same) because it takes a few hours to download the repository files. As far as compiling & debugging goes, it's all good.
The Mint linux is simply a Ubuntu based OS with far less GUI issues on my older comp, I've had both but Mint seems to run smoother:
http://www.linuxmint.com/edition.php?id=106
There's lotsa good info here:
http://forum.xda-developers.com/showthread.php?t=1801690
I'm still very new to the actual building myself but I've had a blast learning! My phone is actually running on a system I compiled all by myself! I couldn't have done it without all the help from my new friends here on XDA...
Search the forum for more info, it's ALL there, you simple need to look for it! Hope I helped...
Have fun with it!
---------- Post added at 10:02 PM ---------- Previous post was at 09:21 PM ----------
scootertrashtx said:
I'm currently using an old Vista computer with an AMD Athlon Dual core 4600+, GeForce 210 PCIe, & 2GB of DDR2. Nothing fancy nor overclocked. I have Linux Mint 13 "Maya" - Cinnamon (64-bit) installed and it all works quite nicely. Your biggest downfall is going to be your DSL (I have the same) because it takes a few hours to download the repository files. As far as compiling & debugging goes, it's all good.
The Mint linux is simply a Ubuntu based OS with far less GUI issues on my older comp, I've had both but Mint seems to run smoother:
http://www.linuxmint.com/edition.php?id=106
There's lotsa good info here:
http://forum.xda-developers.com/showthread.php?t=1801690
I'm still very new to the actual building myself but I've had a blast learning! My phone is actually running on a system I compiled all by myself! I couldn't have done it without all the help from my new friends here on XDA...
Search the forum for more info, it's ALL there, you simple need to look for it! Hope I helped...
Have fun with it!
Click to expand...
Click to collapse
I should have mentioned my compile time, It took about 5 1/2 hours on JB... you can throttle the output a bit with a command code that sk8ter listed... let me find it...
http://forum.xda-developers.com/showthread.php?t=1766862
3rd code block in #1...
If you're using a laptop, set it on a hard, flat surface or better yet, get a cooler... it'll get a bit warm.
Read this too... good info:
http://forum.xda-developers.com/showthread.php?t=667298
http://forum.xda-developers.com/showthread.php?t=1812253

Samsung rolling out JB for most smartphones

I got my hopes up for nothing as the Charge did not make the list
http://www.engadget.com/2012/09/24/samsung-rolling-jelly-bean-toward-most-of-its-smartphone-tablet/
It has already been said that jb and touchwiz would never fit on our system partition.
Sent from my SCH-I510 using Tapatalk 2
I think the bigger issue here besides getting 4.1 is... the mobile market needs to follow the model of the PC for the enduser.
I would be willing to pay some money to upgrade to the next major OS updates for my devices. Whether its my tablets or my phone. I wouldn't mind if I could only get vanilla android either.
It would put the power in the consumers hands. For example, I bought a laptop with windows vista and later upgraded it to windows 7 since my laptop could run it well. I hope someday android is able to do this as well. And sooner rather than later.
Sent from my SCH-I510 using xda app-developers app
bubarub said:
I think the bigger issue here besides getting 4.1 is... the mobile market needs to follow the model of the PC for the enduser.
I would be willing to pay some money to upgrade to the next major OS updates for my devices. Whether its my tablets or my phone. I wouldn't mind if I could only get vanilla android either.
It would put the power in the consumers hands. For example, I bought a laptop with windows vista and later upgraded it to windows 7 since my laptop could run it well. I hope someday android is able to do this as well. And sooner rather than later.
Sent from my SCH-I510 using xda app-developers app
Click to expand...
Click to collapse
The problem is that upgrading a phone will never be as straightforward as upgrading a PC. There's no one "Android Operating System" that exists as a general purpose OS. AOSP is the base, but even Google does more work to it before it goes on a Nexus device. Every phone has different hardware, which requires different drivers, and often, different close-source software and libraries, which means that every version of Android is a different embedded OS that is based on core Android. Making it generalized enough to run across the board on all hardware on the market would bloat it. It would make it memory, CPU, and power inefficient. We like to think of our phones as powerful miniature computers, but in reality, they don't even match the processor and memory capabilities of the average netbook. It's only through careful optimizations that it is able to run the way it runs, and you can't just slap a generic version of Android on a device and expect the same results.
Its not impossible...
And isn't every computer different from one another just like a phone or tablets?!
Sent from my SCH-I510 using xda app-developers app
bubarub said:
Its not impossible...
And isn't every computer different from one another just like a phone or tablets?!
Sent from my SCH-I510 using xda app-developers app
Click to expand...
Click to collapse
As Shrike said - the phones are too small and don't have the capacity that computers do for memory, disk and processor. Even if they did, the power draw would be excessive. Everything is extremely customized to fit within the phone's tiny footprint.
BTW - every computer has it's own limits with respect to memory and cpu capacity. Yes, you can upgrade, but there is a point of diminishing returns. What's the point of installing the fastest processor if the bus can't handle it? It goes on and on.
Lastly, it will never be in their best interests (profits, new sales) to adopt the computer model. They don't like that you keep a computer for years. They want churn. They want planned obsolescence.
bubarub said:
Its not impossible...
And isn't every computer different from one another just like a phone or tablets?!
Sent from my SCH-I510 using xda app-developers app
Click to expand...
Click to collapse
Impossible? No. Highly impractical? Yes
A computer has enough memory, storage, and processor power that the larger footprint of the "everything and the kitchen sink" model doesn't bog it down the way it would a phone. Just look at storage space alone...when you don't know exactly what hardware you're going to encounter, you have to account for all possibilities. Just the extra storage is going to add tangibly to the cost. Then you have the extra power drain required for the more efficient processors that will be needed to run the more generic OS correctly, and the extra RAM needed to load all of it's parts. A smartphone is a modern example of the classic embedded system. When you have limited resources to work with, your OS has to be more focused, customized, and efficient to work in an acceptable way.
So, yes, it's possible in the broadest sense, but do you want to pay $1500+ for the device that can be upgraded at will and be out of date within 2 years? Or would you rather pay $100-$500 every two years for the latest hardware and OS, at the expense of a more limited upgrade path? Personally, I know where I'll put my money.
Haha good point on that last paragraph! I agree.
Sent from my SCH-I510 using xda app-developers app
Specs
It doesn't take much to look at the default off the shelf Dell box's specs and compare them to that of any phone. The Intel Core i7 or AMD FX-8150 processors would smoke any ARM on the market for mobiles. Memory in the desktop is 4GB Dual Channel DDR3 SDRAM at 1600MHz. Again crushing the Droid Charge and every other phone. 1TB 7200RPM SATA 3.0Gb/s Hard Drive, nuff said man won't be there for mobile for a while now. The power consumption would drain your mobiles battery in the time it takes to boot up. Let us also not forget that GHz and GB and TB don't all perform the same across the board. For instance a 1TB parallel ATA drive, 1TB SATA, and 1TB SSD differ vastly in performance. The NVIDIA Tegra 3 Quad core, 1.2 GHz, ARM Cortex-A9 processor in the Nexus 7 just doesn't hold a candle to the Intel Core i7-640UM Dual Core 1.2 GHz. It's about more than cores and clock speeds.
MikeAGriffey said:
It doesn't take much to look at the default off the shelf Dell box's specs and compare them to that of any phone. The Intel Core i7 or AMD FX-8150 processors would smoke any ARM on the market for mobiles. Memory in the desktop is 4GB Dual Channel DDR3 SDRAM at 1600MHz. Again crushing the Droid Charge and every other phone. 1TB 7200RPM SATA 3.0Gb/s Hard Drive, nuff said man won't be there for mobile for a while now. The power consumption would drain your mobiles battery in the time it takes to boot up. Let us also not forget that GHz and GB and TB don't all perform the same across the board. For instance a 1TB parallel ATA drive, 1TB SATA, and 1TB SSD differ vastly in performance. The NVIDIA Tegra 3 Quad core, 1.2 GHz, ARM Cortex-A9 processor in the Nexus 7 just doesn't hold a candle to the Intel Core i7-640UM Dual Core 1.2 GHz. It's about more than cores and clock speeds.
Click to expand...
Click to collapse
I could take the time to pick apart your post and make fun of you, but there isn't any point.
Kind of like your post.
Sent from my SCH-I510 using xda premium
Time to just give up on JB or ICS for charge. I just upgraded to galaxy nexus. I love it and highly recommend it. Cheers!
Sent from my Galaxy Nexus using xda app-developers app

Building dev machine...

Ok so i got this spare laptop, it had a problem had to reflow the bridge. Got that all taken care of. Just wondering about the specs if it would be sufficient, for say some Jellybean.
Pretty new to all this gonna start with a plain old gingerbread source from my manufacturer.
AMD Athlon II P320 Dual Core 2100mhz
4 gig DDR3
ATA Disk 320gig
Ubuntu 12.10 64bit.
And any tips about the build environment/ or compiling android in general would be appreciated. No need to write up a tut but some helpful tips, or things to remember?
Sent from my LG-E739 using xda app-developers app
There are plenty of tutorials for setting up the development environment in these forums just search around
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
The emulator can be a bit slow at times.
I Use Windows 7 and use the X86 images to run the emulator. running the ARM images can be really slow.
If you are not going to use the emulator and use real devices to test and debug your apps a slower cpu will do.
My setup:
core I5 3470
8Gig ddr3 ram
SSD drive for OS and a normal drive for storage and builds of the source code.
It's enough and I have also used a laptop with a intel dual core a while back. But the emulator was really slow on that machine, I could not use the emulator with a tablet resolution.
thx for the tip, decided to just run full install of ubuntu 12.10 64bit. I think im pretty much ready to run...just gettin all the sources i can.
Question after ...gitin'... a source is it ok to rename the directory? I wont run into probs? as long as I dont mess around with anything tied to my paths in env. variables right? Even those I guess I could edit later. I dunno why im havin this brain fart tonight.
Just gotta watch what dir im in while workin i suppose if i go all renaming. I dont want to mess with the dirs in the source itself just the dir where i dl the sources to. I like to keep things oganized.
Sorry for all my noobieness lol. I also got some questions about the manifests but ill save them for google.
Sent from my LG-E739 using xda app-developers app

[Q] What kind of computer would be best for Android app/game development

I'm pretty new here and sorry of this has already been asked to death but anyways, I was looking to get into android app and game development. I was wondering what kind of computer would be best for this task. I already run Linux on my old laptop, so not worried about OS, but as far as specs go, what would be preferred (i.e. how much RAM, processing power, hard drive space, brand, etc?
Windows is best. .7 most preferred
phone:Micromax A100
ROM: Killerdroid v2
Recovery: CWM V.6.0
It depends on your budget, and the complexity of the game you are attempting to make. I'm able to do rudimentary dev work on my old rig. An Intel core i3, 3gigs of ram, and a 256gb ssd.
I'd suggest that you go with a good i5, or a low i7. Alternatively, you could wait for the new Haswell chips, but they are more towards power saving, not performance
Sent from my GT-I9100
If I helped you, please hit the thanks button!
R: [Q] What kind of computer would be best for Android app/game development
You can buy what computer you want at least 1gb RAM and 2ghz CPU.
Don't forget to install linux distribution on there
You can have Windows 7 but it's a good thing to have linux if you are going to develop on android.
Sent from my HTC Desire X using xda premium

Categories

Resources