android-framework

Android: How to integrate a decoder to multimedia framework

☆樱花仙子☆ 提交于 2020-01-08 19:41:14
问题 Recently i have ported a video decoder to android successfully. Also dumped the output on a surfaceview and checked the output using native API's. Now the next task is to implement play, pause, streaming etc. i.e. the other features of the media player. Doing this will be a rework as all these functionalities are already defined in the android multimedia framework. I heard that we can make our decoder as a plug-in and integrate it into Android's multimedia framework. Although i googled

Enabling Hardware Encoder in Jelly bean 4.1.1 rowboat DM3730

雨燕双飞 提交于 2019-12-24 23:39:06
问题 Kindly execuse me for the bit longer description about the problem. I have a custom board with DM3730 processor, and building android rowboat from http://code.google.com/p/rowboat/wiki/JellybeanOnBeagleboard_WithSGX OBJECTIVE: ENABLING HARDWARE DECODER. 2.1) For that, I need OMAX-IL Interface. Hence looked at the source code downloaded from TI. But i do not find omap3/ directory under hardware/ti/ which represents OMX implementation. 2.2) Hence downloaded from AOSP Jelly Bean Code By: git

Clear Edit Text - adb

柔情痞子 提交于 2019-12-23 10:19:11
问题 How to clear focused Edit text using shell command. I tried adb shell input keyevent KEYCODE_CLEAR // Not worked adb shell input keyevent KEYCODE_DEL // Delete only one char adb shell input keyevent KEYCODE_FORWARD_DEL // Not worked With this I am only able to delete upto One character only, Is there any way I can delete/clear the focused Edit text. 回答1: This works for me: function clear_input() { adb shell input keyevent KEYCODE_MOVE_END adb shell input keyevent --longpress $(printf 'KEYCODE

Disabling SELinux in Android 5.0.1

眉间皱痕 提交于 2019-12-21 02:49:05
问题 I am trying to identify the configuration file where SELinux is set to Enforcing mode in Android Framework. Please do not reply just saying adb shell su 0 setenforce permissive I need the system to boot in permissive mode or have SELinux completely disabled at boot time. Thanks 回答1: There are two ways that enforcing mode is set. On user builds, it will always be in enforcing. On eng or userdebug, you can control it. You can control it in the standard selinux way, by setting enforcing=1/0 on

Building separate Android modules with dexpreopt disabled

一笑奈何 提交于 2019-12-20 10:57:54
问题 For my thesis, I'm modifying the android framework and building the source (4.1.1 Jelly Bean). I can do a full build, but because this is very time consuming (I'm developing on a ubuntu 12.04 64bit virtual machine) I'd like to build separate modules. For example: When doing changes to the location modules, it should be possible to just build the changed module, and make a new system image: mmm frameworks/base make snod But this doesn't work. Every time I try to boot, the new system image won

Get Android audio stream

寵の児 提交于 2019-12-20 02:34:09
问题 I want to create Android application, which will record all audio from the device speakers. For example somebody is watching youtube video on the phone and he will be able to save sound from it, using my application. Is it possible without framework modification ? 回答1: There's the Visualizer class that let's you grab a low-quality version of the currently playing audio. It probably wouldn't be good enough for the use-case you describe though. Other than that there's no officially supported

NotificationListenerService stopping and can't be restarted without a reboot

自闭症网瘾萝莉.ら 提交于 2019-12-13 11:37:01
问题 With android 4.4 I'm finding that some users are having the notificationListenerService I've implemented will just stop working. I've actually seen this myself too. I've never managed to capture any logcats around the time of it happening, but even going into the notification access section and switching off and back on the notification access doesn't help. Is there something that can cause this to happen. I'm not sure if my app is crashing and causing this, but even if so it seems the only

Android Navigation Bar on side by editing AOSP

廉价感情. 提交于 2019-12-09 06:22:14
问题 I want to put the Navigation Bar (has system soft keys like back, home and menu. not Navigation Drawer!) on the (right) side, like below, by editing AOSP. +-------------------------------------------------+---+ | Status bar (always) | | +-------------------------------------------------+ N | | (Layout with background drawable) | a | | +---------------------------------------------+ | v | | | Title/Action bar (optional) | | | | +---------------------------------------------+ | B | | | Content,

Calling a method in the system process without a qualified user error

与世无争的帅哥 提交于 2019-12-08 14:38:04
问题 I'm using the notification listener service in android 4.4 and I'm coming across an error that causes my app to stop getting notifications posted. It's fairly random, but when it happens I'm seeing: 12-31 01:40:44.080 21680-21680/? W/ContextImpl﹕ Calling a method in the system process without a qualified user: android.app.ContextImpl.sendOrderedBroadcast:1192 android.app.ContextImpl.sendOrderedBroadcast:1183 android.content.ContextWrapper.sendOrderedBroadcast:390 com.android.settings

System server and application permisions

梦想与她 提交于 2019-12-08 06:45:38
问题 I have written a system server/service in android framework. As far as i know it has the system level permissions. But when i call this service using an app i get the permissions of application calling that service. Could anyone explain this behaviour? Also how could i resolve this? 回答1: When in your service you try to call method from other service, try to put the code of call into the following code block: long token = Binder.clearCallingIdentity(); //your call Binder.restoreCallingIdentity