Category Archives: Cyanogen

Samsung Galaxy S II thermometer error triangle and charging issues

For what it’s worth, my phone is rooted and I’ve flashed a different rom onto it: CyanogenMod-7.1.0. That’s not caused the problem though, I did that ages ago. Actually, I did that within an hour of getting the phone! A few days ago my Samsung Galaxy S started malfunctioning. I uninstalled recently installed apps but the problem persisted. These were the problems:

  • screen flickering when charger plugged in
  • charger sometimes not being recognised as supplying power
  • battery indicator jumping around to more or less random indication levels
  • not switching off properly but instead showing the battery indicator permanently, with a yellow warning triangle and a little image of a thermometer superimposed on that, as shown in the following video:

I phoned my mobile phone company (Three) and their technical support took the usual approach of repeating everything I said but altering its meaning slightly, with the result that what should have been a five minute call took half an hour. The fellow at the other end of the phone claimed that he had never heard of the fault before. Three’s proposed remedies involved either sending the phone back to them for a physical repair (Which was going to cost between £30 & £90. Unless I refused the repair, in which case it would cost me £20. It is still under warranty!) or performing a factory reset.

I should mention that I am fastidious in looking after my phone. It never gets wet. I’ve never dropped it and it hasn’t received any impact trauma either.

I read various threads which suggested that there was a hardware fault with the USB port. Various people suggested that their phone had “magically” cured itself. That is, of course, impossible, unless water penetration had been the cause of their problems. Several people said that they had cured the problem by cleaning their USB port. Others proposed physically moving it, either “up” or “down”. The consensus seemed to be “down”. Then I saw the following video guidance, which is very tempting.

I’m going to record all the steps I’ve taken here in this post. First, I backed up all my apps and data with Titanium Backup. The free version is good enough to perform that crucial job. Next, just in case, I’m going to perform a factory reset.

The factory reset completed. The first thing to do is download Titanium Backup from the Android Market, sorry Google Play, grr what a silly rebranding exercise. With that, I can restore all my apps. First I have to allow applications from unknown sources (Menu – Settings – Applications – Unknown Sources: ticked!). Next is a batch process under Titanium Backup: “Restore all apps with data”. The tell tale sign is that this has the largest number next to it. This process takes each app in turn. The phone asks whether I want to install each one. I make some individual decisions not to install certain apps, stuff I don’t use any more. Silly games and the like. Chess is the only game worth playing, clearly.

As I suspected, this did not cure the problem. Next up, I think I should try to clean out the USB port somehow… I will report back…

Hack your own phone to prevent corporate surveillance

I’ve hacked my phone. I didn’t personally write the computer code which allowed me to do that. Why would I? It is already written. The hackers who worked out how to do it simply published the instructions online for free. Allow me to explain. If you want the really technical details, follow the links. For everyone else, just read on. If you aren’t at all technically minded, there may some passages with jargon you are unfamiliar with but don’t worry, I keep this explanation fairly simple.

Phone hacking has been much in the news recently. The phrase has been coined by journalists to describe other journalists from obtaining access to other people’s voicemail. The technique is remarkably simple. Your mobile phone’s voicemail will activate when it is called by your number. To spy on someone else’s mobile voicemail, all you have to do is phone their number from their number. To do that, specialist software is available online, which allows you to declare what number you are making the call from. The spies just type in their target’s number and bingo! I would have called this activity “spying”. Journalists do not like to use a nice old fashioned word when a more frightening one is available. Over many years the established media has run scare stories about computer hackers. They have distorted the original meaning of the word so much that they have given it a second meaning. Having whipped up a fear of hackers, they now use this word pejoratively whenever they can.

Hacking is actually quite an old word, which has obtained several meanings. Here goes:

  1. Cut with rough or heavy blows.
  2. Ride a horse for pleasure or exercise.
  3. A contentious term used in computing for several types of person

Techies call the person who circumvents a computer security system a cracker. Journalists prefer not to educate their readers so rather than use the word cracker, they just call them hackers even though hackers actually do something different. There are two types of computer hacker. Firstly, there are those who make innovative customizations or combinations of retail electronic and computer equipment and, secondly, there are those who share an anti-authoritarian approach to software development now associated with the free software movement. The established media are terrified of people discovering the last group of people because they help undermine the proprietary systems which make so much money. These vested interests have much in common with the privately owned media. There’s no need to be a conspiracy theorist about this. This is well established fact.

CyanogenMod's logo

My new phone was delivered on Tuesday: a Samsung Galaxy S II (SGS2). It’s a beautiful piece of kit. I followed these instructions from CyanogenMod which taught me how to install a customized aftermarket firmware distribution onto my new phone. In other words a new operating system made by hackers! This operating system is open source which means that anyone can download the computer code, examine it and modify it. Open Source software is always free.

Despite knowing that mobile network companies’ warranties do not allow this sort of carry on, Samsung actually sent one of their first SGS2s to the CyanogenMod hacking crew (there are about 45 of them at the moment, producing open source firmware for dozens of devices). The physical architecture of the SGS2 is impressive. We might need capitalist companies to make these devices but we need socialists to make them work better. Hackers are effectively socialists: they give what they can and share it with anyone who feels the need.

Before and after a hacker changed the operating system (results not from my SGS2)

On Wednesday, after a busy day working for the legal team at Occupy London, I was relaxing in the evening in a City pub. One of my fellow Occupationists had also just obtained the SGS2. His phone was running on the operating system provided via his phone company. This is called a stock rom. We both downloaded the same benchmarking software from the Android Market: Quadrant (the standard edition). A benchmarking app performs a series of technical tests on your phone and produces a score. My phone tore through the tests visibly quicker than my friend’s but the real proof was in the score. My SGS2 now scores 3,314 which was a little over 10% higher than my friend’s. That is proof that the open source operating system I have installed on my phone performs significantly better than the stock roms.

As well as wanting the best operating system for my new phone, I also wanted root access so that I could install apps which allow me extra freedom. Having sold you the phone the mobile network wish to save themselves the hassle of dealing with you after you from mistakenly turn your phone into poor quality paperweight by deleting files that you wouldn’t normally have access to. Root access gives you access to every part of the file system on the phone. I wasn’t entirely sure whether Cyanogen’s instructions gave root access or just changed the operating system so I followed some other instructions to obtain root access first. In particular I use the Titanium Backup, Rom Manager and the incredible SetCPU, all of which are free.

This week a scandal broke in America: 41 million mobile phones were revealed to have embedded software called Carrier IQ. This software was hidden from the user, who does not have root access and cannot see the source code for the operating system used on their phones. The software is apparently used to assist the mobile networks in gathering information about when apps crash on phones. The scandal relates to independent research which says that the software can also record lots of other information about how the phone is used. The most pressing concern is that it can record keystrokes, which means that phone user’s passwords and other confidential information could have been conveyed to the mobile networks. Trevor Eckhart made the discovery.

This week Wikileaks has revealed the full extent of industrial surveillance around the world. It is massive. Julian Assange announced at a press conference two days ago that if you use an Iphone, a blackberry or gmail you are “screwed”. Wikileaks says, “Mass interception of entire populations is not only a reality, it is a secret new industry spanning 25 countries It sounds like something out of Hollywood, but as of today, mass interception systems, built by Western intelligence contractors, including for ’political opponents’ are a reality.” I dare say that they’ve got my number but luckily they do not have my behavioural metrics because CyanongenMod have confirmed that Carrier IQ will never be included in their open source operating system. They can’t lie about this because all of their source code is public. The moral of this story is that we need the hackers to prevent the spies.

Plain English Explanation: Advantages of and how to reflash your Samsung Galaxy S with a hacker’s rom

Plenty of people ask me how easy it is to put a groovy rom from a hacker onto their android phone. It is easy but you have to understand a lot of jargon first to be sure of yourself. All of the explanations I have seen assume far too much knowledge for the people who ask me this question. Here’s my plain english explanation for how to reflash your Samsung Galaxy S i9000 with Darky’s rom. (If there’s words you still don’t get, please ask via the comments form and I’ll do my best to answer). Why do this? Here’s a list of advantages (sorry, I don’t have time to jargon bust this first list):

  • Based on supercurio’s latest voodoo sound 6, lagfix and color
  • Leaner and faster build (a lot smaller too)
  • Includes fully working Nandroid Backup and Restore
  • Includes BLN support
  • Includes Zip and Zipalign
  • RAM is set to default 304MB (which is just fine)
  • Custom CWM Recovery (mount scripts, logs and battery backup always on)
  • Improved battery life
  • Fixed Bluetooth Connection Issues
  • Fixed Market Error -18 [Apps not installing]
  • Fixed non-installing apps outside from Market [TitaniumBackup etc.]
  • Fixed RAM Hack [RAM Booster] permissions & converted from MSDOS to UNIX
  • Fixed ascending ringtone
  • Fixed phone freezing and Force Close when finishing a call with record ON
  • Fixed Issue with earpiece not working during calls.
  • Fixed tiny dots in TouchWiz Launcher
  • Rewritten update-script
  • Rewritten installation and tweak scripts
  • Changed ringtone & sms sound to something more neutral, but still awesome
  • Changed Modem from JQ1 to JVE (much better – Gingerbread Modem)

Terminology Guide

  • App: software for your phone (but not the operating system).
  • Bricking: this is making your phone impossible to use. If you follow any reputable instructions online, it is difficult to do this but of course we are all frightened of this happening! The phone manufacturers and carriers warn you away from rooting on the basis that it voids the warranty and may brick your phone. In the dozens of android phones that I’ve seen rooted, I’ve only seen one bricked and that happened because someone was too stoned to follow the instructions properly. The instructions were not complicated. He was just stoned.
  • Cracker: These are people who conspicuously call themselves hackers but they are not. Unfortunately, the simple minded media (from the Daily Mail to the Guardian and beyond) which does not seem to want to educate its readership in any specialism, muddles this group with hackers. Crackers get a kick out of breaking into computers. Real hackers mostly think crackers are lazy, irresponsible, not very bright and object that being able to break security doesn’t make you a hacker any more than being able to hotwire cars makes you an engineer.
  • Developer: A coder, a computer programmer, a software engineer, a geek, a person who makes the modern world what it is.
  • Hacker: Hackers built the Internet. Hackers made the Unix operating system what it is today. Hackers run Usenet. Hackers make the World Wide Web work. If you are part of this culture, if you have contributed to it and other people in it know who you are and call you a hacker, you’re a hacker.
  • Firmware: the operating system for your phone, aka its rom.
  • Galaxy S: it’s a specific device: a phone. Samsung makes it. The advantages listed below apply to any phone that you can root (see above). The manufacturers continuously try to make it really hard/impossible to root but the hackers keep jumping the bar, no matter how high it is set. Many believe that the manufacturers like a phone getting hacked because it lends the phone a certain kudos. You wouldn’t want to use a phone which no-one could be bothered to hack, would you? Consequently, the manufacturer makes it hard but not impossible to hack into.
  • Lagfix: a software cure for the lag issue present in Samsung’s stock rom.
  • Nightly Build: a rom which is a work in progress. Best avoided by all except those who wish to assist the developer team by reporting bugs.
  • Recovery Image: a copy of firmware in the format ready to be ready by a specific device, i.e. your phone.
  • Recovery Mode: a part of your android phone which allows you to change some basic features.
  • Reflashing: changing the firmware for your android phone.
  • Release Candidate: a rom that is considered to be very close to being a stable release.
  • Root Folder: the highest folder in the SD card. This part of the directory structure contains all the other folders and files. If you can’t navigate to a higher folder, you are in the root folder!
  • Rooting: obtaining privileged control within Android’s Linux subsystem, similar to jailbreaking Apple devices running the iOS  operating system, obtaining the limitations that the mobile networks (carriers) and manufacturers place on the devices. It is called rooting because it gives you “root access”, which means that you have obtained access to the linux kernel of the phone, from which the entire operating system can be changed for the better.
  • Stable Release: a rom that is considered to be safe to use, without you having to understand every technical issue described in a bug list and deciding whether you want to put up with them.
  • Stock rom: the operating system created by your phone’s manufacturer.

Summary of Process

  1. Obtain root access
  2. Install app called Rom Manager (which provides a GUI – a graphical user interface for ClockworldMod Recovery) which will manage the process of reflashing without having to read masses of technical instructions. This software will not work without root access.
  3. Reflash

Detailed intructions to reflash Samsung Galaxy S i9000

Rooting

If your Samsung Galaxy S i9000 still uses the stock rom, you must first root the phone and install a custom recovery image. If your phone is already rooted, you can skip this bit. Rooting the Samsung Galaxy S i9000 will void the warranty. I didn’t worry about this because there are very few moving parts (three buttons), it worked fine for two months before I did it and it was made by one of the highest quality digital device manufacturers in the world.

  1. Download the rooted update.zip file.
  2. Plug in the Samsung Galaxy S via USB cable and mount the SD card.
  3. Copy the update.zip to the root of the internal SD card (NOT into any folders on the SD card).
  4. Power off the device, and reboot holding the Volume Up & Home plus the power button. This puts you into recovery mode.
  5. Once in recovery mode, navigate to apply sdcard:update.zip using the volume buttons & use the power button to select.

Incidentally, there’s all sorts of apps that you can use now that you have rooted your phone. These apps require the super user permissions that root access gives you. My favourites are SetCPU, which lets you tweak the processor’s clock speed, to enhance battery life and improve performance (for example, run it slow when the screen is off and extra fast when it is on), and Titanium Backup which lets you make backup copies of all your apps.

Installing ClockworldMod Recovery

If the Samsung Galaxy S i9000 already has a custom Recovery Image installed, you may skip this section.

  1. Search for RomManager in the Market (free or paid) and install the app. Currently over 1,300,000 people have downloaded RomManager.
  2. Open the ROM Manager application and select Flash ClockworkMod Recovery.
  3. Click on Samsung Galaxy S and then give the app root permission if it prompts you.
  4. If it hangs after that and freezes up, just allow the app to Force Close. Then open it back up and repeat steps 2 & 3.
  5. Once the flash was successful, you should see a dialog box that says “Successfully flashed ClockworkMod recovery!”.
  6. Press OK.
  7. The ClockworkMod Recovery should now be installed on the Samsung Galaxy S i9000.

Reflashing phone with new rom

The method used for this depends on the rom you are using. If in doubt follow the instructions from your rom developer. Here are the instructions for Darky’s rom:

  1. If you are currently using any lagfix, disable it now.
  2. Download Darky’s rom.
  3. Copy Darky’s rom to the root folder of your phone’s internal SD card. Make sure that it is the only zip file in that folder called “update.zip”.
  4. Open RomManager and select option to “Reboot into Recovery”. The phone will appear to restart but you will get to a screen with little green writing, which is a menu. Use the phone’s volume buttons to navigate this menu and the power button to select options. Take care not to select the wrong options!
  5. In “Backup and Restore”, another menu will appear entitled “Nandroid”. Select “Backup”. Return to first menu by selecting the option that says “*****Go Back*****”.
  6. In “advanced”, another menu will appear entitled “Advanced and Debugging Mode”. Select “Wipe Dalvik Cache”. Return to the first menu.
  7. Select “wipe cache partition”. Return to the first menu.
  8. If you are coming from another version of Darky’s rom, you can skip this step: select “wipe data/factory reset”. Return to the first menu.
  9. Select “apply sdcard:update.zip”
  10. Download the Darky Rom Configurator from the android market and install it. This is unique idea from Darky – after reflashing the rom, specialist tweaks can be made from an app! Choose the options you want in the app.

I have used four different roms on my Samsung Galaxy S i9000. First there was the rubbish one which Samsung created. This had several technical issues, the most notorious of which was the infamous “lag issue”, which made it hang for two or three seconds from time to time. Samsung’s software was badly written and created this problem. Hackers fixed it. The second rom I used was Tayutama’s rom. This cured the lagfix issue and introduced a number of other groovy features. Then, I changed to Darky’s rom. Then I upgraded to Darky’s new rom. I like Darky but I am waiting for stable release (rather than a release candidate or nightly build) of Cyanogen, the supremo rom building team.

I’d like to mention that the first time your phone turns on after reflashing, it will take longer to fully boot. This is perfectly normal. The phone is sorting stuff out. The second time it will be faster!

And finally, since the Samsung Galaxy S II has now been launched, the price of the original Galaxy S i9000 will drop on ebay. It is currently as low as £200 for an unlocked phone – that’s one which can be used with any mobile network (carrier). It is an excellent phone and until the launch of its second generation version, was probably the best phone in the world.

Blimey, Diazepam does the trick!

It certainly has cured my leg flu, warded off my appetite and left me a jolly calm sort of fellow. Can see why it might be highly addictive. Even had a nice little nap this afternoon, mid-conversation. Hope the leg flu doesn’t return as soon as my supply runs out. Weirdly, someone found my blog via google having searched for the terms “leg” and “flu”, so I guess I am not the only sufferer. Also, have been an efficient coder today, making 115 PayPal buttons for a website I’ve nearly completely overhauled, transforming it from a humble html site into a fully fledged php showboat. Watch this space to see it relaunched soon.

Sooner or later someone will point out that there is an alliterative theme in my pursuits: chess, cycling, cooking and coding. I have other interests and, yes, they mainly begin with the same letter!

The other main excitement of the day was not really convincing myself that I had bricked my Samsung Galaxy S. In fact, I just stupidly returned the damn thing to the stock rom in a fuzzy bid (that’ll be the diazepam again methinks) to cure a shared calendar glitch. Only later on did I discover that Titanium Backup – a great app for rooted android phones – would have cleared the calendar data for me, allowing me to reset it and win back my copy of my wife’s calendar on my phone. From the stock rom I then decided to try another rom and with the increased fuzziness things went downhill. However, since I can still boot into recovery, I will be able to achieve this. Just need a clear head. This is the sort of fun and games iphone users never have. Most of them think that they’re better off with loads more apps when in fact they need extra apps because Apple denies them flash and consequently many websites don’t work for them, with the result that they need specialist apps just to get the advantages of the internet. Anyway, I was running a beautifully modified rom from Tayutama. Get the latest Tayutama if you want to vastly improve on what Samsung offer as firmware for the Galaxy S. They make great hardware but hackers make even better software, surprise surprise. The reason for this is that there are always more hackers than proprietary employees. Really, I’m just waiting for the legendary Cyanogen to release a stable rom for the Galaxy S.