问题标签 [android-framework]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - Android 图片过滤器
我正在制作应用程序,我想在图像上添加过滤器并将其保存在本地和服务器上。是否有任何库可以进行灰度、反转等过滤。我需要帮助如何继续使用该应用程序。如果没有库,那么建议一些机制开始。
android - 在 android 的 init.rc 中注册我的应用程序,以自动重启
我想在 init.rc 中注册我的服务或我的应用程序
换句话说,一个普通的android应用程序有ZYGOTE作为它的父级,它可以在强制停止后被杀死。但是,如果注册或使我的应用程序成为父 级 init.rc,我将能够实现我想要的!
有相同的信息吗?提前致谢
android - android系统服务器缓存应用数据
我正在研究一个android框架。我实现了一个工作正常的系统服务器,即一个示例应用程序可以与该服务通信。现在我希望我的服务器能够读取和写入数据到文件或类似数据库的 sqlite 中。我对 android 框架开发很陌生,所以我不确定它是如何工作的。任何帮助是极大的赞赏。
android - 为什么android源码中有这么多与框架相关的git项目?
您可以通过链接https://android.googlesource.com/?format=HTML获取此列表
那么这些项目之间有什么关系呢?
编辑 1:
根据如何理解android根树的目录结构?, 我们知道
Frameworks - 这个文件夹对 Android 来说是必不可少的,因为它包含框架的源代码。在这里,您将找到关键服务的实现,例如带有包和活动管理器的系统服务器。Java 应用程序 API 和本机库之间的很多映射也是在这里完成的。
但是仍然不知道 mff , ml 等是什么,也许它们与 JNI 有关,但它到底是什么?有什么文件可以说明这个细节吗?
java - 添加新的权限组android
我正在开发一个项目,以在 android 设备中提供一定的共享功能。为此,我创建了一个系统服务。现在,当在应用程序中调用该服务时,它基本上获得了开发人员在 AndroidManifest.xml 中设置的权限。现在我的服务在应用程序的上下文中工作。我希望该服务通过蓝牙/ wifi 共享一些数据。为此,我假设有两种方法-
- 创建一个新的权限组并修改 PackageManager 以了解这个新的权限集。
- 而不是使用全局系统上下文(类似于 root 用户)传递应用程序上下文。我不确定这一点。是否允许我这样做。
public DataSharingService(Context context) { super(); this.mContext = context;}
我可以用其他方式初始化 this.mContext 来实现这一点并拥有不同的权限集。
java - 系统服务器和应用程序权限
我在 android 框架中编写了一个系统服务器/服务。据我所知,它具有系统级权限。但是,当我使用应用程序调用此服务时,我获得了调用该服务的应用程序的权限。谁能解释这种行为?另外我该如何解决这个问题?
android - Building separate Android modules with dexpreopt disabled
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:
But this doesn't work. Every time I try to boot, the new system image won't boot because of:
After some research, I tried to disable dexpreopt with the enviroment variables
and
and doing a full rebuild with 'make installclean'. The full rebuild works, and the changes to the framework are present in the build. But after doing a new change, still 'mmm frameworks/base' and 'make snod' result in dexpreopt mismatch.
The build/core/makefile from 'make snod' also gives the warning: 'Warning: with dexpreopt enabled, you may need a full rebuild.', which comes from this line in the makefile:
This leads me to believe the $WITH_DEXPREOPT variable isn't correctly set or read? So far I haven't been able to get a bootable system image without doing a clean full rebuild. Is the procedure I follow the correct to disable dexpreopt, or are there any other ways to build separate modules after doing changes to the framework and getting a new system image?
Build target is 'full-eng'.
android - 在 Eclipse 中调试 Android 框架
我正在做一个项目,我正在对 android 框架源进行更改。在 Eclipse 中执行此操作并能够进行调试的最佳方法是什么?我已经看到在 Eclipse 中附加 android 源代码的帖子,但那是“标准”源代码,而不是我自己的版本。
目前我只是在文本编辑器中更改框架并每次通过命令行构建,从命令行运行模拟器并启动 adb logcat 会话以查看是否没有任何异常,但必须有另一个(更高效/可行)的方式来做到这一点?
eclipse - 对Android框架进行修改后的android.jar(在Eclipse中)更新?
我修改了 Android 框架,并添加了我自己的服务。现在我想使用新的方法和服务。
但是,当我打开 Eclipse 进行调用我的新方法和服务的应用程序级应用程序开发时,Eclipse 无法解决它们。
这个时候我该怎么办?谢谢,
android-framework - 如何将 AAC 解析器集成到 Android 源代码中?
请向我解释一下 AACExtractor.cpp 是关于代码方面的全部内容。