随笔分类 - Android 源码内核
摘要:转自: http://www.cnblogs.com/shangdawei/p/4480278.html 可用wifi、网口。 1.先要获取root权限 如果手机没有命令行工具,请先在手机端安装终端模拟器,然后在终端输入: $su #stop adbd #setprop service.adb.tc
阅读全文
摘要:Android系统本身提供了很多系统服务,如WindowManagerService,PowerManagerService等。下面描述一下添加一个系统服务的具体步骤。 1.定义自定义系统服务接口 撰写一个aidl文件,定义服务的接口,将在编译过程中通过aidl工具生成对应的Java接口。 一般系统
阅读全文
摘要:转自: http://blog.csdn.net/jiangshide/article/details/8192834 不同手机厂商可能会隐藏或修改暗码,部份暗码要谨慎使用,因为可能令手机失去原有的功能。 1.使用方法 拨打暗码号 2.暗码表 当长按关机按钮时,会出现一个切换手机模式的窗口,包括:
阅读全文
摘要:ADB over Wi-Fi 1.root 2.设置tcp端口并重启tcpip服务 3.连接 注意电脑与手机在同一网络下。 4.官方教程 https://developer.android.com/guide/topics/connectivity/usb/index.html When debug
阅读全文
摘要:http://www.cnblogs.com/armlinux/archive/2012/01/14/2396768.html Android Hal 分析 rockchip Andy 本文是基于android4.0.3.对应其他低版本的代码,可能有所差异,但基本大同小异。 1.产生HAL的原因 A
阅读全文
摘要:参考: https://wiki.cyanogenmod.org/w/Envsetup_help 它是一个.sh文件,用source后就生成android编译相关函数,具体如下。 速查 Invoking $ source build/envsetup.sh from your shell adds
阅读全文
摘要:提示:先备份重要数据 1、 移除所有 Java相关包 (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ): sudo apt-get update sudo apt-cache search java | awk '{print($1)}' | grep -E
阅读全文
摘要:Building Kernels IN THIS DOCUMENT Selecting a kernel Identifying kernel version Downloading sources Downloading a prebuilt gcc Building the kernel Thi
阅读全文
摘要:Running Builds 1.IN THIS DOCUMENT Building fastboot and adb Booting into fastboot mode Unlocking the bootloader Using Flash Unlock Examples and source
阅读全文
摘要:Preparing to Build IN THIS DOCUMENT Obtain proprietary binaries Download proprietary binaries Extract proprietary binaries Clean up Set up environment
阅读全文
摘要:https://source.android.com/source/downloading.html Downloading the Source IN THIS DOCUMENT Installing Repo Initializing a Repo client Downloading the
阅读全文
摘要:https://source.android.com/source/initializing.html Establishing a Build Environment IN THIS DOCUMENT Choosing a Branch Setting up a Linux build envir
阅读全文
摘要:https://source.android.com/source/requirements.html Requirements IN THIS DOCUMENT Hardware requirements Software requirements Operating system Java De
阅读全文
摘要:准备工作 在AndroidSource Code中有envsetup.sh档案,当执行过此档案后,可以大幅将build的过程简单化、自动化 此档案在src(android source code 位置)/build/中 所以可以执行以下指令 可以使用help来检示有哪些指令可以使用 Invoke "
阅读全文
摘要:快速编译system.img和boot.img的方法 快速编译system.img,可以使用这个命令: #make systemimage 快速编译boot.img,可以使用以下命令: #make bootimage 快速编译userdata.img,可以使用以下命令: # make userdat
阅读全文
摘要:ramdisk.img system.img userdata.img介绍及解包、打包方法 Android 源码编译后,在out/target/product/generic下生成ramdisk.img、system.img、userdata.img三个镜像文件: 它包含了整个系统,android
阅读全文
摘要:Android 2.1 源码目录介绍 ,只是个参考|-- Makefile|-- bionic (bionic C库)|-- bootable (启动引导相关代码)|-- build (存放系统编译规则及generic等基础开发包配置)|-- cts (Android兼容性测试套件标准)|-- da
阅读全文
摘要:1.参考 http://blog.csdn.net/geniusmen/article/details/7892398 http://www.cnblogs.com/eastnapoleon/p/3270857.html http://www.omappedia.org/wiki/Android_F
阅读全文
摘要:参考 http://android.git.kernel.org/repo http://source.android.com/source/downloading.html http://source.android.com/source/version-control.html https://
阅读全文
摘要:adb shell 大全: http://adbshell.com/commands 下列表格列出了adb常见命令,注意,它并不是只有adb shell,shell只是其中一个. Category Command Description Comments Options -d 仅仅通过USB接口来管
阅读全文