yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] BEL_ALEX:
I had some new problems with v5.2.0

#1 Steps:

1. Unpack fw

2. making changes

3. Rebuild

4. making changes

5. Rebuild

...

after n-times rebuilding tool can not pack fw completly

when tool says that "done", at output i get 29mb img file

restart isn't helps

#2 I made rebuild in v5.0.9

Later try to unpack in v5.2.0, but can't. Error: Failed to unpack the system. Operation will still contineu however modification involving an unpacked system will not be enabled.

log:

[CUSTOMIZATION_TOOL] : Unpacking G:\Devices\x96mini\X96mini_20180821_20180831_clean1_mod.img to level 2..
[CUSTOMIZATION_TOOL] : Rescursive delete "G:\Kitchen\AMLTools_v5.2.0\tmp"
[CUSTOMIZATION_TOOL] : LEVEL 1 ---------------------------------------
[CUSTOMIZATION_TOOL] : Splitting partitions from package..
[UNPACKER] : Unpacking upgrade package
[SHELL] : AmlImagePack -d "G:\Devices\x96mini\X96mini_20180821_20180831_clean1_mod.img" "tmp\level1"
[CUSTOMIZATION_TOOL] : LEVEL 2 ---------------------------------------
[CUSTOMIZATION_TOOL] : Attempting dtb unpack
[UNPACKER] : Unpacking DTB partition
[UNPACKER] : [BITSPLIT] : Splitting tmp\level1\_aml_dtb.PARTITION.tmp from 0 to 2047 with output to tmp\level2\dtb\aml_head
[UNPACKER] : [BITSPLIT] : Splitting tmp\level1\_aml_dtb.PARTITION.tmp from 2048 to 47103 with output to tmp\level2\dtb\1.dtb
[UNPACKER] : [BITSPLIT] : Splitting tmp\level1\_aml_dtb.PARTITION.tmp from 47104 to 92159 with output to tmp\level2\dtb\2.dtb
[SHELL] : dtc -I dtb -O dts -o "tmp\level2\dtb\dtb_1" "tmp\level2\dtb\1.dtb"
[SHELL] : dtc -I dtb -O dts -o "tmp\level2\dtb\dtb_2" "tmp\level2\dtb\2.dtb"
[UNPACKER] : Storing DTB lengths
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Attempting kernel unpack
[UNPACKER] : Unpacking kernel based partition
[SHELL] : unpackbootimg -i "tmp\level1\boot.PARTITION" -o "tmp\level2\boot"
[SHELL] : cmd.exe /C ""bin\gzip.exe" -dcv ..\ramdisk.gz | "bin\cpio.exe" -i"
[UNPACKER] : Success
[CUSTOMIZATION_TOOL] : Attempting recovery unpack
[UNPACKER] : Unpacking kernel based partition
[SHELL] : unpackbootimg -i "tmp\level1\recovery.PARTITION" -o "tmp\level2\recovery"
[SHELL] : cmd.exe /C ""bin\gzip.exe" -dcv ..\ramdisk.gz | "bin\cpio.exe" -i"
[UNPACKER] : Success
[UNPACKER] : Converting contexts
[SHELL] : sefcontext_decompile -o "tmp\level2\file_contexts" "tmp\level2\recovery\ramdisk\file_contexts.bin"
[CUSTOMIZATION_TOOL] : Atempting system unpack
[UNPACKER] : Unpacking system partition
[UNPACKER] : [ERROR] : Failed to unpack system, attempting sparse conversion and retrying
[UNPACKER] : Rescursive delete "G:\Kitchen\AMLTools_v5.2.0\tmp\level2\system"
[SHELL] : simg2img "tmp\level1\system.PARTITION" "tmp\level1\system.PARTITION.raw.img"
[SHELL] : ImgExtractor "tmp\level1\system.PARTITION.raw.img" "tmp\level2\system"
[UNPACKER] : [ERROR] : Failed to unpack system
[CUSTOMIZATION_TOOL] : AMLUnpacker: FAILED - unpack of system
[CUSTOMIZATION_TOOL] : Unpack complete

v5.1.5 - unpack finished without errors
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Can you link me to the img?
[Android Stick & Console AMLogic based Computers] BEL_ALEX:
unfortunately no. already deleted this project. if can reproduce again i upload it for you
[Android Stick & Console AMLogic based Computers] papla83:
Hi Ricky and thanks for your works.

I need to understand how to modify a rom working on my T95z plus 3gb 32Gb to put it on my tanix Tx9 pro 3gb 32gb (same processor).

I tried to flash directly but i have an error on burning process at the DDR step so i think i don't have the same DDR, i think on the T95z plus it's a DDR3 and on tanix it's a DDR4 ram.

I think i need to replace some files in my unworking rom with files from my working rom to have a success in burning.

Maybe with your app it's more easy but i don't know what files i can use.

Thanks.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
This is hard as it involves alot of debugging, you should be able to use all the apk files, jar files and libs from your base rom, aswell as the kernel etc.

eg. unpack your devices firmware, mod only system, and repack, you can however replace files in your system from files from the other rom
[Android Stick & Console AMLogic based Computers] thts:
The TX9 Pro is a LPDDR3 Board
[Android Stick & Console AMLogic based Computers] Shipwreck65:
Hey all. Finally got the time to flash my M96X... I thought there was a video or instructions here for using the AMLogic Flash Tool but I don't see it... I did a forum search and couldn't find it either... Does anyone know where I might find a video or tutorial on how to use it?

Thanks in advance..
[Android Stick & Console AMLogic based Computers] grilledcheesesandwich:
i have an issue with using the customization tool. i posted about the issue here http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/opensource-amlogic-tools-rebuild-revamped-customization-tool/725956-30-08-2018-amlogic-tools-v5-1-2-major-update?p=743927#post743927
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Yes, currently downloading the Firmware and looking to resolve ASAP
[Android Stick & Console AMLogic based Computers] grilledcheesesandwich:
Cool thanks.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Issue has been fixed, i will push 5.3.0 tonight
[Android Stick & Console AMLogic based Computers] grilledcheesesandwich:
[emoji106]
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Was a null raw image detection issue, all is fine now
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Seems all firmware issues are solved, i may add support for encrypted firmwares next version, you still will not be able to unpack passed level1 but its always good to know why a certain firmware is not unpacking.

Also im currently looking for a way to unpack the logo paartition
[Android Stick & Console AMLogic based Computers] achrafelbadaai:
Ethernet not working

i need help guys plz after unpacking and repacking a ROM everything work perfect except Ethernet

any idea plz

the Ethernet was working fine before unpacking

thank you
[Android Stick & Console AMLogic based Computers] andy__p:
Hi Ricky,

Any luck with this?

Just tried 5.2.0 with the same result.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Try 5.3.0, i just posted it with fixes to file contexts, its a possible it could have been the issue

V6.0.0 the recovery porting and CoolADB classes will be revised and re-written
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
5.3.1 going up, fixes the FC due to a small typo by me
[Android Stick & Console AMLogic based Computers] liu168tw:
The 905x ROM already has ROOT, and the package is repackaged, and the ROOT function will be invalid.

Moreover, the boot & recovery data has not been modified, and the ROOT function automatically fails after repackaging.

After the test, when repackaging, immediately copy the unmodified boot.PARTITION & recovery.PARTITION to the level1 folder. After the package is complete, the ROOT function is available.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Thanks for the feedback, its something as simple as adding su to the file contexts
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
UART Console API executable coming in next update, specifically for debugging and seriaal communication purposes
[Android Stick & Console AMLogic based Computers] thts:
The SU Problem is more deeply rooted than that, I have a TX92 that I repacked the firmware from a Level 2 unpack and without changing anything I added nothing and removed nothing Just create a amlogic burn image, Burned the repackaged rom from v5.3.1, This Rom is Rooted from the Get Go the option to turn it on and off is in the Settings. After burning the Repackaged ROM SU Worked but the Problem was with the system partition it stays READONLY no matter if you are root and want to remount the file system the System Refuses to mount that partition read write so there is something going on there.

Also GT1_709N0_3Demmc_20180718.img when trying to change anything in this rom it will not pack the system partition I end up with a 0 byte system.PARTITION file in the level 1 directory..

The GT1 Rom can be had at the location below

https://chinagadgetsreviews.com/?s=firmware

The TX92 rom you may have to get from Tanix even though I am pretty sure the Vorke Z6 is more or less the same firmware pre-rooted as the tx92 is.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Pretty sure this issue resides in all amlogic firmware and from time to time does allow remounting, other times does not.

Especially trying to work with ADB on these devices its quite problematic, im still yet to find the cause(i have multiple devices with this issue) but i assume it has something to do with the SU binary
[Android Stick & Console AMLogic based Computers] thts:
I am sticking to the system.PARTITION file has a problem, After looking into it further it seems the new system.PARTITION has a corrupt header even though you can burn the .img you recreate.

SU on the TX92 Works just not when it comes to remounting the system partition.

Any .img file created with 5.3.1 can not be unpacked bt the older 2.0.10 Customization Tool or the simg2 utilities.

simg2img system.PARTITION system.ext4

Invalid sparse file format at header magi

Failed to read sparse file
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
It could be the new make_ext4fs i included, if so can you test V5.2.0 and check the problem still resides?
[Android Stick & Console AMLogic based Computers] thts:
Everyone of the Version 5's Create the Same system.PARTITION , I had to go back to version 4.0.0 to create a system.partition that is workable

I tried 5.2.0 and 5.0.0 Both did the Same thing.
[Android Stick & Console AMLogic based Computers] BEL_ALEX:
small bug

v5.3.1

may be it reproduce in older versions

if i start amltools when rom is already unpacked, checkbox on bootvideo option is not checked, but in build.prop i set this option befor using gui (not maual)

[IMG="bug"]http://pichost.org/images/2018/09/14/2018-09-14_173251.png[/IMG]
[Android Stick & Console AMLogic based Computers] synthone:
X96 mini stuck on boot logo

Hello Guys!

I need your help. I'm trying to prepare a custom image for X96 mini using CustomizationTool from AMLTools 5.3.1 (by Ricky Divjakovski) repacking original X96 mini image to aml upgrade package and flashing using USB Burning Tool v2.1.6 (by Amlogic) - all operations are successfully finished but my X96 mini still stuck on X96 boot logo. I have created many images with some gentle changes like replaced boot logo or added custom apk but always I have the same results - device stuck on boot logo. When I'm flashing using original image everything goes fine - device booting correctly. I don't know what's going on and what I'm doing wrong. Please help me with this because I'm stuck like my device ;)

Thanks!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I think this is a tool issue, im gonna debug more today
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Confirmed, we have logo.PARTITION repacking.
[Android Stick & Console AMLogic based Computers] servo386:
Its been a little bit since I play around with Amlogic stuff, but I used to mess around alot with the s902 and the m8 box. I now own a smart projectort (the Xiaomi Laser UST) with an Amlogic T968. Anything I should know about it that might make it different to tinker with? I wanna try to extract the recovery img using your tool and see if I can successfully make a TWRP version and maybe get root.

If I'm understanding correctly, I gotta enable USB debugging on the machine itself and then I should be able to do ADB over IP using the tool? Thats it? no other bootloader mode or anything I have to go into to get that working?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Yes, probably bets to use my AMLogic flash tool, more stable
[Android Stick & Console AMLogic based Computers] venioni:
[MENTION=5105831]Ricky Divjakovski[/MENTION] Can you found a solution for Bricked Mi box 3s mdz 16-ab version ?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I have a bricked mibox, but unfortunately emmc is gone, if someone donates another i will fix
[Android Stick & Console AMLogic based Computers] venioni:
I have buy a usb uart 2109 can you tell me or send me instructions on how can i flashing with these tool my bricked mi box 3 and what program i need to do ?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
are you getting uart output?
[Android Stick & Console AMLogic based Computers] venioni:
My problem is that i dont know how can i use the uart on my mi box 3 and where i must connecting on the board the usb uart .
[Android Stick & Console AMLogic based Computers] synthone:
Hello [MENTION=5105831]Ricky Divjakovski[/MENTION],

Do you have any update on this? I will be thankful for help to solve this issue. Thanks.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I did find an issue in odd circumstances where building an ext4 filesystem returns success while the length of the image is 4b indicating it did not work, however this is a simple fix, so hopefully that resolves your issue

I would need the firmware to test
[Android Stick & Console AMLogic based Computers] synthone:
Link to the firmware has been sent via private message. Thanks
[Android Stick & Console AMLogic based Computers] derwoodbones:
When unpacking a rooted .img to add remove user apps then repacking to .img again why would root be lost ?
[Android Stick & Console AMLogic based Computers] ccheney:
I saw that you mentioned it is open source and that the source is available but didn't see a link to it anywhere.

Where can it be downloaded from, github, etc?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Source has been closed for a while
[Android Stick & Console AMLogic based Computers] ubihexor12345:
Keyboard and Internet issues

Whenever i try to flash your rom after successfully flashing it virtual keyboard doesnt open up whenever trying to write something and second thing even when the wifi is connected internet doesnt works please help me
[Android Stick & Console AMLogic based Computers] shinobisoft:
Please refrain from quoting large posts, like the OP. It makes it difficult to go thru posts... If you must quote a large post, please use

HIDE

tags.
[Android Stick & Console AMLogic based Computers] ubihexor12345:
Sure sir but can you help me with my problem?
[Android Stick & Console AMLogic based Computers] BEL_ALEX:
If i correctly understand your problem with keyboard, It can be if you connect mouse/keyboard by USB.

So, you can manually enable it. When you click on any text input, click keyboard indicator in right down corner and enable it

OR. Just go to settings-> languages -> physical keyboard ->

Another method:

Use adb and send command

adb shell settings put secure show_ime_with_hard_keyboard 1

Or you can add this command in any script that starts with first boot.
[Android Stick & Console AMLogic based Computers] ubihexor12345:
Yeah that i figured out myself and fixed it but the internet isn't working on wifi. I'm compiling the rom on windows 10 have tried most of the releases of this tool nothing worked for me
[Android Stick & Console AMLogic based Computers] abdelopice:
Hi Ricky

thank yo for the awesome tools and for yor time/effort

I've actually an issue with my Nexbox A95x, I've installed the atvXexperiance Rom which was good so far except my remote, that works only to power ON or to wake-up, and because the ROM is not rooted I can't replace the remote.conf in system/etc, So I decided to unpack the Rom and replace the remote.cong and re-pack, it was ok so far with your tool, :),,,, the issue I have now is that i can't bypass the boot logo after flashing with the new repacked ROM, I have restarted many times and waiting for 4 hours, but no luck, I've returned to the orignal atvX

do you thinks I missed anything while I was repackaging?

also the Size after I repackaged it become bigger by 16mb

thank you for your help
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Can you PM me to test a new version?
[Android Stick & Console AMLogic based Computers] ccheney:
Might be good to remove the headline on the first post then.

"Decided to make a few of my own. More stable, more efficient and OPEN SOURCE!"
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Maintaining the source of these tools i have had no time, other than that V5.5.0 it will be updated :)
[Android Stick & Console AMLogic based Computers] Ico747:
Same in 5.3.1. how to work around this error
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Working towards fixing this
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Attention, ill be hosting AMLogics funeral the day after i release V5.5.0, there will be absolutely no use for the old customization tool after my release!
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Damn boi! I'm gonna attend the funeral. RIP AMLO****
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Its funeral day!!!!
[Android Stick & Console AMLogic based Computers] drakulaboy:
gonna light a candle and pray for Amlogic :D Thank you [MENTION=5105831]Ricky Divjakovski[/MENTION] !
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Any problems with anything let me know, within 2 weeks this project will be completed!
[Android Stick & Console AMLogic based Computers] wellaflex:
Nice job brother

keep going

Maybe in future i need your help

cheers
[Android Stick & Console AMLogic based Computers] laser212:
Hi Ricky. im getting failed to unpack kernell error and v5.5 crashes on fresh win 7 instalation . any ideas why ?

---------- Post added at 12:34 AM ---------- Previous post was at 12:31 AM ----------

V4 is working perfect.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Pm me a log, make sure antivirus is not conflicting with anything
[Android Stick & Console AMLogic based Computers] ErbDroid:
Hey [MENTION=5105831]Ricky Divjakovski[/MENTION] !

It has been a while since ive posted or contributed but i have been very busy both in real life, and developing my rom and apps.

I would like to say thank you again and report.....

5.3 (previous release) unpacked my firmware perfect,

Its only problem was making a flashable zip would crash all the time, but i did manage to make a USB tool .img successfully! .... although it didnt burn with the USB tool successfully in the end, we are close!!!!

Any ways as the other fella above said ^^^

This build crashes when unpacking the kernel now.

Likewise, i am also on windows 7 too, 32 bit.

I shall find the logs and send them over to you!

I would he willing to test a beta for you if you like.

Hope all is well your end friend!? Last time i was here you had a little time away due to family, hope all is better!

Thanks again.
[Android Stick & Console AMLogic based Computers] ErbDroid:
thank you sir !

Appreciated as always!
[Android Stick & Console AMLogic based Computers] cohan1219:
Hi I'm having problems trying to port twrp. I can get amlogic flash tool to backup the recovery fine and from the porting twrp tab it will also pull recovery but when it gets to the patching recovery part it sticks at 40%. I have tried with the pull recovery from device and from selecting local recovery( using the backup pulled from device). I have a t95z 2/16 that I'm trying to get twrp on.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Im not at home until tommorow, are these only occuring on windows 7? If so its probably incompatible binaries
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Attention: next version will have an authentication system, will be computer specific so in order to use the tool, at first launch you will have a codr to copy and paste, you will then need to fill out a quick online form and agree to the conditions, it will still be a free software.
[Android Stick & Console AMLogic based Computers] thts:
I am Running Win 7 Pro on a ZBook G2 and have no problem with the kernel or recovery and I use the "USB Burn Tool" after creating a Amlogic img file.

The system.PARTITION file has not changed from version 5.0.0, Still the Same NULL Header!

The Problem I still have is that the system.PARTITION is not Proper after burning the img to a S912 Tv Box it is Flaky, Example Virtual Keyboard don't work, Random Reboots, System Partition can not be turned writable, SU sometimes working sometimes not.

Depending on the Firmware I start with will depend the Problems with the Burn.

But I only have S905X and S912 TV Boxes so that is all that I can test it with.

And it seems most of the S912 Boxes adb does not work on, It will not Connect.
[Android Stick & Console AMLogic based Computers] cohan1219:
The problem I'm having with porting twrp has happened on 1 win 7 pc and also on 2 win 10 pc's
[Android Stick & Console AMLogic based Computers] abdelopice:
were you abel to fix the bootlogo, on this version? still not able to bypass the boot logo after a successful flash with USB burn
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Make sure defended or antivirus doesnt block anything
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Well yes.. all should be in working order?
[Android Stick & Console AMLogic based Computers] ubihexor12345:
Nothing works related to internet when i customize x96 mini s905w firmware with this tool. I've tried opening chrome ,playstore and many other things nothing loads. Can someone help me out?
[Android Stick & Console AMLogic based Computers] Tonian1878:
Am curious to know why?
[Android Stick & Console AMLogic based Computers] ubihexor12345:
I think developer should change the name of it from amlogic to something else as it clearly doesnt do the job for s905w
[Android Stick & Console AMLogic based Computers] cnjax:
Your gratitude is outstanding... Not
[Android Stick & Console AMLogic based Computers] ubihexor12345:
Well he doesn't even care to reply what else do you expect i've been asking it from previous 3 weeks
[Android Stick & Console AMLogic based Computers] cnjax:
The dev owes you nothing, and may be busy, you need to show some respect and patiently wait for a response
[Android Stick & Console AMLogic based Computers] synthone:
[MENTION=5105831]Ricky Divjakovski[/MENTION] thanks for latest upgrade AMLogic Tools 5.5.0 which totally bricked my X96 mini :D

Does anyone know any more certain way how to unpack image from X96 mini replacing boot logo and animation?
[Android Stick & Console AMLogic based Computers] ErbDroid:
[MENTION=2481977]Ricky D[/MENTION]ivkovski after your suggestion, i switched from windows 7 to windows 10 to try again, it no longer gets stuck at unpacking kernel/ramdisk stage, it fully unpacks now, problem is now repacking to zip i get errors, others have managed to use windows 7 so now thinking it may be using 64 bit binaries for some of your app??? i am on a 32 bit system, hope this helps mate.

i will post my error logs shortly mate, i am away from the PC currently, just food for thought.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Yeah got something to do with signing, ive also found some binaries incompatible with windows 7, i cannot fix that so it will not be patched, maybe far in the future
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Hey, ive attempted bricking many devices, flashed multiple bootloaders, pulled the plug at crucial times, flash complete firmware for a different chipset and still ive been able to recover, work case use the short pin method :)

This tool doesnt have the potential to brick a device unless you personally edit the DTB and mess something up, and still it can be recovered