{"id":1103,"date":"2009-12-26T17:51:57","date_gmt":"2009-12-26T16:51:57","guid":{"rendered":"http:\/\/www.lorenzobraghetto.com\/?p=1103"},"modified":"2009-12-26T18:14:02","modified_gmt":"2009-12-26T17:14:02","slug":"compilare-android-eclair","status":"publish","type":"post","link":"https:\/\/www.lorenzobraghetto.com\/index.php\/2009\/12\/26\/compilare-android-eclair\/","title":{"rendered":"Compilare Android Eclair"},"content":{"rendered":"<p>L&#8217;aggiornamento ufficiale OTA non \u00e8 ancora arrivato (proprio ieri \u00e8 stato annunciato e dovrebbe arrivare a breve) mentre i sorgenti di eclair sono disponibili da tempo. Questo sta creando qualche problema ai developers della comunit\u00e0 anche se sembra che l&#8217;unica cosa non funzionante per ora sia la fotocamera.<\/p>\n<p>Nel frattempo volevo comunque aggiornare la guida per compilare Android, con eclair la questione firmware proprietari viene risolta da un semplice script bash gi\u00e0 presente al momento del download dei sorgenti.<\/p>\n<p>La guida rimane praticamente identica, scriver\u00f2 qua solo le motifiche da fare paragrafo per paragrafo oltre ad inserire un avviso nella <a href=\"http:\/\/www.lorenzobraghetto.com\/index.php\/2009\/08\/20\/compilare-android-preparazione-sorgenti\/\">guida vecchia<\/a>. Spero venga fuori qualcosa di comprensibile \ud83d\ude42 .<\/p>\n<h1 style=\"text-align: left;\">Preparare il sistema<\/h1>\n<p>Invariato, ancora java 1.5<\/p>\n<p><!--more--><\/p>\n<h1 style=\"text-align: left;\">Scaricare i sorgenti<\/h1>\n<p>Ovviamente il comando finale sar\u00e0:<\/p>\n<p><span style=\"font-family: monospace;\">.\/repo init -u git:\/\/android.git.kernel.org\/platform\/manifest.git -b eclair<\/span><\/p>\n<p><span style=\"font-family: monospace;\">con <em>eclair<\/em> al posto di <em>cupcake.<\/em><\/span><\/p>\n<h3 style=\"font: normal normal bold 2,5em\/normal Arial, Helvetica, sans-serif; color: #3b3632; text-align: left; padding: 0px; margin: 0px;\">Kernel<\/h3>\n<p>Invariato<\/p>\n<h3 style=\"font: normal normal bold 2,5em\/normal Arial, Helvetica, sans-serif; color: #3b3632; text-align: left; padding: 0px; margin: 0px;\">Download<\/h3>\n<p>Invariato<\/p>\n<h3 style=\"font: normal normal bold 2,5em\/normal Arial, Helvetica, sans-serif; color: #3b3632; text-align: left; padding: 0px; margin: 0px;\">File proprietari<\/h3>\n<p>Come ho gi\u00e0 detto ora abbiamo uno script che prende i file necessari! Diversamente dal passato per noi possessori di magic in vendor\/htc c&#8217;\u00e8 proprio una directory chiamata sapphire-open dove troviamo lo script. Lo script va a cercarsi il file zip dell&#8217;ultimo aggiornamento OTA (donut) che possiamo scaricare da <a href=\"http:\/\/developer.htc.com\/google-io-device.html\" target=\"_blank\">qui<\/a> (Android 1.6 recovery image) e che andremo a piazzare nella root dei sorgenti di android. Dopo questo possiamo avviarlo<\/p>\n<p><code>cd ~\/androidsource\/vendor\/htc\/sapphire-open\/<\/code><\/p>\n<p><code> <\/code><\/p>\n<p><code>.\/unzip-files.sh<\/code><\/p>\n<h1 style=\"font-size: 2em; text-align: left;\">Compiliamo<\/h1>\n<h3>Kernel<\/h3>\n<p>Invariato<\/p>\n<h3>Wifi<\/h3>\n<p>Invariato<\/p>\n<h3>Audio Files<\/h3>\n<p>Invariato<\/p>\n<h3>HTC Build Script<\/h3>\n<p><strong>Problema<\/strong>! Attualmente non sono ancora riuscito a far andare le google apps su eclair per problemi di permessi\/odex, se qualcuno ha qualche consiglio \u00e8 il benvenuto!<\/p>\n<h3>Sistema<\/h3>\n<p>In buildspec.mk inseriremo solo:<\/p>\n<p><code>TARGET_PREBUILT_KERNEL:=kernel\/arch\/arm\/boot\/zImage<br \/>\n<\/code><br \/>\nLe impostazioni come il Target Product e altro le scegliamo attraversi altri script che ci vengono messi a disposizione con i sorgenti, quindi diamo:<\/p>\n<p><code>cd ~\/androidsource<\/code><\/p>\n<p><code>. build\/envsetup.sh<\/code><\/p>\n<p><code> <\/code><\/p>\n<p><code>lunch aosp_sapphire_eu-eng<\/code><\/p>\n<p>Finito siamo pronti per dare il make!<\/p>\n<p><code>make<\/code><\/p>\n<p><strong>Nota: <\/strong>quando arriver\u00e0 a compilare webkit attualmente da errore, questa patch risolve:<\/p>\n<p><code>cd external\/webkit<\/p>\n<p>git cherry-pick 18342a41ab72e2c21931afaaab6f1b9bdbedb9f<\/code><\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>L&#8217;aggiornamento ufficiale OTA non \u00e8 ancora arrivato (proprio ieri \u00e8 stato annunciato e dovrebbe arrivare a breve) mentre i sorgenti di eclair sono disponibili da tempo. Questo sta creando qualche problema ai developers della comunit\u00e0 anche se sembra che l&#8217;unica cosa non funzionante per ora sia la fotocamera. Nel frattempo volevo comunque aggiornare la guida [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,434,3,39,42,8],"tags":[405,168,460],"class_list":["post-1103","post","type-post","status-publish","format-standard","hentry","category-informatica","category-android-software","category-gnulinux","category-open-sourcefree-software","category-smanettamenti","category-software","tag-android","tag-compilazione","tag-sorgenti"],"_links":{"self":[{"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/posts\/1103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/comments?post=1103"}],"version-history":[{"count":5,"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/posts\/1103\/revisions"}],"predecessor-version":[{"id":1110,"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/posts\/1103\/revisions\/1110"}],"wp:attachment":[{"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/categories?post=1103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lorenzobraghetto.com\/index.php\/wp-json\/wp\/v2\/tags?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}