yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] kalehrl:
The dtb I attached is not encrypted. It is from a SlimBox custom rom. I will send you the link to my ota.zip in which some files are encrypted, probably boot.img and dt.img. Other files should be fine.

EDIT: With the new version, dtb is decompiled successfully :D
[Android Stick & Console AMLogic based Computers] kalehrl:
I've stumbled upon an interesting script for dumping fw via adb from R@xone I think. Maybe I can send it to you to have a look and improve on it and make it available on github.
[Android Stick & Console AMLogic based Computers] kalehrl:
It seems that it doesn't extract Android 7.1 images correctly.

system/usr folder isn't extracted and the terminal window closes prematurely.

I tried this image which extracts fine with another tool:

0 byte folder on MEGA

mega.nz
[Android Stick & Console AMLogic based Computers] althafvly:
New changes

- Allow user to select vortex/python for extracing firmware in windows

- Added support to dump firmware from mask mode

- Added support for firmwares with super.img

Note: i have only test this in some firmware/device. report if theres any issues.
[Android Stick & Console AMLogic based Computers] cali.s:
Create flashable zip from amlogic image

i created a zip can I flash this with or without wiping anything in twrp ?

failed with error 6
[Android Stick & Console AMLogic based Computers] althafvly:
Not sure which device and firmware your are talking about. Its better if you wipe before flashing and its best to flash amlogic image if you have one.
[Android Stick & Console AMLogic based Computers] kalehrl:
I tried to dump_to_aml.sh Android 6 image but it failed:

root@debian:/home/kalehrl/Templates/android/AmlogicKitchen# ./dump_to_aml.sh

.....................
Amlogic Dumper
.....................
Unpacking system
Repacking system
Repacking boot
Repacking recovery
Repacking logo
Enter a name for aml package:
ott
[ERR]f(AmlImagePack.cpp)L1312:Open pack image out/ott.img failed
Image pack FAILED
.....................
Done.

I can send you my TWRP backup of the original iamge to try if you have time.
[Android Stick & Console AMLogic based Computers] althafvly:
dump to aml script isn't ready yet. Im still testing it. I will check on free time. This error is because script isn't able to create ott.img. Try different name or close any apps which using that ott.img file.
[Android Stick & Console AMLogic based Computers] kalehrl:
I tried on a Linux system because the script isn't available as a .bat script for Windows. Therefore, no programs can be using it at the same time.
[Android Stick & Console AMLogic based Computers] althafvly:
New changes

- Added support to generate aml image from dump

- Fixed size issues with super image packing

Note: i have only test this in some firmware/device. report if theres any issues.
[Android Stick & Console AMLogic based Computers] shockwave007:
How do I repack it because while repacking the file size is reduced to almost 200-300MB even though I just replaced remote file?
[Android Stick & Console AMLogic based Computers] oldman20:
what's locate of remote file mapping?
[Android Stick & Console AMLogic based Computers] leon_733:
I am trying to backup the stock rom on my device with dump.sh so I can restore it later with Burn Tool if I break something. It asks me for the size of dtb and bootloader in bytes. Can someone please help me figure out how to get these numbers?
[Android Stick & Console AMLogic based Computers] kalehrl:
Just copy the default number offered, paste and press Enter.
[Android Stick & Console AMLogic based Computers] leon_733:
Now I tried that, but it still gives me an error relating to .dts files in the input directory. My device is a H96 Max X3 with the S905X3 chip. The script created these files:

dtb\single.dts

dump\bootloader.img

dump\dtb.img

I tried giving these names to the script, but nothing works. Is it asking for a file path on the device
[Android Stick & Console AMLogic based Computers] kalehrl:
Basically, the script reads the partitions from the dts file and then dumps them in the folder. You shouldn't have to change anything.
[Android Stick & Console AMLogic based Computers] leon_733:
It only extracted the partitions I mentioned before. It gives me a long list of warnings relating to dtb/single.dts then it asks for a dts file and says "can't find the file" to whatever I type in. I even ran the script with sudo to make sure it wasn't a permissions problem, but that didn't fix anything.

Here is what I get:

Input a dts name for dump :

dtb/single.dts

Can't find the file

The rest of the output is attached on my previous post.
[Android Stick & Console AMLogic based Computers] kalehrl:
Maybe your dts file is encrypted. Try to open it with a word editor. If you get text which doesn't make sense, then it's encrypted and you can't make a backup.
[Android Stick & Console AMLogic based Computers] leon_733:
At least some of it looks readable. Well I feel dumb now, I was only supposed to type "single" not single.dts or anything else. That made the img file. Unfortunately Usb Burning Tool gives me the error: "create workflow xml file failed" and won't flash that img file.
[Android Stick & Console AMLogic based Computers] kalehrl:
You need to use appropriate USB.DDR file and some other files from the ROM which can be flashed to your box. But there are no guarantees that it will actually work.
[Android Stick & Console AMLogic based Computers] oldman20:
Is it can create a flashable zip for custom recovery with sign for using with stock recovery, or smt like that?
[Android Stick & Console AMLogic based Computers] kalehrl:
There is option for creating fota zip.
[Android Stick & Console AMLogic based Computers] althafvly:
New changes

- Added support to unpack/pack rockchip firmware images.

- Some minor fixes to scripts

Note: i have only test this in some firmware/device. report if theres any issues.
[Android Stick & Console AMLogic based Computers] shockwave007:
Vendor/etc
[Android Stick & Console AMLogic based Computers] qiang111jx:
Thank you for the tool you provided. I used your tool to unzip my android 11 package, but it was not successful. Can you support it?

Download：https://mega.nz/file/jiY0wLJD#4EhVCEM0ykJaCF5L1oUzSMLDNqIQvHrleY6MG_AIxWw
[Android Stick & Console AMLogic based Computers] brunom80:
First of all, Thank you for your tool/time/effort. :)

I Managed to unpack, and repack simple things like adding a app and changing some vendor files.

Had to use Vortex since python led me to some errors extracting system.PARTITION (LVL2)

.....................

1 - vortex

2 - python

.....................

Enter a number :2

.....Extraction from odm.img to odm

.....Done! All extraction in odm

1 file(s) moved.

.....Extraction from product.PARTITION to product

.....Done! All extraction in product

1 file(s) moved.

.....Extraction from vendor.PARTITION to vendor

.....Done! All extraction in vendor

1 file(s) moved.

.....Extraction from system.PARTITION to system

Traceback (most recent call last):

File "D:\Rom mix\AmlogicKitchen-master\bin\common\imgextractor.py", line 795, in <module>

Extractor().main(

File "D:\Rom mix\AmlogicKitchen-master\bin\common\imgextractor.py", line 788, in main

self.__ext4extractor()

File "D:\Rom mix\AmlogicKitchen-master\bin\common\imgextractor.py", line 596, in __ext4extractor

scan_dir(root)

File "D:\Rom mix\AmlogicKitchen-master\bin\common\imgextractor.py", line 282, in scan_dir

f = open(spaces_file, 'tw',

FileNotFoundError: [Errno 2] No such file or directory: 'level2\\system\\config\\system_space.txt'

The structure is the same, and the fs_config updated.

In the end I have no errors, i burn the image with usb burn tool, and image stays on loading screen forever.

The Rom is ATV9 Aidan's Rom on S905X3.

Meanwhile, just so I could figure out i didn´t messed up, i unpacked and repacked the same rom with no moddings

It ended up staying quite smaller ~200Mb and still wouldn´t boot to OS

Here´s my log in attach, any kind sould would give me a hand on this?

Tks guys
[Android Stick & Console AMLogic based Computers] kalehrl:
Aidan's ROM is Google certified and I had no luck repacking any such ROMs. Maybe the certification includes some protections which prevent ROM repacking.
[Android Stick & Console AMLogic based Computers] brunom80:
It might just be that, but at least it should boot to OS, even if it would loose certification.

I really have no clue
[Android Stick & Console AMLogic based Computers] ragarcia87:
It works well... Thank you... There are several other tools to use that also work well but this is something that is quick, easy, and to the point. I appreciate it..
[Android Stick & Console AMLogic based Computers] tirta.agung:
Can this tool be used for amlogic android 11 roms? I've tried to unpack and repack several slimbox rom using your tool, but i always stuck on bootloop. Even when only doing the unpack and repack features without editing the rom's files, I got the same result.
[Android Stick & Console AMLogic based Computers] Bilel engineer:
I think the problem with android 11 and 10 or above is that , they use verified boot, and implemented dynamic partitioning.

you can check the fstab.amlogic file , if you find a flag of avb=vbmeta. so the system and other partitions are protected against any modification, and if you modified the original image, the device will not boot properly, so i think they need to modify the vbmeta partition when modifying any partitions protected , otherwise they could disable the verification process in the fstab.amlogic file.

But if you modify the flashed image ,there is rollback feature that can reset the partitions and files to factory reset when detecting any modification and boot normaly... It's just a guess , i could be wrong.
[Android Stick & Console AMLogic based Computers] Luuktoo:
I have successfully extracted the image in all 3 levels and i want to change the bootlogo in to our own logo. This because we use the hardware for another application. When i open the ''logo'' folder i get these files shown in the attached file. I already changed the bootanimation.zip but still the same boot logo appears. Is there a way to change these files in the logo folder? Or there another way of doing this?
[Android Stick & Console AMLogic based Computers] kalehrl:
You need to change bootup file. It's actually gzip compressed bmp image. The image must be in a specific format. Then you repack level 3.
[Android Stick & Console AMLogic based Computers] Luuktoo:
These are the files i can acces. Do you know what i need to change?
[Android Stick & Console AMLogic based Computers] kalehrl:
You take an image and save it as bmp, rgb565le.

You can use online converter https://online-converting.com/image/convert2bmp/

Once you get the bmp image, use 7zip to compress it using gzip archive format.

Rename the compressed file to bootup without any extension and replace the one in your logo folder and repack.
[Android Stick & Console AMLogic based Computers] bojko91:
Hello,

Can anyone help with this problem. I have several X96miniplus boxes, but someone flash dem with checked on overwrite key. Now all of them is with the same MAC address.

I`ve try to unpack original img and add in level one keys.conf and pack again, but nothing going on.

After try to unpack the img with keys.conf this file no more exist in it....

=====

SOLVED: Just open image.cfg and put the new file there!
[Android Stick & Console AMLogic based Computers] Luuktoo:
Thank you for the reply! I've converted the jpeg to Color: 16(5:6:5, RGB Hi Color) and inserted it into the folder the way you described. Is there something that needs to be changed like size? Right now im getting a black screen and no logo.
[Android Stick & Console AMLogic based Computers] kalehrl:
Attach here your bootup file. Normally, size should not be changed.
[Android Stick & Console AMLogic based Computers] Luuktoo:
I attached the old and new files here. i've also changed all the files to the new logo but still im getting an animation.
[Android Stick & Console AMLogic based Computers] Luuktoo:
https://xdaforums.com/t/boot-animation-wont-change.3681836/

Here they are talking about changing the file in the ''oem'' folder but mine is empty.
[Android Stick & Console AMLogic based Computers] kalehrl:
Animation is probably set in vendor.prop
[Android Stick & Console AMLogic based Computers] Luuktoo:
In level2 --> vendor --> etc i can find a bootvideo file and a bootvideo.zip.

The bootvideo.zip contains volume.png files of a volume bar.

Is the Bootvideo file a mp4 file also compressed in 7zip or?

In level2 --> vendor --> build.prop these are the settings attached.
[Android Stick & Console AMLogic based Computers] kalehrl:
The animation you see later in the boot process is from /system/media zip file. Have a look there
[Android Stick & Console AMLogic based Computers] Luuktoo:
Yes i have changed the bootanimation.zip for a random one found on the internet to test. But still the same animation pops up. I think its disabled?
[Android Stick & Console AMLogic based Computers] kalehrl:
I see several problems with your file.

I think the dimensions must not exceed full HD and your file is 4167x4167 and it's not named bootup when unpacked. Try my file which I resized to 1920x1920 and named it appropriately. Unzip first.
[Android Stick & Console AMLogic based Computers] Luuktoo:
Thank you! Finally it worked! Could you change the file so it will be in the middle and be al bit smaller?

We also want to bootup our .apk when booting the system automatically. I've tried all kind of app's but then the .apk will start like 1 minute after booting. Is some file in the root i can modify to change a bootup app?
[Android Stick & Console AMLogic based Computers] kalehrl:
I think the problem is that your logo is square and not wide-screen, 16:9. If you have 1280x720 or 1920x1080 logo it will probably be centered. The app probably checks if Internet is available first before launching hence the delay
[Android Stick & Console AMLogic based Computers] Luuktoo:
I've attached the changed logo with the right ratio. Hopefully you can convert it to the bootup file.

You're very helpfull thanks allot!
[Android Stick & Console AMLogic based Computers] kalehrl:
Try it:
[Android Stick & Console AMLogic based Computers] Luuktoo:
It works! Thanks!
[Android Stick & Console AMLogic based Computers] fahadssuet1995:
Greetings, I am thankful for this tool you made. I am trying to remove apps from a Slimbox Rom but even after deleting the apks and their folders form system/priv-apps the apps are coming back again and again. what should I do? any solution?

Thanks
[Android Stick & Console AMLogic based Computers] kalehrl:
After deletion, you need to repack level 2 and then level 1. I repack slimbox ROMs and don't have such problems.
[Android Stick & Console AMLogic based Computers] fahadssuet1995:
Thank you for you response.

I also have no issues in deleting apks from rom but only one edition of slimbox rom is doing this. in this rom, apks come back again and again after deleting even with adb

can you guide me what should I do?
[Android Stick & Console AMLogic based Computers] kalehrl:
Which apps?
[Android Stick & Console AMLogic based Computers] fahadssuet1995:
there are several apps. perhaps, all of them are bloatware. How can I share the img file with you?
[Android Stick & Console AMLogic based Computers] kalehrl:
Have a look at /system/system/preinstall folder after you unpack the ROM. Apps in folders there are automatically installed during the first boot. You need to erase them from there if you don't want them.
[Android Stick & Console AMLogic based Computers] tavidun:
Hello everyone, trying to tweak an AidanRom to include my remote control strings. When trying to unpack level 1, get a funny error:

.....................

Amlogic Kitchen

.....................

Select level 1,2,3 or q/Q to exit: 1

.....................

Amlogic Kitchen

.....................

Files in input dir (*.img)

1 - recovery

.....................

Enter a file name :1

Can't find the file

Press any key to continue . . .

So it sees the IMG file, but when selecting it...

Am I doing something wrong? Running on a Win11 machine. Trying to unpack using the BAT files. Don't know how to use Linux commands under Windows.

[LATER EDIT] - installed Ubuntu under Win11 and tried to run the script files via command line. Same error.

user@Ryzen:/mnt/g/Amlogic/AmlogicKitchen$ sh unpack.sh

.....................

Amlogic Kitchen

.....................

.....................

Select level 1,2,3 or q/Q to exit:

1

.....................

Amlogic Kitchen

.....................

unpack.sh: 30: rename: not found

Files in input dir (*.img)

1 - recovery

.....................

Enter a file name :

1

Can't find the file
[Android Stick & Console AMLogic based Computers] fahadssuet1995:
You have to type the name of the file "recovery" and it will work
[Android Stick & Console AMLogic based Computers] tavidun:
Yep, I am that blonde...Unpacked everything, now let's see if I can manage to repack...
[Android Stick & Console AMLogic based Computers] tun9manu:
I tried dump to aml, but it failed USB.DDR is missing

How can I solve it?
[Android Stick & Console AMLogic based Computers] kalehrl:
The answer is in the message you quoted.
[Android Stick & Console AMLogic based Computers] tun9elty:
I'm sorry. I'm a newbie. What's USB.DDR? Where can I get it?
[Android Stick & Console AMLogic based Computers] kalehrl:
By unpacking image to level1.
[Android Stick & Console AMLogic based Computers] althafvly:
Updated support of allwinner/Rockchip image on OP. Also linked flash tools for linux.
[Android Stick & Console AMLogic based Computers] adamvietnam:
Hi,

Firstly, thanks for all the hard work putting together this tool.

I'm trying to unpack an X98 Android 11 tvbox image on Ubuntu 20.04 so we can change the branding.

I can unpack to level 1 (and level 2) fine but am running into problems unpacking to level 3.

Attached is the full output but the concerning errors I'm seeing are:

1. ERROR: There are some data after the end of the payload data : aml_dtb

Which I believe is a 7-Zip / 7za error. Is this anything to be concerned about.

2. Invalid AML DTB header.

Specifically,

DTB Version: 2 entries: 3

Found header: s4-s905w2-ap201

offset: 2048 size: 68140

Found header: s4-s905w2-ap201-2g

offset: 71680 size: 71890

Found header: s4-s905w2-ap201-4g

offset: 145408 size: 71890

Invalid AML DTB header

Is this an error or just a warning that can be ignored?

3. Lots of "node has a reg or ranges property, but no unit name" warnings e.g.

level3/devtree/s4-s905w2-ap201-2g.dts: Warning (unit_address_vs_reg): /timer_bc: node has a reg or ranges property, but no unit name

I've had experience unpacking / packing other images with other tools but I'm a bit confused to know what I'm seeing here.

My specific questions are

a) would the above errors stop all the files being unpack

b) how can I validate that everything unpacked correctly

c) I saw someone on this thread saying Android 11 images could be a problem. Do you think this is a problem

I've attached outputs from ./unpack.sh and also the resultant level 3 file trees in concise and detailed format.

Any advice or guidance gratefully received.

Many Thanks,

Adam
[Android Stick & Console AMLogic based Computers] kalehrl:
a) no

b) by flashing the image and seeing if it works

c) Android 11 should work fine in Linux environment. Windows tools have problems with Android 11 images. At least that's my experience
[Android Stick & Console AMLogic based Computers] adamvietnam:
Thanks for the response,

I need to make changes to both level 2 and level 3 files.

Specifically, I need to remove a couple of .apks from level 2 and change the boot logo on level 3

So I use unpack.sh to unpack level 1, then level 2, then level 3 - this all works fine albeit with warnings as described above.

When I'm repacking the image for flashing, is the correct procedure to:

pack.sh level 3, then level 2, then level 1

Or is there a better way?
[Android Stick & Console AMLogic based Computers] kalehrl:
That's how it's done.
[Android Stick & Console AMLogic based Computers] adamvietnam:
Brilliant - thank you!
[Android Stick & Console AMLogic based Computers] adamvietnam:
I'm trying to create a .zip file which I can flash in recovery mode from the TV box sd card.

I take my .img file and ./unpack.sh to level 1

I then run ./pack_level1_fota.sh and the script instanlty stops with message "super image isn't supported yet"

Any clues on what this means and how to get around it?

I'm running ubunu 20.04
[Android Stick & Console AMLogic based Computers] mAtvXk:
Creating zip files from Android 11 images is not possible.
[Android Stick & Console AMLogic based Computers] adamvietnam:
Understood - thanks for the clarification
[Android Stick & Console AMLogic based Computers] sothfr:
Did you find a solution? I'm currently trying to do the same thing and I have the same problem.
[Android Stick & Console AMLogic based Computers] sothfr:
When I unpack to only level 1, file size stays the same after repacking. When I unpack level 2 it says this:

FileNotFoundError: [Errno 2] No such file or directory: 'level2\\system\\config\\system_space.txt'

After packing level 2 it says:

Created filesystem with 989/14400 inodes and 38119/57600 blocks

level2\config\system_file_contexts: No such file or directory

Does this have to do with any of this? I'm trying to replace remote files from Aidan ROM V9 S905W ATV9.
[Android Stick & Console AMLogic based Computers] cuynu:
I cant build LiveSuit on linux

this is log

Cloning into 'sunxi-livesuite'...
remote: Enumerating objects: 64, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 64 (delta 0), reused 0 (delta 0), pack-reused 63
Receiving objects: 100% (64/64), 13.58 MiB | 2.91 MiB/s, done.
Resolving deltas: 100% (23/23), done.

make -C /lib/modules/6.2.0-31-generic/build SUBDIRS=/home/cuynu/Desktop/sunxi-livesuite/awusb modules
make[1]: Entering directory '/usr/src/linux-headers-6.2.0-31-generic'
SYNC include/config/auto.conf.cmd
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/menu.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTCC scripts/kconfig/util.o
HOSTLD scripts/kconfig/conf
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop.
make[1]: *** [arch/x86/Makefile:248: archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-31-generic'
make: *** [Makefile:6: default] Error 2
make: *** No rule to make target 'install'. Stop.
modprobe: FATAL: Module awusb not found in directory /lib/modules/6.2.0-31-generic
[Android Stick & Console AMLogic based Computers] mobifixit:
how did you solved this error ?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
No platform.conf

The tool cant flash a device with no board config

He needs a config for g12a based on his DTS

That can be found here - https://github.com/OpenAmlogic/amlo...rds/common/upgrade/upgrade-g12a/platform.conf

All board configs can be found here

GitHub - OpenAmlogic/amlogic-boards: Amlogic boards information

Amlogic boards information. Contribute to OpenAmlogic/amlogic-boards development by creating an account on GitHub.

github.com
[Google Pixel 6 Pro] roirraW "edor" ehT:
https://www.xda-developers.com/pixel-6-fingerprint-scanner-calibration-tool-failing/
[Vivo X70 Pro+] rnjsx100:
Hi there!

I am from India and having this phone from past 3 months, has any one rooted this phone? Is there any safe way to do it, I know if we root it warranty will be lost, but we can unroot it leter and get the warranty back.
[Vivo X70 Pro+] V0latyle:
This is a question, not a how to guide. Please change your thread tag to "Question".

As far as rooting the device, try the standard unlocking process - enable OEM Unlock in Developer Options, then use SDK Platform Tools to issue the unlock command to the device.