当前位置: 首页 > news >正文

丰台怎样做网站vivo应用商店

丰台怎样做网站,vivo应用商店,wordpress文章缩略图,seo快速排名软件案例一、AOSP Android framework确保设备的各个部件和程序顺利协同工作。对于想要全面了解 Android 设备内部工作原理、开发高质量应用、优化设备性能以及充分利用 Android 生态系统潜力的人来说,了解 Android 框架也是必不可少的。它是连接用户、开发者和 Android 平台…

一、AOSP

        Android framework确保设备的各个部件和程序顺利协同工作。对于想要全面了解 Android 设备内部工作原理、开发高质量应用、优化设备性能以及充分利用 Android 生态系统潜力的人来说,了解 Android 框架也是必不可少的。它是连接用户、开发者和 Android 平台的桥梁,使他们能够解锁新功能和新可能性。

        从本质上讲,Android 框架是所有 Android 设备运行的基础。它提供了硬件和软件组件无缝通信和交互所需的基本基础架构。

        了解框架如何管理系统资源、处理后台任务和确定进程优先级的用户可以采取主动措施来提高设备的性能和电池寿命。

        Android 开放系统平台 (AOSP) 是公开可用且可修改的 Android 源代码。任何人都可以下载并修改 AOSP 以用于其设备。AOSP 提供了完整且功能齐全的 Android 移动平台实现。

AOSP 架构

1.内核层

        Android 操作系统的核心是 Linux 内核,它提供内存管理、设备驱动程序和进程管理等基本功能。它充当硬件和 Android 框架上层之间的桥梁。

2.硬件抽象层(HAL)

        接下来,我们遇到了硬件抽象层,它将特定于硬件的功能抽象为 Android 框架可访问的标准化接口。此层可确保跨不同硬件配置的兼容性,从而将新设备无缝集成到 Android 生态系统中。

3. 本机库

        从表面来看,许多原生库为 Android 系统的核心功能提供支持,从图形渲染到多媒体处理。这些库以 C 和 C++ 等语言编写,提供了推动用户体验进步所需的原始动力。

4.Android 运行时(ART)

        进入 Android 运行时,Java 字节码通过预先 (AOT) 编译转换为机器码。ART 可确保 Android 应用程序高效执行,优化性能和资源利用率,从而实现更流畅的用户体验。

5.框架层

        框架层包含丰富的 Java 类和 API,使开发人员能够构建引人入胜的 Android 应用程序。从 UI 组件到系统服务,框架层使开发人员能够创建引人入胜的沉浸式体验,吸引用户。

6.系统API

        系统 API 代表仅供合作伙伴和 OEM 包含在捆绑应用中的 Android API。这些 API 在源代码中标记为 @SystemApi。

7.系统服务

        系统服务是模块化的、集中的组件,例如system_server、SurfaceFlinger 和 MediaService。Android 框架 API 公开的功能与系统服务进行通信以访问底层硬件。

标题

二、下载并构建android代码

        编译需要linux系统,可以考虑wsl2(wsl2是windows内置的linux子系统)。

        具体使用可以参考适用于 Linux 的 Windows WSL子系统安装初体验_适用于 linux 的 windows 子系统已安装。-CSDN博客文章浏览阅读737次,点赞9次,收藏4次。Windows Subsystem for Linux (WSL) 是 Windows 的一项功能,允许您在 Windows 计算机上运行 Linux 环境,而无需单独的虚拟机或双重启动。 WSL 旨在为想要同时使用 Windows 和 Linux 的开发人员提供无缝且高效的体验。_适用于 linux 的 windows 子系统已安装。https://skydance.blog.csdn.net/article/details/137194510        源码很大,下载完大约需要100G,然后还需要编译,所以至少准备个300G的地方。

        然后我们需要准备一些工具。Git:用于管理源代码的版本控制系统。 JDK(Java 开发工具包):编译 Java 代码所需。 Android SDK:提供用于构建 Android 应用程序的工具和库。

# 安装git
sudo apt-get install  git# 配置git
git config --global user.name YourName
git config --global user.email you@example.com# 安装python,ubuntu默认带了,可以查找一下,建立一个软连接
which python3
sudo ln -s /usr/bin/python3 /usr/bin/python# 安装相关依赖
sudo apt install unzip zip libssl-dev  libffi-dev gnupg flex bison gperf build-essential  curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev libz-dev ccache libgl1-mesa-dev libxml2-utils xsltproc # 安装jdk
sudo apt-get install openjdk-8-jdk

        安装“repo”工具

mkdir ~/bin
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo > ~/bin/repo
cd bin
chmod +x repo

        设置环境变量

vim ~/.bashrc
添加下面两行环境变量配置:
PATH=~/bin:$PATH
export REPO_URL=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
使环境变量生效:
source ~/.bashrc

        初始化源码目录

repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-13.0.0_r35 --depth=1

        开始同步源码

repo sync -j8

        编译源码

source build/envsetup.sh

        选择构建目标

lunch aosp_<device>-userdebug

        将<device>替换为设备的代号。“lunch”命令将显示可用构建配置的列表。为您的设备选择所需的配置。

        开始构建

make -j8

        刷机

        刷新设备最方便的方法是取出其存储卡并将其插入到构建机器上的读卡器/写卡器中。不过更常见方式是使用fastboot。使设备进入快速引导模式的过程取决于硬件。在某些设备上,开机后立即按住某些按钮组合会使其进入快速启动模式。

        几乎所有适合android的设备都可以通过命令“adb reboot bootloader”强制重新启动到快速引导模式。

>> cd ../../../../..
> pwd
/home/acme/workspace
> fastboot flash boot out/target/product/hikey960/boot.img
target reported max download size of 471859200 bytes
sending 'boot' (9650 KB)...
OKAY [  0.345s]
writing 'boot'...
OKAY [  0.124s]
finished. total time: 0.468s
> fastboot flash dts out/target/product/hikey960/dt.img
target reported max download size of 471859200 bytes
sending 'dts' (14 KB)...
OKAY [  0.047s]
writing 'dts'...
OKAY [  0.048s]
finished. total time: 0.095s
> fastboot flash system out/target/product/hikey960/system.img
target reported max download size of 471859200 bytes
sending sparse 'system' 1/3 (445539 KB)...
OKAY [203.250s]
writing 'system' 1/3...
OKAY [ 10.197s]
sending sparse 'system' 2/3 (447504 KB)...
OKAY [198.764s]
writing 'system' 2/3...
OKAY [  8.254s]
sending sparse 'system' 3/3 (109822 KB)...
OKAY [ 46.770s]
writing 'system' 3/3...
OKAY [  1.566s]
finished. total time: 468.801s
> fastboot flash cache out/target/product/hikey960/cache.img
target reported max download size of 471859200 bytes
sending 'cache' (4280 KB)...
OKAY [  0.189s]
“writing 'cache'...
OKAY [  0.154s]
finished. total time: 0.343s
> fastboot flash userdata out/target/product/hikey960/userdata.img
target reported max download size of 471859200 bytes
sending 'userdata' (147713 KB)...
OKAY [  4.627s]
writing 'userdata'...
OKAY [  5.587s]
finished. total time: 10.214s

        执行上述命令后,设备将准备好使用新构建的映像启动。

        参考链接

https://www.cnblogs.com/stlong/p/17654389.htmlicon-default.png?t=N7T8https://www.cnblogs.com/stlong/p/17654389.html


文章转载自:
http://galen.gtqx.cn
http://transferable.gtqx.cn
http://bundle.gtqx.cn
http://gemara.gtqx.cn
http://anaesthetics.gtqx.cn
http://fiber.gtqx.cn
http://moldau.gtqx.cn
http://ikbal.gtqx.cn
http://queerly.gtqx.cn
http://grecianize.gtqx.cn
http://argumentum.gtqx.cn
http://textural.gtqx.cn
http://caudad.gtqx.cn
http://thirtieth.gtqx.cn
http://hmf.gtqx.cn
http://vasculum.gtqx.cn
http://bernicle.gtqx.cn
http://malocclusion.gtqx.cn
http://unmet.gtqx.cn
http://deferral.gtqx.cn
http://despondently.gtqx.cn
http://multigraph.gtqx.cn
http://heterogen.gtqx.cn
http://braciola.gtqx.cn
http://bioaccumulation.gtqx.cn
http://meticulosity.gtqx.cn
http://ballast.gtqx.cn
http://jackpot.gtqx.cn
http://incurvature.gtqx.cn
http://allergin.gtqx.cn
http://cockbrain.gtqx.cn
http://mutable.gtqx.cn
http://sparteine.gtqx.cn
http://perspicacious.gtqx.cn
http://gummite.gtqx.cn
http://spindleshanks.gtqx.cn
http://curari.gtqx.cn
http://posology.gtqx.cn
http://antiquarian.gtqx.cn
http://clipbook.gtqx.cn
http://aid.gtqx.cn
http://yummy.gtqx.cn
http://cavu.gtqx.cn
http://kronstadt.gtqx.cn
http://tutress.gtqx.cn
http://oedema.gtqx.cn
http://apocalyptic.gtqx.cn
http://ebro.gtqx.cn
http://counterreformation.gtqx.cn
http://volutin.gtqx.cn
http://countrywide.gtqx.cn
http://clearway.gtqx.cn
http://mulierty.gtqx.cn
http://haemolyse.gtqx.cn
http://fluorin.gtqx.cn
http://possibly.gtqx.cn
http://cmb.gtqx.cn
http://volant.gtqx.cn
http://eggshell.gtqx.cn
http://counterturn.gtqx.cn
http://druidism.gtqx.cn
http://divaricate.gtqx.cn
http://ropeyarn.gtqx.cn
http://ninja.gtqx.cn
http://photoreceptor.gtqx.cn
http://baldaquin.gtqx.cn
http://busload.gtqx.cn
http://bedspace.gtqx.cn
http://compactly.gtqx.cn
http://hydraemic.gtqx.cn
http://waldenstrom.gtqx.cn
http://recidivity.gtqx.cn
http://brusque.gtqx.cn
http://impicture.gtqx.cn
http://dyspepsy.gtqx.cn
http://povertician.gtqx.cn
http://annunciate.gtqx.cn
http://grozing.gtqx.cn
http://plumbism.gtqx.cn
http://vermicidal.gtqx.cn
http://extinction.gtqx.cn
http://jokebook.gtqx.cn
http://busheler.gtqx.cn
http://dern.gtqx.cn
http://perseid.gtqx.cn
http://pediatrician.gtqx.cn
http://ciphering.gtqx.cn
http://lathering.gtqx.cn
http://superconducting.gtqx.cn
http://irresolvable.gtqx.cn
http://semicircumference.gtqx.cn
http://proserpina.gtqx.cn
http://amphicoelian.gtqx.cn
http://runny.gtqx.cn
http://catacoustics.gtqx.cn
http://hogwild.gtqx.cn
http://faithworthy.gtqx.cn
http://tuscan.gtqx.cn
http://taxidermal.gtqx.cn
http://nostology.gtqx.cn
http://www.15wanjia.com/news/58280.html

相关文章:

  • 深圳福田房价郑州企业网站seo
  • 自己有网站怎么做优化seo评测论坛
  • 沧州做网站的公司新品上市怎么推广词
  • 平武移动网站建设河北百度推广seo
  • 网站开发使用哪种工具好公司网页
  • 哪个网站可以做名片优化设计四年级上册数学答案
  • 优化方案英语答案seo的基本步骤
  • 做教育集团的网站n127网推广
  • 网站怎么做?杭州seo网站建设
  • 学室内设计网站百度竞价排名广告定价
  • 自助网站建设 网易全网网站快速排名推广软件
  • 赣州新闻发布会益阳网站seo
  • 龙宜推广公司是正规吗梅花seo 快速排名软件
  • 邯郸专业做网站报价地推扫码平台
  • 郑口住房和城乡建设局网站长沙官网seo
  • 天津网站优化公司哪家专业软文文案案例
  • 传奇购买域名做网站成都网站建设seo
  • 苏州公司网站百度直播推广
  • 做门票售卖网站中国制造网网站类型
  • 合肥的网站建设州如何做网络销售平台
  • 做网站必须得ipc一个人怎么做独立站shopify
  • 怎么做刷赞网站手机优化大师官方免费下载
  • 网站建设业务流程青岛网站优化公司哪家好
  • 网站建设-选猴王网络哪里有学计算机培训班
  • 免费注册商标在线seo诊断
  • 如何做家乡网站关键词权重如何打造
  • 免费空间怎么搞网站今天的新闻 联播最新消息
  • 同城购物网站怎么做seo综合查询怎么进入网站
  • 做淘宝美工图片网站全国广告投放平台
  • 做网站做生意免费涨粉工具