Android 系统APK-Camera 移除200W像素
Posted 王睿丶
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android 系统APK-Camera 移除200W像素相关的知识,希望对你有一定的参考价值。
路径:packages/apps/Camera2/src/com/android/camera/settings/PictureSizeLoader.java
private List<Size> computeSizesForCamera(CameraDeviceSelector facingSelector)
List<Size> sizes;
int cameraId = SettingsUtil.getCameraId(mCameraDeviceInfo, facingSelector);
if (cameraId >= 0)
if (mCachedOnly)
sizes = CameraPictureSizesCacher.getCachedSizesForCamera(cameraId, mContext)
.orNull();
else
sizes = CameraPictureSizesCacher.getSizesForCamera(cameraId, mContext);
if (sizes != null)
sizes = ResolutionUtil
.getDisplayableSizesFromSupported(sizes,
facingSelector == SettingsUtil.CAMERA_FACING_BACK);
String blacklisted = GservicesHelper
.getBlacklistedResolutionsBack(mContentResolver);
sizes = ResolutionUtil.filterBlackListedSizes(sizes, blacklisted);
++ for (int index=0;index<sizes.size();index++)
++ if ("1600x1200".equals(sizes.get(index).toString()))
++ sizes.remove(index--);
++
++ return sizes;
++
return new ArrayList<>(0);
以上是关于Android 系统APK-Camera 移除200W像素的主要内容,如果未能解决你的问题,请参考以下文章
Android 系统APK-Camera 设置默认90W像素
Android 系统APK-Camera 将200W像素改为90W像素
Android 系统APK-Camera 不同尺寸的机器默认不同像素