Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] adb shell errors after flashing custom system.img. [star b92m mtk6577]

$
0
0
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:
Code:

- exec '/system/bin/sh' failed: Exec format error (8) nRet(-1) -
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)

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>