# Question
Title: How can I find out which bands my phone supports
**Background:**
I recently bought the Padfone X, and have been attempting to get it on my network. Part of this effort has been verifying information I have found online which claims that it supports LTE band 4.

> 4G-LTE Bands: 1, 2, 3, 4, 5, 7 and 17

My network operator claims to support most phones that support AWS, specifically phones that operate on the 1700/2100 spectrum (which I believe corresponds to 4G-LTE band 4 / AWS 4 / etc.)

**Problem:**
Because I can't trust what I have read, I have been trying to answer this question: How can I find out what bands my phone supports just using Android / Apps?

**What I have tried:**
I have looked at this question asking about the current frequency band, which led me to try the two "secret codes" listed in the answers:

* `*#*#0011#*#*`: Recognized as a code, but does nothing.
* `*#*#4636#*#*`: This brings up phone information, but I don't see anything that looks frequency related. Screenshot here.

The device is rooted, so I can use `adb shell` to muck about if need be, but I don't know where to look.

# Answer
Phones based on Qualcomm Snapdragon, like the padfone X, have their band settings stored in NVRAM, in a field called rf\_bc\_config. This will be set in the factory to match the band choices embedded into the hardware (radio components in the RF front-end on the device).

The value can be readout using Qualcomm service tools like QPST or QXDM, but it is not a human readable value, it is a bit-field and the bits are not in the order one might expect.

I do not know the mapping of the bitfield, but have seen people speculating on xda forum.

There are no apps to retrieve this information, because it is kept inside the modem software and never offered up to the application processor. The only information ever offered up to the android processor is the current connected band info.

It is possible to change these values in the NVRAM, and many people have, to try and force extra bands to work on their handset - of course, this is unlikely to result in useful performance on the new band, since the hardware support is not present.
> 3 votes

# Answer
I don't know of a user interface in Android to enumerate the radio frequencies that the device handles. However, to give you the direct answer you were looking for, the Padfone X lacks UMTS 1700/2100, which is different from the LTE 1700/2100 that it supports.
> 2 votes

# Answer
For those having rooted snapdragon-based device there is an easy way to obtain LTE bands supported by radio hardware. Free app found at https://t.me/ru\_fieldtest\_modemcaps/5 could show you explicit list similar to the following:

```
LTE Bands :
                B1 (2100 FDD)
                B2 (1900 FDD)
                B3 (1800 FDD)
                B4 (2100 FDD)
                B5 (850 FDD)
                B7 (2600 FDD)
                B8 (900 FDD)
                B13 (700 FDD)
                B17 (700 FDD)
                B20 (800 FDD)

```

... As well as some other handy details.
> 2 votes

# Answer
You can find the frequency of a device (as long as it was sold in the USA) by searching the devices FCC ID. This is a unique identifier used for authorizing the device to transmit at licensed frequencies.

The Padfone X has two FCC IDs, so you will have to figure out which one applies (try checking under the battery cover): MSQT00S, MSQT00D
> 1 votes

# Answer
You could use the MTL engineering mode app.

The app on android can be used in checking which 4G bands your android phone supports and it worked for me.

Just download and install, tap on MTK settings, band, select sim and you'd see them.
> 0 votes

# Answer
I found this(below) very helpful, also the app on Google play "network cell info" you will get all the details about what bands your phone uses, AND if there are cells compatible with it around you. Not all mobile operators are created equal... Big differences are to be expected.

https://www.frequencycheck.com/carrier-compatibility/51zw4/vodafone-greece/devices?utf8=%E2%9C%93&q%5Bfull\_name\_cont%5D=nexus+5&q%5Bdevice\_brand\_id\_eq%5D=23&commit=Search
> 0 votes

---
Tags: adb, hardware, cellular-radio, 4g
---


title: Enable developer options on LG Stylo 4

text:
# Question
Title: Enable developer options on LG Stylo 4
The following is not working on my LG Stylo 4

> To enable Developer options you have to go to About Phone (or About phone \> Software info) and tap Build number 7 times.

The reason being is I don't have an "About Phone" option in Settings.

How to enable the developer options on LG Style 4?

# Answer
> 0 votes
From the Verizon support page :

To enable Developer Options, navigate to: Apps \> Settings \> About phone \> Software info then tap Build number seven times.

Ensure the Developer options switch (located in the upper-right) is turned on

Tap USB debugging to enable or disable.

Enabled when a check mark is present.

If presented with Allow USB debugging? screen, tap OK.

---
Tags: lg, developer-options
---


# Question
Title: How to turn off the sound for the "Wi-Fi has no internet access" notification on Android 7.0?
I currently have an unstable internet connection at home, therefore the router keeps on reconnecting. I am currently trying to fix this.

However, the most annoying thing about this situation is that my phone (Moto G5 Plus, Android 7.0) keeps on spamming the "Wi-Fi has no internet access" notification, *including a notification sound and a vibration*.

This is especially annoying if this happens at night. I know, that I can turn off all notifications, but I want to stay available for some important ones.

So how do I turn off the sound/vibration for this kind of system notification?

# Answer
I thought there was a way to block certain notifications in android 7.

When this notification comes up just long press it and a dialog will appear. You can select 'Show notifications silently' or 'Block all notifications' for this specific annoying notification.

Hope this helps!
> 0 votes

# Answer
Thanks! It solved for me, when the notification popped up, I long press it few seconds and there's an option 'All categories' and 'Done' after pressing All categories it took me to the System settings as in the picture, and on Network alerts I disabled the Floating notification and Sound, The annoying notification were never to be seen again.
> 2 votes

---
Tags: notifications
---


# Question
Title: Where does the partition information in /proc/dumchar_info come from, on MTK devices?
If I want to resize partitions or restore a backup later, how do I make sure that `/proc/dumchar_info` reflects the changes?

As far as I can tell, `dumchar_info` is not related to the MBR and EBRs, since it has more info.

# Answer
> 1 votes
`/proc/dumchar_info` is provided by the `dumchar` driver, which reads the partitioning info from a header file generated during the build process and compiled in when the kernel is built. This header file is also used by other components, like the preloader, possibly bootloader, and both regular and recovery kernels. This means unless you can rebuild said components with a new header file, the partitioning is quite literally hard-coded.

A scatter file is related, in that it's generated from the same source. You can use the information from `/proc/dumchar_info` (together with some assumptions) to generate a scatter file.

For more information on partitioning on MediaTek devices that don't use GPT, see here.

# Answer
> 0 votes
I cant find a dumchar\_info file on my device, but usually using `proc/partinfo` gives you the physical start locations and lengths of each partition, not including the preloader partition. Hypothetically if you resized the DATA partition to an extra 1 Gig, you would need to adjust the entire partition scheme after the new ending length position, you could readjust the size of only the next partition if you leave enough space for it to actually be used.

You would need to update any changes to the scatter file, the new starting positions of each partition and the new sizes.

Backup and restore, you can just backup the entire emmc and restore it again using SP Flash Tool.

---
Tags: partitions, mediatek
---


# Question
Title: Disable chat-heads (for WhatsApp, etc.) on Samsung devices
After an Android 9.0 Pie update on my Samsung Galaxy Note 8, I have noticed that Whatsapp Messenger notifications come up similar to how Facebook Messenger notifications are delivered - with a chat head. This is a circle with the messenger's profile picture showing, and clicking on it opens a small window with the message shown.

I preferred when this chat head was never there, and I got to see a preview of the message for a few seconds just below the top of the screen when a message arrives.

I have tried turning off pop-up notifications on WhatsApp, but this seems to be something different entirely, as the chat heads continue to come up.

Is it possible to turn this feature off?

# Answer
> 7 votes
Follow this path to enable or disable the mentioned "chat heads":

Settings \> Advanced features \> Smart pop-up view

Then, toggle whatever applications you'd like to show "chat heads".

# Answer
> 2 votes
WhatsApp does not naively support chat heads. So, this is being done by using a third party app. Probably you installed one, or in a rare case your phone manufacturer baked such a thing into the phone UI. Please look into your device settings and also go through your installed apps if you notice something.

---
Tags: samsung, notifications, whatsapp-messenger, 9.0-pie
---


# Question
Title: Access Android log files for specific periods on android 7
Is it possible to access old log files,lets say 3 months old, to see the usage on the android device, by usage i mean, any app installed or unistalled, time spent online, via wifi or cellular, time offline, times switched on and switched off,apps used and any other usage data.

Is this possible through the ADB on windows? I want to be able to connect the tablet to my PC and access all the logs for the last 3 months, currently am just getting the current date only, i cannot even get logs for yesterday. The command am using is `adb logcat > currentdevicelog.txt` Any help would be highly appreciated, the version of android on the device is `Nougat-7.0`

# Answer
> 3 votes
Android does not store the output of `logcat` in flash memory. Instead logcat uses a ring buffer in RAM of usually 64KB up to 4MB (depends on what is configured). RAM is much faster than flash memory and also flash may fail earlier if constantly logmessages are written onto it.

A ringbuffer means that if the buffer is full the oldest entry will be overwritten by a new entry. Therefore logcat usually only contains the last minutes or hours. And only log messages after the last reboot as the logcat buffer is not saved on shutdown and the RAM memory is also lost on reboot.

Therefore there are no old log messages you can access.

---
Tags: adb, 7.0-nougat, logging
---


# Question
Title: Should I clear cache for Google Play Services or will an app misbehave?
I need more space and I saw somewhere that I can clear the cache for Google Play Services but I'm not sure if something will go wrong

Help please!

# Answer
Clearing cache for an app will never delete any important information, only data held to make loading images etc faster. Data, however, is often used to store important information.

If the app is using too much data, I would say that there probably isn't much harm in clearing it, but if the app doesn't store much data, there isn't much point.
> 1 votes

# Answer
It is safe to clear cache, but make sure you don't clear data as it will remove you Google account and you will have to login again.
> 0 votes

# Answer
I've clear cache on Play Store many times as well as clear cache/clear data which then routes me to a manage space button and/or a page with my multiple Google apps to manage spaces of app(s) of my choice that I'm trying to clear. I usually don't have to sign in again. Maybe because of dual sign ins on various Google apps however clearing data could very well reset your Google Play Store settings back to default; enter dreaded auto updates and auto permissions and auto storage/memory hogger upper
> 0 votes

---
Tags: google-play-services
---


# Question
Title: What could I do to rescue some files from my sm-t320?
I installed cyanogenmod and twrp v2.8.7.0 a very long time ago. Now that the O.S. has broken I'd like to copy some files to pc (windows 10), but I failed to find any solution til now on forums/youtube.

# Answer
If the version of TWRP on your device allows in the Mount section to Enable/Disable MTP, you can use it to connect to your PC and copy files from the internal storage to the PC.

Or you can insert an SD card, and copy files from the internal storage to the SD card using TWRP's terminal with the following command

```
cp -R /path/to/internal_storage /path/to/sdcard/folder

```

Then insert the SD card to PC and copy the files.
> 0 votes

---
Tags: twrp, windows, mtp
---


# Question
Title: Recovery image without root functionality for an Xperia Z1 Compact
A friend of mines child has a Sony Xperia Z1 Compact and a lot of what I would call Criminal Energy (he proved that on several occasions).

Because he did a lot of stuff on his phone which he is not supposed to do, we want to prevent him of finding out how to boot into the previously installed TWRP Recovery Mode, where he could root his phone and do other uncool stuff.

From what I found out, I am not able to remove TWRP, but could totally replace it with something else.

So my question is, are there any simple, Backup/Restore only, ***no root option, no File editing (eg. build.props)*** Recovery images available for me to flash on that particular smartphone or do i have any other options? (We already installed and configured Family Link, but that of course does not prevent booting in recovery mode)

# Answer
> 0 votes
1. Re-flash the official recovery and boot images of the device.
2. Lock the bootloader and disable Developers option.

Official recoveries do not allow to do much i.e rooting, changing/editing build.prop file and other system files. It will buy you time until the child studies enough and figure out that it is possible to change the recovery and root the system.

---
Tags: rooting, backup, recovery-mode
---


# Question
Title: How to get boot.Img from Samsung tab a 10.5 sm-t595
I have been trying and failing for days to root my tablet. As far as I can tell there is no TWRP available for this device and the only way that looks possible to root it is to use magisk adb method. The problem is I can't get the root. Img file to allow me to follow the instructions. Can anyone help?

Thanks

Paul

# Answer
Thanks to alecxs for all the help. In the end this was possible with Magisk Manager and odin. I will try and list all the steps needed, but there was a lot of trial and error so I may miss somthing.

1. Get enable OEM reset then usb debugging (this will factory reset the tablet)
2. Find the stock boot.img I found mine here
3. transfer the boot.img to your phone and install magisk manager apk (you will have to enable installing from unknown sources)
4. click install magisk and choose the option to patch a boot file. Copy the patched file back to your computer
5. rename the file back to boot.img
6. download this tool to repackage it to a .tar.md5 file
7. copy the boot.img into the parts folder and try and make the .tar file then try the .md5. if you have problems download the latest version of cygwin64 and copy the contents from the installation folder into the bin folder of the tar.md5 tool and try again
8. now you should have a tar.md5 file containing your patched boot.img that you can flash onto the ap partition with odin. restart to boot loader ( hold down power and volume up or use adb command adb reboot-bootloader and flash (there are other more detailed tutorials on how to do this)
9. check to see if it succeeded. For me it succeeded and then when rebooting it failed the integrity check and factory reset itself. I reinstalled magisk manager and found that it had worked. I let magisk install itself and update. I installed a root checker and it showed i had root access

I hope this helps someone
> 1 votes

---
Tags: root-access
---


# Question
Title: Fake security message playing continuously on Galaxy 7
My phone just started beeping by itself immediately after displaying an ad in a piece of software I've been using without problems for almost 10 years. There is a female robot voice that repeats the same message continuously:

> Important security message.
>
> Your computer has been locked up.
>
> Your IP address was used without your knowledge or consent to visit websites that contains identity theft virus. \[sic\]
>
> To unlock the computer please call support immediately.
>
> Please do not attempt to shutdown or restart your computer. Doing that may lead to data loss and identity theft.
>
> The computer lock is aimed to stop illegal activity. Please call our support immediately.

What is this, how did it get on my phone, and how do I get rid of it?

It just stopped by itself too. It was playing for about 15 minutes. The beeps became slightly irregular at the end.

# Answer
> 0 votes
Find the app in Settings -\> Applications, and force stop it. That should stop the app from doing anything. Restarting the app should hopefully allow you to continue using it without issue.

Sometimes apps will continue playing audio in the background, and unfortunately this applies to ads as well.

---
Tags: samsung-galaxy-s7
---


# Question
Title: Add second trusted voice to Google Pixel
Is it possible to add a second "trusted voice" to my Google Pixel so that a second person can say "OK Google" to unlock my phone? I would like to do this so that my phone can act like a substitute for Google Home when I'm at home--in order to enable my partner to unlock through "OK Google", but still restrict it to our two voices only.

If it isn't possible to do through a single user, is it possible that setting up a second user will allow this? I'm not familiar with how switching between users works on Android yet.

# Answer
> 0 votes
Unfortunately, this is not possible with a single user. As you predicted, however, it is indeed possible to set up with a second user, as each user is set up almost like its own phone. Just add a new user, set it up, and then set up the voice as you would normally.

Good luck!

---
Tags: security, voice-recognition, 7.0-nougat, ok-google, google-pixel
---


# Question
Title: root integrity check: System check FAIL!
In my attempts to troubleshoot a Notifications volume turning itself down problem on my HTC Desire 728, I selected in "system recovery" menu the option of `root integrity check`.

It ran quickly, displaying the following:

> Now check begins, please wait.....
>
> load source zip file fail
>
> System check FAIL!!

In the context of HTC, what does "root integrity check" actually means? Is it just an `fsck`? If so why does it need to "load source zip file"? What does this `FAIL!!` mean?

# Answer
> -1 votes
Root integrity check fail means some person have modified apk or file on your android it means they could also spy on you because every apk have java permissions that you might not know off unless u check on computer with adb commands and remove the modified apk and files manually

---
Tags: recovery-mode, htc-desire
---


title: Network mode switch quick settings tile

text:
# Question
Title: Network mode switch quick settings tile
I have a bootleggers ROM (Android 9 pie) installed on a Motorola Moto E 2015 phone. Can I add a quick settings tile that would switch between 2G only and 2G/3G/4G network modes?

In Lineage and ResurrectionRemix ROMs there is an "LTE" tile, which can achieve this, I think. But Bootleggers rom doesn't have it. I solved this with Shortcutter app, but it opens a list of network modes every time, so I have to click twice instead of once. Ideally, the tile should switch between these two network modes and display the current mode.

# Answer
> 1 votes
For everything you want to automate on your Android phone I highly recommend you to use Automate. Automate is a powerful visual scripting app. Imagine it to be the BluePrints for Android. Or should you know Scratch, it's just like that. Changing default Network Type is a system setting you can easily do using Automate.

Automate offers the "Quick Settings Tile Show" block that sets up an QS Tile and can be interacted with. For use of that block, refer to https://llamalab.com/automate/doc/block/quick\_settings\_tile\_show.html

This app is an scripting app. This means you still have to create your program according to your wishes, but I suppose that should not be a problem for you. https://llamalab.com/automate/

Your script will look like this:

At first you need to set your preferred network type. Let's go with LTE here. You pick the "System Settings Set" Block, choose "Network Preferrence" and enter LTE. Note: The actual value your system uses to express "LTE" may vary from device to device. To find out which term YOUR device uses, you can utilize the "System Setting Get" block: In your settings, set LTE as preferred network. Then, within Automate, you use the System Setting Get block and ask for the current preferred network. You assign the block output to a variable (You don't need to manually create one. A variable with the name you enter will be created automatically), for example "Type". Then, you pick the "Toast Show" Block, and enter the name of the variable. Note: Automate uses text as primary input. You can change between these modes by clicking the "fx" icon right next to the input field.

It will change into a Stamp then. Text always has these "" around them, while variables don't. When entering the variable into the Toast Show block, be sure to switch into Variable input mode and enter the name of your variable without these "".

When you have found out how your device calls "LTE" in the settings, go back to our original script. Here you can add it to the System Setting Set block.

So far, our script has two blocks: The Flow Start and System Setting Set block. Now we add the Quick Settings Tile. For that, you pick the Quick Settings Tile Show block and set it up according to your wishes. For example you can call it LTE, choose an appropriate Icon and make it "Active".

Now, add another System Settings Set block, that changes the network preferrence to whatever you want to have instead, for example EDGE or WDCMA. To find out by which name your system calls these network types, you can recycle the "System Settings Get - Toast Show"-Script.

And then, once again, put another Quick Settings Tile Show block with the same input arguments, except for the "Active" button, which should be left inactive this time.

---
Tags: mobile-network, quick-settings
---


# Question
Title: How can I permanently assign a static IP address to Wi-Fi or USB tether clients?
I use my phone as an extended display with `x11vnc`, which works as intended. The only issue is, that I have to change the IP address on the VNC client on my phone, very often. Because of dynamic DHCP, I suppose. I use a Motorola g Turbo Lineage OS 7.1.2, rooted.

Is Android capable of IP reservation? It basically assigns IP address and hostname depending on the MAC address. Or something that achieves the same.

**Edit:**

Is it possible to assign new static lease through an ADB command immediately?

# Answer
> 6 votes
Android uses `dnsmasq` as its DHCP/DNS server (up to Pie). So create the configuration file `/etc/dnsmasq.conf` with option `dhcp-host=<MAC>,<IP>` <sup>()</sup>.

Root is required to place this file. Since `/etc` is a symlink to `/system/etc`, `/system` partition needs to be mounted `R/W`. Make sure you don't break `dm-verity` if enabled on your device.

Set permissions:

```
~# chown 0.0 /etc/dnsmasq.conf
~# chmod 0644 /etc/dnsmasq.conf
~# chcon u:object_r:system_file:s0 /etc/dnsmasq.conf

```

SELinux rules also need to be defined if status is `enforcing`. Use Magisk's `suploicy` or some other similar tool like `sepolicy-inject`:

```
allow dnsmasq system_file file { read getattr open }
allow dnsmasq system_file dir { search }

```

> Is it possible to assign new static lease through an ADB command immediately?

No, you need to modify configuration file and restart the `dnsmasq` server (switch Hotspot `OFF` and `ON`) for changes to take effect.

---
Tags: wifi-hotspot, 7.1-nougat, wifi-tethering
---


# Question
Title: How to automate UI of a 3rd party applications?
I have a flow diagram in Automate that starts automatically with system. I want to add few blocks which will launch monitoring/diagnostic applications (CatLog, Network utilities, etc.) and will press certain buttons. How do I do this?

# Answer
To start an application, select the "App start" block. Then choose the app you want to start and/or the activity, action that should be started when it is launched.

To simulate a press or click on the screen, select the "Interact" or the "Interact touch" blocks. You can use the "Record interactions" of the Interact block to help click exactly where/what you want.
> 0 votes

---
Tags: automate
---


# Question
Title: Stop automatically setting apps as default
I have an AT&T Samsung Note4 currently running Marshmallow 6.0.1.

In the past it and all other Android phones used to prompt me for and app to open files or links with. The menu wold have a sellection of apps and 'Once' and 'Always' buttons. An app would only become default for a given link/file type by pressing 'Always'. Otherwise I would get prompted each time.

Not too long ago this behavior changed. The 'Once' and 'Always' buttons are gone and apps automatically become default after the first choice. This is fine for some files/links but not others.

There are many different kinds of things I want to do with some file types (eg pdfs) and I use different apps for each. Now I either have to unset the default each time or open the file in whatever the current default is and than 'share' it to the app I actually want. This is a pain and not all apps are equally good at sharing to other apps.

**How can I get the old behaviour back?** Or at least select some file/link types to not have a default associated with them? I know how to unset default apps in settings; I am after a way to avoid needing to do that for files/links I open with multiple apps.

I am not sure if this change is due to some update or if it is something I enabled unintentionally FWIW, I also have a Huawei running Android 4.4.4 that still has the old behavior

---

This question is about the same problem in a specific context, but i am after a solution to the general problem that none of the commants & answers there address.

# Answer
> 0 votes
I'm having the same problem but it looks like it's corrected in later updates of marshmallow according to https://www.greenbot.com/article/2991086/how-to-change-your-default-browser-and-phone-apps-in-android-marshmallow.html So I'm going to try updating and hope it works for both of us.

# Answer
> -1 votes
On my S8 Settings\>Apps\>default apps\>default app selection

---
Tags: 6.0-marshmallow, default-applications, samsung-galaxy-note-4
---


# Question
Title: 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

# Answer
Factory reset resolved this issue
> 0 votes

# Answer
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
> 2 votes

# Answer
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.
> 1 votes

# Answer
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.
> 1 votes

---
Tags: nexus-6p, developer-options
---


# Question
Title: Can I use two phones as one phone with two screens?
I have two phones. I would like to have all my files on one, but be able to have two open at once.

Can I set up the second phone such that it extends / adds a second screen to my phone?

I do not want to use BTSync or similar (the second phone has limited storage).

# Answer
> 0 votes
Clipboard sharing + cloud drive. With those two you can do a lot with minimum setup.

For PC like experience you may share your peripherals. Not trivial, though.

The biggest challenge is to sync the clipboard in a safe way. Most solutions are through WiFi router or internet and making a easy Bluetooth connection is a challenge.

---
Tags: screen
---


# Question
Title: Samsung Galaxy S6 4.6MB/s Seqential Write (Why so slow?)
I bought a Samsung Galaxy S6 in Aug 2016. Everything was fine, until last week. It got *very* slow. For example, when I draw my unlock pattern after a reboot, it takes such a long time to load the homescreen that the screen turns off. After a few tries, I get in but every tap takes very long until the device reacts. It takes ~25 seconds just to load the keyboard.

I downloaded System Monitor but the CPU load was not on 100%, so there is no app/virus which consumes too much CPU time. Geekbench 4 says that the CPU / GPU performance is even above average for the Galaxy S6.

But then I decided to test the storage speed. I ran Androbench and the results are very bad (see screenshot).

Normally, the performance should be like in this test.

So my questions now are: how can I find out why is the storage so slow? Is it just flash wear? Is is a broken driver? If it's a hardware failure, what part do I have to replace?

If something is unclear, just comment and I will edit the question. Thank you in advance!

UPDATE 2019/06/20 08:03: Tried reflashing the stock firmware and factory reset, but it didn't helped. The benchmark is even worse now. Ordered a new motherboard now.

UPDATE 2019/08/19 09:57: New motherboard finally arrived. After changing it, everything was fine. Problem solved.

# Answer
> 0 votes
I'm getting 45 MB/s sequential write when it should be 120 MB/s. Read speeds are roughly the same as on the review though.

In your case, I would try full factory reset, reflashing the stock ROM or even a custom ROM with a different kernel to see if the benchmark would generate different results. If you get roughly the same results after all, it's a hardware problem.

---
Tags: samsung, internal-storage, storage, samsung-galaxy-s-6
---


# Question
Title: Default text-to-speech (TTS) engine in LineageOS 16.0?
I have recently updated my OnePlus One to LineageOS 16.0 and noticed that there does not seem to be *any* TTS provider included anymore. In previous versions (LineageOS 15), there used to be Pico TTS as a default.

What happened here? Is there any way to get Pico TTS back?

# Answer
> 2 votes
Pico TTS is unmaintained and dead. At least publicly. Presumably, the fixed version of it is what is now called "Googls TTS", which is no longer open source.

My suggestion, if you're looking for an open source TTS, is to use Flite TTS, which is available via F-Droid repository or from github.

https://f-droid.org/en/packages/edu.cmu.cs.speech.tts.flite/

---
Tags: lineageos, 9.0-pie, accessibility, text-to-speech
---


title: Error Installing System Update

text:
# Question
Title: Error Installing System Update
How can I fix my phone so that it will boot up again like normal?

When it tries to start up, I see the Samsung Galaxy S9 Secured by Knox Powered by android screen. After this screen vibrates, it restarts and returns to the same screen. Here's a picture of the screen.

If I press the volume up, power and button below the volume, then it will show the same Samsung Galaxy S9 Secured by Knox Powered by android screen. After that, it will show a Installing system update screen. Then it will progress to 28% and restart. Here's a picture of the screen below.

While it was trying to install the system update, I was able to push the volume up key and power key at the same time. It gave me the following screenshot.

# Answer
I went to a uBreakiFix location. They flashed the OS for me for free. This was great since I didn't have to re-setup my phone. They have an agreement with Samsung to help with this. I don't have any affiliation to uBreakiFix other than as a customer.
> 0 votes

---
Tags: boot-loop, samsung-galaxy-s-9
---


# Question
Title: Is it possible to make multiple adb commands a one-liner command? (case change bootanimation.zip)
Is it possible to make the following commands a one-liner command ? to change bootanimation.zip quickly and gain some

```
C:\Users\User\Desktop>adb push bootanimation /sdcard
C:\Users\User\Desktop>adb shell
$ su
# mount -o rw,remount /system
# cp /sdcard/bootanimation.zip /system/media/bootanimation.zip
# chmod 644 /system/media/bootanimation.zip
# reboot

```

Regards

# Answer
> 1 votes
Much like @CzarMatt I'd suggest saving the commands ya want run within the Android device to a shell script such as `adb_boot_animation_copy.sh` on your PC...

```
#!/usr/bin/env sh

if ! [ -f "/sdcard/bootanimation.zip" ]; then
    printf 'No can do\n' >&2
    exit 1
fi

su || exit "$?"
mount -o rw,remount /system

cp /sdcard/bootanimation.zip /system/media/bootanimation.zip
chmod 644 /system/media/bootanimation.zip
reboot

```

> Tip, `#!/usr/bin/env sh` is more portable than `#!/bin/sh`... this is not just because the Android dev. team thought it was a *good idea* to move things about when adopting Linux into Android, there are other *unixish* OSs that also got *clever* with where one can find an executable shell.

... then use redirection with either `<` or `cat`...

```
adb shell "$(cat "adb_boot_animation_copy.sh")"

```

Which essentially does the typing of the commands saved within the *`adb_boot_animation_copy.sh`* file for ya. Though I'm not certain that this kind of redirection will work on MS bound devices without some modifications.

## Update

Another way to redirect output of one command into the input of another...

```
cat adb_boot_animation_copy.sh | adb shell

```

> Note PowerShell **does** have the `cat` command, though ya might want to edit the file path from the above examples to be an absolute file path.

... which *should* result in the same behavior of redirecting commands from the `adb_boot_animation_copy.sh` file into the `adb shell`.

And yet another way would be to use the `FOR \?` syntax within a `batch` script...

```
FOR /F "tokens=* USEBACKQ" %%F IN (`type adb_boot_animation_copy.sh`) DO (
    SET var=%%F
)

```

... to save the continence of a file to a variable for later redirection into `adb`, eg something like *`adb shell "%var%"`*, or use `type` in place of `cat` and `>`/`<` instead of `|`...

```
type adb_boot_animation_copy.sh > adb shell

```

If ya run into issues leave a comment and perhaps I'll make another edit with more ways of doing the same thing.

# Answer
> -1 votes
Finally I figured out how to do it in a one-liner adb command from Windows CMD Shell:

```
adb push bootanimation.zip /sdcard & adb shell "su -c 'mount -o rw,remount /system & rm /system/media/bootanimation.zip & cp /sdcard/bootanimation.zip /system/media & chmod 644 /system/media/bootanimation.zip & reboot'"

```

In order to make this one line useful in a **batch file use && instead of &**

```
adb push bootanimation.zip /sdcard && adb shell "su -c 'mount -o rw,remount /system && rm /system/media/bootanimation.zip && cp /sdcard/bootanimation.zip /system/media && chmod 644 /system/media/bootanimation.zip && reboot'"

```

Thank you for your time & contributions!

---
Tags: adb, root-access, shell
---


title: bootloader boot loop

text:
# Question
Title: bootloader boot loop
I got a new Pixel 2 and wanted to load an TWRP backup from my previous Pixel 2 (with stock ROM) onto it, instead of setting it up freshly. So I

* booted the new device
* clicked through the settings
* entered developer mode and oem unlock
* rebooted
* unlocked the bootloader
* booted into TWRP (using `fastboot boot`)
* copied my old `/sdcard` contents to the device using `adb`
* used TWRP to restore the old backup (partitions `boot`, `system` and `data`.

At that point I hoped I was done, and could just boot into my system. But unfortunately, it always just boots into the bootloader.

What did I do wrong?

And what do I do now?

* I tried to do a factory reset by using `fastboot flashing lock`, and it claimed it would reset the phone, but it doesn’t.
* I tried to enter recovery from the bootloader, but it just boots into the bootloader.
* I tried to flash an official image from https://developers.google.com/android/images#walleye using `./flash-all.sh` but it fails to update the bootloader:

```
Sending 'bootloader_a' (38692 KB)                  OKAY [0.155s]
Writing 'bootloader_a'                             (bootloader) Updating: partition:0   @00002000 sz=0000B000
FAILED (remote: 'Command Flash Error')
fastboot: error: Command failed

```

and then fails do do more:

```
--------------------------------------------
Bootloader Version...: mw8998-002.0059.00
Baseband Version.....: g8998-00008-1902121845
Serial Number........: …
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [0.000s]
Checking 'version-bootloader'                      FAILED

Device version-bootloader is 'mw8998-002.0059.00'.
Update requires 'mw8998-002.0076.00'.

fastboot: error: requirements not met!

```
* I tried to boot twrp again, but that does not work:

```
$ fastboot boot twrp-3.3.0-0-walleye.img
downloading 'boot.img'...
OKAY [  0.115s]
booting...
FAILED (remote: Failed to load/authenticate boot image: Load Error)

```

What else should I try?

# Answer
It seems that the script at https://forum.xda-developers.com/pixel-2-xl/development/tool-deuces-bootloop-recovery-flashing-t3704761 was able to apply a system update.
> 0 votes

---
Tags: recovery-mode, twrp, boot-loop, bootloader
---


# Question
Title: Why is "mdnsd" draining my battery and how to stop it?
This process (mdnsd) had been draining my battery for a few weeks. I have not been able to find a solution after a lot of search.

I don't have any drone app, Facebook app or Firefox, although it's true the issue started more or less when I installed the Firefox app. But I have uninstalled it, rebooted my phone and the issue is still there which makes me think Firefox maybe didn't have anything to do with this.

Any ideas? I have an LG G2, Android 4.4.2

# Answer
> 4 votes
**WHAT IS MDNSD:**

`mdnsd` (Multicast Domain Name System Daemon) is Android's implementation of mDNSResponder, a part of upcoming *Zero Configuration Networking*. It allows you to automatically discover services and appliances attached to your network:

* Name-to-address translation and other DNS-like operations (mDNS) in the absence of a conventional unicast DNS server:

> It provides the ability for the user to identify hosts using names instead of dotted-decimal IP addresses, even if the user doesn't have a conventional DNS server set up.
* Network Service discovery (DNS-SD):

> It also provides the ability for the user to discover what services are being advertised on the network, without having to know about them in advance, or configure the machines.

This daemon is continuously sending multicast broadcasts (queries / advertisement) to all hosts on local network at IP address `224.0.0.251` and UDP port `5353`, also listening on the same port.

**WHICH APPS USE MDNS:**

Any app that makes use of Android's Network Service Discovery, will request `mdnsd` running in background (, , ):

> Adding NSD to your app allows your users to identify other devices on the local network that support the services your app requests. This is useful for a variety of peer-to-peer applications such as file sharing or multi-player gaming.

A quick search on forums will show many apps being blamed for excessive battery drainage becuase of using `mdnsd`, e.g. ***Facebook*** and ***Firefox***. The later has been gone through a bug in the past that caused the unexpected behavior. Now they have their own implementation of MDNS (). ***Google Play Services*** also have built-in MDNS service (to discover Google Cast receiver devices like Chromecast) (, ).

> Devices that support NSD include printers, webcams, HTTPS servers, and other mobile devices.

AOSP's built-in apps ***Print Service Recommendation Service*** *(com.android.printservice.recommendation)* and ***Default Print Service*** *(com.android.bips)* also make use of NSD. So if you are using printing features on your device, those would be causing `mdnsd` run in background. But the most common reason is ***ADBD*** *(Android Debug Bridging Daemon)* which force starts `mdnsd` ().

**HOW TO STOP MDNSD?**

`mdnsd` is an init service () which can be stopped by triggers. Add a few lines to `/etc/init/mdnsd.rc`:

```
# stop mdnsd on startup
on property:sys.boot_completed=1
    stop mdnsd

# stop mdnsd when adbd starts/stops
on property:init.svc.adbd=*
    stop mdnsd

```

You can also manually stop the service anytime by executing:

```
~# setprop ctl.stop mdnsd

```

Or you can directly kill the `mdnsd` program as suggested by @DBX12. The service shouldn't restart because it's `oneshot`. But if it's triggered again and again by some app or the OS, you can make the binary inexecutable (or delete) at all:

```
~# chmod a-x /system/bin/mdnsd

```

However this may break some apps' functionality.

All of the above solutions ***require root***. If your device isn't rooted, the only way is to identify and stop using the app/feature that uses Android's NSD API or directly starts `mdnsd` service.

# Answer
> 3 votes
It seems like it is the daemon for multicast DNS. I have the same issue as OP and Trevor. My solution is the following (assuming you have a **rooted device**). If you have adb, then do step 2 over that, it is more comfortable to type on a keyboard ;)

1. Install a Terminal Emulator
2. Create a shellscript with the content `su -c "kill $(pgrep mdnsd)"`
3. Run it everytime you see fast battery drainage as this is a symptom of a running mdnsd. Confirm the prompt of SuperSU to grant root permissions to the script.

What the script does:

```
su -c "kill $(pgrep mdnsd)"
^      ^    ^ ^
|      |    | |
|      |    | +- Search the process list for the phrase "mdnsd" and return the process id
|      |    |
|      |    +- Spawn a subshell and execute contained command and return its output
|      |
|      +- Stop the process with the process id specified after kill
+- run the command specified after -c with superuser privileges

```

---
Tags: battery, battery-life, networking, dns, services
---


title: GPS quick settings tile

text:
# Question
Title: GPS quick settings tile
I have a bootleggers ROM (Android 9 pie) installed on a Motorola Moto E 2015 phone. Can I add a quick settings tile that would toggle the GPS (location) on and off?

I know there is already a "location" tile, built in the rom, that can switch between different location modes (high accuracy, etc.), but I only want to toggle the GPS on and off, not to change the modes. Also, I already solved this by using Tasker and QuickTask app to create a custom tile. And it works, but sometimes it takes some time for it to respond (which is understandable having in mind my phone's specs and the fact that now two additional apps are used to control the tile). I don't know if the delay is caused by QuickTask, by Tasker or by both, and it also depends on how many apps are open at the time that I use the tile.

So, maybe there is a more reliable and quicker solution.

# Answer
> 0 votes
So an answer to my other similar question helped me find a solution for this one as well.

It is possible to toggle the GPS with an app Automate.

I used the block, called "Location provider set state" from the "Location" category to enable/disable the GPS. And the block, called "Quick Settings tile show" from the "Interface" category to create and control the quick settings tile.

Here's a screenshot of the complete flow I'm using:

---
Tags: gps, 9.0-pie, quick-settings
---


title: Block my smA10 pro with IMEI

text:
# Question
Title: Block my smA10 pro with IMEI
I wish to block phone Samsung galaxy A10 pro with IMEI. The phone was stolen. I don't want the end user or thief to have access to my data. Also to render the useless and unuseable.

# Answer
> 0 votes
IMEI blacklisting is done by cellular service providers, not by users. That said, the phone can still be used barring the functions which require cellular services. Your approach with IMEI blocking/blacklisting won't do any good to your data because it has no bearing on data.

If you had Find my Google enabled you can use it to remotely wipe data (subjected to the device connected to internet). If you are a user of a US based cellular service provider, they might be offering a service to report a stolen device for IMEI blacklisting.

---
Tags: wifi-password
---


# Question
Title: How to display Python script output on screen, similarly to Conky
I use Conky as a desktop monitoring software. I also use it to monitor stock prices and portfolio net worth through a Python script.

Basically, I fetch the stock prices from Yahoo Finance using curl.

> $ curl -s 'http://download.finance.yahoo.com/d/quotes.csv?s=vwrl.as&f=l1'

Then I input that to a python script that returns a float.

> $ python /yada/yada/myunoriginalscript.py
>
> 42.0

Conky handles this quite easily and displays it on screen. I know that curl can be made available for Android and I've ran Python scripts in the past.

**Is there any widget/app/technique to display the output of said python script on screen** continuously and not only on the terminal, whenever I run it manually?

# Answer
> 0 votes
In the end, I installed SL4a and used one of the the GUI functions that appeared on the 'test.py' sample script to display the information. I like the terminal, but this way is quite nicer.

# Answer
> 0 votes
That's exactly what Blighty does https://github.com/P403n1x87/blighty.

Here is the documentation https://p403n1x87.github.io/blighty/

---
Tags: home-screen, scripts, bash, python
---


# Question
Title: Prevent phone auto-connect to a specific wifi connection, without forgetting that connection
The feature I am looking for exist on MIUI rom and samsung roms:

Similar question were asked before:
This from 2015 has an answer about Samsung and MIUI roms only.

Answers to this and this question (both from 2013) offer workarounds.

An answer to this question suggested to use Wi-fi Ruller which unfortunately is not supported anymore.

It looks like the questions are rather old, and a simple, straight forward direct solution is yet to be found.

# Answer
From what I can see, there really is no way to do it directly

There are root workaround but nothing that only allows manual connection (excluding Samsung or MIUI stuff); it must be OEM implemented. I can't find any way to do it in standard AOSP or lineage OS

You could always try something like Tasker and have it shut off WiFi when your in range of a network you don't want to automatically connect to
> 0 votes

---
Tags: wi-fi, 9.0-pie
---


# Question
Title: Anyway to make blue light filter App include the notification swipe-down area?
From initial Googling it seems that it's an intentional issue in later Android OS versions, that blue light filters (Apps) cannot have any effect on the swipe down notification area. I was just wondering if there's any latest news or fixes on this?

For Android OS 8, non-rooted phone.

# Answer
Figured out a solution which can be ised with Moto devices that have Moto Actions. One of the features is Night Display, which is a built-in blue-light filter **which covers the swipe-down notification area.**
> 0 votes

---
Tags: applications, 8.0-oreo, operating-system
---


title: What is the /oem partition?

text:
# Question
Title: What is the /oem partition?
Recently I had an over-the-air (OTA) update fail because the /oem partition did not pass the assert. However, it looks like the update still "succeeded" in that the /system partition had all the updated bits and the update check in Android says I'm at the latest version. I'm guessing my /oem partition is outdated now but it doesn't seem to be affecting anything.

What is the purpose and capabilities of the /oem partition?

# Answer
The /oem partition is used for any carrier customisations to the Android firmware; if your firmware build is not a carrier-specific one then it might be empty anyway. This purpose is described in the Android Project Treble documentation.
> 2 votes

---
Tags: ota-update, partitions
---


title: Why are android permission so broad?

text:
# Question
Title: Why are android permission so broad?
I was reading a review for a game on the play store where someone gave a bad review saying that the game looked cool but it required access to photos, media and such which encouraged the user to uninstall rapidly. The developers replied to this person saying that they valued users privacy and what not but they didn't have a choice because they needed that to actually save the progress. This totally makes sense that they would require access to internal or external memory to save.

I was reading that some games also require access to phone call so that they could pause the game when you get a call which also makes sense. But the displayed message for the user is that the app will have access to your calls, can make calls (which could cost you money) which is a red flag for some users.

I'm guessing that most games don't use permission in a malicious way but to prevent any **why aren't permissions more restrictives/specific ?** I'm assuming that the vast majority of games use file permission just to save and nothing else, why not make a save permission ? I also assume that having more restrictive permission might increase the number of required permission for some game which could potentially be annoying for the majority of user.

# Answer
As an Android developer, this is an especially frustrating aspect about delivering apps into mass market.

The wording on permission models have caused great grief, as you have pointed out, but it has gotten better. In fact, prior to Android 5.1.1 (API 22) apps were required to request *all* of their permissions up-front, at install time.

Now, permissions are generally requested when they are needed \- i.e., when a protected API is accessed at runtime - allowing developers in-app time to explain their intentions.

If the developer of an application were respecting the spirit of permissions enough, their applications would, ideally, still function without being granted a particular permissions.

Obviously, if you deny a photo app access to, say, the Pictures directory, the app experience might not be stellar. However, an app *should still* continue to function - that is, without crashing - regardless of granted permissions.

Also, as others have pointed out in the comments, developers and publishers are encouraged to provide meaningful insight into why their app needs the permissions it is requesting.

Now, focusing on your main concern:

> . . .why aren't permissions more restrictives/specific ?

They are becoming more restrictive/specific. For example, Google has introduced Scoped Directory Access.

> Apps such as photo apps usually just need access to specific directories in external storage, such as the Pictures directory. Existing approaches to accessing external storage aren't designed to easily provide targeted directory access for these types of apps. For example:
>
> * Requesting READ\_EXTERNAL\_STORAGE or WRITE\_EXTERNAL\_STORAGE in your manifest allows access to all public directories on external storage, which might be more access than what your app needs.

Note the bullet point - relating to the game you mention, the developers could leverage scoped directory access models to fine-tune their permission requests. That, in tandem with clear and concise permission explanations, would strengthen trust for app's users.

Why haven't they, as well as many other apps out there, already utilized this feature? Well, the scoped directory APIs become available in Android 7.0 - meaning only devices running Android 7.0+ can actually use it. It is often simply a matter of prioritization for developers on whether or not to implement different behavior on different devices. Personally, I believe in doing what's best for the platform, but I digress. Feel free to reach out to the app's support channels requesting changes or deeper explanations for their permission requests.
> 3 votes

---
Tags: permissions
---


# Question
Title: Restore baseband/IMEI of Motorola Moto E5 Plus (Hannah) (XT1924-7)
I have an issue with the baseband/IMEI of my Motorola Moto E5 Plus.

Could this have been caused by flashing a firmware version with RSU (Russian?) found in a repository on XDA with the stock("") firmware and restoration guide and made the mistake of not checking the file thoroughly and believe I flashed the right carrier and version but the wrong region? I've been digging all over XDA and elsewhere and tried using Lenovo device repair assistant to no avail.

Also, would flashing the HLOS omg be a possible fix? From what I've been able to discover on my own, it seems that is where the instructions for the radio come from in firmware?

I know I'm an amateur but any help is much appreciated.

# Answer
Did you ever solve your issues? My backups were faulty (my fault). I tried the same version of OTA I was on from: https://mirrors.lolinet.com/firmware/moto/hannah/official/Metropcs/ and boot failed. So I downloaded the newest OTA from the same link, that flashes fine. IMEI/bands/all that work fine.

I can not verify authenticity though.

What I did:

1. Download the newest OTA from lolinet
2. Uncompress `ota.zip` to a new folder
3. Open the new folder, open `flashfile.xml` on part of the screen (I just let IE open it, Notepad++ would be fine also)
4. Open `cmd` from Start/search on another part of the desktop screen (command prompt)
5. `cd desktop`, `cd newOTAfolder`
6. Boot phone into Download mode (power off, hold power/volume down)
7. Following the flashfile
```
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash vendor vendor.img
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot

```

This gets you Completely wiped/Stock. Please follow the `flashfile.xml`, just use my iteration as a guide to reading it.

I use an adb/fastboot that is system-wide. If you just download the self-contained adb/fastboot, you need to uncompress the `OTA.zip` from lolinet into the adb/fastboot folder.

For what it is worth, on the METRO/Moto E5 Plus, the best custom ROM I have found is AOSPe/AEX. I am currently going back to STOCK and modding that though as all over ROMs have been faulty in ways that make for not using as a daily driver.
> 0 votes

---
Tags: restore, motorola, imei, baseband
---


# Question
Title: If I "swipe down to reject", will caller get a chance to leave voicemail?
A few times a year someone who isn't in my address book might call me, but every day I get several spam/scam calls. So basically anytime I see a plain number, I swipe down to make my phone stop ringing.

I've been assuming this sends the call straight to voicemail (so that if it is legit they can leave a message) but it strikes me that "rejecting" a call might hang up completely on the caller.

What happens when I "swipe down to reject" a call from the homescreen? Is there a way I can quickly ignore a call while still leaving the other party a chance to wait for it to go through to voicemail?

This is a fairly stock phone, an "Android One" Moto x4 bought from Google Fi but it does have some extra Motorola tentacles on it.

(I'm also interested in doing this automatically, but only if it uses a built-in feature and **not** some random app that *you* happen to trust, sorry.)

# Answer
> 0 votes
Google's Phone app Help implies that I can safely reject the calls:

> To reject the call, swipe the white circle to the bottom of the screen when your phone is locked, or tap Dismiss.

followed by:

> If you’ve set up a voice mailbox, rejected callers can leave a message.

That combined with some other research leads me to conclude that…

* "rejecting"
* "dismissing"
* "declining"

…a call are all just different words for the same thing. And any of them will both make my phone stop ringing **and** send the caller to voicemail assuming it is available.

Whereas if my phone had a way to "silence" the call, it will make my own phone stop notifying me (ringing/vibrating) but the other caller will have to wait until it continues to ring for a while before it goes to voicemail.

---
Tags: lock-screens, calls, voicemail, auto-reject
---


# Question
Title: Why deleting system files on a rooted Android says "device or resource is busy"?
I have FX Explorer, I was trying to delete some stuff in `/system/app` (the stuff are just empty folders) but it keep saying `The operation isn't permitted on a mounted filesystem`. What should I do to fix this?

(This issue is new, I used to delete whatever I want without problems)

I tried with the terminal, it says `device or resource is busy`.

# Answer
If you are using **Magisk modules**, you must be trying to delete a bind mounted <sup>()</sup> directory. Enable **Core Only Mode** (no modules) in Magisk app and reboot. Then delete the stuff you want to.
> 2 votes

---
Tags: root-access, file-system, mount, system-apps, delete
---


# Question
Title: Tapping on a contact makes call, how can I see a contact's phone number on Android 8?
If I search for and tap a contact, it calls them, but I can't see their number. If I scroll up and down endlessly looking for a specific contact and I tap them, it still won't show me the phone number. Sometimes I would like to get a contact's number to share with someone else without having to call the contact first. Is this possible on Android 8?

I'm just using the stock dialer.

# Answer
> 1 votes
In stock Phone app (*com.android.dialer*), you can tap on the picture (extreme left) of the contact. It'll show the details of the contact, won't make a call.

---
Tags: contacts, 8.0-oreo, phone-app
---


# Question
Title: Automatically limit (stop) battery charging at a given percentage
Device : Moto X Play ( Rooted, Stock, Android 6.0.1, msm8916 Board, XT1562)

# Why do I want to limit charging ?

( Let's leave out whether my reasons are valid or not and accept that I **want** to, if you disagree with my reasons)

To improve the longevity of battery , I wish to limit charging when it reaches 90%, as explained here Ideal charging / discharging percentage for maximum battery life?

# Is it possible?

Yes, at least on my previous device Honor 6, as brought out here How do I override charging current on Huawei Honor 6?, with two different ways of doing it

I have tried unsuccessfully to identify the file responsible in which changing values would limit charging

# I am looking for the system file responsible for stopping charging, with it's true path (without symlinks)

(as I saw on on my previous device, locating the path of file was a big challenge after identifying it)

---

# Answer
Okay.. Got it :)

* The first thing to note is on Honor 6, my previous device , there was a *single* file I could play around with to stop charging automatically
* On Moto X play, there are *two distinct* files - one for disconnecting the charger and other for removing charging symbol ( In other words, you could stop charging and still have the charger connected symbol showing). Till I realised this, I was running around in circles, since I took charging symbol to show that charging was happening ( and assuming I was dealing with the wrong file ). While experimenting, when I noticed charge drop despite charging symbol showing, I verified with Ampere app and wisdom dawned !

**What are the files?**

(**Edit:30 Mar 20** Jackpot! Found this awesome repository of files for various devices by the developer of Advanced Charging Controller Magisk Module. You are better off using that versatile module but in case you want to DIY, it's a great start) .

There may be other files, but the files I homed on too are :

1. For Charging Icon : `/sys/devices/soc.0/78d9000.usb/power_supply/usb/online` ( For disabling icon change value of file from `0 to 1`)
2. For charging : `/sys/devices/soc.0/78b5000.i2c/i2c-1/1-001c/power_supply/battery/charging_enabled` ( For disabling charging change value of file from `1 to 0`)

For automating this, approach was similar to my answer here using Terminal Emulator and Macrodroid as explained here - How to automate command line when specific application is launched?

**How did I find the files?**

**Inelegantly**, and I am hoping that somebody posts a good way. Here is a way that *may* work for you in identifying the file and path

**Assumptions**

* Long hours on the net and some coding on GitHub ( which I don't understand at all ) pointed me to look at `i2c` and `usb` related files with names like `charger_enabled` or `enable_charger`. This seems to be true for Honor 6, Moto X and some Nexus devices. I have no clue whether it is chipset or device dependent
* The true path of this file is in `/sys`. Again, may vary

**Next Steps**

* Do a search for `charger enabled` or `enable_charger` or a wild card search with similar words in `/sys`
* Change `rw` permissions to enable changing the content from `1`to `0` or vice versa
* Connect your charger and see the value in file, disconnect and repeat. If the value changes, it looks like the right file. While the charger is connected, change the value in file and if charging stops, you have hit it (More so, if the path is in `i2c` directory). Verify with Ampere app to confirm charging status
* While you are at it, may as well copy original and modified files to a separate directory in your storage. Needed for automation
* If your device is like mine where charging can be stopped but charging icon, shows, more grind to identify that file by keywords like `online` or `connected` or ???

If you are lucky, above should work for you

---

Just as additional information for posterity the Terminal Emulator shortcuts are :

* For disabling charging and removing the charging icon

`su –c "cp /storage/emulated/0/moto_charging/disable_charging/charging_enabled /sys/devices/soc.0/78b5000.i2c/i2c-1/1-001c/power_supply/battery/"` `;` `su -c "cp /storage/emulated/0/moto_charging/no_symbol_charging/online /sys/devices/soc.0/78d9000.usb/power_supply/usb/"`

* For enabling charger and charging icon

`su -c "cp /storage/emulated/0/moto_charging/show_charging/online /sys/devices/soc.0/78d9000.usb/power_supply/usb/"` `;` `su –c "cp /storage/emulated/0/moto_charging/enable_charging/charging_enabled /sys/devices/soc.0/78b5000.i2c/i2c-1/1-001c/power_supply/battery/"`

`moto_charging` is a folder created in Internal SD that has original and modified copies ( to enable and disable charging), and these files are copied into the system. Of course, requires root
> 13 votes

# Answer
Now there's Chargie - a USB stick+Android app combo that limits charging externally. Just install the stick between the charger and phone and use the app to select the charge level. Simple as that. Look for "chargie stick" on Google.

Disclosure: I am the CEO of Lighty Electronics. We developed Chargie and would love people who have had this issue to enjoy our product as much as we do. No spam, just the solution to the problem.
> 6 votes

# Answer
You're concerned about something, as well as focusing on something, that is inessential.

Most modern phones have built-in technology that will automatically stop charging at around 90% to 100%.

Don't buy into the whole charge cycle mumbo jumbo. If you have a good phone, you'll be golden 100% percent of the time (as long as you charge your phone when it needs to be charged. That means ***not* every night**). I've tested many, many phones and have yet to see this charge cycle "theory" as true.

Your phone is already built like that. When you see that it's charged to 100%, it's not literally its capacity. OEM's do that to prevent people from over-charging devices. (That is, if you have a phone where the OEM is smart).

It's also important to note that general use of the phone can wear your battery down in a year's time. Battery survival isn't forever no matter how healthy your charge cycle is. It depends on how you use the device, what apps you download and how they interact with your battery (consumption), etc.

In any case, you can use Safe Charge, an app from Google Play, to notify you when charging past a certain percent.

---

**Sources**

Other than six years of experience which alone isn't much, here are some relevant articles.

There are also plenty of peer-driven forums with people who have many years of experience who've tested this theory, turning up false. Devices handle charges on their own and stop when needed.
> -5 votes

---
Tags: battery, charging, battery-life, moto-x
---


# Question
Title: When should I start charging my Lithium battery?
The comments in this question say that I shouldn't wait until low battery charge level before I charge, because that reduces battery life (this is contrary to my understanding before that the faster we charge (without waiting for battery to discharge) the worse it will be for battery life). My question is, when I should generally start charging to avoid this effect? 20%?

Interesting question: *If we always limit the usage of the battery only 20% and above, won't we, in effect, reduces our battery capacity to 80%, because we will only use the battery in 20%-100% state?*

# Answer
> 18 votes
As soon and as often as you can. Spending time at any extreme of charge (high or low) can damage lithium batteries. High charge isn't that bad, considering how quickly modern devices will drain away from that state. Spending time at lower charge levels will damage the internal structure of the battery though.

Draining to "0" on the device won't actually immediately kill the battery though -- the battery protection circuitry will prevent it from going down to critical levels. But the more time you spend at lower charges, the more cumulative damage you do and the more time you take away from the lifespan of the battery. Do the best you can to avoid this, and you'll likely have a battery that still gives you 70-80% of it's life by the time the device is considered obsolete.

# Answer
> 12 votes
Lithium Ion batteries don't develope "memory" like Nickel Cadnuim batteries, so charging every day regardless of your discharge level will not affect the battery life. If my memory serves me right, because of the way that the batteries are recharged it is less strain on the battery if you don't let it get below 40% but I wouldn't worry too much about it. In that same respect, don't be hesitant to charge anytime you have the opportunity.

# Answer
> 1 votes
Now there's Chargie - a USB stick+Android app combo that limits charging externally (no root needed). Just install the stick between the charger and phone and use the app to select the charge level. Simple as that. Look for "chargie stick" on Google.

Even if you want to charge to 100% - it will go there but disconnect power completely until charge goes down to 97% (a few hours). Then it will reapply charge, but that's way less stressful than normal trickle charging. However, given today's battery capacities, 90% is enough to get you out of most days.

Disclosure: I am the CEO of Lighty Electronics. We developed Chargie and would love people who have had this issue to enjoy our product as much as we do. No spam, just the solution to the problem.

---
Tags: battery-life, charging, battery
---


# Question
Title: How to prevent Nexus 7 of charging the battery every time when connected to a USB?
Hello fellow Android enthusasts,

I recently bought a Nexus7 that I want to use for development. The thing is, every time I connect it to my USB, in order to test some apps on it, it starts charging. Now, i know that this is absolutely normal for every device, but I am also concerned that the constant charge/discharge cycles can shorten the life of the battery. What do I do?

Do I need to get concerned at all? I mean, if it reduces battery life with something like 1% per year, I am totally fine with it. Yet, if it is a significant drain, how can I prevent it from charging unless I am charging from a charger?

# Answer
> 3 votes
Charge/discharge cycles are mostly irrelevant for li-ion batteries. The main source of capacity loss is simply time. A li-ion battery sitting unused in storage will lose 15-20% of its capacity per year (see charts on page 4). Any minor losses from cycling is going to get drowned out by that.

# Answer
> 1 votes
I haven't heard about number of charge cycles affecting battery life. However...

http://batteryuniversity.com/learn/article/how\_to\_prolong\_lithium\_based\_batteries

> dwelling in a full state-of-charge for an extended time can be more stressful than cycling.
>
> Most Li-ions are charged to 4.20V/cell and every reduction of 0.10V/cell is said to double cycle life.

Keeping Li-ion battery in high state of charge will reduce it's lifetime. Some laptops have Battery care function (software) to limit maximum charge to 80%. It's recommended by them if you routinely run on AC.

On android there is some kernel modifications allowing you to limit maximum charge in similar fashion. (it's from 2011) http://forum.xda-developers.com/nexus-s/development/mod-battery-life-extender-blx-t1257497

# Answer
> 1 votes
Have you guys ever heard of Chargie? It's a USB stick+Android app combo that limits charging externally (no root needed). Just install the stick between the charger and phone and use the app to select the charge level. Simple as that. Look for "chargie stick" on Google.

Even if you want to charge to 100% - it will go there but disconnect power completely until charge goes down to 97% (a few hours). Then it will reapply charge, but that's way less stressful than normal trickle charging. However, given today's battery capacities, 90% is enough to get you out of most days.

Disclosure: I am the CEO of Lighty Electronics. We developed Chargie and would love people who have had this issue to enjoy our product as much as we do. No spam, just the solution to the problem.

---
Tags: battery, battery-life, charging, nexus-7
---


# Question
Title: Possible to connect Android phone to a port on router
My son wants to connect his Android phone to a port on his router. The details of phone and environment follow. Any advice on whether this is possible would be much appreciated.

Phone: WIKO Model: U FEEL

Android version 6.0 (08)

Developer Optoins: ON

USB Debugging: ON

Verify apps over USB: ON

Select USB Configuration:

(possible options) \- Charging \- MTP \- PTP \- RNDIS \- Audio Source \- MIDI

Disable USB audio routing: ON

Show all ANRs: ON

# Answer
> 0 votes
Sorry I violated the forum's strict posting rules.... I found answers to both my questions on a couple of other forums - so, sharing KNOWLEDGE 1. both my son's WIKO and my SONY XPERIA XZ have reportedly had the driver removed or incapacitated in the Linux kernel and as neither phone is ROOTed there's no way strightforward way to install a driver 2. and yes Robert, I meant the RJ45 Ethernet port

---
Tags: usb-connection-mode
---


# Question
Title: Disable back and recent keys while gaming
The title speaks of itself, I keep pressing them by mistake and lose my games progress , is there anything like Samsung game launcher to disable those keys? (I can't install game launcher for some reason) My device is Samsung Galaxy J7 core and I have root privileges with magisk installed (and automagic if there's some automation trick) Thank you

# Answer
> 0 votes
SOLVED!

I found a solution, by using Automagic and Tasker Autoinput plugin we can easily Remap everything in the screen. In the flow below , when a game (brawl stars) starts then do the below actions (disable keys, display ongoing notification to enable keys whenever I want, and a toast)

---
Tags: root-access, google-play-games, softkey
---


# Question
Title: How can I wholly delete Apps like News Republic, Zoe Video Editor?
Please see below screenshot. My grandma doesn't want any speck of 'Zoe Video Editor', not even "the factory version". But her HTC Desire 825 doesn't let her delete it. She hasn't rooted her phone.

# Answer
If there are system apps then she won't be able to delete them unless the device is rooted. With no root, you are left with disabling them. Settings -\> Apps, select the app, then click on Disable.

If you are unable to disable them via the settings as indicated above, then try disabling them via adb as shown in this answer.
> 1 votes

---
Tags: htc-desire
---


# Question
Title: Can not connect to PC from Android via ES Explorer
I was using ES Explorer to connect to a PC okay but recently I changed the modem then my Android phone can't connect to the computer anymore. I thought it would be caused by a setting on my modem, but searching on Google cannot help me find out. Please tell me how to get my android connected to the PC so I can access files again.

Details:
I have ES Explorer 3 on Android.
My Android is connected to the internet through the same modem as my PC.
The D partition has been shared as "Everyone to view.
When I add a new server from ES File Explorer, it says "Error, Can not find the server"
Update: I have turned off Windows Firewall.

# Answer
> 4 votes
I have just found out the answer after visiting here. Instead of inputting `192.168.1.104`, we must input `smb://192.168.1.104/`

# Answer
> 11 votes
I had the same problem after updating Windows 10. This is what I did to fix it:

1. Select the LAN connection of the Win10 PC (under Network tab in ES Explorer. If you deleted it, scan again to get the connection).
2. Select "Edit Server" option.
3. Enter your Computer name in the "Domain" textbox. Don't change any other thing.
4. OK, and enjoy the SMB re-connection!!

# Answer
> 6 votes
Windows 10 by default disables SMBv1. So, go to "**Turn Windows features on or off**" \> enable **SMB 1.0/CIFS File Sharing Support**. Now Restart your PC.

# Answer
> 4 votes
I had the same problem. It was with the router. The router was DLink Dsl 2750 u. In wireless basic settings \> enable multiAP isolation. That was enabled, I disabled it and I was able to access my pc. Check it if multiAP/multicast isolation is enabled on your router. If it is disable it.

# Answer
> 4 votes
I tried the solutions mentioned above and in the linked thread. None of them worked.

What did work was disabling password protected sharing. This works on Windows Vista, Windows 7, Windows 8.1 and Windows 10

1. Go to network and sharing center
2. Change advanced sharing settings
3. All networks (at the bottom)
4. Turn off password protected sharing

At that point I was able to use the ES file explorer scan option to detect the machine. It should show up as grey. Now edit it and enter your Windows 10 account information and you are good to go.

# Answer
> 2 votes
Here's a summary of some important LAN (SMB) connection options to check and edit
(using the ES File Explorer "Edit Server" option of a selected connection in the Network tab):

1. The "Domain" option - try putting the computer/server name in this textbox.
On Windows, I think this is the first part of the full user account name (separated by "/").
On Unix/Linux (Samba file servers), this is the setting called "workgroup/NT-domain name".
(from the answer at https://android.stackexchange.com/a/150598/239104)
2. The "Server" option - before the IP address, try adding `smb://` (the URI protocol scheme). However, I tested a connection without this prefix in version 4.1.6 and it worked so this appears to be no longer needed.
(from the answer at https://android.stackexchange.com/a/83428/239104, information originally from https://superuser.com/questions/605452/connect-from-android-es-file-explorer-to-windows-7-share)
3. Old/new Windows password, username (check with the `whoami` command), sharing permissions/configuration file on the Windows computer/Linux Samba share (e.g. password protected sharing), network router options, network connections.

If they don't work, try switching the WiFi/wireless off on the Android device then reconnecting, checking the server/computer is connected to the network/internet (`hostname -I` on Unix/Linux) or restarting the Android device.

Alternatively, if you're trying to connect to a server that has a SSH (Secure Shell) service (port 22), you can use SFTP (SSH File Transfer Protocol) to access files with a user account on the server.
This connection type is available in ES File Explorer - just use the "Network" tab "New" button.

# Answer
> 2 votes
Type `whoami` in command prompt, it will retrieve the full username of your computer.

Copy the part after backslash and keep it somewhere ready. Type `ipconfig` in command prompt again and find out what is the IP address of your windows machine.

* Usually it shows as this "Ethernet adapter Ethernet: `IPv4 Address. . . . . . . . . . . : 192.168.1.102`.
* Copy it and keep it somewhere. Now take your windows machine's password as well and keep it somewhere.
* Go to Windows explorer, and type the following address in the address bar, and press enter "Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings"
* In Private Network section, select these "turn on network discovery and its subordinate checkbox", "turn on file and printer sharing", then again use this address in windows explorer "Control Panel\All Control Panel Items\Network and Sharing Center" and make sure your ethernet adapter is a private network.
* Now go to android, open your local network app (in this case es explorer, but this works for other apps as well), use the copied ip address in the host name/ip address textbox, use the copied username and password, and press connect.
* It will instantly connect to your windows PC where you will see all the shared folders.

# Answer
> 1 votes
In my case, there was a bug with the password. I recently changed the password of my Microsoft Account (which I used to log in to my PC) so I was trying to use my new password in ES Explorer. However, the password that worked was my ***old*** password. I guess this is a bug where Windows doesn't update the password used for remote connections and file sharing.

# Answer
> 1 votes
I have a laptop with non updated Windows 10 - sharing is no problem with passwords

My computer updated to latest Windows 10 version is showing in ES File Explorer.

But received error: `"Error, Can not find the server" with password protection on Windows 10`.

Tried the tricks mentioned here but no luck.

Only thing that works is to;

1. Turned off password-protected sharing
2. Tick the Anonymous box in ES File Explorer

This temporarily allowed access to public folders but not access other folders that are displayed!!

And this access to public folders was only temporary (once off) now only displays the shared folders but cannot open any of them!!!

# Answer
> 1 votes
I have solved my problem by 'changing PC name'

recently I have changde my PC name and write it in small letters, so write in Capital letters after much struggle I found solution by changing PC name,

If you change your PC name then try this solution under my computer → properties → advance system setting → in computer name tab find change in bottom write with capital letters

# Answer
> 1 votes
I have got this from time to time, e.g. after the computer has reloaded with a different IP or if I have changed the computer name. When it occurs I usually delete the server from the app, unload ES File Explorer completely, and restart my phone and/or tablet, then when it comes up I re-scan and it seems to be OK again. I have never had to add 'smb://' to the IP, or change from Anonymous, to fix the problem.

# Answer
> 0 votes
Those who didn't set a user password for your PC: You will have errors connecting to server (to your PC) if you leave the password blank. Set up your account password in your PC then use that to connect.

# Answer
> 0 votes
So, the only way I got this working was to turn off password protected sharing. Then on es file explorer press and hold on my laptops icon in the network search then click the pencil at the top right then in domain entered the name of my laptop then entered my username and password and then that was it. I was able to see all my files but I cant get into the c drive only my files in my user folder are accessible and obviously public folders. So even turning off the password sharing it still seems secure.

Hope that helps.

# Answer
> 0 votes
On Windows Vista:

In `Network and Sharing Center` there's a button for `Media Sharing`. I clicked on the drop down arrow and got an option of `Change`. On the next screen were permissions. `Share My Media To` `Other users of the PC` was not ticked, so I ticked it.

This solved the problem in my case

# Answer
> 0 votes
Instead of using the full e-mail address of your Microsoft account, just use the first five characters. I'm not sure if that's how it generates the username, but you can check what it exactly is by typing 'whoami' in command prompt, and your username will appear after the slash for the domain.

# Answer
> 0 votes
In my case ES File Explorer was not listing my PC under LAN Connections. I solved it by disabling `Enable Wireless Isolation` under Basic Wireless Settings of my Router's Settings Page.

Follow this if your PC is not listed under LAN Connections in ES File Explorer.

* Open your Router's Settings page in browser. To do that enter your router's IPv4 Address in Address bar. To Find Router's IP Address run "ipconfig" on your Command prompt. Find IP Address adjacent to Default Gateway (IP format would be 192.xxx.x.x).
* Login to your Router's settings. If it is public Wifi and you don't know the password, ask the authorities.
* Go Wireless Settings -\> Basic Wireless Settings (Options might differ for different routers, mine was Digisol Router). If your Options are different go to Settings similar to Basic Wireless Settings.
* Once you are in Basic Wireless Settings Find `Enable Wireless Isolation` or `enable multiAP isolation` and disable it.
* After disabling check in your ES File Explorer whether your PC is listed under LAN connections. It must be listed.

---
Tags: wi-fi, connection-issues, lan
---


title: Should I use the Android Q Beta?

text:
# Question
Title: Should I use the Android Q Beta?
The Android Q Beta has some great features and fixes the bad gesture navigation from before. I would really like to try it. From what I was able to gather, it's mostly fine, but I wasn't able to find a lot of resources detailing the downsides.

What I'm mostly concerned with is errors during the upgrading process, data loss and the running of the four most important apps for me:

1. WhatsApp
2. YouTube (music)
3. Firefox

I have already searched for issues, but wanted to make sure before I do something that could potentially create a huge hassle for me. I'm really thankful for any advice in advance!

# Answer
In general productive usage of beta versions provided by Google is not recommended.

Google provides beta versions of upcoming Android versions for developers. Using the beta versions they are able to check if their apps will be compatible with the upcoming Android versions. Also developers can use those images to make some first test with upcoming new features.

Therefore I would strongly suggest to wait for the official release, especially if the apps that are important to you don't explicitly state that they are Android Q compatible.
> 2 votes

# Answer
I think you should wait until the official release of android q is made by Google because if you use it now you can get many errors while making an android app
> 0 votes

---
Tags: android-beta-program, android-10
---


# Question
Title: How to debug error on installation from APK?
I'm working in a project. We are in a testing cycle and we are experiencing something that I don't know how to debug.

I built the APK. I installed it in my phone (S9+) and in many others with no problem. Then we sent the APK to some people to test it. 4 new Samsung S9. Totally new. No previous versions installed and same SDK and ONEUI and security patch as my own device.

When they try installing it they get an error on installation. I don't know what can be causing this and I don't know how to capture the error. How can I generate some log or debug it?

# Answer
Thanks for the answers. The problem was cause by Google Protect. I just disabled it and now works perfectly. Thanks!
> 0 votes

---
Tags: installation
---


# Question
Title: How to factory reset phone when I can't find the factory reset option?
I have an old Samsung Galaxy S3 that's been sitting in my desk for years. I wanted to clear it off to give to a friend, but I'm not seeing the factory reset option anywhere. All guides I can find online indicate that it should be in the Settings app, but it's not. (There is no Privacy section anywhere in the Settings app.)

Is there any other way to factory-reset a phone? It's on 4.3 (Jellybean), according to the About Device screen. (I've tried to get to recovery mode with the power/volume down key trick, but it doesn't work; just continues to boot normally.)

# Answer
> 1 votes
Posting this as answer in case anyone else runs into this.

It turns out that I had manually disconnected my Google account years ago, when I switched to a new phone. By reconnecting the Google account, it added the Privacy section (including the Factory Reset option) back into the Settings app. Once that option became available again, the reset worked with no problem.

# Answer
> 0 votes
If you can't go to Recovery Mode, hence go to download mode and use Odin to flash your android device.

1. Reboot Phone and go to Download Mode. (press and hold Home + Power + Volume Down buttons)
2. Connect your android device to PC and wait until you get a blue sign in Odin.
3. Download a good verion of framework which is match with your device (build number, etc).
4. Add the downloaded firmware file to AP / PDA in Odin.
5. **Make sure re-partition is NOT ticked.**
6. Click the start button and wait few minutes.
7. After step 6, your phone will start, but it takes a few minuets at first time turing on.

---
Tags: factory-reset, 4.3-jelly-bean
---


title: Remove the lock for the app

text:
# Question
Title: Remove the lock for the app
I installed one particular app two months ago. When I opened it the first time, a popup opened with a suggestion to enable the screen lock pin. And I enabled the screen lock. From that time whenever I opened the app it always asks for the pin. I used the app for the last two months without any problem. But from the last few days, I can't open the same application because it is showing to enter the pin even after I entered the correct pin. I thought it was a bug of that particular application and I reported it to them. They told me that the application does not asks for pin to access it. I was told to check access and security credentials in my phone, to open the apps and remove the app from the list of the apps. But I can't find any setting to check it on my phone. Could anyone tell how to check the access and security credentials to open the apps and how to remove it ?

# Answer
> 0 votes
When apps misbehave, usually clearing the cache or its data solve many issues. If the app doesn't contain important data, then try Settings -\> Apps. Find it and delete its data. It should be reset as the first time you used it.

Then start it and set the settings to use it as before or change them for your new needs

---
Tags: security, settings, lock-screens, application-locker
---


# Question
Title: HUAWEI P20 LITE -ANE- LX2J. I can't get rid of this setup process
I was trying different shortcuts useng the default Launcher whilst switching back and forth, to greater easy access to some strings files. 'please keep in mind my phone has been set up properly for months now and works great' At the time I had also the Play store app call "Shortcut Creator" open in the background so I'm not sure what particular hidden shortcut I activated .. but now I can't get rid of it. I've cleared the Android package cache, ive even just let it run for some reasonable amount of time, many times to see what would happen and you guessed it.. it just stays there in the notifications.

tl;dr Basically I accessed something which I don't know what and I can't get rid of this notification or windows that follows I tap in it. pictures..

Sorry guys it won't let me upload pictures screenshots so here you go please take a look.

After I kick it, this happens, but phone is completely functional and restarts does everything except make money.

Device info

# Answer
Not my fault for creating such a message thread but this is officially solved with the new security update.

SOLVED
> 0 votes

---
Tags: huawei-p20
---


# Question
Title: Is there a way to push the results of an adb query to a file?
I have a couple of adb commands that I'm running in PowerShell. Specifically:

```
adb shell settings get secure bluetooth_address; adb get-serialno

```

Is there a way to do an 'adb push' of that data to a text file on the same tethered device?

# Answer
> 0 votes
Try the following:

```
./adb shell settings get secure bluetooth_address > results.txt ; ./adb get-serialno >> results.txt ; ./adb push results.txt /path/to/save/file

```

**Explaination:** The results from the first 2 commands are saved in a file on your PC, then the file is pushed to your device.

---
Tags: adb
---


title: MI Max 2 soft-bricked

text:
# Question
Title: MI Max 2 soft-bricked
Okay here is what happened Yesterday I restrated my phone beacuse the volume and power keys were acting funny but instead of booting into the system in boots into TWRP btw just in case I installed a custom rom before i restarted this okay back to the problem today I gave up trying to flash new custom roms since It keeps booting into TWRP so i decided to go with the stock rom I flashed with Miflash hoping it would fix but now TWRP is gone can't turn off my phone,can't boot into fastboot or bootloader,all I can is Mi-Recovery 3.0 also just to add my volume up key wont work that's the reason for why i think there is damage on my volume up key.

From the Main Menu of Mi-Recovery 3.0 all i could do is reboot to system which just makes it boot bact to recovery and wipe data which also did'nt work, Connect with MIAssistant is also useless since the app cant detect it. Thats all.

# Answer
Your phone boots into recovery because of a short circuit in the Volume Button.

* From TWRP Recovery, get a backup of boot partition and
* copy the `boot.emmc.win` file to PC via MTP-USB
* tap "Reboot" and "Bootloader" to enter fastboot mode
* boot your phone from fastboot with

```
fastboot boot "C:\Users\<profil>\Desktop\boot.emmc.win"

```
* you must repeat the last step each time you want to boot into system
> 0 votes

---
Tags: diagnostics
---