Iceows / huawei-creator

Transform AB to A-Only and AB to VNDK-lite for Huavei device
24 stars 13 forks source link

lost some files in 'system\system_ext' #7

Open Jansuoh opened 2 weeks ago

Jansuoh commented 2 weeks ago

I try to fix some bugs and rerun again and again, but I seem to found there's lost some files in this repository?

root@PC001:/mnt/e/00/huawei-creator-android-11# sudo ./run-huawei-aonly.sh PixelExperience_ARM64A-10.0-20200118-2023-GSI.img "PixelExperience10.0" "STF-AL10" "N"
++ readlink -f -- ./run-huawei-aonly.sh
+ origin=/mnt/e/00/huawei-creator-android-11/run-huawei-aonly.sh
++ dirname /mnt/e/00/huawei-creator-android-11/run-huawei-aonly.sh
+ origin=/mnt/e/00/huawei-creator-android-11
+ '[' '!' -d vendor_vndk ']'
+ targetArch=64
+ srcFile=PixelExperience_ARM64A-10.0-20200118-2023-GSI.img
+ versionNumber=PixelExperience10.0
+ model=STF-AL10
+ bootanim=N
+ '[' '!' -f PixelExperience_ARM64A-10.0-20200118-2023-GSI.img ']'
+ /mnt/e/00/huawei-creator-android-11/simg2img PixelExperience_ARM64A-10.0-20200118-2023-GSI.img s-aonly.img
+ rm -Rf tmp
+ mkdir -p d tmp
+ e2fsck -y -f s-aonly.img
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information

system: ***** FILE SYSTEM WAS MODIFIED *****
system: 6005/6048 files (0.5% non-contiguous), 661666/678064 blocks
+ resize2fs s-aonly.img 3500M
resize2fs 1.46.5 (30-Dec-2021)
Resizing the filesystem on s-aonly.img to 896000 (4k) blocks.
The filesystem on s-aonly.img is now 896000 (4k) blocks long.

+ e2fsck -E unshare_blocks -y -f s-aonly.img
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
system: 6005/8064 files (0.6% non-contiguous), 662140/896000 blocks
+ mount -o loop,rw s-aonly.img d
+ cd d
+ mkdir splash2
+ chown root:root splash2
+ chmod 777 splash2
+ xattr -w security.selinux u:object_r:rootfs:s0 splash2
+ mkdir modem_log
+ chown root:root modem_log
+ chmod 777 modem_log
+ xattr -w security.selinux u:object_r:rootfs:s0 modem_log
+ cp /mnt/e/00/huawei-creator-android-11/init.environ.rc /mnt/e/00/huawei-creator-android-11/tmp
+ rm -Rf /mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/com.android.vndk.v28
+ rm -Rf /mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/com.android.vndk.v29
+ rm -Rf '/mnt/e/00/huawei-creator-android-11/files-patch/apex/*.apex'
+ rm -Rf '/mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/*.apex'
+ rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-28
+ rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-29
+ rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-sp-28
+ rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-sp-29
+ sed -i -e /sys.usb.config/d -e /persist.sys.theme/d -e /ro.opengles.version/d -e /ro.sf.lcd_density/d -e /sys.usb.controller/d -e /persist.dbg.wfc_avail_ovr/d -e /persist.dbg.vt_avail_ovr/d -e /persist.dbg.volte_avail_ovr/d -e /ro.build.fingerprint/d -e /ro.vendor.build.fingerprint/d etc/selinux/plat_property_contexts
+ xattr -w security.selinux u:object_r:property_contexts_file:s0 /mnt/e/00/huawei-creator-android-11/files-patch/etc/selinux/plat_property_contexts
No such file: /mnt/e/00/huawei-creator-android-11/files-patch/etc/selinux/plat_property_contexts
+ cp /mnt/e/00/huawei-creator-android-11/files/apex-setup.rc /mnt/e/00/huawei-creator-android-11/files-patch/etc/init/
cp: cannot create regular file '/mnt/e/00/huawei-creator-android-11/files-patch/etc/init/': No such file or directory
root@PC001:/mnt/e/00/huawei-creator-android-11# sudo ./run-huawei-aonly.sh PixelExperience_ARM64A-10.0-20200118-2023-GSI.img "PixelExperience10.0" "STF-AL10" "N"
++ readlink -f -- ./run-huawei-aonly.sh
+ origin=/mnt/e/00/huawei-creator-android-11/run-huawei-aonly.sh
++ dirname /mnt/e/00/huawei-creator-android-11/run-huawei-aonly.sh
+ origin=/mnt/e/00/huawei-creator-android-11
+ '[' '!' -d vendor_vndk ']'
+ targetArch=64
+ srcFile=PixelExperience_ARM64A-10.0-20200118-2023-GSI.img
+ versionNumber=PixelExperience10.0
+ model=STF-AL10
+ bootanim=N
+ '[' '!' -f PixelExperience_ARM64A-10.0-20200118-2023-GSI.img ']'
+ /mnt/e/00/huawei-creator-android-11/simg2img PixelExperience_ARM64A-10.0-20200118-2023-GSI.img s-aonly.img
+ rm -Rf tmp
+ mkdir -p d tmp
+ e2fsck -y -f s-aonly.img
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Pass 4: Checking reference counts
Pass 5: Checking group summary information

system: ***** FILE SYSTEM WAS MODIFIED *****
system: 6005/6048 files (0.5% non-contiguous), 661666/678064 blocks
+ resize2fs s-aonly.img 3500M
resize2fs 1.46.5 (30-Dec-2021)
Resizing the filesystem on s-aonly.img to 896000 (4k) blocks.
The filesystem on s-aonly.img is now 896000 (4k) blocks long.

+ e2fsck -E unshare_blocks -y -f s-aonly.img
e2fsck 1.46.5 (30-Dec-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
system: 6005/8064 files (0.6% non-contiguous), 662140/896000 blocks
+ mount -o loop,rw s-aonly.img d
+ cd d
+ mkdir splash2
+ chown root:root splash2
+ chmod 777 splash2
+ xattr -w security.selinux u:object_r:rootfs:s0 splash2
+ mkdir modem_log
+ chown root:root modem_log
+ chmod 777 modem_log
+ xattr -w security.selinux u:object_r:rootfs:s0 modem_log
+ cp /mnt/e/00/huawei-creator-android-11/init.environ.rc /mnt/e/00/huawei-creator-android-11/tmp
+ rm -Rf /mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/com.android.vndk.v28
+ rm -Rf /mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/com.android.vndk.v29
+ rm -Rf '/mnt/e/00/huawei-creator-android-11/files-patch/apex/*.apex'
+ rm -Rf '/mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/*.apex'
+ rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-28
+ rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-29
+ rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-sp-28
+ rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-sp-29
+ sed -i -e /sys.usb.config/d -e /persist.sys.theme/d -e /ro.opengles.version/d -e /ro.sf.lcd_density/d -e /sys.usb.controller/d -e /persist.dbg.wfc_avail_ovr/d -e /persist.dbg.vt_avail_ovr/d -e /persist.dbg.volte_avail_ovr/d -e /ro.build.fingerprint/d -e /ro.vendor.build.fingerprint/d etc/selinux/plat_property_contexts
+ xattr -w security.selinux u:object_r:property_contexts_file:s0 /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/selinux/plat_property_contexts
No such file: /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/selinux/plat_property_contexts
+ cp /mnt/e/00/huawei-creator-android-11/files/apex-setup.rc /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/
+ xattr -w security.selinux u:object_r:system_file:s0 /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/apex-setup.rc
+ cp /mnt/e/00/huawei-creator-android-11/tmp/init.environ.rc /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/init-environ.rc
+ sed -i 's/on early-init/on init/g' /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/init-environ.rc
+ xattr -w security.selinux u:object_r:system_file:s0 /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/init-environ.rc
+ sed -i -e s/MREMAP_MAYMOVE/1/g /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/seccomp_policy/mediaextractor.policy /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/seccomp_policy/mediacodec.policy /mnt/e/00/huawei-creator-android-11/files-patch/system/system_ext/apex/com.android.media/etc/seccomp_policy/mediaextractor.policy /mnt/e/00/huawei-creator-android-11/files-patch/system/system_ext/apex/com.android.media.swcodec/etc/seccomp_policy/mediaswcodec.policy
sed: can't read /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/seccomp_policy/mediaextractor.policy: No such file or directory
sed: can't read /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/seccomp_policy/mediacodec.policy: No such file or directory
sed: can't read /mnt/e/00/huawei-creator-android-11/files-patch/system/system_ext/apex/com.android.media.swcodec/etc/seccomp_policy/mediaswcodec.policy: No such file or directory

Likes 'system_ext/apex/com.android.vndk.v28' or 'system_ext/apex/com.android.media.swcodec/etc/seccomp_policy/mediaswcodec.policy', etc. I hope you can reissue this lost files, thank you so much!

Iceows commented 2 weeks ago

What is the name of the branch you used? It is android-11 ?

Le dim. 25 août 2024, 09:36, Jansuoh @.***> a écrit :

I try to fix some bugs and rerun again and again, but I seem to found there's lost some files in this repository?

@.***:/mnt/e/00/huawei-creator-android-11# sudo ./run-huawei-aonly.sh PixelExperience_ARM64A-10.0-20200118-2023-GSI.img "PixelExperience10.0" "STF-AL10" "N" ++ readlink -f -- ./run-huawei-aonly.sh

  • origin=/mnt/e/00/huawei-creator-android-11/run-huawei-aonly.sh ++ dirname /mnt/e/00/huawei-creator-android-11/run-huawei-aonly.sh
  • origin=/mnt/e/00/huawei-creator-android-11
  • '[' '!' -d vendor_vndk ']'
  • targetArch=64
  • srcFile=PixelExperience_ARM64A-10.0-20200118-2023-GSI.img
  • versionNumber=PixelExperience10.0
  • model=STF-AL10
  • bootanim=N
  • '[' '!' -f PixelExperience_ARM64A-10.0-20200118-2023-GSI.img ']'
  • /mnt/e/00/huawei-creator-android-11/simg2img PixelExperience_ARM64A-10.0-20200118-2023-GSI.img s-aonly.img
  • rm -Rf tmp
  • mkdir -p d tmp
  • e2fsck -y -f s-aonly.img e2fsck 1.46.5 (30-Dec-2021) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 3A: Optimizing directories Pass 4: Checking reference counts Pass 5: Checking group summary information

system: FILE SYSTEM WAS MODIFIED system: 6005/6048 files (0.5% non-contiguous), 661666/678064 blocks

  • resize2fs s-aonly.img 3500M resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on s-aonly.img to 896000 (4k) blocks. The filesystem on s-aonly.img is now 896000 (4k) blocks long.

  • e2fsck -E unshare_blocks -y -f s-aonly.img e2fsck 1.46.5 (30-Dec-2021) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information system: 6005/8064 files (0.6% non-contiguous), 662140/896000 blocks

  • mount -o loop,rw s-aonly.img d

  • cd d

  • mkdir splash2

  • chown root:root splash2

  • chmod 777 splash2

  • xattr -w security.selinux u:object_r:rootfs:s0 splash2

  • mkdir modem_log

  • chown root:root modem_log

  • chmod 777 modem_log

  • xattr -w security.selinux u:object_r:rootfs:s0 modem_log

  • cp /mnt/e/00/huawei-creator-android-11/init.environ.rc /mnt/e/00/huawei-creator-android-11/tmp

  • rm -Rf /mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/com.android.vndk.v28

  • rm -Rf /mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/com.android.vndk.v29

  • rm -Rf '/mnt/e/00/huawei-creator-android-11/files-patch/apex/*.apex'

  • rm -Rf '/mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/*.apex'

  • rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-28

  • rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-29

  • rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-sp-28

  • rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-sp-29

  • sed -i -e /sys.usb.config/d -e /persist.sys.theme/d -e /ro.opengles.version/d -e /ro.sf.lcd_density/d -e /sys.usb.controller/d -e /persist.dbg.wfc_avail_ovr/d -e /persist.dbg.vt_avail_ovr/d -e /persist.dbg.volte_avail_ovr/d -e /ro.build.fingerprint/d -e /ro.vendor.build.fingerprint/d etc/selinux/plat_property_contexts

  • xattr -w security.selinux u:object_r:property_contexts_file:s0 /mnt/e/00/huawei-creator-android-11/files-patch/etc/selinux/plat_property_contexts No such file: /mnt/e/00/huawei-creator-android-11/files-patch/etc/selinux/plat_property_contexts

  • cp /mnt/e/00/huawei-creator-android-11/files/apex-setup.rc /mnt/e/00/huawei-creator-android-11/files-patch/etc/init/ cp: cannot create regular file '/mnt/e/00/huawei-creator-android-11/files-patch/etc/init/': No such file or directory @.***:/mnt/e/00/huawei-creator-android-11# sudo ./run-huawei-aonly.sh PixelExperience_ARM64A-10.0-20200118-2023-GSI.img "PixelExperience10.0" "STF-AL10" "N" ++ readlink -f -- ./run-huawei-aonly.sh

  • origin=/mnt/e/00/huawei-creator-android-11/run-huawei-aonly.sh ++ dirname /mnt/e/00/huawei-creator-android-11/run-huawei-aonly.sh

  • origin=/mnt/e/00/huawei-creator-android-11

  • '[' '!' -d vendor_vndk ']'

  • targetArch=64

  • srcFile=PixelExperience_ARM64A-10.0-20200118-2023-GSI.img

  • versionNumber=PixelExperience10.0

  • model=STF-AL10

  • bootanim=N

  • '[' '!' -f PixelExperience_ARM64A-10.0-20200118-2023-GSI.img ']'

  • /mnt/e/00/huawei-creator-android-11/simg2img PixelExperience_ARM64A-10.0-20200118-2023-GSI.img s-aonly.img

  • rm -Rf tmp

  • mkdir -p d tmp

  • e2fsck -y -f s-aonly.img e2fsck 1.46.5 (30-Dec-2021) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 3A: Optimizing directories Pass 4: Checking reference counts Pass 5: Checking group summary information

system: FILE SYSTEM WAS MODIFIED system: 6005/6048 files (0.5% non-contiguous), 661666/678064 blocks

  • resize2fs s-aonly.img 3500M resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on s-aonly.img to 896000 (4k) blocks. The filesystem on s-aonly.img is now 896000 (4k) blocks long.

  • e2fsck -E unshare_blocks -y -f s-aonly.img e2fsck 1.46.5 (30-Dec-2021) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information system: 6005/8064 files (0.6% non-contiguous), 662140/896000 blocks

  • mount -o loop,rw s-aonly.img d

  • cd d

  • mkdir splash2

  • chown root:root splash2

  • chmod 777 splash2

  • xattr -w security.selinux u:object_r:rootfs:s0 splash2

  • mkdir modem_log

  • chown root:root modem_log

  • chmod 777 modem_log

  • xattr -w security.selinux u:object_r:rootfs:s0 modem_log

  • cp /mnt/e/00/huawei-creator-android-11/init.environ.rc /mnt/e/00/huawei-creator-android-11/tmp

  • rm -Rf /mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/com.android.vndk.v28

  • rm -Rf /mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/com.android.vndk.v29

  • rm -Rf '/mnt/e/00/huawei-creator-android-11/files-patch/apex/*.apex'

  • rm -Rf '/mnt/e/00/huawei-creator-android-11/files-patch/system_ext/apex/*.apex'

  • rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-28

  • rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-29

  • rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-sp-28

  • rm -rf /mnt/e/00/huawei-creator-android-11/files-patch/lib64/vndk-sp-29

  • sed -i -e /sys.usb.config/d -e /persist.sys.theme/d -e /ro.opengles.version/d -e /ro.sf.lcd_density/d -e /sys.usb.controller/d -e /persist.dbg.wfc_avail_ovr/d -e /persist.dbg.vt_avail_ovr/d -e /persist.dbg.volte_avail_ovr/d -e /ro.build.fingerprint/d -e /ro.vendor.build.fingerprint/d etc/selinux/plat_property_contexts

  • xattr -w security.selinux u:object_r:property_contexts_file:s0 /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/selinux/plat_property_contexts No such file: /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/selinux/plat_property_contexts

  • cp /mnt/e/00/huawei-creator-android-11/files/apex-setup.rc /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/

  • xattr -w security.selinux u:object_r:system_file:s0 /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/apex-setup.rc

  • cp /mnt/e/00/huawei-creator-android-11/tmp/init.environ.rc /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/init-environ.rc

  • sed -i 's/on early-init/on init/g' /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/init-environ.rc

  • xattr -w security.selinux u:object_r:system_file:s0 /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/init/init-environ.rc

  • sed -i -e s/MREMAP_MAYMOVE/1/g /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/seccomp_policy/mediaextractor.policy /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/seccomp_policy/mediacodec.policy /mnt/e/00/huawei-creator-android-11/files-patch/system/system_ext/apex/com.android.media/etc/seccomp_policy/mediaextractor.policy /mnt/e/00/huawei-creator-android-11/files-patch/system/system_ext/apex/com.android.media.swcodec/etc/seccomp_policy/mediaswcodec.policy sed: can't read /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/seccomp_policy/mediaextractor.policy: No such file or directory sed: can't read /mnt/e/00/huawei-creator-android-11/files-patch/system/etc/seccomp_policy/mediacodec.policy: No such file or directory sed: can't read /mnt/e/00/huawei-creator-android-11/files-patch/system/system_ext/apex/com.android.media.swcodec/etc/seccomp_policy/mediaswcodec.policy: No such file or directory

Likes 'system_ext/apex/com.android.vndk.v28' or 'system_ext/apex/com.android.media.swcodec/etc/seccomp_policy/mediaswcodec.policy', etc. I hope you can reissue this lost files, thank you so much!

— Reply to this email directly, view it on GitHub https://github.com/Iceows/huawei-creator/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVDNGLTUFTTME2VEZBPUVC3ZTGCQLAVCNFSM6AAAAABNCJV35GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DKMJQGU3DQMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Jansuoh commented 2 weeks ago

yeah, I have checked these files under this directory in branch android-11.