aboutsummaryrefslogtreecommitdiff
path: root/files/el/archive/b2g_os/phone_guide/geeksphone/index.html
blob: 9ac503a6144b98abacfa8974b42a151c5c8e46a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
title: Geeksphone
slug: Archive/B2G_OS/Phone_guide/Geeksphone
translation_of: Archive/B2G_OS/Phone_guide/Geeksphone
---
<div class="summary">
 <p>Οι εκδόσεις Developer Preview των τηλεφώνων με Firefox OS γίνονται τώρα ευρέως διαθέσιμα στην κοινότητα, κυρίως μέσω της <a href="http://www.geeksphone.com/">Geeksphone</a>. Αφού αυτά είναι για προγραμματιστές, θέλουμε να σας ενθαρρύνουμε να τα "πειράξετε" και να "παίξετε" μαζί τους όσο το δυνατόν περισσότερο! Σε αυτό το άρθρο καλύπτουμε κάποιες βασικές συμβουλές σχετικά με το πως να διατηρήσετε το τηλέφωνό σας ενημερωμένο και πως να "πειράξετε" τις εφαρμογές συστήματος του Gaia.</p>
</div>
<h2 id="Ενημερώνοντας_το_Geeksphone_σας_στις_τελευταίες_εκδόσεις">Ενημερώνοντας το Geeksphone σας στις τελευταίες εκδόσεις</h2>
<p>Οι  ενημερώσεις του Firefox OS μπορούν να ληφθούν μέσω της εφαρμογής Ρυθμίσεις, στην κατηγορία Πληροφορίες συσκευής. Το τηλέφωνο μπορεί να ρυθμιστεί ώστε να ελέγχει για ενημερώσεις καθημερινά, εβδομαδιαία, ή μηνιαία. Επιπλέον παρέχεται ένα κουμπί “Έλεγχος τώρα”. Όταν μια ενημέρωση είναι διαθέσιμη θα ειδοποιηθείτε για να κατεβάσετε και να εγκαταστήσετε την τρέχουσα έκδοση.</p>
<p><img alt="The screen for checking updates on the Firefox OS settings app" src="https://mdn.mozillademos.org/files/6051/checkupate.png" style="width: 318px; height: 478px; display: block; margin: 0px auto;"></p>
<h2 id="Φλασάροντας_το_τηλέφωνό_σας">"Φλασάροντας" το τηλέφωνό σας</h2>
<p>Η ομάδα στην Geeksphone παρέχει επίσης τα τελευταία, σταθερά και nightly builds σας αυτο-περιεχόμενες λήψεις για να "φλασάρετε" το τηλέφωνό σας.</p>
<h3 id="Προετοιμάστε_το_τηλέφωνο_και_τον_υπολογιστή_σας">Προετοιμάστε το τηλέφωνο και τον υπολογιστή σας</h3>
<p><span style="line-height: 1.572;">Πριν προσπαθήσετε να "φλασάρετε" το τηλέφωνό σας, βεβαιωθείτε ότι το έχετε προετοιμάσει όπως περιγράφεται στην ενότητα “Προετοιμάζοντας την Συσκευή Geeksphone” στο </span><a href="https://hacks.mozilla.org/2013/05/pushing-firefox-os-apps-to-the-geeksphone/" style="line-height: 1.572;">"Ωθώντας" Εφαρμογές Firefox OS στο Geeksphone</a><span style="line-height: 1.572;">. Αυτό θα εξασφαλίσει ότι μπορείτε να "ωθήσετε" δεδομένα στο τηλέφωνό. Στην ίδια ενότητα, ακολουθήστε τις οδηγίες για να βεβαιωθείτε ότι ο υπολογιστής σας έχει τους σωστούς οδηγούς USB.</span></p>
<div class="note">
 <p><strong>Σημείωση:</strong> Είναι ιδιαίτερα σημαντικό οι υπολογιστές με Windows να έχουν τους σωστούς οδηγούς USB.</p>
</div>
<p>Οι εκδόσεις βρίσκονται στην <a href="http://downloads.geeksphone.com/">ιστοσελίδα λήψεων της Geeksphone</a>. Σ' αυτή την ιστοσελίδα θα σας παρουσιαστούν επιλογές για επιλογή της συσκευής σας και ποιο τύπο έκδοσης θέλετε να χρησιμοποιήσετε.</p>
<p><img alt="Two phone images side by side, the Geeksphone Keon and Peak, with different software download options below each one." src="https://mdn.mozillademos.org/files/6055/geeksphone-download.png" style="width: 530px; height: 486px; display: block; margin: 0px auto;"></p>
<p>Download your particular build and extract the archive to your filesystem. The archive contains the images and commands required to flash the phone using Windows, Mac OS, or Linux. Before attempting to flash the phone make sure that you have enabled Remote debugging on the phone. This option can be set by launching the Settings app and navigating to the <code>Device information -&gt; More information -&gt; Developer</code> tab. Also do not attempt to flash the phone if the power level is below 50%.</p>
<p><img alt="Enabling remote debugging on the Firefox OS Settings app" src="https://mdn.mozillademos.org/files/6049/remote-debugging.png" style="width: 320px; height: 480px; display: block; margin: 0px auto;"></p>
<h3 id="Windows">Windows</h3>
<div class="note">
 <p><strong>Note:</strong> You might need to install USB drivers on Windows. For instructions, see <span style="line-height: 1.572;">the section “Setting Up the Geeksphone Device” in </span><a href="https://hacks.mozilla.org/2013/05/pushing-firefox-os-apps-to-the-geeksphone/" style="line-height: 1.572;">Pushing Firefox OS Apps to the Geeksphone</a><span style="line-height: 1.572;">.</span></p>
</div>
<p>Open a Command Prompt (<code>start -&gt; type cmd in search -&gt; enter</code> on Windows 7, <code>Windows key + X -&gt; select Command Prompt</code> on Windows 8) and cd to the directory containing the extracted files. Run:</p>
<pre class="brush: bash" lang="bash">flash.bat
</pre>
<h3 id="Mac_OS">Mac OS</h3>
<p>Open a Terminal (<code>Cmd + space -&gt; type terminal -&gt; enter</code>) window and cd to the directory containing the extracted files. Run:</p>
<pre class="brush: bash" lang="bash">./flash_mac.sh
</pre>
<h3 id="Linux">Linux</h3>
<p>To flash a Keon from Ubuntu add the following rules to /etc/udev/rules.d/51-android.rules</p>
<div>
 SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="8013", MODE="0666"</div>
<div>
 SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", MODE="0666"</div>
<div>
  </div>
<p>Open a Terminal (control-alt-t on Ubuntu) window and cd to the directory containing the extracted files. Run:</p>
<pre class="brush: bash" lang="bash">./flash.sh
</pre>
<p>This should flash the new image to the phone. The phone will need to be set up again as all data will be cleared. If you want to backup your data and restore afterwards, you can follow the instructions at <a href="/en-US/Firefox_OS/Firefox_OS_build_prerequisites#Backup_the_phone_system_partition">Backup the phone system partition</a>.</p>
<h2 id="If_you_have_an_'unagi'_or_developer_preview_phone_that_is_not_a_Geeksphone">If you have an 'unagi' or developer preview phone that is not a Geeksphone</h2>
<p>If you have a developer phone that is not a Geeksphone such as an 'unagi' or a previously Android-based device, you may need to perform the following steps. If this is not you, please skip to the next section.</p>
<p>You will need to install <strong>adb</strong> and <strong>fastboot</strong>. These utilities can be found in the Android Developer Toolkit.</p>
<p>It is not necessary to install the entire toolkit. Download the toolkit from here and extract the contents. adb and fastboot are found in the /platform-tools/ folder. They can be copied to the /usr/bin of your Linux or Mac OS machine, or copied to another folder as long as that folder is added to your $PATH.</p>
<p>If you are attempting to flash your device and have another device plugged in via USB, your phone may not be detected by these utilities correctly. Only have your phone plugged in while trying to flash it.</p>
<h2 id="Tweaking_Gaia">Tweaking Gaia</h2>
<p>If you are the industrious sort, you may want to tweak the default applications in Gaia — the UI in Firefox OS. In this section we will cover some of the basics for cloning Gaia and making changes to the default system apps. Bear in mind these tips are “at your own risk” and may involve you later referring to the section “Ok, I bricked my phone”. Before proceeding make sure that you have adb and fastboot installed on your system. To verify if these are installed open a terminal and type adb devices with your phone connected. You should see your phone listed under the attached devices.</p>
<p>You should also be able to run fastboot from the terminal. If you run fastboot, a set of parameter options should be displayed. If you do not have adb or fastboot installed, a quick Google search with your operating system will return several quick starts on how to install them. In addition to adb and fastboot you will need Git. If you do not currently have Git installed, have a look at this <a href="https://help.github.com/articles/set-up-git">setup guide</a>. Finally make sure your phone is set up for remote debugging as described in the previous section.</p>
<p>Once you have the prerequisites you can open a terminal and cd to the directory you would like to clone the Gaia source code to. Type the following commands:</p>
<pre class="brush: bash" lang="bash">git clone git://github.com/mozilla-b2g/gaia.git gaia
cd gaia
</pre>
<p>This will clone the current Gaia code to your system.</p>
<div class="warning">
 <p>If you plan on submitting changes back to the Gaia source, be sure to fork the source before cloning as described in <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Platform/Gaia/Hacking">Hacking Gaia</a>.</p>
</div>
<p>Currently the Geeksphone Keon uses the v1.0.1 branch of Gaia code, so set the proper branch using the following command before you do anything else:</p>
<pre class="brush: bash" lang="bash">git checkout -b v1.0.1 origin/v1.0.1
</pre>
<p>Most of the system apps are located in the apps subdirectory of gaia. You can now make any changes to these Firefox OS apps you wish. Once you have made changes, make sure your device is mounted properly by first running:</p>
<pre class="brush: bash">adb remount</pre>
<p>Next, run the following command to push the modified apps to your phone. This will by default push all the system apps to the phone:</p>
<pre class="brush: bash" lang="bash">B2G_SYSTEM_APPS=1 make install-gaia
</pre>
<p>If you only changed one of the apps you can specify the particular app using similar syntax. In this example only the calendar app will be pushed to the phone:</p>
<pre class="brush: bash" lang="bash">APP=calendar B2G_SYSTEM_APPS=1 make install-gaia
</pre>
<p>If you have issues while making the changes, you can reset the phone to default values using either of the following commands:</p>
<pre class="brush: bash" lang="bash">make production
make reset-gaia
</pre>
<div class="note">
 <p><strong>Note</strong>: Bear in mind that either of the above commands will clear any data or apps that you have pushed to the phone. If you want to backup your data and restore afterwards, you can follow the instructions at <a href="/en-US/Firefox_OS/Firefox_OS_build_prerequisites#Backup_the_phone_system_partition">Backup the phone system partition</a>.</p>
</div>
<h2 id="Ok_I_bricked_my_phone">"Ok, I bricked my phone"</h2>
<p>If you are in the process of modifying your phone and it becomes “unresponsive” you should be able to recover it using fastboot with a simple procedure. The following illustrates resetting the Keon but other phones should have a similar process. You will also need to verify that you have fastboot installed.</p>
<p>First remove the USB cable and then remove the battery from the phone for 30 seconds. Then reinsert the battery and press the volume down button while holding the power button for a few seconds. Next reconnect the USB cable and run the following commands from a terminal window in the directory that contains the latest img files described in the first section of this post:</p>
<pre class="brush: bash" lang="bash">fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash userdata userdata.img
fastboot flash system system.img
fastboot reboot
</pre>
<p>This process should recover your phone. If it doesn't seem to work, you may have to try it a second time.</p>
<h2 id="Go_play!">Go play!</h2>
<p>We hope these instructions are useful to you, and naturally we want you to be as happy about Firefox OS and the possibilities as we are! Feel free to play around with updating your devices, make changes/updates to Gaia apps, and also be inspired to build you own open web apps.</p>
<h2 id="Δείτε_επίσης">Δείτε επίσης</h2>
<ul>
 <li><a href="/en-US/Firefox_OS/Developer_phone_guide/Geeksphone/Geeksphone_FAQ">Geeksphone FAQ</a></li>
 <li><a href="/en-US/Apps/Quickstart/Build/Intro_to_open_web_apps">Εισαγωγή στις ανοιχτές εφαρμογές ιστού</a></li>
</ul>