[Q] how build own rom? - Nexus 4 Q&A, Help & Troubleshooting

How can i build aosp rom? Can i build it without linux, i don not know this system, can i build it with windows?
Sent from my Nexus 4 using Tapatalk

http://xda-university.com/as-a-developer/getting-started-building-android-from-source
https://source.android.com/source/building.html
http://wiki.cyanogenmod.org/w/Build_for_mako
But you won't be able to build it on Windows as the Android page says so.
You will need to use Linux or Mac OS. Building under Windows is not currently supported.
Click to expand...
Click to collapse

Creepyficate said:
http://xda-university.com/as-a-developer/getting-started-building-android-from-source
https://source.android.com/source/building.html
http://wiki.cyanogenmod.org/w/Build_for_mako
But you won't be able to build it on Windows as the Android page says so.
Click to expand...
Click to collapse
Windows is fine with a virtual machine setted up.
But you'll need a very good pc or the builds will take forever to finish.

Related

native ubuntu for tab 7.7

any idea how can i install ubuntu on tab 7.7 natively
What do you mean by "native"? You could try and chroot and then install Ubuntu. This might work, but i have never tried it.
odessa2 said:
What do you mean by "native"? You could try and chroot and then install Ubuntu. This might work, but i have never tried it.
Click to expand...
Click to collapse
maybe there is some hope in this? (Xda won't let me post links but just google search "ubuntu phone") Ubuntu are releasing a mobile version of their operating system that runs natively on phones. So far they are only developing on the galaxy nexus but there is more to come
There are installers for Debian and Ubuntu in the app store. They run in a chroot environment.
I have tried chrooting... It wasn't that useful...
And that ubuntu phone thing isnt released yet...
virsingh said:
I have tried chrooting... It wasn't that useful...
And that ubuntu phone thing isnt released yet...
Click to expand...
Click to collapse
the Ubuntu OS has two parts.
platform : not depending on target.
Linux Kernel: depend on target (chipset machine and drivers and HAL )(same as android)
in fact we can use locerra kernel to build Ubuntu rom images when it's released.
but generic kernel that's for pc won't work at all, this an embedded device not generic pc.

Android Studio and additional downloading

Hi
I downloaded and installed Android Studio today . I installed JDK 7 befor that .
Android Studio runs , but when i click new project and compelet wizard , my computer attempts to download something from Internet and my connection speed is very low . How I can run Androd Studio without downloading exceesive materials from Internet ???
I don't know if you can use Android Studio without this download (I don't think so) but it's about 30-40 mb... Even if you have a bad connection, I think you can download it.
Did you do this?
Follow the setup wizard to install Android Studio.
Known issue: On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.
Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21.
Click to expand...
Click to collapse
(http://developer.android.com/sdk/installing/studio.html#Installing)
Tried the Android Studio today. I think that it is great.
It downloaded some things related to the build system but it did not take long for me. :good:
nikwen said:
Did you do this?
(http://developer.android.com/sdk/installing/studio.html#Installing)
Click to expand...
Click to collapse
So does this now mean Android supports Java 7? If not how does android studio get around the compiler problem?
Sent from my SC-06D using XDA Premium HD app
DroidZombie said:
So does this now mean Android supports Java 7? If not how does android studio get around the compiler problem?
Sent from my SC-06D using XDA Premium HD app
Click to expand...
Click to collapse
I think that it does. However, it might be compiled as Java 6 but you can use the JDK 7.
nikwen said:
I think that it does. However, it might be compiled as Java 6 but you can use the JDK 7.
Click to expand...
Click to collapse
So this is how they will get people to switch away from eclipse.
Sent from my SC-06D using XDA Premium HD app
DroidZombie said:
So this is how they will get people to switch away from eclipse.
Sent from my SC-06D using XDA Premium HD app
Click to expand...
Click to collapse
They say that they want to support both Eclipse and Android Studio. However, in my opinion Android Studio is already better than Eclipse.
And they said that they will focus on Android Studio in the next time to add all necessary features. :good:
nikwen said:
Tried the Android Studio today. I think that it is great.
It downloaded some things related to the build system but it did not take long for me. :good:
Click to expand...
Click to collapse
It downloads the gradle package..:good:
What is android studio?
bitator said:
What is android studio?
Click to expand...
Click to collapse
it as Intelijj IDEA, but reworked specifically for android developers.
lonesaint said:
It downloads the gradle package..:good:
Click to expand...
Click to collapse
Right!
So you have to wait until it is completed.

[Q] Native programs

I tried to install an application for a raspberry pi on my nexus 7. I extracted it, but when I tried to run it, it failed with:
No such file or directory
Any solutions?
Sounds like it is meant to be run on the pi. Not the Nexus 7.
Sent from my Nexus 7 using xda premium
you can't just arbitrarily run any application. it needs to be an android app.
Pirateghost said:
you can't just arbitrarily run any application. it needs to be an android app.
Click to expand...
Click to collapse
What he said, and usually the system says that when the file is not marked as an executable.
Even if the binary was designed to run on ARM-based processors, it needs to be compiled for that operating system.
For example you cannot take a console binary made for Mac OSX (identifier Mach-O), and run it on a FreeBSD system even though OSX was originally based on FreeBSD4 (much the same as how Android was originally based on linux variations, and is still technically linux, but technically not).
I mean unless someone wants to write some kind of binary compatibility setup, much like how I can run *some* linux binaries on FreeBSD using the Linux Binary Compatibility port. But out of the box, not going to happen unless it was written for Android.
PS: Easier Analogy... trying to run a windows EXE on Android.
So how do I install the proper libraries? My device has the stock rom and it is rooted.
You learn how to code and port it.
Sent from my Nexus 7 using xda premium
monster860 said:
So how do I install the proper libraries? My device has the stock rom and it is rooted.
Click to expand...
Click to collapse
Wtf? You should read up on how applications work. Installing libraries is the least of your concerns. If the application had not been compiled to run on android it won't run. Period. Its not a difficult concept to comprehend.
Sent from my Nexus 7 using Tapatalk HD
monster860 said:
So how do I install the proper libraries? My device has the stock rom and it is rooted.
Click to expand...
Click to collapse
Doesn't work that way, differnet binary code won't run on a system it's not compiled for, choice is to recode I yourself or hope someone has a battery sucking emulator for android.
Sent from my Nexus 7 using XDA Premium HD app

Alternative OS

Hi guys,
which alternative os could be installed on the Nexus 7 (2013)?
Actually i would be glad to install Ubuntu on my device, but thats not possible because of a different cpu architecture...
So i ask you for a list of possible operating systems which not based on android like cyanogon...
Why? Just want to free from google and test it...
Actually i would be glad to install Ubuntu on my device, but thats not possible because of a different cpu architecture.
Click to expand...
Click to collapse
Actually you can install lots of different versions of linux on your Nexus 7, including Ubuntu and Backtrack. Check this app. The Nexus 7 is on the supported list.
operating systems which not based on android like cyanogon
Click to expand...
Click to collapse
Actually cyanogenMod is just a customized version of Android, it's not a different OS. So i take that what you meant is installing a different ROM on your Nexus 7. Anyway you should start from here
This app seems to be an emulator for different linux distros, don't?
I would prefer a full flash and boot right into linux e.g ubuntu...
michaaaaa said:
This app seems to be an emulator for different linux distros, don't?
I would prefer a full flash and boot right into linux e.g ubuntu...
Click to expand...
Click to collapse
He was just trying to help you. May be you should use search in the forums or use google. I typed linux on nexus 7 and found tons of results. Also there is a thread for Firefox OS in the Development forums. You would be much safer doing the linux inside android from the play store.
http://forum.xda-developers.com/showthread.php?t=2479192
He was just trying to help you.
Click to expand...
Click to collapse
--> You are right, sorry for my english...Its not my mother language...
May be you should use search in the forums or use google. I typed linux on nexus 7 and found tons of results. Also there is a thread for Firefox OS in the Development forums.
Click to expand...
Click to collapse
--> Well, all these posts foucesd on the old nexus 7 - first gen. Ubuntu official says it's no supported at this moment (source: wiki.ubuntu.com/Touch/Install#Supported_devices_and_codenames)
So I came here to find other Linux os...
You would be much safer doing the linux inside android from the play store.
Click to expand...
Click to collapse
Okay - I will give it a try. But I realy can't imagine it's fast and stable enough for continuous running (what I am looking for)...
Firefox os sounds greate too! Thanks for the hint!
The complete Linux installer says it only works on certain supported kernels. I'm no expert, so is the stock kernel supported? I'd like to try Ubuntu on my rooted stock Nexus 7 2013. (32G)
Scroll down some and you would of found this.
http://forum.xda-developers.com/showthread.php?p=46112123
Sent from my GT-I9505G using Tapatalk
gray screen
So guys,
I just try it and can't get it run...
I used Linux Installer and followed the guide.
But when I connect with VNC I only see a gray screen, allthough I started xstartup...
Please help...
My Device:
Nexus 7 (2013) - cyanogenmod 4.3.1

Instaling GNU/Linux on Nexus 7 (Grouper)

I ve just read an article here on xda how to install debian on top of Android so i am just curious is there a way to just install linux not on top of android.I have advanced knowladge of Windows and Android and basic terminal knowladge in Linux and i am good at following guides and tutorials but i am far from developer and programer so keep that in mind and keep it simple as possible.Thanks in advance
JovanSijacki said:
I ve just read an article here on xda how to install debian on top of Android so i am just curious is there a way to just install linux not on top of android.I have advanced knowladge of Windows and Android and basic terminal knowladge in Linux and i am good at following guides and tutorials but i am far from developer and programer so keep that in mind and keep it simple as possible.Thanks in advance
Click to expand...
Click to collapse
So are u asking to replace or dual boot android OS with linux, or have a chroot?
Aurey24 said:
So are u asking to replace or dual boot android OS with linux, or have a chroot?
Click to expand...
Click to collapse
Replace
JovanSijacki said:
Replace
Click to expand...
Click to collapse
Well actually, have u tried searching on how to replace Android os with bodhi?, u could also say the same for the 13.04 Ubuntu desktop as well.... That is of u know how to change the repos, update and fix errors. Arch Linux is another option... Been trying to get that one to work but nothing happens correctly smh
Aurey24 said:
Well actually, have u tried searching on how to replace Android os with bodhi?, u could also say the same for the 13.04 Ubuntu desktop as well.... That is of u know how to change the repos, update and fix errors. Arch Linux is another option... Been trying to get that one to work but nothing happens correctly smh
Click to expand...
Click to collapse
i understand there is a difference between arm and x86 architecture but is there anyway to install for example lubuntu or lxle on grouper.
Also there is support for installing all ubuntus befor 13.04 so if i download lubuntu 12.04 is it going to work since it is based on ubuntu?!?

Categories

Resources