# Question
Title: Refund Google Play apps but haven't got my money back
I had purchased a game on Google Play but later I realized that it was too bad, so I requested a refund. I've received a refund email from Google but I haven't received my money back. Is that a problem?

When I opened the Payment History page, it writes *Canceled* next to that game. I purchased that game using my phone bill.

# Answer
**No**

It's not a problem. Sometimes it takes time to refund. It's happened to me earlier.

Nothing to worry about since you got your confirmation mail as also transaction is cancelled

If you wish to be doubly sure, you can call or chat with Google help from the Google Play Settings → `Help and feedback`

**Edit:** Just stumbled on this from Google Play Refund help. If the status shows *cancelled* it means

> If the status is "Cancelled," the order was never charged and so you will not see a credit on your form of payment.

There is also a detailed table for refund timelines. Summary below :

* Credit or debit card - 3 to 5 business days
* Direct carrier billing (prepaid / pay-as-you-go) - 1 to 30 business days
* Direct carrier billing (postpaid / contract) - 1 to 2 monthly statements
* Google Play balance (gift card or credit balance or Google wallet - one business day
* Online Banking - 1 to 10 business days
* PayPal - 3 to 5 business days
> 8 votes

---
Tags: google-play-store, paid-apps
---


title: Audio Equalizer for YouTube Music app

text:
# Question
Title: Audio Equalizer for YouTube Music app
I want to adjust music played by YouTube Music app (don't mix up with Google Play Music). How can I do it?

Built-in MusicFX equalizer doesn't affect YouTube Music. I also tried several external apps, which claim that they are OS wide, and in fact they're able to adjust sounds from standard Music app and Play Music app. But none of them work for YouTube Music app. They only can change volume while it's playing.

If you suggest app-based solutions, please, don't suggest apps that you haven't tried yourselves so they worked for you. If there's a solution with features shipping with Android itself, all the better.

# Answer
> 1 votes
I use Viper4Android and it works for me on YouTube (Have been using it since ICS era). It requires root though.

Installation method various depending on your Android version. If your device is supported by Magisk, I recommend you to use the Magisk Manager and install the Viper4Android module through it. Official way is to install using the app Official XDA thread (You'll probably need to set Selinux mode to permissive to let it install drivers which I personally don't recommend, so go for the Magisk way)

---
Tags: audio, youtube, equalizer
---


# Question
Title: My phone is making weird music when I am not touching it
My Moto G play just stared to do weird stuff, it started to play a really creepy music that I didn't even have on my phone. Google play music an Spotify (which are the two apps that I use for music) are not open. I never download a hacked app and my phone have not been rooted And I never been on suspicious websites. Can I solve the problem without reseting all the phone?

# Answer
> 0 votes
Put your phone in Safe Mode and see if you are still hearing that music. If it stops, that means a user installed app is running in background. Now, depending on the Android version you are running, you can check for running apps in Settings\> apps\> Developer Settings\> Running Apps and try to stop all the apps from running and see which one was playing the music.

(If you don't see developer settings goto Settings\> About and tap 7 times on the build number)

---
Tags: rooting, motorola-moto-g, music, antivirus
---


# Question
Title: What system app handles the screenshots in Lollipop?
When I take a screenshot using Power button + Volume Down, does anyone know which system app deals with taking that screenshot? I need it for a setup I'm doing on my phone (Xperia) but I can't figure it out which it is

# Answer
> 3 votes
SystemUI handles the global screenshot.

SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java

SystemUI/src/com/android/systemui/screenshot/TakeScreenshotService.java

---
Tags: applications, sony-xperia, screenshots
---


# Question
Title: Trying to find out what app is being used with the “sharing” notification as pictured
Sharing notification-top left of phone Which is that app?

# Answer
Open the notification tray and the application's name should be written there for each notification. (Android 7.0 Nougat and above)

---

Here are two examples: As you can see, the app name "Termux" is visible next to the application's notification icon.

---

Here's another example, where you can see the app name "Hangouts" is written next the application's notification icon.

None of this has anything to do with rooting your device, it's built in to stock Android.
> 0 votes

---
Tags: applications, notifications
---


# Question
Title: KitKat - How to identify the REAL size of apps (app + datas + ...) to be able to install other ones
I had an iPhone for 4 years and I now have a Samsung Galaxy S5 running KitKat 4.4.2.
I've started the migration from the one to the other downloading my prefered apps.
I've just downloaded 40 little standard apps, half of the work, and my S5 already tells me that it cannot donwload any more apps from the Playstore, not enough space on the phone. What ??? But... I still have gigs of space... and I already moved out all possible apps from internal memory.

I've seen that I could bypass this by rooting the phone, but I can't deal with that. That's not a solution.

So I've started to search which are tha apps that take the more space.

On the iPhone, when I wanted to know the exact size that an app, I could see this onto the settings or into iTunes, giving the size of the app + its datas.

On KitKat, I don't see this information anywhere. As an example, I have "Maps with Me" installed, from which I have donwloaded around 1 gig of maps. It should be the one and largest app I have. But the best I can see about its space see is into the Application settings panel the following informations :

**Total :** 60,41 Mo
**Application :** 5,11 Mo
**Stock on phone app :** 55,09 Mo
**Datas :** 116 Ko
**Stock on phone datas :** 96,00 Ko
**Cache :** 64,00 Ko

Where are my gig of maps ? How can I sort my apps by their real space usage ?
And more, how can I install more than 40 littles apps on such a phone ? That seems incredible... There must be a standard way of doing that ?

**EDIT 1**

Clean Master tells me that "Maps With Me" is 656 Mb large. Well, OK, but isn't the default marvelous system able to do that ? Because I don't want such apps on my phone, just to do what the basic OS should do and bore me with other functionalities I don't want.

Clean Master also tells me that I have 64 apps occupying 2,5 Gb.
And that My free system space is 120,32 Mb.
After a clean with this app...
I only have my phone since 1 week, and I've nearly done nothing yet with it.

FYI, I've made a factory reset at the first use, and deleted any possible unwanted apps.

# Answer
I think you are finding trouble to sort apps according to their size,name,date etc with the stock App manager. So I recommend you to install third-party app like Clean Master which does all the things you need. It is a small application so hopefully it won't give any *no space* error.
> 1 votes

# Answer
Well there are several things you can do to solve this problem (or, at least, to understand WHERE it is).
The simplest I can think of are:
1) Go to Settings -\> Storage and see how the space is being used. Chances are you have one or more apps that use to download a lot of contents so you should find that the major part of your storage is occupied by "Miscellaneous" files. In this case you just have to tap on the related voice and you'll see a list of app and their data;
2) Reboot your device into recovery mode and clear cache;
3) Long press on Play Store -\> Settings and clear its cache;

The last two ideas come from the fact that sometime Play Store and similar apps (Settings app too) give problems messages only because the cache is full of data (most of which is merely made up by useless things)...
Just try and tell me if one of these three things works ;)
> 0 votes

# Answer
For the specific case of WhatsApp, I found that there is a directory under which all its media, etc., are stored. I then used Total Commander to obtain the total size of that directory. I expect it to represent very well the total storage size related to WhatsApp (though I have no references to back this up). See related question How to compute all space taken up by an app and its associated files.

For a generic app, if

1. it "encapsulates" all its related files (except perhaps for a little amount of information related to system/configuration) under a given directory, and
2. one can identify such directory,

you could use Total Commander or a similar app, as I did for WhatsApp.

If the app spreads files of significant size across the filesystem, I wouldn't know...
> 0 votes

---
Tags: applications, 4.4-kitkat, settings, installation, insufficient-memory
---


# Question
Title: How does one use apps that place a menu on the system bar when the buttons are not in the screen?
I'm trying to use an app that places the hamburger menu on the system bar (with Home, Back, and Recent apps buttons). On devices that *have* a system bar (i.e., these buttons are on the screen), the menu is easily accessible. But now I'm trying to use the app on a device that has physical Home, Back, and Recent apps buttons. The system bar isn't shown, so the menu is apparently inaccessible (where it would be is off the screen). Is there a way to still access this menu when the system bar isn't shown?

# Answer
I am not aware of Android solutions to this but here is a work around . This app Menu Button , it doesn't require root and creates a virtual menu bar to manipulate the settings for your app by creating `Home` , `Back` and `Recents`

OP has confirmed that it worked for them
> 2 votes

# Answer
On many phones, long pressing on the back or recent apps button will bring up the menu.

If that doesn't work, here's a workaround: (this only works on Samsung phones)

Go to settings -\> accessibility -\> Dexterity and interaction -\> Assistant menu, turn it on. There will now be a floating blue circle on your screen. Open the desired app, press on the circle, and press "more options" to should bring up the menu.
> 1 votes

---
Tags: user-interface, menu
---


# Question
Title: I can't share a paid app with a family member
I'm using my brothers google account so i download an app he bought, but even though i'm on the account and synced it and everything, it still says i need to buy it. idk what's wrong, could location be the problem? he's abroad sorry if this is a dumb question .\_.

# Answer
> 1 votes
If you have multiple Google Accounts on your device, you have to change the active account in the Play Store to the second, third, etc, one and make it active.

Open the Play Store app, tap the 3 line menu, and you should see the active account on the left and the "unselected" account on the right, tap the icon on the right and go to the app, you should not be able to install it.

---
Tags: paid-apps
---


# Question
Title: How to switch a Google account without resetting a phone?
On my Android LG Optimus Dynamic phone I originally entered an incorrect email when setting up the Google account to use. I want to switch emails now, but when I add the correct account and then try to delete the first account, it says it is required by some applications, and that I can only delete it by factory resetting the phone. However, that message does not come up when I try to delete the second account, and it removes fine.

How do I delete that original account so that I only have the new one left without factory resetting my phone? (I don't want to lose all of my apps and my contacts).

# Answer
Uninstall all Google applications on your phone, such as Google+, Youtube, Google Maps, Chrome, Voice Search etc. Then install the Google Installer app, and install all google applications. After installation, the Google App or Google Account Manager will prompt for account details. You can login with your required Google account. After that, the device will Sync the account to all other Google apps.
> 0 votes

# Answer
You didn't mention the version of Android you're using, but you did mention your device is rooted, so this app: Erazzer may help:

> Please try FREE version of this program before buying it.
>
> This program will be very useful if you want to change the main Google account on your android device WITHOUT RESETTING it to the defaults preferences. Some features:
>
> * supported on Android 2.x
> * deleting Google accounts (2 methods)
> * accounts backup/restore
> * quick reboot/shutdown
> * widget for quick operations
>
> Warning! The function "reboot in recovery mode" can DELETE ALL DATA on some devices, it is disabled by defaults. Don't use it unless necessary or you do not know what it is

At this time, the webpage says: "This app is currently not active on Google Play". I don't know what that means, or if it will change.
> 0 votes

# Answer
Also on Samsung Galaxy A3 (2017) you can add another google account and remove the other one from the Cloud and accounts --\> Accounts --\> Google then 'Remove account' from top right menu. It worked for me.
> 0 votes

---
Tags: gmail, google-account, lg-optimus-l3
---


# Question
Title: How does having an unlocked bootloader make it easier to bruteforce the passcode on an encrypted system?
I've been told that if my bootloader is unlocked then it is easy for someone to install a new boot image and just brute force my passcode.

What is it about having the bootloader locked that makes it difficult to bruteforce the passcode? Is the encryption key derivation unique for each operating system image? What prevents someone from just hooking up the encrypted partition to another bootloader and bruteforcing it through there. What exactly is happening when the bootloader is locked and how does this protect against bruteforce attacks?

# Answer
> 1 votes
Of course you could break the encryption key outside of the device, however for doing so you need to access the central encryption header of the encrypted partition.

A locked system usually does not allow to read arbitrary data from flash. Hence you can't read/extract the required information unless you can run own code or attack disassemble the device and try to access the flash on hardware level.

If you can't install software to the device and don't attack on hardware level the only remaining way way is to use the password prompt UI provided by the operating system. O course attacking the key via UI is very slow compared to a GPU assisted brute-force attack.

---
Tags: encryption, bootloader
---


# Question
Title: VLC for Android: Where does it stores playlist files?
I want to edit playlist files of VLC in Android as we can do in windows (.xspf files) I have searched in ***Android/data/org.videolan.vlc*** path but did't find anywhere.

# Answer
The playlists and other media informations are stored in this database file:

```
/data/data/org.videolan.vlc/app_db/vlc_media.db

```

The easiest method so far is to modify the playlists from inside the app by adding/removing media files from/to them.

However, if you have root access to your phone/tablet, an sqlite editor/reader (you can get one here), basic knowledge of SQL and a bit of patience you can modify the playlists by doing the following:

Navigate to `/data/data/org.videolan.vlc/app_db` and copy `vlc_media.db` to a folder you have full permission.

Open the copied file mentioned above with the SQL editor app. In the 'Tables' tab, you will see all the tables among them Playlist, Media, PlaylistMediaRelation, AudioTrack and VideoTrack.

In the 'Sql Editor' tab, insert the code below to get a list of all playlists and their files, then click on 'Run':

```
SELECT id_playlist, name, filename
FROM Playlist
Inner Join playlistmediarelation ON playlist_id=id_playlist
Inner Join Media ON id_media=media_id
WHERE name = 'your_playlist_name'
ORDER BY id_playlist

```

To check your media files with their IDs:

```
SELECT id_media, filename
FROM Media

```

From these information, you can modify your playlist(s):

* To insert/append media to playlist:

```
INSERT INTO PlaylistMediaRelation(media_id,playlist_id)
VALUES(520,1)

```
* To delete multiples media files:

```
DELETE FROM PlaylistMediaRelation
WHERE media_id IN (456, 520) AND playlist_id=2

```
* To update a media:

```
UPDATE PlaylistMediaRelation
SET media_id=321
WHERE media_id=476 AND playlist_id=7

```

Don't forget to copy the file back to the original folder.

**Note:** The numbers for `id` in the code are just examples.
> 4 votes

---
Tags: vlc
---


# Question
Title: Locating a wallpaper that comes activated by default after ROM flashing
So I have a v5.1 ROM that has this one wallpaper that automatically comes activated by default when the ROM is flashed that I wish to locate and "remove/replace" - yes I do not want to salvage the wallpaper which I am aware could be done with root and root browsing. I have unpacked the system.img and look it up in the 'media/images' directory where I have found image files on other Lollipop system.img with no success. I have also tried to bring out all JPG and PNG files that exist in all ROM folder directories and the said image file was still not amongst them. This brings me to think that it may have an extension I am not yet familiar of which one of you may be already. A pointer will be greatly appreciated.

# Answer
Default wallpaper is found in `/system/framework/framework-res.apk` and `/system/priv-app/SystemUI/SystemUI.apk`. Incase of the lock screen paper

To remove it copy the .apk to sdcard and rename the apk to .zip so that it is extractable by archivers like RAR. Extract it's contents and find it at

```
/res/drawable-hdpi-v4

```

If your phone's resolution is 480x800

```
/res/drawable-xhdpi-v4

```

If your phone's resolution is 720x1280

```
/res/drawable-xxhdpi-v4

```

If your phone's resolution is 1280x2440

They are renamed as:

```
default-wallpaper.png
keyguard-wallpaper.png

```

Their file extension can vary to jpg mostly in many devices. And as added by Andy, it can be found at `/res/drawable-nodpi` resolution of device is not considered. It always persists under all resolutions

For example mine is found here

And it's properties are

This goes down to `tv-dpi` or `xxxhdpi` for android tv. Replace it with your favourite but ensure to keep resolution of the paper for good results, zip it again and rename it back to apk. Replace it with the system one.

**Note:** *For* `framework-res.apk` *I recommend you to use TWRP file manager to replace it to system original apk because framework is always actively used on a boot device and will crash the system if you try to replace the apk using root on a boot device.*
> 1 votes

---
Tags: 5.0-lollipop, wallpaper
---


# Question
Title: Where are game apps' storage files saved? I would like to delete them
I installed The Trail on my Moto E 4. I uninstalled it. But, I thought I might try the game again. So, I reinstalled it. But, the game started up from where I left off the first time. So, how do I get rid of the previous game data files? It seemed like the second installation took a lot less time.

I am new to these larger games. I have tried a few of the smaller ones like Float Plane. (Are files for that game still on my phone, too?)

I do have a File Manager app.

# Answer
You can go to **Settings \> Apps \> The Trail \> Storage** then click **Clear Data** and **Clear Cache**

If The Trail requires you to log into an account or Google Play Games than either delete the account data, or create a new account.
> 0 votes

# Answer
Game save data is found at:

```
/sdcard/Android/data/[package.name.of.app]

```

And it's running resources collection, familiar as obb file is at

```
/sdcard/Android/obb/[package.name.of.app]

```

Incase obb is not visible and you're sure it is not yet deleted, you have root, and a root file manager find it at

```
/data/media/obb/[package.name.of.app]

```

Delete it and you'll be free from that. If it's undeletable. Delete it when device is off with TWRP recovery File Manager. Usually this results from invalid permissions set to the folder or file in the folder though it's less unlikely if you have not been running root in your device

That's all you need
> 0 votes

---
Tags: storage
---


# Question
Title: How to move app's data to PC? I cannot find it
My Android device is low on storage capacity and some services do not work correctly, i.e. camera. About device: (Samsung Galaxy S5 mini, SM-G800F, Android Version 6.0.1) .

Now, I want to find out, where the data is and remove it from the device to the computer. (I removed the external SD card, before taking the screenshots below).

I open the "My Files" Application, which looks like this:

However, the "Storage Map" Application does not reveal, where the GB are stored, as it only has 1.47 GB:

When I copy the whole "Phone" folder with the USB cable to my computer, I even only get 0.99 GB.

I've given up, this has been going on for half a year now, but I cannot identify, where the data is. Does anyone have experience with this?

How can I get the space back? I read about rooting the device, but it sounds sketchy at best, as people have reported various issues: e.g. this post. I just want to be able to use the device. I was thinking copying everything to the computer, resetting the device and then copy it back would solve the problems, but this does not seem to be a viable solution. What should I do?

# Answer
> 0 votes
I'll give you a good list of things to take care about if you want to free some space. But before that. You need to be aware of this:

1. System the phone is running claims storage too up to 2.7GB for big ROMs at `/system`
2. Dalvik-Cache which the Dalvik Virtual Machine uses to prepare system applications classes files claim your internal storage at `/data/dalvik-cache`

These two will take up to 4GB maximum by default. That's why, for example, on a 16GB phone you might only access 12GB as the user end memory.

Back to creating space on a hogged device, things to note:

1. Photo Thumbnails hidden data at `/sdcard/.thumbnails` or `/sdcard/DCIM/.thumbnails` You need to enable viewing of hidden files to see this. It contains previews of photos as loaded by gallery app
2. Package installers .apk files systemwide. They can be shared ones or downloaded ones except the ones downloaded by Google Play since it deletes the installers immediately after successful install. Search for .apk and delete the packages that you already have installed
3. Temporary application files like Es File Explorer's recycle content at `/sdcard/.estrongs` and uninstalled vault applications like Gallery Lock apps which dump data at `/sdcard/data` or any other folder
4. Application updates also can use a lot of space if you regularly update them. Uninstall the updates of apps you don't like using a lot or which updates don't make any significance for you. You can disable automatic updates at Play Store
5. Some phones don't delete application data after app uninstall. Take care of files at `/sdcard/data` and `/sdcard/obb` delete the folders of package names that you currently don't have installed apps for them on the device from the folders
6. Social messenger folders like `sdcard/WhatsApp` and `/sdcard/pictures/Telegram` etc also need to be taken note of

Those are the basic things that hog space on your device. Advanced issues for root users include:

* activity logging files at sdcard like MTK logs
* dalvik cache of deleted system apps or renamed system apks
* application data of directly over installed apps at data

I think after addressing all these. Things will be a bit better for you

---
Tags: internal-storage, file-management
---


title: Android system update stuck for every

text:
# Question
Title: Android system update stuck for every
My phone is Pixel I. I got a notification for the latest Android 8.0.0. The screen says it is updating, and it has been two weeks...looks like it is not going to finish forever.

There's no indication whether it is ongoing, or is stuck. No button to stop/restart.

Any idea how to fix this?

# Answer
It possibly has encountered an error updating. Stoping it will render your device unusable which I'm sure is your only option right now. If you had unlocked your bootloader you can do this: https://www.androidcentral.com/how-manually-upgrade-pixel-nexus
> 1 votes

---
Tags: updates, ota-update, google-pixel
---


# Question
Title: Why does the youtube offline videos get expired
Weird behavior of offline videos. I had downloaded a lot videos from office for offline viewing at home. But when i went home they were showing **expired** and when i clicked on them it showed **connect to internet to update**. So i went online but even then it was showing connect to update, but after long hours of searching over the internet **i couldn't find any solutions**. So i first **removed them from offline and re-downloaded them**.

That was okay, but the same thing happened today hence i am frustrated. My questions are like this: 1)Why are they getting expired 2)Solution for the above question.

Screenshot:

Screenshot - (click to enlarge)

# Answer
Apparently YouTube videos downloaded for offline viewing get expired after a certain amount of time. I haven't heard anything official about though.

The downloaded videos are stored in the internal storage but they are saved as .exo file format which only the YouTube app can open (you can't play them with any other media player app)

The best advice I can give you is to use a YouTube downloader like *Tube mate* to download the videos.
> 5 votes

# Answer
It seems that YouTube Offline feature is expected to work that way, in specific regions/countries.

In **India**, those offline videos are not removed at all(unless YOU remove them or uninstall updates of YouTube app or if you connect the device to internet even once during the 48-hour window, the YouTube app will be able to verify the status and will refresh the 48-hour deadline.)

Read more at: Here is the link which confirm this.

But in some specific regions/countries videos are removed after 48-hr expiry time.

Below is the relevant quote from article in http://www.engadget.com/

> Anything you save will be accessible for 48 hours in the offline section on the left-hand sliding menu.

Check this link for more details:

Hence, it is not a bug or issue but the Business model of YouTube.

You may or may not agree with it but that is the present situation.
> 3 votes

# Answer
Just change the date of your device and disconnec it frm internet . Change date to the one when downloaded
> 0 votes

# Answer
Here I Cameroon it is 29 days. But I've got to connect only to a wifi network to get it refreshed. Clearing cache never cause the videos to expired. Rather what I realize is that during download if you forcestop YouTube app or you have a shut down, you tube won't care whether you were downloading a 4GB video and you were at 99%..... Trust me.. You may have to start all over again.... That's how it works with me
> 0 votes

# Answer
Offline videos expires when you clear the *cache* of YouTube app.
If you dont clear, then all videos will not expire
> -2 votes

---
Tags: video, youtube, offline
---


# Question
Title: System default camera app not showing up
I am not able to find the system default camera app icon in menu on my GiONEE P5L handset (Android version 5.1). But the app is still on the phone and it's working as well. Able to take photos and videos. I want to show the icon in app menu. Someone please help me.

# Answer
Open Google search and type "open camera" then it will open
> -1 votes

---
Tags: camera, app-icons
---


# Question
Title: How do I set my phone to require the storage decrypt password after restarting?
When an encrypted Android phone is started, this is what happens (to my best knowledge):

* Boot phone
* Decrypt storage, which requires PIN or password
* Start up Android
* Homescreen appears
* (You may have to enter SIM card PIN code, but let's ignore this here)
* Phone works, which requires PIN or password to unlock home screen

So password or PIN are required twice. Let's call these PIN1 and PIN2. On phone1, I have to enter PIN1 and PIN2. On phone2 I only have to enter PIN2.

How can I configure phone2 to have to enter PIN1 as well?

# Answer
After encrypting phone from Settings, Security Head to Lockscreen, Screen lock, set the password afresh and check Require password or pattern on start up.  And then you're automatically asked for it on power on. Take note that accessibility turning on disables this setting
> 1 votes

---
Tags: encryption, password
---


# Question
Title: What's the best way to turn an Android device into Linux server?
I have an Android device with a broken screen and I'd like to turn it into a dedicated Linux server. Now I'm reading articles found by googling but I'm still not sure what is the best way to do this. One way I've found so far is using Linux Deploy after rooting my phone. However, I'm still not sure it is the best and valid way since I have a little knowledge on Android and Linux.

I have listed below what I want.

* A dedicated Linux server so it doesn't need to be run alongside Android. (I don't worry about its performance but I want to fully utilize the device's performance.)
* A server which can be accessed via SSH clients such as PuTTY.
* A full featured Linux server on which I can run Python and MySQL. (I hope it can be a replacement for my Google Cloud service.)

Can somebody give me a guide for this?

# Answer
Since Android IS Linux you can use the existing Android configured by your carrier/manufacturer to to run Linux applications. The other approach is to replace the entire OS on the device and this is heavily dependent on the device. Not because compatibility with the CPU or even drivers is a big issue but because carriers lock down features of the device and the boot loader process is extremely convoluted on android devices as well as the need for a image or "rom" to install the distribution as well as a way to flash it to the device all of which are things that are specific to the device and may be locked by the carrier.

You can use an app called Linux Deploy to install a chrooted Debian distribution. But this will use the Linux kernel provided by the Android OS itself. https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy
> 3 votes

# Answer
I believe you will be unable to get the G2 to do what you want - As its a relatively niche phone, with locked (albeit probably hackable bootloader) there won't be a standard Linux distro for the phone - and rolling your own would be inordinately difficult.
> 1 votes

---
Tags: linux, ssh
---


title: Just bought Galaxy Note 8 but

text:
# Question
Title: Just bought Galaxy Note 8 but
When I got the phone for the first time and started it up, it showed the recovery mode and I selected reboot system. The phone had 0 battery. I've seen lots of unboxings and the phone starts up normally. Is there any explanation?

# Answer
> 1 votes
My *guess* \- it's a refurbished device

* OEM's typically ship devices at about 40% charge or little more as that is the ideal charge level for storage (from the OEM to your hands it can take months ). After refurbishment, this was not done and the already low charge dropped to near zero
* During refurbishment, previous owners data is wiped out (factory reset) and possibly in your case it was done through the recovery options and carelessly not booted back to normal

To confirm , try using Phone Info -Samsung which has an option to check whether your device is refurbished (I haven't owned any Samsung device for a while, so I don't know if it works on your model or not)

---
Tags: samsung-galaxy-note-8
---


# Question
Title: How can I diagnose what is using my 3g connection in small packets
My GSM carrier rounds all used data up to 100KB. Which means that if some app is sending/receiving 500 bytes, I get charged for 100KB.

Lately I observed that I go through several hundred megabytes per day.

Data usage in phone shows that I used ~ 400MB, while carrier charged me for over 2GB of data.

In detailed billing I see literally thousands of short connections (multiple per minute, 24 hours a day), each using 100KB - which means that actual data transfer is much lower.

Carrier helpdesk said that they can't tell me what I'm using the data for. Phone shows real data transfer, which in my case is useless.

What can I do to find out what application/process is sending lots of small packets of data (or receives)?

If it helps with anything, I'm using Motorola Moto G2 (only 1 SIM has data transfer enabled), and it's running Android 5.0.2.

While debugging the problem, I disabled Google Backup Services from using 3G (only works over Wifi now), and an hour ago I disabled it altogether. But given that it was disabled over 3G, I don't think it's the culprit.

# Answer
> 0 votes
To diagnose the issue you could try a third-party network monitoring tool - Network Connections

> Powerful tool that displays and monitors (tracks) all inbound and outbound connection from and to your Android device.

Other features bundles in the app:

> * Monitors all internet connections from and to your Android device
> * Displays notification when hidden apps are connecting to remote servers
> * Displays detailed IP information for each connection - IP address, reverse resolving (PTR), AS number, Abuse RBL data, administrative information, etc.
> * Gets detailed info about each app that connects to remote servers and network connections used by it - permissions granted to each captured package and all IP addresses used by it.

---
Tags: data-connection, mobile-data, data-monitoring
---


# Question
Title: Accidentally set radio to USA band on Moto G4+, no way to revert it back
I have Moto G4+ and I was playing around with `*#*#4636#*#*` and accidentally set the radio band to USA Band. Now there's no way of changing it back, so now I can't even connect to a network, let alone use data.

I've searched for this issue and it appears that there were other people with the problem, but all of them didn't have answers. The only possible answer was to flash the ROM again, but there was no confirmation of it having worked.

And anyway my phone isn't rooted, and I don't want to root, since it is new, as well as the fact that it's not easy for the Moto G4+.

# Answer
I guess, you have three options here:

1. Bring the phone to service center if your warranty is active. This is the most harmless way.
2. Flash the stock radio or complete stock image.
3. Hard reset the phone with ##786# code. However, you need MSL (master security lock) which you should obtain from seller/carrier, which makes this way a bit cumbersome. More on this here.
> 0 votes

# Answer
Just flash the Moto G4 QCN file using QPST Tool and it will be ok. Neither your warranty will be void as you have to change your baseband as your older baseband has by default take USA band, so it won't be possible to rectify it without changing its baseband by flashing the proper QCN file of Moto G4.

Remember, if your phone is in Nougat, then you have to manually downgrade it to Marshmallow and then again upgrade with OTA. The process is a bit tricky as QCN will change your IMEI number and you have to write your original IMEI with a hex editor in the QCN file which you have saved, and you have to reflash it to restore the original IMEI and SIM functionality.
> -1 votes

---
Tags: cellular-radio, motorola-moto-g-4g, baseband
---


# Question
Title: What is an alternate way to Switch Off mobile without use of Power Button?
> Device : MMX A89
> OS : ICS 4.0.4

What is an alternate way to Switch Off mobile without use of Power Button? Can we Switch Off from OS itself? Is there any setting available? Or Does it require to install any further app?

# Answer
There are some apps who have this feature, Like switch off, reboot and etc.

One of them is Notification Toggler , This app isnt particularly for switch off and reboot stuff, but you can do that also. :)

EDIT::

I think you have to root your device to use reboot and shutdown , You can't do it without Root unless applications are signed with the System Firmware Key. And playstore applications aren't that kind of applications that are signed with that.

EDIT 2:

To root your Device , Check out these links,

Link 1

Link 2

Link 3
> 5 votes

# Answer
There are few methods which you help you in restarting if your Android device power button is not working:

Have a luck trying this Option If your Android device is OFF

1) Connect your smartphone phone with charger and wait for few seconds.

2) Try Hard Resetting Using Home & Volume button.

If your smartphone is on then you just install "Power Button to Volume Button" or "Oneclick reboot" app from play store and have fun using your phone.

Source : http://www.indabaa.com/how-to-restart-android-phone-without-using-power-button/

**Disclosure**: I'm the author of the linked article.
> 1 votes

# Answer
BEST POWER OFF Android App = "Menu Button App" - NO ROOT - NO Physical Button needed, Complete Power off

As of now the "Menu Button App" is the only one that I have found on Google Play that will actually and completely power off your android without touching a physical button, NO ROOT needed. Most apps just turn off the screen, they don't power off the droid.

1. Open the app.
2. Tap "BUTTON tab"
3. Tick "POWER DIALOG"
4. Touch "DISPLAY"
5. The round "Power Button" will display on screen.
6. Touch the "Power Button", then select "Power off or Restart"

If you find another app that does it better please let us all know.

Thanks
> 1 votes

# Answer
An alternate way to switch off your mobile phone completely, would be to toss it in the ocean and don't look back. Just joking!

Actually turning the phone off or restarting it is done through the OS itself, just like every OS of today. So one way of doing this would be to access the terminal (only if your phone is rooted) and issue the linux shutdown command since android is based on linux.
> 0 votes

# Answer
YEah there is Try Connecting the charger And then Hit The reset Button And Remove the charger Worked FOr Xperia C
> 0 votes

# Answer
to power down Use "menu button" app from Google play. No Root required
> 0 votes

---
Tags: power-on
---


# Question
Title: Restoring the backup of an encrypted phone
I had an LG G2, running LineageOS 7.1 with enabled encryption. I took regular backups using TWRP 3 (which can deal with encryption).

The phone broke. I now want to restore the backup using TWRP on a new LG G2.

How can I restore the backup from the old phone using encryption onto the new phone (no encryption yet)?

I tried to restore the backup as-is and it doesn't boot (black screen). Anything special that I need to do before restoring?

Should I first encrypt the new phone and then restore the backup? Or do I need to strip the encryption from the backup somehow before restoring it?

# Answer
> 4 votes
As it turns out, TWRP/nandroid backups aren't encrypted. The encryption layer sits lower at the level of the device.

You can therefore restore the backup on a new device like any other backup simply by using the restore function in TWRP. You have to re-enable encryption afterwards, of course.

This also means that backup data is *not* encrypted and therefore must be protected in storage. I've never read this anywhere; be aware of the security implications.

Edit: The reason for the above mentioned boot problem was unrelated to the backup. I had the wrong bootstack on the new phone and first needed to upgrade to the most recent stock rom.

# Answer
> 1 votes
There's no reason as to why the device won't turn on at all if it's of the same exact model as the backed up one. Unless if the twrp backup got corrupt and you restored ignoring the message digest check (MD5). Remember before accessing TWRP if device is encrypted, TWRP asks for decryption password to decrypt data hence you copied files after it's decryption. There's no need to even think about encryption. Just if the backup doesn't work, and I'm sure you have TWRP, grab a freshly downloaded lineage and flash it to device. It's better to have a working phone with your data lost than having a bricked one

---
Tags: backup, twrp, encryption, restore
---


# Question
Title: Lanix X110 (Mexican made, generic android 4.4.2 OS) Random "ghost" apps appear from nowhere and other issues
I have some issues with my phone and I hope someone could help me when I arrived home just found in my phone some random apps with the "system" logo in them, like in this case those were named launcher

I stumbled across some apps like that in the past and I unistalled them but im scared that if I uninstall those my phone's OS gets corrupted

Because it had happened to me before but it was after getting an e-mail from a teacher and I coulnt recover even after doing a factory recovery so I sent it to warranty

Another issue I had in the past its that its way too slow, it takes a lot of time to just open google maps Another one consist in not being able to detect any wi-fi network at all

The last issue I had (and the reason I had to root it) its some full screen and sometimes inapropiate ads that appeared in the lock screen, system settings, home screen, and other system apps

I hope you guys have some answers and suggestions on that Regards

# Answer
> 1 votes
Do this. Those are brought to you by some app integrated to system. If you could be kin enough you could realize that even advertisements appear on status bar and or drawn over other normal apps. But though even if you haven't seen ads in your phone, automatic installation only is too worse an issue to live with.

1. Snatch Dr.Web antivirus from any source you're convenient with,
2. Install it and then run a full system scan.
3. Take note of Adware originated apps, binaries, and frameworks if possible. The app reports Google Play Services also as an adware but don't delete it.
4. Since you have kingroot, install a root file manager like Es File Explorer, or most preferably Solid Explorer and grant it root access.
5. Navigate to the reported files and delete them except Google Play Services.
6. Get back to kingroot and remove root access. Reboot your phone and you'll be good.

I did this on my Sony and all those things went away

---
Tags: operating-system
---


# Question
Title: Insufficient Storage - SD Card used as Internal Storage
I've formatted my SD card to be used as the internal storage on my LineageOS phone (Android 7.1 - HUAWEI Y5).

When I attempt to install anything from the play store I am unable to. Accessing the files through any file manager shows the SD card and Internal Storage merged as one (36GB total).

What can I do? Is there any application, Xposed module or Magisk module for this situation?

PS:Typed on my phone, hasn't been checked for grammar or spelling mistakes.

# Answer
What error does Google Play Store give. Insufficient storage? Or any other. And could 36GB be insufficient? Please note that application package rests on `/data/app` which is obviously internal, then all it's data is got in the sd. That means you may encounter that error if internal storage is below 15% of it's original size no matter how massive is your external sd. If that isn't still the issue, I think that's a bug in the Lineage OS you're running. I'm running lineage too. That feature works perfect like on any AOSP
> 0 votes

---
Tags: google-play-store, external-sd, sd-card, insufficient-memory, internal-sd
---


title: Hide call logs across user profiles

text:
# Question
Title: Hide call logs across user profiles
I've created two user profiles on my android phone. One Main and the other one(let's call it Child) is a separate user(**NOT** the *default* Guest). But whenever I switch between users, the call logs can be seen which were made from the other profile, ie. calls made from the Main profile can be seen in the Child profile and vice-versa. I don't want to share my call logs across profiles. I searched for some viable switch or option to disable this in settings, but couldn't find any. Googling with the post's title along with android tag results in some log hiding apps which is not what I'm looking for! How can this be disabled natively from android options/settings itself? Or can it be done via some root 'tweak' if the rom is rooted as in my case.

Android OS - Nougat v7.1.2
Root Status - Rooted

# Answer
> 2 votes
Access user profile and tap on `More Settings` (the second one in orange is child profile with *Bom* as name)

You will see yourself and child profile as below

Tap the cog icon on right and **disable**

`Turn on phone calls and SMS`

That's it.

If you **enable**, it gives you a warning that your calls and SMS would be shared as shown

Tested on stock 7.1.2

But the drawback is that child user can't use the phone or SMS

This is the designed behaviour

> By default, only the primary user has full access to phone calls and texts. The secondary user may receive inbound calls but cannot send or receive texts. The primary user must enable these functions for others.
>
> Note: To enable or disable the phone and SMS functions for a secondary user, go to Settings \> Users, select the user, and switch the Allow phone calls and SMS setting to off

While it is not explicitly mentioned that secondary user will see call logs of primary user and vice versa, once the primary user enables then everything is accessible to secondary user (remember **default** is not to allow , if you do, there is a price to be paid )

---
Tags: multi-user, 7.1-nougat, call-history, profiles
---


# Question
Title: How is the Android System running Java jars?
There is a large amount of Java jars in `/system/framework`, for example, `am.jar`. I understand that Android uses Java in a very confusing way (at least for me). I do not completely understand the way that dalvik works.

Basically, I do not understand how Android runs these jars. Can somebody explain how it does this, and possibly how I can run my own jars? I am on Resurrection Remix, 6.0.1, with Xposed framework, if it helps.

Thanks

# Answer
> 3 votes
You can run the Jar files using app\_process, which replaces the java executable on Android. Looking at /system/bin/am for example, we see it's really running

```
exec app_process $base/bin com.android.commands.am.Am "$@"

```

You've mentioned running Xposed. If you'll google the manual installation of this framework, you'll see it both deploys a jar to /system/frameworks and replaces app\_process with a modified one, where the hooks are added. It's also instructive to read through the modified app\_process code.

Note you may need this answer to actually run your apps.

Finally, note that you seem to have misunderstood the link to stackoverflow answer in the comments (https://stackoverflow.com/q/30656933/2291). The Jars **are** installed. On newer systems, they are converted (and the files removed from the jar) to ART and run as native code (i.e. machine language). On older systems, I think the java class files are converted to Dex bytecode and run in the Dalvik VM. That means that the Dex bytecode is run in Dalvik in the same way Java bytecode is run by the Java VM on the fly. In any case, the JAR files always contain code initially.

# Answer
> 1 votes
That's a pretty big question; it's a very complicated and large system. If you can't narrow your question any more, then the short answer is from Android's docs:

> the Dalvik VM is an interpreter-only virtual machine that executes files in the Dalvik Executable (.dex) format

Similar to the Java JVM, but a different implementation optimized for Android's usage patterns.

Also see What is Dalvik and dalvik-cache? which describes it a little more.

Otherwise, I suggest you read Google's documentation on the subject to find out more info about whatever parts of the dalvik system you are interested in. (If we tried to answer it all here, it would take a nearly infinite page scroll (exaggerating a little) to describe all the different parts and pieces how and why it works.

---
Tags: 6.0-marshmallow, dalvik, java
---


# Question
Title: How do I find out the address of [Settings>Display->Cast] devices?
I see a `[TV] Samsung 6 Series (50)` wireless display in the list from display settings. But I do not own a Samsung television, so I would like to know the IP or MAC address of this device to double check with my router's list of connected devices.

# Answer
You can't easily identify its MAC address as its not connected to any AP.

Wireless display (WiDi) **does not require** any Wi-Fi Access Point or router or hotspot for operation. It uses WiFi Direct® (or Wi-Fi CERTIFIED™ Miracast®) technology, for wireless connection to WiDi compliant receiver.

Having said that, it therefore implies that by your device identifying `[TV] Samsung 6 Series (50)` in Settings→ Display →Cast is not connected to any AP, but it just being detected by your device as a "nearby device" and does not even reveal its MAC/IP explicitly even if you make the connection.

---

However the easiest way to identify its MAC/IP is allowing it to connect to any of available wireless AP:

* Go to your TV's menu and choose Network → Network Settings
* Choose Wireless for your connection type
* Choose to connect to the `SSID`
* At this point, the Smart TVs will show you a screen with the Wireless MAC address.
* If not, go back to the Menu and choose Network → Network Status.

Alternatively check on your device's list of connected devices and get the IP.

---

Note: I have even observed that my Smart TV (Samsung) shows in the list of Available Wireless Display devices on my tablet, even before connection.
> 0 votes

---
Tags: 6.0-marshmallow, screencast, miracast
---


title: How to avoid advertisement in YouTube

text:
# Question
Title: How to avoid advertisement in YouTube
I would like to know if there is a way to avoid the advertisement in YouTube videos in YouTube application for Android ?

# Answer
> 2 votes
If you have a rooted phone or tablet, you can install YouTube AdAway. It is an xposed framework module that stops/blocks videos ads in the Youtube app.

You also need to install the xposed framework, and activate the module.

Disclaimer: I am still using version 11.45.59 of the Youtube app and the module works as stated above. I am not sure about more recent versions

Edit: Try Youtube Vanced, a modified version of the Youtube app that prevents ads and has other features.

---
Tags: 6.0-marshmallow, youtube
---


# Question
Title: How do I know that a charger is a Turbo Charger for my Moto
I have a bunch of USB chargers lying around and I wanted to clear the mess. Is there an easy way of knowing which ones support the Turbo Charging function of my Moto G5?

Does every company have its own version of fast charging or is there pre-agreed protocols that are negotiated between phones / batteries & chargers.

I do have this monitoring app "Ampere" installed & it shows 1630 mA right now as the charging current at a 24% battery level.

Can one tell from this whether we are in fast charge territory?

Also, can one typically tell from the specs printed on the charger itself? e.g. This charger shows

> Model C P49L SPN5967A Output 5.2V 2A

# Answer
> 2 votes
> Does every company have its own version of fast charging or is there pre-agreed protocols that are negotiated between phones / batteries & chargers.

Yes. See this answer How does fast-charge work?. This list is not exhaustive and doesn't cover all types but get the idea

> I do have this monitoring app "Ampere" installed & it shows 1630 mA ....

Yes. It's a fast charger, normal charger will not charge usually beyond 1100 mA

> Model C P49L SPN5967A

Google it. You will find listed on Amazon and in the supported phones, you will see that they ( I didn't verify all) support fast charging

> How do I know that a charger is a Turbo Charger for my Moto

It doesn't seem to be going by the list of supported phones. But be aware that *some or most* turbo chargers do fast charging and vice versa. But it's best to get one that specifically supports your device

---
Tags: charging, motorola-moto-g
---


# Question
Title: Mounting a ext4 formatted sdcard on Android Marshmallow
I trying to mount an ext4 sdcard on a Samsung Galaxy Tab a6 (sm-t580) running Android 6.0.1. It has the original ROM, but is rooted and has TWRP installed.

I've tried the following commands on adb:

```
mkdir /mnt/media_rw/0000-FFFF
mount -t ext4 /dev/block/mmcblk1p1 /mnt/media_rw/0000-FFFF

```

This sucessfully mounts the volume and the volume can be viewed on the command line but is invisible to the gui. I follow with this command.

```
/system/bin/sdcard -u 1023 -g 1023 -U -1 /mnt/media_rw/0000-FFFF 0000-FFFF

```

But this spawns the following error:

```
E sdcard  : cannot mount sdcardfs filesystem in default (error 2)

```

When I run the last the sdcard command as an ordinary user I get

```
E sdcard  : Error setting RLIMIT_NOFILE, errno = 1
E sdcard  : installd fs upgrade not yet complete. Waiting...

```

The second line of which repeats indefinitely.

I also tried running `vold` but that just prints out `Aborted` on the standard output. Running the following command triggers a mount

```
/system/bin/vold --blkid_context=u:r:blkid:s0 --blkid_untrusted_context=u:r:blkid_untrusted:s0 --fsck_context=u:r:fsck:s0 --fsck_untrusted_context=u:r:fsck_untrusted:s0

```

but just results in the following on logcat

```
no match partition type(131) -> change table to kUnknown
disk:179,32 has unknown partition table; trying entire device
...
Failed to pclose /system/bin/blkid -c /dev/null -s TYPE -s UUID -s LABEL
/dev/block/vold/disk:179,32 : File exists
[WARNING] blkid failed to identify /dev/block/vold/disk:179,32
disk:179,32 failed to identify, giving up

```

Which is the same as when you insert the sdcard in to the device.

Any takers?

# Answer
> 1 votes
UPDATE an better solution https://android.stackexchange.com/a/204616/119381

First steps:

I could mount and use my pen usb with ext4 after install \[1\] but still bery tricky (need root) I need first do

```
   adb shell
   su -
   mount -t ext4 /dev/block/sda1 /mnt/sdcard/usbStorage/sda1/

```

and after umount and mount sda1 with stickmount.
For some reason stickmount (when works alone) says that device is mount but it is not , I need mount it as root ... , after I mount it , stickmount do the rest of the work ...

\[1\] https://play.google.com/store/apps/details?id=eu.chainfire.stickmount&hl=en

Update 2017-12-26:
After read: https://android.stackexchange.com/a/131839/119381

https://source.android.com/devices/storage/config.html
and https://stackoverflow.com/a/28018008/778517

I did is and works on kodi and other apps ,

```
adb root
adb connect 192.168.1.160
adb shell mount -o rw,remount /;

adb shell

```

(edit) /fstab.hardware and change vfat to ext4

```
vi fstab.rk30board
/devices/30040000.otg*     auto ext4 defaults      voldmanaged=usb:auto

mkdir /data/media/0/usb1
mount -t ext4 /dev/block/sda1 /data/media/0/usb1/
mount -t ext4 /dev/block/sda1 /storage/emulated/0/usb1/

```

I also used \[root\] adb wireless from google play https://play.google.com/store/apps/details?id=com.dshylai.adbwifiwidget&hl=en but now I see that I have more options

More info: https://forums.lenovo.com/t5/Moto-X-Play/Android-ext4-support/td-p/3262765

---
Tags: ext4
---


title: Accessibility Services missing

text:
# Question
Title: Accessibility Services missing
I am using a Huawei tablet with Android 4.3 jellybean OS (EMUI), and for some reason I do not see any accessibility **SERVICES** (only **SYSTEM** is there) *see below:*

Screenshot (click image for larger variant)

> Typically under Settings → Accessibility there is SERVICES such as Talkback, or other applications with accessibility SERVICES etc).

Currently I utilise a workaround which uses Secure settings plugin together with Tasker to switch accessibility SERVICES, but still the accessibility SERVICES won't appear under Accessibility in Settings, making it difficult for me to know whether the accessibility service for a certain app will be functional at a given time.

This short term fix works **but** is not very effective since I won't be sure if the required accessibility SERVICE will be turned on/off at the required moment or not.

Is there a way to make **Accessibility SERVICES** appear in **Settings**? I am comfortable any kind of system files modifications as long as it fixes the issue.

(Additional info: I have tried flashing different stock ROMs provided at manufacturer's website but it seems they all have the same problem)

I can't seem to find compatible custom ROMs that are free from this "bug" also the latest android version on the tablet is 4.3, **nothing newer than this**.

# Answer
> 3 votes
Since the bounty expired (went unawarded) and this question hasn't received an answer yet, I just decided to explain the **short term workaround** as it may help users facing a similar problem.

---

**Why I needed this feature**:

* In order to use my productivity apps such as AutoInput, Greenify etc
* To be able to monitor which applications whose accessibility settings are enabled at a given moment.
* To be able to switch on or off from native interface with ease.

---

The pre requisites for this workaround include:

**Workthrough;**

* First we need to grant Secure settings these permissions:

```
    adb shell pm grant com.intangibleobject.securesettings.plugin android.permission.WRITE_SECURE_SETTINGS

    adb shell pm grant com.intangibleobject.securesettings.plugin android.permission.CHANGE_CONFIGURATION

```
* Now we need to open Tasker to create a task for toggling the accessibility service of a certain application.
* Go to Task tab and select "New Task + " You can name this Task anything (e.g *Enable AccServ*).
* Click "+" to add new Action Code → Plugin → Secure Settings ,
\[**Configuration**: {*System+ Actions* → (select target App to enable(or disable) accessibility service e.g `Autoinput:service.ServiceAccesibility`}\]
Tap on "Save"
* Tap back to exit from this task
* Repeat the proceedure to disable (or enable) accessibility service of the target app (or create a new one).
* Exit all the way back to home screen, and long press home screen to activate widgets, swipe and create a shortcut widget which activates (or deactivate the accessibility service of target app).
* You should be good to go.

---

**Cons**

* The major back backdraw is that you are not able to monitor (in real time) the state of the accessibility service of a certain application, you have to rely on switch the toggles back and forth).
* It is also generally difficult to control
* While this a better workaround than nothing, it is usually time consuming to set up the tasker profiles to handle this.
* It clutters the home screen with too many widgets
* Relatively battery consuming than using built-in feature in UI.
* It requires some paid apps mentioned above

---

Nevertheless this is a fully functional workaround, which I hope can help users with similar problem

---
Tags: settings, accessibility
---


# Question
Title: Chrome error **ERR_SPDY_TRANSPORT_SECURITY** only on mobile device
I'm trying to brows one website in my SAMSUNG GRAND MAX mobile, using Chrome/ UC browser etc. it shows below error

```
This webpage is not availale
ERR_SPDY_TRANSPORT_SECURITY

```

but same website is working fine on Desktop's Chrome browser.

# Answer
> 1 votes
`SPDY` is a protocol of chrome browser developed by Google. It was designed to load web pages faster and to improve web security. However this protocol has been deprecated in favour of the HTTP/2 Standard.

> Google’s servers will likely support SPDY quite a bit longer than its browser, but in the long run, it will likely completely shut of SPDY support there, too.

Possible reasons may therefore be an outdated browser, or perhaps firewall settings (if you have installed a firewall on your device etc)

**Possible ways to resolve this error:**

1. Updating the browser

* First and foremost, update the browser and check if the same error shows. Usually latest build would have fixed bugs from previous builds.
2. Flush sockets in your browser:

* Visit this url in your Chrome browser: `chrome://net-internals/#sockets`
    * Select "Flush sockets" in top right screen (drop down arrow)
3. Clearing hosts cache

* To clear hosts cache of chrome, visit this url; `chrome://net-internals/#dns` and tap on Clear host cache button

---
Tags: browser, chrome-for-android
---


# Question
Title: How to perform double tap to zoom on android device with adb shell
I want to perform a double tap on the screen or mouse with `adb shell`. Is this possible? I'm not interested in waking or turning off the screen, but to increase the zoom on a picture.

# Answer
> 2 votes
Thanks to @Firelord for pointing out the solution. These are several keyevents that work on a Samsung Galaxy S7. You cand send either the code or the name of the event:

Turn on/off the screen (clicking the power button):

`adb shell input keyevent 26
 adb shell input keyevent KEYCODE_POWER`

Zoom in a little bit:

`adb shell input keyevent 168
 adb shell input keyevent KEYCODE_ZOOM_IN`

Zoom out a little bit:

`adb shell input keyevent 169
 adb shell input keyevent KEYCODE_ZOOM_OUT`

See all the official KeyEvents on Google Developer's page: Android KeyEvent

Another option, much more powerful and sophisticated, is to use minitouch, which is a minimal multitouch event producer for Android.

---
Tags: adb, shell
---


# Question
Title: What is this strange screen I'm stuck into; no response to any touch [LineageOS, HCT M8]
HTC One M8 with LineageOS 15.0 (custom ROM, has always worked well until now).

Suddenly I only see this screen: 5:37 (the time it got stuck) in cyan dots, and a field of green and white dots (possibly a big battery icon).

Phone doesn't respond to touching touchscreen, or even the hardware buttons. Tried to press Power to turn the phone off, but nothing happens.

I was doing nothing in particular with the phone when or before this happened, just woke it up from sleep and found it in this state.

What is this screen?

How to get out of this?

Could this even be a virus or other malware maybe?

# Answer
This is a screen corresponding to the HTC Dot View Case \- normally you should be seeing this screen through the case's lid when it's closed, so it will provide clock, notification, etc. at a glance. This screen appearing in normal use likely means that your device's Hall (magnetic) sensor, responsible for detecting cover lid status, is malfunctioning.

You should still be able to forcefully reboot - try holding both POWER and VOL\_UP simultaneously under adequate lighting (to trigger the ambient light sensor, so it won't think the button combination was mispressed and prevent the reboot). If successful the phone should vibrate then reboot.

If a reboot doesn't remedy the problem, boot into a custom recovery (assuming you're using TWRP). From there mount `/system` and use the built-in file manager to find and remove an app named `FlipFlap` inside `/system/app` or `/system/priv-app`. That specific app is responsible for displaying the screen you see.

If that still doesn't solve the problem, you either need a LOS build that disables the Hall sensor entirely, or have the device repaired.
> 2 votes

---
Tags: htc, lineageos
---


# Question
Title: What is this icon depicting a phone and Wi-Fi together?
After I factory reset my Nokia 6, this icon appeared. I've never seen it before. What is this icon in the highlighted part?

# Answer
> 2 votes
This is WiFi calling icon or VoWiFi. Disabling that WiFi settings removed the icon as confirmed by OP

It is used for making voice calls over WiFi, similar to Volte ( more so when signal connectivity is poor). On some phones, it is slightly different with the solid triangle replaced by traditional WiFi icon as shown here

---
Tags: notification-icons, nokia-6
---


# Question
Title: Lock yourself out of your phone for a certain amount of time
I check my phone (Android) more than I study. Is there any program or way to lock yourself out of your phone for a certain amount of time until you complete a goal? At the same time it should allow phone calls to come through.

# Answer
> 1 votes
Hand it to a roommate? Or trade phones with a study partner?

Reminds me of the old "how do I stop myself from using my credit cards" scenario:

http://moneyning.com/credit-cards/freeze-your-credit-cards-to-ice-your-spending/

# Answer
> 0 votes
There a couple of apps that allow this in each their way:

* App blocker \- Let's you set up daily intervals between 1 to 3 hours where your phone is blocked from usage. I believe you can set it up to allow calls.
* Stay Focused \- Which let's you block individual apps, either on set intervals during the day or by allowing a total usage time per day for apps.

Hope these covers your question.

---
Tags: productivity
---


# Question
Title: How to disable additional app permissions?
Some apps have annoying permissions like installing shortcut on the homescreen (everytime u open it). How do I disable these permissions? (see picture)

# Answer
> 2 votes
You can try using NoAutoShortcut if your phone/tablet is rooted and Xposed framework installed. It is an Xposed module that prevent apps from creating shortcuts.

# Answer
> 1 votes
You can try App Permission Manager available on Google market. It pretty much handles permissions with ability to overriding them.

---
Tags: permissions
---


# Question
Title: One click share location in Google Maps to specific user or other app?
I know there's a share location feature in Google Maps and various android apps for sharing locations.

But is there a widget / shortcut or something where you can click on it and instantly share your location with a pre-defined contact whether by SMS, email, etc. ?

I have a relative that I need to pick up quite frequently but sometimes they're in one street and sometimes they're walking in another. They're a little older and aren't too tech savvy except for the basics (viewing photos, chatting, etc.).

Basically I want to set up a widget / shortcut on their homescreen and if I can't find them, I can call them and tell them to click on the button to share me your location so I can find them.

Google Messenger has a share location by SMS feature too but that's too many clicks, want to simplify as much as possible.

Other apps like Life 360 or Family Locator are on 24/7 and kill the battery. Don't need 24/7 location sharing.

# Answer
> 2 votes
Trusted Contacts is the solution you're looking for - it's an application made by Google, which allows you to share your location with friends and family *and* integrates with Google Maps' location sharing solution too.

Simply install the application on the family member's phone and make sure you are selected as one of their *Trusted Contacts*.

Whenever you want to know their location, simply tap on their avatar and select "request location". A screen will show up on their phone with the default ringtone playing as well. (see screenshots above)

If they don't "pick up" and allow you to see their location, their location will be shared automatically in 5 minutes.

Best of all - it's free, it's made by Google and has integration into Google Maps' location sharing service.

# Answer
> 3 votes
> Basically I want to set up a widget / shortcut on their home screen ....

There are a number of social media apps that can do this but they are **not one click** as you mentioned besides setting up a widget is not possible

Hence, suggesting as an alternative

I prefer Macrodroid, being *easy to learn and free* (upto 5 macros). You would need to install Macrodroid on*their device*

Create a macro

**Trigger:** Empty Trigger

**Actions:** Share location

You get the following options - *SMS, Twitter , Email , Calendar, Variable*

1. Select SMS and either select contact or number (yours)
2. Repeat the action above and enter your email after choosing the default e-mail account registered with their device

**Constraints :** Leave blank

Name the macro and save it

Go to widgets of your home screen and drag and drop Macrodroid widget on any screen. Long press the widget and assign the name of macro (Tip: Install an icon pack that shows visually striking icon so that it is easier for them , like this and replace Macrodroid widget)

**Tell them to press the widget to send you their location by pressing it. Done!**

Your SMS would have a link to the location with a pic as below that you can open in Maps. Ditto in your email

**Note:** GPS needs to be enabled for this to work (obviously). If you can't trust them to remember enabling GPS, that can also be automated. Steps below

---

---

For enabling / disabling GPS root permissions are required normally. It is unlikely their device would be rooted, so there is an alternative - hack in Macrodroid that overrides this limitation

`adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS`

followed by:

```
adb shell pm grant com.arlosoft.macrodroid android.permission.CHANGE_CONFIGURATION

```

Now enhance your macro (in the actions section)

1. Location Mode → High Accuracy
2. Wait 15 seconds ( for location to be registered. May need to tweak it )
3. Select SMS and either select contact or number (yours)
4. Repeat the action above and enter your email after choosing the default e-mail account registered with their device

(If you are choosing the email option they would need to enable data but if they forget SMS would go through , so you are covered )

5. Wait 30 seconds
6. Location Mode → Location Mode off

This would ensure that battery is not drained by GPS and they don't need to *remember* to enable/ disable GPS

Yet another approach is mentioned in comments - instead of them doing the work, you do it by adding their device to your account and use apps that track lost devices , choice is yours but I think that the solution mentioned here is superior as it does not call for changes on their device settings and is *on demand* saving battery

---

**Edit:** Another refinement possible , add another trigger in the macro . *Missed Call* and assign your number to it. When you want their location give a missed call (cut the call before they pick up). You will get the location by SMS. This is handy if they are unreachable for some reason and you want their location. Bonus !!!

# Answer
> 2 votes
You can download the app here.

Try glympse app which can be used as a substitute for google maps.

It has very basic structure and high functionality. Various modules are available for easy use. The main advantage is that its not active 24\*7.

You can control whom you want to let you track for specific time and always share your location to anybody, anywhere by SMS or E-mail. Its good for both personal use and business use. Just give it a try and see whether your basic need are fulfilled or not.

In your particular case try explaining your relative to how to just share their recent location via SMS. Its very easy or you can set to track their location if they accept your request to track their location.

---
Tags: applications, gps, geolocation, gps-tracking
---


# Question
Title: "Change your phone number?" notification
Since I got my new Google Pixel, I've received a "Change your phone number?" notification upon each boot up. Nothing I've done has remedied the issue...

Here's what I've tried so far:

1. Selected the notification, provided my credentials, updated my phone number (which has been the same for years), and applied the changes.
2. Rebooted lots of times.
3. Wiped the cache for Google Play and Google Play Services.
4. Removed my account's recovery phone number, then re-added my phone number.
5. Removed my Google account from the phone, then added it again.

Short of factory resetting the device, I'm not sure what else to try. This issue has been going on for 8 days now. It's rather frustrating.

Here's a screenshot of the issue:

# Answer
Thought I'd follow up on this. After trying just about everything, I caved and factory reset my phone. The notification hasn't appeared since.
> 0 votes

# Answer
This may not be the ultimate 'answer' to your question, but I too received a similar notification from Google Play services just yesterday: As you can see, mine is slightly different in that it was asking for me to "add" my "new" number as opposed to change it. The thing is, my phone is not new (2 year old Nexus 5X, most recently fully reset more than 9 months ago), nor are any of my account/numbers, and I have not done anything recently in the way of adding phone numbers (cellular or Google Voice) or recently connecting Google accounts to the device.

At first blush the message I received just looks like Google attempting to get people to fill in the phone number field on all Google accounts, but that doesn't make sense in my case as the account referenced does have a phone number configured for security purposes. Even if the specific field they care about is empty I don't know why they would have worded the message as such, making it sound like they are somehow aware of a "new" number added to my phone, somewhere. It really was a strange notification to receive.

So with that said, I wonder if your similar notification on your Pixel is a symptom of a larger issue Google is having on their back-end systems. So far I have only received my bizarre notification once, it didn't coincide with a restart of the phone, and restarting the phone now doesn't seem to trigger it. So again, this may not be the ultimate answer to your specific symptom, but it seems like Google has gone notification happy with Google Play services soliciting phone number input.
> 0 votes

# Answer
RESOLVED: I was getting the same message on my phone so I went into my Google account with my PC and found that one of my recovery email addresses was invalid (I had closed one of the accounts).
> 0 votes

# Answer
I had this problem here is what I did went to apps \> google play services \> force stop \> storage \> clean all data there\> now disable google play services and erase all data now go again apps \> play store \> force stop \> storage\> clean all data there

Restart phone now google play store will ask to update google play services \> update \> restart

done notification didn't appear when restarted my phone anymore
> 0 votes

---
Tags: notifications, google-play-services, google-pixel
---


# Question
Title: How to remove a song from Google Play Music without removing it from the storage?
I recently added a couple of ringtones and notification sounds to my phone by placing them into my storage's Ringtone and Notification directories respectively, and I can select them from the sound settings dialogs without any problem.

The thing is that they also appear as songs on my Google Play Music's playlists, and of course I don't want to hear a 1 second long "jigglypuff!" notification sound every now and then when I'm listening to my music on shuffle.

I did search using Google for a while but it seems that there's no way of either removing the file from just the music database or from excluding those directories from the media search. I recall this didn't happen on an old 4.0 Sony Xperia phone I had with it's music player.

# Answer
Hello everyone and thank you for your answers, I've finally managed to accomplish this with a very simple solution: The Android media storage service will not index media files inside directories which are hidden (preceded by a "."), but also those which contain a file named ".nomedia", so I just created on all the directories I wanted to exclude and that was it. Hope it helps somebody else.

P.S.

I didn't want to hide the entire directories since they're my phones ringtones and notifications directories and I still want them to be visible to the sound manager to use them, I just don't want them to be seen by Google Play Music.

I found the solution here: http://www.guidingtech.com/15563/hide-certain-files-android-music-player-photo-gallery/
> 1 votes

# Answer
I may not be able to help you 100% with this, but I had a similar issue when storing audio books on my SD card. What I did was made a folder called .audiobooks The . In front made it hidden from Google Play Music. Now, I'm not sure if in your situation this will hide it from the system for ringtones.
> 0 votes

# Answer
See: How do you prevent Google Music from importing all .mp3 files on the device?

Make the folder hidden by putting a "." In front of the folder name, like: .audiobooks instead of audiobooks

or make use of the .nomedia files.
> 0 votes

# Answer
In case of notification and alarm sounds you can save them in the `Notifications` and `Alarms` folder on you device and they won't show. The folders should already be there.

If it's other audio file Madelin's and user31's answers should be good.
> 0 votes

# Answer
Placing a '.' in front of a folder prevents google play music from loading songs into the app but prevents you from using the ringtones inside of the hidden folder for default alarms and ringtones.
> 0 votes

---
Tags: 4.4-kitkat, google-play-music
---


# Question
Title: Not all google logins should be equal on my phone
While setting up a new phone for a family member whose location I want to track and calendar to manage (yeah, Big Brother type for medical reasons), I logged from my phone to her google account as an additional account. So in most google apps and sites I have this dropdown like who am I currently using this service as - e.g. posting calendar meetings and events as her, which may be shared to other family members who'd be available to help at a particular time slot.

Unfortunately, in google find me (location and stolen device protection app) it works both ways - if she (or someone else) logs in as her account on her phone, there are options to e.g. remotely lock or wipe my phone - as it is logged into google. Which would be unfortunate.

Is there some way to avoid this and tell at least this particular app that only my account is almighty here? (I know security was revamped a lot in Android 8, but our phones range in Android 4 to 6)

# Answer
> 1 votes
You can try to deactivate google-s " find device" device manager from settings(usually in the security tab)...but this will also block you to reset it remotely..

---
Tags: android-device-manager
---


# Question
Title: Custom DNS server not resolving wildcards
I've setup my WiFi connection on my Galaxy S7 to use a custom DNS server. My PC runs a DNS server at `192.168.0.100` and serves a few `A` records:

```
home.local    192.168.0.100
shed.local    192.168.0.101
*.shed.local  192.168.0.102

```

When I run `tracert` on my PC (192.168.0.100) it correctly resolves `home.local`, `shed.local` and `*.shed.local`.

Using PingTools I ran `tracert` on my phone. `home.local` and `shed.local` both resolve correctly to their respective addresses.

However the `*.shed.local` yields:

> Unknown host

Is there some difference in implementations of `DNS` between Windows and Android?

# Answer
Yes, you cannot specify wildcards in /etc/hosts in linux (and therefore Android). People in Linux world have moved on to dnsmasq, I'm not sure what is the equivalent on Android. You'll have to work around it (maybe use proxy or some other setup?)
> 0 votes

---
Tags: dns
---


# Question
Title: Wrong phone number for contacts are shown and called
I have a problem with the app 'Contacts' on my Android 7.1 Nougat (Wilefox Swift 2x). In this app both phone numbers from my google account and from whatsapp are synchronized.

* Sometimes the app shows the wrong phone number for a contact. When I call this contact, the person the number belongs to is called instead (always another existing contact). At that time I'm not able to see the correct phone number for the contact. When I try to edit the contact, the phone number is not shown or correct.
* In other situations an incorrect number (number of another contact) is added to a contact. In this case both the correct and the wrong numbers are shown, only the correct number is visible when I try to edit the contact.
* In both cases it says the number is a whatsapp contact. These numbers shouldn't be linked however. I've never done so and I'm not allowed to unlink this.

Recently I removed all contacts and added them manually again. Everytime when adding a new number manually, there was automatically a duplicate added in the contact list from Google Contacts. And again I saw a couple of persons with a number that don't belong to them.

Does anybody know how I can stop this from happening? This is very annoying.

Thanks in advance!

Update: The issue may be caused by a second whatsapp I'm running on this dual sim (in parallel space). Does anyone have more information on how to solve this without removing the second whatsapp?

# Answer
This issue is because of WhatsApp. After their latest update (4th Dec) these problems have surged. Easiest solution is to backup whatsapp and uninstall it. Then reinstall \> restore your old chats.
> 1 votes

---
Tags: contacts, whatsapp-messenger, google-contacts, dual-sim
---


# Question
Title: What is the difference in 64bits TWRP and 32bits TWRP?
I am new to android. Can someone tell me what is the difference between 32bits TWRP and 64bits TWRP? What would happen if I mixed up both TWRP?

# Answer
> 1 votes
I think you are probably using a Xiaomi or Moto phone hence the question. Well, most Android devices stick to one Architecture either 32 bit or 64 bit. But some OEMs push out 32 bit OS on 64 bit SoCs (like Moto and Xiaomi). The OS needs to be compiled separately for both these memory sizes. In Moto's case they stick to 32 bit throughout the device's shelf life, so you'll only find 64bit custom Roms, and they need 64 bit recoveries. For Xiaomi they did upgrade few 32 bit devices to 64 bit, so for flashing newer updates you'll first need an updated bootloader + stock recovery of 64 bit.

TL;DR - If your custom ROM mentions "64 Bit" anywhere, use 64 bit recovery, else stick to 32 bit.

---
Tags: rooting, twrp
---


# Question
Title: Why SDK version in recovery is different from SDK version in build.prop
I have Nexus 5 running RR 7.1.2 (Nougat) and of course the SDK is 25, but in TWRP Recovery i'm using ADB Shell and type \`getprop ro.build.version.sdk' it say 22 (Lollipop)?

I do a clean install and upgrade TWRP still the same, please help me

# Answer
> 2 votes
The recovery is a miniature OS in itself, built with separate sources from the OS. For your case, the recovery is built from Lollipop source. This does not affect anything, for this SDK level is not representative of actual OS SDK level and therefore should not be used in any updater-script, etc.

---
Tags: recovery-mode, twrp, android-sdk
---


# Question
Title: Difference between WhatsApp audio and WhatsApp voice notes
* What is the difference between WhatsApp audio and WhatsApp voice notes?
* If I record a voice conversation, where is it going to be stored? Is it in WhatsApp audio folder or in WhatsApp voice notes?
* In which folder all of my received voice notes get saved?

# Answer
The folder `WhatsApp/Media/WhatsApp Audio/` contains the downloaded audio files that you received as an attachement from a contact. The file names usually start with `AUD-`.

The folder `WhatsApp/Media/WhatsApp Voice Notes/` contains the voice files that you recorded using your Whatsapp. They usually start with filenames containing `PTT-` and stored under corresponding folders with date of the recording.
> 3 votes

# Answer
With reference to Whatsapp Document

***Choose Audio to*** record a message or send an existing audio from your phone.

**But**

**WhatsApp voice notes** \- To send a voice message.

**Folder** `WhatsApp/Media/WhatsApp Voice Notes/`

**Folder** `WhatsApp/Media/WhatsApp Audio/`
> 0 votes

---
Tags: whatsapp-messenger
---


# Question
Title: Is there a way to get device battery and memory stats remotely?
I am searching for a way to get the device battery and memory statistics of my friend's device on my phone/web (definitely with his permissions, i don't intend to hack his device). Is there any web or android solution available?

# Answer
Haven't you ever heard of Airdroid ?.

You can see *Battery status* and *memory statistics* at upper right corner and lower right corner respectively.( this is web view.)

AirDroid is available for all platforms.
> 2 votes

---
Tags: applications, battery, ram
---


# Question
Title: How can I find which apps/packages reference a given permission using command line?
Given some permission `tld.developer.app.permission.PERMISSION` how can I use adb/root shell to find all the installed packages that define/depend on it?

The permissions are defined in the manifest files and it is possible to transfer each apk over from `/data/app`, `/system/app`, `/system/priv-app`, etc., unpackage, and check, but is there a better way?

# Answer
> 5 votes
The first section is ideally supposed to be OS (on PC) independent. The solution heavily depends upon the output of *package* service. It has been successfully tested on Android 4.2.1, 5.0.2 and 5.1.1 - all these versions are not heavily modified from stock Android.

## Dependencies

* Requires to be setup in PC.
* Requires *busybox* binary. If the device is rooted, install Busybox app. Else, download busybox binary from official source, rename the binary to *busybox*, set Linux compatible executable permission on that binary for everyone and move it into device using

```
adb push LOCAL_FILE /data/local/tmp/   # LOCAL_FILE is the file path where busybox binary is located in PC

```
* Requires *aapt* binary. If you're running a CM or its derivative ROM then ignore this requirement. Otherwise, for Android 4.x, you can consider downloading the binary from here, rename the binary to *aapt*, set Linux compatible executable permission on that binary for everyone and move it into device using

```
adb push LOCAL_FILE /data/local/tmp/   # LOCAL_FILE is the file path where busybox binary is located in PC .

```

Android 5.x users: ask Google for assistance.

Here's my little script:

```
#!/system/bin/sh
# Check if the busybox binary exists under /data/local/tmp/ or /system/xbin. Set the detected binary's path into the variable busybox or exit if file doesn't exist or executable permission is not set
[[ -x /data/local/tmp/busybox ]] && busybox=/data/local/tmp/busybox || { [[ -x /system/xbin/busybox ]] && busybox=/system/xbin/busybox || { date +'busybox binary not found or executable permission is not set. Exiting' && exit; }; }

# Check if the aapt binary exists under /data/local/tmp or /system/bin or /system/xbin. Set the detected binary's path into the variable aapt or exit if file doesn't exist or executable permission is not set
[[ -x /data/local/tmp/aapt ]] && aapt=/data/local/tmp/aapt || { [[ -x /system/bin/aapt ]] && aapt=/system/bin/aapt || { [[ -x /system/xbin/aapt ]] && aapt=/system/xbin/aapt || { date +'aapt binary not found or executable permission is not set. Exiting' && exit; }; }; }

# Validate input
! [[ "$1" == +([0-9a-zA-Z._]) ]] && { $busybox printf 'Permission field should not be empty or contain anything beyond these characters: a-zA-Z0-9._' && exit; } || perm=$1;

# List package name of all the installed apps and save them in the file packages.txt under /sdcard
pm list packages | $busybox sed 's/^package://g' | $busybox sort -o /sdcard/packages.txt
$busybox printf "List of apps defining and/or depending on the permission $perm:\n\n";

# Take each line (a package name) from the file packages.txt. In the output of package service for that package name, see if the permission is granted or defined and set appropriate variable state. For different states, we're either dumping the label of the app using aapt, printing the status of define/granted permissions for package or simply moving on.
while read line; do
    [[ `dumpsys package $line | grep -Eo "^[ ]+$perm"` ]] && granted=1 || granted=0;
    [[ `dumpsys package $line | grep -Eo "^[ ]+Permission[ ]+\[$perm\][ ]+\([a-zA-Z0-9]+\):"` ]] && defined=1 || defined=0;
    [[ $granted == 1 || $defined == 1 ]] && path=$(pm path $line | $busybox sed 's/^package://g') && label=$($aapt d badging $path 2>&1 | $busybox sed -ne '/application: label=/p' | $busybox cut -d "'" -f2);
    [[ $granted == 1 && $defined == 1 ]] && $busybox printf "$label ($line)\nDefined: Yes\nGranted: Yes\n\n";
    [[ $granted == 1 && $defined != 1 ]] && $busybox printf "$label ($line)\nDefined: No\nGranted: Yes\n\n";
    [[ $granted != 1 && $defined == 1 ]] && $busybox printf "$label ($line)\nDefined: Yes\nGranted: No\n\n";
done < /sdcard/packages.txt

```

Save the script in PC into a file named `perm_script.sh` and move it into /sdcard using

```
adb push LOCAL_FILE /sdcard/   # LOCAL_FILE is the  path where you saved that file into PC

```

Run that file

```
adb shell sh /sdcard/perm_script.sh PERMISSION   # replace PERMISSION with the android permission for which apps are to be shown

```

Demo output:

```
List of apps defining and/or depending on the permission android.permission.FLASHLIGHT:

Android System (android)
Defined: Yes
Granted: No

Automagic Premium (ch.gridvision.ppam.androidautomagic)
Defined: No
Granted: Yes

MacroDroid (com.arlosoft.macrodroid)
Defined: No
Granted: Yes

Google+ (com.google.android.apps.plus)
Defined: No
Granted: Yes
...
Bluetooth (com.mediatek.bluetooth)
Defined: No
Granted: Yes

DS Battery Saver Pro (com.rootuninstaller.batrsaverpro)
Defined: No
Granted: Yes

Webkey (com.webkey)
Defined: No
Granted: Yes

```

Do note that all those apps and their permissions among other things can also be found in the file `/data/system/packages.xml`.

---

<sub> (To get app's label using its package name, use GAThrawn's answer \- works if only the app is available in Play Store; use Izzy's answer \- works for any installed app.) </sub>

# Answer
> 3 votes
This worked for me (Android 8):

```
cmd appops query-op RUN_IN_BACKGROUND allow | sort

```

It shows which packages have `RUN_IN_BACKGROUND` mode enabled.

---
Tags: permissions, command-line
---


# Question
Title: Possible to turn ON phone with ADB ? (Galaxy S6)
I have a Samsung Galaxy S6 with a broken power button. (It only works occasionally)

Do you know if there is a way to use ADB (or any other way) to turn the phone on? (When it for some reason has shut down)

I have used "ADB devices" and "ADB reboot" which are working fine. (Tested with phone turned on) However they do not work when the phone is off. (Phone still connected to PC and charging) The device is not detected.

I have not been able to find a solution myself. (None of the "long press methods" with volume buttons/home button etc. have worked on my phone)

I hope one of you have the knowledge I don't to turn on a S6 without the power button. Thanks. :)

Device: Not rooted. USB debubbing enabled. Power button: Only working occasionally. (And of course not when the unit turns off)

# Answer
> 1 votes
No, ADB requires the phone to be on and be running a OS/Recovery to accept it. The bootloader uses fastboot which is only available there.

TL;DR No, when the phone is off it is not listening (by default, atleast) to commands from a PC.

EDIT: You may be better off jerry rigging something in it, is it the internal part bad or is it the external part?

EDIT2: People have pointed out that samsung does not even have fastboot (apparently) and that you COULD do something with a custom kernel, but that seems like alot of effort that may be better awnsered with `get a rma` or `get a new phone,` Sorry bro.

---
Tags: adb, samsung, fastboot, samsung-galaxy-s-6
---


# Question
Title: What will happen when I remove my Google account from an Android tablet?
I got my first tablet (Samsung Galaxy Tab A (2017), running Android 7.1.1). During inital set up, I connected my Google/Gmail account to the tablet. I have had my Google/Gmail account for years -- using it on a desktop computer -- but I've never had a mobile device before.

I've changed my mind, and I now want to remove my Google/Gmail account from the tablet. To do this, I am about to follow the instructions here for removing a Google account (specifically, **Apps \> Settings \> Google \> More Options \> Remove Account**). Before I actually do this, I have two questions about what will happen:

**(1) My Google account will be removed from the Android tablet, but my Gmail and Drive files will *NOT* be deleted from the cloud, *correct*?** I will still be able to access my Gmail and Drive from the web using my desktop computer, as I have always done.

**(2) Will my Gmail and Drive files on the tablet be deleted from the tablet's storage (but, again, *NOT* from the cloud)?** I would hope that they would be deleted from the tablet's storage, since that is sort of the point of removing the account from the device. (When I connected my Google/Gmail account, I believe it automatically downloaded much, if not all, of my Gmail and Drive files to the tablet.)

Thanks so much for your help.

# Answer
> 2 votes
1) Correct. You are simply removing your Google account from the tablet, not completely deleting your Google account permanently.

2) Yes and no. Yes in the fact you will not be able to access information via apps like Google Drive or Gmail any longer, but if you downloaded any files from them for viewing offline (music, photos, documents, etc), those will still remain on the tablet. You would either have to delete these items individually, or performing a factory reset of the device (which will remove everything), taking it to the state of where it was brand new out-of-the-box.

---
Tags: tablet
---


# Question
Title: How to remove No SIM found notification (Android 7.1.1 Nougat)
I bought a new phone with ***Android 7.1.1 Nougat*** unlocked from Verizon. Since I bought it unlocked, I get a notification that says

> No SIM found, Tap for more information.

It really irritates me because it takes up screen real-estate and I sometimes tap on it by accident. Is there any way to get rid of this notification? (Also the icon on the left side with a SIM card with a strike through it.) Thanks!

# Answer
> 0 votes
If you put the phone into Airplane Mode, it'll stop looking for a SIM card and the notification should go away. Of course this also disables Wifi put you can enable Wifi while it is still in Airplane Mode.

---
Tags: notifications, sim-card, sim-unlocking, notification-icons
---


# Question
Title: google cloud print registered printers from my device
I have a printer (HP laser Jet 1020) plugged to my computer via usb. I've also added the printer to my google cloud print successfully by following this.

My goal is to be able to print using my Android (A7) . using Chrome =\> share =\> print =\> All printers , I get only "Officejet Pro plugin for HP and Samsung" . I'm not able to list my google cloud printers. I've also tried to add Google Cloud print application from the store and got " the article is not available in my country".

Any suggestions?

# Answer
First, make sure that the chrome app is logged into the same Google account as the printer is connected to. To confirm that, go into "chrome" -\> "settings" on the top of the page it will show the account that chrome is connected to.

If that doesn't work, see if clearing data of the chrome app does the trick. (Settings\>apps\>chrome\>storage\>manage space\>clear data.)

You can also try this trick, to install apps that are not available in your country.
> 0 votes

---
Tags: printing
---


# Question
Title: Is there a way to move the caret in a text box without using the hard keyboard and without a bunch of single touches?
Often when I'm editing in a text box, I'm trying to insert text and specific location or delete text from a specific location. It usually takes me a few touches to get it right, but sometimes I just say screw it, delete the word and and retype.

Since I'm usually off by just one character, is there a way to move the caret to left or right by 1 character? Maybe a gesture of some sort?

I'm a little unsure if this falls under keyboard software functions(*If it does then I'll take a closer look @ the alternative keyboard questions*).

My device is a Droid which does have a hard keyboard, but I want to be prepared for the day I decide to get phone that doesn't have one.

# Answer
> 4 votes
In Froyo and later, there is a "cursor handle" that you can grab and drag to the right location.

Now this photo doesnt show it, but the actual cursor is still there blinking too. that handle will also bring up a quick action menu to select text or paste. and once text is selected, you can copy and cut too.

# Answer
> 6 votes
This depends on the phone you're using, on my Spica, for example, I can use the directional keypad to adjust the position of the cursor. On phones that have trackballs, the trackball does the same job.

Otherwise, the backspace key can be used as a workaround for left-arrow key (delete a few chars, then retype the word you're inserting and retype the deleted chars.

Another alternative, if you're typing in English or in one of the supported languages, you can try Swype. Swype is a word-based text input (as opposed to character based), and you typically delete or swipe one word at a time and the correction mode (double tap on the word you want to correct and pick or swipe the new word) make correcting errors a breeze.

# Answer
> 4 votes
*Providing this as an answer for those who don't want to install a custom ROM and want something close to the stock soft keyboard.*

I installed Anysoft Keyboard (found it on this question). The android market doesn't have the current screenshots, but here's one that shows the small left/right arrows at the top of the keyboard:

# Answer
> 3 votes
The Samsung keyboard and the Swype keyboard have arrow keys you can use for this; see this question.

# Answer
> 2 votes
As of 2017 and since 2016, in Gboard (previously known as Google Keyboard), you can swipe along the space-bar to navigate text and move the cursor.

Source (CNET)

# Answer
> 1 votes
MultiLing keyboard has arrow keys in there somewhere.

---
Tags: keyboard, text-input
---