# Question
Title: Is Mozilla Firefox for Android, Fennec, using same Desktop Firefox "Quantum Engine"?
I have, up to now always thought that Firefox for Android (codenamed **Fennec**) uses much of the same codebase as the Firefox for Desktop (Linux/Mac/etc...). However this recent post on HackerNews makes me think I might have got this wrong.

> This marks the last Android release with extensions/add-on support. There will not be a 69 release of this edition of Firefox for Android ("Fennec").

I am of course concerned about the add-ons support, but also remain confused, to the best of my understanding Firefox on the Desktop systems has already been using the changed new Web-Extension API, has Fennec not supported this, and more importantly:

is Fennec something different (if so how) to the Desktop Version of Firefox (which I suppose is gradually becoming more Quantum).?

# Answer
> 3 votes
Fennec (\<=68) is being phased out in favour of Fenix (\>=69).

From that standpoint, Fennec will be "frozen" at version 68 and will not be updated to the engine used by the desktop version of Firefox 69.

Fenix will, at some point in the future, replace the current version of Firefox Android and is slated to begin at version 69, with some overlap with version 68.

Fenix features a largely rewritten architecture and engine and brings a lot of potential benefits, but the existing Fennec is pulling too much developer time away from it and causing problems in both camps. As a result it seems they want to draw a line in the sand, call an effective halt to Fennec and move over the majority or developers time.

Android Police have some more information detailing the change.

One of the things not currently supported in Fenix is extension support, and it is for that reason that the article you list states that Fennec is "the last Android release with extensions/add-on support."

It is currently unclear, as far as I can see, as to what the intention actually is with regards to extension support in the future. It may well be that if we choose to upgrade in the meantime that extensions are lost temporarily but, short of Firefox following Googles lead with regard to crippling the extension system, I would expect them to return *at some point*.

It does appear that there is still some discussion going on and that feature parity with the current version (Fennec/68) is intended.

The mobilisation of developer time might actually turn this feature from "nice to have but low priority" to being actively worked on.

# Answer
> 0 votes
Fennec: Firefox for Android (based in FF version 68.x). Fenix: Firefox for Android (based in FF version above 69.x

Fenix is based in Android Components and GeckoView (Firefox Quantum engine)

Curiously the usage of names can be a little bit confusing because the app "Fennec" (from F-Droid) at the moment is based on the latest Firefox( Fenix).

---
Tags: firefox-for-android
---


# Question
Title: Extracting the a system app from stock OTA, then installing it on a custom ROM
I'm using a OnePlus 9 Pro running crDroid v7. The OnePlus 9 Pro is made in conjunction with Hasselblad, they provide a better camera and accompanying app that utilizes the camera to it's full potential. I installed the custom ROM for it's extra functionality, but there have yet to be good GCAM configs for the special camera, or other camera apps that work good with this model, so I would like to have the stock camera app installed on the custom ROM. Is this possible? The stock ROM for this model is called Oxygen.

Here is what I've tried so far:

1. I've found an extracted .apk from the indian oxygen, and I've tried installing this .apk using the systemize magisk module. This installs the app, but it doesn't function. Afterwards I found out this was for the 9R, not the 9 Pro.
2. I've found a dump of the OTA, and extracted the /system/priv-app/OnePlusCameraService folder from it. I've tried putting this folder into the /system/priv-app/ folder on my custom ROM. This didn't do anything (visible).
3. Inside the dumped OnePlusCameraService folder, there is an .apk file. I'm guessing that's standard. I've tried installing that .apk file using the systemize magisk module. This cause my phone to get stuck on the booting animation after reboot.

I do not understand the app installation process that well. So I'm kind of at a loss right now. Is there a way for me to extract the stock camera app from the OTA dump, and install it on my custom rom? I forgot to mention the fact that this app does have to be installed as system, otherwise the installation process will simply fail. OTA Dump: the dump

I appreciate all the help I can get! :D

# Answer
> 2 votes
You simply can't install Oxygen OS camera on your OnePlus device running crDroid because the only requirement to run the Oxygen OS app package on an AOSP based ROM isn't the apk from an OTA dump alone. No matter you install it as a system/app or system/priv-app or /system/vendor/priv-app etc, it'll still force close.

You need to port the necessary camera libraries, the apk itself, some props etc to enable it to function on AOSP. YOu might also need the exact stock ROM signature on your device (I assume crDroid is using Pixel 5 signature). All this is really hard even for an experienced dev since OnePlus ofcourse don't want you to get all those special camera features on anything except on the stock ROM.

Googling "Oxygen OS Camera Port" will help you find some port APKs but I'm afraid you would still not get those "Hasselblad" specific features.

---
Tags: root-access, custom-roms, camera, oneplus
---


title: Magisk v23 with Android Studio

text:
# Question
Title: Magisk v23 with Android Studio
I am trying to install LSPosed \[1\], but it requires Magisk v23 \[2\]. I tried to install Magisk v23 using the instruction here \[3\], but I get this result:

```
- Device platform: x86
- Installing: 23.0 (23000)
- Copying image to cache
! Process error
! Installation failed

```

In one of the steps, the instructions say you can use one of these three commands:

```
patch.bat
patch.bat manager
patch.bat canary

```

I ran through all the steps three times, each time using a different command above, none of them worked. Note, I am able to install the older Magisk v21.4, but nothing newer. I am using Android Studio with a Virtual Device:

```
API 27
Android 8.1

```

I have seen other people show screenshots of this working, but they refuse to explain how they were able to do it. Does anyone know how to get this working?

1. https://github.com/LSPosed/LSPosed
2. https://github.com/topjohnwu/Magisk
3. https://github.com/shakalaca/MagiskOnEmulator

# Answer
> 1 votes
Okay so you have magisk 21.x working...

```
su
echo $PATH

```

Copy the output string.

Use a file explorer with root access and

1. Head over to /
2. Edit init.environ.rc by adding "export PATH \<that copied string\>" as the first line of the file.
3. Now, if there is no sbin folder in / , make one
4. Now from magisk manager (or whatever way), upgrade to Magisk 23

---
Tags: android-emulator, magisk, xposed-framework, android-studio, lsposed
---


# Question
Title: How to insert 2 SIM cards on Ulefone Armor 9?
I have the Ulefone Armor 9. It states it has a Hybrid Dual SIM (Nano-SIM, dual stand-by). In the settings, it seems it says there are 2 slots for SIM cards. But for the life of me, I cannot figure out how to put in 2 SIM cards.

Opening the slot seems there's only a place for 1.

Has anyone seen this before? How is it supposed to work?

# Answer
A hybrid dual SIM slot is a technology that offers both features of a SIM card and a MicroSD card.

The hybrid dual SIM slot also means the OEM provided just two spaces instead of the traditional three slots for dual SIM cards and a MicroSD card. In other words, either two SIM cards are used or one SIM card slot is sacrificed to serve the role of a MicroSD slot.

Simply put, you have two options:

1. Dual SIM (one micro/nano SIM + one micro/nano SIM)
2. One micro/nano SIM + MicroSD card
> 2 votes

# Answer
To open the second slot, push the pin-like end of the tool that's supplied with the phone (or a needle or other small pin) into the tiny hole at the end of the secondary cover.
> 0 votes

---
Tags: dual-sim, ulefone
---


# Question
Title: How do I get photos in Gallery on my phone to show up on/sync with my Nexus 7?
Auto sync is turned on in both devices but nothing shows up on the Nexus 7 unless I manually transfer pictures via bluetooth. Notably, Calendars and People sync without a problem. But not Gallery. My phone is a Galaxy Nexus. Both devices are running Android 4.1.1.

# Answer
> 0 votes
AFAIK, pictures from gallery are not uploaded to picassa gallery by sync, unless you intentionally upload them by sharing options.

To put this to test, I just now tried to capture an image though camera and synced. It did not turn up in Picassa.

I don't know why this way, but on the first hand if your first device is not uploading image to picassa with sync, there is no way your other device is going to get it.

There are plenty of other ways using apps like sugar sync, drop box etc. but I assume here the question was asked in compassion with contacts and calendar which gets synced with Google's services without any other app support.

# Answer
> 0 votes
I believe you can install one drive on both and upload to onedrive and it will be on other device you can set up your pics to backup to one drive and it will do the work for you

---
Tags: gallery
---


# Question
Title: How do I change what "Web Search" in Gmail opens as its search engine?
## Question Summary

How do I stop Samsung Internet from popping up when I select text in Gmail and click on the 'Web Search' "button", and instead bring up something else, such as DuckDuckGo search, or Google search, but not Samsung Internet?

I do not want to root this device in order to fix this issue, because if I had to go to that level, then I would just cope with it by copying the text to tge clipboard, followed by pasting into a web search engine outside of the Gmail app.

## Android version

## Device Model

## Detailed Problem Description

Recently, perhaps due to some Android update on my Samsung Galaxy tab S3, the behavior of the 'Web Search' popup dialog (see first image below) has changed. Before, it would allow me to search in some browser or other app, but now it pops up something called 'Samsung Internet':

This is a screenshot of what pops up when I click on 'Web Search':

## Things that I tried

I have tried selecting text in other apps, and I see something different, and that difference is acceptable to me, as it is searching in DuckDuckGo search engine (this other app happens to be Firefox):

---

I looked inside the Gmail settings, and there does not seem to be anything there that indicates how to change the default search engine that it uses.

---

I looked at Settings/Apps/Gmail that was referenced by https://www.greenbot.com/article/2879150/how-to-change-the-default-search-engine-in-android.html but I did not see any indication of which search engine Gmail itself would use. My theory was that Firefox has some specific setting that can be changed, so I figured that Gmail itself would as well but that is not the case.

---

https://answers.microsoft.com/en-us/bing/forum/bing\_gettingstarted-bing\_tips/how-do-i-set-bing-as-default-search-engine-in-my/b725b25b-3ac8-4c3e-a1ed-0a44a1769164

'Settings, choose Advanced, then Set Search Engine' does not show anything about search engines at all.

# Answer
> 1 votes
For Android 12 (and maybe your phone):

Settings -\> Apps -\> Samsung Internet (or whatever app you are trying to avoid) -\> set as default -\> clear defaults.

This worked for me when Google took over "web search" events in gmail.

---
Tags: samsung-galaxy-s-3, gmail, tablet, samsung-galaxy-tab, search
---


title: Can't reinstall nothing to /system

text:
# Question
Title: Can't reinstall nothing to /system
I tried to update my Xiaomi Mi A2 to Android Pie since yesterday the Beta was Released. At first, I tried to install the official provided one, but after facing some errors, I installed the Treble version of the Android Pie Pixel Experience ROM.

It was working perfectly, but after installing Pixelify with Magisk, my WiFi stopped working, and I got the error MAC 02:00:00:00:00.

After trying some things with terminal apps and root, I opted for reinstalling the modem image, which I thought that could solve the problem, but instead, the phone didn't turn on, it kept on the Android One screen. So after waiting for some hours, I decided to format the phone and lose all of my data.

I formatted the system partition with `fastboot erase system_a` and `fastboot erase system_b`, but when trying to reinstall the PixelExperienceP ROM, I receive this error again and again:

```
fastboot flash system_a PixelExperienceP-arm64-ab.img
Sending sparse 'system_a' 1/5 (524284 KB)          FAILED (Error reading sparse file)
Finished. Total time: 24.591s

```

After that, I am not allowed to send any command to the phone until I restart de bootloader.

I have tried to install different ROMs, the stock one, other Android versions, but I get the same error on all of them.

Please, any ideas on how to solve my problem? I am really worried about having broken it. Thanks in advance.

# Answer
> 2 votes
I just solved it simply by trying and trying, changing cable, USB port, restarting computer...

# Answer
> 0 votes
Was facing the same problem with two devices (Google Pixel 4 and Samsung Galaxy S21 Ultra 5G (Exynos variant))

I've found that, in my case, for both the devices discussed, using the vendor provided flashing solutions (Odin 3.14.4 for Samsung and "flash-all.bat" script for Google) the procedure was stuck/hanging on some large transfer for both the devices (Odin was simply stuck at the `"SYSTEM"` phase (`system.img`) with the green progress bar halted/not moving while the Google script returned the infamous "`FAILED (Error reading sparse file)`" error message after "`Sending sparse 'vendor_b 1/2 (524284 KB)`").

I've tried leaving the devices connected for over 30 minutes, changing/swapping USB cables, upgrading/downgrading USB/Thunderbolt drivers, BIOS/UEFI to no avail.. I've retried the procedure many times with no different outcome..

I've then connected the devices to a USB 3.0 "A" port of my motherboard (Gigabyte Z170X-UD5 TH - fully updated Windows 10 1607 LTSB) instead of the USB/Thunderbolt enabled USB "C" port on the rear that I was previously using and to my surprise it worked flawlessy for both on the first try!

No idea if the Thunderbolt IC (or maybe its driver) was the culprit TBH but it seems so..

Just my experience

# Answer
> 0 votes
I was having `FAILED (Error reading sparse file)` issue when I was connecting the USB cable to the dock of my laptop.

Instead connecting the USB Type-A end directly to my laptop port helped me fix this problem. Be mindful of USB 3.0, USB Type C and USB 2.0 ports (try with all) and run your commands in command prompt in Administrator mode.

---
Tags: rom-flashing, fastboot, rom, treble
---


# Question
Title: How to delete erroneous email address from Android autofill?
The autofill in my phone is showing some outdated addresses in the suggestions when I have to enter my email address in certain apps. Is there any way to delete these suggestions?

One such place where these email suggestions can be seen is in Chrome's settings, where you create a new address for form autofill. Go to Settings, Addresses and more, Add, scroll to the bottom and click on the email field, and your email addresses should be shown.

# Answer
> 0 votes
This was happening to me, and I resolved it by removing the data from Google Contacts.

---
Tags: auto-fill
---


title: Can I disable OEM lock from computer?

text:
# Question
Title: Can I disable OEM lock from computer?
Can I disable the OEM lock of my Samsung Galaxy S8+ from my computer?

# Answer
For security reasons the only way to change the option "Allow OEM unlock" is from within the running device in the developer settings menu.
> 2 votes

---
Tags: rooting, root-access, installation, operating-system
---


# Question
Title: How to view /Android/data directory on external sd card on Android 11?
After updating to Android 11 I have noticed that I am unable to access the Android/Data/ directory on my external sd card (able to access internal storage /storage/emulated/0/Android/data with Storage Access Framework). This is evidentially due to the new scoped storage requirements.

I believe this an unavoidable fact, if anyone can show otherwise I would be interested to see.

Is it possible to view this directory if the phone has been rooted?

# Answer
> 0 votes
Due to storage changes in Android 11 it is no longer possible to access the .../Android/Data/ directory on an external sd card on an unrooted phone.

From the Android developer documentation:

> On Android 11, apps can no longer access files in any other app's dedicated, app-specific directory within external storage.

It remains possible to access the /storage/emulated/0/Android/data/ directory, see Android 11: Can't see contents of Android /data even with root.

---
Tags: root-access, external-sd, storage
---


# Question
Title: Set two languages simultaneously for the stock keyboard?
I want to have both english **and** german prediction and auto correction at the same time for the stock keyboard (Jelly Bean here).

My use case:
Multi-tasking between english and german domains on my tablet where I both need the keyboard (e.g. Google Talk with my german friends and editing/answering questions on Android Enthusiasts in english). Problem: I don't want to switch off prediction/auto-correction nor do I want to switch to an alternative keyboard. At the moment I have to manually switch between en/de keyboards when I switch tasks (from *Google Talk* to the *browser* and back). This is annoying. I don't mind the keyboard layout (QUERTZ or QUERTY) but would prefer the english one.

How can I have simultaneous multi language prediction/auto-correction in the stock keyboard?

# Answer
> 9 votes
The stock keyboard in Jelly Bean (4.1 or 4.2) does not support multiple languages simultaneously. However, SwiftKey, a third party keyboard, supports advanced predictions with up to three languages simultaneously.

SwiftKey Official Website
SwiftKey on Google Play

Note that SwiftKey is a paid app. You can find the non-trial versions of the application in the Play Store. If you are looking for Swype-like functionality, note that an upcoming version of SwiftKey also includes it.

# Answer
> 2 votes
I don't know how to use them simultaneously, but yes, you can have 2 languages. Make sure the second language is installed under settings. Then under keyboard make sure you tick the setting an extra key should appear when using multiple languages. Then when you are typing, let's say in whatsapp or so, go to your menu and tick the box of the second (installed) language under settings and voila, an extra button appears next to the space bar and on the space bar you see which language you are using.

# Answer
> 1 votes
This is how I solved this problem on my HTC One:

Go to Settings-\> Languages and Keyboard.

On this list is a "Swype" setting that shows it's set to "Swype". Not informative. But press your finger on it anyway.

Bam! The most useful menu that I never knew existed appears. You can add a language that will be in use simultaneously with your primary language. Spelling correction and word prediction comes up for both languages. Espanol was on there by default, there was an option to download more languages.

# Answer
> 0 votes
Solution to multiple and simultaneous languages on Motorola DROID RAZR and Android version 4.4.2:

Settings; Language and input; KEYBOARD & INPUT METHODS; Default; Android Keyboard - you see the 'option' menu selection to the right. Tap it. Input languages sub-menu displayed. Select 'Input lanaguages' to list the languages available and those you want enabled. In the same Input languages sub-menu you have multiple options including Add-on dictionaries which if you select it you can see which are installed or not.

Operation: When entering text you will see the language currently selected displayed on the spacebar. And to left of the spacebar you see a 'world' icon used to swith languages to type and voice input and with word prompting and spell check correction.

# Answer
> 0 votes
This doesn't directly answers your question, but this explains how to use several keyboards/dictionaries at the same time and how to create custom keyboard/dictionaries.

Another Stackoverflow question about using multiple keyboards on Android: https://stackoverflow.com/questions/20197421/adding-a-second-dictionary-to-the-spell-check-in-android-4-3/44033793#44033793

**Here is how for example to have a *French keyboard* with *French dictionary* \+ *French keyboard* with *English dictionary***

Go to `Android settings > Language & Input > Gboard` (Google default keyboard).

Then in `Languages`, you can tick all the keyboards you want. In my case, `French (France)` and `English (UK)`.

This will give you the usual AZERTY French keyboard and the usual QWERTY English keyboard.

If you want the English dictionary with a French AZERTY keyboard, you can go to `Preferences > Personalised input styles` and create a new keyboard `Language: English (UK) Layout: AZERTY`, then in the `Languages` menu, you will have a new keyboard in the list, `English (UK) (AZERTY)`. Tick it.

You now have 3 keyboards in your list: `French (France)`, `English (UK)` and `English (UK) (AZERTY)`.

While using the keyboard, you can then switch from one keyboard to another either with the special button or by holding the `Space` bar. The `Space` bar also shows the current language being used.

**Using multiple dictionaries at the same time:** In `Text correction`, there is an option called "multilingual suggestions", this will use several dictionaries *at the same time*, recognising as valid all words from the selected languages. If active, the `Space` bar will show something like FR-EN, to indicate that several languages are active at the same time. I personally don't like it.

# Answer
> 0 votes
The same problem happened to me a few days ago, which was resolved thusly :

* Go to the keyboard settings : Settings\>Language and Input\>Virtual Keyboard\>Samsung Keyboard
* Check that your languages are selected in 'Languages in types'
* Make sure that the "Predictive" option is activated.
* **Make sure that the "Auto replacement" option is activated.**
* Restart the app on which the keyboard was used so new settings are applied

That last point is the one that made it work again for me so I can type ugly things like "Holà yeah le clavier marche again" without having to slide the space bar.

This was suggested to me by the French Samsung support which answered (within a day !) the following :

> En effet, pour apporter une solution à votre demande, nous vous proposons d'effectuer les manipulations suivantes dans les "Paramètres" du clavier :
>
> * ajouter le français et l'anglais dans "Langues et types" ;
> * cocher le "Texte intuitif" ;
> * cocher "Vérif. orthographe auto." ;
> * Fermer et redémarrer l'application sur laquelle vous avez fait le reparamétrage du clavier.

# Answer
> -1 votes
p

This is how to do it 8 years later on a Samsung phone in German. Hope this still helps.

# Answer
> -2 votes
In Android keyboard settings there is an option to slide your finger along the space bar to change languages.There you can selec the languages you want to use.

---
Tags: keyboard, localization, auto-correct, text-prediction
---


# Question
Title: Script to interact with camera and take RAW pictures for astrophotography
On a SAMSUNG Galaxy Note 20 Ultra, I would like to take back to back pictures and store them as RAW format automated by a script (that needs to run for hours). I much prefer to store bit counts by the camera sensor if possible (this is for astrophotography).

I'm a python developer and have never been exposed to android ecosystem (please be easy on me). I would appreciate a step-by-step guide.

# Answer
1. Android has a `Doze mode` which means that unless the device is plugged in for power, apps will be suspended after a period of time.
2. Android device manufacturers may add in their own power saving mechanism, resulting a site like dontkillmyapp.com to exist. If you are running your activity while charging, you should not have issues, but just in case, be aware of OEM/ODM power management.
3. If you are looking for an camera app there is Open Camera whose help page is extensive regarding available controls/settings and can be configured to take multiple images with a timer. Alternatively look through Izzy's list of camera apps to see if an another camera app fits your needs.
4. There are apps like Tasker which allow for additional automation.
5. Note that while a specific device may have a large image sensor, third party apps are limited to what is given by the Android Camera APIs, and that the manufacturer's "stock" camera app may have features not exposed via official APIs.
> 2 votes

---
Tags: samsung, camera
---


# Question
Title: If I set up a VPN, does *everything* go over it?
If I set up a VPN connection for Android, what gets routed over the VPN? Just web browsing? All internet connections from all apps?

In Cyanogenmod, in the Add OpenVPN config, "Advanced" settings, there is an option for "Redirect gateway - Force all traffic to berouted thru the VPN tunnel", which is off by default.

With this off, which apps/communications get routed through it?

The other VPN types do not have this option. Do they work this way or not?

After setting up a VPN, how can I verify that it's working?

# Answer
The setting that you're talking about is in effect the `--redirect-gateway` option of OpenVPN and is documented on the OpenVPN man page

> `--redirect-gateway`
>
> Automatically execute routing commands to cause all outgoing IP traffic to be redirected over the VPN.
>
> ---
>
> This option performs three steps:
>
> 1. Create a static route for the --remote address which forwards to the pre-existing default gateway. This is done so that (3) will not create a routing loop.
> 2. Delete the default gateway route.
> 3. Set the new default gateway to be the VPN endpoint address (derived either from --route-gateway or the second parameter to --ifconfig when --dev tun is specified).
>
> When the tunnel is torn down, all of the above steps are reversed so that the original default route is restored.

The routing of all network connections occurs at the system level. Only apps that have the ability to modify the routing table of the device to use a different gateway than the default can bypass the VPN. Theoretically any app with SuperUser access could do this.
> 5 votes

# Answer
Typically, yes.

You're creating a private network -- you want to route stuff through the network. It's private.

If only the browser applications were routing through the private network -- some other app could be sniffing activity, and sending it through the other connection. Goodbye, private!

See Also:
> 3 votes

# Answer
> If I set up a VPN, does *everything* go over it?

No, e.g. if one tethers one's Internet connection on the Android phone that is connected to the VPN server, by default the connections going through tethering won't go through the VPN.
> 1 votes

---
Tags: cyanogenmod, vpn, wifi-hotspot, encryption
---


title: A phone as a home 4G modem/router?

text:
# Question
Title: A phone as a home 4G modem/router?
I live in a rural area where traditional cable, fiber, and even DSL are not a possibility. I am using a weird wireless system a local ISP set up for this area, but its flaky, slow and expensive. The only thing it really has going for it is there are no data caps.

I can get 4G signal for T-Mobile, however (and Verizon, but their data caps drove me away), and I'm considering making my home internet connection consist of a dedicated Android phone on a T-Mobile 4G unlimited contract, using its WiFi hotspot. (I would probably set up another wireless router for the actual LAN so I'd have good coverage of the house, but it would use the phone's network as its uplink.). I would use a phone rather than a USB modem to take advantage of T-Mobile's unlimited data package.

Is this a bad idea? Would the phone fry if I left it on and broadcasting its WiFi hotspot 24/7? I have an N5 but I've never used the hotspot for an extended period before - are they flaky? Would it drop IPs or anything like that and require reboots? Would T-Mobile decide I'm breaking a rule and throttle me down?

# Answer
> 2 votes
That's not a bad idea at all. I have Verizon Wireless and I do this all the time. That's what tethering is for, and the USB option as well. 4G is fast, and for what it's worth, based on what you've said, it seems like a fantastic idea.

To answer your second question and forward, no - - your phone wouldn't fry, providing you got a phone with good specs.

As far as I'm concerned, they have been more reliable than regular average routers. It's LTE after all, so it's not a surprise. Can't speak about the throttle, that depends on T-Mobile and their terms. I think they do throttle, but it's not a huge difference.

I'd recommend talking to someone from T-Mobile and asking them what device has best specs and battery power. Also, you can get a data monitor to monitor all traffic and block / allow certain connections via incoming addresses or devices. Those apps are available on Google Play so let me know if you need them.

I have a family member who uses T-Mobile tethering amongst six devices at home, two of which are a PS3 which plays Netflix and it's not slow at all. Randomly given of course, every server has ups and downs.

# Answer
> 0 votes
Another reason to use a phone is that a lot of 4G modems disconnect because of memory and other problems, causing multiple reboots. The phone is more reliable

---
Tags: wifi-hotspot, 4g
---


# Question
Title: My Xiaomi Android smartphone suddenly doesn't see my WiFi's SSID in the WiFi connection list
I've had an internet outage and afterwards my Android 9 Xiaomi smartphone did not see my SSID at all in the system WiFi list and in the WiFi Analyzer app. My phone only supports 2.4 GHz WiFi, whereas other devices use 5 GHz. 2.4GHz is on on the router.

The SSID Broadcast is on, I even tried setting the SSID on my phone that didn't work.

I tried setting the channel to 9 and 5 correspondly without any avail (as discussed here The SSID of my WiFi is not appearing in the list of neighbor networks ).

All my other devices have no issues.

Any help is very appreciated.

# Answer
> 0 votes
All you have to do is to disable Band Steering, since otherwise the router automatically detects devices on the 5 GHz range and automatically turns off the 2.4 GHz radio.

Case closed **bangs hammer**

---
Tags: networking, wi-fi, router
---


title: How can I export MIUI notes?

text:
# Question
Title: How can I export MIUI notes?
I'm using a Xiaomi RedMi 3S phone, whose MIUI environment includes a "Notes" app.

The app itself does not have an export feature. Can I somehow locate/extract the note data - for all notes - into text files, or some other readable format?

Note: I don't know where this data is stored.

# Answer
> 3 votes
Solved it in the following way:

1. Synced notes with Xiaomi Cloud
2. Logged in to Xiaomi Cloud with my browser
3. Intercepted network requests with the help of BurpSuite
4. Parsed JSON-bodies with Python
5. Exported to Excel
6. TODO: Upload to Google Keep

# Answer
> 0 votes
Choose an option:

1. Simple copy-paste.
2. Share/send note option - whichever exists - thereby sharing (exporting) it to the app (and hence format) you prefer.
3. Screenshot, because that's a readable format too, logically speaking.

Don't know what the version of notes is in your Redmi 3s. Probably very outdated. Otherwise in newer apps, you have a not so good export feature.

---
Tags: miui, notes, export, miui-10
---


# Question
Title: Remotely view and log out of Gmail accounts used to sign in on Android phones
I have a Gmail account that I have logged in to on multiple phones. I use it only to download things from the Play Store (don't even check email from the phones). I mostly access this account from a PC browser to view emails.

How can I check which phones I am currently logged in on from this account, and how do I remotely log out of them if necessary?

The "last account activity" link at the bottom of the Gmail PC browser interface seems to only show other browsers where I have logged in to view email. I would like to see a list of phones I am currently logged in to, the history of all phones I have logged into before if this is available, and log out of them individually as needed.

# Answer
You can see all logged-on devices connected to your Google account on the "Google Your devices" web site: https://myaccount.google.com/device-activity

For each Android device you can select in it's three-dots-menu to logout on this device.

Note that this totally disables the device for Play Store and Gmail on the selected device. This is by design as you can not logout one specific service like GMail but keep the account active for Play Store:

Logout from Gmail account without logging out Google Play Store account
> 2 votes

---
Tags: gmail
---


# Question
Title: How can I long press on android screen projected on PC using adbcontrol?
I am using adbcontrol (https://android.stackexchange.com/a/168907/37436) to stream and control android screen of a cracked android phone. It looks like this method is pretty slow and does not detect long presses. Is there any way to make this program detect long press on the projected screen, and to make to run any faster? I have set screenshotDelay = 100 in the config.properties file.

Alternatively, is the MyScreenExplorer (https://android.stackexchange.com/a/42131/37436) app any better? I wasn't able to install this app on this phone before and couldn't figure out what the problem was so I gave up. But if this app is noticeably better (faster response, has log press support, etc) then I will try to install it once again. If there are samsung specific tools that work better, I would like to know about them a well. The phone is an unrooted Samsung Galaxy S4 SHV-E330S with Android 4.x (not sure of the exact version, most likely 4.4)

# Answer
> 0 votes
I know for sure I used adbcontrol to unlock pattern. This mean adbcontrol is capable of swipe, and therefore of long press touch input too. Either something is interrupting touch input (ghost touches) or you are just impatient (because of the haltingly frame sequence)?

Make touch events visible in developer options. Try again very very slow

---
Tags: 4.4-kitkat, touchscreen, broken-screen
---


# Question
Title: Pixel 4a makes a mystery sound with no notification
*Note:* This is similar to Mystery "notification" sound, but not the same symptoms, so I believe it is a different thing.

# My issue

For about the past month, my phone has made a mystery sound almost every day. Video of it occurring here: https://youtu.be/cP4fYYouaAg. It typically happens some time after 9am, and it comes with no notification. As far as I can tell, there's no visual indication of what's happening at all. Does anyone know what this sound is??

## My phone

Google Pixel 4a on Mint Mobile. Formerly T-Mobile prepaid.

## Things I've tried

* searched through all of the phone's built-in notification sounds. This isn't one of them(!)
* turned off NFC, still happens.
* turned off bluetooth, still happens.
* noted location that it happens, doesn't matter (not consistent). Note that when I say location, I mean both geographic location and the phone's proximity to other devices (neither seem to matter).
* noted times of occurrences. Not consistent. Doesn't happen every day, but on the days it does occur, it's usually between 9am and 9:30am CST.
* I wrote down the exact second that this happened one day, then searched the phone's developer logs from **adb logcat -b all.** There were a handful of entries in the seconds surrounding the event, but all of those entries are common occurrences throughout the logs, so they can't be associated with this. In short: this sound leaves no trace in the phone's internal logs.

Thanks in advance for any suggestions!

# Answer
> 1 votes
Following a suggestion from a user on a different forum, I put the phone into safe mode for a few days. This deactivates all external apps. (In the power menu, long-press the power off option.) While in safe mode, the phone never made the sound, which proves that it is some external app.

I am currently in the process of uninstalling my external apps, starting from the most recent. Each day, if the phone still makes the noise, I uninstall the next one. I am bound to find the offending app eventually. (Note: yesterday, I uninstalled Duolingo and it didn't make the noise today, so this may well be it. Couple more days to be sure...)

Final thought: why would an app do this? Though I have no direct evidence of this yet, I suspect that an external app was giving me a lot of notifications, so I must have long-pressed one of those to silence that app's notifications, but somehow, the sound is still getting through. Perhaps a bug is present in that app.

Thanks for suggestions above!

---
Tags: notifications, audio
---


# Question
Title: Google Pixel 4a mic issue - mic won't work when earphones are inserted into headphone jack
When I am on a call, the mic on my Google Pixel 4a works perfectly. When I insert earphones into the headphone jack during a call, the mic suddenly stops working and the other person can't hear me anymore. When I remove the earphones, they can hear me again. What could be causing this?

All I want is to be able to hear the person through my earphones and for them to hear me.

# Answer
> 1 votes
The most likely reason for this behaviour is that your phone detects that you plugged in an audio device, and then tries to use that one over all audio devices it has built into. So instead of using the built in microphone it wants to use the one that is usually built into the volume buttons on your headphone cable. If there is none, than the phone should use the default one, but maybe it just doesn't recognise that there is no external microphone attached.

# Answer
> 0 votes
The issue has been resolved. I tried good quality earphones and headphones and the issue disappeared. It seems to be a compatibility issue with the earphones I was using. As DarkDiamond suggested, perhaps they were being mistakenly recognized as a microphone.

Anyway, if anyone experiences this issue, simply try a different pair of earphones/headphones.

---
Tags: headphones, hardware, headphone-jack
---


# Question
Title: Merging duplicate contact entries from multiple sources
I have multiple copies of the same contacts on my phone, from the Google account associated, and phone contacts etc.

Eg., for a single contact I might have:

* 2 copies on the phone
* 1 copy on my Google account (synced)
* another copy in some other location

This happened on my HTC Wildfire a year ago and now I'm using a Samsung Galaxy S2.

Is there a way I can merge all related contacts and delete the other extra copies? It'd be helpful if I could do this from my PC.

# Answer
Remember: when creating a contact, you can decide where to store it. Usually, there are at least 3 choices: Google, SIM, phone.

If I read your question correctly, it looks like you have a copy in each of these places. In this case, Tirath's suggestion doesn't work, as GMail will only see what's sync'd there (and phone + SIM don't get sync'd). You then might want to take a look at apps like Contact Remover (to ease deletion of the duplicates), or Contact Remover Plus which also offers to merge or move them.
> 2 votes

# Answer
Merge + can link contacts from different accounts together.
> 0 votes

---
Tags: contacts, google-contacts
---


# Question
Title: LG Stylo 3 on Cricket, Wi-Fi randomly disconnecting
I got an LG Stylo 3 on Cricket last month, and already I seem to have a problem. Randomly, it will disconnect from Wi-Fi. When I go into the settings, it'll say that the network is disabled.

Any idea what could cause this?

# Answer
I had the same problems, did all advice given, but this one thing I did helped.

1. Go to Settings
2. Click on Wi-Fi
3. Click on Wi-Fi Manager
4. Click on box if checkmark on

Now it connects and stays connected, at home and everywhere else.
> 1 votes

# Answer
From OP's (now deleted) comment,

> The problem got solved. I turned off Cricket Wi-Fi Manager as Jess in the replies said, then in Advanced Wi-Fi, turned off "Switch to mobile data."
> 0 votes

---
Tags: wi-fi
---


# Question
Title: DEX died after Android Debug Bridge (ADB) Bloatware Removal
I decided to debloat my Samsung Note 20 Ultra phone of all the garbage apps Samsung installs. I used ADB shell to perform this bloatware removal and the list shown below identifies all the Samsung bloatware app names which I used as a guide in my removal process.

Everything went perfectly except for the fact I mistakenly uninstalled DEX which is an app that allows me to connect my Note 20 Ultra to a monitor via an HDMI connection. Once the connection is established DEX would automatically start and magically generate a "Windows Like" desktop GUI on the monitor. In short, my DEX is no longer working in the same way it was working before I performed the debloat process.

I hope somebody in this community can identify to me which Samsung parent app from the list shown below is the DEX app subordinate to? Because my theory is the DEX app is hiding inside one of the parent apps shown below and what is not making it easy is how the word "DEX" is nowhere to be seen. Therefore, I hope somebody can tell me which of the Samsung apps shown below I should leave untouched so my DEX app remains operational.

Any tips welcome.

```
:Samsung Bloatware App Removal List
pm uninstall --user 0 com.samsung.android.service.livedrawing           ::Penup app
pm uninstall --user 0 com.samsung.android.kidsinstaller             ::Kids Mode
pm uninstall --user 0 com.samsung.storyservice                  ::Samsung Story video collage app, now defunct.
pm uninstall --user 0 com.samsung.android.service.peoplestripe          ::Access contacts etc from Edge Screen
pm uninstall --user 0 com.samsung.android.app.galaxyfinder          ::Phone Search App
pm uninstall --user 0 com.samsung.android.service.airviewdictionary     ::Samsung Translate
pm uninstall --user 0 com.samsung.android.easysetup             ::Smart Things setup
pm uninstall --user 0 com.samsung.android.beaconmanager             ::Bluetooth beacon service, location tracking and smart things
pm uninstall --user 0 com.samsung.android.scloud                ::Samsung Cloud Service
pm uninstall --user 0 com.samsung.android.spayfw                ::Framework for Samsung Pay
pm uninstall --user 0 com.samsung.android.samsungpass               ::Biometric replacement for web logins etc
pm uninstall --user 0 com.samsung.android.authfw                ::Samsung Authentication Framework for Samsung Pass
pm uninstall --user 0 com.samsung.android.samsungpassautofill           ::Samsung Pass autofill
pm uninstall --user 0 com.samsung.android.app.watchmanagerstub          ::Galaxy Gear Watch App
pm uninstall --user 0 com.samsung.android.svoiceime             ::Samsung Voice Input
pm uninstall --user 0 com.sec.android.app.billing               ::Samsung Billing
pm uninstall --user 0 com.samsung.android.app.simplesharing         ::Samsung Link Sharing (Using Samsung Cloud)
pm uninstall --user 0 com.sec.android.cover.ledcover                ::LED Phone Cover Service
pm uninstall --user 0 com.samsung.android.rubin.app             ::Customisation Service
pm uninstall --user 0 com.samsung.android.stickercenter             ::Call Stikers, discontinued by Samsung
pm uninstall --user 0 com.samsung.android.aremoji               ::AR Emoji
pm uninstall --user 0 com.samsung.android.livestickers              ::Deco Pic, Photo decoration app
pm uninstall --user 0 com.diotek.sec.lookup.dictionary              ::Samsung Dictionary
pm uninstall --user 0 com.samsung.android.app.social                ::What's New, Samsung Social. Samsung Social Network with Contacts
pm uninstall --user 0 com.samsung.android.forest                ::Digital Wellbeing and parental controls
pm uninstall --user 0 com.samsung.android.ardrawing             ::AR Doodle, drawing on photos and video in 3D
pm uninstall --user 0 com.samsung.android.arzone                ::AR Zone, Provides AR features.
pm uninstall --user 0 com.samsung.android.app.tips              ::Tips, User manual and usage tips.
pm uninstall --user 0 com.samsung.android.aremojieditor
pm uninstall --user 0 com.sec.android.mimage.avatarstickers
pm uninstall --user 0 com.samsung.android.kgclient              ::Payment Services

```

# Answer
> 0 votes
Others I don't know but you'd need to keep finder as finder is a search framework that is also used in dex. There may be more apps you need to leave alone

---
Tags: applications, adb, hardware, samsung-dex
---


# Question
Title: What is the difference between Calendar and Google Calendar in Account sync settings
In `Settings > Accounts > Select Google Account > Account sync`. There are switches for synchronizing various content of the account, such as `Contacts`, `Drive`, etc. I also have `Calendar` and `Google Calendar` in there. What is the difference, why is there two?

Phone models: Google Pixel 5 Motorola Moto G8

# Answer
Same question here. Getting an old Samsung Ace 3 out of the drawer, rooted and "upgraded" to LineageOS 14.1 / Android 7.1.2. `Settings / Accounts / Google` account shows `Calendar` and `Google calendar`, both with switches. As far as I know, this is not related to any other calendar app that may be installed on the phone, since this settings allow to sync different google services/functionalities.
> 0 votes

---
Tags: calendar, android-10, motorola, google-calendar, google-pixel
---


# Question
Title: All contacts lost on Xiaomi Redmi Note 8 Pro, how to find a reason? "Deleted on Sprd - ums512_1h10_Natv"
I’m an iPhone user myself, so I am not well familiar with how Google and simultaneous Xiaomi backup management.

My father who has Xiaomi Redmi Note 8 Pro told me all his contacts are missing. I’ve tried to restore the contacts on the phone, but Xiaomi backup management wasn’t even loading (showing errors at "loading backup 0%"). I wasn't able to find Google Contacts at all on the phone.

I took a route of logging in to my father’s Google account on the web browser and then proceed to contacts.google.com where I could see all his contacts in trash and the **"reason" was listed as "Deleted on Sprd - ums512\_1h10\_Natv"**. I was able to restore all the contacts from trash (thankfully) and immediately after restoring the contacts there on contacts.google.com the contacts appeared on the phone.

I am googling this message and see some traces of similar problems with contacts but nothing that looks useful.

How could I find out what app, system component or a setting could cause the contacts to be deleted? And how could I configure my father’s phone to prevent this problem in the future? Loosing contacts is a real horror story.

Thank you!

# Answer
> 3 votes
The reason is a faulty Infotainment system from Joying – https://forum-joyingauto.com/showthread.php?tid=3629 apparently an old issue with this system.

Would be nice from Google to assign some source of data like the main one and not respect all connected devices with the same priority.

---
Tags: contacts, google-account, xiaomi
---


# Question
Title: Gaining real su permission on GNURoot Debian instead of proot env
I'm running a Samsung Galaxy J110H, Android KitKat 4.4.4, rooted.

Is it possible to attain real superuser privilege on GNURoot Debian instead of fakerootfs? Is there any way as in when I type in `su`; there is an actual su prompt asking me to allow it? This is the outcome when I type in `su`:

```
root@localhost:/# su
setgid: Permission denied
root@localhost:/#
- - snip - -

```

Also `apt-get update && apt-get upgrade` returns:

```
unpacking python (from .../python_2.7.3-4+deb7u1_all.deb) ...
Processing triggers for man-db ...
/usr/bin/mandb: can't set effective uid: Permission denied
Setting up libexpat1:armel (2.1.0-1+deb7u2) ...
Setting up python2.7-minimal (2.7.3-6+deb7u2) ...
- - snip - -

```

# Answer
I too am getting this error in GNURoot. Search google and saw your question posted in many stack forums. I wanted to change from armel to armhf and followed the instructions on the Debian website but came to the error you stated. What I had to do was `chown u+s /usr/bin/mandb`. The error still popped up but everything worked like a charm.

I think you need to chmod dpkg again and then everything will run well. Btw I too am still running KitKat.

**Edit:** After further testing and usage of gnuroot, it turns out that the method i stated above on bypassing the permission denied error does not solve all problems. After looking at `/etc/fstab` in the proot environment, there are no mount points. If you run the command mount from the gnuroot terminal you will notice that it will show mount points of the host system. Also you will notice that running `chmod 4777 /` or `chmod u+s /` the permission denied error will appear. If yoy run `ls -l /acct` it will list the `/acct` of the host system not of the proot.

I havent tested this but since the proot environment needs the suid flags you will need to unpack the booting image of you android device edit the fstab and change the mount options removing nosuid option, repack and flash the boot image to solve your problem. Remounting in the terminal as root (not proot) does not solve the problem because even after remounting, the fstab file remains the same.

By the way this is just my theory and i will edit the answer if it works perfectly.

A quote extracted from an answer in reddit

> If you have root, chroot. In a nutshell, a chroot will spawn processes straight in the Linux userland whereas a proot will do it from the Android environment and be limited by Android resource limitations. A chroot can also run more closely to a desktop environment; full blown window managers, browsers and what not. Can even run Java and Android Studio.

Linux Deploy is different from Gnuroot because Linux deploy uses chroot while gnuroot uses proot thats the reason they work differently.

**Edit2:** After even futher testing, i discovered that i needed to run `apt-get install fakeroot` then `fakeroot /bin/bash` After running these commands, the error disappeared. Chmoding turned out to not solve entirely the error. Also if you get installation errors try doing `fakeroot /bin/sh` or `fakeroot /bin/dash` Proof that fakeroot works am now in debian 10(buster) after patient upgrades.

Gnu root debian is like Termux but for old android versions.Regarding the su matter of calling su binary from inside proot, you need to install the tsu binary. Since gnuroot does not have `pkg` in termux, the same binary can be install via python2. So first install Python pip then run `pip install tsu` then run the tsu binary and maybe you will be lucky and gain real root permissions. It wont work on stock wheezy (have tested it) debian but try upgrading to jessie or stretch and maybe you will be lucky.
> 2 votes

# Answer
Alternatively, you could use Another Term an updated maintained Gnu terminal in proot environment with updated proot binary which in my opinion can also be an alternaive to Termux. It supports as low as android version 4.0 and no root is needed. Here and here are links to the project to get more infor.

Some screenshot i took on my android 4.4.4 Tab Running on Buster:

And

I havent tested it but i think you can VNC and get a desktop environment.
> 0 votes

---
Tags: root-access
---


# Question
Title: Is it possible to disable video feeds on Discord for Android?
When doing a video call via Discord, one can turn off each friend's video feed. That is, if one is using the desktop client. It is possible on the desktop, but, curiously, not trivial in the metered connection of the cellphone...

I tried: long-pressing the person, looking into video configurations, searching both in search.brave.com and Google, and found no solution.

Is there any way to achieve it?

# Answer
**No, not possible**

**Source**

My email to support@discordapp.com asking

> When doing a video call , one can turn off each friend's video feed (without affecting audio) . That is, if one is using the desktop client, but not on Android. On Android, Possible, not possible? Planned for future or not? Steps if possible please

Their reply (request # (17987066) assigned)

> Sadly, we don't have any option to turn off the video feed on mobile devices. Unfortunately, we also don't have any timeframe if this feature will be implemented on all mobile devices. If you would like to see changes to these systems in the future, then you can definitely create or vote up the suggestions at feedback.discord.com. It would really help us out if you upvote the idea since feedback contributes greatly to our decision-making of which features and fixes to implement in the future based on what our community wants. I'm so sorry again that we don't have a current solution for you at this time, but I like to think that anything is possible in the future. Please let me know if you have any other questions! Cheers, Daniel R

(Click to enlarge)

As pointed out in comments, the fact that is open for so long is another indicator
> 2 votes

---
Tags: discord
---


# Question
Title: How do some system apps prevent themselves from being disabled?
I have been researching about this for quite some time and frankly I haven't found anything that reproduces this effect in any phone that I have tried, as you know there are a few system apps that manage to grey-out the "Disable" button in App info screen in Settings, at first I thought this was only limited to critical system apps but based on my research I know that this isn't necessarily the case as in some cases I found that some regular(no-critical) pre-installed system apps in some phones have this effect e.g Facebook, Weather, Facebook Installer, Email, Gmail etc. and there are even some malware apps that achieve this, these apps don't even appear to be in the device administrators list therefore they have to be using another approach.

I have tried all sorts of install locations in `/system`; `app`, `priv-app`, `vendor` (phones were rooted) but none have worked, factory reset doesn't change anything therefore it can't be some stored information in `/data` partition, which has led me to think perhaps has something to do with the app itself or there is some info of apps that shouldn't be disabled that the system uses without involving the `/data` partition (I highly doubt if this is the case).

I found a somehow related question here and another one on xda but no one gave a definitive answer.

# Answer
Not ideal but you can disable the Settings with this command "adb shell pm disable-user --user 0 com.android.settings"

Is the only way I found to prevent users of a rooted device to tamper with it.
> 0 votes

---
Tags: settings, system-apps, bloatware, disable-app
---


# Question
Title: Is it possible to see location history for my devices? Or is location history only specific to a google account?
Is it possible to see location history for my devices? Or is location history only specific to a google account?

So for example..

If I go to https://myaccount.google.com/find-your-phone

The most info I get is that a device was located in the united kingdom..

The one last seen Oct 21st is lost. I don't know if location history is turned on on that one.

A phone that I have to hand, is the first one listed there, seen 12min ago. I have the "find my device" app installed on it(which may help I dont know). And I have turned on "use location", and I have turned "location history" on, by choosing location history then choosing the google account, the one that lists the device.

I can go to my google account (which knows of all my devices), and I can go to "manage your google account", and £data and privacy", "location history", and I see location history set to on there. And "manage history".

But I think that's just showing me placed i've been to with google maps.. or maybe it's using GPS too so even without google maps..

But it's not showing me where the particular phone has been. It just means that some device I had with me has moved to those locations.

But it's not working on a per device basis.

Is there any location history option that works on a per device basis?

# Answer
> 2 votes
The 'manage history' option you found is showing you something google calls your 'timeline'. It is using your location history to guess at where you've been, and in my experience it's pretty accurate, but it doesn't require you to actually use google maps to get there, it's mostly passive.

I feel like you may have already tried this, but you might have luck just finding out where you were on the last day that phone was seen.

I did a quick check... and you can use google takeout to export your location history in its entirety. This website will give you a good start: https://www.maketecheasier.com/visualize-google-location-history/

This may require... a lot of work, especially if you aren't familiar with JSON files, but the exported documents do have locations recorded with a 'devicetag' that seems to correspond to the device that was at that location along with a latitude/longtitude and other details.

---
Tags: google, geolocation
---


title: List of open ports on Android

text:
# Question
Title: List of open ports on Android
Is there a way, on a non-rooted Android device, to see a list of what apps are listening on what port? Or even a way to see if an app is listening on a specific port?

# Answer
I was able to see which app had an open port using standard linux knowledge.

Install `terminal emulator` or do an `adb shell` and execute the following:

```
shell@android:/ $ cat /proc/net/tcp
 sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode
  0: 0100007F:1C23 00000000:0000 0A 00000000:00000000 00:00000000 00000000  1001        0 2111 1 e22cc000 300 0 0 2 -1

```

The important stuff above is:

* **0100007F:1C23** listen IP-address:port in hex notation, here 127.0.0.1:7203
* **00000000:0000** remote address empty (listening)
* **1001** uid of the app

You can map the uid list to apps via How can I find app name by UID?
> 31 votes

# Answer
Install OS Monitor. It will list all the open ports.
> 2 votes

# Answer
If you're using mobile data connection, you don't have to worry because you should not be able to open ports (at least I am not).

If you are connected to wi-fi, you can open ports. Then you just need a computer which is connected to same network and install nmap on it and do a port scan but first you have to find out your phones local ip (**not** by going to i.e. whatsmyip.com). You should be able to find your ip from your settings.

To run port scan on linux you have to just type: nmap (your phones ip).
> 1 votes

# Answer
To list TCP and UDP ports:

```
ss -lntup

```
> 0 votes

# Answer
I have always used netstat since its available on almost all android versions

```
netstat -n

```

It will list unix and transport layer sockets and their states without reverse dns.
> 0 votes

---
Tags: security, networking
---


title: Map keys to touchscreen

text:
# Question
Title: Map keys to touchscreen
I'm running Android on a mobile device, but I really just use it as a computer. I have a wireless mouse/keyboard that I use to navigate windows, etc. The keyboard works well generally, but I find some features lacking. I really would like to map keypresses to the touch screen input. i.e. I can set `W` to send touch input from a part of the screen given by the pixel location or some such thing.

I have a background in computer system, so I'm not afraid to get my hands dirty. I am willing to root the device, install programs, or build in some additional hardware. I can probably do it from scratch, but I really would like to not waste that much time on it.

# Answer
If you are willing to use a PC as the interface.

There appears to exist a modified version of the open-source scrcpy which has keyboard shortcut support for playing games, but should partially map to your requirement:

QtScrcpy - gitee repo or QtScrcpy - github repo

See project README for keyboard mapping feature: https://github.com/barry-ran/QtScrcpy/blob/master/README.md

It looks promising. Unfortunately I haven't used it, and while open source, most of the project UI/documentation isn't in English.

The issue thread for the keyboard mapping feature for scrcpy:

https://github.com/Genymobile/scrcpy/issues/712

you might want to look there for more options.
> 3 votes

# Answer
Although this question has an accepted answer, I just thought I could add another option, for others looking for something like this.

You could use an automation app like Automate, Macrodroid, Tasker or Automagic(development stopped), to listen for the specific keyboard input, and execute the touch action.

Trigger: keyboard input Constraints/conditions: external keyboard sends input Action: UI interaction - touch screen

(Trigger constraints and actions are called differently in different apps.)
> 1 votes

# Answer
You can read mouse and keyboard data from /dev/input/event\* and write data into touchScreen by write data into /dev/input/event\* , use EVIOCGRAB to prevent event send to other program . Here is a simple tool for example https://github.com/DriverLin/mouse-keyboard-map-touch
> 1 votes

# Answer
You can use a keymapper app like octopus. This app mirrors the original app and adds keymapper. https://play.google.com/store/apps/details?id=com.chaozhuo.gameassistant Here's the link for this app!
> 0 votes

---
Tags: keyboard-shortcuts, touch
---


# Question
Title: Do Android permissions allow listeners on ports >1024 without special root permissions (only standard in-app permissions)
I'm not an Android developer, I am a developer in many other contexts.

I have a simple question that I don't see an answer to on Google: Can a standard android application (no rooting required) listen to a socket on a high numbered port? E.e. only using standard in-app permissions?

Any reference to the documentation on the available permissions would be a nice addition for this weekend warrior Android coder to-be.

# Answer
Android bases on Linux and thus has the same limitations that the root permissions are required to open a socket on ports below 1024.

For opening a socket in an app on a port greater than or equal to 1024 the app itself needs to have the static permission:

```
<uses-permission android:name="android.permission.INTERNET" />

```

defined in its `AndroidManifest.xml`. Without that permission no network communication is allowed by the Android operating system. With the permission you can open client and server sockets to perform network operations as usual.

When opening a socket for running a server, be aware that usually this only makes sense on the WiFi interface. On the mobile network interface you can open up a socket, but as mobile network providers don't assign a public IP, you can't reach a server running on a Android system connected via mobile data to the Internet.
> 3 votes

---
Tags: networking
---


# Question
Title: Overnight, I open my phone to find an unknown app running since android 12 upgrade
I'm running a Pixel 3A. After the last upgrade to Android 12, I regularly find that an app is active in the background overnight.

Its logo is 2-dimensional, and consists of dark green ball floating above green heart. The heart has three shades of green and is constructed out of a square with semicircles to the left and right. If I try to navigate to it, it minimizes, If I swipe away it disappears.

Does anyone know what this is? here it is:

# Answer
Thank you Irfan, It is Digital Wellbeing, albeit well hidden.

For others who have this problem, some notes:

* I'm surprised that google images doesn't locate it, but there you go.
* It does not appear in the app drawer (see image below) - you can only get to the app via settings.
* In my case, it seems to be activated when the phone is in bedtime mode
* When you click it, it doesn't take you to the wellbeing screen, it just minimizes itself. That is very disconcerting.

My app drawer image:
> 1 votes

---
Tags: android-12
---


title: WhatsApp QR scanner seems blurry

text:
# Question
Title: WhatsApp QR scanner seems blurry
My WhatsApp QR scanner is not working when needed for WhatsApp Web. It seems blurry, while my phone's camera is actually perfectly clear.

Secondly, I have restarted the phone none worked, same issue not working. Thirdly, I have switched off the phone & again start, nothing worked out. Fourthly, I have tried using my corporate number and the QR scanner started in a micro second in WhatsApp Web.

How to fix it?

# Answer
Create a support ticket with Facebook to fix their app somehow, and in the meantime:

1. Press `PrtScrn` to copy the screen to the clipboard.
2. Paste it in an image viewer like Paint.
3. Zoom it using `Ctrl`+`+` or a slider.
4. Try the blurry WhatsApp scanner before the code changes.
> 0 votes

---
Tags: whatsapp-messenger, camera, qr-code
---


# Question
Title: L90 bootloop - no emergency mode, no download mode, pc doesn't recognize
Good afternoon,

I'm facing a problem on my colleague's LG L90 phone, it suddenly started to bootloop and nothing seems to solve the problem.

The only way to turn it off is to remove the battery, but as soon as you put it back (be it instantly after removing it or after any period of time) the phone turns on and starts to bootloop again, so there's no "turn it off and turn on again pressing x buttons". The bootloop lasts about 10 seconds before it restarts the process.

When I connect it to my PC with the battery nothing changes, and the PC doesn't recognize the device, as it reboots before the PC can see it. Plugging it without the battery shows a screen with an empty battery for some seconds and then it reboots, showing that screen again.

I tried to enter recovery mode, emergency mode and fastboot mode without success. Plugging the phone on the PC or placing the battery while pressing vol -, vol +, both or any with the power button simply has no effect on the phone, it just keeps bootlooping.

The phone model is LG-D410hn, and it doesn't have unlocked bootloader, root or anything similar, it has everything stock.

Does anyone know what I can do to try to save it?

# Answer
> 0 votes
I have the same device and experienced the same behavior and it turned out to be my SD card. After I removed it my phone worked fine. I never did find out what the problem with the SD card was. I inserted it into an adapter and put it in my chromebook to see if I could run some diagnostics tool on it but it even caused my chromebook to reboot! Hope this helps.

# Answer
> 0 votes
In case you're still stuck, I recommend flashing the stock firmware using a flash tool. You can find a lot of tutorials online about it. Just do a quick Google search for "LG L90 stock firmware" and you'll find some good tutorials. This method might cause data loss if you download the whole firmware by reformatting the device. So be careful about that.

Here's a quick link to a website which might help For LG Optimus L90 D405N, go here: https://lgstockrom.com/lg-optimus-l90-d405n

For LG L90 Dual D410HN, go here: https://lgstockrom.com/lg-l90-dual-d410hn

I hope that it helps

---
Tags: boot-loop, unbricking, lg-optimus-l90
---


# Question
Title: Google Clock how to remove added city time
I am using default Google Clock application for time and alarm setting on my Moto X4. Moving to clock on it, there's globe icon under home time, which is used to set and display different city time. I have added some cities, and then I cannot see any option to delete that city. On tapping, Menu-\>Settings on top-right corner, I cannot found any option to delete it. How to delete those added city time?

# Answer
1. Open Google Clock.
2. Switch to Clock menu.
3. Press and Hold city time you need to remove, then you can see a `Delete` icon there(globe icon changed to dustbin icon), swipe down to Delete it (Android 8 Oreo).
> 1 votes

# Answer
1. Open clock function.
2. Press the + to "search for a city".
3. Type in the city you wish to remove.
4. Uncheck it.
> 11 votes

# Answer
In the new, redesigned app, swiping to the left on the clock you want to remove does the job.
> 5 votes

# Answer
On my Android V. 9 the Help function directed me to:

1. Open Clock function
2. Press the location to be deleted
3. Drag the location to the bottom of the screen, it should disappear

I did this and it worked.

Note: This does not work on the new, redesigned Google clock app.
> 2 votes

# Answer
Just type the city after clicking the globe, then uncheck that checkmark.
> 0 votes

---
Tags: settings, clock
---


# Question
Title: What's inside the Android A/B-Update payload.bin?
I am using Android 8 for an embedded device, with Android Verified Boot 2.0 secured via HW-keys, and A/B OTA update (no streaming). I want to make sure that the software on the device is tightly secured; however, I'm having a hard time to trace the individual steps the update performs. One hint would be the metadata contained in the update `payload.bin`.

Unfortunately, there seems to be no documentation on the `payload.bin` file format and its contents. Is there an official documentation for the file format? Or is there a crisp piece of code (e.g., build tools( that I haven't found out about yet? The tools for "dumping" `payload.bin` give me the contained images, but not the metadata. What I'd like to understand is the following:

* Which parts of `payload.bin` are signed with which key?
* Are there parts that are not signed?
* Which additional verification elements are contained in `payload.bin`, and how does the `update_engine` use them? For example: there are hashes to verify the target partitions following the installation
* For a differential update, there must be a means to ensure that the system on the device is exactly the one used as source for the update diff. Where are those hash-values?
* How about a full update - can the updater ensure that the update is installed only atop a specific version on the device?

I apologise if I have missed sources that answer these questions. The books about Android system programming I came across are outdated by now. Any pointers to relevant documentation beyond the basic Android docs would be highly appreciated.

# Answer
> 0 votes
build tool for A/B payload.bin is a call chain:

ota\_from\_target\_files.py -\> `GenerateAbOtaPackage()` -\> `payload.Generate()` -\> `brillo_update_payload.sh` -\> generate\_delta\_main.cc

---

payload file format - system/update\_engine/update\_engine/update\_metadata.proto

---
Tags: security, ota-update, 8.0-oreo
---


# Question
Title: How to change vendor.img contents with android emulator?
So, I have a custom AOSP image that I'm building, and it allows me to provide my own kernel and debugging features that I want (this is just for the record, because you can't do some things that are needed with a regular AVD). I need to change the contents of /vendor, and I thought that I could do this by providing my .img file to the emulator with:

emulator -vendor /path/to/my/vendor.img

But, as I checked, the md5sum does not match for some files between my vendor.img and in the /vendor/path/to/file when I run the emulator and connect with adb shell. This is perplexing to me, because when I run with -verbose, I can see the arguments given to qemu for the drive and I expect that img to be mounted under /vendor. Looking at the original vendor-qemu.img with 7z, I can check the md5sum of ome files and see that despite the -vendor argument, the sums did not change to the values in my img, but match the old intead. I even went to the length of renaming the original vendor-qemu.img and putting my img in it's place with the name vendor-qemu.img. Same result with the md5sums though.

Perhaps I could be wrong, and the -vendor emulator argument shouldn't change the contents of /vendor in the running emulator instance. What do I do to get the /vendor directory contents of a running emulator instance to match with the vendor.img?

# Answer
> 0 votes
The way I found to do it was to go to:

`out/target/product/<lunch tgt>/vendor/`

And just put the vendor contents the way you wish them to be. When finished do:

`make vendorimage && make systemimage`

---
Tags: android-emulator
---


title: Scroll to a particular date in Whatsapp

text:
# Question
Title: Scroll to a particular date in Whatsapp
Is there a way which I can select a particular date or a date range in Whatsapp and view those messages under those specific date(s)?

# Answer
WhatsApp search features as of now don't have this kind of search for.

I required this feature some months ago to search based on dates and content. Googling led me to *Bag a Chat* app ( can't link it from play store since it is not available on my country). I download from apkpure , used the app for a few days and uninstalled it ( Two reasons - it was a one time requirement for me and second, because of the permissions it wanted)

From memory, you need to save the chats you want to search using the app and filter them based on your search needs. You can search based not only on dates but many other parameters as explained
> 1 votes

# Answer
You can also do the following without using an extra app specialized on searching through WhatsApp.
Go to options (the "..." symbol) -\> "more" -\> "send chat per email". This way you can export a txt file including date, time and message content and send it per e-mail. This file can be imported to excel or smth and filtered using normal functions of the program you import it to.
> 7 votes

# Answer
This isn't exactly a go to date feature but it will get you close and uses the standard whatsapp app. Look at the media in a chat (3 dots, "Media, links, and docs") and when you move the scrollbar slider it will show the month and year so you can use that to quickly jump close to the date you wanted. Then open up one of the media items, click the 3 dots, and select "Show in chat". You'll be on the date the media item is from which is hopefully close to the date you wanted to look at.

For greater accuracy you can swipe through the media items before selecting "Show in chat". It will show the date at the top of the screen which should let you find something closer to the date you wanted. This second option might help you get there faster with less scrolling but it kind of depends on how often you have media in this chat and how many messages you might need to scroll through. It might be faster to just jump to the right month and start scrolling a little.
> 0 votes

---
Tags: whatsapp-messenger
---


title: 4G symbol appears but no/slow internet

text:
# Question
Title: 4G symbol appears but no/slow internet
I have a Samsung Galaxy S21 5G which has worked great, but the last day or so I have been having a very annoying issue where the internet just goes really, really slow, yet it is still showing the 4G symbol in the corner.

Normally, when the internet goes slow, it'll show an 'H', then when it's really bad, an 'E', but while 4G is showing, its usually really quick. Since yesterday, it has been so slow to the point webpages time out, and some apps (such as reddit) fail to load at all (just get an error).

Today, it got more annoying where I actually got a "no connection to internet" appearing on my browser and app store, even though the 4G symbol is showing in the corner.

What I have tried:

* Turning the phone off & on again
* Removing and re-inserting SIM card
* Turning aeroplane mode on/off
* Reset Access Point Names to default (as per online tip)
* Checking Network modes are set correctly

I'm not sure what else I can try. I am using the Virgin mobile network in the UK, which I believe is using the EE network, and their coverage checker tells me everything is fine and I should have good coverage.

Is there something I am missing, or anything else I can try as it's rather frustrating. WiFi works fine.

# Answer
> 0 votes
Options you have:

1. Check with other users who are on same network with different mobile.
2. Check with other users who are on same network with same mobile.
3. Get a new SIM card with same number. Yes, SIM cards can cause trouble.
4. If above 4 are checked, then it is the handset problem. Maybe a software factor reset can do a wonder too.

---
Tags: samsung, 4g
---


# Question
Title: Would the Amazon Fire OS count as Android?
I am wondering if the operating system on the Kindle Fire would count as an Android-based OS.

# Answer
> 3 votes
Android is 'open-source' in that Google releases code at every major version level. So long as whomever is doing the OS forking doesn't change APIs AND developers don't use any Google Mobile Services APIs, third-party apps should be able to run on both.

# Answer
> 0 votes
Amazon FireOS bases on Android Open Source Platform (AOSP). As it is published under an open source license everybody can fork it and build an own OS. Note that there is one major difference between AOSP and "Google Android" (which is installed on nearly every Android phone you can buy): All Google services are missing. Starting with Google PlayStore and all Google apps this also affected invisible parts like Google Play Services (which are e.g. responsible for receiving push notifications for all installed apps).

According to Wikipedia relevant versions of FireOS are at the moment:

* Fire OS 5 is based on Android 5.0 "Lollipop"
* Fire OS 6 is based on Android 7.1.2 "Nougat"
* Fire OS 7 is based on Android 9.0 "Pie"

The complete mapping list of FireOS versions and Android version can be found here: https://en.wikipedia.org/wiki/Fire\_OS#List\_of\_Fire\_OS\_versions

---
Tags: operating-system, amazon-kindle-fire
---


# Question
Title: Android emulator can't find the wayland QT plugin
Trying to run the Android emulator on Wayland (Fedora 30) gives me the following error:

```
statvfs('/home/user/.android/avd/Pixel_3a_29.avd/snapshots/default_boot/ram.img') failed: No such file or directory
Warning: Could not find the Qt platform plugin "wayland" in "/home/user/android/sdk/emulator/lib64/qt/plugins" ((null):0, (null))
emulator: INFO: QtLogger.cpp:66: Warning: Could not find the Qt platform plugin "wayland" in "/home/user/android/sdk/emulator/lib64/qt/plugins" ((null):0, (null))

```

Any suggestions on how to resolve the issue?

# Answer
To debug this issue, start the emulator on the command line. For example:

```
~/Android/Sdk/emulator/emulator -avd Pixel_3a_API_30

```

(To list all available AVDs, use `emulator -list-avds`.)

In your case, you have probably set the `QT_QPA_PLATFORM=wayland` env variable, but Android Studio seems to bundle their own platform plugins, which don't include wayland, only xcb. This results in the following error message:

```
...
INFO    | Warning: Could not find the Qt platform plugin "wayland" in "/home/username/Android/Sdk/emulator/lib64/qt/plugins" ((null):0, (null))
...

```

This works for me:

```
QT_QPA_PLATFORM=xcb ~/Android/Sdk/emulator/emulator -avd Pixel_3a_API_30

```
> 2 votes

---
Tags: android-emulator
---


# Question
Title: Conditions for triggering "pin required for additional security“
As in title, what are the conditions? (fingerprint isn't enough to unlock the device, one needs to enter PIN. I am not talking about the requirement after a re-boot)

I can't seem to discern a pattern, on some days I get this security warning at least 3 times, and on some days never or maybe once, while the usage pattern seems to be similar.

Pixel 4a, Android 11

# Answer
This is triggered by fallback timeout as stated by Andrew T. Android enforces tiered authentication model backed by **Trusted Execution Environment** (TEE) to authenticate the user. Primary tier authentication is your screen lock code which has the highest level of security and is cryptographically bound to storage encryption. Secondary tier is biometrics and tertiary tier is Smart Lock's Trusted Devices that are only available when the device is in **After First Unlock** (AFU) state.

After every 72 hours or 3 consecutive failed biometric authentication (whichever happens first), TEE falls back to screen lock code if the biometric sensor is a **Class 3** biometric *(formerly Strong)*. For Class 2 *(formerly Weak)* and **Class 1** *(formerly Convenience)* biometric sensors, fallback timeout is even smaller, with reduced security features and with idle timeout constraint. Tertiary tier authentication has the smallest.

Smart Lock's Trusted Devices cannot unlock the device. They keep the device unlocked for maximum of 4 hours. That is after 4 hours, the device will prompt you to use either screen lock code or biometrics which then resets the timer for smart lock.

You can also manually trigger fallback to screen lock code using **lockdown** option in power menu (enable it in settings) that temporarily disables Smart Lock, biometrics and notifications on the lock screen until next unlock.

Note that these features including lockdown mode (in both android & iOS) **do not** increase your data security. They only make it harder for the attacker to spoof weaker lock mechanisms within a time limit. For example, cloning your fingerprint and 3D printing your face have to be done within 72 hours (or 24 hours) from the time of last primary tier authentication. For these features to work, your device should be already in after first unlock state. In this state, the encryption keys that decrypt your storage are already in alive state. By using custom engineered forensic tools and OS kernel level exploits, your data can still be decrypted without unlocking your screen.

While such attacks are even harder than spoofing biometrics, they are not impossible. Spyware agencies have been decrypting data of seized devices from long time because most of the time the devices they get are in AFU state. The safest state (but not immune) for the device to be in is **Before First Unlock** (BFU) state in which TEE awaits for primary tier authentication to release encryption keys so the attack vector is shifted on exploiting weaknesses in TEE which further increases the difficulty to compromise data.

---

Lockscreen and authentication improvements in Android 11

Measuring Biometric Unlock Security

After First Unlock: Device has been unlocked once since last reboot.

Before First Unlock: Device has not been unlocked once since last reboot.
> 6 votes

---
Tags: security, google-pixel-4a
---


# Question
Title: Genymotion how to hide back/home/menu button that shown after ALT button pressed
This button shown up after pressing ALT button, that automatically show virtual keyboard (but all I want to do is ALT+TAB). How to make them disappear?

Or how to disable calling virtual keyboard when pressing ALT?

# Answer
you can find it on android setting

`keyboard & input > Virtual keyboard > Android keyboard setting Advanced > Emoji for physical keyboard`

disable it!
> 12 votes

# Answer
Settings for Android 9: `settings > system > languages & input > virtual keyboard > Android keyboard settings (AOSP) > Advanced > Emoji for physical keyboard (Disable it)`
> 1 votes

---
Tags: keyboard, genymotion
---


title: Native Linux on Android's SOCs

text:
# Question
Title: Native Linux on Android's SOCs
I wanted to know for quite some time why linux operating systems are not ported to phones or tablets SOCs with android? Like how they are on desktops and laptops.

I know linux can run on various devices with different CPU architectures, I use linux daily, and android uses a modified linux kernel so why it is so hard to run some linux OS natively on an android based device?

We have projects like andronix, termux and linux deploy but even with `chroot` that's not natively. I even played with them but they are limited. For example, hardware devices access like GPU is very problematic (e.g. use hardware acceleration).

# Answer
## The main reason:

There is no revenue-generating stream for Linux on smartphones in comparison to Android.

---

### Technical reasons, which can't be solved without heavy investments

Just porting Linux to SoC is not enough. Linux is only a kernel.

* You will need to develop a distro suitable for a smartphone.
* Android = 1. AOSP + 2. patches and blobs from SoC vendor + 3. user apps\`

#### Patches and blobs from SoC vendor

#2 in the equation has restricted access. SoC vendors don't share internal details even with OEMs, only providing a minimum description for available APIs. Typical Android-capable SoC has a lot of proprietary peripheral modules (such as mentioned GPU or Audio, Image processing, radio modules). Some of them require OS drivers, others even specific complex FW with a separate OS. Even for some desktop peripherals, this factor blocks Linux support.

---

### Existing attempts

There were attempts to develop an open-source smartphone. As we can see, they didn't get widespread till the moment, and some of the projects were discontinued. The main reason is the same: the model didn't prove its sustainability.
> 4 votes

---
Tags: linux, kernel
---


# Question
Title: How to bypass an app's ability to know is being run on an emulator rather than a real device.
I would like to install an app called entrust (from the play store) and be able to use it. My last try was to use an emulator called "Genymotion", but the app can detect that the app is being run on an emulator because I get this error:

"Error: Manual Activation is not supported on an unsecured device."

which I don't get if I'm running the app on a real device. Are there any ideas about how can I bypass this check and be able to run it using an emulator?

Thank you!

# Answer
> 4 votes
In general there are three ways to bypass an emulator check:

1. Modify the app and remove the emulator check.
2. Modify the emulator so that it pretends to be a real device.
3. Modify the system calls the app does for detecting it is running on an emulator

As you can see all three ways are not that simple, however the third way may be the easiest as there are some tools that can help you.

Back to **option 1** \- it requires a lot of development skills to decompile the app (e.g. using `apktool` to decompile it to Smali code), identify the emulator checks (and to bypass app integrity checks that may exist).

**Option 2** is even harder as it requires you to patch and recompile the Android emulator (which is available as source code).

Therefore from my point of view only **option 3** is realistic for you. However it still may require some Java development.

You can install the XPosed framework onto your emulator. It allows to modify system calls the app uses for identifying that it is running on an emulator. There are a some existing XPosed modules for hiding that a device is rooted or that it is running on an emulator. If you are luck there is an existing module working out-of-the box, letting you run your app on an emulator.

# Answer
> 0 votes
The app needs a closed boot loader and doesn't allow root. The app doesn't know anything about the emulator.

---
Tags: applications, android-emulator, emulators
---


# Question
Title: I connected my phone with usb debugging to an infected computer
I have a computer that used to have malware. During the time it had malware, I connected my phone to it with usb debugging (was unaware of the malware). I have no signs of malware but I'm still worried about the virus being able to propogate to my phone and stay hidden. Do I

1. Leave it
2. Factory reset my phone
3. Reflash the phone

Threat model is a regular computer user. I also probably enabled usb tethering or other stuff that could have helped the malware propagate.

# Answer
> 0 votes
What would I do in this situation? First, I would use Avast or AVG(even though they are the same things) or Malwarebytes to remove malware from my PC. Then, fully format(wipe data, dalvik cache and etc) my phone and then re flash stock ROM and then re flash custom ROM. And for being completely relaxed, I would install Avast's free version to my phone. I don't think any virus can survive after this.

*Excuses for auto correct. It has some lil problems*

---
Tags: rom-flashing, usb, usb-debugging, malware, virus
---


# Question
Title: Is there a way to get Google Calendar reminders to act like Alarms?
I miss many calendar reminders because they're just too subtle. I might put my phone down and walk out of the room for 5 minutes, missing the reminder, then come back and not touch my phone again for an hour; completely missing an important appointment.

If reminders worked like alarms, they would make their notification sound continuously (up to a point, like alarms: ~10 minutes), and take over the whole screen, until silenced. That would be preferable to me. Is there an app that can do this?

# Answer
If you want to stick with your Google Calendar as backend *and* frontend, you might wish to check Calendar Event Reminder. You can tell that app which calendars to look at, and to annoy you until you're going crazy. I almost guarantee you cannot miss *such* a reminder! I've used the app for quite some time, before...

I switched to a different calendar frontend: Business Calendar. Very configurable again, also concerning reminders: vibrates and makes "subtle noises" (I've told him so) until I lose my nerves and switch it off :)

There are probably a lot of similar approaches. But I know of no way to even come near to one of them without any 3rd party tool being involved.
> 7 votes

# Answer
You can copy the **mp3** file that you'd like (for example a 5-minute song) to the **Notifications** folder in your Android (at the same level that the **Download** folder). This can be done as well for *ringtones* (**Ringtones** folder) and *alarms* (**Alarms** folder). Now, go to calendar **Settings**, **General** and change the tone to your mp3 file.
> 7 votes

# Answer
I found a free app, Calendar Event Reminder, that achieves the requirement at https://play.google.com/store/apps/details?id=sk.mildev84.reminder
> 2 votes

# Answer
What I do is to set an additional alarm in my standard android "Clock" app. Alarms have the option to give them "memo text", e.g. "Reminder for meeting boss in 10 min". So the alarm will act as your intruding and persistent reminder. The alarm has also the option "Auto-start app", where you can select after switching off the alarm the calendar to be opened, showing you that you have an appointment in x min.
> 2 votes

# Answer
**I use TWO apps for this: \[EDIT: I have stopped using both of these, see my other separate answer\]**

* Google Calendar events: Event Alarm Reminder for Google Calendar
    + **One drawback** of this one: No support of Outlook/Exchange calendars (yet) (August 2021)
* Outlook/Exchange events: "Event Reminder"
    + This app DOES support outlook
    + Isn't terribly reliable so I ONLY use it for outlook/exchange, hence both apps.

Also check out my separate answer on how to use a phone automation app.
> 2 votes

# Answer
**Use an automation app like MacroDroid, Tasker, or AutoMate**

I use MacroDroid for most things.

There are 2 strategies to detect upcoming meetings: **Detect meeting reminder notifications**

In macrodroid:

* Trigger: Notification - from (calendar apps) - anything
    + (for outlook, I filter by "\d\d:\d\d.\*\d\d:\d\d" to match "09:00 - 10:00"
* If "events seen" variable contains notification text, abort macro
    + (this avoids problems with ongoing notifications over-triggering)
* Set variable "events seen" to "events seen" plus notification text
* Set alarm with notificatoin text, plus "#macro"

**Specifically watch for calendar events** Most automation apps can detect meetings/events, though it varies how hard it is to do. I found MacroDroid does well at this, with some caveats: you must create one trigger per calendar.

* Use MacroDroid
* Trigger on meetings 5 minutes before they begin.
    + Exclude all-day events
    + Create a similar trigger for each calendar you want alarms for
* Constraints: (either on the entire macro, or the trigger)
    + only during working hours plus buffer (7:00am to 5:30pm)
    + Or, only during waking hours (7am to 10pm)
* Action: Check variable with event title \[calendar\_title\]. Abort if it contains words/phrases like "out of office/OOO/paid time off/PTO").
    + This would be an abort macro action with an action-level constraint based on variable pattern matching
* Action: Set an alarm 2 minutes in the future with title set to variable \[calendar\_title\]. I found 1 minute ahead sometimes ended up on the next day.
* The drawback of this approach is it always sets alarms the same amount of time before a meeting.
* I usually use an alarm app that slowly increases in volume. AMDroid and Sleep As Android work well. I set them up so that single-occurence alarms auto-delete.
> 1 votes

---
Tags: applications, calendar, alarm
---


# Question
Title: Best practice for backing up /data/media?
Currently, TWRP backups don't include `/data/media`, and this doesn't appear to be on the developers' radar at all (the issue for it over at GitHub is just a bunch of +1s with no official response). Now that we have SELinux to contend with, simply copying the files back and forth is apparently no longer an option, and there are a number of different ways to access `/data/media` throughout the filesystem, each with different effective owners and permissions.

In excruciating detail, how should I approach backing up and restoring `/data/media` so everything is restored exactly as it was and my apps don't have trouble with the resulting permissions?

# Answer
I recommend directly copying files from/to `/sdcard`.
The `sdcard` service will handle all the permissions and SELinux contexts for you.
The `/storage/emulated/0`, `/mnt/shell/emulated/0` and `/storage/emulated/legacy` are all shadow reflexes of `/data/media` (typically `/data/media/0`). In the `/init.rc` file you can find out that the `/system/bin/sdcard` is a service that controls all of them, so you can just copy the files in `/storage/emulated/0` with ease. All other directories like `/sdcard` and `/storage/sdcard0` are symbolic links. They don't matter at all.
> 6 votes

# Answer
I just adb pull /data/media/. media to copy the files to my pc adb directory. Then I do a TWRP backup everything to sdcard. Restore from sdcard backup, reboot recovery, then adb push media/. /data/media. Make certain to wipe sdcard from recovery, not formatted from pc. Works for me! Wrong format gives lots of error 255's.
> 0 votes

---
Tags: backup
---


# Question
Title: What exactly does carrier services do and should I allow it to use mobile data while data saver is on?
I'm using the samsung a32 5g.

Just wondering if it's worth allowing it to use my mobile data since I'm on a tight plan and why it would be important. All I use is SMS messages, I read that all it is used for is RCS or any android related messaging apps.

If that's the case can I disable background data usage if it does nothing for me, and even go further to disabling the app? Would doing so disrupt SMS or any other messaging service?

# Answer
> 1 votes
A first indicator of what this app does is it's package name: `com.google.android.ims`

IMS is usually the abbreviation of IP Multimedia Subsystem, which is dedicated to do communicate with the carrier over IP, instead of special protocols as this was in 2G/3G.

Another hint gives us the description in Play Store:

> Carrier Services enables the latest communication services from mobile carriers, including battery-optimizations and support for enhanced features in the Android Messages app.

Therefore this package seems to implement the client side of "RCS Messaging", the successor of SMS.

I am not sure how many carriers already support RCS and how widely this is used. In general I would allow background usage, otherwise the app would be pretty useless if you every receive an RCS from someone (you never know who might send you something).

From my understanding plain SMS should not be processed by this app.

---
Tags: samsung, battery, mobile-data
---


title: How to use tmux copy / paste in Termux?

text:
# Question
Title: How to use tmux copy / paste in Termux?
I installed Termux and using the pkg system installed tmux.

However, the tmux that installs doesn't appear to support copying and pasting. I can enter copy mode, but I can't select text and copy it to the clipboard using the spacebar and the enter key. Is there any way to go about this?

# Answer
> 8 votes
Try having this line in your `~/.tmux.conf` file:

```
set-window-option -g mode-keys vi

```

This enables a set of vi key bindings that seems to work fine. I used the Spacebar and Enter keys to copy that line from within a tmux session running in Termux and pasted it into this textbox in Chrome with Ctrl+v.

# Answer
> 6 votes
Unfortunately, tmux can't access Android system clipboard, unlike real GNU/Linux distros. The copy mode is pretty much isolated in tmux, so you can only copy from and paste to within sessions.

To paste from clipboard, long-press (hold) anywhere on the terminal screen and tap "Paste" in the pop-up menu.

To copy to clipboard, long-press some text on the terminal screen. Drag the pins to select the text you want to copy and tap "Copy" in the pop-up menu.

# Answer
> 3 votes
This answer may be irrelevant to your needs, but I arrived at your post while trying to solve a problem. Unlike with the x windows system, you don't need anything but Termux to paste text. Use "share" on the selected text, share to Termux, then enter a filename as prompted, and tap open folder.

# Answer
> 1 votes
In vim, go into input mode by pressing `i` and then use `CTRL`+`ALT`+`v` to paste.

Note: you can use specific keyboard apps or an external keyboard to gain access to `CTRL` and `ALT` keys.

---
Tags: termux
---


# Question
Title: Will deleted images be safe in thumbnails folder?
If I delete images with file explorer from DCIM/Camera and images are still in DCIM/thumbnails, will thumbnails images stay there? If they stay there, will something delete them in future? Does Xiaomi phones have something to delete thumbnails?

# Answer
Thumbnails are not really the exact images you deleted. They are just the cached images of extremely low quality which your phone used to show you images with more speed. Your phone save a Thumbnail of image you open in your phone so that next time you open that image, it takes less time. Thumbnails have very small resolution and quality than original. Clearing your cache memory will delete the thumbnails. Usually, phone don't have any automatic thumbnails deletion.
> 2 votes

---
Tags: xiaomi, delete
---