# Question
Title: How to transfer installed apps from one account to another
On my Note 2 I have two accounts configured

my.email@gmail.com
my.work.email@company.com

Usually I have the Play Store configured to buy/install apps under my.email@gmail.com but somehow it got changed to my work email a while back. Before I noticed this, I installed ~20 apps using the my.work.email@company.com

Is there a way for me to re-associate those purchases with my.email@gmail.com without manually reinstalling each app? And how will this be different for free vs paid apps that I installed while using my.work.email@company.com?

# Answer
There's currently no way to do this. Free apps can be re-downloaded under the appropriate account, of course, but Google has no provision for moving paid apps (or free ones, in bulk) from one account to another. The Google Play support page has their official stance on this:

> At this time, it's not possible to transfer apps from one account to another.
>
> Some developers are willing to issue refunds for purchases on old accounts if you repurchase the app(s) using a new account. You can always reach out to the developer of an app, and you can find their contact information by following these steps:
>
> 1. Visit Google Play and select the app in question
> 2. On the app's description page, scroll down to the Developer section
> 3. Find either an email address, phone number or website listed.
> 7 votes

# Answer
While you can't transfer apps, you can sync the appropriate email (with all the apps purchased) to multiple devices so you have access to the apps. Just be sure to DESELECT all the other things (gmail, calendar, etc.) so the only thing that is synched from that account is the apps (Google Play Store).
> 2 votes

# Answer
Here is some information I've collected on how to move forward with this problem. As instructed, I've added quoted information from the pertinent pages in case the links expire:

What about if an account has been hacked or is the ongoing target of a phishing attack? Is there no way to transfer apps under these circumstances? Where do I complain to Google about this?

From a Google Support Search (https://support.google.com/mail/search?q=transfer+app+account):

How do I transfer all data between two Gmail accounts? https://support.google.com/mail/thread/10761789?hl=en

Transfer my apps and Play store balance to a different Gmail account. https://support.google.com/googleplay/thread/37917054

> This Forum is for assistance with Gmail issues. Answers to Google Play questions including the impact on purchased apps will be found here: Google Play Community

The first link has the most upvotes, but is locked. The second refers the question to Google Play Support, so search (https://support.google.com/googleplay/search?q=transfer+app+account):

Transfer Playstore app purchases to my new account https://support.google.com/googleplay/thread/16840581?hl=en

Is it possible to shift a purchased app to my account? https://support.google.com/googleplay/thread/15924856?hl=en

How to transfer purchases from one google account to another https://support.google.com/googleplay/thread/9838585?hl=en

> How can I transfer these purchases? I don't want them existing in both places. I will NEVER go back and want them there (this is a very old yahoo-email based google account -- before marrying, I created a gmail account that would have my maiden name, if you are worried about divorce). I want to be able to open up my google play, and see anything and everything I can download. I don't want to repurchase the items, because I already bought them and I own them already.

The first two are locked, and the last question has 165 upvotes and is a very legitimate situation. You can Subscribe to get updates on any official development, and upvote as well.
> 0 votes

---
Tags: applications, google-account
---


# Question
Title: multipe profiles on marshmallow: how to use apps in both accounts
i have a tablet with android marshmellow and primary and secondary profile. Appararently apart from the standard apps i can not install apps paralell on the first and the second profile.if i install vlc for example on profile one i can't install it on profile two. it just says "app not installed". Same goes for apps installed on profile two but not installed on profile one . if i try to install them on profile one: "app not installed". We don't use google accounts and i don't want to use google play. Try to use mainly fdroid and aurora\yalp. even tried installing vlc per .apk but also no success. Is there any solution without rooting device, using google accounts, using google play, using adb, custom roms and updating android. Best, bogotrax

# Answer
> 1 votes
I made a second profile myself to test if I'd encounter the same problem, which I did, and after googling a bit it seems the problem is caused if profile X does not install the exact same app version as profile Y. See this Reddit thread. As such it seems cross-profile app installation is best achieved by extracting .apk files, copying them to the other profile, and installing them there to make sure you have the same versions.

---
Tags: applications, 6.0-marshmallow, installation, multi-user
---


# Question
Title: Android devices don't show up on Chrome's "send to your devices"
I'm trying to share a link between my desktop and Android, I'm using Chrome on both and am fully synced.

On my Android, when I tap the link -\> Share -\> Send to your devices, I only see my laptop whereas I want to open a link on my desktop.

In *Chrome History*, under *Tabs from other devices*, the list appears to be empty.

Why is it not there?

# Answer
After re-installing Chrome, issue was gone.
But at the uninstallation, I had to check the *Also delete your browsing history data?* option (I tried without and it didn't work).

HTH
> 0 votes

---
Tags: chrome-for-android
---


# Question
Title: Gmail account disappeared and Google Play Store app not working on MXQ Pro Android TV Box
I have MXQ Pro 4K Android TV Box. The personal Gmail account disappeared and the Google Play Store won't allow sign-in/access.

How to fix it?

# Answer
I've had the same problem. What finally worked is:

Remove updates for Google Play Store and Google Play services ( Search on your computer for compatible .apk downloads for both apps (APKmirror.com has these files as download). In my case (MXQ Pro 4k Amlogic S905) it was Android 7.1.2 Copy both .apk files to a SD card. Put it in the TV BOX and use APK Installer app to install these on the TV Box. Then reboot. Hope this will be helpfull
> 0 votes

---
Tags: google-play-store, gmail, google-account
---


title: Specific DNS for a Android App

text:
# Question
Title: Specific DNS for a Android App
I am currently using adguard DNS using the private DNS setting in my android device to avoid advertisements. But it increases the ping time while I am in a multiplayer game (like PUBG Mobile). Is it possible to use different DNS for an app and a common DNS for everything else?

Note: I am currently based in India if location matters for your answer.

# Answer
DNS resolution in Android is handled by Net Daemon (`netd`) which runs in background as an `init` service. `netd` uses the DNS server set in Wi-Fi settings or that received through DHCP. Or it can possibly be set through CLI. See details in How does Android OS do DNS name resolution?. But there is no way to specify DNS server on per app basis.

Using Android's VPNService API it's possible to control network traffic on per UID basis (every Android app owns a unique UNIX UID). Or with root access the same can be achieved using `iptables` to NAT traffic going on port `53`. An example VPN based open-source app which lets whitelist apps and configure DNS server is personalDNSfilter (I have no affiliation). It's configurable enough and supports root mode, encrypted DNS (DoH, DoT) and other features.

However in both cases (VPN or `iptables`), you won't be able to use Android's Private DNS (DoT) feature. It's because DoT (DNS over TLS) queries aren't plain DNS (like HTTP) but encrypted (like HTTPS), going on port `853`. So the only entity that can receive and respond to the encrypted DNS queries is the DNS server set in Private DNS settings. Though it's possible to intercept DoT (like we can intercept HTTPS) but the hassle doesn't worth a try.

If you don't want to go with VPN or root based solutions, or don't want to leave Private DNS, another option is to setup DNS forwarder on local network, preferably on default gateway if possible. Or your app must itself have capability to make DNS queries, not depending on Android's resolver.
> 2 votes

---
Tags: applications, dns
---


# Question
Title: How to change location of AVD (Android Virtual Devices) files to external SSD?
I have limited SSD on my Mac.

I have an external SSD.

I would like to store multiple virtual devices, far beyond the capacity of the Mac internal storage.

**How to configure location of AVD?**

# Attempt 1

I tried using: https://stackoverflow.com/a/30614524/775359

`ln -s /Volumes/1TB/.android .android`

The files are stored on SSD but when I try to launch, it keep bouncing in the dock

# Attempt 2

https://developer.android.com/studio/command-line/variables.html

> **ANDROID\_AVD\_HOME:** Sets the path to the directory that contains all AVD-specific files, which mostly consist of very large disk images. The default location is $ANDROID\_EMULATOR\_HOME/avd/. You might want to specify a new location if the default location is low on disk space.

This should be exactly what I need, trying this solution again:

```
export ANDROID_SDK_ROOT="/Volumes/1TB/Android/"
export ANDROID_EMULATOR_HOME="/Volumes/1TB/emulator/"
export ANDROID_AVD_HOME="/Volumes/1TB/emulator/avd/"

```

### 23 seconds video: https://youtu.be/8bPv85RnzP4

# Attempt 3

Formatted and partitioned the external SSD.

It doesn't start, see the split-second popup

---

Handy answer to go nuclear: https://stackoverflow.com/a/45669617/775359

```
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
rm -Rf ~/AndroidStudioProjects
rm -Rf ~/.gradle
rm -Rf ~/.android
rm -Rf ~/Library/Android*

```

# Answer
1) There is a solution here: Move Android Studio Virtual Devices to Another Hard Drive on a Mac. I will outline it later.

2.A) I am using Linux but my emulator is found under the **Android SDK folder:`/mnt/DATA/Android/Sdk/emulator`** (ON MY NVME M.2 BOOTABLE SSD) and my AVDs are located in **`/mnt/DATA1/.android/avd`** (on my 2ND SSD) and are accessible to **Android Studio** and the **AVD Manager** through the Symbolic Link to **`/mnt/DATA1/.android/avd`** stored in my **~/.android** folder (ALSO ON MY NVME M.2 BOOTABLE SSD).

2.B) I copied the avd Folder from **~/.android** to my Prefered Location, renamed he UNWANTED avd Folder avd.OLD (just in case), created a symbolic link to the desired avd folder, and copied the symbolic link to the **`~/.android`** directory with the name **avd**.

2.C) I also ensured the Paths in the ini files point to the Physical location of the AVDs. for example: **`path=/mnt/DATA1/.android/avd/3.2_HVGA_slider_ADP1_API_29.avd`**
> 1 votes

---
Tags: macos, avd-manager
---


# Question
Title: Why does my phone's Bluetooth keep switching on automatically after every 5 minutes precisely? (Mi A2, Stock Android 10)
My Mi A2 recently started switching on its bluetooth automatically, and I set a stopwatch to count the minutes and it switches on after every 5 minutes dot on the clock. Please could ya help me out ASAP?

# Answer
Check if it stops in safe mode. If yes, some installed app is causing this. I uninstalled an app that I suspected was causing this and Bluetooth activation stopped
> 1 votes

---
Tags: bluetooth, android-10, mi-a2
---


# Question
Title: Samsung S7 speaker phone not working (at all)
My Samsung s7 (SM-G930F) works for making calls on 'normal' (non speaker phone) mode in all apps. but whenever i switch to speaker phone (regardless of the app i am using) the other side (the person I'm calling) can't hear me anymore. As soon as I switch to non-speaker-phone mode the other side can hear me again. It also doesn't work in video calls (the other side can't hear me when video calling).

Note: voice recorder also works just fine.. Note2: with headphones installed (via headphone jack) it also works (other side can hear me just fine)

I've tried the following:

* reset to factory settings
* clean microphone/speaker port+holes
* checked microphone connector (if it was properly installed, it is)
* cleared cache partition in android recovery menu (no change)
* tried it in safe mode (problem persists)
* and countless other 'fixes' which unfortunately did not work for me...

I have a custom ROM installed (I tried to find something as close to the stock ROM as possible). I previously had Lineage OS 16.0 Herolte installed but on that ROM Roaming did not work so that's why I decided to install a different ROM. Currently installed ROM I am not 100% sure of, will check tonight. I believe I followed this video tutorial so I should have the android 8.0 ROM installed from sammobile.com: https://www.youtube.com/watch?v=LvPL6hskf6w. On the current ROM Roaming does work.

I believe the current ROM causes the issue since speaker phone was working on lineage OS previously.

Are there any other fixes/tests I could try to determine/fix the issue?

Any recommendations on where to find/download stock Android 8.0 ROM for the SM-G930F?

Thank you!

# Answer
> 1 votes
Dunno about the fixes, but since you also asked for a ROM, here it is

---
Tags: samsung, rom-flashing, rom, speakerphone
---


# Question
Title: Treble devices not same as A/B devices and vice-versa. Why?
This XDA blog How A/B Partitions and Seamless Updates Affect Custom Development on XDA has some Q&A's, of which :

> * My device supports A/B partitions, does that mean I can make use of a Project Treble Generic System Image?
>
> Not necessarily. Project Treble and A/B support are unrelated. The **Motorola Moto Z2 Force doesn’t support Project Treble, yet it supports the A/B partition scheme**.
>
> * My device supports Project Treble, does that mean I have an A/B partition scheme?
>
> This is not always the case. The Honor 9 Lite is a prime example as it **supports Project Treble yet does not have an A/B partition scheme**.

(Emphasis added)

I thought Treble and A/B devices are synonymous in the sense having one implied other. That's not the case

**Why is this? What are the differences?**

# Answer
Both technologies have nothing in common, really, so everything is unrelated:

The A/B partition technology is the horizontal separation in the following image, whereas Project Treble defines the vertical separations inside each partition.

Project Treble diagram source

## A/B partition scheme

Basically the A/B partition scheme for "(Seamless) System Updates" is nothing more that two operating systems installed side-by-side, each in its own system partition. The unusual part (compared to e.g. having multiple OSes installed on a PC) is that both OS installations use the same user data partition. Also, when installing updates the active OS installation applies modifications to the other, inactive OS installation, instead of to itself.

The A/B partition layout does not make any assumptions about the OS that is installed inside the partition, hence it does not matter if the OS is Project Treble compliant or not.

## Project Treble

Project Treble applies to the internals of each OS installation and how the different layers within the OS communicate with each other. Hence for Project Treble it is totally irrelevant if there are one, two or many OS partitions. The A/B partitioning scheme is compatible with, but separate from, Project Treble, and vice versa.
> 9 votes

# Answer
Operating System on Android devices consists of two major parts:

* The generic Android code (AOSP) and
* The code specific to hardware, provided by OEM/SoC vendor (mostly based on AOSP reference implementations).

**Project Treble** is targeted to separate AOSP code from vendor code so that each can be compiled and updated independently. HIDL (the communication layer between both code layers: HALs and AOSP framework) was specifically designed to achieve the goal. So now we have necessarily separate `system` and `vendor`/`odm` partitions. It resolved (or tried to resolve) the problem of delayed or no OTA updates from OEMs after device release.

**A/B partitioning** puts AOSP + vendor code on two identical pairs/slots of partitions (including `boot`, `system` and `vendor`). So that if OTA update fails on one slot, the other one continues to work. Also it makes updating the inactive slot possible while OS (active slot) is running, so doesn't affect user's work flow. This approach encourages OEMs to send more frequent updates, without any fears. As the official documentation states:

> This approach reduces the likelihood of an inactive device after an update, which means fewer device replacements and device reflashes at repair and warranty centers.

At design level both are independent of each other (except that both involve partitions). **Treble** is relevant to OS (mostly userspace) i.e. how running processes from AOSP and vendor interact with each other (includes IPC based on *binders*). While **A/B partitioning** replaces the OTA update phenomenon which was previously based on `recovery` and `cache` partitions. So it involves necessary changes even to bootloader i.e. the logic: how it boots from different `boot`/`system` partitions, particularly after a failed OTA update. Once OS is loaded, A/B isn't of much concern (except when OTA update occurs).

So both innovations address different but somewhat related problems to achieve the same goal: **more OTA updates**. Also they collectively set the ground for dynamic partitions which let OEMs resize `system`/`vendor`/`odm`/`product` partitions during OTA updates as the AOSP and vendor code grows or shrinks.
> 4 votes

---
Tags: ab-partition, treble
---


# Question
Title: Galaxy Tab A (2016) always shows full memory
My tab always warns of dangerously low memory. It shows 15.4 GB used of 16gb even though the sum of the images, video, documents and apps is only around 2.5 GB (per attached image). I've tried disk clean up, wiping the cache partition, deleting files and apps, but the amount of used storage doesn't go down. Has anyone encountered this before or can anyone suggest a possible fix?

# Answer
Try this app, it displays the memory usage of your device: https://play.google.com/store/apps/details?id=com.google.android.diskusage&hl=de
> 0 votes

---
Tags: insufficient-memory, samsung-galaxy-tab
---


# Question
Title: How to hide my Android WiFi hotspot from being detected?
I have a Samsung Galaxy Young phone and a 3G connection. I use my phone as a wireless modem, but I don't want other devices to find my WiFi hotspot when they search for WiFi.

How can I stop other devices from seeing my hotspot?

# Answer
> 2 votes
What you're asking for is the ability to hide the SSID.

Depending upon your phone and service provider, you may have an option to configure "Hide my device" for the hotspot. My Samsung (with Android 4.4.2) has that option and it appears to work.

However, there seem to be plenty of other phones/provider combinations that don't appear to provide this feature, or, they don't work correctly as evidenced by this discussion on a 3rd-party app for enabling tethering via WiFi.

# Answer
> 2 votes
Don't waste your time trying to hide your hot spot - you can't really.

What you CAN do however is to require a password to allow a connection TO your hot spot.

In some cases, not sure here as I do not have your device, it is possible to lock the hot spot and only allow connections from one (or more, if there are others who also need to connect) specified MAC addresses only.

# Answer
> 1 votes
A strong password is your best protection. "Hidden" signals are open invites to hackers who will see you as frightened and defeneseless prey. Hackers only see a fun new target to seek and destroy. You stand out like a sore thumb when you attempt to hide. ATTEMPT to hide. Doesn't work or everybody would do it.

---
Tags: networking, wifi-hotspot
---


# Question
Title: How to run `chmod` command on boot on Android 10?
I have an Android 10 device whose bootloader is unlocked. I have downloaded its firmware, modified it and get the adb shell rooted in recovery. Following are the steps for it:

1. Download AIK
2. Extract recovery.img and modified ramdisk/default.prop as follows:

```
 ro.secure=0
 ro.adb.secure=0
 security.perf_harden=0
 ro.debuggable=1
 persist.sys.usb.config=adb,mtp

```
3. Replace split\_img/recovery.img-zImage with permissive kernel(built from kernel sources)
4. Repack it and flash it on the device.
5. Reboot to recovery and run adb shell. It will be rooted.

I want to add simple `chmod 666 /dev/diag` command and I have mounted system with stock recovery mount system option and then tried to do following:

1. Write chmod command at the end of init.rc.
2. Tried creating new rc scripts under /system/etc/init/ folder. New rc script has just chmod command written in it.
3. Tried appending(e.g. echo "chmod 666 /dev/diag" \>\> /system/etc/init/cameraserver.rc) chmod command in other rc files in /system/etc/init/ folder.

All were not able to change the required permissions. `init.rc` changes lost after reboot. Other files/changes persist after reboot but doesn't change the permission of diag port.

OTOH, I was able to make a system app with changes in /system/app/ folder.

Is there anything else that I can try to run the chmod command after phone boots?

# Answer
`echo "chmod 666 /dev/diag" >> /system/etc/init/cameraserver.rc` won't work. You need to provide an `init` trigger as well. For instance:

```
~# echo "on boot" >/etc/init/dev_diag_chmod.rc
~# echo "    chmod 666 /dev/diag" >>/etc/init/dev_diag_chmod.rc
~# chown 0.0 /etc/init/dev_diag_chmod.rc
~# chmod 0644 /etc/init/dev_diag_chmod.rc
~# chcon u:object_r:system_file:s0 /etc/init/dev_diag_chmod.rc

```

But even simple approach is to edit the `ueventd.rc` file (which is read and executed by Android's device manager) provided by vendor (since `/dev/diag` is a hardware specific interface) which creates the device node. Replace the relevant statement inside that file to set whatever permission mode, owner and group you want. E.g. you can replace:

```
/dev/diag    0660    system    system

```

With:

```
/dev/diag    0666    system    system

```
> 2 votes

---
Tags: root-access, twrp
---


# Question
Title: How to go into recovery mode? Intex Cloud Cube v08
I rooted Intex Cloud Cube v08 and installed an xposed module. After restarting the device it says

> "unfortunately system UI has stopped"

and after tapping on ok it again shows the same. It is still the same after restarting.

I tried key combinations

**volume down + power key** -: It is going into safe mode but not recovery mode

**volume up + power key** -: Just restarting normally

I don't have custom recovery

How to solve this problem and go into the stock recovery mode?

# Answer
> 1 votes
The problem is solved now. Thanks to a comment suggesting this link (Use volume buttons to move and power button to select any option)

> **Method 1**
>
> * Power off your Intex Mobile, by holding the power button.
> * Hold down the Volume Up + Power Button.
> * After that, Release both Buttons when you see Intex Logo or Android Logo appears.
> * Now you can see Android Recovery Mode.
>
> **Method 2**
>
> * Power off your Intex Mobile, by holding the power button.
> * Hold down the Volume Down + Power Button.
> * After that, Release both Buttons when you see Intex Logo or Android Logo appears.
> * Now you can see Android Recovery Mode.
>
> **Method 3**
>
> * Power off your Intex Mobile, by holding the power button.
> * Hold down the Volume Up + Home + Power Button.
> * After that, Release both Buttons when you see Android exclamation mark appears.
> * Now you can see Android Recovery Mode, if not (While holding down the Power button press and release Volume Up Button).
>
> **Method 4**
>
> * Power off your Intex Mobile, by holding the power button.
> * Hold down the Volume Up + Power Button.
> * After that, Release both Buttons when you see Android exclamation mark appears.
> * Next, While holding down the Power button press and release Volume Up Button.
> * Now you can see Android Recovery Mode.

I tried the 4th method in the link. But since `volume up` \+ `power`  was restarting the device normally, I held down the `power`  and was pressing and releasing the `volume up`  button. The device didn't go in recovery mode but it rebooted and started working **without** the popup "unfortunately system UI has stopped".

# Answer
> 0 votes
I don't know about your phone in particular and a quick search gave me nothing, but holding down Volume up + Power + Home also seems to be a common combination for recovery mode.

Worth a try I guess.

---
Tags: rooting, recovery-mode, system
---


# Question
Title: What can you do when you can't chmod /system/bin/chmod?
I have changed the permissions of the file \system\bin\chmod from 777(-rwxrwxrwx) to 644 (-rw-r--r--), how can I turn back to 777?

I don't know is this may be relevant, but I'm using a samsung J5 running android 9.

Thank you in advance.

# Answer
> 0 votes
I wonder how you can change `/system` without read-write access. Usually a reboot will restore permissions, but you can also change it on-the-fly

`chmod` is most likely a symlink to `toybox` and you have changed permissions of toybox instead. this will affect most (if not all) of the commands. you can maybe fix this with busybox

**external MicroSD Card** permissions are `-rwxrwx--x` per default, so maybe this trick works (untested). copy binary to external MicroSD Card first, then move the file into `/data/local/tmp` (moving a file does keep permissions)

```
adb push busybox-armv7l /sdcard/busybox
adb shell
su
ls -1 /storage
cp /sdcard/busybox /storage/????-????
cd /data/local/tmp
mv /storage/????-????/busybox .
./busybox mount -o remount,rw /
./busybox chmod a+x /system/bin/toybox

```

if you really just changed permissions of `chmod` (which must a binary in this case) you can just use toybox applets with prefix `toybox chmod`

---

in case `ls` `mount` `cp` and `mv` not working, run the following commands in termux (thx @ Irfan Latif)

```
pkg install busybox
su
export PATH=/data/data/com.termux/files/usr/bin:$PATH
busybox mount -o remount,rw /
busybox chmod a+x /system/bin/toybox

```

---
Tags: permissions
---


title: my contacts lost

text:
# Question
Title: my contacts lost
I moved all contacts to the sim, on Android. now there are no notes or contact photos. no backup exists I moved them back to the phone and still not exist, what can I do to retrieve them?

# Answer
> 2 votes
Usually an address book entry on a SIM card consists of only two fields:

1. Telephone number
2. Name

All other fields you had used before moving the contacts to the SIM card are unsupported and therefore got lost when you chose to move them to the SIM cards.

Moving them back to the Android/Google address book does not recover the additional fields as the SIM card does not contain this data.

The only way to recover deleted contact is if you had synced the contact to your Google account.

Google Contacts allow to recover deleted contact, e.g. via web UI: https://contacts.google.com/

Open the settings menu (the gear icon on the top, left side) and select the entry **Undo changes** (or some similar text). Then you can select the date/time span you want to undo.

AFAIK the Google Contacts app also provides the functionality to undo changes in a similar way.

---
Tags: contacts, sim-card
---


# Question
Title: Android Sound Drop Down Menu - Volume Buttons Broken
As displayed in this image is there a sound control for Android notification/drop down menu?

Alternatively some other mechanism. The volume buttons are broken on my phone.

Ideally well rated app.

# Answer
> 0 votes
This works from the lock screen https://play.google.com/store/apps/details?id=app.phhuang.volumecontrol

---
Tags: volume-buttons
---


# Question
Title: Coordinates from 'dumpsys location' are censored on Huawei devices
I'd like to read coordinates from my Huawei P30 Pro via ADB by calling `adb shell dumpsys location`. However, the output is like:

```
Last Known Locations:
   gps: Location[gps 11******,14****** ...

```

They are censored with stars even though the GPS is already turned on.

Any idea?

# Answer
> 1 votes
It looks like *this is a modification that Huawei did by themselves* (factual reasons not yet found). In short, **the method to print the location's detail was overwritten.**

`dumpsys` command calls the system services' dump method (more detail on this answer on Stack Overflow), and for `dumpsys location`, the respective service is `LocationManagerService`.

The `dump()` method for `LocationManagerService` (in Android 10, but also no major differences on previous versions) contains code like this:

```
...

pw.println("  Last Known Locations:");
for (Map.Entry<String, Location> entry : mLastLocation.entrySet()) {
    String provider = entry.getKey();
    Location location = entry.getValue();
    pw.println("    " + provider + ": " + location);
}

...

```

where it will iterate the last known locations from all location providers and print the name of the provider and its location. Note that the location is an instance of `Location` objects.

By default, the method to print the detail of the `Location` object (`toString()`) contains code like this:

```
@Override
public String toString() {
    StringBuilder s = new StringBuilder();
    s.append("Location[");
    s.append(mProvider);
    s.append(String.format(" %.6f,%.6f", mLatitude, mLongitude));
    ...

```

where it will print the latitude and longitude in 6 decimal digits.

For many devices, this is the standard behavior, as shown on Nexus 5 with LineageOS 14.1 (Android 7.1):

```
 Last Known Locations:
    ...
    fused: Location[fused 1.234567,101.010101 acc=500 et=+12h00m00s000ms]
    ...

```

The numbers are changed due to privacy reason

By overriding the method, OEMs can customize how `dumpsys` will display the content. (Note: while Android requires some services not to be modified, location is not one of them)

---
Tags: huawei, location-services, dumpsys
---


# Question
Title: Is it possible to image android phone and run on emulator?
I have an LG phone with faulty screen that I am not interested in fixing, but I am interested in an installed app. I am looking for a way to convert it to an image and run it on my PC, is that possible? Searching online just shows me results for how to transfer images from my phone to my PC :D

# Answer
> 0 votes
Hope you're doing well.

You said you're interested in an application, well let me try and clear it up, but if you just want to use an application, you're better off with running it fresh on an emulator, and that way you will not have to worry about your broken phone, but if it is the app data you're interested in then I'd suggest you'd take a backup of your phone, that will basically be an image of your broken phone, using adb tools and then restore it onto an emulator. But you will have to look it up as to how you want to flash adb tools onto your phone without a display(assuming your display is completely dead).

Otherwise, your topic seems a little too broad

---
Tags: emulators
---


# Question
Title: "Package installer keeps stopping" error when trying to uninstall Zoom Android app
I have a Nokia 6.1 Plus running Android 10. I am unable to uninstall the Zoom Android app. When I try to uninstall, I receive an error message "Package installer keeps stopping".

I don't get the error while uninstalling/installing other downloaded apps.

How to uninstall this app?

# Answer
Uninstalling from play store worked for me !
> 0 votes

---
Tags: uninstallation, zoom-cloud-meetings
---


title: Removing multiple files using ADB

text:
# Question
Title: Removing multiple files using ADB
This is what I tried:

```
$ adb -e exec-out run-as com.awesomeproject rm *.jpg
rm: *.jpg: No such file or directory

```

After that I tried using `find`

```
$ adb -e exec-out run-as com.awesomeproject ls
app_textures files10.jpg files15.jpg files20.jpg files25.jpg files30.jpg
app_webview  files11.jpg files16.jpg files21.jpg files26.jpg files31.jpg
cache        files12.jpg files17.jpg files22.jpg files27.jpg lib
code_cache   files13.jpg files18.jpg files23.jpg files28.jpg lib-main
files        files14.jpg files19.jpg files24.jpg files29.jpg shared_prefs

```

```
$ adb -e exec-out run-as com.awesomeproject find . -type f -name '*.jpg' -delete

```

But apparently the files are still there.

I'm not sure if this is because globstar is disabled but of course I can't activate it:

```
$ adb -e exec-out run-as com.awesomeproject shopt -s globstar
run-as: exec failed for shopt: Permission denied

```

So how do I get rid of multiple files at once using adb?

# Answer
Here is one thing you can try:

$adb shell "cd path/to/the/folder && rm -rf \*.ext"
> 1 votes

---
Tags: adb
---


# Question
Title: Why does the phone shutdown and battery drains super fast on 20% or less capacity when taking pictures?
When the phone is 20%ish or lower battery, after taking pictures the os shuts down. I have observed this behavior on 5 different brands (lg, samsung, lenovo, xiaomi, oneplus), across different android os versions, across different camera apps, even on devices with the battery replaced with a new part.

The system takes a picture then shuts down. The battery drains almost visibly upon restart, going from 20 to 15 in a minute or two.

I've seen it on official roms, flashed roms, rooted phones etc. Hopefully somebody who's an expert in these things can hit this nail on the head.

# Answer
> 2 votes
Long read with plenty of links. I will summarize so that one gets the key points and if needed dive in for details

# Battery levels are not accurate

* Firstly, battery levels based on *voltage* are an *approximation and not accurate*.Android battery levels are based on voltage See Are battery monitors accurate ? . Key points:

1. See this answer to understand why voltage based battery levels are misleading

> The voltage of a battery does **not** tell you how much charge a battery has, nor does any other characteristic of the battery. Battery voltage does drop as capacity drops, but the voltage drop is a **function of the percentage of charge, not amount of charge.**

In other words, voltage correlates to percentage of charge, not *amount* of charge.

2. Li Ion batteries display a "flattish" voltage drop even though the amount of charge falls relatively steep.
3. Frequency(how often) Voltage levels are updated to reflect the current state is up to the OEM (so,phones may show different battery levels under identical conditions

**Voltage levels at extremities are again inaccurate for safety reasons**

1. When your device says it is 100% , it is not really so (see this answer
2. When your device says it is O or low battery , it is not really so since a prevention circuit kicks in stopping further discharge

# Camera draws a lot of power

1. Power drawn by a camera is quite high 1000- 2000 mW based on this old answer.This excludes the *full screen power*. Present day phones with multiple cameras and complex algorithmsfor image processing will surely draw a lot more likely to the tune of 3500 mW
2. As pointed out in comments, if you are using a flash even more power is drawn

# Critical or low battery shut down

From Android 5 , IIRC, this feature was introduced , with later versions allowing you to configure the low battery level. High camera power drawn drops the voltage level to low battery shutdown

To summarise , we saw that voltage based battery levels are inaccurate, camera draws a lot of power and there is a critical battery shut down which is likely triggered

# Readings on reboot

* When you reboot the phone , Hysteresis comes into play

> Hysteresis is simply the fact that once we've got the battery discharging, if we stop discharging it (say, by turning the phone off), it will keep on discharging by itself for a short while.

Your device is programmed to cater for this loss , maybe 2% or more or none

* **Voltage correction**: Considerable power is drawn for reboot.In the first point , we said "voltage drop is a **function of the percentage of charge, not amount of charge.**" . Percentage of change means there is a previous value needed to compare , i.e, N-1 (previous) value compared to N (current value). Now when it is 20% on reboot, it takes some time to estimate the current value (a minute or so in your question) and fall to the current value.

**Hysteresis plus adjusting to the current value contribute to the rapid fall in a short duration**

To add to all this is the degradation of battery performance over time and *aging effect* as described here Battery capacity wear-down, and its relationship to charging practices to be taken into consideration to answer your query in comments (*why did the estimate work properly in the first months of life*)

---
Tags: battery, camera, shutdown
---


# Question
Title: "Hidden" messages in Motorola messaging?
**Phone info:**

Motorola

Model: Moto E, 2nd generation

LTE: 4G LTE

Operating system: Android, version 5.1

Let me know if any more info would be helpful.

**Issue**:

My phone's Messaging app (the one that comes with the phone) seems to be "hiding" text conversations sometimes. It'll show how many unread messages I have, (see attached image, the circled number), but I don't see any conversations with unread messages shown. I know there are some conversations missing, I just need a way to un-hide them. As far as I have found, the only way to un-hide these conversations is to search for the conversation by contact, but this only works if you know which contact's conversation was hidden. Any thoughts on how to un-do this, or what is making the messages hidden?

**My research:**

I've looked on Android support sites, done Google searches of 'Motorola hiding messages', and all sorts of related searches. Unfortunately I have had trouble finding anything besides suggestions on how to hide messages.

# Answer
> 1 votes
**Partial answer** (OP may update with findings later)

* From my experience of Moto X Play messenger app - the count corresponds to unread messages.
* OP is unable to identify unread messages. Proposed solution:

+ Use SMS backup & restore to take the backup in `xml` format and open it on PC (browser, notepad or any other program) and compare with messages on phone to identify "hidden" messages. OP has been able to identify two so far and in the process of identifying other two.
    + Find out what is special about those SMS originators. Guessing, they could be contacts saved on SIM, or social media contacts or Google groups /Hangouts or contacts marked spam, blocked/ unknown contacts for calls, carrier messages or....
    + Once the nature of contacts is identified, take steps to treat them as other contacts whose messages are *not* hidden.

---
Tags: applications, sms
---


# Question
Title: How to format an SD card directly inside Android?
How can I format an SD card directly inside Android?

# Answer
*These steps were using an HTC EVO with HTC Sense - your menu options may be different but should be similar.*

There should be a "Format SD Card" in the phone "Settings". Open "Settings", then go to "SD & Phone Storage", then you should see "Format SD Card". If the option is grayed out then you may need to unmount your sd card first and then format the card. Make sure you have backed up anything you want to save with a backup app or just by copying whatever files off your card onto a computer because this will erase everything on the card.

Hope this helps
> 4 votes

# Answer
Go to **Settings -\> Storage -\> Erase SD Card**.

Screenshot - (Click to enlarge)
> 3 votes

# Answer
**In Android 7 it can be done from the "Downloads" App"**

It apparently can't be done from the Settings directly anymore.

You can open it either:

* directly like any other app:
    + top left "three line" menu
    + "SD card"
* through settings:
    + "Storage & memory"
    + "Tap for more details"
    + "SD card"

With either approach, you are now at the "SD card" view of "Downloads" and finally:

* top right three dot options menu
* Storage settings
* Format
> 0 votes

---
Tags: external-sd, formatting
---


# Question
Title: How are apps installed on Android ? context - symbolic links of only some apps disappear after reboot
I am using `Apps2sd` to move some apps to `ext4 partition mmcblk1p2`. It successfully moved 1 app ( see code below ) but after linking another , the `symblink` for app gets deleted but data folder's `symblink` preserved so after boot the apk ( 'disappears' ) . Everything is the same in terms of ownership and security context ( `SeLinux` ).
I cant dig up anything of interest from `dmesg`. *Why does this happen ?* Both apps are User Apps . Both apps have everything possible `linked`. One App remains 'alive' & the other 'disappears' after `boot` . `SeLinux is Permissive` . `This is an Android Q Project Treble ROM`
I am not using `App2sd`native mount script, ( though my ROM has `addon.sh` support and I tossed `App2sd`native mount script in there ) but, `Partition mmcblk1p2` which is `sdext2` is `mounted` through my own script . 1 line of thinking ruled out was `Partition mmcblk1p2` which is `sdext2` is being `mounted` late enough & before that itself the `symlink` is considered invalid & gets deleted but that wont explain why the other app survives ?
*In the below 'camscanner' is the app that persists after boot and 'BofA' which is bank Of America disappears.*

## `Apk` directories <br>

```
PrKr:/data/sdext2/apk # ls -al /data/app/com.intsig.camscanner-WRx5fzxsezoqL6Gc53H5qg==
total 21760
drwxrwxr-x   3 system system      4096 2020-04-02 10:42 .
drwxrwx--x 114 system system     20480 2020-04-15 08:24 ..
lrwxrwxrwx   1 root   root          72 2020-03-29 17:43 base.apk -> /data/sdext2/apk/com.intsig.camscanner-WRx5fzxsezoqL6Gc53H5qg==/base.apk
lrwxrwxrwx   1 root   root          71 2020-03-29 17:43 lib -> /data/sdext2/app-lib/com.intsig.camscanner-WRx5fzxsezoqL6Gc53H5qg==/lib
drwxrwx--x   3 system install     4096 2020-03-29 17:43 oat
-rw-r--r--   1 system system  22239154 2020-03-29 17:43 split_config.armeabi.apk

PrKr:/data/sdext2/apk # ls -alZ $_
total 21760
drwxrwxr-x   3 system system  u:object_r:apk_data_file:s0             4096 2020-04-02 10:42 .
drwxrwx--x 114 system system  u:object_r:apk_data_file:s0            20480 2020-04-15 08:24 ..
lrwxrwxrwx   1 root   root    u:object_r:mnt_user_file:s0               72 2020-03-29 17:43 base.apk -> /data/sdext2/apk/com.intsig.camscanner-WRx5fzxsezoqL6Gc53H5qg==/ba
se.apk
lrwxrwxrwx   1 root   root    u:object_r:mnt_user_file:s0               71 2020-03-29 17:43 lib -> /data/sdext2/app-lib/com.intsig.camscanner-WRx5fzxsezoqL6Gc53H5qg==/lib

drwxrwx--x   3 system install u:object_r:dalvikcache_data_file:s0     4096 2020-03-29 17:43 oat
-rw-r--r--   1 system system  u:object_r:apk_data_file:s0         22239154 2020-03-29 17:43 split_config.armeabi.apk

```

and BofAm. This is *before* reboot. the below link gets deleted after reboot. I am posting the pre-boot scenario for comparison. Nothing to post , after reboot as the link is deleted

```
130|PrKr:/data/sdext2/apk # ls -al /data/app/com.infonow.bofa-N_WOiCdzw7ZF21E7EtehGQ==
total 40
drwxrwxr-x   3 system system   4096 2020-04-15 08:26 .
drwxrwx--x 114 system system  20480 2020-04-15 08:24 ..
lrwxrwxrwx   1 root   root       67 2020-04-15 08:24 base.apk -> /data/sdext2/apk/com.infonow.bofa-N_WOiCdzw7ZF21E7EtehGQ==/base.apk
lrwxrwxrwx   1 root   root       66 2020-04-15 08:24 lib -> /data/sdext2/app-lib/com.infonow.bofa-N_WOiCdzw7ZF21E7EtehGQ==/lib
drwxrwx--x   3 system install  4096 2020-04-15 08:24 oat

PrKr:/data/sdext2/apk # ls -alZ $_
total 40
drwxrwxr-x   3 system system  u:object_r:apk_data_file:s0          4096 2020-04-15 08:26 .
drwxrwx--x 114 system system  u:object_r:apk_data_file:s0         20480 2020-04-15 08:24 ..
lrwxrwxrwx   1 root   root    u:object_r:mnt_user_file:s0            67 2020-04-15 08:24 base.apk -> /data/sdext2/apk/com.infonow.bofa-N_WOiCdzw7ZF21E7EtehGQ==/base.apk
lrwxrwxrwx   1 root   root    u:object_r:mnt_user_file:s0            66 2020-04-15 08:24 lib -> /data/sdext2/app-lib/com.infonow.bofa-N_WOiCdzw7ZF21E7EtehGQ==/lib
drwxrwx--x   3 system install u:object_r:dalvikcache_data_file:s0  4096 2020-04-15 08:24 oat

```

## Questions

How can I get this to work ?
Also `SeLinux` being `permissive avc denials` are just FYI or they are in force ? `restorcon` and other `selinux` commands are regardless or matter ?

What I did so far :
--tinkered with various options including putting `magisk` in `global mount space`
-- ran a `umask` command before link re-creation after deleting the original `link` as mentioned here to make that link RO . `Link octals` remain the same viz 777
-- `restorecon` though i dunno why that'd matter if I am running in permissive mode ?

I manage to get some more information from log cat and here it is on pastebin
**Update :**
Heyya thanks. I put mount scripts in `pastebin_2_with_MountScipts` with relevant notes on top \`\` and the earlier `pastebin_1_with_logCat` has some more info from `logcat` it sounds like something deleted `/data/app/com.infonow.bofa-jnpc8sttz4BVPzQsPK5zw==/base.apk` the `symblink`. What process was it ? after that I can see `package manager` is complaining and doing clean ups . One thing still unclear. Does `SeLinux Context` matter in `permissive` mode ?. TYVM

# Answer
This is example mount script `/data/adb/service.d/40sdext2`

```
#!/system/bin/sh
[ -d /data/sdext2 ] && \
until grep -qw /data/sdext2 /proc/mounts
  do
    mount -t ext4 -o rw,nosuid,nodev,noatime /dev/block/mmcblk1p2 /data/sdext2
done &

```
> 1 votes

---
Tags: security, installation, mount, app2sd, selinux
---


title: Add meta information to photos?

text:
# Question
Title: Add meta information to photos?
Is there a decent camera app that will easily let me add a bit of text to my photos and store that text in the image file as EXIF/IPTC/XMP metadata? So far I have tried the stock Samsung camera app, Camera Zoom FX, Camera FV-5 and Catch Notes. I have read descriptions on numerous camera apps, but it seems like all they have to offer are various ways to distort - I mean enhance - your photos. While Catch Notes did offer ways to store your photos along with a description, it did not store the info as meta data inside the photo itself, which means it will be a mess if you ever want to transfer the photos to your computer and expect the data to stay intact.

This seems like a no-brainer that you'd expect to be available in almost every camera app. I mean, we've got the camera and the keyboard in the same device - what's the problem? I just want to be able to take a photo, click on an icon and type "This is a Bohemian Waxwing" and have that description stored inside the JPEG file. I'd even be fine with a gallery app that only let's me add information to already existing photos.

# Answer
There are a couple of apps in the Playstore which permit you to view/Edit EXIF data:

There are probably many more, so I just picked two of the more promising examples. And as Play Store is known for losing apps, please consider the above examples for the fact such apps exist – and check with my list here for what is currently available.
> 3 votes

# Answer
Since this question was posted, Android stock photos app now has a description field (Android 7.1.1). Open an image and click on the (i) icon, you will be able to add a description.
> 1 votes

# Answer
I recommend SwiftTags. It allows you to add EXIF keyword tags quite simply to your images, so later, you can use standard photo organizer software on your desktop to search your photos based on these tags. It focuses on simplicity, so you can assign your tags quickly.
> 0 votes

# Answer
I am a owner of this app and suggest that you can use my app. This app called **ExifTool**, you can easily to change, add or delete metadata including Exif, XMP, IPTC, QuickTime or MarkerNote.

This app is ported to Android from ExifTool by PhilHarvey.

Download this app (ExifTool), then click to Add Metadata. That all info you needs.

Download from Google Play
> 0 votes

# Answer
Just installed Picscribe. This allows you to add comments to exif data. Can't tell you if its a keeper app, as I have yet to abuse its power...! ;-)
> -1 votes

---
Tags: camera, photos, gallery, editing, geotagging
---


title: How To Root An Android Phone?

text:
# Question
Title: How To Root An Android Phone?
I was looking here and there and i can't find any answers how to root my samsung galaxy s6 i was trying to root fully i was trying kingoroot,iroot,kingroot i can't so i find a different way to root my phone i just plug my computer and just download some files and show those steps that how to root a android phone? it says you need to root but a way to root the way is to enable bootloader so i have no option in my settings now guys how i will root my phone guys help me out of this thing!

# Answer
Every phone is rooted diferently. It depends on the phone and current ROM installed. Normally the steps are as follows:

1. Enable USB debugging in the developer options for your phone. Sometimes the bootloader is also unlocked from the developer options.
2. Unlock the boot loader.
3. Install a custom recovery(TWRP, CWM).
4. Flash the root software with the custom recovery.

For your phone there seem to have been changes in the root process. You can try this video and report if you find any problem.
> 0 votes

---
Tags: rooting
---


# Question
Title: How do I run an Android app on an iPhone?
Based on my 30-60 minutes doing research on Google it seems there is no general solution for my question, but I wanted to double check on my favorite Q&A forum network, SE.

So, how can I run an Android app on an iPhone?

# Answer
> 1 votes
Generally, you cannot run Android apps on an iPhone.

Based on my 30-60 minutes doing research on Google it seems there is no general solution.

However, *some* apps can be emulated on an iOS environment.

* Cydia is an emulator option for jailbroken iPhones, as mentioned in the Quora post cited above
* iOSEmus is an emulator option without the need of jailbreaking iPhones. By the way, I recommend these installation instructions.

I welcome anyone who has more general solutions.

---
Tags: android-emulator, ios, emulators
---


# Question
Title: Accept Android SDK Build-Tools on Windows 10
I'm trying to understand why there is no GUI way or Post-Installation process to accept the android SDK Build Tools license:

```
Failed to install the following Android SDK packages as some licences have not been accepted.
   build-tools;28.0.3 Android SDK Build-Tools 28.0.3
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

```

After searching a lot I found the command for sdkmanager.exe but the directory tools/bin/ does not exist in `C:\Users\MyUsername\AppData\Local\Android\Sdk`.

Can anyone help me to accept the license to move on? :)

# Answer
You can view and accept all licenses of the Android SDK and related components using the following command:

```
android-sdk\cmdline-tools\latest\bin\sdkmanager.bat --licenses

```
> 0 votes

---
Tags: android-studio
---


# Question
Title: How to stop a system update upon restart
I have an old Essential PH-1 that runs on Android 7.1.1 (Nougat).

I accidentally okay'ed it to update to Oreo and it says to allow the updates to take effect to the newer Oreo OS I need to restart my phone. I do NOT want to update to the new OS. I want to keep Nougat OS.

How do I prevent this from happening?

Is there a way to erase these new files so that a restart will not finish installing the update to Oreo?
Or do I have to let it update upon restart and then downgrade (back to Nougat)?
If so, where do I go to find the easiest way to do that?

# Answer
You need to open your device "Developer options".

In case it is not there then:

* Click your device build number 7 times.

Then in "Developer options":

* Disable "Automatic system updates"
> 1 votes

---
Tags: updates, 7.0-nougat, 8.0-oreo, downgrade
---


# Question
Title: How do I restart my phone without using my power button?
Recently my Huawei P8 Lite decided that it doesn't want to play videos in apps anymore. Videos that I tap on on Twitter, Youtube, Youtube Go, and Reddit just load infinitely and don't do anything. Videos in my browser work completely fine, however, and videos that I've recorded myself play just fine, and there's audio, but the screen stays black.

I've tried clearing caches and deleting/re-downloading apps, but nothing seems to work. The only thing I can think of is to reboot my phone. The problem is that my power button is broken, so I have no way of turning it off. My phone doesn't have a Home button, and my volume buttons aren't separate so I can't press them both at once. So I don't think a lot of those fixes are going to work for me.

Do I have any other options? I've seen people recommending apps that will reset my phone for me, but that usually means rooting my phone, and the ones that don't require rooting don't work. I'm not rooting my phone, so those options are out the window.

Is there anything else I can do? I just want my videos to work again.

# Answer
> 1 votes
There are two possibilities:

# Reboot via ADB

1. Enable Developer options on your device and enable Android Debug Bridge (ADB).
2. Install the Android SDK or at least the minimal ADB environment on your PC.
3. Now connect your phone via USB to your computer
4. Execute `adb reboot`

# Reboot via app (requires root)

Rebooting your phone from within an app requires root permission. If your device is already rooted you can use one of the reboot apps from PlayStore:

---
Tags: reboot
---


# Question
Title: How to change the pitch of the white-noise ***when placing a call*** with Samsung S10e connected to the Bose QC35ii?
## Background

*Ok, here goes: Huawei P10 is still the best phone out there. (Only thing I miss here is an additional wide-angle lens, but hey.) After having taking it's ten-thousandst fall the glass splintered slightly on the side and the camera is showing focus issues (which can only be "fixed" temporarily by letting it drop on a flat surface: google it...) I decided I need to look for a replacement :( Regarding modern phones, I can't stand a notch, with the exception of the punch-hole on the side, like featured in the Samsung S10e. Thanks to Trump and the Huawei-Google-sanctions, the obvious Huawei P40 family is also out of the question.*

---

## The Problem

Hitherto, I'd use the P10 in combination with a Bluetooth-connected Bose QC35ii headset for business **calls**. Sure, there was a distinct white-noise hiss already then when initiating calls, **but now this hiss with the S10e has a different pitch** and it's driving me bonkers / bananas.

Note:

1. All devices have the **latest firmware and updates installed** (as per **20 Apr 2020**).
2. **No** (white-noise) hiss is present when placing a call with another, USB-C wired headset **or** *without* a headset.
3. The hiss **starts already when dialling and continues throughout the call**.
4. Listening to **music** does **not** cause any (discernible) white-noise (irrespective of whether noise-cancelling is on or off).

Does anyone have an idea of how to change the pitch of the white-noise ***when placing a call*** with the Samsung S10e through the Bose QC35ii?

---

## Related Link(s)

https://community.bose.com/t5/Around-On-Ear-Headphones/Bose-QC-35-Firmware-4-5-2-Noise-Cancellation-Investigation/td-p/285738 (interesting read, albeit not that helpful... doesn't cover a way to turn off the "hiss")

# Answer
> 0 votes
I happen to own a S10e and QC35II as well. Before I had the QC35 (version 1) and never had issues with the bluetooth. Everyting was running smooth, I had my phone and PC connected to the headset at the same time all the time.

It started with the QC35II. I cant say anything about calling with the headset, but I recognize the interference with listening to audio. Things that helped between phone-headset connection where going to 'Settings' -\> 'Connections' -\> 'Bluetooth' -\> Next to your connected QC35 headset press settings symbol -\> There are three options, turning 'Calls' and 'Acces to contacts' off helped (so leaving only Audio on).

As for desktop, go to Configuratiescherm\Hardware en geluiden\Apparaten en printers\ to properties of connected QC35II, tab Services and unselect Handsfree calling.

Third thing that helps with less interference is turning off my phone bluetooth when the headset is connected to my PC and vice versa.

You can see my tips are focussed on listening to music, however it probably works the other way around as well --\> turning off audio and leaving on call-things will cause less interference for calling.

---
Tags: bluetooth, calls, headset
---


# Question
Title: Google Music 'Unknown Artist' only in Android App
So I have an album that for some reason shows up as of an 'Unknown artist' in my library in the Google Music app. I already fixed the tags in Foobar (and also checked them again with MP3Tag) and then deleted the old files off my sd card and copied the fixed ones back on it. Yet still, they show up without an artist in the app...

I tried several things:

* Uploading them to my Google Music Library, then they show up just fine. (So the files should be correct. But I want them on my extra SD card, so this was just to see if there was still something wrong with the files.)
* Clear all the data of the Google Music app (menu-\>apps-\>google play-\>clear data.) Didn't change a thing.
* Reinstall the Google Music app.
* Remove the com.google.android.music folder.
* Restart phone.

Nothing fixed it... Now I don't know what else I could try. Obviously something went wrong, since at first the tags were wrong, but I fixed them. Any other program I tried reads them just fine. Any ideas on how to fix it?

Edit:

I just tried another music app on android (doubleTwist) and that also shows those songs under 'Unknown artist'... Yet when I copy the file back from my SD card to my pc it does show both Artist and Album artist correctly. I'm stumped. Is there some kind of cash of android I can clear? (Already tried clearing the Google Music app cash.) I'm completely stumped on what's going wrong :(

Edit 2:

I just found that the 'unknown artists'-songs apparently use an older/different version of Flac than the other files. According to foobar the bad songs are flac 1.1.1, while the other files are 1.2.1. When looking in Mp3tag the bad ones says 'FLAC (FLAC ID3v2)' and the good ones say 'FLAC (FLAC)'.

Thanks a lot!

# Answer
> 1 votes
Ok, I fixed it!

The problem was apparently the version of the Flac files. The bad files had version 1.1.1, the good ones had 1.2.1. So I used Foobar the convert the bad files to version 1.2.1, replaced the bad files on the SD card and then their artist showed correctly!

# Answer
> 1 votes
For anyone who comes across and this is not the reason... I got a new phone and transferred all my music from an SD card to internal storage... i then noticed that a whole load of songs had unknown artists...

I came across this link and realised all the songs with 'unknown artist' were wma files... absolute nonsense

https://www.htc.com/sea/support/htc-u11/faq/cant-play-wma-in-google-play-music.html

---
Tags: google-play-music
---


# Question
Title: Arrow keys are shown by some weird characters everywhere
In my Android device, arrow keys are shown by some weird characters everywhere. Example:

I have tried changing system fonts. Also, this is independent of the keyboard because I have changed the keyboard but the issue is not resolved.

Edit:: ij acts as UP key, IJ acts as LEFT key, 'n acts as RIGHT key and ' acts ad DOWN key.

# Answer
I don't have a fix, but Internet search results (this, this) give me the impression your issue is caused by lacking Unicode support in the fonts you've tried so far, although that would be strange for something as generic as arrow symbols. As such, my only suggestion is to try yet more fonts if you are able to do that. I doubt I can provide more help than that, but you could add some more info about your issue:

* Have you seen these symbols display correctly on your device in the past?
* What device are you using, and what Android system is it running?
* What fonts have you tried so far? (font names)
* When you say "everywhere", do you only refer to keyboards or texts as well?
> 0 votes

---
Tags: bugs, fonts
---


# Question
Title: Why preinstalled apps have more privileges than third party apps?
This question is based on an observation of Android's powerful security features, In my old Android Lollipop third party apps had read access (but no write access) to external SD card, but my Android Pie prevents apps from even reading / writing data to the external SD card? But the preinstalled apps will prompt to aquire these permissions. Is there a way for app developers to circumvent this ?

# Answer
> 1 votes
* Comparing permissions across Android versions is tricky and misleading. More so, when you want to compare Lollipop permission model to that of Pie. The differences are many and too vast to be covered, perhaps even as a separate question .
* Pre-installed apps may be OEM /carrier dependent (bloat ware) called . They ask for permissions which are required by them, just as user installed apps. However, by virtue of being system apps (see system-apps tag wiki), they are privileged, in the sense

> being "trusted", they can get access to some restricted app permissions which are not available to "user-space apps" (e.g. `ACCOUNT_MANAGER`, `MANAGE_APP_TOKENS`); if a user-space app requests those, they are denied.

You can read the linked tag wiki for more on system apps

---
Tags: external-sd, system-apps, file-permissions
---


# Question
Title: Gboard: Set Custom Unicode Characters on Longpress or Add Custom Keyboard Keys or Layout
On Gboard, when I long-press the "a" character, for example, I can see some other "a" characters pop up which have different marks or diacritics on them. By using long-press, I am able to easily type the ā and Ā characters, but we don't have such an option for "h" character for instance, as I would like to similarly type the ḥ and Ḥ characters. And similarly, I would like to be able to type some other Unicode characters like ʿ by long-pressing the ' key. These characters are accepted in standard academic Arabic romanizations and copy-pasting these Unicode characters from other applications is very inconvenient.

* Is it possible to be able to add my own characters to the long-press of the current characters on Gboard?
* Or is it possible to create my own keyboard layout and add that to Gboard (like we add new languages and each language has its own key-set)?
* If not, is there a way to hack-edit the language source file (when we download a language in Gboard) and assign my custom keys to them, so that when that language is set in the Gboard, it has my custom keys set in it?
* Or if it is not possible on Gboard, then is there any other keyboard app that allows us to customize its keys like this?
* If it is not possible on Gboard, how to suggest a custom-long-press-key-setting feature to the Gboard team?

Thanks.

# Answer
For the time being, I found an alternative solution. It's not the solution that I wanted, but it does the job reasonably well. I'm posting it here so it may benefit someone else as well.

Gboard allows you to store a Personal Dictionary for each language that one installs (Gboard \> Dictionary \> Personal dictionary \> English (US)). So in the keyboard in which you want to add some extra Unicode characters, add them in the Personal Dictionary of that language. With each item you add to the dictionary, you can also define a shortcut to it. So one can add ḥ — or whatever Unicode characters one needs easy access to — to one's personal dictionary and assign it a shortcut, for instance, I've assigned h key to ḥ. So whenever I press the h key on Gboard, ḥ appears in the suggestions above.

It's not as consistent and elegant as adding ḥ to h's long-press, nevertheless, ḥ has now become much more easily accessible. The downside to this approach is that only one shortcut character can be assigned in this way to the h key, unlike the long-press option. But if you have a limited number of characters you wish to add easy access to in your Gboard, then this is an option. Though you could add other characters to a different combination of keys, like h1, h2, hdb, and so on.
> 5 votes

---
Tags: keyboard, customization, gboard, keyboard-shortcuts
---


title: Call Android phone using an API

text:
# Question
Title: Call Android phone using an API
Is it possible or are there any applications that provide an API to make it possible for a script on the internet to ring the phone?

I need to get reminded of a specific action that happens in an online application I've built, when I'm not in my desk.

# Answer
> 0 votes
You can try IFTTT. Make a new applet and make the trigger a webhook. Make the action service a phone call.

---
Tags: notifications
---


# Question
Title: How to recover files after formatting android mobile
i accidentally formatted (soft reset) my Oppo smart phone running on android 9.0 , it has important images, now how can i recover them

# Answer
> 0 votes
Photorec (part of testdisk) is a fantastic open source file recovery tool that's my go-to, well respected, pretty easy to use and very good at file recovery as long as the data on the drive has only been deleted, not overwritten. I think it should work for your phone then, as long as the format didn't secure delete / rezero the memory

It's a PC tool, but you can run it on your SD card in a reader, or on your phone's memory if you attach it to the PC as a USB storage device

One thing to be aware of is it will find most files in my experience, but often it loses the filenames in the process, and it dumps every file it finds on the drive into generic folders, so you might have to sift through a lot of files with the extension of the ones you need before you find them, but it is good if you need something important back

https://www.cgsecurity.org/wiki/PhotoRec

---
Tags: data-recovery
---


title: Recover broken smartphone

text:
# Question
Title: Recover broken smartphone
My **Xiaomi Redmi Note 6 Pro** broke and 3/4 screen is completely black, I can't see anything but a little part below

Other than that, the touch doesn't work AND sometimes the screen triggers some random coordinate touch. If that's not enough, Xiaomi devices must be unlocked at least 1 time after startup with pattern, but can't. I usually use biometric unlock such as fingerprint sensor and facial recognition but, again, can't.

I want to still use it anyways as a mobile hotspot. I managed to turn on mobile data on adb but, trying to activate hotspot like suggested in this post, so `adb shell service call connectivity 24 i32 0`, I receive this output:

```
Result: Parcel(
0x00000000: fffffffc 00000019 00610063 006c006c '........c.a.l.l.'
0x00000010: 006e0069 00500067 0067006b 00630020 'i.n.g.P.k.g. .c.'
0x00000020: 006e0061 006f006e 00200074 00650062 'a.n.n.o.t. .b.e.'
0x00000030: 006e0020 006c0075 0000006c 00000330 ' .n.u.l.l...0...'
0x00000040: 00000193 00610009 00200074 006f0063 '......a.t. .c.o.'
0x00000050: 002e006d 006e0061 00720064 0069006f 'm...a.n.d.r.o.i.'
0x00000060: 002e0064 006e0069 00650074 006e0072 'd...i.n.t.e.r.n.'
0x00000070: 006c0061 0075002e 00690074 002e006c 'a.l...u.t.i.l...'
0x00000080: 00720050 00630065 006e006f 00690064 'P.r.e.c.o.n.d.i.'
0x00000090: 00690074 006e006f 002e0073 00680063 't.i.o.n.s...c.h.'
0x000000a0: 00630065 004e006b 0074006f 0075004e 'e.c.k.N.o.t.N.u.'
0x000000b0: 006c006c 00500028 00650072 006f0063 'l.l.(.P.r.e.c.o.'
0x000000c0: 0064006e 00740069 006f0069 0073006e 'n.d.i.t.i.o.n.s.'
0x000000d0: 006a002e 00760061 003a0061 00320031 '..j.a.v.a.:.1.2.'
0x000000e0: 00290038 0009000a 00740061 00610020 '8.).....a.t. .a.'
0x000000f0: 0064006e 006f0072 00640069 006e002e 'n.d.r.o.i.d...n.'
0x00000100: 00740065 0043002e 006e006f 0065006e 'e.t...C.o.n.n.e.'
0x00000110: 00740063 00760069 00740069 004d0079 'c.t.i.v.i.t.y.M.'
0x00000120: 006e0061 00670061 00720065 0065002e 'a.n.a.g.e.r...e.'
0x00000130: 0066006e 0072006f 00650063 00650054 'n.f.o.r.c.e.T.e.'
0x00000140: 00680074 00720065 00680043 006e0061 't.h.e.r.C.h.a.n.'
0x00000150: 00650067 00650050 006d0072 00730069 'g.e.P.e.r.m.i.s.'
0x00000160: 00690073 006e006f 00430028 006e006f 's.i.o.n.(.C.o.n.'
0x00000170: 0065006e 00740063 00760069 00740069 'n.e.c.t.i.v.i.t.'
0x00000180: 004d0079 006e0061 00670061 00720065 'y.M.a.n.a.g.e.r.'
0x00000190: 006a002e 00760061 003a0061 00300032 '..j.a.v.a.:.2.0.'
0x000001a0: 00330035 000a0029 00610009 00200074 '5.3.).....a.t. .'
0x000001b0: 006f0063 002e006d 006e0061 00720064 'c.o.m...a.n.d.r.'
0x000001c0: 0069006f 002e0064 00650073 00760072 'o.i.d...s.e.r.v.'
0x000001d0: 00720065 0043002e 006e006f 0065006e 'e.r...C.o.n.n.e.'
0x000001e0: 00740063 00760069 00740069 00530079 'c.t.i.v.i.t.y.S.'
0x000001f0: 00720065 00690076 00650063 0073002e 'e.r.v.i.c.e...s.'
0x00000200: 00610074 00740072 00650054 00680074 't.a.r.t.T.e.t.h.'
0x00000210: 00720065 006e0069 00280067 006f0043 'e.r.i.n.g.(.C.o.'
0x00000220: 006e006e 00630065 00690074 00690076 'n.n.e.c.t.i.v.i.'
0x00000230: 00790074 00650053 00760072 00630069 't.y.S.e.r.v.i.c.'
0x00000240: 002e0065 0061006a 00610076 0033003a 'e...j.a.v.a.:.3.'
0x00000250: 00300033 00290038 0009000a 00740061 '3.0.8.).....a.t.'
0x00000260: 00610020 0064006e 006f0072 00640069 ' .a.n.d.r.o.i.d.'
0x00000270: 006e002e 00740065 0049002e 006f0043 '..n.e.t...I.C.o.'
0x00000280: 006e006e 00630065 00690074 00690076 'n.n.e.c.t.i.v.i.'
0x00000290: 00790074 0061004d 0061006e 00650067 't.y.M.a.n.a.g.e.'
0x000002a0: 00240072 00740053 00620075 006f002e 'r.$.S.t.u.b...o.'
0x000002b0: 0054006e 00610072 0073006e 00630061 'n.T.r.a.n.s.a.c.'
0x000002c0: 00280074 00430049 006e006f 0065006e 't.(.I.C.o.n.n.e.'
0x000002d0: 00740063 00760069 00740069 004d0079 'c.t.i.v.i.t.y.M.'
0x000002e0: 006e0061 00670061 00720065 006a002e 'a.n.a.g.e.r...j.'
0x000002f0: 00760061 003a0061 00380033 00290031 'a.v.a.:.3.8.1.).'
0x00000300: 0009000a 00740061 00610020 0064006e '....a.t. .a.n.d.'
0x00000310: 006f0072 00640069 006f002e 002e0073 'r.o.i.d...o.s...'
0x00000320: 00690042 0064006e 00720065 0065002e 'B.i.n.d.e.r...e.'
0x00000330: 00650078 00540063 00610072 0073006e 'x.e.c.T.r.a.n.s.'
0x00000340: 00630061 00280074 00690042 0064006e 'a.c.t.(.B.i.n.d.'
0x00000350: 00720065 006a002e 00760061 003a0061 'e.r...j.a.v.a.:.'
0x00000360: 00330037 00290035 0000000a          '7.3.5.).....    ')

```

I also wanted to install an application on the phone to control it through the pc, but can't because it needs confirmation from phone itself.

After I tried to use a screen unlocker bash file (through windows ubuntu subsystem) and, finding the coordinates for the points, the screenshots from the phone lock screen are blank so I can't see which coordinates they are.

After that I also tried to use AdbControl (written in Java), which should stream the phone to the pc , but it gives me errors for every single frame.

I tried also **Mi Suite** with no luck: although I connected my device it shows this:

Any thoughts?

# Answer
> 2 votes
for **adbcontrol** you must escape backslash in windows path and specify a writeable path on device for example `/storage/emulated/0` which probably fails because location isn't available during unlock/decryption. depending on permissions you can maybe use external MicroSD card instead

```
adbCommand = C:\\platform-tools\\adb.exe
screenshotDelay = 100
localImageFilePath = C:\\adbcontrol\\adbcontrol_screenshot.png
phoneImageFilePath = /storage/4D47-9860/adbcontrol_screenshot.png

```

---

**you can also use scrcpy instead**

---

another **manual method** for unlock/decryption (only works for password)

```
adb shell input keyevent KEYCODE_SPACE
adb shell input text <password>
adb shell input keyevent KEYCODE_ENTER

```

---

another option is **physical keyboard** connected via usb-otg adapter

---
Tags: adb, 9.0-pie, broken-screen, xiaomi
---


# Question
Title: How can MIUI read my previous MI Account ID and phone number on clean install?
I unlocked my bootloader, flashed some custom ROM and the ROM is working fine for several months. Today I decided to return to the stock MIUI global ROM. After finished flashing new images using `fastboot`, I'm quite surprised when the phone asked me to login to Mi Account. It remembers the account id and my previous phone number correctly. This is when I'm not connected to Internet. I also have flashed TWRP cleared user's data many times before.

I would like to know where is this information stored? Is it on `/persist` partition? Or, perhaps in Trusty OS? Is it possible to see what are stored there (apart from account id and phone number)?

# Answer
> 2 votes
For Mi 8 Lite, it is stored in `/persist/fdsd/st`. This file contains JSON structure with `extra_email` and `extra_phone` that matches what is displayed in the screen. Also, after deleting this file, the initial setup step that asks for account activation is not displayed anymore.

---
Tags: xiaomi
---


# Question
Title: Bootloop issue and can't go to recovery mode
I am using Asus Zenfone 3 ZE552KL, it got hang and then i tried to restart the phone but it get stucked in, Also I can't get in to recovery using standard method. Generally I keep USB debugging mode off that's why my device not listed in `adb devices` list but, i can go into CSC Fastboot mode.

Text in the image. csc fastboot mode!!! long time press power button to restart I tried below solutions

1. Used Asus Flash tool as per its help doc the process takes 10 to 15min but i wait around more than 2 hours it shows "Uploading OS Version"
2. I downloaded Firmware zip file from asus official site, but in zip file only `boot.img` is present other two requried files are missing `recovery.img` and `fastboot.img`

Kindly suggest me some workaround.

# Answer
> 2 votes
The *Asus Zenfone Flash Tool* is no official Software, furthermore it looks like this tool is using *fastboot* (which usually works on previously unlocked bootloader only)

---

for `fastboot.exe` download platform-tools and open `cmd.exe`. navigate to `platform-tools` folder with `cd` now you can type

```
fastboot reboot

```

if bootloader is already unlocked, you can also wipe *cache* partition and see if this fixes your boot problem

```
fastboot format:ext4 cache

```

---

you can also boot into *recovery* from fastboot and then install firmware *update.zip*. this should even work from TWRP as long as you don't flash recovery.
do **NOT** allow modifications of system. just wipe cache partition. try to reboot into system from menu. if still not booting, install firmware update.zip

```
fastboot boot C:\platform-tools\twrp-3.2.3-zenfone3-20180806.img

```

---

for **locked bootloader** you can download *Factory\_Phone-userdebug.raw* emmc image which contains GPT partition table and all partitions. (from linux it is possible to loop-mount this image with *kpartx* and split into partitions, but this is out of scope)

**WARNING: all data lost**
this will flash the entire device, be aware this deletes all your personal data. make sure this is the right phone model.
download CSC\_ZE552KL\_13\_13\_1\_36\_M2\_6\_7\_P7\_userdebug.zip.
it seems no flash tool is needed, it is maybe working from fastboot directly.
connect usb cable in fastboot mode and just run `flashall_AFT.cmd`

---

**Qualcomm Devices** usually can be flashed from *EDL mode* with *QPST*.
found a site with some Qualcomm EDL Programmers ~~maybe one of this works for your device
Qualcomm\_Factory\_Loader\_MSM8953\_Lenovo.mbn
Qualcomm\_Factory\_Loader\_MSM8953\_Xiaomi.mbn
Qualcomm\_Factory\_Loader\_MSM8953\_Xiaomi\_2nd.mbn~~

for **EDL mode** install Qualcomm HS-USB QDLoader 9008 Driver

for *EDL mode* you need to find Test Point

---

**The following is just an example to illustrate the process and not valid instructions**

For further documentation refer to alephsecurity there you can learn how to flash devinfo which unlocks bootloader and gives availbilitiy to flash custom recovery TWRP

basically you need the following files (most of them are included in QPST)

```
fh_loader.exe
QSaharaServer.exe
prog_emmc_firehose_8953.mbn
rawprogram0.xml
patch0.xml

```

the xml file has instructions for flashing partition, for example TWRP (not the right size/offset)

```
<?xml version="1.0" ?>
<data>
 <program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="recovery.img" label="recovery" num_partition_sectors="131072" physical_partition_number="0" size_in_KB="65536.0" sparse="false" start_byte_hex="0x1c200000" start_sector="921600" />
</data>

```

QSaharaServer.exe is used to initialize firehose with on the already to COM port connected device in EDL mode

```
QSaharaServer.exe -p \\.\COM10 -s 13:prog_emmc_firehose_8953.mbn -b tmp\"

```

fh\_loader.exe is responsible for flashing the instructions from xml file

```
fh_loader.exe --search_path=tmp --port=\\.\COM10 --sendxml=twrp.xml"

```

---
Tags: boot-loop, bootloader, asus-zenfone-3
---


# Question
Title: How to get past Google blocking gmail smtp access?
I have a google account that I want to log into from the Gmail App of and android device. I ONLY want gmail, not hangouts, drive, etc. So I am trying to add the account as a standard email address in gmail.

In my gmail account I have gone to settings\>Forwarding POP/IMAP and enabled IMAP. Then following these instructions (https://support.google.com/mail/answer/7126229) I try to add the email in the gmail app on my phone.

I open up Gmail\>Menu\>Settings\>Add Account type in my email address and then click Manual set up\>IMAP On the incoming settings, I type my email, password, and "imap.gmail.com"

That works fine... but then on the next step...SMTP... On the incoming settings, I type my email, password, and "smtp.gmail.com"

And is says "username or password is incorrect" And then in my gmail account, I get an email titled "Critical security alert" that says "Someone just used your password to try to sign in to your account from a non-Google app. Google blocked them, but you should check what happened."

How can I get a gmail address added to the gmail account via IMAP instead of having to add my whole google account to the whole phone?

Thanks for your help on this!!

# Answer
> 3 votes
I have painstakingly found the final answer to this:

Google will **ALWAYS** block **SMTP** logins from **anywhere**, even their own gmail app, unless you turn on the 'allow access from less secure' setting in your google account's security (https://myaccount.google.com/security)

In order to use a gmail account as a non-native gmail account without the allow-less-secure setting is to use an app that actually uses the google pass-through login.

The gmail app does not use the google pass-through login, because, why would it , it's already a google app.

The only way to use a gmail account as a non-google account inside of gmail is to use SMTP, which will require the less secure setting turned on.

---
Tags: gmail, google-account, imap
---


# Question
Title: Does google contact sync also sync the sim card or does it just sync the contacts stored on the phone?
So I have this old Galaxy S5 phone that that I'm upgrading to a samsung a51, and I'm also getting a new SIM card that keeps the phone number but doesn't keep the contacts. Do i need to do something extra or does it just work? Or should I use Samsung smart switch?

# Answer
> 0 votes
Like the comments by Andrew T said, you have a few storage options:

1. SIM card.
2. Phone.
3. Google account.

During the saving of the contact, it should give you the option to choose, or there should be a default setting.

---
Tags: samsung, 6.0-marshmallow, backup, samsung-galaxy-s-5, google-backup
---


title: Convert installed app to system app

text:
# Question
Title: Convert installed app to system app
I am on Samsung Galaxy J2, rooted with TWRP flashing. I want to convert a GPS Spoofer to a system app.

I tried Link2SD and Titanium Backup, but both of them failed. I tried to move it manually, but in all 3 cases, the app is completely removed from the drawer.

Is there any method?

# Answer
> 4 votes
SuperSU version v2.73 installed by you is systemless as confirmed by you using methods mentioned here How to find that I am rooted with Systemless

*Systemless* root does not permit changes to be made by you to `/system` by default. See Systemless Root for details. This is most likely the reason that you are unable to convert installed apps to system apps

To enable this, you have two options:

1. Follow instructions here Enable /system write in TWRP - Systemless root to make `/system` writable and then try to install. This should solve the problem (I am also on systemless root but made it writable following this). If this doesn't work, next option below
2. Revert to traditional root - see Switch over from systemless root to system (traditional) root

# Answer
> 2 votes
Although OP seems to have SuperSU installed, I am writing this answer for the users of Magisk so as to prevent near duplicate questions from spawning.

Magisk module App Systemizer can make any third-party app a system app systemlessly i.e. without making changes into system partition. Download it from Magisk Manager or via the link and flash it through Magisk or your custom recovery. Reboot and launch a shell using a terminal app, such as Terminal Emulator. Follow these commands:

```
su
systemize       # loads the tool
1               # this would list all the third-party apps that can be systemized
ENTER_DIGIT     # enter the digit corresponding to the app you want systemized
CHOOSE_LOCATION # choose the digit corresponding to /system/app or /system/priv-app
TYPE y OR n     # y to reboot immediately and n to reboot later

```

After reboot your app would show up as a system app. When you get comfortable with this tool you can direct everything through a single command. Follow the module's link for usage instructions.

# Answer
> 0 votes
Assuming you have ROOT access, your apk file is present on Windows desktop and you are on Lollipop or lower then,

* Install adbd Insecure by ChainFire, launch it and tick the first case.

**Why should you install adbd Insecure?** -\> to be able to `adb remount` on production builds.

Then from CMD Shell type:

```
adb remount
adb push c:\users\username\desktop\yourapk.apk /system/app/
adb shell
chmod 644 /system/app/yourapk.apk
adb reboot

```

# Answer
> 0 votes
You can use Lucky Patcher to convert apps to system apps.

1. Open Lucky Patcher.
2. Select the app you want to move, then click Tools (if there is a dialog box that appears with a warning message, click Yes).
3. Click "Move to /system/app" (or "Move to /system/priv-app").

Another app that is also able to convert user apps to system apps is System app remover.

**Note:** Beware that Google Play Protect will warn about Lucky Patcher being harmful and will prevent you from installing it.

# Answer
> 0 votes
I had a similar problem with a few other apps. It's most likely not a problem with the root. I have Marshmallow 6.0.1. I used Link2SD.

Solution: after converting to a system app, you need to restart the phone, *wait* for a few minutes, and restart again. Do this 2-3 times then the app will appear.

---
Tags: applications, system-apps
---


# Question
Title: Samsung s7 password locked - can't get onto phone
today I authorized a payment through Google pay on my phone. I've always avoided this and now I know why I never wanted to pay through Google. As I made this purchase it prompted me to create a phone safety option (either a pattern, password, or fingerprint), and I didn't really understand why that was necessary to authorize payment (no other payment form was given as an option), but I went with it and created a password. I remember this password. Now after my phone went to sleep, it wanted me to enter a password, since I apparently enabled this feature (hate it). I entered the password I created during this transaction, and there is no 'enter' button or prompt. Just the password box, and 'emergency call.' However I tried hitting 'done' on my phone keypad and it says incorrect password. Several times, I know it's what I created it with. SO... I went ahead and tried my actual Google password for the email account I used to make the earlier purchase. Still can't get onto my phone. I'm sorry, but what the hell ??? Can anyone help me with this and maybe a way I don't need to factory reset and lose everything (pics, texts, apps, contacts (I'm not sure if they're Google backed up)) ? All I wanted to do was relax and watch something I really like. I'm also having trouble troubleshooting on my computer because it's slow... and I can't call anyone. WHY

# Answer
> 0 votes
If you go through your computer and change the password it makes you able to initialize a new password and unlock it manualy when you do so and log off your computer after turning your phone back on so yes turn your phon.off before changing it on your cpu . I hacked a phome back to myself this way but i forgot the password and initaly im forever locked out of that phone unless i figure out the newest password that google took away from me! Contact google AFTER! YOU do this so your account dosent get locked due to them thinking its being hacked!

---
Tags: lock-screens, google, password, samsung-galaxy-s7
---


# Question
Title: How do you cast video/content to your television from Amazon Prime Video app?
I would like to get my video and content to my television from my Android phone or tablet but the Amazon Prime Video app does not support Chromecast.

**How do you cast video/content to your television from Amazon Prime Video app?**

# Answer
Amazon Prime Videos now supports casting to Chromecast straight from inside the official app, it does have a stupid problem that you can't use the phone to adjust the TV volume like you would usually do with Chromecast, it comes up with a stupid surround error when you try, and you have to use the actual TV remote to adjust the volume, but for the sake of this question, it works as mentioned above.

For future reference, I am using an HTC U12 Plus with the lasted firmware, which for this device is Android Pie, and I am using the latest version of Amazon Prime Videos, which is 3.0.268.28447.
> 2 votes

# Answer
# 2018-09-13 update

Short answer is: **you can't**. You can use a laptop (windows/linux/mac/chrome-os) with Chrome browser to cast. Or you can buy an Amazon-Fire hardware device.

Long answer: the "cast your screen" solution now seems to be broken.

Broken? Exactly how?:

* the audio plays from the TV screen
* the video does not play form the TV screen (TV is black where the video should be)

So for android devices, I don't know of any way to cast from your Android device to a Chromecast.

# 2017-12-12 Use the Android feature called "cast your screen".

## how to use "cast your screen"

* turn on your TV and Chromecast
* make sure your chromecast/phone are connected to the same wifi
* unlock your phone
* pull down the "quick settings" drawer from the top
* touch the "cast screen/audio" button
* your chromecast should now display what is on your Android device's screen
* open the Amazon Prime Video app
* play your content on your phone and the audio/video will show up on your television

Official directions from Google on how to cast your screen: https://support.google.com/pixelphone/answer/2865484?hl=en

## background

The Amazon Prime Video app does not support streaming to Chromecast from the app.

However a less well-known feature of newer Android versions is the ability to "cast your Android device's screen and audio" to the television. Or to put it another way you can "mirror your display" from your Android device to the television.

The "cast your Android device" feature is supported for later versions of Android 4.x (I don't know what version exactly).

## caveat

* The "cast your screen" requires your Android device to be on, screen on, unlocked
* because "cast your screen" mirrors your android device
    + the battery usage is high
    + the wifi bandwidth used is high (has to send the audio/video from the internet to your phone, then from your phone to the router, then from the router to the Chromcast)
* the resolution on the television depends on your phone's pixel resolution
* "cast your screen" can cut out for various reasons and does not seem to be as reliable as normal Chromecast
> 2 votes

# Answer
As of now, it is possible to cast the contents of that app using Miracast, provided that both the Android phone and the TV supports that. I know for sure OnePlus 5, OnePlus 6, Redmi 5A and Redmi Note 5 Pro and Sony Bravia (don't know model number) supports Miracast, but Motorola G4 Plus doesn't.

I have used Amazon Prime app on the four devices personally to cast them using Miracast. I used inbuilt cast option under Settings app to cast, instead of doing it through the app.

**Note:** It is also possible to cast Netflix using Miracast, though you won't get any video, but only the audio.
> 1 votes

# Answer
The new Amazon Prime Video app does definitely not support Miracast!

My Android Device is a Huawei P10 Lite with MirrorShare function. My TV is a Sharp with Miracast function and they can be connected.

There was no problem with the former Amazon APP (shopping) which Prime Video was a part of.

I can mirror other content e.g. Netflix, private videos, whatsoever, I can see my Android display on TV, can launch the app but only the sound comes from TV and I can see all of the Android-related displays like "stop", "continue" "forward and backward" and so on but the video is not shown.
> 0 votes

---
Tags: streaming, chromecast, screencast, amazon-video
---


# Question
Title: system ( com.Android google.com.gms ) share from gallery app suddenly stops working and crashes
there is a prominent `gallery` app that I am using -`f-stop` . been using it for very long time and never had this issue . `gallery` app itself seems to be working but when I select more than one picture and invoke `system share` so I can share those with other apps like `WhatsApp`... everything crashes. it gives me an option to view the app log crash in an email attachment, that it prepared to send to Google for feedback unfortunately selfish as it may sound, I cannot send that attachment to my email It just directly sends it without even keeping a sent copy in my Gmail. using some kind of a hack I pulled up all that log info and I am putting it in `pastebin_with_crash_log_info`

The relevant error is:

```
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f08007a
at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:246)
at android.content.res.Resources.getDrawableForDensity(Resources.java:905)
at android.content.res.Resources.getDrawableForDensity(Resources.java:880)
at com.android.internal.app.ResolverActivity$TargetPresentationGetter.loadIconFromResource(ResolverActivity.java:669)

```

here are the more relevant details

crashing system share app concerned is

```
com.Android google.com.gms

Source file
ResourcesImpl.java
Source class
android.content.res.ResourcesImpl
Source method
getValueForDensity
Line number
246

```

os details

```
magisk rooted Android q project treble ROM

```

# Answer
> 1 votes
Considering that the error seems to be that an icon can't be loaded I would assume the following:

The sharing menu shows a list of apps to share the selected content with. This list shows for each app it's app icon plus the app name.

It looks like one of the installed apps, that is shown in the sharing apps list, has a problem loading the app icon. Unfortunately the error log has no indicator which app icon fails to load.

Unless you recently installed a system update the problem is caused by one specific app that has been installed or updated recently recently.

Note: The sharing list is AFAIK automatically generated by the content type to be shared. Each app contains in it's manifest rules and content types it can accept. Upon installation these information is AFAIR copied into a central system-wide XML file (don't remember the exact file name). Hence by modifying this file it would be possible to remove certain apps from the sharing menu, however this XML file is updated/modified if you install or update an app. Hence the manual changes may be overwritten frequently (I never tried this therefore I don't have any experience how long a modification can last in this XML file).

---
Tags: share-menu, android-10, java, crash-reports
---


title: Gmail not automatically syncing

text:
# Question
Title: Gmail not automatically syncing
Samsung A40 OneUi 1.1
Connected to wifi
After an email arrives to inbox, the phone (screen turned off) will not register this and no notification is given. After waking up it will sometimes sync but not always, after opening Gmail app it will usually sync but not always. Waiting for dozens of minutes and still nothing.

In such case, when I go to Account \> (account) \> syncing then Gmail syncing is enabled, but "last synced" can be e.g. 20+ minutes old.

Clicking to sync icon manually there or by pulling down in Gmail app it would sync successfully. I've read that the info about new mails is supposed to be pushed to the device so not sure why syncing is necessary actually, but it works like that...
2 Gmail accounts are bound to the device, but both have the same behavior

I tried (when account-related then was done for both accounts)
\- Re-enabling syncing of Gmail
\- Global auto sync is enabled
\- Mobile data background usage is allowed (it's on wifi, but ... just to be sure)
\- Wifi works correctly
\- Checked battery settings - changed global to optimized mode (which is the most performance-focused and least battery optimization-focused mode available despite the name)
\- Gmail is not set to be forced to sleep
\- Gmail working in background is not disabled
\- Checked memory-related settings, not seeing anything off
\- Syncing is enabled within Gmail app itself \> account settings.
\- Notifications within Gmail app's own settings screen are enabled
\- All notification options are enabled for Gmail app in the system screen for notification settings of the app
\- No optimization 3rd party app etc. is running there
\- Restart didn't help

Any idea how to fix this? Thank you

# Answer
> 0 votes
Had the same issue. I have also checked everything twice and this is how I have finally fixed it. I went in the Settings -\> Apps -\> gmail -\> Storage -\> Clear Data, then restarted my phone.

---
Tags: sync, gmail
---


# Question
Title: Google Pixel 3 - Cannot Stop Security Updates
I just recently got the new pixel 3 and have loved the phone from stem to stern but I have this huge issue with it. Since I turned it on and ported all my contacts, photos, etc over it has not loaded all my apps. I found out this was because it has been installing system security updates non-stop for over 24 hours now, rendering it basically useless.

I can't use this phone in this state. I've tried clearing the google app cache and storage and it keeps on chugging through security update to security update. I can't even tell how many it has completed or has yet to do because it has no indication of how many are left, at all. All I can see is the current update's progress. I've had to reboot the phone twice this morning just for the security updates.

Is there a way via rooting the Pixel 3 or entering developer mode, or just some setting i overlooked that I can tell the system to stop updating so I can have a useable phone? Or am I up a creek.

# Answer
> 0 votes
Unfortunately this this the proper way to initialize a newly bought Android device.

Google usually releases every month a new security update and each security update has to be installed individually, and often after the update installation a restart is required.

Hence if you get a device that for example was produced 6 months before you have to install up to 6 updates one at a time.

In this case the Pixel 3 has been released in October 2018. If the device you got was produced at that time up to the time of the question up to 8 updates have accumulated and each update has to installed one-by-one plus reboot. Hence the first hours after switching on a new Android device you are busy installing security updates, which usually requires several buttons to be pressed at the correct time.

---
Tags: rooting, ota-update, google-pixel-3-xl
---


title: Disable touch screen while using scrcpy

text:
# Question
Title: Disable touch screen while using scrcpy
I have a broken-screen, non-rooted Xiaomi Redmi Note 6 Pro that looks like this

and I'm experiencing a LOT of ghost touches (and the digitizer's gone).

I am using `scrcpy` to control it from my PC, so I want to disable the touchscreen because otherwise it interferes with my commands and does what it wants.

I don't want to detach the digitizer physically since I have no tools for opening my mobile and this one has to be opened from the screen, so I could damage it more.

How can I do it (possibly with ADB)?

# Answer
> 6 votes
So I fixed it the way it was suggested me by @rom1v `scrcpy --turn-screen-off` and works better than what I was expecting!

---
Tags: adb, touchscreen, scrcpy
---