如何单独 build android ap (以launcher为例)

简介: 如何单独 build android ap (以launcher为例)

单独build launcher.

  $cd

  $export TOP='pwd'

  $source build/envsetup.sh

  $cd packages/apps/Launcher

  $mm

  将build出来的launcher.apk push到SDK当中

  $adb push out/..../system/app/Launcher.apk /system/app

  $adb shell stop zygote

  $adb shell start zygote

目录
打赏
0
1
1
1
84
分享
相关文章
Android Launcher研究(二)-----------Launcher为何物,究竟是干什么
Android Launcher研究(二)-----------Launcher为何物,究竟是干什么
331 2
Android Stadio Build 窗口字符串乱码问题
在使用Android Studio过程中,如果遇到Build窗口字符串乱码问题,可以通过编辑`studio.vmoptions`文件添加`-Dfile.encoding=UTF-8`配置并重启Android Studio来解决。
229 1
Android Stadio Build 窗口字符串乱码问题
Android 如何将定制的Launcher成为系统中唯一的Launcher
Android 如何将定制的Launcher成为系统中唯一的Launcher
298 2
|
5月前
|
Android Studio中Terminal运行./gradlew clean build提示错误信息
遇到 `./gradlew clean build`命令执行出错时,首先应检查错误信息的具体内容,这通常会指向问题的根源。从权限、环境配置、依赖下载、版本兼容性到项目配置本身,逐一排查并应用相应的解决措施。记住,保持耐心,逐步解决问题,往往复杂问题都是由简单原因引起的。
575 2
docker中编译android aosp源码,出现Build sandboxing disabled due to nsjail error
在使用Docker编译Android AOSP源码时,如果遇到"Build sandboxing disabled due to nsjail error"的错误,可以通过在docker run命令中添加`--privileged`参数来解决权限不足的问题。
1432 1
android studio build异常
android studio build异常
66 3
Android 笔记:AndroidTrain , Lint , build(1),只需一篇文章吃透Android多线程技术
Android 笔记:AndroidTrain , Lint , build(1),只需一篇文章吃透Android多线程技术
android launcher总体分析
android launcher总体分析
188 1
Android桌面快捷方式图标生成与删除 使用Intent与launcher交互
Android桌面快捷方式图标生成与删除 使用Intent与launcher交互
184 1
Android launcher development resources
Android launcher development resources
47 1

热门文章

最新文章