android-source

How to mount AOSP .img files?

孤者浪人 提交于 2019-12-03 22:58:27
I generate *.img by building AOSP . Like ramdisk.img,boot.img etc. I want to mount this file. I'm using Ubuntu. skoperst You cannot mount boot.img file, as it's not a valid filesystem The boot.img file contains ramdisk and kernel binary ( zImage ) and possibly dt.img (device tree). There is an excellent open source project: mkbootimg_tools at GitHub . You can use it to split the boot.img file and unpack the ramdisk. simg2img Some Android images are compressed by default for some builds. This is the case for example of the HiKey960 build with lunch hikey960-eng , but not for emulator builds e.g

How to add extra permission to a prebuilt application (no source code) in AOSP

和自甴很熟 提交于 2019-12-03 21:34:10
问题 I have an application that doesn't have a specific android permission(for example android.permission.CHANGE_CONFIGURATION ). I don't have its source code. I'm working on an AOSP. I prebuilt this application like: Put APK in /device/model/apps/HERE Add these snippet codes in Android.mk: define PREBUILT_templateByMe LOCAL_MODULE := $(1) LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_CERTIFICATE := PRESIGNED LOCAL_SRC_FILES := $$(LOCAL_MODULE).apk LOCAL

Android Kernel modifying

雨燕双飞 提交于 2019-12-03 21:30:47
I'm a Android application developer. For some reasons, I should change the Android kernel a bit. But I don't know anything about kernel. I will be appreciated if someone introduce me a website who explain android kernel modules and other info about it. In the standard Android open source distribution the kernel is distributed as a pre-built binary in the mydroid/prebuilt/android-arm/kernel folder and the source code is not included. The kernel source was removed from the default manifest for two reasons as I take it. One is that it takes a lot of bandwith and diskspace for a platform component

Loading kernel module in Android kernel

女生的网名这么多〃 提交于 2019-12-03 16:38:57
问题 I am listing my problem here. I have a Google Nexus one a.k.a. "passion" phone with me. Fastboot and adb tools are installed in the phone. And the boot loader is unlocked. My task: I have to add a linux kernel module to the Android kernel. What I have done: I followed the steps in http://source.android.com/source/initializing.html and downloaded the kernel for android-2.3.6_r1 (passion) and have built it. I am also able to flash it on the phone and the new android kernel also works fine. Now

How to show special characters in Android?

你离开我真会死。 提交于 2019-12-03 16:22:26
I am developing a native app which consists of some mathematical formulas. Formulas will be like......... I want to display such formulas in my application, but i don't how to use these special characters in Android. I want to display each formula individually in a list view...... If i am copying formula & if i am setting text to text view means it is showing like txtv.setText("\\cos^2\\theta + \\sin^2\\theta = 1\\! "); and getting output in the same pattern. So, can anyone help me how to use these mathematical special characters in Android.. Sorry, there are not a lot of different solutions..

Running AOSP build on Mac (Yosemite and later)

南楼画角 提交于 2019-12-03 14:08:33
问题 I was able to get the source code for android-5.0.1_r1 into my working directory. However, I have trouble building and running the code on an emulator because the lunch command is giving me trouble. repo has been initialized in /Volumes/AOSPDiskImage/AOSP Nikhils-MBP:AOSP Nikhil$ . build/envsetup.sh including device/asus/deb/vendorsetup.sh including device/asus/flo/vendorsetup.sh including device/asus/fugu/vendorsetup.sh including device/asus/grouper/vendorsetup.sh including device/asus

Android Custom Launcher startActivity() blocks BOOT_COMPLETED intent

匆匆过客 提交于 2019-12-03 13:41:03
问题 I am currently working on a custom ROM (based on CyanogenMod 11.0), which aims to implement a custom "Kiosk Mode". To do this, I have three components in one application (with system privileges): The service, which handles modifications to the status/navigationbar and disables the power key. The receiver, which only starts the service after the BOOT_COMPLETED signal is received. The HomeIntentWrapper works as the launcher, and only starts one custom activity. The problem I am currently facing

Making an app in the Android Source compile into system/app instead of data/app?

时光毁灭记忆、已成空白 提交于 2019-12-03 13:20:30
I'm compiling an Android ROM from source, and I have several apps that compile, but into data/app on the phone. They're uninstallable through the phone settings. I want them to be impossible to uninstall from the phone, and to compile into system/app instead of data/app. Any advice? edit:typo Add: LOCAL_MODULE_PATH := system/app LOCAL_UNINSTALLABLE_MODULE := true LOCAL_CERTIFICATE := platform Here is an example of mk file that you can use. In my case the application is then build into system/app : LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES :

Add prebuilt apk to AOSP build

∥☆過路亽.° 提交于 2019-12-03 13:19:18
I tried to include a prebuilt google apk (with no .so file) to my marshmallow AOSP build based on the information found in this link as follows: In my vendor/manufacturer/device/proprietary/system/app, I created a folder named 'Testapk'. I saved two files in this 'Testapk' folder, the apk ('Testapk.apk') and an Android.mk file which contains the following instructions: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_MODULE := Testapk LOCAL_SRC_FILES := $(LOCAL_MODULE).apk LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)

How can I find the source for Android 2.3.3 Platform?

假装没事ソ 提交于 2019-12-03 13:02:46
When in debug mode I get a source not found message for the android stuff. I am using Andorid-10 to match my device. In the 'android-sdk\sources' I have android-14 and Android-15. How and where can I get the Andorid-10 source tree. I have looked at http://developer.android.com/sdk/android-2.3.3.html but I can't find a source to download. The best answer for me is going to http://code.google.com/p/adt-addons/ and downloading the Eclipse plugin for Android Sources . To get the plugin, in Eclipse select the 'help' button and select 'install new software'. Then give it http://adt-addons.googlecode