yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Ive already got feedback from another tester, V5.0.0 is getting its final compile right now
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
V5.0.0 is avalable for download!
[Android Stick & Console AMLogic based Computers] drakulaboy:
hooray, Ricky you are the best!

---------- Post added at 23:48 ---------- Previous post was at 23:18 ----------

btw, [MENTION=5105831]Ricky Divjakovski[/MENTION] , in previous versions there was a button with add the init.d script, is there a reason that is not in V5?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
yes, the realisation that not all kernels run the preinstall script on boot, so i removed it for now
[Android Stick & Console AMLogic based Computers] jeffersonfarofa:
Great tool. How to solve this error please?

Nome do Evento de Problema:	CLR20r3

Assinatura do Problema 01:	CustomizationTool.exe

Assinatura do Problema 02:	1.0.0.0

Assinatura do Problema 03:	5b8042cf

Assinatura do Problema 04:	System

Assinatura do Problema 05:	4.7.3151.0

Assinatura do Problema 06:	5b44403a

Assinatura do Problema 07:	2fc8

Assinatura do Problema 08:	3e8

Assinatura do Problema 09:	System.ComponentModel.Win32

Versão do sistema operacional:	6.1.7601.2.1.0.256.1

Identificação da Localidade:	1046

Informações Adicionais 1:	0a9e

Informações Adicionais 2:	0a9e372d3b4ad19135b953a78882e789

Informações Adicionais 3:	0a9e

Informações Adicionais 4:	0a9e372d3b4ad19135b953a78882e789
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Whats the issue? sorry i cannot understand
[Android Stick & Console AMLogic based Computers] thts:
I have only had one problem with version 5 so far and that is the sefcontext_decompiler.exe seems to have a Virus or so says my Anti Virus Software, Found another copy from a URTool_Master copied the one over from that .zip file and it is working.
[Android Stick & Console AMLogic based Computers] drakulaboy:
if you will read first post from this topic it's written with BIG LETTERS: [IMPORTANT] BE SURE WINDOWS DEFENDER AND ANTIVIRUS DO NOT INTERFERE WITH THE PROGRAMS AND ALL ITS CONTENT!!!
[Android Stick & Console AMLogic based Computers] thts:
I did read that somewhere but it was never a Problem with Version 4 and to run Windows Without Anti-Virus and Malware protection is not a Good thing for Windows since it seems that OS attracts that kinda Stuff.

How about a Linux Version????

But OK if that is the way it is I can deal with it, But after replacing the Binary with one that scanned fine it all Works as it should or so it seems with my Virus and Malware Protection enabled.

Besides with Virus Protection running you have the added value of finding those Infected apk's when you unpack level 2 line "app-debug.apk" that is in many S912 Firmware.

I have been pulling a lot of Infected files from github as of late.

Just thought everyone would like the info or Not.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Just because an antivirus classes it as viral doesnt mean it is, anything that can modify kernels is considered a virus, anything that takes full advantage of root/administrator access is considered a virus, an unsigned driver is considered a virus, we are modding a whole OS here, while most functions are code, string and file manipulation, the process of unpacking the kernel is much more than that, also the context converter that i use is the one from that repo, but an older version because the newer one conflicted with cygwin libraries(i dont remember what)

Thats also a reason why there is 2 cygwin1 libraries in the binary folder
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
But the good news is, we finally have a stable tool we can look forward to, AMLogic may drop support but until they stop maintaining their source i will not!
[Android Stick & Console AMLogic based Computers] whiteak:
Just exclude the Tools Folder after extracting, no need to turn off your Anti-virus, just exclude the folders needed to be excluded.
[Android Stick & Console AMLogic based Computers] zusatzmetall:
Great work @ Ricky
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
small update coming out in a few hours to accommodate minor bugs
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
5.0.8 is out
[Android Stick & Console AMLogic based Computers] drakulaboy:
can't run AMLogicFlashTool.exe and CustomizationTool.exe

[IMG="error"]https://i.imgur.com/8NtQPnn.png[/IMG]

clean Windows 10 x64

Defender is disabled at all, i don't use any antivirus at all
[Android Stick & Console AMLogic based Computers] thts:
Unpacked the new zip ran the Customizationtool but it crashes, I have tracked it down to AmlUnpacker2.dll seems to be crashing my system which is Windows 7 Pro 64bit running on a HP EliteBook 8570W with 32gb ram.
[Android Stick & Console AMLogic based Computers] Alex_eRRoR:
faced a similar problem. v5 looks working. v5.0.8 does not start, without any errors
[Android Stick & Console AMLogic based Computers] AccaOC:
AMLogicFlashTool won't start, closes without errors

DEBUG INFO -----------------------------------------------------------------------
Windows name: Microsoft Windows 10 Pro
x64 Architecture: True
PC Architecture: x86
Path of the program: F:\Android box\tools\AMLogicTools 5.0.8\
----------------------------------------------------------------------------------

[UNPACKER] : Performing dynamic link library switch(cygwin1.dll)

and CustomizationTool, same thing.

DEBUG INFO -----------------------------------------------------------------------
Windows name: Microsoft Windows 10 Pro
x64 Architecture: True
PC Architecture: AMD64
Path of the program: F:\Android box\tools\AMLogicTools 5.0.8\
----------------------------------------------------------------------------------

[UNPACKER] : Performing dynamic link library switch(cygwin1.dll)
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
issue fixed and uploading now
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
5.0.9 is up, enjoy

If anyone finds any bugs please PM straight away with the issue so i can resolve it.

Also for wallpaper support, simply send me the following

Path to launcher APK : /system/app/myLauncher/myLauncher.apk

The stock wallpaper location inside the apk : res/drawable-hdpi/bg.png

The device we are adding support for : H96 Pro
[Android Stick & Console AMLogic based Computers] laser212:
Bug in 5.0.9 when i go to change the background in the tx3 stock rom. i get "Could not find part of the path C:\users\laser\desktop\AMLogicTools\level3\wallpaper\res"
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Thanks for reporting, will fix and upload again
[Android Stick & Console AMLogic based Computers] dhiet75:
After using v5.0 & v5.9 to unpack, repack to img file & flashing it using usb burning rom,.. my system partition always show in full size, i check it with DiskInfo.apk after flashing,... Before it i using v4 everything is fine. I use TX3 mini..
[Android Stick & Console AMLogic based Computers] Shipwreck65:
Been trying to use the BurnCardMaker to make an SD card to recover my M96X Plus box with. I tried with several SD cards and several different img files but for some reason the process would never finish. I kept getting to the point seen in the screen cap attached here and it would just sit there. Then when I would click in the app window I would get the "not responding" message as also seen in the the screen cap. I tried rebooting the box with the pin in the AV port reset method with one of the cards and I did get the green android dude on the screen, but he had a red X on him and nothing happened. Then I tried with an older firmware img file, started the reset and actually saw the "beginning upgrade" come on the screen. But then the screen went blank and I got my TVs message saying "Searching For Signal" and then "No Signal" as if the HDMI cable was unplugged... I tried another reset with a recovery.img file to get into TWRP but still get the no signal on the TV as if there's no HDMI plugged in, even though it is. The HDMI cable is good as I tried it on my WDTV Live box and it works fine....

Did I brick the M96X Plus? Is there a way to fix this? Any help at all is greatly appreciated.....
[Android Stick & Console AMLogic based Computers] andy__p:
Hi Ricky

I'm trying to flash recovery onto an OTT TV Box A95X Pro (S905W), and just like version 4 all I get is "Failed to send file". Nothing appearing in the log.

Not sure what I'm doing wrong. It does indicate Connected after entering the IP.

Any ideas?

Thanks.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Seems the firmware may be incompatible with the device, have you tried flashing with usb burning tool?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
ill take another look today and get back to you

the API is quite hard to work with, its far from mature but its almost there
[Android Stick & Console AMLogic based Computers] Shipwreck65:
Thanks for the reply Ricky. Two of the firmware versions I am using (s912d41.M96X_PLUS_2G(16)_HS2734A_1000M_7.1.2018.04.04.11.09 and M96X_PLUS_2G(16)_HS2734A_1000M_7.1.2018.06.22.10.35) I downloaded from Freaktabs in an M96X Plus firmware thread. Several people who downloaded them and confirmed they are the correct firmware. However, the img I used when I got the "no signal" message was s912d41.M96X_PLUS_2G(16)_HS2734A_1000M_7.1.2018.01.03.14.09 which I downloaded from a different thread at Freaktabs. I was checking there this morning and now see that someone discovered that this last one I mention is actually for the S905 and not the S912.... So I believe that may be the issue....

I haven't tried the USB Burning Tool yet because I don't have a male to male USB cord, I will probably pick one up this weekend. It looks like I'm going to have to cross two pins on the NAND chip now though to get it to flash no matter which method I use.... I'm wondering if anyone could look at the photo of the board I attached here and might know which is the NAND chip and which two pins I need to cross.... Much thanks in advance.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
ill revise the proram + method of flashing and let you know
[Android Stick & Console AMLogic based Computers] Shipwreck65:
Wow!! Thanks a million Ricky!! For those who may need/want to know, I found the NAND chip. It's a samsung klmag2ge2a-a001. I attached pic of the chip itself on the board and the underside of the board where the chip is attached to the board.
[Android Stick & Console AMLogic based Computers] BEL_ALEX:
I found an interesting situation.

1. Assembled the firmware

2. Changed or replaced one small file

3. Rebuilt the firmware

in p. 1 and 3, img size may differ from each other by hundreds of megabytes. although changes to kilobytes. is this normal behavior?

so, and when i make more global changes (for ex. deleting some apps for 50-100mb) size can be similar when i made small changes :)
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
ALL THE VERSIONS OF THIS TOOL ARE AVAILABLE ON A FASTER AND STABLE SERVER.

GO TO http://files.atvxperience.com/s/rickystools TO DOWNLOAD.

THANKS
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
the way the tool operates is make_ext4fs starts at around 600mb and increments by 50mb until all the files fit in the partition, so there may be upto a 49mb size increase, however when compressed into a zip or flashed, the size is shrunk to the correct size

last version(4.0.0) the size was automatically increaased to 2GB, thats why this version is also a major improvement
[Android Stick & Console AMLogic based Computers] drakulaboy:
thank you very much! finally found the right tools for customizing the frimware, yay!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Customization tool being updated tonight, significant increases in speed and stability aswell as a bug fix while packing into a rom(kernel/recovery), dropped support for unpacker binary and major updates to the unpacker class, the head is also now programatically split, your also able to get the upgrade content, unpack single partitions and get info on them, in customization tool each files sha1 sum is also verified on unpack, if the sums mismatch it will continue to unpack but will warn you of possible corruptions, and customization tool now uses the UnpackerClass library for handling, also same with unpacking kernel, its now implemented in the unpacker class

EDIT: Also recovery resources are updated to 3.2.1-1 also will be distributing a single package with all software included, there will also be an installer, all software will reside in C:\Program Files\RDSoft

Plus will be coded in .Net framework 4.0(for windows 7 -windows 10 support)
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
When I compile my ROM, the zip file doesn't pack recovery, kernel and other files. There are just 2 folders in the zip, system and META-INF
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Uploading fix tonight for it
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Update has been released
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Thanks a lot Ricky! Great work. This will surely help me in my atvXperience project.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Most definately, if there is any feature request or way i can make the tool more efficient etc please do let me know
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Thanks, I have a few requests.

It'd be great have a boot logo change option. The tool does unpack the logo.img but the logo.bmp isn't actually a bmp file but a png file. We can't replace it when the tool's running because it's being used by the tool.

and an option to pack img will be great as well. Another option to add bootvideo will be another great thing. Besides that, the tool is perfect! If these are implemented, the tool will become more than perfect, maybe then you can add a good skin or theme to it :D
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I will add the option to enable bootvideo/detect if bootvideo or animation next release, i might be able to add changing the bootlogo, will need a few people to test

As for repacking into upgrade package, im having big issues on my end, analysing the file structure shows somewhat enough sense to unpack the file, but makes no sense to repack, there are bytes of "nonsense" within each few partitions in the HEAD, they are in no pattern or layout, i found one of them was a simple count, but the rest im unsure of

Also, the first 4 bytes of the file i have no clue what they mean, but they are crucial for applying upgrades via bootloader

My last resort is using AMLogics commandline tools to flash partition by partition, theoretically making my own USB burning tool with less checks, this however could be dangerous if flashing certain partitions
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Oh, I totally get it. It's fine if you dont add img packing option, I just asked it because I had it in mind when the zip didn't add kernel and boot. Another thing you can add instead of img is system.new.dat compression. I guess the tools are available pretty much everywhere and it won't take long to add the feature.

An advice though, you should make this thread i freaktab.com. The community is much active there and you also can get a sticky and featured topic.

Another advice, You should change your xda title/tags. It was very hard to find your thread on google. Maybe add the word "amlogic customization tool v3" and the thread will become popular.

Thanks again for your amazing work!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I have taken into consideration some of the things you have said

I made a freaktab post and included customization tool in the title

As for system.img.dat files, the only tool available is coded in python, so for now until i make a native version i will not include it

I havent seen an AMLogic firmware with system.img.dat inside of it
[Android Stick & Console AMLogic based Computers] knxwille:
Customisation tool working now. Extraction was success. Wallpaper button occoured fc/continue error.

Strange thing,

Kaspersky dedected,

...tmp\level2\system\app\TestAddon.apk	Object Name: UDS:DangerousObject.Multi.Generic

inside my box is this false positive ?
[Android Stick & Console AMLogic based Computers] user5863:
AMLogicFlashTool is also produce error during connection, so impossible to use. Previous one-flash and port tool was OK.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Will fix tonight,thanks for the heads up
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Ill check the wallpaper feature, and possibly, Ill do a little more research

EDIT: /system/app/TestAddon.apk (apk that installs /system/media/org.xbmc.kodi.zip addons)
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
I've found system.new.dat in almost every other ota update package. Whether it's tanix or other box. The plain system folder compression is bit old now, that's why I suggested it, and system.new.dat also saves updater-script space.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
PM me a firmware with it and ill see what i can do
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Can you make the error appear again and send me the output?
[Android Stick & Console AMLogic based Computers] bluefender:
time clock and zone, when i go into twrp it never remembers the correct time or zone im in, is it a bug, i know it makes no difference to flashing etc, but curious why it does not remember settings
[Android Stick & Console AMLogic based Computers] drakulaboy:
Ricky a little suggestion on CustomizationTool, can you make that here

to show full path and name of file i have opened?

BTW i'm using this software on a SSD, unpacking speed is the best

Thank you!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
5.1.2 going up, small update but will allow packing with platform configuration(fixes failed to create workflow xml)

aswell as a minor fix where a level3 file was being unpacked when selecting only to unpack to level2
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
5.1.2 up
[Android Stick & Console AMLogic based Computers] BEL_ALEX:
ok, understand, thanks! and thanks for update!
[Android Stick & Console AMLogic based Computers] Shipwreck65:
Hey all, if you're like me and don't have a male to male USB cord to use the USB burn tool, or any other app that requires the male to male USB, you can make your own if you have extra USB cables lying around. Here's a video that shows you how to do it:

DIY Male to Male USB Cable

The attached pic is the one I just made in about a half hour total. Instead of an extra USB cable though I took an old 128MB USB stick, removed the board with the memory chip and such just leaving the male USB connector, and soldered the wires in the correct places and hot glued it in place for stability and popped the case back on. Gonna try the USB burn tool later and see if I can't unbrick my box.
[Android Stick & Console AMLogic based Computers] BEL_ALEX:
found new strange problem. #1

if unpack any firmware with this version and repack (even without making changes), then the builing will fail and the process will not succeed

end of log:

[CUSTOMIZATION_TOOL] : System repacked successfully
[CUSTOMIZATION_TOOL] : LEVEL 1 ---------------------------------------
[CUSTOMIZATION_TOOL] : Building upgrade package structured img
[UNPACKER] : Repacking upgrade package
[SHELL] : AmlImagePack -r "tmp\level1\image.cfg" "tmp\level1" "G:\Devices\x96mini\test.img"
[UNPACKER] : [ERROR] : Failed build upgrade package
[CUSTOMIZATION_TOOL] : Failed to build upgrade package

and one more bug. #2 AMLTool v5 -> v5.0.9

when i unpack f-w with keys (for ex mac), and switch to "advanced" tab, i dont's see a chackbox at the key.

only when i restart cust.tool box is checked

and more. #3 AMLTool v5 -> v5.0.9

i have some custom fw for w95 and h96pro+ (not mine fw, can give a link to download them), when i try to unpack it, customization tool just closing without any messages.

in end of log:

[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
[CUSTOMIZATION_TOOL] : Atempting system unpack
[UNPACKER] : Unpacking system partition
[SHELL] : ImgExtractor "tmp\level1\system.PARTITION" "tmp\level2\system"
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
all will be resolved by tonight
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
5.1.5 Going up right now with issues 1 and 2 fixed.

Could you please PM me the firmware you are having the unpack issue with so i can resolve it as soon as possible?

Thanks
[Android Stick & Console AMLogic based Computers] jeffersonfarofa:
Troquei a versao do windows para 64bits resolvido
[Android Stick & Console AMLogic based Computers] venioni:
Can someone tell me why when i run AMLBootloaderConsole.exe after 2 second crashed and close ?
[Android Stick & Console AMLogic based Computers] jeffersonfarofa:
error 6 in twrp after compiled. how to work around this error
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
This is a tool issue, will fix in next update
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Thats an issue on my end, will fix and update, thanks for the report
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
This issue and all other issues mentioned have been fixed, uploading 5.2.0 right now
[Android Stick & Console AMLogic based Computers] venioni:
[MENTION=5105831]Ricky Divjakovski[/MENTION] Can i flash with 5.2.0 tool bootloader.img on my bricked mi tv box or recovery.img and if yes how can i do ?
[Android Stick & Console AMLogic based Computers] dhiet75:
After unpacking & then repacking again in .img file even if without any modification, the system.PARTITION looks like have a mising image header. those we cannot make unpacking that firmware again Ricky.. sorry if i wrong,..
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
This will still work fine, not problematic at all
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
The firmware is encrypted, more than likely not
[Android Stick & Console AMLogic based Computers] Minski256:
When creating port TWRP, it stops at 40%
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Yes I'm aware of this, will need to fix and patch it asap, will release a new version tommorow