Sync android framework code and build with custom changes - android

I'm a Java developer and now exploring android.. I've learnt developing Apps but want to customize the framework and build it and deploy on my phone.. Web says a Linux machine is needed. I installed Ubuntu virtual machine on my windows 7 Machine..
How do I now sync the code and carry development?

Installing stuff and building android from source code
Installing the repo client.
Time to create a working directory so you can put the downloaded code there . Now If you know the branch/version of android you want to download you can initialize the repo and start downloading.
Follow the links below for more details on how to setup the repo (wrapper around git) and start downloading the source code.
Finally when the source code download finishes , start building the source code .
Finally run it...
emulator
FYI :
Make sure you have java (the version mentioned on the links) is in your system path.
Here are some resources to try building android from source code.
Android source code page
I wrote something on it as well...Read it here

Related

How to download and open Cordova using Visual Studio Code

I am trying to set up Apache Cordova with Visual Studio Code. However I do not understand what I am supposed to type into the Visual Studio Integrated Terminal. I saw a video on how to do it here. I've also downloaded Android Studio. But around 48 seconds into the video, it talks about what commands to write in the integrated terminal. But my integrated terminal does not look the same. Mine starts with my file name. So I am not sure what to write there.
Does anyone know how to setup Cordova in Visual Studio Code?

How to get buildable android app out of AOSP source

I try to make a own Dialer-App, to get some basic functions to work I try to get the original Dailer from the AndroidOpenSourceProject up to running. I pulled the code from AOPS Dialer master and open it in Android Studio. It told me it detects 103 Manifest files but the project could not build.
As I understand this projects need to be builded into a ROM and not to be builded with the SDK. Is there anyway how I can get this project to be builded with Android Studio and run it on a device/emulator?

Difference between PhoneGap and Cordova and which one should we install?

I have been tasked with developing an Android and iOS application with PhoneGap (http://phonegap.com/)
However, as I read, things start to get really complicated: Some people say Cordova (http://cordova.apache.org/) is now PhoneGap, others say PhoneGap is just a distribution of PhoneGap.I lost 3 days and still can't find a proper way or a guide to install a fully functional PhoneGap plugin either in Eclipse or Netbeans running Ubuntu 12.04 64-bit.
What I tried:
1. Installing Eclipse, installing MDS AppLaud Phonegap Plugin (http://marketplace.eclipse.org/content/applaud-phonegap-android-jslintjshint#.Utf1JPiSTh8). This one actually installed at once, and it actually lets me create a new PhoneGap project in Eclipse, however, the I cannot select any SDK different than 4.4. (?!)
2. Installed NetBeans and after I tried to install phonegap and cordove through nodeJS it failed, again.
My question is:
Which one I should install and how to do it in Ubuntu, using either Eclipse of NetBeans?!
Edit:
OK guys, I just found out how to install nodeJS and PhoneGap on Ubuntu 12.04: http://paste2.org/1OnX6M6F . Still trying to integrate it in some IDE for the real thing, though!
If you want to basically start developing an app, I suggest this for PhoneGap:
These are the steps I used to install PhoneGap on Ubuntu. Take note, this is for PhoneGap version 2.8.1. Personally I was not able to get nodeJS to install the latest. If you need the latest to be installed, check around on google. Referencing This tutorial.
Step 1
Install Java 7 JDK
Step 2
Install ANT
Step 3
Download & Extract PG v2.8.1
Step 4
Download Android SDK
Step 5
Set up environment variables
Step 6
Create base project
./create location/to/put/project package_name project_name
Step 7
Import Project into Eclipse
File->New->Android->Android Project From Existing Code
Browse to where you placed the project and select it
Now you can start developing.
Reminder: This is the way to do it for v2.8.1 of PhoneGap. Different versions(especially 3.*) will be different (nodeJS)
Look at http://docs.phonegap.com. Read the "Overview chapter, then "Platform Guides" and "The Command-Line Interface". Follow the steps and in the end you should be able to build your app. It takes a while but it's worth it.
I havn't integrated cordova/phonegap in my IDE. I just created the app with the command line interface. In netbeans I created a HTML5 project and linked the app-root/www directory into this project. I'm programming with Netbeans and building and running the app with the command line interface. That's all.
In order to have some code completion, I have written an extra class (facade) which encapsulates the phonegap code. It just delegates its calls to the phonegap API. That is especially nice if the phonegap API changes as it only affects my code in that particular facade class.
The last thing I want to share: I found out that the build and run process with the command line interface is pretty slow. Executing cordova prepare android and then running the android project in Eclipse/ADT is a lot faster.
OK, to put it simple:
PhoneGap - The original project developed by volunteers
Cordova - The Apache's version of Phonegap, which has exactly the same documentation and functionality as the original PhoneGap but is integrated in NetBeans 7.4.

Android - GitHub Open Source Project android-alt-installer

I have some questions regarding the Github open source project...from this link https://github.com/android-enhancement/android-alt-installer as it creates custom installer.
Is it specific to device's android operating system or an application..? so that i will be able modify installer code for my application, so that it runs the same install procedure on all android devices.
I would like to modify installer as to perform some check for a file before installing the app.If the file is not present the installation should be aborted.
I have a Windows 7 OS and developing apps using eclipse IDE.
Also I read the README.txt in the above link (repeatedly) and I was not able to understand.
Can I implement the custom installer to my application..?, could one any give me a simple and clear explanation.
Any help on this would be appreciated.

android framework development

I am new in android framework development .
I try to add a service in platform/base and then I make the whole platform folder follow a post online.
Now i don't know how this change can be applied to android application. Do I need to get a new android.jar package for the application?
Thanks
update --------------------------------------------
currently I have the android source code and modified its framework by adding a testservice.java following this : Android-Adding SystemService
Then I need to write a test app to use this testservice. But I don't how to add an app to that modified android source code. I try to following this:set up the Eclipse IDE for Android platform development to add app src path to eclipse build path , I doesn't work.
before this i use eclipse and ADT to write android apps, i am wondering is there any way to write an app in the modified android source code ?
Thanks
I copied an app under [androidroot]/packages/apps/ folder and rename it and modify some code . Then it shows in application list. It works!
But the problem is the directory structure is strange , very different from the one I create from the eclipse + sdk .
So is there anyone know how to develop apps under a modified android framework.
Thanks !!!
I see a quick and dirty solution: replace the corresponding android.jar in the install SDK location (for example $ANDROID_HOME/platforms/android-8/android.jar if you deriver from Android 2.2).
Also you may try to spoof a separate platform revision in $ANDROID_HOME/platforms. Something like android-99 to avoid clashes with the actual future platforms.
Though all of these are dirty tricks this may work for quick testing of your platform code without much pain.
It is exactly the same as the project you create using eclipse. What's more all you need is to write a makefile in the directory.
Then mmm framework/res framework systemserver
bw

Categories

Resources