# Question
Title: Why the music player stop playing music when taking photo?
May I know what is the reason why Android phone's music player will stop playing music when I switch to camera mode?

I find it logical if the music player stop playing music when taking a movie but stopping playing music when taking photo seems to be quite illogical since the photo taken will not save any sound.

# Answer
This is an old question, but I think that some people might find it useful since I came it across using Google search.

The camera app has a permission called *TAKE\_AUDIO\_FOCUS* which it is granted by default to it. The camera app uses this to pause the music while you open the viewfinder on your phone.

To fix this issue, you can simply disable the *TAKE\_AUDIO\_FOCUS* permission from your phone. The problem here is that you can't do it via the UI since the toggle for it isn't there.

The simplest way to not allow the camera app on your phone to pause your music is to take off this permission using the adb shell.

1. Download your OEM USB drivers from your phone's manufacturer's website. A simple Google search should give you the link.
2. Download Minimal ADB portable and extract it to a folder on your desktop.
3. Connect your phone to your PC and enable USB Debugging. For that, Go to **Settings** \> **About Phone** \> **Tap on the Build Number 7 times**. This will unlock the Developer options on your phone. Now, Go to the **Developer mode** from Settings. **Enable USB Debugging**.
4. Now, open the folder where you extracted the Minimal ADB and `Shift` \+ Right-click on an empty space. From the context menu, select **Open Command Window Here**.
5. In the command window type `adb devices`.
6. Press **OK** on your Android phone when it asks you to give the permission for USB Debugging.
7. Now, type `adb shell` to open the command line interpreter on Android.
8. Type the following command to remove the `TAKE_AUDIO_FOCUS` permission from your Camera app:

```
appops set app.package.name TAKE_AUDIO_FOCUS ignore
```

You will need to replace the *app.package.name* with the app's package name of the camera app in your Android phone. Since most manufacturers don't follow a single standard for naming their camera apps, you'll need to use a package info app from the Play Store to know the package name. Use App inspector for this.

Suppose your phone is a Moto G. You can type the following command to remove the `TAKE_AUDIO_FOCUS` permission

```
appops set com.motorola.cameraone TAKE_AUDIO_FOCUS ignore

```

That should be it.

**Source**: my own article here.
> 7 votes

# Answer
You can also try installing a different camera app that does not take audio focus. I tried the Camera MX app for instance, and it does not appear to pause audio playback.
> 0 votes

---
Tags: camera, music-player, photos
---


# Question
Title: Remove/disable guest account on Android 6.0.1, but still allow restricted accounts?
I've been researching this exact issue and am aware of these 2 Q&A's on this site:

Neither of these either cover what I'm asking or are wrong (the 2nd one mentions how to delete the guest account, but it continues to be shown if you switch back to the main account, for example).

I'd like to disable the guest account completely and still retain the ability to have multiple restricted accounts on my Samsung Tab A (model GM-T350).

We purchased these for our kids and find the lack of security to restrict them disturbing. I have a Nexus 7 tablet and am able to restrict access to restricted accounts there without issue, however on the Samsung version of Android this has proved challenging.

The method using the `adb shell` to set guest\_user\_enabled to 0 but this appears to only work if you have no other accounts, besides the administrator account, so that simply won't work.

Putting a password on the guest account will not work either, since you're able to simply "Start Over" and wipe the account and install whatever apps you like.

Deleting the Guest account will get rid of it, however if you slide the top level pulldown and switch to the administrator account, and then hit the power button and slide it down again you'll see the Guest icon show back up and you can simply start a new instance of the Guest account.

Worse still, when doing this same thing you'll be presented with a "Add User" button which blows my mind, since why would I want anyone to simply start making accounts on my device.

**NOTE:** The below reference is the best overview I've found thus far around parental controls in Android, but many of the screenshots are from non-Samsung variants, best I can tell.

### References

# Answer
> 1 votes
1. Create a restricted account named Guest
2. Sign into that account
3. Go back to administrator account
4. Delete the account that you made in step one

You can still access the Guest user in the user section of the settings menu but not from the lock screen. This works for me. I hope it works for you too.

As for the add user button that can be disabled by going Settings\>Users\>...\>Add users when the device is locked

---
Tags: samsung, tablet, multi-user
---


title: Combatible firmware for old S7

text:
# Question
Title: Combatible firmware for old S7
I got an old s7. Looking through the settings it says:

Model Number: SM-G930FD
Build Number MMB29K.G930FXXU1BPIF
Baseband Verion:G930FXXU1DQE8

I am trying to find a compatible firmware to manually install, since when I told the phone to search for updates it does not find anything. The device has Android 6.0.1 with September 2016 security update which looks very insecure to use.

I am trying to find a compatible update, preferably based on android 8 and released during the last two months. However I am not sure about what to use.

Another strange thing is that when I try to find the existing firmware on the device I cannot find it when searching for SM-G930FD. However I do find this entry for SM-G930F with PDA G930FXXU1BPIF. Also if I enter download mode the phone shows: PRODUCT NAME: SM-G930F !!

I am not sure what to make of this. Is the phone a G930F or a G930FD? And what should match when I try to find an official firmware that should match this phone's hardware?

# Answer
`SM-G930F` is the single-SIM variant and `FD` the dual-SIM variant. If it says `FD` in Settings, and - as a more concrete proof - can also take/read 2 SIMs (`FD` has a different SIM tray), then you can be sure it's an `FD`.

The two actually share the same hardware otherwise, hence you'll see `G930F` in Download Mode. In fact, 1) there had been users reporting that flashing `F` firmware on `FD` is possible and doesn't remove dual-SIM functionality (more on that in this XDA thread), and 2) it's even possible to convert an `F` to an `FD` with certain steps and swapping the SIM tray for one from `FD`.

As for firmware, any G930FD firmware listed will work, though for the best customized experience you'll want to find one that matches or at least close to your geographical region.
> 1 votes

# Answer
SM-G930FD and SM-G930FD are all models of the Samsung Galaxy S7. See Samsung Galaxy S7 Specifications.

> Versions: G930F (Global); G930FD (Global; Southeast Asia); G930W8 (Canada)

On the Misc section of the above link:

> Models: SM-G930F, SM-G930A, SM-G930P, SM-G930V, SM-G930T, SM-G930R, SM-G930F, SM-G930FD, SM-G930W8, SM-G930S, SM-G930L, SM-G930K, SM-G9300

For firmwares, you can verify here for G930FD and here for G930F. Check if your country is among those with new firmwares.
> 2 votes

---
Tags: samsung, device-firmware
---


# Question
Title: How to retrieve saved password in Google Chrome for Android?
Is there any way I can retrieve stored password specific to any URL in Google Chrome for Android. This is not in any way connected with Google Chrome running in Desktop versions. I'm able to see saved password in Google Chrome in Desktop but not in Android version. Please Help. Thanks in Advance.

# Answer
In Windows, if you open Manage password in Chrome, then it asks for a master password (i.e. Windows Admin password) to view and manage your passwords. But that's not the case in Android. So for security purposes, Chrome for Android doesn't reveal the password.

> From Greenbot: Saving your passwords to your device presents some obvious security issues. Although Chrome won’t show your password, all bets are off If someone gets ahold of your phone—they’ll be able to log into any account that Chrome remembers. If you choose to have Chrome remember your passwords, you’ll also want to set a passcode on your phone—or better yet, encrypt your device—to reduce the risk of your Internet accounts falling onto the wrong hands.

Based on this help link, to manage you password in Chrome browser for Android,

> 1. Open the Chrome app.
> 2. Touch Chrome menu Menu.
> 3. Touch Settings \> Save passwords.
> 4. Touch the link for Manage saved passwords in your Google Account.

However, following the above steps only reveals the username and the website URL and you can delete the password but not view it. In order to manage/view your passwords from any device/browser, visit https://passwords.google.com and re-enter you Google account password to login and to view all your saved passwords (except your currently signed in Google account password won't be displayed) if,

* you’ve signed in to Chrome and saved passwords or
* you’re using Google Smart Lock for Passwords on Android

Click on the specific website and select the eye symbol to reveal the password for that particular site.

**Update:**

If you are having a rooted device, you can try Firelord's answer too.
> 12 votes

# Answer
**Note**: This method requires root access.

---

The credentials of the websites that you allowed Chrome to save are stored in the file `Login data` which is located inside the data directory of Chrome i.e. `/data/data/com.android.chrome/app_chrome/Default/`. Certainly, no app or even ADB can access that location and neither Chrome has any provision through GUI to access them, so non-rooted devices are at quite a loss. Lucky's solution should help in that case.

Anyhow, for a rooted device, simply pull that file (an SQLite database) into PC and open it in an SQLite viewer like DB Browser for SQLite. You may also open that file in a text viewer (know that the formatting wouldn't be pleasing if you do that and a bit incomprehensible too) or in an SQLite viewer app like SQLite Editor or aSQLiteManager or the command-line sqlite3.

The table `logins` has the credentials.
> 7 votes

# Answer
Another way to do this (e.g. if you use a sync password and passwords.google.com is not an option) is by turning debug mode on, inspecting the tab, and printing the value of the field at the console (e.g. document.getElementById('passwordFieldID').value;)

Link for remote debugging: https://developer.chrome.com/devtools/docs/remote-debugging
> 4 votes

# Answer
You'll be prompted to enter your lockscreen password or PIN if you have one, or your Google password if you don't have a lockscreen.
> 2 votes

---
Tags: chrome-for-android, password, privacy, url
---


title: Google Smart Lock suggestions problem

text:
# Question
Title: Google Smart Lock suggestions problem
How I can delete old profiles from that list? In my saved passwords I don't have this, only 1 saved for VK. Same problem in tinder app too, always suggested use my old number and couple other apps. It so annoying. How fix it?

# Answer
1. Open any web browser and navigate it to https://passwords.google.com/.
2. Enter your Google sign-in information to sign-in to your Google account as usual.
3. You will see settings for turning off or on the SmartLock Passwords, and the Auto Sign-in option for SmartLock.
4. These options would be a list of all the saved passwords, whether saved through the Chrome browser or through the SmartLock feature in Android.
5. Android Smart Lock Passwords Passwords are masked by default for privacy reasons. You can reveal the masked passwords by clicking/touching the small eye graphic.
6. In order to delete one of these passwords, you can just click on the small cross shown next to that password.
7. The passwords are deleted without any confirmation, so be careful not to delete some password that you have forgotten about.
> 0 votes

---
Tags: password
---


# Question
Title: How to use phone number from my missing phone to re-activate a Viber account
My phone was stolen and I'd like to reactivate the same number to a new device. Unfortunately Viber is sending the code to the lost number. Is there a way I can do that?

# Answer
> 0 votes
Simple answer, no you can't. The only ways to activate are via SMS or a call to receive the activation code and both methods require your phone number because the code will be sent to it. You are no longer in possession of the number you won't be able to activate Viber.

Your only solution is to talk with your service provider if it is possible to get your lost number back (it is possible in some countries). The process involves proving that the Sim (lost number) was yours by providing the last numbers called, received, if you bought data, what was the amount, etc.

---
Tags: viber-messenger
---


# Question
Title: "Security update required" on Exchange account on Android 10 Beta
I am on Android 10/Q Beta on Pixel 2 and my exchange email account stopped working and is constantly asking for security update. It doesn't lead me to anything when I click on it and hence stuck with no mail access. I've had Android 10 Beta for a few days now and the exchange account was working fine until now. Any pointers on this?

# Answer
I've experienced the same (Pixel 2 XL Q/Beta4) but there seems to be a workaround which works for me:

1. delete your Exchange account from Settings -\> Accounts
2. delete the latest update from Gmail in Play Store
3. open Gmail and add your Exchange account
4. update your security settings when promted (should work here)
5. update gmail to the latest version
> 1 votes

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


# Question
Title: What is the default chinese font in Android?
What is the default Chinese font in Android and where are they stored so that I can get the font files?

# Answer
On Android 9 it's Noto CJK, e. g. "Noto Sans CJK JP" font family (located in `/system/fonts/NotoSansCJK-Regular.ttc`). There is no `DroidSansFallback.ttf` anymore.
> 2 votes

# Answer
Fonts are always stored at /system/fonts. By changing the system font to Chinese, and looking in that directory, you may be able to find the font.

Hope this helps.
> 1 votes

# Answer
I believe the font is called Droid. A few variations (sans, sans mono, serif, condensed) are available from DroidFonts.com, though it should be noted that Droid Sans may be the only to contain Chinese characters.

> Each of the Droid fonts was custom designed by Ascender and optimized for on-screen legibility with the Android platform. ...
>
> \[Droid Sans\] contains over 43,000 glyphs and includes support for Simplified Chinese (GB2312), Traditional Chinese (Big 5), Japanese (JIS 0208) and Korean (KSC 5601). This font uses the Simplified Chinese ideographs for shared Unicode code points.
> 1 votes

# Answer
The name of the font is DroidSansFallback.ttf it is located in /system/fonts/

Link to official droids page Droid fonts family

> Support for CJK is provided by the Droid Sans "fallback" font. This font contains over 43,000 glyphs and includes support for Simplified Chinese (GB2312), Traditional Chinese (Big 5), Japanese (JIS 0208) and Korean (KSC 5601). This font uses the Simplified Chinese ideographs for shared Unicode code points.

There are no other font with Chinese in a regular western Android phone therefore DroidSansFallback.ttf is used to display Chinese.
> 0 votes

---
Tags: fonts
---


# Question
Title: TWRP unable to wipe or format `Failed to mount '/system' (Device or resource busy)`
I'm trying to install LineageOS and then GAPPS on my Pixel XL from TWRP recovery. I'll try to `Advance Wipe` the `/systems` directory and `Format Data`, but I continue to get multiple errors:

`Failed to mount '/system' (Device or resource busy)`

`Failed to mount '/vendor' (Device or resource busy)`

And

`Unable to wipe 'System'`

`Unable to wipe '/system'`

If I just continue with `adb sideload lineageos.zip` most of the time it stops about halfway (PowerShell shows `47%`) through and then TWRP shell shows:

```
Installing zip file '/sideload/package.zip'
Step 1/2
Step 2/2

```

I then try to `sideload` the `gapps.zip` file and get another error saying `/system` doesn't have enough space. I've tried sideloading several different gapps versions including their smallest `pico` zip fie of `91.39 MiB`.

I am able to then boot into LineageOS, but no GAPPS show and I'm not able to run any new apps installed via APK without them crashing.

My assumption is that I need to fully wipe `system` and format it, but I've been trying for two days now and still get the above `(Device or resource busy)` errors. Any help would be much appreciated!

# Answer
> 4 votes
I fixed this by using an older version of TWRP (3.2.3.1), then I downloaded GAPPs from a different source and installed using `adb sideload` now all is working.

---
Tags: adb, recovery-mode, twrp, file-system, lineageos
---


# Question
Title: How to enable/disable lock screen from shell script when a special wifi SSID is present?
My Java skills are low, but I'm mastering shell.

Is use LineageOS 14.1 (forked from cyanogenmod).

I would like to create a shell script on a rooted devive to enable/disable lockscreen (PIN).

I would like to unlock my screen at home when a special SSID is present.

I'm able to discover my known network by running :

```
#!/bin/bash

iw dev wlan0 scan | grep MY_SSID

```

Now, is there a command line to disable/enable the PIN based lock screen depending of the output of this command please ?

Maybe something based on

```
am <something> <stop|start>

```

Tried to make a diff from `ps` with and without lockscreen, but I only have `cyanogenmod.snap` as diff, tried to kill the process, but still the lockscreen.

Any hint please ?

# Answer
> 0 votes
The script below is a partial solution. Partial because it will not disable the Pin. What it does is to wake the device up when it is connected to a chosen wifi, input your password and unlock it.

```
#!/system/bin/sh

mySSID="no wifi present"

connected_wifi()
{
    #Get the network
    mySSID=`dumpsys netstats | awk -F '[/=|,]' '/iface/ {print $8}' | head -1`

}

echo 'Start running script\n\n'

connected_wifi

while true
do
#Check if connected to wifi or mobile data. If connected string is not empty
    if [ "$mySSID" != '' ]
    then

        if [ "$mySSID" == "YourHomeSSID" ] #connected to home wifi
        then

            echo "Connected to $mySSID\n"
            #Check if the screen is on or off
            screen_status=`dumpsys power | awk -F '[/=]' '/Display Power/ {print $2}'`

            if [ "$screen_status" == "OFF" ]
            then
                echo 'The screen is off, Will now input the password'
                #Press the power button to switch the screen on
                input keyevent 26
                #Simulate swipe up gesture
                input touchscreen swipe 320 940 320 100
                #Input your PIN. Change XXXX with your PIN
                input text XXXX
                #Simulate OK/Enter
                input keyevent 66

            fi

        fi

    fi #not connected to wifi nor mobile data

    #Wait for 3 seconds, then check again if connected to home wifi
    sleep 3
    connected_wifi

done

```

The main disadvantage of the script is that the screen will be on nearly all the time when connected to your home wifi. To stop the script from running, press `CTRL`+`C` from the terminal.

My phone doesn't have `iw` command. I had to use `dumpsys netstats` to get the networkID.

---
Tags: shell, lineageos, automation, scripts, bash
---


# Question
Title: How to boot from download mode into recovery mode
Two days ago when I was going to use my Galaxy Note 8.0 GT-N5100 tablet I noticed it was off, but minutes before it was on and working, so I tried pressing the power button and nothing happened, plugged the charger in, nothing, no signs, it seemed bricked, so I tried to power through download mode and it worked, after that I pressed volume down to cancel it to start normally, the first samsung logo showed up (that one that says the model and stuff), but it was there for really long, i left it running and after 5 mins or so it changed to the pulsing blue samsung logo, left it there and about 30 mins later it was back to the 1st samsung logo again. I also tried a soft reset and booting to safe mode, didn't work either.

This tablet has no custom rom installed (I think it is on stock 4.4.2), the only thing different I installed is TWRP and root, years ago, but I cant boot to TWRP through the vol up+home+power, it doesnt work, tbh it never worked since back then, just like this, the only way I found to boot to twrp was thru "adb reboot recovery" using adb, which didnt work in download mode, I want to be able to backup some data before flashing it with Odin, so here are my questions:

1- Is there any other command I could try to force it to boot to recovery? 2- Is there any way to backup data via download mode on this device?

Thank you for your attention

# Answer
If you have a device with an unlocked bootloader you can boot a recovery image without actually flashing it by running `fastboot boot <recovery.img>`, this won't persist across a reboot, AFAIK there's no fastboot pull or the like so you can't just backup via fastboot just like you would with adb, I've seen some phones even respond to `adb reboot recovery` and reboot itself to recovery but those are all stock android phones.
> 0 votes

---
Tags: adb, samsung, recovery-mode, data-recovery, samsung-galaxy-note-8
---


# Question
Title: Edit Whatsapp contact name in Samsung Galaxy S3 Neo?
I wrongly saved one of my friend's name. Later renamed it with original name but when I searched contacts in WhatsApp I saw his name is still old one. I can't find a way to change name. I tried to edit via mobile contacts, but edit button in WhatsApp contact is disable. How to change WhatsApp contact that name in Samsung Galaxy S3 Neo?

Screenshots (click images for larger variants)

# Answer
> 1 votes
You can follow these steps:

* Rename the contact in your phone book and save.
* Go to `Settings > Account > whatsapp > sync now` (or any similar option)

Most likely, your contact is not synced after you renamed!

# Answer
> 1 votes
This may work :

1. Save your friend's number (copy & paste into a note taking app or write it on paper or just remember it).
2. Delete your friend's number.
3. Add new contact with the name you want and enter your friends number.

# Answer
> 1 votes
WhatsApp seems to create a **read-only version of the contact on many phones**, so if simply changing the contact's name in your contacts app doesn't work, you might have to:

1. Delete the contact
2. Create a new one with the updated name.

# Answer
> 1 votes
Can't it be done by synchronisation of contact over whatsapp contact.. I mean editing contact in phone or sim card and sync to whatsapp then whatsapp replace the old contact and shows the new one.

# Answer
> 0 votes
It is to be done from inside Whatsapp and is simple. 1. Open Whatsapp 2. Tap Add Contact icon at the right bottom 3. Select New Contact 4. Select the choice of phone or SIM 5. Enter the Name 6. Enter the phone number 7. Save.

---
Tags: samsung-galaxy-s-3, contacts, whatsapp-messenger
---


# Question
Title: Gboard doesn't save new words and use my personal dictionary?
I have both swedish and english activated in GBoard, but I'm using the swedish layout so I get easy access to the letter `å ä ö`.

My problem is that Gboard doesn't seem to "learn" some new words. A specific example is when I'm swiping `hon` (swedish for `her`), it **never** suggests `hon`, instead it autocorrects it to `jobb` (swedish for `work`) every single time. I've erased the suggestion, I've typed `h o n` manually and clicked it in the top bar - I even added `hon` to my personal dictionary in the Gboard settings, but nothing seems to help.

It's gotten so ridiculous that I just stopped erasing and correcting it when texting some of my friends, I just informed them that if they see an oddly placed `jobb`, just assume I mean `hon` :)

On a side note - both me and one of my friends (who's using Sony's built in keyboard) seem to experience periods of our predictions going haywire and suggesting completely wrong words, or in my case often weird acronyms like `DF`, `DT`, `DGV` etc. This seems to last for a few days and then it gets better for few weeks. Might just be coincidental, but I'm curious if anyone else is experiencing something similar?

# Answer
> 3 votes
I just figured it out while trying all possible Gboard settings. Turns out that "block offensive words" was activated for some reason, and apparently the word "hon" is considered offensive in some places.

I had no idea it was an offensive word, and either way I'd have thought Gboard was clever enough not to block english offensive words when I'm in "swedish mode" (i.e. when the last word i typed was in swedish and all the suggestions it comes up with are in swedish). Turns out it doesn't care, and "hon" gets blocked either way.

# Answer
> 1 votes
Thank you, but the suggestion above didn't work for me since I already had the 'block offensive words' disabled. However, I found out that for Gboard to learn the words I typed, I also had to enable the 'personalized suggestions', under settings \> text correction. Hope this helps :)

# Answer
> 0 votes
I think I found a solution for this. Write the word manually and select any emoji but **don't put a space** between the word and the emoji, and the word will have a red underline instead of a blue one. Tap over the word and it says ... 'add to dictionary' (like in the old days). If you write the word, space, backspace and emoji, it wont work. If you do this, then delete some of the few last letters and write them again, leave no space and insert emoji again. That worked for me. Gboard is not learning automatically but at least you don't have to be writing the words every time or adding them manually in the dictionary (well, you are actually but while you are writing the message).

---
Tags: swype, gboard, auto-correct, text-prediction
---


title: Recover media from Android backup files

text:
# Question
Title: Recover media from Android backup files
first time I ask a question here so I'll try to explain myself at my best. English is not my native language, so please bear with me.

In 2017 I had an Asus Zenfone 2 that got bricked plus it doesn't charge anymore, pc doesn't even detect it, usb port is broken I think, nor enters in recovery mode. Lucky me, when it started having problems 2 years ago, I entered recovery mode and did a backup on an sd card from the RM menu. Now I found the backup files and I thought it would be nice to recover my old pictures. Shame is that I don't have the slightest idea on how to use these files.

These are the backup files. In the folder "abba" there are four more folders containing several 1KB files. Does anyone know if I can still recover something and how to do it? I thought maybe by using an Android Virtual Machine but I wouldn't know how to do it...

At the time I think my Asus mounted Nougat, don't know if it can be a useful information. Thank you in advance!

# Answer
TWRP allows backup for devices with no external MicroSD Card. Therefore TWRP does always exclude Internal Storage from backup. They recommend manually copy Internal Storage via USB-MTP (which makes sense after creating TWRP backup because it contains TWRP Backup folder too). If you know how to unpack/repack recovery.img you can add this fix (experimental) https://forum.xda-developers.com/showthread.php?t=3941108 this will allow you backup of Internal Storage from TWRP
> 2 votes

---
Tags: backup, recovery-mode, external-sd, data-recovery, 7.0-nougat
---


# Question
Title: "App not found" for only applications in folders and on SD card
I rebooted my Samsung Galaxy S7 Edge this morning, however, upon restart any applications that are on the SD card and in a folder get the message "App Not Found" when trying to launch. These apps also have the grey SD card icon.

Moving the app out into the root tray allows the application to launch. However, moving the app to internal storage doesn't.

Uninstalling and reinstalling an app doesn't help. Neither does clearing system cache.

Is there a fix for this? The workaround is to move all apps out of folders, but this means I can't organise them as well.

# Answer
Solution appeared to be :

* settings
* apps
* show system apps on menu
* Samsung experience home
* clear cache
* force stop
> 0 votes

# Answer
I did this. It didn't work. I then set about moving the apps I'd moved back to the internal memory starting with iPlayer. As soon as I had moved iPlayer the icons for the other apps I'd moved to the SD card regained their colour (they'd previously been greyed out) and started working...

This was on Galaxy Tab Active.
> 1 votes

# Answer
1) Try Restart. 2) Unmount sd card, then clicked on mount sd card. 3) Try Another Launcher
> 0 votes

---
Tags: samsung, sd-card, system-error, 8.0-oreo, samsung-galaxy-s-7-edge
---


# Question
Title: What does downloads mean in Google Play store app page?
When we open the app page on Google Play Store, it says 1k+ downloads. What does this mean? Does this mean current total installs or total installs in life of the app?

# Answer
> 1 votes
It's the total over the life time of an app. In 2017, Google Play Services was the first app to reach 5 billion downloads. The important point from the article is:

> If you're not familiar with how the Play Store works, it's important to note that Play Services hasn't actually been manually downloaded that many times. When someone logs into an Android device with their Google account, Google Play marks the pre-installed apps as downloads. So in reality, this means over five billion devices with Play Services installed were used at some point.

Whether an app was downloaded directly via Google Play or whether it was installed by a manufacturer, Google Play Store counts both occasions as downloads and adds them to the total.

With Google's announcement that there are 2.5 billions (excluding China and Amazon's FireOS) active devices running Android, the number of downloads shown on the app's Google Play page can be skewed if it comes already installed on the devices.

---
Tags: google-play-store
---


title: How to enable LED notifications on Pie

text:
# Question
Title: How to enable LED notifications on Pie
On Android Oreo there was a special location in settings that you had to go to in order to allow an app the turned on the LED to actually be able to control it. Now with Android Pie that setting is either gone or I am not correctly remembering where it was, because I can't find it.

How do I enable an app to use the LED in Pie?

# Answer
> 1 votes
There is a settings option called "Custom Restrictions". I had to search the settings (from the search bar) to find this, but it didn't indicate where it was in the menu structure. Under "While the screen is off" de-select the option that says to not blink. If you do not see this option (as I did not) then you do not have a notification LED on your phone (shocker, I know!) and that is the reason you can't get the LED notification working.

# Answer
> 0 votes
Sometimes the app you download will have the notification light feature turned off you have to go at settings then at notifications then select the app you want and enable the notification light

---
Tags: notification-led, 9.0-pie
---


# Question
Title: How to disable usage of background data of all apps?
Some networks charges high in cellular data...so disability of background data is great money saver.

# Answer
> 1 votes
I could not find a single setting to Disable or Restrict every app's background Data Usage, I can find setting to restrict All Background Data and one to Disable Data altogether, using only Wifi now.

# Answer
> 0 votes
> Step 1 Open Settings and tap Data usage.
>
> Step 2 Scroll down to view a list of your Android apps sorted by data usage (or tap Cellular Data usage to view them). Tap an app to check out detailed usage statistics. This is where you can restrict background data for individual apps.
>
> Step 3 Tap the app(s) you don’t want to connect to mobile data and select Restrict app background data.

Reference Link

# Answer
> 0 votes
You should see the data restriction if you're on Android Pie, if you want to set restrictions on earlier versions you can use apps like NetGuard to restrict data to apps.

---
Tags: mobile-data
---


# Question
Title: Is there a way to show OTP messages on screen without opening OTP messages?
I am having problem switching between apps when using banking apps or online transaction on android phone when they sends OTP and I need to enter the OTP code.

**Sometimes when I switch to inbox to read and remember the OTP code, When I move back to the browser page to enter the OTP, the page gets reloaded and either it sends OTP again or triggers invalid page as the page gets reloaded.**

I need some way to show the OTP code on screen as soon as the message arrives in inbox so I can see and enter the code without switching between apps. Can someone help please?

# Answer
Try Multi Clipboard and OTP Viewer. While this does Multi Copy or is a Clipboard manager, This also reads One time Passwords and show on a floating widget that actually resolves your issue. Since you want to use OTP codes without switching to inbox, this app shows the OTP message in a floating widget and the code floats on screen as soon message arrives in your inbox.

**Note:** I'm affiliated with the company CV Infotech which has developed this app.
> 2 votes

# Answer
Try FreeCharge app. It can detect OTP without opening messages. You can pay mobile bills, electricity bills, DTH and much more using this app.
> 0 votes

# Answer
You can try using third party SMS manager apps like SmartSMS

It claims to have OTP Copy on notification shade, Moreover I've used this app so I guess it will be useful to you as well
> 0 votes

---
Tags: sms
---


# Question
Title: Can a malicious application running in a container root the Android?
Can a malware root the Android when running in a container such as when running through VirtualXposed or Parallel space, or when a person is using the Guest user or any other secondary user in Android?

My device is not rooted so I can't check this on my own. If the answer is yes, how to ensure protection from such malwares that want to root your Android?

# Answer
> 0 votes
Guest Users cannot root the phone separately from the main user. If a phone is rooted it is rooted for all users. If your Recovery is not password protected anyone can easily flash Magisk and get root access on his Guest Accout. If the recovery is PW protected it will just take a few more minutes to flash the recovery again/a new one which won't have a password then. That's the big disadvantage of having an unlocked bootloader. The only way to prevent Guests from getting root access to your phone is to install MagiskManager and disactivate root access for Guest-Accounts. I don't know if this also work if the Manager is installed before rooting. If not you need to root your device first obviously.

Or just don't give your phone to someone who would root it to get access to your data or whatever lol

---
Tags: root-access, malware
---


title: How do I get a hacker out of my phone?

text:
# Question
Title: How do I get a hacker out of my phone?
The other day my phone number was added to my Google account, data was turned on and off. Different things have been happening. I have a LG V35 and it has an LG VPN section and when I check the log. It shows background scripts or whatever being run in my phone. I do not have a VPN. I tried resetting my phone to factory and it didn't work. Please someone help me get this person out of my phone. The other day it said it got one profile.

# Answer
Look through your installed app (in settings). Is there some new weird app you have never seen before and not installed yourself which is labeled as "System-App"? Yes? Your are screwed. Only way to get rid of it is to re-flash the whole ROM. Well you could also root your phone and use one of countless apps/modules to remove System-Apps. But God knows what the virus will do when it gets root access. I have seen this years ago on a Huawei Mate 1. The app was turning on WiFi and Data permanently to load ads and malware. Factory reset did nothing. Clean flash of a new ROM was the only way.
> 0 votes

---
Tags: security
---


title: Headphone icon won't go away

text:
# Question
Title: Headphone icon won't go away
A headphone icon popped up on my LG G3 phone yesterday. It won't let me hear phone calls if I call or receive them. It also won't let me play music. The only way I can hear anything is if I plug the headphones in.

I've tried cleaning out the headphone jack, making sure the hearing aid impairment was off, and I even reset my phone. Nothing has worked and I still have the problem.

What can I do to fix this?

# Answer
I simply insert a needle inside the audio jack to short-circuit it. It works and the headset icon disappeared.
> 1 votes

# Answer
I think the headphone jack is shorted, and it needs to be cleaned or replaced by a new one. Unfortunately, both need to disassemble the phone. Here is a short YouTube video for how to replace the jack.
> 0 votes

# Answer
This just happened to me as well. Took a Q-Tip with rubbing alcohol and cleaned it out but didn't work. Took an air duster and blew it up there and it's now gone.
> 0 votes

# Answer
This is a common problem on Redmi Note 4 (I have it too right now :D). Headphone jack is damaged and thinks there is a headphone plugged in permanently which results in android never playing sound over the speakers. For phone calls you can turn on the big speaker so atleast you still can hear callers. The only way to fix the issue is to completely remove the jack (and replace it).
> 0 votes

---
Tags: audio, notification-icons, headphones
---


# Question
Title: Need to recover android system for soft bricked Onda v919 4G
I have an Onda v919 4G that I messed with and broke. I changed a line in the /system/etc/parameters file. I wanted the system to use my SD card (256 Gb) as the primary storage device for my apps and data. That change caused my droid to refuse to boot up. If I could mount the file system and just edit that file things would be just fine. But no.......

I can't just mount the file system and edit the file. Now I have to burn the blood of a virgin or something so that I can fix this thing.

I tried using fastboot but apparently my tablet doesn't support flashing from fastboot which begs the question 'what the hell is fastboot for?' I've got no clue.

Can I mount the file system at all? I'm using an ubuntu 14 laptop as my primary work machine. Unfortunately I've looked everywhere on the net I can think. But I haven't found anything useful/understandable. Anyone able to teach a fool how to recover from his mess up? My tablet runs on an MTK8572 chip if that helps matters. An 'lsusb' command in terminal identifies my tablet as HTC (High Tech Computer Corp.) Dream / ADP1 / G1 / Magic / Tattoo. Again, I hope this is helpful.

Peace to you and yours.

# Answer
I am not familiar with the system/etc/parameters directory. What you have done is altered the system configurations that appear to be used at boot. You would have needed to install a custom recovery when you rooted your device. Fastboot is ,in essence ,the equivalent of that recovery except it is included in the Android SDK(Software Development Kit).Most custom recoveries also include a fastboot option. You will have to scour the web to find a version of the stock firmware for your tablet.

For future reference, be very careful when accessing or dealing with the system directory and especially the /etc directory as it contains configuration files for your Android system.
> 0 votes

# Answer
If you are modifying the system directory you have root. If you have root, the device came pre-rooted or you used a one click method or you have a custom recovery installed. If you have a custom recovery installed the approach is to boot to recovery and connect the device to pc.

* Open a terminal and run `adb shell mount /system`.
* Then run `adb pull /system/the/file/you/porked`.
* Correct/revert the changes you made.
* Then run `adb push the-file-you-unporked /system/wherever/it-goes`.
* Lastly, run `adb shell chmod 644 /system/wherever/the-filed-you-unporked-is/name-of-file`.

You may need to establish some udev rules for your device however. See this http://hackaday.com/2009/09/18/how-to-write-udev-rules/

You will also need to install android-tools-adb if you have not done so already. If they are not in your current known repository for Ubuntu, you will need to add the correct repos to etc/apt/sources.list or goto github or ubuntu source download page and get the source and compile it for your OS. You can also acquire the source by running `apt-get source android-tools` followed by `apt-get build-dep android-tools` to satisfy any build dependency issues. May the schwartz be with you.
> 0 votes

# Answer
When you changed the SD-card to your primary directory that made Android wanna boot from the SD-card because he thinks all of his files are there now. But ofc there are none of his files cuz they are all in /system on the internal storage. The only way to access the files is over adb (which probably isn't turned on if you always turn it off after finishing using it like everyone else who is concerned about his phone security) or a custom recovery.

Btw NEVER, NEVER tamper with major system files without having a backup/ knowing 200% what the effects are.
> 0 votes

---
Tags: recovery-mode, tablet, twrp, 4g
---


# Question
Title: Reasonably how much free space should one leave for best performance?
(Reasonably because freeing space brings diminishing returns, correct or no?)

# Background

I'm testing different SD card schedulers to get the best performance. I'm assuming that when I will have more free space and use the best governor for that situation the performance should be better than now with the best governor for now's situation.

# Question

I want to find out if I can somehow find out the best scheduler and read ahead combination without having to test every combination.

So is there some way to calculate/find this? If not then what is the best way?

# Answer
IMHO these governor settings are overrated. Of course it's nice to have such options, but it's confusing users more instead of helping them.

Just check your ROM and ask other users for their opinions. In AOKP for example you only need NOOP and Interactive and you should be good to go for anything.

You should save your time for more important things in Android. Just my advice, though.
> 0 votes

# Answer
Changing the governor has such a small effect and the default governor is mostly the best. The only thing you could do to improve performance is to overclock your phone which will come with heat issues though.

Depending on how many apps you have installed (and use regularly) and how much RAM you have, you should have 500-2000 MB of free storage to prevent apps from crashing and losing data (such as WhatsApp) or extreme lag. Low-end devices with little RAM tend to have bigger problems, and leaving them with less than 500 MB is a disaster.

Apps are using cache so that they don't have to load certain files over and over again on boot and use less RAM. If there is no place for cache, the app will crash or try using more RAM and crash then if there is none available.

You can use apps such as CCleaner to free space (I just used it again after decades and cleaned up 9GB (7GB thumbnails, 700MB app cache, 1,5GB useless downloads, mostly apps).

If you are low on RAM and memory, you need to clear the cache regularly or you will encounter lag and bad performance.
> 0 votes

---
Tags: internal-storage, external-sd, sd-card, storage, internal-sd
---


# Question
Title: I upgraded to a larger SD card and some apps can't see the transfered data
I haven't been able to find a way to get the new SD card to work like the old one does. My Call Recorder app (by Appliqato) is set to store saved calls on the SD Card. The call recording app cannot see and playback previously saved calls stored on the new 128 GB microSD Card, but can playback newly saved calls just fine. If I pop in the old 32GB microSD, playback is fine. In terms of directories and data, everything 'looks as it should'. Player.FM also is unable to playback downloaded podcasts on the new microSD Card.

The data for calls and podcasts is there - I can load it onto windows 7 and play the .mp3/.aac in winamp, but the apps in android can't find them. I can even manually select it on my phone, but can't access the 'notes' and playback features each app provides.

I've tried using xcopy as mentioned here. I tried plain old copy and paste in explorer (hidden and system files both visible). I tried cloning with EaseUS (I plan to try that again).

My phone is a Galaxy S5 with Android 6.0.1. The old microSD is a 32GB Samsung EVO, new microSD card is a 128GB Samsung EVO.

I'm hoping someone might have some advise or know of a solution.

Update: I tried other iterations of xcopy to no success. I tried EASEUS again to clone the 32GB SD to the 128GB SD. During the setup for cloning I used the edit option to expand the target drive partition to include the entire 119GB volume, hit proceed...then got an error, and now the 32GB microSD shows up as 'unallocated space' in Gparted, and in windows it says it 'needs to format the drive for it to be usable'. I triple checked I had the source and target right. It should not be this hard to transfer data...sigh. I'm asking a family member if there's a way to fix the 32GB microSD; I'll hope maybe it's just a corrupted Master Boot Record... I still have xopy copies of the 32GB I made earlier on my PC in case anyone has any ideas on how to take that data, transfer it to an SD Card, and get it to 'be seen' by the android apps mounted onto the phone.

Edit: 2.2.2020. Resolved this matter by using EaseUS Todo backupfree to clone the SDcard, then used gparted via Linux to expand the partition. Initially tried to expand the partition with EaseUS while cloning, but caused the SDcard to be unreadable. Father saved it using TestDisk and other Linux utilities.

# Answer
> 0 votes
Maybe the app does not only look for a directory (which always has the same name under android) but also for the specific SD card. Setbup the save directory again inside the app and reboot your phone.

---
Tags: applications, samsung, external-sd, sd-card, call-recording
---


# Question
Title: I have a LG xcharge that is stuck on the firmware update screen and my phone doesnt have a removable battery. what do i do?
My phone is stuck on the firmware update screen and my phone doesn't have a removable battery. What do I do?

# Answer
> 0 votes
Hold power button for 10+ seconds (for hard restart) or wait till the battery runs out.

---
Tags: lg
---


# Question
Title: Lost USB tethering on Samsung Galaxy Tab A after updating to Android 7.0
After an update from Android 6.0.1 to Android 7.0 on Samsung Galaxy Tab A (SM-T580, WiFi only), I've lost the USB tethering function.

I need an update to recover this function which is very important for me because I use this tablet only to connect to the remote control of a drone via USB tethering. Without this function, this tablet no longer serves me and the drone too.

# Answer
Check what type of connection it is using, take down the notification drawer and see if there is a "Recharge" notification or something like that.

If so, tap on it and choose the MTP option, then go in the tethering options, and activate it.

Done :)
> 0 votes

# Answer
If you enable Developer mode and go to Settings -\> {} Developer and tap enable USB Debugging, it allowed me to install an app via USB.

Maybe it will help you.
> 0 votes

---
Tags: 7.0-nougat, usb-tethering, samsung-galaxy-tab-a
---


# Question
Title: Oneplus One is not recognised at all by Windows 10
I've been having this problem for a long time, can't remember how much exactly. No matter what I've tried, I haven't managed to get my computer recognize my opo **(Cyanogen 13.0)**.

When I connect it absolutely nothing happens. The device manager doesn't flash (doesn't recognize a new device connected), so I cannot find/update/remove the drivers anyhow.

*Developer options* on my phone have a bunch of things but none seems relevant, apart from open/close Android debugging (adb) and select *USB Configuration* (Charging/MTP/PTP etc). I've tried several options, nothing seems to change.

I've also installed some Windows MTP drivers (see here) which were supposedly solving the issue caused by a Windows 10 update, but no luck (which could have been the issue, but can't be sure-I can't remember the last time I was able to browse my phone's memory).

Any ideas? It seems so strange to me that I am the only one with that issue. I know CM was abandoned and was thinking to change to another version, but I can't even move my files right now :(

# Answer
> 0 votes
I know it might sound dumb, but it was the cables' fault after all.

I had already tried two different (one of them was the original which worked fine until some time ago), but none of them worked so I figured something else was wrong. Until I came across a third one, which seems to be the only functional one....

Thanks anyway! and beware of your cables xD

# Answer
> 0 votes
When the mobile phone is connected to the computer, mobile phone down the status bar, click is connected to the USB debugging, and then click on the file transfer, I hope you can understand, because these words from Baidu Translate, I am a Chinese developer

# Answer
> 0 votes
Also you can try to use third-party Oppo PC suite: Mobogenie, Moborobo, MOBILedit and others; try to Google it and you will find the links to download the software. These utilities can help you to connect your Oppo device to computer.

# Answer
> 0 votes
usb wire is the only problem...a normal usb cables has 4 small wires in it for audio video or any file transfer and charging your device....so of what i could think of in this case there could be 2 problems in your usb cable :-

1. some usb cables are only made for charging your device and hence only have two wires inside them and so there are no wires for transfer of files and hence not recognised by device or computer

2.this one could be rare but possibly the two wires responsible for the transfer of files are some broken somewhere in between and hence behave as a wire which is only used for charging and hence ur device and computer cannot recognize it.

so the only solution is to try changing the usb cable..and it should work

thank you

---
Tags: cyanogenmod, windows, usb-drivers, oneplus-one
---


# Question
Title: How to stop ads for turning on Google Assistant?
I'm not sure what's changed but the past week or two I've been getting notification ads for Google assistant every day, very annoying. They take the format of 'why not call a friend?' 'Want a joke? ' - Turn assistant on! That kind of utterly valueless nonsense.

I believe these come from the Google app, but here's the thing:

1. Google App notifications are OFF
2. I cannot remove or disable the Google App

How do I stop these daily ads I didn't consent to? I've hunted and there is nothing in the settings anywhere allowing this.

# Answer
> 0 votes
Turns out turning off auto-update on the Play Store has fixed it. No idea why or how, very unexpected - but it's done it!

I'd be interested to hear if anyone else with this issue can resolve it the same way.

# Answer
> 0 votes
*Note: The question isn't super specific on that in contrary to its title, so I'll assume that you have **Assistant turned off** or **don't want it**. I don't think there would be ads otherwise*.

---

OP's answer stated that turning off auto-update on the Play Store fixed his issue, which seems very random and probably unrelated to me. There's a sure way to disable these notifications though, and it's starting to be a known trick for people who don't want Google Assistant at all :

By **changing your device's language to a less known regional variant of it**, you'll make Google think that Assistant isn't available for you and your country, thus **preventing it to be offered to you anymore** by those "ads" or by long home button press.

For example, if you live in the U.S, and speak English, your device's primary language probably is ***"English (United States)"***. Changing it to ***"English (U.S Virgin Islands)"*** will make any mentions of Google Assistant disappear from your phone. In my case, my device's language is French (France), so I changed it to French (Swiss) to get rid of Assistant.

Keep in mind: Assistant may someday be available to all English countries so this solution isn't completely future-proof.

# Answer
> 0 votes
For me, the problem was not the annoying notifications — I just turned off Google Assistant. (In the Google app: Settings \> Google Assistant \> Assistant \> Phone) The problem was that it keeps begging you to turn it back on. But anyway, the method of getting rid of Google is the same:

Uninstalling all updates for the Google app by clicking "uninstall" in the Play Store (rolling back to the version that comes with the system) and turning off auto-updates for it in Google Play seems to help.

But it sure has its problems. Sooner or later, the newest version of the Google app will ship with all phones, and rolling back won't help.

And then, you will just have to search how to uninstall apps with ADB/Fastboot and just uninstall the Google app altogether, if you're comfortable doing that. There is a utility for Xiaomi phones called "Xiaomi ADB/Fastboot Tools". It can remove any app and requires no root, but you will need to enable USB debugging. Even if it doesn't work for non-Xiaomi phones straight away, I'm pretty sure it can be made to work with them, or you can just use the command line to do the same things.

I am sure that removing Google isn't harmful to your device in any way. If you're addicted to Google search, you can just use Chrome's search bar widget. And it seems that Google's two-factor authentication for your account is a system-integrated thingie that doesn't depend on the Google app at all. But nevertheless, if you're going to remove the Google app from your phone, I DO NOT guarantee that you won't brick your phone and/or two-factor authentication by doing so, and you should do your own research. It's pretty unlikely that you'll brick it, though.

---
Tags: notifications, google-assistant
---


# Question
Title: how to backup my internal memory data from soft bricked phone
**TL;DR**
**How can i unlock the bootloader with SP Flash Tool?**
(scroll down below)

iam using lenovo k8 note, Suddenly my mobile restarted and stucked with logo screen, and some times i got error like dll image fail. for that i have searched in google and flashed cache.img file. Now phones is booting only in fastboot mode or stock recovery. so now i need to backup my data from phone.please guide me, how to get those data from internal memory.

Note: i have not rooted my phone.
Note: i have backup of full rom using sp flashtool which is encrypted. As i tried below answers which were not worked. So i given to service center which they are saying it is hardware issue. Now i want to get my data which is encrpted. is there any alternate solution to solve my issue. Please follow this link once which followed entirely
https://chat.stackexchange.com/transcript/95995/2019/7/10

ROM is Android Oreo build number OMB27.43-70 and OEM unlocking is not enabled in Developer Settings.

**What i have tried so far**

* I have created my own scatter file with WwR MTK 2.51.
* did a full ROM dump with SP Flash Tool (59 gb size), the partition starts from SYS0 to SYS34. i have splitted it in all of its partitions and saved to harddisk.

```
preloader,pgpt,recovery,para,expdb,frp,nvcfg,nvdata,metadata,protect1,protect2,seccffg,oemkeystore,proinfo,md1img,md1dsp,md1arm7,md3img,scp1,scp2,nvram,lk,lk2,boot,logo,tee1,tee2,efuse,keystore,system,cache,userdata,otp,flashinfo,sgpt

```
* checked the recovery.img (from readback) with AIK it does unpack successful, so i am sure the scatter file is pointing to the right area of memory.
* I read about Lenovo MTK Secure Boot and found a Download Agent for the Lenovo K8 Plus, which seems to work for my Lenovo K8 Note.

I tried all of these Download Agents, only the first will work

```
MTK_AllInOne_DA.bin
DA_PL.bin
DA_PL_CRYPTO20.bin
DA_SWSEC.bin
DA_SWSEC_CRYPTO20.bin

```
* I have flashed back the stock recovery.img from SP Flash Tool, it was sucessful. so after that i tried to install twrp but got

```
ERROR: STATUS_SEC_IMGHDR_TYPE_MISMATCH(0xC0020029)
[HINT]:
verified boot is enabled.
please download signed image (recovery-verified.img) or disable verified boot.

```
* I followed this Tutorial and signed the twrp.img with some random key. Trying to flash twrp-3.3.1-0-manning-signed.img from SP Flash Tool gives the same error. got some information from hovatek

```
Message: BROM ERROR: STATUS_SEC_IMGHDR_TYPE_MISMATCH (0xC0020029)
Meaning: You are trying to flash modified files to a device that only accepts signed or verified images
Solution:
Download and flash the official firmware (usually have -verified or -signed prefixes)

```

**I gave up and decided to unlock the bootloader, but this doesn't work either**
**(because of OEM lock)**

```
fastboot oem unlock
< waiting for any device >
(bootloader) Start unlock flow
FAILED (remote: 'Unlock operation is not allowed')
fastboot: error: Command failed

```

Therefore i tried to flash `boot.img` `recovery.img` and `system.img` from here

* i have set option --\> downloaded --\> selected tick for --\> usb-checksum and storage-checksum (i tried with and without checksum)
* first time flashing stucked at recovery.img which is showing 100%, after that got error, then showing

```
ERROR: STATUS_UNKNOWN_STORAGE_TYPE(0xc0040009) and
Message: BROM ERROR: STATUS_DOWNLOAD_EXCEPTION (0xC0050003)
Meaning: There was an interruption during writing to one or more partitions
Solution:
- Repeat flashing with the latest version of SP Flash Tool
- Try using a different Port, USB cord and PC
- Try flashing one partition at a time

```
* taking a look into sp ft logs which shows

```
[00668152] [00:38:26:564109] [Tid0x00000be0] [info] data_mux receive timeout. #(data_mux.cpp, line:71) #(device_log_source.cpp, line:63)
[00668153] [00:38:26:611019] [Tid0x00000be0] [info] Rx DA log timeout, continue. #(device_log_source.cpp, line:62)

```

i gave up now because flashing system.img stopped at 3%. this may caused by eMMC is probably weared out at this particular area, or the timeout is caused by a weak connection. i already tried different usb cables.

the goal is still to decrypt my data which is afaik only possible on the device itself. I have a backup of the encrypted partition so i can restore it to the phone after unlocking/factory reset, if neccessary. (at the moment all my data is still on the phone, i haven't performed a successful factory reset, yet)

```
fastboot oem unlock
fastboot flash userdata C:\adb\userdata.img
fastboot flash metadata C:\adb\metadata.img
fastboot boot C:\adb\twrp-3.3.1-0-manning.img

```

please note chip-off method is not a solution, i already have a full ROM dump but it is encrypted.

**TL;DR**
**The question is now, how can i unlock the bootloader with SP Flash Tool?**
(as alecxs suggested it may possible to flash seccfg.bin + lk.bin from another Lenovo K8 Note, but i need help on digging more into this)

# Answer
1) install Preloader drivers

2) find scatter file (usually included in stock rom)
if you can not find it copy this into txt file

```
############################################################################################################
#
#  General Setting
#
############################################################################################################
- general: MTK_PLATFORM_CFG
  info:
    - config_version: V1.1.2
      platform: MT6797
      project: manning
      storage: EMMC
      boot_channel: MSDC_0
      block_size: 0x20000
############################################################################################################
#
#  Layout Setting
#
############################################################################################################
- partition_index: SYS2
  partition_name: recovery
  file_name: recovery.img
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x8000
  physical_start_addr: 0x8000
  partition_size: 0x1000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  is_upgradable: true
  empty_boot_needed: false
  reserve: 0x00

```

3) download SP Flash Tool and readback original recovery from phone for
Region *EMMC\_USER* with
*start\_addr* and
*partition\_size* from scatter file
\- click *Read Back*
\- remove battery
\- connect USB cable

4) flash TWRP to recovery with SP Flash Tool
\- uncheck all checkboxes
\- double click on *recovery* (Location field) and select *twrp-3.3.1-0-manning.img*
\- select *"Download only"*
\- click on *Download*
\- remove battery
\- connect USB cable

5) reboot into TWRP recovery
\- insert battery
\- press and hold Volume Up
\- disconnect USB cable
\- reconnect USB cable
\- release Volume Up when this screen appears
\- confirm with Volume Down

6) make a TWRP backup of Data, then open phone from PC and copy Internal Storage
> 1 votes

---
Tags: backup
---


# Question
Title: Encrypted and factory reset - Do I need to decrypt device?
We can remove data permanently from android flash memory, which is encrypted, after a factory reset.

After doing this, do we need to decrypt the device for using it again or factory reset the device?

# Answer
> 1 votes
It is in the default factory reset state ( like a new device ). You can't decrypt the device even if you wish to as the encryption password (generated from a combination of user lock screen PIN and encryption algorithm ) is **lost**

From Android's Factory Reset Does Not Wipe Your Data: Here's The Solution

> Encrypting does not completely delete the files, but the factory reset process gets rid of the encryption key. As a result, the device has **no way it can decrypt the files** and, therefore, makes data recovery extremely difficult.

# Answer
> 1 votes
When the device is encrypted, the decryption key is only known by the current OS.

If you know the pin (for that screen you get before the animation starts), the device can be decrypted and get booted up successfully.

If you don't remember that, then you will need to reset the device. This resetting is similar to a factory reset.

Factory reset will **not** retain your personal data and apps in the internal storage.

Your external (micro) SD card, if present, can be removed before doing the reset *only if it is configured as a portable storage in Android*.

---
Tags: factory-reset, encryption
---


title: Running flash files on Android 8

text:
# Question
Title: Running flash files on Android 8
I have been running flash files and sites on Android 6 very smoothly using Dolphin video or dolphin browser. After upgrading into Android 8, none of these apps are running well: Dolphin browser is unable to install from google play or from APK, and Dolphin video is unable to work porperly.

Does anyone have any solution for flash files?

# Answer
> 0 votes
It's a 2 step workaround solution : Go to the play store & install this version of Puffin browser

Open this website. Browse for your local file, upload it & let it play.

---
Tags: adobe-flash
---


title: How to downgrade Google Play Services?

text:
# Question
Title: How to downgrade Google Play Services?
I want to test different versions of Google Play Services and I am wondering if it is possible to downgrade the Google Play Services version of a device?

# Answer
Go to settings\>apps\>all and find Google Play Services. Tap it, then tap 'delete from use' or whatever it is. Then tap on the 'delete updates' After you've installed your version of the services, remember to tap the button 'Take to use'.

Should work :)
> 2 votes

# Answer
If you are content to try each version at a separate boot and the above doesn't fulfill you're requirement, you'll have to go the full uninstall and install route.

If you truly want to compare, you'll have some problems getting more than one version present at the same time without source code access. I assume you're already in Developer mode. For more guidance, I suggest you look at others who are trying something similar and the links provided. Here's one example: How to keep two versions of an app installed?
> 0 votes

# Answer
Found a solution for those unable to fix google play services in android (e.g. China ROMs) ~ due to bootloader problems etc:

1. Reboot your phone to recovery mode using power-volume up
2. Use power button to select factory reset, clear data and cache, confirm.
3. Reboot to factory reset and without cloud restore reinstall google play services (e.g. in Redmi phones install with china ROM google play store)
4. Install all google parts such as normal google PlayStore. Then install apps in google as needed
5. Re backup the phone on cloud and you're set.
> 0 votes

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


# Question
Title: How to SSH into Android which is a hotspot?
I am using Wi-Fi hotspot on Android. Can I SSH into it from my laptop which is connected to hotspot? How would I do this?

# Answer
> 4 votes
You need to run an SSH server on your Android phone. There are apps available, but simple solution is to go for Termux. Install app, then install packages `openssh` and `termux-auth`. Set password and start server:

```
~$ pkg install openssh termux-auth
~$ passwd
~$ sshd

```

If you want to use key authentication instead of password, create key pair on client with `ssh-keygen` and copy the contents of `~/.ssh/id_rsa.pub` to phone in `~/.ssh/authorized_keys` (where Termux's `$HOME` is `/data/data/com.termux/files/home`), and restart server:

```
~$ pkill sshd
~$ sshd

```

Now on client:

```
~$ ssh <Phone_IP> -p 8022

```

No username is required as Termux is the only user which can be logged into. If you want default port (`22`) or a username or multiple user setup, visit the link given below.

**RELATED:**

---
Tags: networking, wifi-hotspot, ssh, remote-access
---


# Question
Title: How to save a password in Google Chrome for Android?
I just don't understand how to save a **password** in android. Please help me.

# Answer
1. Open Chrome, go to the Settings. Click on Passwords.
2. Enable "Save passwords".
3. Go to the site you intend to save the password. Enter your credentials.
4. Click Ok (Login, or whatever button the site uses). A prompt will appear asking if you want to save the password. Click Save. The password is now saved within Chrome.
5. Go to the Settings, click Passwords. Your credentials for sites will appear under the Passwords section. Clicking on a site will allow to modify the credentials.
> 1 votes

---
Tags: google
---


# Question
Title: Double tap to zoom on Pixel 3a chrome browser?
I've just switched phones from iPhone to a Pixel 3a and one of the things I'm missing right now is double double tap to zoom in Chrome. I haven't found anything suggesting the feature doesn't exist on Android. I've found a few questions asking how to disable it but I don't see those options myself so I can't just enable it.

When I double click a block of text instead of zooming to fit the screen it just selects the word I tapped. Instead I have to tweak the zoom level with pinch-to-zoom until it is sized properly.

Am I missing some setting to enable this? Is there another way to zoom to fit? Are there any alternatives to pinch-to-zoom?

# Answer
> 1 votes
Since Chrome 32, Google started removing the 300ms to allow the double tap to zoom in or out for mobile sites.

> For many years, mobile browsers applied a 300-350ms delay between **touchend** and **click** while they waited to see if this was going to be a double-tap or not, since double-tap was a gesture to zoom into text.
>
> Ever since the first release of Chrome for Android, this delay was removed if pinch-zoom was also disabled. However, pinch zoom is an important accessibility feature. As of Chrome 32 (back in 2014) this **delay is gone** for **mobile-optimized sites**, without **removing pinch-zooming**! Firefox and IE/Edge did the same shortly afterwards, and in March 2016 a similar fix landed in iOS 9.3.

According to Google:

> **Is losing double-tap-to-zoom an accessibility concern?**
>
> No. Pinch zoom continues to work, and OS features cater for users who find this gesture difficult. On Android, magnification gestures takes care of it. Tools like this even work outside the browser.

However, if you request desktop sites, you will still be able to zoom in/out off pages using the double tab. For mobile sites, you should enable Magnification gestures and use the triple-tap to zoom.

---
Tags: chrome-for-android, device-migration, gestures
---


# Question
Title: Force android 7.0 into roaming for better connection
I do a daily commute to work from country A to B. My mobile is from a phone company in country B, and travelling into B, the switch between country providers is handled rather gracefully. The problem comes when I travel back. It seems to me that since the phone knows it will start to roam, it tries to stay on country Bs network as long as possible, resulting in inferior network, or no network for quite some time.

Today I manually forced a switch of network (to a country As network), and voila, I am having good connection again at a place where I would usually be without mobile network.

I have a contract that covers roaming, so I am not worried about costs. I would like to make this thing more convenient - it currently involves manual intervention, waiting until all available networks are scanned, chosing one... How could this be done on a Samsung Galaxy S7, Android 7.0, which is currently not rooted?

# Answer
> 1 votes
Try toggling airplane mode, which turns the mobile modem on/off and forces a reconnect. If that helps, maybe one of the "connection improver" apps around could help, which do this automatically.

---
Tags: 7.0-nougat, mobile-network, roaming
---


# Question
Title: How to make a complete factory reset, without anyone being able to retrieve my data?
I will have a few Android phones that I will have to let go.

I would like to make a proper clean wipe of the data, without no one being able to retrieve them, and do a factory reset.

I have read about the Schneier Method, encrypting the device before doing a factory reset, doing both, etc.

Since I am not an Android/adb guru, I would like to know if some of you would have some idea on how to achieve this with certainty.

I know "certainty" is a big word when it comes to proper data erasure on flash memory but still.

I have found some answers here and somewhere else, saying that encrypting and doing a factory reset on your Android device is enough, but I could not find a reliable source.

Just a few information that could be useful:

* I'm running Linux as my OS and, therefore, I'm not looking for a Windows-based solution
* My devices are non-rooted and (almost) identical (Samsung A510F + 1 A510FD)

# Answer
## HOW DELETED DATA IS RECOVERED?

Data (un)deletion strongly depends on how a storage media (`HDD`, `SSD`, `eMMC` etc.), filesystem (`NTFS`, `FAT32`, `ext4` etc.) and OS save and delete files.

* File carving / signature search / content-aware recovery identifies standard signatures values in the headers of deleted files (as `file` command and antivirus programs do to identify known viruses hiding in files) e.g. JPEG files start with `0xffd8` and end with `0xffd9`. The data in between blocks is assumed to be the file (considering the file is contiguous; no fragmentation). Other checks may also be performed on header like a checksum, the file’s length, or date/time etc. But not all file types have a standard header/footer signature, so determining where the file starts/ends is difficult. Metadata (including filenames) isn't recovered with this method.

This approach works for deleted files, filesystems or partitions. `Photorec`, `scalpel`, `foremost` and popular Android app `DiskDigger` (in dig deeper mode) work on this approach.
* Recovering as much as possible information about deleted data blocks from within filesystem e.g. from `directory entries`, `journal`, `inodes` etc. Filesystem is basically the catalog which holds *file name vs. file location* information and journal is a kind of backup information. So recovery of filenames (and other metadata) is more probable with `journaling` filesystems.

This approach works only if filesystem and partition are intact, or are recoverable using first method. `DiskDigger` (in dig deep mode) and `extundelete` work on this approach.

---

## WHAT MAKES RECOVERY OF DELETED DATA DIFFICULT / IMPOSSIBLE?

* A file/directory is simply deleted e.g. from some File Explorer app or with `rm` from commadline.
* A file is renamed to some random string, then deleted.
* Filesystem on the device is not journaling, so no information can be collected from `journal`. `Ext4`, the commonly used filesystem on Android, is `journaling`.
* Filesystem on the device is a Flash Filesystem e.g. `F2FS`.

In this case you are left with minimum tools (e.g. no debugfs to list deleted `inodes` and to lookup corresponding data blocks from `journal`) and also data is always written to new blocks as a wear-leveling strategy. `Garbage Collection` makes recovery less probable from filesystem because Logical Block Addresses (LBAs) of data blocks get changed. So only `carving method` is applicable, and it works.
* Filesystem or partition is deleted, making it harder to search `directory structures` and `journal` from within filesystem. Android's stock recovery deletes filesystem during a Factory Reset. See this answer.
* Whole disk is erased including Partition Table, boundaries of partitions and filesystems are vanished. This isn't possible on Android devices because there are partitions required to boot the device.
* File was fragmented (not saved contiguously as a single piece), particularly if no information can be recovered from filesystem.

Fragmentation is higher on Windows as compared to Linux/Android; `Ext4` is self de-fragmenting because of *Delayed Allocation* and *reserved-blocks-percentage* etc. But usually large files on an older filesystem are always fragmented.
* You overwrite file/filesystem/partition with other file/filesystem/partition, or zeros, or random data (`shredding`).

If you have root access, throw a stream of `/dev/urandom` on block device to overwrite all data including filesystem. Now forget about its recovery, though it doesn't nullify the possibility of data recovery directly from flash storage (raw NAND), by chipping it off the board (who will do this except in forensic lab!). Official tool from SD organization: SD Memory Card Formatter also overwrites with `zeros` in full format mode. Please note that repeated overwriting wastes precious E/P cycles of flash memory.
* Filesystem is `TRIMmed` or `SECURE TRIMmed`, or `ERASEd` or `SECURE ERASEd`.

These are special commands for different types of flash storage devices. `TRIM` is issued by the filesystem to the firmware of flash device, requesting the actual physical erasure of data blocks (`LBAs`) which have been deleted from the filesystem. Filesystems mounted with `discard` option always send `FITRIM ioctl` whenever a file is deleted. Android does a scheduled TRIM, or you can do manually with `fstrim` command. See this answer.
* Partition is `BLKDISCARDed` or `BLKSECDISCARDed`.

blkdiscard issues TRIM command for whole block device i.e. partition or disk (roughly equivalent to issuing TRIM on a newly created filesystem).
`TRIM` saves filesystem's `superblocks`/`inode` table and drive's partition table, `BLKDISCARD` saves nothing on block device.

Android's stock recovery tries to do at least one of the both during a Factory Reset. See this answer.
Something similar happens with bootloader unlock and `fastboot erase`, though it depends on implementation inside bootloader but that's what Google expects from OEM/SoC vendors.
* Deleted file is encrypted or file doesn't have an identifiable unique signature (at start or end), so no carving is possible.

Like an encrypted archive or file that mostly file explorers can create. Or a file with some uncommon format, not known to recovery programs.
* Filesystem or block device is encrypted so the data becomes unrecognizable (like `FBE`/`FDE` on Android). Mostly new devices come with `forceencrypt` or `fileencryption` flags set in `fstab`, so `vold` encrypts them on first usage. If not decryptable (e.g. formatted), data is impossible to be recovered on such devices.
* Flash storage device is `self-encrypting`, common for `SSDs` but not for `eMMCs`.
* Flash storage device is erased with `SECURITY_ERASE` or `ENHANCED_SECURITY_ERASE` ATA commands, common for `SSDs` but not for `eMMCs`.
* Storage device isn't accessible e.g. on embedded system if bootloader is erased, device is bricked and no more bootable. There is no protocol to communicate with eMMC, even if the data is there, except through something very lower level like `JTAG` or a chip-off.

Also see: Bootloader/BIOS, flashing ROM and correlated risks. Why Android devices are more brickable than PCs?
* Storage media is physically damaged; mechanically or electrically.

Large size storage solutions like `NAS` or the more complicated `SAN` that makes use of `LUNs` with advanced protocols likes `iSCSI`, and data integrity solutions like `RAID` also complicate the data recovery process. However single disks like on home PCs or the flash memory like on Android phones are rather simple cases.

---

So while a Factory Reset with stock recovery suffices in most cases, you can combine any of the above described steps, whichever applicable to your device, to make sure your data is not retrievable.

**RELATED:**
> 9 votes

---
Tags: factory-reset, data-recovery, delete, privacy
---


# Question
Title: Can user data be recovered after formatting and flashing stock ROM?
I am exchanging my old Android L phone for a new one. I have formatted the whole phone including bootloader and flashed its stock ROM using SP Flash Tool twice. I hope my data has been overwritten. Are there any chances that my data may still be recovered?

# Answer
It can be recovered using complex sector scanning, however if you used Encryption, your Data partition may still have information on it, but it will still be encrypted.

The main source for recovering Data other than using Root Access to do a full sector scan of the Data / Cache Partitions, is to undelete data on the External SD Card..

You can do a sector scan of your storage without Root Access also, depending on your Android Version.

You should Overwrite the Data partition, not Delete the data and then Flash it again...

Deleting the Data Partition and the Flashing it again, doesn't actually Overwrite the old user data... Formatting it is not Overwriting it Either...

You need to do a Full format of every sector to Overwrite it...

Try writing over the internal storage with another file, repeatedly copy and paste a file until your device can not fit anything else ... Then format it ...
> 0 votes

# Answer
> I have formatted the whole phone including bootloader

Bootloader can't be overwritten, your device will be bricked. I think you meant `boot` partition which contains kernel. But that doesn't contain personal data you've been saving. That's saved on `userdata` partition which is mounted at `/data` and one of its directory `/data/media/0` is exposed as `/sdcard` through emulation. So the major concern is to securely erase `/data` partition.

> Are there any chances that my data may still be recovered?

* Please note that on most newer device `/data` partition is encrypted by default (`FBE`/`FDE` enforced using `forceencrypt` or `contents_encryption_mode` flags in `fstab`). In this case your actual data is saved to `/dev/block/dm-0` which is a logical volume mapped by device-mapper's `crypt` target over `userdata` partition. It means that data available on `userdata` block device is encrypted and not identifiable.
* Secondly Android issues a scheduled/continuous `TRIM` command to flash storage (eMMC), which makes sure the deleted data is physically Erased from cells (which is a requirement before re-writing it; this is where Flash Media differs from HDDs).
* Thirdly when you do a Factory Reset with stock recovery, `BLKDISCARD` or `BLKSECDISCARD` is issued before creating filesystem (formatting), which again makes sure the whole block device (`userdata`) is Erased. It means that all the Logical Block Addresses (LBAs) which belong to this partition will now return zeros if read.

If all of the three conditions meet on your device, be ensured that your data won't be recoverable.

***Note that:***

* Overwriting data may not necessarily overwrite it, particularly on `F2FS`, which always writes data to new blocks as a part of it's wear-leveling strategy.
* Simply formatting (creating filesystem) neither erases data nor overwrites it. It just recreates data structures (e.g. superblocks, file tables, directories, inode/block bitmaps, journals etc.). Formatting should be accompanied by `TRIM` or `BLKDISCARD`.
* There is still a possibility that data is not Erased from physical cells (PBAs) even after issuing `TRIM` or `BLKDISCARD`, and it can possibly be recovered e.g. with chip-off forensics. There are a number of factors involved, including `Over-Provisioning` space, `Wear-Leveling` and `Garbage Collection` capabilities of the `eMMC` on your device.

For more details: How to make a complete factory reset, without anyone being able to retrieve my data?
> 1 votes

---
Tags: rom-flashing, 5.1-lollipop, data-recovery, stock-rom, formatting
---


# Question
Title: Data deleted after encryption - recoverable?
My device (Android 8.0) is encrypted with the default encryption (no startup password).
As far as a I know, when I have data on my phone and factory-reset the phone, the data is unrecoverable, since a new key for the encryption is being created and the old one is getting deleted. Am I correct?

Now, what happens when I delete data on my phone and then reset the phone - can the deleted data be recovered?

# Answer
Answer is too late, but may be helpful for future visitors.

> when I have data on my phone and factory-reset the phone, the data is unrecoverable, since a new key for the encryption is being created and the old one is getting deleted. Am I correct?

You are right.

> what happens when I delete data on my phone and then reset the phone - can the deleted data be recovered?

It makes no difference. If luckily the data you deleted is available on the filesystem and data blocks aren't still overwritten, but the problem is it's still encrypted at the lower block level (`userdata`) which we can't decrypt after factory reset.

Additionally, during factory reset with stock recovery on newer Android devices, filesystem creation is preceded by `BLKDISCARD` or `BLKSECDISCARD`, which issues `TRIM` command to whole block device (`userdata`) and should ***Erase*** it completely (that's where flash storage differs from traditional HDDs).

Therefore the data is no way recoverable.

For details see: How to make a complete factory reset, without anyone being able to retrieve my data?
> 1 votes

---
Tags: factory-reset, data-recovery, encryption, delete
---


# Question
Title: File recovery on bootloader unlocked Pixel without flashing
I have a first generation Google Pixel the bootloader of which is unlocked and is running stock Pie. I need to recover deleted files on it because a move operation got effed up by ES File Explorer with confusing dialogs. Performing file recovery requires root, but I don't want to *install* a custom ROM. Is there instead a way I can run one in RAM that is delivered to the device over USB?

# Answer
Answer is too late but may be helpful for future visitors.

First of all, there are a number of factors which make data recovery impossible, particularly if you keep on using the device. See this answer for more details.

Secondly since you have an unlcked bootloader (but don't want to go with custom ROM), you can flash a custom recovery like TWRP (or boot directly from `fastboot`) and from there dump your `/data` partition to a PC using simply `dd` command or USB Mass Storage (UMS). Then you can apply any data recovery techniques on the partition image e.g. recovering from `journal` or by `carving` through sectors.

For detailed steps: How to recover a deleted file from /data partition?
> 0 votes

---
Tags: data-recovery, file-system, 9.0-pie, delete, google-pixel
---


# Question
Title: Hacker's Keyboard is ignored now, it tells me I have to unlock the phone?
Somehow my phone is not showing me my Hacker's Keyboard anymore. It's saying that it could send all the info I type to a 3rd party (which is technically correct, I would imagine...)

It used to work, I installed a new app. and after about a month it managed to prevent the keyboard from showing up. I went to the settings and turned the keyboard back on (ah! it looks like it was turned off on me...) That step told me that it would work only if I were to unlock my phone and reboot.

So how do I do that and is that specific to just this app or would it allow (unlock) any app. from doing what it wants? Is Android that lame?

# Answer
> 0 votes
Well! I'm not sure why, but somehow my *Default Keyboard* setup was back to the Samsung keyboard (the default). So I guess there was a new version which was updated and after updating, the *Default keyboard* switch was back to the default.

Editing that one setting and the Hacker's Keyboard was back in business.

The selection of the *Default Keyboard* on my phone is available from "Settings" \> "General Management" \> "Language and Input"

---
Tags: keyboard
---


# Question
Title: Samsung Note8 wifi issue (connectivity.samsung.com.cn)
I captured this screen when using WiFi with web authentication First it goes to the connectivity.Samsung.com.cn

Then to the wifi login screen This is weird, does my wifi info exposing?

\*I bought this phone in Hong Kong.

# Answer
> 0 votes
The domain `samsung.com.cn` is just an alias of `samsung.com/cn`. It is the Samsung domain for China. The fact that you bought the phone when you were in Hong Kong validates it.

`connectivity.samsung.com.cn` is a subdomain that your phone checks when you're connected to WiFi or mobile data to know if it is able to "talk" to the mothership (in this case Samsung servers). Type the URL in your browser and you will get `Ok` if the link is established.

So when you are connected, your phone establishes a link with Samsung servers (just as it does with Google if you have Play services installed). Your phone has not been exposed to hackers but is calling home possibly to check if there are updates from Samsung for your phone.

---
Tags: wi-fi, samsung, samsung-galaxy-note-8
---


# Question
Title: How to make F-Droid hide data about incompatible packages?
In 2019 with F-Droid *v1.22* running on an ancient DROID Pro about 95% of the much newer software is incompatible and grayed out. When browsing by category, these grayed out apps consume most of the screen. On this hardware F-Droid would be much more usable if there were some setting that would just hide all those grayed out apps.

Can F-Droid hide data about incompatible packages?

Failing that, is there some Linux-based app that can browse an F-Droid repository and filter out incompatible cruft?

---

DROID Pro version number data: System version: *4.7.3.XT610.Verizon.en.US*, Android version: *2.3.4*

# Answer
Usually, this should be what the corresponding toggle on the Option page is for: If you untick "include incompatible apps", they should be hidden (and if you tick it, they are shown but grayed out – just as you describe).

As this doesn't work for you, you might be plagued by a long-standing bug. Unfortunately, there's nothing we at Android.SE can do about it but suggesting you to chime in there and rise awareness, so it might finally get fixed. As the issue is still open, it seems so is the bug – though updating to a more recent version is worth trying (v1.2.2 is not quite up-to-date; ATM v1.6 should be the current stable) if your Android version permits.
> 1 votes

---
Tags: linux, f-droid, motorola-droid-pro
---


title: Disable USB charging

text:
# Question
Title: Disable USB charging
For some reasons not related to the battery life, I need to disable the battery charging when a USB host is connected to my phone (a rooted Nexus 4). Taking a look around on the internet (link1, link2), it looks like I should modify a system file. I have found a series of interesting files located in `/sys/class/power_supply/battery` and `/sys/class/power_supply/usb`, that could be the right ones to be modified in order to achieve the usb charging disabling (e.g. `/sys/class/power_supply/usb/present 0/1`).

Has anyone tried something like that (control the usb charging via software and modify such system files)? Which is the best way to modify those system files? Should I use the adb shell or another tool?

I tried the "root explore" app in order to modify those files, however when I modified a file (after changing its permissions), it was automatically kept back to its original value.

# Answer
> 8 votes
I just tried and found that you need to modify a file:
`sys/class/power_supply/usb/device/charge`

its default content is '1' which means 'enable charging' you need to set it to '0' to 'disable charging'

```
$ su

$ echo 0 > /sys/class/power_supply/usb/device/charge

```

I tested on Nexus 4 and it's working successfully.

# Answer
> 4 votes
```
adb shell dumpsys battery set ac 0; dumpsys battery set usb 0;

```

# Answer
> 2 votes
I'm not sure if it will work with your particular phone's charger, but often with cables that transfer both power and data, there are separate cords inside the cable for power, and data.

I'm not especially interested in tearing up my phone charger to confirm my idea, but you could try stripping part of the cable, identifying and cutting the power cords inside the cable, and wrapping it back up with electric tape.

There is likely a *way* easier means of doing this, but I'm not aware of it.

# Answer
> 1 votes
I'm pretty sure it's not something you can change in software since the would phone charge when plugged into a computers USB port. You'd probably need to get your hands dirty and short a connection or two on the phone itself.

# Answer
> 1 votes
You can use adb shell dumpsys battery set usb 0; // for disabling USB charging and

adb shell dumpsys battery set usb 1; // for enabling USB charging

# Answer
> 1 votes
I asked my colleague, who is an expert in battery driver. On our Nut Pro 2, whose kernel version is 4.4.21, the node for battery charging on/off is: `/sys/class/power_supply/battery/input_suspend`.

# Answer
> 1 votes
you can always use a shottky diode between pin 1 with the blocking side towards the accessory. that way the pin one gets a 5v signal so communication works, but there will be NO current flowing from the accesory to your phone. or if you want it the other way just place the diode in the different direction.

# Answer
> 0 votes
You can resolve the issue in hardware by modifying the pins on the micro-USB connector side. One obvious way is to not connect Pin#1 (VBUS) and the other way is to ground Pin#4 (ID) to pretend your host (PC) is an OTG device. If you do that, you **have to** disconnect Pin#1 (VBUS) otherwise one, if not both, of your devices will get burned.

As for the command line solution, you just have to find the right (device dependent) `/sys/...` files to play with. But as already mentioned, you need write access and root permissions to change these, and whatever you do it will only last until next reboot or change of USB peripheral.

# Answer
> 0 votes
Similar to the op, my Host who is connected via USB is also connected as a dummy battery. Can't simply use USB cable and no battery, android won't boot, nor does usb provide enough current.

You cannot fix this in software as Android will use Vbus during boot. Unless you also want to hack bootloader code.

The charging circuit needs to be modified to avoid usb charging vs battery voltage loop.

I confirmed on Galaxy S3 it requires 5V bus to enable data (d+ d-) it's part of USB standard.

OTG could solve the problem electrically but then the host client rules are not correct. Also this phone is able to OTG and charge (i use y-cable + gamepad)

Edit reference: https://forum.xda-developers.com/showthread.php?t=1863303

# Answer
> -1 votes
No, It is not possible on devices which are not yet rooted. It uses Settings.System with ADB\_ENABLED, but ADB\_ENABLED is a Secure-System-Setting which can not be changed by a application.

Yes, It can be done on rooted phone.

There is need to add an permission android.permission.WRITE\_SECURE\_SETTINGS. I know you would be asking how do I do that: Here is the link for a similiar app:https://play.google.com/store/apps/details?id=com.jim2&hl=en

---
Tags: usb, charging, file-system, system
---


# Question
Title: How to restore the Whatsapp Messenger icon? Not the app, just the icon
Since quite some time now, the Whatsapp Messenger icon is not the proper icon, but the Android green trashcan icon. The app in itself is working properly, it just looks funny on the home screen.

Reinstalling is an obvious solution, but I would loose my chat history. Wouldn't I?

CAT B15Q, Android 4.4.2 (I know, ancient).

# Answer
After many automatic updates, one of the most recent ones spontaneously restored the app icon!

And after a few more updates, the proper icon was once again replaced by the Android green trashcan icon.
> 0 votes

# Answer
On my phone, you can bin the faulty WhatsApp icon and then reselect it from the installed apps list with the right icon.
> 0 votes

---
Tags: whatsapp-messenger
---


title: Stop using an app during work hours

text:
# Question
Title: Stop using an app during work hours
I need to avoid using a personal messaging application in my android phone during work time. One way is to uninstall the app before work starts, and install again after the work time. Or use some app blockers ? Or... what else ?

# Answer
> 0 votes
Depends on your Android version. But go to Settings --\>Apps--\> Choose App--\>Notifications--\>And then chose option like Calls, Messages and so on. I think that this is better than app blocker, becaose most app blockers will completly block apps and messages and this methond will only give you no notification and it takes 15 seconds.

---
Tags: applications, installation
---


# Question
Title: Is there a way to always fire up my express VPN app whenever I open an incognito tab in chrome?
Is there a way to always fire up my express VPN app whenever I open an incognito tab in chrome?

Basically something like a batch file or shell script maybe that can trigger this?

# Answer
When you open incognito tabs in chrome, there is a notification that appears with the message "Close all incognito tabs". You can use it to automate the process of launching your app.

Using Automate:

1. In the Interface section, select the Notification posted block. Click on it, select chrome as the package and set Chrome as the title on the Input arguments section. In the output arguments section, set x (or any name).
2. In the General section, select the Expression true? block. Click on it and set "Close all incognito tabs" as the formula.
3. In the Apps section, select App start. Click on it, select your app in the package section.
4. Link the block as seen on the image below.
5. Save the macro. Grant Automate the Notification Access permission. Click Start.

When you open an incognito tab in Chrome, when a Notification with the title Chrome appears, if the notification has "Close all incognito tabs", the app selected in step 3 will start.

**Note:** I don't have your app installed. So I stopped my demonstration at step 3. You could play with other blocks for instance to click at some part of the screen to click a button, minimize the app, go back to chrome after opening it, etc.
> 3 votes

---
Tags: chrome-for-android, vpn, openvpn
---