EnvyAndroid
Loves android! Happy owner of a Desire.
Homepage: http://envyandroid.com
Posts by EnvyAndroid
Try out Android 4.0 Ice Cream Sandwich CM 9 on your Galaxy S 2 right now!
Jan 4th
Since waiting for samsung to eventually put touchWiz on an ICS rom, and then release the updates for the Galaxy s 2, is kind of a boring long wait.
This is for you, if you would rather try out ICS right now, but can’t afford a Google Nexus phone, or don’t see any reason why you should update if you already own the Galaxy S 2 ![]()
The CyanogenMOD team is working hard on their 9th version, and one of the devs, codeworkx, has been putting together experimental builds and fixes daily since right after christmas.
Not everything is in place yet, as this is an early experimental build (alpha), and lots of bugs remain to squash, but I have tried the rom, and it is actually quite good and stable for being an alpha! So, depending on your needs, you can actually use this as your daily rom, like I currently do.
This guide assumes you already have some knowledge about flashing roms, and it is recommended to have a working ClockWorkMod, like the version that comes with CyanogenMOD 7.
I am not responsible for anything that happens to you or your phone if you decide to try this.
And I will not do support for this in the comments.
(Problems can be discussed in the IRC channel linked in the xda thread, or here)
Installation instructions
The whole thread and download links can be found over at xda here.
Im just going to summarize the procedure:
- Copy GApps, Faceunlock and CM9 ZIPs to your internal SDCard
- Boot into Recovery
- Flash the CM9 zip
- Flash GApps and Faceunlock ZIPs
- DO A DATA WIPE / FACTORY RESET
- Reboot
I was using CyanogenMOD 7, with CWM, and using the 01032012 build (january 3, 2012), I could flash the ROM directly, without having to use a ICS bootloader, which you had to use with the earlier builds. I also flashed the XXKP8 Modem right after the GApps and facelock zips, but it is said to be not neccesary. I did not need Odin for anything during this procedure.
These steps worked fine. Although there are a couple of quirks you may stumble upon…
Quirks and stuff
Including this list of bugs, heres a list of different quirks, and solutions, that is not present in the post on the front page:
- If Google maps is giving a “Login failed” message, you have to give it permissions (it should pop up from the notification bar), this has to be done 3 times (for 3 different permissions). You may have to exit and re-launch the app many times for this to work. It took me 5 minutes before I got it working.
- If none of the Google apps gets installed, besides GMail, you can download them from the market
- To make app installation easier, try logging in to market.android.com in your desktop browser, and install apps directly onto your phone.
- If the scrolling in menus is sometimes lagging, you can fix this by going to: Settings -> Developers option -> Force gpu rendering
- If you later decide to update the rom to a newer build, you just need to flash the rom, GApps and the facelock zip, then wipe cache, you do not need to flash the modem again.
- The newer builds can be flashed from newer versions of CWM, ICS bootloader is not needed.
- If the phone gets hot, or dont want to go to deep sleep, you have to kill the media and google services: On the home screen, press the menu button -> Manage apps -> And stop the media service.
- To transfer files, if the Media Transfer Protocol doesn’t work, you can use Droid Explorer to transfer files.
- Taking screenshots on the device is a little weird… Hold down the power button for about 1 second, then you get the menu, choose screenshot.
Free Box.net accounts for LG phone owners!
Dec 22nd
According to the Box.net blog, owners of LG phones can get a Box.net account for free.
Box.net is a file storage and synchronization service, which is more suited for buisnesses, indication that it may in some cases replace Sharepoint.
(I have not yet tested Box.net)
For LG phones, you have to have Android 2.1 or better.
All you have to do is just install the Box.net Android app from the market, and you will get 50GB free storage and synchronization!
(You will have to create and account when you are logging in.)
Some clever guys over at xda also made a workaround so you can get Box.net even if you don’t have a LG phone. But this method is meant for more xperienced users.
Try Android 4.0 Ice Cream Sandwich in Virtualbox for a lag-free experience
Dec 10th
I have earlier made a post on how to try out Android 4.0 through the AVD manager, it works, but its rather slow. So I figured I would test the Android-x86 project now that they a couple of hours ago released an Android 4.0 image.
This article will guide you through the setup of Android 4.0 in virtualbox. It will work a lot smoother than through the AVD.
There are a couple of steps in this guide, but they are straightforward and easy to follow.
Eclipse ADT has been updated. Brings nice features!
Dec 10th
I just noticed throught Eclipse that ADT had been updated.
The new ADT version brings some nice touches to the layout editor.
Now you can select items and drag and drop them onto the layout. It’s a nice touch that will certainly help new android developers a lot.
To get the new features, in eclipse go to Help and then Check for updates.
You can read more in the ADT changelog.
They have also tweaked the XML formatting. Which is always a good thing
I ran a quick test with a drawer layout on Android 4.0:
How to try out Android 4.0 Ice Cream Sandwich!
Oct 19th
A couple or hours ago, the Galaxy Nexus was announced, along with Android 4.0.
At the same time, the Android 4.0 SDK was released into the wild. 
Here I will show you how to already get it up and running, so you can try it out, and start developing/adapting your Android apps for ICS. It will give you a nice “hands on” feeling for ICS
The steps in this post is quite similar to the post I wrote earlier about trying out Honeycomb.
If you want a faster working solution, but for the time being without internet connection, you can check out my post on how to install Android 4.0 in virtualbox. More >
Debugging websites on mobile devices with Opera Mobile and Dragonfly
Aug 24th
I have previously written about how you can debug mobile websites with a tool called Weinre. Now I will explain another way to debug sites, this time, with Opera Mobile, and Opera Dragonfly.
I will be demonstrating this on a Galaxy S 2, with Opera Mobile 11.10 on Android and Opera desktop version 11.50.
This is Opera Mobile, not Mini, which is a different browser.
This will not work for iPhone or iPad since Opera Mobile is not allowed into App store since it is too “similar to safari”.
As we developers know, it is quite difficult and cumbersome to inspect a websites source code, css, javascript or layout, from a mobile browser, like you can in a desktop browser with tools like Firebug.
Dragonfly is a tool that can be used to debug and edit websites on your mobile device, from your desktop computer.
I will be showing how to connect to your phone, and start debugging away!
How to connect usb sticks to your Samsung Galaxy S2 for extra storage on the go.
Aug 15th
Today I finally received my Micro USB OTG adapter.
So I thought I would test it out, connecting a USB stick to my Galaxy S2.
This was really straightforward, so theres not much explaining to do here.
- Put some content on your usb stick, like a movie, some pictures or a sound track.
- Put the usb stick into the OTG adapter, and then the OTG adapter into the phone.
- Browse the content of the usb stick with your favourite file browser app (I used Astro)
You find the contents of the usb stick under /mnt/sdcard/usbStorage/sda
This is great if you need some extra capacity, want to bring with you files, copy and paste from/to the phone, etc.
How to enable remote access to a MySQL database
Aug 6th
If you need to access your mysql database remotely, which I did, you can create a mysql user that has access locally, and remotely.
For example if you want to login and edit the database via HeidiSQL or other mysql tools.
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT OPTION; CREATE USER 'username'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;
These commands will create a user called “username” with the password “password”, which has both local and remote access.
Took me some time to figure it out initially.
How to easily debug websites on mobile devices with “Weinre”
Aug 5th
If you do web development, chances are you sometimes need to fix something on the website adapted to mobile devices such as iPhone and Android.
Debugging websites in a browser on a computer is easy with all the good tools available, such as Firebug in Firefox, Webkit inspector in Chrome and Dragonfly in Opera. But mobile devices doesn’t have any such tool. What do you do then?
That was my problem the other day, a div element on the website rendered for iPhone got the wrong styles, so I had to investigate…
Which was not easily done from the iPhone Safari browser, to say atleast.
(And the solution was not as easy as just browsing the mobile website on my computer with iOS user agent.)
A buddy of mine had just recently come over a tool called weinre. Funny name, yes, but a very handy tool to debug websites on mobile devices!
About Weinre
- Weinre stands for “Web Inspector Remote” and is similar to the web inspector in chrome.
- It will allow you to use the inspector (run on your computer), on the website rendered on your mobile device!
- Changes you do in the inspector, are reflected instantly in the mobile devices browser. (such as changing text, color, dimension etc) just as in FireBug.
- You also get a javascript command line.
- Weinre is a simple jar file, you run through the command line.
It has a lot of documentation on its website, maybe too much, so I thought I would try to cook it down to a few simple steps to get up and running quickly.
How to update Samsung Galaxy S2 firmware with Odin instead of Kies
Jul 8th
After trying to update my Samsung Galaxy S2 with Kies, I quickly gave up after two attempts, on both x32 and x64 Win7, and settled with Odin instead.
Why Kies sucks
First of all, The Kies installation process is not very elegant;
- Its a 50+ MB package with alot of stuff you don’t want or need, such as an integrated music player.
- Drivers not getting installed properly
- About one hundred DLLs (no exaggeration!) not getting registered, each giving me an error message to click “OK” on…
- Kies couldn’t handle a custom installation directory
- And then theres the labels in korean or whatever:
When I finally managed to install Kies (and its 3 running background services…) it wouldn’t detect my phone. Great.
Updating firmware with Odin instead
This is the easiest way of updating you phone.
Its pretty well explained in 8 simple steps here.
But a quick summary:
(I take no responsibility for this.)
- Find your new firmware version and download the file from the links
- Extract the file, so that you now have a .tar file.
- Download and run the Odin software from the provided link (200KB)
- Reboot the phone to download mode
To do this, turn the phone off, then simultaneously press the volume down key, the home button and then press the power button. If you see a warning, press the volume up button to continue. - In Odin, click the button named “PDA” and select your .tar file (your rom).
If the rom has several files, also put in the PDA, Phone/Modem and CSC files. but do NOT put in a .pit file. - Connect the phone to the computer with usb cable, and wait till ID:COM turns yellow.
- Click the “Start” button, and Odin will flash your rom.
As simple as that.
When the flashing is done, your phone will reboot itself.
There are several different roms available for Galaxy S2, I am currently using Litening rom, which I am very happy with.
Edit: If you flash the litening rom, you will get root
Edit2: The litening rom has been discontinued, but someone picked up and continued the development in another thread here, under the name UltraToxic rom.
CyanogenMOD have also come with nightly builds, which mean they are putting effort into making the rom stable enough for everyday use.











