将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
最满意答案
我写了这篇关于如何使用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 ...
-
C中的后台进程(Background process in C)[2023-05-25]
正如@ChikaneHimeko已经声明创建一个没有窗口的Windows应用程序: #includeint 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: ...
-
无法删除execjs gem(Can't remove execjs gem)[2022-04-07]
您应该使用此命令删除任何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. -
C#实现流程块(C# Implementation process blocks)[2022-04-05]
我会看到你创建的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上部署的任何后台进程宝石?(Any background process gems that work with JRuby deployed on Windows?)[2023-11-29]
使用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 ...