text:
Android security patch level from the future?
Device: OnePlus One, non-rooted, stock Cyanogen OS
I installed an OTA update today (27 August 2016).
Now, the Android security patch level shows a date from the future (1 September 2016).
Why is it such a date?

Google sends out the security patches for the next month a few weeks earlier, so manufacturers/carriers can implement them and test them before releasing an OTA in a timely fashion.

@GiantTree If you are sure, do post an answer. :)

I think @GiantTree has the point, but nevertheless, there's a small possibility that it's modified in build.prop to display that. Patch note is not released yet so no way to verify.

GiantTree's explanation sounds plausible but there is a bug report raised on first of this month for a patch released last month with similar concern : Issue 218947:  Security Patch Level shows the future date?
There has been no revert on this from Google, so the cause is uncertain. OP may star the bug report to be updated by Google


text:
Can I access my Google Backup and or my HTC Backup on my PC?
On my old HTC One X+ (android 4.2) I've enabled both the htc backup and google backup via android's backup and restore.
Now I see that HTC's backup has completed and googles too, but is it possible to actually look at those backups?
Extract data from them on PC, etc?
Google Dashboard shows no signs of backups. I have an account at HTC which also does not allow to browse backups or even know that there are backups.
How am I able to restore information when a desaster happens? My photos are synced in google photos, fine but what's with the rest? My documents, my local data etc? Is there a way even to know which apps were installed (besides the data used by this apps)?
If for instance my phone breaks and I decide to not to buy a HTC again, what's my HTC backup's worth? And google?

For Google back up, you can check these sites from your computer's browser. Google Photos, Google Contacts. If you have manually backed up a file to Google Drive, you can go to Drive.google.com . All data that you see on these sites are the only data that can be backed up to Google.

But doesn't google backup much more than this? Like wifi information etc? Where does this all go?

Let's say, that it's backed up from the Android Back Up service. But that information could not be accessed from users end. Usually, these settings are backed up automatically, as soon as you activate back up thru settings.

source: Stack Exchange

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

sort: votes


text:
Whatsapp for android 2.2.1
I have HTCF Wildfire A3333 phone. I know it is old, it has Android version 2.2.1. How can I download Whatsapp on it (which version of Whatsapp)

WhatsApp Messenger supports Android 2.1+, you can just install it from the Play Store.
Be aware that with the HTC Wildfire's 384MB of RAM and 512MB of storage space, you may not be able to download, install, or properly run it though. I owned an HTC Aria with similar specs, pretty much after basic updates were applied to Google services, there was no space for anything else to be installed, and that was a couple years ago. It still shows it's compatible with that device, but when I try to install it fails due to insufficient storage.

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


text:
Can an APP setup a wifi connection?
I used to eat in a restaurant which provides WIFI for its customers.
The owner asked me and I'm asking you :)
If we develop and provide an APP for the customer would that app to be able to automatically setup an WIFI connection (or change an existent one with new authentication data), so they can access the backend system in the local network as soon as they enter in the place (detected using BLE/ibeacon) ?


text:
How can I block ads from using my cel phone data plan?
I'd like a way to block ads from using my cell phone data plan. I've reviewed this but it didn't cover my specific question. The upshot is that I have roughly 1000 times the data available on my wifi connection as I have with my cell phone providers data plan. I get that developers need to keep the lights on and do so by serving us ads, however I resent having my high-speed data from my cell phone provider used up in this manner and would prefer to only receive ads over my wifi connection. How can I accomplish this? I've tried ADP (ad blocker plus) but it only proxies out wifi which is the exact opposite of what I have in mind. I have a Samsung SGH-T399 (aka Samsung Galaxy Light) running Android 4.2.2 The device is not rooted but I'd be willing to try that in order to obtain the desired result.

@beeshyams Done.

Not an elegant approach but on a rooted device, automation apps can easily disable or kill the app that is used to block ads when mobile data is active

@beeshyams Not quite what I have in mind.

True. That's why it's  not elegant, but that was the only approach I had since I haven't come across blocking ads criteria based on network connection

You can turn off access to mobile data for all apps on the Samsung Galaxy
Light by going to Settings->Connections->More Networks->Mobile networks and clearing the checkbox next to Mobile data This won't allow any data over the cell network, but data over wifi is still active. Note that this will likely have a negative impact on usability of a number of apps that require connectivity to operate as expected if you aren't connected via wifi, so you wmay want to flip it back on if your heading out.


text:
SAMSUNG G. J710 RAM Capacity - 2GB or 3GB
In this post1 it's stated that Sam J710 has 3GB of RAM (only 2GB of RAM in India).
This post2 says that it only has 2GB of RAM.
I bought the J710 model over the net a couple of days ago, which was produced for the european market and it has only 2 GB of RAM.
So, is this a description error in post 2 or why does it tell it has 3GB of RAM?

From what PDAdb listed and Samsung official websites said, only the Chinese variants (J7108 and J7109) have 3GB of RAM: Samsung J7108 (Chinese), while other versions, including vanilla J710F, have 2GB: Samsung J710 (French).


text:
Can a Terminal Emulator on android do everything that a terminal on linux or mac does?
I downloaded a couple terminal emulators onto my android phone and wanted to know what the limitations on them are. Is there anything that a terminal can do the emulators simply cannot?

Not really.... they are no more limited than the tools that Android has installed, remember that Android is not Linux, it is based on it but it's command line interface is very limited by comparison due to the fact that all the tools needed for a full Linux implementation are not needed with Android. The capabilities can be increased significantly by installing BusyBox though.
Don't be confused by the term "emulator" all terminals you are comparing it to (like Linux terminals) are all terminal emulators. Technically, a "terminal" is a physical device, like a Wyse 60 or Televideo 955 terminal, which contained no intelligence for processing data, it just displayed the information as a "terminal" to the mainframe. The terminology has stuck, and we use the term "terminal emulator" to mean any piece of software that is used to emulate a physical terminal.


text:
Mobile data is turned off but provider shows data trickle
I have turned off cellular data on my phone (Nexus 5, Android 6.0.1) but the data usage summary on my provider's portal is still (slowly) increasing.
Does Android still use a small amount of data even when told not to, or is it provider shenanigans?
Provider is Public Mobile.

If you're using LTE, the reason could be, that LTE is causing traffic even if mobile data is turned off.
See here: https://android.stackexchange.com/a/132642/185648

This is weird.  I have a prepaid plan and previously did not have data at all (now I do have data with the same provider), and used LTE.

Two things to look at:

Does your mobile provider count standard SMS as data?

Does your SMS app have a setting (and is it enabled) to briefly enable mobile data when sending/receiving MMS? Ones I know that do are Handcent, ChompSMS, QKSMS, GoSMS, Textra.

Make sure the setting is off, otherwise it will briefly turn on each time you send and receive one (but note, on most carriers, you won't be able to get MMS over Wifi)

Not that I know of, since I had unlimited SMS even before data, and 2. I am using hangups for SMS

Hangups or Hangouts?  I don't think Hangouts will automatically enable data for sending/receiving MMS messages, you'd have to look in the options for that.   However, limited or unlimited SMS wouldn't affect if your carrier counts it as data.

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


text:
Tasker recognize when headphones are in and something starts playing
I have this issue with my phone when I put in my bluetooth headphones and start playing something, it switches to the "cast" volume mutes my music, so I have to raise my volume every time that I put in my headphones. I already have tasker turn up my volume when my headphones are in, but it isn't until the music starts playing that it switches to "cast" volume instead of bluetooth. Can I have a Tasker action happen when my headphones are in AND music starts?

You can either use the plugin "Tasker Is Music Playing", for one dollar, or try the "Media Utilities" for free, which interface with Tasker but might or might not work with your specific media player.


text:
Can I skip CynanogenMod updates
When I install the nightly updates for CyanogenMod, do I need to install every single update or just the last one?

Just the last one. Simple as that.
However, if you do cross-Android-version updates (e.g. CM13 (6.0) to CM14 (7.0, coming soon)), it is strongly recommended to wipe and start over.

Thanks for your answer. Now I know a bit more regarding updates :) @Andy Yan


text:
Retrieve my contact list
I am unable to retrieve my contact list,I had originally  put in on my Google account and only bits a d pieces  of my list  are showing up.have tried resetting my preferences to no avail.

refer this question

Select the “Settings” of the device.
Scroll to “Accounts”
Select “Google”
Under the Accounts should be your Gmail address. Select it and verify that “Sync Contacts” is checked.


text:
Any way to force "USB debugging enabled" status using adb commands, with broken phone screen
I am trying to access my phone, after screen is broken (no way to enter swipe access or pin). I have installed Android Studio and am able to navigate to the folder containing adb in a command prompt, and enter the "adb devices" command where it shows an alpha-numeric return (I am assuming representing my phone) with an "unauthorized" status (which I am assuming means that USB debugging is disabled).
I get this returned when I try to access it via the "adb shell input text xxxx" command:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
Is there any way to force a enabled status? I have no way of navigating any settings or apps as the screen is inaccessible.

Welcome to the Android Enthusiasts! A good starting point would be our broken-screen tag-wiki, which holds some first aid and links on this topic. Also check the questions using it. As for the other tags you've chosen: Are you trying to access the device while booted into recovery mode? If not, that tag doesn't fit :)

Is your device rooted?
This thread will help you.

You can connect a mouse using OTG cable to the device.


text:
Adoptive Storage on Galaxy S7 edge
I have a S7 edge. When I plug it into my pc it reads 2 separate volumes under phone, 32gb for S7 and 128 for sd. I'm able to freely transfer data between the phone's internal storage and the sd card and the computer. Then I went ahead and turned on the adoptable storage on my device. I then plugged my phone back into the computer but now it only reads 32gb of internal(phone) storage only, not the additional 128gb=160gb. I unplugged my phone from the computer and went into the device storage. It showed that I had 138gb(22gb was already being used by the device). Then the phone asked me if I was ready to migrate data from the internal storage to the sd. I wasn't sure what to do so. I didn't want to migrate data then not be able to access them through my pc or laptop so I canceled then reformatted the sd card as a external storage. I want to turn on adoptable storage but need to know why when I first attempted to do so my pc only saw 32gb instead of 160gb(32gb+128)? Was I suppose to migrate data in order for it to read 160gb? Is it normal for my pc to only see 32gb on the device but will still be able to access ALL of my data through my pc or will it only see the 32gb and whatever the phone decides to store on the sd will only be visible on the phone. One final question...if I'm only able to transfer files from the actual 32gb on the phone will I be able to transfer the other files,data stored on the sd through NFC or Bluetooth?

It's because once the sd card is converted to adoptable, the pc will no longer see it. Only the original 32g will be recognized, but you will still have all of the extra space correctly. You'd have to transfer items to the main storage, then move them to the adoptable storage from the phone.


text:
Will I loose manufacturer updates if I root my phone
I have ASUS Zenfone 2 Laser with Marshmallow but I want to root my phone fot certain reasons but don't want to loose OTA updates from manufacturer. Please let me know if any work around is possible.

No you will not lose the updates.
But to be sure, just use one of the apps to create a backup of your device.

In most phones, especially the newer ones, you cannot receive OTA updates, since /system is modified by rooting and it fails the verification for OTA updates.
To better understand details about verification see answers to this question  What specifically prevents OTAs from being taken on modified /systems, and why can't it be shut off?
Systemless Root is an option to prevent this. In this method of rooting only the boot partition is modified, keeping /system intact. Prior to flashing OTA one needs to flash stock boot and recovery images to allow OTA updates . You can read more about systemless root in the answers here Systemless Root
Do ensure you research the linked XDA thread in answers and choose the right version for your device, based on user feedback


text:
Why does Android phones need JAVA?
Im going to buy a Samsung A310F Galaxy A3. But I noticed one thing.
FEATURES
Java    No
This samsung smart phone doesnt have Java in it. So the main my question would be: is it really bad? And why does Android smart phone need Java? Is it a big disadvantage?

This means that you wont be able to play games from your browser who are written in Java (Java 2 ME platform). Some of the browser games are written on that particular platform, so you will not be able to play them.

As @FiN said, that indication doesn't mean that this phone doesn't run Java at all (in fact, many apps and many parts of the Android system are written in Java) but it means that you can't run Java ME applets. This is not a bad thing because Java ME is almost nowhere on smartphones today, so you won't miss anything.


text:
ADB command to dial Code *#06#
I am wondering if there is any way to run *# codes on android using adb command
I have tried this:
**service call phone 2 s16 "*#06#"**

tried with % instead of # as well.
Any help will be much appreciated.

would this work? http://www.digitalinternals.com/mobile/android-adb-shell-dial-number-trick/382/

Thankyou Madushan, I tried this already, it does work however the code doesnt run, It goes back to normal dialing screen,

Here's the command to type in ADB mode to show IMEI info:
adb shell am start -n com.android.settings/com.android.settings.deviceinfo.ImeiInformation

For Terminal Emulator from device:
am start -n com.android.settings/com.android.settings.deviceinfo.ImeiInformation

but i still need to know how I can run that command from adb, as i want to run another code for testing phone, which is  #0#

Try: am start -n com.android.settings/com.android.settings.TestingSettings

gives me this error, adb shell
ell am start -n com.android.settings/com.android.settings.TestingSettings     <
tent { cmp=com.android.se/system/bin/sh: adb: not found
ttings/.TestingSettings }
arting: Intent { cmp=com.android.settings/.TestingSettings }                  <
/system/bin/sh: Starting:: not found
0) requires com.sec.testingsettings.permission.KEYSTRING                      <
droid.os.P/system/bin/sh: syntax error: '(' unexpected
at android.os.Parcel.readException(Parcel.java:1620)                      <el.java:16

Download Activity Launcher. Select Settings app in that app and note down which Activity corresponds to the Testing Activity and launch it using am start

sorry i didnt understand, Can you explain a bit more please. I have downloaded the app "Activity Laucher" but dont understand what to do next. Many thanks


text:
disabling USB via init.usb.rc
I have a tablet and a LAVA SimulCharge adapter.
I would like to disconnect all USB devices when power is disconnected and reconnect them when power is connected.
Is this possible to do via changes to init.usb.rc ?
(My device is Galaxy Tab S2 LTE android 6.0.1 rooted via SuperSU systemless root.)
I'm thinking something like
on property:sys.usb.config=*accessory?*
    write /sys/class/android_usb/android0/enable 0
on property:sys.usb.config=*charging?* # or is it charging,accessory ?
    write /sys/class/android_usb/android0/enable 1
Reason is that when the charger is disconnected from the LAVA adapter, this prevents the tablet from sleeping and drains baterry.

Try this. If that works out would be possible to automate

sorry.. tried echo 0 > /sys/class/android_usb/android0/enable and didn't work. ES File Explorer shows that this file has value 0, yet the USB is device is still connected and wakes up the tablet.


text:
Google Playbooks is too huge - 1.4GB
I am seeing that Google play books consumes 1.4 GB. I use Play Books only to view my PDF books and at most use 50MB of content. But I don't understand how it can consume so much space... Even a graphic game takes only 800MB. So can anyone point me out to why this happens??

I can't tell you why it's using this much on your phone in particular. I just looked at Google Play Books on my phone, which is using 224 MB, of which only 32 MB is the app itself, and the rest is data (downloaded books).
Some PDFs and e-books can be very big, because they can include large pictures. Some e-books are high-quality scans of every page of a paper book, which can be much larger than 50 MB.

Google Play Books can also store cache and your data (includes your books).
Try clearing the application's cache by going to the application's app info.


text:
Can Factory Reset delete a virus?
In my Lenovo A536 phone a malicious app that is alarm controller and calendar service is unknowingly installed and it is creating a problem.
I am not able to uninstall the app as it is automatically stored in in-built app.
So can Factory Reset remove it?

If the app has installed itself as a system app, then no, factory reset will not remove it. It will just wipe it's data, but it will start installing again, after you boot your phone up.
You will need to flash your device with a stock firmware file, which does not have the virus installed.
You can follow this tutorial:
http://forum.xda-developers.com/android/general/tutorial-how-to-flash-lenovo-a536-stock-t3300818

These are not viruses. These are false positives.
AlarmController is a system app that allows your alarms to play, even when the main alarms app is not running.
CalenderService does a number of things. It notifies you of calendar events, ensures the system date is (relatively) accurate, and manages the synchronisation of Calendar data with the cloud.


text:
To use the internet of my phone for PC
I have a Smartphone with cellular internet and I tried to use this internet with a PC, with a USB cable, as I made in the past with a cell phone.
It doesn't work: Not in Ubuntu 16.04, nor in window 7.
Someone can give me a good advice?
My phone is a GINI e6 (e 6_0301_V5765); Android 5.1

What phone is it? Menton the model name... Also check this: USB Tethering

e 6_0301_V5765    @Gokul NC

@GokulNC the USB Terhering doesn't work with my phone

@kouty Try the wireless hotspot.

@Fiksdal you are right, now it works, the problem was that the USB connection was not detected, I get it out and entered it again and it works.

@kouty Wireless works or USB works?

@Fiksdal USB, at init I made hotspot only and not worked, I added USB and it works. I see that usb only also works

@kouty I don't know what you're trying to say, but I'm glad it worked.

@Fiksdal at and USB alone the way which worked

@kouty Alright.


text:
Why does Android OS consume my network transfer?
The app data usage section of the Settings mentions that "Android OS" has taken transferred 1.73 MB of data in the background.
What is that caused by? I have disabled captive portal detection on my device. I'm running CM 13.0 without Play Services.

I've noticed on my CM13 phone, I will periodically get notifications when there are new nightlies out.  Have you tried disabling the automatic checks for updates?  Simply go to Settings->About phone->CyanogenMod updates->Check for updates-> Set to 'manual'.

I have a weekly check for updates, so I guess it's not that. After connecting to a cellular network, though, 200B was transferred by the Android OS, even though the last check had been the day before.


text:
Spoofing MAC Address on Micromax Juice 3
I am a Micromax Juice 3 user, I have rooted my phone using the KingoRoot App. Then I have installed the xposed installer to use various modules for android. Now I want the ability to spoof my mac address, I have tried multiple ways as suggested in some previous questions like installing terminal emulator and using commands like
busybox ifconfig eth0/wlan0 hw ether XX:XX:XX:XX:XX:XX
or
iplink set eth0/wlan0 address XX:XX:XX:XX:XX:XX
But it gives me an error : "operation not supported"
I have tried using apps to do it, like Pry-fi or Mac Changer but they also do not seem to work. For eg. in Pry-fi I always see my current and original address as the same. I have unlocked my bootloader (if that's a pre-requisite -I am not sure) using fastboot oem unlock command which wiped my device which makes me believe that unlocking was successful.
Anybody has any ideas how can I successfully make it work?

Try this app: Chamele MAC. Also try this Xposed module: Phone ID Changer. If neither works, disable SE Linux by setenforce 0 and try again..

And for additional candidates, see my app list on Network Spoofers :)

@GokulNC The Chamele Mac app works for me, I can see the new MAC Address when I go to Status under Settings but now weirdly enough I can access internet using my mobile browser but none of my apps seem to be  able to access internet or connect to the network. Would you know why this is happening?


text:
Is there any way to add LTE/WCDMA/GSM (Auto) option in a rooted non LTE device (Note3 Neo)?
So my phone is an Indian Note 3 Neo (SM-N750) which has an Exynos processor.
I need to activate the above requested option so as to trick a LTE only sim into believing that my device can support LTE so that it can at least provide me 3G speeds.
Just for clarification, MediaTek and Qualcomm based users can do this using engineer mode tools and services and I know about that. I just want to know is it possible on an Exynos device or not.
As recommended by Gokul NC I've tried dialing *#*#4636#*#* (and also tried the 4636 app), but with the former nothing happens, and with the latter only the screen flashes shortly and immediately returns to the main screen – so this feature (as outlined in this YT video) seems to be removed from my device.

You can try LTE/WCDMA using Gravity Box Xposed module meaning 4G/3G

@beeshyams gravity box doesn't works on Touchwiz based Roms afaik. We have wanam xposed and i have that , but it doesn't have any settings related to LTE/WCDMA.

Gravity Box didn't work fully well. I used it on KitKat on stock TouchWiz . This is one of the things I could activate. I am only sightseeing to try. I don't have stock TW anymore to experiment and confirm

@XavierJacob That's unfortunate – as it most likely means this feature was removed from this ROM altogether.


text:
Turning on hotspot automatically turns off my Wi-fi in my Moto g4 plus
With android kitkat (in my Moto g1), i could share my wi-fi via mobile hotspot. After upgrading to lollipop, turning on hotspot would turn off the Wi-fi which i thought was a bug.
Now to my surprise, it is happening in my new Moto G4 plus (marshmallow). If this is a feature, then i do not understand why it behaves like that. Is there a way i can share my wi-fi via mobile hotspot ? Sharing the 3G data does not make any sense to me.

See settings > wireless networks> more> tethering and mobile Hotspot> set up WiFi Hotspot.  Don't you find that option?

@beeshyams That's not the issue. Ishan can turn on the hotspot – but that turns off the "normal WiFi". Intention is obviously to have the device acting as a router (WiFi in – WiFi out).

You could still achieve the goal (i.e sharing wi-fi) with help of some third-party applications. It uses wi-fi direct to share the wi-fi connection making the device pretty much like a wi-fi repeater. See here: https://android.stackexchange.com/questions/173875/what-is-the-functionality-concept-behind-wi-fi-sharing-aka-wi-fi-profile-share

The device has to support 2 WiFi frequencies, and the OS has to implement the feature (e.g. Huawei D2 and Samsung S7/Edge), or else you will only get either WiFi in or WiFi out. I've never seen any mention of the original G supporting the feature either, and since I've owned an original G myself, I can say that it can't do it in my experience.
The only way that was able to do it on non-OS-level was FQRouter2, but it's now obsolete and might not work.

I researched around and realized that i am an ignorant idiot who thought that he is sharing Wi-fi with hotspot while possibly 3G data is what was being shared. I never used hotspot that much so as to notice any substantial 3G data loss.


text:
Not yet getting Android Nougat update
I have a Nexus 5X phone running Android 6.0.1  and I am not yet getting Nougat update. Is this normal ? A lot of people I know already installed it.

Possible duplicate of When will my device get the Android 7.0 update (Nougat)?

It is said in that post that it should be available for Nexus 5X on august 22nd

Related: What is Google's OTA phase deployment strategy?

Not everyone got it.
If you want, you can sign up for beta https://www.google.com/android/beta and you will get the prompt instantly, or you can get the factory image and flash it in fastboot: https://dl.google.com/dl/android/aosp/bullhead-nrd90m-factory-61495c8b.zip

This person explains it best, it is for an older version of android but I think they will use the same algorithms.
P.S. I still don't have it either.

You can follow this link https://www.google.com/android/beta and the steps are explained their so it should be easy to take from thereof


text:
How can I create a keyboard shortcut for a phrase?
On Apple iOS, there is a section in the settings where you can assign a letter sequence ("shortcut") to any text you want.  When you type that letter sequence, the text you assigned to it shows up as the default replacement if you enter a space.  Of course, there is another "replacement" available which is the letter sequence itself so that you can still have that letter sequence in your typing.
EXAMPLE:
I assigned mmb to the address of my rented mailbox.  When I type mmb on my iPhone, my rented address is the default and replaces the "mmb" I typed if I tap the space key.  If I want it to say "mmb" then I have to tap the replacement option that has "mmb" in quotes.
In this way, I can send my rented mailbox address to anyone who needs it by typing mmb.  There are several other short letter sequences that I also use on my iPhone.  I'm switching to Android, so I'd really like this functionality on my Android.
I have a Samsung Galaxy 4 running Android 5.01.  Apparently, there is no longer a "personal dictionary."  I installed the "User Dictionary Manager" which allowed me to create a shortcut, but when I'm sending a message, the shortcut is ignored.


text:
Ideal charging / discharging percentage for maximum battery life?
One of my friends has a relatively new Samsung smartphone. He has this app that notifies him whenever the charging is up to 80%, and tells him to unplug the charger.
He tells me that it will increase the number of charging cycles for his battery. He says that if he lets it charge all the way up to 100%, it will mean he has to replace the battery of the phone more often.
Is this true?
Somehow, I feel this is a thing of the past. I thought the internal architecture of batteries these days was made so that it wouldn't drop too low or too high. (In other words, when the phone is at 100%, it isn't really 100%. It's what the battery can safely be charged to in order not to degenerate too much.)
Here's a related answer which taught me something about this.

In the comments to linked answer, it was brought out that batteries are not allowed to stay at 100% charge since it is harmful to the battery and the battery % rapidly drops to around 90% as explained in this XDA post. This is a precaution implemented by OEMs ( though not sure if all OEM's do that)
Related to this is battery longevity on terms of Voltage per cell
Source: How to Prolong Lithium-based Batteries

Most Li-ions charge to 4.20V/cell, and every reduction in peak charge voltage of 0.10V/cell is said to double the cycle life....
In terms of longevity, the optimal charge voltage is 3.92V/cell. Battery experts believe that this threshold eliminates all voltage-related stresses;

This voltage as per Table 4  ( above ) corresponds to battery charge level at 58 ℅ .  This is clearly impractical and the recommendation of your friend to charge to 80%, more than doubles the discharge cycles .
This was on the charging part. Table 2 shows another interesting aspect discharging and it's impact on battery life

IMO , if one badly wanted to maximise battery life, ideally, keeping practical usage in mind - charge when the battery drops to 50% and stop charging at 80 or 90%
Thanks to Dmitry in comments who says and subsequently made an interesting point in his answer for the end user is number of charge cycles*capacity at full charge: that's how long a battery will last for a given usage pattern

Edit:  For rooted devices, there is an app on XDA which disconnects charging at a given percentage. This is now open source.  Approach followed appears to be similar to my solution here  Automatically limit (stop) battery charging at a given percentage
Edit 2: Discovered this magisk module which does the same and much more - see Don't charge the battery but use connected power to run the phone

A good metric of battery life is the total energy it provides during its lifetime, which is number of charge cycles*capacity at full charge. If your phone uses X Joules a year and the battery is able to provide Y Joules over it's lifetime, it will last Y/X years.
Taking the data from Battery University, I came up with a following table showing the effect of the charge voltage, V on the number of change cycles, N, energy per cycle E (in %) and the total energy N*E:

Here, E*N represents the number of equivalent charge cycles of nominal (100%) capacity. As the charge level rises, there's a small increase in capacity, but it's dwarfed by a huge drop in charge cycles. For 62.5% charge (3.9V), the battery can produce an energy equivalent of 2000 100%-discharge cycles, 5 times as much compared to full charge. Here's a plot of the table above, for illustration:

It should be noted that this is not an original research uncovering a conspiracy of phone manufacturers. Cellphones simply are not expected to last more than a few years, and 400 cycles is plenty for that purpose. Batteries which have to last longer (e.g. in space probes) are using cycles with 30-50% depth of discharge.
Whether charging your phone to 60% of its capacity makes sense is debatable. If your phone has a small battery and needs to be charged every day, you simply don't have some 40% of capacity to spare, and having to charge twice a day is not practical. On the other hand, I have one of those Energizer-branded phones with a beefy battery, and charging it twice a week instead of once a week is totally viable.
Of course, there are other causes of battery ageing and failure than charge/discharge cycles, so the net impact on battery life will probably be smaller than this data predicts. Plus, cellphone charge controllers are designed to work with 100% discharge capacity and may work incorrectly if they hardly ever see the battery charged to 100% or discharged to 0%.

It is true, as long as we're talking Lithium Ion-batteries.
Rules:

The smaller charge, the more longevity.
The more shallow the discharge, the more longevity

I've read the best for maximum longevity would be to charge to 75% and never let it discharge below 65%. That is impractical, however, as it kills your mobility. What i do is to try to charge to a maximum of  85% and never discharge further than 20%. Feels good to me.


text:
How to decrease touch sensivity (Accidental taps)
When I try to scroll a list of elements, the system interprets it as a "tap" many times (but not always).
It is very annoying. To clarify, for example it happens when I make a search inside an app. I want to view all the results but when I try to move down so I can see the lower items, I accidentally select one of the items of the list and then when I go back to the list, it is again on the begining. When there is a lot of results I waste a lot of time to reach the end.
I'm using ResurrectionRemix (based on CyanogenMod 13) on Oneplus 3. It tried to do a full wipe and install latest version and it continues happening. I looks the same problem occuts on TWRP.
I drop my phone 1-2 month ago and my screen got cracked, but I didnt notice this problem until several days ago. May it be related to this problem?

settings > Language and Input >  pointer speed - decrease the slider to make the touch screen less sensitive . See if this helps

It was a hardware failure. Replacing my screen panel did the trick.


text:
Galaxy S6 Edge unresponsive Download Mode Screen
Worth noting my home button doesn't work (although the fingerprint scanner does).
I'm able to access the 'Warning: A custom os can cause critical problems..' screen by holding down my power button and either of the volume buttons, but once on the screen I can't continue or cancel using the volume buttons, the phone simply doesn't respond. To turn the phone off again I have to hold both volume buttons and the power button for an extended time.
If anyone has any ideas, that'd be much appreciated.

I found a way around this by using a utility called 'Samsung 300K Tool', it allowed me to put the phone in download mode without rebooting.
EDIT: After recommendation by beeshyams.
Googling 'Samsung 300K Tool' after seeing it in a video I was able to find it very quick, however it seems Mediafire has deemed the program dangerous, I scanned with Malwarebytes but proceed at your own risk. I also can't guarantee this will work for your phone but it worked for my S6 Edge. I've uploaded the executable to TinyUpload, it can be found here:
http://s000.tinyupload.com/?file_id=06981153934260620870
First make sure your phone is on as normal, plug in the phone and open the utility, after given the go ahead by the dialogue on the right, click the image of a connector on the left, wait a moment and your phone should be in download mode, run Odin as normal.
Hope this helps someone.

Please link the utility source and describe key steps involved to add value to your answer


text:
Why `fastboot devices` fails in USB debugging mode and Downloading... -mode?
I enable developer mode in the phone, usb debugging and smart bootloader.
I do where successfully boot to bootloader such that I see Android mascot with the text Downloading... target Do not turn off!! but I cannot get any ID from fastboot devices
root@masi:/home/masi# fastboot devices
root@masi:/home/masi# adb reboot bootloader
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
root@masi:/home/masi# fastboot devices
root@masi:/home/masi# fastboot devices

I have successfully completed the stages before in Windows 10, but Ubuntu 16.04 and Debian 8.x cause problems.
Phone: Samsung Galaxy S4 gt-i9506
OS: CyanogenMod Temasek february/2016
Recovery: TWRP 2.8.x
PC: Asus Zenbook UX303UA
OS: Debian 8.5

You expect fastboot to work in Download Mode? O_o On Samsung phones you're supposed to load stuff via Odin.

Sure, but what if you don't have TWRP installed yet (coming from stock)?

I don't really get your last comment. Recovery is supposed to be overwriting - the new version overwrites the old. Also, my previous comments are focused on the fastboot aspect of your question where there's no need to take TWRP's capability to update recovery into question.

The part of the Android bootloader that usually features the fastboot server is called aboot.
As explained in this article, the standard aboot derives from the Little Kernel (LK) project. Almost any phone manufacturer then customized it and created its own bootloader. Follows an excerpt from the abovementioned article:

All Bootloaders I've checked (including Samsung's and Amazon's) seem
  to derive from LK (in fact printing out the "welcome to lk\n\n" from
  its kmain), though Amazon's take steps to disable fastboot, as does
  Samsung, which then uses their own custom App, called Odin.

In short, there's no way to use fastboot with Samsung devices. Only Odin is recognized (by the Loke component).

@Masi If I understood correctly (which I somehow doubt), your goal was to update from TWRP 2.8.x to 3.0.2. On Windows, this can be accomplished by booting the phone in Download mode and then using Odin to flash the recovery file, in the form of a .tar.md5 file. On Linux, you can search for the Heimdall software, which does pretty much the same as Odin. P.S.: despite the wording used in the section I quoted, and whether the Android bootloader may or may not derive from Little Kernel, the fact is that Samsung removed fastboot support, and there is nothing we can do to fix it.

@Masi Do not mistake recovery for bootloader/fastboot. You flash a recovery into the recovery partition of your device within bootloader/fastboot. "Only Odin/Heimdall" stands correct.

Then, it must be that I inserted a new recovery inside odin/heimdall.

I could not find an answer for this. However, I found a differential solution. Boot to recevory mode (mine TWRP 2.8.x), and flash the new recovery mode (TWRP 3.0.2) in Odin/Heimdall. This way, I could complete my target.


text:
Adoptable storage prior to marshmallow?
As most people know, adoptable storage is a feature that allows users to use an SD card as internal storage, including the saving of apps (Similar to the app2sd system, which was removed in KitKat). Now, is there any way (Short of creating my own custom ROM/kernel) to utilise this feature on phones and tablets before Marshmallow?
Edit: I should clarify that I mean anything that replicates the behaviour of adoptable storage (so anything like editing vold file still counts, from the accepted answer, for example)

This is the closest I could find that matches OP's expectations and should work, requires rooted device ( not tested by me). This only  replicates adoptable-storage behaviour of Marshmallow to the extent it allows use of external SD to be used as internal SD for moving apps
Sources:

Swap internal storage with the SD card in Android Lollipop and KitKat
How to swap internal storage with the SD card in Android device

Both these are blogs by the same person but take  different approaches:
Source 1 requires

Xposed module XInternalSD :

This module changes value (path to internal SD card) in some Android APIs which apps use. Control this path in module's settings. You can enable this module for all apps or only for specific apps. Also you can enable full access to external SD card (for KitKat+)

And

WSM Tools app that can be downloaded from Aptoide - not available on Play Store

Source 2 requires only Xposed module XInternalSD
Approach

Swap internal storage with external SD using the XInternalSD module ( Common step for both methods)

Using WSM Tools  choose apps which you want to move External SD or move all apps (Source 1)

OR

Using a root explorer amend vold.fstab  to interchange sdcard0 with sdcard1 ( Source 2)

Nice. As I have now edited into the question, it doesn't have to be adoptable storage, just a situation where it's behaviour is replicated

Thanks for accepting. Actually this solution of switching to external SD brings a sense of  Deja Vu :)

Lol, we'll question why later :)


text:
Practical longevity of current Android phones
Before continuing to read, please understand that I do not have a smartphone and have never had one. Thus my experience with such devices is minimal.
I am thinking about getting an Android smartphone, but I strongly prefer something that lasts (please don't debate why).  How long do current smartphones stay practically usable?  How long do they last physically, and how long does the software stay reasonably usable?
I do have an iPad 2 (release year: 2011), which at this point is barely usable.  It is in good condition but the (irreversible) OS updates made it slow and many current apps are also so slow as to seriously affect usability.  It used to be the same with computers many years ago, but it isn't so anymore: a 4-5 year old laptop computer holds up perfectly well today, and I see no need to upgrade.  What about current mobile devices?
I am not willing to get a smartphone unless it is likely that it will stay usable for at least 4-5 years.  I'd rather stay with my 6 year old Nokia.  I am not in a position to get a carrier-locked phone, so a getting a quality device would be a significant expense.
To sum up: I am not sure that progress in mobile device performance has already slowed enough to make longevity a reasonable expectation, hence my question.

Well, this is quite a broad topic. I can quote my case, though: I have an old Samsung Galaxy S4 Mini, operating since four years ago. By profiting from one of the custom OSes out there, I can run the latest stable OS almost without hassle, nor lags. Yeah, I choose my apps with insight, trying not to clutter the smartphone, but it performs really well. What matters, in my opinion, is how you treat your device.

If you want a no-contract Android device, consider a Moto G or Moto E. These devices offer very good value for money, and therefore are perhaps the best choices for North Americans who want a no-contract Android smartphone. You can buy a brand-new current-generation Moto E online for US$70 or so, plus shipping. Or you can buy used. If you buy a used Moto G or Moto E, do choose a newer model, released in 2015 or newer. Such newer models are likely to get security updates for more years; on a popular OS like Android, this is an important consideration.

Once your Moto G or Moto E stops getting security updates, I recommend that you either switch from Android to CyanogenMod (this may be able to get you security updates for more years) or replace it with a newer Moto G or Moto E.

Related thread:  "If I buy an Android phone today and want security updates for as long as possible, how should I choose a phone? I'm willing to use custom ROMs".

I second what @DeathMaskSalesman says in the comment - it largely depends on how you use your device and whether you load custom ROMs on it.
Bottom line is, unless you use the phone lightly, nothing can hold up to 5 years nowadays, and even then the battery will wear out. My 3-year-old Nexus 4, when retired at its 2.5 year of service, has its battery down to 1500mAh from the designed 2100mAh. This is increasingly serious a problem since recent smartphones tend to have non-replaceable batteries.

No smartphone has a truly non-replaceable battery. Non-replaceable batteries can always be replaced, if you have enough time and the right tools. This may or may not be worth doing. Consider the value of your phone and the costs of dismantling it in order to replace the battery. ❧ Tip:  Many "OEM" replacement smartphone batteries sold online are illegal counterfeits. They may be unsafe. If you want to replace a smartphone battery, it's probably wiser to buy an OEM replacement from your carrier, or to buy a trustworthy replacement battery made by Anker, Lenmar, or Mugen.

@unforgettableid Sure, sure, and I've replaced my N4's battery on my own. N4 is the easy type though - I'm not sure if I can do the same to my N6P when it retires, and I'm totally frightened to deal with glassbacks from Samsung and Sony. Doing that also means losing waterproofing.

Just curious:  How do you know that your Nexus 4's battery can still hold 1500 mAh?  Do you own a standalone lithium-battery analyzer?

I have a USB plug-in voltage/current meter, in fact a fairly cheap one, but seems to do the job well (measures a new battery accurately enough for personal reference).


text:
fstrim not working
I have a Samsung Galaxy Note II running CyanogenMod 11, so it's obviously rooted.  As of recently the phone seems very laggy and much slower than it used to be.  So I did some research and tried fstrim, among other things.
However, when I run fstrim -v /data as root (I use terminal emulator), fstrim outputs:
/data: 505982976 bytes trimmed

However, when I repeat the above command, I get exactly the same output.  In my eyes this indicates the trim does not work and the system remains slow.  I do the same on my Linux desktop machine and subsequent fstrim -v commands output zero bytes trims, to me this is what I expect on Android as well.
Any ideas?

Just to check if the fstrim binary in your device is not problematic, also try this app: FS Trimmer..

@GokulNC I have tried FS Trimmer before, but it appears it's just using the fstrim available on the system.  Any idea how to update/check the fstrim binary available on the system?

Oops, I thought that app uses its own version of fstrim. Also try the fstrim provided by BusyBox; maybe that has the latest version. And if your device is F2FS formatted (instead of EXT3/4), then it'll automatically be trimmed by the kernel; no need of explicitly doing that (maynot work)

@GokulNC Thanks, but BusyBox did not fix the issue either.  It's formatted using ext4.  I think I might try a new rom and formatting to use f2fs... but that's for another day.

Has anyone found a solution ? I have the same problem with a Samsung Galaxy Tab 3 8" (SM-T310) running LineageOS 14.1.
BusyBox 1.30.1 won't help either.


text:
How can i enable otg in symphony H250? which is unsupported otg phone
my phone doesn't support otg how can i enable this feature in my SYMPHONY XPLORER H250 android phone?

Unless someone develops a kernel for it that adds support (which your phone likely never will - the fate of unpopular devices), there's no way around the limitation. Even then you will have to externally power the USB device in question (e.g. via Y-cables), since the port don't natively supply power.


text:
How to put TWRP recovery on an S5? (heimdall fails with PIT transfer)
This is an SM GT900F.
I tried to install TWRP per these instructions. However, when issuing
heimdall flash --RECOVERY recovery.img --no-reboot
I got this (some clutter removed):
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Initialising protocol...
Protocol initialisation successful.
Beginning session...

Downloading device's PIT file...
ERROR: Failed to send request to end PIT file transfer!
ERROR: Failed to download PIT file!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...

The phone was then stuck with a tiny blue dot on the left, which I suppose is the start of the blue progress bar mentioned here. It wouldn't react to anything anymore.
Fortunately, after removing the batteries, it boots just fine into the stock ROM. (Phew.) I have repeated this twice since, but this is consistent.
Does anyone have any idea how I should proceed?

Do you have access to a Windows-powered computer?

@DeathMaskSalesman: Nothing else.

I know this is coming late, but since my question is still getting votes, I might just as well answer it:
I have done many S3 and S5 in the last few years, and it seems the key to this was to do it with admin rights. I'm using Odin nowadays to do this, so I right-click it and start it as administrator. This might be the same for heimdall (you'd have to start a console with admin rights, of course), but I haven't tried that in a long time.

TLDR: It works with Heimdall 1.4.2 (which at least in my case i had to compile myself from source code).
Unfortunatley i don't have the reputation i need to comment. But in my humble opinion... sbi you have not answered or solved your own question(at least you didn't solve the specific problem you have been dealing with)... and should unmark your answer as the right answer....
You say it yourself.. It is just an assumption (unless you have testet it).
I had the same problem using ubuntu 16.04 and the heimdall from the ubuntu-repository(i.e. heimdall version 1.4.1).
I had exactly the same output, as you postet in your question...
Searching the web, i found this this manual,
describing that this error occurs in version 1.4.1 and is fixed in version 1.4.2 of heimdall.
That tutorial shows you how to download the source code of heimdall(version 1.4.2) from https://gitlab.com/BenjaminDobell/Heimdall and compile it yourself.
Following that tutorial, it worked for me smoothley.

I understand where you come from. However, while I don't know what the exact problem was back then (likely several problems), I distinctly remember running into the lack of admin rights several times, so I posted that as an answer. Of course, it might well be that, by some twist of fate, when I tried again I was using 1.4.2 rather than 1.4.1, and that solved the problem. If so, however, then that was a singular problem with a certain version that has since been fixed, so that newbies are very unlikely to run into it.

Try Odin instead of heimdall, and use corresponding .tar format recoveries. No more hassle of Heimdall command line.

Unfortunately, this doesn't seem to work either. Working from this, I never get to the part 5 where it says "you get a sign in Odin (ID:COM section) and "Added" in message box". I must be doing something wrong, still. :(

@sbi Looks like a different problem from the original, fortunately. Driver installed? Device booted into Download Mode? Did the OS prompt anything about installing drivers (it should if you're doing it the first time)?

Yeah, everything goes to plan until I start either heimdall or Odin and it doesn't. :( I had rebooted my machine just to be sure. (I rarely ever do that.) I even stooped so low as to install Kies, since this is recommended at some sites where they have instructions, but to no avail. I am not sure how to proceed now.

@sbi I'm at a loss too... All I can suggest is to try a different port or PC altogether.

@sbi Try to reboot the Samsung in download mode first. Then, plug it to the computer and start Odin.

@Death: This is what all the instructions say, so this is what I do.

@Andy: Yeah, I was already thinking of trying a different PC as well. Given that I ran out of other ideas, I might try this next.


text:
Site sends costly sms without asking for permission
since some time, while browsing(SFW sites, news, blogs etc.), my phone browser - chrome redirects me sometimes to some strange pages asking me to go further if i am an adult, which I've never did. It was rather annoying, but since it did not happened all the time, I've ignored it. Lately I found out that If I accidentally click a button on this site it sends some costly Sms. Fortunatelly I blocked this kind of possibility with my operator, but I am a little bit amazed how it is possible. Does Android Lollipop (not rooted) allows to send SMS from browser without asking for confirmation? BTW there is no any trace of it on my phone. Only the answer from operator, that he can not complete my request, because I blocked it.

It sounds like they tried to force you to send SMS messages through a rogue telecom operator, which is essentially stealing money through text messages.
This exploit, it's not out of the question, necessarily. There was an article not too far back about how you can 'jailbreak' an iPhone by clicking on a link. The vulnerabilities are different, though, and I'm not really sure how they manage to find a hole to send a text message with.
Ideally, you should try to update to Android Marshmallow or Nougat (when it launches in earnest), or an equivalent version of Cyanogenmod, so you can get permission-by-permission control on your applications.
I can't say this is explicitly an answer to whether it's possible or not. At best, you've found an exploit that's already been patched. At worst, you've found an unpatched exploit that's being taken advantage of.

Thanks. I think that aside from the real reason of my problem it may be the time to move to cyanogenmod.

I've found out what is really going on. Some operators allow registering to some "premium services" via WAP. They use your network authorization to authorize the request. In this kind of situation you have to just click on link(which of course is hidden) and voila - you are registered to some high cost service. Unless you block this kind of premium services, what was fortunatelly my case. Anyway the information from the operator system is kind of misleading, therefore you may think(and also operator's call-center) that it could have been some sms send from your phone.
So there was no sms sent without my knowledge via browser.


text:
The Android phone app wants to know my location - why?
I'm running CyanogenMod 13.0 without Play Services. I launched the Phone app and wanted to search through the contacts. Then a popup appeared, that:

Allow Phone to access this device's location?

What does a phone app need location for?

It might have something to do with Truecaller.
Some CyanogenMod isos integrate C-Apps directly into the OS, and Truecaller is a CallerID service with social media integration. Now, if you're not one for social media, I'd recommend blocking this off the bat. However, if you are, I'd recommend looking through the functionality further and determining whether it'd be useful for you or not.
But, then again, it might be something else. If you really want to be sure, I'd recommend going to the github page for your given CM distro and finding someone familiar with the code to take a look at the part that contains the phone application.
Sources:
https://wiki.cyanogenmod.org/w/Cyanogen_Apps
https://en.wikipedia.org/wiki/Truecaller
https://cyngn.com/c-apps


text:
FRP bypass on droid turbo lolipop 5.1 build su4tl-49
on build SU4TL-44 the method works but not on this build 49. You can tap build# all day with nothing happening. I can search google and goto rootjunky but cant download. I can goto play store but cant install any apps. Any other suggestions. My bootloader is locked and I cant bypass FRP.

If it's not responding to the Build being tapped, I'd cruise on over to Settings 》Accessability 》Magnification Gestures. If that is turned on, that could very well be your problem as it interferes with correctly detecting how many taps you've done.
If you're wanting to access D.O. solely for USB Debugging, Magnification Gestures isn't turned on, and tapping Build still isn't working then try:

Navigate to Settings 》Applications and look for the option called "Development". If you see it, enable it
Under Development, look for USB Debugging; it may not be enabled

Also check out:

Settings 》Wireless and Network 》USB Settings

Tick the option "Ask on Connection"

Navigate back to Settings 》Application 》Development and verify that the USB Debugging option is enabled

As far as unlocking your boot loader, simply use the ADB/Fastboot commands in a terminal.

Well I got the boot loader unlocked. Used sunshine. Then installed king root. Both a success. Still cant get passed frp to do a factory reset. I dont have an applications setting nor development. Dont have wireless and network setting either. Still cant access developer options by tapping build number. Ive read that this build is a pain in the butt to get passed. Would love to put the stock rom or a CM rom on this phone. But no way to enable usb debugging and that sux.

And also Google told me to contact Moto and send it to them to re-flash it. Well how can they get passed FRP and enable usb debugging to re-flash it? Moto said send it in for repair and we will fix it. Really, then why cant I? What do they know that nobody else has figured out..very puzzling


text:
Extract photo from contact
This is a friend of mine, Taranaki: (perfect picture timing)

I want to extract this photo to a PNG on my device. How do I do that?

Is the Android rooted?

@Firelord no, it's not.

The best way is to do the following steps:

Go to contacts
Options > Import/Export
Select Export to .vcf file

Now the .vcf backup will be stored in your storage.

Open .vcf file in an advanced editor (in pc or phone)
Scroll and find the entry of the particular contact.
You can find a base64 encrypted code of your contact's photo -copy it.
Now open some online base64 decoder and paste the code and click decrypt.

You have your photo. Enjoy.

you can also share the particular contact to, say, your gmail account or bluetooth or ES file explorer (save to storage) .etc. which will extract just that contact as a .vcf file instead of all contacts.

Or if you are a rooted user, you can find the sqlite database where all the contact info is stored by navigating to /data/data/com.Android.providers/contacts/databases/contacts.db

The VCF only stores a 96x96, which isn't good enough. @AbhishekK Can I access that with ADB?

@Soren yes, mostly (but not all) contacts apps export .vcf with the reduced sized images. Actual images are stored in /data/data/com.android.providers.contacts/files/photos/, not accessible through adb without root.

Worked for me the solution of base64 encrypted code but its not the regular base64 online web, its base64 image decoder online web, that its not equal... I opened the vcf file with notepad++
I copy the base64 code without the first type codes:
PHOTO;TYPE=PNG;ENCODING=B:
I opened on a base64 image decoder online web: https://base64.guru/converter/decode/image And thats it !! :) Regards.

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


text:
Transferring Pictures and phone numbers
How do I remove pictures and emails from my Nokia android phone. And how do I copy my address book to my new Samsung Galaxy S5 phone?

To transfer any file/picture/etc.. between your phone and PC, you'll need to turn Developer Options on and enable USB Debugging.
Some Android devices already have Developer Options listed in the Settings menu. Most, however, need a certain "key combo" to bring it out of hiding
1) On your phone, navigate to Settings 》About Device (Phone) 》and tap your device's Build Number 7 consecutive times. A caption will display at the bottom of your screen, stating how many taps are still needed & when you're considered a "Developer".
2) Once Developer Options is turned on, navigate back to Settings 》Developer Options 》and enable USB Debugging.
Developer Options is located at the bottom of your Settings, above "About Phone"
3) After enabling USB Debugging, plug your device to your PC via USB cable.
4) Swipe down the notification bar on your phone 》tap USB Options  》and verify your device is set at MTP. If it isn't, change it to MTP.
WALA! You are now able to swap files, pictures, etc.. from your phone to your PC and vice versa.
Ensure proper connection between your phone and PC by clicking your PC's Start Menu, then navigating to the "Devices & Printers" section. Your phone will register as either an MTP Device or your phone's model number if properly connected. If not, it'll say a name you won't recognize and have a yellow triangle with an exclamation point (!) in the middle.


text:
Galaxy On5 not compatible with Adoptable Storage
Samsung Galaxy On5 (MetroPCS)

Android OS: 6.0.1 Marshmallow
Status: Rooted
Recovery: TWRP
Framework: Xposed v85.1 (Wanam build)
Model: SM-G550T1 (on5ltemtr)

I had installed Root Essentials a couple weeks back, and while fumbling through it, I came across "Adoptable Storage".
In a nutshell, that's when you format your External SD Card & combine it with your Internal Memory for more space
After hours upon hours of research, forum trolling, YouTube videos, contacting Samsung, etc..., I've found no working method to allow Adoptable Storage to work on my On5.
Samsung made all their newly released phone's running MM "incapable" of this feature, while all other company device's running MM have full access to it.
There's a loophole for Samsung phone's to obtain Adoptable Storage by way of ADB and Fastboot commands. I've tried that method and followed it step by step, down to the final period. FAILURE. Galaxy S7 & S7 Edges can obtain it by way of ADB/FB along with other Samsung device's, except the On5.
My question after a short-story rundown: is there a 100% working method for the On5 to obtain Adoptable Storage or should I stop searching & close this book?

DO NOT under any circumstances do the ADB technique on the Galaxy 0n5. It took me, and several other people on XDA nearly 3 days to clear the (insidious) FRP lock that we tripped in doing so. This completely disabled the phone, we were only able to access DL mode.

Great to read you gave Root Essentials a try! We have just updated Root Essentials with a renewed approach to handle those difficult phones just like yours. Version 2.3.1, released on Google Play / XDA / APKMirror, contains this new code.
Feel free to try and do let us know the results! Thomas, dev. Root Essentials.


text:
Does moving apps to internal sd storage move the app save data as well?
I am just wondering. Lets say I move the game "Cooking Mama" to the adopted internal SD storage. The game is says 73.21 mb after the move. Does that include the game saves and downloaded content or just the original app and all my save data are in my phone still.

Game saves are usually in the /data partition and will not be affected by app storage movement.
Downloaded content are usually in Android/data or Android/obb in your storage and is likely to be moved as well.

On my device, I found an obb file at /storage/emulated/obb, which seems to correspond to the external SD. The obb inside Android/obb has the same checksum as the other, so I guess it's some kind of link.

if you are moving apk files, then yes they are standalone, and only useful when you need to reinstall on another android os, repair or downgrade the app. They are safe to move. Only move apk that you installed and not came with original os.


text:
Play Store icons and downloaded app icons, same or different
I have a quick question regarding app icons. My question is are the icons that are displayed in the play store (the icons you see or click to go to the description of the app before you download) different then the app icons that appear on my home screen after I download and install the app? Or can the two icons, Play Store icon and phone (after download and installation) icon be different? So basically what I'm asking is can the developer use two different icon images, one for Play Store and one as the app image that appears on my phone after I have downloaded and installed the app?

They ought to be the same which brings up the question- did you do see any difference? Is so, edit that information into your question with snapshots and ensure you link the app from play store

If you want to change icons after download see this http://android.stackexchange.com/q/73328/131553 and if that it is your intention of question, it is a duplicate and you can delete your question

Icons are also provided by your icon theme. But for convenience both kept nearly similar.
Yes, it is possible to keep two different icons. But, that will create confusion to your user. I can cite you an example of an app. This app is SuperSu. It can change up to 7 icons ( including 1 invisible ) if a user opts.
You can also change app icons by using some app that replaces icon from the app and from your system. For an example see this app.
You can also follow this tutorial to change the icon.

URL shorteners aren't quite welcome on Stack Exchange.

They're different. The app's icon on the device is a drawable or mipmap resource which comes from the app's APK file. The app can have several icons for different situations too: icons can be different for different screen sizes and densities. This is needed to avoid the blurriness you'd get displaying a high-res icon on a low-res screen. In addition, since one app can have multiple activities, they can all have different icons. The icon that shows in the app drawer for each activity doesn't have to be the same as the icon that shows at the top of the activity when it's running. And the icon that represents the whole app in the system's app settings doesn't have to be the same as any of the other icons.
The icon that shows up on the Play Store (whether in the app or on the website) is uploaded by the app developer when they add the app listing. It's a higher-res image, so that it still looks good when displayed at a large size on the website. It doesn't come from the APK at all, so it can be a completely different image.


text:
I can't root my OPPO Neo 5 (2015)
So I came a lot of steps to root my OPPO Phone, Installed KingRoot in Android but failed to root, then tried the PC Version (Higher Success Rate) but still failed to root, I also tried KingoRoot, and got same results with KingRoot in Android And PC, and also I tried this Vroot (iRoot) but still did not solve this. I also tried  this  thread but I'm stuck at ADB Devices which returns me offline devices. And lastly installing Custom Recovery but the problem is, my device is not supported. So is there any way (longer way) to do it with PC ?  Thanks in advance !

You can downgrade your version to 1201EX-A_11_151230 then try to root it with kingroot. Just search for tutorials.


text:
Restore Note 4 on factory settings
I have a problem I hope it has solution. I broke a display on my Note4. Phone works in behind but display is not activated at all. I went to shop but the repair cost is not worth it.
I want to sell the phone to repair dealer, but I want to bring the phone to factory settings and delete ally media.
How can I do that when the display broken?
I tried to connect it to PC. Windows 10 recognizes it and I get an icon of the phone. But when I click it no content is shown

Turn off the phone,. Once fully off hold volume down and power, it will bring you to the recovery menu, using the volume buttons navigate the menu and use power as your enter button, should have reset to factory or wipe user data as a option.  Not sure if it will need a on-screen button press but only other way is from that recovery menu you would be able to flash the partitions via adb or if you unlocked your bootloader it would auto wipe the user partition. Which doesn't need on screen confirmation.  But there are your options.


text:
Receiving app notifications from apps that are blocked by a network firewall
I am currently on my company's wireless network which prevents apps like Twitter and Facebook from connecting, etc. However, I still receive notifications from these apps when someone posts to my wall or follows me, etc.
Is there a simple reason for this such as a poorly configured firewall?
If it matters, the device is Samsung Galaxy S7 Edge.

Notifications for applications like Twitter and Facebook are sent through Google Cloud Messaging (GCM) or its later versions such as Firebase messaging. This is one of the ways that Google can reduce power usage on your phone, by channeling all of the periodic checking through GCM. Unless your firewall is blocking GCM, all such notifications will be let through the firewall. For notifications your Twitter app is not accessing Twitter servers directly; a Twitter server is leaving a message for your phone on a GCM server, and your phone is checking the GCM server and delivering that message to your Twitter app.
When you are actively using your Twitter app, it will directly access Twitter servers, and a firewall will be able to block it. This is distinct from notifications.


text:
fastboot flash recovery img never completes
My Nexus 10 stopped booting. It shows an open padlock on startup and the Google text in the middle. So I figured my son unlocked the bootloader somehow after creatively following instructions he found on youtube.
I then tried to proceed to installing a fresh rom. Saw that CM has the "Manta" roms.
I have handy the main rom: cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J6-manta.zip.
I found two recovery roms: twrp-2.8.7.0-manta.img and cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J6-manta-recovery.img.
I'm able to get fastboot to see my device, after doing the vol up+down / power thing. But then the command fastboot -w flash recovery cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J6-manta-recovery.img never completes.
Creating filesystem with parameters:
    Size: 29783752704
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 32768
    Label:
    Blocks: 7271424
    Block groups: 222
    Reserved block group size: 1024
Created filesystem with 11/1818624 inodes and 158176/7271424 blocks
Creating filesystem with parameters:
    Size: 553648128
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6768
    Inode size: 256
    Journal blocks: 2112
    Label:
    Blocks: 135168
    Block groups: 5
    Reserved block group size: 39
Created filesystem with 11/33840 inodes and 4363/135168 blocks
sending 'recovery' (7860 KB)...
OKAY [  0.932s]
writing 'recovery'...

That never finishes. The tablet shows, aside from the laying down Android picture and the info, a blue line: "FASTBOOT STATUS - flash:recovery". It never gets past this.
I tried this with both the recovery img files I found.
Anyone have any idea why my Nexus 10 can't seem to complete this fastboot recovery installation? I'm doing this using Xubuntu 15.04 btw, and I don't have Windows handy. I seriously hope it isn't a Linux limitation thing. adb has always worked great. Fastboot sees and interacts with the device, so, that part should be good I hope.

My Nexus 10 tablet remains a brick. Andy below tried to help, but we could not make any conclusions other than the tablet having possibly broken flash memory. ps. I don't understand the aggressive down voting that I'm getting here. So, some people don't "like" me posing this question. Yet, it's not a problem that anyone has an obvious answer for.

Trying a different USB cable may help

I tried 3 different cables. I tried from multiple USB ports, usb 2 and usb 3 ports. I tried from two different Linux boxes. I tried using tool from two different android sdk versions, and also a standalone mini archive of tools that provide just adb and fastboot. I also tried from within a windows virtual machine. The result is the same every time no matter what. At the point where it has to write to the nand memory, it just hangs. It's unlocked. Another interesting observation is that trying to lock it, it claims the command is successful, but then it remains in unlocked state.

So, it seems the device has become a total read-only device now... Its too bad, because it was otherwise a fine tablet. I'm balking having to shell out money to replace it.

Don't use CM recovery. Get latest TWRP here. Report back if this doesn't work either.
Also, you're supposed to get other partitions up-to-date to ensure compatibility with new ROMs. If you're not sure, flash a factory image.

Andy, I appreciate the help. I have learned things here and there about Android flashing, starting way back with an MK808B, but it remains still somewhat sketchy in my mind. I've tried flashing twrp-3.0.2-0-manta.img using fastboot. It hangs at the same point again: "writing 'recovery'", and the tablet shows the blue label with "FASTBOOT STATUS - flash:recovery" at that point.
Re partitioning. How can I get a summary of the partition sizes, what should it changed to, and how does on change it. I take it it's different than using fdisk.

I tried to download stock rom mantaray-lmy49j. Untarred it. executed flash-all.sh. Erasing boot, recovery, system, userdata, bootloader, went "OKAY". But then it got stuck at "writing 'bootloader'" which doesn't complete. Table's blue status bar shows "FASTBOOT STATUS - flash:bootloader". I have the feeling that I now bricked it. I mean, bootloader was erased, and couldn't write a new one...

It looks like any write operation won't get through. Please do grab a Windows PC and test if possible - I had ADB- and MTP- related problems on my laptop's Ubuntu installation too, and had to resort to Windows when tinkering with Android. If that won't do then your N10 likely has a borked NAND prior to this.

I just fired up my Windows 7 VirtualBox VM, installed the Google USB drivers, got fastboot.exe to recognize the tablet. Then, did fastboot flash recovery \tmp\recovery.img (I renamed the file based on a forum message), and again, same thing: sending 'recovery' (9296 KB)... / OKAY [  1.125s] / writing 'recovery'... and it never completes, hangs. Tablet shows that blue line "FASTBOOT STATUS - flash:recovery". It seems indeed nothing can write to the device. How can a tablet just break on NAND just like that??

@Mike It's a 2012 device, and Sammy's flash are known prone to bricking bugs historically (though I don't know if N10 is affected).


text:
/etc/hosts file is ignored (android)
I changed my hosts file using ES Explorater after root to
127.0.0.1 youtube.com

but it still takes to the real website, I tried on chrome browser and the default browser. I found the same problem on many forums but it didn't help me at all. can any one help me?

I had a similar issue.
Check if the content of hosts ends with a line feed. The trailing line feed is required.

Make sure you turn off Data Saver and any proxies.
From the Google Chrome Support Page:
"If you're using Data Saver, keep in mind that:
...
• Changes you made to your /etc/hosts file won't work."
Source: https://support.google.com/chrome/answer/2392284

I had to clear the data and cache (this will wipe your bookmarks, addons, etc) of Firefox for Android for it to pick up the new hosts file.

On the most Android systems, /system/etc/hosts is used as the hosts file.
You can read how to change the hosts file from a desktop computer here.


text:
Android shuts down when unplugged
I have an HTC One m8. It's running android 6.0.
If I attempt to boot up the phone it instantly shuts down when reaching the Google Logo.
If I plug it in to a power source (AC/usb), it lets me boot, but once I unplug the power source it instantly shuts down.
The battery is indicated to be close to 100%.
This really does sound like a hardware issue with the battery, but I can still enter the bios (Power + Vol Down) and leave it open for a few hours without it dying (probably longer, didn't test it for longer). It only shuts down when I attempt to either boot or enter recovery.
I've already re-flashed the OS to stock with:
fastboot oem rebootRUU
fastboot flash zip rom.zip
fastboot reboot

So my question is: is this a hardware issue or software issue?
Is it because entering the bios requires such a minimal amount of energy, my device will allow me to enter it even when it's on extremely low battery? Or is it because the software is somehow incorrectly detecting the battery level and shutting down?

Try replacing battery. It looks like battery issue to me

Ah I would if I could, htc one m8 = non-removable battery.

Ok. Try resetting battery logic. This may fix if it is a battery logic problem. HTC and some Nexus phones have this issue

Eventually entering the bios became impossible, so I know it's a hardware issue now.

It seems like your battery is broken or something. I suggest bringing it back to HTC and have them fix it for you. Please don't do it(replacing battery/open then phone case) by yourself as it will void your phone warranty.
PS: HTC will have their way to replace the battery for you, but I am not sure whether it will cost you some money or not.
Hope it helps =)

Perhaps hardware issue. Android has a battery checker that shuts down your phone when out of energy. It does not always shut down right when your battery level reaches 0%; sometimes it shuts down when battery level is 5%, sometimes it doesn't even shut down after 1 hour of excessive use when battery level is 1%. So it is checking the battery not by battery level, but by something else, perhaps voltage.
Anyways, you should contact HTC for maintainence.


text:
Using old Android phones as multi channel dash cam
Now a days the Android phones are having quite a good computing power and good optics. I have heard and used my daily driver Android phone as my dash cam.
I have also heard about dedicated dual channel dash cams which can record from two cameras (ideally one placed to record what is happening at car's front and another on rear and combine those to into one single video).
With few spare Android phones lying around I thought of building myself a dual channel dash cam purely using old Android phones.
The challenges I have:

The separate feeds from both phones should be merged to show side by side.
Can the phones be kept on and recording 24x7 even when the car is parked?

Advantages:

It also acts as a CCTV for my garage area recording all activities.
Android phones take considerable time to start up.  And in this mode the recording will be available continuously. Also the dash cam app need not be auto started during boot.

Disadvantages:

Not sure about its impact on battery life.
Not sure about its impact on phone's and camera's life.

Overlaying the latitude, longitude, speed, date and time information on video.
Retain videos for later use on tap of the screen.  Usually these kind of dash cam apps will run in loop erasing the previously recorded video so that it will not run out space. On tapping the screen during some moments to preserve it copies the current recording block as a new file so that it is available for future use. In front only dash cam scenario this works well.  How can i do this in front and back dash cam so that the rear dash cam also preserves on tapping the front cam?

Question:
Is there any solution that addresses this need? If not any partial solutions to the challenges?
I know this sounds like a good question for a project on Instructables, but this involves considerable Android software and power user's experience.  In case if this sounds a bit of out of topic, please let me know in comments.

I used to use a Galaxy Nexus as a dash cam and it would discharge the battery faster than it would charge. Besides, the video looked awful. I ended paying $20 for a simple dash cam that was much better. I indeed wished to use my phone as a high end dash cam with more functions, but it seems that even the available apps don't have those functions so you would have to develop your own app.

Most of your requirements can be met by either a custom software or some apps on the Play Store.
May be not merging video. You will need to upload chunks of video periodically, be it hourly, daily or weekly, to some central location that knows about all devices. (Some server in the cloud? your home PC? May be you can set the save location of the apps to a OneDrive/Google Drive folder)
I don't think there's any harm to the camera on devices on atleast most devices. I've seen people use droids for home surveillance for a while.
Although you'll have to make sure the device isn't placed in direct sunlight and not exposed to extreme summer heat. Most devices can shut down automatically when the heat is more than it can handle, though it is mostly to prevent heat damage from an overloaded/misbehaving CPU, not the heat from the environment.
Battery Life
Main issue would be the battery life. Even when simply recording by using a charger from the car (usually 1A. May be 2.4A if you're really lucky to get one of those charger adapters.)
Your camera won't last more than a hour or two under it's own power. (Even the latest devices can only last 5-6 hours with screen on) You can may be attach a battery pack which uses solar panels to charge.
I don't know the effect on the battery when its connected to a constant power supply. Many new units can handle a good amount of abuse, but older ones may have issues. Although this isn't an issue for you as long as you have a way to constantly power the device.
Things may become a bit simpler if you only need to record when the car is running. This will reduce the battery issues significantly.
Due to the openness of the question, you may have better luck posting this on a discussion group/forum or something like Reddit.

Thanks. Things may become a bit simpler if you only need to record when the car is running. is indeed  a valid suggestion, but then the phone takes considerable time to boot and the app has to start. I can keep this as a last resort if other means are not working out.

you can use apps like Automate or Macrodroid to automate locking and unlocking the device when power is connected. Devices drain much less power when in sleep mode. Especially devices running Android M thanks to Doze mode. Since it will start charging when you start the car, it can be a good compromise.


text:
Preventing device wake up on USB
Is there a way of preventing an Android device from waking up/staying awake when a USB is device is plugged in?
I know Windows allows this in device manager. Is there a similar setting in Android or can I accomplish this via changing configuration over ADB/fastboot?
Actually, I'm using the LAVA SimulCharge adapter to connect power and a USB device. When the power is lost, I dont want android to stay awake.
UPDATE
Video to explain the issue
https://goo.gl/photos/FQxKmDRWKqxbwgPb6

Screen timeout set to 5 seconds to demonstrate.
Screen lock set to none (but same with swipe or PIN. Just will show the lock screen instead)
Pressing the power button turns off the screen momentarily, but wakes up almost immediately.
Sometimes After about 5 minutes of this, the EasyCAP light stops blinking and the screen turns off, but the device battery level drops about 10% per hour while its "asleep" unless the OTG adapter is removed.
Removing the power cable from the OTG adapter end (instead of the wall end as I did in the video) lets the tablet sleep properly.

Try Macrodroid : Trigger: Power disconnected Action: Screen off Constraints: leave blank

Actually the screen is off.. but the baterry drains, unless I disconnect the adapter.

If your device is rooted, you can use reboot/ power off as action instead of screen off

yea. I'm considering that now. It seems like the popular plm file trick works only for Samsung devices. I'm looking for a universal solution. I also need to power on on charger as well.. Which is time consuming and also, the surefire support for that type of thing also seem like just samsung devices.

Well, if this automation works for you, let me know to post an answer, but gut feeling is that it would do a part of the overall task you are trying to achieve - which is quite ambitious, simply because the devil lies in details and there can be any number of variations in actual production rendering inter workability suspect

Actually automate didn't work. It did engage the lock screen, but the screen keeps waking up continuously. (I will update the question with a video link. I have set the screen timeout to 5 seconds to demonstrate)

Yes, like i said in my earlier comment, i expected it to do a " part" only, though initially it seemed workable,.

Does anyone found a solution? I have related problem and posted as a short question here: https://android.stackexchange.com/questions/214620/how-to-wake-up-my-android-device-via-wireless-keyboard-mouse-it-has-dongle-con  @beeshyams


text:
Can I Change My Device Info For Reach Another Version of an App On Play Store?
For example, I have a snapdragon phone. But I want to reach an app's intel version too. Because tablet of my litte cousin can not reach to WiFi. And he want to download a free game. When I download and give it to my cousin, game won't work cause different proccessor(intel thing). So I want to get this app's intel version. How can I do this?
I think its possible with edit my device info but I dont know which info and to what.
Edit: And if I edit my build prop's ro.product.cpu.api, will my device get hard brick?

What good does it do? Can you give some background? The Intel version wouldn't run on ARM. Do you e.g. need the .apk for some Intel device that has no Playstore access? It's no good idea to manipulate your device for that, as for the side-effects to be expected.

I'll edit build prop then reboot. Download the app and after 5 minute recover my old build.prop. In this 5 minute, I'll open just Play Store. If I edit this, will my device get hard brick?

In the worst case, the device won't boot up successfully anymore, and you'll neet to repair your build.prop via recovery or reflash the ROM. But again, please [edit] your question and add the background: What do you need that for? This is not a forum to discuss things – and I have good reason to believe this is a XY problem. What is your final goal? What do you need the Intel .apk for? there might be other (and less dangerous) ways to achieve that.

Okay edited the question

Thought so :) See my answer here: Raccoon is your answer. No device modification. Runs on any computer with Java installed. I'm using this myself. // as for the build.prop part: Please ask that as separate question. Q&A sites work best if you put each question in a separate question post.

As I've already pointed out in my comments on the question, modifying your device's build.prop to appear as a different architecture is a very bad idea. It won't "hard-brick" your device, but certainly will have side-effects you won't like (e.g. the device might refuse to boot up at all – not sure what exactly will happen, as I was not yet bold enough to try; if you really want to know that, either try (not recommended if you don't know a way out then) or ask that as a separate question).

Concerning your real goal: As pointed out in my answer here, you can use Raccoon on your computer for that.
While the other question focuses on apps you've bought, Raccoon of course also works for free apps. For different device architectures, you will need to create different profiles: DummyDroid can create the required "GSF IDs for mock up devices" if you don't know the one of yours, based on the given device's build.prop. If that doesn't work out, or you want to use the "real ID", please see my answer here on how to obtain it from your device (or from that of your cousin).

concerning your real goal GOT IT! I was thinking about "oh god.. why he wondering it.." Thank you a lot :D

:) Glad I could help! If this solves your "real issue" (LOL), please consider "accepting" it (tick the green check-mark next to the answer) so others can identify the post as solution. Enjoy Raccoon!

One more little question, how can I download intel version of an app?

As I wrote: by using a profile based on the GSF ID of an Intel device. As with the Playstore app, Raccoon will only show apps matching your device.

Didn't see after While the other..

LOL Yeah, it's useful to read the full answer before asking for additional details #D Good luck then! // Btw: if the app doesn't show up then, it might not be available for Intel. Can happen, so be prepared.

@Izzy Market helper on the Play store Could help too- it configures a false build.prop that makes Google think your device is something else, while leaving your actual build.prop to chill. It also allows for the installation of apps from the play store in this way. OP could just pretend to be a device with a Intel CPU.

@DanBrown I know Market Helper – but for one it's not available on the Playstore, two it was last updated in 8/2014 (AFAIK back then there weren't any x86 devices around running Android, so not sure if this would be supported). On the "pro side", it doesn't touch the build.prop, so there shouldn't be much side-effects :)

@Izzy Oh. Odd. Maybe they removed it recently, I remember using the play store to get it.

@DanBrown That must have been pretty long ago. My corresponding app list has it as "supplemental link" for ages, as the app wasn't on Playstore. Which means, it hasn't been there for at least 2+ years. // Nevermind: It's not there now, and it hasn't been updated for a long time.


text:
How to block other apps to Open .Only My app will be open when android is strated
1) When My app is running disable buttons like home,minimize.
2) only admin can Unlock this feature.

See [tag:kiosk-mode] tag for ways

You may be looking for LockTask Mode. For more info, see corporate-owned, single-use setup
https://developer.android.com/work/cosu.html


text:
Doze behaviour on Nougat (7.0.)
Doze behaviour has been changed in Nougat. Doze is implemented in two stages

When a device is on battery power, and the screen has been off for a certain time, the device enters Doze and applies the first subset of restrictions: It shuts off app network access, and defers jobs and syncs.
If the device is stationary for a certain time after entering Doze, the system applies the rest of the Doze restrictions to PowerManager.WakeLock, AlarmManager alarms, GPS, and Wi-Fi scans.

My question: What are the typical timings for step 1 and 2?

Even in Marshmallow , I could not find a reference to exact timing but was reportedly between 20 and 40 minutes.

I am wondering if timings have been specified now, though my search didn't yield anything

This is interesting. Already tried asking at XDA? Maybe someone already explored the code.

@DeathMaskSalesman:  I didn't ask there  mainly because of high noise content but searched- couldn't come across anything. For that matter as mentioned in question, even Marshmallow timings don't have a definitive answer AFAIK

I guess that your best bet would be to ask Francisco Franco. He's the developer of Naptime, an app which forces Doze to be activated immediately upon the screen has been locked. Since the app allows the user to edit various parameters as to influence the deep sleep duration, time after Doze kicks in and so on, it means that the dev has the answer you're searching for.

@DeathMaskSalesman:Thanks. Been in  touch  ( not directly but reading up on XDA ) with app developers of Greenify, Force Doze, both of which implement this feature with similar parameters ( atleast in Force Doze) on Marshmallow. I currently use Force Doze. While you get a fair idea of commonality of 30 minutes on most devices, there are differences. The question is more like what did Google plan ? Didn't want to bring ask this spadework into the question for fear of losing focus. Thanks for your interest though. Incidentally both apps implement for both rooted and non rooted devices- //

You need to run adb commands for Unrooted Devices. That 30 minutes is for Marshmallow

@DeathMaskSalesman : once these developers upgrade app to N, there may be an idea. Thanks again

I just looked up ways to contact developer. Reddit thread seems to be inactive, mailed him.. Let's see if he reverts... Thanks

Which dev did you write to?

Fransisco Franco from the app  mail

No problem, then. He seems to respond in a day or two.

I am not familiar with this function, but it should be manufacturer specific.


text:
Flash Android Nougat On Rooted S7
I am wanting to flash nouget onto my device, and at the time this has no documentation about doing so. What should I do to make sure I don't screw my phone and root status up? (I am not near an expert, obviously, but I like learning :P)

Nougat is not available on the S7 yet AFAIK.

By available you mean it will break it or officially available? As I mean download a rom and flash it.

ROMs are not universal - you can't just flash one from another device and call it a day.
No one has ported N for S7 yet, and due to the locked-down bootloader on the Snapdragon version / development difficulty for the Exynos version, there likely won't be any until the official one drops.

Nvm. Where is the fun in life without bleeding edge stuff. Sad news :(

@UbuntuCake The fun is in Nexus. Join the bright side!

If it makes you happy, ill aim for my next phone to be a nexus. But that is a while away


text:
What else might be causing battery drain on my Android 6.0.1?
My Galaxy SC-04F, not rooted, recently upgraded to Android 6. Since then, it runs really hot and the battery drains very fast.
I looked for solutions on the net, and I found two suggestions:
Clear the app cache in Settings -> Storage -> Internal Storage ->Cached data
Rebooting into recovery and clearing the system cache.
I did both of these, and my phone was almost immediately noticeably cooler, and the battery was definitely not draining as fast.
Unfortunately, this only lasted about 24 hours. The next day or so, my phone felt hot again, and the battery was draining fast.
I checked online again, and some people said there was a 6.0.1 update that solved some kind of bug. I checked Settings - About this device, and it says my Android version is 6.0.1 already.
What else can I do to try and get my phone to run normally and not overheat with excessive battery drain?

Does the battery usage in settings show anything interesting?

@Madushan, thanks for responding. Currently, "Android System" is the top energy user, at 28%. Which seems odd. In my experience, usually the screen is the number one energy consumer.

I seem to have found the answer to my question.
When my phone was hot and losing battery power quickly, I checked Settings -> Battery - Battery Usage, and would see that "Android System" was the #1 power consumer.
I would then go to Settings - Developer Options -> Running Services and look for any services under the name "Android System" and with the same icon. There was only one, so I click on that to see more details and I can see that there is a service called "AtFwdService".
Stopping this service often helped, so it seems to be the power consuming culprit. However, there is one additional step that often seems to be necessary:
After stopping the AtFwdService process, I then us an app called "Smart Manager" which has an option to clear applications out of RAM (there are probably other ways of doing this, this just happens to be the way I've done it). I use "Clear All", because, I have learned that even though the "AtFwdService" doesn't show as an entry, and even after stopping it, it still seems to be in memory somehow.
Once I've cleared the memory, my phone cools down and power consumption slows down to something more normal.


text:
Android Studio doesn't see device
I know that this question was asked for several times, but I tried almost every solution that was suggested and Android Studio  still doesn't see my device.   My configuiration:

Windows 7 Professional 64-bit
ASUS ZenFone Go ZC451TG. Andrdoid ver. 5.1

 What I have already tried:

check usb3 or usb2. Lollipop doesn't work with usb3
check the orginal cabel
try reboot Windows, ASUS
try drivers from Google, ASUS
Install drivers from ASUS, only 2014 works on my device. Last Update from 2015 doesnt' work because of 64-bit system.
Turn on developer's mode on device
try MTP and PTP modes
Try PC Link standard utility form ASUS. It doesn't work properly on my PC

On this screen you can see how Windows detected my phone.

Is it right? I worry that Winodws see my ASUS as memory device not AVD.
Can you suggest any ideas how to fix it?
Thanks in advance.

The picture you have only meant that the device is detected as a media device (for MTP storage mode), which should work even without the drivers.

Yeah, I hope so. But unfortunately it doesn't work

Have you turned on USB debugging? It's not the same as turning on the developer options. The setting for USB debugging is about one screen down the page of developer options.

@DanHulme yeah, I check it several times, and it works

repeat of above. Are you sure 'USB debugging' is on?Do you see the device when you issue 'adb devices' in command window.

@IftekharAS no I don't see my device, when I write 'adb devices' in CLI

what are the settings which are ON in your device inside developer options?

disconnect your device, go back to Developer options, turn off-then-on USB debugging, then Revoke USB debugging auth - replug it back in - and wait for a permission dialog to pop up - accept!

You ought to post your solution as an answer and not edit the question. Answering your own question is welcome here and you can " accept" the answer after 48 hours. The questions and answers are kept separate on this site unlike some forums. Kindly post it as an answer

Don't have enough reputation to comment but are you certain you've installed the USB driver? If not, start at: https://developer.android.com/studio/run/win-usb.html
Then go to this link b/c you may need an OEM driver: https://developer.android.com/studio/run/oem-usb.html#InstallingDriver
Your above point 8. Try PC Link... doesn't work properly on my PC may be the place to start. Make sure you can connect, transfer files, etc. before moving on the the Android Studio drivers though. I use Motorola phones & always had to make sure their connection worked first.

I can transfer files on my ASUS as on usual USB flash drive

@Averin then next step is to make sure Google USB driver is installed as per first link. Then try 2nd link for OEM driver & pay close attention to the path (sdk\extras\google\usb_driver). Does your phone show in the device manager when connected? Also, I usually run MTP mode with Android Studio.

Yes. it is installed. Now it is the first time, when my ASUS recognized as ADB, but still it has a warning triangle and Error: Code 10.

The problem was solved. After detecting my phone as videoadapter not as a storage error:code 10 appeared, but then I switch to PTP mode on my ASUS and finally Android Studio saw my device


text:
What should be format of my 128GB micro SD card? Ntfs or exfat
What should be format of my 128GB micro sd card? ntfs or exfat.
My j1 only supports 32GB.