Android Hints Tweaks and Tips

From Indie IT Wiki

Find WiFi Direct Devices

Settings > Network & Internet > WiFi > WiFi Preferences > Advanced > WiFi Direct

Hidden Test Menu

Dial

*#*#4636#*#*

Changing The Auto Fill Service

http://wiki.indie-it.com/wiki/Bitwarden#Android_Auto_Fill_Service

Backup Apps using SKIT

Play Store

YouTube

Backup Apps Using APK Export

https://play.google.com/store/apps/details?id=com.ses.app.apkexport&hl=en_US

Backup Apps Using ADB

https://gist.github.com/ctrl-freak/24ac0e61b7cf550a6945

Read System Logs Using ADB Logcat

sudo -i
adb devices
adb logcat >/tmp/logcat.txt
adb logcat |grep -i 'whatever'

Thanks - https://appdome.com/knowledgebase/gathering-android-device-logs-using-adb/

Backup Apps and Data Using ADB

Switch to root user and check phone is seen...

sudo -i
adb devices

Single App and Data...

adb backup -apk com.king.candycrushsaga -f /path/to/backup_candycrushsaga_20180724.ab

All Apps and Data..

adb backup -apk -all -f /path/to/backup_apps_20180724.ab

All Apps and Data and SD Card Contents...

adb backup -apk -all -shared -f /path/to/backup20180724.ab

https://forum.xda-developers.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351

https://androidquest.wordpress.com/2014/09/18/backup-applications-on-android-phone-with-adb/

Show Seconds In Status Bar Clock

Enable the System UI Tuner (below) then...

Settings > System > System UI Tuner > Status Bar > Time > Show hours, minutes and seconds

Enable System UI Tuner

Android 8

To enable the System UI tuner menu, swipe down on the status bar and tap-and-long-hold on the gear icon. That will enable the System UI tuner menu in Settings.

Android 9

TBC

Android Beta Program

https://www.google.com/android/beta

Check Your IMEI Number

http://www.imei.info

How to tether on Samsung J5 (2017 Model)

https://connexionslive.zendesk.com/hc/en-gb/articles/115005658889-How-to-tether-on-Samsung-J5-2017-Model-?mobile_site=true

Android 8.0 Oreo Disable Background Notifications

How to Disable the "Is Running in the Background" Notification on Android Oreo

Control Your Notifications

Control Your Notifications

How to use Android Oreo Notifications Properly

WiFi On? Data Off?

This is absolutely redundant and unnecesary, when the phone connects to a wifi, it disables 3g/LTE data connection by itself. When you connect to a wifi you can see how the 3g/H/H+ icon above radio signal dissapears. The radio chip inside this phones can be used in Wifi mode or 3g/4g mode for data connection, but not both at a time. It is technically not possible.

HOWTO: Change Your IMEI Number

If you have damaged your /efs partition, then you can recover your EFS and IMEI Number.

  1. The IMEI Number of the Phone is under the battery
  2. Check that it has not been blacklisted here - http://www.imei.info
  3. Install the Xposed Framework For S3 I9300 CM13 Mashmallow Android 6.0 via TWRP Recovery
  4. Install IMEI Changer
  5. Start Xposed Framework App > Modules > Tick IMEI Changer > Reboot
  6. Check IMEI Number in Phone Dialer by dialling *#06#

HOWTO: Backup EFS Partition

The /efs/ partition is where your IMEI, MAC Address, etc. is stored and if this is lost or corrupted, you cannot make any phone calls or connect to wifi.

To backup, use TWRP Custom Recovery...

Backup > EFS > Swipe

...then copy the folder to your computer and then copy that to the cloud.

adb pull -p -a /sdcard/TWRP ~/TWRP
aws s3 sync ~/TWRP s3://bucket/TWRP

...and then you can sleep at night :)

HOWTO: UnRoot and ReRoot or Toggle Root

If you would like Android Pay or Pokemon Go to work on a rooted phone, then you need to just delete or move the 'su' binary from the folders it is located in.

I initally did this using 'ES File Exporer' Root Explorer feature, but once you do it, you cannot do it BACK again.

So, I came up with a better method using a laptop and a cable.

You will be logging in to the phone as root, remounting the system folder as read-write, creating some folders, moving the 'su' binary to those folders, and then remounting the system folder as read-only. We then download a copy of the 'su' binary to our laptop for good measure. Then, we test that we can pass the 'SafetyNet' test using a free simple no-ads app from the Play Store.

These instructions are at your own risk. You have been warned if you brick your phone. I accept no responsibility.

UnRoot

  1. Enable Developer Options
  2. Enable Root ADB and APPS
  3. Enable ADB Debugging
  4. Plug USB cable in to computer and phone
sudo -i
adb devices
adb root
adb shell
/system/bin/mount -o remount,rw /system
mkdir -p /sdcard/system/bin
mkdir -p /sdcard/system/xbin
cp /system/bin/su /sdcard/system/bin/
ll /sdcard/system/bin/su
cp /system/xbin/su /sdcard/system/xbin/
ll /sdcard/system/xbin/su
rm -i /system/bin/su
rm -i /system/xbin/su
/system/bin/mount -o remount,ro /system   (if this fails do not worry)
exit
adb reboot

Reboot the phone.

Test with SafetyNet Helper Sample app.

ReRoot

  1. Enable Developer Options
  2. Enable Root ADB and APPS
  3. Enable ADB Debugging
  4. Plug USB cable in to computer and phone
sudo -i
adb devices
adb root
adb shell
/system/bin/mount -o remount,rw /system
mv -v /sdcard/system/bin/su /system/bin/
ll /system/bin/su
mv -v /sdcard/system/xbin/su /system/xbin/
ll /system/xbin/su
/system/bin/mount -o remount,ro /system   (if this fails do not worry)
exit

Reboot the phone.

Test with SafetyNet Helper Sample app.

CyanogenMod Phone Backup and Update

  1. CyanogenMod Update
  2. Titanium Backup
  3. UnRoot
  4. Reboot

HOWTO: Clear App Cache

Android 6 Marshmallow

Settings > Storage & USB > Internal Storage > Cached Data

Android 5 Lollipop

Settings > Storage > Cached Data > Clean

ADB Push and Pull Files and Folders

Push File

adb push ~/path/to/file /sdcard/

Pull File

adb pull /data/app/file ~/path/to/my/folder/

Pull Folder

adb pull /sdcard/. ~/path/to/my/folder/

Thanks - http://www.herongyang.com/Android/adb-push-and-pull-Command.html

Thanks - http://www.droidviews.com/push-pull-files-android-using-adb-commands/

Troubleshooting

adb pull /sdcard backup
failed to copy '/sdcard' to 'backup': Is a directory

The trick is to add /. to the name of the folder you want to copy.

adb pull /sdcard/. backup

Capturing A Screen Video

adb devices
adb shell screenrecord --size 360x640 /sdcard/video.mp4
CTRL+C
adb pull /sdcard/video.mp4 .
vlc video.mp4

Thanks - http://www.phonearena.com/news/How-to-record-your-screen-on-Android-4.4-KitKat_id49133

Combating Stagefright

http://www.ghacks.net/2015/07/30/how-to-protect-your-android-device-against-stagefright-attacks/

Android File System Filesystem Layout

http://techblogon.com/android-file-system-structure-architecture-layout-details/

HOWTO: Auto Answer Phone Call In Tasker App

Profile context State -> Phone -> Call -> Incoming.
Action 1: Phone -> Take Call, action 2: Audio Settings -> Speakerphone -> On.

XML...

<TaskerData sr="" dvi="1" tv="5.0u6m">
 <Task sr="task26">
 <cdate>1508841966301</cdate>
 <edate>1508842171662</edate>
 <id>26</id>
 <nme>Auto Answer Phone</nme>
 <pri>100</pri>
 <Action sr="act0" ve="7">
 <code>254</code>
 <Int sr="arg0" val="1"/>
 </Action>
 </Task>
 </TaskerData>

HOWTO: Send Random Text In Tasker App

https://www.reddit.com/r/tasker/comments/1yjqru/pull_a_random_line_from_a_text_file/

HOWTO: Disable / Enable Data In Tasker App (Root)

Run Shell -> svc data enable/disable (with root)

Thanks - http://stackoverflow.com/questions/23528824/is-there-an-adb-command-to-enable-disable-mobile-datarooted-device

HOWTO: INSTALL:

GOOGLE APPS GAPPS

OpenGapps

http://www.androidrootz.com/2015/03/download-android-44x-kitkat-pa-gapps.html

Android 4.4.x KitKat PA Gapps Variants:

  • Stock - Recommended for most users
  • Full
  • Mini
  • Mico
  • Nano - Recommended if you have an older device/limited storage
  • Pico - Recommend if you have an older device/limited storage
  • Pico(Uni)

ADOBE FLASH

https://helpx.adobe.com/flash-player/kb/installing-flash-player-android-devices.html

HOWTO: Convert The File System To F2FS

  • Boot into TWRP recovery.
  • Choose Wipe then Advanced Wipe.
  • Check System and press Repair or Change File System.
  • Choose Change File System and select F2FS.
  • Once the conversion is complete, repeat for the Cache partition.
  • DO NOT TOUCH THE DATA PARTITION
  • Then reboot the device back into TWRP/Recovery to ensure that TWRP has updated itself for the new file system.
  • Then reboot again into the normal system.

Thanks - http://teknovenus.com/wordpress/speed-up-nexus-7-f2fs-slimkat/

HOWTO: Clean Install

A Clean install consists of the following:

  1. Factory Reset (or manually wipe (format) Data partition - Internal Storage wipe is NOT necessary)
  2. Manually wipe (format) your System partition
  3. Flash your ROM
  4. Flash GApps package
  5. Flash any Addon Modules (optional)
  6. Wipe the Dalvik & cache
  7. Reboot

Thanks - http://forum.xda-developers.com/paranoid-android/general/gapps-official-to-date-pa-google-apps-t2943900

HOWTO: Change Hostname

Prerequisite: Full root access

In /system locate build.prop

Open it in an editor and add the following line at the end of the file add the following (and nothing else):

net.hostname=YourDeviceName

Save and close.

Reboot to be on the safe side.

Thanks go to [drakxtwo http://drakxtwo.eu/?p=122].

HOWTO: Force Update On Compatible Devices

Settings > Apps > All > Google Framework Services > Clear Data > Force Stop > Settings > About phone > System updates > Check now

Thanks - http://bit.ly/1tMZx59

HOWTO: Set The Proxy For A Wi-Fi Network

  1. Connect to Wi-Fi network
  2. Settings > Wi-Fi
  3. Press and HOLD on connected network's name
  4. Modify Network
  5. Show advanced options
  6. Set proxy settings

Thanks - http://stackoverflow.com/questions/21068905/how-to-change-proxy-settings-in-android-especially-in-chrome

HOWTO: Change Mobile Data Cycle

System Settings > Data > Cycle > Change Cycle

HOWTO: DELETE:

ALL CONTACTS

To delete all the contacts on your Android phone, do this...

  1. Start the People app > Menu button > Accounts > untick 'Auto-sync app data'
  2. Close the People app
  3. Start the System Settings app > Apps > (scroll to the right) > All > Contacts Storage > Clear Data
  4. Close the System Settings app
  5. Reboot phone

HOWTO: Add Custom Ringtones

http://www.wikihow.com/Add-Ringtones-to-an-Android-Phone

HOWTO: FIX:

Incorrect Country Dialling Code

  • Settings
  • More
  • Mobile Networks
  • Network Operators (depending on your devices and Android version you may need to repeat this step).
  • Choose automatically

This problems occurred on a client's dual SIM ASUS after a business trip to Qatar where he purchased a local SIM. On returning to the UK and replacing the Qatari SIM with a Vodafone one the phone still asked if it was to dial the selected phone number as if it was still in Qatar.

TitaniumBackup Insufficient Space

SuperSu > Settings > untick Mount Namespace Separation > Reboot

http://forum.xda-developers.com/showthread.php?t=1810294&page=8

4.4 KitKat: No APN specified on device

  1. System Settings
  2. Mobile Networks
  3. Access Point Names
  4. Options (top right 3 dots)
  5. Reset to default
  6. Press the actual dot next to your correct Option (e.g. O2 UK)

Thanks to Google Products Forum.

Gallery Not Refreshing After Item Deletion

Settings >> Apps >> Gallery
Clear cache >> clear data >> force close
Settings >> Apps >> Media storage
Clear cache >> clear data >> force close

Restart Gallery app and wait until it repopulates. If it does not click the options button (triple dots) and select 'Refresh'. If that does not work reboot the device.

Thanks to djMyKey.

Insufficient Storage Space Available

After months of normal usage, the internal space on an Android phone will fill up to nearly full.

This will mean you cannot update or install apps.

To fix this, you need to clear the following items:-

  • Cache
  • Phone Calls Log
  • Text Messages
  • Downloads

To clear all this easily, install a nice app to do it for you called Clean Master

It cleared 200Mb on a quick first go.

Problem. Solved.

WidgetLocker Lock Screen

WidgetLocker is a nice lockscreen app to provide extra options and shortcuts.

How To - http://android.appstorm.net/how-to/create-a-minimal-lock-screen-with-widgetlocker/

Play Store - https://play.google.com/store/apps/details?id=com.teslacoilsw.widgetlocker

Download APK Files

http://www.apkmirror.com/apk/google-inc/gmail/gmail-4-9-1271612-apk/

http://www.wikihow.com/Extract-APK-File-of-Any-App-on-Your-Android-Phone

http://www.papktop.com/

http://www.getjar.com/

http://slideme.org/

http://www.1mobile.com/

http://www.apkmania.co/

Lifehacker: Rooting Mobile Phones Glossary and Guide

http://lifehacker.com/5789397/the-always-up+to+date-guide-to-rooting-any-android-phone

Google Rootz Wiki

http://wiki.rootzwiki.com/Google_Apps

Download Latest Google Play Store APK File

http://www.androidpolice.com/2012/12/13/download-latest-google-play-store-3-10-10/

http://www.google.co.uk/search?q=com.android.vending-3.10.10.apk

Google Android Developer Hosting Files

http://goo.im/gapps

Lost Your Android Phone

https://play.google.com/store/apps/details?id=com.lookout.labs.planb

Finding Information About Your Phone

Open the dial pad and type the following:

*#*#4636#*#*

Rooting

Splitting Audio Between Bluetooth And Headphones

Settings > Wireless & Network > Bluetooth Settings > Scroll down to the device you're connected to,
then tap & hold, selecting Options > Uncheck Media.

http://www.droidforums.net/forum/droid-x-tech-support/130931-splitting-audio-between-bluetooth-headset-calls-headphone-jack-media.html

Disable A2DP

Settings > Wireless & Network > Bluetooth Settings > Scroll down to the device you're connected to,
then tap & hold, selecting Options > Uncheck Media.

Call Duration

Individual Calls

Phone [app] > Contacts [tab] > History [tab] > Choose Entry (with a green arrow pointing left) at the time you made the call.

or

Contacts [app] > History [tab] > Choose Entry (with a green arrow pointing left) at the time you made the call.

Total Calls

Phone [app] > Logs [tab] > Settings [button] > Call Duration

Tips & Tricks

Star B92M

http://wiki.indie-it.com/index.php?title=Android#Rooting_2

Routing Bluetooth Audio

http://bamapp.weebly.com

Splitting Audio Between Bluetooth And Headphones

Settings > Wireless & Network > Bluetooth Settings > Scroll down to the device you're connected to,
then tap & hold, selecting Options > Uncheck Media.

http://www.droidforums.net/forum/droid-x-tech-support/130931-splitting-audio-between-bluetooth-headset-calls-headphone-jack-media.html

General

http://www.pcworld.com/businesscenter/article/184659/master_google_android_40_tips_and_tricks.html

http://googleblog.blogspot.co.uk/2010/12/some-cool-android-tips-and-tricks.html

Android Keyboard Shortcuts: All The Hotkeys You Need

http://www.pcworld.com/businesscenter/article/184656/android_keyboard_shortcuts_all_the_hotkeys_you_need.html

Market / Play

Installed Apps

If you change your mobile phone, your apps will have gone. Don't worry. Google keeps a record of all the apps you have installed so that you can quickly re-install them again. Just log in to your Google account and go to this page...

https://play.google.com/apps

Just click the Install button for each app you would like to have again.

Clever Google.

Multiple (Maybe Old) Devices

Maybe you upgraded your phone and forgot to tell Google it's no longer yours? Don't worry. Just go to the 'My Account' page on Google Play (at the bottom of every page) and edit or remove your devices as you need.

https://play.google.com/store/account

Clever Google.

USB Storage

Mode Choice

On a Samsung device, to turn off the automatic choice of Samsung Kies, go to...

Settings > Wireless and Network > USB Settings > Ask on Connection

To Connect

Connect the device to the USB port of your computer, then from the pop-up window choose...

Mass Storage > Connect USB Storage > OK

The device will now show USB Storage In Use.

To Disconnect

Click Unmount or Safely Remove the drive device from your computer first. Then, on the Andoid device choose...

USB Storage In Use > Turn Off

Now you can cancel the USB screen, return home and remove the cable from your computer and Android device.

Uptime

Settings > About Phone > Status