yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] Minski256:
Amlogic S912

Here is my stock recovery

https://en.webshare.cz/#/group/1m83dx63e2/
[Android Stick & Console AMLogic based Computers] whiteak:
Have you got a space after recovery, I may be wrong, but kind of looks like it, if so delete it and try again. Eg, needs to called recovery.img not recovery .img
[Android Stick & Console AMLogic based Computers] Minski256:
I have recovery.img not recovery .img
[Android Stick & Console AMLogic based Computers] Minski256:
I tested port twrp on three pc and everywhere the same mistake. I've tried two recovery for Mecool KIII Pro and Magicsee c300 Pro and always have an unpacking error. The problem is in the AMlogic Tools app
[Android Stick & Console AMLogic based Computers] whiteak:
I tried porting the recovery.img you shared with Ricky's latest tool and got the same error as you, I then tried the last version of his Flash Tool (3.50) and it worked, so I've uploaded the ported recovery here for you to try and flash: https://en.webshare.cz/file/77j1HcL51w/portedrecovery-img
[Android Stick & Console AMLogic based Computers] Minski256:
Thanks for your hard work :good:
[Android Stick & Console AMLogic based Computers] petvolnj:
same problem for me as well

If I send you my recovery file, can you port TWRP for me to flash on my Beelink G1 Ultimate S912? Or provide a link for the 3.5 version of the AMTools please.
[Android Stick & Console AMLogic based Computers] whiteak:
For now until Ricky has a chance to have a look at the 4.0 Tools here is a link for 3.50: https://mega.nz/#!f9VQAKID!Qox0qD9OHrPmNWbbvtG-oHCfkPQ0XJqybRqVIr9H0aE
[Android Stick & Console AMLogic based Computers] petvolnj:
Thank you for your quick reply!
[Android Stick & Console AMLogic based Computers] petvolnj:
Unable to boot into recovery

I successfully created the custom-recovery image and flashed my android box but it won't boot into recovery. I have a Beelink G1 Ultimate 32GB storage, 3 GB mem s912 processor. Strangely I have two recovery files on this device, one in the dev/block directory and another in the dev/block/platform/d0074000.emmc directory. I flashed both but no dice. Any ideas or is it possible that this android box can't be rooted?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
You must have root to flash it, im working on altwrnate methods of applying this, maybe an update.zip file, [MENTION=8898246]whiteak[/MENTION] is a valuable member of these tools and of poison rom

He is extremely thorough at testing, an alternative is to use my customization tool and build a rom based on your stock firmware, pack to USB burn image and flash the whole firmware(with modded recovery)
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Possible bug, not sure if its in AMLogics original tools but sometimes after flashing a repacked .img first boot doesnt work, second time boots fine, it could be a bug in USB burn tool, who knows, so if your rom doesnt boot the first time wait a minute or two then reboot the device
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
I tried to unpack a95x pro's img. Tried selecting different combinations of levels but it always crashes. Official tool unpacks fine but not v4.
[Android Stick & Console AMLogic based Computers] Diamond Geezer:
I've a very strange problem with which I hope you can help.

Had a few successes in rapacking some roms to try then suddenly the customisation tool only seems to repack using the origonal files.

For example if I actually go to the tmp folder of system/etc and delete the remote.conf. file then substitue it for a re-written one of mine, it repacks it with the original. If i've actually deleted the origonal from the tmp folder how does it do that?

It's same with an edit of the build.prop file using notepad++. It says it has saved the edit and the timestamp of the new version of build prop looks ok, but when I repack, the origonal build.prop is put back.

Same with removing or adding system apks. It repacks with the origonal apps

Really strange how it was working OK but suddenly not.

Thanks for any help:good:
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Im gonna have to look into this, im guessing its a failed repack of the system partition, try this..

after unpacking, delete the system.PARTITION from level1 folder, do what you need to then repack it
[Android Stick & Console AMLogic based Computers] Diamond Geezer:
Hi mate,. Thanks for the reply.

It definately repacks with out the system.partition (about 900mb less file size in this case).

I can't check if any changes are in there as when I try to unpack the newer smaller img, the app crashes.

Aside from that I've also noticed a couple of other things.

In the applications section, the app looks like its expecting /system/preinstall location for us to place different apps whereas it unpacks to /system/pre_app so when you try to add something I get the error in the secreen shot. I've also attached pics of the explorer locations.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Seems like the system partition is not being repacked correctly

Ah yes, that is surely a bug on my end, aswell as the preinstall folder, ill fix this next build, thank you
[Android Stick & Console AMLogic based Computers] Diamond Geezer:
No thank you for such an awsome tool.

Weird how I manged to get a couple properly repacked and then it stopped working.

I've re-download it and tried it on different machines and it's the same......

Anyway look forward to the next version.

:good:

Just realised I was using different ROMs. Doh!!

It seems to be able to repack a 7.1 Rom OK but not a couple of different 6.01

Hope this helps.
[Android Stick & Console AMLogic based Computers] Gante123:
For me repack does not work on win7 x86, but on win7 x64 work!

Thanks Ricky for help and great program. :)
[Android Stick & Console AMLogic based Computers] derwoodbones:
Not packing files ?

In the firmware I am working on there is an apks.zip file located in /system./usr, This file gets unpacked on first boot and installs all the apps you choose, How come when I unpack factory firmware, Change these apps and repack to .img it does not reflect the changes it only repacks whatever was orig in the apks.zip
[Android Stick & Console AMLogic based Computers] gatos814:
Do you have the stock firmware for a95x pro ?
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
No, it's a different one I'm talking about.
[Android Stick & Console AMLogic based Computers] gatos814:
Ok!

And by the way i tried the stock recovery of A95X PRO with AMLogicFlashTool v 4.0.0 and never worked but the AMLogicFlashTool v 3.5.1 did the job!

I haven't tested it yet but i think will work!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
There are issues with the tools, i just made a fresh install of windows, i tested thr customization tool and that works fine without any external software, as for my flash tool im yet to test but i will quite soon
[Android Stick & Console AMLogic based Computers] gatos814:
So far i see that the old Android 6 .img has some problems with the customization tool but with Android 7 looks working much better

For instance the ct 3.5.1 looks working better generally but missing the .img (at least to the ones i have tested) repack !

Anyway , go on.... keep the good work and step by step you'll find the way to make it working with as much less bugs as possible!
[Android Stick & Console AMLogic based Computers] derwoodbones:
Interesting you are correct, When I unpack Android 6.0.1 Firmware for the Probox2 Air plus and make changes in the system directory the changes are not saved when packing to .img

However doing the same thing on the Android 7.1 version of the firmware everything is saved...

Odd.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
This occurs when the tool fails to repack the system partition, probably due to not finding the file contexts inside the kernel

In next version dialogs will pop up for failed repacks

It will need some adjusting to support 6.0 but will eventually be done

Android 8.0 is almost already fully supported

Problem is the source is getting quite messy, im gonna need to tidy things up abit after this next update
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Great feedback, im looking at fixing these issues and tidying up the source

Thanks for the kind words!
[Android Stick & Console AMLogic based Computers] gatos814:
The big thing here is not Android 6 .img which i believe all windows fans with one way or another we are manage it!

The big thing here is Android 7 and of course the pretty new and similar Android 8 !

So , go on , waiting for your next steps!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
8.0 support is done
[Android Stick & Console AMLogic based Computers] jrs007:
[MENTION=5105831]Ricky Divjakovski[/MENTION] I have a Mi Box. I just found on the internet the img file of the mdz-16-AA model(

https://xdaforums.com/android-stick...ogic/s905x-xiaomi-mi-box-3-mdz-16-aa-t3502992 ), but mine is MDZ-16-AB. Can I backup the .img of all the firmware with this program?
[Android Stick & Console AMLogic based Computers] Minski256:
Pls link for Tool v3.5.1
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
No, you cannot backup but can edit imgs.
[Android Stick & Console AMLogic based Computers] whiteak:
https://mega.nz/#!rhUzkS5Q!QDsZ6sxBY7lJAJbO7LteEBWcPTS0DRNKwEphwHgfSaw
[Android Stick & Console AMLogic based Computers] Minski256:
THX
[Android Stick & Console AMLogic based Computers] Gante123:
Ricky writte:

"Update coming tonight, fixes to stabillity, various minor bug fixes....."

Will be? Thank you Ricky. :)
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Sorry been very busy with personal life, the update is basically done, very minor tweaking and methods of finding the file contexts and app folders, trying to make everything automated and stable
[Android Stick & Console AMLogic based Computers] shinobisoft:
Friendly reminder... Asking for ETA's is against forum rules.
[Android Stick & Console AMLogic based Computers] subrez:
I have what is probably a stupid question: Can I unpack level 2 and modify level 1 partitions?

What I have tested:

I downloaded this:

cyx_NEXBOX-A95X_S905X_8189FTV_8189ETV_S9082C_8g1g_170608_SD_USB

https://mega.nz/#F!F9xjTSSa!R0vJfTC2U6Qc2skNMrr1iQ!B8pBiBCQ

I first unpacked level 3 and repacked to zip. I got the message failed to repack kernel and recovvery. I installed the resulting zip in TWRP 3.1.1 anyway and it boots to logo and stops.

I also packed to .img and used the sdtool to burn image and it boots normally.

then i unpacked to level 1 and modifyed the recovery image with twrp (the previous .img had stock) and packed to new .img and it works perfect with twrp 3.1.1 in place.

then I unpacked to level 2 and tried to change recovery and logo partitions and pack a zip. Installed the zip in twrp and it gets stuck on 2nd boot logo).

My conclusion is zip does not work for me, but modified partions to img work.

Next I will try some system modifications
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Every day im working more and more towards making this tool perfect for modification, there will be a new method of zip installation where you will able to flash via zip, all though this time it will flash all partitions
[Android Stick & Console AMLogic based Computers] subrez:
Great! Thanks! I'm in no way complaining. Just wanted to show my interest and my experience with the tool. I hope to get 7.1 on this box one day, but all I've tried are corrupt from the start or brick by box. this one rom and customization tool are all I have going atm. So far all I done is swap recovery and logo partition from other broken (for my box) roms. I can strip the system after but whats fun in that :)
[Android Stick & Console AMLogic based Computers] Aguia Russa:
Hello friend, I am not able to run applications.

I'm trying to unzip rom Acemax KII 5.1.1 (645MB), but the file in the "temp" folder gets more than 4GB and the program keeps working endlessly.

My system is Win7 SP1, Netframework 4.6 and antivirus disabled.

I need anything else?

Thank you.

P.S: Sorry for my bad English.
[Android Stick & Console AMLogic based Computers] subrez:
So level 1 changes go to the .img but no level 2 changes. Is there something I'm doing wrong? Any suggestions, or patiently wait for next update... :)
[Android Stick & Console AMLogic based Computers] 12004k:
please for this firmware geant 1200 4k http://www.mediafire.com/file/qheuj1ehy7m40lh/20180419_1628-1a35fbd18a2bd6c7a3754f06c80597a1.zip

thanks
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
If you unpack to level 1 then you can manually swap partitions, if you unpack to level 2 you must modify kernel/recovery through the tool
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
A new USB burning tool will be included in the update, it will be for Advanced users for now as further and more thorough testing may be needed, as with the other tools they work coreectly according to my PC and firmwares, other peoples may not work correctly

With that being said my programs will not be distrivuted with the capabillities of damaging your device
[Android Stick & Console AMLogic based Computers] jailedmike:
Well can't get TWRP to take as a recovery. I downloaded the 3gb32gb version then tried to flagsh it with flashify but can't get to TWRP. I did a back up first through TWRP app so restored that then tried to use that too. Then after another restore I tried to use amltools to make a custom one. It says failed to unpack. Any ideas on what I might try next? It is build 1073 on sunveil t95zplus Feb security patch ap6255 WiFi Samsung mmc. I want to flash TWRP on it then run poison rom. No clue what else you might need.
[Android Stick & Console AMLogic based Computers] whiteak:
1073 is 7.1.1 isn't it, been a while but I'm pretty sure it is. You need to be on 7.1.2 for both the Custom Recovery and Poison Rom to work. So that is your first step, flash the 7.1.2 Stock Firmware for your device from the S912 Poison thread and there is also TWRP files for the T95Z in that thread as well.
[Android Stick & Console AMLogic based Computers] jailedmike:
You are right just assumed it was 7.1.2 since that's what it was listed as on gearbest. I assume they will have the firmware update someplace in their site as per normal?
[Android Stick & Console AMLogic based Computers] whiteak:
The latest Firmware is on the front page of the S912 Poison Thread to download for T95Z devices. Just choose the correct Ram size for your particular box. S912 Poison thread is here:
[Android Stick & Console AMLogic based Computers] jailedmike:
Thank you! gah USB burning tool sounds stupid. Now I need to find a USB flash drive...
[Android Stick & Console AMLogic based Computers] whiteak:
No, you need a USB Male to Male Cable. You connect your device to your PC to flash. You can make one from 2 normal usb cables, cutting the female ends off and joining the 2 cables together so you have 2 Male ends or you can buy a proper Male to Male USB cable, either one works.
[Android Stick & Console AMLogic based Computers] jailedmike:
What a garbage design...
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Its silly but neat, will only work on a certain USB port on the device aswell, could probably be accomplished with hardware modification and microusb connection aswell, i may acyuallu attempt this
[Android Stick & Console AMLogic based Computers] jailedmike:
It's just no one uses a male USB a to male USB a.

.. Do you know which side it's in for the sunveils?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
pretty sure(looking front on at the clock) on the right hand side
[Android Stick & Console AMLogic based Computers] derwoodbones:
Pretty much every reseller and firmware dev out there uses the Male USB-USB method for loading firmware, It is the fastest way to do many boxes at a time, It is anything but a garbage design
[Android Stick & Console AMLogic based Computers] jailedmike:
Name another application for it... But I get it since USB A is the most used accessory port. I just would have preferred it to be able to use something like USB stick,SD card, ota or download and run software like most Androids including my generic Android stick from 2012. I mean it's smart from manufactures point but bad from consumers point, and since they did it that way instructions and a $.50 USB cord would be cool. Otherwise from a place like best buy it's 1/5 price of the whole box to get that cord since it's so uncommon. ($.76 online)They tossed a decent HDMI in after all.
[Android Stick & Console AMLogic based Computers] adritec:
Install the applications I want in automatic mode.

Hello budy, how are you? My name is Adriano, first of all, my congratulations for the beautiful work you have done for this program Customization Tool. I realized Unpack, extract with your program a Rom (Android), I saw in the extracted image, level2 / system / does not have the preinstall folder. I put a folder, with the applications inside .apk. I created with your .img program (image) after I installed the rom in the tv box, but did not install any applications that added the .apk files inside the folder: preinstall. It has Rom (Android), what it extracts with its program, has the preinstall folder with some .apk's inside, even changing these .apk's by another one, at the time of installing the Rom in the TV Box, does not install what I changed, back to what was already inside the folder. I want to install Rom (Android), and install the applications I want in automatic mode. Please help me how to do this. Thanks, Successes ;)
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
You can place apps inside the level2/system/app folder to have them installed ass system apps, otherwise chances are you rom does not have the requirements to add preinstalled apps
[Android Stick & Console AMLogic based Computers] Tonian1878:
These boxes are mostly cheap £25ish. They're designed for people to watch illegal streams from the internet as cheaply as possible. i doubt the developer care that much about a few niche people that want to develop their own roms for it, that isn't their market.

HDMI cable is a needed part for the box, a Usb cable isnt and 99% of the customers will probably never use it. keeps costs down to be more consumer friendly

You can use SD Card to install firmware for nearly all s905 boxes. just need the burn card maker program. sure I've managed to do it via a USB stick as well with the same program.

Oh and the HDMI cables provided are absolute sh#t.

Your being fairly petty over a 50p cable
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Correct, and DRM is googles/netflix way of saying "i want a cut"
[Android Stick & Console AMLogic based Computers] adritec:
Thanks for the quick response! But if I insert into this folder, can I compile for .img When I install the Rom on TV Box, will it automatically install .apk's ..? If you need to edit a file for it to work correctly, if it can happen, I'll do it here, I'll be happy to do it. Appreciate!
[Android Stick & Console AMLogic based Computers] adritec:
********

Friend, I added through your program: CustomizationTool, in applications: / system / app And anyway it did not work, I compiled it to .img. When opening the image again by your program, to make sure you applied the .apk's or applications inside the folder: / system / app Nothing, back as it was, I believe there is a file that does not let me do what I want. The version of my Android is 6.0.1 for TV Box. Thanks and Successes ;)

*******

See what I found friend: http://freaktab.com/forum/tv-player...e-tutorials-av/657670-amlimagepacker-create-a -img-file-from-the-level1-folder-without-customization-tool
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Yep it sure can
[Android Stick & Console AMLogic based Computers] Tonian1878:
Personally i wouldnt install general apps as system apps. some apps just wont work in the system folder. Youll need root and system app remover to uninstall the apps afterwards.

also security issues with giving every app system access (unless you got SuperUS installed)

Most these boxes come with an App called "AppInstaller". just load all the apps you want onto a USB stick, SD Card etc. plug it into the box and AppInstaller can do a fairly quick mass install of all those apps.

also keep the firmware img smaller as you dont have to fill it with a load of APKs which stay on the device after installation encase you do a factory reset. wasted space
[Android Stick & Console AMLogic based Computers] adritec:
Hello friend, sorry to bother, I tried, but I did not succeed. I added the .apk application in the system / app path and also tried system / preinstall and generated the .img image with your program, but when installing Rom on the TV Box, it does not apply the applications I added. The question I ask you, I have to modify what file in the folder Level1..and how do I extract ..? As Rom does not give me permission to modify. Thank you very much for your help.

---------- Post added at 10:30 PM ---------- Previous post was at 10:22 PM ----------

Thanks for the help, buddy. Instead of TV Box, install the .apk application automatically. You have already done this with a custom version, but it is very limited, I can not anymore. What is happening with the program, here is what is more than what you can do, but you can do this, but at the time of compiling, the application (applications) is not saved ie the applications that insert , do not appear. Muitó, what is it that does not leave, is that those aid to discover, which file needs to fiddle to take that away. You can help me, I'm sorry again. Successes!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Everyone, my youtube video here contains the current changelog of V5.0.0 in the comments, be sure to check it out, next release will have ALOT of changes

https://youtu.be/xN6w2wYFCTc

Also anyone having issues unpacking the kernel let me know and ill send you a test version to try
[Android Stick & Console AMLogic based Computers] adritec:
Hello Ricky Divjakovski, how are you? I tested with a Rom Android 7.1 and I was successful reading the doubts of the staff, and even mentioned you, with the Android 6.0 version does not save the applications inserted inside the folder: / preinstall. But it's alright! I need a help, on this Rom Android 7.1 which I tested, I managed to insert the applications, I installed on the TV Box successfully, it was excellent with your program, but at the time of testing Bloetooth and Wifi, it does not work. I already inserted the compative drives in the paths: \ level2 \ system \ etc \ bluetooth and level2 \ system \ etc \ wifi. I also inserted command lines inside the aquirvo: level2 \ system \ build.pro and still did not succeed. I wonder what I need to do to recognize it? My TV Box is YokaTV S912 - T820MP3 DDR4 Sorry for the inconvenience. Thank you in advance for the answer!
[Android Stick & Console AMLogic based Computers] Tonian1878:
Would love to help more but am struggling to understand your post. Guessing English isn't your first language?.

Let me get this straight.

You're editing/Creating a rom and its doesn't appear to have a "Preinstall" folder to put your APKs in?

Youve tried creating a "Preinstall" folder but nothing seems to happen when you install your rom?

1. Make sure that apps dont have any spaces in the file name.

2. Try another rom