Filters and security
An intent filter cannot be relied on for security. While it opens a component to receiving only certain kinds of implicit intents, it does nothing to prevent explicit intents from targeting the component. Even though a filter restricts the intents a component will be asked to handle to certain actions and data sources, someone could always put together an explicit intent with a different action and data source, and name the component as the target.在 android的官方文档上发现一段话, 不知道怎样去翻译理解,
尤其是 :it does nothing to prevent explicit intents from targeting the component.
An intent filter cannot be relied on for security. While it opens a component to receiving only certain kinds of implicit intents, it does nothing to prevent explicit intents from targeting the component. Even though a filter restricts the intents a component will be asked to handle to certain actions and data sources, someone could always put together an explicit intent with a different action and data source, and name the component as the target.在 android的官方文档上发现一段话, 不知道怎样去翻译理解,
尤其是 :it does nothing to prevent explicit intents from targeting the component.
解决方案 »
- 在线求解 用jquery开发的安卓应用,关于安卓上下左右键盘键值控制
- 如何默认启动自己定制的桌面应用
- 创建AudioRecord时 报Unknown PCM AndroidRecord 是什么原因?
- android无法拦截短信广播
- 推荐两个android开源程序
- 请问安卓开发里面这种效果如何实现?
- 天猫客户端、淘宝客户端怎么集成html和js的
- 适配
- 如何利用html5开发android界面??
- android中import com.sun.image.codec.jpeg.ImageFormatException;出现错误
- android 怎么挂再mtd分区,
- listview中加载网络图片问题
intent-filter ,可知为 意图过滤器intent ,连接组件的桥梁,即一个组件启动另一个组件需要intent,
如Activity 启动activity : intent.setClass(a.this,b.class);startActivity(intent);
Activity启动service: intent.setClass(a.this,b.class);startService(intent);详细内容:
http://hi.baidu.com/lizhengjun2010/blog/item/2f458c05393758ce267fb557.html
it does nothing to prevent explicit intents from targeting the component意思大概是:
the intent filter根本不能阻止一些显式的intent到达组件上