Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

July 31, 2015

How to extract a dts from an Android Phone

How to extract a dts from an Android Phone

1) Get its boot.img

    $ adb pull /dev/block/bootdevice/by-name/boot boot.img

2) Find out which dts is the device using

    $ adb logcat # the device's boot process, watch the first few lines.
   
3) split the boot.img in its components

    $ # wget http://www.enck.org/tools/split_bootimg_pl.txt -O split_bootimg.pl
    $ split_bootimg.pl boot.img
  
4) Look for the correct dtb on the boot image

    a) hexdump -C -v boot.img-dtb |less
    b) On this hexdump, search for "d0 0d fe ed"
    c) there are probably several occurrences, choose the one matching what the device is using (point (2))
    d) take note of the address where it is
   
5) convert the address from hex to binary

    $ # https://github.com/ARivottiC/aliases.sh has conversion aliases
    $ hex2dec address

6) extract the correct dtb from the bunch

    $ dd if=boot.img-dtb of=correct.dtb bs=the_result_from_5 skip=1

7) convert dtb to dts

    $ # look for dtc on the $OUT of an android build
    $ dtc -I dtb -O dts -o correct.dts correct.dtb

November 20, 2007

Links for today

http://www.adweek.com/aw/iq_interactive/article_display.jsp?vnu_content_id=1003674850
MySpace starts thinking about ad-supported music, with a model that I don't really like, and I don't really believe in its success, even if they have the scale-factor...

http://www.readwriteweb.com/archives/spiralfrog_looses.php
SpiralFrog, another ad-supported music website, lost $3m in 3 months, but again, I never found their model interesting...

http://www.techcrunch.com/2007/11/20/the-google-set-top-box-think-android-for-tv/
Google aiming for IPTV? Are they going the "Android for IPTV"? Most importantly, what's the underlying business model?

http://www.noooxml.org/forum/t-27501/portugal-will-send-microsoft-to-the-brm
I'm getting more and more ashamed of being a Portuguese, when I see that this country is letting Microsoft use us as puppets... Microsoft will represent Portugal in the vote to approve their own format (OOXML).

http://hypebot.typepad.com/hypebot/2007/11/exclusive-int-1.html
It's not a secret that I like ReverbNation. If you want to know more about it, you might like to read this interview.