Tag Archives: howto

Instalējam CM9 uz Sony Xperia telefona

Sony, tāpat kā vairums citu telefona ražotāju, savus Android telefonus pielāgo un modificē līdz (android) nepazīšanai. Tur ir pārpildīts ar Sony specifiskām, man nevajadzīgām programmām, kuras nevar izdzēst, piemēram muļģīgas spēles, 3D kamera (no kuras nav jēgas, ja nav Sony brenda 3D televizora), Latvijā nestrādājoša navigācijas programma utt. Patiesībā, telefona interfeiss no orģinālā Android ir padarīts neglīts un pārgruzīts. Telefons ir tik daudz mēsliem piebāzts, ka iebūvētā atmiņa ir pilna, un instalējot programmas, bieži nākas saskarties ar paziņojumu, ka nebija vietas. Tad nācās pārvietot visas instalētās programmas uz SD karti, lai atbrīvotu iebūvētās atmiņas vietu. Un arī ar šo metodi, brīvi bija labi ja 20%.

Īsi sakot, vēlējos atbrīvoties no Sony “skina” un uzlikt tīru Android. Te sākās milzīgi garš un sarežģīts process, jo ne jau nu tik vienkārši tas notiek. Centīšos ātri pārskriet procesam, lai kādam nav jāsēž forumos, un vairākas reizes veltīgi jānogalina telefons, kā tas bija man.

Uzreiz brīdinu, ka procesu aprakstu Sony Xperia Active telefonam, kas ar Sony “PC companion” programmu ticis atjaunināts līdz ICS 4.0.4 versijai. Iesaku to darīt uz Windows, jo lai arī tas iespējams uz Mac/Linux, ir dažas lietas kas procesu sarežģī (piemēram PC Companion tikai Windowsam piedāvā telefona atjaunošanu no miruša stāvokļa, kādā tavs telefons iespējams nonāks, ja nesekosi uzmanīgi).

Process

Ja uzmanīgi seko visiem punktiem, to visu var izdarīt divu stundu laikā.

  1. Instalējam Android SDK (no Google saita) un ADM telefona drivers (No Flashtool foldera)
  2. Bootloader unlock, ko piedāvā pati Sony weblapa. To vajag, jo citādi Sony neļauj iegūt Root tiesības telefonā
  3. Downgrade no 4.0.4 uz 4.0.2 (Ar Flashtool) jo Root access uz 4.0.4 nevar veikt
  4. Root access iegūšana ar Flashtool
    Atjaunināšana atpakaļ uz 4.0.4 ar PC companion.
  5. Tā kā ir Root access, instalējam ClockWorkManager Xperia versiju
  6. Iegūstam CM9 failus savam telefonam
  7. Ar Fastboot no Google SDK uzliekam CM9 “Boot.img” uz telefona
  8. Pēc tam iebūtējamies telefonā uzliktajā CWM manadžerī un laižam “install from ZIP” norādot turr iekopētos pārējos CM9 failus (zip arhīvu)

Process garākiem vārdiem

  1. uzinstalējam Android SDK (links augstāk), vajadzīga ir JAVA JDK un kad instalēsies, viņš pajautās ko vēlies ielādēt. Svarīgs ir tikai viens – “Platform tools” jo tur atrodas “Fastboot” programma. Atrodam kur stāv ieinstalētie platform-tools un provējam no komandrindas palaist komandu “fastboot”. Ja kaut kas izvadās, viss strādā. Ja SDK instalācijas laikā netiek atrasta JAVA SDK bet esi to uzinstalējis, pārliecinies, ka esi instalējis tieši 32Bit versiju, pat ja tev ir 64Bit Windows, spied Back un atkal Next
  2. Ejam šeit uz Sony lapu un sekojam uzmanīgi visam rakstītajam. Vajadzēs uzzināt telefona IMEI kodu, ievadīt to formā, uzzināt konkrētas ierīces unlock kodu, un veikt sekojošu komandu no komandrindas: fastboot -i 0x0fce oem unlock 0x371BB94485CAAAAA (kur tas aiz 0x ir tas ko iedos Sony lapa). Kas šeit jāņem vērā – kodam ko iedos, Fastboot komandā priekšā jāraksta “0x” un ja IMEI kods ir par garu, Sony web formā nav jāraksta pēdējais cipars.
  3. Iepriekšējais process resetos telefonu, to ieslēdzot būs jāatbild uz dažiem jautājumiem. Pēc tam ieejam telefona uzstādijumos, un ieslēdzam USB Debug mode
  4. Ielādējam datorā Flashtool programmu no šejienes http://androxyde.github.com/, kā arī uzinstalējam draiverus no Flashtool folderī esošā “Drivers” foldera
  5. Ielādējam 4.0.2 veco android versiju, iekopējam to Flashtool/Firmwares folderī (nodzēšam to kas tur bija pirms tam) un palaižam Flashtool. Piespiežam zibens pogu, un sekojam instrukcijām te
  6. Kā jau minētajās instrukcijās ir teikts, ielādējam šo failu un palaižam “01-local-prop” kas sagatavos telefonu Rootošanai
  7. Pretēji minētajām instrukcijām, liekam atpakaļ ICS 4.0.4 nevis ar Flashtool, bet ar PC companion, jo tas garantēs, ka nekas netiks nodzēsts vai sajāts
  8. Kad atpakaļ ir 4.0.4, palaižam otru failu no tā Root Xperia foldera, “02-push-root-files”
  9. Tagad Root ir pabeigts. Liekam virsū programmu instalējam ClockWorkManager Xperia
  10. Iegūstam CM9 failus savam telefonam. Jāņem CM9 RC2, jāizvēlas telefona modelis no saraksta pa kreisi (uzbraucot ar peli, “codename” pārvēršas par reālo modeļa vārdu, teiksim “satsuma” pārvēršas par “xperia active st17i”)
  11. Ielādēto CM9 zip failu iekopējam telefona SD kartē. SD kartē jāiekopē arī Google Tools ZIP fails, ja vēlamies lai mums būtu Play Store, Maps utt. No CM9 ZIP faila izkopējam ārā Boot.img un iekopējam android SDK folderī kur ir Fastboot. Tad laižam šādas komandas – fastboot -i 0xfce flash boot boot.img un pēc tam fastboot -i 0xfce reboot. Sīkāk process aprakstīts šeit: xda.
  12. Kad telefons pēc šīm komandām būtējas, spiežam volume pogas, lai izsauktu iepriekš tur uzinstalēto CWM menedžeri. Izvēlamies iztīrīt VISUS datus, VISU cache, un visu DALVIK cache (zem advanced sadaļas). Šis ir svarīgi, citādi nekas neizdosies tālāk. Kad iztīrītas tās trīs lietas, izvēlamies instalēt no ZIP, un norādam kur ir iekopētais CM9 ZIP fails. Kad process beidzas, izvēlamies vēlreiz, un uzinstalējam arī Google

Šis nav konkrēts soli-pa-solim 100% nosegts tutoriālis, taču es domāju labi kalpo kā vienā vietā apkopots pārskats ar linkiem, un informācijas avotiem, un sekojot šeit aprakstītajam, procesu iespējams izveikt, neuzduroties tiem zemūdens akmeņiem kas bija man.

P.S.: Un ja nokaujat telefonu – PC companion to var atgriezt pie dzīvības. Ja bļauj, ka esat viņu pats sahakerējis, jāveic “relock xperia bootloader” ar Flashtool (google this).

Land Rover 300tdi key broke in ignition

For a change, I can write an article in english, because I suspect, this will appeal to a broader audience than usual. In fact, I think the general audience will not appreciate this article as much as the other people who could find this with a search engine. At least, I was in need of such an article yesterday when I ran into the problem. I found this article in the forums, and it helped a lot. I will add more images than were shown there, to clarify some points. Use both articles together.

So the problem – dad took the car, and managed to break off the key in the ignition of my Land Rover Discovery I, 300tdi engine. Any attempts to use tweezers failed, key was stuck in too deep. What to do? Remove the plastic cover under the steering wheel, and proceed to unscrew the two big screws that hold the ignition mechanism in place. When that’s done, carefully unplug the black thing from it’s back (at this point, you can start the car with any flat object by inserting it into the black thing, for example a screwdriver. If you hate keys as such, you can just leave everyting as is, or even modify the car by adding a start button). Also carefully remove the round loop which is the immobiliser, it’s situated right around the place where you insert the key. I write so loosely because it’s all illustrated in the linked article.

So you will find yourself with a piece like this:

Other side looks like this (this is the thing that turns and starts the car):

Remove the plastic ring around the key, to access the tumbler. The wire that goes from here is needed for the “forgot key” beeper and illumination light:

Use pliers to unplug the safety cork:

Slowly remove the cylinder and tumbler, be extra careful to not dislodge any of the small moving parts (tumblers?) in there. They are not held by anything, and if one falls out, it exposes the tiny spring, which is crucial for the whole thing to operate. Careful!

This is what you should have on the table:

Order of reinsertation is as follows:

The inside recepticle is based on a spring too, so you will need to use that cork hole to straighten the center before you can reinsert the other parts later, like this:

All you need to do, it take that broken end of the key and pull it out of the other end of the tumbler, from here:

Now you can insert a working key and see if it works, all the tiny tumblers must fall into their places when a correct key is inserted, so that the mechanism is all smooth (no protruding tumblers). Take notice that there is a ball in the key insertion hole, which looks like can be discarded. This is wrong, the ball must be in this place for the lock to work at all. If it falls out, put it back!

This is also your chance to file off any protruding things to make the key work more smoothly. If you file off too much, you can make it accept any similar key, which is actually a nice bonus, if you lose your car keys often. Nobody will know that your car can be started with your apartment key ;)

Now you can put it all back together in reverse order. Don’t forget to return the safety cork in position, and put a drop of glue on it, so that it stays in place. Accidentaly I found another article which may come into use, it’s for BMW but it looks like all cars with keys have the same story.