{"id":6330,"date":"2014-08-29T14:11:30","date_gmt":"2014-08-29T12:11:30","guid":{"rendered":"http:\/\/daniel.haxx.se\/blog\/?p=6330"},"modified":"2014-08-30T22:50:53","modified_gmt":"2014-08-30T20:50:53","slug":"flatfish-bluedroid-fix","status":"publish","type":"post","link":"https:\/\/daniel.haxx.se\/blog\/2014\/08\/29\/flatfish-bluedroid-fix\/","title":{"rendered":"Firefox OS Flatfish Bluedroid fix"},"content":{"rendered":"<p>Hey, when I just <a href=\"https:\/\/wiki.mozilla.org\/FirefoxOS\/TCP\/Patching\">built my own Firefox OS (b2g) image for my Firefox OS Tablet (flatfish)<\/a> straight from the latest sources, I ran into this (known) problem:<\/p>\n<blockquote>\n<pre>Can't find necessary file(s) of Bluedroid in the backup-flatfish folder.\r\nPlease update the system image for supporting Bluedroid (Bug-986314),\r\nso that the needed binary files can be extracted from your flatfish device.<\/pre>\n<\/blockquote>\n<p>So, as I struggled to figure out the exact instructions on how to proceed from this, I figured I should jot down what I did in the hopes that it perhaps will help a fellow hacker at some point:<\/p>\n<ol>\n<li>Download the 3 *.img files from <a href=\"https:\/\/www.dropbox.com\/sh\/b2py1btcwstqldl\/AABM1TPRodkpaHzPGy0SYXfNa\/bluedroid?dl=0\">the dropbox site<\/a> that is referenced from <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=986314\">bug 986314<\/a>.<\/li>\n<li>Download the flash-flatfish.sh script from the same dropbox place<\/li>\n<li>Make sure you have &#8216;fastboot&#8217; installed (I&#8217;m mentioning this here because it turned out I didn&#8217;t and yet I have already built and flashed <a href=\"http:\/\/daniel.haxx.se\/blog\/2014\/08\/13\/im-with-firefox-os\/\">my Flame phone<\/a> successfully without having it). &#8220;apt-get install android-tools-fastboot&#8221; solved it for me. Note that if it isn&#8217;t installed, the flash-flatfish.sh script will claim that the device is not in fastboot mode and stop with an error message saying so.<\/li>\n<li>Finally: run the script &#8220;.\/flash-flatfish.sh [dir with the 3 .img files]&#8221;<\/li>\n<li>Once it has succeeded, the tablet reboots<\/li>\n<li>Remove the backup-flatfish directory in the build dir.<\/li>\n<li>Restart the flatfish build again and now it should get passed that Bluedroid nit<\/li>\n<\/ol>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey, when I just built my own Firefox OS (b2g) image for my Firefox OS Tablet (flatfish) straight from the latest sources, I ran into this (known) problem: Can&#8217;t find necessary file(s) of Bluedroid in the backup-flatfish folder. Please update the system image for supporting Bluedroid (Bug-986314), so that the needed binary files can be &hellip; <a href=\"https:\/\/daniel.haxx.se\/blog\/2014\/08\/29\/flatfish-bluedroid-fix\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Firefox OS Flatfish Bluedroid fix<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[393,22,6],"tags":[387,19,389],"class_list":["post-6330","post","type-post","status-publish","format-standard","hentry","category-firefox-floss","category-mozilla","category-floss","tag-firefox-os","tag-open-source","tag-tablet"],"_links":{"self":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/6330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/comments?post=6330"}],"version-history":[{"count":9,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/6330\/revisions"}],"predecessor-version":[{"id":6342,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/6330\/revisions\/6342"}],"wp:attachment":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/media?parent=6330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/categories?post=6330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/tags?post=6330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}