最近很多视频网站有非华为机型使用HarmonyOS鸿蒙系统的演示。其实大都是刷了HarmonyOS鸿蒙系统gsi系统。体验还可以。有些刷入后bug较多。那么这些机型是如何刷写gsi?可以参考我以往帖子
安卓玩机搞机-----没有第三方包 刷写第三方各种GSI系统 体验非官方系统_gsi刷机包_安卓机器的博客-CSDN博客
安卓玩机搞机----移植第三方rom修复 第三方GSI系统修复bug综合解析【一】_移植rom修复nfc_安卓机器的博客-CSDN博客
HarmonyOS鸿蒙系统的gsi已经更新到我的资源。点击:gsi资源,需要的友友可以下载。也可以自行到网络搜索下载体验
简单的描述一下步骤;gsi镜像为一个system.img文件。扩容系统分区后把这个镜像刷入到系统分区即可。有的机型直接就开机了,有的需要去各种加密等等方式才可以开机
💔💔💔💔💔💔💔💔刷写HarmonyOS鸿蒙系统GSI的基本步骤💔💔💔💔💔💔💔💔
因为HarmonyOS鸿蒙系统GSI占用的系统分区较大。大都在7----8G左右。这就面临着你如果想刷入这些gsi系统就需要扩容系统分区。否则你刷写不进去。至于怎么扩容,可以找你自己机型的扩容补丁或者手动扩容,可以参考:
再次提示。任何的修改分区操作都有可能导致手机不开机或者彻底黑屏故障。请谨慎操作。刷入gsi系统后如果机型还不开机。如果你的系统分区有vbmeta。你可以尝试关闭avb校验
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
另外也要考虑你机型底包的原因。建议最好最新的官方系统下尝试刷写gsi
底包说明:底包说明解析
另外。目前有好几个版本的HarmonyOS鸿蒙系统GSI系统,具体需要自测。
####################################################################
💔💔💔💔💔💔💔💔修复HarmonyOS鸿蒙系统GSI系统的一些bug操作💔💔💔💔💔💔💔💔
刷入卡第一屏:可以在boot宽容。avb验证。data加密。boot版本 。底包方面逐一排查。尝试把vendor/overlay里面的文件全部删除测试
出现HarmonyOS动画 重启到rec:进rec删除system/priv-app/HwStartGuide
关于手机界面修复:添加以下代码:
# Harmony OS版本
ro.build.hide.matchers=4.0.0 ro.build.hide.replacements=4.0.0
hw_sc.build.platform.version=4.0.0
# 软件版本
ro.build.display.id=FOA-AL00 4.0.0.112(C00E112R3P2)
ro.build.ver.physical=FOA-AL00 4.0.0.112(C00E112R3P2)
ro.huawei.build.display.id=FOA-AL00 4.0.0.112(C00E112R3P2)
# 处理器型号
ro.config.cpu_info_display=高通骁龙™ 712
(这里可以改成你自己的处理器)
# GPU Turbo(图标作用)
ro.gpu_turbo=GPU Turbo
# 修复高刷
sys.aps.defaultmaxfps=120
开机动画修复:
将根目录/hw_product/region_comm/china/media/
里面的三个文件,复制到system/media
HUAWEI/HarmonyOS开机动画和铃声就有了
鸿蒙gsi开机默认英文: 修改system/build.prop:将en修改为zh-CN
桌面名称修复:
将hw_product里面的etc所以文件及文件夹和lib/lib64文件夹补到system对应etc文件夹和lib文件夹,注意,有相同的请跳过,不然容易不开机
热点修复;
提取原rom包vendor里面的以下驱动换即可
vendor/bin/cnd
vendor/bin/hostapd_cli
vendor/bin/hw/hostapd
vendor/etc/hostapd
vendor/etc/init/hostapd.android.rc
vendor/lib/libqsap_sdk.so
vendor/lib/vendor.qti.hardware.wifi.hostapd.so
vendor/lib64/libqsap_sdk.so
vendor/lib64/vendor.qti.hardware.wifi.hostapd.so
目前最新的HarmonyOS鸿蒙系统GSI的build.prop。
####################################
# from generate-common-build-props
# These properties identify this partition image.
####################################
ro.product.system.brand=Redmi
ro.product.system.device=
ro.product.system.manufacturer=Xiaomi
ro.product.system.model=
ro.product.system.name=
ro.system.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.system.product.cpu.abilist32=armeabi-v7a,armeabi
ro.system.product.cpu.abilist64=arm64-v8a
ro.system.build.date=Sat Aug 12 10:22:32 CST 2023
ro.system.build.date.utc=1691806952
ro.system.build.fingerprint=Huawei/ohosqssi/ohosqssi:12/SKQ1.220804.001/huawei08121022:user/dev-keys
ro.system.build.id=SKQ1.220804.001
ro.system.build.tags=dev-keys
ro.system.build.type=user
ro.system.build.version.incremental=eng.huawei.20230812.101427
ro.system.build.version.release=12
ro.system.build.version.release_or_codename=12
ro.system.build.version.sdk=31
####################################
# from out/target/product/ohosqssi/obj/PACKAGING/system_build_prop_intermediates/buildinfo.prop
####################################
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=SKQ1.220804.001
ro.build.keys=dev-keys
ro.build.version.sdk=31
ro.build.ark3.version=0.0.0.2
ro.build.ark3.min.version=0.0.0.2
ro.build.version.preview_sdk=0
ro.build.version.preview_sdk_fingerprint=REL
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=12
ro.build.version.release_or_codename=12
ro.build.version.security_patch=2023-08-01
ro.build.version.base_os=
config.disable_consumerir=true
ro.build.version.security_patch=2023-08-01
ro.huawei.build.version.security_patch=2023-08-01
ro.build.version.min_supported_target_sdk=23
ro.build.date=Sat Aug 12 10:22:32 CST 2023
ro.huawei.build.date=Sat Aug 12 10:22:32 CST 2023
ro.build.date.utc=1691806952
ro.huawei.build.date.utc=1691806952
ro.build.type=user
ro.build.host=cn-central-hcd-2a-16e33f4d21691804757398-7f79fc5959-gddn7
ro.huawei.build.host=cn-central-hcd-2a-16e33f4d21691804757398-7f79fc5959-gddn7
ro.build.flavor=ohosqssi-user
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
ro.product.cpu.abi=arm64-v8a
ro.product.locale=zh-CN
ro.wifi.channels=
ro.board.platform=
ro.build.product=ohosqssi
# Do not try to parse description or thumbprint
ro.build.description=ohosqssi-user 12 SKQ1.220804.001 eng.huawei.20230812.101427 dev-keys
# end build properties
####################################
# from zidane/build/product/generic_phone.prop
####################################
# whether ohos is enabled.
hw_sc.build.os.enable=true
# ohos API version number.
hw_sc.build.os.apiversion=8
# ohos API release type.
hw_sc.build.os.apireleasetype=Release
# ohos system version.
hw_sc.build.os.version=4.0.0
# ohos device type please use hw_sc.build.os.devicetype
# ohos release type.
hw_sc.build.os.releasetype=Release
####################################
# from device/qcom/qssi/system.prop
####################################
#
# system.prop for qssi
#
rild.libpath=/vendor/lib64/libril-qc-hal-qmi.so
#rild.libargs=-d /dev/smd0
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
ril.subscription.types=NV,RUIM
DEVICE_PROVISIONED=1
# Set network mode to (NR_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA, NR_LTE_TDSCDMA_CDMA_EVDO_GSM_WCDMA) for 8+8 mode device on DSDS mode
ro.telephony.default_network=33,33
dalvik.vm.heapsize=36m
dalvik.vm.dex2oat64.enabled=true
dev.pm.dyn_samplingrate=1
#ro.hdmi.enable=true
#persist.speaker.prot.enable=false
qcom.hw.aac.encoder=true
#
# system props for the cne module
#
persist.vendor.cne.feature=1
#system props for the MM modules
media.stagefright.enable-player=true
media.stagefright.enable-http=true
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=true
media.stagefright.enable-fma2dp=true
media.stagefright.enable-scan=true
media.stagefright.thumbnail.prefer_hw_codecs=true
mmp.enable.3g2=true
media.aac_51_output_enabled=true
#16777215 is decimal sum of supported codecs in AAL
#codecs:(PARSER_)AAC AC3 AMR_NB AMR_WB ASF AVI DTS FLV 3GP 3G2 MKV MP2PS MP2TS MP3 OGG QCP WAV FLAC AIFF APE DSD MOV MHAS
vendor.mm.enable.qcom_parser=16777215
persist.mm.enable.prefetch=true
#
# system props for the data modules
#
ro.vendor.use_data_netmgrd=true
persist.vendor.data.mode=concurrent
#system props for time-services
persist.timed.enable=true
#
# system prop for opengles version
#
# 196608 is decimal for 0x30000 to report version 3
# 196609 is decimal for 0x30001 to report version 3.1
# 196610 is decimal for 0x30002 to report version 3.2
#
# System props for telephony
# System prop to turn on CdmaLTEPhone always
telephony.lteOnCdmaDevice=1
#Simulate sdcard on /data/media
#
persist.fuse_sdcard=true
#System props for BT
ro.bluetooth.library_name=libbluetooth_qti.so
persist.vendor.btstack.aac_frm_ctl.enabled=true
#system prop for RmNet Data
persist.rmnet.data.enable=true
persist.data.wda.enable=true
persist.data.df.dl_mode=5
persist.data.df.ul_mode=5
persist.data.df.agg.dl_pkt=10
persist.data.df.agg.dl_size=4096
persist.data.df.mux_count=8
persist.data.df.iwlan_mux=9
persist.data.df.dev_name=rmnet_usb0
#property to enable user to access Google WFD settings
persist.debug.wfd.enable=1
##property to choose between virtual/external wfd display
persist.sys.wfd.virtual=0
#property to latch unsignaled buffer
# enable tunnel encoding for amrwb
tunnel.audio.encode=true
#enable voice path for PCM VoIP by default
use.voice.path.for.pcm.voip=true
# system prop for NFC DT
ro.nfc.port=I2C
#initialize QCA1530 detection
sys.qca1530=detect
#Enable stm events
persist.debug.coresight.config=stm-events
#hwui properties
ro.hwui.texture_cache_size=72
ro.hwui.layer_cache_size=48
ro.hwui.r_buffer_cache_size=8
ro.hwui.path_cache_size=32
ro.hwui.gradient_cache_size=1
ro.hwui.drop_shadow_cache_size=6
ro.hwui.texture_cache_flushrate=0.4
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=1024
config.disable_rtt=true
#Bringup properties
persist.sys.force_sw_gles=1
persist.vendor.radio.atfwd.start=true
ro.kernel.qemu.gles=0
qemu.hw.mainkeys=0
#Expose aux camera for below packages
#Add snapcam in privapp list
#enable IZat OptInApp overlay
persist.vendor.overlay.izat.optin=rro
# Property for backup NTP Server
persist.backup.ntpServer="0.pool.ntp.org"
#Property to enable Mag filter
persist.vendor.sensors.enable.mag_filter=true
#Partition source order for Product/Build properties pickup.
#Property to enable Codec2 for audio and OMX for Video
debug.stagefright.ccodec=1
#Property to set native recorder's maximum base layer fps
ro.media.recorder-max-base-layer-fps=60
#Battery Property
ro.charger.enable_suspend=1
#Disable MTE Async for system server
arm64.memtag.process.system_server=off
# Disable blur on app launch
ro.launcher.blur.appLaunch=0
####################################
# from variable ADDITIONAL_SYSTEM_PROPERTIES
####################################
# Removed by post_process_props.py because ro.product.first_api_level is a disallowed key
#ro.product.first_api_level=31
ro.maple.enable=0
ro.postinstall.fstab.prefix=/system
persist.sys.dalvik.vm.lib.2=libart.so
dalvik.vm.isa.arm64.variant=generic
dalvik.vm.isa.arm64.features=default
dalvik.vm.isa.arm.variant=cortex-a9
dalvik.vm.isa.arm.features=default
ro.secure=0
security.perf_harden=0
ro.adb.secure=0
ro.allow.mock.location=0
ro.debuggable=1
net.bt.name=Android
ro.vendor.qti.va_aosp.support=1
####################################
# from variable PRODUCT_SYSTEM_PROPERTIES
####################################
debug.atrace.tags.enableflags=0
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.usejit=true
dalvik.vm.usejitprofiles=true
dalvik.vm.dexopt.secondary=true
dalvik.vm.dexopt.thermal-cutoff=2
dalvik.vm.appimageformat=lz4
ro.magic.api.version=0.1
ro.dalvik.vm.native.bridge=0
pm.dexopt.first-boot=verify
pm.dexopt.boot-after-ota=verify
pm.dexopt.post-boot=extract
pm.dexopt.install=speed-profile
pm.dexopt.install-fast=skip
pm.dexopt.install-bulk=speed-profile
pm.dexopt.install-bulk-secondary=verify
pm.dexopt.install-bulk-downgraded=verify
pm.dexopt.install-bulk-secondary-downgraded=extract
pm.dexopt.bg-dexopt=speed-profile
# Removed by post_process_props.py because overridden by pm.dexopt.ab-ota=speed-profile
#pm.dexopt.ab-ota?=speed-profile
pm.dexopt.inactive=verify
pm.dexopt.cmdline=verify
pm.dexopt.shared=speed
dalvik.vm.appimageformat=lz4
ro.magic.api.version=0.1
pm.dexopt.ab-ota=speed-profile
dalvik.vm.dex2oat-updatable-bcp-packages-file=/system/etc/updatable-bcp-packages.txt
dalvik.vm.dex2oat-resolve-startup-strings=true
dalvik.vm.dex2oat-max-image-block-size=524288
dalvik.vm.minidebuginfo=true
dalvik.vm.dex2oat-minidebuginfo=true
ro.iorapd.enable=false
dalvik.vm.madvise.vdexfile.size=0
dalvik.vm.madvise.odexfile.size=0
dalvik.vm.madvise.artfile.size=0
persist.device_config.runtime_native_boot.iorap_perfetto_enable=true
####################################
# from variable PRODUCT_SYSTEM_DEFAULT_PROPERTIES
####################################
# Auto-added by post_process_props.py
persist.sys.usb.config=manufacture,adb
# end of file
ro.build.user=test
ro.build.tags=release-keys
ro.config.hw_navigationbar=true
ro.build.display.id=FOA-AL00 4.0.0.112(C00E112R3P2)
ro.comp.sys_support_vndk=
const.persist.dex2oat.versionNum=ce5d10ce8831a79661e4133c9158b121aebbd3cc574ee1f8fd0a25adae25ae7f
# BY Nippon
ro.build.system_root_image=true
ro.cp_system_other_odex=0
ro.nnapi.extensions.deny_on_product=true
ro.support_one_handed_mode=true
persist.sys.binary_xml=false
# Some devices have sdcardfs kernel panicing on 8.0
# Disable for everyone for the moment
ro.sys.sdcardfs=0
# Force triple frame buffers
# ro.surface_flinger.max_frame_buffer_acquired_buffers=3
# Fix developer settings
ro.oem_unlock_supported=1
# BT Fix
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
persist.bluetooth.a2dp_offload.disabled=false
persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac
persist.vendor.qcom.bluetooth.aac_vbr_ctl.enabled=false
persist.vendor.qcom.bluetooth.enable.splita2dp=true
persist.vendor.qcom.bluetooth.scram.enabled=true
persist.vendor.qcom.bluetooth.soc=cherokee
persist.vendor.qcom.bluetooth.twsp_state.enabled=false
ro.bluetooth.a2dp_offload.supported=true
ro.vendor.bluetooth.wipower=false
vendor.qcom.bluetooth.soc=cherokee
persist.bluetooth.bluetooth_audio_hal.disabled=false
persist.bluetooth.bluetooth_audio_hal.enabled=true
# SIM Fix
ro.multisim.simslotcount=2
ro.vendor.multisim.simslotcount=2
persist.radio.multisim.config=dsds
persist.vendor.radio.msimode=dsds
# Logcat
logd.logpersistd=logcatd
logd.logpersistd.buffer=all
logd.logpersistd.enable=true
logd.logpersistd.size=1024
logd.logpersistd.size.rotate=64
# You can nuke this if necessary
ro.opengles.version=196610
telephony.lteOnCdmaDevice=1
ro.product.property_source_order=system,product,system_ext,vendor,odm
sys.aps.defaultmaxfps=60
ro.build.hide.matchers=4.0.0
ro.build.hide.replacements=4.0.0
hw_sc.build.platform.version=4.0.0
ro.gpu_turbo=GPU Turbo
其他的bug修复。需要你对照原机官方系统和华为原版鸿蒙系统进行修复。具体可以参考前面的博文.对于每个系统,评价不同。其实自己体验好的才是最好的