使用震动功能权限:

< uses-permission android:name = "android.permission.VIBRATE" />

修改删除 launcher.db 内容权限:

< uses-permission android:name = "android.permission.WRITE_SETTINGS" />

绑定 widget 权限:

< uses-permission android:name = "android.permission.BIND_APPWIDGET" />

读取 launcher.db 内容权限:

< uses-permission android:name = "net.sunniwell.launcher.permission.READ_SETTINGS" />

修改删除 launcher.db 内容权限:

< uses-permission android:name = "net.sunniwell.launcher.permission.WRITE_SETTINGS" />

读写外部存储设备权限:

< uses-permission android:name = "android.permission.WRITE_EXTERNAL_STORAGE" ></ uses-permission >




< application

android:name = "LauncherApplication"

activity 应该运行的进程的名字:

android:process = "android.process.acore"

android:label = "@string/application_name"

android:icon = "@drawable/swicon" >


< activity

android:name = "Launcher"

是否

android:launchMode = "singleTask"

android:clearTaskOnLaunch = "true"

这个 activity 是否在被杀死或者重启后能恢复原来的状态:

android:stateNotNeeded = "true"

android:theme = "@style/Theme"

android:screenOrientation = "landscape"

android:windowSoftInputMode = "stateUnspecified|adjustPan" >


< intent-filter >


< action android:name = "android.intent.action.MAIN" />


< category android:name = "android.intent.category.LAUNCHER" />



桌面应用的标记:

< category android:name = "android.intent.category.HOME" />


< category android:name = "android.intent.category.DEFAULT" />


自动化测试工具 Monkey 的标记,待研究

< category android:name = "android.intent.category.MONKEY" />



</ intent-filter >


</ activity >

选择壁纸的 activity:

< activity

android:name = "WallpaperChooser"

android:label = "@string/pick_wallpaper"

android:icon = "@drawable/ic_launcher_gallery" >


设置壁纸的 intent-filter


< intent-filter >


< action android:name = "android.intent.action.SET_WALLPAPER" />


< category android:name = "android.intent.category.DEFAULT" />


</ intent-filter >

搜索的 activity

</ activity >


<!-- Enable system-default search mode for any activity in Home -->


< meta-data

android:name = "android.app.default_searchable"

android:value = "*" />

安装快捷方式的广播接收器:


<!-- Intent received used to install shortcuts from other applications -->



< receiver

android:name = ".InstallShortcutReceiver"

android:permission = "com.android.launcher.permission.INSTALL_SHORTCUT" >


< intent-filter >


< action android:name = "com.android.launcher.action.INSTALL_SHORTCUT" />


</ intent-filter >


</ receiver >


<!-- Intent received used to uninstall shortcuts from other applications -->

卸载快捷方式的广播接收器:


< receiver

android:name = ".UninstallShortcutReceiver"

android:permission = "com.android.launcher.permission.UNINSTALL_SHORTCUT" >


< intent-filter >


< action android:name = "com.android.launcher.action.UNINSTALL_SHORTCUT" />


</ intent-filter >


</ receiver >

声明 ContentProvider ,用于对 launcher.db 操作:


<!-- The settings provider contains Home's data, like the workspace favorites -->


< provider

android:name = "SWLauncherProvider"

android:authorities = "net.sunniwell.launcher.settings"

android:writePermission = "net.sunniwell.launcher.permission.WRITE_SETTINGS"

android:readPermission = "net.sunniwell.launcher.permission.READ_SETTINGS" />


</ application >


< uses-sdk android:minSdkVersion = "4" />

</ manifest >
说明:
1.
<manifest 标签头部还应声明:

android:sharedUserId="android.uid.shared" ,作用是获得系统权限,但是这样的程序属性只能在build整个系统时放进去(就是系统软件)才起作用,手动安装是没有权限的。

更多相关文章

  1. Android内部存储改变读取权限
  2. Android中webview拨打加载网页中的电话超链接
  3. 《Android第一行代码》first reading 十一
  4. Android(安卓)studio新建activity运行出错解决方法
  5. Android(安卓)6.0运行时权限解决方案
  6. Android自定义弹窗进度条
  7. Android(安卓)保存图片到本地
  8. Android(安卓)权限列表permission说明
  9. android 得到唯一码和电话号码

随机推荐

  1. Android 多线程之synchronized锁住的是代
  2. cocos2dx在windows下开发,编译到android上
  3. android中的ellipsize设置(省略号的问题)
  4. Android学习笔记-Android简介
  5. Android 基本控件Text属性
  6. Android 安全加密:Https编程详解
  7. android基础知识15:获得android系统信息02
  8. android转屏时数据保存问题
  9. Android 从初学者入门到成为高手 视频教
  10. Android当中layer-list使用来实现多个图