首页 \ 问答 \ 将custom.xml文件添加到AOSP etc文件夹(Add custom.xml file to AOSP etc folder)

将custom.xml文件添加到AOSP etc文件夹(Add custom.xml file to AOSP etc folder)

我想在AOSP中将资源文件/ xml文件添加到etc文件夹中。 我想让我的资源文件像platform.xml文件一样可用。

所以我基本上在AOSP / frameworks / base / data / etc文件夹中添加了我的xml文件,并相应地在make文件Android.mk中添加了以下行



########################
include $(CLEAR_VARS)

LOCAL_MODULE := custom.xml

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE_CLASS := ETC

# This will install the file in /system/etc/permissions
#
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions

LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)

编辑
通过上面添加,我无法在/ system / etc / permissions文件夹中看到我的文件。 我错过了什么吗?


I wanted to add a resource file/ xml file to etc folder in AOSP. I would like to have my resource file available just like platform.xml file.

So I basically added my xml file in AOSP/frameworks/base/data/etc folder and correspondingly added the following lines in the make file Android.mk



########################
include $(CLEAR_VARS)

LOCAL_MODULE := custom.xml

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE_CLASS := ETC

# This will install the file in /system/etc/permissions
#
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions

LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)

EDIT
With the above added I was not able to see my file in /system/etc/permissions folder. Am I missing something?


原文:https://stackoverflow.com/questions/23074411
更新时间:2021-06-01 06:06

最满意答案

我写了这篇关于如何使用Raory的Shoryuken的博文。 在帖子中,我用它来排队抓取和保存Instagram帖子:

http://alex.aspria.net/using-shoryuken-amazon-sqs-with-rails.html


I wrote this blog post on how I used Shoryuken with Rails. In the post, I use it to queue fetching and saving of Instagram posts:

http://alex.aspria.net/using-shoryuken-amazon-sqs-with-rails.html

相关问答

更多
  • 您需要在启动后保存后台进程的PID: foo & FOO_PID=$! # do other stuff kill $FOO_PID 您不能使用作业控制,因为这是一个交互式功能并与控制终端相关联。 脚本并不一定都附有终端,所以工作控制不一定是可用的。 You need to save the PID of the background process at the time you start it: foo & FOO_PID=$! # do other stuff kill $FOO_PID You ...
  • 正如@ChikaneHimeko已经声明创建一个没有窗口的Windows应用程序: #include int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { Sleep(5000); /* ...
  • 我写了这篇关于如何使用Raory的Shoryuken的博文。 在帖子中,我用它来排队抓取和保存Instagram帖子: http://alex.aspria.net/using-shoryuken-amazon-sqs-with-rails.html I wrote this blog post on how I used Shoryuken with Rails. In the post, I use it to queue fetching and saving of Instagram posts: ...
  • 您应该使用此命令删除任何gem gem uninstall execjs -v=1.2.9 希望它会奏效。 You should use this command for remove any gem gem uninstall execjs -v=1.2.9 Hope it will work.
  • 我会看到你创建的UserControl作为ProcessBlock实例的“可视化器”。 那么,我会做什么 - 给你提供的信息 - 是创建一个抽象类(或接口,它取决于)' ProcessBlock ',它有一些抽象方法,如GetDrawingColor 。 对于每个具体的ProcessBlock ,您将创建一个继承自抽象类(或接口)的新类。 那么,你可以拥有继承ProcessBlock基类的'ProcessBlockA','ProcessBlockB'和'ProcessBlockC'。 在每个具体的子类中,您 ...
  • 以下是实现current_user方法的一种可能解决方案。 helper_method将使每个控制器中的current_user方法可用,该控制器继承自ApplicationController 。 class ApplicationController helper_method :current_user def current_user @current_user ||= User.find(session[:user_id]) if session[:user_id] end ...
  • 使用jruby-rack-worker gem解决了这个问题, http://github.com/kares/jruby-rack-worker ,它让你使用delayed_job来安排工作,只是提供了一个不同的方式来启动更多JRuby的工作进程/莺/雄猫友好。 Solved the problem using the jruby-rack-worker gem, http://github.com/kares/jruby-rack-worker, which let's you use delayed_ ...
  • 通常情况下,只有另一个EC2实例和Rails应用程序的副本,而不是使用rails s来启动Web服务器,而是运行rake resque:work或任何您的作业运行器启动命令。 两者都将共享相同的Redis实例和数据库,以便您的Web服务器将作业写入队列,并且工作人员将其选中并运行它们。 如果您需要更多工作人员,只需添加指向相同Redis实例的更多EC2实例即可。 我建议通过队列名称来分隔你的工作,这样一个工作人员可以处理快速的事情,例如电子邮件发送,而其他人可以做长时间运行或慢速工作。 Normally, ...
  • 您可能希望使用一个简单的流程管理器,例如supervisord或God ,它可以在您运行测试时为您执行daemonize进程。 在我的情况下,使用上帝我会跑: god -c my-project.god ruby test-runner.rb god terminate You may want to look into using a simple process manager such as supervisord or God which can daemonize processes fo ...
  • 我通常在开发中使用特定的配置shoryuken.dev.yml 。 对于开发中的队列,我强烈建议为每个开发人员创建一个用户( IAM ),具有资源"arn:aws:sqs:::${aws:username}-*" 所需的权限 ,然后在配置中- [<%= aws_user_name %>_queue_name, 1] 。 如果您使用的是ActiveJob,请查看inline选项。 可能是另一种选择。 最后但同样重要的是,您还可以在运行时添加队列,检查一下 。 I usually use a specific ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)