Find a file on the Android while in terminal or adb

find /data -iname “myfile*.txt”

This will look in the /data partition for the files myfile1.txt, Myfile2.txt, etc.

The -iname makes the search case insensitive, which is what windows people are used to, whereas linux people can have two different files with the same name in the same directory! (different case)

Also note that Linux default sort on the Android makes the capital letter directories (folders) in front of the lowercase ones.

So Myfiles directory will not be next to myfiles2 directory!

“Permission Denied” while trying to write a file to the Android

Mount an Android filesystem read-write

 Very often when you want to write files to a particular partition on ADB, you will get a “Permission Denied” if the partition is mounted read-only.
To get around this, you need to mount the partition read-write. Typically this is done with /system partition$ adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

(Replace /dev/block/mtdblock3 & /system with appropriate device path and mount point, as obtained from the command mount or cat /proc/mounts)

How to change the Touch Wiz Bottom Dock Icons

Think you’re stuck with them? Not now :-/
Change the built in homescreen bottom dock drawer apps:
That’s the preset apps that you think you’re stuck with at the bottom “app drawer” on every home screen. Tap the all applications icon->tap menu->edit->(Android screen button) then drag whatever app you’d like to replace onto one of the default four to on the bottom. If you don’t have an android edit button can you probably have your android applications sorted alphabetically you need to sort them as a grid, you can switch it back after you can you’ve edited your android bottom tray icons

Android – Turn off cellular radio – special backdoor code

Dial *#*#INFO#*#* and you’ll instantly have access to low level cell phone controls on your android!

You can turn off the Cellular radio while leaving wifi and bluetooth on!

Ping test the 3G network with this tool.

You can also mess things up with all of the phone options available 😛

This leads to the “Battery” which screen shows your battery level and battery temperature as well as battery health.

“Usage Statistics” screen shows the amount of time your apps are using CPU and how many times they’ve launched since last boot.

The “Wifi Status” tells you Android IP, hidden SSID, MAC address, link speed, it also has a ping tester.

Samsung TouchWiz tips and tricks for Galaxy and others

These tips and tricks are specific to the Samsung Touchwiz interface:

Cool things you can do with TouchWiz:

Homescreens: TouchWiz supports upto 7 homescreens, there are 4 easy ways to quickly jump between them:

  • Tapping on the tiny dots near the bottom of the screen and jumping between them directly.
  • Tapping and sliding left to right to quick scroll, much like the ultimate Compiz desktop on Ubuntu!
  • Pinch and zoom out to see all 7 desktops, much like Mac OSX multiple desktops and mission control!
  • The usual slide from left to right, screen by screen. TouchWiz wraps around from 7 back to screen 1.
To take a screenshot on the android, tap and hold the home icon and quickly tap and hold the power button. If you end up getting a screenshot of your recent launched task list, this will depend upon your timing, don’t hold home as long before tapping power.
Brightness adjust from any home screen:
This is a time saver. Touch and hold the status bar, then drag your finger to the right to make the screen brighter. This android brightness shortcut also works to quickly dim your screen by holding the notification bar and dragging to the left.
This no longer works in Android 4.1.2 for me, now the brightness slider can be pinned to the top of the drop down notifications, but if you slide to left or right it just shows the date info. Liked it better before. My new favorite Android brightness widget is Lux. After trying just several, even root required brightness apps, this is the only one that will take the brightness lower than the lowest brightness set by the factory software. Lux can replace the Touchwiz brightness slider on the notification drop down too!  Lux is the best auto brightness widget for Android to date.
Browser text wrap:
The Samsung TouchWiz and Galaxy browser doesn’t wrap text to fit the screen when you zoom, by default. But you can turn this on in:
Browser->Settings->”Auto Fit pages” (Check this)
Browser User Agent spoof:
It’s built in to the browser with an easy radio button to mimick many good computers/browsers:
Type “about:useragent” in your URL bar and you can set it to be an iphone!
Pinch/Zoom based Tab switching:
While viewing a webpage, pinch and zoom out to view all of your open tabs and cycle through them like iTunes coverflow.
Custom Fonts for the phone:
Go to Settings->Screen Display->Font Style->Then choose your style or choose the option to download.
Change the built in homescreen bottom (dock) drawer apps:
That’s the preset apps that you think you’re stuck with at the bottom “app drawer” on every home screen. Tap the all applications icon->tap menu->edit->then drag whatever app you’d like to replace onto one of the default four to on the bottom.
Keep your videos from switching from landscape to portrait while watching:
This is faster than turning off your auto-rotate on your phone and also less permanent:
While watching any video with the built in player, tap the power button and you’ll see a lock icon appear on the upper right (in landscape)
Special screen testing mode: This tests the lcd, the sensors and much of the android hardware:
Dial #0*#
Search key: If you don’t have a dedicated search key (Magnify Glass icon)
Long press menu. This normally brings up the recently launched tasks on most androids.
Dial by spelling your contact name:
Just like a phone alpha pad.
Quick calling from your contact list:
Swipe to the right to call your contact immediately.
Quick texting from your contact list:
Swipe to the left to text your contact immediately.