android-source

“android list target” show nothing for AOSP build

泄露秘密 提交于 2019-12-11 18:53:48
问题 According instructions listed in http://source.android.com/source/building.html, a full build can be build, and the emulator can be started OK. Android 4.0.4 source codes is downloaded and built. . build/envsetup.sh lunch full-eng make root@computer0OfGod:~/customEmulator# android list target Available Android targets: But run android list target show nothing, so avd can not be created. Expected result is that there should be at least one target be listed. How can I bring the target out? 回答1:

How do I “upload” tags to Gerrit using repo?

被刻印的时光 ゝ 提交于 2019-12-11 18:40:46
问题 I have inherited an Android project that uses the Gerrit and Repo tools to manage the Git repositories on a VM. My normal work flow involves using the git add and git commit commands to work on my local branch and using repo sync and repo upload to update the remote. After repo upload I use Gerrit to approve changes for myself and others. This is working okay except that I cannot figure out how to upload the tags I have created on my local branch. I have tried using the git push --tags

How to add external libraries such as Retrofit and butterknife in Android Source code packages?

雨燕双飞 提交于 2019-12-11 18:05:00
问题 I am building a custom rom from AOSP source code I first decided to edit some AOSP apps from AOSP source tree by downloading and importing to Android Studio I selected ExactCalculator for training But the AOSP don't have Build.gradle to add my dependencies . I added some material components and also Retrofit ,Gson, Butterknife and dagger 2 in Android Studio built.gradle and implemented currency converter via an API in AOSP stock Exact Calculator Now I overwritten the packaage src folder in

Android source referencing missing classes

限于喜欢 提交于 2019-12-11 17:13:38
问题 I cloned some of the trees from the Android Open Source Project to take a look at the code, but I can't build them because they reference classes which don't seem to exist. For instance, the music application here references android.media.MediaFile which according to the package summary does not exist, as well as things like ArrayListCursor which has an old javadoc around but is absent in current documentation. So is the open source project disjoint from the released SDK? Also, is there a way

Importing Android source to Eclipse: outdated .classpath?

不羁的心 提交于 2019-12-11 15:39:21
问题 I successfully imported the Android source code into Eclipse. Now Eclipse says I am missing files, but I know I have them present on my hard drive. The .classpath is outdated which I acquired from this link. Check Basic setup , second quote. I had to remove some src files that was outdated and missing from my hard drive. Now I have to find the right ones that are present on my hard drive but missing by Eclipse. Finding and adding them one by one will be a pain. Is there an updated .classpath

repo fail to init on Ubuntu 16,0 virtual box on Macbook

末鹿安然 提交于 2019-12-11 13:19:21
问题 I am trying to build AOSP image on my mac Book using Linux virtual box. Since I don't have enough space on Mac I am trying to checkoutAOSP on external 2 TB Segate HDD which I planned to use for build. I have installed repo tool and python 2.7 but when I try to init repo with this command repo init -u https://android.googlesource.com/platform/manifest It fail with this error message hitesh@hitesh-VirtualBox:/media/hitesh/2TB/test$ repo init -u https://android.googlesource.com/platform/manifest

Avoid device-specific Android source code fetching

怎甘沉沦 提交于 2019-12-11 12:24:22
问题 I am working with the Android source code. Every time I do a repo sync I get to download loads of device-specific repositories I don't want because I will only target one device, let's say, HTC Ace. Is there a way to avoid such overhead? 回答1: As someone else already has suggested, the local manifest can be used to patch the original manifest. However, manifests can also put projects into groups and you can use the -g option to repo init to choose which groups of projects you want to download.

Build AOSP custom rom

删除回忆录丶 提交于 2019-12-11 11:01:59
问题 I'm trying to build enforcing, but I had 7 violations. How can I fix? libsepol.report_failure: neverallow on line 5 of device/motorola/sanders/sepolicy/vendor/ims.te (or line 75926 of policy.conf) violated by allow hal_camera_default hal_camera_hwservice:hwservice_manager { add }; libsepol.report_failure: neverallow on line 3 of device/motorola/sanders/sepolicy/vendor/hal_nfc_default.te (or l ine 75741 of policy.conf) violated by allow hal_secure_element_default hal_secure_element_hwservice

Where is Android 4.1 (Jelly bean) source code?

落花浮王杯 提交于 2019-12-11 10:34:42
问题 I am looking for Android 4.1(jelly bean) source code. Over the internet there are lots of blog mentioning that source code has been published. But I couldn't figure out where. I looked here http://source.android.com/ , But it is showing source code for Android 4.0. I downloaded the whole repo but couldn't fine the 4.1 branch. Am I missing something here? Can Any one help me to find the source code? EDIT Until now source.android.com is not update with the latest download instructions. If I use

Error: missing android-support-constraint-layout in AOSP but prebuilts/sdk/current/extras has it

走远了吗. 提交于 2019-12-11 08:32:22
问题 My Android source repo already has two jar files android-support-constraint-layout.jar and android-support-constraint-layout-solver.jar respectively at prebuilts/sdk/current/extras/constraint-layout/libs/ and prebuilts/sdk/current/extras/constraint-layout-solver/ . Now, I have an app in packages/app, where I have an app/src/main/Android.mk : LOCAL_STATIC_ANDROID_LIBRARIES := \ ... android-support-constraint-layout \ android-support-constraint-layout-solver Still, I get the following error