Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Jun 29, 2015

Oneplus-One and ADB USB Driver

Manually install Android ADB USB Driver:

  • Install Android SDK;
  • Then, select "Extras->Google USB Driver", and enable the checkbox;
  • Start Device Manager;
  • Browse to "Other devices", and right-click on "Android phones", then Update Driver Software;
  • Select "Browse my computer for driver software";
  • Select "Let me pick from a list of device drivers on my computer"; 
  • Select "Show All Devices";
  • Press the "Have Disk" button;
  • Enter the path to the Google USB driver. 
  • Normally it is located in the following directory:
  • C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver
  • C:\Users\Administrator\AppData\Local\Android\sdk\extras\google\usb_driver
  • Select "Android ADB Interface" from the list of device types;
  • Confirm the installation again by pressing "Install";
  • When the installation is done, press "Close".
Install OnePlus One USB Drivers on Windows:
  • Install the latest Samsung drivers: SAMSUNG USB Driver v1.5.33.0;
  • Install it like normal applications and restart your computer so that the drivers get installed correctly;
  • After that connect your OnePlus One to your computer.
  • Navigate to the Device Manager;
  • Find the Android device, and select Update Driver Software.
  • Select Browse my computer for driver software;
  • Select Let me pick from a list of device drivers on my computer;
  • Select ADB Interface from the list;
  • Select SAMSUNG Android ADB Interface (this is a signed driver); 
  • If you get a warning, select Yes to continue;
  • Done!

Feb 21, 2014

How to stop images from showing up in Android Gallery?

Application stores pictures at their respective photos, and we download "photos" and keep it for ourselves. But Android Gallery searches and indexes those pictures/photos on the entire SD automatic, and shows them in the Gallery. This can be an embarrass to us sometimes.

How can we stop the images at certain folders from showing up in Android Gallery?

If you like to hide an individual files from the gallery, just rename the file of the picture/photo with a . prefix.

If you would like to hide an entire directory that keeps yours images, just create an empty file with the file name .nomedia in the same folder.

Jul 14, 2013

Full ROM Backup on Unknown Tablet

This is a quick way to perform full ROM backup on tablets. Since those are unknown brand, I have no idea how to "root" them and perform full backup as usual.

Here's how to perform the full ROM backup and restoration on 2 identical (same brand) tablets. (Model M716D running JB 4.0.1)

[ To Backup ]
Start your tablet
Connect the USB cable to tablet
Start command prompt/shell prompt
adb shell
root@android#/ stop zygote [ this one stops android ]
root@android#/ busybox tar -cvf /mnt/sdcard/full_backup.tar /data/*
root@android#/ reboot

[ To Restore ]
Start your tablet
Connect the USB cable to tablet
Start command prompt/shell prompt
adb shell
root@android#/ stop zygote [ this one stops android ]
root@android#/ rm -r /data/*
root@android#/ cd /data/
root@android#/ busybox tar -xvf /mnt/sdcard/full_backup.tar
root@android#/ reboot

[ My Experiment ]

  • Make full backup on tablet-1.
  • Before reboot, I quit the shell and make a copy to my computer.
  1. exit
  2. adb pull /mnt/sdcard/full_backup.tar
  3. ren full_backup.tar full_backup1.tar
  4. adb shell reboot
  • After reboot, I start to install games from Play Store.
  • Then I try the method above to restore the tablet-1 back to original (first boot assistant). [ success ]
  • Make full backup on tablet-2. [ just in case ]
  • After reboot, I start to install games from Play Store to tablet-2.
  • Before the restore tablet-2, I copy tablet-1's full_backup1.tar to tablet2.
  1. adb push full_backup1.tar /mnt/sdcard/
  • Then I try the method above to restore the tablet-2 back to original (first boot assistant) using the tablet-1 backup file. [ success ]

Sep 25, 2012

Wipe out/Factory Reset Samsung Android’s Phones


A major security vulnerability has been disclosed at the Ekoparty 2012 Security Conference which affects Samsung Android handsets.

It it is possible to reset those handsets to factory default settings and in the process wipe out all data. This vulnerability exploits a “secret” code (actually is USSD code) that can be used to trigger the factory reset automatically, without asking any confirmation from the user. That code is: *2767*3855#

There are different methods known to date to push that code onto those handsets:

  • SMS in Wap Push mode (where the user would have to click on a link)
  • QR Code
  • NFC Protocol

Or… if users go to some websites where either
<frame src="tel:*2767*3855%23" />
or
<script>document.location="tel:*2767*3855%23";</script>
is contained in the HTML page.

So far, it has been confirmed to work against the Samsung Galaxy S3, the Galaxy Beam, S Advance, Galaxy Ace and Galaxy S II and some HTC devices.

May 21, 2012

AOKP ICS ROM + Matr1x Kernel

I quit from MIUI and switching to AOKP ROM. Now here's what running on my phone:

  • AOKP ICS ROM build 36 - ROM Control.
  • ICS ROM 4.04
  • Matr1x kernel using CFSv19.5 (3.0.30)
AOKP ICS (Build 36) + Matr1x Kernel (cfs v19.5)

May 5, 2012

MIUI 2.4.27 + Android ICS 4.0.4

Today, my phone is running on MIUI 2.4.27 and Android ICS 4.0.4. Here's the home screen.
MIUI 2.4.27 + Android ICS 4.0.4

MIUI 2.3.23 + ICS 4.0.3

Back in March 27, 2012, I've abandoned CM9 and move to MIUI. Here's the screenshot of the lockscreen.

MIUI 2.3.23 + ICS 4.0.3

CM9 + ICS 4.0.3

I've upgrade my phone to CM9, running Android 4.0.3 back in March 5, 2012.

CM9 + ICS 4.0.3

Oct 15, 2011

Update My Nexus S to CM 7.1


Below are the steps I took to upgrade my Nexus S to CM 7.1 recently.
  1. Step 1: Download the update-cm-7.1.0-NS-signed.zip file of CyanogenMod 7.1 for my phone. 
  2. Step 2: Transfer the .zip file to the root folder.
  3. Step 3: Turn off my phone once the transfer is complete. 
  4. Step 4: Boot into ClockworkMod Recovery mode by holding volume up and power buttons.
  5. Step 5: Using the volume up/down (to navigate) and power key (to select), then navigate to backup and storage > backup. 
  6. Step 6: From the main menu: install zip from sdcard > choose zip from sdcard > update-cm-7.1.0-NS-signed.zip
  7. Step 7: Once flashing is complete, reboot and it is done.

CyanogenMod 7.1

Jul 4, 2011

Root Nexus S Android 2.3.3 Gingerbread using SuperBoot

Just found another article on how to root Nexus S Android 2.3.3 Gingerbread using SuperBoot.

This is a much simple way to root your Nexus S. Just want to share here.

Jul 3, 2011

Rooting Nexus S on Android 2.3.3 Gingerbread

After I unlock my Nexus S, I need to start rooting it in order to get full permission to the filesystem.

Here's the steps that I followed:
  • Reboot Nexus S into bootloader mode. To do so, use the following command at terminal or press the Volume Up + Power key simultaneously.
adb reboot bootloader
  • Unlock the bootloader using the following command:
fastboot oem unlock
  • Download recovery-clockwork-herring.img from here.
  • Now install Clockwork recovery image on Nexus S by using the following command:
fastboot flash recovery recovery-clockwork-herring.img
  • Reboot into recovery mode by using the following command at terminal or choose recovery from fastboot menu
adb reboot recovery
  • Download Koush's unsecure boot image (rootboot.img) from here and put it in your /sdk/tools/ folder
  • Now boot into fastboot and use the following command to install the rooted boot image:
fastboot flash boot rootboot.img
  • Download CHainsDD's Superuser zip (su-2.3.6.1-ef-signed.zip) from here.
  • Open the zip file, place the su binary and Superuser.apk in your sdk/tools/ folder.
  • Now use the following set of commands at terminal to install Superuser app
adb remount
adb push su /system/bin/
adb push Superuser.apk /system/app/
adb shell
chmod 6755 /system/bin/su
exit
adb reboot

Jul 2, 2011

Unlocking Google Nexus S Bootloader

I need to get full permission control on my Google phone in order to start research on it. I need to perform 2 things before I start any development: unlocking & rooting Nexus S.

Unlocking the bootloader will allow me to install custom ROM. And by rooting it, I can gain full access to the filesystem.

My phone comes with Android 2.3.3 Gingerbread. Here's the steps to unlock it:
  • Download and install Android 2.3 SDK along with fastboot from here.
  • Turn off your Nexus S completely.
  • Now hold down the Volume Up + Power key simultaneously.
  • Now you should be in standard recovery mode.
  • Open Command Prompt on Windows and type the following command to confirm if your device is connected via USB cable or not.
fastboot devices
  • If fastboot is showing your device as connected, use the following command to unlock the bootloader of your Nexus S.
fastboot oem unlock
  • Thats it! Now your Nexus S' bootloader is unlocked and you can easily install custom ROMs on your device.

Jul 1, 2011

My Google Nexus S

Recently I just get my first Android phone (Nexus S). Thus I can start my research on Android phone from now on.

Bye Bye, my iPhone 3G!