text:
unable to boot into recovery mode
I have unlocked bootloader of my moto g3 6.0.1 and have installed the twrp recovery too but unable to boot into recovery mode. every time I make an attempt to open the twrp it shows no command on my device. I have tried many tWRP files... but  can't complete the process.

"No command" means you haven't flashed it in successfully. Check your flashing process, and optionally use fastboot boot *filename_of_recovery.img* instead to boot the recovery temporarily.

To successfully flash the TWRP you must enter it at the first time boot after flashing. Otherwise it will be overwritten by the standard recovery and all your efforts will be wasted. Also check this question.
Only first time matters.

To properly flash TWRP on a Moto G 2015:
1) Unlock the bootloader via Moto's official process
2) Copy the latest TWRP image from official TWRP.me site to your platform-tools directory if in Windows, or to your home directory if in Linux
3) Open a terminal window with administration/root privileges and navigate to the location of your twrp image file
4) In the terminal enter fastboot flash recovery twrp.img (replace twrp.img with the actual filename from twrp.me)
5) DO NOT REBOOT - Immediately start Recovery, TWRP should start
6) When TWRP starts, it will prompt you "Keep System Read Only" then Swipe to Allow Modification
7) Select Reboot then Recovery then Do Not Install
8) The device will reboot and TWRP should load and will be "set" as your recovery from now on.
Note, although it is not essential, I do recommend performing a complete backup BEFORE flashing TWRP... TWRP can be booted without modifying the existing recovery or filesystem. Use the command fastboot boot twrp.img and select 'Do Not Modify` then perform a full backup to the SD card and archive it for future use if needed.


text:
Lifecycle and Compatibility of An Android Version (say 4.4.2)
I believe, currently Android 7.1.2 is the most updated version of android.
I searched more to understand the life cycle of an android version but I couldn’t find.
For example,
What would be the life cycle of Android 4.4.2 after which Android 4.4.2 will be incompatible to most android applications?
My android device is 4.4.2. I would like to know same for my device as well i.e. what would be the life cycle of Android 4.4.2 after which my device will be incompatible to most android applications.
These days, the compatibility information of most android applications is like 4.0+.
I believe I explained my doubt well.
With Regards
Tech Goal

With a few exceptions like if the play store stopped supporting something developers get to decide what OS versions are supported.

Also as a side note you can always download the apk for that version of android and install even if the play store stopped supporting your version.  This does take foresight though.

The support cycles of well-known apps tend to be very, very long, to the extent average users don't need to worry about it. Remember, there are regions where smartphone development is way behind the rest of the world, and where Android 4.0 might still be the norm.

source: Stack Exchange

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

sort: votes


text:
twrp crashes while trying to backup files
Can someone help me with a crashing TWRP backup. I am using twrp 2.8.6.0
I have installed TWRP recovery for Samsung Galaxy Grand Duos gt-I9082, but it keeps failing and rebooting to the phone in the middle of 22% of the backup.
I am running Jellybean 4.2.2 Stock Samsung Android dist.
Has anyone ever faced this problem ?
Can anyone help ?

You are advised to use the latest TWRP available; if that still doesn't work, look around on XDA-Developers for the respective thread of TWRP, and report there.

hey would you please tell me why the latest twrp is distributed as img files and not as tar or files ? Odin is unable to understand the file unless I give it as a tar file. All tar files contain older releases.

Consider flashing the img file using the "dd Install Method" described on the intro page itself. Boot your device into the current TWRP recovery so that you could have a rooted adb shell access.

I have flashed the most recent twrp recovery available for my phone but I am still encountering the same error.

try to install an old version of the twrp, maybe that it is bug

@bolzy9 Well I tried with both old and new versions. No change. I have shifted to using CWM.

Somewhere you have a lot of files. Look at the process of creating a backup and pay attention to which folder the process lasts the longest. For me this folder was SuperSU logs folder in which there were thousands of files. When I deleted them my problem was solved (twrp 2.8.7.0).

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


text:
Is it possible to manage filters from Gmail app?
Is it possible to manage filters directly from the Gmail Android app?

No. This feature isn't implemented in the mobile app.

This is an old question, but... There is a workaround for managing Gmail filters on your Android device (or any mobile device). You can't do it directly within the app, though. You have to use your mobile browser and go to Gmail's "HTML" website (link below). HTML Gmail is basically a simplified version of the full/desktop website, but it still has nearly all of the functions of the current full site.
Once you navigate to HTML Gmail, you'll see the same options as you would see using a laptop/desktop browser. The graphic interface isn't quite as fancy, but all of the functions are there - including the ability to manage Filters via the Settings tab (near the top right of the page). Then you can proceed with managing your filters as usual.
Here's a direct link to HTML Gmail:
https://mail.google.com/mail/h/
If you have any problems, here's a help article on how to access the HTML Gmail site:
https://support.google.com/mail/answer/15049?hl=en


text:
in whatsapp, how do you display contacts in alphabetical order?
I  used to be able to get whatsapp to show contacts in alphabetical order but now the option has gone. I can't see all my contacts listed from a-z.  It shows them in order of the last message between us.
How can I display whatsapp contacts  in alphabetical order?
added

WhatsApp shows contacts in alphabetical order by default if you are viewing all contacts. There is no option to change that.

@MANI where does it show contacts then?   I see 3 tabs.  Chats, Status, Calls.  What tab are you talking about?

You are getting confused. What you are seeing is chat screen. There's new message & new call bubbles below on bottom right, click on them to see all your contacts in alphabetical order.

@MANI i've included a picture.   Please tell me where you think I should be looking.  I don't see a "new call" bubble.

@MANI I don't see a new call bubble. I do see a bubble that looks like it might be what you mean by a "new text" bubble.   And I see it brings up the contacts.  You can post that as an answer

It's okay. These things won't stay like that for longer periods. User interface changes every day.

The screenshot on the right, is showing you your active chats. This goes by the order of the last message you received.
To view all your WhatsApp contacts in an alphabetical order, click on the green circle on the bottom right of the screen. This will bring up a list of all your contacts that use WhatsApp.

you write "click on the green circle on the bottom right of the screen." <-- green circle with white rectangle inside.


text:
Issue a command to the camera from command line via SSH
If I have an SSH app like SSH Droid, is it possible to issue a command to the camera to take a picture from the command line of a remote SSH client? If so, would you have an example of such a command?
SSH Droid info

SSHDroid is a SSH server implementation for Android.
  This application will let you connect to your device from a PC and execute commands (like "terminal" and "adb shell") or edit files (through SFTP, WinSCP, Cyberduck, etc...).

The device I'm looking to use it on is ver 2.3.

I don't have experience with sshdroid. Termux does have an option to record pictures from the command line.

Thanks, it looks really, but it's for OS 5.0+. The device I'm looking to use it on is ver 2.3.

@user126440 2.3 is ancient. And btw, the feature to make screenshots from the command line has only be added with 4.0 AFAIK (same as screen recording only has been added with 5.0).


text:
My mom has an iPhone and I have android and I'd like to us my moms hotspot
Can I use my moms iPhone hot spot for my android

If the iPhone have feature to WLAN Tethering (Wifi Tethering or Hotspot). The answer is yes, you can. I think it will not depend to operating system what you have. Except if the Hotspot have feature to filter any Operating System that can connected to the Hotspot.

It will work normally, just make hotspot (wifi) . And you will be able to connect your phone or your PC, whatever operating system they use.


text:
Phone app shows all contacts even when contacts app is set to show only gmail contacts
I have two source of contacts in my phone(Lineage 14.1), gmail and whatsapp.
In the contacts app, I have set the option to only show gmail contacts.
It works properly (first screenshot). But in the phone app, all contacts are shown, thus getting most contacts twice (once from gmail, and once from whatsapp; second screenshot):

I tried using different phone app, but the result is same.
I tried merging the contacts using the mergings apps on play store, but somehow the contacts reappear after using whatsapp.
Is there any solution? A similar question was asked years ago How to show only gmail's contacts in the Contacts app? , but it doesn't have an working answer.

The sync might be on. And all of your contacts are synced with Gmail. Thus it's displaying them.

Different providers use different storage. Thus contacts from WA shouldn't be synced to Gmail and vice versa unless you explicitly move them over – which is not trivial ;)


text:
Whatsapp: could it be that messages from some contacts are received but not from others?
"My mum and her phone are driving me crazy" must probably be an entry in many personal diaries by now...
The thing is: my mum claims that she sends whatsapp messages to some of her contacts (there's a double blue tick and everything, so they've read them) and she doesn't get any replies. However, she does get replies from some other contacts. And I just tried myself: messaged her and the message arrived instantly.
Could there be a reason for whatsapp not getting messages from specific contacts only? (I just checked her phone settings and no contacts are blocked).

The double-check indicates that the message received. So, it might be possible that the recipient simply chose not to reply.
You mentioned that your mom hasn't blocked anyone. How about if your mom has been blocked? You can check for these indicators:
- You can no longer see a contact's last seen or online in the chat window.
- You do not see updates to a contact's profile photo.
- Any messages sent to a contact who has blocked you will always show one check mark (message sent), and never show a second check mark (message delivered).
- Any calls you attempt to place will not go through.

Thanks! However, it's very unlikely they blocked her. These are close friends and relatives she's been messaging (and they keep replying all the time). I also think they just didn't have the time to reply yet, but since she says they usually reply almost instantly (they are all 60 year olds with new phones, so that's how they use them :P ) I was wondering if there was a chance there's some kind of problem with the app or the phone.

@Anarelle You could try to let them confirm by some other means, like SMS or a different app - "Hey, I sent you a message on Whatsapp. Did you get it?"


text:
WiFi has no internet access, but it does
I'm on Android 6.0.1. I'm writing this question while connected to a friend's WiFi, with mobile data turned off. But my phone says "connected, no internet access", and there's a ! by the WiFi indicator on the bar along the top of the screen.
I think Android thinking there's no internet is stopping certain apps from working, whereas others don't seem to care (and work).
Why is Android thinking there's no internet when there is? Can I assure it that there is internet?

"Connected, no internet access" means that the test that Android uses to check if there is Internet access is failing. The url or method used to test if Internet is working varies by Android version and on 6.0 it uses connectivitycheck.gstatic.com/generate_204 as the test. - Reference
"Internet" is just a network, if the routing, access, DNS resolution, etc. pieces are all there, the "Internet" is going to work... regardless if the test Android does to see if it is working fails or not, although you may have to specifically tell your device (via a pop-up toast prompt or setting in WiFi - Advanced) to stay connected to that WiFi network.
Why the test fails? Hard to say, but something in your friends network or their ISP is blocking the check your device makes to test if the Internet is working.

Thanks, I'm on android 6.0.1 (as in question) and a Nexus 5. Wondering if there was a way to get it to try its test again or something. Some apps don't seem to try accessing the 'net if android thinks it's not working.

@artfulrobot Actually, that is easy... Just forget the network and reconnect to it. I have this issue at a hotel I frequent quite often, works every time.

Does the friend's Wi-Fi have internet connection? It's possible that you may be connected to your friend's router, but there's no internet connection. You may need to have the router restarted.
It's also possible that some other device connected to the router is hogging all the bandwidth, leaving nothing for your device.

Nope, that's the thing, i can browse the web and fetch emails no problem!

@artfulrobot Have you tried restarting your phone? Might just be stale data / information.

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


text:
Is there any way to get Google Assistant to work on CM13 x86?
I have tried everything. Installed CM13, got Xposed to work. Installed Assistant enabler, Android N-ify. Tried more versions. x86_64, CM14 (Kept constantly rebooting), Pure Android N. Nothing. Spent more than 8 hours on this. I'm Using VirtualBox on Windows 10.
Does anybody know an actual way to work this out?

Google assistance doesn't work on Android 6.0 and above. What version are you using?

6.0.1. But my Galaxy Nexus have the same version of Cyanogenmod and the Assistant works flawlessly.

It may work on custom roms but STOCK roms may not work flawlessly


text:
Android RAM: how to ensure an app does not get closed
My understanding about android RAM management: when you press the home button, the app goes in the background, it does not actually get closed. The app only get closed when the Android OS decides that it is time to free up some RAM (e.g. because you are launching an app that needs a lot of memory).
I have a device with 4GB of RAM (Huawei P9 plus), but Android start closing apps when there is still 1.5GB of RAM free.
In particular, this is troublesome for Dosbox (where you cannot save your progress easily). So I would like to ensure that Android only closes dosbox when it really needs the RAM.
Is there anyway to do this? Either by prioritizing which app get closed first, or by stipulating at which RAM level apps get closed. Note: I cannot root my phone, but an option which involves root would be better than nothing.
Thanks, Serge


text:
Why can't I use the the data service all of a sudden on my android phone?
I know I'll receive a lot of vote-downs because of this post, but I dont really know what has happened and where I am no one can help me.
I am in China and my Huawei (European) phone has worked just fine on wifi, but after 2 months I topped it up and the message came that I have data now, but I cant use anything. It shows that there is inbound traffic, but nothing seems to go outward. The APN settings look just fine. Huawei recently has come up with an update of their ROM. I am wondering if that can be the source of the problem.

Any ideas why? As you can see the arrow is grayed out. It's just weird.

An arrow going up means that there is outgoing traffic, not incoming.
You say that you were able to connect using wi-fi before, but you didn't say if you were able to connect using data. Also, are you using a local SIM (I assume your current SIM is not from China)?

It's a local sim that I have used before. 2 months ago when  I arrived I had data on it. I can connect to WiFi without any problems.

(1) Can you send and receive SMS though? (2) When did you top up? Was it before or after the ROM update?

1,testing the SMS thingy now. 2,i topped up this morning. Until now I was battling with the company.... No one could tell me what package I have. 2nd top up was after the update.

I can't send SMSs. This is just getting weirder by the minute.

Contact your carrier, you seem not having a data plan, nor SMS plan as well. There is no much we can do here.


text:
How can I disable Google's offer to post personal photos for businesses?
The Android Google Maps app observed that I have taken some photos in a toy store. The following day, Google Maps is offering me to post these pictures along with Google's photos for that business.
I have no desire to associate these family photos with the business, or to post personal photos publicly.
Along the offer to post, there was an option to "turn off", but after choosing neither, the option disappeared entirely and I do not see it in Google Maps \ Settings.
I may be on tenuous legal grounds. It may be that if I take a picture inside a toy store or at a restaurant, the rights to the picture belong to the business. Regardless, I'm alarmed by the invasion of privacy with respect to photos on my Android device.
How do I set my Google account or the Android Google Maps app to never offer to post personal pictures on a business's Google Maps page? How do I confirm that I have not inadvertently posted any such pictures in the past?
As an aside, I'm also curious whether Apple blocks iOS apps (in general, not just Google's) from this behavior?
I do wish to continue the automatic backing up of my Android phone photos to Google Drive.

You can disable the activities that run in the app via terminal

Google Play Maps contains a bunch of activities. The activity that monitors when you take a picture is "com.google.android.apps.gmm.ugc.clientnotification.phototaken.PhotoTakenObserverService"
Look up on how to disable activities on rooted Android because I usually don't disable activities or look for a ROOT app that can perform that function.
Disabling application activities requires ROOT access because your making modifications.
Hope this helps! :)


text:
How to make an app only work on wifi (never use data even if opened)
I have a new Android version 5.1, Moto E 2nd Gen.
I just figured out which apps used up all my cell data, so I want to make it so these data-guzzling apps (the ones I want to keep) work ONLY on wifi, even if accidentally opened - Like turning off data but for only specific apps. Is this possible?

I already disabled the background data, updates, and sync - this doesn't get rid of ALL data usage though.
I tried this post: Limit apps to only work if connected to WiFi But this is a different system or something from the one I'm using, the answer does not work on my phone exactly as shown. If something similar works for mine, please give me step by step of how to do it with mine.

Thank you!

The best way to do it requires an app but it works best if rooted. Are you rooted?

You need a firewall application


text:
How can I remotely send commands to Tasker or other automation?
I'm looking for a way of sending remote commands to Tasker on my Android TV. Specifically, I'm trying to find a way to trigger an HTTP GET request from IFTTT to Tasker or another automation app (like Automate) which would execute a command locally on the TV.
Is there any way to do this in Tasker, Automate or another automation app?

There's an app called pushbullet that may be of help. You might have to do a bit more programming of tasker but it might do the job

Automate has the Cloud message blocks, for device-to-device and web-to-device communication.

The best app I've found to send a remote command from one android device to another is going to be AutoRemote, a tasker plug in, but this assumes you android tv devices has access to the play store. This app should also work well for you if you have tasker because you can directly integrate it into IFTTT. By integrating directly with IFTTT it removes the issues you'll likely have trying to use an http get request.


text:
Samsung S7: stuttering during slow motion video recording
When I try to record slow-motion video on a Samsung S7 (running Android 7.0), there is often stuttering. This has ruined some otherwise amazing footage I acquired.
What can I do to ensure that there will be no stuttering?
So far I have tried:

Recording to internal storage instead of the SD card (although the card I use, SanDisk SDSDQXP-032G, is rated for 90 MB/s write)
Making sure that "Power saving" is off
Closing all apps (using the Overview button, then Close All)

The stuttering will occasionally noticeable even when not recording video, just having the camera app open in slow-motion mode and quickly moving the phone from side to side. Of course, it is harder to notice it this way because everything is happening much faster than during slow-motion playback.
Note: I am making fairly long recordings, with playback times as long as 5 minutes.

I am experiencing the same issue on my Samsung Galaxy S7 (Exynos).
The stuttering in slow-motion video is awful and there is nothing I can do about it.
I have also tried without SD-card, no difference.
The best way is to minimize the number of installed apps. It will not remove stuttering completely, but might reduce it a little bit. It is somehow the intrinsic structure of Android OS that apps are always running or in standby, i.e. consuming memory and some small amount of CPU power. Any, even the slightest, extra CPU load will cause massive stuttering.


text:
What cable and charger do I need to get the fastest charge speed on my Samsung Galaxy S8?
The Samsung Galaxy S8 comes with the USB Type-C connector. I noticed that the USB-A Male to USB Type-C Male cables that are being sold often have a USB Specification associated with them. The Amazon Basics cables, for example, come in 2.0 and 3.1. Is the 3.1 specification cable required to get the fastest charging speed? Or will the 2.0 cable provide the same speed?
Also, there have been many fast charging specifications like QuickCharge 2.0, 3.0, 4.0. Which quick charge specification and version does the Galaxy S8 actually use for the fastest charge?  And is it compatible with older specifications like QC2.0?

This question may be of help

Which Galaxy S8 do you have?
The version with a Qualcomm Snapdragon supports QuickCharge 4, which is backwards compatible.
For the cable choice, QuickCharge 3 used 2.5A on 5V to charge. So your cable and charged need to support that amperage. What QuickCharge 4 uses is unknown so far.
In order to achieve the maximum you need usb 3 with a type C connector (specified for 3A). However many manufacturers sell usb 2 charger with 2A or even more, including Samsung with their fastcharge. The cable itself does not really matter, however, to be save buy a 3 or 3.1 cable, since those were built for 3A of power.

I was unaware that there were versions that did not have the Qualcomm Snapdragon processor.  Mine is the Snapdragon 835, which it looks like does support QC4.  However I don't believe the QC4 support is turned on.

Samsung sells the S8 with their own Exynos processor in some countries. The Exynos of course does not support QC at all, although I assume Samsung implemented something like it. If the S8 with a Snapdragon officially supports QC4 is yet unknown since there is very little known about QC4 in general. But you got the specs/requirements for QC3 which the Galaxy S8 definitely supports.

I haven't even seen anywhere that says the S8 actually supports QC3, do you have any reference for that?  I know in the S7 they actually disabled QC3 support.

Yeah you are right, i misread something. I wrote QC3 because I thought the S7 and Note7 used it. But they used QC2 so you can be pretty sure the S8 will at least support QC2. However, the situation doesn't really change for the cables. Get a usb 3 cable to be sure it was built for the power draw of QC2 or 3 or even 4.

I think USB 2 or 3 shoud nog affect charging speed, as you are not tranferring data.. But i do not know what type of fast charge the S8 uses..

The later USB specifications do specifically call out maximum voltages and current limits though, which makes me think it might affect charging speed.

As @Luke indicates: while USB2 maxes out at 500mA, USB3 can provide up to 1.8A (source). So if the device is capable of taking more than 500mA charging power, it makes a huge difference in charging speed – up to almost factor 4. Of course that's not only a matter of the cable, but also of the port you connect to ;)

Oh alrigt! Learning something new every day! ;) Thanks!


text:
Can i turn off all Firefox logging on Android, how?
Just found 8 gc- and cc- logs of about 100MB each on my phone. Not the first time I've had problems with Firefox creating unwanted log files. Is there a setting I can make to turn off all logging?
Seems weird to have any logging enabled by default, certainly logging that makes several text files of over 100MB on a phone app.

Where is the log directory that it is creating?

Not the original poster but: on my phone these are stored in Download/memory-reports/ and have names like cc-edges. .log. There were other files with 'content' in their names but I just deleted 3GBytes of them so my phone would work.


text:
Why is my internal storage full if I dont even have any apps that is big im usibg a Huawei GT3
As shown in the picture below:

Storage (click for larger image)

Hard to tell. All that can be said by the information you provided: There are 15GB of "other files". May I suggest you check with our relevant tag-wikis first: storage, internal-storage (especially check the links at the end of it), insufficient-memory (agan some useful links at the end). Then [edit] your question and add some helpful details – or even answer your own question if you were able to solve the issue. Good luck!

I recommend you to reset your phone from FACTORY DATA REST
To reset your phone from factory data reset

Go to settings>Backup and reset>factory data reset>RESET PHONE

I have also experienced this problem in my Lenovo A2010
Probably I had used only 500mb out of 4GB but then also only 200mb was available.
After factory data reset the problem was solved and 2.5GB was available...
NOTE:-Before resetting you should backup your data on SD card and remove SD card and sims from your device before resetting.


text:
Can't set static IP for WiFi correctly in Android device
I'm using a static IP configuration for accessing college WiFi on my Windows laptop. For that, I'm using the following batch file (.bat) to configure the settings with one click. The file contains the following information:
netsh interface ip set address name="Wireless Network Connection" source=static addr=10.2.29.69 mask=255.255.0.0 gateway=10.2.19.27 gwmetric=1
netsh interface ip set DNS     name="Wireless Network Connection" source=static addr=10.2.19.28 primary
netsh interface ip add DNS     name="Wireless Network Connection" addr=4.2.2.2 index=2

The problem in configuring this in Android is that the above file contains two static addresses (10.2.29.69 and 10.2.19.28) whereas in Android, there is only one option to enter static IP address and there are two fields for DNS, but here in the file only one DNS is given.

So, which IP should I enter in the IP address field of my phone. And what about 2nd DNS address?

It would be best to choose your static IP address from the main gateway. In this case 10.2.19.27 . So IP address is anything from 10.2.19.xx where xx is any number from 1 to 255 (depends on network prefix) apart from 27.
It is also okay to put the gateway address as the first DNS entry and as for the second either put a public DNS like Google DNS e.g 8.8.4.4 or Open DNS like configured in your settings 4.2.2.2
After that ping and see if the address is reachable

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


text:
Forgot lock pattern in One plus one phone
My girlfriend set a pattern lock for One plus one phone and she cannot remember the pattern now. I have a very sensitive data and also many valued pics. kindly help me recover the data or remove the lock.
Please please please please help me. I am in big trouble without the data.
I spoke to One plus customer service rep, they said reset is the only option. But i will loose the data and I can't afford to loose the data.

Welcome to Android Enthusiasts! You're by far not the first to ask this question. Please see our locked-out tag-wiki, and especially follow up to this post for a collection of possible approaches. Good luck!

Firstly, you will need adb for this method.
Because Android does not allow adb connection if the device was not unlocked, you can't access adb from the system itself in your situation. Instead, you will need some recovery that gives you adb access.
twrp (Team Win Recovery Project)'s recovery gives you adb access. What you want to do is install TWRP on the OnePlus One (bacon) device; you can download the img file from here.
Next, you want to make sure that you unlocked the bootloader. If you didn't beforehand then you're out of luck¹ – but if the device is unlocked, boot into fastboot (hold volume up + power until the "fastboot" screen appears). You then could install TWRP by typing this command:
option 1 (installing TWRP to the device):
fastboot flash recovery [TWRP.img on your computer]

or option 2 (just booting it once without installing):
fastboot boot [TWRP.img on your computer]

then reboot to recovery (only option 1 – option 2 does that automatically).
Now, to remove the pattern lock, run adb shell rm /data/system/gesture.key, and reboot the device.

¹ If you havn't unlocked the device yet, unlocking it will wipe everything (including the pattern lock) so adb wont matter. If you do want to unlock the device (your own risk):

reboot to bootloader
type in fastboot oem unlock.

that's it. hope it helped you.

edited the post hope it helps, one plus one uses a custom rom its etheir CyanogenOS(which is already dead) or Oxygen. these are custom ROMs which are built from stock android,which means they will work like any other device. fun fact: 1+1 phones bootloader are much easier to unlock the other brands ones.

Thanks, Nadav – that looks great now! Applied some formatting to make it easier to read (and find related information via our tags), and will clean up comments now. A fact that's still missing (but available via the linked tag) are the requirements of a computer with the ADB tools installed, by the way – but as said, that can be found easily via the adb tag wiki ;)


text:
Change Settings.Global.AUTO_TIME to always be 1
I want my android apps to believe that Automatic Time Zone is set to ON even though it actually is not. I read that Automatic Time Zone is detected using Settings.Global.AUTO_TIME variable, which returns value 1 if Automatic Time Zone is ON and value 0 if Automatic Time Zone is OFF. This variable is read using the below line
Settings.Global.getInt(getContentResolver(), Settings.Global.AUTO_TIME)

I read that this variable can only be set by a System App. Is there a way to change this variable somehow? Can I write an application that allows me to change this variable? Can this be done by rooting the android device? Is there a way to do this without rooting?

Since the phone is rooted, it would be possible for an Xposed module to achieve this by intercepting the call to Settings.Global.getInt and returning 1 regardless of the real value, but I don't know of a module that does this, so you'd have to write it yourself. You should consult the Xposed documentation to learn how; I'm afraid we can't help with programming problems on this site.


text:
How format nexus 4 before flashing new ROM
I have a Google Nexus 4 (mako) and I had installed cyanogen mode which accidentally showed a loop error message like "... has unfortunately closed" telling that several google apps and wizards had been closed.
What I tried to DO:
Now I want to re-install cyanogen. Because cyanogen is outdated I decided to flash the latest lineage ROM. My recovery (CWM version 6) is still unlocked, so I decided to do the fallowing:

Turn off the device
Go into boot loader mode by pressing Volume down and power and selecting to start recovery mode.
Wipe Data / Factory Reset
Enter side load mode and install lineage:
adb sideload lineage-*.zip
Reboot.

After that lineage os booted and showed the same errors than my old cyanogen ROM. There are even error messages regarding some google apps, although they are not installed.
Possible solution:
It seems that the wipe data / factory reset did not delete the whole cyanogen mod. It seems just to delete user data. I think I need to format the whole device. Last time this maybe was done while unlocking the boot loader.
Question:
How to format Nexus 4 before flashing a new ROM.

Get your concepts right - recovery and bootloader are 2 different things.

Oh, ok, I read about the different and edited my question above here:  http://stackoverflow.com/questions/31158021/difference-between-fastboot-and-recoverymode-in-android#36739040

CWM is long dead, let it stay that way.
You are advised to use the latest TWRP recovery, which has an interactive graphic interface, has a more powerful and thorough wipe function, and has an inbuilt file explorer so that you could just look inside /system to see if the wipe indeed worked (don't forget to mount /system before looking in, though).
After installing TWRP, select Advanced wipe: /data, /cache and /system. Actually it shouldn't be necessary to wipe /system, since newer Android ROMs overwrite the whole /system partition, but since you claim you need a full wipe, this will do.

Its dead? Ok, I'm going to flash TWRP.

Ok TWRP is done now I have this wonderful graphic interface. May you could now answer my question, how to format the device properly? TWRP offers an advanced wipe section, format data and Factory Reset...

Advanced wipe: /data, /cache, /system. Actually it shouldn't be necessary to wipe /system, since newer Android ROMs overwrite the whole /system partition, but since you claim you need a full wipe, this will do.

OK, thank you. Lineage and Gapps are now installed properly. Nevertheless some data like Music, Pictures and old Downloads are still on the device.

Unless you explicitly choose "internal storage" when wiping, recoveries are never supposed to wipe it, for obvious reasons.


text:
Cloning file system without touchscreen
I dropped my Samsung S4mini from great height and now my display and touchscreen are completely destroyed (I can see some colors and pixels, and could probably touch something in the upper part, but have no chance to see what I am doing). USB connection works though.
When looking for display replacement, I noticed that it is probably cheaper (and more reliable since I do not know if there was any damage e.g. to the camera) to just buy a used identical phone and clone the data.
The question is: How do I do it?
I am using CyanogenMod 13 using the SD card as internal storage (so it is encrypted). I also have TWRP 3.0 and was successfully able to adb pull /sdcard the run an adb twrp backup and pull it to my Linux machine. The files look too small to contain all data though. Booting into Odin/Heimdall mode should work as well. This kind of backup looks promising too, but I cannot use the touchscreen to do it.
Is there any way to mirror the whole system including all configs and data (even those that are missing from TWRP's Nandroid backup) to the new phone? If so, how? I am particularly worried about:

Can the data on the (encrypted) sd card be transferred? (Or is the encryption key based on some serial number of the hardware)
Will encrypted Signal chats still be readable?
Can the whole system be mirrored or do I need to find out exact builds?
I assume the "real" internal storage of old and new device is likely too small to contain the data from the sd card. Will the apps/data be split correctly afterwards? What if the internal storage of the "new phone" is different?

TL;DR No, unless you have root, which you do not have, I assume.

No
No
The whole system, no need for individual packages.
No

If you have root, you can pull the whole block-device by this command
adb pull /dev/block/mmcblk0

UPDATE: Make sure you specified all the switches for your ADB backup command:
adb backup -f <filename> --twrp --compress cache system data boot

You can/should append all partitions your device have, list of partitions may vary by device.
And make sure you have the latest version of TWRP, as these switches were released in March of 2017.

Thank you. I have root (I thought that would always be the case when booting into TWRP), but pulling/pushing two physical devices from one Unix-device seems to risky to me. I was hoping one could do something similar for the physically internal/external storage seperately.

If we speak about cloning, I assume pulling block-device is the only option for you, and I don't see anything risky. But why do you say the files look too small to contain all data about twrp backup? It should contain all partitions and archive with all your apps. Try to contain the command from my updated answer


text:
Unknown Bluetooth pairing requests
I have a Samsung Galaxy Note 4 that is receiving unknown bluetooth pairing requests with a confirmation code every 60 seconds. I do not know what this device is, and I don't want to have to cancel these numerous requests. I use the bluetooth for my car and also my ASUS Zenwatch, so I don't want to have to turn off my Bluetooth all the time. My Bluetooth is only visible to paired devices, and this request from "Sparrow" does not show that it is one of my paired devices. I had my bluetooth turned off all weekend thinking it was something close to my house, but it has continued today even though I am not at home. Is there any way to block these requests without having to reset the whole phone?

Possible duplicate of How can I ignore an incoming bluetooth connection/pairing request? Major Android Flaw

Although it's kind-of the same question as the linked duplicate, I'm not voting to close because the other question was resolved by identifying the mystery device out-of-band.

I had the same problem Sparrow is your Zenwatch


text:
How to show date in status bar in Android 7?
Back in Android 4/5, date was shown in the status bar along with time. However, I recently upgraded to Nougat/7 and now date is gone from the status bar and there doesn't seem to be any setting to re-add it.
Has this feature been removed? How do I get date to show in the top status bar, either in it's active or passive state?

It was?!?! I don't recall every having the date in the notification bar in any version of Android, at least since 2.1 which was my first Android version.

@acejavelin, perhaps the author meant quick settings

Change your display size to small (in settings --> display).

I don't know why Sam's answer is downvoted, it's actually correct. I had the same issue, when you first slide down and open the "pre" quick settings, the notifications and shortcuts to turning on/off some features (Wi-Fi for example) appear, and the time is shown on the top left. I knew that the date could also be shown then, and not only when you slide once more for the full quick settings. Well, if you change your display size to small, it does show. I think maybe it just doesn't fit in default display.

I can't answer your question as adequate as you may want it since I don't know if this option was completely removed or if it is present in a hidden state. Anyway, I can recommend you to install GravityBox [N] Xposed module which allows to display time along with date in status bar.
If you don't know what Xposed Framework is, just Google "Xposed XDA" and read description. And, I also can't remember this feature available in older versions of Android at all, to be honest. Maybe it was added as part of manufacturer-provided Android modifications.

I have the same issue. After upgrading my Xperia Z5 from Android 6 to 7, the date is gone from the status bar. When pulled once on the bar the date used to be next to time, now it's gone.
Potentially similar issue with alarm - the alarm time used to be shown next to time and used to be clickable to launch the alarm app. Now it only shows the alarm icon which is not clickable. I found a workaround for this issue by using the new Api that allows apps to add icons into the quick settings bar. So I used "quick settings" app to add the alarm app into the bar.
I know there are apps that add the date into the status bar but I found none that would be nice and neat.

This isn't a forum. Your answer should contain an answer

Now we have Xposed Framework (As of Oct 10, 2017) and GravityBox [N] (As of Oct 11, 2017) for Android N!
As a regular notice, flashing Xposed Framework may cause instability and unexpected behavior of your phone. Proceed at your own risk.
Get both of them, flash the Xp Framework via recovery, then install GB and reboot. Now open GB and navigate to Status Bar -> Time Modification. There you'll find the option named "Show date in status bar". Tap on it and it'll immediately take effect
Problem solved :)

P.S. I've never heard that Android has this function rawly supported. Is it a custom ROM?

An app I use that is very low memory and completely unobtrusive is Date In Status Bar. It simply puts the date and time in your preferred format on the status bar as a notification. Simple solution.

Just pull down with 2 fingers and your date should be there.

In Android Nougat, Date displayed in Notification Shade.

On Android 6:
Tap and hold the notification bar to see the date. Might still be valid for Nougat.

Nope, this doesn't work on Nougat. Date is shown on the unlock screen, but not in the status bar.


text:
Some malware remains after factory reset
I have a MicroMax Canvas Doodle 4 Smart Phone with Android 5.0, purchased in November 2015.
It came with a lot of bloatware, probably including some app named "9Apps", which keeps suggesting apps for me to try out. I always cancel it.
While watching YouTube videos, I get some advertisements for some app or the other. Again I never click or install those.
Unfortunately, in touch-phones, it is possible to accidentally tap the wrong button and install malware unintentionally. Also, a friend installed CleanMaster to "help" me, but it looks suspicious to me.
After about 6 months of usage, some malware got installed and it used to show random advertisements at odd times. It was tolerable for some time, but the frequency of advertisements increased, and there was a possibility that I might have unknowingly installed some more apps "suggested" by the malware.
About 6 months back, anytime I would connect to wifi, "SystemUI" would automatically download a whole lot of apps : BatterySaver, Duplicate WhatsApp, web browsers, games, Pro*n downloaders, . . .
Also, Phone would become hot and battery would drain-out quickly. Crashes & Reboots were common.
I tried to uninstall all unknown apps, but either system would say that it could not disable system apps, or it would reinstall these apps at next wifi connect.
I tried a factory reset last week, but it was hanging on the next reboot. After repeating the factory reset, I got to the main screen, where I could see the Default Apps, but I got some popups like "WhatApps has stopped running" and "System update in Progress". Moreover, most of the unwanted apps are now shown as Default System Apps. Clearly, malware is still in control.
How can I get rid of this malware ?
How can I reset the system to the real factory settings ?
I went to recovery mode and selected "root integrity check" : It shows 66 new files, 2 modified files, and 2 lost files. It does not provide a way to resolve these issues.

The proably only remedy in such a case (where a malware managed turning itself into a system app) is to flash a clean ROM (see: rom-flashing). First step is to find a ROM matching your device. I'm not familiar with yours, so I cannot help you with that.

And stay away from CleanMaster.  That app is pretty dubious.

Other solution, more easy, is to root your device then :
1- block access to internet for these apps : install the firewall AFWall to block apps to access to internet. https://play.google.com/store/apps/details?id=dev.ukanth.ufirewall&hl
2- install an ad blocker : https://f-droid.org/repository/browse/?fdid=org.adaway&fdpage=2


text:
ios Podcasts on Andriod. Easy?
I need to upgrade my smart phone.  I hate iTunes but love my podcasts.  Can I easily access my Podcasts with Andriod?   I asked this question at the ATT place and they said a curt, "no".
I don't believe them.

There is a lot of podcasting apps on google play store. For a very good free version Try player.fm, https://play.google.com/store/apps/details?id=fm.player they have a great podcasting app. You can try to search their catalog for your podcasts or add them manually using the itunes link.
You can also In iTunes Desktop, open Podcasts and then choose File > Library > Export playlist, then select OPML format. save it somewhere and transfer to your device and import this file to Player.fm app.


text:
Got stuck with signing in
So i factory reset my J1 phone since it kept on turning itself on and off and then "The process com.google.process.gapps has stopped" "Google play services has stopped" kept on appearing, and when I was about to sign in with my existing g-mail account, it got stuck with Signing in...This can take a few minutes. I just don't know what to do with it anymore. I tried everything i saw on the net and none of them worked. I can't even use my phone. :(Your response will be highly appreciated. Thank you in advancse

You can just skip the SetupWizard if you want by tapping each of the 4 corners of the screen in the next order:
1.top-left
2.top-right
3.bottom-right
4.bottom-left.


text:
Hide onscreen buttons of back, home & recent apps in Keyboard apps on Moto G5 Plus
I have Moto G5 Plus. I have enabled One-button navigation in Moto Actions using which I can use the swipe actions on home button to replicate back/home/recent apps buttons. This hides the onscreen buttons of back, home & recent apps.
But when any keyboard app is open (SwiftKey, GBoard) then these buttons appear onscreen. How can I hide these buttons when keyboard app is open?

It seems this was issue with Moto G5 Plus itself. Lenovo release an update NPN25.137-67 which fixes this issue and I no longer see the onscreen buttons of back, home & recent apps in Keyboard apps anymore.

Or go to settings > display > expanded desktop and hide the navbar for your keyboard apps.
If that doesn't work, use tasker to hide the navbar when a keyboard is open.

There is no setting of 'expanded desktop'

Bummer. That must be just a lineageOS/Cyanogenmod thing.

I had a similar issue with my phone, but that happened after I switched on the magnify option. Check if u have the accessibility icon on the right hand corner of the navigation bar. If yes just go the setting > accessibility>magnification> turn of magnify with button. The navigation bar will disappear.


text:
I'm stuck at TWRP recovery menu,whenever I turn on my device.
I had a perfectly good root on my Samsung Tab (SM-T111).
However I downloaded and installed "quick reboot" from play store.  I selected boot to recovery (in the app).
Now whenever I try to turn on my device I'm stuck in the Twrp recovery menu.  What to do?

Just so we're clear, choosing "reboot to system" in TWRP itself also still reboots to TWRP, right?

Yes. Anything I do I return to TWRP recovery

You should try uninstalling the app that is causing this issue from TWRP. Do you get any feedback from adb devices?

Could you point out which quick reboot app you installed? Should we have a link, we could then tell you how to uninstall said app from TWRP.

It seems you erased system partition and there is simply no OS to boot to.

@DeathMaskSalesman The quick reboot app by "AntaresOne Software".

@Suncatcher I think so too.I have flashed the stock rom.

You probably flashed TWRP both as recovery and as boot. to fix this just install the latest version of your ROM or flash you ROM's boot.img as boot;
fastboot flash boot [boot.img]

You have to format the entire internal storage to boot in system OS. I was stuck like this for a while.


text:
Can I use ADB wirelessly on an unrooted phone via SSH without a USB connection?
My phone, an LG V10, is unrooted, something that I intend to fix. However, I appear to have a catch-22 ...
To put simply, it has a broken USB port, ergo the common recommendation of using USB debugging + 'adb tcpip 5555' to bootstrap a wireless adb connection seems to be a non-starter. My Warranty is non-existent. I reiterate for clarity's sake: it has not a single connection via ADB, it is not nor has it ever been rooted, and the bootloader is pure and virgin (i.e., locked). Would it be possible to send ADB commands to my phone via a non-root SSH connection (presumably with PuTTY and SSHDroid)?

No in short, because the SSH connection would open a shell automatically logged into as an unprivileged user (the userid of the app) while ADB is a privileged user with userid 2000.

You could use wireless ADB if your ROM has it, but you'd still need a wired connection for fastboot. So your only hope of rooting would rely on some hack over ADB, not the traditional unlock bootloader, flash recovery.
Unlock the developer setting: go to about phone in settings and tap the build number 7 times. Then go in there and look for an option for ADB over network.
You can also open up a terminal on the device, like you were talking about doing with SSH, but it would have even less ability to do anything useful (as far as rooting your phone,) than ADB.
If you do get it rooted, you might be able to install a custom recovery from the rooted system, at which point you'll be home free. You can download files and flash them from internal storage.


text:
My phone gut stuck signing in with g-mail
So, I recently factory reset my J1 phone. It was twice. First bec. of the continuously switching on and off and then second, it was because I can't sign in with my existing g-mail account. I don't have any other solutions so last choice was to reset it twice. Now, I can't use and download apps. It got stuck on signing in with my existing account. It takes so much time. I even waited to sign itself in for the whole night but when I checkec it the next morning nothing happened. "The process com.google.process.gapps has stopped" and "Google Play Services has stopped" kept on popping out for like every 5 sec. I almost tried everything I saw on the net that can help me bug none of them actually helped with my prob. I just don't know what to do anymore. It sucks that I can't even use my phone. Please help me. I am hoping for your response. Thank you in advance.

Cleaning app data for Google Play Services may help.

Hi, thanks for the reply. I've been trying to do that but every time I try, "Google Play Services has stopped" kept on appearing.

The only solution left to you is flashing the phone with a stock firmware using Odin (on Windows) or Heimdall (on Mac).
EDIT:

Download the firmware from here(may need a registration)
Unzip it
Download Odin from here
Power down the phone, press volume down + home button + power button simultaneously
A menu should appear, press volume up button
Open Odin
Now connect the phone to the computer, you should see COM in blue (1), meaning the phone has been recognised.
If not, install drivers which can be downloaded from here - Download Kies and install it, will also install all drivers.
Click on AP (newer Odin version)  or PDA (for lower Odin version) and browse to the extracted firmware folder. (2)
Click on Start and wait till the end (3)

Hi, thanks for the response. The model number is SM-J100ML

Great. Alternatively you can grab the firmware from here

Comments aren't great for step-by-step instructions but you're welcome to join us in [chat] for interactive help if needed.

@Dan Hulme Thanks, I'm on Android Stack Exchange app, there isn't  such option to start a chat. Would be great if they add it.

I doubt they'll add chat to the app, because the chat system is very tied to the web interface. The web interface to chat works on mobile, though.

how will I do that? sorry noob here

I learned how to do it. Done, thanks a lot again.


text:
Pdf videos on mobile phone
I put a video in my pdf with Acrobat and there I can watch my video. But if I open the pdf on my mobile, I can't watch the video, I only see an image. Is there a way to watch videos of a pdf in a mobile? I have a samsung J5.

Do you want to play the videos inside the pdf app like Acrobat or to play them using other apps.

@Reddy Lutonadio inside the pdf app on my mobile

Have you already tried this one?

@ReddyLutonadio it says: "Flash is not supported"

@ReddyLutonadio This time it crashed with another file

@Curio Sorry to hear that. Will keep searching a better one.

Again, which pdf app are you using to open videos

@beeshyams I tried with drive pdf viewer, ezPDF player and acrobat on my mobile

This may help- can't verify since it seems to be Samsung issue and I don't have Samsung device

@beeshyams it doesn't work

this may be the reason

@beeshyams mmm and now? What can I do?

Let us continue this discussion in chat.

@ReddyLutonadio Wow, it works, I had to upload a smaller video. However it's quite ugly and there are some bugs

@Curio Yes the app has bugs, and sometimes when the video plays there are no images only the sound


text:
Galaxy tab 2 10.1 (GT-P5113) stuck on samsung starting screen after update
got update screen & clicked on it to update. When it was done it rebooted but is stuck on start up screen that says Samsung

Force shut down the tablet then boot in recovery and delete cache, reboot. should pass now.


text:
Create a home screen shortcut that opens a link as "web app" rather than in the browser
What I would like to achieve is described, in this article, i.e. to create a shortcut to a web page on my home screen, that opens in a separate window rather than as a tab in Chrome:

The icon will appear on your home screen like any other app shortcut or widget, so you can drag it around and put it wherever you like. Chrome for Android loads the website as a “web app” when you tap the icon, so it will get its own entry in the app switcher and won’t have any browser interface getting in the way.

I specifically want to do this on my tablet, a Google Pixel C running Nougat (Android 7.1.1).
Whenever I tap on "Add to Home screen" in Chrome, it will create a shortcut that opens a new tab in Chrome, which is what I don't want.
How can I get the desired behavior? It appears to have worked in 2014 when the mentioned article was written. Why would Google remove this useful feature?

I have a related question: https://android.stackexchange.com/q/249910/22600

What you're looking for is a progressive web app (PWA). After creating a shortcut for PWA's they open in an app shell giving it an app-like feel while it's still a web app. You can try that with Twitter Lite or Flipboard.
Here are some links that might help -
Goolge CodeLabs - Your First PWAPP
Auth 0 - Introduction to Progressive Web Apps (Offline First) - Part 1

In other words, this will only work if the website supports it. You can't make it work for websites that don't support it.

If there is no PWA availible, you can use WebApps for opening the page "outside" a browser.


text:
huawei p9 lite (emui 4.1.1, Android 6.0) default gallery app add
I try to change the default gallery app on my p9 lite mobile. I found the Default app settings menu, where I can override the default settings. But my problem that I installed an app (total commander) and I want to use that app for gallery, but unfortunately that is not on the list.
How can I add an app for that list? Or how can I set installed Total commander for default gallery app?
Thanks for the answers in advance!

Total commander is not a gallery app! It's is a file explorer. How do you expect it to be listed as a gallery app.
You can use QuickPic as an alternative gallery app instead.

Thx. QuickPic works. :)

You're welcome. Glad that I helped.


text:
Install GApps without flash it
I know we can download it in a zip format in order to flash in recovery mode, for exemple from opengapps project.
What are others solution to install GApps on any android device without to flash?
Edit : without root and without flash
GApps : Google applications + Google play services and framework

What else are you expecting instead of flashing?

If you want to install without modifying /system then it's impossible. But if you simply wany to DIY without using a custom recovery, it's OK.

@esQmo : In others words, how to have GApps when recovery is missing and the device is not rooted.

If you want to install without modifying /system then it's impossible. So the answer is "No, you can't" with neither root access nor recovery flashing. But if you simply wany to DIY without using a custom recovery, it's OK.
Takine OpenGApps as example. Download their ZIP and extract it.

Install BusyBox
Use busybox lunzip to extract the .tar.lz files in Core/
Move files other than APKs to /system. You will find things to be merges into etc/ and framework/. Take care of file mode (permissions) and owner/group.
Install GoogleServicesFramework.apk as system app. In my experiments it sometimes fail if not installed as system app.
Install the rest of the APKs as normal.

You can't install GApps without modifying /system. As you see, there are quite a few configuration files that will be merged into /system/etc during installation, and a few essential framework JARs to be installed to '/system/framework. They won't work if installed elsewhere.

It seems to be a solution with root access. I edited my question to add without root.

Google for play services framework and play store APKs (hosted third party) (I believe running the play store will install/update the framework, so that might be the only one you need), then install the rest of them from the play store. If you're rooted, titanium backup can try to convert some of them to system apps.


text:
How to turn on the Wi-Fi hotspot using ADB?
Do you have any idea how can we configure and turn on the wi-fi hotspot using the command line (ADB console)?

You could try this:
  adb shell am start -n com.android.settings/.TetherSettings
  adb shell input keyevent 20
  adb shell input keyevent 66

The first command opens the Settings page for Tethering and Hotspot while the latter simulate key presses: Down and Enter respectively.
Note: For different Android versions you may have to adjust the simulation of key presses depending on where the hotspot setting is located under settings.

Special Credits : Firelord and Kristopher
Firelord originally posted this as a comment, so I put this as an answer as comments are easily deleted or difficult to find

For android 5.0+ if this is not working then add another  one more keyevent 20. Credits: Kristopher

@xavier_fakerat where does the additional keyevent 20 go?  Should it be 20 20 66 or 20 66 20?

@Andrew 20, 20 and 66 i.e down, down, enter

@xavier_fakerat Thank you!  My phone actually has cyanogenmod on it, and enabling the hotspot is the first option in the settings, so all I needed to do was enter adb shell am start -n com.android.settings/.TetherSettings then adb shell input keyevent 66.

@xavier_fakerat Hi, I'm getting back an error message: Warning: Activity not started, intent has been delivered to currently running top-most instance.  I can't verify if that means it's not working or not, as I have a dead screen.  Is this normal?  I'm on Android 9.0.

@Arctiic This is pretty normal. It is not an error message, it is a warning sort of, the system is trying to tell you that you already have the same instance of the activity thus the system tells you that it is not going to kill and restart it, but bring the activity of your already running task into the foreground. Depending on the actual input events you should get the hotspot up with no issues ;)

If you do this repeatedly, you need to close target app before starting activity, otherwise, activity will stay open and key events will target other controls. Hence, instead of -n, you can use -S in first command. That is : adb shell am start -S com.android.settings/.TetherSettings

upto input keyevent 20  its fine but after that I dont need enter  but need keyevent to simulated toggle on off button what would that be . Android 10  ver 29

EDIT: To start/stop Hotspot through adb with the help of Automate, all what you'd need to do is to create a flow in Automate implementing the logic through simple block programming, copy its URI and the use broadcast it through a shell using Activity Manager
adb shell am broadcast -a com.llamalab.automate.intent.action.START_FLOW \ -d FLOW_URI_YOU_COPIED_HERE \ -n com.llamalab.automate/.StartServiceReceiver

This will immediately execute whatever logic you have created in the flow. In our case, that was enabling Hotspot. You could also pass on extras to the flow to have more functionality
Example for sending over extra information while starting the flow
adb shell am broadcast -a com.llamalab.automate.intent.action.START_FLOW \ -d FLOW_URI_YOU_COPIED \ -n com.llamalab.automate/.StartServiceReceiver \ -e key1 value1 \ -e key2 value2

The information sent then gets captured in the Payload section of the flow beginning
Searched up the whole internet couldn't find out anything BUT then I remembered about one POWERFUL app called Automate.
Using this app, you could create a complex set of instructions to be executed in your phone by something called flows.
The app has some really beautiful UI.
Here's a video demonstrating some really simple things you could do:
https://www.youtube.com/watch?v=i53Yd30TFrU
Simply speaking, you could access ALL sorts of Android APIs that would be extremely complicated to access otherwise through ADB alone. It's a universal solution for all phones to this hotspot problem and countless others.
It also has a vibrant community tab through which you could access the millions of flows created by other people.
The app is freemium, doesn't contain ads whatsoever. The only limitation is that you could run 30 blocks simultaneously at a time.
How to start/stop an Automate flow through ADB:
https://groups.google.com/g/automate-user/c/IPmrJ4HjXwk?pli=1
https://www.reddit.com/r/AutomateUser/comments/qqmpms/how_can_i_start_a_flow_via_adb/
App Link
https://play.google.com/store/apps/details?id=com.llamalab.automate
App Documentation
https://llamalab.com/automate/


text:
What does it mean if a "device administrator" can "change the screen lock"?
If a corporate policy requires a mobile device management app (like Microsoft Intune), what does it mean in Settings-> Security-> Device Administrators when "Change the screen lock" is listed?  Is that just changing the style of lock (passcode, fingerprint), or does that allow the administrator to disable the lock altogether (e.g. to unlock the phone to inspect the data or reset the passcode).

+1 - Good question. I would suppose the latter. Much like your corporate sysadmins can lock you out of your computer, given the right circumstances, they could lock you out of this device, too.

See if this gives you a broad idea: https://developer.android.com/guide/topics/admin/device-admin.html#policies

Thanks Firelord, the link is indeed interesting, but is lacking that specific policy...

It enables the app to change the lock code and lock you out of the device. In general trustworthy apps wpuldn't abuse this unless you request it. Like android device manager changing the code when you request it because of lost and stolen. Be careful with such a permission.


text:
Buggy android does not turn on
I got a Yu Yuphoria 5010.
I had custom installed Marshmallow CyanogenMod a few months back.
Recently, the settings would not open. Instead it started showing the message:
Unfortunately, Settings has stopped

                   Report    Cancel

The bug report would also not get reported when I press Report. So I tried to reboot the system. Although the phone shut down. But it didn't turn on anymore. I tried charging the phone for a couple hours, but in vain. I cannot even enter the recovery mode by pressing vol up + power + vol down keys.
I tried browsing the net for possible solutions. The closest I came was this section Did it gradually get buggy and then die? on this link.
How can I restore my phone's functionality?

You should attempt to flash it. Does the computer detect it?

nope. my Ubuntu 16.04 doesn't detect it at all.

Which variant it is? Qualcomm or Mediatek?

it's Qualcomm, in both 5010 and 5010A. and mine is 5010.

The phone should be detected... I don't use Ubuntu... I think there should be a device manager like in Windows, watch what is displayed there when you connect the phone to the computer.

no, the thing is the phone is dead. It is not powering up at all.

Do what I am asking you to!!! Your phone should be detected even though it is not powering on!!

Preferably use a Windows computer! I've no experience with Ubuntu.

Search on Google Qualcomm drivers for your device and for Ubuntu... There are thousands of links on internet by for Windows only. Can't help much there.

the phone is not detected either in Ubuntu or Windows.

Did you install drivers (Windows) ?

It used to detect automatically when I connected my phone to Windows.

Yeah obviously it was working and MTP drivers are default installed on Windows computer. Now we need to get your device out of the dead, for this we need some special drivers! If you think you are not able to do that, just bring your phone to a repair shop.


text:
Gmail autocomplete -- how to clear contact suggestions when composing a new message?
When I compose a new message in Gmail on my Android phone I'm offered several suggestions for the recipient (i.e. for the email's To: field) via an autocomplete function. These are often very old/unknown contacts which I'd like to no longer see as autocomplete suggestions, but I can't yet work out how to clear this list.
The contacts suggested appear to have come from an old list of "Other" contacts, i.e. people that I've contacted infrequently and who were not actual contacts I've added to my contact list. These only show up when I compose a new message in Gmail on my phone, and the autocomplete works as expected when on a non-Android device (laptop).
My assumption is that the Gmail autocomplete function is reading these outdated contacts from a list stored somewhere in a file on my phone which is impervious to the contact sync process or somehow not being cleared as expected otherwise -- I've tried all manner of syncing phone contacts, deleting old/other contacts outside of Android, etc. but no joy so far.
An idea I have is to somehow search Android's filesystem for a file that contains the unwanted contacts and if found then wipe that file clean. Is this reasonable, and if so can anyone suggest guidance that'll make this less of a wild goose chase?
My phone details:
Model: Nexus 5X
Android version: 7.1.2
Baseband version: M8994F-2.6.37.2.21
Kernel version: 3.10.73-ge570678
Build version: N2G47F

Thanks in advance for any help or insight.

I think this isn't necessarily phone related, but on Google's end, as the same thing happens to me not only on my device, but when logged into Gmail/Inbox via computer.

Do you know about the "Other" contacts? Do you get the same behavior if you remove these? My hunch is that the contact suggestions I'm seeing on my phone when I compose a new message are from the "Other" contacts list from some point before, and now that that list has been wiped clean there's a problem with getting them cleaned out on the Android device's end.

No, but you may be onto something...I checked there, remove a bunch that I no longer contacted.  Seems my device and Inbox on computer are showing the same Contacts for suggested ones.  You could try clearing the app's cache, and seeing if that syncs things up, or forcing an Account Sync for you Google Account in the device's Settings - Accounts.

Thanks for these suggestions. Unfortunately I already tried these steps before posting my question with no luck, and it actually just added more work to clean out all of the non-phone related contacts off of the phone (I usually don't sync so as to only have phone relevant contacts on my phone), but I guess it was worth a shot.

I've noticed something similar on occasion, and even more odd I noticed it when I had a LinkedIn account and it offered to check my contacts.  I let it and it found contacts for people I had only email once or twice years ago.  When I checked out my gmail contacts list, those contacts weren't even there.

this can be done in gmail web, by Going into Settings, and selecting I'll add contacts myself for auto-complete option. But this option does not seems to be present for mobile app.

Thanks for this comment. I checked into my settings via web browser and "I'll add contacts myself" is already checked. Not sure if this setting would clear the current auto-complete contacts on the phone, but like you say it doesn't appear to be available on the mobile app.

In your case, you could try clearing gmail's local data.
Go to

Settings -> Apps -> 3-dot Menu -> Show System

Then Scroll down and Select Gmail. Tap on Storage -> Clear Data.
This should remove anything stored by Gmail locally.
Your Emails and other data will be synced back when you reopen Gmail.

Thanks a lot for this suggestion, Albin. Unfortunately it didn't work for me. I've even uninstalled/reinstalled the Gmail app on this phone more than once but still the issue persists. It's looking like it'll take a hard total reset back to factory settings to fix this, and I dread reconfiguring my phone again to get the setup I have in place now.

If it didn't go after deleting data, then I don't think a hard reset would help.

Thanks, Albin. My hunch is that these unwanted contacts are stored someplace in a file on my Android device, as they never appear when I'm using Google services such as Gmail on my laptop. But without rooting my device it's not possible to search very deeply and so I haven't been able to verify this yet. And I'm not about to do a hard factory reset now that everything else on the phone is finally configured like I like it, that took forever.

I think it should be possible to wipe the autocompletion of unwanted entries by deleting the associated contacts.
For that, you should go to https://contacts.google.com/ and search the unwanted contacts. I am not sure if hiding the contact is sufficient or if you have to delete them, but I suppose you can find that out yourself as I want to keep my contacts.
Best regards

Thanks, Luca. I've tried this already. The contacts were all in the Other section, I removed these and then synced the phone but nothing changed.

I have exactly the same issue as the poster above.
My contacts have been cleaned out of the old address, the Gmail on the computer does not suggest them but the Gmail app on Android insists to keep showing old email address of someone who changed jobs four times in the last year or so and I communicate with a lot. And I only have his current email address in contacts yet Gmail for Android insists on preferring the older emails, a real pain.
Yes all the standard suggestions if cleaning contacts etc are not what this and other posters look for.. but for Google to fix this automatically.
However I did manage to clean it with doing this:
Phone > settings > apps > Gmail
- force stopped Gmail
- storage: cleaned both cache and data
- restarted Gmail which first looked as if I was a first time user, but it still know my email address so I could just click next and they all came back. The new is cleaned up

In case it's encouraging I thought I'd let you know that I now have a new Google/Project Fi phone (Moto X4, Android 8.1.0) and this problem has disappeared there. So somewhere along the way this seems to have been fixed (or this phone is using an older version of Android that didn't have this new bug?). Thanks for the update -- it's good to know I wasn't the only one frustrated by this enough to post about it here.

Although I'm not very familiar with this issue. But give a try on accounts.google.com-how we collect data. I will personally look into it since I had many expired contacts but never had Gmail recommended me those.
Also reset the contacts data from Google's server. That might do it. You are proposing that it may be due to some external sources. Regarding this I can only say that in your phone/devices there might be some VCS files from where these contacts are suggested. That's my guess only though.

Thanks for your follow up. I am no longer facing this issue due to replacing my phone and associated updates of Android.

Went to 'Other Contacts' in My Contacts and deleted the culprit that kept showing when I composed.  Did the trick - using Gmail.


text:
Spam notification keeps appearing
the following notification keeps appearing every day. Is there any way I can turn it off? The app is safe and not sure why it's notifying me at all. I have a Moto G 2015 with rooted CM14.1.

This activity is controlled by the "Verify Apps" part of settings for Google.
From the device, select

Settings > Google > Security > Verify Apps > "Scan device"

, and turn it OFF.


text:
Is it possible to root directly custom rom?
I have bought Xiaomi Mi 5c (bootloader unlocked) and tried to root it. I think I've used every possible software available on internet for rooting (like TWRP+SuperSU, iRoot, KingRoot), even tried to modify a system and boot image from custom rom by placing there SuperSu app and su binary. Also I have used some script which patches sepolicy and ramdisk with tools available in SuperSU app and do other necessary things to root the device, but after that my device does not even boot (stuck on fastboot).
I was wondering if I can use the same script (with some small modificatoins) to root directly a custom rom and then flash the whole custom rom with available root inside.
Intuition tells me that this should be possible, but till now I did not found any custom rom with root inside (except dev chineese roms which are already pre rooted, but that's a different story).
I want to root directly a custom rom and then flash it as I hope this could be the last chance to make it to work. So again, is it possible?

MI 5C is a fairly new phone and with Xiaomi's in-house SoC (harder to develop for than established ones like Snapdragon), therefore custom ROMs are expected to come out later and in fewer quantities.
Stock MIUI also employs a check on /system partition so as to prevent booting when it's modified, no matter how it's executed (modified before or after flashing).
There are a few tips on XDA about rooting, but I've examined them and none of them seems to be surefire. At this moment, the Developer version of MIUI is your only dependable choice. Since you're already unlocked, flashing it should prove no trouble.

You could try flashing LineageOS in your TWRP recovery (assuming you already have it). LineageOS has a SU add-on that you can flash and it will enable root access and built-in root manager so you don't have to mess around with SuperSU. Please note that you'll need to wipe your device before installing LOS.

I did not know about this OS before. Thanks, I will definitely try!

-1: That's for the MI5, NOT MI 5C! There's no LOS for 5C yet. Potential brick incoming...

@AndyYan +1 for potential brick incoming. MI 5C utilizes Xiaomi's own SoC, which is highly different from Qualcomm Snapdragon's. Even if the system works well, the kernel will halt.


text:
When Flashing New ROM onto Device, Can the Original Still Be Used?
I've recently rooted my phone and I was thinking about adding a custom recovery and ROM. However, my original OS still must be accessed. Is this possible?

MultiROM should be what you're looking for... but that is only limited to a few phones that support it / has it ported over.

OK. Submit that as an answer!

MultiROM should be what you're looking for, though it's only limited to a few of popular devices that support it / has it ported over, e.g. Nexus series, Redmi, etc. Look up in XDA-Developers if your device has a port.


text:
Can't get android 7 on galaxy s6
I have tried manually updating my galaxy s6 but it says I have the latest (6.0.1) but I know this isn't true! My friend has practically the same phone but with android 7. How do I update mine?
This is a screenshot of the manual update:

Is it unlocked?  That is the first step if you are doing this manually

Its unlocked yes

Updates are always rolled out in batches to different regions (even the same exact  model could be sold around the world). For your region (G920FBTU5DQA2 - BTU - United Kingdom), as SamMobile states, 6.0.1 is indeed the latest.
You could always manually flash firmware for the same model but for another region (listed on the same page) via Odin, at the cost of potentially losing your data (back up first) as well as certain region-specific optimizations.

Okay. Is there a way of finding out when the update will come to my model?

None that I know of.


text:
Block all internet traffic on a rooted device
I want to block completely and forever(even after factory-restoring the device) all the internet connectivity(WiFi, 3G and 4G) on a rooted device.

Open the case and destroy the antenna

Antenna-way seems quite reasonable for you :) Even no need to be rooted .

I can break the WiFi antenna, but if I break the celular antenna(to "block" 3G and 4G) I won't be able to make calls anymore ; )...


text:
Voice Control Offline
Is there a way to do "Ok Google" offline?
Basically I do not have a data contract.

"Alternatively" you should see: Where to ask for app recommendations? But the first part of course fits here. There is some rudimentary offline part with that, but I cannot tell in detail as I don't use that. Also see my list on Personal Assistants – I've read utter! is capable of that, but haven't tried it myself.

@Izzy thank you for this comment.  Your comments are sometimes as useful or more useful then actual answers. XD

For that you will need the Google Now offline voice recognition.
Go to settings >> Offline speech recognition (download latest supported language files).
You can perform some offline voice actions (play music, turn on wifi, turn on flashlight)
Here is a screenshot of Google assistant offline commands:

To make a call while offline:

Tap the mic on Google assistant
Then say Call "xx" where xx is any contact
After this it recognises the voice and identifies the contact and immediately calls the contact

See below screenshot:

(click images for larger variants)

Will this let me call people?  "Call Fred"

Yes it will work

Can one force that to always work offline, even if there is a data connection available? For privacy reasons, some folks don't like to have all they say sent to and processed on "other people's computers" (aka "the cloud").

@Izzy Good question! I am not really sure if there is an option to "force offline mode" perhaps I think blocking access to internet connection using a firewall may be an option, for privacy concerns. Probably safe if the user is out of data or doesn't wish to use internet altogether :)

That's what I read. Moreover, if offline it is reported to sometimes just giving an error pointing out that "no data connection is available". But as said, "I read". For the reasons given, I didn't try – too risky for me ;)


text:
Update Nexus 7 to a Nougat ROM
I have an old Nexus 7 (picked up from I/O 2012) that got unbearably slow after an OTA upgrade to Android 5.  After seeing hints from early adopters that Nougat is serviceable on this device, I decided to give it a whirl by following these instructions:

Connect from PC via adb and run:
adb reboot bootloader
fastboot oem unlock
fastboot flash recovery twrp-3.1.0-0-grouper.img

Hold Power + Volume Up to boot into TWRP Recovery Mode.
Advanced Wipe, selecting all partitions.
Advanced | ADB Sideload | then on PC run:
adb sideload aosp_grouper-7.1.2-ota-eng-20170410.ds.zip
adb sideload "Mini_Dynamic_GApps-7.1.x-20170121.zip"

Ensure /data is mounted (checkmarked under TWRP's Mount menu).
Still in TWRP, start Terminal and run:
echo "SYSTEMLESS=true" >/data/.supersu

Another ADB Sideload:
adb sideload "SR4-SuperSU-v2.78-SR4-20161115184928.zip"

Wipe, selecting Dalvik / ART Cache and cache.
Reboot to system, allowing TWRP to install its app when prompted.

Here are the files I used:

twrp-3.1.0-0-grouper.img
aosp_grouper-7.1.2-ota-eng-20170410.ds.zip
Mini_Dynamic_GApps-7.1.x-20170121.zip
SR4-SuperSU-v2.78-SR4-20161115184928.zip

The device booted up and began the setup wizard, but as soon as I tapped an option to either set up a new account or copy data from an existing one, I got the error:

Setup Wizard has stopped

and on repeated attempts:

Setup Wizard keeps stopping

After some more research, the consensus seems to be it's a permissions issue with blame ostensibly pointing to the CyanogenMod (presumably now LineageOS) team.  I tried a few suggestions below, but I could use some help on how to proceed.

Swiping down (notifications bar) or trying other "gesture hacks" to get to some sort of system options page to adjust the permissions for the wizard all fail.  The app seems to lock up the device pretty thoroughly into "kiosk" mode.
I'd love to try this supposed fix:
pm grant com.google.android.setupwizard android.permission.READ_PHONE_STATE

but after booting into the system the device is no longer visible under adb devices.  For what it's worth, running the command in a TWRP Terminal doesn't work either (and I'm not sure if it should).
Mounting System in TWRP and running df in a Terminal shows the /system partition is 98% full, with 16064 [bytes?] available.  I used the same GApps as the guy who wrote the instructions I was following; is it too big?
In TWRP I was able to rename /system/priv-app/SetupWizard/SetupWizard.apk to keep it from running, and that at least got me into the system.  But I can't figure out how to enable Developer Options / USB Debugging (required for adb) or even a Terminal window for that matter.  Tapping repeatedly on Build number in the About Tablet screen does nothing.
I could try and grab a Terminal app from Google Play, but I'm hesitant to proceed with setting it up with my credentials under this "Default Owner" profile.  Is it safe to skip the initial Android Setup Wizard altogether and just start using the device?
I also tried another TWRP Wipe, using the default partitions (Data, Cache, Dalvik).
I suppose I could try and sideload a Terminal APK.  But... really?

I came here because I didn't want to get too far ahead of myself before getting a second opinion.  I tried to document the steps taken so far as thoroughly as possible (as well in part to help others, since the documentation out there in the wild for all this is a bit scattered and confusing).  I'm hoping this is just a case of me having missed a small detail in the procedure that someone can point out.

UPDATE
I've done many flash attempts and at the advice of folks here and elsewhere I more recently switched to using:

LineageOS 14.1
addonsu-arm-signed
OpenGApps 7.1 nano (20170426)
This gapps-config-grouper.txt to trim the GApps packages
I also tried GApps nano with a more documented gapps-config-grouper.txt which I created in an attempt to only install BatteryUsage and CalSync (was hoping to save on some /system space and get the rest from the Play store afterward)

So instead of Steps 4-7, it's now:

Run on PC:
adb push lineage-14.1-20170423-UNOFFICIAL-aaopt-grouper.zip /sdcard/
adb push addonsu-arm-signed.zip /sdcard/
adb push open_gapps-arm-7.1-pico-20170426.zip /sdcard/
adb push gapps-config-grouper.txt /sdcard/

Install | Add the three zips (in the same order as listed above).
Safely ignore the "Updater process ended with signal: 4" and "Error installing the zip file" messages.

I was able to bypass the Setup Wizard - by using either the build.prop tip Andy Yan pointed me to, or the four-corner tapping trick Nadav Tasher suggested in his answer.  However I'm still having problems with apps stopping (even those from the Play store).  Presently working on identifying and granting missing permissions.
By way of example, while troubleshooting I found com.google.android.setupwizard was missing these requested permissions:
    android.permission.ACCESS_COARSE_LOCATION
    android.permission.CALL_PHONE
    android.permission.CAMERA
    android.permission.PROCESS_OUTGOING_CALLS
    android.permission.READ_CONTACTS
    android.permission.WRITE_CONTACTS
    com.google.android.apps.now.OPT_IN_WIZARD

I was able to grant all of them except the last one, but didn't manage to get the wizard to restart afterward so gave up on that (particularly after being told it wasn't that important anyway).
Haven't gotten a chance to do similar analysis on any other apps - and not that inclined to.  I feel like if things were working right I shouldn't have to be doing this, and am hoping someone can suggest a better way (e.g. a LineageOS tweak or maybe a different GApps?).

Had this problem a couple days ago.
Solved it by bypassing the SetupWizard.
Steps to skip:

Tap the top-left corner of the screen.
Tap the top-right corner of the screen.
Tap the bottom-right corner of the screen.
Tap the bottom-left corner of the screen.

Repeat this until the SetupWizard skips.

Holy smokes what kind of super secret Konami code is this!

did it work for you?

It got me past the Setup Wizard.  Handy to know.  But I'm still getting app crashes from various programs.  Seems something is wrong with my installation.  Based on what I saw of com.google.android.setupwizard, I think my APK's may not have all their required permissions.

try to give them permissions or update them somehow or reinstall gapps for 7.1.2

Hmm, it's not just the GApps I flashed.  Other Google apps I grab from the Play Store (e.g. Google app) are also having similar errors.

thats probably because the google play services is incompatible. it comes with gapps.

You mean the Google Play Services included in GApps isn't compatible with the Google app from the Play Store?  Is the Google app you get from the store the same product(s) which gapps-config refers to as Search and Hotword?  Does this mean I can't get Speech or Text-To-Speech either unless I install from GApps?  (I guess that would explain why they're in nano even though they're listed on the store)

it isnt compatible with the version of android so it crushes when being started by another google app.

it means that Google Play Services is incompatible with the rom so every app that uses it crushes.

you need gapps for android 7.1.2

Oh jeez!  That explains it.  I just figured that's what OpenGApps 7.1 was (i.e. that it meant 7.1.x).  Could you point me to a good GApps to use which is LineageOS-friendly?  e.g. How 'bout Beans?

this site has some: http://rootmygalaxy.net/download-android-7-0-nougat-gapps/

The GAPPS is outdated. Android 7.1.2 introduced changes to the Setup Wizard that will break it for older versions. Use the actively maintained OpenGAPPS instead, with the added benefit of choosing the version (mini, micro, nano, etc.) you want, and also make /system less occupied. Just wipe everything in TWRP and start from where you sideload the ROM and GAPPS.
Also, just a hint: AOSP is clean but lacks features. If you want to fiddle with more customization, there are plenty of choices out there (e.g. LineageOS). You also likely won't need to deal with SuperSU if you flash them, as they have built-in SU management.

Thanks, will try that!  By the way is that LineageOS build you linked to (2017-03-15) the one I should use, or should I go with the 2017-04-23 one listed here?  What does aaopt mean, anyway - is that the maintainer?

Yup, that's the maintainer. Use the 0423 build (since XDA people reported no major bug) paired with the latest GAPPS so as to avoid bumping into the Setup Wizard issue.

Apparently adb sideload streams the zip without storing it on the Android device.  I'm going to use adb push instead, but if I didn't, I'm curious:  How would I supply a gapps-config-grouper.txt and more importantly, where would the installer write logfiles (like open_gapps_log.txt)?  It said "Copying Log to /sideload" but nothing was there.

What are you looking to achieve? You could just install OpenGAPPS without configuring it. Is there an app in the package that you really want gone?

Sideload isn't the "mainstream" way to install - usually we have a copy of those packages on the internal storage. That's why CWM/TWRP has "install from storage" upfront but hides "ADB sideload" in a corner.

Makes sense. Got LineageOS and OpenGApps installed (and it looks different!) but once again getting the "Setup Wizard has stopped" error on first boot :-S. Used this slightly modified gapps-config-grouper.txt and the logs seem successful.  Most of that config was inherited from where I got it; I think the only one actually removed from stock CM was Email (see 0's in this earlier test). At least this time I can gesture my way into Settings.  Really appreciate all your help; looks like I'll need to poke around some more.

Let us continue this discussion in chat.


text:
SuperSU or Superuser binary
Can I add the superuser binary without a custom recovery?
Is there a way to force the binary install through terminal or  PC or app?

You can't write to /system normally. PC/app one-click rooters just use an exploit to forcefully open it up.

@AndyYan Nowadays one-click rooters flash a custom recovery (usually modded CWM) then their own root zip.

@iBug Really? I'm talking about the likes of KingRoot, KingoRoot, iRoot, etc. Those won't even need a reboot.

@AndyYan Modern phones no longer have such exploits so even the rooters you mentioned will have to rec+root. They only work "originally" on older exploitable phones.

@AndyYan I've also seen an alternative to grant adbd with root privileges by modifying /boot used by a few softwares, but more that uses this method are scripts and tools from BBSs.

@iBug Yeah I know about the lack of exploits, but I've never seen any of them migrate to this "classic" route as of yet, because that would mean they have to craft a recovery for every device they want to target, which I doubt those guys with quick money in mind would do. Modifying /boot is beyond mention as it's even more device-specific.

@AndyYan Modifying /boot is slightly different from directly flashing a new precompiled boot.img, as SuperSU does in "Systemless root". Also, a generic recovery doesn't seem that hard to make, as you can identify partitions with their partition name (not volume label). You can check out Shuame Sprite for this.

Let us continue this discussion in chat.

Generally no, but it depends on your device. For example, if you have an older non-updated Amazon device, you can usually root it with as little as an app install. For devices that haven't been exploited yet, however, there's little hope besides asking the community on xda and such very very nicely. It's a good idea to look for "bootloader unlockable" devices when you're looking to purchase a new Android device, to show the corporations that people want this.


text:
how or any app that can block users from removing apps?
We are planning to give 19 employees smart phones running Android 6.0. Keeping the story aside, we want to install one application on the phone that must not be removed at all. The application simply sends map coordinates to a cloud when our employees go on out reach program.
I am told rooting the devices is the only option but they are brand new and i am sure rooting comes at a security risk (as i have being told as well). So, I was wondering if there is a way to guarantee the application will never be removed and will run no matter what?

Possible duplicate of Prevent apps being uninstalled

Third party apps can help you to prevent uninstalls.
Have a look at this answer: https://android.stackexchange.com/a/21496/98689


text:
Xperia Z5C can't receive SMS
I just followed Sony's tutorial to unlock and flash the ROM to AOSP. I also compiled manually the kernel in the process. I imported my mmssms.db as well to keep my messages.
The stock messaging app kept crashing when opening a conversation, so I tried to clear the mmssms.db, but then I simply can't get to the redaction screen. I can select contacts but that's it. I tried another app that can send SMSes successfully, however I don't receive anything.
That's probably a bit confuse but I'd like to know where the issue could be, where to look and/or what useful debug infos I could get & share.
----- EDIT -----
I tried to put my sim in another phone: works
I put another sim in my phone: can send, can't receive as well.

Flashing it with the same bootimg and system without importing the mmssms.db fixed it. To be sure, I imported it again and it did the same as before.
It therefore seems that the replacing the DB is a bad idea, there must be another way.


text:
How to fix infinite bootloop problem in Sparkle V. Please help
I have a sparkle v which is unrooted and also I don't have any software like cwm.
My phone is stuck in an infinite bootloop. I tried removing the battery, going to recovery mode and factory resetting it and clearing cache.
I have marshmallow 6.0.1 in my phone before this problem.
None of those worked. Please help.

Did you tried to update OR tried to root OR tried to install custom recovery?

Yes, i tried if before when i am facing same problem. at that time i do boot my phone with STOCK ROM @RahulGopi

Did you tried to update stock ROM?

Yes! at that time it is working fine. and just two day before i am facing that same problem.

Did installation completed succesfully?

At that time it is fine but this time it will through error "E:/ Failed to Mount Cache (Invalid Argument)"

Let us continue this discussion in chat.


text:
Change "OK Google" hotword
I want to change the Hotword for the Google Assistant.
Is it possible to change the hotword from "OK Google" to something else?
Do i need a rooted device?

UPDATE: According to a comment below, the OpenMic+ app has been taken down by the author.

According to Google Help Forums, this feature seems  not to have been implemented yet:

At this moment, changing the hotword is not an available feature.
  However, we appreciate your feedback, and your feature request has
  been noted.

Fortunately there is a workaround:
There is an application, Open Mic+ for Google Now, with lots of customisation and enables the user to change the hot phrase.

With Open Mic+ you aren’t limited to “Okay Google”. Live out your
  sci-fi fantasies, support your favourite team, and just feel awesome
  with complete control over your phone.

Instructions:

Download and install the latest version of Google Search App on your device if you haven’t already.
Download and install Open Mic+ For Google Now App.
After installation ,open the app Open Mic+ For Google Now.
As soon as you open up the app you will see a warning indicating you to turn off Google Now Hot word Detection, here click on Settings >>Voice >> OK Google Detection >> Turn it Off.
Now head back to Open Mic+ For Google Now App and tap on Say area with a pencil icon.
Here type any command with which you want your Google Now respond like “Hey Device” and then hit Set.
Once set click on the Play button.
That’s it you now have successfully customized and changed Google Now wake up command from OK Google to something else in this case to Hey Device.

Hope this helps
References:

Alternative to "Ok Google"
How To Change Google Now Command From Ok Google To Something Else

The Open Mic+ play store page says: "Due to MIT overworking me, this application will no longer be supported by me :( Thank you to everyone for all the support, I hope to get back to this one some day.
"

Confirmation that the Open Mic+ has been abandoned: https://forum.xda-developers.com/showpost.php?p=67254032&postcount=503

Thanks for the update! But it it still possible to use the last release version?

It gave me various errors on my Samsung Galaxy Tab S3 http://a.co/bse54JM  (newly purchased).  The main use case for wanting to change this is having multiple Android devices close to you, each of which responding to the same hotword.

OpenMic+ has been taken down by the author, hence I think this post must be deleted or locked. Why lead people on a wild goose chase


text:
How to disable ringer off warning?
Multiple times a day my Android device will pop up this annoying alert that the ringer is disabled and that I might miss calls.  I have the ringer off on purpose and the device doesn't even have phone capability.  Seems to have started with the last security update to Android 6 (maybe a month ago?).  How can I disable this annoying popup?

Is that a regular notification? Could you please post a screenshot of this popup?

Disable the app Peel remote. Find the app and disable it.