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调试

相关推荐
阿巴斯甜18 小时前
Android 报错:Zip file '/Users/lyy/develop/repoAndroidLapp/l-app-android-ble/app/bu
android
Kapaseker19 小时前
实战 Compose 中的 IntrinsicSize
android·kotlin
xq952720 小时前
Andorid Google 登录接入文档
android
黄林晴21 小时前
告别 Modifier 地狱,Compose 样式系统要变天了
android·android jetpack
冬奇Lab1 天前
Android触摸事件分发、手势识别与输入优化实战
android·源码阅读
城东米粉儿2 天前
Android MediaPlayer 笔记
android
Jony_2 天前
Android 启动优化方案
android
阿巴斯甜2 天前
Android studio 报错:Cause: error=86, Bad CPU type in executable
android
张小潇2 天前
AOSP15 Input专题InputReader源码分析
android
_小马快跑_2 天前
Kotlin | 协程调度器选择:何时用CoroutineScope配置,何时用launch指定?
android