[LINUX][TOOL] Android 9.0 partition repack tool!

Post your great articles here :)
Post Reply
__________
Posts: 4
Joined: Tue Jul 20, 2021 2:13 pm
Answers: 0
Has thanked: 1 time

#61

em3ka wrote: Wed Sep 28, 2022 7:07 pm It depends on your Linux knowledge, i presume that should run on most of the distros - tested on Ubuntu.
- Installation on Ubuntu >= 18.04 64bit (VirtualBox on Windows is supported)
https://forum.freaktab.com/node/803627
Ok Thanks
brunom80
Posts: 2
Joined: Sat Apr 02, 2022 11:52 am
Answers: 0
Has thanked: 1 time

#62

First things first, thanks for the tool :)
But some help needed here.
Installed Ubuntu 22 on Vmware and i can´t seem to install android-tools-fsutils so i tried with android-sdk-libsparse-utils, and maybe that is the main problem.
I swiched to Python 2.7 just to make sure, but can´r even install the *.DEB file from fsutils i managed to get.
Moving on, I noticed that when unpacking only odm.PARTITION creates a *.RAW file.

Image

It extracts all files and i can see them extracting, but at he end I end with a emptied "img-ubt" folder and only the files of LVL1 "img-unpack"

Here the terminal log:

heck fs dump...
/home/vboxuser/afck/bc-tool/test/gen_perms_caps_labels_stock.sh out/amlogic/device/1-2g/img-unpack/odm.PARTITION
convert to unsparse...
mount unsparseimg...
dump odm.PARTITION filesystem...
ok!
/home/vboxuser/afck/bc-tool/test/gen_perms_caps_labels_stock.sh out/amlogic/device/1-2g/img-unpack/vendor.PARTITION
convert to unsparse...
Invalid sparse file format at header magic
Failed to read sparse file
mount unsparseimg...
mount: /home/vboxuser/afck/bc-tool/test/vendor.PARTITION: wrong fs type, bad option, bad superblock on /dev/loop12, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
dump vendor.PARTITION filesystem...
find: getfilecon failed: ‘vendor.PARTITION’: No data available
umount: vendor.PARTITION: not mounted.
ok!

Any kind sould that can help me? thank you so much
bumerc
Administrator & Developer
Posts: 1551
Joined: Tue Oct 02, 2018 6:19 pm
Answers: 0
Has thanked: 211 times
Been thanked: 334 times

#63

brunom80 wrote: Mon Dec 12, 2022 5:22 pm It extracts all files and i can see them extracting, but at he end I end with a emptied "img-ubt" folder and only the files of LVL1 "img-unpack"
Directory img-ubt is only used temporarily and cleaned after unpacking.
brunom80 wrote: Mon Dec 12, 2022 5:22 pm mount: /home/vboxuser/afck/bc-tool/test/vendor.PARTITION: wrong fs type, bad option, bad superblock on /dev/loop12, missing codepage or helper program, or other error.
are android tools installed? Otherwise the vendor partition in your IMG is broken..
qiaoliangih
Posts: 2
Joined: Wed Jun 28, 2023 3:08 am
Answers: 0
Has thanked: 1 time

#64

the download link of bc-tool is not correct, it says File is in owner's trash...
Please share it again,Thanks
bumerc
Administrator & Developer
Posts: 1551
Joined: Tue Oct 02, 2018 6:19 pm
Answers: 0
Has thanked: 211 times
Been thanked: 334 times

#65

qiaoliangih wrote: Wed Jun 28, 2023 3:19 am the download link of bc-tool is not correct, it says File is in owner's trash...
Please share it again,Thanks
v.02a
https://drive.google.com/file/d/1VuLsok ... p=drivesdk

I will upload a newer version soon..
qiaoliangih
Posts: 2
Joined: Wed Jun 28, 2023 3:08 am
Answers: 0
Has thanked: 1 time

#66

bumerc wrote: Fri Jul 14, 2023 8:44 am
qiaoliangih wrote: Wed Jun 28, 2023 3:19 am the download link of bc-tool is not correct, it says File is in owner's trash...
Please share it again,Thanks
v.02a
https://drive.google.com/file/d/1VuLsok ... p=drivesdk

I will upload a newer version soon..
thank you very much
Post Reply