yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] joaoantonioe:
can't access recovery for flash stock rom

I have the same problem.

I flashed the rom via sd card, I can use it, but I want to go back to stock, because an app didn't work (where it worked in stock)

I installed the recovery stock by twrp (flash ok), but I can't enter recovery anymore (it gets stuck on the android tv screen)

I also tried using the reboot to libreelec app and tried it via terminal (reboot recovery and reboot update) but without success.

I tried to flash the recovery twrp via the original app twrp, and rashr, however when restarting for recovery, caught on the android tv screen

I also tried to do the flash via USB flash drive, but without success.

result: i can't go back to stock rom

I don't have the male x male usb cable

me box is mecool m8s pro plus (with s905x)

any suggestions on how to solve the problem?
[Android Stick & Console AMLogic based Computers] TheCitro:
Thanks for replying. I've sent a PM with details. If you will need more info, please contact me and I will try to provide you with it.
[Android Stick & Console AMLogic based Computers] Meet Parmar:
Hi, I'm trying to flash this in my X96 Max which is X905x2. But as soon as I start burning, it ends with ' USB control setup error'. Pls help me.
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Hi, Sorry This Wont Work With S905x2 Devices
[Android Stick & Console AMLogic based Computers] Meet Parmar:
Now somehow my recovery is corrupted. Can you help me with stock recovery installation?
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
You would need to try firmwares for s905x2 devices and see if recovery works once installed, can be some trial and error to find one that everything works on, you need to use usb burn tool and if your device cant be detected by USB Burn Tool (bricked) then you would need to use "Mask ROM Mode" (usally by shorting 2 pins on your NAND/EMMC module but can be nearby :)
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Yes I can try, you said you deleted aml dtb? You would need to replace that file not just delete but you sound just like me a month or so ago trying to learn all this, you have the right idea about the files, I'm sure it was 3 files, dtb, ddr.usb & and uboot.usb, should only need to replace in Level 1, not on PC just now but think that's right

Also could be wrong, im no expert been at this a few month so still learning but im keen to figure this out with you
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Try my older ROMS see if they work with your wifi, i can then look at extraction and failing that porting my changes from v7 to my older ROM

https://drive.google.com/open?id=13nl7LyCy6PeqSE8Aa8z_TnUqCUtBWFH9

if they wont work (v4 &v5) then try

https://drive.google.com/open?id=1_2mVXNiillqqNMzY4AgaikKOGcfvNUoF
[Android Stick & Console AMLogic based Computers] varu:
Bang on, I just started researching this stuff two days ago after this box landed on my desk so I'm definitely playing catch-up! It seems no one's managed to roll a functional non-stock firmware for it, I'm sure quite a few people would benefit from a recent & optimized build, myself very much included.

The stock firmware doesn't use an _aml_dtb.PARTITION; instead it uses a file called meson1.dtb. The image.cfg is below:

[LIST_NORMAL]
file="DDR.USB"	main_type="USB"	sub_type="DDR"
file="UBOOT.USB"	main_type="USB"	sub_type="UBOOT"
file="aml_sdc_burn.UBOOT"	main_type="UBOOT"	sub_type="aml_sdc_burn"
file="aml_sdc_burn.ini"	main_type="ini"	sub_type="aml_sdc_burn"
file="manifest.xml"	main_type="xml"	sub_type="manifest"
file="meson1.dtb"	main_type="dtb"	sub_type="meson1"
file="platform.conf"	main_type="conf"	sub_type="platform"

[LIST_VERIFY]
file="boot.PARTITION"	main_type="PARTITION"	sub_type="boot"
file="bootloader.PARTITION"	main_type="PARTITION"	sub_type="bootloader"
file="logo.PARTITION"	main_type="PARTITION"	sub_type="logo"
file="recovery.PARTITION"	main_type="PARTITION"	sub_type="recovery"
file="system.PARTITION"	main_type="PARTITION"	sub_type="system"

In yours, the image.cfg includes the _aml_dtb.PARTITION under both headings:

[LIST_NORMAL]
file="_aml_dtb.PARTITION"	main_type="dtb"	sub_type="meson1"

[LIST_VERIFY]
file="_aml_dtb.PARTITION"	main_type="PARTITION"	sub_type="_aml_dtb"

If I rename meson1.dtb to _aml_dtb.PARTITION and replace it in yours (along with DDR.USB & UBOOT.USB), when flashing, I get the following error:

[0x30402004]UBOOT/Partition _aml_dtb/Initialize partition/Error result

I've attached the full log.

If I remove the LIST_VERIFY entry for it, it flashes successfully, but bootloops (red light).

If I also replace aml_sdc_burn.UBOOT from the stock image to yours, it flashes successfully, but bootloops.

If I also replace bootloader.PARTITION from the stock image to yours, it flashes successfully, but locks up at the boot logo (AndroidTV - Aidan's Custom Rom). To note, the SPDIF light is on at bootup, then goes off.

If I also replace boot.PARTITION from the stock image to yours, it flashes successfully, but locks up at the boot logo (AndroidTV - Aidan's Custom Rom). To note, the SPDIF light is on at bootup, then goes off, but goes back on - possibly getting further in the process.

This about reaches the limits of my knowledge / diag capabilities, until I solder up RS232 and get debug output. I will follow up once that's done.
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
yhea starting to reach the limits of my knowledge on the issue too, i think the next step is too see why your rom had a .dtb file and mine is a .partition file, try unpacking factory rom copy files from DTB folder in level 2, Unpack my rom and replace files in DTB (level2) then re pack & flash, its a layered hierarchy (I think) any changes in level 3 get packed into level2 and then those changes are packed to level 1, then its packed to the .img file to burn so my theory it that will re pack the correct DTB into the ALM DTB.partition file rather than the meson1.dtb file, let me know how that goes, its gonna be some trial and error :D

i would edit and upload but seems like you know what your doing and its a lot quicker for you to make changes locally and flash
[Android Stick & Console AMLogic based Computers] Walfilho:
I tested all the older RROMs with the same result(wifi turned off). :crying:

The stock rom had the wifi working. When i started to use some custom rom, the wifi never worked again. One option is return to the stock rom but the version available in h96tvbox.com seems to be corrupted.
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Honestly i think your best option would be to just used wired, most of the android boxes i have come across have awful wifi chips, the wifi card on my 2 current boxes works but both suffer from poor speeds, and constant drop outs, i would highly reccomend using ethernet, you can use powerline adapters to get wired internet to any plug socket thats what i use for tv box and my xbox

Like these

https://www.ebay.co.uk/itm/TP-LINK-...sh=item4dacdc0fab:g:VsgAAOSwxzheqm~s&LH_BIN=1
[Android Stick & Console AMLogic based Computers] Walfilho:
Thank you for your help! I will follow your advice.
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
sounds like the better option compered to factory ROM haha, very welcome :D
[Android Stick & Console AMLogic based Computers] badgerthedon:
Sorrry to be a pain, I've not used TWRP before. Where can I get it from? Is it easy to install?
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
No bother :)

My ROM comes with TWRP already installed, if you want root on my ROM you flash the magisk.zip from TWRP, to access TWRP you need to hold the reset button on your box (if its not obvious on bottom it will be in the 3.5mm AV port) and while holding plug power into box and keep holding, it will take a second and look frozen but it will the load TWRP, you need a USB mouse to use TWRP

just google your box make and how to acess recovery and it will tell you where your reset button should be
[Android Stick & Console AMLogic based Computers] g2mantap:
already check my cpu and motherboard thru CPU-Z...cpu no problem becoz it was S905-H, but the mobo was known as jurassicpark .....dont know what type is the wifi or other chip type

And this is the features from the net:

Detail	Brand	Xiaomi

Model	MDZ-16-AA

Codename	JurassicPark

Dimensions	Size	101x101x19.5 mm

Weight	176.5g

Color	Black

Basic specs	Output Resolution	Up to 4K 60fps

CPU	Quad-core Cortex-A53 2.0GHz

GPU	Mali 450 750MHz

ROM	4GB eMMC5.0

RAM	1GB DDR3 dual channel

OS	Android TV 5.0

Security	Widevine L1 + PlayReady 3.0

Wireless connectivity	Wi-Fi	802.11a/b/g/n/ac, Dual-band Wi-Fi 2.4GHz/5GHz

Bluetooth	Bluetooth 4.1

Video	H.265 HEVC MP-10 at L5.1, up to 4K x 2K at 60fps

H.264 AVC HPat L5.1, up to 4K x 2K at 30fps

H.264 MVC, up to 1080P at 60fps

Sound	DTS 2.0+ Digital Out, Dolby Digital Plus

Up to 7.1 pass through

Ports	HDMI	HDMI 2.0a x 1 port (HDCP 2.2)

USB	USB 2.0 x 1 port

AV	SPDIF Out / 3.5mm audio output x 1 port

Power	1 port

but here is the stock firmware of my mibox 3c https://androidfilehost.com/?w=files&flid=138561

hope u can integrate it with ur custom rom and i can test it for u
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
hi, would love to but unfotunatley from what i understand that is a chinese market mibox (us version was "once" and not "jurassicpark"), and when it comes to a rom for the mibox, it has a locked bootloader and as far as i know no one has a custom rom for it

Also if you were to root or flash custom firmware you would loose Widevine L1 (needed for netflix to work) and in my opinion wouldn't really be worth it :)
[Android Stick & Console AMLogic based Computers] g2mantap:
actually right now im using modded rom which i get from here https://4pda.ru/forum/index.php?showtopic=399304&st=2460 (need to use google translate coz is was in russian)

but it just stuck with android 5.1 only...i really wish to upgrade to android 7.0
[Android Stick & Console AMLogic based Computers] fragpic:
Would this work with an x96 mini? It has an S905W chip
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
No sorry this is for S905X only
[Android Stick & Console AMLogic based Computers] blockernew:
Works well on Leelbox Q2 (standard -> not mini -> not pro) s905x platform

Hi, I want to thx Aidan for his good job. I tried several firmwares for my Leelbox q2 (it came with an own image 6.0.1 that was impossible to use after several years - product dated 2017). Now the Android tv box works very well and I didn't need to modify anything......

thx again Aidan.
[Android Stick & Console AMLogic based Computers] doctoralex:
delete
[Android Stick & Console AMLogic based Computers] pfornaro:
Hello dude, thanks for your work, this rom seems really smoother than atv. Anyway I'm having issues on entering twrp to flash magisk, I'm keeping the reset button while pluggin the ac power but it doesn't detect anything, it boots normally. There's anything I can do about this? I really need root on this rom
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Hi, i had this issue originally so i had to replace the recovery in this rom so i could get into recovery (my button did nothing also), if you have a ROM that has a working twrp i can try replacing it in my ROM but no guarantees as im still learning :)
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
oops
[Android Stick & Console AMLogic based Computers] Duck4Cover:
I have installed this on my MXQ Pro 4k but I do not seem to have a connection to internet. I am hardwired in rather than using wifi. I have downloaded and installed via filelinked but main screen and other apps do not seem to get a connection.

Anything I have missed?
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
That's strange on my mxq pro 4k I'm hardwired too, so filelinked works but main screen has no connection? Not sure what you mean And what apps are you seeing these issues in?
[Android Stick & Console AMLogic based Computers] Duck4Cover:
Sorry all sorted just rebooted and it is now working. Not sure what I did.
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Ahh somtting random must of crashed and reboot sorted it, happy days
[Android Stick & Console AMLogic based Computers] CarloHD:
Hi! I think I have found a problem, I tried to search on the thread but found nothing. I tried to connect my Redmi Airdots S headphones, and the audio skips, the connection is stable. I tried to use a single headset instead of both and the situation got worse by reducing the time between a jump and the other, and i'm connected to a 5ghz wifi...

What can I try to resolve? Maybe the Bluetooth 4.1 patch can resolve this problem?

The rom is 7.4 Nexbox buid flashed on Nexbox A95X with 2 / 16GB
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Hi, I never had skipping in bluetooth, the patch might be worth a go, I've never used it and also depends what wifi bluetooth chip you have, I would try it and if it dosnt work reinstall, first boot into recovery and make a TWRP backup, then when you reinstall the firmware from fresh you can restore the backup an be where you were :)
[Android Stick & Console AMLogic based Computers] CarloHD:
do you think that if I restore the backup directly there is a risk of brick? EDIT: I tried and all gone fine.

EDIT: ok with the bluetooth patch, bluetooth stop to working... where i can see/read the wifi/bluetooth chip model?
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Yhea just restoring backup should work actually, and only way to tel for surel is to open your device and check what's printed on up your wifi/BT module :)
[Android Stick & Console AMLogic based Computers] CarloHD:
well well... I think this is it "Fn-Link 8223A-SR F01019 1703"

any useful information about it?
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Thats Useful

So it Seems To Be QCA 1023 based

http://www.fn-link.com/product/25.html

this may also be known as QCA9377

https://www.google.com/search?q=QCA1023+android&rlz=1C1CHBF_en-GBGB897GB897&oq=QCA1023+android&aqs=chrome..69i57j33i10i160.5446j0j7&sourceid=chrome&ie=UTF-8

You Could Try My Android 9 QCA9377 Version this may work for you, i will add this wifi chip for possible fix in v7.5 for android 7 :)
[Android Stick & Console AMLogic based Computers] CarloHD:
I'll try as soon as possible, hope it works! thanks sooooo much for support!

I'll give you news
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
V3 coming soon should be able to upload tomorrow
[Android Stick & Console AMLogic based Computers] CarloHD:
i tried v3 ... it's beautiful, and ... wifi and bluetooth work great! audio from bluetooth headphones does not skip! perfect! but ... I found a couple of bugs / shortcomings, do you prefer that I write them to you in the specific thread of the version with android 9?
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Yhea android 9 post be ideal, help others with same issues ideally :)
[Android Stick & Console AMLogic based Computers] CarloHD:
Ok. While for the wifi / bluetooth drivers I'm waiting for v7.5.

or is there a way to put drivers in system files? maybe just for test
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Best option is to try android 7 roms see if wifi/bt works, then can look at adding the files from system/ect/lib and system/ect/wifi into 7.5
[Android Stick & Console AMLogic based Computers] hifiashish:
just installed 7.4 release on nexbox A95x (2gb version with rtl chipset) - bluetooth not working - does any one has any fix for this?
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
What is the full model of RTL Chip you have?, Alot of RTL Chips Are Wi-Fi Only but removing the Bluetooth option from the menu will break Bluetooth for everyone else :)
[Android Stick & Console AMLogic based Computers] hifiashish:
it is rtl8723bs - I believe all nexbox a95x have this chip only
[Android Stick & Console AMLogic based Computers] Ewmh:
First of all, Thanks, Aidan for this excellent rom. It works amazing on my 1Gb T95x tv box, there's a lot difference from the stock firmware that was very unstable and slow.

I have a question : is it possible to change this loading icon?

[IMG="loading"]https://i.ibb.co/FwkYrnS/Screenshot-20201121-222535.png[/IMG]

I'd like to use the android stock loading animation.

Thanks and sorry for my English.
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
I Dont Recognise That Arrow, Do You Mean This?
[Android Stick & Console AMLogic based Computers] Ewmh:
I mean the animated icon that appears when some app is performing a task, for example when a video is loading. Like this:
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
What App Are You Seeing This in? Or Is It Something To Do With The System? i have never seen those 2 specific Animations (@ND One Looks Similar To MX Player Though, Are You Asking About The Firmware Or Just in General Asking About Changing A Lording Animation Inside An App?

If Your Asking About Changing Animations inside An APK then i assume it would be possible, i haven't changed animations but they are probably broken down into a series of steps inside the apk, Similar to frames of a video file or a bootanimation.zip file (Have A Look Inside One Of These For An Idea)
[Android Stick & Console AMLogic based Computers] Noter2017:
I'm running 7.1 on my Mecool M8S Pro+ and so far everything is good. Is there a way to update the ROM to 7.4 or do I have to do a clean flash?
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Hi Clean Flash Would Be needed :)
[Android Stick & Console AMLogic based Computers] barbarossa 21:
Thanjs
[Android Stick & Console AMLogic based Computers] UltimoCavaleiro81:
I have MINI M8IIS Tv Box with S905X, AP6212, unfortunately it does not detect the image after connecting and uploading ROM Android 7, wit USB Burning Tool, I don't have a physical NAND chip so I don't really know which pins to short ... please help! Any ideaView attachment 5148713View attachment 5148717
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
View attachment 5148749

Open the buning tool load the Ap6212a version (that's that it look like in the picture on the wifi chip but you will need to double check) Short those 2 points at the same time as connecting your device to the computer, once you hear the pc detect the box and start flashing you can let go of the short it shouldn't take longer than 1 or 2 seconds
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Those points look empty in the picture
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
View attachment 5148815
[Android Stick & Console AMLogic based Computers] Ewmh:
In the screenshot I'm using mx player but I see it in every app, even in the power menu (power off, reboot) that's why I think it's a firmware graphic. It's not important, I just was curious about that. Thanks.
[Android Stick & Console AMLogic based Computers] abdullahayed1985:
Hi Aidan, appreciate your help to know which pins I should use to detect my box at pc .

I've uploaded my box board photos

https://ibb.co/jk61mmb

https://ibb.co/SKS3Ktf
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Try these pins, top one is using the same board as you but diffrent EMMC module says to short pin 6&7, 2nd picture shows to short pins 7&8 so this will probably be the case for you, can see you have exposed pads down both sides of your Samsung EMMC/NAND so this looks like it will work

View attachment 5149301View attachment 5149303
[Android Stick & Console AMLogic based Computers] UltimoCavaleiro81:
Thank You ;-) successfully uploaded your rom, everything works successfully uploaded your rom, everything works, remote control and bluetooth. I am very grateful to you
[Android Stick & Console AMLogic based Computers] soliditalstud:
hi there

i was running 7.4 on my XPL3000 however ran into issues with wifi not working at all and Ethernet kept dropping not to mention IPTV function for recording stopped. So I wanted to revert back to my stock firmware

luckily I had a backup. I tried to resto, it did successfully but as you can see not everything restored. Looks like several partitions are missing. When the box booted, it got stuck on the boot logo. Toothpick method doesn’t boot me into recovery. I end up having to short the pins so I can flash ur ROM again using USB burning tool. Any suggestions? Is there a way to recreate these partitions?

I ended up buying a USB to TTL just in case but I’mafraid that if I wipe everything on the eMMC with putty, I might not be able to boot anything. I think the partition structure is messed up

View attachment 5151777
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Happy Days Enjoy :D

Hi, For a TWRP Backup To Work Generally Advised To Only Restore A Backup Form The Same Firmware It Was Made On, You Would Need To Try And Hunt down A Factory IMG, Install That Then Restore Your Backup, Also Are you Using The Same TWRP version the backup was made on (Eg Temporary TWRP) i have seen similar issues on my device when trying to downgrade to android 7 frome 8+, i Had To install A Android 6.0 ROM to sucsesfully boot my android 7.1 again, Seems Like Partition Changes in android 9 & 7 Would Cause it To not boot and the conclusion i arrived at was the android 6 firmware burned using usb burn tool fixed any partition issues, i Have a Copy of The 6.0 rom i used to fix my issue although i used burning tool the issue seems simmilar so may be worth a try if you are geting nowhere, Im honestly Not Sure About Wiping the NAND using ttl, I Was under The impression Tham Mask ROM Mode Was Functionally Equivalent :)
[Android Stick & Console AMLogic based Computers] soliditalstud:
so I have an IMG file and tried to burn it via USB Burn tool but get the “parse image fail” error

i wouldn’t mind trying what u did with 6.0 then upgrade to the IMG file I have to see if it works after. I backed it up originally via twrp 3.1 (temp version - booted via stock recovery) I had tried that the other day using the same twrp but wouldn’t restore
[Android Stick & Console AMLogic based Computers] soliditalstud:
So I a was able to restore

i used the temp twrp again in your twrp and managed to restore all partitions. Finally

thanks for reminding me about the twrp being specific to the build/rom versions of android
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
Awesome Glad Your Back Up & Running :D
[Android Stick & Console AMLogic based Computers] asdf2002:
Regarding the problem that it's not possible to reboot from SD card anymore, I have found the following bit of code:

uboot-amlogic/common/cmd_bcb.c at 35d0abeb8f232ee939b0547b0f5b5622ce44059a · Stane1983/uboot-amlogic

U-Boot for Amlogic devices, from 18-Dec-2017 buildroot archive - Stane1983/uboot-amlogic

github.com

I have no idea if this is the same U-Boot code that's used in the newer Android 7 images, but it could explain why these systems cannot reboot from SD card anymore. When a "reboot recovery" happens, it runs "run recovery_from_flash", but not "recovery_from_sdcard". I have no access to the U-Boot code that's used in the Android 6 stock firmware, but looking at the U-Boot image file, I can see that it's different. Aidan, do you have access to the U-Boot source code in your build? I'm not very experienced with this, but maybe it's possible to change this code to allow SD card booting again.
[Android Stick & Console AMLogic based Computers] aidanmacgregor:
That Very Well could Explain It, I Don't Have U-boot Source unfortunately although it may be worth looking into :)