ADB相关指令
adb root
adb remount 获取操作权限
在输入adb root,获得root权限。再输入adb remount挂在分区(可使系统分区重新可写),如果出现错误,先输入adb disable-verity,在输入adb reboot,
adb reboot重启设备 。及再次输入adb remount 就不会出错adb reboot recovery 安卓手机恢复出厂设置命令
adb shell input keyevent 26 唤醒屏幕
adb shell “sleep 3”
adb shell input keyevent 26 第二次输入是锁屏
adb shell input keyevent 25 打开相机
adb shell input keyevent 4 关闭相机
adb pull sdcard/dcim/camera +路径 pull照片
data/vendor/camera raw地址
adb push +地址+ sdcard/dcim/camera push到手机相册里
/vendor/lib/ 相机参数地址
adb shell ls -all vendor/lib/ ov16e10 查看参数是否push到手机相机里(时间戳)
adb logcat >F:\project\emmm.log 后跟地址 会有新建文件夹
adb reboot edl 进刷机 9008模式 Android Debug Bridge.
OTP数据的dump
开启OTP的dump开关:
adb root & remount 成功之后,写入下值:
如果root remount 不成功得到话,运行这个代码,相当于获得权限。adb disable-verity
再一次的root remount
adb shell “echo dumpSensorEEPROMData=Value>> \ / vendor/etc/camera/camxoverridesettings.txt”
若/vendor/etc下无camera 文件夹,则可以手动建camera 文件夹并新建camxoverridesettings.txt文件
重启手机,打开对应的camera。即可获得dump的数据(前提OTP已经导通),存放路径位于:
/data/vendor/camera或者/data/misc/camera
ls 查看
cd
新平台的dump的OTP数据同之前平台在结构和命名上均无差异。
exit 退出adb shell 模式
md新建文件夹 rd 删除文件夹
rm -rf * .* 第一个*必须要比后面多一个空格,.点代表文件夹 因为文件都有一个 .
校正cc需要gamma值将gamma中normal、lowlight、outdoor
导出adb shell logcat | find “gain”
替换gain 可以查所有名词
实例:adb logcat -v time -s videocamera
意思是说,会打印出 log 信息中时间,以及包含关键字 “videocamera” 的所有 log
信息如下
C:\Users\Administrator>adb logcat -v time -s videocamera fulin
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
07-01 08:43:57.037 V/videocamera( 2329): VideoCamera onCreate!
07-01 08:43:57.039 I/videocamera( 2329): getExternalSdState() : removed
07-01 08:43:57.040 I/videocamera( 2329): getExternalState() : mounted
07-01 08:43:57.040 I/videocamera( 2329): Sdcard is exists ? false
07-01 08:43:57.157 V/videocamera( 2329): fulin onCreate Storage.getAvailableSpace() 1335459840
07-01 08:43:57.159 V/videocamera( 2329): fulin initThumbnailButton
07-01 08:43:57.170 D/videocamera( 2329): Thumbnail.getLastThumbnail >>>
07-01 08:43:57.204 E/videocamera( 2329): --------------readVideoPreferences---------------minutes = 600
07-01 08:43:57.205 E/videocamera( 2329): --------------readVideoPreferences----------quality6=10
07-01 08:43:57.207 E/videocamera( 2329): -----------------readVideoPreferences---------mCameraId=0
07-01 08:43:57.208 E/videocamera( 2329): -----------------readVideoPreferences---------quality7=10
07-01 08:43:57.209 V/videocamera( 2329): mDesiredPreviewWidth= 640. mDesiredPreviewHeight=480
07-01 08:43:57.234 V/videocamera( 2329): startPreview
07-01 08:43:57.240 V/videocamera( 2329): videocamera–mParameters.setFocusMode(mFocusManager.getFocusMode())
07-01 08:43:57.265 D/videocamera( 2329): Thumbnail.getLastThumbnail <<< is null:false
07-01 08:43:57.269 V/videocamera( 2329): Video snapshot size is 3264x2448
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 176x144
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 320x240
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 352x288
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 480x368
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 640x480
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 720x480
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 800x600
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 864x480
07-01 08:43:57.376 D/videocamera( 2329): SupportedPreviewSizes : 1280x720
07-01 08:43:57.422 V/videocamera( 2329): updateSceneOnScreenIndicator isVisible falsemSceneIndicatorandroid.widget.ImageView@41acd0e0
adb reboot 重启
adb remount 不了:adb disable-verity 重启
新建文件夹:mkdir camera
新建txt:touch camxoverridesettings.txt
Sensordebug.bat 将命令放到文档里面 记录 项目新建的vendor/etc/camera/camxoverridesettings.txt
adb logcat | findstr “m_numS” 查看相机调用的参数 如下图所示
字节第二个项目sailor 打log看gain的命令
adb shell logcat | grep GetExposureData
华勤1871项目,查看手机模组信息的命令
adb shell cat proc/cameraModuleInfo
将电脑文件的后缀名字YUV420NV12TP10改为yuv的命令行逻辑关系rename关键字
C:\Users\49076>f:
F:>cd F:\project\4_dete\tuning\picture\Camera
F:\project\4_dete\tuning\picture\Camera>rename *.YUV420NV12TP10 *.yuv