android Q VTS错误修改记录(MTK)

VtsFastbootVerification#testFastbootReboot

VtsFastbootVerification#testFastbootdSlotOperations

VtsFastbootVerification#testLogicalPartitionCommands

VtsFastbootVerification#testLogicalPartitionFlashing

VtsFastbootVerification#testSuperPartitionName

烧写完debug-boot.img和GSI后,多次重启进不去系统,报告也无法跑,一跑就报上面的错误

解决方案:

------------- system/sepolicy/prebuilts/api/29.0/public/domain.te -------------
index 987bb9f..32eca92 100644
@@ -1154,6 +1154,7 @@ neverallow {
   -system_server
   -system_app
   -init
+  -toolbox # TODO(b/141108496) We want to remove toolbox
   -installd # for relabelfrom and unlink, check for this in explicit neverallow
   -vold_prepare_subdirs # For unlink
   with_asan(`-asan_extract')

------------- system/sepolicy/prebuilts/api/29.0/public/toolbox.te -------------
index 19cc3b6..fcf0ec3 100644
@@ -22,3 +22,7 @@ allow toolbox swap_block_device:blk_file rw_file_perms;
 neverallow { domain -init } toolbox:process transition;
 neverallow * toolbox:process dyntransition;
 neverallow toolbox { file_type fs_type -toolbox_exec}:file entrypoint;
+
+# rm -rf directories in /data
+allow toolbox system_data_file:dir { rmdir rw_dir_perms };
+allow toolbox system_data_file:file { getattr unlink };

----------------------- system/sepolicy/public/domain.te -----------------------
index 987bb9f..32eca92 100644
@@ -1154,6 +1154,7 @@ neverallow {
   -system_server
   -system_app
   -init
+  -toolbox # TODO(b/141108496) We want to remove toolbox
   -installd # for relabelfrom and unlink, check for this in explicit neverallow
   -vold_prepare_subdirs # For unlink
   with_asan(`-asan_extract')

---------------------- system/sepolicy/public/toolbox.te ----------------------
index 19cc3b6..fcf0ec3 100644
@@ -22,3 +22,7 @@ allow toolbox swap_block_device:blk_file rw_file_perms;
 neverallow { domain -init } toolbox:process transition;
 neverallow * toolbox:process dyntransition;
 neverallow toolbox { file_type fs_type -toolbox_exec}:file entrypoint;
+
+# rm -rf directories in /data
+allow toolbox system_data_file:dir { rmdir rw_dir_perms };
+allow toolbox system_data_file:file { getattr unlink };

VtsTrebleFrameworkVintfTest#SystemVendorTest.ServedHwbinderHalsAreInManifest_64bit

---------- device/mediatek/common/project_manifest/manifest_dsds.xml ----------
index 82705bb..e520003 100644
@@ -31,7 +31,7 @@
     <hal override="true" format="hidl">
         <name>vendor.mediatek.hardware.mtkradioex</name>
         <transport>hwbinder</transport>
-        <version>1.3</version>
+        <version>1.5</version>
         <interface>
             <name>IMtkRadioEx</name>
             <instance>mtkSlot1</instance>

---------- device/mediatek/common/project_manifest/manifest_qsqs.xml ----------
index 7b0ac56..e387613 100644
@@ -49,7 +49,7 @@
     <hal override="true" format="hidl">
         <name>vendor.mediatek.hardware.mtkradioex</name>
         <transport>hwbinder</transport>
-        <version>1.3</version>
+        <version>1.5</version>
         <interface>
             <name>IMtkRadioEx</name>
             <instance>mtkSlot1</instance>

----------- device/mediatek/common/project_manifest/manifest_ss.xml -----------
index 8970f86..761e064 100644
@@ -22,7 +22,7 @@
     <hal override="true" format="hidl">
         <name>vendor.mediatek.hardware.mtkradioex</name>
         <transport>hwbinder</transport>
-        <version>1.3</version>
+        <version>1.5</version>
         <interface>
             <name>IMtkRadioEx</name>
             <instance>mtkSlot1</instance>

---------- device/mediatek/common/project_manifest/manifest_tsts.xml ----------
index 3e0714a..5471cb9 100644
@@ -40,7 +40,7 @@
     <hal override="true" format="hidl">
         <name>vendor.mediatek.hardware.mtkradioex</name>
         <transport>hwbinder</transport>
-        <version>1.3</version>
+        <version>1.5</version>
         <interface>
             <name>IMtkRadioEx</name>
             <instance>mtkSlot1</instance>

------------------- device/mediatek/vendor/common/device.mk -------------------
index baa96cc..b6bf77e 100644
@@ -496,6 +496,8 @@ endif
 # add radioconfig
 DEVICE_MANIFEST_FILE += $(LOCAL_PATH)/project_manifest/manifest_radioconfig.xml
 
+DEVICE_MANIFEST_FILE += $(LOCAL_PATH)/project_manifest/manifest_camera.xml
+
 #copy to telephony HIDL to /odm/etc/vintf/
 ifeq ($(strip $(TARGET_COPY_OUT_ODM)),yes)
 mtk_target_copy_out_odm := odm
@@ -508,6 +510,7 @@ PRODUCT_COPY_FILES += $(LOCAL_PATH)/project_manifest/manifest_ss.xml:$(mtk_targe
 PRODUCT_COPY_FILES += $(LOCAL_PATH)/project_manifest/manifest_dsds.xml:$(mtk_target_copy_out_odm)/etc/vintf/manifest_dsds.xml:mtk
 PRODUCT_COPY_FILES += $(LOCAL_PATH)/project_manifest/manifest_tsts.xml:$(mtk_target_copy_out_odm)/etc/vintf/manifest_tsts.xml:mtk
 PRODUCT_COPY_FILES += $(LOCAL_PATH)/project_manifest/manifest_qsqs.xml:$(mtk_target_copy_out_odm)/etc/vintf/manifest_qsqs.xml:mtk
+PRODUCT_COPY_FILES += $(LOCAL_PATH)/project_manifest/manifest_camera.xml:$(mtk_target_copy_out_odm)/etc/vintf/manifest_camera.xml:mtk
 
 # callbackclient
 ifeq ($(strip $(MTK_CAM_MMSDK_SUPPORT)), yes)

------ device/mediatek/vendor/common/project_manifest/manifest_camera.xml ------
new file mode 100644
index 00000000..3e235d7
@@ -0,0 +1,11 @@
+<manifest version="1.0" type="device">
+    <hal format="hidl">
+        <name>vendor.mediatek.hardware.camera.ccap</name>
+        <transport>hwbinder</transport>
+        <version>1.2</version>
+        <interface>
+            <name>ICCAPControl</name>
+            <instance>internal/0</instance>
+        </interface>
+    </hal>
+</manifest>

------- device/mediatek/vendor/common/project_manifest/manifest_dsds.xml -------
index 27c6e0a..5bdb980 100644
@@ -31,7 +31,7 @@
    <hal override="true" format="hidl">
         <name>vendor.mediatek.hardware.mtkradioex</name>
         <transport>hwbinder</transport>
-        <version>1.3</version>
+        <version>1.5</version>
         <interface>
             <name>IMtkRadioEx</name>
             <instance>mtkSlot1</instance>

------- device/mediatek/vendor/common/project_manifest/manifest_qsqs.xml -------
index 5760bb9..5be8bef 100644
@@ -49,7 +49,7 @@
    <hal override="true" format="hidl">
         <name>vendor.mediatek.hardware.mtkradioex</name>
         <transport>hwbinder</transport>
-        <version>1.3</version>
+        <version>1.5</version>
         <interface>
             <name>IMtkRadioEx</name>
             <instance>mtkSlot1</instance>

-------- device/mediatek/vendor/common/project_manifest/manifest_ss.xml --------
index 45962b7..2550c88 100644
@@ -22,7 +22,7 @@
    <hal override="true" format="hidl">
         <name>vendor.mediatek.hardware.mtkradioex</name>
         <transport>hwbinder</transport>
-        <version>1.3</version>
+        <version>1.5</version>
         <interface>
             <name>IMtkRadioEx</name>
             <instance>mtkSlot1</instance>

------- device/mediatek/vendor/common/project_manifest/manifest_tsts.xml -------
index a7f5616..b1ac51f 100644
@@ -40,7 +40,7 @@
    <hal override="true" format="hidl">
         <name>vendor.mediatek.hardware.mtkradioex</name>
         <transport>hwbinder</transport>
-        <version>1.3</version>
+        <version>1.5</version>
         <interface>
             <name>IMtkRadioEx</name>
             <instance>mtkSlot1</instance>

VtsHalSensorsV2_0Target#SensorsHidlTest.AccelerometerSamplingPeriodHotSwitchOperation(default)_64bit

 vendor/mediatek/proprietary/custom/k71v1_64_bsp/hal/sensors/sensor/hwmsen_custom.h 
index 07beb2f..4051ca2 100644
@@ -30,10 +30,10 @@
 #define ACCELEROMETER_RANGE                     78.4532f
 #define ACCELEROMETER_RESOLUTION                0.0012
 #define ACCELEROMETER_POWER                     0
-#define ACCELEROMETER_MINDELAY                  2500
-#define ACCELEROMETER_FIFO_MAX_COUNT            4500
-#define ACCELEROMETER_FIFO_RESERVE_COUNT        3000
-#define ACCELEROMETER_MAXDELAY                  80000
+#define ACCELEROMETER_MINDELAY                  5000
+#define ACCELEROMETER_FIFO_MAX_COUNT            0
+#define ACCELEROMETER_FIFO_RESERVE_COUNT        0
+#define ACCELEROMETER_MAXDELAY                  200000
 #define ACCELEROMETER_FLAGS     SENSOR_FLAG_CONTINUOUS_MODE
 
 #define MAGNETOMETER                           "MAGNETOMETER"

VtsTrebleVendorVintfTest

VtsTrebleVendorVintfTest#DeviceManifest/SingleManifestTest.HalsAreServed/0_64bit

VtsTrebleVendorVintfTest#DeviceManifest/SingleManifestTest.InterfacesAreReleased/0_64bit

日志

test/vts-testcase/hal/treble/vintf/SingleManifestTest.cpp:51
Failed
vendor.mediatek.hardware.pplagent&#64;1.0::IPplAgent not available.
test/vts-testcase/hal/treble/vintf/SingleManifestTest.cpp:51
Failed
vendor.mediatek.hardware.pplagent&#64;1.0::IPplAgent not available

-------- device/mediatek/common/project_manifest/manifest_pplagent.xml --------
deleted file mode 100644
index 288b737..00000000
@@ -1,11 +0,0 @@
-<manifest version="1.0" type="device">
-    <hal format="hidl">
-        <name>vendor.mediatek.hardware.pplagent</name>
-        <transport>hwbinder</transport>

-        <version>1.0</version>
-        <interface>
-            <name>IPplAgent</name>
-            <instance>default</instance>
-        </interface>
-    </hal>
-</manifest>
\ No newline at end of file

----- device/mediatek/vendor/common/project_manifest/manifest_pplagent.xml -----
deleted file mode 100644
index 288b737..00000000
@@ -1,11 +0,0 @@
-<manifest version="1.0" type="device">
-    <hal format="hidl">
-        <name>vendor.mediatek.hardware.pplagent</name>
-        <transport>hwbinder</transport>

-        <version>1.0</version>
-        <interface>
-            <name>IPplAgent</name>
-            <instance>default</instance>
-        </interface>
-    </hal>
-</manifest>
\ No newline at end of file

------------- device/mediateksample/k62v1_64_bsp/ProjectConfig.mk -------------
index b1efb5d..f94405e 100644
@@ -351,7 +351,7 @@ MTK_POST_PROCESS_FRAMEWORK_SUPPORT = no
 MTK_POWER_PERFORMANCE_STRATEGY_SUPPORT = yes
 MTK_PQ_COLOR_MODE = DISP
 MTK_PQ_SUPPORT = PQ_HW_VER_2
-MTK_PRIVACY_PROTECTION_LOCK = yes
+MTK_PRIVACY_PROTECTION_LOCK = no
 MTK_PRODUCT_INFO_SUPPORT = yes
 MTK_PROTOCOL1_RAT_CONFIG = Lf/Lt/W/T/G
 MTK_PROTOCOL2_RAT_CONFIG = L/W/G

 

 

 

 

 

 

 

 

 

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值