text:
Nexus 5 on recovery mode but power button isn't working
I have a Nexus 5 phone with a bad power button (completely not working). The phone was off for a while, and when I powered it on (using fastboot) it asked for cyanogenmod update - downloaded and restarted.
When the update finished the phone booted into the root screen saying "Root access possibly lost. Fix?" with "Yes", "No" options. However, since the power button isn't working - I can't select anything...
(I can, however, go into rainbow mode! Weird, but cool)
Is there a way to simulate a button press from adb or something? Is there another way of getting over this screen?

I. Must. See. Rainbow. Mode.

It really is something you can't afford to miss

Oh god, im gonna google it now.

It is beautiful.  How is this a problem?? Hahahaha. In seriousness though,  can you get it into fastboot or adb? If so, then PC commands to the rescue.

I ended up waiting for the battery to run out. Then rebooted it using USB & fastboot. It's up and running now. Thanks anyway!

Np kiddo. Can you say all this as an answer and mark it? Dead threads get on my nerves hahahah


text:
System sounds but no other sounds when use headphones
I plugged in my headphones this morning,  which were working fine yesterday,  and went to try and watch a video only for there to be no sound.
But all notifications and click events seem to be making sound as usual. And only certain apps seem to be not making sound.
Thinking it was possibly a bug in YouTube, I tried running other apps:

Spotify: no sound
Google calendar notification :full sound
Hearthstone, a game : no sound
Analogue Synthesiser emulator: full sound
ZType,  a game: full sound
Shadowrun returns, a game: no sound
BBC iPlayer: no sound
Sony Xperia Podcast app: no sound
Pointless,  a game: no sound.

I've yet to test with other headphones. But have tried a restart and tried double checking the volume control advanced settings.
Any idea what the reason is?
If it was all sounds or only loud sounds it would be simple,  but it's not,  which is what confuses me.
further testing
After I got to a desktop PC did some further tests:

tested same sources with a different set of headphones,  same result.
tested the original set on the desktop PC,  produce sound from all sources no problem.
Set phone to safe mode to see if it would be an app which has a damaging bug after update (as I've set my phone to update when on wifi and charging, so it is plausible) the behaviour was the same.

Bee, the Headphones I currently use have never been detected by smart connect,  I think it's because they have a detachable cable, They're a set of shure headphones.

Well,  the phone is still under warranty (but not insured) do you believe this could be an issue that is viable for sending it back to Sony at no extra cost?

I never dealt with Sony but yes IMO, this warrants exchange. For starters you could post on their support site and if it helps, it could save you the trouble of sending back

Soundabout didn't have any effect

I had a problem with headsets and Skype on an Xperia z3 a while back. And then I found out order matters: the headphone needed to be plugged in before opening the app. Another potential cause: SONY tries to be clever and detect different headsets. In the sound settings, there is an option to select "generic headset" (don't know for the Z5, but probably similar)

Nah, no such setting in z5, probably because it was too buggy.
There's the option to have the z5 use headphone plug in to trigger events and a switch in setings to turn on ClearSound™ but there's no detection which changes sound settings unless I tell it to (which I haven't.)

Xperia Support are literally useless.
I told them the specific problem, but because it had a 1mm bend in the phone, they refused to repair the problem.
And then gave me the option of paying £25 to get it back unrepaired, £280 to get it replaced (which is 70 more than the phone costs) or they'd recycle it for free.

source: Stack Exchange

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

sort: votes


text:
"Package installer has stopped working" after updating to COS13/Marshmallow
I have a OnePlus One, never rooted or modified the OS. Today I updated the OS from YOG7DAS2K1 (COS12.1) --> ZNH0EAS26M (COS13) via OTA incremental update zip from Recovery (stock).
I wiped cache and user data from Recovery after update.
Phone seems to be fine so far, except this:
Whenever I sideload an APK, although the installed app works fine, an error message pops up at the end.

"Unfortunately, Package Installer has stopped"

I tried wiping cache, rebooting, reinstalling those apps, but the error appears anyway.
What seems to be the problem here?

Here is another Q&A for a "Package installer has stopped working" error (in OOS3): https://android.stackexchange.com/questions/162129/package-installer-has-stopped-working-after-upgrade-to-oxygenos-3-1-4-marshma. I hope it helps some people.

I do not know how to reproduce this problem. It simply solved itself after changing the Cyanogen themes a few times.

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


text:
Setting default Save Location in Android 6.0
Is there a way to set the default installation from my Apps to SD Card.
I couldn't find it, in Settings/App/Configurate Apps and Setting/Storage & USB.
Where do i have to look for it?
Thanks

My Device is a Moto G (2.Gen) with a 32GB SD Card formatted as Adoptable Storage (Marshmallow Feature)

If your SD card is setup as adopted (internal) storage, apps should save their information there by default as long as you migrated your apps there, your SD card is now internal storage.
For more information, look at the Moto help page for Android 6 Marshmallow - SD card - Tips and Tricks


text:
Unable to launch sqlite3 in my sumsung phone
I have put the libncurses.so and sqlite3 in the /xbin , but it seems unable to  load the library "libncurse.so". waiting for help !

What is your source of sqlite3? I also have sqlite3 but it doesn't require that .so file.

The path of libncurses.so is wrong.
It should be: /system/lib/libncurses.so

Thx for your advice，I will take a try when I return home.

I've try to put it in /bin but it doesn't work. How bothersome. I have no other way but using log in Android Studio to query my database.

no, not in /bin, but in /system/lib/. Are you sure that your libncurses.so is compiled for ARM arch?

Oh Jesus! I've mistaken it for bin.


text:
Does running Phone Repair from Xperia PC Companion delete any data?
Basically the title is my question. Also What precautions should I take before running Phone repair?

Data in the phone will be deleted, only data in the SD card will remain. Make sure you have done all proper backups of data contained in your internal memory.
Other than that, i'll make sure to have a backup of my contacts or make sure they are synced to an online service.


text:
How to modify or remove the No SIM Card message on lock screen?
Just in case: I'm using a OnePlus Two US Model (ONE A2005 / tocino) running Android 5.1.1 with MoKee (MK51.1-tocino-160403-RELEASE). I have root and xposed running as well. Using Nova Launcher, but lock screen is built in with the ROM (as in unchanged).
I'm been looking for a way to remove the "No SIM Card - Emergency calls only" from my lock screen. It would be better if I can modify the line with a custom message; replacing it, basically.
I tried looking for this online, but the only resources I found is to remove the No SIM Card icon and notification on the home screen.
Any ideas?
Thanks!

If your device is rooted, you could try Xposed with the HideMissingSIM module. Promises to remove it from the status bar. Not sure if it also removes it from the lockscreen itself. Hide No SIM icon promises the same – again no mention of the lock screen.

@Izzy Thank you, but I already installed this module. arana below works.

I have the same annoying issue on my OPX (E1003). Though it happens rarely, the only way to get rid of it is to reboot the phone. Still not sure what causes it.

Shiyaz If you still have this issue you can try some of what I answered below.

Since you are rooted and comfortable with custom ROMs and Xposed etc, you can use Clean Lockscreen.
If you don't want to use an Xposed module, add the following line to your build.prop file: (After you made a backup!)
ro.config.donot_nosim=true

Now reboot your device. If you still see this message change this line:
ro.config.tima=1

To this:
#ro.config.tima=1

Then reboot your phone, and if that didn't work, change the previous line to this:
ro.config.tima=0

Thank you! Clean Lockscreen is working perfectly to remove the No SIM Card notification.


text:
Won't placing a cuostm ROM file before factory reset remove it from the phone?
I have run CM12.1, OxygenOS, and now Exodus for a while now on my OnePlus One - but for the life of me I cannot remember where you have to place your new ROMs zip file.
When flashing a new ROM you should start from a clean slate so you do a factory reset wipe. However, as it seems that this basically wipes all the data from the device, where should I place the ZIP files I want to install later on?
If I access my phone through USB on my computer I assume that I can only access the data-partion (/"SD card" partition) and these get wiped any way, so how and where should I place the new ZIP files?

Place them on an external SD card (if your device supports it), or sideload them via adb while inside the recovery.

@DeathMaskSalesman No external SD card. Sideloading in this case means installing from your PC, right, I mean through ADB and a terminal interface. How does this work? Is the ZIP loaded unto the device and then installed? Or is streamed?

Firstly, you need to install the adb utility on your (possibly Windows) computer. Then, you need to reboot your device in recovery mode, factory reset it (better if you wipe the System partition as well) and find the appropriate setting that will make your device wait for a file to be sideloaded. Then, connect your phone to your computer via a standard USB connection, fire up a terminal on your computer and start the adb daemon with adb start-server. Finally, issue adb sideload path_of_zip_file.zip and hit enter. The zip will be uploaded to your device, then installed.

I would like to point out that usong the TWRP app can allow you to place roms on internal, factory reset and install new ROMS. It just has to be done all at once.

@DanB Could you expand on that, in an answer maybe?

Will do. Ill just need to double check

It is noted in the link you mentioned:

Depending on your device and its configuration, you may have options for wiping internal storage, external storage, sd-ext, android_secure, and/or an option for formatting data. There’s almost no reason that you would ever need to use these items.

(Emphasis mine)
For a clean wipe, you can get rid of everything under /data except of /data/media/ which in particular gets mounted as the emulated internal storage by Android. In short, it houses your files and serves as the internal SD card (/sdcard). You can however get rid of /data/media/0/Android directory since it contains files related to applications installed in your currently installed ROM. Those files may or may not interfere in smooth functioning of your new ROM after a clean wipe.
Advanced wipe can be performed from TWRP through Wipe → Advanced Wipe → choose appropriate boxes. Remember, Internal Storage there means /data/media and Data means /data excluding /data/media/.

If you still intend to wipe everything:
As Salesman wrote, you can use an external SD card to store the ZIP. If your device (OnePlus One does) supports USB OTG then you can use a  USB drive as well to store the ZIP. Otherwise, as Death noted, side-loading is also a good option. In the side loading mode, the zip is served or as you said, streamed. You would need version 1.0.32 or above of ADB client in your PC to do side loading.
To initiate side loading, from TWRP go into Advanced → ADB sideload → swipe to begin sideload. In the PC, provided that you've adb setup and device plugged in using USB, issue the command:
adb sideload PATH   # PATH is file path of your ROM's zip in your PC.

Once side loading completes, you can do whatever you want in TWRP.
By the way, using MultiROM for OnePlus One you can get rid of all of this dilemma.

By the way, if the appropriate drivers for your device are installed on the computer, TWRP supports MTP mode as well, meaning files could be moved back and forth even from recovery.

Fun fact: TWRP already knows this will happen for some. It fixes this by not wiping all data.
First things first, most custom recoveries factory resets work by wiping apps, contacts, and accounts/settings, but dont format your internal data (images, music, etc) you can notice it where it says:
Formatting /data without erasing /data/media

So, how does this help?? Simple. You cab load the ROM on to the internal,  open the TWRP app, and head to install. Pick you ROM, And tick the appropriate boxes-including wipe data and cache. Go ahead with it and wait.
BUT BE WARNED!
It is not always perfect, and may bootloop or install-loop. It has worked for me often though.


text:
Wifi won't connect to internet
I have a oneplus two that was running android 5. Nothing was wrong until recently when I started noticing the exclamation mark on the WiFi icon. The phone successfully connects to WiFi networks but it cannot access internet. I have to use my 4G for that (yes 4G is still working). I don't recall installing any new app and this was not due to a system upgrade. I know the problem is with the phone becuase this happens at home, at work, and I even tried it at my friend's house. So it cannot be the router's fault. Plus all other devices work. I have tried several solutions that can be found online:

Forgetting all networks and connecting to networks from scratch
Turning WiFi OFF then ON again
Turning airplane mood ON and OFF
Restarting the router
Restarting the Phone
Wiping cache
using apps like this one: FXR WiFi fix and rescue (was not very happy to use it but I had to try)
I even upgraded to the beta Oxygen 3.0 (Marshmellow 6.0)
[did not try this one] Some people on the internet suggests using static ip address. I am sorry but this is not a solution. Especially not at work.

I have seen a similar question: How to reset Wi-Fi settings? but I couldn't really implement the same solution on my phone (maybe I am doing it wrong). Also the symptoms seems slightly different.
I am think that since it was working before, then it must be a software problem. Some file is corrupted or some hidden setting is messed up. So my very last resort is to wipe clean the phone and start fresh.
I do have programming background but unfortunately I am not as fluent in Linux as many posts assume (mainly why the solution in How to reset Wi-Fi settings? didn't work). Please if the answer involves adb or fastboot, do explain the steps for me. I think I have unlocked the phone already (because this is the first thing I usually do when I get a new phone) but I might not have rooted it yet. Is there a way to fix this problem without rooting or wiping the phone?

Pointer: the solution in the linked post requires root. With root-powers, it then would be along the lines of rm -rf /data/etc/wifi /data/misc/dhcp /data/misc/wifi followed by a reboot. Last resort (also without root): do a good backup, then factory-reset, see if it works. If all is OK, restore your apps & data from the backup – else contact customer support as it's most likely a hardware issue then. // Step 3 in this answer should be easy to follow (and safer ;)

Hello @Izzy I will try the reset-factory option, but I have to back up my phone and I hate that. I tried the answer in step 3. I couldn't find the files in his first option (I think it needs rooting also) and the rest didn't solve the issue.

Yes, it needs root (note the second command reads su). And yes, a factory-reset would include deleting the files there – though it's "atomics to kill a chicken", without root it seems the only viable option left.


text:
Why is SMS to contact group not using contact's default number? Sends to wrong number
Scenario: contact group ABC contains 3 contacts, A, B and C. I regularly text the group, and it works fine. One day, contact A gets a new phone and a new SIM. As is my habit, I retain A's old number for a while, just in case, and add the new number to A's contact record and mark it as the default number.
From this point, if I phone contact A, it uses the new number. Fine.
But now, whenever I text contact group ABC, it still sends to A's old number. Not fine.
I have searched for any information or fixes but drew a blank.
This is a Samsung Galaxy Ace 4 btw.

The reason is that the existing conversation thread for contact group ABC has hard-coded knowledge of the phone numbers used, rather than a reference to the contacts. Therefore after setting a new default number for contact A, texting group ABC using the existing conversation thread will send to A's old number. However, texting group ABC by creating a new message and selecting the group from contacts will send to A's new number as expected.


text:
Can I use two phones as one phone with two screens?
I have two phones. I would like to have all my files on one, but be able to have two open at once.
Can I set up the second phone such that it extends / adds a second screen to my phone?
I do not want to use BTSync or similar (the second phone has limited storage).

I don't think it is supported. Maybe third party apps + root.

@SarpSTA Well yes, I would expect some apps involved. Both phones are rooted.

To be clear, you want to use another android device as a second monitor for a primary android device? Do you only want screen extension, or also mirroring?

@jiggunjer I can easily do monitoring with Teamviewer. I'd like to extend the screen, and maybe have  2 apps visible at once (via XPosed window positioning I expect).

I wouldn't use TeamViewer for simple mirroring. It is more for remote control. So yes,  you want an extended monitor.

@jiggunjer Well I like to have as few apps as possible and as TV works for that :-). Yeah, extended screens would be nice.

I've seen a commercial for the IPhone (7?) that looked like you could use multiple screens, side-by-side for stuff like gaming.

Clipboard sharing + cloud drive.
With those two you can do a lot with minimum setup.
For PC like experience you may share your peripherals. Not trivial, though.
The biggest challenge is to sync the clipboard in a safe way. Most solutions are through WiFi router or internet and making a easy Bluetooth connection is a challenge.

Hi, looks like you're the owner of the linked website. While it's okay to refer to an article written by yourself, take note that explicit disclosure is required on the post itself. Please read How to not be a spammer.

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


text:
How do I resize internal storage of an Android Studio AVD image that's stuck at 200MB?
When I try to resize the internal storage partition size in AVD (Android Virtual Device) manager to anything larger than 200MB, the darn thing stays at 200MB. This mounts to /data directory. The problem rears it's head with Android API 19 / KitKat 4.4.x images and possibly others.
I'm on a Mac.

This is a known problem. I imagine that nobody has made the investment to fix because it affects an earlier API version/build. But, if you're on a Mac, here's your fix.

Go into AVD and set the Internal Storage size to 1GB (or whatever size you need -- I've only tested this to 1GB).
Run the image to make sure that it boots up okay. (this is just to rule out any other problem that might be ailing your image)  If you look at the image partitions, it should still be only 200MB.
Stop the image from running.
From the command line, run: gtruncate --size 1g userdata.img. If you don't have gtruncate, install it with brew install coreutils.
From the command line, run: tune2fs -e continue userdata.img. If you don't have tune2fs, install it with brew install e2fsprogs. If you still can't find it after installing, check /usr/local/Cellar/e2fsprogs/{whateverversion}/sbin/tune2fs.
If you also have a userdata-qemu.img file, you can repeat steps 4 and 5 for that image file. If you get an error, best bet is just to delete userdata-qemu.img and let AVD automatically recreate it.
Run the image. Verify that your partition is 1GB. Celebrate.

If you want to change the memory size then just edit the emulator from Android Studio, then "Show Advanced Settings", then change the internal memory size.

then

then


text:
Nexus 6 failed to update OTA 6.0.1 from MMB29V to MMB20X
Urgent help please.
the april 2016 patch was downloaded on the air and I performed update but after restart, The bot screen came with "error" and then the red error message is shown directing me to g.CO/ABH in which flashing is suggested. note after restarting, many applications together with settings app crash. I performed the OTA update again and no chance. Is there any solution except flashing? if the answer is no, so how can I perform a full backup before flashing? My serious aim is no data loss. ftp works through wireless but too slow. the usb mass storage function shows an empty folder on PC. USB debugging is connected but adb shows no device. Also in bootloader mode adb shell failed. The device is not rooted and recovery is locked. Here's the brief last log:

Source: shamu:6.0.1/MMB29V/2554798:user/release-keys
Target: shamu:6.0.1/MMB29X/2704508:user/release-keys
..
performing verification
using existing stash /cache/recovery/.....
deleting recovery /cache/recovery/---/--
..bytes free on /cache (.. bytes needed)
failed to verify blocks (expected ..., read...)
stat "/cache/...." failed: No such file or directory
partition has unexpected contents
failed to read block for diff
failed to execute command [.....]
deleting stash 5a79....
script aborted: system partition has unexpected contents
E:Error in @/cache/recovery/block.map
(Status 7)
Installation aborted
Now tried to update from sdcard (stock rom downloaded for nexus) in recovery mode, got:
E:unknown volume for path [/sdcard]
-- Couldn't mount /sdcard.
Installation aborted
Repeated my try to update from ADB (adb sideload) but this error in the log:
sideload-host file size 1009749527 block size 65536
Finding update package..
I:Update location: /sideload/package.zip
Opening update package...
I: read key e=65537 hash=20
I: 1 key(s) loaded from /res/keys
Verifying update package...
E: footer is wrong
I:verify_file returned 1
E:signature verification failed
sideload_host finished
Installation aborted
I'm not sure even after data wipe the error remains or not, so prefer not to wipe yet, because the phone works!
Should I give up?

the title is wrong: from MMB29V to MMB29X, then I tried to flash shamu MOB30D

First off I'm assuming that the device is already flashing unlocked since you said you tried to flash the update from recovery. You shouldn't need a backup but make one anyways because recovery might be flashed over. Read everything first before you get started.
Download current image (the one you have now, you can try 29X or latest 30D), it's best to restore your system then update for guaranteed results and no misbehavior after reboot (I'm a little adventurous so I'd go for the 30D). unpack the .tgz and cd into the resulting directory.

fastboot flash radio radio.img
fastboot flash bootloader bootloader.img

Note the images aren't radio.img and bootloader.img, just do radio and tab and bootloader and tab.
Unpack the .zip that was extracted from the .tgz. cd into the resulting directory.

fastboot flash boot boot.img
fastboot flash system system.img
fastboot reboot

This should maintain all your data on the device after you reboot and I'm about 99 percent sure it'll work. So you shouldn't be needing to backup. If you run into problems after reboot you'll need to flash cache as well.
Reboot into bootloader again and use

fastboot flash cache cache.img
fastboot reboot

If it still doesn't work, you'll need to have a backup, reboot to fastboot and use the flash-all.sh that was extracted from the .tgz file. This would delete all your data but you can flash recovery again with fastboot flash recovery <image filename> and restore Data from the backup you did.
PS. If you have to flash cache you might lose some data but only relating to system apps and services.

Thank you, it was a silly incomplete ota update to Android N preview from Google and the main problem was the settings app crash. I got the solution from other caught in users: update from ota image provided by Google special for such problems. Unfortunately all data got lost before!


text:
Contact App of Samsung A5(SM-A500G) become slow after software update (5.0.2)
After software update on my Mobile phone Samsung Galaxy A5 (SM-A500G), the Contact app become very slow to use. When I am cleaning the call log to zero then Contact app is working fine till the call log count reach the 4-5 in count. Please suggest the solution other than factory reset.

download some contact app from play store n disable the samsung contact app in settings.

How does this resolve the issue?

How much reliable is external Contact App? Will it create any instability in the mobile? Are you suggesting any external Contact App? Thanks


text:
Phones wifi turns off automatically when im in wifi
When I am using my wifi, after many minutes it disconnects and it will show in my screen that I am connected to my wifi again. What do I do? I checked everything.

This happens to me as well.
Try Disabling power saving apps and see if it works out, if not backup your data and try factory resetting your phone or reflashing it (android) or reinstalling the phone's software via your phone manufacturer'sPC software. If that doesn't solve your problem your phone might have a problem with the antenna.


text:
Debug InputDevices process / xbox360 wired controller

Wired xbox 360 controller - works fine on PC
USB otg cable - my mouse works fine on the rooted phone (funny to have a mouse on a phone btw)
Connecting controller to phone or tablet - nothing happens (on tablet I have USB plug notifications)
Xbox 360 layout file is there (Vendor_045e_Product_028e.kl)

here:
#
# XBox 360 USB Controller
#

key 304   BUTTON_A
key 305   BUTTON_B
key 307   BUTTON_X
key 308   BUTTON_Y
key 310   BUTTON_L1
key 311   BUTTON_R1
key 314   BACK
key 315   BUTTON_START
key 316   HOME
key 317   BUTTON_THUMBL
key 318   BUTTON_THUMBR

# Left and right stick.
# The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd.
# This confuses applications that rely on the flat value because the joystick actually
# settles in a flat range of +/- 4096 or so.
axis 0x00 X flat 4096
axis 0x01 Y flat 4096
axis 0x03 Z flat 4096
axis 0x04 RZ flat 4096

# Triggers.
axis 0x02 LTRIGGER
axis 0x05 RTRIGGER

# Hat.
axis 0x10 HAT_X
axis 0x11 HAT_Y

The logcat provides me only this log when I plug the controller :

04-20 00:06:35.792: W/ContextImpl(2292): Calling a method in the
  system process without a qualified user:
  android.app.ContextImpl.sendBroadcast:1187
  com.android.server.usb.UsbSettingsManager.deviceAttached:621
  com.android.server.usb.UsbHostManager.usbDeviceAdded:156
  com.android.server.usb.UsbHostManager.monitorUsbHostBus:-2
  com.android.server.usb.UsbHostManager.access$000:38

Which links me to this code source page : https://android.googlesource.com/platform/frameworks/base.git/+/android-4.3_r2.1/services/java/com/android/server/usb/UsbSettingsManager.java

& this SO post which underlines somethings was not properly coded in the OS since it seems to raise a warning for everyone : https://stackoverflow.com/questions/16013787/using-sendbroadcast-in-a-system-app

I will go pick up a keyboard and try to check the cable one more time, and I should probably try to find another controller pad.

Edit : New physical keyboard connects just fine, was able to type into the android, so the cable is not the issue at all.
Still I want to understand why it is not working as intended. any ideas on how to go down in the OS inner workings and see what is (not) happening?


text:
2013 nexus 7 usb help
My Nexus 7 all of a sudden stopped sending data through usb OTG and i tried to erase cache through TRWP but ended up deleting the OS. Now I am stuck with a device with no OS. I cannot mount the USB for my computer to recognise it so that I can restore it. I tried ADB sideload but it doesnt load and gets stuck on starting...
If I click on Mount, I cannot click on the USB-OTG box. My computer does have the correct drivers for the USB as it used to work on it before but since the OTG stopped responding to data I am now stuck and cannot push a restore image to the device.  I tried different OTG cables, different computers. None of the computers even detect a device as plugged in. Whether I boot into bootloader or recovery I just cannot get the PC to even acknowledge the fact that something is plugged in. As a result I am just not able to flash it at all. I tried NRT with the soft-brick option but that fails too because it says no adb connectivity.
Any help would really be appreciated.
I found this issue and have the same problem is there anyone that can help?

USB-OTG (see [tag:usb-on-the-go]) is a system for letting your phone be the "master" when you plug a USB peripheral into it. It's nothing to do with connecting to your PC. It's very confusing to try to understand what you're trying to connect to what, so please [edit] your question and try to describe the steps you've taken in clearer terms.

ADB requires a running system on the other end. If I understood correctly, you've wiped /system, so there's no OS to boot up. Unless you've got a custom recovery supporting it, there won't be any ADB server running there either – so no ADB (note: AFAIK TWRP supports it, you might have to enable it explicitly there). What's left to check is boot to bootloader and try accessing via fastboot. If that works, you might be able to side-load a custom recovery or even directly install a ROM.

Try this link .... Worked for me https://developers.google.com/android/nexus/images#instructions


text:
Android app x11 forwarding to computer
I have "SSH Server" app installed. I'm able to connect and launch apps using am. I want to forward the apps through X11 forwarding to my linux computer. Is that possible?
There is a "X11 forwarding" configuration in "SSH Server" that I have enabled, although I have no idea what the effect is.
So far, when I connect to the phone I get:
$ ssh -X user@phone
user@phone's password:
X11 forwarding request failed on channel 0
u0_a107@phone:/ $

So it seems I have some extra issue with X11.
Anyone has tried this before?

What you're trying to do is not possible. Android has its own windowing system, not X11, so X forwarding won't do anything on Android.
There are other screen-sharing systems (such as VNC) which might be more suitable for what you're trying to do. This answer talks about a Samsung-specific app, and this question has a couple of options. The remote-access and remote-control tags have a lot more information.


text:
How to turn an old phone into a Chromecast Audio?
I've been using my old Nexus 4 with cracked screen to play music from iTunes (shudder) to speakers. I'd like to be able to cast from my phone with Google Play Music to the Nexus instead.
I've tried CheapCast but it doesn't seem to work.
Anything else I could try or do I have to shell out €40 for a ChromeCast?


text:
YouTube car media output not working on bluetooth
Since the latest update on my Samsung Galaxy S6 (Android 6.0.1) I'm not able to play any kind of sound from the YouTube app true my car bluetooth media output.
When I play something from my music player app it all works fine. Calling (making and receiving) also works fine.
Here are some things I noticed:

Music player app gives me output because I've noticed it send the music to my car by bluetooth
YouTube app doesn't give me output because I noticed it goes true streaming services (something YouTube it self has integrated when connection to an external device)
My connection to my car automatically dismisses when I play a YouTube video. And automatically reconnects when I want to play it with the music player app.

Maybe try this SoundAbout. Not tested by me

Hi @beeshyams thanks for the comment. I've tried it out but unfortunatly it is not working for Youtube.


text:
Rooted device, modified the hosts file and rebooted but still have access to blocked sites
I tried to block Facebook on Chrome by changing the hosts file but to no avail. What could possibly went wrong?

Modifying hosts file does not have any effect

I followed exactly what the op did and rebooted, but I could still have access to Facebook.

Your hosts file is completely broken. There should be no space after any dot in a hostname. Remember: It's facebook.com not facebook. com. The latter one assigns only facebook. to another IP. Any errors in the hosts file is silently ignored and that's it.

I'm guessing whatever keyboard you are using assumes the periods to be line ends and adds the space for you during the construction of these lines. Investigate how to turn that off while composing this file.

@GiantTree If you look at the second screenshot, that appears to have spaces too, in a place you wouldn't expect any. I suspect it's an awful font rather than spaces actually in the file.

As a plus to what @GiantTree said, I'll point out that lines 3 and 4 do nothing.

@DeathMaskSalesman depends on the local network. If one host has the hostname facebook (that's possible) then it's blocked as well. It's just not needed because there won't be a host with that hostname.

@GiantTree Well, that's what I meant. The system tries to redirect the full URL to the IP on the left, so, technically, it couldn't understand a website name devoid of its domain.

Wow. Thank you all so much with such a quick response! There is no space between facebook.com Yes, it's just the font problem. Also, I was trying to add more lines like line 3 and 4to see whether it would work.

Whenever I type facebook.com on chrome, it would redirect me to m.facebook.com.

@GiantTree I just used another device ( Nexus 7 2013 4.4.4 rooted) to test: cleared chrome data. Add the line m.facebook.com (no space between.and com). Rebooted. Still doesn't work. Very frustrating... any help is much appreciated:)

Can you try with a different browser, possibly with no history of facebook being opened there?

@Firelord I just did. I cleared all data on the stock browser and dolphins browser. I rebooted and tried to access Facebook on them. I still can. But thanks for the suggestion though:)

Just try adding these three hosts name and replace ip address 127.0.0.1
    facebook.com
    www.facebook.com
    m.facebook.com
    mobile.facebook.com

As I checked when typed facebook.com, the site will be redirected to m.facebook.com, so we won't be able to access.


text:
TWRP stuck at splash screen - Nexus 6P Android N
I am following this guide: [GUIDE] Unlock/Root/Flash for Nexus 6P
The bootloader is already unlocked. Now I'm trying to flash the TWRP recovery. (Section 2). As the device runs Android N, I first flashed the modified boot.img (like in the guide, also tried it with stock boot.img) and then I flashed the TWRP recovery like this:
username@my_pc:~/Android/Sdk/platform-tools$ ./fastboot flash boot '/home/username/Downloads/boot.img'
target reported max download size of 494927872 bytes
sending 'boot' (12272 KB)...
OKAY [  0.333s]
writing 'boot'...
OKAY [  0.185s]
finished. total time: 0.518s
username@my_pc:~/Android/Sdk/platform-tools$ ./fastboot flash recovery '/home/username/Downloads/twrp.img'
target reported max download size of 494927872 bytes
sending 'recovery' (16932 KB)...
OKAY [  0.453s]
writing 'recovery'...
OKAY [  0.251s]
finished. total time: 0.704s

Then I rebooted to the bootloader again, and then booted to the recovery mode, like explained in the guide:

Use the volume keys to scroll and power key to select the Reboot Bootloader option. Once the phone has booted back into the bootloader you can use the volume keys to scroll and the power key to boot into your newly flashed recovery. It's now safe to disconnect your usb cable.

However, it just hangs at the TWRP splash screen:

The phone still works and can successfully boot to Android N. I know the bootloader is unlocked because of the unlock symbol at boot logo, and I rooted it (same guide) on Android Marshmallow.
About phone (click for larger image):

What is the content of the .twrps file, stored in the internal storage, under the TWRP folder?

@DeathMaskSalesman The file doesn't exist. I left it at the TWRP splash screen for about a minute, and then checked for the file.

That's a file used by TWRP for remembering its preferences. It usually gets created by the recovery itself. What's your TWRP version?

twrp-3.0.2-0-angler.img. I downloaded it here: https://dl.twrp.me/angler/ @DeathMaskSalesman

See if you can find a .twrps somewhere, and place it manually in the abovementioned folder. This may or may not fix the issue, but you might want to give it a try.

@DeathMaskSalesman What do you mean by finding a .twrps file?

Fire up Google, and search for such file. See if you can find one, download it and place it in the TWRP folder.

I had to format user data to get twrp to work ... but there is a guide on how to do it without losing your data http://forum.xda-developers.com/nexus-6p/general/guide-android-nougat-developer-preview-t3410906

Please update to the latest version of TWRP for your device (3.6.0_9-0). Around 4 thousand changes have been made since 3.0.2-0 (around 800 files).
Source: GitHub Comparison

While recommending to use the latest version is generally not a bad idea, it might be more reasonable to mention the minimum specific version that works, because at the time the question was posted in 2016, this version hasn't existed yet.

Fair enough. I just checked that. But they still have no logs from recovery.


text:
Setting Default applications through ADB
I have an android device (Android 4.4) with two launchers. One comes with the device and the other one is home made. I have the following questions regarding this scenario:

How can I set the default launcher via ADB? (same as selecting one and pressing Always)
How can I clear the default launcher selection via ADB? (same as entering to Default Applications and clearing Defaults)

Please do not submit answers or comments that do not consider the use of ADB. I'm not interested in any of those.
Also, I already know about disabling one of the launchers via ADB (pm disable app_package_name) and then re-enabling it, but this is not the same as setting the default launcher or setting the preferred activity. You can see the difference in the next image:

Is the use of Key Events permitted? Also, setting for default apps is stored inside /data/system/users/USERID/package-restrictions.xml. Users can't write it without root access.

@Firelord No, it is not permitted the use of Key Events. Still +1 for the idea, maybe for the future. Regarding the /data/system/users/USERID/package-restrictions.xml file, that is exactly what running pm disable app_package_name and then pm enable app_package_name does.

It is not necessary to uninstall the default launcher, you must know it's package name before of doing so, which if you don't know you must get with adb shell cmd shortcut get-default-launcher.
In order to set your launcher as default you just have to call the following
adb shell cmd package set-home-activity "your.package/.YourLauncherActivity"

How do you revert this setting?

@Sergio, the fast way is uninstalling your home application and the original one is automatically set back as default. The (IMO) best way is finding in advance, before of applying your launcher, the original one with adb shell cmd shortcut get-default-launcher and use its package name and activity name to manually set it back as default with adb shell cmd package set-home-activity "your.package/.YourLauncherActivity"

@Sergio I have to make a clarification on my previous comment: if you have more than 2 home launcher applications, uninstalling your custom one will probably not automatically set the original one as default but it will trigger the picker where you have to manually chose the one you want. Another reason why setting it back by knowing its package/activity name in advance is the best way.

Thanks for the reply. Finding the default package before setting a new one is a good idea.

I know this is not the answer of the asked question, anyways this may helps someone regarding setting default app links (deep-links):
Android 12+ (since API 31)
adb shell pm set-app-links --package [PACKAGE_NAME] 1 [URL_HOST]

e.g. adb shell pm set-app-links --package com.company.myapp 1 myapp.company.com
Android 11- (API 30 and below)
adb shell pm set-app-link [PACKAGE_NAME] always

you can remove (Uninstall) the default program you set using ADB by doing this :
adb uninstall app.package  ..... //for example (com.example.homeapp)

If you don't want to remove the app .. here is a quick hack to do it:

adb shell
am start -a android.intent.action.MAIN

That way you will have a picker with all apps on your devices that listens to Main Action

Choose any home screen app you want . then go to settings and set it as default.

Copied from this answer


text:
Message thread with mute icon (speaker w slash through)
My message thread to my GF has a mute icon (speaker w slash through) and it doesnt alert me when she messages, how do i get rid of that? Phone just recently updated to marshmallow > Galaxy S6

There's a drop down box for her number when you're inside the thread. If you hit that and then tap on notification settings you can turn notifications for her sms back on.


text:
Pandora starts playing, un-prompted, in middle of the night
Samsung GALAXY S-6 with operating system 6.0.1. I use the sleep function on Pandora and it works well. However, the application starts unprompted at random times during the night. Not good, solution?

Do you have any Bluetooth devices paired that have the ability to start media playback?

I had this happen for awhile, Pandora would just start playing at random... as @Bort mentioned, it was my BT headset. For some reason while charging it would sort of turn itself on momentarily at times for some unknown reason, starting media playback. Turning the BlueTooth off at night on my phones fixed the problem, and after replacing my old Plantronics headset with a new one, it stopped occurring, although at times if I have 2 phones active at one time, and the right circumstances occur well hanging up a call on phone 2, Pandora still starts at random.

I do not have any bluetooth devices connected and the bluetooth function is not activated on the phone.

My HTC 10 has started doing this. Seems to always happen right around 1:30am. I do have a Moto360 attached. I have checked both the phone and the watch for any alarms and such. Any ideas?

I have this problem and I don't have Bluetooth on ever. Went off at 2am while I was sleeping! Galaxy s5.

I just had to uninstall it since I couldn't figure it out. Not only did it start spontaneously, I couldn't even turn it off because it didn't show up in my list of running apps. It was like it was on, but not on. I would have to power down my whole phone to get it to stop. It's not worth the trouble, there are way too many other music apps out there to be dealing with this. No Bluetooth devices connected at the time and also in an area with a very weak WiFi signal.

My phone just woke me up because it decided to play Pandora really loud at 11.30pm. the app didn't show up im my open app list either and I had to open the app and shut it then to stop it. Plus the volume was different as it played really loudly despite the volume bring set much lower when I went back in to check.
My phone is a Samsung s6 which recently updated to Android 7 nougat

@acejavelin you should make that an answer


text:
Gmail: "Couldn't sign in" error with latest version, but other google apps sync just fine. Older Gmail version works fine
While using the latest version of the Gmail app: 6.3.117716127, I cannot sync my mail whatsoever.
Update: 6.4.120760496 has the same issue.
Please note that this is NOT a universal "Google" sign in problem, where you get a black background with white text and you have to enter your credentials, although the message is the same ("Couldn't sign in")
This is for the Gmail app only. Observe the error in my screenshot below:

Tapping "Sign in" just makes the message at the bottom go away, but nothing else happens, and it doesn't sync. If I try refreshing my inbox, it will bring that sign-in message back.
My last sync with the newest version was April 13th. Then I reverted back to an older version of Gmail from November of 2015. That version syncs just fine.
You can see email from April 19 in the screenshot, because I tried upgrading back to the latest version, but it still wouldn't sync.
Deleting the cache and data doesn't help.
I did not change my Google password.
My phone is a Galaxy S4 running Android 4.4.2 (Hyperdrive)

Same issue on my Samsung Galaxy Note 4 starting from 6PM April 21, 2016 (last successful sync) on the same stock Android 4.4.2 Hyperdrive. Did you find solution?

No, I am still using an old apk. My only bet right now is to wait for another update to gmail. I'll be sure to update this question if I find anything.

What's wrong with this question?

I think it's a problem of the Gmail app itself. Does it work in other devices ?

You deleted the cache/data of the gmail app?  See also https://forums.androidcentral.com/google-nexus-4/314980-problems-gmail-i-keep-getting-message-saying-couldnt-sign.html

Its time to update your phone or buy a new one. Its possible to update to Android 6, 7, 9 with a custom ROM. Android 4.4.2 is no longer among the used things, that's why you have problems. The GMAIL app requires certain regulations and security features to be followed. The old apps do not have them. This is why its not working probably, also the access for less secure apps in you google account is probably disabled. You can try enabling it. Soon I will receive the Ulefone Armor X7 and Xperia X Compact, I can recommend you a phone if you want.

@CFCBazarcom Who are you replying to? This question was asked in 2016.

If its not accepted to answer, I will delete my comment. I see a highly active question and it appears at the beginning of the search.

Android 4.4.2 is officially discontinued for newer Gmail versions.
That's all.
You can check out custom ROMs like this that is made on top of latest Android versions to upgrade your device's OS.


text:
Not getting any internet on my phone even though it says I'm connected to wifi
My internet works fine on every other device in my house, and it connects correctly on my phone(Samsung galaxy S2), however when I try to load up any page on the browser, it says I'm not connected.
Can anyone suggest what may be the problem and what I can do to counter it.

Is it just the browser having that issue, or are other apps affected as well? Have you checked in Settings › WiFi › More what the status of the current WiFi AP is?

It might be due to the network connection of your house's wifi not completely connected yet.
Do ensure that your phone display Connected to (name of your house's wifi) before you continue to surf the net.
Do take a look at the up and down arrow of the wifi connections that its moving as well. Else, try to on and off your wifi and try again till you are completely connected to your house wifi.
If not, you can try to on and off your modem of your house and try to on wifi on your device again.
Hope it helps!


text:
Updated Android phone with Android N Beta, Will factory reset revert the OS version back?
I updated my Android phone with Android N using Android Beta Program, Now if I factory reset my phone, will it revert the OS version back to the old one?

No. Factory reset Will restore to current OS as explained here

A factory reset will not downgrade your device to Marshmallow. To downgrade to Marshmallow, unenroll your device: https://www.google.com/android/beta.


text:
Bluetooth headset and HD voice
I'm trying to achieve better quality for remote communications. Thus, I'm trying to use a high quality headset for Skype calls.
The problem is, when connecting a headset to Android phone (both of them have HD voice support), the sound quality is very limited, i.e. much worse than Skype gives via the same phone's speaker & microphone.
Supporting cases:

When I listen to music from phone using headset via bluetooth, the quality is good.
When I use USB dongle (which is provided for headset with UC support, and appearing as audio device in system) for Skype with my laptop, the quality is good.

In all cases, I was using WiFi (NOT mobile data).
I was using Skype call testing service for all tests.
Is there some way to force codec or bluetooth profile to enable HD voice with Android for headset?

Phone: Galaxy Note 3 (has HD voice support).
Phone OS: Android 5.0.
Skype version on the phone: v6.13.0.608
Headset: Jabra Motion UC (has HD voice support).
Laptop: HP EliteBook 8460p
Laptop's OS: Ubuntu Linux 14.04.03
Skype version on laptop: 4.3.0.37

@beeshyams does it able to mask the headset, so apps will think that there's no headset attached?
I've found that it's Skype app who giving bad quality, specifically for bluetooth.

The app description claims that it does but I am unable to verify. You may like to check, though you have localized the problem to Skype. In the absence of verifying myself, would not like to post it as answer to a bounty question

App says Wired Headset detection - ALLOW or IGNORE the headphone/headset plug in/out detection.
Wired Headset microphone - DETECT or IGNORE that a headset has a microphone when plugged in

Could you add some more detail about the hardware and the configurations in your examples? For example replacing "When I listen to music from headset" with "When I connect the headset to (device) using (connection method) and use (app) to play music". What OS is running on your laptop? What version of Skype is running on your laptop, and what version on your phone? Is there any difference depending on whether you are on mobile data vs. Wi-Fi? How does the sound quality for ordinary phone calls compare to Skype (for both headset and built-in)? How about your mic's quality for the other person?

@DanHenderson, I updated the question. Not checked mobile data vs WiFi though - everything was using WiFi. As for ordinary phone calls, that's an interesting question too, but there's a carrier factor involved, so it's more complex. For me it looks like bluetooth profile -related issue.

Also, my flatmate's girlfriend calls me frequently via Skype. Sometimes I answer from phone, sometimes from laptop. And her voice sounds much better when I answer from laptop :)))

I've found that it's an issue of Skype application.
E.g. Google Hangouts gives good sound quality with and without bluetooth headset both.
I've filed a bug report here: https://community.skype.com/t5/Android/Forced-low-quality-voice-with-bluetooth-headsets/td-p/4366926


text:
What's the easiest way to sync music to my phone?
I'm now on CM13 (Android 6) and rsyncing in will not work due to permission errors (and the sudo command doesn't exist) So I ask you, are there any programs to sync my music across? I don't want to use services that require me to upload it and then download it again due to bandwidth and speed issues.
I have also tried adb-sync but it just errors out (as is expected with adb!).

You can use su -c 'command' rather than sudo command.

It still didn't work, I had tried that before posting. Thanks though!

You could use Bittorrent Sync to copy the music folder on your computer to your phone. The whole thing will complete on your local network (as long as you don't leave it!). I recommend Bittorrent Sync assuming your local network's speed isn't an issue.

Hint: there's no sudo on Android, just su. And for using ADB as root the daemon on the Android device must run in "insecure mode" (i.e. as root, e.g. using Chainfire's "insecure adbd" app).
If you don't want to go that way, there are easier alternatives which you can e.g. find in my list on Synchronizing Files and Folders. I'd recommend taking a look at FolderSync, which I use myself (just in the paid variant). Supports a plethora of protocols for all kind of systems (including SFTP/SCP to work with Linux machines, and CIFS/SMB for Windows). Lets you define folder pairs to sync. You can even setup a scheduler for it, and tell it to only sync when you're connected to your home WiFi. And more (e.g. cloud, which you stated you don't want ;)

Setting up an SSH server on Android 6.0 is fairly easy and works well with rsync. I installed SSHDroid. You need to use the SD:/Android/data/com.* path relevant to the app for the files you are syncing however.


text:
How to set SELinux to Permissive
Since installing XtreStoLite 3.1.1, SELinux is set to Enforcing (when I try to boot into TWRP recovery). I tried setting it to permissive (Enforcing = 0) using a terminal emulator (the phone is rooted), but to no effect. It would appear that this is preventing me from booting to TWRP to install Aroma.
Any ideas?
(FYI, SELinux Mode Changer didn't work)

If SELinux Mode Changer doesn't work, and you are properly rooted, then your kernel likely isn't compiled with permissive mode and was compiled with the flag EXTRA_CFLAGS += -DCONFIG_ALWAYS_ENFORCE=true which doesn't allow permissive mode to be set in anyway.
You will need to get the kernel source from the manufacturer, which should be available if they are honoring the GPL license, and in the file ~/android/kernel/security/selinux/Makefile
Find the line of code that says:
EXTRA_CFLAGS += -DCONFIG_ALWAYS_ENFORCE=true
and change the value of it to false and recompile the kernel and make a zImage and flash it to boot.

Example Source for reference

That being said, TWRP should support SELinux Enforce, just never EVER run a fix permissions

It actually turns out that I had to flash a different version of TWRP and then I was able to boot to it. It was on an obscure website that I never would have found by myself, but someone on xda-developers pointed me to it. Apparently, it doesn't even matter that SELinux is is set to Enforcing, as that isn't causing any ill effects now. Thanks for you help, though.


text:
Access to Android phone's SD card from PC, without USB
This question is classical: how to access the phone's SD card from PC?
 Of course USB works very well, but I'm looking for a wireless solution.
I've already tried various apps and solutions, but very often, with these wireless solutions, I didn't have real full access to the SD card, like I would have for a USB flashdrive or a harddrive or a CD-ROM. (see image below)
Thus my question is : how to access the phone's SD card from PC, wirelessly, with full access to SD card from PC?  (I mean: having a drive letter F: and being able to run .bat batch files on this SD card from the PC; this works when connecting with USB cable)
Note: I've tried tools like installing "FTP server" on phone, connecting by wifi, and then using tools on PC that make FTP look like a removable disk. But this was very tricky, and at the end didn't work well. And above all it was not handy on every day use.

Are you rooted?

@MatthewRead I'm going to do it soon. Can this help?

What you're looking for is to setup your phone as a SMB server. This question and answers has a lot of good information about why you can't really do it unless your phone is rooted. It also has a couple alternative workarounds.

@Basj I'm aware of some FTP/WebDAV server apps which would start the server automatically as soon as you launch them. You can use such an app with an automation app, like Tasker/MacroDroid/Automate in such a way that whenever hotspot is turned on or device is connected to a particular Wi-Fi, launch the server app. In your PC, all you would have to do is refresh Explorer. Have you already tried this approach?

I personally use FTP to achieve this...
You can try it too. All you'll just need is an understanding of how ftp works which is very basic by the way.
Download any app that provides an ftp server on your android devices, they are always pretty easy to use. I currently use use ES File explorer's functionality to do this.
As shown here

Selecting Remote Manager is all you need.
After the ftp services has started on your android device and is on the same network as your computer, you should then spring up windows explorer [win-key + E] or even a web browser and enter ftp://phones_ip_address:ftp_listening_port into the address bar
Note: the column separating address and port.
Lemme know if you get this

I just read all of your post and found out you already tried stuffs like this... forgive my being forward

Indeed, I already tried things like that, but at the end there's no real time gain in comparison to plugging a USB cable if I need to : open FTP app, start the server, wait for the connection time in Windows Explorer (it's really long to explore a FTP drive in windows explorer).
I was looking for a more direct solution

Rather than using the FTP support built into Windows File Explorer (which is not really much good), I would recommend using a dedicated FTP client such as FileZilla.  Doing so will make your life much easier.

@PaulSanders Filezilla is unable to find the sd card. Only the internal storage

@Gulzar sd card?  On Windows?

@PaulSanders, Yes, the OP was about reading the sd card, wirelessly. I am on Windows and filezilla works great, but not for the sd card


text:
Secure Android browser
The desktop versions of Firefox and Chrome use Google’s Safe Browsing service to warn the users about known bad websites.
Looking at a Samsung handset running Android v5 I noticed that neither the built in browser nor Chrome has this feature. I then downloaded Firefox for Android and CM Browser (due to it's rating) and they don't have it either. In CM's case it has an option under Security but a url that fails on the desktop, it happily loads.
Is there a browser that uses this? Or should I look to some AV/Security product to get this protection?
EDIT:
With Firefox on the desktop, the blacklist is updated every 30mins. It has been hours since I tried both Chrome and Firefox on Android and neither is reporting the same URL as bad. Could be they are using a different list?

Chrome for Android definitely does (http://www.theverge.com/2015/12/7/9865928/google-chrome-safe-browsing-android-malware). The safe browsing feature isn't yet supported by Android WebView so any WebView-based browser (e.g. CM browser, Ghostery, or Lighting Browser) lacks it.
Firefox on Android should support safe browsing as well, as per their blog posts: https://blog.mozilla.org/futurereleases/2012/11/26/firefox-for-android-beta-improves-phishing-and-malware-protection/ and http://www.morbo.org/2012/10/phishing-protection-on-mobile.html. Not sure why doesn't it work for you.

I've just rechecked both Chrome and Firefox and both fail to reject a URL that is rejected on the desktop. They either using a different blacklist or their feature is broken...

Yeah, there seems to be something different about mobile versions of Chrome and Firefox. I tried testing with the special test URLs that work with desktop Chrome, but they don't work with Chrome for Android. Special Firefox test URLs also don't seem to work with Firefox on Android either. There is a bug on the Chrome bug tracker about this: http://crbug.com/438613, let's see what they will say. But Chrome, Firefox and even Safari are supposed to use the same Safe Browsing service: https://en.wikipedia.org/wiki/Google_Safe_Browsing, so that's... interesting. Thanks for raising up this issue!

@Vic There is a testing page that lists different test URLs for Chrome on different platforms: http://testsafebrowsing.appspot.com/ The first two links are for Chrome for Android. Safe browsing feature is definitely there.


text:
Missing widgets bar/docker
It seems I have missed the option for adding widgets on Android 5.1 (this is on a chinese branded phone), maybe I touched on the wrong place. Now, when I long tap over home screen I get nothing but a white rectangle that allows me to move the clock and the bottom icons but nothing about adding widgets. I remember I had the widgets option but I somehow missed it. Device has installed a few apps (firefox and rss reader) and uses the stock launcher3 (I already tried to clear data and cache with not avail). Thanks for any hint you can give me!

No solution but a workaround: Use Nova Launcher or Apex Launcher - lightweight, customizable and easy to set up :)

OP here :-)Yeah, thanks. I already did that (well, not Nova but Catapult instead) and worked fine -widgets can be accessed from here- so something went really bad with the stock launcher. In the meantime I'm going to find a better launcher but is there any way to reinstall a stock app without resetting the full phone? Thanks!

You could try to reset the app settings - yes. Normally you'd have to go into Settings -> Apps -> Launcher3 (make sure that you can see all apps - you might have to swipe from right to left to change which apps are shown) -> Delete  Data and cache. Then you could try it again. Best case: it works - worst case your homescreen layout was deleted and you have to do it again and you still can't add widgets :P

Tested that way.. many times. But seems to be of no effect. I mean, clearing cache, clearing data, stopping the service... and all I get is the "welcome" message again, restored icons but same effect when long-tap on homescreen. It's a really weird behaviour.


text:
Get SMS and NOTES from DEAD android 4.4 (Qmobile x30)
Description
I guess my android OS has crashed. It is a Qmobile x30 with Android 4.4.
Current Condition:
I opened Messaging app, it showed black screen for 4-5 seconds and then back to menu. I restarted it and then never able to see the Home... (I thought it as crashed). I don't know much about it.
Now it's stuck on boot logo "Noir". Touch screen isn't working and the OS is not loading.
The problem is as shown:

Click image for larger version
What do I want?
I just want to get my all the SMS and notes from the default NOTES app.
How can I get this?
What I've already tried
Booting to recovery mode. The recover-mode is showing big pink "Q" and text label "No Commands". There only options to Tests the device are available, nothing else.
I used ADB, It's not connecting the devices when i check with adb devices command. it's showing empty list.

Your device uses MTK6572 chipset which is supported by MTK Droid Tools and SP Flash Tools. You can use any of them to backup userdata partition. However, I don't know the file type of the backup so can't comment on extraction of desired data.

@Firelord. thank you, I tried a lot to recover my SMS. Now, I sent for claim because its warranty period was active. when it'll come back with new OS, i'll try to recover SMS and notes If it would possible.

Ouch. The "no commands" usually shows up if one wiped the corresponding system partition (/system for normal boot, /recovery for recovery, or /boot for any), which a stock recovery doesn't offer. You just wrote it "crashed": was that while applying some system update?

@Izzy. Actually it was as: I opened Messaging app, it showed black screen for 4-5 seconds and then back to menu. I restarted it and then never able to see the Home... (i thought it as crashed). I don't know much about it.


text:
How to keep GPS turned on (not allowing to switch it off)?
I have bought an Anti-Theft application. The problem is that this application will not work properly if GPS is switched off. So I'm looking for a way to turn on the GPS and never turn it off (i.e. lock it so it stays on).
How can I achieve this?

Do you mean that you want to disable turning off GPS completely, to make sure the thief can't turn it off?

Most Anti-Theft apps can turning on GPS automatically. And some Anti Theft apps has the abilty to receive a command from sms if there are no internet connection.


text:
Sold her phone but forgot to uninstall her whatsapp
My friend forgot to uninstall her Whatsapp on her previous phone which was bought buy someone she doesn't know. When she try to use her whatsapp using the same number, she got a reply from the person who bought her phone. The person doesn't know how to uninstall the whatsapp. Any solution to remove that person from using whatsapp with her number?

If you still have contact to the buyer, and cooperation is given: Uninstall is as easy as going to Settings › Apps, scroll to the app's entry, tap it to open it, and then hit "clear data" plus "Uninstall". After that, buyer should also do a factory-reset at least (to disconnect it from any other accounts such as Gmail etc, and have a "clean device").

Please tell your friend to ALWAYS DO A FULL WIPE of the device before to sell it. This is very important for your privacy!
Anyway, please refer to the official whatsapp FAQ to solve your problem: https://www.whatsapp.com/faq/en/general/24460358

If you are not ready to activate WhatsApp on a new phone with the same
  number, we can deactivate your account. Email us the phrase
  "Lost/Stolen: Please deactivate my account" in the email body and
  include your phone number in the full international format as
  described here. Please note that we are not able to help you locate
  your phone. Remote WhatsApp deactivation from another device is not
  possible.

Whatsapp is tied to the phone number. If she logs into another device, the new device takes over. The app will keep asking for verification in the old device. The app deactivates but all downloaded media files (voice messages included) remain on the device storage.

Don't sell phones that you've used. Melt them down. Otherwise you are selling your personal data which can easily be recovered.
What she needs to do is install whatsapp on a new device using the same number that her old device had. That will lock the whatsapp on the old phone and force the new owner to put his/her new number in.


text:
Powersave governor VS Marshmallow Doze
After searching on Google and XDA for an answer (which I didn't find), I decided to pose this as a question here.
So, I guess that the majority of us know about the so-called big difference between Android Marshmallow and its predecessors: the Doze feature. We do know that it manages wakelocks and the such in a clever way, apparently granting longer autonomy to a device. I had the occasion to test it on my device, and at least for me, it is true.
Now, due to some issues (including general unsatisfying changes implemented in Marshmallow, as well as random reboots), I decided to fall back to Lollipop. Still, even if I find it to be more reliable than Marshmallow (probably because of the fair long time destined to its development), I noticed the difference in my device's battery autonomy: despite it being in standby for the same amount of time, the battery discharges faster than it did when I used Marshmallow.
So, here's my question: is it possible, with a powersave governor in a Lollipop Android, to achieve the same, if not least, battery consumption that one could notice with Doze in a Marshmallow Android?
I prefer not to take advantage of Play Store apps, since mine is a question whose solution has not to be found with any auxiliary third-party software, and please support your answer with actual facts or appropriate research.

Doze is different from powersave in that it utilizes the deep sleep feature of the kernel, resulting in less power consumption than using powersave but being active all the time. powersave forces the CPU to work at it's lowest speed possible which is not the most efficient one. Thus using doze you will experience less battery consumption (note to myself: post a more elaborate answer).

deep sleep uses so little power because it does not run the CPU at any speed (literally 0MHz). It's a hardware feature that works together with the RTC (real time clock) to wake the CPU at a given time but keep it sleeping the rest of the time.

@GiantTree So, in fact, the frequency of a CPU in deep sleep (e.g. Doze) is always less than the frequency of a CPU governed by a powersave governor. Did I get it?

Yes. In fact the CPU is not even running while in deep sleep. That's why there are people complaining about wake locks that are preventing deep sleep. Those are now ignored with doze if they are only running in the background (ie. not playing music for example)

@GiantTree Given your explanation, if I would emulate the features of Marshmallow's Doze on a Lollipop, I would necessarily need a third-party app, correct?

You are correct (the fact that you could write your own code doesn't count, as that again would result in an app ;) Best known candidates for this purpose are Greenify and the Amplify XPosed module.

@Izzy Thanks for the two recommendations (even if we're going a little bit off-topic from the AE guidelines :P). I might try them, and see which one yields the best results. Oh, and GiantTree might want to add his answer: the facts he pointed out greatly answer my question.

@Izzy Just as a footnote, I would like to inform that I'm testing the "Doze" app made by "YirgaLab", and it's yielding pretty positive results, so far.

Additional candidates, as usual, on my site: Battery Savers :)


text:
Reset huawei Ascend P7
I'm trying to reset my phone, but It doesn't work. When I try to reset it via android settings, it restarts, shows the Huawei logo and shutsdown. When I manually restart it its back to its original state before the backup.
I cant boot into recovery or fastboot, it justs shows a black screen. My phone is rooted, but I don't have root acces because of immutable.list. Help would be appreciated.

How were you trying to get into recovery/fastboot? Did you flash a custom recovery?

As I don't have this device, I can't say too much. Also, I can't comment because of my rep. But whatever.
Try to flash recovery even if your flashboot returns blank screen. It might not work, but hey! give it a try!
Also, try to look Here or Here, it says about flashing firmware.

Shutdown your Phone and then press and hold Volume down + Power.
Normally should your Phone reset then.
If this doesn't work, you may have destroyed the recovery.

As I said, I cant boot into recovery.

Is there a recovery tool from huawei?

Yes Hi-Suite, but I says that my phone is healthy.

Can you reset or reflash in this tool?

Yes, but it says that my phone is healthy.

What does healthy has to do with recovering a phone?

Well, since it think that my phone is healthy it doesn't let me recover.

Ok... That is Huawei... Doesn't make any sense


text:
Why does wiping the /cache partition keep fixing my problem?
My phone Droid Turbo 2 on Android Marshmallow for some reason my Audio in and out keeps going out.
Wiping the /cache partition seems to fix the problem most of the time.
Any idea why this might be the case? Could this be related to why it takes the phone so long to turnoff and reboot?

Gave up with debugging this. Fixed by rolling back pre-android 6.x


text:
External deivce control and data I/O with the Nexus 5X
I'm trying to understand how I might go about controlling an external LED array and then move image data off using an android device. I have identified two tasks, the first is very simple, I have a boost converter circuit which just needs to be triggered by a square pulse, all the timing thereafter is handled in hardware. I figured I could do this with the mic jack. The second task is perhaps more complicated. I would like to send images over the USB to another system for post processing.
Are there any resources or tutorials available for this type of problem? I am more than anything just looking for a place to start.


text:
Where are Ethernet Settings stored?
There is a good post about where Android Settings are stored.
The following screenshot shows where Wi-Fi settings are stored.

Where are Ethernet Settings stored?

There is a directory /data/misc/ethernet noted here as well as in my device's init.rc. However, it is empty and I do not know what purpose  it serves. Which Android device are you using?

Related

@Firelord It is a custom device running Android 4.2.  I have just checked its init.rc, and did not find any entry for Ethernet.   I thought there was a standard directory structure for all Android devices supporting Ethernet.  It does not look so.

@Firelord That directory is empty due to your device not supporting Ethernet. It probably gets created whether the device supports Ethernet or not, and is filled only in the former case. Since OP's OS seems to be not stock, it may be that the author removed the setting that created the ethernet folder altogether.

How to make Ethernet work on Android over OTG?


text:
Partial Wakelock - Android System *backup* = NO deepsleep/doze mode
I'm seeing following partial wake lock through BetterBatteryStats (inside of Partial Wakelocks) and it seems that, this wake lock keeps my phone awake at all time and prevents deep sleep / doze mode(

*backup* (Andriod System)

I'm using Huawei Nexus 6P (stock, rooted (no mods)) with latest Android 6.0.1 (MHC19Q).
Please advise.

* UPDATE *
I created following:
Issue 207700 - android - Partial Wakelock - Android System backup = NO deepsleep/doze mode - Android Open Source Project - Issue Tracker - Google Project Hosting

workaround(s) (NOT fixes):

reboot - temporarily address issue (until phone is plugged & unplugged to/from charger).
Settings -> Backup & reset -> Back up my data -> Toggle On to Off - long(er) term solution, yet you're left without backup going forward...

I had the same problem, but it occured after I had restored my phone from google backup. More precisely the "backup" wakelock appeared when I unplugged the phone from the charger. Thereafter the wakelock kicked in and remained doing so until I restarted the phone. But whenever I plugged in the charger, the wakelock came back again and another restart was a must-do.
How did I solved that? I just disabled the "back up my data" under "backup & reset", restarted the phone and enabled the "back up my data" again. At least for now the wakelock has not appeared again.
This was my trick.

after I restart my phone, that also goes away, but then it comes back later again...

it's a general issue with Android 6.0, i also have this bug on my Galaxy S6 using ORO CSC and latest ROM (G920FXXS3DPE7 May-2016). It appears only after the phone is unplugged from charger and the backup app keeps the phone awake (not entering Deep Sleep). For the moment the only fix possible is to disable backup (Google "back up my data).


text:
Can I get texts that I didn't receive due to no storage space
My one plus said I couldn't receive texts until I made space on my phone. I have now freed space but I need to get the textsI didn't receive while my storage was full.
Ive had people rsvping me for my sons birthday party and haven't received the texts and now have no idea who's coming and alot of people thinking I'm rude.
Please help.

Consider using something like Hangouts/Whatsapp/Email instead. Those services cache the information and don't have obscure storage limitations.


text:
Check marks in Telegram app
I show the date and the message I sent with one check mark then I have 2 responses from the user. Shouldn't my message have 2 check marks by it now, if they saw it and responded?

This sounds like a bug you should report to the devlopers.

Are they using an official Telegram client?
There is telegram clients (for example Telegram CLI for Linux) that lets you do it, you can reply to a message without marking it read.


text:
Showing both "adb status-window" and "adb logcat" on the same terminal
I am attempting to get the adb status-window command to display anything useful, however it appears to be just showing the following:

Android Debug Bridge
  State: device

At first, I figured it was because the resource was busy with an existing operation adb logcat, but stopping this failed to fix the issue.
This is for a device that is outside of my local machine and is being used under adb over WiFi.
Is it possible to have these two commands at once? Does the status-window work remotely? Why would this not display?
Thanks for looking into this as no real reference was available after some considerable searching.

What else are you expecting as an output? If the device is not connected, via USB or Wi-Fi, the state would be 'unknown'.

Based on my testing, adb status-window will continuously monitor the status of the ADB (whether it's connected to a device or not). While it's active, connecting a device will show

Android Debug Bridge
  State: device

and disconnecting it will show

Android Debug Bridge
  State: unknown

On the other hand, adb logcat also continuously monitors the log from the device. As far as I know, you can't run both of them on the same terminal (tested on Windows' command prompt, though I don't have any idea on other OS). The only workaround is to use multiple terminals to run each command.

So, to answer your questions directly,

Is it possible to have these two commands at once?

AFAIK, no, on Windows' command prompt, but maybe possible with some tricks on others.

Does the status-window work remotely?

Yes.

Why would this not display?

Because it continuously monitor the status of the ADB.


text:
Can I extract the Stock HTC firmware (Sense) from an M8 and flash it in another rooted M8?
I rooted my friend's HTC M8 upon his request and also put TWRP in it. He tried many ROMs, including AOSP, but couldn't live with the bugs. So, he asked me to revert his phone back to stock with Sense on it and the ability to install OTA updates (basically unroot the phone).
I searched a lot over the Internet on how to unroot an HTC M8 but nothing worked. So, I flashed SkyDragon ROM hoping it would be the closest to stock HTC, but it has its own bugs.
My sister also has an HTC M8, which has never been tampered with (no root) and currently runs Android 6.0.1. I've been thinking for some time if I could somehow extract the Stock HTC firmware from my sister's unrooted M8 and put it in my friend's rooted M8. If I could get this latest version of HTC firmware in my friend's phone (even as a flashable ROM), I don't need to worry about future OTA updates, since this is proably the last update for M8. I understand that first I would probably have to root my sister's phone for that, but that's okay if I can just make sure that she stays on pure HTC stock afterward (I would probably need help for this too).
Is there any way to do this? Or it would also be great if someone could post a working method to unroot the M8 and install OTA updates. That way would be much simpler.
I live in India and both the M8s are the international version.

Why not simply using the stock ROM provided by HTC? I'd wonder if that's not available (see: Where can I find stock or custom ROMs for my Android device?) Download it, flash it, done.

Hey I had the same problem I tried everything. Then I did this - I downloaded ruu file for my m8 and it works like a charm now . You just have to run the ruu file on windows while your phone is connected. Beware finding the right ruu files takes time. And also it requires you to be on the correct mid and Cid that came with your phone (or the developer Cid number 11111111)

Thanks! Also, can you please tell how and where to find the right RUU for my device? It's an international version, not locked to any carrier (India). Is this the same as the Unlocked/Developer version? I tried finding it on the official HTC website and there is only one RUU for Unlocked/Developer version, which does not specify any information about MID or CID


text:
The images saved in the DCIM folder in the SD card and the internal memory disappear after a while. Please help!
I am using LG G4.  This all started after my phone came back from the service center earlier this month with a brand new motherboard. I clicked a few pictures while on a trip and while playing around with the camera, I selected Manual setting and accidentally selected RAW jpg.  I switched back and continued clicking away.  After I came back, one fine day all the pictures were gone from the camera folder.
I tried software like recuva which are able to see that there over 3000 files but no software is able to retrieve the images.  All the images in other folders are fine. So this was in my SD card so I just figured that was the problem.
I was wrong, I stopped using the SD card and changed the storage to phone memory and it still continues.  It's like images disappear(unreadable) after a week I think.
I used ES file explorer to show the hidden files named .nomedia and delete them (currently in recycle bin).  I still cannot see the images.
I also read something about a jpg decoder library missing can be a reason.  All that fancy coding just scared me a little.
I am here to see if there is a solution.
My potential alternates are:

Install a different camera app so the images are saved in a different
folder
Move the images everyday after they are clicked to a new folder.
Reinstall the stock camera app somehow
Factory reset

Please tell me if there is another way, I am desperate.  :( :(


text:
Notification icon that looks like 4 patches stitch together (shaped like Windows icon)
What is the circled icon that looks like 4 patches stitch together (shaped like Windows icon) circled in blue is for?

It is pretty easy to figure out app icon on notification panel , downloaded from Google Play Store

App notification icons usually are on the left half of notification panel
Google Play → My Apps and Games → Installed  brings up all apps on your phone. Just scroll through and match with icon on notification panel
Google Play → My Apps and Games → All  brings up all apps you downloaded , including on your earlier devices. This icon was familiar since I had used it on my earlier device and matching icons tells me it is AVG Antivirus. Thanks to Mathew and Vivek confirming same in comments

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


text:
Please help, soft bricked my [US] [Sprint] Samsung Galaxy S6 SM-G920P
After around 5-6 hours this morning/afternoon, I've officially given up on fixing this on my own, and I've all but accepted my device to be an expensive paperweight.
I decided to make one last attempt at saving it by posting for help.
Problem: My phone has a feature called "FRP" (Factory Restore Protection), which is tied to one's Google account. Basically, if you have a Google Account on the phone, it locks the phone to any custom binary/custom OS/whatever.
Once I realized this, in order to root my phone, I went in and removed my Google accounts. Sure enough, this disabled the FRP Lock, and I was able to root my device.
After rooting my device, I re-added my Google accounts and went about my business for the next couple of weeks or so.
Just this morning, my phone was having issues charging, so I decided it'd be a good idea to give my phone a reboot. Big problem. It turns out I simply haven't ever turned off my phone since I rooted it. On top of that, I didn't think the FRP Lock would apply to booting the phone, I thought it only affected flashing new firmware. I was wrong.
After my phone turned off, red text appears at the top of the screen: "Custom binary blocked by FRP Lock".
This is the problem. It simply cannot boot. Because it cannot boot, I cannot remove the Google accounts to disable the lock and resolve the problem. Because the lock can't be disabled, I can't flash the phone's original firmware, because FRP Lock will stop anything and everything I try to do.
tl;dr: Soft bricked phone due to FRP Lock. Not able to restore original firmware, factory restore, or boot into phone's operating system.
Important: The phone turns on, and I have access to the recovery menu as well as "Download Mode"
What I have tried:

Factory restoring through the recovery menu, doesn't have any effect
Flashing stock firmware through Odin (Nand write failure)
Flashing a custom recovery environment (TWRP) through Odin (FRP Lock blocked this flash)
ADB and Fastboot cannot recognize the device
Tried to use Kies 3 and Smart Switch to "re-initialize" my OS or something. Both failed, saying that my phone wasn't compatible, and that my serial number was invalid (it was, in fact, correct)

The point here is that I've done everything, and literally everything has failed for one reason or another.
I feel like it is a possibility that if I attempted another stock ROM, then I might be able to avoid the Nand Write Failure. But again, I don't know.

http://forum.xda-developers.com/sprint-galaxy-s6/help/custom-binary-blocked-frp-lock-t3152054 did you try what this forum suggested?

I bumped into that post while I was searching wildly for a solution earlier. I'm currently downloading the latest stock firmware at the moment, 6.0.1. I'll see if this works in... hours, once the download is finished.

Turns out that the stock firmware was failing to write because it was an old version, and Android doesn't like old versions, and it won't work.
I downloaded the most recent firmware (6.0.1) overnight, and sure enough, it flashed, and my phone is now functioning again.


text:
Unable to update the Android system updates after installing Despair on Nexus 5
I installed Despair kernel in Nexus 5 by following this guide. Then I installed Clockworkmod Recovery 6.0.4.5. I'm trying to update the system, but when I try to install, it brings me to Recovery and an error "Unable to verify signature" shown during install. The update does not get applied.
How do I resolve this update issue?
More information:

Android OS: 6.0
Android security patch level: 1 October 2015
Baseband version: M8974A-2.0.50.2.27
Kernel version: 3.4.0~Despair.M.HH.R1.9
Build Number: MRA58K

Can you flash stock recovery and then try the update? Alternatively, disable signature verification in CWM (not sure it can be done, but TWRP and Philz Touch can) and then try with update.

CWM can disable signature verification, and I did it. But it is turned back on automatically when installing system patch. How can I find stock recovery and flash the recovery only ? I don't want to flash the whole OS


text:
How do I transfer my videos from my android phone to my apple IPhone
How do you transfer videos from my android phone to my apple iPad

try dropbox or maybe vlc if you cant use these applications then try iTools

What have you checked already? Please try these. Especially useful maybe: Transfer large files beween Android device and an iPad mini

I think they have the easy transfer app (Move to iOS) , it was uploaded by Apple itself for android user to easily move to Apple Devices.
You can find it on google play: Move to iOS

other way is to backup your data on your photo backup using gmail. and install photos app on your ipad from where you can access all photos.


text:
Android phone "charging slowly": How to make it faster
When I put my Android device to charge, the lock screen says "Charging slowly":

Is it a particular software setting that tells Android to charge slowly?
How to make Android charge fast?

I used to have problems with my phone charging extremely slowly because I had too many apps running at the same time. Try finding apps that don't need to be running all the time and shut them down.

you could start by changing the laws of physics. ;)

USB3 is designed to be able to provide more power than USB 1 or 2. Use a USB3 port, or a powered USB 3 hub, or a charger that understands USB 3 power negotiation protocol.

This is not a software setting: Android is just telling you that the power source you connected the device to is not giving enough electrical power to charge as fast as it could.
It seems that:

"Charging slowly" means below 1A (at 5V),
"Charging" means between 1A and 1.5A,
"Charging rapidly" means more than 1.5A.

The solution is to make more electrical power come to your device:

If your computer has Type C port, use this one. This port will most likely also have Power Delivery, which will give you a "rapid" charge.
Plug to the wall rather than to a laptop.
Try different USB cables.
Some adapter/device combinations are better than others (example for Nexus 6P/5X), so use an adapter made specifically for your device if available.
Some laptops have different USB ports with different power performances. On my laptop I have 2 USB ports, if I plug in the port on the right Android says "Charging slowly" but if I plug in the port on the left (with the + battery symbol) Android says "Charging", which is better:

Edit: Please see @beeshyams' answer explaining why charging slowly is actually a good thing when your battery is already quite full.

My experience with my Galaxy S4 (lollipop) is that "Charging Slowly" occurs with all 1A chargers and cables (including computer USB ports), while "Charging" appears only when connected to both a charger and cable that support 2A current.  Notable that when using bluetooth and navigation (which uses both GPS and cell location), the phone won't charge fast enough to match drain on a 1A charge system; this seems a very likely reason why 2A chargers and cables were created.

Also note that in some cases it might be needed to separately enable USB3 quick charging from computer BIOS.

Other answers have explained about how to make it charging faster, this answer tries to explain more about the threshold that the Android uses.

The charging speed is not configurable; it's just a status that Android shows to let the user knows about it.
When it was first implemented, it's based on the how much current (in milliAmpere) it receives. As shown on the commit log, "Show charging speed on Keyguard", specifically, the config.xml file, the default values were,
<!-- Threshold in micro amperes below which a charger is rated as "slow" -->
<integer name="config_chargingSlowlyThreshold">1000000</integer>
<!-- Threshold in micro amperes above which a charger is rated as "fast" -->
<integer name="config_chargingFastThreshold">1500000</integer>

Charging slowly: < 1A
Charging: 1A - 1.5A
Charging rapidly: > 1.5A

5 months later, the implementation was changed to be based on power (in microWatts) it receives. As shown on the commit log, "Charging speed based on voltage", from the same config.xml file, the default values were,
<!-- Threshold in micro watts below which a charger is rated as "slow"; 1A @ 5V -->
<integer name="config_chargingSlowlyThreshold">5000000</integer>
<!-- Threshold in micro watts above which a charger is rated as "fast"; 1.5A @ 5V  -->
<integer name="config_chargingFastThreshold">7500000</integer>

Charging slowly: < 5W
Charging: 5W - 7.5W
Charging rapidly: > 7.5W

Now, the default values and current behavior (using microWatts instead of Amperes) might be problematic on some devices (e.g. Nexus 5). However, those values are also adjustable by vendor/OS maker, as seen in LineageOS' case.
As reported in Nexus 5's LineageOS Bug Tracker and explained in Nexus 5's LineageOS Code Review,

The default slow charge threshold in the framework is set to 5000000
  microwatts. This assumes the devices OEM wall charger output is 1A @ 5V.
The OEM LG Nexus 5 wall charger can only output 1.1A @ 4.8V at its max.
  Then that is further reduced to around 1A @ 4.3V by the charging driver
  in the kernel. This results in the lock screen incorrectly displaying
  "Charging slowly" all the time.
Prior to Nougat, the threshold was based on microAmperes and was set to
  1000000, which the charger/device could easily do, resulting in the lock screen displaying "Charging".
This change lowers the threshold from 5000000 to 4200000 microwatts so
  that wall chargers show "Charging" on the lock screen, returning it to
  stock Marshmallow behavior.
Note: This threshold only affects what is displayed on the lock screen.
  It does not affect actual charging current.

Thanks +1.  The change to milliwatt ties in well with Qualcomm 3.0, IMO, where current and voltage both can be tweaked to get required wattage, earlier it was more of  brute force increasing current mainly

This is by way of supplementing OP's research with additional relevant inputs
"Charging Rapidly" always is neither desirable nor changing the charger mode user configurable
Why is it not desirable?

Current drawn for charging is not uniform. It varies depending on the stage of charging as can be seen from Figure 1 here

This is reiterated by OEM-see footnote 1

Battery must be substantially depleted; charging rate slows as charging progresses

What this means is that Charging Slowly is not necessarily bad. You should expect and see charging rapidly →Charging → charging slowly transition happen as the charge level increases. This is the nature of charging Li Ion / LiPo batteries.Charging rapidly throughout the charging cycle is pushing power beyond what is needed and would surely ruin your battery- Hint: You will never see an OEM claiming to fast  charge from 0 t0 100% in xx minutes. Fast charging typically ends in once the battery is charged in the region of 70%. ( You may need to use an app like Ampere to measure the charging current and the corresponding  charging slowly/ charging / charging rapidly to specifically know for your device)

Why is the Charging mode not user configurable?
Andrew's answer explains the associated current and power limits depending on which the mode changes and is android feature. Aside, Samsung has come up with user configurable options to enable/disable fast charging
OK, how do I ensure it is charging rapidly whenever it should?
Options suggested by OP are all valid with a caveat- While mixing and matching cables to maximize current  as quoted by you (example for 6P/ 5X from my earlier answer) is a good idea, you need to bear in mind the following

Any fast charger won't do, use OEM charger only, if you want fast charging. Nexus 5X uses USB Type C charger not Qualcomm fast charging, though it runs a Qualcomm Chip. Nice write up here

If shopping for cables outside Google,make sure they are USB Type C compliant

Not sure if this is related, but I found that a five-pin microUSB allows faster charging than a four-pin one.

@DeathMaskSalesman: Type C USB being discussed here is 24 pin. 5 pin is for earlier versions supporting OTG. I haven't come across reasons if any that it should charge faster. Please share if you are aware

None really, I just compared the charging speed of said cable against the stock Samsung cable.

I've found another potential cause for Charging slowly which I didn't see in any previous answers.
My phone (Moto G7, USB-C charger) had debris in the charging port which made it difficult to charge. The connection was loose, and when it charged at all, it would often indicate that it was Charging slowly.
The solution:
Cleaning the Charging Port
In my case cleaning it, then cleaning it some more, then giving up because I thought it was a lost cause, then cleaning it again. It was hard to believe how many small clumps of dust came out.
Sites such as this one suggest compressed air and a toothpick. I've also heard a number of other suggestions, listed below. I tried a plastic dental pick and it removed some dust, but bent and eventually broke when attempting to scrape compacted debris from the deepest part of the port.
Take the following suggestion at your own risk because it may scratch or short your charging port, but for me scraping the deepest part of the port with a straightened staple was what finally solved the problem. Again: please attempt softer, non-conductive methods first.
Once I did this, my charger firmly connected and started Turbo Charging immediately.
Potential Improvised Cleaning Tools
Based on suggestions found in various Google Searches, forum posts, and what I had on hand in my office. From lowest- to highest-risk, by my own estimation. I hope such a ranking is ok and not too opinion-based or off-topic. I wanted to provide a useful reference to hopefully help someone avoid the frustration of finicky charging.

Compressed Air
Soft, non-conductive picks

Toothpick
Plastic dental pick
Coffee stirrer

⚠ Metal picks ⚠

Staple
SIM Card Tool
Small paperclip


text:
Nexus 4 Red Notification light with full battery
I have a problem with my Nexus 4.
About once in a week it goes in the "deep hibernation mode" and shows this behavior: Red notification light on Nexus 4, won't power on, device unresponsive
My problem is, that this seems not to be a battery problem. Because this happens with 100% of battery, sometimes even when it is plugged to the power supply.
It is very annoying for me, because when this happens I always have to do this procedure to "solve" it:

Unplug the phone from the charger)
Press and hold the volume DOWN button plus POWER Button for 15 seconds
Plug it into the wall-charger (while still holding both Buttons) -> the red light should start to blink.
After 4-5 blinks release the buttons
Wait some seconds and then press the Power Button and it should boot

After that procedure it works without any problems for a week or so, and after the reboot I often have 70-100% battery.
Because the battery works then for a week I don't think it happens because of battery drain. Now has anyone another idea, why this is happening?

Couple of fixes here may help

I get it out of the hibernation mode without any problems with the above-noted procedure every time.
My problem is, that my nexus4 enters the deep hibernation mode randomly a couple of times per week after going into standby. Even when it is plugged in or has over 70% of battery.
This is very annoying for me since I always must have a charger nearby to get it out of that mode.
Additional information I forgot: I have Stock ROM without any modification or root or something else, but it is encrypted.

I can't help beyond that. Sorry. I just posted the answer and deleted it seeing that your problem was not fixed fully

Although I doubt it would help, do a full factory reset... Then replace the battery, I know it seems like the battery is fine since it reports a good charge on reboot, but the electronics in the battery pack is probably failing. I had a similar condition occur from time to time on my N4, replaced the battery with a new OEM one and the problem never recurred.

Sorry for the late answer. I already replaced the battery with a new one and/or did a Factory Reset, but it didn't solve the problem.
I examined the problem in more detail and it only enters the deep hibernation mode when going into stand-by (via timeout or via pressing power button) and  not being connected to the charger (pc or wall).
So for me it seems to be a hardware issue with standby-mode?
Because if I  don't enter standby mode it works perfectly and the battery lasts as long as before the problem.