Can anyone please help on how to extract the .dtb file from an Android TV Box while still running on its Android OS?
If the box is rooted, install X-plore on the box and copy the image from “root/dev/dtb.img” anywhere you want.
If you still have Android installed, you can boot CE from USB/SD and type
dd if=/dev/dtb | gzip > /storage/downloads/dtb.img.gz on SSH, you can then download it from the Downloads folder.
This would be a good “How To” addition.
Wow, I never knew even an Android TV Box does come with unrooted (customized). Anyway, assuming for the worst case where the TV Box is not rooted, is there a better way to do this thing on a non-rooted Android TV Box?
If I can boot this TV Box with CE, don’t you think doing the above from a /dev/dtb of running CE will just grab the CE (not Android) dtb file? Unless they are identical, I am interested in getting and/or extracting a dtb file from a non-rooted Android TV Box.
Why would you need that?
I’d root it first
Poida, I’m not sure how to pin the topic. Can’t seem to find a way.
Not sure what you mean, you don’t know how to open a new topic (or asking how to pin a topic that you’ve opened)
Making a new topic in the HowTo’s section would be the most ideal, that way everyone it is relevant to can find it easily.
How to pin a topic so that it remains on the 1st page of the category. Ie this one might be valuable as a pinned topic under How To.
Only moderators and admins can do this.
is creates 256kb DTB file
DTC gives error:
root@unraid-debian:/dtc# dtc -I dtb -O dts -f k5.dtb -o k5.dts
FATAL ERROR: Blob has incorrect magic number
It’s maybe gziped or encrypted.
i extracted the file and its not encrypted
k5.dtb (256 KB)
ohh nice i have to doo dtbSplit first then i have a 2 and a 4g dtb
It’s than Amlogic multidtb format.
You can use fdtget/fdtput on a CE device as they support this format.