android-source

Best way to change android repository versions efficiently once downloaded using repo/git

為{幸葍}努か 提交于 2019-12-03 12:57:26
问题 I've got a situation where I need to build a set of static copies of Android source code of different release versions. Simply doing an repo init -b $version; repo sync will take forever ( init requires interaction, and the syncs will be wasteful of my bandwidth across versions). My current setup is to download one base version (say 1.6_r1), copy it to a new folder (android-1.6_r2) and then rerun init and sync ( repo init -b android-1.6_r2; repo sync ). The sync fails sometimes though, with

How to listen to dev/binder?

為{幸葍}努か 提交于 2019-12-03 12:31:41
In Android is dev/binder also for layers communication responsible. Is it possible to listen to messages? I know that they must be decoded than, but how can I get this messages. For example if an app send a message to became an Geolocation. I have also root on my android device. Short: Nope, it shouldn't be possible, even with root. There isn't that much informations about Binder in detail on the net but there are some, especially about the security. Refer to this or to point 3.8 here . You may also read the source of the kernel driver and the source of openbinder . You can decode most of the

Building Android from source - emulator and AVDs [closed]

馋奶兔 提交于 2019-12-03 11:54:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I have built the Android source for the emulator. I read in the Android Source documentation that the path to 'emulator' is added autmatically during a successful build. However I have two questions about this: If I open a new shell or close my existing shell, 'emulator' is no

How to develop custom status bar in android JellyBean 4.2.2

给你一囗甜甜゛ 提交于 2019-12-03 11:05:17
I want to develop customized StatusBar. I know i am not the only one with this requirement. But still want to know the opinions. After lot of search on StackOverflow, i found that people have modified status bar using tools but thats not i need. I am bit looking into the direction of developing of my own Status Bar with my own branding and layouting of the system icons. Also i have seen on Google play store about having a customized status bar app like omega status bar and couple more. I am looking for the same implementation. I also learnt that these kind of apps are installed on non-rooted

Error android.content.res.Resources$NotFoundException: File from xml type layout resource ID #0x102000a

喜你入骨 提交于 2019-12-03 11:04:58
Hey, I'm trying to create a design for a list that looks like (and mostly behaves like) the call log, like shown here: For this I downloaded the source code and I'm studying it for know what class and xml file implement it. And I found this two xml files recent_calls_list_item.xml : <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:paddingLeft="7dip"> <com.psyhclo.DontPressWithParentImageView android:id="@+id/call_icon"

How Can the Settings App Start an App's Non-Exported Activity?

半城伤御伤魂 提交于 2019-12-03 10:59:14
Android N lets you link an activity of yours into your app's page in Settings. Just add an <intent-filter> for android.intent.action.APPLICATION_PREFERENCES . Android N's Settings app will look for the activity in your app that has that <intent-filter> . If Settings finds one, it will add a gear icon to your app's page in Settings, and if the user taps the gear, they will be taken to your designated activity. I was worried about security, and so I filed an issue , looking for a permission we could use with android:permission to allow Settings to start our activity, but not allow other apps to

How can I enable the new Bluetooth A2DP Sink feature introduced in Lollipop?

风格不统一 提交于 2019-12-03 10:43:07
问题 I am attempting to modify the AOSP android image for Nexus 5 to include support for Bluetooth A2DP Sink. I've found that Google was nice enough to include a hidden build target for the Nexus 5. https://android.googlesource.com/device/lge/hammerhead/+/android-5.0.1_r1/car_hammerhead.mk That includes modified Bluedroid configuration files that allow the device to advertise the A2DP Sink service over Bluetooth. It also changes the class of device to be a Bluetooth Automative Carkit and modifies

What to do about curl clone.bundle error on AOSP repo sync

跟風遠走 提交于 2019-12-03 10:35:23
问题 Upon downloading the master branch from AOSP I get the following error: curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ignoring. Why is this error coming? Log: * [new tag] android-cts-4.4_r1 -> android-cts-4.4_r1 * [new tag] android-sdk-4.4.2_r1 -> android-sdk-4.4.2_r1 Fetching projects: 7% (32/448) Fetching project platform/packages/apps/Launcher3 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left

Create specific device tree for AOSP

放肆的年华 提交于 2019-12-03 10:17:16
I followed official Google`s tutorial to build my own AOSP and succeeded in all steps: I have "Pure AOSP version" running on nexus emulator. https://source.android.com/source/building.html The story is I have some rare device came with some Android version full of pre-installed app's obviously I don't want. I want to port Pure AOSP to my device - without any improvements or new features (So for example I don`t want to know how to build CM git repo). Is it working just add to my local above master branch correct files into /device/vendor/model and then under cwd of master branch execute $ .

Android: Include su binary executable in AOSP build

两盒软妹~` 提交于 2019-12-03 10:16:12
问题 I have been trying to get the su binary included in the /out/.../system/xbin/su after building Android from source. I have the su binary (from Chainfire) as an executable file but I can't seem to get it included in the AOSP build. All the examples or solutions I've came across discussed about the following in the Android_Source_Root: Removing the su directory from system/extras/ and include the su-binary directory (taken from ChainsDD) in external/. Modify the file system/extras/su/Android.mk