text:
How to change font on CyanogenMod?
I am on CyanogenMod 10.1, and I installed a font from FlipFont. But, I could not find the option to change it on the display settings.
If anyone has any idea about this, please let me know.

You can use Font Installer. This app requires ROOT.

It worked. But while selecting Install , it says like Font Installer has stopped working unfortunately. Any idea ?

same problem here

@Mirko Have you tried Font Installer?

Yes and it crashes beautifully. iFont does the job though


text:
Is there a reason why an app would want all of my contacts?
I've downloaded an application that wasn't in Google Play (private developer) for testing purposed. Part of the assignment is for me to send them back some information about my device (auto-generated, I just hit send). However, I noticed before sending the email that there was an attachment. I sent it to myself first so I could look at it on my computer and saw it was all of my contacts and the information I had of them, such as phone numbers, names, etc.
Is this something the developer legitly needs? The application can call other people, so that may be why they need it, but I don't understand why they need it. Should I send it to them?

Definitly not! That's nothing like what a developer needs. And a developer requiring you to send that I'd avoid in the future as well. All that might be needed can be provided by e.g. adb bugreport (which is the most comprehensive data collection known to me to be useful for a developer concerning his development). Requesting all your addresses is harvesting, and rather used for spamming.
TL;DR: I would NOT send that information. You might contact that dev and ask for an explanation, and then maybe decide different. But I cannot believe this being a "mistake" or simply "carelessness".

The developers replied back saying only the the names of the contacts are needed, and everything else would be deleted. They required the names to improve the algorithm for calling people (it's one of those Sire-like apps). Still, I deleted all of the phone numbers before sending them in, just to be safe.

Well, still heavy load. If a dev collects sensitive data, he should point this out before the user accidentally detects it. And not only say "Ah, btw, we copied your contacts' data", but exactly say what they need it for -- and even tell you how to optionally erase the parts not required (phone numbers, mail addresses etc. in your case). Grabbing those data silently simply is not serious, and sheds a bad light of not being trustworthy.

NO. There is no reason why an app would need all your contacts.
It's possible that contact information might be useful, if the app does anything to the information about the contact. For example, the app might want to format the phone number (for aesthetic purposes), because it could be saved in many ways (e.g. +639171234567, 09171234567).
They might also be interested in how many contact numbers you have for that person. How would they handle such scenario if you called the person? Would they use the first number or the second number?
If you know the person developing the app (or even if you don't), the best way would be to ask them what they need it for.
But the bottomline is: NO, they should never have to need ALL of your contacts.

source: Stack Exchange

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/

sort: votes


text:
Notifications don't show up until I wake the phone
I have identical problem on two Nexus 5x phones.
In last few weeks I've noticed that I don't receive any notification(Gmail, calendar, sms...) when phone is in "sleep mode" but when I wake it up (with power button, shake etc) the notifications show up immediately.
1. I thought there is something wrong with the notifications settings

Settings->notifications->configuration:
Pulse notification light: "ON"
On the lock screen: "Show all notification content"

2. I checked every settings of every app

everything is set correctly

3. Battery saver - "OFF"

Settings->Battery->Battery saver

4. Doze (battery optimization for apps)

Settings->Battery->(drop down menu)->Battery optimization
Every app moved to "Not optimized"

(updated)
5. Data Saver - "OFF"
(updated)
6. Keep Wi-Fi on during sleep - "Always"
Settings->Wi-Fi->Gear icon->Keep Wi-Fi

and still...NOTHING :(
I have made a simple demonstration with Calendar event notification:
 https://www.youtube.com/watch?v=WoCgA1rkq18
Technical info:

Phone: LG Nexus 5x
OS: Android 7.0 (Nougat)
App killers installed: NO
Rooted: NO
Custom ROM: NO
Connection: tried with every combination = Offline, WiFi, Mobile data, Wifi + data

Thx for help and sorry for my english :-)

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
Minecraft split-screen on Android TV possible without console?
I've read that Minecraft pocket edition is playable on Android TV through sideloading.
I've also read that the only edition of Minecraft which supports split screen is the console edition.
Regardless, my question is if there is some way to play split screen Minecraft on Android TV (with game controller support), without first getting a console?
My TV is running Android Lollipop and will soon receive Marshmallow.

Unless you can port Nougat to It, change the MCPE app so it has two versions of itself installed at once, then somehow isolate files, sound and input I highly doubt so.

@Dan Brown Thanks, I suppose it also isn't possible to cast split screen from two other Android devices, or to find an emulator which can run the console version on the TV?

No, It's not I'm afraid. Even if you could get two running, there'd be conflicts everywhere.

@Dan Brown I think you are right. I have yet to find an xbox 360 or PS3 emulator for Android, or an app which enables split-screen casting from two android devices. (Although I don't see how there would be conflicts. An emulator would run Minecraft console edition which has built-in support for split-screen. And in the other case, when casting from two devices, my idea was that the devices would handle sound and input and only the screens would be streamed to the TV). Thanks again for the help. I've decided to buy a console.

Kiradge No problem. The conflicts would have been controls btw


text:
Pair Sony DualShock 4 v2 with Sony Android TV
I am trying to pair a Sony Dualshock 4 controller (CUH-ZCT2E) with my 2015 Sony Bravia Android TV (KDL-55W808C).
The TV has a DUALSHOCK™4 settings menu, through which one should supposedly be able to pair a Dualshock 4 controller with the TV. The on screen instructions says "press and hold the share and PS-buttons until a white light starts flashing on the controller". The white light starts flashing, but the TV is unable to locate the controller.
Then I found this page listing many Sony Android TVs from 2014 to 2016, including mine, as not supporting the new Dualshock 4 controller (CUH-ZCT2E). Only the older Dualshock 4 controller (CUH-ZCT1E) is supported.
Surely this must be a software limitation which Sony should be able to resolve through an OTA update?
Are there any known workarounds?
Would the sixaxis controller app help me to pair the controllers, and would I require root for that?
Any known hints of if/when Sony is going to add support for the new 2016 Dualshock 4 to their Android TV sets?
Edit 2016-12-08: Sony Nordic customer support didn't have information about if Sony will add support for Dualshock 4 v2.
Update 2016-12-10:
I just found out online that the rollout of Marshmallow to the 2015 (and the spring 2016) TV Sets has begun.
Update 2017-04-25:
The Marshmallow rollout which was halted and postponed by Sony is now officially available as USB download for Nordic customers (link in Swedish). After upgrading to Marshmallow I'm still not able to pair through the Dualshock™4 settings menu.

Yes, it is possible to pair Dualshock 4 v2 controllers on a Sony 2015 Android TV. I have had no success when trying to pair through the TVs Dualshock 4 settings menu, but I successfully paired three controllers (simultaneously) using the Bluetooth settings menu:

If you have a PlayStation - start by unplugging your PlayStation's power cord, since I've noticed that the controllers otherwise sometimes pair with the PlayStation instead of the TV
Press the home button on your TVs remote and go to settings.
Go to bluetooth settings.

Go to device list

Add accessory

Now press and hold the share button on your controller. While still holding the share button - press and hold the PS button on your controller. Your controller's light should, after a couple of seconds, start to flash in a pattern of two short blinks followed by a pause repeatedly. Soon your tv should identify the controller as "Unknown"

Press the "select" button on your TVs remote control (the center button of your remote) to start pairing. The TV will identify the controller as "Wireless controller"

The controllers light will turn solid white when pairing is complete.
You should now be able to control your tv using the Dualshock 4 v2 controller.
If you want to use the controller(s) with PlayStation again, you will need to pair the controller(s) to the Playstation using an USB cable.

While running Android Lollipop I was able to control the TV's menus, play games downloaded through Google Play Store and use the controllers in emulators.
After upgrading to Marshmallow I'm still able to control the TV, but the experience is now pretty much ruined by heavy input lag starting about 30 seconds after pairing. I still hope to find a solution for this.

I just upgraded my TV but I don't have a controller to test if Marshmallow supports it. I am quite interested about the subject because I want to order a v2 controller but not if it doesn't work with the TV (XD85).

I upgraded manually via USB. Quite pleased.

@sorin: I've upgraded to Marshmallow. Pairing still works the same as Lollipop BUT I get input latency about 30 seconds after pairing which ruins the experience. There was no noticeable latency while running Lollipop. Right now I wouldn't recommend you to buy a controller.

Doesn't work for me on my sony bravio with android 6.0 : not even lags but nothing : the controllers light do turn solid blue and the light disappears, and no control after this.

I obvisouly did, yes. In fact I followed exactly what you preconize in your answer.

@ujsgeyrr1f0... Sorry to hear that. Did your controller's light flash in white during step 6? Did your TV identify your controller as "wireless controller"? Did you remember to push the "select" button on your TV's remote? After which step did your controller's light turn solid blue? Please be more specific on what works and what doesn't.

It did yes. Finally it worked. Honestly, every time I strictly followed your step. I suspect simply that the pad wasn't enough charged, but not sure.

Just paired a CUH-ZCT2U to X850D running Android 7.0 via Bluetooth settings. Works flawlessly with no noticeable lag.

@dragon:  Thank you for your input! This question and answer is rather dated now. I noticed that in Nougat the Dualshock 4 menu option is gone on my TV. The settings menu looks different, and there is just the bluetooth option now. Glad to hear that you don't experience any lag after pairing. I haven't had the time (or will) to pair to my TV for a while, so I don't know if I would still experience lag. I will test it in a few days and update the answer.

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
Rooting a Samsung Galaxy Note 10.1
I have a Galaxy Note 10.1 (GT-N8013EAYXAR).
I have tried literally everything, and I am at a loss. I have tried SuperOneClick which didn't even come CLOSE to working. I tried using Odin which seemed promising, so I went with it and kept trying. I tried stuff that was downloaded. I tried converting the official CWM to a tar.md5 (this made Odin crash). I tried adb methods (maybe I'm doing something wrong).
All I ever get is the factory recovery. I can't run Titanium Backup (or really any other decent apps) without su.
Please help. I'm at a loss here.
EDIT -- SOLUTION
If you have a Samsung Galaxy Note 10.1, and are looking to root, here are some useful links.
This is the post where I found the link to the superuser file that is to be flashed via Odin. The post describes the process. NOTE: You do not need to flash CWM to get root.
Here is the link to the actual su file that has been prepared for use with the Odin utility.
Hope this helps anyone that gets caught up in the process of rooting their Note 10.1. =)

Have you tried this guide from RootGalaxyNote?
This answer is pending an edit. Site is currently blocked at my location.

i didnt use the link this guide suggested, but the page led me in the right direction. i DLed a su binary that i then flashed and now have su! thanks for the link =)

@KonnerRasmussen Could you provide the link to the file, so that it would benefit other people in future?

gonna put links in the original post... see the edit section =)

You can read here. I think it's useful for you.

Please don't post link-only answers, if the link changes the answer is useless. At least, paraphrase the solution into the answer so that the answer is helpful even without the link.


text:
Unable to locate play store after flashing my android phone to CM7
I flashed my Samsung Galaxy I5510 with CM7. Everything was fine until I found that the Play Store was missing in the app drawer. I am unable to find it anywhere on the device.
I even tried installing an apk for Play Store but that didn't work.
Any help would be appreciated.

You need to flash this Google Apps (GApps) from this site here.
Installing just one apk for Play store will not suffice and will fail as it has dependencies on other components that makes up GApps.


text:
How can I disable the volume warning if you raise the volume too much?
I recently got a Nexus 4, and I've got a question regarding the volume warning that pops up if you raise the volume too much. Is it possible to disable or remove this warning? I want to be able to raise the volume with the phone in my pocket (with the volume buttons) without having to pick up the phone. I listen to podcasts with low or bad audio and need to raise it above the warning level.

I only seem to get the warning the first time I raise the volume after a reboot.

It's possible using Xposed Framework if you have a rooted phone. Detailed instructions here: http://gs4.wonderhowto.com/how-to/get-rid-annoying-high-volume-alert-when-using-headphones-your-samsung-galaxy-s4-0148825/

This is a known issue (or feature) in Android 4.2, and there's probably no fix for now.
UPDATE 2013-12-10: According to Marius Hofert, it is still an issue in 4.4.

Okay, to bad :/

It's (still!) an issue in Android 4.4 (kitkat). People have reported that it can be fixed with a custom rom, but I believe Google should provide a switch to turn it off.

Android source code explains it perfectly in AudioService.java
For any experienced Android hacker, It's quite easy to patch it out though.
//==========================================================================================
 // Safe media volume management.
 // MUSIC stream volume level is limited when headphones are connected according to safety
 // regulation. When the user attempts to raise the volume above the limit, a warning is
 // displayed and the user has to acknowlegde before the volume is actually changed.
 // The volume index corresponding to the limit is stored in config_safe_media_volume_index
 // property. Platforms with a different limit must set this property accordingly in their
 // overlay.
 //==========================================================================================

 // mSafeMediaVolumeState indicates whether the media volume is limited over headphones.
 // It is SAFE_MEDIA_VOLUME_NOT_CONFIGURED at boot time until a network service is connected
 // or the configure time is elapsed. It is then set to SAFE_MEDIA_VOLUME_ACTIVE or
 // SAFE_MEDIA_VOLUME_DISABLED according to country option. If not SAFE_MEDIA_VOLUME_DISABLED, it
 // can be set to SAFE_MEDIA_VOLUME_INACTIVE by calling AudioService.disableSafeMediaVolume()
 // (when user opts out).

How about an inexperienced "hacker" who happens to be a developer? What is the best option? Custom ROMS, patching the stock version, etc. I would like to ensure I still received OTA updates for the Nexus 4.

This seems to be an implementation of the European Union regulations to limit the volume to 85db unless the user confirms they want to raise the volume higher (BBC news article).
I guess this does not apply in the US and other regions?
It's possible that some custom ROMs may let you disable this feature.


text:
How to upgrade Android 2.3 to 4.0 on ARM 11 based Tablet?
I have tablet which has a IAMPX200 Processor and a M718 Main Board.
The current OS is Android 2.3, and I want to upgrade it to Android 4.0. Is it possible? If yes, please give any suggestions.

Simple answer: No.
ICS requires an Armv7 processor. Arm11 processors are armv6, as such your tablet doesn't support ICS.
however, a ROM maker may have ported it to your professor and hardware - I suggest you check forums such ad XDA Developers.

Then on My ARM11 processor which Android version is supported on armv6

Arm11 is Armv6, ich supports all versions less than 4.0.

What tablet? Some can be updated by going settings>about>software update and follow the prompts!
Or if you can't update that way you have to force up via a program on a computer, I recommend uberoid.

Down voted as no research made. If you had made some research, you would've seen that ICS isn't compatible with processors of Arm11 architecture.


text:
What exact purpose has the sync option "Background data"?
What exact purpose has the sync option "Background data"?

From the developer page, background data is used for "an application that uses the network in the background." For example, a quick search tells me the market requires this to be turned on. Keeping background data set to on is what enables you to keep data from GMail, Weather, Facebook, Twitter, etc. up to date without having to manually refresh/sync each of them. Also realize that battery usage increases with each app or account that is utilizing background data. I notice Twitter has several time increments to choose from in terms of synchronization rate - this helps balance between having the latest data and preserving battery. Hope it helps.

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/2.5/


text:
Is there a way to force apps to use internal memory only?
I have a Sony Xperia U, and my 8GB of memory are divided in three parts: 2GB phone memory, 4 GB internal memory (replacing the MicroSD slot) and 2GB that I haven't really figured out about.
I don't want to mess with repartition. I just want to use each one as they must be used.
The problem is: many apps are optimized to save many things in SD, but for this phone it is not really useful, as it has plenty of space in phone memory! What can I do to make automatic created app data use internal memory only, leaving SD (internal, in Xperia U's case) free for my own use?
Edit: Thank you for your answers! John, my device is rooted, so, could you explain further about those permissions, please? Thanks in advance!

(Your English is fine. Better, even, than some native speakers.)

If you had a rooted device, you could set the folder permissions within the SD card to root only.

If the developer coded that in his app, there's not much you can do. If he coded the "path" (e.g. /sdcard/funnyapp, or using getExternalStorageDirectory() (which is how it should be done) and appends /funnyapp (or whatever directory), you could play with symlinks (linking that location to internal storage) -- but even that will most likely fail, as symlinks will be "not supported" by the "sdcard's" file system.

Adding to Izzy's comment above, you are out of luck if the the developer explicitly wants the app to be installed in somewhere. More info regarding this can be found in Android support documents. @Izzy, Your comment is the answer to this question, isn't it?

you say your phone is rooted, it is then possible to change the default installation location that the packagagemanager uses to install apps. this will only work with apps that allow it, as others have already pointed out, apps may choose to ignore the packagemanagers recommendation and install to internal/external anyway even if you choose the opposite. also, big game files in the obb directory are stored where the obb directory actually is located; this is dependent on which phone you use.
to change the default installation directory:
1) use terminal emulator from google play (or, alternatively, enable usb debugging and use adb)
2) in terminal emulator, enter:
su

accept the superuser request, then try either:
pm setInstallLocation X

or:
pm set-install-location X

where X can either be
0 = let packagamanager decide
1 = install on internal by default
2 = install on external by default

As Sid encouraged, I'll convert my comment to an answer -- while merging in details from the other comments:
There are mainly two ways the SDCard is addressed from within apps:

hardcoded path (e.g. /sdcard/funnyapp)
using Androids API, i.e. getExternalStorageDirectory()

While 1. might fail if the SDCard is mounted to a different place, 2. would lead the app to store things in the "first" SDCard (on devices with internal SDCard, that means internal SDCard, on others external). But both cases share the fact: if the app doesn't offer a configuration option, there's nothing you can do to change that. Android does not offer a corresponding setting, and Symlinks don't work on SDCards (due to file system limitations).
Same applies to the storage used for the app itself, as Sid wrote pointing to Android support documents (see also the developers documentation on App Install Location for this). While in most cases one can move an app using the App2SD feature built into Android, the developer can overrule this so his app cannot be moved.
As for John's comment, this wouldn't really work. Still a little explanation on what he most likely meant: Using "root powers", you could change ownership of all files and directories. So his idea probably was to make all things on your SDCard owned by root, and only readable to others. This wouldn't work for multiple reasons:

This would make things even more complicated to you (as you couldn't write either without becoming root before, every single time).
You could not do that on directory level (e.g. doing it for every single directory except for one with a "fantasy name" like e.g. "MyOwnDocs", where you could store your stuff without the trouble from the previous argument), as the file system on the card (FAT) does not support that.
It could somehow if you use a script to remount the card read-write each time when you want to write to it, and make it read-only again once you're done. But again, this complication most likely isn't worth it. In addition, some apps might crash with a read-only SDCard, as they (for good reasons) don't expect an SDCard present but not writable.

TL;DR
So in short: If the apps cannot be configured such themselves, there's no way to accomplish this (except for re-writing those apps).

symlinks don't work on fat but he can mount bind a folder like: mount -o bind /internal/dir /sdcard/dir

Try using Lucky Patcher and installing the app's apk as a system app.

Could you link to Lucky Patcher?  Will this actually change where the app saves things?


text:
Allowing requests for Google Voice Search with a Bluetooth headset when the device is locked?
I enabled

Allow requests with device locked
  For Bluetooth devices
  For wired headsets

in Settings for Google Voice search.
However, none of my devices ( Sky Vega racer3 and Samsung Galaxy Tab 10.1)
seems to be responsive to "Okay Google" using either a wired headset or my bluetooth headset.
Both of my devices respond correcctly to "Okay Google" with or without any bluetooth devices or wired headsets when the device is not locked.
None of my devices has a lock screen.
Ultimately, what I want to do is to be able to send Hangouts messages or ask for the time while I'm riding my bicycle without having to pull my cellphone out of the pocked and turn on the screen.


text:
Samsung S7, Wifi keeps disconnecting
I've searched around, and so I can ensure that this is not a duplicate.

Smart Network Switch is off
Keep Wifi on during sleep
Wifi works excellent for other devices
Wifi disconnects randomly even while the screen is open and device is in use

I opened up the Developer options, and turned on "Wi-Fi verbose logging" and when it disconnected, I saw these messages:

NETWORK_SELECTION_PERMANENTLY_DISABLED
NETWORK_SELECTION_DISABLED_BY_WIFI_MANAGER=2

Also in another occasion these:

NETWORK_SELECTION_DISABLED_BY_ASSOCIATION_REJECTION=1
NETWORK_SELECTION_DISABLED_BY_WIFI_MANAGER=1

The issue seems to be since installing an application, but I've uninstalled all recent applications on my phone, and it hasn't gotten better.
Safemode seemed to fix it, so there must be some kind of application interference, but the Wifi Control History only lists applications that turned on the wifi.
My only solution so far has been to disable wifi and re-enable it, or open up the wifi network manager in android, and tap the wifi connection. (presumably to override the 'network selection disabled')

Some logcat details:
[ 08-14 13:44:35.460  1364: 2509 E/WifiStateMachine ]
Did not find remoteAddress {10.100.5.1} in /proc/net/arp

and
I WifiHs20Service: Message received 5014
E WifiHs20Service: received HS20_UTILITY_ACTION_TYPE_HS20_CONFIGURATION_CHANGED
D WifiStateMachine:  DisconnectedState !CMD_GET_CONFIGURED_NETWORKS uid=10225  rt=2982499/2982499 10225 0 num=40
D WifiStateMachine:  ConnectModeState !CMD_GET_CONFIGURED_NETWORKS uid=10225  rt=2982500/2982500 10225 0 num=40
D WifiStateMachine:  DisconnectedState !CMD_GET_CONFIGURED_NETWORKS uid=10225  rt=2982511/2982511 10225 0 num=40
D WifiStateMachine:  ConnectModeState !CMD_GET_CONFIGURED_NETWORKS uid=10225  rt=2982511/2982511 10225 0 num=40

When turnnig wifi back on, I sometimes see:
WifiStateMachine: There are no configured ssid

followed by many SSIDs of wifis I've already used. The SSID in range is not listed. Perhaps because the SSID in range is marked 'permanently disabled' (see above)

Additional Edit, more info:

I'm unable to reliably replicate this. It only disconnects when I'm assuming it'll work, and it doesn't seem to be crashing while I'm trying to use it.
I got a disconnect while doing a beyondpod (podcast app) update: https://pastebin.com/Edx7ADXZ Things to note:

I could not duplicate it with just the podcast app
If you search in the log for beyondpod, you'll see more information about where the disconnect happens. Sometime before: "08-23 12:53:46.600"

Update 3:
I wiped my phone, and it was fine for a while, but it came back. The same error codes: NETWORK_SELECTION_PERMANENTLY_DISABLED and NETWORK_SELECTION_DISABLED_BY_WIFI_MANAGER=2
I guess wiping it was not sufficient.
Is there anything I can run to constantly reset my wifi (when the hardware switch is on) to effectively cancel out whatever is turning it off?

I noticed this post, so I'm going to try and get adb logs to see if that provides more info: https://android.stackexchange.com/questions/143720/nexus-7-keeps-disconnecting-from-wi-fi

This seems relevant?: https://developer.samsung.com/forum/thread/wifi-turn-on-and-off-in-loop-android-601-on-sm-g900f-where-can-i-submit-a-bug/201/299651?boardName=SDK&startId=zzzzz~

I'm finding strings here that match my logcat, but I haven't narrowed down the logs to anything meaningful, and I'm hesitant to just dump all kinds of personal data: https://gist.github.com/czyzm/6a49abc9b5b0c0eb28d5999cccee0c77

If you are looking into logcat than you should look for specific time if you know when disconnection occured maybe something is there. How device works with other WiFi networks?

Do you know someplace I can upload ~2MB logs? pastebin.com doesn't work with a free trial. 2MB of logs is what I get when I try to cut it back to only one minute...

Since I don't have enough reputation to comment ill have to post here. Hi Isaaclw, I see that the problem started when you installed an application, What was that application? You can take "adb shell logcat" contains wpa_supplicant related logs. Wpa_supplicant is an open source application which is used in android phones to connect and manage Wi-Fi connections.This would help your disconnect issue. or "adb shell cat /proc/kmsg" which is the file where kernel dumps the logs. Here you can see Wi-Fi crash related logs.

adb shell cat /proc/kmsg responds with permission denied

The other comment has the same problem as the logcat above. I dont have anyplace to upload the full logs

Debugging is so painful, partly because the error comes and goes and is unreliable. I wrote a script that helps debugging: https://pastebin.com/3rkNFaXC
And now the error isn't happening anymore. Go figure. I think due to my schedule I'm reformatting this weekend.
UGH.

Another edit. I wiped my phone, and it came back. I wish I didn't have so much going on this week and could actually solve it. Is there a place I can export my application list that would help?

Android didn't indicate which applications where toggling the wifi status accurately, and the logs were unhelpful.
I later noticed that "MyCricket", an application that helps pay for my Phone Service, had a setting titled: Turning on Cricket Wi-Fi Manager
Turning off this setting fixed it. I wish the Android controls had been more helpful.

Go to settings/display/screen saver & enable it. It seems to keep the wifi running. Hope I can help. I know it is an old thread but people still use this phone & this search is #2 on googling "s7 wifi keeps disconnecting" I hope I can help people like me.

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

authors: Једноруки Крстивоје


text:
How do I remove a Google Account from my phone?
My gal pal used my Galaxy S5 to sign into her Gmail.  She Added "another account' to my g-mail but could not find a way to sign out when done. Now, all of her mail and calendar stuff is showing up on my phone!  Help me stop this!

Here's a way how.

Go into the GMail App
Select the menu button(top left of the screen next to "Inbox"
Click the down arrow next to your email
Select manage accounts.
It will take you to another menu, select "Google"
Find her account, click on it, and in the top right corner of the screen there should be 3 dots you can push to bring down a menu, and select remove account.

Can also remove the account in your phone's settings menu. Scroll down til you see accounts.


text:
My Nexus 6 turns itself off randomly; How can I fix this?
TL;DR: Nexus 6 shuts itself off randomly, seems to be connected to the camera, wifi, and cellular. Internet is full of placebo solutions and "me-too" posts. Logcat output below.

I've been having this problem for months now, but it wasn't there when the phone was new. Here's what happens.

I will be on a phone call, using a headset, and when I open the camera app, WhatsApp, or - sometimes - when I'm doing nothing at all, the phone will just shut itself off instantly.
Sometimes it'll shut itself off when I leave the house and look for a Car on DriveNow. My house has Edge coverage, my street has LTE.
A few times the phone would shut off again after I've switched it back on. This can happen a few times in a row. Waiting before I do anything after switching it back on seems to help.

Note:

I am nearly always on a phone call when this happens.
I think the display is always on when it turns itself off.

Searching the internet, I have found tons and tons of complains of the same or similar problems, and I've been reading the Google product forums, with hundreds of me-too type posts and placebo solutions.
People will claim that uninstalling an app I and the other posters have never heard of fixed the problem for them. Some claim what wiping the phone will help, others say that that doesn't work.
The problem occurs very sporadically. It's very hard to find out whether doing anything has fixed it or not.
This is what I've tried so far:

I've uninstalled all apps I can live without. Making sure I only use apps that I have been using when the thing was working properly.
I've deleted the cache partition (one of these placebo solutions)

I would try a factory reset, but the data inside of WhatsApp is extremely important to me and I don't have a spare phone to load my WhatsApp backup before wiping the Nexus 6 (you need your SIM for WhatsApp to work, so the emulator doesn't help me). I don't want to bring the phone back to the store or send it to Motorola for the same reason. If I can help it at all.
For the last two days, I've been keeping my phone connected to my computer with a shell open and watching the output of logcat, and a few minutes ago it did indeed shut itself of with the shell connected. Here's the logcat output from shortly before the crash
I wouldn't be posting this Question, I'd just live with it until I get a spare phone and send the Nexus 6 in for repair, except for the fact that I now have the output from logcat, and that might make sense to someone here.

The phone is running Android 5.1.1 (LMY47Z LMY48I)
I have a german T-Mobile SIM
Here's a list of apps I have installed

Update
I did a factory reset. It went fine. :) Of course I have no idea whether that fixed it or not.
Update the second
It didn't :-(
The problem also happens (just happened) in safe mode.
Update the third
It also happens on the Android M developer preview. I've since bought a Moto E (lovely) and I will send the Nexus 6 in for repair. Hoping I won't get it back with a message saying there's no fault.

I suspect the device is not rooted. Is it so? Considering a non-rooted device, have you looked at How do I use Google Drive backup? and How do I save my chat history? -- both from FAQ at WhatsApp's website. // By "I don't have a spare phone to load my WhatsApp backup before wiping the Nexus 6' -- do you intend to mean that you want to verify if the backup is good or not if you've had a spare phone (since emulator doesn't work here)?

Not rooted. Yes that's exactly what I meant. The Google Drive backup sounds more promising than what I've read (backing up to your devices sd card, which the n6 doesn't have obviously).

Looking at logcat, don't do anything drastic.

might be a hardware problem
try this

It's not the physical button I don't think. If the phone turned itself off because the  sleep/wake button is shorted, I'd notice the vibration and the popup that appears when you hold it down.

My Nexus 6 had this problem before, but after updating to the newest Android OS it seems to not have happened again for a very long time.

Okay so i guess what's done on the bounty is done, but i would like to see your logcat, if your device repeats the issue after you get it back.

This is a partial answer based on the output of logs provided.
Okay, after looking at the logcat, my guess would be a buffer overrun error originating/stemming from mm-camera and connected services/processes and ion memory allocation.
Snippets,
08-11 17:51:19.504 E/libaprpmem( 1539):  Ion allocation success virtaddr : ret=2996989952 fd=48 heapid=33554432
08-11 17:51:19.507 E/libaprpmem( 1539):

08-11 17:51:19.332 E/mm-camera( 1539): mct_stream_destroy_buffers: Exit

08-11 17:51:19.337 E/mm-camera-isp2( 1539): isp_port_check_caps_unreserve:807 ide 3000f port 0xb6749d60
08-11 17:51:19.337 E/mm-camera-isp2( 1539): isp_handler_destroy_stream_param:1616 num_streams 0

Okay so don't be ready to quote me on that but dig this article discussing buffer underrun/overrun http://www.articlesfactory.com/articles/computers/buffer-underrun-and-overrun-scenarios.html
I can't pin it to a specific specific cause but try setting your camera resolution to as low a setting that you can get it, and if you can, disable your proximity sensor. Either when the camera crashes it takes your phone with it or even though it crashes , seemingly repeatedly, it keeps gobbling up your ram till your phone tanks and shuts off. Hit some development sites and see what devs have to say or are doing with respect to this subject if it's common. It could be "fixed" by a decent/corrected kernel build. Unless you are under contract or tied down by the knox/enterprise-ability thing.
You may need to go pirate/commando and break your contract to save your data though. Meaning rooting and ripping all your data off the device.
OH! and i forgot this,
08-11 17:49:33.932 W/ResourcesManager(29010): Asset path '/system/framework/com.google.android.media.effects.jar' does not exist or contains no resources.

That one is a genuine WTF.run ls -al /system/framework/ and look for zero length *.jar files.
More- missing lib
08-11 17:51:10.373 E/mm-camera( 1539): Tuning lib open failed: dlopen failed: library "libmmcamera_tuning.so" not found

Edit- Rerun your logcat "live" as logcat |grep F/ as before with phone connected till crash.

You can do an adb backup or use Titanium Backup to back up your Whatsapp data. Then you should do a factory reset, if that does not help, you should reflash the original firmware.

WhatsApp doesn't allow backup from ADB and we're yet to confirm whether OP's device is rooted. Besides, what merit lies in re-flashing firmware? Consider explaining the reasoning behind it.

This is what I'm getting at. Adb backup sound wonderful, but if that skips some of these files, which it sound like it might, that'd be so annoying. This is why I would like to test restoring my backup to another device.

I see no evidence why flashing the device would solve my problem. The system image would be identical (it's read-only), and everything else would be restored from a backup, surely? Happy to try it though if I can figure out how to back up my stuff.

@StefanoPalazzo Here: Full Backup of non-rooted devices is the way to backup non-rooted devices before flashing. Note that it has limitations and as said, WhatsApp wouldn't be backed up by ADB.

There is a tool over on XDA that might help you. http://forum.xda-developers.com/showthread.php?t=2770982 But on the ADB issue. One thing you can try to do is to pull the data instead of using backup. Then once you factory reset the device. You can reinstall the app then use ADB to push the database back on to the device. In theory... I know devs can set the allow_backup flag to no, but that shouldn't stop you from pulling the data instead. Edit Also, Not sure if you tried this. But this is from the whatsapp website. https://www.whatsapp.com/faq/android/20902622

@StefanoPalazzo Also on the whole flashing thing. From time to time there are bits of old code that get left behind and can cause problems. That's why most of the time when you have problems people suggest a flashing factory images and sometimes a factory reset will suffice. I know you said its been happening for a few months now. Did it start after you took an OTA?

Backup data
Flash Original file or another ROM , this will definitely solve your problem.
Enjoy.

Flashing the factory image didn't solve my problem.

Install a different ROM , if that doesn't solve your problem , then Power IC or battery may be the problem.

authors: هزاع الغامدي


text:
Nothing happen when 'Tap yes' in Google 2-step Verification
Phone is Sugar C13. The phone is running Android 8.1.0.
When I sign in Chrome on PC, I get the "notification" of "Is it you trying to sign in?", and the two step verification pops up.
I tap "Yes", and nothing happens.
What could cause this and how could I fix this?

Possibly related: Google two-step verification doesn't want to work. Pops up, I approve and nothing happens

Yes, it's related. But it differs.  When I tap "Yes", I didn't  get a toast notification "Approved".... and nothing happens.

Strange thing is that other google services work fine.


text:
Can't access storage and sd card of Moto G4 when connected with USB to computer and in MTP mode
I have a Motorola Moto G4, marshmallow 6.0.1. When I connect it to my computer via a USB cable, it charges, and the computer detects the device, but I cannot see the contents of it, namely of the sd card inside. I also changed the USB mode to File transfer (MTP).
I have contacted Motorola already and I tried everything they told me to do (USB debugging option, etc.), but to no avail. They said that there might be a problem with the computer, but I've used this computer already for this operation (but on other phones) before.
I have confirmed that it works on other computers, so I am also pushed to believe that it is the computer's fault. I also installed every driver from Motorola's website.
I deleted the cache already and performed every suggestion in a similar thread, still not working.
Any help would be appreciated. Thank you.

Try uninstalling the drivers then reinstall them again. Try the drivers from this thread: http://forum.xda-developers.com/general/rooting-roms/motorola-usb-drivers-rsd-lite-firmware-t3042687

A Moto G, yeah. "This is a well discussed and easy to fix bug", see SD card not showing files when connected to pc.

Possible duplicate of SD card not showing files when connected to pc

You might be on an outdated version of ANDROID> 6.0/ 6.1
If so, UPDATE your android and the problem should be fixed.


text:
What does "Network interrupted; server closed" mean?
My phone (a Samsung Galaxy S4 Mini running Android 4.4.2) sometimes shows a message window with the text "Network interrupted; server closed". Does anybody know exactly what that means? I've tried googling it, but that doesn't get me anywhere.
The message is in English, even though I've set the phone to Dutch; other messages are in Dutch rather than English.
As far as I can see it happens when I get out of wifi range. I understand the "Network interrupted" part; seems normal if I go out of wifi range (though I'd rather expect something like "Connection lost"). What I don't understand is the "server closed" part. It seems to imply there is a server running on the phone -- does Android run some kind of server? Or is it possible that the message comes from some app that's running in the background rather than from Android itself?

If you have the "File Expert with Clouds" application installed then it may be the culprit. I was having the same issue and suspected it may be that application because it seemed to start happening after I had started and then stopped the FTP server.
I removed the application and the messages stopped.
I then re-installed the application and everything was fine until I started and stopped the FTP server at which time the messages started to appear again.
I removed the application (permanently this time) and the messages have stopped again.
I didn't bother to check to see if I could connect to the FTP server when it was supposedly stopped but I may re-install the app one more time just to see if that's the case. I'll post the result here if I do get around to testing it... Paul

I have "File Expert" (with Clouds, I think) installed. I'll try uninstalling it (I don't use it all that often) and see if that makes a difference.

Since I removed "File Expert", I haven't seen the message anymore. Therefore I accepted your answer (even though there's a chance it's a coincidence). In addition I have the impression that my phone drains its battery much slower now (it's just an impression though, absolutely not scientifically measured).

It is File Expert. I had it on 2 of my devices both showed the same toast notification "network interrupted;server closed" and stopped doing it after uninstalling.
Before ditching the app I tried getting into the devices through ftp (when shut down) but would not work so File Expert probably just constantly scans network activity and displays a toast when the network/wifi is down, keeping the device awake and draining battery. Some bad dev work there.
Try "Solid Explorer" instead, best file browser ever.


text:
Phone (Moto G) stuck in fastboot screen. Nothing works!

Stuck at this screen
I am on a Mac OS and was intending to unlock the bootloader when I accidentally bricked my phone. I followed all instructions. Downloaded Motorola drivers, Android SDK and also fastboot.zip. After I typed in the command to get unlock data terminal showed: waiting for device. I got impatient after five minutes or so and unplugged it from my computer only to find out that it's frozen. Won't reboot after holding down the power key. Also tried Power+Up/Power+down. Also tried the fastboot reboot command but it says "device not found". I have no idea what to do as most XDA threads I found are using windows systems. Help/suggestions/links/video guides anything would be much appreciated. Please keep in mind I have a Mac OS and know nothing about ADB commands or fastboot other than what the sites told me when I was about to unlock the bootloader.
Edit: When I run ./adb devices no device is shown. Does this mean my computer doesn't detect my phone?

Here's what fixed the issue for me. I removed SD-card and the sim cards and held the power button for 10-20 seconds. It rebooted the device :)


text:
how can i download movies on Acer A200
How can i download video torrents onto an Acer A200? I've tried several apps from Google Play including Bittorrent and uTorrent. I tried PotLocker as well. I don't know what else to try.
This is my tablet, which I'm less familiar with, so it is possible that it's operator error, but i believe it is a compatibility issue.

Bittorrent and uTorrent are from same company and both are useless compared to
aTorrent:
https://play.google.com/store/apps/details?id=com.mobilityflow.torrent

I'm using aTorrent and it's very useful and works perfectly.


text:
Installed CWM/TWRP but it isn't installed when booting to recovery mode
I have an LG G2-D800 running 4.4.2 KitKat and it is rooted using an app called Stump Root. I have been trying to flash a new ROM onto it and every time it boots into recovery, it boots into the android recovery, even though I have flashed it using Clockwork Mod and TWRP Manager.
Can anyone help with this and suggest good ROMs to flash to it?

How did you flash the recovery?

I used an app called ROM Manager v5.5.3.7. When you first enter the app, the first option is called "Recovery Setup". And as of now, it says that the current Recovery is ClockworkMod 6.0.4.4 (which I believe is the latest version). But, if I use the "Reboot into Recovery" option under that, it just opens the Stock Recovery.

I had similiar problem and explained everything here [http://en.miui.com/forum.php?mod=redirect&goto=findpost&ptid=297691&pid=8767131][1]

I had same issue on a TAB4 10.1 SM-T535.. Anyway, to get it to boot into TWRP I just had to install the TWRP app from the play store, which has an option to boot into TWRP, the key combinations never worked for me. I also had flashed CF-Auto-Root to the device to install SuperSU, which might have allowed the TWRP app with Root access to boot into recovery mode straight from their app, bypassing the timing issues of having to press the keys in a certain order.

Some stock ROM's may replace the custom recovery with the stock recovery. To solve it you should install the custom recovery with fastboot and reboot to recovery and don't reboot to system. That will prevent the stock ROM from replacing the custom recovery.

Catch: That will prevent the stock ROM from replacing the custom recovery. -- not completely true. This answer will not work on CM 11 and CM12 that ships with OPO unless you explicitly uncheck Update CM recovery under Developer options.

@Firelord The OPO's bootloader does recovery verification before entering fastboot mode?

@MatthewRead This pdf on Linux Foundation says about an unlocked device in respect of bootloader states -- Unlocked devices do not verify boot or recovery images.  Your comment held completely true for a locked bootloader of OPO. However, the answer involves fastboot flashing which assumes device is unlocked, and hence, my comment is still true for OPO. // Thanks for explicitly mentioning it. I learned some other good things from the pdf. :)

If he reboots into the newly flashed recovery, when is the stock rom supposed to reset the recovery? does it check the recovery before the reboot? How is flashing with fastboot more permanent than flashing with a 3rd party app?

I have the same issue but there is no "update cm recovery" option in "debug options"

Its because stock roms come with their own recovery. That will always replace custom recovery. To prevent this, whenever you download a rom, open its tar or zip or whatever format is there with winrar and delete the recovery image inside it (if its zip file, then open it and go to system/etc and delete "recovery.img" and if its tar file, again open it and delete the recovery.img or any file with similar name. Keyword here is recovery).
The next step is to edit out the scripts so it doesnt give error on missing recovery image. For zip file, the android flash script is inside META-INF/com/google/android/ and you need to edit the file "updater-script". Now various rom builders use various methods to flash recovery using script, so there isnt any specific way really, but look for any line that resembles something that means "copy/flash recovery.img" and delete that line.
For ex in one of the roms I downloaded, recovery was flashed using this command->
package_extract_file("system/etc/recovery.img", "/dev/block/platform/msm_sdcc.1/by-name/recovery")

You can clearly see that its extracting recovery image to some location, so delete this line. Then save file inside zip and flash it. Your recovery wont be changed.
For roms in tar or any other format, it should normally be some batch file which carries flash instructions. Again, open it and remove line corresponding to flash recovery.
This may sound haphazard, but try it first before deciding difficulty, its relatively easy ;) All you need to do is just edit the script that controls flashing.
One more thing, if you have lost your recovery, you can flash it using fastboot.
First, follow guide here to set up adb and fastboot.
Next, connect phone to pc with usb debugging enabled. Then open command prompt and enter these commands->
fastboot erase recovery
fastboot flash recovery PathToRecoveryFileAndItsName.img

For ex if my recovery file lies in D:/Recovery folder, then I would use->
fastboot flash recovery D:/Recovery/TWRPblabla.img

Good luck and hope this helps.
Here's more detail on how to deal with this in case of stock roms:
HOW TO PREVENT STOCK ROM FROM OVERWRITING RECOVERY:
In stock roms, the general procedure used is to put in a recovery image file. For ex if you open a stock rom archive in winrar, you will see some image file with name and extension similar to "recovery.img". This is stock recovery, you delete this file. Now similarly, we need to edit flash scripts so it doesnt go berserk on not finding recovery image. It actually depends how stock rom is flashed (or rather what method it uses). Some need individual parts flashing (system is flashed separately and recovery is flashed separately and boot or kernel separately, like in samsungs). In this case you can simply skip step for flashing recovery and no script editing is needed. But if its using some script (like nexus stock roms have a batch file script), you will have to edit that script. Its usually batchfile. Open the file in notepad and remove the lines that lead to recovery flashing. To help you identify these lines, look for words like recovery or recovery.img since it actually depends on how stock rom flash script is made. For ex in my nexus 4. the stock rom I downloaded flashed recovery using fastboot as->
fastboot erase recovery
fastboot flash recovery recovery.img

Here, as you can see its actually first erasing my recovery, we dont want that either. So I remove these two lines. First, to prevent it from erasing my already inserted recovery, second to prevent it from flashing and over-riding my recovery with a new one. So you must also look out for such lines that may overwrite the recovery. As I said, you can simply search for keyword recovery in script if you are having difficulty in finding such line.

Now, when I try to reboot into Recovery, it reboots into fastboot and all it says it " [D800] Fastboot mode started" on a black screen.

Are you sure your button combination is right? Because the method I told simply causes no recovery flashing. Nothing changes for existing recovery. On side note, if you have set up fastboot and adb in PC, you can force phone into recovery using this method-> go to fastboot mode (as you are now). Connect to PC. Open cmd or terminal whatever os you have set up adb and fastboot in. Enter the command "fastboot reboot recovery" without quotes. This should get you into recovery.

@Hackaholic I think that is behavior of a locked bootloader...You stopped it from re-flashing the stock recovery, but it still won't boot into a a recovery that doesn't have the correct digital signature...

Also, Jaskaranbir, you might mention at the start of your answer that your trick requires root.

Worked like charm in Nexus 7 2012. Previously even after flashing, default recovery with android icon was appearing. fastboot erase recovery worked!

There is an easy step... I used it to boot in to rec on my N910g (note4)
1 .flash the custom rec using odin (it was TWRP 2.8.7.0 for me)

As soon as the device restarts after flashing press and hold menue button and volume up button (this should be so quick, u have to press buttons as quick as the screen get Black screen)
repeat the steps it will work.(remember to flash the rec again and again when u repeat steps

:D

LG devices has a different way of flashing recovery and another key combination (some even unable to enter recovery via key combo). Nice try anyway.

That quick pressing worked ... I was breaking my head trying to figure out how since the past 4 hours... Thanks You!

Hello i just had a personal experience with my Asus zenfone selfie Z00T Stock recovery kept replacing TWRP. (Boot loader already unlocked)
This is how i got around it  i downloaded the latest TWRP for my device and placed directly in  minimal adb and fastboot app folder then i renamed it to recovery .
then i put my device in fastboot mode using the buttons on the phone and
After i ran minimal adb and fastboot app as admin then i typed fastboot flash recovery recovery.img
once done i then i typed fastboot boot recovery.img. and my phone booted to twrp recovery then i  selected reboot recovery directly on my phone and to finish reboot system (still in twrp) that's it.
(OEM commands to boot from fastboot to recovery do not work on some devices )
it only worked for me eventually because i downloaded the latest TWRP from the official TWRP website.
The idea is to flash the custom recovery and then booting from the custom recovery.img that you just used to flash (the one still on the pc)  using minimal adb and fastboot app.
IT may not work on all devices as the commands may change from one device to another but the idea stays the same.
(example for nexus fastboot -c "lge.kcal=0|0|0|x" boot recovery.img)
I hope this will help some people out.


text:
Unable to update Google App on Nexus 6P running Android N Developer Preview
A few weeks ago I installed Google App version 5.14.15.NYC.21.arm64 on my Nexus 6P running Android N Developer Preview 3. Now this app is not getting any updates from the Play Store and not letting me install any of its update in the usual method.
If I try, it gives me an error saying:
"The package conflicts with an existing package by the same name".
I tried through adb using:
adb shell pm uninstall -k com.google.android.googlequicksearchbox

However, I got the following error:
Failure [DELETE_FAILED_INTERNAL_ERROR].

The newest version of this app is version 6.0.17.21. Also there is no option coming up on the phone to uninstall this update. What should I do?

Are you rooted?

Nope, I didn't root my phone, just opted in for the beta program of the app...

This is normal behaviour. My Nexus 6P also runs the developer preview and has this version: 5.14.15.NYC.21.arm64.
The reason it won't update is because the actual version code is higher then the one on Google Play. That's because it is targeted to Android N.
I wouldn't recommend you to install the version on Google Play, because it probably will keep crashing because of no Android N support.

In the following screenshot you can see the app has a very high Version Code and the Target SDK is set to 10000. (=Developer preview)

(Click image for larger version)


text:
What is the difference between the two Marshmallow factory images for Nexus 5 (MRA58K and MRA58N)?
On the official site from Google that contains factory images of Android Marshmallow, there are two options for the Nexus 5.  One is MRA58K and the other MRA58N.  What is the difference between these two?  Which one do I want?

The MRA58K is initial Marshmallow release. MRA58N is security update.

Google has listed one of the most severe critical security
  vulnerabilities that can allow remote code execution on an affected
  device through various methods such as email, web browsing, and MMS
  when processing media files.

Source with additional details.


text:
How to see which applications are saved on phone
Recently I get a lot of warnings that the internal memory is full, which also led to full SMS memory.
What I did was to delete some messages, which seemed to work for a while.
Yesterday however, I installed some updates and those warnings messages came up again.
Is there a way to find out which application are installed on my phone?
A rather indirect way is to remove the SD card and see which applications are on.
Is there a way to figure this out in a direct way?

In the settings option you have Application Manager. In Application Manager if you swipe to the left you will get apps installed on the sd card. It should look something like this:

Thank you very much for your answer! I know how to find which apps are installed in the SD card, however I want to see which applications are installed on the phone.

Well, if the app is not on the SD Card it's on the phone.

But if there are a lot of applications installed both on the phone and the SD, you have to make a list of the ones on the card, which takes times and it's not so direct.

Then I suggest you use another app to manage those. Here's one that seems to be what you need: AppMgr III (App 2 SD)

No problem. I'm glad I could help.


text:
Why can't I link2sd the Play Store and Maps apps?
Yesterday I rooted my phone successfully (Samsung GT-S5570-Android 2.2.1), I created a second ext2 partition on my 8 GB SD card and installed the Link2SD app.
The reason for doing this, was due the continuous and annoying messages about full internal storage capacity.
I was able to move and uninstall some apps, but when it comes to Maps, Play Store and Samsumg Apps I keep getting a failure message similar to the following

FAILURE
PKG:/DATA/APP/COM.ANDROID.VENDING-2.APK FAILURE
  [INSTALL_FAILED_INVALID_INSTALL_LOCATION]

What does this message mean and why does this error occur?
How can I successfully move those apps in my SD card?

The author of an app can set a flag in its manifest (the package description) to say whether it can be moved to external storage or not. If you try to install a package to external storage, and its manifest says it cannot be installed there, you get the error code you describe.
Google's developer documentation provides a list of kinds of apps which should set the flag to prevent themselves being installed to external storage, because of undesirable side-effects if the external storage is removed.

Thank you very much for your answer! This means that I cannot in anyway move those two apps in the SD card? The thing is that I have low internal memory, and although I removed every app, unistalled YouTube, Mail, Yahoo Finance, deleted a lot of SMS' I only have ~5 MB free. Link2SD only lets me to unistall those two apps, but I really need them...

No, you cannot move them.  That's the point - it would break your phone to do so.  You would probably be able to free up a fair amount of space by deleting the app caches and system caches though.

@Logos: Thank you very much for your comment! How to do that? What I was able to do was to create a link of those apps in my SD card, which freed up some space.

For individual apps, it would be "Settings->Applications->->Clear cache".  Unfortunately you have to do them one by one :P
Clearing systems caches is done by the OS on a schedule.
There are apps for cleaning out caches to automate this for you - often very helpful for people whom space is an issue.

This answer is not correct. Link2SD an a rooted phone with additional parition has nothing to do with the manifest's option if an app can be moved to SD card. The reason for the problems described in the question are unclear to me, though.

The previous answer has a lot of incorrect information, so I feel compelled to answer this old question.
First of all, Link2SD works by creating a soft-link which is completely different from the built-in Android feature "move to SD". The link that Link2SD create is transparent to most of the Android OS itself, and the manifest option that controls if an app can be moved to SD bears no influence on its ability to be linked.
Now coming to the error the OP received, my best guess is that OP used the "Move to SD card" option in the Link2SD app instead of the "Create link" option. As per my experience, I have linked Play Store and Google Play Services successfully and didn't come across this error, so it is certainly possible to link them, though I don't recommend using that option on critical apps/services such as Google Play Services, unless it is absolutely necessary.
Regarding the OP's question on clearing the cache, Link2SD has an option to do this for all apps, and there are also a number of dedicated apps that can do this.

The following process worked for me:

Select the option "all" on the top left in link2sd and uninstall that app from the phone.
Install the app again.

You should now be able to move it.


text:
Limited space and Full SMS memory
I am getting a message that the internal memory space is full. I checked that I have 15MB intenral memory left and 50MB on my SD card.
I also get a message that the SMS memory is full. I deleted some messages but this message doesn't seem to leave!
All these happened when I safely removed the SD card.
What can I do to remove these messages, which I don't believe they are for real. Something nasty must be going on here. Not to mention that before I removed the card the internal memory was about 30MB.
I tried to erese the cache by using memory wipe aplication but nothing really happened.
Any ideas?
EDIT
I tried to move some applications to the SD card through the Application Manager but the option move to SD cannot be pushed, although there is some space in the sd card(~50MB). I tried to move on application with 1MB size in my ~50MB free space SD card...
Does this imply a problem?

As you've correctly tagged your question, did you check the insufficient-memory tag-wiki? Have you followed any of its first-aid hints? As to the limits: the error mostly gets triggered when space drops below 25 MB. And the SDCard does not matter here -- only device-internal storage ("phone memory"). So please check with the mentioned wiki, then update your question with details where you got stuck (if so) -- or answer your question when solved. Thanks!

@Izzy: Thank you very much for your comment and advice! I have already done what's described in your link, but there is something that it's really weird... I'll edit my question in order to provide more information.

I see, thanks for the update. To the problem you've run into, you will want to read the app2sd tag wiki -- not all apps are movable (e.g. not when they provide a service or widgets).

@Izzy: That's the weird part...They are not offering a widget or providing a service...Some of them are LHSee,BarTender,Army Fitness,Funny Facts Free,Fact File,Tourist Language...

That might be. It still leaves the part that the dev must explicitly mark it to be movable (rather, he must define the target storage). Quting the API doc: To allow the system to install your application on the external storage, modify your manifest file to include the android:installLocation attribute in the  element, with a value of either "preferExternal" or "auto". You could try asking the devs to do so (or why not).

@Izzy: This is nice information! How to edit <manifest>? Shall I connect my phone to a PC and try to change(and locate the file itslef) its attribution through any editor?

No, not you -- the dev must do that. That's nothing the end user should touch. The dev might have some good reason for this decision. I strongly recommend to contact him first. Plus, modifying .apk files that way is a little beyond the scope of our site (the Manifest is compiled, so you would need to reverse-engineer and rebuild). // PS: the comments already grew a little long (this is not a forum ;) Maybe I sum up from above comments to make an answer, and you pick issues still left open to make new questions out of them? One question per post is our custom here :)


text:
Samsung Galaxy S4, weird model, can I custom ROM?
I just got my S4, on a Canadian network. While everyone seems to have I9500, I have the M919V. It's next to impossible to find any useful information on Google regarding this model. Can I use the same custom ROMs as the I9500 users?
There is a way! Read my answer below!

I have found out more about this variant! Hopefully this helps people in my situation.
This device is on a Canadian network called Wind Mobile. The model M919V can use the same roms as the T-Mobile variant, which is M919.
I have flashed CyanogenMod nightlies on it, it runs awesome, and even for a nightly it is very battery efficient and stable.
Strongly recommend it to anyone.
I had to use ouhds instead of ClockWorkRecovery (they re the same things though). It still goes through Odin, but you will have to follow the instruction online. There are a few sets of instructions that can be found through Google.
These are the instructions I followed:
http://droidviews.com/2013/root-and-install-cwm-recovery-on-sprint-galaxy-s4-sph-l720-and-t-mobile-galaxy-s4-sgh-m919/
*I am not responsible for any damage you cause to your device, just sharing my thoughts/ experience.

No, since your model number differs - meaning you have a carrier bound device - ROMs meant for standard i9500 devices won't be suited to your device.


text:
Unroot an SLCD Droid Incredible
I remember when I first rooted my SLCD Droid Incredible I had to use a special version of ClockworkMod because the original version would "Screen Brick" SLCD Incredibles.
If I were to unroot, are there any precautions I should take? Specifically following these or similar instructions.
Although I'm sure it doesn't make a difference, I used Unrevoked3 to root my phone.

If you need to do s-on, flash that before flashing the RUU. Other than that, just keep in mind that the RUU will wipe your phone.

Does RUU also replace ClockworkMod with the official recovery? My goal is to go back to a completely normal phone.

Yes it does. The phone will be completely stock.

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/2.5/


text:
Gmail app only shows "Archive" button for one account
I have two gmail accounts connected on my HTC Incredible.  When looking at account 1, I can select some emails and three buttons appear: Archive, Delete, and Labels.  But when using account 2 and an email is selected, only Delete and Label buttons appear.  How can I get the "Archive" button to appear in the second account?

Are these both the same type of GMail account? Is one normal GMail, and the other Google Apps GMail maybe? Also what version of Android are you running? If you're on 2.2 have you downloaded the updated Gmail from the Market to see if that fixes the issue?

This is weird! I have a 'normal' and Google Apps account on mine and can see all the options fine. +1 check you have updated Gmail from the Market, various other bugs fixed so maybe this too.

These are both normal Gmail accounts.  Sometimes it works and sometimes it doesn't.

Upgrade to the new Gmail released 3 days ago and see if it still happens.

Everything seems to be working fine now.  Even before the upgrade, it worked intermittently.  But since the upgrade, it seems to be solid.  Running version 2.3.2.


text:
Is it possible to update HTC desire to 2.2 with unrooted?
I bought a new HTC Desire (will arrive in a few days).
The phone is not branded (or unbranded) will arrive with version 2.1, and I want to update to 2.2.
After a lot of reading I realized I need to create a goldcard. So I bought a 2GB microSD card and I will create the goldcard when the phone arrives.
I also read about rooting the phone, which means (from what I understood) to flash the phone's ROM.
What I want to know is do I have to root the phone in order to update to 2.2 ???
Thanks a lot !!!

Related: http://android.stackexchange.com/questions/2696/when-will-my-phone-get-android-2-2-froyo and http://android.stackexchange.com/questions/3911/upgrade-rooted-htc-desire-with-unrevoked3-clockworkmod-to-froyo-2-2

Thanks :-)
but none of these related posts answers my question...

You should get an OTA update to 2.2 without rooting. If you want to root to install a custom ROM then you don't need a goldcard - use unrevoked instead.


text:
VM Android on host Ubuntu: no sound
I'm using Android in a virtual machine while the host is Ubuntu 16.10.
I've followed this tutorial here: http://www.linux.org/threads/android-4-4-kitkat-in-virtualbox.7175/
and everything is working great. Except I can't get any sound.
My config:

VirtualBox Version 5.1.6_Ubuntu r110634
Guest: android-x86-4.4-RC2 (KitKat)
Host: Ubuntu 16.10 64bits

Settings for the Virtual machine:

settings > audio > Host: ALSA Audio Driver
settings > audio > Audio Controller: SoundBlaster 16.

I've tried to use as settings in "Host":  PulseAudio, and in "Audio controller" Intel HD Audio or ICH AC97, but for the same result.

I found the solution by upgrading my config:

VirtualBox Version 5.1.14 r112924 (Qt5.6.1)
Android 6.0.1

with settings > audio:

ALSA Audio driver
ICH AC97


text:
Lookout gives malware scare when initializing phone or after factory reset
When initializing my new (not pre-owned) Samsung Galaxy S7 for the first time or for subsequent times after factory resets, the notification shade shows regarding the Lookout app: "Scan complete. 323 apps scanned - all safe. Get advanced protection today!" Tapping that notification makes it attempt to open a window, presumably for Lookout, but it closes immediately and then a grey bubble notification comes up stating: "Malware no longer exists on your phone." Regardless of whether this notification is tapped, Lookout triggers more notifications when other apps finish loading or have updates installed. For me, the next one is, "Scan finished: Google Play Store is safe. Click to activate total protection, or to change settings." Tapping these opens Lookout properly with a Lookout account login prompt. Does this mean malware is/was on my phone or was it merely a poor design choice of words for first-time initialization?

Probably the Latter. Its branches, so I highly doubt it already had malware.

I tried this with 2 new Android LG phones that have Lookout preloaded and got the same behavior. It's not specific to the Samsung Galaxy S7. It's Lookout's poor design choice of words for first-time initialization.


text:
What is this icon in my status bar that looks like a finger pointing at 3 horizontal lines?
Can anyone identify this icon?

here again with context:

I can't find anything online and no one at Verizon or Kyocera can identify it either. I need help figuring out what this icon is and what it means.
I have contacted the Verizon Tech's, Kyocera and personally searched online, with no positive ID. Deleted all apps, factory reset, and even safe mode start up, and the icon remains at the top of the screen in the status bar. The only time the icon is not at the top of the screen is when you click on the drop down for the status bar icons. This phone is the newest Kyocera Duraforce Pro-2. Glove mode nor the underwater camera mode have any affect on the icon when switching these two selections on or off.

I mailed Kyocera linking this question and they replied very quickly.
It is a Verizon security app and Kyocera can't do a thing about it. Mail extract :

Allow us to inform you that this Icon is for a Verizon security application running on the phone, please be aware that this will not affecting its functionality. At the moment there is no way to remove the Icon.

Screenshot of mail below. You would need to chase Verizon for more details as to what it does but being a device tied with them, I guess you have to live with it.

(Click to enlarge)
You can refer to the Tech Support Case Number: 00689640
 and follow up with Kyocera (Phone.Help@kyocera.com)
 if you wish (The person who sent the email is Karla H, Technical Support Specialist).

Go into accessibility and turn off the "security and privacy" app and the icon will go away.

I went into accessibility and turned off "Digital Secure" and the icon went away.

Go to settings, apps and notifications, and then down to digital secure or safety and security and click on it. Then turn off all notifications and force stop it. The symbol should go away.

But have you told us What It Is, and the ramifications of shutting it off? It may be under Security for a reason. Just turning off a fire alarm doesn't shield you from fire.


text:
How to install python on my Android GT-P7510?
My Samsung tablet 10.1 GT-P7510 is running Android 4.0.4.
I have root access to the device.
What is the best way to install python on my device.
I tried QPython - Python for Android however the pip console does not show any text as I type into it.

What I did, was to install the Termux app (which is the most close to a Linux terminal). Then, I installed the Python interpreter via apt install python from inside Termux.

@DeathMaskSalesman Thx for the termux app however it is available only for android >= 5.0. Thus I cannot use it

Pardon, my mistake.

You can try SL4A.
Which can help you to run python on Android. https://github.com/kuri65536/sl4a/releases/download/6.1.1/sl4a-r6.1.1-arm-debug.apk

I installed the hackers keyboard and and now I can type into the pip console which is visible.
Silly me.

Your answer lacks depth. Kindly expound on how you came to diagnose the problem ,solutions and citations.

I wish I could explain more.
I was having trouble typing with the samsung inbuilt keyboard on shell terminal therefore started looking for alternatives.
Stumbled on Hackers Keyboard on Google play. Installed it for my ease and switched to it as the default keyboard and used it for some time on shell terminal.
Went back to QPython pip console on my device and presto there was what I was typing on the screen.
Came back and answered my own question writing 'silly me'


text:
ADB restore isn't working
I have a new problem with the adb restore command.
I created an adb backup -apk -shared -all and it looked like it worked and I think it did because the size is 6 GB. Well I made this from Android L Preview because I wanted to downgrade because of the bugs and when I try to restore it on Android KitKat 4.4.4 it is not working, the adb shell logcat -s BackupManagerService returned this when I tried to make a full restore:
I/BackupManagerService(  758): Beginning full restore...
D/BackupManagerService(  758): Starting restore confirmation UI, token=1224340204
D/BackupManagerService(  758): Waiting for full restore completion...
D/BackupManagerService(  758): acknowledgeFullBackupOrRestore : token=1224340204 allow=true
D/BackupManagerService(  758): Sending conf message with verb 10
I/BackupManagerService(  758): --- Performing full-dataset restore ---
I/BackupManagerService(  758): Initiating bind of OBB service on com.android.server.BackupManagerService$FullBackupObbConnection@437913f8
I/BackupManagerService(  758): OBB service connection com.android.internal.backup.IObbBackupService$Stub$Proxy@43ad7c48 connected on com.android.server.BackupManagerService$FullBackupObbConnection@437913f8
W/BackupManagerService(  758): Wrong header version: 3
W/BackupManagerService(  758): Invalid restore data; aborting.
I/BackupManagerService(  758): Full restore processing complete.
D/BackupManagerService(  758): Full restore pass complete.

Is there a fix for this? Or another way to restore this information? The backup is encrypted but there is not an error of a wrong password and I am pretty sure it's the correct password.

You can't restore a backup made from a higher Android version onto a lower Android version. This can be seen from the line W/BackupManagerService(  758): Wrong header version: 3. ADB backups should always be restored onto the same version (or higher, not sure about this).

I thought it could be that but I am a little new on this so I needed to check that with some other people, thanks for the answer but tell me something, is there a way to make a Backup of a newer Android version and restore it on an older one? And to understand more, what's the header version? How could I understand the number next to it? Thanks!


text:
debugging frequent crashes/reboot with nexus 6p
Like many of you I eagerly awaited the release of the nexus 6p.. unfortunately it has been crashing a lot lately (a problem many seem to have). The first thing I tried was running a factory reset, which solved the problem temporarily.. but a couple of weeks later the problem returned (i noticed it returned after a certain mass update i made to several apps).. so i'm quite certain it's a software problem rather than a hardware defect.
I'm not an android developer.. but i did a bit research on logcat etc.. and I made this command
logcat -L *:E
the output is pasted in this github gist. (here is the verbose version)
Any advice? I've also installed aLogcat but i'm not quite sure how to use that.. i've seen some posts talking about instructing it to dump the output on an SDCard.. but i don't see that it has a command line interface..
Update 1
i got to install android 6.0.1.. everything worked perfect for several days.. however as soon as i started taking pictures.. the old crashes came back.. which reminded me that the exact same thing happened when i first got the phone.. so i narrowed down the problem to the camera app.
Update 2
I've asked the same question on the google nexus forum. Some helpful tips bit still no cigar.. i'll post the answer here if i actually solve it.

after going through the logs we found this part:
fs_mgr: Running /system/bin/e2fsck on /dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata
<14>[    6.585352] e2fsck: e2fsck 1.42.9 (28-Dec-2013)
<14>[    6.585352]
<14>[    6.585390] e2fsck: ext2fs_open2: Bad magic number in super-block
<14>[    6.585390]
<14>[    6.585402] e2fsck: /system/bin/e2fsck: Superblock invalid, trying backup blocks...
<14>[    6.585402]
<14>[    6.585414] e2fsck: /system/bin/e2fsck: Bad magic number in super-block while trying to open /dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata
<14>[    6.585414]
<14>[    6.585424] e2fsck:
<14>[    6.585424]
<14>[    6.585434] e2fsck: The superblock could not be read or does not describe a correct ext2
<14>[    6.585434]
<14>[    6.585445] e2fsck: filesystem.  If the device is valid and it really contains an ext2
<14>[    6.585445]
<14>[    6.585455] e2fsck: filesystem (and not swap or ufs or something else), then the superblock
<14>[    6.585455]
<14>[    6.585466] e2fsck: is corrupt, and you might try running e2fsck with an alternate superblock:
<14>[    6.585466]
<14>[    6.585476] e2fsck:     e2fsck -b 8193 <device>
<14>[    6.585476]
<14>[    6.585486] e2fsck:
<14>[    6.585486]
<14>[    6.585501] e2fsck: e2fsck terminated by exit(8)
<14>[    6.585501]

which shows that the file system is corrupt.. i guess that's it


text:
TalkBack Language Accent
My father is currently using a OnePlus Nord CE 2 5G; he is visually handicapped and has enabled TalkBack on his phone to assist his daily use.
Both is System language and TalkBack language is set to Simplified Chinese, but after several minutes of use, the voice will speak in Chinese but with an American accent? It's quite hard to understand what the voice is saying due to the accent.


text:
How to view Facebook 360 degree photos using a simple non-electronic VR glass?
I would like to view Facebook 360 degree photos on an Android mobile using a simple non-electronic VR glass. Is it possible?
Edit: A "simple non-electronic VR glass" means a VR glass which doesn't integrate with mobile through bluetooth. So, the mobile doesn't automatically know that I am viewing it through a VR glass.

What is in opinion a "simple non-electronic VR glass"?

@Robert Thank you for your time. It means a VR glass which doesn't integrate with mobile through bluetooth. So, the mobile doesn't automatically know that I am viewing it through a VR glass.

If the VR glass does not communicate with the phone how it is effectively just like a connected monitor or TV. How should the phone then know anything about the orientation of the VR glass to derive your head position and view angle for showing the correct part of the 360 degree image?


text:
"App Updates is running" warning happening very often
This week I upgraded to Android 7.0 and since then, everytime I turn on mobile data and enter/exit an app, this notification appears
.

App Updates is running
  Preparing to install apps...

I unchecked all types of notification in Google Play Store, but nothing happens. Is someone experiencing this as well and maybe know a fix? The device it's LG G5.

Open the LG Update Center (on the V20 it's under the Common tab in "About Phone") and set notification interval to Never.  If that doesn't do it, reopen Update Center and install every app listed.  Then uninstall the ones you don't want.
I'm guessing the update center initially tries to install these apps and isn't satisfied until it's done.


text:
Find a stolen Samsung Galaxy Tab E
I gotten involved in an incident that i got my tab stolen. I have not used the device for so long and i have some personal details on the device.
The problem I have now in trying to recover this devices is that I am not sure I have enabled GPS tracking on the device.
The only lead I have on this device now is that my G-mail account is logged unto it and also my Google play store is logged unto it. Please is it still possible for either locate this device or remotely wipe it? Thanks in anticipation.

Did you had mobile data enabled at the moment of theft?

By logging into your Google Account, you can select "GET STARTED" under "Find your phone".

As long as the missing device is still logged into your Google account, it should show on the list on the next screen where you can tap on it for additional steps. From there, you can attempt to locate, lock or wipe the device.


text:
Factory reset not working
S7 mobile is continuously coming up with a warning on a blue screen ,OS and ODIN are written in capitals then a screen shows with download do not turn target off and just freezes on that page

Hold power until it reboots.


text:
Android phone has taken 2 system updates today, 2 more this month
I'm using a Samsung Galaxy S32 FE 5G, which is currently running Android 14.
The phone has taken system updates twice today, and at least a couple of more times this month.
It looks like something's going on here. How would I figure out what? Is there somewhere on my phone or online where I can go to look up what's the deal with all these constant updates this month?

Weirdly, when I tried picking the samsung-galaxy-s21 tag from the completions (literally clicking on it from the list, not typing it in manually), I'd get an error saying I don't have enough rep to create that tag. If someone feels this should have that tag, and you have more than 300 rep, feel free to add it.

I used the manufacturer tag as given all of Samsung's models, it would become unmanageable otherwise. Have you seen: https://security.samsungmobile.com/securityUpdate.smsb

I did see this Android patch page, which lists patches on the 1'st and the 5th. That jibes with my memory of roughly when I took the previous 2 patches this month, but doesn't explain either of the two I got today.

If I'm reading my settings->system->software information right, it appears I have the May 1'st patch, but not the May 5th one.


text:
How to install Termux on old Android 5 devices ? (using the official archive)
Context :
Hello, I have a GPD XD console under Android 5 with a complex launcher. I would like to install the very good Pegasus frontend (install and play, no tweaks), and for that they require to run a script through Termux (because it seems some commands like /bin/bash or cURL are included in Termux and are absent in other terminal apps).
For Android 5, there is an archive of the application available here (according to the official github).
Problem:
Unfortunately, I don't understand how to install these files on the console (there are too many of them). Indeed, I tried to install only the termux-v0.79-offline-bootstraps.apk file but I get an error message (maybe a signature error but I don't remember well).
Question:
Could you explain me step by step how to install these files please (and which ones to download) ? Thank you very much for your kind help!

Also be aware that Pegasus site states If you already have termux make sure it is version 117. we've found issues on other versions. and Termux version 117 requires Android 7.0 and up.

You should better search for a matching customROM for your device that bases on Android 7+.

Select any recent build. Download the APK suitable for your device (for example, https://github.com/termux/termux-app/suites/12269415843/artifacts/649696933). Install it.

i have been using the old version ever since support for it was dropped. This is how i do it.
After installing termux-v0.79-offline-bootstraps.apk , you have to change the text in sources.list located /data/data/com.termux/files/usr/etc/apt (use vi sources.list ) to deb https://packages.termux.dev/termux-main-21 stable main . Use
apt remove science-repo
apt remove game-repo

Thats all, then to install packages just type;
pkg install packageName.
That's the easy way
Manually
You also have to install the dependecies manually from this same location
Visit
https://packages.termux.org/termux-main-21/dists/stable/main/binary-arm/
And just download the .deb file
Then navigate to your downloads folder and
type
dpkg -i package-name

Support for Android 5 and 6 is back. See the official page.
You can use the archive link to install any missing old packages. Press show all, then next to termux-repositories-legacy-24.12.2019.tar, press (View Contents). Now you can find and download the packages you need without downloading the whole archive.


text:
Wi-Fi hotspot timeout setting gone in Nougat 7.0 , 7.1, but timeout has not
Just got a new Android 7.0 Nougat phone , and only major gripe so far is
disappearance of the Wi-Fi-hotspot timeout setting .
This is probably the same issue as
 :
https://android.stackexchange.com/questions/168549/hotspot-timeout-setting-gone-in-7-1-nougat
, but it did start with 7.0, not 7.1 , and since no-one has answered that
question, I thought I might as well try.
The Hotspot seems to time out after 1-2 mins of inactivity, I think
corresponding to the device going to sleep, requiring me to restart
ISC dhclient & wpa_supplicant manually to re-connect.
The Hotspot goes to sleap due to inactivity much sooner than the DHCP lease
it has given out expires.
I have WiFi Settings → Advanced 'On during sleep ( ALWAYS )' enabled.
But I do not need to enable WiFi to enable the WiFi-Hotspot (IP Tethering over WiFi, acting as an Access Point for my laptop), so
I do not see many WiFi settings, and do not know if any WiFi setting
would take effect if WiFi is disabled. I thought one enables WiFi only
to connect as terminal of another Access Point, not when providing an AP?
It does work, and used to work reliably & long-term in Android 4.2.2 with
appropriate timeout settings,  but now with no timeout setting it is highly unreliable and I have to keep waking up the device to use the internet via
Hotspot - or disable sleep mode entirely and drain the battery very quickly.
Another reason to try and root the phone, which is also made much harder by 7.0.
It could be something to do with :
/etc/hostapd/hostapd_default.conf :

    # Station inactivity limit
    #
    # If a station does not send anything in ap_max_inactivity seconds, an
    # empty data frame is sent to it in order to verify whether it is
    # still in range. If this frame is not ACKed, the station will be
    # disassociated and then deauthenticated. This feature is used to
    # clear station table of old entries when the STAs move out of the
    # range.
    #
    # The station can associate again with the AP if it is still in range;
    # this inactivity poll is just used as a nicer way of verifying
    # inactivity; i.e., client will not report broken connection because
    # disassociation frame is not sent immediately without first polling
    # the STA with a data frame.
    # default: 300 (i.e., 5 minutes)
    #ap_max_inactivity=300

So I need to root the phone to change this default value.
Has anyone found any workarounds ?

Aha! It could be something to do with this file :

Yes, it is because of inactivity timeouts. But without rooting the device I cannot determine for sure if it is that specific hostapd ap_max_inactivity=300 default, but I believe it is. I'm not sure if it is
the case that my Linux 4.10 x86_64 iwlwifi driver (recently restructured) is not acting appropriately when it receives the empty data frame.
But, I think it is really not in for Android to decide to prevent users from setting this parameter anymore, when it used to let them in previous versions.
The fix is, of course, to start a 'ping monitor daemon', like this shell script on the AP client host (Linux in my case):
#!/usr/bin/bash
declare -i wpm_should_exit=0;
function wpm_exit()
{ wpm_should_exit=1;
}
function wlan_ping_monitor()
{ trap 'wpm_exit' HUP INT QUIT TERM;
  local the_IF="$1";
  declare -i ok=1 i=0;
  def_router=$(ip route show default  2>/dev/null |\
  sed -rn \
      '/^default[[:space:]]via/{s/^.*via[[:space:]]+'\
      '//;s/[[:space:]].*$//;p}'); # join above lines!
  if [ x == x"$def_router" ]; then
     echo "$FUNCNAME: default router is not set. Nothing to do." >&2;
     return 1;
  fi
  kernel_org=$(host www.kernel.org | sed -rn \
     '/has[[:space:]]+address/{s/^.*address' \
     '[[:space:]]'//;p}'); # join above lines!
  if [ x = x"$kernel_org" ]; then
     echo "$FUNCNAME: Unable to resolve kernel.org -"\
          " must be able to ping an internet host." >&2;
     return 1;
  fi
  logger -p user.info "$FUNCNAME : started.";
  sleep 60;
  while ((0 == wpm_should_exit)); do
      ((ok=0));
        for (( i=0; i < 3 ; i+=1 )); do
        if /usr/bin/ping -n -q -c 2 -W 8 $kernel_org >/dev/null 2>&1 || \
           /usr/bin/ping -n -q -c 2 -W 4 $def_router >/dev/null 2>&1; \
        then ((ok=1)); break 1 ; fi
        logger -p daemon.error \
             "$FUNCNAME: ping $def_router or $kernel_org failed.";
        sleep 1;
     done
     if (( ok == 0 )); then
        logger -p daemon.error \
            "$FUNCNAME"': interface '"$the_IF"\
            ' is down. Could not ping '$def_router' or '$kernel_org\
            '. Restarting Network...' ;
        /etc/init.d/network restart || break;
        ((ok=1));
        sleep 60;
    else
        sleep 8;
    fi
 done
 logger -p daemon.error "$FUNCNAME: restarting network failed.";
 rm -vf $PID_FILE;
}
declare -i status=0;
case "$0" in
  (\*${BASH_SOURCE})
      wlan_ping_monitor ;
      status=$?;
  ;;
esac
((status==0));

For completeness, here is daemon.sh, with which the above script
is invoked by '/etc/init.d/network start':
PID_FILE=/run/wlan_ping_monitor.pid \
   daemon /etc/init.d/wlan_ping_monitor.sh

Missing is only the 'setpgid' and 'noctty' bash built-ins, which does:
setpgid( pid = getpid(), pid );

and
ioctl(0, TIOCSCTTY , 0 );

But, they are not strictly necessary to test - just remove / comment out -
these built-ins are easy to write & available on request. They must be
built-ins, not programs, because they must effect the current process.
One weird thing about the ping script is that it must send a packet
out to the WAN internet to reset the inactivity timer - it is not
enough to simply ping the phone , which can fail to respond to ICMP
packets within 4 seconds while still passing through pings to the WAN.
#!/usr/bin/bash
. /usr/lib64/bash-${BASH_VERSION}_loadables/load.sh
if [ ! -v N_DAEMONS ]; then
   declare -xi N_DAEMONS=0;
fi
if [ ! -v TMPDIR ]; then
   declare -x TMPDIR=/tmp;
fi
if [ ! -v USER ]; then
   declare -x USER=$(whoami);
fi
declare -i daemon_status=0;
function daemon()
{   export \
      PID_FILE=${PID_FILE:-${TMPDIR}/${USER}- daemon-${N_DAEMONS}.pid};
    declare -xi N_DAEMONS=0;
    if [[ "$PID_FILE" =~ ^(.*)[\.][pP][iI][dD]$ ]]; then
       export PID_FILE="${BASH_REMATCH[1]}";
    fi
    while [ -f "$PID_FILE".pid ]; do
       ((N_DAEMONS+=1));
       export PID_FILE="${PID_FILE%-\*}-${N_DAEMONS}";
    done
    export PID_FILE="${PID_FILE}.pid" LOG_FILE="${PID_FILE}.log";
    echo "daemon: PID_FILE: $PID_FILE LOG_FILE: $LOG_FILE" >&2;
    declare -i checkjobs_enabled=0;
    if shopt -q checkjobs; then
       ((checkjobs_enabled=1));
       shopt -u checkjobs;
    fi
    trap "" CHLD HUP TERM QUIT EXIT ERR;
    { tty=$(ps -o 'tty=' -p $BASHPID 2>/dev/null);
      { trap "-" CHLD HUP TERM QUIT EXIT ERR;
        if [ x != x$tty ] && [ -e /dev/$tty ]; then
           noctty < /dev/$tty || :; # another built-in -just comment out
        fi
        setpgid;
        echo "$BASHPID" > "$PID_FILE";
        declare -a ps=($(cat /proc/${BASHPID}/stat));
        if [ x != x"${ps[3]}" ] && [ "${ps[3]}" != 1 ] && \
           [ -d /proc/${ps[3]} ] ; then
           echo 'DAEMON: '${ps[3]}' : '$(readlink  \
              /proc/${ps[3]}/exe) >&2;
        fi
        exec "$@" </dev/null  >${LOG_FILE} 2>&1 ;
      } &
      exit $?; # our child becomes child of init
    }&
    declare -i ok=$?;
    trap "-" CHLD HUP TERM QUIT EXIT ERR;
    if ((checkjobs_enabled)); then
       shopt -s checkjobs;
    fi
    return $ok;
 }
 case "$0" in
   (\*/${BASH_SOURCE}) ;&
   (${BASH_SOURCE})
      daemon "$@";
      ((daemon_status=$?));
   ;;
 esac
 ((daemon_status==0));

This daemon is also killed by /etc/init.d/network stop (which is invoked
by 'network restart').
It is a shame that it is necessary, when simply moving from using an Android 4.2.2 phone Access Point / router to using an Android 7.0 AP, that such methods must be used by clients to maintain an 'always on' WAN internet connection through the AP.

or you could use NetworkManager, which I don't.

This is linux kernel bug : https://bugzilla.kernel.org/show_bug.cgi?id=194931
The kernel could be responding better to the empty data frame sent by Nougat hostapd on ap_max_inactivity=300 timeout.
Also wpa_supplicant should be detecting the link has gone dead & re-initializing.

I solved the problem by checking if the hotspot was enabled every 30s and if it is not, enable the hot spot.
The solution is good enought for me since I wait for an external device to connect to my hotspot. Once it is connected the hotspot won't disable. I have to keep the hotspot on at all times since I don't know when the external system is going to connect to my system.


text:
Transfer all data files from internal memory to external SD card
I would like to know how to transfer entire internal drive to external micro SD card on  the Motorola Moto G 3rd Gen?
The reason is my phone is saying it can't update because there is no space left. So I bought an SD card of 4GB in size. But even after transferring what it said it did, it still was not enough. The SD card only show kb. Had been transferred over and that didn't make sense. So maybe I did something wrong.

Hi! I changed the tone from asking possibility to the one seeking a method, because given the rest of the body, I believe you would like to know one. Feel free to [edit] out the changes if I strayed away from your original intent.

You can transfer files like audio,video and pictures and small portion of your downloaded app(as i can on my sony xperia e3). But you cannot move all of your app data to SD card. In order to do that you have to root your phone(it is quite risky if you haven't done that before).

"But you cannot move all of your app data to SD card. In order to do that you have to root your phone" -- why so? Please explain. We expect detailed answers here. Read How do I write a good answer?


text:
Errors during factory reset on a device using encryption
Whenever factory reset is tried on device using encryption, the following error shows up:
wiping data...
formatting /data...
E:failed to mount /data (Invalid argument)
E:format_volume failed to mount "/data"
E:format_volume: wipe_data_without_wipe_media failed
Formatting /cache...
Data wipe failed.

What is the solution?

Solution is to format /data + /data/media.
If you ever wanted to do factory reset after using encryption, you need to format the entire /data partition.
What you have tried is formatting /data without deleting the contents of /data/media. This wouldn't work because this step tries to mount /data partition in recovery and then delete the contents of it without touching /data/media.
The primary reason for this error is the recovery cannot mount the encrypted /data partition.
So, its required to backup the contents of /data/media aka Internal Storage before every factory reset (formatting /data + /data/media) on device using encryption.