Android15 Camera系统调试操作

Android15 Camera系统主要涉及的代码路径:

  • Camera API v2
  • CameraService 包括CameraService, Camera3Device, CameraDeviceClient等
  • Camera HAL

注:这里以Android15版本,Google参考AIDL HAL实现为例。

Camera HAL调试

操作步骤:

1.修改源码文件: vendor/google/hardware/modules/camera/*.cc .cpp .h

2.编译生成.so或者bin

复制代码
$cd aosp/
$source build/envsetup.sh
$lunch google_xx_userdebug
$cd vendor/google/hardware/module/camera
$mm

3.push到设备

4.重启设备

CameraService调试

操作步骤:

1.修改源码文件:frameworks/av/services/camera/libcameraservice/*.cpp .h

2.编译cameraserver

复制代码
$cd aosp
$source build/envsetup.sh
$lunch google_xx_userdebug
$make cameraserver

3.push cameraserver到设备

复制代码
$cd aosp/
$adb push out/target/product/google_xx/system/bin/cameraserver /system/bin/
$adb shell sync

4.重启设备

说明:

frameworks/av/services/camera/libcameraservice/Android.bp根据源码生成cc_binary libcameraservice

frameworks/av/camera/cameraserver/Android.bp引用libcameraservice(静态库),生成cc_binary cameraserver (可执行程序)

Camera API v2调试

相关推荐
二流小码农3 小时前
鸿蒙开发:router组件升级,彻底告别手动配置
android·ios·harmonyos
Digitally3 小时前
如何在安卓设备上使用 4 种简单方法将应用移动到 SD 卡
android
booboosui5 小时前
录一遍就会:8 种步骤、6 类失败,卡住时只修那一步
android
阿杰m5 小时前
Android源码第十五章:Camera2 与 CameraService——一帧图像怎样回到应用
android
恋猫de小郭11 小时前
Flutter Analyzer 系列坑推进,必看,AI 时代这玩意最吃你内存
android·前端·flutter
LinXunFeng1 天前
拿竞品 App 一扫,技术栈全暴露了
android·flutter·开源
Gracker1 天前
AIW:从系统机制到性能排查,一本可以对照源码的 Android 电子书
android
三少爷的鞋1 天前
代码越来越便宜,判断力越来越贵:AI 时代的 Android 架构与协程避坑指南
android
Gracker1 天前
SmartPerfetto 1.19.0:换过分析引擎之后,这次更新了什么
android
HQL_seven1 天前
【Android】BroadcastReceiver 详解
android