yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Currently working on it :) mg legal docs are ready to go so ive been dedicating more time to the project, this ethernet issue is being debugged as we speak
[Android Stick & Console AMLogic based Computers] Viggen66:
Ricky or any of this threat.

Just one doubt, does any of you know how to add init.d on a rom? I remembered adding some text on init.rc, add permition 0755 or 0777?
[Android Stick & Console AMLogic based Computers] Renato Pedrassoli:
Serial number unknown

Ola, fiz a instalação da rom estoque rom via Burn card Maker, mas acabei marcando a opção erase all ( with key ) , agora estou sem o numero do serial, como corrigir?

Hi, I installed the rom rom stock via Burn card maker, but I ended up marking the option erase all (with key), now I'm missing the serial number, how to fix it?
[Android Stick & Console AMLogic based Computers] gatos814:
I have a question about the new devices u211

I have a H96 Max X2 in my hands (S905X2) and waiting for a A95X PLUS (S905Y2) with both Android 8.1

So far i don't know if the pcb of the A95X PLUS (S905Y2) will be the same but hypothetically speaking will be able in the near future to port a twrp recovery with your tools and for these tv boxes?

The test was made with the first Beelink GT1 Mini Android 8.1 public firmware that your tool (5.5.0) managed to unpack it succesfully but because of the script (i assumed) never managed to port the TWRP (all of the tools) !

Regards
[Android Stick & Console AMLogic based Computers] Renato Pedrassoli:
My friend, I used the burn card maker tool, in erase option I left the option (erase all with Key), now in my box my serial number is unknown, some applications that links to the Mac of the box are not working, how to fix it?
[Android Stick & Console AMLogic based Computers] AccaOC:
Quote from Here, I haven't tested it but I remembered I had read this and found it for you.
[Android Stick & Console AMLogic based Computers] Renato Pedrassoli:
Friend actually is not MAC and yes Serial Hardware! how to solve?
[Android Stick & Console AMLogic based Computers] AccaOC:
You seemed confident you needed to change the MAC, I can't help woth the serial, sorry.
[Android Stick & Console AMLogic based Computers] syked:
Hi everyone,

What does the write keys option in advanced section do? Should I select all, some (which ones) or none?
[Android Stick & Console AMLogic based Computers] laser212:
@ Ricky or anyone with a little bit of exp. usb burning tool is stopping at 9% and giving this error. not sure what to do now as box is unusable. it wont boot but i cant flash to fix either.

14:37:24 515][HUB4-4][Err]--failed:Verify Failed with sha1sum, origin sum "2b00529d6508352144b169456a6c0f6c092ddc3d" != gen sum "cd1283a0f48e9fe5dac17150e4cf6169bce18057"

[14:37:24 549][HUB4-4][Err]--[0x30405004]UBOOT/Partition _aml_dtb/Verify patition/Error result

[14:37:24 549][HUB4-4][Inf]--Close device handle 0x00000670
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
possibly too many changes to the DTB
[Android Stick & Console AMLogic based Computers] laser212:
Sorry mate. And is there a way to fix it? Or will i just use it as a frisby and throw it out?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Enables key writing on flash, if you enable key writing without the required keys the firmware will not flash
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Few minor bugs to fix aswell as S905x2 boot issue and we will have a release, ive got BIG plans for AMLogic
[Android Stick & Console AMLogic based Computers] PLAY911:
Hi Ricky Divjakovski, 1st many thanks for your work-----I am trying to modify custom ROM for Mecool KIII called Vitmod but I always receive a msg regarding signing...this is the ROM

http://vitmod.ru/forum/index.php/topic,37.0.html

Hope you can help me

Many thanks!

Regards!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Expect a release over the next 3 days, i just resovled some major bugs like not booting aswell as the ethernet issue, all seems kernel and image repack length related, im also gonna be addressing the DTB issue by allowing you to freely add/remove code and adjusting the specified sizes, S905x2 will be completely supported aswell as fresh SDK builds but you will need to activate the software before use, me and my team are setting up a server that will send you a verification code instantly after submitting the form, this is just my way of doing things, i think its fair to do so as alot of people re taking advantage of using this software for uses like adding illegal/pirate applications and streaming apps to firmwares, flashing and redistributing for double the price

While i dont care what anyone does on these devices, be sure not to take advantage of tech illiterate people and charge them an arm and leg for something they can get for free, work as a community, help one another and build together!
[Android Stick & Console AMLogic based Computers] ZeroZorro:
Hear hear!!

And also: Happy New Year!
[Android Stick & Console AMLogic based Computers] kiskaprince:
Thank you Ricky for your hard work

Cant wait to try it

Happy New Year
[Android Stick & Console AMLogic based Computers] kiskaprince:
Hi Ricky

Do you know when you will be able to release that rom?

Thank you
[Android Stick & Console AMLogic based Computers] shinobisoft:
FYI: asking for ETA's is against forum rules.
[Android Stick & Console AMLogic based Computers] kiskaprince:
sorry
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Currently compiling a new version of make_ext4fs with 8.1 R4 support due to project treble(vendor)
[Android Stick & Console AMLogic based Computers] knxwille:
Hello Ricky.

I know you're very busy but I want to tell you something about your new projects.

There are too many boxes especially china origin. Most of them clones of others.

Maybe users find suitable roms after identification.

We need some kind of box identifier.

I know there are some tools for dedecting hardware but there is no tool for "identify" clone boxes to nearest original one.

Please add this "box identifier" idea to your project roadmap.

Thank you for your great effort.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Highly unlikely, wayyyy to much effort(if its even possible)
[Android Stick & Console AMLogic based Computers] knxwille:
Just keep in mind ;)
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Ill keep in mind, but im not sure how im able to detect the device, especially if your running a custom rom

At most i can generate a spec sheet that developers can include in the threads and if yours matches it will mean the roms compatible, thats literally at most and even that is basically useless
[Android Stick & Console AMLogic based Computers] tedpoley:
Great work, Ricky! Thanks so much!
[Android Stick & Console AMLogic based Computers] I1V1A1N:
I made rom for android 8.1 for amlogic s905x via twrp.But i can not do it for firmware via computer.

https://github.com/s1a1g1e1r1t/AOSP_8.1_V_25_phhusson_on_amlogic_s905x/projects
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Issues with unpacking/repacking vendor partition/kernel for 8.1, currently trying to compile the only known solution on earth issue is its made for linux and needs to be compiled with clang instead of gcc(no support), extremely hard to do on a windows based OS.
[Android Stick & Console AMLogic based Computers] Xannytech:
Have you tried to contact JamFlux? His make_ext4fs.exe works pretty well with Oreo. I use my own linux kitchen but i can compile a working vendor partition on Windows in case of, using his make_ext4fs.exe.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Thanks for this information, i am yet to see it however ill dig in, can i ask what command your using to repack vendor?

in the official 8.x SDK the make_ext4fs uses an extra arg as a system reference, however every single make_ext4fs i have came accross doesnt accept this extra arg
[Android Stick & Console AMLogic based Computers] Xannytech:
make_ext4fs -L vendor -T 0 -S file_contexts -l [I]vendorpartitionsize[/I] -s -a vendor vendor.img \vendor

I slightly change the -T parameters for some reason on some devices, but normally worked from the beginning.

Obviously from android Pie make_ext4fs doesn't work anymore and we should use e2fsdroid.

Anyway out of curiosity which parameters are you tring to add? it's about Journaling i suppose.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Really? Ive tried EXACTLY that, in 8.1 sdk they add a reference to /system

Those exact commands but the system path as an addition arg
[Android Stick & Console AMLogic based Computers] I1V1A1N:
If Android 9 is so different from Android 8.1 , it makes it difficult .In my box X96 Amlogic s905x absent adb ,fastboot .Without early diagnosis it is impossible to find a mistake.And then there's twrp need to improve.Did android 9 through twrp.The logo appears android then the image but in the bands.Got into twrp dmesg ,kmsg.
[Android Stick & Console AMLogic based Computers] Xannytech:
Ricky the problem is the make_ext4fs.exe not the command parameters. Then i don't know how do you set permissions and symlinking in your kitchen, but the exe compiled by JamFlux works quite good with vendor partition, tested right now. ;)

Anyway i know it's not a definitive solution for you, i mean using his exe, but if you ask him how to set up your enviroment maybe you could compile a Windows version for your kitchen directly from source, the rkhat one it's quite good on linux.

Maybe you know better what's your problem, i'm just guessing cause i read here you're struggling to compile the oreo make_ext4fs.exe for your kitchen.

https://github.com/jamflux/make_ext4fs
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Im unsure, my newest build of the tool append plat_file_contexts and nonplat_file_contexts forming another file contexts my tool.uses, it repacks both system and vendor fine however it doesnt boot, ive narrowed it down to the vendor partition but im unsure whats causing this issue, its the only thing from preventing the release of V6.0.0 so any help is greatly appreciated at this point

As i said, the official 8.x SDK make_ext4fs uses an extra arg as a reference to an unpacked system partition and the only one that has that extra arg is the one built by rkhat for linux and i fail to get a full compilation of his tools on windows, ive tried compiling each module on their own, using both 3.10 and 3.6 versions of clang, installed all dependencies(i think) but im still getting issues

I coupd release the tool without abillity but that defeats the purpose since 8.x uses the vendor partition quite heavily due to treble

Any direction or suggestions im happy to consider
[Android Stick & Console AMLogic based Computers] Xannytech:
Normally, in my experience, compiling the old not "fixed" make_ext4fs cause loss of permissions so the vendor doesn't work. The file context thing it's pretty stupid to be merged as you know.

This is more or less here the script i use on linux for it:

[FONT=Courier New]echo "Prepare File Contexts"[/FONT]
[FONT=Courier New]p="/plat_file_contexts"[/FONT]
[FONT=Courier New]n="/nonplat_file_contexts"[/FONT]
[FONT=Courier New]for f in "/system/etc/selinux" "/system/vendor/etc/selinux" "/xkitchen"; do if [[ -f "$f$p" ]]; then[/FONT]
[FONT=Courier New] sudo cat "$f$p" >> "temp/file_contexts_tmp"[/FONT]
[FONT=Courier New] fi if [[ -f "$f$n" ]]; then[/FONT]
[FONT=Courier New] sudo cat "$f$n" >> "temp/file_contexts_tmp"[/FONT]
[FONT=Courier New] fi[/FONT]
[FONT=Courier New] done [/FONT]
[FONT=Courier New] sudo sort "temp/file_contexts_tmp" | uniq >> "/xkitchen/file_contexts"[/FONT]

In my "personal" linux kitchen i use the Rkhat make_ext4fs_def without any new extra args, and you can test my rom is fully functional, and i compile roms not just for public release but also for some enterprises and some schools and they're fully functional until now ;)

I'm trying to help you, because i like your idea and your project and could be useful for beginners and users to have a tool like your kitchen fully dedicated to Amlogic devices.

So i told you about the .exe from Jamflux, because i'm sure it works, in his kitchen to recompile vendor partition he uses the very same parameters i wrote before here (he just use -T with a different time for compatibility reason i think), then i linked his make_ext4fs github to you, maybe it's simpler to compile with your environment, though i did not tried to compile it.

Anyway Ricky i'm here if i got a bit freetime i can try to help you to compile a working .exe :p
[Android Stick & Console AMLogic based Computers] beta.0:
Thanks for your contribution Ricky, these tools are awesome! I'm testing out the CustomizationTool and it doesn't seem to properly repack the Beelink GT1 Ultimate (3GB/32GB) Android 7.1.2 firmware properly. In the log all partitions are rebuilt/repacked successfully, zero errors or warnings, but when powered up it gets stuck on the boot logo. I didn't even make any changes just unpacked level 1 and level 2 and then repacked. Firmware can be found here: http://www.bee-link.com/forum.php?mod=viewthread&tid=41741

Update: Tried deleting boot, recovery and dtb folders from level2 before repacking so it uses the defaults and only packs the system partition but it still doesn't boot and I noticed the final image is about 200mb smaller than the original. Seems like it's not packing the system folder properly for some reason.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Thank you so much for this information, i read that the make_ext4fs_def.exe is required, however i still havent tried it, im gonna utilise this information and give it a shot, thanks for all your help and ill keep you updated on the progress
[Android Stick & Console AMLogic based Computers] Xannytech:
I'm happy to have been useful for you, ask me whatever you need, here or in P.M. ;)
[Android Stick & Console AMLogic based Computers] I1V1A1N:
I launched android 9 thanks patches Ataberkozen .But cheating slows down.Stars AOSP phhusson v108 and vanila .Inhibits mouse.

https://github.com/s1a1g1e1r1t/AOSP_android_9.0_Amlogic_s905x/projects
[Android Stick & Console AMLogic based Computers] I1V1A1N:
Version for linux Amlogic USB Burning Tool

https://github.com/Stane1983/aml-linux-usb-burn
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Just how important is sorting the file contexts? i also am unable to find a windows version of make_ext4fs_def or any source code, [MENTION=533180]carmine[/MENTION] did get a compile of the make_ext4fs with the extra arg but still not booting
[Android Stick & Console AMLogic based Computers] Xannytech:
;) Not technically important, it's a nerd thing.

https://github.com/rkhat2/android-rom-repacker/tree/android-8

About the stuffs you compiled but not working: could you check if permissions are ok in your System and vendor partitions?

Try also to remove the -T parameter for now.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I have tried all this, im absolutely stoked, close to 2 weeks with the same bug, ive never been this stuck before, not even when i reverse engineered amlogics unpacking method and build my own class, this is truly a big issue
[Android Stick & Console AMLogic based Computers] Xannytech:
Are you talking about recompiling partitions or compiling the make_ext4fs.exe?

Recompiling partitions is not different from before, i just upgraded the make_ext4fs, i got some issues at beginning myself two months ago, then i found Rkhat make_ext4fs_def.

Anyway to check what's working what's not, if permissions are ok and symlinking are ok, it should boot. In my experience if it shows bootanimation System partition is ok, then the problem is in vendor partition. Check the partitions mounting them under linux, and compare them to the untouched ones, permissions normally are unsetted.

If is you got issues on compiling it on windows, i have no clue because i cannot check your compiling environment and honestly i never used Cygwin to compile something, that's the reason i wrote to you to contact Jamflux 'cause he managed to compile a good make_ext4fs.exe.

Let me know, and if you need me to test your partitions or stuffs i'm here.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Great suggestion, i will add a properties file to store certain data :good:
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Not such a priority but ill see what i can do
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Tools have been updated, Few more features added aswell as fixes plus more support
[Android Stick & Console AMLogic based Computers] chenzen666:
sorry but this did not work for me on win10 pro build 1803 :(

i had to use ADB in cmd windows to push the TWRP recover onto my sunvell T95Z Plus unit.

all i get when using the flashtool is a window to put the IP addy into then it changes to a new screen and trys to connect then it just dissappears from the screen nothing ,nada ??

old v2.2 connected but got error pushing .IMG to device ??

but got it working anyhow. any ideas if i was doing something wrong ?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I'll go over the source code again, I updated last night fixing bugs with connectivity, after the connection dialog closes does the tool say connected at the bottom right?
[Android Stick & Console AMLogic based Computers] whiteak:
I tested again after seeing this, everything is working great for me, should be good to go.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Thanks for confirmation, Make sure every also thanks Whiteak for his contributions to the tools, we have been working endless nights to bring you these tools

Also [MENTION=8898246]whiteak[/MENTION] may have now found a way to resize partitions :good:
[Android Stick & Console AMLogic based Computers] algdu83:
I tried to convert a rom img to zip

he had done but once tried on the box it does not pass

But thnks for work
[Android Stick & Console AMLogic based Computers] user5863:
exeption error

With windows 10 (1803) flash tool of last version is not working again, generate the following error during connect:
[Android Stick & Console AMLogic based Computers] whiteak:
Did you guys get any Anti-Virus remove or quarantine anything when first opening up, I have Norton and it quarantined a few items on startup, I had to restore files and exclude. You may have already done it, but turn Auto-Protect off for 15 mins or so, and try everything from the beginning again, unzipping and trying again from the beginning just to make sure it is not a Anti-Virus interfering with the use of the programs.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
thanks to whiteak we can confirm modding partition sizes works fine!
[Android Stick & Console AMLogic based Computers] whiteak:
Not sure why it's not working for some of you, please make sure it's not your anti virus interfering. Here are some pics showing it working. I have the same setup, Windows 10 64 Bit, V1803.

https://ibb.co/cey5bT

https://ibb.co/hswK38
[Android Stick & Console AMLogic based Computers] AccaOC:
Nope, antivirus disabled, same error. I tried launching as admin, same error.

I can "adb connect ip", my adb version shows

Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android

I don't knwo which infos I can give, just ask.

Os Win 10 1803, the box is a goobang doo 7.1.2 A1 plus s905x 2g 16g (with partial root access), my box's ip in may lan is 192.168.178.41
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
try 192.168.178.41:5555
[Android Stick & Console AMLogic based Computers] AccaOC:
Nope. Same error.

Also I was trying to unpack an .img and the customization tool stopped working because of an path error to bootanimation.zip, I successfully unpacked another rom tho.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Is it an amlogic upgrade package?

ill check the CoolADB code
[Android Stick & Console AMLogic based Computers] AccaOC:
It was this image, I've opened it with 7z end extracted the .img that I fed to the tool.
[Android Stick & Console AMLogic based Computers] dunem:
Hi Ricky,

Very impressed with your efforts to make these tools.

I was hoping to make my own flashable firmware image for my TV box with my own preinstall apps and bootanimation / boot logo. I have done this successfully using your tool and have packed it into a zip file.

Now a question from a learner.... How can I flash it? I was previously using the Amlogic USB burning tool which has worked great ever since... Can I unzip the img files boot and recovery and burn one of those? If so, which one?

Thanks in advance, keep up the great work.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
we got a successful build of make_ext4fs.exe but i cant find any source code for make_ext4fs_def, yes its the vendor partition, no bootlogo shows, once i find the source for make_ext4fs_def or a windows build i may be able to know abit more

edit: Modding unpacking/repacking system works fine, vendor on the other hand doesnt work
[Android Stick & Console AMLogic based Computers] Xannytech:
the source code of Make_ext4fs_def is here: https://github.com/rkhat2/android-ro...tree/android-8

As you can read inside the Cmake:

# make_ext4fs_def
m_build_target(make_ext4fs_def make_ext4fs_def EXTRAS)
add_dependencies(make_ext4fs_def libz libpcre libselinux libsparse libcutils liblog EXTRAS-configure)

Anyway if System is builted well, Vendor partition has to work as well, try to use the Jamflux Make_ext4fs.exe

just for vendor

(assuming system is working) so you can check if is a ".exe" problem or whatever (make_ext4fs parameters, permissions, symlinking etc. etc.) so we can reduce the variables, i'm pretty sure vendor works using his .exe tested many times, for fast recompiling on windows without booting linux.

When i'll return to my house i'll post here the parameters he use in his kitchen (a little bit of reverse engineering but without any malice :p).

p.s.

link me your unworking partitions system+vendor i'd like to check them personally just to give a look on what's wrong.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
[MENTION=1496527]Xannytech[/MENTION] ill pack and upload a barebones version of my tool now, all works well however nothing boots, its pretty much any 8.x firmware with a vendor partition, ive tested on multiple devices

PM me and ill clean up the code now, its just a simple batch script for testing purposes so the code and methods are exposed, maybe you can see whats going wrong
[Android Stick & Console AMLogic based Computers] Xannytech:
ok Pm sent ;)
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I owe a BIG thanks to [MENTION=1496527]Xannytech[/MENTION] and [MENTION=533180]carmine[/MENTION] for all the help they have been, 6.0.0 would not have been possible without you guys, time to tidy up and get the build ready for public release!
[Android Stick & Console AMLogic based Computers] AlexFoxTm:
when we can test it?
[Android Stick & Console AMLogic based Computers] cnjax:
Damn dude let him build it first
[Android Stick & Console AMLogic based Computers] AlexFoxTm:
Ok sir :)
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Currently a small issue, SIMG2IMG is compiled but doesnt work for some odd reason, crashes when throwing an img through, i can either try compiling or i can continue with my unethical practices and keep the 2nd cygwin1.dll
[Android Stick & Console AMLogic based Computers] Xannytech:
;) you yet know my answer.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I got it :) just had to make changes to the source to enable cygwin compatibillity, i made the source available publicly aswell for anyone who wishes to build from source
[Android Stick & Console AMLogic based Computers] kiskaprince:
Thank you

Where can we get it?