【Android源码 栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。
网学会员整理了Android源码 -Android Build Document - 综合课件的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
我的第一个G1软件正式项目已经达到Release状态 2009年01月9号星期五 从加入androidin以来经过接近1个月的努力负责的第一个项目终于可以达到Release状态非常兴奋. 在这1个多月中研究的方向多次调整和重复总结的结果是
android在媒体播放方面确实还存在这不少的问题需要解决 展示一下研究过的技术列表 1. Service 如果没有Service你的程序运行一段时间就会被
Android给强行”干掉”服务还可以干很多事情比如开机运行?? 2.VideoView 让我神魂颠倒的东西太多异常会偶尔或重复出现 放弃了又捡起来再放弃.无奈 3.MediaPlayerMediaPlayerControl 这个问题也不少随便玩几下就会给你””好在现在懂得她的脾气了 4.FrameLayout 布局组件就要靠它来实现自己的ViewControl和Component终于能够驾驭界面了 5. SurfaceView 这个很关键用于Video的播放 继续努力 标签
Android 发布在 Gphone 没有评论 ampraquo
Android cupcake源代码获取和编译 for Ubuntu 9.04 2009年01月4号星期天
Android cupcake get Source and Builder for Ubuntu 9.04 编译环境 Ubuntu 9.04 Desktop 下载和编译流程 根据http://source.
android.com/download的说明成功的下载了所有源代码整个目录文件接近2G 前期准备: 安装 git工具内核 命令 sudo apt-get install git-core 1. 下载repo工具 curl http://
android.git.kernel.org/repo gt HOME/bin/repo cd HOME/bin chmod x repo 2.导出
android项目 mkdir
android cd
android repo init -u git://
android.git.kernel.org/platform/manifest.git -b cupcake 如果不出错的话5分钟内应提示成功跟网络速度有关 3.开始下载
android platform的源代码 repo sync 这个操作会持续一段时间与你自己的网速有关 4.编译前建议装的软件包如下使用apt-get安装 flex bison gperf libsdl-dev libesd0-dev curl libncurses5-dev zlib1g-dev libx11-dev 5.编译 make 非常漫长的等待与你的CPU速度有一定关系建议是睡觉前编译 编译时以下源代码需要加入相应的头文件include /
android/cupcake/frameworks/base/tools/aidl/aidl.cpp string.hstdlib.h /
android/cupcake/frameworks/base/tools/aidl/options.cpp string.h /
android/cupcake/frameworks/base/tools/aidl/search_path.h stringstring.h /
android/cupcake/frameworks/base/tools/aidl/generate_java string.h /
android/cupcake/external/srec/tools/thirdparty/OpenFst/fst/lib/vector-fst.h string.h /
android/cupcake/external/srec/tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp string.h /
android/cupcake/build/tools/atree/files.cpp string.hstdlib.h /
android/cupcake/build/tools/atree/fs.cpp string.h /
android/cupcake/frameworks/base/tools/localize/file_utils.cpp string.hstdlib.h /
android/cupcake/frameworks/base/tools/localize/localize.cpp string.hstdlib.h /
android/cupcake/frameworks/base/tools/localize/Perforce.cpp string.hstdlib.h /
android/cupcake/frameworks/base/tools/localize/XLIFFFile.cpp iostreamalgorithm /
android/cupcake/frameworks/base/tools/localize/XMLHandler.cpp iostreamalgorithm /
android/cupcake/development/emulator/qtools/dmtrace.cpp unistd.h 编译完毕以后会发现在代码目录下多了一个out目录 6.设置运行环境 修改HOME/.profile文件加入以下内容
Android PATH”PATH:HOME/
android/out/host/linux-x86/bin”
ANDROID_PRODUCT_OUTHOME/
android/out/target/product/generic export
ANDROID_PRODUCT_OUT 设置完毕后退出并重新登录 7.使用虚拟机运行 cd HOME/
android/out/target/product/generic emulator -image system.img -data userdata.img -ramdisk ramdisk.img 应该看到以下的画面第一次开启的时候应该还有一个向google反馈的一个对话框按下确定即可 标签
Android Source 发布在 Gphone 2 条评论 ampraquo 我的G1终于又拿回root了 2009年01月3号星期六 期待已久的 官方 RC30-RC29降级终于在
Android Wiki放出 1. 首先 为了确保刷机过程的稳定 需要将sd卡格式化为fat32格式 并且除了一会用到的文件 不要拷贝任何不相关的文件到里面. 2. 美版G1下载 DREAIMG.nbh文件并拷贝到sd卡根目录. 3. 关闭手机 按”照相键电源键”开机进入bootloader模式 4. 按一下电源键将开始升级 5. 当完成以后 同时按”通话键绿色Menu电源键红色” 手机将重启开机 OK 现在我的G1就是RC29了 标签
Android root 发布在 Gphone 没有评论 ampraquo Ubuntu 9编译
Android cupcake失败原因已找到 2009年01月1号星期四 Ubuntu 9编译
Android cupcake失败原因 主要是部分代码中缺少include stdlib.hstring.h等基础include 解决方法 1.对于各个缺少此include的源代码文件手工加入include 和include 2.对于sort函数则加入include 和include 3.对于unlink函数则加入include 标签
Android cupcake 发布在 Gphone 没有评论 ampraquo
Android源代码编译一次成功非常幸运 2008年11月30号星期天 编译环境 Ubuntu 8.10 Desktop 下载和编译流程 根据http://source.
android.com/download的说明成功的下载了所有源代码整个目录文件接近1.5G 1. 下载repo工具 curl http://
android.git.kernel.org/repo gt HOME/bin/repo cd HOME/bin chmod x repo 2.导出
android项目 mkdir
android cd
android repo init -u git://
android.git.kernel.org/platform/manifest.git 如果不出错的话5分钟内应提示成功跟网络速度有关 3.开始下载
android platform的源代码 repo sync 这个操作会持续一段时间与你自己的网速有关 4.编译 make 非常漫长的等待与你的CPU速度有一定关系建议是睡觉前编译 编译完毕以后会发现在代码目录下多了一个out目录 5.设置运行环境 修改HOME/.profile文件加入以下内容
Android PATH”PATH:HOME/
android/out/host/linux-x86/bin”
ANDROID_PRODUCT_OUTHOME/
android/out/target/product/generic export
ANDROID_PRODUCT_OUT 设置完毕后退出并重新登录 6.使用虚拟机运行 cd HOME/
android/out/target/product/generic emulator -image system.img -data userdata.img -ramdisk ramdisk.img 应该看到以下的画面第一次开启的时候应该还有一个向google反馈的一个对话框按下确定即可 标签
Android Gphone 发布在 Gphone 没有评论 ampraquo
Android Permission大全 2008年11月29号星期六
Android Permission大全出自1.0 SDK中记录着新改变的访问权限许可。
程序执行需要读取到安全敏感项必需在androidmanifest.xml中声明相关权限请求
Android开发网已经翻译并使用中英文对照完整列表如下:
android.permission.ACCESS_CHECKIN_PROPERTIES允许读写访 问”properties”表在checkin数据库中改值可以修改上传 Allows read/write access to the “properties” table in the checkin database to change values that get uploaded
android.permission.ACCESS_COARSE_LOCATION允许一个程序访问CellID或WiFi热点来获取粗略的位置Allows an application to access coarse e.g. Cell-ID WiFi location
android.permission.ACCESS_FINE_LOCATION允许一个程序访问精良位置如GPS Allows an application to access fine e.g. GPS location
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS允许应用程序访问额外的位置提供命令Allows an application to access extra location provider commands
android.permission.ACCESS_MOCK_LOCATION允许程序创建模拟位置提供用于测试Allows an application to create mock location providers for testing
android.permission.ACCESS_NETWORK_STATE允许程序访问有关GSM网络信息Allows applications to access information about networks
android.permission.ACCESS_SURFACE_FLINGER允许程序使用SurfaceFlinger底层特性Allows an application to use SurfaceFlinger’s low level features
android.permission.ACCESS_WIFI_STATE允许程序访问Wi-Fi网络状态信息Allows applications to access information about Wi-Fi networks
android.permission.ADD_SYSTEM_SERVICE允许程序发布系统级服务Allows an application to publish system-level services.
android.permission.BATTERY_STATS允许程序更新手机电池统计信息Allows an application to update the collected battery statistics
android.permission.BLUETOOTH允许程序连接到已配对的蓝牙设备Allows applications to connect to paired bluetooth devices
android.permission.BLUETOOTH_ADMIN允许程序发现和配对蓝牙设备Allows applications to discover and pair bluetooth devices
android.permission.BRICK请求能够禁用设备非常危险Required to be able to disable the device very dangerous.
android.permission.BROADCAST_PACKAGE_REMOVED允许程序广播一个提示消息在一个应用程序包已经移除后Allows an application to broadcast a notification that an application package has been removed
android.permission.BROADCAST_STICKY.允许一个程序广播常用intentsAllows an application to broadcast sticky intents
android.permission.CALL_PHONE允许一个程序初始化一个电话拨号不需通过拨号用户界面需要用户确认Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed.
android.permission.CALL_PRIVILEGED允许一个程序拨打任何号码包含紧急号码无需通过拨号用户界面需要用户确认Allows an application to call any phone number including emergency numbers without going through the Dialer user interface for the user to confirm the call being placed
android.permission.CAMERA请求访问使用照相设备Required to be able to access the camera device.
android.permission.CHANGE_COMPONENT_ENABLED_STATE允 许一个程序是否改变一个组件或其他的启用或禁用Allows an application to change whether an application component other than its own is enabled or not.
android.permission.CHANGE_CONFIGURATION允许一个程序修改当前设置如本地化Allows an application to modify the current configuration such as locale.
android.permission.CHANGE_NETWORK_STATE允许程序改变网络连接状态Allows applications to change network connectivity state
android.permission.CHANGE_WIFI_STATE允许程序改变Wi-Fi连接状态Allows applications to change Wi-Fi connectivity state
android.permission.CLEAR_APP_CACHE允许一个程序清楚缓存从所有安装的程序在设备中Allows an application to clear the caches of all installed applications on the device.
android.permission.CLEAR_APP_USER_DATA允许一个程序清除用户设置Allows an application to clear user data
android.permission.CONTROL_LOCATION_UPDATES允许启用禁止位置更新提示从无线模块Allows enabling/disabling location update notifications from the radio.
android.permission.DELETE_CACHE_FILES允许程序删除缓存文件Allows an application to delete cache files
android.permission.DELETE_PACKAGES允许一个程序删除包Allows an application to delete packages
android.permission.DEVICE_POWER允许访问底层电源管理Allows low-level access to power management
android.permission.DIAGNOSTIC允许程序RW诊断资源Allows applications to RW to diagnostic resources.
android.permission.DISABLE_KEYGUARD允许程序禁用键盘锁Allows applications to disable the keyguard
android.permission.DUMP允许程序返回状态抓取信息从系统服务Allows an application to retrieve state dump information from system services.
android.permission.EXPAND_STATUS_BAR允许一个程序扩展收缩在状态栏
Android开发网提示应该是一个类似Windows Mobile中的托盘程序Allows an application to expand or collapse the status bar.
android.permission.FACTORY_TEST作为一个工厂测试程序运行在root用户Run as a manufacturer test application running as the root user.
android.permission.FLASHLIGHT访问闪光灯
Android开发网提示HTC Dream不包含闪光灯Allows access to the flashlight
android.permission.FORCE_BACK允许程序强行一个后退操作是否在顶层activitiesAllows an application to force a BACK operation on whatever is the top activity.
android.permission.FOTA_UPDATE暂时不了解这是做什么使用的
Android开发网分析可能是一个预留权限.
android.permission.GET_ACCOUNTS访问一个帐户列表在Accounts Service中Allows access to the list of accounts in the Accounts Service
android.permission.GET_PACKAGE_SIZE允许一个程序获取任何package占用空间容量Allows an application to find out the space used by any package.
android.permission.GET_TASKS允许一个程序获取信息有关当前或最近运行的任务一个缩略的任务状态是否活动等等Allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks what activities are running in it etc.
android.permission.HARDWARE_TEST允许访问硬件Allows access to hardware peripherals.
android.permission.INJECT_EVENTS允许一个程序截获用户事件如按键、触 摸、轨迹球等等到一个时间流
Android开发网提醒算是hook技术吧Allows an application to inject user events keys touch trackball into the event stream and deliver them to ANY window.
android.permission.INSTALL_PACKAGES允许一个程序安装packagesAllows an application to install packages.
android.permission.INTERNAL_SYSTEM_WINDOW允许打开窗口使用系统用户界面Allows an application to open windows that are for use by parts of the system user interface.
android.permission.INTERNET允许程序打开网络套接字Allows applications to open network sockets
android.permission.MANAGE_APP_TOKENS允许程序管理创建、催后、 z-order默认向z轴推移程序引用在窗口管理器中Allows an application to manage create destroy Z-order application tokens in the window manager.
android.permission.MASTER_CLEAR目前还没有明确的解释
Android开发网分析可能是清除一切数据类似硬格机
android.permission.MODIFY_AUDIO_SETTINGS允许程序修改全局音频设置Allows an application to modify global audio settings
android.permission.MODIFY_PHONE_STATE允许修改话机状态如电源人机接口等Allows modification of the telephony state - power on mmi etc.
android.permission.MOUNT_UNMOUNT_FILESYSTEMS允许挂载和反挂载文件系统可移动存储Allows mounting and unmounting file systems for removable storage.
android.permission.PERSISTENT_ACTIVITY允许一个程序设置他的activities显示Allow an application to make its activities persistent.
android.permission.PROCESS_OUTGOING_CALLS允许程序监视、修改有关播出电话Allows an application to monitor modify or abort outgoing calls
android.permission.READ_CALENDAR允许程序读取用户日历数据Allows an application to read the user’s calendar data.
android.permission.READ_CONTACTS允许程序读取用户联系人数据Allows an application to read the user’s contacts data.
android.permission.READ_FRAME_BUFFER允许程序屏幕波或和更多常规的访问帧缓冲数据Allows an application to take screen shots and more generally get access to the frame buffer data
android.permission.READ_INPUT_STATE允许程序返回当前按键状态Allows an application to retrieve the current state of keys and switches.
android.permission.READ_LOGS允许程序读取底层系统日志文件Allows an application to read the low-level system log files.
android.permission.READ_OWNER_DATA允许程序读取所有者数据Allows an application to read the owner’s data
android.permission.READ_SMS允许程序读取短信息Allows an application to read SMS messages.
android.permission.READ_SYNC_SETTINGS允许程序读取同步设置Allows applications to read the sync settings
android.permission.READ_SYNC_STATS允许程序读取同步状态Allows applications to read the sync stats
android.permission.REBOOT请求能够重新启动设备Required to be able to reboot the device.
android.permission.RECEIVE_BOOT_COMPLETED允许一个程序接收到 ACTION_BOOT_COMPLETED广播在系统完成启动Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting.
android.permission.RECEIVE_MMS允许一个程序监控将收到MMS彩信记录或处理Allows an application to monitor incoming MMS messages to record or perform processing on them.
android.permission.RECEIVE_SMS允许程序监控一个将收到短信息记录或处理Allows an application to monitor incoming SMS messages to record or perform processing on them.
android.permission.RECEIVE_WAP_PUSH允许程序监控将收到WAP PUSH信息Allows an application to monitor incoming WAP push messages.
android.permission.RECORD_AUDIO允许程序录制音频Allows an application to record audio
android.permission.REORDER_TASKS允许程序改变Z轴排列任务Allows an application to change the Z-order of tasks
android.permission.RESTART_PACKAGES允许程序重新启动其他程序Allows an application to restart other applications
android.permission.SEND_SMS允许程序发送SMS短信Allows an application to send SMS messages
android.permission.SET_ACTIVITY_WATCHER允许程序监控或控制activities已经启动全局系统中Allows an application to watch and control how activities are started globally in the system.
android.permission.SET_ALWAYS_FINISH允许程序控制是否活动间接完成在处于后台时Allows an application to control whether activities are immediately finished when put in the background.
android.permission.SET_ANIMATION_SCALE修改全局信息比例Modify the global animation scaling factor.
android.permission.SET_DEBUG_APP配置一个程序用于调试Configure an application for debugging.
android.permission.SET_ORIENTATION允许底层访问设置屏幕方向和实际旋转Allows low-level access to setting the orientation actually rotation of the screen.
android.permission.SET_PREFERRED_APPLICATIONS允许一个程 序修改列表参数PackageManager.addPackageToPreferred 和PackageManager.removePackageFromPreferred方法Allows an application to modify the list of preferred applications with the PackageManager.addPackageToPreferred and PackageManager.removePackageFromPreferred methods.
android.permission.SET_PROCESS_FOREGROUND允.
上一篇:
Android系统插件式输入法程序的设计
下一篇:
7*30m公路预应力混凝土连续梁桥上部结构设计