text:
Android Emulator: How to avoid boot loop after rooting?
I was searching for a way to root an Android emulator.
I was very thankful for finding an answer to how to root an Android Virtual Device here: Root Android virtual device with Android 7.1.1
The guide (see URL) works and successfully roots my emulator (API level 25 Google APIs on x86). However, it's stuck in a boot loop once the device gets restarted.
Is there any way to avoid this since performing the steps to root the device on every startup is quite inconvenient?

Greetings! I am currently troubleshooting this issue, will get back to soonest :)  I think system image  gets corrupted but will bring results :)

Thank you for your time by looking into this issue. I look forward to your findings.

Strangely, the  system image is getting fried for  no reason :(, will shortly upload the logs

@xavier_fakerat when can we hear from you

Been busy working on the issue for a couple of hours now...
I have tried to reproduce the boot loop issue and I think when you update the su binaries somehow the system.img file is getting fried for no reason, so I tried to get the logs, but they don't have any useful information:
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000
VCPU shutdown request
EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=00000000 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =1000 00010000 0000ffff 00009b00
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     00000000 0000ffff
IDT=     00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
DR6=ffff0ff0 DR7=00000400
EFER=0000000000000000

So instead I opted against updating su binaries and as expected the emulator boots properly (no bootloop), but root is not preserved.
After a bit of digging, I came across this thread: Android AVD root access fail

So the problem is in that line from documentation:
emulator -avd aosx -qemu -nand -system,size=0x1f400000,file=<sdk_path>/system-images/android-16/default/armeabi-v7a/system.img&

Writers of documentation expected that Android Emulator will not
  change, but Android SDK have been updated and this line doesn't work.
  System.img file doesn't change and all modification made to system dir
  haven't saved. So there are 2 solutions to that problem:
First, if you want just root working, modify AVD with YAFFEY2
  https://code.google.com/p/yaffey/ and add replace there file
  /system/bin/su with file from
  https://github.com/idanr1986/cuckoo-droid/tree/master/utils/android_emulator_creator/binaries
  with name su.
Second, if you want also Xposed Framework working, that is necessary for work of Droidmon, u need start Android emulator. Just emulator -avd aosx (all other parameters aren't necessary). After that do : "adb remount". Then, copy replace /system/bin/su file, as I've said earlier. Then
  install Xposed Framework like it said in documentation.
So, now the
  main part. If u will close emulator now, nothing will be saved. But
  all your changes already saved to temp file of system.img. This file
  located at /tmp/emulator-/emulator- on linux(on windows:
  %profilename%\AppData\Local\Temp\AndroidEmulator).
Just copy this file somewhere and then replace your system.img in
  /system-images/android-16/default/armeabi-v7a (save your original file
  somewhere, maybe you will need it sometime) with it.
You can also make the system partition persistent if you just copy the
  initial system.img file to your .avd directory as system-qemu.img,
  then set the proper file ownership, and you are ready to go.

Somehow qemu, is failing to get required permissions, ideally we have to replace the system.img and rename it to system_qemu.img but use correct file permissions
In the meantime, I just modified a script to automate rooting of virtual device upon booting so you don't have to do it manually, basically the system is mounted with write permissions and su binary is pushed and all the necessary steps performed such that when the virtual device is booted, you already have root.
%profilename%\AppData\Local\Android\android-sdk\tools
Just edit the necessary lines below.
cd %profilename%\AppData\Local\Android\android-sdk\
.\tools\emulator -avd {AVD_name} -partition-size 2047 -no-snapshot-load -verbose
echo wait for boot
pause
.\platform-tools\adb root
.\platform-tools\adb remount
.\platform-tools\adb push C:\%USERPROFILE%\Desktop\rootemu\x86\su.pie /system/bin/su
.\platform-tools\adb shell su root
.\platform-tools\adb shell cd /system/bin
.\platform-tools\adb shell chmod 06755 /system/bin/su
.\platform-tools\adb shell su --install
.\platform-tools\adb shell su --daemon&
.\platform-tools\adb shell setenforce 0

Will continue to bring more updates....
Acknowledgements

How to root an Android Virtual Device?

Thank you for that extensive research!
The script included in your answer makes it indeed more convenient to root the device on start-up. I'll probably use that for now.
However, I'm not sure if the solution will work for installing modules that need a reboot, e.g. Xposed framework.
I am in the possession of one physical rooted device, so I can preform the necessary test there.
I will therefore leave it at this for now; I guess I just hoped it'd be a bit easier but unfortunately it doesn't seem so.
Greetings
BK

@xavier_fakerat, can I personally contact you for some small paid work related to rooting emulators?

I am unable to find this temprorary img file in temp folder


text:
Telegram messenger on android uses camera hiddenly
Everytime I open Telegram messenger and wait for a few seconds, then I check Stock AppOps in my android setting, I see that telegram has used camera same time,  While I never used camera.
my telegram version is official. Is this a security risk from telegram or this is a normal function only?

It may have just used the camera APIs to check that it had access, it doesn't mean it was actually using the camera.

You can try removing the permission from Telegram, and see if it asks you for camera permission and check again this app to see if it was used. I don't have a source for it, but @Mokubai suggestions sounds reasonable.

It is 2019 and I still face the issue. I prohibit the Telegram access to my camera, but after a while it becomes enabled again. Even though I am very sure that I did not give the permission. That should be certainly a security risk.

@hellouworld If you are really concerned about the camera access ask the company that develops Telegram. In any way if you have disabled the camera access for telegram what are you worry about.

@Robert, the access is granted without my permission after a while an Telegram starts using the camera in background again.

In my case it is Xiaomi Mi 9 SE, Android 9.

That's very unusual. If you disable the permission for camera use in settings within Android it should not be used.

source: Stack Exchange

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

sort: votes


text:
Android phone extension numbers
ANdroid 5.0.2 - Several contacts with same company phone # but different extensions. But it only keeps one extension. All the rest ignore my edit in which I add the extension #, even though it says it's saving it.
Also only shows that ONE contact every time I get a call from that company.

Open the dialer app and enter the number that you want to call.
Add a "pause" if you'll be entering the extension as soon as the line picks up. If the number you are calling allows you to enter the extension immediately after picking up, the "pause" function will automatically enter the extension after waiting a moment:
Press and hold the * button to add a space, a comma (,) and a space then add the extension # to the end of the number. This symbol indicates a two-second pause before the extension will be dialed. If pressing and holding the * button does not work, tap the (⋮) button next to the number and select "Add pause." If that doesn't work either, tap the number field to open your on-screen keyboard, then type a comma.
You can add multiple commas to wait longer. This may be useful for phone systems that have a delay before you can enter the extension.
On Windows phones, you'll need to type the comma in another app, copy it, then paste it to the end of the number.
OR
Add a "wait" if the extension can only be dialed after the whole menu plays. Some extensions cannot be entered until the entire automated menu service plays, or until a certain option is selected. The "wait" function will display the extension on your screen and you'll indicate when it should be entered.
Press and hold the # button to add a semicolon (;) to the end of the number. This symbol indicates a "wait," and the subsequent extension will not be dialed until you say so.
If you're using a Windows phone, you'll need to add a "w" instead of a ";". This will need to be copied and pasted from another app that allows you to type.[1]

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


text:
Galaxy S4 getting stuck in bootloop after random restarts
I have had my galaxy S4 for 4 years and the last 3 months it started to reboot randomly. After one such reboot it got stuck on the Galaxy logo in that I had assumed to be a bootloop. If I leave it off for about an hour it gets to the home screen and reboots and gets stuck again.
I have tried:

Factory reset.
Removing and replacing the battery.
Flashed 3 different ROMs.

After installing a new rom the device starts up normally but after a while(at the point of setting up wifi or just seeing the home screen) it would reboot and gets stuck on the Galaxy logo. At this point the phone would heat up a little bit, nothing dangerous.
So at this point I am wondering if its a software issue or hardware.
Any suggestions on what is causing the problem or where to look for solutions would be appreciated.


text:
Pattern Lock can't be disabled through settings
my girlfriend set up a pattern lock and we're unable to remove the pattern now. The Settings show the disabled Option and the text: "Admin, Guideline or login data prevent this". So I disabled all device admins, deleted all VPNs, removed all Login Data and found out that this helped nothing.
The device is a HUAWEI P8 Lite (no root/no bootloader enabled) running on Marshmallow.
Does anyone have an idea how to resolve this problem?

Do you have Android Pay or Mobile Iron (for corp access) setup? Maybe those are requiring pattern lock to be enabled.

If you have locked it through third-party app then try this. If there is Advanced Protection enabled on your pattern locking app, then you you need to deactivate the Advance Protection. You can do this by going to Settings >Security >Device Administrator >Uncheck the app. After this disable/force stop/uninstall the app. If you have put pattern on settings too then Goto SafeMode. Google it

Goto SafeMode [Your device brand] [Your device model]

After going into SafeMode do the above steps and after that restart your phone. Hope it will help.


text:
Google Maps - download ONLY country (without surroundings)
Google Maps for mobile (android) has a feature that you can download offline map, however it seems to me that you can only select area with fixed ratio, therefore you are selecting a huge area that you actually don't want.
Is there a way to change this select frame or to download some specific "country"? (But not anything from the surrounding countries? :)

I thought this is more of a general Google Maps - app question, but probably  isn't :)


text:
Enable startup pin/password security without lock screen pin/password?
It is my intention to disable the pin/password for the lock screen, while still having the startup pin/password security.
As I understand it, the options are to set a pin/password for

lock screen
lock screen + startup

I'm trying to figure out how to do it for the startup only.
(My device starts fine without unlocking the SIM, despite the SIM card lock option being enabled.)

What's your phone? I've never heard something like a startup password.

@iBug My take is it is about the pre-boot authentication for decryption.

@Firelord beeshyams's answer

@iBug Oukitel K10000, but I think it's a stock 6.0 feature. It asks for it when setting the lock for the lock screen. https://i.imgur.com/CRbdABZ.png


text:
How to get spoken instructions from Google Maps while bicycling?
I run Google Maps 9.57.1 on Marshmallow.
When I use directions in the "bicycle mode" I don't get any spoken directions. I only get this "ding" sound, without any audible indication as to where I'm supposed to go. This is a major inconvenience, as it's often very difficult to stop in the middle of traffic (losing all my speed, etc.) to take out the phone and look at the display.
When Maps is in "car" mode, spoken instructions work just fine.
Is this by design? Why is Maps like this? How can I get spoken instructions while bicycling?
FWIW, my phone is set to English language. I have had this problem in several countries, but I'm mostly based in Norway.
I'm open to using root access and Xposed Framework to fix this, should that be required.

One of these solutions may help, assuming muting Volume is not the cause

Download Voice Directions by keeping map open and getting directions

Sometimes voice directions aren’t downloaded or need to be updated on your phone or tablet. When this happens, you’ll hear a chime instead of voice directions.

Solution for same problem from Maps help

Uninstall and reinstall Maps updates
Ditto for play services
Clear Cache of maps before navigation


text:
Prevent bluetooth keyboard from losing connection to android tablet
I have an Android 6 tablet (Sasmung Galaxy Tab S 10.5 if it matters) and use a bluetooth keyboard with it. After a few minutes of being idle, the keyboard loses the connection. To reactivate it, I have to start pressing buttons on the keyboard, and wait a couple of seconds to start reading the keystrokes again. I want to prevent this 'standby' feature. Is there a setting?
EDIT: FYI: the most annoying side effect of this disconnection/reconnection of the keyboard is that video playback behaves strangely. Namely, it suddenly starts, or some other times it stops while I'm watching something or jumps to a different time point or a different video from the playlist. This happens with VLC and another app (Safari Queue) that has an integrated video player. I haven't tried other audio/video players but I'm guessing this a general problem and not something to do with the two apps I mentioned.

See if this app helps https://play.google.com/store/apps/details?id=org.myklos.btautoconnect

@beeshyams Thanks for the suggestion, I tried btautoconnect for the past few days but unfortunately the problem persists.

The connection loss over bluetooth is a feature of the keyboard itself.
Bluetooth 5 is little better than previous versions, but still you can only minimise the connection loss little because of the wireless nature of the connection and there is always a gap there which can lead to a connection loss.
BT5 should however be much more stable but end devices are still short in supply.
Differential solution: USB-C keyboard later if supported.

Thank you for your answer! I will see if I get different results with a better BT keyboard.


text:
Help while installing stock rom.zip
While installing the stock rom the steps include

Open TWRP
Clean Cache system data
Install stock rom

When I clean the system data the stock rom zip that I have kept in the sd card also gets deleted. How am I supposed to install the rom ?
I am using TWRP , on a moto G2(2014), an the stock rom is android nougat 7.1

Just perform 'Factory Reset' in TWRP (Don't wipe /data partition).. That way, the files in Internal Storage remains

Place the ROM zip file in /data/media , that won't get wiped, when you wipe with TWRP
That's assuming you don't have an external SD.
See this for more -What's the difference between Data and Internal Storage?

But how to copy from sd card to  /data/media

If you're referring to /sdcard, which is also known as the Internal Storage, then you don't need to copy the file to /data/media if it's already in /sdcard, as /data/media serves as the emulated storage available through /sdcard as internal SD card.  But, if you're referring to the external SD card, which is usually located in /external_sd, then it's up to you if you want to copy the file to /data/media, as you can select which partitions will TWRP wipe.  If you want to copy the file, TWRP has a built-in file manager accessible through Advanced > File Manager.


text:
How do I change my default alarm clock app?
So trying to get it so I can say "ok Google, set alarm x".  But it defaults to the basic alarm on my phone which is not a good alarm clock.  Looking through settings, apps, there seems to be a way to switch the default program for everything except alarm clocks.
Thank you

Try this - go to settings > apps and Disable the default alarm clock. Now maybe it will open the clock you installed !

Great idea. Not working out.  The default alarm is tied to the clock app.  Which doesn't seem to change anything after I disable it.

Say: "Okay Google, set a timer".
When it prompts you for the duration, there will be an option somewhere on the screen where you can click and select a different timer app.

This worked really well on Mi UI 10 with Google Voice

Worked on my Galaxy S10!  I was able to replace the Samsung clock app with the Google clock app.

Worked on Huawei P30 Pro!

I'm not sure if the problem solved itself, or if it was something I did. Instead of OK Google set alarm, I did OK Google "specific alarm app" "time" , and it now defaults without having to specify the app anymore.

I use Alarm Clock Plus and was having the same problem with the requested alarms defaulting to the system's clock app.  Using Joshh's answer, I said "OK Google Alarm Clock Plus set alarm for 9am".  Once Google used Alarm Clock Plus, it became the default.

I installed alarm clock plus, and did as above  "OK Google Alarm Clock Plus set alarm for 9am". This changed the default alarm clock, when I deleted the alarm clock plus app it prompted me for a new default app the next time I said "set alarm 6am"  This allowed me to resolve another calendar app that was stealing system clock alarms.

This is how I changed the default app. Hope it works for you :
A) "ok Google, set  alarm"
B) the following screen appeared
X) tap on the icon and change the app to your desired alarm app (I use any.do as it has a snooze function)

If you're using the Google Assistant mode, when you say "ok Google set alarm", it will type your words as you speak, and then vocally respond, typing its words as it speaks, in a facsimile of a text messenger.  An icon for the clock app it's currently using should appear beneath Google's response as she asks you when you would like to set it for.  If you click on this, it will drop down a menu of options for which clock app you'd like to use, and then it will use this as your default alarm clock later on.  I believe you may also be able to say "view alarms".

I was able to replace the default app for timers:

Open Assistant.
Click the icon at bottom left that goes to some assistant home page.
Find the set timer action in the list at the top. It opens a card to edit the timer details.
On that card, click the timely icon and select the default clock from the list.

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


text:
How to migrate app data when switching the app source
Say I have "FunnyApp" installed from Playstore, now it turns up at F-Droid – and I want to replace the Playstore version by the F-Droid one (same issue vice-versa). Trouble is, I cannot simply update the app from the new source as the signature doesn't match (F-Droid signs with their own key). FunnyApp doesn't offer any "export" functionality, but I don't want to lose its data.
What would be possible approaches to perform a proper switch?
Traps:

Simply updating/installing from "the other source" does not work (signature mismatch)
performing a data-only adb backup doesn't help, as the restore will fail for the same reason

I have some vague ideas on root-based solutions which I haven't tried yet (e.g. Titanium Backup might be able to restore data despite of the changed signature, and there's also some XPosed module (InstallerOpts?) offering to "suppress the signature warning"). But before "messing up big" I thought to ask here if someone might already have successfully tried some solution.
Non-root solutions preferred (so more people can profit from), root-based solutions acceptable, XPosed as requirement OK as well.

Some reasons why one might want to "switch sources" (aka "cross-update"): Getting rid of proprietary dependencies, app no longer updated at original source …

Right, @iBug – the second one was XPrivacy. I alsways confuse which wants the big P and which not. Doesn't really matter in this context, does it? But thanks for your "read confirmation" #D

Xposed is ONE word, while XPrivacy is X + Privacy (where X is a common prefix of something being an Xp module, like the iSomething's in App Store).

Rootless
Sorry but AFAIK it's not possible :( I've never seen any app/tool/utility successfully modifying other apps' data, not even reading!
Alternatively you could do that in a custom recovery, but who uses a custom recovery without rooting? So read below.
Simple Root (Manual way)
Don't take it too hard. Just move its original data away, uninstall the original app and install the new one, then move the data back and chown. Sample shell commands are below.
# mv /data/data/com.example.foo /data/media
 * UNINSTALL_ORIGINAL_APP
 * INSTALL_NEW_APP
# ls -ld /data/data/com.example.foo
 * take note of the user (e.g. u0_a123)
# mv /data/media/com.example.foo /data/data
# chown -R 10123.10123 /data/data/com.example.foo

Explanations for each step:

Move original app data to an alternative place. Because Androis automatically delete irrelevant files in certain directories, we need a safe place as the Alt. AFAIK unknown files are ignored in /data/media so that is chosen.
Replace app. No explanation.
Obtain the UID of newly installed app. Wrong UID will make Package Installer delete app data.
Move data back and change UID.

A small note: The builtin chown command does not accept option -R (recursive) by default in Android L or lower. You need BusyBox in that case. In Android M and up it just works fine.
Root Utilities

Titanium Backup
With TiBu you can easily back up existing data, then safely remove the old app and install the new app. Then as long as both packages have the same package name, you can restore the data for the app with TiBu, intact!
However, this solution is essentially a data-backup, so it will not be maintained here. If you want to learn more about backing up & restoring data, check out our tag wiki for backup, under the App-based backups section.

Xposed Modules (Easiest, Recommended by iBug)
XInstaller and its successor, InstallerOpt, can hook Package Installer to allow packages with mismatching signatures to be installed (by skipping sig check). Then all your data is preserved and you can easily switch to different versions. This is the method I am currently using and it has been working fine. Sad that Xposed isn't officially available for Android N (so far), so this solution is only for Android M and down.
Theoretically, they should not cause anything wrong because all they do is hooking the signature checking function and change its return value to a truthy value, bypassing the check. If the replacement package have any other defects than mismatching signature, the installation will still fail, so no faulty packages can be installed even if you skip signature check.

Important Notice
  It is not recommended to leave that option (skip sig check) enabled all the time. Leaving it enabled will create a big security flaw as hacked apps (almost always use a different signature) can also be installed. I personally enable it only when needed and disable it as soon as I finished my package replacement.

Is the sample shell command effective?How can I restore again my apps if it didn't work in my android?I would like to have a very clear answer before I try this to my android phone.

@JuanitoParungao The sample shell script is exactly what I've done many times without a single failure. Still try it cautiously.

InstallerOpt worked like a charm, thanks for ensuring me of that :)

Are there maintained InstallerOpt/XInstaller alternatives working on Android 9-12 ?


text:
Configure Android as proxy server
Hi am trying to convert my mobile device as proxy server, I searched net but cant find proper solution.
What I am trying to do :
Setup proxy server on android and use that mobile IP/Proxy IP address in my PC browser as proxy.
In Pc we can use Squid Proxy for this purpose I am searching similar framework in Android/Mobile to convert my mobile into proxy server

See: https://android.stackexchange.com/questions/138519/using-your-android-phone-as-a-proxy-server

Hi,Thanks for suggestion unfortunately that is not working for me. is there any document so that I can follow thanks

You could try SandroProxy, a free app developed by XDA Developers member SandroBSupp.

It can act as pass-through proxy, traffic is not stored, ssl tunnel
  remains the same to server.
SandroProxy doesn’t require root. All you need to do is to hit the
  Play button and the app will serve as an SSL MITM proxy (Secure Socket
  Layer Man-In- the -Middle-proxy). Your HTTP/HTTPS requests will be
  redirected through a web server, making your sent and received data
  invisible and, thus, protected.

You can access transparent proxy, a network layer proxy which, in turn, redirects the traffic needed by your phone for proxy identification. The only traffic that this proxy modifies are those which are absolutely necessary for proxy identification and authorization.
Uses proxy on localhost:8008
Haven't used it but it looks promising for what you're trying to achieve.

Hi, I installed that app., proxy listening on 127.0.0.1:8008, If I check my IP in mobile browser "what is my ip" I am getting 92.20.xx.x . Now If I try to set that in my PC Firefox in network settings  92.20.xx.x:8008  It is not routing via that proxy. Please explain what I am doing wrong


text:
Can I turn my Android tv box into a NAS server?
I've got a MXQ Pro 4k TV Box and a 4TB hard drive that I rarely use and I was wondering if there was any software I can use to make it a server.
The MXQ box has 1GB RAM, a 2.0GHz quadcore chip and ethernet, usb and hdmi ports.
Do you think it would be easier for me to put linux on the box and run it from there? Also would there be a way for me to set up a segment of this drive as a time capsule?
Thanks :D

It'll surely be easier if you set up a GNU/Linux system on the box.
There's a very popular NAS software on Linux named "samba", and is available everywhere from built-in repositories, i.e. you can install it with sudo apt-get install samba or sudo yum install samba. Bunches of tutorials about it are available on the Internet. However that good job does not have an Android port :)
For setting up Apple Time Capsule, I used to learn that it's possible but I don't know if it's still possible now. You should search online instead of asking here – it's blatantly off-topic on Android Stack Exchange. Maybe you want to ask on Ask Different?


text:
Redirecting phone's audio to pc through usb
So I want to basically redirect my phone's audio to my computer's playback device through USB and not through Bluetooth which is what most posts are seemingly concerned with.

This guy Streaming audio from smartphone to PC without bluetooth asked a similar question about 2 years ago which hasn't really been answered so far so I thought I would bring it up again.

Devices and Os's :
Phone : Samsung Galaxy note 4 under Android 6.0.1
Pc : Windows 10 pro

Basically it's not an Android question, but a PC question: All you have to do is make your PC advertise itself as audio device. Then pair it and play! I had done that with Linux a while ago.

Download third party software Wondershare MirroGo. It works great (Not promoting).This works only for screen rendering and audio can only be heard in recordings. No direct audio routing.
Some instructions to follow:-
 - You can download Mirror Go from Here
 - After downloading and installing, Enable your phone's USB
    debugging, see here -  How to enable USB Debugging.
 - Simply connect your phone with USB and accept the adb authorization
    request pop-ups on screen and you're done.
Main advantages of this software is that:
 - You can render your phone's screen on Desktop/Laptop.
 - You can play games/movies/songs through MirrorGo.
 - You can control your phone via MirrorGo through Mouse/Keyboard.
 - You can record your screen via MirrorGo during the live view of your phone in your laptop/desktop.
You can Also use MirroGo with MobileGO ( an advanced software to backup your whole phone with one click and tons of features and works for Iphone too).

UPDATED: - (With audio/Video/Images support) Here's a solution using all time favorite media player VLC.It doesn't work with USB (sorry for this) but It works great with a local network. you can either create hotspot of your phone and connnect your lap/desk with it or you can connect both the devices to a same network.It's the best fluent method out there and It works for Audio/Video/Images.
So here's the method:

Download this apk in your phone and install it. I have decompiled it
without ads for easy use.
Connect your pc and phone with the same network or connect your pc to
your phone's hotspot.
Download this VLCdirect.bat file and Run it as Administrator.
Write click VLC, select properties and in target paste this --http-password=vlcdirect
after the location which is like this
"C:\Program Files\VideoLAN\VLC\vlc.exe"
.Note that there's a space between " and --.
Open VLC and enable Web interface, see this image.
Open the app and click done and skip everything as you would be done
with all those steps if you're on this step.
Now you're all set. Play anything through the app and you'll see it in PC's VLC without buffering. It really works fast.
Two points to note:
Usually .bat files contain the virus but it's secure. you can verify
it by right-clicking the .bat file and click on edit and see
yourself.
You don't have to do all this everytime. Just click on Web interface
in pc's VLC.

I have tried the application you recommended, it is indeed very nice and works great for the screen rendering. Though, i cannot seem to make the sound part work, it plays audio on the phone by default and i see no parameter in the computer app to change that.

Sorry for this, It works only in the recording. Updating the answer with another solution.

So i set up vlc and vlc direct as you recommended, it works great once again and the responsiveness is impressive i will most certainly use this conjunction with MirrorGo and thank you for telling me about both of those. Though, my main problem remain unsolved, I wanted to redirect my phone's audio, and by that i mean that i wanted to be able to do anything on my phone (like passing phonecalls, watching a youtube video, use a newly install radio app) and be able to hear it as i would with the phone's speaker but through my computer's headset.

I realize that what I am trying to achieve may be borderline impossible and you were of a huge help regardless, thank you for your time.

(sorry for the poor English in the long comment it seems that i ran out of edits to correct the mistakes)

And about the Bluetooth part,  I mainly requested a non Bluetooth solution because my desktop computer doesn't support Bluetooth and buying a dongle or a new network adapter is really possible right now.

No problem mate and Language doesn't matter, you don't have to be sorry or say sorry for that.  At least I helped you a bit, that's enough. And yeah, your main requirement is still incomplete.


text:
Apps and OS will crash seemingly at random
I got this new phone (An LG K 20 Plus from MetroPCS, model# LGMP260, running 7.0) roughly a month ago. Roughly a week afterward, apps started crashing out of nowhere. Sometimes, it was triggered by actions. If I clicked the wrong thing, whatever app I was in might crash. If I scrolled too fast, the app might crash. If I tried to load something big, the app might crash. This mostly happened with Relay for Reddit, but mostly because I really only used that app. But more often than not, it would just be in the background at random. I would often get "Photos has crashed" messages, despite not even having opened Photos. It wasn't even the app I was running sometimes. During these weeks, some of the highlights of apps crashing have been:

Nova Launcher
Home
Call Management
System UI
Settings
LG Keyboard
Google Play Store
Google Play Services

Reboots don't even help much. Sometimes, it will just freeze on the MetroPCS screen during boot. Others, it will boot, but then show just a black screen until I hold down the power buton to turn it off. Others, it will boot, but then say "System UI has stopped," and I have to take out the battery to reboot it. And sometimes, it will just boot normally, sending me back into the normal crashes. Oh, and I can't even google anything because Chrome always throws an "Aw, Snap!" message whenever I go to any page whatsoever.
And now recently, Google Play Services have been giving me some trouble. It would often start randomly saying "Google Play Services has stopped" every few seconds until I reboot. And then, two days ago, the Play Store would start crashing when I went into it. Upon inspection, I found out that Play Services had decided to just uninstall itself. I found a mirror and reinstalled it from an APK, but it would either say that Play Store wasn't installed, or was updating. And then yesterday it went back to normal like nothing happened.
I even tried resetting the phone. Twice. It didn't work. In fact, it took me a while to set it back up because it would give me the "Google Play Services has stopped" message during the set-up sequence. And then, after a dozen reboots or so, it decided to grant me permission to re-enter.
There's no way this is a software problem, or a reset would have fixed it, right? Is this a hardware problem? Do I need a replacement phone? I apoloize for the wall of text, but there's a lot going on that I need to address. Thank you for your advice.

I am having the same issue. Try booting into safe mode. That's what I did. This should give you some info on if this is a software problem or a hardware problem.


text:
Android - Check whether an app was sideloaded or installed via play store
I recently installed a third party application and never looked at its name or icon it came up with in the screen. But, after installation, I saw a notification from an app, that says Google Play Services had been updated.
This made me nervous that, the third party app I use was actually got updated through google play services. I have checked in Settings -> Apps -> Google play services, and at the bottom it says where it was installed and it says google play store.
Does this bit of information only mean when it was originally installed or does it also account for updates. For example, if I originally installed an app from the play store but then side loaded an update would it say installed through the play store or via a third party.
I also use solid explorer and checked the SHA1 hash of the app which matched with the hash I found online for that specific version of google play services.
Am I safe? And if so, does Google play services usually update in the background due to being prompted to check when you are updating other apps or is it just a coincidence.
Thanks. Sorry for the wall of text but I want to be sure i'm safe.

[If] I originally installed an app from the play store but then side loaded an update would it say installed through the play store or via a third party

It would say sideloaded. You can check the status through the command (requires adb):
adb shell pm list packages -i PKG   # replace PKG with package name of the app

In output: in case of sideloading, the installer would show null value. If the app is updated/installed through Play Store, the value would be com.android.vending.
I tested this on Android 6.0.1 though.

[Does] google play services usually update in the background due to being prompted to check when you are updating other apps or is it just a coincidence

Yes, it does so on its own. I have setup a toast to inform me which app is updated in the system, and I noticed that the Play Services often updates in the background when Play Store app is  active on the screen.
No third-party app can automatically force any other app in Play Store to get updated or be sideloaded automatically. It could be just a coincidence  that the both happened at the same time.

+1. Is it possible that sideload app gets updated by play store ? It's been a long while since I side loaded so don't recall

This question says not possible but there seem to be apps that do that - apkupdater that checks from apkmirror only - so my previous question is not valid but leaving this as a comment on case anybody wonders

@beeshyams if the signature of the sideloaded one is the same as that of in Play Store than Play Store can update it. However, I have a doubt Play Store would do so automatically. Whenever I sideloaded an app, I had to find it in Play Store first and then tap Update button to start update process. Afterwards, it's treated as normal.

Thanks. Afterwards, it's treated as normal - do you mean subsequent updates happen automatically or the process is BAU

yeah, they happen automatically.


text:
Having trouble setting up Android SSH tunnel with port forwarding (x-post /r/ssh)
I'm trying to log into an SSH server in such a way that I can securely visit websites on my Android phone. I have done the following:

Set up port forwarding for SSH server xyz.org, port 8080 on VX Connectbot (I did this with "Edit port forwards"->"Add port forward")
Logged into xyz.org on VX Connectbot
In Firefox, set:

network.proxy.socks=127.0.0.1
network.proxy.socks_port=8080
network.proxy.socks_remote_dns=true

But when I go to whatsmyip.org, the WHOIS lookup shows my cell phone provider, when it should be showing the SSH server. What am I doing wrong?
Is it possible that the SSH server is allowing me to log in, but refusing port forwarding requests? How would I test that?
Or have I incorrectly configured Firefox or VX Connectbot? Or maybe there's something else I have to do in my Connectbot session to start the port forwarding?
Reddit post here

I ended up using a different SSH server, and setting Firefox config as follows:

network.proxy.type=1


text:
playing WhatsApp videos with your default MX Player on Android
in the past WhatsApp videos opened by default in the video player you annoted on Android as the default video player.
in my case all videos in my Android phone (an Xperia z ) will open with MX player which is the default player I made for all video and audio files.
however newer versions of WhatsApp will force all videos to open in an internal WhatsApp player which is a very rudimentary player. it will not automatically Orient the video besides volume boosting.
other than actually use an explorer and navigate to the WhatsApp video folder , is there a way to force all WhatsApp videos not to use the hapless internal WhatsApp player but use MX Player.
I don't think an older version of WhatsApp that permitted will run without problems right now.,.. I very consciously avoided WhatsApp upgrades to a  point where my WhatsApp itself crashed repeatedly and would not work & that is when I upgraded

Use this app as default handler to select the player of your choice

I already configured my default video player as MX Player and it will play all videos when opened through Android Explorer with MX Player. problem is we are opening WhatsApp video through WhatsApp the app and the app is forcing all videos to open with an internal video player so this app that you pointed out loud no use it has not succeeded in changing his behaviour.

I understood the problem and suggested this as it worked in similar situations. Maybe WhatsApp hndled differently. Suggest back up you WhatsApp, uninstall and reinstall and this app should give you choices

Or try the app mentioned here https://android.stackexchange.com/q/136679/131553

sure will do that every time I had to uninstall and reinstall I've lost some history so I gotta make sure backup is latest on up to date so it takes some time but I am a little Pessimistic because the internal WhatsApp player handles all videos and images by self and does not give the other interface a chance. I would try reboot before I uninstall and reinstall thank you for the suggestion

Also try the second app linked

tried pretty much everything... none of this link apps will connect a WhatsApp video through the WhatsApp interface with MX Player. my only hope is when you select a video via WhatsApp there is a share icon that can invoke some external applications while YouTube and other relevant applications are there in that list MX Player does not figure I am not sure on what logic is this share bringing up a bunch of useless applications when MX Player is not available how to make MX Player come up in that list


text:
Uninstall Work account and wipe all associated apps
I recently tried ManageEnigne Mobile Device Mangement plus for my phone. It was working fine. It created a work account and installed secondary Chrome, Play Store with a work icon.
Now I have finished testing the app and want to uninstall it. I followed the instructions here.The app was successfully uninstalled but the work apps created like the chrome and play store are all present in my device.
I tried the steps mentioned here.In my Redmi Note 4 there is no work option in the accounts section. There are however two Google accounts now. Since I used the same email id to sign in I don't know which is which and I don't want to uninstall my personal account at any cost.
Can anyone help me wipe the work account from my phone?
Note : I launched a remote wipe of Corporate data from the web console and did not delete anything.


text:
Safe startup and accessibility services
I have a Blackberry DTEK 50 (android 6.0)
When I set the option to have a pin set at startup ( security option special to blackberry? ) then accessibility services will not run (as far as I understand it)
Has anybody else have this problem and is there a way around it ( outside disabling safe startup)

Accessibility Service should still run. Are you unable to run them. In which case please add a screenshot showing errors

I think it is a bit chicken and eggs , when I activate an accessibility service the startup pin disappears,  when I set a startup pin accessibility services are stopped not sure what  screens it's you would need and how to get them

I checked on 6.0 on Moto X Play 1. I can activate accessibility services despite apps having that permission and activating PIN ( I normally use swipe ) 2. There is a standard dialogue that says PIN can't be used for encryption because accessibility Service is activated. Maybe what you are seeing is a Blackberry implementation, which I am not familiar with


text:
Duplicate package names ending with ".overlay"
I'm using Vodafone Smart ultra 7. I observed that every system package has a duplicate which is the package.name and package.name.overlay

com.android.systemui - com.android.systemui.overlay
com.android.musicfx - com.android.musicfx.overlay
com.android.dreams.basic - com.android.dreams.basic.overlay

Literally every system package has duplicate copy.
That prohibits me from using lock task.
What are these packages?

Do you use (or does the OS have) any overlay theming service? One example is RRO/Substratum.

How could I check it ? I haven't Installed any custom OS or rooted my device !!It is out of the box device.

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


text:
WhatsApp media is not showing up from WhatsApp account when migrated from old phone
I bought a new phone, so I took a backup from the old phone's WhatsApp account and installed in the new phone. Now at the time of installation I chose the "Restore" option from the backup so it can restore the messages and media.
Now I was using an SD card as the storage device in my old phone for WhatsApp. So all the images are on the SD card, and I can view them in Gallery. But when I am trying to go to any contact's "Media" option I am not able to see any images/videos which I was able to view from old phone.
So how do I see the media from a contact's home in WhatsApp which are in gallery?

@beeshyams you are right Whatsapp is installed in internal storage. I didn't get the second part of your solution. I went to the "system apps" but not able to find media storage

No. I can't be able to find it. If it is of any help... I am using Redmi Note 4 (Marshmallow) and MIUI-8 interface.

I used a different technique. A post from Quora. Will update the answer later.

Good. Then please delete comments comments as clean up :)

I took help from this Quora post, and I figured out that WhatsApp is installed in internal memory. That's why it isn't able pick up the pictures/media from the SD card. Here is what I did.

I renamed the WhatsApp folder in the internal memory. From Whatsapp to Whatsapp_backup.
Rebooted the phone.
Downloaded an image from a chat. This forced to create another Whatsapp folder to be created in internal memory.
Then moved all the content from SD Card/Whatsapp/Media to Internal Whatsapp/Media folder.
Then I closed WhatsApp and started again. This made WhatsApp to refresh the memory index and pick the media file according to chats.

Is the folder name actually "Whatsapp" (not "WhatsApp")?

@PeterMortensen We can well believe that a human can identify wrong capitalization by himself.


text:
Printing from phone
I do not have a computer, just a printer. I have a .docx file saved on my Samasung Galaxy Tab 2, and need to print it ASAP. How do I do it?

Your printer needs to be compatible firstly. Install Xodo app, open the document and select the printer from print options


text:
Downgrading Galaxy S6 from Nougat to Marshmallow
Having problems rolling back to Android 6.
I put the phone into Download Mode (switching on with Home + Power + Volume down followed by Volume up)
Connect to Odin 3 v3.12 (and get Added!!)
Add in the md5 file to the AP section (which takes a few minutes)
When I hit Start it instantly fails with this stack trace....
Get PIT for mapping..

Firmware update start..

SingleDownload.

sboot.bin

Fail

Complete(Write) operation failed.

All threads completed. (succeed 0 / failed 1)

On the S6 screen I get...
SW REV. CHECK FAIL. DEVICE: 5, BINARY: 4

Most Samsung devices don't permit a downgrade since the bootloader is the latest with new OS and that prevents a downgrade

Could I ask why you want a downgrade?

Android 6 devices are on our list of supported devices and want them to run this OS rather than 7 for testing/support.

Please show us your full current firmware version, e.g. G920FXXU5EQF1. Refer to this answer for a brief explanation on bootloader level and its effect on downgrading.

Unfortunately, all Nougat firmwares (and even some late Marshmallow ones) are already on bootloader level 5, therefore downgrading through official means is impossible. It might be possible to load the device up with a custom recovery, then flash a custom ROM based on Marshmallow, but compatibility isn't guaranteed.

G920FXXU5EQAC is the current firmware.

@chris_elevate Then no go. The screen already tells you that by showing the red alert Device: 5, Binary: 4. As I said, if you don't mind warranty void, you can always try custom ROMs and see if they'd work.


text:
Enable Samsung's "video enhancer" for arbitrary app
The Samsung S7, S8 and perhaps other phones have a "video enhancer" feature that can be turned on in the phone settings. This significantly improves visibility under strong lighting (outdoors) in those apps which it affects (YouTube, video player, etc.)  The screen appears much brighter than when manually set to maximum brightness.
Is there a way (or a hack) to force the video enhancer to activate for an arbitrary app?
There is an app that presents a live video feed and I frequently need to use it outdoors. The video enhancer would make a world of difference for this app, if only I could enable it.

Install this app and see if you can launch a short cut to that feature. If you can it is easy to automate

@beeshyams I tried it, and while it reveals several otherwise not directly accessible features, the video enhancer does not seem to be there.  I tried or researched the ones which I was not familiar with—none of them are responsible for this effect.

This app may be an option of your device is rooted

@beeshyams Interesting idea to try split-screen (even though the app I am interested in does not support that). It turns out that when using split-screen mode (or a floating window), the video enhancer is always off. As soon as I turn that off (e.g. close a floating window above the video), the feature activates.

I guess you will have to root and try the automation option or wait for a hack. There are more posts on disabling that feature. Guess Samsung has a lousy of apps to enable it for. You can probably ask on SO as to what triggers this feature. That may throw up some possibilities


text:
The USB connected notification is not showing. How do I change connection mode?
Normally, you can change USB connection mode by clicking the notification. I once changed that mode from the default, and since then I cannot see the notification. This means I also cannot switch back to default mode of operation.
What can I do?

I have seen several devices that have an entry in the Development menu for selecting the default USB mode. by default is is charging only but using this setting I could change it e.g. to "MTP / file transfer". Don't know if this is vendor specific.


text:
Install TWRP on Samsung Note 10.1
I am following this guide from Cyanogenmods to install TWRP on a Samsung Note 10.1 with Android 5.1.1 installed. I have activated USB Debugging in Developer options and connected the tablet to my computer, accepting the connection in the dialogue that pops up in the tablet. I then issue the adb command:
$ adb reboot bootloader

There is no error message, either on the computer or the tablet, and the tablet reboots.
I then issue the flash command:
$ fastboot flash twrp-3.0.2-0-lt03wifiue.img
< waiting for device >

And nothing else happens. The tablet remains silent and the command line in my computer is stuck. How do I move on from here?
Update I: This is the system and software in my computer:
$ uname -a
Linux ENG-PAVIL-PC2 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ apt policy adb
adb:
  Installed: (none)
  Candidate: 1:6.0.1+r16-3
  Version table:
     1:6.0.1+r16-3 500
        500 http://ch.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

$ apt policy fastboot
fastboot:
  Installed: (none)
  Candidate: 1:6.0.1+r16-3
  Version table:
     1:6.0.1+r16-3 500
        500 http://ch.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

Update II: The bootloader version on this tablet is: P600XXUDQA1
Update III: heimdall was referenced below as an alternative to fastboot, but it is not able to communicate with the Samsung Note 10.1:
$ heimdall flash --no-reboot --RECOVERY twrp-3.0.2-0-lt03wifiue.img
Heimdall v1.4.1

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
ERROR: Failed to detect compatible download-mode device.

$ adb devices
List of devices attached
4300ee259691c037    device

Update IV: Still trying it out with heimdall, which so far is the only tool providing any bit of hope. For some reason it sometimes fails to identify Download mode - that is the reason for the error messages in Update III. By plugging in/out the USB cable and using the detect option one can eventually make sure it acquired the device:
$ heimdall detect
Device detected

Then the flash command succeeds:
$ heimdall flash --no-reboot --RECOVERY twrp-3.0.2-0-lt03wifiue.img
Heimdall v1.4.1

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
PIT file download successful.

Uploading RECOVERY
100%
RECOVERY upload successful

Ending session...
Releasing device interface...

Now things get tricky. If the tablet is rebooted normally after TWRP is flashed, the stock bootloader (I believe) will replace it automatically. In this case when the tablet is rebooted into recovery mode it will just run the stock Android recovery programme. It took me a while to figure this one out...
After flashing TWRP, the tablet must be rebooted directly into recovery mode. The problem is, it shows an error in the booting screen:

Could not do normal boot. Invalid KERNEL LENGTH!

TWRP does not load and the tablet just shuts down. That is how far I am right now.

That "for any Android" guide is junk, my friend. Samsung devices do not have fastboot, as Samsung uses their Odin software to flash firmwares and recoveries.

@beeshyams Actually, it's not ideal for me to provide an answer, as I do lack access to any modern Samsung device, and, given the added complications introduced by S (e.g. locked bootloaders), I'm not the best one to provide an answer concerning those devices.

It has Android 5.1.1 (question updated). Where can I check the boot loader details?

Boot loader version is P600XXUDQA1 (I'll update the question). But I could not find any information on that carrier lock setting (at least not in Phone Info Samsung).

I'm seeing your edit to the question. This is weird... I've never seen that boot-time error before, despite having flashed tens of Samsung devices. Is it simply impossible to reach for a Windows PC and try Odin at the moment?

I understand you wish to help, but your promotion of Windows is going a bit too far, I think. I do not own a licence to that system and do not intend to buy one.

Revisited this question after seeing your latest question - in your last edit after Heimdall, you could try the hardware key combination to boot into recovery. If you get into TWRP now, from TWRP options reboot into system !

When I try to boot into recovery as you say I get the message in question: Could not do normal boot. Invalid KERNEL LENGTH!

Ahh, my misunderstanding that this was Linux based boring into recovery and thought that hardware key combo may overriding this

@LuísdeSousa Sadly, it's not a matter of advertising, as many users of this site are quite privacy-minded. It's just a matter of acknowledging that Odin works, while Heimdall fails. Did you already try to run Odin via Wine?

Note 10.1 (2014) has its bootloader unlocked by default, just like most if not all devices annouced pre-Lollipop.
Under Windows, the actual installation is as simple as described in the TWRP device page:

You will need to download and install Odin on your PC. Once you have Odin installed, download the proper .tar file for your device from the download link above. Power off your device. Turn on your device using the proper key combo to get into download mode and attach the device to your computer via a USB cable. Use the PDA tab or button to browse to and select the tar file that you downloaded and flash the device.

Under Linux, Heimdall is required instead, and steps are somewhat different: download the .img file, get into download mode, (optionally) verify connection with heimdall detect, then execute heimdall flash --no-reboot --RECOVERY /path/to/recovery.img to flash it to the device.
Do note that there are multiple, very different variants of this device. The WiFi version (P600) and LTE version (P605) are based on different SoCs and therefore use different recoveries and ROMs, while the Verizon variant (P605V) has a locked (and non-unlockable) bootloader which means you can't flash anything on it.

"download and install Odin on your PC" I would need the details on this bit to follow your suggestion.

For Windows machines, get Odin here. Just extract it somewhere and run the main executable. As for Linux, Heimdall is the one to use. I personally always go for Odin (even though I have a Ubuntu environment) due to Heimdall being a command-line tool.

Neither the Heimdall frontend nor its command line are able to connect to the tablet. Apparently this programme does not support the Samsung Note 10.1. Please clarify further your answer, as it is it is not really helpful.

Heimdall is supposed to support future Samsung devices up till now. I still advise finding a Windows PC for the job though, as Odin is an official tool of Samsung, and the GUI will prevent confusion. I will modify my answer as we work to make clear what route you take.

Also, I can't quite remember if one could use adb reboot bootloader to get to Download Mode. From the response of your terminal, it simply seems you're not even in Download Mode yet. When you issue that command, do you see some lines of text on the left-up corner of the screen, or a green Android bot in the middle? If neither, then you're definitely not ready. The right way is to power off the device completely, hold VOL_DOWN and HOME then hold POWER, until it shows a warning. Then press VOL_UP to confirm.

Considering that heimdall itself was reporting a successful flashing process, I decided to investigate this further using other images. As it turns out, the SM-P600 boots correctly into recovery mode with TWRP 2.8.7 and 3.0.1. There was either an issue with the .img file or that latest TWRP version is struggling wih the SM-P600. Since it was you that directed me to heimdall I would like to accept your answer. Please update it with a link to the tool and an example (you can use the command in Update III).

Glad you got it in the end. It still appears weird to me that the latest image fails - it's quite dated so if it's problematic then people would've reported and the maintainer would've gotten it replaced. Might want to double-check the hash?


text:
Nougat notifications blocked even after uninstalling "Notifications Off", how to reset?
I was a happy user of Notifications Off on Android 6.0.
It is an app that lets you block/unblock notifications per app.
On Android 7.1.2 blocking works but unblocking does not work, according to my experience and Play Store reviews.
My question: How to reset notifications, so that all appear?
I tried uninstalling the app, that does not unblock blocked notifications.
Anything easier than reinstalling the OS?
If I knew how Notifications Off works under the hood, I could maybe try to unblock manually?

That app hasn't been updated for a couple of years. That's probably why it didn't work on Nougat. Try Macrodroid. It's an automation app but has an action of Configure app notifications . (Set trigger as empty trigger). In this you can try toggling all to undo settings of that app and configure. I don't have Nougat to test but this app is Nougat ready as I read in app forums

Try wiping cache partition, and see if this  resolves the issue

@xavier_fakerat: I just wiped the Dalvik cache+cache partitions with TWRP, it does not solve the problem unfortunately.

I contacted the author and here is his reply:

Looks like a compatibility issue with Android 7. As a workaround to enable notifications you need to go to Gmail in the applications list and enable notifications there.

And indeed it is as simple as this:

Go to Android Settings.
Tap "Notifications".
Select "Blocked".
For each app that you want to unblock, tap it and move the slider to the right, for instance the 5th position out of 7.

The notifications are now reset to visible level again.


text:
Is the Google Home exactly the same as the Google Assistant?
So I'm considering getting a Google Home. I have a Nexus 6p which has the google assistant. I'm just wondering, is the Google Home basically just a device with only the Google Assistant installed?
Does Google Home offer any features or benefit over just a phone with Google Assistant?

Does Google Home offer any features or benefit over just a phone with Google Assistant?

Sure does.

Hands-free.
Multiple users.
Control your smart home.
Control music
(and it has a hi-fi speaker built-in)
Just to name a few things.

https://madeby.google.com/home/


text:
Can you change unlock pin after encrypting your phone?
I'm using Android M and would like to turn on encryption.
Am I going to be able to change my screen pin in the future after I enable encryption?

Yes. You can. Changing the PIN in turn changes the encryption password
From Android Security Internals: An In-Depth Guide to Android's Security :

Android doesn’t have a dedicated setting to manage the encryption pass-
  word after the device is encrypted, and changing the screen lock password or
  PIN will also silently change the device encryption password. This is most
  probably a usability-driven decision: most users would be confused by having
  to remember and enter two different passwords at different times and would
  probably quickly forget the less frequently used, and possibly more complex,
  disk encryption password. While this design is good for usability, it effectively
  forces users to use a simple disk encryption password, because they have to
  enter it each time they unlock the device, usually dozens of times a day. No
  one wants to enter a complex password that many times, and thus most users
  opt for a simple numeric PIN (unless a device policy requires otherwise)


text:
Sony Z5 Compact Nougat accidentally wipe data and unable to mount
My phone is Sony Z5 Compact Nougat.
What I had done is as below:

Unlock Bootloader
Use the following command to flash twrp recovery

fastboot boot recovery.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img

The file are from this link : https://forum.xda-developers.com/z5-compact/orig-development/twrp-z5-compact-t3235161
Version of twrp : 2.8.7.0
Wipe > swipe and factory reset.
So now when I try to reboot, it says No OS Installed! Are you sure you wish to reboot?
I tried to flash both Paranoid Android (Official) and Carbon Rom (Unofficial) both in the format of .zip and it show me below error message:

mount: failed to mount /dev/block/bootdevice/by-name/system at /system: No such file or directory
unmount of system /system failed: no such volume

Tried few times but same problem
I then also tried Advance > ADB Sideload, my command are as below

adb sideload carbon.zip
adb sideload paranoid.zip

The error message is also the same as above

As far as I concern I cannot find twrp version that are above 3.0 for this device, and now I cannot boot into any os as there are no os that I can boot into, hence cannot perform the step for recovering stock rom .ftf using flashtool, what should I do in order to get back to at least stock Rom or any way to fix the failed to mount problem, which I suspect it is because of the old version of TWRP.
Additional : I am very sure that my firmware version is the latest version.


text:
Nexus 6P - cannot turn off Developer Options
On any other device, I was able to go to Settings, scroll to Developers Options and toggle it On/Off. On Nexus 6P, this toggle does nothing. If I turn it off, next time I look at it, it shows as on even though I turned it off minute ago.
I am building Android app so I do need Developer Options.  I dont want to disable or hide it, I just want to be able to use the toggle to turn it on or off as I need.  Just as I did with many other android devices.
Anyone else noticed this?

I tried suggestions from this link http://visihow.com/Disable_the_Developer_Options_on_Nexus_6P but that did not resolve anything.
I would also like to note that until very recently, perhaps 3 months ago, I was able to disable Developer Options by simply going to Settings->Developer Options -> Turn toggle Off

Seen this ?

@beeshyams Yes, I saw it and did exactly as described.  This disabled developer options completely which is not what I wanted but anyways, upon enabling Dev Options again, the toggle was always on On.  Turning it Off, closing the settings, then reopening it again, shows it as On even though I set it to Off

In which case, [edit] your question to make it clear that you have tried the suggested steps but it didn't work. IMO, it looks like a specific issue with your device, since Google recommended method is linked by me below Antz's answer

Sorry, but question is very clear, but you are right, adding a line saying that I already tried suggestion from the link you posted helps, I'll do that.

Factory reset resolved this issue

To whoever downvoted this, have any idea why you downvote the only working solution for me? After trying numerous things including Google suggestions, they recommended this last resort thing.  Yes it is a sad solution, and to add, Nexus 6p is the worse phone I ever had

I suspect this strange behaviour is caused by some setting that requires developer options to be enabled, but itself is not deactivated for instance USB debugging., transitions/animations etc.. (this has been observed to enable developer options in some LG builds typically when the battery saving feature disables animations at 15% )
As a workaround try this:

Go to developer options, turn off debugging,
Then disable the  developer options with the switch on top of the screen
(same as your screenshot)

The trick is to first deactivate setting that uses developer options then toggle it off

Nope, not working.  As described already, and regardless whether I follow your 2 steps or not, behavior stays the same.  Toggling Developer Options to Off (in top right corner like on my image) shows it as Off.  But if I close Setting, then reopen it and go to Developer Options again, it will show it as On, even though I turned it Off just a minute ago

Your question is a bit ambiguous, its not clear what you're trying to do. You say " I don't want to disable or hide it, I just want to be able to use the toggle to turn it on or off as I need" isn't toggling off disabling it? Also my point is some setting is causing the Developer options to be turned on, such that even if you disable it, you'll later find out it automatically turns itself on......as has been reported due to battery saving feature which turns off animations at a certain battery percentage in some LG builds, so either disabled it completely as suggested by @Antz or leave it

Well, there is a difference btw disabling Developer Options and turning it on/off.  Disabling it will remove Developer Option menu in Settings entirely.  To enable it again, you have to go to Setitngs->About Phone->Build Number, and tap 7 times on it to enable it again.  Doing so then adds Developer Options to Settings and you can go in there and toggle it on/off.   :).

Ok I understand, maybe its a bug of some sort? If I find something I will update accordingly ;)

I am starting to believe it is either device malfunctioning or a virus.  Having enabled Developers Options at all time is a huge security issue.

Go to settings, click Apps, then scroll down and select settings, click storage, you should have a pop-up window, click on clear data, then you finally click ok. It should bring you back to your home screen and Developer Options should go off until you decide to turn it on again.

Sorry but none of the answers so far make any sense.  I updated my question as well

This has been quoted as the way to do it in the Google forums help which had a linked video and a similar blog has been quoted by me below your question. I don't have the device to verify +1

@Antz This disabled developer options completely which is not what I wanted but anyways, upon enabling Dev Options again, the toggle was always on On.  Turning it Off, closing the settings, then reopening it again, shows it as On even though I set it to Off

First, make sure that no application is using the developer options. In my case, Fake GPS is using developer options, so I just had to disable it to turn off the developer options.
The trick is to disable the app or settings that are using the developer options.


text:
How to associate a file extension with an app?
I have a number of files with some extension and I have an app that can open the files - it is not the default format of this app, but it can import and display it.
At the moment when I attach USB stick with these files File Manager display error message "This file cannot be opened".
I need to open the app, choose "File -> Import" navigate through fairly complex directory structure and only than I can see the content.
How to create file association so I can immediately open the file from File Manager?

Hmm, I've installed the up but I do not see the option to associate a file with an app. Can you please how exactly achieve the desired effect with his app?

But where shall I tap? When I tap the file in File Explorer I get the message "This file cannot be open".

Related: How to assign default app to unlisted file type

After trying various options I finally found the app that works for me. Total Commander has a number of associations and also allows you to associate a file with any app. Therefore I simply always use tc for browsing files and voila, it works.


text:
different audio on different devices
I am going on a trip with my son and want my music to play through bluetooth and his youtube to play through the phones speakers, is this possible

So the phone would have a music app in the background streaming over bluetooth, and your son watching videos via YouTube in the foreground?  Very interesting setup, wonder if there is a solution.

I'm trying to play games on my phone, and have the game audio play on my phone while music is playing through my bluetooth speaker, and I can't find a way to do that.


text:
How to stop Whatsapp messages coming in lock screen
I am using a mobile which is having Android Marshmallow. Whenever someone is sending a Whatsapp message to me when the phone is locked. The message is showing up in lock-screen as plain text.
So anyone can just pick up my phone and press the unlock button and they can see what someone texted me without unlocking the phone.
How to stop this from happening?

Settings > sound and notification > when device is locked > don't show notifications at all. This will prevent any notification on lock screen, if you are using a device that didn't have a modded UI like Huawei etc. For WhatsApp : settings > notifications > pop-up notifying > choose no notifications or only when screen on

@RahulGopi nope this is not what I am looking for. I am looking for the lock screen.

Select Hide all sensitive data on lock screen from App info/Notifications for WhatsApp. BTW this is for Android 7 and I have no idea if that's available for Marshmallow.

After the update.. the location of the lockscreen notification settings changed..
MIUI 10: It is located in Lockscreen > Advanced settings
MIUI 11: It's located in Settings > Notifications
If you're still stuck.. search for "notifications" from the search bar in the settings..
Hope it helps..

In settings, you can choose your notification settings when your device is locked. If you don't want to see anything at all, you can choose to do so (Don't show notifications at all). If you want to see just the notification but not content, you can use "Hide all sensitive data" or similar. You will see it pop up, but no one will be able to read content.


text:
How to force mobile Chrome to open URLs instead of searching
I use Chrome for Android.
When I type for example http://192.168.1.1:8000/ in the address bar, it opens Google with that address as a search query. I need to open the page and am unable to do so.
I tried different variations with and without manually typing http:// at the beginning and / at the end.
I sent a bug report, but since the fix is probably not coming very soon, I need a workaround. Is there any?

The workaround is to create a bookmark with the needed URL.
Selecting the bookmark will cause Chrome to properly open the page.


text:
Device update triggers factory reset and completly locks user out
My father made a installed as system update on his huawei gx 10.
After the reboot a message stated that the device was factory reseted and that it was necessary to log in with a google account that synced from this device.
First of all, not factory reset was made. At last not by a local user interaction. I hope all the data is still there and the message is incorrect. Of course my father made no backup. At last not willingly. Maybe some app-data was backuped to his google account, I'm not sure how to check what exactly is there.
I changed the Google accounts password because I assumed somebody remote-wiped it. But now this looks unlikely. It was probably a faulty update.
Second, the authentication does not work. This device only ever used one google account. When attempting to log in there is a message that this account wasn't previously used on this phone. This is false. When logging in to the account from a computer I can see the history of devices that where associated with it. This phone was associated with this account. However the phone lists two devices: "Huawei GX 10" (last activity 22h ago) and "Huawei GX 10 (new)" (last activity 10 min ago). Nobody in my family or my father ever owned a GX 10 besides this one. Maybe this is due to the fact the OS was updated? I don't know what version was running on it previously and don't think i can find out the current version right now. The whole problem would probably a way less serve if google recognized that these two phones are the same.
In summary, I have physical access to the phone and access to the google account, but can't get past android device protection.
Did this happened before? Is there any hope that does not involve desoldering the flash chips?

Welcome to Android Enthusiasts! That FRP is a double-edged sword. See our factory-reset tag-wiki: Bypass “Verify your (Google) account” after resetting and similar questions with answers.

Called both android and huawei support. Neither of them was helpful. Both insisted that this shouldn't happen, althou the google support said he once had a similar case from a huawei consumer. Both suggested to delete the phone from list of devices in the google account. That didn't work and neither could tell why it didn't and how it could have helped.
Huawei accepted it as a repair case. The phone is still in the warranty period, so i hope for a replacment phone.


text:
How to avoid the screen turning on for each notification?
Problem
I have a Nokia 3 with stock Android installed, not rooted. Whenever the phone receives a notification, the screen turns on. I wish to change this, mostly because it drains the battery and causes me to activate the camera in my pocket.
In fact, I would appreciate if the screen only turns on when I press the power button.
Edit As was said in the comments, the Nokia comes with Android 7 (Nougat) installed.
What I have tried so far

Just for the record, I did browse through the settings of the phone looking for an obvious choice, and could not find any way to turn it off.
I have tried every possible setting for lockscreen notifications to no avail.
There is no Ambient display option in the Display section of my settings.
There is a screensaver option there, but whether it is on or off makes no difference.
After reading this, I tried using another text message application than the default. That also did not help.

Which Android Version

@beeshyams Android 7+. Nokia 3 is shipped with Nougat out-of-the-box and we don't have Android O as of now, right?

Try Macrodroid Automation app. Trigger : Notification received> any application > any text ; Action: Screen off; constraints : leave blank

@beeshyams You should totally drop that and try Macrodroid Automation. Lol.

@iBug: oh got it,  but I won't  drop it :)

I Googled around and am afraid this is the default setting for Android 7. People from all over the Internet are complaining about this. You can't simply turn it off.
However I found this trick working by entering Do Not Disturb mode. In Settings -> (Modes) -> DND there's a switch named Block visual disturbances. Turning it on and putting your phone into DND mode should work. As a side-effect, some other things are also changed in DND mode.

Frustrating, but I was soberly expecting this. I had hoped I had missed something. I will try both the DnD approach and also the macdroid autmation suggestion of yours from the comments and see what makes me least unhappy.

This sounds like the Ambient Display feature. Are you certain that it cannot be disabled?

@DeathMaskSalesman It can be disabled when compiling the ROM, which is OT here. As far as I've found on Google there isn't a user option to disable it. Custom ROMs may provide one but that highly depends.

@iBug That's the catch. While LineageOS 14.1 allows to disable the setting, I was unsure about other Nougat flavors.

@DeathMaskSalesman OnePlus 5 with stock OOS. No option available.

As a comment, this is definitely Ambient Display feature. The DND solution stops the screen from turning on when a notification is received, but the screen still turns on sometimes for no apparent reason, which is consistent with what Ambient apprently does (sometimes). This is very annoying.


text:
Sliently perform OS and APK update programmatically
I am trying to create a system for performing over-the-air updates for APK and OS on my android devices. My question pertains to the part of actually performing the upgrade once the packages for OS and APK have been downloaded. Please note the following:

I cannot use play-store/play-services since my device does not have play-services installed on it.
I need the update process for both APK and OS to be done silently without any user intervention.
I have root/admin privileges on the devices.
The android versions I will be using are Kitkat, Lollipop and Marshmallow.
I have an APK running on the device which checks for updates from my server and downloads it. I then want it to initiate update for both APK and OS from the code.

Regarding APK update:
I have actually tried and successfully performed APK update by running the shell command  pm install -r $PATH_TO_DOWNLOADED_APK, after getting the shell from Runtime.getRuntime().exec("su") in my App code.
My Questions are:

In case something goes wrong while installing the APK- for example if the device shuts down while update is happening , or there was some issue in the APK package or something like that - in this case will android ensure that the APP is rolled back to the previous version correctly and no data is lost or there is something I need to take care of in my code.

Regarding OS update:
I referred to the following link: https://source.android.com/devices/tech/ota/ However, I didn't understand it completely.
My questions are:

Is there a particular folder where I need to keep the downloaded OS package? If yes, then which is the folder? If no then how do I specify the path to it?
What is the equivalent command for pm install -r $PATH_TO_APK in case of OS updates?
How do I boot a device in "recovery mode" as mentioned in point # 3, in the link?
Where are the boot and recovery partitions in the device? Does it vary from device to device? In one of the devices which I have with me, I don't see any /boot or /recovery folder? Does boot mean the / (root) folder?
In case the OS update fails due to some reason( the device shuts down during the update, there was issue in the update package etc)- does android ensure proper rollback and that the device is in a consistent state and no data is lost? If no then how should the code which initiates it handle this?

Hi! There are few things we can help with here, but we do not take programming/development oriented questions. See [help/on-topic] for more info.

Is there a particular folder where I need to keep the downloaded OS package? If yes, then which is the folder? If no then how do I specify the path to it?

Android keeps the downloaded package in cache partition, since data partition is supposedly encrypted nowadays which cannot be mounted by Android in recovery mode without supplying decryption key and there is no other partition big enough to store bigger files. Use root access to move the file into /cache. You may have to set appropriate permission on it as well.

What is the equivalent command for pm install -r $PATH_TO_APK in case of OS updates?

The OS update occurs in recovery mode (a barebone OS) and the recovery may have a provision to allow automatic execution of commands. Android stock recovery (<3e>) reads /cache/recovery/command and executes them automatically. If it is TWRP v2.1 or above, the file is /cache/recovery/openrecoveryscript. Check their links to know more.

How do I boot a device in "recovery mode" as mentioned in point # 3, in the link?

My answer here has it covered.

Where are the boot and recovery partitions in the device? Does it vary from device to device? In one of the devices which I have with me, I don't see any /boot or /recovery folder? Does boot mean the / (root) folder?

They vary from device to device but you can find the cache partition mounted at /cache. Boot partition need not be mounted since all of its content is automatically loaded into memory during boot. You would have to search internet to find partition scheme for your particular device. Izzy's Q&A could help too.
No, boot doesn't mean / folder. It is not even a directory in reality but the root of the largest tree (file hierarchy) created and populated each time the Android boots.

In case the OS update fails due to some reason( the device shuts down during the update, there was issue in the update package etc)- does android ensure proper rollback and that the device is in a consistent state and no data is lost?

No, if recovery starts modifying the system partition and is interrupted, there is no going back. Even if the process completes normally, the boot process may get into trouble.
Finally, OS update/upgrade cannot be called silent at all since there is so much happening on the screen.

Things may have changed since Android Nougat.


text:
Phone hot and battery drain when walking or driving
I've noticed a very strange behavior on my phone. Every time I move out of my house walking or in the car it starts to get hot and drain battery. Google play services become on top of consumption.
I have location on saving mode, location sharing disabled and location history disabled as well. Consumption when quiet is awesome (1% per 2 hours)
Any tip? Not going out isn't an option haha

Is your WiFi scanning enabled? what's the Android version?

Android 6, wifi is on but I think scanning is not (I disabled the option  of notify open networks...) do I have to modify something else to disable it?

I fixed it. It seems that Macrodroid was causing the battery drain. I had some rules related to be connected/disconnected to the wifi of my house. Not sure why but sometimes, when out of my house, Google Play Services started to drain battery crazily. As I knew Macrodroid had also "location" based rules, I decided to remove it and since that I haven't had this battery drain again.

I actually use High location accuracy mode, but also keep all background location using app disabled via greenify. I think the real problem is that your device apps checks location and use other sensors too much. For e.g. Maps, Fitness apps and such other apps might be responsible. Download greenify and try it. It should show which app run in background and for what purpose.

Thanks for the advice, I'll give it a try but I normally use greenify with donation pack and it seems not to be very useful. In my case, I don't even have Maps installed so I would not know what to greenify. However, I'll try to investigate in that direction.

Greenify seems to mention that Google photos and mifit may device slow. I hibernate photos but not mifit (I use it). Do you think photos could be causing such battery drain when out of my home?

as the above answerer  pointed out, an app that will hibernate other apps when screen is closed like Greenify will help prevent unnecessary background services running. but if I'm not mistaken Google services cannot be controlled with Greenify and hibernated .
what you can also do it turn off mobile bandwidth usage in the background. this is a setting available on Android 6. Plus or it may even be before that I'm not sure.
it is under mobile data traffic >> restrict background data. you can restrict at phone level which did not work well for me because my phone would go to sleep for a long time and I found it hard to wake it up or you can disable at app level .This works best for me.
another option to try out is under developer options limit background process limit to nothing which means there is no background process or you can restricted to only one or two background processes

+1 ill try it but I guess it will work with WhatsApp and other communication apps?

yes... in my case it has worked well


text:
Google Play Music draining humongous amounts of battery
Around a couple of weeks back, my phone battery started draining really quickly. In the battery settings view, I could see that Google Play Music is consuming huge amounts of battery.
I have tried reporting the app, so far gotten no response. Other measures such as Force Close, removing permissions, restricting background data access haven't had any effect as well.
I even performed a factory reset a couple of days back, reinstalled all apps, but to no avail. As a last measure, I disabled the app (restore to factory version). Although after I did this, the battery hogging didn't stop, in fact it increased. And it's almost using ALL of the battery. Refer screenshots attached.

Any help is appreciated!

It's a system app and conventional approaches like greenify won't help. IMO, best is to root the device, convert it into user app and Greenify or freeze it and use another music player. Alternatively, if there is an update available for your device (BTW, which is that and Android version? ) , see if updating Android helps

When you disable Music, what app is causing the drain then?  Music?  That would be unusual....Things I would do: clear cache, disable app, reboot.  Then check results.  As beeshyams asks, what Android version and is it up to date?

It's a Moto I guess. Afaik, an app is not supposed to run if it's disabled. Tell us what happened after disabling the app? Which app is then draining the battery?

Can you install another app such as GSam battery monitor and see if it says the same thing? I've found the system battery usage monitor is flaky.

If you are not rooted, your best bet is to keep an eye out for update that may fix the issue. Luckily, google likes to update their favorite apps frequently. This is why people go through trouble to root their devices, that they bought - to make it work the way they want and not how the manufacturer/google is imposing.