• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [GUIDE] Setting Up your Android Environment

I see just not me having problem installing Java... my is missing module call PixMap I download java like 8 times same issues? Any answer's?
 
When I do:sudo apt-get update

I see this at the end:
Code:
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

When I run:
sudo apt-get install sun-java6-jdk sun-java6-plugin

I get:
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'sun-java6-jdk' has no installation candidate
E: Unable to locate package sun-java6-plugin
I'm running 12.04 beta2

I don't run Ubuntu 12.04 so I can't say exactly what's going on. However, try the instructions from the AOSP site for 12.04:

Initializing a Build Environment | Android Open Source

keep getting this error when repo syncing. any ideas:Exception in thread Thread-77:908), 1.39 MiB | 57 KiB/s
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/root/android/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/root/android/.repo/repo/project.py", line 934, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/root/android/.repo/repo/project.py", line 1475, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/root/android/.repo/repo/project.py", line 1539, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno -2] Name or service not known>
then at end of sync says sync stopped due to fetch errors

First question: why are you putting your android directory in the /root/ directory? I would strongly advise against doing that.

2ndly: you may have a bad copy of repo or you didn't set the permissions correctly. Dump it and redownload repo and chmod a+x again.

Ohh I just saw that i install Ubuntu 11.10 ? Think maybe that the problem?

I'm using 11.10 just fine. Although, it's been a while since I had to set it up so I don't remember everything about the set up process.

I see just not me having problem installing Java... my is missing module call PixMap I download java like 8 times same issues? Any answer's?

I don't recognize that module at all. If you're getting it during the download of java, all I can think of is that you're downloading the wrong version or you missed a command some place along the way.
 
I don't run Ubuntu 12.04 so I can't say exactly what's going on. However, try the instructions from the AOSP site for 12.04:

Initializing a Build Environment | Android Open Source



First question: why are you putting your android directory in the /root/ directory? I would strongly advise against doing that.

2ndly: you may have a bad copy of repo or you didn't set the permissions correctly. Dump it and redownload repo and chmod a+x again.



I'm using 11.10 just fine. Although, it's been a while since I had to set it up so I don't remember everything about the set up process.



I don't recognize that module at all. If you're getting it during the download of java, all I can think of is that you're downloading the wrong version or you missed a command some place along the way.

How do you put android directory in another location than root directory where would i put it sorry I'm new still and was just going by the guide on here could u point me to a good guide to follow. another thing is when I go to download repo it don't take no time in saying done as soon as I run it its done is this suppose to happen or should it take a little time to download
 
When I do:sudo apt-get update

I see this at the end:
Code:
W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

When I run:
sudo apt-get install sun-java6-jdk sun-java6-plugin

I get:
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'sun-java6-jdk' has no installation candidate
E: Unable to locate package sun-java6-plugin
I'm running 12.04 beta2

I'm running 10.04. It's working just like the guide is suggesting. I would recommend using that. The packages may not be setup for 12.04
 
How do you put android directory in another location than root directory where would i put it sorry I'm new still and was just going by the guide on here could u point me to a good guide to follow. another thing is when I go to download repo it don't take no time in saying done as soon as I run it its done is this suppose to happen or should it take a little time to download

The easest way would be to open "nautilus" while under ROOT. Then you could move the files with some pointing and clicking. You would just need to change the permissions like you would at the end of the guide. Or you could use chown and chmod.
 
The easest way would be to open "nautilus" while under ROOT. Then you could move the files with some pointing and clicking. You would just need to change the permissions like you would at the end of the guide. Or you could use chown and chmod.

Thanks a lot man
 
I just following directions from this treat.

The directions in the OP are for Ubuntu 10.04 so all of the instructions may not apply to 11.10. Unfortunately, it's been really long since I set up my environment so I don't remember everything that I had to do. It may be best if you change your OS to 10.04 so you can follow along in the guide exactly if you're not familiar with linux.
 
The directions in the OP are for Ubuntu 10.04 so all of the instructions may not apply to 11.10. Unfortunately, it's been really long since I set up my environment so I don't remember everything that I had to do. It may be best if you change your OS to 10.04 so you can follow along in the guide exactly if you're not familiar with linux.

They worked fine for me on 11.10 and later when I redid my distribution to mint (12).
 
root@joeycmb-laptop:~/android-sdk-linux/tools# sudo apt-get install git-core gnupg flex bison gperf build-essential \
>
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnupg is already the newest version.
The following extra packages will be installed:
cpp-4.4 dpkg-dev fakeroot g++ g++-4.4 gcc-4.4 gcc-4.4-base
libdigest-sha1-perl liberror-perl libgcc1 libgomp1 libstdc++6
libstdc++6-4.4-dev m4 patch xz-utils
Suggested packages:
bison-doc gcc-4.4-locales debian-keyring debian-maintainers g++-multilib
g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg gcc-4.4-multilib
libmudflap0-4.4-dev libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0
libppl-c2 libppl7 git-doc git-arch git-cvs git-svn git-email git-daemon-run
git-gui gitk gitweb libstdc++6-4.4-doc diffutils-doc
The following NEW packages will be installed:
bison build-essential dpkg-dev fakeroot flex g++ g++-4.4 git-core gperf
libdigest-sha1-perl liberror-perl libstdc++6-4.4-dev m4 patch xz-utils
The following packages will be upgraded:
cpp-4.4 gcc-4.4 gcc-4.4-base libgcc1 libgomp1 libstdc++6
6 upgraded, 15 newly installed, 0 to remove and 42 not upgraded.
Need to get 23.3MB of archives.
After this operation, 43.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y <<<<<<<--------------------------------------------*********
Abort.
hey guy need help 2 day trying install environments why get abort?
 
joeycmb@joeycmb-laptop:~$ sudo -i
root@joeycmb-laptop:~# adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

root@joeycmb-laptop:~# adb devices
List of devices attached

root@joeycmb-laptop:~# sudo -i
root@joeycmb-laptop:~# adb devices
List of devices attached

root@joeycmb-laptop:~#
my laptop isnt detecting my triumph? anybody around maybe lil help?
 
joeycmb@joeycmb-laptop:~$ sudo -i
root@joeycmb-laptop:~# adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

root@joeycmb-laptop:~# adb devices
List of devices attached

root@joeycmb-laptop:~# sudo -i
root@joeycmb-laptop:~# adb devices
List of devices attached

root@joeycmb-laptop:~#
my laptop isnt detecting my triumph? anybody around maybe lil help?

Did you make sure to active debug mode?
 
root@joeycmb-laptop:~/android-sdk-linux/tools# sudo apt-get install git-core gnupg flex bison gperf build-essential \
>
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnupg is already the newest version.
The following extra packages will be installed:
cpp-4.4 dpkg-dev fakeroot g++ g++-4.4 gcc-4.4 gcc-4.4-base
libdigest-sha1-perl liberror-perl libgcc1 libgomp1 libstdc++6
libstdc++6-4.4-dev m4 patch xz-utils
Suggested packages:
bison-doc gcc-4.4-locales debian-keyring debian-maintainers g++-multilib
g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg gcc-4.4-multilib
libmudflap0-4.4-dev libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0
libppl-c2 libppl7 git-doc git-arch git-cvs git-svn git-email git-daemon-run
git-gui gitk gitweb libstdc++6-4.4-doc diffutils-doc
The following NEW packages will be installed:
bison build-essential dpkg-dev fakeroot flex g++ g++-4.4 git-core gperf
libdigest-sha1-perl liberror-perl libstdc++6-4.4-dev m4 patch xz-utils
The following packages will be upgraded:
cpp-4.4 gcc-4.4 gcc-4.4-base libgcc1 libgomp1 libstdc++6
6 upgraded, 15 newly installed, 0 to remove and 42 not upgraded.
Need to get 23.3MB of archives.
After this operation, 43.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y <<<<<<<--------------------------------------------*********
Abort.
hey guy need help 2 day trying install environments why get abort?

Just to make sure, how much free space do you have on your harddrive?
 
Thanks everyone ,after 6 hrs run ... finally done .. do anybody download adreno updates drivers ?
 
Thanks everyone ,after 6 hrs run ... finally done .. do anybody download adreno updates drivers ?

Try downloading Whyzor's repos. He added the newer 205 blobs from somewhere to his kernel. Although, Mantera may have done the same. Look at his github to see the history of what has been done.

P.S. Glad you have been able to setup your environment.
 
Is there a way to tell "repo" to output a list of stuff that it couldn't sync? I guess it would be like
Code:
repo sync -v(verbose) (the necessary lines to redirect to a file) reposync.txt
I think the way to get the manual would be repo man. I need less going on in my evening;)
 
Alright, was able to sync with your repo successfully using 11.10, mantera =]

I'd like to build gingerbread too so I would have to create a separate folder for it in my android folder right?

Also, how would I go about changing the apps included in the ROM? Am I able to just unzip the .zip file, go into system, then apps, then proceed to remove/replace apps there or would I have to change them in the android folder on ubuntu?
 
Alright, was able to sync with your repo successfully using 11.10, mantera =]

I'd like to build gingerbread too so I would have to create a separate folder for it in my android folder right?

Also, how would I go about changing the apps included in the ROM? Am I able to just unzip the .zip file, go into system, then apps, then proceed to remove/replace apps there or would I have to change them in the android folder on ubuntu?

You can use a different folder for gingerbread if you want. Or you can just manually change to the gingerbread branch on every repo as well. It's up to you. Personally, I find it less confusing and easier to manage just by having a separate folder locally.

You can change the apps in the rom just by deleting them from the Zip if you want. Or you can change the mk file to only build the stuff you want. But if you don't want to mess with anything, then just deleting it from the zip will work just fine.
 
You can use a different folder for gingerbread if you want. Or you can just manually change to the gingerbread branch on every repo as well. It's up to you. Personally, I find it less confusing and easier to manage just by having a separate folder locally.

You can change the apps in the rom just by deleting them from the Zip if you want. Or you can change the mk file to only build the stuff you want. But if you don't want to mess with anything, then just deleting it from the zip will work just fine.

Very kool very kool. Ahh so many choices! I think I'll create a customized CM9 where I'll have very little apps. Same with a CM7 version. This is where I shall start, perchance. Thank you guise =]
 
How do I tell the builder to build what I want and not include things like RomManager.apk? I think I saw where RomManager gets downloaded, but I don't know if there is a specific call or is it just ran because it's in the right folder. I would also like to remove some other apps and put in the apps I have that I want to put in my setup. I know how to get some apps into the ROM after it's built and edit the script so they are in the right place, but I want to do this during the build.
 
I have partially answered my own question with research. It's brain draining to read all of the Android.mk files and the vendor.sh files and where they lead me.

I still haven't found out how to include pre-built .apks. I'll figure that out later.
 
So wait mantera, if there's a problem with your repo, which repos should I sync to for gingerbread? I was able to build your CM9 though! =]

I plan to release a gingerbread ROM and update as well as my own tweaks and apps. Any way you could help me set that up? What commands do I use? I'll create a separate folder called androidgingerbread then sync with cyanogenmod. Out of all the steps written down, which step should I start at? and how would I go about adding my own apps and removing apps from the ROM?
 
So wait mantera, if there's a problem with your repo, which repos should I sync to for gingerbread? I was able to build your CM9 though! =]

I plan to release a gingerbread ROM and update as well as my own tweaks and apps. Any way you could help me set that up? What commands do I use? I'll create a separate folder called androidgingerbread then sync with cyanogenmod. Out of all the steps written down, which step should I start at? and how would I go about adding my own apps and removing apps from the ROM?

As far as the sync goes, instead of -ics, do -gingerbread. And look into my post on finding what writes to a .jar.g60 has a link to a guide on setting up cm7.
 
As far as the sync goes, instead of -ics, do -gingerbread. And look into my post on finding what writes to a .jar.g60 has a link to a guide on setting up cm7.

Ahh okay that's a good instruction for starting on gingerbread! But what do I have to sync as far as updated fromcyanogenmod's repo? All of it or is the a specific repo I should sync with from cyanogenmod?
 
Ahh okay that's a good instruction for starting on gingerbread! But what do I have to sync as far as updated fromcyanogenmod's repo? All of it or is the a specific repo I should sync with from cyanogenmod?

If you sync from my repo, it should build. At least it did last week when I last built cm7. If it doesn't, let me know. I usually keep it synced with cm every couple of days or so.
 
Back
Top Bottom