android-source

How to include prebuilt APK into AOSP with platform privileges

浪尽此生 提交于 2019-12-08 06:36:14
问题 I'm building a version of the AOSP for custom hardware and I'd like to use some root permissions (INJECT_EVENTS, UPDATE_DEVICE_STATS, CONNECTIVITY_INTERNAL). For rev control, it would be ideal to use an APK-based distribution. As such, I'd like to include the APK in the build instead of building the source every time. The program gets successfully included, but the system privileges are ignored. Is there a way to include this program such that it receives the necessary privileges? I'm hoping

When I run CTS after a few hours the adb connection to device becomes unresponsive

≡放荡痞女 提交于 2019-12-08 05:28:51
问题 I am executing CTS on Jacinto 6 Evaluation Module ( ti-jacinto6evm ) and I'm encountering a number of test case failures that I don't understand. I started by building both AOSP and CTS. Both builds were just fine. I can flash my test hardware ( ti-jacinto6evm ) and then I followed the instructions for setting up CTS. I have run CTS for more then 10 times on the same device and every time I got different results. The ti-jacinto6 device randomly gets hanged during execution of the test cases.

Where can i browse the Android 2.2 Froyo source of java.lang.String? [closed]

痞子三分冷 提交于 2019-12-08 05:27:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I would like to browse it online. The official Google one is always preferred. In particular, i want to access https://android.googlesource.com/platform/libcore/+/froyo/luni/src/main/java/java/lang/String.java But as you can see in the list here, only gingerbread and later releases are available. https://android

Building AOSP for my HTC Device

瘦欲@ 提交于 2019-12-08 05:27:00
问题 So, I decided to do something about the AOSP ROM deficiency of my HTC device and build one of my own. I have the kernel source archive from HTCDev, which as the kernel source .zip and a platform.zip file in it (which further has the 'development' and 'external' directories in it). This is unlike Sony's devices, which are already hosted on GitHub with the required configurations and a very helpful guide to building your own AOSP ROM. For HTC, I am not understanding what goes where. I have

AOSP Marshmallow modify/set default permission

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 05:13:57
问题 I have built my own AOSP Marshmallow on my Nexus 5 device and got trouble with the permissions. If I add a new permission into the AndroidManifest.xml of an existing application, this permission will be by default turned off. I have to manually set it. The other permission for example Contacts is being active (the once I did not modify and seems to be standard even after factory reset). So there has to be a file which gives conclusion about the standard permission of the applications. I just

Building for Froyo, Styling for ICS

℡╲_俬逩灬. 提交于 2019-12-08 04:07:22
问题 I'm planning on writing an app and building against 2.2 Froyo (API Level 8). However, I want app users of 4.0 ICS to experience the app with the ICS user interface. Currently my approach is to have the default activity of my app sense the version of the Android device. If it is less than 4.0, use XML views written for Gingerbread and Froyo and, if it's 4.0 or higher to use ICS XML views. This however seems a bit haphazard and I'm not sure I can manage the separation of version views

Understanding how android app is installed by PackageManagerService

橙三吉。 提交于 2019-12-08 01:30:24
问题 So I've been digging around AOSP trying to figure out how an android app is installed. So far this is where I'm at: The apk File will be sent from PackageInstallerActivity to InstallAppProgress where it invokes the PackageManager method installPackage(). The previous call to PackageManager gets directed to the PackageManagerService, with the magic of AIDL (took some time for me to understand this). In the core method installPackageWithVerification() an instance of the PackageHandler gets

m3u8 file not playing in Android Emulator

半世苍凉 提交于 2019-12-08 00:44:23
问题 I am trying to playback a m3u8 file in Android Emulator. http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 It's not able to playback the video but audio is heard. I get the following error E/OMXNodeInstance( 39): OMX_GetExtensionIndex failed . I traced the calls and I see that the video decoder is not instantiated properly, I find that OMXNodeInstance::enableGraphicBuffers is getting called and that calls, OMX_ERRORTYPE err = OMX_GetExtensionIndex(...,const_cast<OMX_STRING>("OMX

Android source framework modify rebuild but become effective in emulator

…衆ロ難τιáo~ 提交于 2019-12-07 23:43:23
问题 i modify /framework/base/services/core/java/com/android/server/am/ActivityManagerService.java some logcat output string. and i try to use different ways to rebuild it: make -jN from top folder or mmm /framework/base -jN or mmm /framework/base/services -jN and then i get a new output file in /out/target/product/generic_x86/system/framework/x86/services.odex and then i update system.img by make snod then i try to restart emulator, or adb remount adb sync , or kill system_server process but

Building AOSP for my HTC Device

我是研究僧i 提交于 2019-12-07 20:35:34
So, I decided to do something about the AOSP ROM deficiency of my HTC device and build one of my own. I have the kernel source archive from HTCDev, which as the kernel source .zip and a platform.zip file in it (which further has the 'development' and 'external' directories in it). This is unlike Sony's devices, which are already hosted on GitHub with the required configurations and a very helpful guide to building your own AOSP ROM. For HTC, I am not understanding what goes where. I have followed the Sony guide to the point where I need to download around 10GB of source code, that unpacks into