Tuesday, February 19, 2013

Root Micromax A80


There is no custom ROM for A80 yet. If you just want to root it without backing up anything, here is an easier way to do.
Essentially you use the SP Flash tool to overwrite just the stock recovery image with CWM recovery. Then go to recovery and install uniroot2.signed.zip.
So you will now have the stock Micromax A80 ROM, but rooted and with CWM recovery.

For this you will need
1. USB Drivers. Link -> Drivers.zip
2. SP Flash tool. Link -> SP_Flash_Tool_v2.1121.01.zip
3. Micromax A80 scatter file. Link -> MT6573_Android_scatter.txt
4. CWM recovery image. Link -> recovery.img
5. unitroot2.signed.zip file. Link -> unitroot2.signed.zip

It seems installing USB drivers is the most trickiest part. So try the following in the order it is mentioned below:
1. Unzip Drivers.zip. It will unzip to a folder named "Drivers".
2. Whenever you plug in the USB cable and you are presented with missing drivers dialog, select "Browse my computer for driver software" and then click Browse button and select the Drivers folder obtained from Step#1. It contains all the possible drivers.
If you are not presented with any missing drivers dialog at all, check Device Manager for phone or android related drivers with a question mark or asterisk icon. Right click on it and select "Update Driver" and then carry out as mentioned in Step#2.
3. If the above method fails, plug your phone to PC via USB cable first and then install PdaNet+ for Android. Link -> PdaNet+ for Android
PdaNet+ for Android installs the necessary drivers for the phone automatically.

Rooting Procedure:
1. Create a new folder and put the Scatter file (MT6573_Android_scatter.txt) and recovery image (recovery.img) file in it.



2. Connect your phone to PC and put unitroot2.signed.zip in the root of sdcard.
3. Switch off the phone and connect the microUSB cable to it, but not to the PC yet.
4. Open SP Flash tool



5. Click on "Scatter-loading" button, and browse to the folder where you kept the scatter file and select the Scatter file. Press ok for the pop up.



It would automatically load the recovery image file (since it was in the same folder) and that would be the only one that is checked.



Click "Download". A countdown would start with 14 seconds remaining.
Plug the microusb cable to PC within 14 seconds. As soon as the phone is detected, the countdown will stop and a yellow progress bar will start.



After it has finished, a pop up would appear saying that recovery has been downloaded to phone.



Press OK and then one more pop up with a green circle saying "Download OK" would appear. This means everything is OK.



Close that pop up and close SP Flash tool.

Press the Volume Up button and power button simultaneously. Keep them pressed till you get into CWM recovery.

You will see "CWM_based Recovery v5.0.2.8" with blue letters. Use Volume Up or Down button to scroll down or up. Use Power button to select an option.

1. Select "install zip from sdcard"
2. Select "choose zip from sdcard"
3. Select "unitroot2.signed.zip"
4. Select "Yes - Install unitroot2.signed.zip"

You will see the following
CWM_based Recovery v5.0.2.8

-- Installing: /sdcard/unitroot2.signed.zip
Finding update package...
Opening update package...
Installing update...
...Starting Rooting...
...Copying System Files...
...Installing root...
...Installing busybox...
...Installing Superuser...
...Rooting Complete!...

Install from from sdcard complete.

5. Select "+++++Go Back+++++"
6. Select "reboot system now"

After it reboots, you will have a rooted Micromax A80.

Wednesday, January 23, 2013

Vodafone USSD Codes

Vodafone Care USSD - *111#
Choose ur language
1.Hindi (on supported handsets only)
2.English

Option 2
Press Answer, type number, press call button
1.My Delights
2.My Balance
3.Last 3 Charges
4.Last 3 Recharges
5.Data Plan
6.Bonus Card
0.More

Option 0
Select from following options:
7.Best Offer
8.Low Balance Services
Press # for main menu

Option 7
1. 25 STD Min @ Rs8
2. Full Talktime 130
3. 1 GB Data @ Rs24
4. Bonus Card 46
5. 80 SMS @ Rs6
To know details select from above op

Option 8
Prepaid Low Balance Services
1.Balance Transfer
2.Balance Request
3.Call Me Back
4.Chhota Credit
5.My Delights
Press Answer button type no , press call button

Vodafone Offers USSD - *121#
Special offers for you are:
1. 25 STD Min @ Rs8
2. Full Talktime 130
3. 1 GB Data @ Rs24
4. Bonus Card 46
5. 80 SMS @ Rs6
0. More
Select from above options

Option 0
1.My Delights
Select from above options

Option 1
1. Bid to get Petrol worth Rs10000
2. Get Free Deals
3. Jhakas Deals
4. Majhi Maharashtrian Deals
5. Info
Press # for main menu

Vodafone Offers 2 USSD - *444#
1.Daily Bonus Cards
2.Night Bonus Cards
3.SMS Bonus Cards
4.My Delights
5.GPRS Packs
6.Happy Hour
For details,Type Option & Press Call Button

Vodafone Balance USSD - *141#

Vodafone Alerts USSD - *123#
Welcome to Vodafone Alerts!
1.Google Lite
2.Top Services
3.Money Saver Packs
4.More Categories
Reply with 1 OR 2 OR 3 OR 4 (tollfree)

Option 4
Categories
1.Sports Pack
2.Bollywood Pack
3.Daily Packs
4.Infotainment
5.Devotional
6.News Pack
7.Finance
Reply by 1 to 7 and press call

Option 1
Welcome to Google Lite
1.Weather
2.Definitions
3.Translate
4.Movies
5.Railways
6.Stock
7.Currency

Option 2
Top Services:
1.Jokes
2.Quran Pack
3.4 in 1 Sports
4.Love Daily
5.Astrology
For more info, reply with 1 OR 2 OR 3 OR 4 (tollfree)

Option 3
Money Saver Packs:
1.Devotional Pack
2.All News
3.Super Combo
4.Love Combo
For more info, reply with 1 OR 2 OR 3 OR 4 (tollfree)

Vodafone Caller Tunes - *567#

Tuesday, January 22, 2013

Parse all characters in char*

#include <iostream>

using namespace std;

void myfunc(char* char_in)
{
    bool empty = true;
    for(int i = 0; char_in[i]; ++i) 
    {
        if(char_in[i] != ' ' && char_in[i] != '\t' && char_in[i] != '\r' && char_in[i] != '\n') 
        {
            printf("Char* is not empty. Found a non space character @ %d\n\n", i);
            empty = false;
            break;
        }
    }
    if(empty)
    {
        printf("Char* is empty\n\n");
    }
}


int main()
{
    char* char_i = "    Hello   ";
    myfunc(char_i);
    
    system("PAUSE");
    return 0;
}

Friday, January 11, 2013

BIOS Boot Menu Bootable Devices

Following are the BIOS boot menu bootable devices typically found and their explanations

Bootable DeviceExplanation
USB FDCUSB Floppy Disk Controller: An external USB floppy drive
USB KEYAn external USB Flash drive that appears as a "Removable Disk". In other words, any external USB device that appears as a "Removable Disk"
USB HDDUSB Hard Disk Drive: An external USB hard disk. Could be either an external USB flash drive that appears as a "Local Disk" or "Fixed Disk" or an external USB hard drive. In other words, any external USB device that appears as a "Local Disk" or "Fixed Disk"
USB CDROMAn external USB CD ROM
CDROMAn internal CD ROM
IDE X
or
HDD
An internal Hard Disk Drive X. Where X is the number representing the order of hard disk
NetworkBoot via network, i.e. via ethernet



Tuesday, January 8, 2013

Small linux distros with ISO size 200MB or less

List of small linux distros with iso size 200MB or less

DistroISO SizeLast News
ROCK22006-07-27
MoviX/eMoviX10.82004-08-14
Tiny Core122012-11-02
Coyote17.72005-12-19
m0n0wall17.82012-11-12
Eagle222003-05-10
SliTaz34.72012-04-11
Freepia35.52003-08-30
ByzantineOS43.92004-04-04
Ophcrack462012-05-15
LNX-BBC482004-02-11
Luit502004-12-21
Damn Small50.62012-08-04
NuTyX522011-06-03
Syllable Desktop562010-06-09
Flonix592004-01-24
INSERT59.32007-02-16
IPCop60.32012-02-15
Knopperdisk62.42007-02-24
xPUD652010-11-03
SmoothWall68.92007-08-22
pfSense76.22012-12-21
IPFire77.92012-12-19
RUNT78.72007-02-02
LiveCD Router88.62005-04-12
CDlinux922011-11-08
MilaX932010-02-17
FreeNAS1032012-10-27
OpenELEC1042012-11-30
Grafpup1062007-06-02
Onebase1082005-08-17
Clonezilla1112012-12-18
Sorcerer1122004-06-21
Toutou1142010-02-04
Adamantix1162004-08-17
Finnix1172012-12-25
Feather1192005-02-28
Unity1192012-05-23
Hacao1202009-05-31
DNALinux1222006-04-20
Quirky1242010-11-27
Nature's1272005-03-23
Bluewall1292006-02-05
College1312006-07-19
GParted1332012-12-30
GeeXboX1362012-09-20
TurnKey1392012-08-30
Grml1452012-05-29
Trinity1462010-08-16
KnoppiXMAME1502004-02-17
Puppy1552012-12-04
LPS1812012-09-15
BeatrIX1822005-01-29
DragonFly1842012-11-03
Bonzai1862004-01-14
Debris1862009-11-29
Endian1862012-01-31
Annvix1902007-12-30
BU Linux1932006-08-23
Macpup1932012-08-18
StressLinux1942011-04-17
CensorNet1952004-09-22
PHLAK1952005-10-12
Blin1972005-02-05
Morphix1982003-09-24
T22002010-07-15
Hikarunix2032005-09-21
LAMPPIX2052004-06-04
Arudius2062006-02-08
LAS2092004-03-06
Liberté2132012-09-02
SENTINIX2132003-11-28
Thinstation2182012-02-10
Slax2192013-01-03