yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] tedpoley:
Thanks! Unfortunately I'm not at all familiar with making an init.d hook. Googled it but didn't find a tutorial or guide that I could understand.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
find a shell script thts called from the kernel(usually inside init.amlogic.board.rc, then copy the file to /system/etc.init.d folder(if theres no folder, create one), the edit the orignal scipt and replace it with the contents of my preinstall.sh script contents
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Add this to init.amlogic.board.rc

service initd /system/bin/initd.sh

user root

group root

disabled

oneshot

Then save the file and go to /system/bin and create a file named initd.sh

Edit the file in text editor and paste this:

#!/system/bin/sh

mount -o remount,rw /system
chmod 777 /system/etc/init.d

for script in $(ls /system/etc/init.d)
do
chmod 775 /system/etc/init.d/$script
sh /system/etc/init.d/$script
done

And you're done, all scripts in /etc/init.d folder should work now :)
[Android Stick & Console AMLogic based Computers] Freeezy827:
I have the x96 max and I dont see init.amlogic.board.rc in the root of internal storage.

The files I see are

init.recovery.amlogic.rc <-------- (im thinking this is the one but please tell me if im right)

fstab.amlogic

init

init.environ.rc

init.rc

init.usb.configfs.rc

init.usb.rc

init.zygte32.rc

ueventd.amlogic.rc

ueventd.rc

The rest are folders.

Please will you let me know which file I am supposed to edit on my box?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
We are nearing another update!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
I am also considering distributing source built barebone 8.x firmwares for people to freely modify and use as a base.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
you need to unpack to level2 with my tool, go into tmp/level2/boot/ramdisk and edit the init.amlogic.board.rc adding the code provided by nayam
[Android Stick & Console AMLogic based Computers] Manssizz:
error click button

hello...

i found error when i click boot logo button

detail my error was sent to your email.

anw great job and thank you! :fingers-crossed:
[Android Stick & Console AMLogic based Computers] Freeezy827:
unpack what to level2? and with which one of your tools?
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Customisation tool
[Android Stick & Console AMLogic based Computers] Freeezy827:
Thank you for telling me what tool to use.

The customization tool tells me to select a file. What file do I unpack? The full firmware image? If so, that means I would have to reflash my firmware after?
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Yes obviously, you should watch a tutorial on YouTube first, it seems like you're new to this :)
[Android Stick & Console AMLogic based Computers] Freeezy827:
Yes I am fairly new to this, especially new to the customization tool. I do know how to flash my firmware using the usb burning tool and I have my correct firmware image though.

Will the new update that is coming allow me to extract the recovery and port twrp without needing to flash my box first to add initd? Then after porting twrp I would have to put the new TWRP recovery on a usb stick, plug it into my box, then boot my box into stock recovery, then select my usb stick to install my new twrp recovery?

---------- Post added at 11:00 PM ---------- Previous post was at 10:15 PM ----------

I unpacked my firmware image to level2 using your customization tool. I went into tmp/level2/boot/ramdisk, but there is no init.amlogic.board.rc.

I see all the same files in the customization tool as I was able to see using ES file explorer on my box since I'm rooted. Should I edit init.recovery.amlogic.rc then, since there is no init.amlogic.board.rc ?

Also, would'nt it be easier to just transfer the .rc file to my usb stick using ES file explorer and edit it, so I dont have to reflash my box?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Sounds more like your in the recovery partition rather than the boot partition
[Android Stick & Console AMLogic based Computers] Freeezy827:
I'm in the boot directory, not the recovery directory as you can see in the picture.

tmp/level2/boot/ramdisk

---------- Post added at 01:39 AM ---------- Previous post was at 01:21 AM ----------

Maybe it would help if I gave you a bit more info on my box.

I have a x96 max 4gb/64gb, amlogic s905x2, android 8.1
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Put it in init.rc, it really doesn't matter as long as the init script runs on boot.
[Android Stick & Console AMLogic based Computers] Elected:
Tried this method on Khadas VIM for Android N ROM - didn't work for me.
[Android Stick & Console AMLogic based Computers] deadlock9x:
I was try to change everything in system and vendor but still not work!
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Should have worked, if it doesn't, try to rename the service function to something else. Like service preinstall
[Android Stick & Console AMLogic based Computers] Freeezy827:
I put it in init.rc but still stuck at 40% patching recovery

then I renamed the function to service preinstall initd /system/bin/initd.sh

but still stuck at 40%

then I renamed it again to service preinstall /system/bin/initd.sh

and Im still stuck at 40%
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Patching recovery? I'm sorry but I'm not familiar with that. It's been long since I used the tools, but why does it say recovery? It should be the kernel that should be edited.

Also, try editing the init.rc files in /root of your device directly instead of patching the kernel.

You can also try this: https://xdaforums.com/showthread.php?t=1933849
[Android Stick & Console AMLogic based Computers] Freeezy827:
it says patching recovery because Im trying to port TWRP to the recovery pulled from my device.

I'll have a look at the link you shared. Thank you.
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
I have never used the twrp porting option. The best you can do is, 1. either use a pre-compiled recovery made for your chipset 2. Port twrp using the sources.

1st option is easy, just search for your processor's twrp img file and flash it.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Your using the wrong tool..
[Android Stick & Console AMLogic based Computers] Freeezy827:
I'm using your AMlogicTools v6.0 Amlogic flash tool. What tool should I be using please? I thought you said one of your APIs were broken in v6.0 and you are working on it and that there will be an update soon which fixes the API for porting twrp to recovery pulled from any device because it sticks at 40% at the moment, as well as the update will have a fixed zip flash method. I assumed you were talking about creating an init.d hook as a work around for v6. 0 encase we didnt want to wait for the update. Should I just wait for the update? Or can you let me know what tool to use? Thank you for trying to help me. I appreciate all that you do.
[Android Stick & Console AMLogic based Computers] arnisv:
i have trouble packing img. I get 360 mb but it should be 1.3 gb
[Android Stick & Console AMLogic based Computers] woodsy45:
Hi Freeezy827 looking back at your earlier posts I think a bit of confusion has crept in. If all you wish to do is install TWRP to your X96 then forget all about init.d and using different tools as that will not help you at this stage.

I am assuming your X96 hasn't been bricked and is still in working order. If so then download twrp.u211-3.2.3-1-signed.zip from here (this is courtesy of Magendanz)

https://1drv.ms/u/s!AoqocX31ecnXgbIdSaKxLK3e-SPboA

once you have downloaded this DO NOT extract but COPY to either a USB Flash drive or an SD card that has been formatted to FAT32. The rest of the operation is pretty straightforward

1) Plug in your flash drive or insert SD card in slot and open Update & Backup app from App Drawer.

2) Choose Select in UpdateLocale (second section down) and select your zip file

3) Press Update and again in pop-up box and hopefully after that has completed its operation you will have TWRP installed.

I would mention that it is very useful if you have a Power Menu to enable you to reboot into Recovery from the desktop, I use this one (three dots at bottom to customise).

https://apkpure.com/power-menu-root/ru.littlevictor.powermenu

the other alternative is a Terminal Emulator just type in 'reboot recovery'.

Forgive me if I am wrong but if you haven't used TWRP before you need to select and swipe so using your remote is out. You need a mouse either wired or wifi with dongle or a mini keyboard like a Rii, so if you are using a flash drive plug it into USB2 and the mouse or whatever into USB3 port..

This is the most straightforward way to install on standard firmware, if it shouldn't work for you we will have to look at alternatives.

All the best
[Android Stick & Console AMLogic based Computers] Freeezy827:
Thank you very much. That worked for me.

But what is the option I was trying to use in the v6.0 flash tool for? I was hoping I will be able to make a twrp recovery for any box in the future. Or can you tell me what tool I use to do that please?
[Android Stick & Console AMLogic based Computers] Satmedia:
Change remote.conf ok, BUT after "Power off" no "Power on" possible

Hi,

we edited a original firmware with your great tool and changed the remote.conf to an other one. Works perfect, BUT after shut down the box, it is not possible to "power on" the box (TANIX TX3) with the new remote.

With original remote, "power on" is possible.

So the Power On is stored somewhere else (bootloader, kernel ?)

We searched a lot of threads, but found no solution. Do you have an idea?

Regards, Roland
[Android Stick & Console AMLogic based Computers] I1V1A1N:
If android 8 - /vendor/etc/remote.tab1 , remote.tab2
[Android Stick & Console AMLogic based Computers] Satmedia:
It is Android 7.1 version. But thanks for info for Android 8. I will notice for other (newer) boxes!
[Android Stick & Console AMLogic based Computers] caliban_freak:
I´ve got Problems with Repack to zip. The program is at level 1 Repacking upgrade zip, but don´t get ahad. The Icon at the Right Side is moving, but the Program don´t get done. Stuck on upgrade zip. Try to start the Programm at win 8 modus doesn´t help. Can i make a .zip file of the image manually?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Thank you, you flash the .zip through custom recovery
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
okay, downloading now,for anyone having any issues with 3.5.0, download these files from here and put them in the same directory as AMlogicFlashTool.exe

https://github.com/Ricky310711/ADB-Fastboot-Tools
[Android Stick & Console AMLogic based Computers] AccaOC:
It connects now; connect button goes grey, on the bottom right there's a green "connected".

I tried to port TWRP but it failed with error "Failed to unpack recovery", maybe 'couse my box has partial root access and it needs a su shell?

I was researching informations on the root issues I have with this box, it has the UPDATE&BACKUP app (com.droidlogic.otaupgrade), can I feed SuperSU-v2.82-201705271822.zip to it to root the box? If so I'll have my box "fixed" and can continue testing this tool.
[Android Stick & Console AMLogic based Computers] knxwille:
I recommend magisk instead supersu

Huawei P9Lite The Iphone killa :)
[Android Stick & Console AMLogic based Computers] chenzen666:
the tool did not even start just the connection box have re-downloaded and it now shows but no connection (just getting the extra files so will edit this later)
[Android Stick & Console AMLogic based Computers] AccaOC:
Was your comment a suggestion on which app tu flash *only* or where you implying that what I said was right (using UPDATE&BACKUP to install supersu/magisk/whatever)?

Btw I don't wanna take over this thread, I as looking for help in this thread
[Android Stick & Console AMLogic based Computers] knxwille:
Do not use supersu it is very problematic with amlogic devices. Use magisk16. install it with twrp and after boot install magisk manager app. You can find it in xda

Huawei P9Lite The Iphone killa :)
[Android Stick & Console AMLogic based Computers] AccaOC:
I tried, everything fails; I have the error in the thread I linked in my previus post.

I don't want to spam Ricky's thread with my issue.
[Android Stick & Console AMLogic based Computers] Twisted714:
thanks for making these tools, i didnt crash once when i opened each tool.

I am still ignorant on how to build a rom, but basicallyi would load my original factory image, change the parts of the system that need changing, and hit the compile button.

does that sound about right?

again nice job
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Exactly, for additional modification you can use the produced zip, so extracting the /system folder, mod anything the tool doesnt include, the simply drag, drop and overwrite system folder inside zip
[Android Stick & Console AMLogic based Computers] flipmode_11:
Do you mean "select and deselect" what files to write, from a package?? That would be great!

Excellent work mate. Very impressed. $10 coming your way!

Please add more info in OP so people know requirements, device requirements, A/V and common issues, remove old drivers (?), etc...

Perhaps have a diagnostic tool to examine the system to determine issues - given people get a lot of those .net errors (above). Something to extract important data to allow users (and you) to more easily diagnose errors.

:cowboy: :fingers-crossed: :silly: Thanks mate!!! :good: :good: :good:
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Yes, will also be adding the abillity to write more files soon like DTB, Bootloader etc, Im also adding the possibillity to change partition sizes to compensate for bigget internal storage, next version will also include a Wifi preservation tool, so when flashing roms that do not have wifi working, simply flash the package and BOOM, you have working wifi!

EDIT: Also, there are no requirements other than .net framework 4.5(supports windows 7>10), all these tools are built to work with any device and any AMLogic firmware

Thanks for donation also!
[Android Stick & Console AMLogic based Computers] PTHugo:
Hey Ricky how you're doing, thanks for this just to let you know that I got it, I'm still at work here, I'll look at it as soon as I get home, talk to you after , many thanks once more
[Android Stick & Console AMLogic based Computers] derwoodbones:
Getting error any suggestions ?

I am using a Dell Latitude Quadcore with 8 GB Ram and an SSD I use solely for Amlogic firmware, Been using Amlogic Customization Tool 2.0.10 without issues, However when I try to unpack a FW using your utility i get appcrash with this info, Any thoughts to why ?

Problem signature:

Problem Event Name:	APPCRASH

Application Name:	ImgExtractor.exe

Application Version:	0.0.0.0

Application Timestamp:	2a425e19

Fault Module Name:	KERNELBASE.dll

Fault Module Version:	6.1.7601.24094

Fault Module Timestamp:	5abee073

Exception Code:	0eedfade

Exception Offset:	0000c54f

OS Version:	6.1.7601.2.1.0.256.48

Locale ID:	1033

Additional Information 1:	dcbc

Additional Information 2:	dcbc5999e7d3c1458fd8b3f627e663fb

Additional Information 3:	0e79

Additional Information 4:	0e79d3640f084062da99ae6a51b2c64a
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
make sure its in the format of an AML upgrade package(firmware for USB burning tool), if it is, send me a link to the firmware and ill get ontop of it
[Android Stick & Console AMLogic based Computers] flipmode_11:
Phwoar!!! Wow! I can't wait Ricky!

p.s. I cannot decide on a new box. RK3399 or RK3368 or S912. What do you recommend if money didn't matter? (obviously not the nVidia) :confused:

What sort of box do you need? I have a S905x 1GB if you want?

Cheers!
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Well the more the better, ive been thinking about making anS905 firmware of Poison seeing how popular it is for S912 devices, personally i prefer the S912 firmware, less bugs and less of a hassle to do stuff.

The T95Z is a great box but ill be honest, X92 is probably best i have seen
[Android Stick & Console AMLogic based Computers] bluburmac:
Hey ricky, i'll send you a H96 pro-h3 dongle if you can hook me up with a custom rom
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
for what device would you like the rom for?
[Android Stick & Console AMLogic based Computers] bluburmac:
Same model.

I've got a fair few of em to set up for family and friends but the stock firmware is glitchy as hell

i'll shoot u a pm with my email. i'm not on here all that much
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
yes, this is an issue i have resolved in the upcoming version
[Android Stick & Console AMLogic based Computers] caliban_freak:
When did it come out?

Gesendet von meinem SM-G955F mit Tapatalk
[Android Stick & Console AMLogic based Computers] Satmedia:
Hope you find a solution for "power on" with a custom remote control.

Regards Roland
[Android Stick & Console AMLogic based Computers] ssurell:
Porting TWRP

What a wild goose chase that was. The OP features TWRP porting and image repacking, but apparently both features are broken. I was hoping I could do something substantial with this tool that I couldn't do already. I'll try flashing the generic S912 TWRP image to my T95K Pro since it's smaller than the factory image and see what happens.

edit: Tool says "flash success" but won't reboot into recovery. I can reboot into recovery from normal adb, but still has stock recovery. The tool unpacks factory image files nicely, but everything else I've tried seem broken.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
The only 2 things that are broken in the free version is zip repacking and a make_ext4fs issue preventing some 8.0 firmwares from repacking correctly, theres also a bug in the UI tab, however doesnt effect the tools use, the donate version is at 6.6.0 with all issues besides the zip repacking fixed, and that could be done quite easily with simple additions to the code

Anything else thats causing problems i hate to be the bearer of bad news but it would not be the tools fault.

The recovery porting isnt very efficient or ethical, i added this feature in the FlashTool but proved to be a hit and miss with support for only some S905x and S912 devices, unless you can obtain the Amlogic kernel source, have a computer powerful enough to handle compilation and successfully build a recovery yourself from source what your asking is alot for someone whos not getting paid to maintain this project.

Edit: the flash tool is obsolete, ive made major adjustments to the code and attempted to make recoveries without source, so thats pretty much been scrapped for now.
[Android Stick & Console AMLogic based Computers] haksam:
just a heads up, for anyone who wants proper repacking from img to zip, avoid v 6.0 and use 5.5.0, the older version works flawlessly.

*update* nvm zip file isn't flashable at all, updater process error 6
[Android Stick & Console AMLogic based Computers] I1V1A1N:
Here we discuss error 6 in twrp

https://xdaforums.com/general/help/twrp-error-6-t3328958
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Zip packing is fixed in donate version and will be fixed in 7.0.0

Im just abit caught up making a similar tool for rockchip devices
[Android Stick & Console AMLogic based Computers] caliban_freak:
Do u know when the version 7 is comming out?

Gesendet von meinem SM-G955F mit Tapatalk
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
V6.6.0 donate version is already out, i havent made the free version because im caught up making rockchip tools, maybe in a month or two
[Android Stick & Console AMLogic based Computers] Katz59:
meson1.dtb

Is there any way I can snag this file for T95Z Plus?
[Android Stick & Console AMLogic based Computers] caliban_freak:
Can i make a flashable zip from an img file? Like to put poison rom on my h96 pro plus,but it is a img file witch is only flashable with usb burning tool. But with that programm the flashing stops at 7% every time i try it

Gesendet von meinem SM-G955F mit Tapatalk
[Android Stick & Console AMLogic based Computers] Katz59:
Thats what Im trying to correct is the freezing at 7% issue.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
For any of the donators, im aware of the vendor partition sizing issue effected only with some firmwares, im working on a fix for this as we speak and will push it out as soon as complete, ive also been working hard on firmware dumping and the next version may include this tool
[Android Stick & Console AMLogic based Computers] chiefcho34:
Nevemind, solved.
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Ive begun releasing a VERY early stage firmware dump utillity for some of the donators who have requested to test, still work to be done but majority of the partitions are able to be dumped, having some issues interrupting the boot sequence however
[Android Stick & Console AMLogic based Computers] Eliminater74:
This might be a dumb question, and I read through most messages and so on, I didnt read all.. might have even missed this, I also checked out all the tuts I can find..

but, I need to know how to use this tool to connect to my box through TCIP, since USB regular mode like any android phone/tablet can use.. Wont work.

I can only connect through TCIP.. anyhow.. when I hit connect on the TOOL, it loads up another box saying KILLING ADB..... Pretty much.. but never anything else.. it just kinda sticks there..

I cant even kill that box or the tool without using task manager and killing it manually.. And I did install the drivers.. and I can connect adb through TCIP manually with no problems..

I just cant seem to get this tool to work.....

My box is a Skystream 3 Plus (Fully Rooted which is default anyhow) and I know I can connect TCIP manually, Just cant seem to connect with USB or using this tool............

any Help would be appreciated.. Hope nobody rags on me for such a dumb question, and trust me. I feel dumb asking it..

I never worked with devices like this before... and I dont know much on the Chipset.. I work mainly on Qualcomm and So on....

so please bare with me if I dont understand..............
[Android Stick & Console AMLogic based Computers] I1V1A1N:
There are Rx ,Tx, Gnd outlets on Khadas boxes.Why do they forget the good old ones?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
this is a bug in the obsolete flashing tool, it has to do with my coolADB utillity
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Also, has anyone found a commandline utillity or successfully manually edited the bootlogo manually with the image distortion?
[Android Stick & Console AMLogic based Computers] arikatso:
problem when repack

[IMG="screenshot error"]https://i.ibb.co/QJY9p3D/screenshot.jpg[/IMG]

the crazy thing is that the error is displayed when I try a specific firmware. When I try to unpack and repack the .img without change anything at all the error message also is displayed, strange. Is there any "lock" of the firmware that I use? Is it possible? when i use the stock firmware of the device (x96 2-16 s905w) unpack and repack is successful (either make changes or not) , but my problem in this case is that there is an error in usb burning tool at 98% with system verify error (something like that) . any ideas?
[Android Stick & Console AMLogic based Computers] Ricky Divjakovski:
Please link me to the firmware