# Question
Title: how to replace gmail with the new inbox by gmail
I've got an invite to the new inbox by gmail service. I downloaded the app, but I can't seem to make it the default mailing app on the phone. (when I receive new emails, I get system notifications from the gmail app and not from the inbox app). I tried to list the inbox app as the default mailing app using "Default App Manager" from the play store, but I guess that deals more with handling "mailto" commands and such, not with system notifications. how do I get Inbox to show notifications instead of gmail? I kinda randomly got 2-3 notifications from inbox while trying to make it work, but I have no idea why it happened.

thanks in advance!

# Answer
> 54 votes
Enable notifications for Inbox:

* tap menu icon
* tap settings (just above Help & feedback" at bottom of screen
* tap your email address
* check "New messages" and your choice of Vibrations, Lights, and sound.
* Tap "Turn off Gmail notifications" & confirm (if displayed)

Disable notifications in the Gmail app (if "Turn off Gmail notifications" is not displayed in Inbox):

* swipe from left to right to expose mailbox list, labels, and settings
* scroll down to "Settings"
* tap your email address
* uncheck "Notifications"

(repeat for each email address if you have multiple set up). You'll be able to see your mail from either app, but notifications will now come from Inbox instead of Gmail.

# Answer
> 1 votes
1. Go to apps\>gmail and click disable (you may have to uninstall updates first)
2. Enjoy

EDIT: Please use the other solution if you have more than one gmail account

---
Tags: notifications, email, gmail, inbox-by-gmail
---


# Question
Title: Set Android device default install location to external SD card
I have Samsung GalaxyS2. Is there a way to set the default install location to SD card of all downloaded apps from play store.

# Answer
This has been by far one the best utility app that I have bought for my phone. It will install to your SD card and can be set to do so by default: https://play.google.com/store/apps/details?id=com.buak.Link2SD&hl=en

I had a special condition where my SD card was "emulated" and so the OS couldn't link the app to the external storage. This app solves that by having you partition the SD card and then using a startup script to mount it as another ext filesystem that it can use to link to. It does this all fairly automatic and seamless.

Disclaimer: I am not affiliated or know the developer of this app, I just shopped around and found this to be the best one under all circumstances.

(you may need to be rooted, not sure for your device)
> 0 votes

---
Tags: installation, sd-card, geolocation
---


# Question
Title: Permission denied while installing a system app with SSH
I have the APK file for an application I want to install as a system application via SSH on rooted Android tablets. I'm able to install this application via ADB with a script but the installation fails when I do it through SSH. The SSH application installed is called QuickSSHd and I log in as root. With ADB I'm connected with the shell account that I raise as root with the `su` command.

Here is the installation script:

```
if [[ $EUID -ne 0 ]]; then
   echo ">> This script must be run as root."
   exit 1
fi

echo ">> Remounting /system in write mode..."
mount -o rw,remount /system

echo ">> Installing Manager..."
wget -P /system/app http://update.esmart.net/apk/Manager.apk
chmod 777 /system/app/Manager.apk
chown system:system /system/app/Manager.apk

echo ">> Removing smanager..."
rm /system/app/smanager*

echo ">> Remounting /system in read mode..."
mount -o ro,remount /system

echo ">> Starting Manager..."
sleep 2
am start -W -n ch.esmart.managerapp/.MainActivity

echo ">> Finished !"

```

The application icon is not displayed and `am` command does not work.

After checking in logcat:

```
$ logcat | grep Manager
W/zipro   ( 3308): Unable to open zip '/system/app/Manager.apk': Permission denied
D/asset   ( 3308): failed to open Zip archive '/system/app/Manager.apk'
W/PackageParser( 3308): Unable to read AndroidManifest.xml of /system/app/Manager.apk

```

I also tried the `su` command in SSH but it changes nothing.

The permissions look good:

```
$ stat /system/app/Manager.apk
  File: "/system/app/Manager.apk"
  Size: 370990      Blocks: 728        IO Block: 4096   regular file
Device: 13h/19d Inode: 1448        Links: 1
Access: (0777/-rwxrwxrwx)  Uid: ( 1000/  system)   Gid: ( 1000/  system)
Access: 2014-10-24 12:10:05.000000000
Modify: 2014-10-24 12:10:05.000000000
Change: 2014-10-24 12:10:05.000000000

```

What does this error mean? Thanks a lot!

# Answer
I found where the problem comes. When I want to change the rights on the file, the installation has already begun. I do not know exactly what happens during installation. So I downloaded the APK to the root file system, I change the permissions and copy the APK in `/system/app` with the `-p` argument to the `cp` command to keep the file permissions on the target.

```
if [[ $EUID -ne 0 ]]; then
   echo ">> This script must be run as root."
   exit 1
fi

echo ">> Remounting /system in write mode..."
mount -o rw,remount /system

echo ">> Installing Manager..."
wget -P / http://update.esmart.net/apk/Manager.apk
chmod 777 /Manager.apk
chown system:system /Manager.apk
cp -p -f /Manager.apk /system/app

echo ">> Removing smanager..."
rm /system/app/smanager*

echo ">> Remounting /system in read mode..."
mount -o ro,remount /system

echo ">> Starting Manager..."
sleep 2
am start -W -n ch.esmart.managerapp/.MainActivity

echo ">> Finished !"

```
> 1 votes

---
Tags: adb, permissions, ssh, system-apps
---


# Question
Title: Image a phone and browse on computer emulator?
I have a galaxy nexus (stock OS). During its use I have used WeChat and WhatsApp, and would like to save my chat and voice histories within these programs.

Does a way exist to image my current phone as it is, so I can load it onto some PC emulator and browse these apps on my PC? This would allow me to save everything as it is, but also start fresh on my phone with a format. I do not want to format my phone then load back on WeChat for instance, yet I still want to be able to browse my old WeChat chats and voice clips (using a PC).

Thanks

# Answer
You can make an `adb backup` of only the desired apps, then `adb restore` it to an emulator. As far as I know, this should preserve all the apps' data. Also, backups of user apps should be compatible between different versions and architectures of Android - but there's a chance of failure, so try it before you wipe anything!
> 4 votes

---
Tags: backup, android-emulator
---


# Question
Title: Is there a way to get my Android report to my cell phone company that it's not a smart phone?
I have a phone, but it doesn't need internet (I use it as a regular phone + wifi). However, the cell phone company decided that if I have a smartphone, it needs to come with a data plan.

Can I do anything (including modify my rom) to look like a regular flip phone to my carrier?

I have a sim-card phone.

# Answer
As far as I know, phones don't report to the carrier if they are smartphones or not. They only report their unique IMEI number, from which they can't tell the type of your phone. (Unless they ask the manufacturer.) **Also it is illegal to change.** The carrier forcing you to pay for a data plan simply because you have a smartphone would be weird and highly unacceptable.

What I think is happening here is that your carrier has a "default data plan" with no subscription fee and a high rate, which is available to all customers by default. Your old "dumbphone" didn't use it, so you didn't get billed for it. Your new smartphone, however, uses it by default when it isn't connected to WiFi, so you get billed for it. (My old carrier did this with the price of $0.05 per 10kB, restarted at every connection to the mobile data. So every time I turned on my phone or moved out and back into coverage I got billed. I didn't even have a smartphone, just a semi-dumb one which could visit simple web pages. I was *pissed* when I found out.) The solution could be

* Disabling mobile data in the settings
* Asking your carrier to disable this default data plan
* Setting wrong APN names so that your phone isn't able to connect to the mobile data
> 2 votes

---
Tags: carriers
---


title: What does zRAM mean?

text:
# Question
Title: What does zRAM mean?
I heard about a feature called zRAM in the new Android ROMs.

Does anybody have detailed information about it?

# Answer
According to post over the XDA thread:

> In order to explain more precisely ZRAM first need other terms are more clearly defined:
> Swap can be compared with the swap file on Windows. If the memory (RAM) to complete the PC the data that are being used not actively outsource (eg:background applications) so as to re-evacuate RAM free. To this data is written to a hard disk. If required, this data is then read back from there easily. Even the fastest SSD is slower than the RAM. On Android, there is no swap!
>
> In ZRAM unnecessary storage resources are compressed and then moved to a reserved area in the fixed RAM (ZRAM). So a kind of swap in memory. This Ram is more free because the data then only about 1/4 of the former storage requirements have. However, the CPU has to work in more because they compress the data has (or unpack again when they are needed). The advantage clearly lies in the speed. Since the swap partition in RAM is much faster than this is a swap partition on a hard drive.
>
> In itself a great thing. But Android does not have a swap partition, and therefore brings Android ZRAM under no performance gain as would be the case with a normal PC.
>
> In normal PC would look like this:
> Swap = swap file (on disk) -\> Slow
> ZRAM (swap in RAM) -\> Faster than swap
> RAM -\> Quick
>
> With Android, there is no swap partition, and therefore brings ZRAM also no performance boost.
> The only thing that brings ZRAM is "more" RAM. Compressed by the "enlarged" so to speak of the available memory. That's on devices with little RAM (\<256MB) also pretty useful. The S2 has 1GB but the rich, and more than. There must not be artificially pushed up to 1.5 GB.
>
> After you activate the ZRAM also has 2 disadvantages. The encoding and decoding using CPU time, which in turn has higher power consumption.
>
> Roughly one can say (For devices with more than 512MB RAM):
> Without ZRAM: + CPU Performance | + Battery | RAM
> With ZRAM: CPU Performance |-Battery | + RAM
>
> For devices with too little RAM so it makes perfect sense. But who shoots the S2 already be fully complete RAM and then still need more?
>
> Check whether you can ZRAM runs in the terminal with
> free or cat / proc / meminfo
>
> I hope it helps to understand zRam!!!!
> 4 votes

---
Tags: ram, tech-specs
---


# Question
Title: Power and volume down menu... What kind of trouble am I getting into?
Model ZTE N9500 Carrier: Sprint

Messing around with various button combinations I found this one and up popped a very interesting menu my question is. What are the respective purposes / consequences of each choice .

1 ) reboot( self explanitory)

2. apply update from external storage.

3 wipe data/factory reset.

4 wipe cache partition

5 apply update from cache

6 md5 check

7 wipe carrier/data/factory reset.

Thanks in advance, Chris

# Answer
What you have found is the recovery mode (or recovery in short) which is useful for manipulating the OS of your phone.

* Options 2 and 5 take a .zip file of a specific format and update the OS of your phone with it. This is called "flashing". Stock recoveries (most likely you have a stock recovery if you don't know what this is) usually verify if the .zip was signed by the vendor of your phone - so you can't flash homemade .zips using this and so this option is pretty useless for you.
* Options 3, 4 and 7 erase various pieces of storage in your phone. **3 erases all of your data** but preserves the OS, which is useful if you want to sell your phone or it has become unusable and unfixable from inside Android. It essentially resets your phone to the state it came from the factory in. 4 does no harm, it erases temporary files which help speed up Android. These will be regenerated at the next boot, and the phone will be a little slower for a while. It can help in some cases when apps crash. **I do not know what 7 does, but the "wipe carrier" part seems dangerous enough for me to not try it ever.** Best case, it does a factory reset, like 3. **Worst case, it makes your phone unable to connect to the carrier and make or receive phone calls.**
* 6 seems harmless enough, it seems to do an integrity check of some sort, maybe on update packages, maybe on the phone. You may as well try it, I don't think it does anything harmful or interesting whatsoever.

If you're interested, you can search for and install a custom recovery which will replace this menu with a much better one. This will allow you to install custom OSes to your phone, make and restore backups and much more.
> 0 votes

---
Tags: updates, factory-reset, carriers
---


# Question
Title: How can I stream audio from my phone over wifi to a speaker or receiver?
I have a Galaxy Nexus and would like to be able to send music from it to speakers or a receiver.

Since I use a few different apps to listen to music (Spotify and Pandora mostly but sometimes also Audible) I don't want to have to use a specific player.

And I'd like to do it all over WiFi because Bluetooth doesn't provide enough range for me (I've tried, many different ways).

Is there a way to do this with android?

What I'm **not** looking for:

* A way to **stream to or from a PC**.
* Anything involving BlueTooth.
* A new music player app on android - I want to stream music from any app on my phone to a wireless receiver or speaker.
* Anything involving software running on a PC.

This should work when my PC is off. I should be able to pull out my phone, open spotify or pandora or audible or google listen or whatever and hear the output on any speaker in the house.

# Answer
You would need to get the speakers accessible over wireless somehow.

This does that: https://store.google.com/product/chromecast\_audio

Alternatively, you could plug your android phone directly into your speakers and remotely control your android phone over wifi with a laptop/PC. May need to be rooted for this however.
> 2 votes

# Answer
Netgear WN3500RP is what I would recommend to anyone who is looking for this functionality. It is a Wi-Fi Range Extender...meaning it connects to your existing Wi-Fi router and basically extends the Wi-Fi coverage. The USP of this device is that it supports Airplay/DLNA.
How to use it?

* Plugin your speakers to its 3.5mm audio input port.
* Get an app to stream music from your phone over Wi-Fi. Preferably BubbleUPnP.

That's it. Enjoy streaming music wirelessly!
P.S. You can also stream videos to any TV with an HDMI port, using this device. You probably need an **Ethernet to HDMI cable** for this. I haven't tried this though.
> 2 votes

# Answer
AirPlay provides this but your airport express device which will be connected to Speakers and yes you will be able to stream from phone. This is all apple solution - not sure if there is an Android app which allows doing that (Wikipedia tells that there are experimental apps which do that.)
> 0 votes

# Answer
I believe the Sonus WiFi receiver does these things - not cheap though. They have a system that you have to plug-into your amplifier and it works over WiFi.

http://www.sonos.com/search/wireless\_speakers?utm\_source=google&utm\_medium=cpc&utm\_term=sonos-speakers&utm\_campaign=branded-terms&gclid=CJ3J0MXJu7UCFULf4AodmVAALQ
> 0 votes

# Answer
kaiser baas wifi music streamer seems to be able to do what you want along with the android app that comes with it.

I was looking for something similar and just ordered it myself.

http://www.orb.net.au/media-player/wifi-music-streamer
> 0 votes

# Answer
Use a HiFi-WiFi box. Connect it to your HiFi (AuxIn), then (using your smartphone and app) view all available devices with music and all available devices with speakers.

It's simple, costs about £150, but it's worth it. It also works with all devices connected to a WiFi network.
> -1 votes

# Answer
If you're not afraid to get your hands dirty with a little DIY, you may be able to adapt this to your situation.

You're basically connecting your phone (with WiFi) to a router, the router to speakers. The audio streams wirelessly with wifi and plays on any speakers that are hooked to the router (which is done with a cheap usb sound card). enjoy!
> -1 votes

# Answer
I was looking for a similar solution and I just found the AwoX StriimLINK.

The video is in French but the description and specs are in English. This should work for my needs, and hopefully yours too.
> -1 votes

# Answer
I found an application that can do the trick, it is called "AirAudio" but you have to root your phone and I am not to sure about this, if some one have tested please let me know
> -1 votes

# Answer
Sony's Walkman player does the job. You can stream your audio to network PC
> -2 votes

---
Tags: wi-fi, audio, streaming
---


# Question
Title: Can I remotely control an Android device using TeamViewer?
I have installed TeamViewer on my PC and mobile. I can operate/remotely control my PC on my mobile, but can I do the opposite and operate/remotely control my Android device from my PC?

# Answer
> 10 votes
Yes, it is possible to remotely control an Android device using TeamViewer, but not all devices are supported yet.

There are a couple of different apps for TeamViewer:

TeamViewer for Remote Control is the app that allows you to remotely control your PC from an Android device.

TeamViewer QuickSupport is the app that is needed to control your Android device from your PC. It will provide the ID necessary to establish the connection to your device. This app doesn't work by itself though. You will also need to install the appropriate QS AddOn pack for your particular device. If there is not a QS AddOn for your device, then you won't be able to control your Android from your PC with TeamViewer at this time.

# Answer
> -3 votes
The TeamViewer application for Android is just an Interface to connect to a PC and operate it remotely.

If you observe the Android application screen (TeamViewer), there is only input field where you need enter the remote PC TeamViewerID. But, it will not give you any TeamViewID for your android device.

---
Tags: teamviewer
---


# Question
Title: Physical placement of specific sensors in Google Nexus 7 (2012)
I am working on a project that requires me to know where specific sensors are physically located inside the device. I can estimate the location of NFC and light sensor (of course) but what about other sensors like magnetometer, g-sensor? If any of you know about the placement of specific sensors (doesn't have to be very precise) that would help me.

# Answer
> -1 votes
Here is a labeled photo of the NFC antenna behind the cover. It runs the perimeter of the black cover on the phone's back.

---
Tags: nexus-7, hardware, sensors
---


# Question
Title: Galaxy Grand 2 asks password for credential storage while trying to create a vpn
I have never used the vpn feature of my phone. Now when I try to create a vpn, by going to

> settings \> more networks \> vpn

it asks me to enter password for credential storage which I have never set. I haven't set lock screen in my device. I have just used applock software to lock some of my application and which I am sure is not the reason for this. Please help me solve this.

Thank you

# Answer
> 1 votes
**You have to use a pattern, PIN or password lock screen in order to configure and use VPNs.** This is a limitation in Android which may seem stupid and annoying, but there are reasons for it:

* The credentials storage has to be encrypted with a password, so that even if other apps are able to steal the files they would be useless.
* VPNs are primarily used at corporations that allow employees to work from home. The servers on their network often contain sensitive information that could easily be compromised if someone would steal your phone and connect to the VPN.

---
Tags: vpn, samsung-galaxy-grand-2
---


# Question
Title: How to root a S4 google play edition on mac?
I have been cracking my head open trying to find a good guide to root my Google Play Edition Samsung. I have sought out YouTube videos that utilize motochopper and terminal and while I manage to get Superuser installed, I don't have root access. I've also tried forums but most of them just use Windows. Is there anyone who's done this and can instruct me on how to do it?

# Answer
> 0 votes
Before You Root Android on Mac OS X

1. Make sure you backup all your data.
2. Backup MMS/SMS
3. Backup Call details & restore app
4. Backup other stuff with my most recommended Titanium Backup & MyBackup Root
5. Also make sure that your phone is charged at least 90% so that it does not goes of in the middle of the Root Android on Mac OS X process. Also be sure that your computer is set of with the antivirus and firewalls, the cable with the specific drivers must be ready

Please Download Droid Easy Root v7d.zip Now Extract this Zip Folder to specific destination.

```
Set USB debugging Enabled for your Phone, To do so go to Settings-Applications-Development, and check the box for “USB debugging”.
Connect your Phone with The PC.
Don’t select file sharing or tethering mode.Just be in the Charging Only State.
Open terminal and change the path to the folder we just extracted that is “Droid Easy Root v7d”.
Now execute the “run_to_root_your_droid3.sh” present there to open the one click root tool.
Its Almost Done, Now just follow the On screen Instructions and wait for the rooting process to take place.
Also during this the Phone will Reboot many times so just keep calm and let Root your android device.
You have Rooted Your Android.

```

**OR**

Please Download Droid Easy Root v7d.zip. . Now Extract this Zip Folder to specific destination.

```
After Download if the Zip File doesn’t unzips itself then double click and open it, A folder of same name will be opened.
Find the path of the new folder, To get it Right Click on the File and then File Info, the file path appears on the left side.
Open Terminal (applications>utilities>terminal)
Change directory to the new folder (the file path you found earlier) the following file path is an example:cd /Users/yourname/Downloads/droid_easy_root_v7
Press enter now the terminal will change to the new directory.
Remember always entering these commands – These Commands are case sensitive and you need to take care of your Caps Lock.
On your DX, be sure USB debugging is turned on, If not So then enable it by going settings>applications>development>USB debugging and tick mark the check box.
Now Connect the DX to your Mac and select Charge Only from the notification bar. Don’t Go For tethering or File Sharing Mode.
While still in terminal and now in the proper directory type :./run_to_root_your_droid3.sh
Now Press Enter. And Keep Upper Case and Lower case Letters in Consideration.
Now Just Follow The On screen Instructions And In this process the Phone will Reboot for 3 times.
Enjoy Your Rooted Android Through Mac OS X.

```

**Downloads** Droid easy root v7d

---
Tags: rooting, samsung-galaxy-s-4, macos
---


# Question
Title: Does Factory Reset reset Xposed Modifications, especially on Note 3 SM-N900 Exynos?
or I need other steps to **RESTORE Xposed** and everything back to like I first receive it **without** the need to Flash with Odin. Because I either hard or softbricked my device using it! I am scared of it now. I rooted using Kingo Android ROOT for further info.. :) I want to reset because my device kinda laggy and I can not disable some Device Admin.. So, it is kinda messed up.. I want to start over with **no Odin** at all?

# Answer
> 1 votes
Xposed will survive, and your root should as well. But you'll need to reinstall the Xposed installer app and any xposed modules you had installed before you factory reset.

EDIT: So, to clarify, xposed modifies /system/bin/app\_process to "hook" in to android. This modification is not touched by a factory reset. Nor is the `su` binary. However, the Xposed installer app (which is responsible for the upgrading of the app\_process modifications), and any xposed modules will be cleared.

---
Tags: rooting, factory-reset, odin, samsung-galaxy-note-3, xposed-framework
---


title: Get Source Code from an .apk file?

text:
# Question
Title: Get Source Code from an .apk file?
Having an .apk file, is there any way I can get its source code?

# Answer
> 15 votes
Even if ProGuard was used you still can get some interesting insights. Here is a StackOverflow question with a detailed explanation: Android: Getting source code from an APK file. YouTube video with a detailed guide. And a blog entry about that: How to retrieve source code from an Android APK file.

# Answer
> 11 votes
If you get lucky and your `.apk` file wasn't protected by **Proguard** or analog, you can use APK tool. It is a tool for reverse engineering 3rd party, closed, binary Android apps.

# Answer
> 2 votes
From one of the comunity wiki by Parnkul Garg in SO:

---

Procedure for decoding .apk files, step-by-step method:

### Step 1:

1. Make a new folder and copy over the .apk file that you want to decode.
2. Now rename the extension of this .apk file to .zip (e.g. rename from filename.apk to filename.zip) and save it. Now you can access the classes.dex files, etc. At this stage you are able to see drawables but not xml and java files, so continue.

### Step 2:

1. Now extract this .zip file in the same folder (or NEW FOLDER).
2. Download dex2jar and extract it to the same folder (or NEW FOLDER).
3. Move the classes.dex file into the dex2jar folder.
4. Now open command prompt and change directory to that folder (or NEW FOLDER). Then write `d2j-dex2jar classes.dex` and press enter. You now have the classes.dex.dex2jar file in the same folder.
5. Download java decompiler, double click on jd-gui, click on open file, and open classes.dex.dex2jar file from that folder: now you get class files.
6. Save all of these class files (In jd-gui, click File -\> Save All Sources) by src name. At this stage you get the java source but the .xml files are still unreadable, so continue.

### Step 3:

Now open another new folder

1. Put in the .apk file which you want to decode
2. Download the latest version of apktool **AND** apktool install window (both can be downloaded from the same link) and place them in the same folder
3. Download framework-res.apk and put it in the same folder (Not all apk file need this file, but it doesn't hurt)
4. Open a command window
5. Navigate to the root directory of APKtool and type the following command: `apktool if framework-res.apk`
6. `apktool d myApp.apk` (where myApp.apk denotes the filename that you want to decode)

now you get a file folder in that folder and can easily read the apk's xml files.

### Step 4:

It's not any step just copy contents of both folder(in this case both new folder)to the single one

and enjoy the source code...

---
Tags: apk
---


# Question
Title: What is the com.android.email/cache folder?
I am looking at where data is stored on an Android device. The ending of the path is com.androidemail/cache/then a jpg. What is the email cache?

# Answer
> 1 votes
Cache is a kind of temporary storage for faster access to e.g. files loaded via network. In case of an email app, this most likely holds contents that where attached to a mail (like images: you even named a `.jpg`, that's it), so it doesn't need to be re-loaded via the network each time the user looks up a message (see: Web cache).

Also see our tag-wiki.

---
Tags: stock-email-app
---


# Question
Title: Sync read mails in systray & pulldown menu
On a normal day, my phone is laying next to my laptop. Both are syncing emails and most of the time I read my emails on my laptop. The connection protocol is set to imap on both devices so when I open the email APP on my phone, the emails that are already read are marked as such. One problem is that this sync of read mails only happens when I start the email app. For each new mail , the systray is updated with the new mail icon and when I pull down the top overlay it keeps telling me there are X new email while they are all read(and also marked as such when i start the android email app).

This is really annoying as the blue LED is also flashing telling me there is something new while there isn't

Not sure if this matters but it's a samsung S4

Thx in advance!

# Answer
> 0 votes
Same thing happens with all Android phones (I've seen many phones). Just stop email notifications on your phone (for that particular account) if you don't want light flashing.
Every app checks for new messages as soon as you wake up the phone. This feature called as *Push Notifications* only checks for new messages but won't check if they are already read or not.

---
Tags: sync, email, menu
---


# Question
Title: What is "srv_listen" permission used for?
I've noticed (by using XPrivacy) that many applications (and some that has nothing to do with location, such as TextSecure) require the following permissions:

```
Location: srv_listen
Phone: srv_listen

```

(These permissions seem to be linked)

I failed to find any info on what are these permissions used for, neither what functionality may be harmed by blocking them.

I'd be glad if anyone here with some android programming knowledge can spill any light on it... What are they used for? What info may be accessed by granting those permissions? Is it actually providing any location info?

Thanks!

# Answer
> 1 votes
I can't explain what 'srv\_listen' really does but to find more info you can use the infobutton in Xprivacy next to the permission name.

There you will find that the actual permission is called ACCESS\_COARSE\_LOCATION and you'll find a link to the Google documentation.

I'm sorry that I can't help more.

---
Tags: permissions, location-services, textsecure, xprivacy
---


# Question
Title: Maintaing a list of "must install" apps for new Android phones
Is there a option to maintain a list of must have apps which would always install on my phone when I loggin with that accounts email. For example when you factory reset a phone or by a new one, it is really time consuming to remember and install all the needed apps by hand. How can I just say "hey phone, install this list of apps for me please". edit : this apps need to be installed from google play not sd card

# Answer
I read now that android 5.0 will support profiles akka list of apps that you want to install from the store automatically. This was the thing I needed!
> 0 votes

---
Tags: applications, installation, factory-reset
---


# Question
Title: If I charge my mobile from different charger what happens?
My charger is lost so I am using a charger with an output of 5.5v and 0.6A. My real charger gives an output of 5V and 0.7A. Will the other charger damage my phone?

# Answer
> 1 votes
No, it will not damage your phone. As long as it's a micro USB charger, it will be fine.

5.5V is fine, I've had success with 6 Volts from a homemade charger, and you won't meet voltages higher than 5.5V on a micro USB charger anyway. Extra Volts are dangerous, so it's good to be cautious but 5.5V will not do any harm.

The current rating (Amperes, A) does not count; if it's too low, the phone may charge slowly or not at all, but higher rated chargers will not do harm.

---
Tags: charging
---


# Question
Title: My data is wiped out after a battery service
I hit my Nexus 7 with Android 4.2 on it, into a glass bottle. Somehow, internally the battery got disconnected so it didn't turn on. It was only flickering a black screen when attached to a power cord. I didn't want to fix it myself so I brought it to a certified service for mobile devices. I received it back but it had installed Android 4.4 and all of the data was wiped out.

What did the people from the service do to my Nexus 7?

# Answer
Not sure why but they did factory reset to it. Probably it is that bad when the battery detaches from the other part of the device :) Don't they make these devices crash proof? I just hit it into a glass bottle :D
> 0 votes

# Answer
Sounds like they just replaced the device and gave you a new/refurbished one. Your original device will be fixed (if possible), and then it will be wiped and turned into a refurbished unit.

If you didn't back up any of your data, it is gone. Hopefully you did; I'm pretty sure anytime you send in a device for service, they warn you that it could be completely wiped.
> 1 votes

---
Tags: battery, nexus-7, tablet
---


# Question
Title: My Samsumg s2 locked. How can I enble the USB debugging?
My phone is locked (I forgot the PIN number). I want to back up my files. So I need to enable the USB debugging.

# Answer
If it's the PIN of the SIM card, **remove the SIM from the phone and you're in**.

If it's the PIN you set in Android, you can try to **install a custom recovery via ODIN**. You can then boot into recovery and download your data from there, since most (if not all) recoveries provide an ADB interface.

In the prevoius version of this answer I expressed my concern that most phones erase their data prior to flashing and I didn't know if Samsungs do. But as Adi Inbar pointed it out, Samsungs don't erase their data when flashed through ODIN so this is a solution. You are lucky to have a Samsung phone which can be flashed in an out-of-spec way, because otherwise:

**You can not retrieve your data if you can not unlock your phone.** This is a security feature of Android which keeps your data safe if it gets stolen.

You can take the SD card out and copy the files from that, but unless you remember the phone's PIN, your data on the phone's internal memory is not accessible.
> 0 votes

---
Tags: samsung-galaxy-s-2, backup, samsung-galaxy-s, usb-debugging, locked-out
---


# Question
Title: Backspace in Evernote does not delete words at an even speed
In Evernote if I hold down the backspace key too long it deletes way to fast. Worse yet there is not undo option. I have lost many notes this way. Is there a way to change the rate at which the backspace key works (or at least hold the rate constant) or is there an undo key? I think Evernote is great but this is almost a deal breaker because if you loose your notes it doesn't matter how good the other features are.

UPDATE: the fact that the main productivity program for Android lacks even these simple functions was the largest reason I got rid of my tablet.

# Answer
# The backspace key

The backspace keep *repeated* action is controlled at application level, either by the keyboard App, the Evernote App or the Android System.

AFAIK, there's no setting to control the spead of the action repeat cycle.

# The undo feature

A premium user of Evernote has a backup privilege that creates a snapshot of every note on the Evernote server every 8 hours.

HELP: Need to restore text deleted from a note

> Note history creates a snapshot of your not on our server every 8 hours.

Aside from that, there's no undo capabilities on the application.

---

**Note:** As already suggested on the comments under your question, you could submit a feature request to have a *Redo* functionality.
> 0 votes

# Answer
At the beginning of the icon bar with Bold, Italics, Underline, etc. there are icons for Undo and Redo (right-rotating arrow and left-rotating arrow). I only noticed them recently.

I too wonder why the backspace speed speeds up uncontrollably.
> 0 votes

---
Tags: evernote
---


# Question
Title: Is there a way for me to run Adb shell as root without typing in 'su'?
Is there a way for me to run Adb shell as root without typing in `su`? I want to be able to have root access without going into the shell.

# Answer
> 46 votes
If I'm understanding your question correctly, you're asking how to get root access automatically when you run `adb shell`, so that you don't have to go into the shell and type `su` to execute a command as root on your phone.

This is controlled by a flag in your boot partition, which most custom ROMs have modified to allow root permission by default. If you get dropped to a `$` when you use `adb shell` then you have two permanent options and one temporary one (temporary meaning that it doesn't stick if you reboot):

1. Flash a ROM that includes the modification
2. Create a custom boot.img and flash it to your phone
3. Restart `adbd` on your device with root permissions

Number 2 is actually not that difficult, but it can be somewhat dangerous if you're careless. There is a wiki article here which explains the process and includes a couple of Perl scripts to help you. These instructions assume a Linux/Unix environment. I have personally used these instructions on Fedora Linux and can tell you that they work, but I do not know about other \*nix environments like Macs. I also do not know of any similar Windows instructions, but I could try to track some down if you are on Windows. The exact commands will vary somewhat from phone to phone since different devices use different partition tables.

Generally speaking, though, you need to pull your current boot.img from your phone, unpack it, extract the ramdisk, and find the **default.prop** file. This is a plaintext file, which you need to open in a text editor and then find the line that contains the value `ro.secure`. If the line says `ro.secure=1` then you need to change it to `ro.secure=0`. After that you can re-pack the ramdisk and boot.img, then flash it to your phone. Once you reboot, you will be greeted with a `#` prompt whenever you perform `adb shell` without having to run `su`.

Alternatively, if you are using a custom ROM but it doesn't have this modification, you can just unzip the ROM and modify the boot.img that is included with it using the above steps. Then you can zip up the ROM with the newly modified boot.img and flash the zip file as you normally would.

This probably goes without saying, but *be careful* when doing this. Messing with your boot partition can quite easily wreck your phone and force you to recover via HBoot. I would highly recommend testing Fastboot to makes sure you can use extended Fastboot commands and perform a recovery. This varies a bit based on your model, but most phones have some sort of desktop software that can be run to reflash the phone as well.

---

The third option is that in many cases it may be possible to restart `adbd` on your device with root privileges. One possibility is to execute `adb root` from a PC terminal, although this will not work on all ROM configurations (the ROM must be built as a "userdebug" one). You can also try Chainfire's adbd insecure app. This will not persist across a reboot, so you would need to use either the app or `adb root` again any time you restarted your phone.

# Answer
> 18 votes
Well if you phone is rooted you can run commands with the "su -c" command.

Here is an example of a cat command on the build.prop file to get a phones product information.

```
adb shell "su -c 'cat /system/build.prop |grep "product"'"

```

This invokes root permission and runs the command inside the ' '

Notice the 5 end quotes, that is required that you close ALL your end quotes or you will get an error.

For clarification the format is like this.

```
adb shell "su -c '[your command goes here]'"

```

Make sure you enter the command EXACTLY the way that you normally would when running it in shell.

Give it a try, hope this helps.

# Answer
> 3 votes
Simply install adbd Insecure.

# Answer
> 1 votes
What are you trying to run as root for? You're saying that you want to run ADB shell with root but you don't want to use ADB shell? Can you clarify?

If the application requests for root access, then the SuperUser application on your phone should handle giving it permission or not. The process in which you rooted your phone should have included a SuperUser application.

# Answer
> 1 votes
As an alternative, you could write your script on the phone and simply have adb execute it, for example:

```
adb shell sh /sdcard/myscript.sh

```

The script can elevate itself without your intervention (assuming SuperUser is set to remember the approval), for example:

```
su
pm setInstallLocation 1

```

I just did this on my phone with success, the only problem being that I haven't quite figured out how to cleanly end the adb shell session. I have to Ctrl-C in my Windows shell to return to the Windows command prompt -- otherwise adb just sits at the `#` prompt and doesn't accept input.

# Answer
> 0 votes
You can also set the suid bit on your 'sh'. I'm using BusyBox so instructions may not match your setup:

1. adb shell
2. su
3. mount -o remount,rw /system (or: adb remount)
4. ls -la /system/bin/sh lrwxr-xr-x root shell 2012-11-10 15:20 sh -\> mksh
5. chmod 4755 /system/bin/sh
6. ls -la /system/bin/mksh
-rwsr-xr-x root shell 157520 2012-11-10 09:54 mksh (notice the suid bit is set)
7. ^D
8. adb shell

and you should have the root prompt

# Answer
> 0 votes
i use for repair home button issue failure

---

adb devices

adb shell su -c `commands`

or

adb root shell sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure (name,value) VALUES ('device\_provisioned','1');"

adb kill-server

---
Tags: adb, root-access
---


# Question
Title: Copying the phone number into the clipboard in the Google Voice application
In the application Google Voice is there any way to copy the Google phone number into the clipboard without having to type anything?

I use a Samsung I9300 Galaxy S III with a rooted Android 4.1.2.

# Answer
> 2 votes
You can't copy anything from the list view, but if you tap the message to open it, then tap the "compose" button...

...then you can select the phone number from the bar at the top the normal way (by long-pressing):

---
Tags: google-voice
---


# Question
Title: Safestrap app won't run after installing recovery -- "Unfortunately, Safestrap has stopped"
I can install Safestrap 3.72 (Safestrap-JFLTE-3.72-kk-B01.apk) and then install and use the custom recovery without a hitch. However, once the custom recovery has been installed and the phone is rebooted, the Safestrap GUI app no longer runs (I want to run it in order to uninstall the custom recovery, and the manual instructions for uninstalling from a shell prompt that I found here didn't work). Every time I try to start it, I get the error message

> Unforunately, Safestrap has stopped

I've tried reinstalling the APK, both with and without uninstalling the app first. It always installs successfully, and SuperSU requests root permissions the first time I run it after reinstalling, but it always crashes immediately. I've also tried uninstalling and reinstalling BusyBox.

This also happens if I start from scratch, by re-flashing the stock NC5 ROM and doing a factory wipe/reset from the stock recovery (yes, I've also tried wiping from the Safestrap recovery). Starting from the out-of-the-box config, I follow this process:

1. Root the phone using Towelroot
2. Install BusyBox
3. Launch the BusyBox app and click `INSTALL` to install the tools
4. Install Terminal Emulator
5. Launch Terminal Emulator and invoke `su` and then `setenforce 0`
6. Install the Safestrap APK.

*At this point, the Safestrap app runs just fine, and I can install the custom recovery*. However, after that, Safestrap won't run anymore (crashing immediately with the error message above).

**Phone info:**

* Model: SCH-I545
* OS Version: KitKat 4.4.2
* Build: NC5 (same issue if I upgrade to NG6)

# Answer
Okay, it turned out to be something silly. The problem is that SE status reverts to Enforcing when you reboot. So, you have to set it to Permissive with `setenforce 0` again before the first time you use Safestrap after a reboot.
> -1 votes

---
Tags: samsung-galaxy-s, samsung-galaxy-s-4, recovery-mode
---


# Question
Title: Galaxy S4 restarting and freezing after root
I recently made the mistake of rooting my Galaxy S4, accompanied by a few more customizations.

Problems that occur:

* TouchWiz freezes. One way to unfreeze is to hold down the Home button to see recently opened apps and then go back, so that Touchwiz wakes up. The other way is to pull down the Notification bar and click Settings or anything else from there that'll send me to a different app so I can avoid it. If I don't do any of these within 5 seconds the freezing occurs, the device restarts.
* The device also restarts when the CPU is *suddenly* expected to work hard. For instance, within the first minute of a call, or when the screen is locked/unlocked, a couple seconds after opening a music file. This happens 3-5 times a day, depending on usage. The restart is not always preceded by a freeze, but often there's a freeze before the restart.

Recent changes that may be causing such behaviour:

* Rooting using AutoRoot by Chainfire.
* Giving CPU Master root permissions after SuperSU is installed.
* Installing busybox.
* Patching modded Google Play Store (involves patching Core.jar package)

What I did so far:

* Uninstall CPU Master.
* Delete cache and data of Touchwiz
* Remove busybox
* Remove all custom patches from core.jar
* Install the original Google Play Store and update to latest version

I don't think Touchwiz is causing the crashes because somethimes the phone restarts while an app is in use.

Thanks in advance.

EDIT: I removed the original Samsung ROM altogether and switched to Cyanogenmod. Thus I may not be able to upvote/tick the replies from then on.

# Answer
> 0 votes
The crashes are caused by Poweramp 2.0.9 build 529.

How I found out:

* The player was freezing at the beginning of songs every once in a while and uninstalling it solved the problem. No more restarts :)

Maybe the crashes are caused by Play Store via apps that are utilizing the modded licence check of Play Store (Poweramp is one of them). But I cannot be sure since I don't have any other app that requires licence control.

Just wanted to say that if anyone else is having the same issue with modded Play Store, removing your licence requiring app (be it Poweramp or sth else) may be your solution.

**EDIT:** False alarm. The restarts have started after a couple of days, and now more often than ever.

# Answer
> 0 votes
FWIW I've been having a similar problem, but without the modifications you mention. My process was to root, install SuperSU, Titanium Backup and then restore a bunch of apps.

The first time I got the problem, I thought I had restored some system apps or something, so I reverted to stock, and tried again, but being more careful to only restore apps and stuff like wifi access points. This suffered the same problem (but possibly less so).

I've gone back to stock again, and I'm going to try it to see whether I get similar behaviour without rooting. If all is well for a day or so, then I'll root, and see if anything changes. If it's still stable, I'll start using apps that utilise root and see what happens.

# Answer
> 0 votes
Use Titanium or any other app that can delete system Apps and then DELETE EVERYTHING RELATED TO KNOX (samsung protection crap).

The freeze is caused because Knox keeps trying to block SU access and somehow the system crashed and it reboots. I had the same problem and doing this completely stopped both the freezes and the reboots.

Of course, make sure to BACKUP everything before. From system to apps (use Titanium aswell).

# Answer
> 0 votes
Download the Xposed Module- Samsung KitKat systemserver crash fix. It says it's for a different version but it has stopped every crash/reboot and I'm on the Verizon NG6 update.

---
Tags: root-access, reboot, system-freeze, samsung-touchwiz
---


title: How to troubleshoot OTG cable?

text:
# Question
Title: How to troubleshoot OTG cable?
Because android doesn't handle the broken screen problem very well (frankly, it doesn't handle it at all) I bought OTG cable in hope that I'll be able to connect my mouse to the device.

I connected it to the broken phone (Huawei U8500) and nothing happened. Well, I tried my new android phone Samsung GT-S7710 with Android 4.1.2. However, still no effect. I tried USB flash disk, but that didn't do anything at all.

How can I debug the USB OTG function? To find out what's actually wrong?

# Answer
> 0 votes
Maybe try OTG Troubleshooter first to check if your setup is working:

https://play.google.com/store/apps/details?id=com.homesoft.otgtroubshooter

It will check if your device supports 'usb host mode', if your OTG cable is working and if a mass storage device is found.

---
Tags: usb-on-the-go
---


# Question
Title: My Samsung Galaxy Y GT-S5360 is not starting
I was installing a custom ROM on my Samsung Galaxy GT-S5360. The installation aborted abruptly and I lost all data from my phone.

Now my phone won't start and is stuck at the Samsung Galaxy Y GT-S5360 logo.

I tried to flash the stock ROM via Odin but it is not detecting my device.

# Answer
> 0 votes
If Odin is not detecting your device, it probably means that your device drivers are not installed. Try installing your device drivers first, and then connect with Odin and flash it.

Your problem will be solved.

The other way around is to flash through CWM recovery, if you have it installed on your device. You should have a working ROM zip file. Place it in SD card and go to CWM recovery and flash it.

---
Tags: rom-flashing, troubleshooting, samsung-galaxy-y
---


title: Samsung GT-I5510 custom recovery

text:
# Question
Title: Samsung GT-I5510 custom recovery
I was looking around for installing a custom recovery and then a custom firmware on my old phone, but I couldn't any links that were still available and not adware ridden, can anyone give me some advice on where to search?

# Answer
Here is custom cwm touch recovery for your Samsung GT-I5510 phone and Here is list of custom firmware for your phone

Please refer all the instruction/steps in provided link carefully before flashing anything
> 1 votes

---
Tags: cyanogenmod, clockworkmod-recovery, device-firmware
---


title: How to root Huawei Y210?

text:
# Question
Title: How to root Huawei Y210?
It runs Android 2.3.6 and has the 2.3.38.6-perf kernel version. I've already tried using SuperOneClick but it doesn't work. :(

I'm rather contented with it ( oh wait, it has this puny internal storage, 120+ mb, but I can live with that ) and I'd rather just leave it alone except for the fact that Huawei saw it fit not to add proxy support. My university network uses proxies so the smartphone is rather useless at school. I tried proxy apps but they all require the phone to be rooted. I hope somebody here can guide me in rooting this phone. Thank you for your time :)

---

**UPDATE:**

I tried SRSRoot as @Izzy suggested, unfortunately, it doesn't work either :(

```
    ---= SRS One-Click-Root v4.3 =---

11:29:51 PM - Starting ADB Server..
11:29:57 PM - Manufacturer: HUAWEI
11:29:58 PM - Model: HUAWEI Y210-0100
11:29:58 PM - Android Version: 2.3.6
11:29:58 PM - Build ID: Y210-0100V100R001C294B837
11:29:58 PM - Board ID: Y210-0100
11:29:58 PM - Chipset Platform: msm7k
11:29:58 PM - Getting OffSets.. : 0x8003 0x8005 (False)
11:30:00 PM - Query Server for Best Method.. Found Rootkit: 2

    ----= Start Rooting Process.. Please Wait =----

11:30:00 PM [+] Testing exploit: root2a (Please wait it can take some minutes)....
11:30:21 PM [+] Executing root2a exploit Failed, Proceed next...
11:30:21 PM [+] Testing exploit: root4 (please wait..)
11:30:24 PM [+] Device Reboot #1 (Wait till it's started)
11:33:23 PM [+] Executing root4 exploit Failed.  (Root Error: 0)
11:33:23 PM [+] Testing exploit: root4b (please wait..)
11:33:27 PM [+] Device Reboot #1 (Wait till it's started)
11:36:45 PM [+] Device Reboot #2 (Wait till it's started)

11:39:57 PM Auto Root Failed on this device. :(

11:39:57 PM Rebooting Device and try again...

```

# Answer
> 1 votes
That was for y210D. You need to flash it stock again and root it with a y210 insecure boot image. You can get the stock ROM here.

# Answer
> 0 votes
you may try this at your own risk. Please do a nand back-up first.

# Answer
> 0 votes
I know it's been years but I think people might be interested to know how to root this. I tried again last month using Framaroot. You just download the latest version, install the app and run it. Most painless root I've had so far.

---
Tags: 2.3-gingerbread, rooting
---


# Question
Title: Uploaded songs to Google Play don't show up on Android device
I'm sure this one is just a PEBKAC error, so please bear with me since I am new to Android.

I've uploaded all of my music to Google Play Music and I can see all of my songs via their web interface. However, on my Moto X, there's at least one song missing. I have tried refreshing the Google Play app on the phone to no avail. I haven't had time yet to go through all of my hundreds of albums to see if any others are missing songs, as well. Any thoughts?

# Answer
Did you use the "Refresh" option in the google play music app? You can find it in the action bar menu. Another possibility is a wrong file type. Here is a list of supported file types: https://support.google.com/googleplay/answer/1100462?hl=en
> 0 votes

# Answer
I think the sad but true answer is that sometimes, it just takes time. I've seen the album show up within a minute or so, but I've also had occasions where I've waited over 15 minutes, even rebooting my phone, without getting the new uploads to show up. In that case, I went to bed and the uploads were there the next morning.

I'm guessing there's something on Google's side separating the web player from the Android player, and that the sync between those nodes take different amount of time depending on when you do it.

If it still hasn't showed up in 24 hours, I would try and create a ticket with Google, but for most people, you just need patience.
> 0 votes

---
Tags: google-play-music, moto-x
---


# Question
Title: Sony Xperia E1 D2005 Custom Recovery&CustomROM Flashing?
I want to flash a custom ROM and install custom recovery; but when I enter ROMmanager (my device is rooted) and try to install CRW or TWRP it says "custom recovery does not support D2005 (sony xperia e1).

I want to flash a custom rom *safely* (well if I brick it I can drop it in water and say I dropped it accidentally in water; I know it's dirty trick but I don't want to be with no phone either, so let's say I have 2 lifes). My bootloader is locked, I don't know how to unlock it so I'll need help for that.

So what if my phone can flash a custom ROM, which ROM? I want the ROM to be performant and good at 3D gaming (I want to play *Despicable Me* but now with the "stock" ROM I'm getting 15 fps and 20 in clear areas).

# Answer
I don't know that exact model, but I found a pretty much complete guide to rooting, flashing and so on at XDA for your model here.

IMPORTANT: Remember to read the entire guide closely a couple of times before commencing the rooting and flashing procedure, so that you know exactly what you're doing and don't brick the device.
> -1 votes

---
Tags: rom-flashing, custom-roms, clockworkmod-recovery, performance
---


# Question
Title: Toggling USB mass storage on (or off) via adb commands
Background: I have a USB stick Android device (e.g. RikoMagic) which I mostly run in "headless" mode. Among other things, I've already figured out how to shut it down via a combination of adb and the internal "am" command:

```
adb shell am start -n android/com.android.server.ShutdownActivity

```

I'm now trying to figure out how to turn USB mass storage support on and off. I've got as far as having the USB storage activity window pop up via the following command:

```
adb shell am start -n com.android.systemui/.usb.UsbStorageActivity

```

Unfortunately I haven't been able to figure out how to send the equivalent "intent" to actually "unmount" or "unshare" the shared volume (or "mount" or "share" it for that matter). The following command does nothing:

```
adb shell am start -n com.android.systemui/.usb.UsbStorageActivity -a android.intent.action.MEDIA_UNSHARED file:///mnt/sdcard

```

What am I doing wrong? What's the magic incantation to mount/unmount the internal storage of an Android device?

Note 1: I know there's the obvious Linux "mount"/"umount" command. However, simply mounting or unmounting the volume won't trigger system functions vital to, for example, restarting or stopping apps that have been moved to the SD card. A "umount" will probably fail anyway when an app in the SD card is still active.

Note 2: Apparently there's a "setprop" command that can enable/disable USB mass storage support UNTIL the next reboot. Again, this all or nothing approach isn't what I'm looking for but the ability to toggle USB mass storage on and off during a single session, as can be done by the touch interface.

```
adb shell setprop sys.usb.config mass_storage

```

# Answer
> 10 votes
Alas, the `UsbStorageActivity` doesn't use an intent to enable and disable USB mass storage, so there's no way to achieve this using `am`. It instead calls the functions `StorageManager.enableUsbMassStorage` and ``StorageManager.disableUsbMassStorage` to do its work. As these functions are hidden in the framework, it's not possible to write an app to do this, either. As far as I know, there's no existing command to do this.

It might be possible to write an app that offers a command-line interface and uses the bound system service `MountService` to call its `setUsbMassStorageEnabled` function, but that would be way off-topic for this site.

# Answer
> 6 votes
I tried the "StorageManager.enableUsbMassStorage" and the "StorageManager.disableUsbMassStorage" to enable and disable the mass storage and its works.
Thanks.
That methods are private method. So, If you want to use them, You shoud do it by reflection. To get that Storage Manager, you might use getSystemService(java.lang.String) method that included in the activities:

```
 StorageManager storage = (StorageManager)getApplicationContext().getSystemService(STORAGE_SERVICE);
 Method method = storage.getClass().getDeclaredMethod("enableUsbMassStorage");
 method.setAccessible(true);
 Object r = method.invoke(storage);

```

And to disble mass storage:

```
StorageManager storage = (StorageManager) getApplicationContext().getSystemService(STORAGE_SERVICE);
Method method = storage.getClass().getDeclaredMethod("disbleUsbMassStorage");
method.setAccessible(true);
Object r = method.invoke(storage);

```

---
Tags: adb, automation, shell, command-line
---


# Question
Title: My Nexus 7 isn't being detected by Windows. No OS on Nexus 7
I wiped my OS from my Nexus earlier as I had a ROM that I wanted to flash. When I proceeded to try and flash the ROM to my Nexus 7 using flash-all.bat (I installed ADB and Fastboot and Drivers using 15 second installer by Snoop05) it hung on: \< Waiting for device \>. I've been able to track it down to the drivers since there is an error on my device manager. I have tried numerous tutorials and methods to get the drivers but they all seem to need you to have your device already running android. I have TWRP recovery and unlocked bootloader. Any help?

# Answer
> 0 votes
The answer is something quite strange although seemed to work for me. I used a different computer and used Wugs Nexus Root Toolkit to flash stock (after driver install on other computer) and it worked without any failure .

---
Tags: adb, nexus-7, rom, usb-drivers
---


# Question
Title: Fastboot is getting stuck while trying to flash CWM onto Nexus 4
After successfully unlocking the bootloader of my new Nexus 4 using adb and fastboot I now want to install ClockworkMod Recovery onto my device. Sadly it is not working properly. I am using Gnome Ubuntu 13.04 and installed adb and fastboot with apt. While in fastboot mode my device is visible when testing with

```
$ sudo fastboot devices
002847af108bXXXX    fastboot

```

when I try to flash the ClockworkMod image recovery-clockwork-6.0.3.6-mako.img using

```
$ sudo fastboot flash recovery recovery-clockwork-6.0.3.6-mako.img
sending 'recovery' (7814 KB)...

```

it gets stuck. I already waited for 40 minutes to complete but since the size of the image is around 8Mb I suppose it cannot take that much time and something is not working correctly. Strangely also my USB-connected keyboard and Bluetooth-connected mouse are ignoring my inputs while fastboot is running.

I also tried renaming the .img file to recovery.img with the same result. Perhaps I am missing something obvious, but I have no idea what the problem could be.

# Answer
> 4 votes
I had the same problem and I could fix it changing the usb port, it works!

---
Tags: clockworkmod-recovery, fastboot
---


# Question
Title: Where is the Light Sensor of Google Glass?
The GDK document says that light sensor is available on Google Glass. But the document has no information about where the sensor locates on the Glass.

It seems that there are two possible positions:

1. In the front with the camera.
2. On the inner rim with the mysterious sensor which provides wink detection feature.

Anyone knows which is the source the Glass gathers light data?

# Answer
> 1 votes
From my reading it's a bit of both.

The Wink Detection uses a small light sensor. See here for a picture. Currently it seems that Google aren't releasing full code for this to be enabled, though libraries are available. The sensor in the GDK *appears* to be the Ambient Light sensor, beside the camera.

According to the Google Glass Wiki the **wink** light sensor is just beside the display.

> "Right next to the display is a tiny light sensor that watches your eyelid move. It's used for on-head and wink detection. If the sensor is obstructed or aimed incorrectly, these features will not work."

The camera has an **ambient light sensor**

Number 28 on the image below, from this article, is the ambient light sensor:

---
Tags: sensors, google-glass
---


title: whats app messenger

text:
# Question
Title: whats app messenger
Hi I have just bought another android phone, but I really want to see the old messages. When I purchase my new phone, I had to obtain a nano sim, I managed to keep my old number for the new phone (still have the old phone with another sim in it). On the old phone I can still see old messages, but as soon as I go to look at old messages and pictures, Whats app thinks I have/want two accounts and then blocks the new phone. I just want to be able to see all my old messages on my new phone, what can I do. Also, I am not the most technical person going, but help would be fantastic please. My messages mean a lot to me. Thank you.

# Answer
In the new phone do a "clear data" for the whatsapp, then copy the whatsapp folder from the old phone to the new one. Now try to open the whatsapp and activate it on your number. It will ask you weather you want to import the existing history or not.
> 0 votes

---
Tags: whatsapp-messenger
---


# Question
Title: Typing emoji in SMS limits number of characters to 70
I have HTC One X running Android 4.2.2. While typing SMSs if I put an emoji character then it sets the maximum number of characters to 70. Why?

# Answer
> 1 votes
Because when you use emojis, you force the use of UTF-16 encoding instead of the regular 7 bit ASCII encoding. 7 bit ASCII encoding allows 160 characters per SMS, but since UTF-16 encoding takes up about twice as much data per character, it only allows 70 characters per SMS.

---
Tags: sms, 4.2-jelly-bean, htc-one-x, emoticons
---


title: Cannot remove the lock from android

text:
# Question
Title: Cannot remove the lock from android
my issue is when i try use Google services that Allow remote lock and factory reset. if the mobile stolen, then i want to try it and i locked my personal phone successfully it locked by password when i open my device password entry screen appear and when i write the password that i requested from web the device open but i want to remove this lock and i cannot do it, i locked the phone by using Android Device Manager through this Google link

Thanks in advance for help.

# Answer
If adb is detected , Try removing data/system/locksettings.db file and reboot

Following are the detailed steps :

1. adb shell
2. su
3. cd data/system
4. rm locksettings.db
5. rm locksettings.db-wal
6. locksettings.db-shm
7. reboot
> 0 votes

---
Tags: lock-screens, google-account, locked-out
---


# Question
Title: Remotely uninstall an app via Play Store
Is it still possible to remotely uninstall an android application from a web browser via the Google Play Store?

According to the question that this is a supposed duplicate of, this was possible in 2012, but it seems to no longer be there.

# Answer
Apparantly not. The Google Play Help documentation states that you have to uninstall the apps from your device. Either via the Play Store app, or via settings.
> 3 votes

---
Tags: applications, google-play-store, uninstallation
---


# Question
Title: If I delete my WhatsApp account, will my other devices continue to receive messages?
If I delete my WhatsApp account, will my other devices with my account on keep receiving messages that were sent to me?

# Answer
> 0 votes
I would assume NO, since it has already been deleted. You will most likely get an error in your other devices.

---
Tags: whatsapp-messenger
---


# Question
Title: What do I need in my emulator to run Chrome's apk?
Most answers here just mention to download the APK file and install it via `adb`. But after that i get a dialog about critical functionality missing.

What exactly are the requirements for running Chrome?

Update 1:

AWT answer found one of the requirements, I have to run **Google API image** instead of a AOSP one.

After that, I stop getting that message, and Chrome just plain open, show the interface, and then crash.

here it is using the latest (downloaded today) google image for API 19.

```
I/LibraryLoader( 1936): loaded: chromeview
D/dalvikvm( 1918): GC_FOR_ALLOC freed 49K, 3% free 4571K/4712K, paused 94ms, total 263ms
D/dalvikvm( 1918): GC_FOR_ALLOC freed 6K, 3% free 4999K/5144K, paused 62ms, total 99ms
D/dalvikvm( 1918): Added shared lib /data/app-lib/com.android.chrome-1/libchromeview.so 0xb1cfa3c8
I/LibraryLoader( 1918): loaded: chromeview
I/chromium( 1918): [INFO:chrome_library_loader_hooks.cc(156)] Chromium logging enabled: level = 0, default verbosity = 0
I/MemoryUsageMonitor( 1918): Max active tabs = 8
W/BrowserProcessMain( 1918): Excessive maxRendererProcesses value: 7
I/BrowserProcessMain( 1918): Initializing chromium process, renderers=3 hostIsChrome=true
I/chromium( 1918): [INFO:chrome_paths.cc(456)] Registering chrome_paths.cc as a path provider
I/chromium( 1918): [INFO:build_info.cc(96)] BuildInfo instance initialized with device=generic model=google_sdk brand=generic android_build_id=KK android_build_fp=generic/google_sdk/generic:4.4.2/KK/938007:eng/test-keys package_version_code=1025469 package_version_name=18.0.1025469
I/chromium( 1918): [INFO:breakpad_posix.cc(1038)] Dump path: /data/data/com.android.chrome/cache/Crash Reports
V/SyncSetupManager( 1918): Ignoring pref change because user is not signed in to Chrome
D/dalvikvm( 1918): GC_CONCURRENT freed 111K, 4% free 5540K/5732K, paused 20ms+6ms, total 293ms
E/chromium( 1918): [ERROR:user_style_sheet_watcher.cc(164)] Failed to setup watch for /data/data/com.android.chrome/app_chrome/Default/User StyleSheets/Custom.css
W/com.google.android.apps.chrome.NewTabPageUtil( 1918): Unable to determine NTP
section: chrome://newtab/
D/SandboxedProcessLauncher( 1918): Setting up connection to process: slot=0
D/SandboxedProcessLauncher( 1918): on connect callback, pid=1936 context=-1200784872
I/chromium( 1936): [INFO:chrome_library_loader_hooks.cc(156)] Chromium logging enabled: level = 0, default verbosity = 0
I/ActivityManager(  391): START u0 {flg=0x4000000 cmp=com.android.chrome/com.google.android.apps.chrome.firstrun.FirstRunExperienceActivityPhone} from pid 1918
I/chromium( 1936): [INFO:build_info.cc(96)] BuildInfo instance initialized with device=generic model=google_sdk brand=generic android_build_id=KK android_build_fp=generic/google_sdk/generic:4.4.2/KK/938007:eng/test-keys package_version_code=1025469 package_version_name=18.0.1025469
I/chromium( 1936): [INFO:sandboxed_process_service.cc(180)] Starting sandboxed process main entry point, cmdline=/system/bin/app_process --type=renderer --enable-fixed-layout --enable-threaded-compositing --ppapi-out-of-process --register-pepper-plugins --lang=en-US --enable-crash-reporter=,Android --disable-client-side-phishing-detection --enable-in-browser-thumbnailing --channel=1918.0.859634551
 --data-dir=/data/data/com.android.chrome/app_chrome --lang=en-US --cache-dir=/data/data/com.android.chrome/cache
D/SandboxedProcessLauncher( 1918): Setting up connection to process: slot=1
I/ActivityManager(  391): Start proc com.android.chrome:sandboxed_process1 for service com.android.chrome/org.chromium.content.browser.SandboxedProcessService1:
 pid=1960 uid=99003 gids={}
W/ActivityManager(  391): Activity pause timeout for ActivityRecord{b1edb218 u0com.android.chrome/com.google.android.apps.chrome.Main t6}
D/StrictMode( 1918): StrictMode policy violation; ~duration=122 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=2847 violation=2
D/StrictMode( 1918):    at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1135)
D/StrictMode( 1918):    at android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.java:1041)
D/StrictMode( 1918):    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:842)
D/StrictMode( 1918):    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
D/StrictMode( 1918):    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
D/StrictMode( 1918):    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:144)
D/StrictMode( 1918):    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
D/StrictMode( 1918):    at android.database.CursorToBulkCursorAdaptor.getBulkCursorDescriptor(CursorToBulkCursorAdaptor.java:148)
D/StrictMode( 1918):    at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:118)
D/StrictMode( 1918):    at android.os.Binder.execTransact(Binder.java:404)
D/StrictMode( 1918):    at dalvik.system.NativeStart.run(Native Method)
D/StrictMode( 1918): # via Binder call with stack:
D/StrictMode( 1918): android.os.StrictMode$LogStackTrace
D/StrictMode( 1918):    at android.os.StrictMode.readAndHandleBinderCallViolations(StrictMode.java:1705)
D/StrictMode( 1918):    at android.os.Parcel.readExceptionCode(Parcel.java:1447)

D/StrictMode( 1918):    at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:134)
D/StrictMode( 1918):    at android.content.ContentProviderProxy.query(ContentProviderNative.java:413)
D/StrictMode( 1918):    at android.content.ContentResolver.query(ContentResolver.java:461)
D/StrictMode( 1918):    at android.content.ContentResolver.query(ContentResolver.java:404)
D/StrictMode( 1918):    at com.google.android.apps.chrome.GoogleLocationSettingsHelper.getUseLocationForServices(GoogleLocationSettingsHelper.java:115)
D/StrictMode( 1918):    at com.google.android.apps.chrome.GoogleLocationSettingsHelper.isGoogleLocationSettingsAvailable(GoogleLocationSettingsHelper.java:193)
D/StrictMode( 1918):    at com.google.android.apps.chrome.GoogleLocationSettingsHelper.onMainActivityResume(GoogleLocationSettingsHelper.java:161)
D/StrictMode( 1918):    at com.google.android.apps.chrome.Main$MainWithNative.onResume(Main.java:675)
D/StrictMode( 1918):    at com.google.android.apps.chrome.Main$MainWithNative.access$1500(Main.java:498)
D/StrictMode( 1918):    at com.google.android.apps.chrome.Main$InitializerContinuation.resumeNowAndProcessPendingItems(Main.java:485)
D/StrictMode( 1918):    at com.google.android.apps.chrome.Main$InitializerContinuation.onNativeLibraryLoaded(Main.java:406)
D/StrictMode( 1918):    at com.google.android.apps.chrome.Main$InitializerContinuation.access$200(Main.java:356)
D/StrictMode( 1918):    at com.google.android.apps.chrome.Main$InitializerContinuation$1.run(Main.java:366)
D/StrictMode( 1918):    at android.os.Handler.handleCallback(Handler.java:733)
D/StrictMode( 1918):    at android.os.Handler.dispatchMessage(Handler.java:95)
D/StrictMode( 1918):    at android.os.Looper.loop(Looper.java:136)
D/StrictMode( 1918):    at android.app.ActivityThread.main(ActivityThread.java:5017)
D/StrictMode( 1918):    at java.lang.reflect.Method.invokeNative(Native Method)
D/StrictMode( 1918):    at java.lang.reflect.Method.invoke(Method.java:515)
D/StrictMode( 1918):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
D/StrictMode( 1918):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
D/StrictMode( 1918):    at dalvik.system.NativeStart.main(Native Method)
I/LibraryLoader( 1960): loading: chromeview
D/dalvikvm( 1960): Trying to load lib /data/app-lib/com.android.chrome-1/libchromeview.so 0xb1cefc80
W/linker  ( 1960): libchromeview.so has text relocations. This is wasting memory and is a security risk. Please fix.
D/dalvikvm( 1918): GC_FOR_ALLOC freed 337K, 7% free 5931K/6352K, paused 270ms, total 284ms
I/dalvikvm-heap( 1918): Grow heap (frag case) to 6.943MB for 1127536-byte allocation
D/dalvikvm( 1918): GC_FOR_ALLOC freed 2K, 6% free 7029K/7456K, paused 408ms, total 408ms
D/dalvikvm( 1960): Added shared lib /data/app-lib/com.android.chrome-1/libchromeview.so 0xb1cefc80
I/LibraryLoader( 1960): loaded: chromeview
I/chromium( 1960): [INFO:chrome_library_loader_hooks.cc(156)] Chromium logging enabled: level = 0, default verbosity = 0
D/dalvikvm( 1918): GC_CONCURRENT freed 8K, 6% free 7021K/7456K, paused 15ms+112ms, total 421ms

```

There is some random portion of `adb catlog` while chrome is crashing, before i get to this:

# Answer
> 2 votes
It's likely you're running an emulator that has not included some of the Google APIs that Chrome needs. When you create an AVD, when you select a target and API level, you also select either "Android APIs" or "Google APIs". It's possible that Chrome needs an emulator that has the Google APIs included. (Maps, etc...)

Also...is your emulator running as ARM or Intel Atom x86? I've noticed that some downloaded APKs won't run on the emulator in x86 mode.

I was able to get it working using an emulator with these settings. It's not fast, but it works:

Pic or it didn't happen:

Hope that works for you.

# Answer
> 0 votes
I have tried to do this several times and Google does not support APKs for their emulators. I heard others worked around this by installing the Chromium APKs, but even this doesn't really work well. Your best option is to use a physical device -- this will actually free up your PC resources as well.

---
Tags: chrome-for-android, android-emulator
---


# Question
Title: Phone borked after clearing dalvik cache
On my Huawei G300, I cleared the dalvik cache from CWM and on rebooting, Android recreated it as expected but once the OS finished loading, all the apps started throwing up "Unfortunately x has stopped" and in particular Google Keyboard is doing that every 5s or so. On the first boot, it then dropped back to the Android boot animation, so I pulled the battery, rebooted into CWM and cleared the dalvik cache again and after that, at least it hasn't done that.

From System Settings - Apps I can see that Internal Storage only has 12MB free and 744MB used (it was actually 84KB free at first!). System Settings - Storage shows the Internal Storage has 137MB Free and 2.05GB Total though, so I guess they're referring to different things by "Internal Storage".

I use Link2SD and so most of my apps are linked to the 2GB Internal storage. I also have a 32GB SD card installed.

So if anyone could advise what I can do to fix this screwup, I'd be grateful as it's unusable at the moment. I managed to get Titanium Backup to run and update my backup, so I've got a current backup of my apps and data. ES File Explorer works as well but not much else.

# Answer
Never mind. I managed to uninstall some apps to free up some space and then after rebooting, I was able to use Link2SD to move the Dalvik Cache, which gave me about 230MB free instead of 12MB!

I still had some problems so cleared the Dalvik cache again but that put it back on the Internal Storage and used up all the free space again, so I had to uninstall a few more apps and move it again but at least it's usable now. I'm getting a new phone this week anyway, so I won't waste much time getting it perfect, as I'll just wipe it and reinstall a clean ROM before giving it to a friend.
> 1 votes

---
Tags: cache, dalvik
---


title: Roaming Icon on Home-Network

text:
# Question
Title: Roaming Icon on Home-Network
I have an **Xperia L** mobile , I'm from **India** and having **AirTel** Network Connection. The problem is on the mobile network icon,it shows Roaming Symbol since I'm in home network.I made a call to the customer care,they replied that the problem is not on their side (they haven't charged for Roaming). Can anyone help to get rid out from the issue.

Does keeping the mobile data on for all time have an impact on battery ?

# Answer
> 3 votes
Basically roaming icon comes on two chances,

When you are in the different state. When you are in the same state but in a union territory or capital of the state(only in few states)( like : Airtel,Vodafone treats Chennai as one place, Pondicherry as one place and rest of Tamil Nadu as another place. So if I buy a SIM from some city other than Chennai in Tamil Nadu and when I move to Chennai, the "R" symbol appears.).

So, you don't have to worry. You wont be charged. And it doesn't drain your battery. And you can keep your mobile data on, it wont make any difference if you are in roaming or not. Mobile Data wont charge you extra.

# Answer
> 0 votes
I don't think its the phone's problem as Roaming Icon on Home-Network is also reported by other Airtel users, using different phone manufautures . This occurs especially on areas with lower range or between two towers. Switch on to flight mode, then offing it seems to fix the problem. I think Airtel sometimes uses other service providers network.

# Answer
> 0 votes
You can manually change the roaming settings from

Settings\>\>More networks\>\>Roaming\>\>Roaming settings.

It will not affect battery or data package

# Answer
> 0 votes
Well @Sukan you would understand that the network of cellphone depends purely on the proximity of the tower situated by.

1. A Subscriber is identified as Roaming if he/she has moved to another circle (receiving signals from the tower of another circle).
2. Due to this it might be possible that your device is on the border of two circles.
3. So if you move toward the inner tower then it will not display any roaming but if you move even slightly away from that tower then it will receive the signals from the tower situated near to you but connected to another circle thereby showing Roaming on your display. This is weird but normal part of mobile technology Hope this solves your doubt

# Answer
> 0 votes
This was happening in all my Xperia phones ( mini pro, U, Z1). For example in TamilNadu, the mobile operator will have two circles. 1. Chennai, 2. Rest of the TamilNadu. When you move from one circle to another circle, your mobile signal will show `R`.

This means you are not in Roaming, you just moved to another circle of same state. You wont be charged for roaming.

This was not happening in 4.4.2 update of my Nexus5. But when I updated it to 4.4.3 the same thing happened.

However I didnt find this in my friends htc explorer.

Its also been found by few Xperia L users that the Tata Docomo and Airtel sim will show R even in home network.

# Answer
> 0 votes
All of the answers here seem to focus on India, so I thought I'd give a more global explanation.

Each mobile network has a Mobile Country Code (MCC) and a Mobile Network Code (MNC). A SIM card has a single home network, which is identified by a MCC/MNC tuple, a combination of these two. A Roaming network is identified by a differing MCC/MNC tuple.

Usually a single carrier has a single MCC/MNC tuple in use, and the same network is used for all SIMs. However, in some cases, a network can use another carrier's network but still act as a home network. Usually this is the case with MVNOs (Mobile Virtual Network Operators). They lease the network from the actual owner under their own brand. One example of this is the Finnish Saunalahti, which leases Elisa's network.

In India (and a few other large countries), each circle has a separate MNC for each carrier, which results in the situation you've described. If a SIM has a home network in a circle (e.g. Vodafone in Chennai has the MCC/MNC 404/84), when the phone moves to another circle (e.g. Karnataka 404/86), the tuple doesn't match and roaming is shown. However, since both networks 86 and 84 are Vodafone's, no roaming charges are added.

If the phone shows roaming even in your home network/region, it's possible that the SIM has the wrong circle's home network MCC/MNC tuple.

The differences between devices can occur if some devices check the HLR (Home Location Register) of the carrier to see if the SIM is in a "home" network (i.e. a different MCC/MNC but the same carrier) and some jump to conclusions based on just the MCC/MNC values.

References:

# Answer
> 0 votes
I had the same problem. THen I checked the mobile networks settings and in that there is a option called "preferred network", In that my local state priority was changed to 9 somehow, I have then reset the priority to 1 and roaming symbol went off

---
Tags: roaming, sony-xperia-l
---


# Question
Title: How to stop mobogenie auto-download in Android?
mobogenie application auto download in my mobile. My cellphone is Sony Xperia J and my Android version is 4.1.2. Once, I removed it from my device, but it's downloaded automatically again. How to stop that?

# Answer
> 0 votes
Go to Setting -\> Accounts & Sync -\> Google -\> Ads( Reset the Advertising ID ) + Ads setting ( Google Ads Manager and Opt out )

---
Tags: downloading, uninstallation, sony-xperia
---


title: Whatsapp images lost

text:
# Question
Title: Whatsapp images lost
So my Samsung S3 mini kept reminding me that my storage is running out and i probably tempered around with the storage but do not remember deleting my entire whatsapp images folder and videos folder. Any clue on how i can get this back or what may have happened? I definitely did not delete any folders but only whatsapp images and videos folder have disappeared!

# Answer
Based on the "do not remember deleting my entire whatsapp images folder and videos folder." i believe you have only cleared the cache memmory of your whats-app application from the application manager.

If yes/no you can still view the images/videos in the Phone Memmory/SD-Card\> WhatsApp\>Media\>WhatsApp images/WhatsApp Video
> 1 votes

---
Tags: samsung-galaxy-s-3, whatsapp-messenger
---


# Question
Title: "Android is upgrading... Starting Apps" on boot
I have a Galaxy S3 phone with android version 4.1.2. I have not upgraded my phone recently nor have I rooted the phone.

This afternoon when I turned on my phone, I got a message saying "Android is Upgrading... Starting Apps" for a few seconds, then gave me my lock screen and a few seconds after I unlocked my phone, it automatically restarted. Since then, every time I restart my phone, I get that message for a few seconds before I get my lock screen, but it does not automatically restart my phone any more.

I currently do not have a photograph of the message nor can I find one online.

Most of the references that I have seen refer to rooting and dalvik cache, but I do not think this is the case since I have not rooted my phone and using the stock 4.1.2 for the Galaxy S3.

The most recent app that I installed was Cartwheel yesterday.

The only other problem I had was that a week or two ago, my phone seemed to have gone into 'Factory Mode' (see picture in the first post of the linked thread (not my actually phone). I seemed to have solved the issue by inputting `*#87976633#` into the Dialer. You could see the solution (and an example picture in the first post in the thread) HERE.

I thank you in advance for any suggestions.

# Answer
> 1 votes
I seem to have found the solution for my issue.

After posting the initial question I started noticing every so often I was getting a message saying that Aces Bubble Popper has stopped responding.

I have not used this game in a very long time and haven't updated it in an even longer time.

Apparently this app has permission to run at start-up (why a game needs that permission, I do not know and wish I could disable).

After updating the app, I am no longer getting the messages that the app stopped responding, and I am no longer getting the "Android is Upgrading... Starting Apps" when my phone boots.

---
Tags: samsung-galaxy-s-3, 4.1-jelly-bean, boot
---


# Question
Title: Unable to set pattern lock on S4 KitKat 4.4
There is an identical question on stack already, but I've already tried the accepted answer:

4.4 Update (Sprint Galaxy S3) disabled pattern lock, can i reenable?

I had a rooted 4.3 Galaxy S4. I put off the OTA KitKat update for several months and then finally got around to updating it to 4.4 NC5. I used this xda thread for my instructions:

http://forum.xda-developers.com/showthread.php?t=2726868

This is the state of my phone prior to the NC5 upgrade(aka "the clues"):

* Installed FoxFi, which requires installing a cert
* Set up pattern lock (again for FoxFi)
* Connected to company exchange server with stock android mail client
* Device wasn't encrypted

Then I updated and The lock screen page in settings says that all the options are turned off by administrator. Here is what I've tried:

* In Settings -\> Security -\> Device Administrators: Ensure everything is unchecked (nothing was)
* In Settings -\> Security -\> Clear Credentials: No errors received
* Tried booting into recovery and do 2 different wipe / factory resets.

Am I missing something here? Why can't I set my screen lock / pattern?

# Answer
Try re-flashing the stock NC5 firmware using Odin. See this answer for instructions.

I have no idea why this is happening, but logically, I think that would have to work:

1. You've already tried clearing the sources of security policies that disable settings (credential cache and device administrators). Also encryption, but you say the device was never encrypted.
2. The problem persists after a wipe / factory reset, so it can't be caused by any of your apps or settings.
3. I'm 99.999999999999% sure that this cannot possibly be caused by a hardware issue.
4. I don't believe in black magic or possession by ghosts or demons.

So there's really nothing else left; whatever the problem is, it pretty much *has* to be caused by some problem with the firmware. Not only does that seem to be logically necessary, the circumstantial evidence heavily supports this theory: it happened when you upgraded the firmware, without (I infer) making any changes to the configuration or installing any apps.

And since the NC5 firmware isn't supposed to disable these settings, it's probable that either there's something wrong with the firmware you downloaded, or something went wrong with the upgrade process. So re-downloading from a reliable source (I've used the firmware linked above at least a dozen times, and never encountered a problem) and re-flashing should fix it.

---

One more thought:

Since I'm deducing that the firmware upgrade is the source of the problem, it might have something to do with the fact that you obtained the NC5 firmware from a source other than Verizon's OTA upgrade. I know that Verizon's OTA upgrades do more than just flash the firmware, as proven by this process for rooting an NG6 device (which I've used successfully) by temporarily downgrading to NC5, rooting, and then upgrading to NG6 from a non-OTA source.

Note that the instructions stress that it won't work if you leave out any of the steps, and the first step in the process is to take the OTA upgrade to NG6, *then* downgrade to NC5, root, and upgrade back to NG6 from a non-OTA source linked from the instructions. The fact that the author is providing his own link to the NG6 firmware, yet instructs you to start by accepting the OTA update and only use the non-OTA NG6 firmware he's providing in a later step, implies that while there's no problem using a non-OTA NG6 *after* you've done the OTA update, you'll have problems if you never accept the OTA update in the first place.

So, try re-flashing the previous firmware, then see if you can still get the NC5 OTA upgrade (or even the NG6 OTA upgrade). I strongly recommend taking a nandroid backup before trying this, because I've seen cases where downgrading the firmware can cause serious system malfunctions that I've only been able to remedy by doing a factory reset. Also, check whether the screen lock settings are enabled both before the OTA upgrade (but after the downgrade), and after the OTA upgrade.

I'm not 100% certain what the previous firmware was, but I'm pretty sure it was MDK, also available from the GalaxyS4Root page I linked at the top of this post.
> 2 votes

---
Tags: 4.4-kitkat, root-access, samsung-galaxy-s-4, pattern-lock
---


# Question
Title: Create a dd image of a Android 4.4.4 for forensics?
I'm a little new to the Android file system, I'm doing a project for a digital forensics class and I want to create a bit-for-bit image of my Nexus 5 running 4.4.4 stock, rooted. The normal way I would do this on a Linux system would be with dd like so.

`dd if=/dev/sda of=/dev/sdb`

As I have no removable SD card, I was planning on doing this with a terminal emulator and writing to a flash drive over the micro USB port. I need to be able to mount the image and browse the files from the device once the image is created. I'm specifically looking at GPS data and where it is stored, or unknowingly stored, from apps or the system. I'll sort that out myself once I have an image, I have some scripts I've written that will search through all directories and files looking for latitude and longitude strings. Although those probably won't find anything in the databases for android, I'll have to find another way to script/look through those.

Is there a good way to create the type of image I'm describing?

Thanks for any help!

# Answer
You could do that using `dd` directly on the device, making sure the output goes to a partition you can afford to be modified. I will not "rank" here from a forensics point of view (where of course it is best to have *nothing* modified on the device, which is not always possible, etc.), but simply list options. As you are looking for *data* written by apps, you're most likely after the `/data` partition, so this is the most important to remain unchanged (though it already is subject to changes with the Android system booted):

* attach an external drive via OTG (might apply minor changes to `/data` for mounting information)
* write to an existing internal partition (e.g. the internal SD if you plan to "dump" `/data`)

Now let's check for an alternative. Assuming you've got a custom recovery installed, you could simply boot into that (something you'd probably check first). In recovery, by default most partitions (especially `/data`) are not mounted, so no modifications are done. Moreover, a custom recovery offers you the possibility to create a backup – which basically is a dump of all file systems (usually except the SD card(s)), each in a separate file. These dumps would go to the SD card (here: the internal one, as a Nexus has no external). You could `adb pull` those images to your computer even while still being in recovery mode.
> 2 votes

---
Tags: 4.4-kitkat, file-system
---


title: can't boot into recovery anymore

text:
# Question
Title: can't boot into recovery anymore
I am using CM10 nightly version and TWRP for tf201. Wanted to try the unofficial CM11 version android 4.4 on my tablet and it says that is not compatible with this recovery, so I downloaded the latest version of CWM 5.8 from its website and using adb fastboot (and second time with the tablet terminal) flashed the new recovery over the older one. Now the problem is I can't enter the recovery mode, it gets stuck while entering the mode. I tried that procedure with two more recent version of CWM (both touch and classic) and also its ROM manager but the problem persists. Some info:

1- I have my device unlocked, rooted 2- adb fastboot said completely Done while flashing 3- i could see the blue bar completed on the tf201 device and then i used fastboot reboot.

Any suggestions?

# Answer
> 3 votes
I've found that if I run into problems with the custom recovery, I can get rid of it altogether by re-flashing the stock firmware, and then I can install the custom recovery again. You have a different device, but that's what works on a Samsung Galaxy S4, so it might work for you. Of course, there's always the possibility that if you try installing CWM again you'll run into the same problems, but at least that should let you start again from square one, as if you had never flashed a custom recovery in the first place.

---
Tags: cyanogenmod, recovery-mode, clockworkmod-recovery, asus-eee-pad-transformer, twrp
---


title: Use Google's location service?

text:
# Question
Title: Use Google's location service?
When I turn on my device's GPS, Android issues the following:

> Use Google's location service? Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running. \[ \] Don't show again

That seems like a bad idea. So I click 'Disagree' each time. If I select the 'Don't show again' checkbox and then click Disagree, will Android interpret that as a permanent Agree or Disagree?

My experience is that sometimes what you think will happen with these sorts of options is not what really happens.

# Answer
> 1 votes
I can't tell you if it's a good idea or not, that really depends on the type of user you are, but what I can tell is the following:

That feature's main goal is to improve some of Google's services, which means, you may get location based ads, and if you have Google Now, location based cards, among others. Besides, many apps use Google to retrieve your location in a more efficient way.

Now, if you are still concerned about your privacy, do not worry. You can always enable/disable it later. How? Well, it depends on your device's configuration, but I think it's pretty safe to say you'll find the option by opening the app "Google Settings" and then in "Location".

---
Tags: gps, location-services
---


# Question
Title: Stop text messages from going into my Exchange account's Inbox
When a text message comes in, the stock email app throws a copy into my Exchange email accounts that are on the phone. I want to turn this feature off but cannot find a setting for it anywhere. I have a Galaxy S5.

# Answer
What's even worse is that it's not just a combined view; the text messages are actually inserted into your Inbox, so your private text messages sync back to your corporate email account, so they show up in Outlook on your PC, and they're available for your company's Exchange administrators to snoop on! It's probably the most annoying anti-feature I encountered when I first got started with Android.

The setting to make it stop doing that *is* there, but they hide it really, really well. Not only is it in an unintuitive location, but in order to get there you *twice* have to scroll down to hidden portions of the screen where there are no visual cues that indicate that there's anything more down below.

Here's how to ferret out the text message sync setting's hidden underground lair:

1. Select **Settings** from the menu (the soft button in the bottom left corner, not the hamburger menu in the top left corner).
2. Select **Account Settings**.
3. Select your Exchange account.
4. You'd expect to find it here under **Sync Settings**, presuming that this was designed with common sense, right? Well, you'd be wrong. *Scroll down* to find a hidden `More settings` button at the bottom, and tap it.
5. On the **More settings** screen, scroll down again.
6. Find the **Sync text message** setting, and uncheck it.
> 4 votes

---
Tags: sms, email, stock-email-app, samsung-galaxy-s-5
---


# Question
Title: Android compresses all the photos I see online
My HTC One M7 (ARHD 81.0) is compressing all the photos/videos I see online. Instagram? Compressed (even more than normal). Imgur on Chrome? Compressed. Photos from bacon reader? Compressed. Google Drive? Compressed. You name it and my phone will compress it. I was using opera max to cut down on my data usage but I removed it because I thought that it is the cause of my problem. Any ideas on how to get this fixed?

# Answer
> 3 votes
The compression is actually performed by your carrier. Almost all mobile network carriers compress images to reduce bandwidth use on slow mobile connections.

You can avoid the compression by switching to a Wi-Fi network, or using an HTTPS connection to the website you want: since HTTPS is secured from interception, the carrier can't replace the pictures with its compressed versions.

---
Tags: chrome-for-android, video, htc, images, google-drive
---