Clean up PC after compiling Android - Android Q&A, Help & Troubleshooting

I am compiling ICS for my Galaxy Nexus using Ubuntu and a tutorial I found. I didn't give my VM enough disk space, so it ran out during the compile process. I'm growing the VM's hdd and am going to re-try the build, however, I'd like to clean up the mess that I made already on the VM. What do I need to delete in order to get to where I started before running "make"? I guess what I need to do is deleted whatever has been compiled, but I'm not sure exactly where those files are within my development directory. Thanks!

i would just delete the "out" directory in the root of the source directory.

Thanks. Apparently "make clean" does it too.
Sent from my Galaxy Nexus using Tapatalk

Related

Compiling AOSP from source

Hiya I am interested in compiling my own version of the android project from the latest sources for Hero but I am having a little bit of trouble, I have been attempting to follow this guide android.modaco.com/index.php?showtopic=301857&view=findpost&p=1179830 but it does not seem to make a lot of sense to me. For instance there is no .repo/local_manifest.xml file only a .repo/manifest.xml file and editing this as outlined gives me an error. Could somebody point me in the direction of a fairly noob friendly guide for this kind of stuff, thanks a lot.
Conb123
P.S Sorry about the dodgy link, newbie restrictions prevented me from formatting it properly
this should be in Q&A Section not development really. But im looking for this too! installed ubuntu using Wubi set up JDK,SDK testsign etc and repo but god knows how to do it all! I only want to port cyanogenROM
follow this: http://source.android.com/download
when you got everything synced you can basically type "make" and watch it compile for a while. i managed to do it with just above zero knowledge about compiling.
if you want the cyanogen sources try it with the according repo. i have zero idea about vendor overlays, as i needed to compile only the recovery (watched two hours of eclair compiling, then was told i need cupcake sources and can compile the recovery only...)
Yes I am aware of how to get sources and how to compile them, I am fairly well versed in linux. But I do not know how I can compile it into a usable rom for hero.
the result of the compiling are image files that can be flashed to the phone: system.img etc. you can extract them using unyaffs.
I ran the make command, but i really have no idea what to do from there. What is the end result of doing the first make command? Im fairly sure that it is not a single .img file you can flash onto your phone. You need to make a kernal if i am correct(anyone know how to do this?)
the result of the compiling is at least a system.img. if you compiled it correctly you can flash that to /system partition. further you need a boot.img, which also contains the kernel. the the rom-cooking howto in dev section how to create one, or just get one from a working rom.
fwiw, the .img files are in out/target/product/generic/ (although there probably is a device specific directory in there if you handled the vendor overlay correctly. <- this is just a guess, i have actually no idea).
Wanna link us to that how to thread? I cant seem to find a complete one with working links.
http://forum.xda-developers.com/showthread.php?t=551711

[Q] Setting up the Android SDK in Ubuntu...

Ok, I'm sure this is been asked before and I'm sure there's references somewhere...I've looked for a couple of days and found what should be answers, but nothing is working like the instructions I've seen...
Here's the simple question; How do I get the Android SDK and Java JDK setup in Ubuntu? I've tried the sudo commands to get the JDK to install, not working for me (as Ubuntu tells me it can't find the files I'm looking for). I've tried moving the SDK into the Root Folder (in the File System area itself), don't have permissions even though I'm logged in as the administrator. I've tried getting the SDK Manager to run through Terminal (home/android-sdk-xxxxx_xxxx/tools/android), can't find the file in terminal, but it's there in the file system exactly where I'm pointing it to.
I'm very new to Linux, but if I'm going to do things that I want to do, I'm going to have to learn. For the most part, I'm prepared to read whatever I need to in order to learn from this, but I also know when I need to ask for some help here. It seems like every command shown to get this started is just not working in the partition I have setup for this. If anyone can help get me started, I'm sure I can pick the rest up along the way!
Thanks in advance!
Macrodroid said:
Ok, I'm sure this is been asked before and I'm sure there's references somewhere...I've looked for a couple of days and found what should be answers, but nothing is working like the instructions I've seen...
Here's the simple question; How do I get the Android SDK and Java JDK setup in Ubuntu? I've tried the sudo commands to get the JDK to install, not working for me (as Ubuntu tells me it can't find the files I'm looking for). I've tried moving the SDK into the Root Folder (in the File System area itself), don't have permissions even though I'm logged in as the administrator. I've tried getting the SDK Manager to run through Terminal (home/android-sdk-xxxxx_xxxx/tools/android), can't find the file in terminal, but it's there in the file system exactly where I'm pointing it to.
I'm very new to Linux, but if I'm going to do things that I want to do, I'm going to have to learn. For the most part, I'm prepared to read whatever I need to in order to learn from this, but I also know when I need to ask for some help here. It seems like every command shown to get this started is just not working in the partition I have setup for this. If anyone can help get me started, I'm sure I can pick the rest up along the way!
Thanks in advance!
Click to expand...
Click to collapse
I think you could possibly use part of the EasyDev-v6 script in the Development and just cut out everything after installing prerequesites. It probably installs the JDK and the SDK among everything else, and it probably wouldn't hurt with the other things that installs, too. Just cut out everything after the prerequesites (it's just a regular text file but it'll be easier to edit in Ubuntu with OpenOffice).
Also check out http://maketecheasier.com/install-android-sdk-in-ubuntu-karmic/2010/01/11. As far as I know it worked when I tried it.
roirraW "edor" ehT said:
I think you could possibly use part of the EasyDev-v6 script in the Development and just cut out everything after installing prerequesites. It probably installs the JDK and the SDK among everything else, and it probably wouldn't hurt with the other things that installs, too. Just cut out everything after the prerequesites (it's just a regular text file but it'll be easier to edit in Ubuntu with OpenOffice).
Also check out http://maketecheasier.com/install-android-sdk-in-ubuntu-karmic/2010/01/11. As far as I know it worked when I tried it.
Click to expand...
Click to collapse
Dude, thanks so much! That worked perfectly. Thanks!
Sent from my Froyo Tazz using XDA App
You're welcome!

Android source code building/software development

I have been searching and searching much to no avail. Here is my dilemma: I'm interested in android development and have installed ubuntu Linux os along with other requirements outlined on the android source website but I'm having the most difficult time getting the git program to install. I constantly receive error after error. Python, jdk6, and make have all installed with no problems. Can someone point me in the direction of a step by step procedure for completely setting up my computer with the required programs necessary for android development. Any and all help is greatly appreciated!
Sent from my LG-P925 using xda premium
google developer page clearly says which packages to install and what to do, you can search here at xda too.
if you have any problem try:
remove ~/bin directory
remake it
redownload repo script
add PATH variable
chmod it for executable
remove workdir
remake workdir
cd to your working directory
init your source
linux is not about make it and it should work you need a lot of things to get by yourself and learn to pass through problems. personally I was noob too, and still think I am, but linux really learns thinking in pc usage, that's not windows "if you can't do anything, that's impossible", you just have to find other way
it will be hard to start without linux knowledge, try using it first for a month then start development. you'll also need some xml and makefiles editing to know.
what you'll need
if you have cyanogenmod sources it's easy, you probably have everything that's needed,
if you use google's, then it's harder, because you miss drivers, device tree can fit from cm but you need to edit it.
you can find usb connection setup painful with editing udev rules, but with some practise it will be easy.
and please, for everyone to know: don't PM me or ask for help, I'm not a support, just saying here something that could help and I'm not pro .

[Q] Compiling Metasploit for the ARM architecture

Hello everyone, I just recently got Kali Linux installed on my galaxy tab 10.1 (vnc, working on a dual boot) and was wondering how hard it would be to port the 32 bit version of the metasploit framework to arm. I really want to use these tools on my tab, could some show me some of the steps I would need to take to port this? Thanks!
Kobalt.Kitsune said:
Hello everyone, I just recently got Kali Linux installed on my galaxy tab 10.1 (vnc, working on a dual boot) and was wondering how hard it would be to port the 32 bit version of the metasploit framework to arm. I really want to use these tools on my tab, could some show me some of the steps I would need to take to port this? Thanks!
Click to expand...
Click to collapse
Using a complete GNU/Linux distribution (as opposed to Android/Linux), I'd say it's more or less just to compile it. No porting needed.
kuisma said:
Using a complete GNU/Linux distribution (as opposed to Android/Linux), I'd say it's more or less just to compile it. No porting needed.
Click to expand...
Click to collapse
Your right, I was able to install it through the synaptic package manager.
I had the hardest time trying to get the terminal to work though. I kept getting an error saying something about Xterm not being able to find system/bin/sh. I couldn't find the file to change the path to /bin/sh so I ended up just creating a system/bin folder, copying and renaming dash to sh, and placing it in the new directory. Now the console works, but it just shows the hash sign: #. I don't know about this distribution, but when I was using Backtrack and Ubuntu, it would say '[email protected]' or '<username>@ubuntu' something other then just the hash sign... Any thoughts on this?
Kobalt.Kitsune said:
Your right, I was able to install it through the synaptic package manager.
I had the hardest time trying to get the terminal to work though. I kept getting an error saying something about Xterm not being able to find system/bin/sh. I couldn't find the file to change the path to /bin/sh so I ended up just creating a system/bin folder, copying and renaming dash to sh, and placing it in the new directory. Now the console works, but it just shows the hash sign: #. I don't know about this distribution, but when I was using Backtrack and Ubuntu, it would say '[email protected]' or '<username>@ubuntu' something other then just the hash sign... Any thoughts on this?
Click to expand...
Click to collapse
I have no idea what "Xterm" you are trying to run, but most GNU/Linux distributions have replaced it with something different flavored, such as "gnome-terminal", leaving ol' xterm quite butchered. To me, it sounds you've tried to invoke some xterm from the Android world (using a script beginning with the line "#!/system/bin/sh"). Look for the proper terminal instead. I'll bet a virtual peanut it's "gnome-terminal".

Experienced chefs, I need help in kitchen.....

I'm having issues with the ROM I've been cooking and can use some help / advice. I've been working on a ROM based on jeepers007 Evervolv JellyBean effort. I've done the testing and modding on my device, and it seems to work well. However something is happening from when it leaves my handset as a backup and the finished result from the kitchen that introduces tremendous instability that I can't seem to overcome. Every attempt I've made experiences random crashes, lockups, and reboots that are nonexistent with the original configuration on my handset. I can't for the life of me figure out what I'm doing wrong. It's really getting frustrating and I'm almost ready to throw in the towel. Any ideas suggestions would be greatly appreciated.
Edit: Let me elaborate further. I can wipe clean all of my partitions, do a custom restore of just my /system partition, and my base system will recreate itself with no issues. From that point I can completely restore with Titanium, no crashes, no lockups, and no reboots. Every attempt I've made at cooking my backup into a working installable ROM in the kitchen results in crashes and reboots before it ever gets to the initial login and setup screen. It gets worse from there. I get a mysterious cascade of toasts announcing various processes crashing, before it reboots back to the sign-in screen. When I finally am able to login and begin using it I get sporadic crashes from out of nowhere.
I've experimented with the kitchen before, using it to add or remove features or mods to ROMs I was using or wanted to use, but never had these kinds of problems before. This is getting frustrating.
When you extract the nandroid from original rom folder to working rom folder, do you get any errors during that process?
Sent from my HTC_Amaze_4G using XDA Premium 4 mobile app
Are you talking about Dsixda's kitchen?
I think the main reason is because you're doing it by a nandroid.
Did you try pulling the system folder via ADB?
The main issue might be because of the way you're getting a system dump.
It's better to just compile from source for AOSP, IMO.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
I'm using the last version kitchen. Working off my backup as base. No errors at all extracting to working directory. Rom builds, I zipalign and sign with no errors. Must be something in the installation scripts. I need to examine further. Must be a permission issue or links aren't being properly created.
Your using Windows or Ubuntu? I've noticed that dxdia kitchen is a bit buggy when it comes to extracting the updater script from nandroids or from a stock ruu using Windows..
Sent from my HTC_Amaze_4G using XDA Premium 4 mobile app
ravike14 said:
Your using Windows or Ubuntu? I've noticed that dxdia kitchen is a bit buggy when it comes to extracting the updater script from nandroids or from a stock ruu using Windows..
Sent from my HTC_Amaze_4G using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I haven't used Windows for years except for rooting tools for which there is no Linux counterpart. I run Gentoo Linux from the unstable (testing) branch, more specifically ~amd64. Every application, library, and compiler on my machine was compiled from scratch and optimized for my setup.
Odysseus1962 said:
I haven't used Windows for years except for rooting tools for which there is no Linux counterpart. I run Gentoo Linux from the unstable (testing) branch, more specifically ~amd64. Every application, library, and compiler on my machine was compiled from scratch and optimized for my setup.
Click to expand...
Click to collapse
i'm not sure if it has anything to do with it tho, however dxdia kitchen works perfectly for me in Ubuntu 12.04 LTS

Categories

Resources