Sunday, October 12, 2014

How I Installed CyanogenMod on my Samsung Galaxy S III

I decided to install CyanogenMod on my mobile phone because the stock firmware had a slow user interface. I just followed the guide on http://wiki.cyanogenmod.org/w/Install_CM_for_i9300 working on Windows 7 with Samsung Kies3 installed.

After I'd installed cm-10.1.3-i9300 (http://download.cyanogenmod.org/get/jenkins/42508/cm-10.1.3-i9300.zip), my Wi-Fi module didn't work. I turned it on, entered the password, and it ended up showing me the state Saved.

On http://forum.cyanogenmod.org/topic/79452-samsung-s3-5ghz-wifi-not-working/#entry422420 they suggested creating a file in /data and changing its owner, group, and mode bits.

su
echo murata > /data/.cid.info
chown system /data/.cid.info
chgrp wifi /data/.cid.info

chmod 0660 /data/.cid.info

But it didn't work for me. When I restarted the phone, there was no such a file. I didn't manage to make my Wi-Fi module work and just installed the newest nightly build http://download.cyanogenmod.org/get/jenkins/85875/cm-11-20141003-NIGHTLY-i9300.zip (the link may be dead now).

I tested the Wi-Fi module first thing, and it worked. Then I spent a week to test everything else. Everything is fine. If I notice any bugs, I'll post them here. Besides the launcher looks like the one on Android L.




The only one problem I had to solve was root access via ADB. I found the answer on http://android.stackexchange.com/a/70159/18093
Just go to Settings - Superuser, press the menu item Settings, and change Superuser access from Apps to Apps and ADB.







Afterwards I installed Google Apps: Play Google, Gmail, etc. Just visit 
http://wiki.cyanogenmod.org/w/Google_Apps, download a ZIP for your version of CyanogenMod, reboot to the recover mode, and install the ZIP. That's all.

In conclusion, there is a little tip which may be helpful to somebody. I found it on http://forums.androidcentral.com/nexus-10-rooting-roms-hacks/257959-downloading-do-not-turn-off-target.html#post2619440

Power-Home-Volume Down = Download Mode
Power-Home-Volume Up = Recovery Mode


I got mixed up the key combinations a few times while installing CyanogenMod.



The bugs I have noticed.

  1. Suppose I have an SMS thread. If I delete the thread, it will still be shown with no subject until I reopen the screen a list of texts. 




Saturday, December 21, 2013

How to Push to a Local Repository Using Git

Typically I needed to push to a local repository when the remote one in our office was temporarily unavailable. 

Suppose you have got a project called My_Project and use Git for source code management. If you would like ti set up a repository on your local machine to push to it, this guide can be useful to you.

Let's start.
  1. Go to the directory with your project.
  2. Init a repository in this directory using git init
  3. After changing some files, commit them using git add -A and git commit -m "Initial commit"
  4. Create a directory called My_Repo.git on your local machine. It will be your local repository. Let's create it in the home directory.
  5. Go to My_Repo.git.
  6. Run git init --bare
  7. Go back to the My_Project
  8. Add the full path of My_Repo.git to a list of repositories of your project. 
git remote add local /home/maksim-dmitriev/My_Repo.git

You are ready to push to your local repository.

git push local master

And then push, clone, and pull as usual.

Saturday, September 21, 2013

Running Google Chrome with a Specified Profile on Linux

I have got two Google Chrome profiles, and each of them has its own history, bookmarks, settings, etc. In order to run the browser with a specified profile, I created a little Bash script called chrome and saved it in the $HOME/bin directory.

#!/bin/bash

if [ "$1" = "ks" ]
then 
    google-chrome --profile-directory=Default
    echo X
elif [ "$1" = "x" ]
then 
    google-chrome --profile-directory="Profile 1"
else
    echo "Wrong argument"
fi 

For example, my name is Maksim, and it can be spelled as Maxim or Maksim

If I use a Google account where my name is spelled as Maksim, I run chrome ks. And when I use my second Google account where my name is spelled as Maxim, I run chrome x.

http://superuser.com/a/377195/150464
Thanks, guys!