android - Issue while repacking Lollipop system.img -


i want make changes in system.img , flash nexus 5.

to modify .img first need unpack filesystem, make changes anf repack new system.img.

i'm following this guide unpack/repack.

steps i'm taking:

i. clone asop scripts:

  1. git clone https://android.googlesource.com/platform/system/extras
  2. git clone https://android.googlesource.com/platform/external/libselinux/
  3. git clone https://android.googlesource.com/platform/system/core/

ii. checkout specific version:

  1. cd extras
  2. git checkout android-5.1.1_r9

iii. compiling c files create make_ext4fs (which used repack filesystem img)

  1. cd ..
  2. gcc -o make_ext4fs -icore/libsparse/include -ilibselinux/include -icore/include -lz extras/ext4_utils/canned_fs_config.c extras/ext4_utils/make_ext4fs_main.c extras/ext4_utils/make_ext4fs.c extras/ext4_utils/ext4fixup.c extras/ext4_utils/ext4_utils.c extras/ext4_utils/allocate.c extras/ext4_utils/contents.c extras/ext4_utils/extent.c extras/ext4_utils/indirect.c extras/ext4_utils/uuid.c extras/ext4_utils/sha1.c extras/ext4_utils/wipe.c core/libsparse/backed_block.c core/libsparse/output_file.c core/libsparse/sparse.c core/libsparse/sparse_crc32.c core/libsparse/sparse_err.c core/libsparse/sparse_read.c

but above command giving me error:

extras/ext4_utils/make_ext4fs_main.c: in function ‘main’: extras/ext4_utils/make_ext4fs_main.c:187:20: error: ‘fs_config’ undeclared (first use in function)    fs_config_func = fs_config;                     ^ extras/ext4_utils/make_ext4fs_main.c:187:20: note: each undeclared identifier reported once each function appears in 

it says fs_config in undeclared. asop code, provided android only.

what missing..?

i think i've included header files, i'm not sure.

please help. frustrating.

p.s. - i'm noob in c. great if can explain in simple terms.

thank you


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -