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

Post your great articles here :)
SnowSimba
Posts: 1
Joined: Fri Oct 02, 2020 3:25 pm

#11

Good day, I can't pack the firmware https://daivietpda.com/2019/07/unoffici ... -pros905x/ even without making any changes when trying to pack it gives an error

create a sparse img...
##################
loaded 2676 fs_config entries
set_selinux_xattr: Unknown code ____ 255 searching for label "/tmp-mksh"
make: *** [build/mod.mak:62: bc-tool/stamp/.stamp.mod-partition-all] Ошибка 1

I tried different versions of Ubuntu, nothing helps, please help!
bumerc
Administrator & Developer
Posts: 1649
Joined: Tue Oct 02, 2018 6:19 pm
Has thanked: 254 times
Been thanked: 341 times

#12

[mention]SnowSimba[/mention]
You added something and didn't define any rules for it in plat_file_contexts or vendor_file_contexts
shmox
Verified Member
Posts: 10
Joined: Mon Dec 23, 2019 9:38 am
Has thanked: 4 times

#13

Hi, Please help As I am noob.
I have unpacked img succeffully but I want to add custom app in system/priv-app but I can't access, the only thing I found is system.img which I mounted and copied my custom app and unmounted. I built the aml upgrade img succeffully but when I try to flash it says image check failed. Thanks in advance
bumerc
Administrator & Developer
Posts: 1649
Joined: Tue Oct 02, 2018 6:19 pm
Has thanked: 254 times
Been thanked: 341 times

#14

[mention]shmox[/mention]
all extracted partitions are in afck/bc-tool, you don't have to mount anything, the tool does it automatically
shmox
Verified Member
Posts: 10
Joined: Mon Dec 23, 2019 9:38 am
Has thanked: 4 times

#15

bumerc wrote: Tue Oct 27, 2020 7:36 pm [mention]shmox[/mention]
all extracted partitions are in afck/bc-tool, you don't have to mount anything, the tool does it automatically
OMG didn't know that. Many thanks

ModEDIT: Because you haven't read readme.md.
ath156
Posts: 5
Joined: Thu Nov 21, 2019 11:27 pm

#16

[mention]bumerc[/mention]
Is it OK to update to a newer version of Ubuntu (as I got a message for doing it)?
Thank you.
bumerc
Administrator & Developer
Posts: 1649
Joined: Tue Oct 02, 2018 6:19 pm
Has thanked: 254 times
Been thanked: 341 times

#17

ath156 wrote: Mon Nov 02, 2020 6:50 am Is it OK to update to a newer version of Ubuntu (as I got a message for doing it)?
Basically yes, you only have to install the android-tools-fsutils package, as it is no longer available under these package names in newer Ubuntu versions..
ath156
Posts: 5
Joined: Thu Nov 21, 2019 11:27 pm

#18

bumerc wrote: Mon Nov 02, 2020 8:14 am Basically yes, you only have to install the android-tools-fsutils package, as it is no longer available under these package names in newer Ubuntu versions..
Thank you.
justin10
Verified Member
Posts: 19
Joined: Sat Nov 07, 2020 4:56 pm
Has thanked: 5 times

#19

Hello [mention]bumerc[/mention] , thanks for the tool (guide) and I've installed linux for unpacking Android 9 custom ROM.
I've read the readme file, and got img unpacked. After adding new APK, add some new kl files for remote, and changed a wallpaper.
Then I've used:
make mod-sepolicy
make mod-IMG
Which i got a new IMG file. However, it seems like everything I newly added was not replaced back in after unpack the new img file.
i.e: wallpaper still the same from the custom rom, and total of KL files were the same amount when I unpack from the original img.

Did I missed any steps? or simply adding new files and replace files won't work?
Thanks
bumerc
Administrator & Developer
Posts: 1649
Joined: Tue Oct 02, 2018 6:19 pm
Has thanked: 254 times
Been thanked: 341 times

#20

justin10 wrote: Fri Nov 20, 2020 5:39 pm Did I missed any steps?
Yes, you missed the main step

Code: Select all

make mod-partition-all
then

Code: Select all

make mod-IMG
Post Reply