android-source

How to import the Android App project source code in Eclipse?

情到浓时终转凉″ 提交于 2019-12-07 16:56:00
问题 I downloaded the android source code for callLog UI for the Contacts, Call log, and Dialer applications using this link https://android.googlesource.com/platform/packages/apps/Contacts/ Now, I want to use it on eclipse. But when I try to import the project,it says it didnt found the project. Then I tried to set all the configurations manually, but it show a lot of errors with the importing, the AndroidManifest.xml, with the R.java, etc. So is there any way of import this directly as a project

How to change Application Not Responding (ANR) Timeout in AOSP [closed]

最后都变了- 提交于 2019-12-07 06:43:01
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . How do I change the Application Not Responding (ANR) timeout in the AOSP source code? The default timeout is 5 seconds, but where is that set and how do I change it? 回答1: The ANR Timeout is defined in File InputDispatcher.cpp (frameworks\base\libs\ui) . Copying and pasting that piece of code below.

Accessing Androids UpdateEngine (or other SystemApi classes) from application code

♀尐吖头ヾ 提交于 2019-12-07 03:49:23
问题 I'm trying to write a system-updater application, which uses the UpdateEngine of Android 7+. However, I can't seem to get access to it from my java code, since the class and its methods are marked with @SystemApi. I integrated my application into the AOSP tree, but I can't start a successful compile from my application directory: When i run mm in the app dir, I directly get the following error: The import android.os.UpdateEngine cannot be resolved This also happens if I just add the import

Android Repo init failed

孤人 提交于 2019-12-06 17:55:36
问题 I think i follow instruction from this site very carefully http://source.android.com/source/downloading.html but when i try this repo init -u https://android.googlesource.com/platform/manifest i got the following error. repo init -u https://android.googlesource.com/platform/manifest -b froyo /root/bin/repo: line 1: syntax error near unexpected token `newline' /root/bin/repo: line 1: `<?xml version="1.0" encoding="utf-8"?>'enter code here` I tried several times but no luck from the very

Usable VideoView source code for Android 2.2

人盡茶涼 提交于 2019-12-06 15:35:51
I am building my own view for displaying videos, and I would like to base the custom view on the built-in Android VideoView. I'm therefore looking for the source code to VideoView. Most posts I've found on Stackoverflow and elsewhere point to grepcode. Unfortunately, the code on grepcode doesn't seem to be the code documented on developer.android.com and isn't very usable. For example, the VideoView.java on grepcode references an mContext object which is inherited from View, but not available in the View of the developer.android.com sdk. In addition, the VideoView calls a resume method of

Download Android code for Contacts application

家住魔仙堡 提交于 2019-12-06 14:04:18
I am trying to download Android source code for Contact,Dialer and CallLog applications from the git repository. I have tried the following on my mac(running SnowLeopard): 1. Create a bin dir and a android dir for putting all the downloaded files 2. Added both of the directories to the PATH environment variable 3. run the following commands to get the repo script and make it executable: $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo 4. cd android dir 5. run repo init -u https://android.googlesource.com/platform/manifest -b froyo When I run

Where and how can I find and download Android 1.5 source code?

坚强是说给别人听的谎言 提交于 2019-12-06 13:40:16
Where and how can I find and download Android 1.5 source code? Ryan Conrad To get a specific branch of the android source, you use the repo just like you would to get the latest version. After you follow the instructions on the info for setting up the machine in the links that were supplied by the other answers, you would run repo init -u https://android.googlesource.com/platform/manifest -b cupcake That will pull the 1.5 version of the source code. Mark Ingram http://source.android.com - The homepage for the Android source https://android.googlesource.com - The homepage for the actual Android

Building Android source: error when executing mm?

南笙酒味 提交于 2019-12-06 12:07:03
问题 Update I got this working. How I am not sure. I did no config changes at all. What I did was: Modify Dialog in frameworks/base/core/java/android/app . Went to my root ( /path/to/source/ ). Then I did mmm frameworks/base/ . Everything worked. Then I tried exactly what I had already tried below: Modify ScrollView (I actually never said which file I was modifying) in frameworks/base/core/java/android/widget . I ch 'ed to frameworks/base/core/java/android/widget . Then I did mm . This time I had

How to include constraint layout library in an AOSP project

做~自己de王妃 提交于 2019-12-06 12:04:15
问题 I have an existing android application that I'd like to build inside AOSP (android source tree) using Android.mk. The app uses constraint layout which is not included in AOSP source tree (AFAIK). How can I satisfy this dependency? Other support libs are included such as recyclerview, v4 etc but not contraint layout. Should I download the lib aar and if yes , how do I add/include it? Or should I get the source (where to download?) and build it somewhere in the source tree? Thanks in advance

Download Android kernel source code

久未见 提交于 2019-12-06 09:27:44
问题 I have been trying to download goldfish kernel source code but no luck. Upon hitting the following command I end up with the source code of sized 1GB: git clone https://android.googlesource.com/kernel/common However we I pressed on following command, git checkout -t origin/android-goldfish-2.6.29 -b goldfish it prompt me: Fatal error: git repository not found. Even though, git branch -r is also giving me same error. 回答1: git clone git://android.git.kernel.org/kernel/common.git and then cd