I'm creating custom system.img for the device star b92m (Flashing via sp flash tool)
(My files are here: https://github.com/Bnaya/alps-H958-mods)
I'm packing the files back to the .img file using make_ext4fs.
(./tools/make_ext4fs -s -l 512M -a system ./packed_systems/cm_custom_system.img systems/custom_alpha/)
The phone is working (boot and usage ) with that .img, the adb is recognizing the device but adb shell returns that error:
That happens event of all of the files are the original files, just extracted & repack the .img file
The only difference i can point on is that the original system.img file is 512MB size and my packed one size are based on the content size (even with the -s -l 512M params)
(My files are here: https://github.com/Bnaya/alps-H958-mods)
I'm packing the files back to the .img file using make_ext4fs.
(./tools/make_ext4fs -s -l 512M -a system ./packed_systems/cm_custom_system.img systems/custom_alpha/)
The phone is working (boot and usage ) with that .img, the adb is recognizing the device but adb shell returns that error:
Code:
- exec '/system/bin/sh' failed: Exec format error (8) nRet(-1) -
The only difference i can point on is that the original system.img file is 512MB size and my packed one size are based on the content size (even with the -s -l 512M params)