date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2020/12/20 | 617 | 2,389 | <issue_start>username_0: so I was bored and I decided to check some developer options to see what they can do...
I found this option called 'smallest width', at first I set it from 392 to 100 and it automatically set itself to two hundred something I believe. So I did the same thing but this time I set it to 1000 thinking that it would automatically set itself to the max value possible... But it didn't. Right after pressing 'Ok', my screen became soo small and a message pooped up saying "System is not responding", then my phone restarted to recovery. Unlike many people who were facing this problem on the internet, My phone's bootloader is unlocked, I have TWRP recovery installed, my phone is rooted and I had USB debugging on. I rebooted to bootloader and tried "adb devices" but my phone wasn't there. After that, I booted to TWRP and clicked Mount then checked all boxes (I couldn't check storage) and clicked Mount USB Storage. This time my phone showed up in the list. Check the image below.
I don't know if it's okay that it's saying recovery instead of device, but I ran "adb shell wm density reset", it didn't work and same with "adb shell wm size reset".
As you can see in the image below, there was no error but the phone still didn't want to boot. After that I tried to check my current screen size and density using "adb shell wm size" and "adb shell wm density", but there was no response.
I also checked the build.prop file in /system and found this line "persist.miui.density\_v2=440", I changed it to 220, nothing happened.
<https://i.stack.imgur.com/zalow.png>
Now my question is, why is there no response when I run "adb shell wm size/density"? It doesn't work in the TWRP terminal as well. Is this command supposed to be in the /sbin directory? Because I couldn't find it there. How can I add it if it is not there? And lastly, if you can suggest any other way to fix my phone that would help me a lot. Thank you so much.<issue_comment>username_1: Wipe all data and restart. That's what I did after I made the same mistake of changing the width drastically from 392 to 1000.
It messes with the UI and goes into a loop.
Upvotes: 1 <issue_comment>username_2: adb reset commands worked for me.
I had USB debugging on. And a few seconds after reboot(after MIUI animation) my device showed in `adb devices`. Then I used `adb shell wm density reset`
Upvotes: 0 |
2020/12/21 | 430 | 1,542 | <issue_start>username_0: I love swiftkey I use it as my main keyboard typing layout.
It autocorrects words like rhe->the automatically when you hit space.
It is called quick prediction insert.
Is there any way to get this effect in GBoard or effectively any other keyboard? iOS works this way.
<issue_comment>username_1: 1. Open Gboard settings > Text Correction
2. In the Correction section, enable Auto-Correction. Word like `rhe` will automatically be corrected to `the` when you press the Space bar.
[](https://i.stack.imgur.com/bgxLC.png)
When using Gboard version 10.0.02.338070508, an indication of the auto-correction for the word `rhe` by **`the`** being bolded among the suggested words. When it is not in bold, it won't be auto-corrected.
[](https://i.stack.imgur.com/0NURV.png)
Upvotes: 1 <issue_comment>username_2: That feature is practically useless because you can always tap the word on the suggestion strip easily.
No (after considering possible scenarios) it is not possible in gboard because even if you somehow get it to write words on tapping spacebar (with Automate app.. i can suggest method for that if you want.. but it will be pointless in my opinion) then you won't get it to be "intelligent" (I mean when you don't want the suggest word and just willing to hit a simple space)
Upvotes: 0 |
2020/12/24 | 736 | 2,374 | <issue_start>username_0: I'm just tinkering with my Android tablet and was wondering
if I can get Docker running on it.
I've tried `dkg install docker` and also `apt install docker` both gave me
`unable to locate package Docker`
I probably need to add Docker's repo into list of repositories.
Have you ever done it ?<issue_comment>username_1: **March 2021: Possible with root & compiled kernel**
From [termux-root Issue #60](https://github.com/termux/termux-root-packages/issues/60) it appears that it is possible to use Docker without QEMU, but requires root & a custom kernel.
Details can be found in [this gist](https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27)
**No, not possible**
From: <https://www.reddit.com/r/termux/comments/av6z2s/how_to_install_docker_on_termux/>
contains a reply from a Termux dev:
>
> This is not possible.
>
>
> Docker requires features that are not available in typical kernel installed with Android OS. This is why docker is not packaged for Termux and likely never be - 99% of devices (even if rooted) won't be able to run it.
>
>
>
with the additional comment.
>
> Termux does not emulate Linux. It just terminal application with own tools added to PATH.
>
>
>
Upvotes: 4 [selected_answer]<issue_comment>username_2: **Yes, possible**
**But indirectly through emulating the kernel with `qemu`.**
We can use `qemu` to create an emulated kernel, as well as an emulated architecture (x86\_64), on top of which we can run Docker and most modern containers and images (albeit slower).
You can find some instructions to do just this [here](https://gist.github.com/oofnikj/e79aef095cd08756f7f26ed244355d62).
Upvotes: 2 <issue_comment>username_3: I installed Docker on Termux. It was in the `root -repo`.
1. `pkg install root -repo`
2. `apt install docker`
I don't know if it works with every Android device. Mine is a Lenovo tablet TB-7304F.
Upvotes: 2 <issue_comment>username_4: in my case (htc u11) it was possible by running (as @username_3 said)
```
pkg install root-repo
pkg install docker
```
and if docker-compose is also needed it can be loaded via python
```
pkg install python3
pip3 install --upgrade pip
pip3 install docker-compose
```
(in my case that wont work since i have no rust-compiler installed (and i dont think there is one currently for aarch64-linux-android)
Upvotes: 2 |
2020/12/24 | 277 | 755 | <issue_start>username_0: To Enable Dark Mode:
>
> `adb shell settings put secure ui_night_mode 2`
>
>
>
To Disable Dark Mode:
>
> `adb shell settings put secure ui_night_mode 1`
>
>
>
For Auto Dark Mode:
>
> `adb shell settings put secure ui_night_mode 0`
>
>
>
and then
>
> `adb reboot`
>
>
>
My question is how to change Dark mode without `abd reboot` ?<issue_comment>username_1: On root devices
To Enable Dark Mode:
```
adb shell "su 0 cmd uimode night yes"
```
To Disable Dark Mode:
```
adb shell "su 0 cmd uimode night no"
```
For Auto Dark Mode:
```
adb shell "su 0 cmd uimode night auto"
```
Upvotes: 2 <issue_comment>username_2: This worked for me, no need for root.
`adb shell "cmd uimode night yes"`
Upvotes: 4 |
2020/12/25 | 365 | 1,396 | <issue_start>username_0: Using Samsung Internet 172.16.58.3 on Android 8.1.0.
Whenever I type an URL in the top bar, it performs a Google search with that parameter. The worst thing is that in some cases, the target URL is not in the list of the search results. Thus, I cannot go to the intended URL.
**Is there any solution for this, so I can visit the target URL in Samsung Internet Browser?**<issue_comment>username_1: A workaround:
1. Create a "phantom" group in WhatsApp, where you are the only member (add another person and then remove him/her).
2. Send the URL to that group.
Or you can send the URL to any other contact, if that is not a problem for you and the other.
3. Click on the URL in WhatsApp.
It will open the browser and navigate to the URL.
Plus, you can save the bookmark now.
Upvotes: 0 <issue_comment>username_2: You can simply disable the automatic searching for entered values in the address bar:
Open Settings -> Search engine and disable "Suggest websites and search terms"
[](https://i.stack.imgur.com/NVzywm.jpg)
Afterwards if you enter a valid DNS name like `exampleabc.com` you will get directly to the page (in this case a generated error page as the domain does not exist).
If you just enter some search terms like `holiday` a Google search will be performed.
Upvotes: 3 [selected_answer] |
2020/12/26 | 884 | 3,109 | <issue_start>username_0: Is in Android there is an available database set for limits display frame rate? If they’re available, is using ADB/Root (Terminal), or how, or even it can't?
I've been searching this for years, and not get an answer yet. Actually, this is for tweaking to trigger any benefits. This like my other phone embedded feature is Xperia STAMINA mode which is it can set the display frame rate (to 2x lower from 30 fps) for battery saving. But... I mean is not only for that. Many others too that can benefit. So, is this can available on a pure Android system? Or this only self-made for manufacture's hardware so that not possible available on others except Xperia devices?
If there are other threads that I don't know. Please let me know. I'll understand it, and try if it makes sense.
thank you! :D<issue_comment>username_1: There doesn't seem to be a way at this time.
So far, all I know is a hidden feature in Android S Preview Revision 3, namely Game Optimization in the Game menu which can lower frame rates, such as Xperia STAMINA mode.
---
Portal: [Android 12 DP3 Analysis: Here are all the hidden features! | xda-developers.com](https://www.xda-developers.com/android-12-dp3-hidden-features/)
Screenshot: [17-Game-Mode-2.jpg (563×1155) | xda-developers.com](https://www.xda-developers.com/files/2021/04/17-Game-Mode-2.jpg)
Learn more: [Android Developers | developer.android.com](https://developer.android.com/)
Upvotes: 0 <issue_comment>username_1: Android 13 had a feature to lower the frame rate called Game Mode interventions. However, it is only limited to games app category, and not system-wide work.
Some manufacturers may use this feature or remove it. As well as developers should declare Game Modes as false on Manifest file. Otherwise, the platform will ignore the configurations and only use in-game optimizations.
Also, this feature may require a newer GPU, and a supported display frame rates.
---
**To view the existing package configuration:**
```
adb shell device_config get game_overlay
```
---
**To set game mode interventions configuration:**
```
adb shell device_config put game_overlay
```
Parameters example:
```
adb shell device_config put game_overlay mode=2,fps=90:mode=3,fps=30
```
Parameters details:
* `mode=2` for performance mode, and `mode=3` for battery mode.
* `fps` value are device specific: `30`, or `60` for 60 Hz displays; `30`, `45`, or `90` for 90 Hz displays; and `30`, `40`, `60`, or `120` for 120 Hz displays; else, any attempt of any other value than the device specified value, will cause the device to crash. `fps=0` is the default value.
---
**To switch the game mode from the configured package:**
```
adb shell cmd game mode performance
```
OR
```
adb shell cmd game mode battery
```
OR
```
adb shell cmd game mode standard
```
---
References:
[FPS throttling | Android Developers](https://developer.android.com/games/gamemode/fps-throttling)
[Game Mode interventions | Android Developers](https://developer.android.com/games/gamemode/gamemode-interventions)
Upvotes: 2 [selected_answer] |
2020/12/26 | 1,080 | 3,774 | <issue_start>username_0: After reinstalling Windows, both two of my Samsung phones cannot be recognized by the OS. In Device Manager it shows this:

I tried to install:
* [Samsung USB Driver for Windows](https://developer.samsung.com/mobile/android-usb-driver.html)
* [Android Studio and SDK](https://developer.android.com/studio "Download Android Studio and SDK tools | Android Developers")
* [Samsung Smart Switch](https://www.samsung.com/us/support/owners/app/smart-switch/ "Samsung Smart Switch")
And activated USB Debugging mode, but none of this still work.
Despite of that Odin can still detect it:

Using `adb devices -l` yields this result:
```
List of devices attached
420039c4de446300 device product:j1x3gxx model:SM_J120H device:j1x3g
```
or
```
List of devices attached
504bc61e device product:j2y18ltedx model:SM_J250F device:j2y18lte
```
Do you know why?<issue_comment>username_1: Often you first have to install the driver and then connect the device. If you do it the other way around the driver will not be applied correctly. Delete the shown MTP entry and disconnect + reconnect your phone. Also run Windows update with enabled "updates for all Microsoft products".
Regarding adb your new PC is unknown to the device (because the stored adb RSA key has been lost because of the new installation) and therefore it denies adb access (device unauthorized).
You first have to unlock the device (enter pin/password/pattern) and then accept the dialog that asks you if your device is allowed to connect via adb.
And that Odin works at the same time is because Odin uses different drivers. From the perspective of your computer you have 3 USB devices, one for MTP, one for adb and one for Odin. Check it out by selecting the MTP device and then changing the device manager "View" -> "Devices by connection".
You will see al the USB device endpoints from your device.
Upvotes: 1 <issue_comment>username_2: It seems that the reason for this is because you are using the N version of Windows. Microsoft explicitly states that [some features are effected](https://support.microsoft.com/en-in/help/4057437/media-feature-pack-for-windows-10-n-april-2018 "Media Feature Pack for Windows 10 N (April 2018)") in this version. Users have reported that [the wpdmtp.inf file is missing](https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/wpdmtpinf-file-is-missing/c085262b-a2c9-4fac-a3a5-80aea6df4799 "wpdmtp.inf file is missing - Microsoft Community"), and this is why the MTP protocol has error.
You can download [Media Feature Pack](https://support.microsoft.com/en-us/help/3145500/media-feature-pack-list-for-windows-n-editions "Media Feature Pack list for Windows N editions") to fix this.
And why does this need to happen?
From [What Is an “N” or “KN” Edition of Windows?](https://www.howtogeek.com/322112/what-is-an-n-or-kn-edition-of-windows/ "What Is an “N” or “KN” Edition of Windows?")
>
> These editions of Windows exist entirely for legal reasons. In 2004, the European Commission found Microsoft had violated European antitrust law, abusing its monopoly in the market to hurt competing video and audio applications. The EU fined Microsoft €500 million and required Microsoft to offer a version of Windows without Windows Media Player. Consumers and PC manufacturers can choose this version of Windows and install their preferred multimedia applications without Windows Media Player also being present. It’s not the only version of Windows offered in the European Union—it’s just an option that has to be available. This is why the “N” editions are only available in Europe.
>
>
>
Upvotes: 3 [selected_answer] |
2020/12/27 | 897 | 3,365 | <issue_start>username_0: I don't know when or how I changed the behavior of the "enter key" (->|) in Google Sheets for Android. It used to enter the text I was typing (if any) into the current cell and then move to the cell below the current cell. This is what I want.
But for no apparent reason, "enter" now adds a line feed to the end of the text being typed and does NOT go to the next cell below.
Wrap Text is NOT selected and never has been.
How do I make touching the "enter" key move to the cell below the current cell and NOT merely add a line feed to the text being typed into the current cell?
\*\*\* EDITED \*\*\*
FWIW, I just noticed that touching "enter" twice puts a line feed at the end of the text being entered and THEN moves to the cell below the current cell, a bit surprising--why not add a second line feed? After all, if we're allowed to enter entire paragraphs into a cell, why not a generally-accepted properly-formatted second paragraph (blank line between the two)?
Surely the vast majority of users would prefer to have "enter" move to the next cell below the current line (or simply staying in the current cell) than adding a linefeed for possible (but rare) additional lines. I don't get it.
Why is there not an option to specify "enter" key behavior, as in Excel? (Or is there one and that's what I can't find?)<issue_comment>username_1: It depends on the keyboard you are using. I tested it first with Gboard and secondly with [Hacker's Keyboard](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard&hl=en_US&gl=US) and [Microsoft SwiftKey Keyboard](https://play.google.com/store/apps/details?id=com.touchtype.swiftkey&hl=en_IN&gl=US). With Gboard pressing `Enter`, insert a new line on the same cell. With Hacker's keyboard and Swiftkey, it takes you to the cell below. So, a possible solution is to use another keyboard (if GBoard is your default keyboard) while using Google Sheets.
>
> Why is there not an option to specify "enter" key behavior, as in Excel?
>
>
>
That's a question Google developers (Gboard) will answer better than us as to why their keyboard behavior is different from the other (I have not found a webpage yet a reason for this behavior).
>
> (Or is there one and that's what I can't find?)
>
>
>
There isn't one (for now).
**Disclaimer:** I am just a user of the mentioned keyboard apps.
Upvotes: 2 <issue_comment>username_2: Using Swiftkey and probably any other keyboard, you can long press the text input box to bring up the menu and select "Insert line break".
(Sheets Version 1.23.242.03.9 - 26 June 2023 with Android 13)
Using Hacker's keyboard, you can do Alt + Enter
Upvotes: 0 <issue_comment>username_3: My workaround: put a blank space at the end of each line of text in cells where you want Enter to always move down to the cell below the active cell. Then Enter moves to the next cell below.
Adding end-of-text spaces is a **sufficient** way to get "dropdown" cursor movement. But sometimes the cursor moves down *without* a space at end of text in a cell. So it's not a **necessary** thing to do.
I haven't tried to study the end-of-text characters to find a pattern or a rule for when adding a space is necessary and when not. Won't try anytime soon. Maybe someone knows or will do exhaustive testing and notetaking to find the rules.
Upvotes: 0 |
2020/12/27 | 621 | 2,264 | <issue_start>username_0: I don't want to disable AMP completely, but if I'm on an AMP page sometimes I want to get to the original webpage. There used to be a link to get there but that seems to be gone now. How do I get to the original web page?<issue_comment>username_1: It depends on the keyboard you are using. I tested it first with Gboard and secondly with [Hacker's Keyboard](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard&hl=en_US&gl=US) and [Microsoft SwiftKey Keyboard](https://play.google.com/store/apps/details?id=com.touchtype.swiftkey&hl=en_IN&gl=US). With Gboard pressing `Enter`, insert a new line on the same cell. With Hacker's keyboard and Swiftkey, it takes you to the cell below. So, a possible solution is to use another keyboard (if GBoard is your default keyboard) while using Google Sheets.
>
> Why is there not an option to specify "enter" key behavior, as in Excel?
>
>
>
That's a question Google developers (Gboard) will answer better than us as to why their keyboard behavior is different from the other (I have not found a webpage yet a reason for this behavior).
>
> (Or is there one and that's what I can't find?)
>
>
>
There isn't one (for now).
**Disclaimer:** I am just a user of the mentioned keyboard apps.
Upvotes: 2 <issue_comment>username_2: Using Swiftkey and probably any other keyboard, you can long press the text input box to bring up the menu and select "Insert line break".
(Sheets Version 1.23.242.03.9 - 26 June 2023 with Android 13)
Using Hacker's keyboard, you can do Alt + Enter
Upvotes: 0 <issue_comment>username_3: My workaround: put a blank space at the end of each line of text in cells where you want Enter to always move down to the cell below the active cell. Then Enter moves to the next cell below.
Adding end-of-text spaces is a **sufficient** way to get "dropdown" cursor movement. But sometimes the cursor moves down *without* a space at end of text in a cell. So it's not a **necessary** thing to do.
I haven't tried to study the end-of-text characters to find a pattern or a rule for when adding a space is necessary and when not. Won't try anytime soon. Maybe someone knows or will do exhaustive testing and notetaking to find the rules.
Upvotes: 0 |
2020/12/30 | 399 | 1,405 | <issue_start>username_0: I wanted to flash boot.img from magisk but my usb cable killed my pc. Is there any other way to root i/ And if there is any way to do something with that pc? Iys not charging after plugging usb it was okay for 10 seconds and then died.<issue_comment>username_1: If you have only 1 USB port in the PC, try a PCIe USB card.
As for rooting with Magisk without a PC, unless you can find a port of TWRP for it, I doubt it. (There's no official TWRP for the A20, and flashing Magisk requires TWRP as far as I can see from everything TopJohnWu has said. You can try the one at <https://mega.nz/folder/LTZlUKyI#oxxVc5zj8tP4bNQBIo8AlA> - no guarantees, and no saying how long it's going to be up there.)
If you get TWRP running, Install (in TWRP) the latest Magisk (not the manager, although you'll need that installed too - as an app) from TWRP.
Running the manager after that should tell you that Magisk is installed.
On second consideration (after thinking for a few minutes), you'll probably need a PC to install TWRP. So maybe use someone else's PC to install Magisk? (Then you can just patch a boot.img file [that you can extract from a BL tar] and flash it with Odin.)
Upvotes: 1 <issue_comment>username_2: Not possible. Samsung devices running Android 7.0+ or later can only rooted with Odin or heimdall. you need a PC for this (or something that can act like PC)
Upvotes: 0 |
2021/01/01 | 882 | 3,583 | <issue_start>username_0: I am using Android 11 (Build Number RP1A.201005.004.A1) on a Google Pixel 2 XL with an external BlueTooth keyboard (Logitech K480).
In my normal typing on a desktop or a laptop, I am very used to typing spaces with the Shift key depressed (habit) and it correctly registers as a normal Space key in those environments, but on Android, it triggers a change in language which I have to then stop and change back, and then continue typing.
Obviously, one solution is for me to try and change 20 years of typing muscle memory, but I would also like to know how I can disable this keyboard shortcut, so that I can have a similar typing experience to what I would have on laptop or desktop.
Thanks.
---
Update (3rd January 2021)
-------------------------
I checked to see if the answers to the question linked in the comments by @Robert solved my issue or not.
As per the suggestions in the linked question, I switched off the [Google Indic keyboard](https://play.google.com/store/apps/details?id=com.google.android.apps.inputmethod.hindi) which is what was apparently providing the Shift + Space keyboard shortcut, with no way to change this mapping. Here is a screenshot of all the settings in the Google Indic keyboard app, having cycled through all of which, I was unable to locate a setting for changing keyboard shortcuts:
[](https://i.stack.imgur.com/2lAbj.jpg)
Anyway, reverting to Gboard, which is the main suggestion in the linked question (albeit for Samsung phones) does not resolve my issue:
1. Firstly, there now appears to be no external keyboard shortcut to switch between languages. I tried several combinations after having added a couple of languages to Gboard.
2. Secondly, and more importantly, Shift + Space now *does nothing*. Which means that my original intent of getting Shift + Space to emulate a Space keypress is not actually solved.
In fact, while this query was for my Pixel 2 XL, tinkering around with my Samsung Note 10+, I discovered that the Samsung keyboard actually provides exactly this feature of being able to switch off the Shift + Space external keyboard shortcut to switch languages, which is exactly what I am looking for in Gboard! See the screenshot below (Shift + Space on my Note 10+ now simply enters a Space while typing, exactly as desired):
[](https://i.stack.imgur.com/YUHEM.jpg)
**I am really hoping that someone can help me understand how I can get Shift + Space to be just a plain Space keypress on Android using an external keyboard.**<issue_comment>username_1: I have a suggestion! You gave me the idea. Install a keyboard called Hacker's Keyboard. Switch to it when you use your Bluetooth keyboard. Hacker's Keyboard doesn't have the shift space function and it will type normally.
Upvotes: 0 <issue_comment>username_2: go to Settings > General Management > Physical Keyboard > Change Language Shortcut > and disable the short cuts you dont want to use to switch the language.
Upvotes: 0 <issue_comment>username_3: Google just posted an [update](https://issuetracker.google.com/issues/232420192#comment23) on the ticket for one of the suggested solutions to this issue stating that the next version of Gboard is going to block Shift+Space if any character other than space is hit after pressing the shift key before pressing space. This should eliminate the misfires that cause the complaints about it.
Upvotes: 2 |
2021/01/02 | 874 | 3,419 | <issue_start>username_0: Hi since I updated to LineageOs 17.1 I am having storage problems, because the management of the adoptable storage does not work as expected.
**The problem:**
LineageOs migrates constantly data from the sd-card (used as internal storage) to the real internal storage. Somehow the play, and apps like WhatsApp distinct between the internal storage and the adoptable storage and ask me to free space. WhatsApp even stopps working. So I constantly remove apps, but even freeing several GB of data does not help because LineageOs moves more and more data to the internal storage.
**What I did to cause the problem:**
* Installed LineageOs 17.1 and enabled adb debugging.
* Deleted the old partition table of my sd-card
* used adb shell to format the sd-card with: sm partition disk:179,64 private
* put a lot of data to my phone
* **by accident clicked** in the options of the internal storage on "**migrate data**", what is the opposite of what I want. The process terminated with an error because of running out of storage. So maybe it never stopped and some flag is still set somewhere, what causes my problem?
**What I tried to solve the problem:**
* Rooted the phone with Magisk
* Installed app2sd pro from <NAME> and tried to move apps. This did not help because the app seems to be targeted to an environment with a portable and non-adoptable sd-card storage? Clicking on linking apps to the sdcard results in an at this stage not further specified error. I just think this is the wrong way to go?
**The question:**
How can I increase the 16GB internal space available (with LineageOs 17.1) for apps on my phone by using my external 64GB sd-card?
This question might be related to [this one](https://android.stackexchange.com/q/225562/87660).<issue_comment>username_1: I had the same problem with lineage 15.1 on my samsung s4mini.
the solution which worked....
* under 15.1 I formatted the sd as internal storage
* I copied all relevant system zip files to the sd card (lineage 15.1 / open gapps 8.1 pico / supersu v82)
* I booted to twrp recovery and wiped everything except preload and the sd card
* then I installed all above mentioned 3 relevant system files from the sd-card in one go
* I rebooted and my sd card was still configured as internal memory and newly installed apps moved to a large extent to the sd card and the phone was still rooted - it was perfect
having installed apps which would not have fitted to internal memory before I am now using only 3.3 of 8.0 gb and if I install more apps the real internal memory will fill up just slowly....
Upvotes: 1 <issue_comment>username_2: Sorry to revive this year old thread but found a method which seems to solve this issue so just want to put it down here for everyone's benefit. I am on LineageOS 18.1 (Android 11):
1. Enable Developer Options (Settings -> About -> Tap build number 7
times)
2. In Developer Options under Apps section there is a setting called
Force allow apps on external, enable that.
3. Now you should be able to go to Settings -> Apps and click on each
app to see if they are using Internal Storage or SD card, if it is
on Internal Storage you can move it to SD card.
Using this method most of my apps could be moved to SD card. One thing I noticed is the space used doesn't really update immediately and I had to reboot the device to see the space used in internal storage.
Upvotes: 0 |
2021/01/04 | 1,360 | 4,486 | <issue_start>username_0: I'm on Google Pixel 2, Android 11, Chrome 87.0.4280.101.
[I have 494 open tabs, as I explain in my answer here on how to count them](https://android.stackexchange.com/questions/155955/how-many-tabs-are-open-in-chrome-browser-above-100/232568#232568). I need to selectively close about 450 of them, or just close all of them then re-open about 20 to 50 of them.
How do I mass-close many or all of them at once?
The last time I mass-closed hundreds of tabs manually I sat there for like 30 minutes swiping until they were all closed. I don't want to do that again. That was ridiculous. (Compared to full computers, phones are garbage. :))
This tablet-specific answer doesn't seem to apply to phones, or to apply anymore to the latest versions, so it does *not* contain an answer that works for me: [How do I close all tabs in Chrome for Android?](https://android.stackexchange.com/questions/62319/how-do-i-close-all-tabs-in-chrome-for-android).
Here's what I see in my Chrome menu when I click on the 3 dots in the top-right corner:
[](https://i.stack.imgur.com/MHefC.png)
This is in French. Translation:
>
> New Tab
>
> New Incognito tab
>
> Favorites
>
> Recent tabs
>
> History
>
> Downloads
>
> Translate
>
> Share
>
> Search on the page
>
> Add to welcome screen
>
> Version for computer
>
> Settings
>
> Help and Feedback
>
>
><issue_comment>username_1: Update: Better answer: <https://android.stackexchange.com/a/232571/121619>
---
I couldn't find a good solution, but here's what I did, and it was really irritating I had to do this, but it worked:
**Solution: Uninstall the Chrome app, then reinstall it:**
1. First, go to here *in Chrome on your computer* (`chrome://history/syncedTabs`) and open up *on your computer* any tabs (that you see open on your phone device) that you'd like to send back to your phone later to essentially "keep open".
2. *From your phone*: Uninstall the Chrome app from your phone: Play Store --> click 3 horizontal bars in top-left (sometimes called the "hamburger icon") --> "My Games and Applications" ("Mes jeux et applications" in French) --> "Installed Applications" ("Applications installées") tab --> scroll down to Chrome and tap on it --> click the "Uninstall" ("Désinstaller") button.
3. When done, reinstall it. This seems to have worked. All tabs are now closed in Chrome, and it shows I have `1` tab open!
4. *From your computer*: "Restore" the few tabs you wanted to keep open by simply right-clicking the tabs on your computer you wanted to send back to your phone, and selecting "Send to your devices" --> "Google phone". On your phone, a notification will pop up. Click it to open the new tab in Chrome. You have to do this once per tab you'd like back open on your phone. I did this for about 10 of my 494 tabs I had open on my phone. So, now I'm back to 10 open tabs on my phone.
How dumb I had to uninstall the entire app to close all the tabs at once. ~~***GOOGLE/CHROME, PLEASE FIX THIS! MANY THANKS IN ADVANCE!***~~ Update: [do this instead](https://android.stackexchange.com/a/232571/121619). See the comments under that answer too (*nevermind, an admin deleted them--just be sure to click the number of open tabs icon BEFORE clicking the 3 dots icon is all, as doing that step first causes the 3 dots menu to change*).
---
Note that prior to uninstalling the Chrome app on the phone I also cleared all of its cache and storage data on the phone. This did NOT close all the tabs by itself. The complete "Uninstall" process was required. I'm not sure if doing these two things prior to uninstalling the app had any effect on the uninstall/reinstall process, but in case it did, I'm mentioning it here. I don't think it did.
Upvotes: 0 <issue_comment>username_2: Closing all tabs in Chrome is very simple with the recent version and works on smartphone and tablet:
First press the button that shows the tab count:
[](https://i.stack.imgur.com/jVySsm.png)
Then open the three-dots-menu
[](https://i.stack.imgur.com/g30Nqm.png)
And finally select "Close all tabs".
[](https://i.stack.imgur.com/Kpj63m.png)
Tested with Chrome 87.0.4280.101.
Upvotes: 3 [selected_answer] |
2021/01/04 | 351 | 1,256 | <issue_start>username_0: I have enabled OEM unlock and USB debug from settings. I am using Vivo fastboot tool. And after entering the fastboot menu, I tried the code `fastboot bbk unlock_vivo`.
```
C:\Users\dell\Desktop\vivo_fastboot_for_windows>fastboot devices
MNFM7PSSGM75SKBY fastboot
C:\Users\dell\Desktop\vivo_fastboot_for_windows>fastboot bbk unlock_vivo
...
FAILED (remote: unclock fail.)
finished. total time: 0.004s
```
I tried various solutions on the internet but couldn't find one.
Please someone help me.<issue_comment>username_1: Vivo devices with a Mediatek chipset don't allow anyone to unlock the bootloaders. The Qualcomm device's bootloaders can be unlocked by the unofficial EDL method discussed by XDA Developers. Sadly, my device is also based on the Mediatek chipset.
Please be patient until the Vivo developers officially release any method to unlock the bootloaders.
Upvotes: 1 <issue_comment>username_2: Try this. I see on the system to unlock the bootloader, there is this command. Remember to type one by one.
```
fastboot flashing unlock
fastboot flashing unlock_critical
fastboot flashing get_unlock_ability
```
The problem is that even though I want to try it, there is no laptop or PC at home.
Upvotes: -1 |
2021/01/07 | 363 | 1,264 | <issue_start>username_0: I have the [Ulefone Armor 9](https://www.gsmarena.com/ulefone_armor_9-10322.php). 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?<issue_comment>username_1: 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
Upvotes: 3 [selected_answer]<issue_comment>username_2: 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.
Upvotes: 0 |
2021/01/10 | 1,227 | 4,180 | <issue_start>username_0: The bad
-------
Last week I totaled a Galaxy S9's screen which I owned for over two years. I liked the phone so I headed up on Facebook market to look for another one.
I discovered a phone that I liked and went on to buy it.
When I had the phone in my hands, before paying, I run a service code (*#0011#* to see if all sensors/screen etc worked). This passed so I bought the phone.
Also, the phone won't do Samsung updates. It would either throw an error after download (The downloaded file is not correct) or restart when attempting.
The ugly
--------
Here's the harsh part: not long after leaving the dodgy seller, while going home, the phone started behaving really weirdly: sudden restarts, some screen glitches, and artifacts. The phone also loses battery pretty quickly, either due to the weird sudden restarts or else.
[](https://i.stack.imgur.com/iua37.png)
Note the purple glitches. I was able to record these with a screenshot, meaning it comes from the GPU chip?
The good
--------
The first thing I looked at was the water damage sticker beneath the sim tray:
[](https://i.stack.imgur.com/EPfBJ.jpg)
I then managed to charge the phone fully and log in with a Google account, which allowed me to do further diagnostics. I installed Geekbench and run a test. The phone has a normal score for this model.
I tried filming, calling, playing games on the phone and all seems well.
The only times when the phone restarts are after receiving an error like "Google Services App crashed" or "Samsung Services App crashed" or suddenly when I try to use a service or disable/uninstall blootware.
I also managed to get the phone to update through Samsung Smart Switch to the latest update (Security Patch 1 Dec 2020)
Resolution:
-----------
I have a few options for repairing this weird phone
1. Find what version of firmware I could flash on the phone and hope for a stock experience (including bootloader etc) - This option assumes that the hardware is intact, the chipset has no water damage, etc.
2. Open the, in which case I lose IP68 (assuming this is not lost already) and change the motherboard with my old phone's.
How to proceed from here?
-------------------------
I am a bit unfamiliar with choosing the right firmware etc. I have the following information in the phone's software info:
* One U.I 2.1
* Android 10
* Baseband version: G960FXXSBETG8
* Kernel version: 4.9.118-18847185 # 1 Mon Aug KST 2020
* Build number QP1A.190711.020.G960FXXSBETH1
* Knox 3.4.1 API level 30 TIMA 4.0.0
* Service provider SW ver.: SAOMC\_SM-G960F\_CKH\_DRE\_QQ\_0009 / 2b282a7f23017ece (DRE/DRE/DRE)
* CSC: G960FCKHCFTK1
* AP: G960FXXSCFTK2
* CP: G960FXXUCFTJ1
I tried downloading **[this](https://samfw.com/firmware/SM-G965F/EVR/G965FXXUCFTK1)** firmware version, but from what I've read the bootloader version here is too old and cannot replace the current bootloader. How can I determine the bootloader version on my phone? XDA forums say it's the 5th digit from the Build Number. However, my Build Number doesn't seem to respect the format of the above file.
Can anyone suggest what to do next? I'm itching to open the phone, but I think it's wiser to try and repair it from firmware.<issue_comment>username_1: bootloader level is increased in 1 digit
1 2 3 4 5 6 7 8 9 A B C D
G960FXX**SB**ETH1 = B
G960FXX**UC**FTJ1 = C
you can download rom for SM-G960F from updato, samfirm, frija or samloader. try lowest bootloader first, as you already stated downgrade is impossible (and higher version usually comes with higher protection against rooting). you can check bootloader version from download mode screen
Upvotes: 1 <issue_comment>username_2: Thank you username_1 for your support. It kept restarting and showing a bicolour (green/blue) padlock which I assumed was a security feature from the carrier. The phone will work for extended periods of time, however, it would randomly restart when using standard google/samsung services, even with a new firmware.
Upvotes: -1 [selected_answer] |
2021/01/14 | 1,897 | 5,876 | <issue_start>username_0: **Disclaimer:** this is not a duplicate to [this SO question](https://stackoverflow.com/q/5092542/4575793) as the source of the question is different and the answers don't apply.\* I hope, it is correctly placed in AE and that the note about not using *Genymotion* does not confuse the reader. The reason to include it in the title is that it is so dominantly present in other answers, but it does have nothing to do with this question, as I don't use any emulator including *Genymotion*.
---
So I'm trying to install LineageOS on my Fairphone FP3+ using Windows 10. But: This also applies to other products with other respective versions - in this case, the device uses **Android 10** (with Build number 8901.3.A-0054.20200929). For the installation I need **ADB** - at first to access the [fastboot mode](https://www.droidwiki.org/wiki/Fastboot_%28Tool%29). For that, I first installed the latest *Android Studio* from [here](https://developer.android.com/studio#downloads) but actually only needed the *SDK Platform Tools*, which you can find [here](https://developer.android.com/studio/releases/platform-tools) (not to be mistaken with the *Command line tools* from [the link before](https://developer.android.com/studio#downloads)). I [unlocked the bootloader](https://www.fairphone.com/en/bootloader-unlocking-code-for-fairphone-3/) and ran the following command which is displayed with it's output:
```
D:\Setups\XXXXX\Lineage FP3\platform-tools_30.0.5(ADB_1.0.41)>adb devices
adb server version (40) doesn't match this client (41); killing...
* daemon started successfully
List of devices attached
```
[This SO question I mentioned in the disclaimer](https://stackoverflow.com/questions/5092542/adb-server-version-doesnt-match-this-client/10428330#10428330) didn't help, as `abd` didn't even print any devices - so the setting is quite different. I also went through these linked questions: [link 1](https://stackoverflow.com/questions/38214012/solving-adb-server-version-doesnt-match-this-client-error), [link 2](https://stackoverflow.com/questions/26431972/android-studio-lollipop-adb-genymotion-issues-devices-wont-show-up-adb), [link 3](https://stackoverflow.com/questions/56948676/adb-server-version-40-doesnt-match-this-client-41-killing) and [link 4](https://stackoverflow.com/questions/39383096/adb-server-version-32-doesnt-match-this-client-36-when-updated-to-android-7) among others. **Genymotion** is as said not used here, but referred to in almost any Q/A except [here](https://stackoverflow.com/questions/43050370/adb-server-version-36-doesnt-match-this-client-39-not-using-genymotion), but also no soulution for me to be found there. I already checked the PC for any software that could have installed another adb version, but neither me nor cmd's `where` could find any ([4](https://stackoverflow.com/a/5289530/4575793), [7](https://stackoverflow.com/a/6553927/4575793), [8](https://stackoverflow.com/a/8752136/4575793); [9](https://stackoverflow.com/a/10428330/4575793), [11](https://stackoverflow.com/a/38331203/4575793) or [10](https://stackoverflow.com/a/27816653/4575793)).
---
```
adb kill-server
adb start-server
```
Did also not change a thing as suggested [here](https://stackoverflow.com/a/5093428/4575793) or [here](https://stackoverflow.com/a/38225671/4575793). I restarted all devices and software multiple times and tried getting rid of all adb processes too ([6](https://stackoverflow.com/a/29358138/4575793), [13](https://stackoverflow.com/a/41810703/4575793) or [12](https://stackoverflow.com/a/46402392/4575793)).
I also reinstalled Android Studio to try it without using the cache as suggested in [this SO answer](https://stackoverflow.com/a/64875828/4575793) from a possibly related question that unfortunately also has no leads. I can imagine that some questions like that one or [this SO one](https://stackoverflow.com/q/53500057/13914780) could also be helped here.<issue_comment>username_1: Since this `adb server version (XX) doesn't match this client (YY); killing...` seems to be a very prominent question, let me present the quite straight forward solution - I actually wonder why it wasn't answered anywhere else or at least, I couldn't find it. To find the version of ADB you are using, type `adb version` to get something like:
```
Android Debug Bridge version 1.0.41
Version 30.0.5-6877874
Installed as D:\Setups\XXXXX\Lineage FP3\platform-tools_30.0.5(ADB_1.0.41)\adb.exe
```
The **Android version** simply doesn't match the **adb version**. **Android 11** for example uses the API 30 and **ADB 41**. **Android 10** (API 29) and that phone needs **ADB 40**. You can check your Android version to find the corresponding **ADB version** to get or easily read the error message above to find XX (in this case 40).
I was able to find ADB version 1.0.40 from [here](https://www.evofiles.net/download/sdk-platform-tools-for-windows-latest-version/) and it works like a charm:
```
D:\Setups\XXXXX\Lineage FP3\platform-tools_28.0.1(ADB_1.0.40)>adb devices
List of devices attached
A2XXXXXXXXX1 unauthorized
```
Upvotes: 3 [selected_answer]<issue_comment>username_2: I just encountered this error and this QA thread did help me, although it wasn't the exact answer for me. I had recently added a second copy of adb to my computer, so that was causing a conflict between the two copies of adb. I needed to update the Path in my Environment Variables to point to the newer platform-tools directory.
Upvotes: 1 <issue_comment>username_3: Having had this issue after an update and I wasn't able to solve this in the usual way. Through [@username_1's answer](https://android.stackexchange.com/a/232860/340401) I was able to find another `adb.exe` instance running om my windows, which was the one used by SuperDisplay, which I use to run an Android Tablet as a secondary screen.
Upvotes: 0 |
2021/01/15 | 358 | 1,451 | <issue_start>username_0: I have a samsung (android) device and I use samsung gallery app. Question: Does deleting a photo from the gallery app also delete it from Google Photos in which I have my backup and sync turned on. And if yes, then how to prevent it. ie I want a photo to stay in Google Photos even after I delete it from Samsung Gallery app.
PS: If the solution is to turn off sync then how to Turn on just backup on Google Photos without turning on sync.<issue_comment>username_1: Yes, Google Photos does send it to the bin.
You can prevent this from happening by tapping the "Free up space" feature in Google Photos, which will delete all the photos on your phone that have already been backed up to Google Photos.
Upvotes: 1 <issue_comment>username_2: If you want to delete specific photos from your device without deleting them from your Google account, the following steps should do it:
1. Remove your Google account from your phone:
1. Go to Settings
2. Tap Accounts
3. Tap your Google account
4. Tap Remove account
2. Delete the desired photos from your phone.
3. Re-add your Google account to the phone.
Note: this might result in some minor inconveniences the next time you launch various other apps that use your Google account. And it's certainly much more of a hassle than using the [method alecxs provided](https://android.stackexchange.com/questions/232775/google-photos-deletes-copy-and-original-on-device).
Upvotes: 0 |
2021/01/19 | 416 | 1,566 | <issue_start>username_0: I use Redmi 9 Prime. On that, I use the [Truecaller](https://play.google.com/store/apps/details?id=com.truecaller&hl=en_IN&gl=US) app. I want to use Truecaller only for calls and strictly not for SMS. So I never give SMS read permission to the Treucaller app.

But still, sometimes Truecaller read new personal SMS. Till now did not see any service or OTP SMS in Truecaller. Don't know how come.
What can be the reason or source for getting this possible? How can I stop Truecaller from strictly touching my SMS?<issue_comment>username_1: Yes, Google Photos does send it to the bin.
You can prevent this from happening by tapping the "Free up space" feature in Google Photos, which will delete all the photos on your phone that have already been backed up to Google Photos.
Upvotes: 1 <issue_comment>username_2: If you want to delete specific photos from your device without deleting them from your Google account, the following steps should do it:
1. Remove your Google account from your phone:
1. Go to Settings
2. Tap Accounts
3. Tap your Google account
4. Tap Remove account
2. Delete the desired photos from your phone.
3. Re-add your Google account to the phone.
Note: this might result in some minor inconveniences the next time you launch various other apps that use your Google account. And it's certainly much more of a hassle than using the [method alecxs provided](https://android.stackexchange.com/questions/232775/google-photos-deletes-copy-and-original-on-device).
Upvotes: 0 |
2021/01/21 | 749 | 2,755 | <issue_start>username_0: I wish to use a USB stick with both my Android device and my Windows 10 PC.
My requirements are:
* No file size limitation
* No root required on the Android device
* The filesystem should be natively supported by the Android device
My Android device is a Samsung Galaxy S10. I would like a solution that would work with all modern Android devices, but I don't mind if I'm limited to the Samsung.
Which filesystem should I use?<issue_comment>username_1: Based on your requirements there are not many file-systems left: `ext3/ext4` or `exFAT` both are file-systems that are natively supported nearly all Android devices.
My recommendation as file-system to use is `exFAT` as long as you don't want to store a large number of small files.
[partitions size to cluster size](https://support.microsoft.com/en-us/topic/default-cluster-size-for-ntfs-fat-and-exfat-9772e6f1-e31a-00d7-e18f-73169155af95):
* 7 MB–256 MB -> cluster size 4 KB
* 256 MB–32 GB -> cluster size 32 KB
* 32 GB–256 TB -> cluster size 128 KB
The other option ext3/ext4 may cause problems if you ever want to connect the USB-stick to an Windows PC as Windows does not support it.
exFAT has no relevant maximum file-size (the file size limit of [exFAT is 16 Exabytes and therefore larger than the largest disc for the next decades](http://ntfs.com/exfat-comparison.htm))
Regarding the exFAT support Android should support this file-system if it has an SD-card slot and supported SD-card with 64 GB and beyond.
To my experience the exFAT read support usually works, but the write support can be buggy on some devices (permission problem). Therefore the only way is to format an USB-stick with exFAT and test it on the devices you want to use it.
For more details see also this question and it's answers: [Since which Android version is exFat supported?](https://android.stackexchange.com/questions/163197/since-which-android-version-is-exfat-supported)
Upvotes: 2 [selected_answer]<issue_comment>username_2: There isn't a solution that meets all of your criteria. Which criteria is your priority and where can you compromise?
If you want read-write support on both Android and Windows, you'll need to use FAT32 and format it in Windows. This will limit file size to 4 GiB.
If you need file sizes greater than 4 GiB, you can use ext3, which supports file sizes up to 2-16 TiB depending on block size. You won't have reliable write access on Windows, but there are good tools/drivers for read-only access.
In my experience, this is going to bite you eventually. Something will get corrupted if you have two different platforms writing to the same filesystem. The most reliable way to get cross-OS storage is via network-attached or cloud storage.
Upvotes: 0 |
2021/01/23 | 1,197 | 4,918 | <issue_start>username_0: After getting a replacement phone from Verizon, the new Motorola Edge Plus will not stay powered off while charging, as the last one did.
After looking on the forums, I enabled developer options, but "stay awake" was not enabled.
The problem persists with 5 and 15W chargers, as well as Qi charging.
It turns on when plugged in if it was previously off, and restarts automatically if I turn it off while it is already plugged in.
To be clear, all I want to do is be able to turn the phone off and see its charging progress without turning the whole phone on.
Any help or recommendations would be greatly appreciated.<issue_comment>username_1: You can not do this any more. All modern phones running the latest version of Android will automatically turn on if they detect power input, this is a safety feature that (as far as I am aware) you can not disable. If you would like to have your phone stay powered off while charging, you must downgrade to an earlier version of Android.
I wasn't happy when I discovered it as well, and I searched for days to find a straight answer, which is surprisingly difficult to find. This answer is based on dozens of posts on multiple sites and hours of scrolling through community responses to similar questions. My phone is a Pixel 3 XL, but it doesn't seem to matter what model, it seems to be the same across all of the latest makes and models of phones that run the latest Android. This "feature" seems to have been implemented in 2018 for Nexus and Pixel phones, although it is difficult to pinpoint when exactly. From then on, it began to pop up in other manufacturer's devices as well, so I'm guessing this is an industry standard now. I also found that most Apple devices do this as well, from seemingly the iPhone 5 onward, though I'm not as sure about that since I wasn't specifically looking up Apple phones.
I hope this helps, and secretly I hope I'm wrong and there is some secret hidden menu somewhere that will disable this function.
Cheers.
****EDIT****
New undisputable evidence has proven me 100% wrong. 3 days of research only to come to the wrong conclusion. Any future readers, please disregard this answer, as it is wrong. Some of the things I said are still probably true, some phones definitely have this "feature" if you can call it that, but it is NOT a new industry standard being pushed by Google. In my case, it ended up being a dirty charging port.
Upvotes: 0 <issue_comment>username_1: I WAS WRONG!
I NEVER would have thought this was the cause, but I was wrong and I thought you deserved an update. I cannot explain why so many people were confirming that their phones would refuse to stay off... but I guess that was all just one giant red herring.
I was having trouble getting my USB-C cable to charge my phone, I would have to keep it at an odd angle in order for it to charge. I got tired of this, so I decided to clean out the USB port. I shut off my phone, grabbed a sewing needle, and then removed all the pocket lint that had collected in the USB-C port on my phone. After that, I plugged it in to charge and... it didn't turn on. Before today, it would power on the instant I plugged it in. Now, it stays off! I cannot tell you how much I HATE being wrong, but I also didn't want to leave you with an incorrect answer.
In fact... now that I think of it, all of the Android phones that people are "confirming" will automatically turn back on, they all have USB-C. At the risk of being wrong again, I wonder if it's a combination of some people just having dirty USB ports and some phones genuinely having that feature.
I apologize for misleading you. All of the data I painstakingly collected is now suspect. I am 100% certain that at least some modern phones have this "feature" but it is clear to me that I was completely wrong in my assertion that this was a new feature being pushed by Google... IT seemed obvious based on everything I was reading...
At least this explains why I couldn't find any official documentation on it...
PS:
I doubt your charging port is dirty since it is a new phone, but it is worth trying a different cable, a different charger, and if all else fails, cleaning the port anyway. Please downvote my previous answer so I do not accidentally mislead anyone. I will post a comment under that answer saying I was wrong, that way I don't confuse future readers
Upvotes: 1 <issue_comment>username_2: I thought I was going crazy. I shut my phone off while the charger is plugged in. And an hour later the phone turns on automatically! Waking me up out of a dead sleep because I'm hearing "Hello Moto!" I was able to charge my phone overnight without it having to be turned on before. I don't like this feature. If I understand this correctly, I need to shut the phone off completely and then I can plug in my charger. To allow the phone to stay off while charging.
Upvotes: 1 |
2021/01/25 | 1,376 | 5,838 | <issue_start>username_0: I have temporarily moved to a new university for a research project, and I'm now using their wifi Internet connection. While everything seems to work fine with the Windows 10 laptop, the Skype app on my Android phone keeps "freezing". What I mean is that although I seem to be connected and I can see my contacts, I cannot make nor receive any calls. Even if I turn off the wifi and use the mobile connection on the phone, the situation does not change.
After many attempts, I have found out that if I logoff from the app and I login again using the mobile connection, the app starts working again. At this point I can even restore the wifi connection and everything works for a while. But eventually it freezes again...
The weird thing is that this trick doesn't always work. Sometimes after I logoff from the Skype app I cannot login back even if I'm connected with the mobile data. I keep getting the error message "unable to sign in. Please check your internet connection". Also, if I try to login to my Skype account using Chrome for Android I cannot reach the page and get the message "DNS\_PROBE\_FINISHED\_NXDOMAIN". But everything else seems to work fine and I can browse other websites or use different apps.
I understand that this might be due to some strange settings of my host university. While this is annoying, I can live with that. But what I really would like to understand, though, is why my phone behaves so strangely even when I'm switch off from the university wifi and I'm using my private mobile data connection...<issue_comment>username_1: You can not do this any more. All modern phones running the latest version of Android will automatically turn on if they detect power input, this is a safety feature that (as far as I am aware) you can not disable. If you would like to have your phone stay powered off while charging, you must downgrade to an earlier version of Android.
I wasn't happy when I discovered it as well, and I searched for days to find a straight answer, which is surprisingly difficult to find. This answer is based on dozens of posts on multiple sites and hours of scrolling through community responses to similar questions. My phone is a Pixel 3 XL, but it doesn't seem to matter what model, it seems to be the same across all of the latest makes and models of phones that run the latest Android. This "feature" seems to have been implemented in 2018 for Nexus and Pixel phones, although it is difficult to pinpoint when exactly. From then on, it began to pop up in other manufacturer's devices as well, so I'm guessing this is an industry standard now. I also found that most Apple devices do this as well, from seemingly the iPhone 5 onward, though I'm not as sure about that since I wasn't specifically looking up Apple phones.
I hope this helps, and secretly I hope I'm wrong and there is some secret hidden menu somewhere that will disable this function.
Cheers.
****EDIT****
New undisputable evidence has proven me 100% wrong. 3 days of research only to come to the wrong conclusion. Any future readers, please disregard this answer, as it is wrong. Some of the things I said are still probably true, some phones definitely have this "feature" if you can call it that, but it is NOT a new industry standard being pushed by Google. In my case, it ended up being a dirty charging port.
Upvotes: 0 <issue_comment>username_1: I WAS WRONG!
I NEVER would have thought this was the cause, but I was wrong and I thought you deserved an update. I cannot explain why so many people were confirming that their phones would refuse to stay off... but I guess that was all just one giant red herring.
I was having trouble getting my USB-C cable to charge my phone, I would have to keep it at an odd angle in order for it to charge. I got tired of this, so I decided to clean out the USB port. I shut off my phone, grabbed a sewing needle, and then removed all the pocket lint that had collected in the USB-C port on my phone. After that, I plugged it in to charge and... it didn't turn on. Before today, it would power on the instant I plugged it in. Now, it stays off! I cannot tell you how much I HATE being wrong, but I also didn't want to leave you with an incorrect answer.
In fact... now that I think of it, all of the Android phones that people are "confirming" will automatically turn back on, they all have USB-C. At the risk of being wrong again, I wonder if it's a combination of some people just having dirty USB ports and some phones genuinely having that feature.
I apologize for misleading you. All of the data I painstakingly collected is now suspect. I am 100% certain that at least some modern phones have this "feature" but it is clear to me that I was completely wrong in my assertion that this was a new feature being pushed by Google... IT seemed obvious based on everything I was reading...
At least this explains why I couldn't find any official documentation on it...
PS:
I doubt your charging port is dirty since it is a new phone, but it is worth trying a different cable, a different charger, and if all else fails, cleaning the port anyway. Please downvote my previous answer so I do not accidentally mislead anyone. I will post a comment under that answer saying I was wrong, that way I don't confuse future readers
Upvotes: 1 <issue_comment>username_2: I thought I was going crazy. I shut my phone off while the charger is plugged in. And an hour later the phone turns on automatically! Waking me up out of a dead sleep because I'm hearing "Hello Moto!" I was able to charge my phone overnight without it having to be turned on before. I don't like this feature. If I understand this correctly, I need to shut the phone off completely and then I can plug in my charger. To allow the phone to stay off while charging.
Upvotes: 1 |
2021/01/26 | 1,540 | 6,097 | <issue_start>username_0: Technology users are faced with a challenge: Allowing our tech devices to work without them invading our privacy.
Obviously choosing products carefully is a critical step. Unfortunately, the two main players in the smartphone space, **Google and Apple**, are well known for their questionable data collection and harvesting practices.
[LineageOS](https://lineageos.org/) and [/e/OS](https://e.foundation/products/) are *up-and-coming* providers of privacy-friendly smartphone operating systems. Until they become more commonplace, I thought it would be worthwhile to create a compendium of internet hosts to which Android connects by default.
To do this, I let an Android device run for 5 hours and captured all packets trying to leave the device.
The Android device was configured *never* to share contact data, calendar data, task data, map data, location data, or any history of any kind. It also was configured to not transmit or receive email *at all*. The internet search function of the launcher was removed. Furthermore, Google Chrome and the Google's Android Assistant were both disabled, as were all the various "Google Play" apps (such as Google Play Books, Google Play Games, Google Play Movies & TV, Google Play Music / YouTube, Google Play Newsstand) except for the Play store. Within the Google Play store, automatically checking for new app versions was disabled. Finally, a non-Google keyboard was installed and set as the default.
Even after doing all this, within just 5 hours of the phone sitting without being used, the Android device attempted to connect to all the following Google-owned hosts:
history.google.com
mtalk.google.com
alt1-mtalk.google.com
alt2-mtalk.google.com
alt3-mtalk.google.com
alt4-mtalk.google.com
alt5-mtalk.google.com
alt6-mtalk.google.com
alt7-mtalk.google.com
alt8-mtalk.google.com
android.clients.google.com
[www.google.com](http://www.google.com)
android.googleapis.com
play.googleapis.com
cloudconfig.googleapis.com
connectivitycheck.gstatic.com
footprints-pa.googleapis.com
mobilemaps.googleapis.com
people-pa.googleapis.com
[www.googleapis.com](http://www.googleapis.com)
[www.googletagmanager.com](http://www.googletagmanager.com)
play-lh.googleusercontent.com
smtp.gmail.com
What is the purpose of each of these hosts, and why are so many connections still being attempted given that almost everything Google-related is supposed to be disabled on the device?
Note that I don't expect a single answerer to know the purpose of every host listed, but hopefully we can work together to use this QA to create a quality reference resource.<issue_comment>username_1: I don't know the purpose of all hosts, but here is what I know:
### connectivitycheck.gstatic.com
On this host typically only the URL <https://connectivitycheck.gstatic.com/generate_204> is used. It is used by the Android device to determine if there is Internet access or not.
### android.clients.google.com
Primarily this host serves Google Play Store for all sorts of queries, e.g. search for apps, periodical device registration, ...
### history.google.com
The purpose of this host is not quite clear. The used service is called "history recording" and the server responds if it should be enabled or not. Potentially this is the host for the Google location history recording?
### play.googleapis.com
Obviously this API is used by Google Play Store. For example if an app should be downloaded this server is used (besides some other servers).
### android.googleapis.com
As far as I know this server is used for authentication purposes and for Google push notifications.
### [www.googleapis.com](http://www.googleapis.com)
Used by various Google services such as Google Calendar, Drive, Chat, Hangouts, User Location, Android Video ...
Inspect the traffic on your own
-------------------------------
If you are interested in more details and have a rooted spare device I recommend to you to install Xposed + [TrustMeAlready](https://github.com/ViRb3/TrustMeAlready) plugin (this disables SSL/TLS server check for every app - hence makes SSL/TLS totally insecure therefore don't use this on a regular device). Then install an HTTPS intercepting proxy such as Fiddler/Mitmproxy/Charles, ... on your PC and configure your PC as proxy in Wifi settings. Afterwards you can see all the data transmitted by your device.
Upvotes: 2 <issue_comment>username_2: @username_1 has already given an answer to several addresses. I will just add my 2 cents for the following:
* history.google.com: relates to your account activities (searches , youtube, location, etc). That URL sends you to <https://myactivity.google.com/myactivity?pli=1>
* mtalk.google.com (and alt\*-mtalk.google.com): is related to GCM/FCM (Google Cloud Messaging/Firebase Cloud Messaging). This [link](https://github.com/microg/GmsCore/issues/569#issuecomment-403034240) explains [Why does GCM needs to connect to mtalk.google.com ?](https://github.com/microg/GmsCore/issues/569):
>
> OK, so basically the idea is the following: your system makes one connection to Google servers, specifying some kind of AndroidID to be recognized.
>
>
> On the other side, every apps that use GCM has a server part somewhere, that also makes a connection to the Google servers, specifying an app identifier. Then, when one event is to be sent to you, it is send to the Google servers with your AndroidID, allowing the server to thus relay it to you.
>
>
> The idea behind that is to have only one open connection on your phone, instead of one per app, allowing for much greater battery life. The cost is privacy, because that means all messages are going through Google servers. App can work a bit around this by having either encrypted messages content or minimal amount of information inside. But at the very least Google will have the following information: you have received a message from this app at this given time.
>
>
>
Note that GCM is deprecated. Considered the web address only for FCM now.
Upvotes: 2 |
2021/01/31 | 861 | 3,245 | <issue_start>username_0: This question is similar, but unrelated to [this one](https://android.stackexchange.com/questions/231859/no-option-to-choose-do-not-validate-under-ca-certificates-when-connecting-to) answered two days ago.
I have been using WiFi EAP-TLS at home, for nearly a full year, with multiple desktop operating systems and Android 10 with zero problem. Android 11 is a different story, Google [changed](https://www.xda-developers.com/android-11-break-enterprise-wifi-connection/) EAP [requirements](https://www.reddit.com/r/networking/comments/j7ero1/psa_android_11s_december_security_update_will/) so CAs must be [validated](https://httptoolkit.tech/blog/android-11-trust-ca-certificates/). I have always imported the CA and selected options to verify CA on all my devices, the trust chain is important to me. Unfortunately, it's not working on Android 11, the WiFi [bugcheck](https://source.android.com/devices/tech/connect/wifi-debug) logs say, "Certificate verification failed, error 19 (self signed certificate in certificate chain)," and points to the private CA. As far as I am aware, root trust Certificate Authorities, whether public or private, are always self-signed.
Herein lies the problem. CAs must be self-signed, yet Android 11 does not trust self-signed certificates. I have the CA supposedly imported properly into the "User" CA store, it is displayed there, and the per-device client certificate is imported into the WiFi store.
I've also asked this question in [two](https://old.reddit.com/r/android11/comments/kyv8pk/wifi_eaptls_possible_ca_issues/) [places](https://old.reddit.com/r/homelab/comments/l4fdzp/android_11_wifi_eaptls_trusted_ca_not_working/) on Reddit, where a couple educational network admins also have the same CA problem, but no answers have been discovered yet. I'm hoping someone on this forum knows what's up. Any pointers will be much appreciated!
(I would have also added tags "eap-tls" and "certificate-authority" but I don't have enough reputation yet)<issue_comment>username_1: This issue has been resolved with assistance from Reddit's /r/networking community. [The thread](https://old.reddit.com/r/networking/comments/lbdafp/8021x_ise_android_11_problem/) states the RADIUS server certificate must be issued by a public CA. Client certificates can (and should) still be issued by private PKI. The new **Domain** field in the wifi config dialog must be the **CN** or **subjectAlternateName** of the server certificate, per WAP3 specification. I did not need to install the private CA into Android 11.
Upvotes: 1 [selected_answer]<issue_comment>username_2: For anyone who doesn't want to trust a public CA for their network: we made this work by ensuring the dnsNme was set correctly on our certificates. We had our CN equal to a domain, and our SAN incorrectly had the DNS field of SAN equal to a string like "Our RADIUS Server". Changing this to a proper domain and setting the "domain" field in the settings made this work.
From the Android SDK docs (what a place to find an answer to this), if an SAN is present, it is *preferred* over a CN.
<https://developer.android.com/reference/android/net/wifi/WifiEnterpriseConfig#setDomainSuffixMatch(java.lang.String)>
Upvotes: 1 |
2021/02/01 | 394 | 1,593 | <issue_start>username_0: I turned on "backup to google drive" using an account on a "legacy free edition of Google Apps" domain and then factory reset my Pixel 3. When I worked through the re-configuration, at the very end, the restore failed with a message saying "`Couldn't finish restoring the backup`". Several attempts at re-running this didn't change anything.<issue_comment>username_1: This issue has been resolved with assistance from Reddit's /r/networking community. [The thread](https://old.reddit.com/r/networking/comments/lbdafp/8021x_ise_android_11_problem/) states the RADIUS server certificate must be issued by a public CA. Client certificates can (and should) still be issued by private PKI. The new **Domain** field in the wifi config dialog must be the **CN** or **subjectAlternateName** of the server certificate, per WAP3 specification. I did not need to install the private CA into Android 11.
Upvotes: 1 [selected_answer]<issue_comment>username_2: For anyone who doesn't want to trust a public CA for their network: we made this work by ensuring the dnsNme was set correctly on our certificates. We had our CN equal to a domain, and our SAN incorrectly had the DNS field of SAN equal to a string like "Our RADIUS Server". Changing this to a proper domain and setting the "domain" field in the settings made this work.
From the Android SDK docs (what a place to find an answer to this), if an SAN is present, it is *preferred* over a CN.
<https://developer.android.com/reference/android/net/wifi/WifiEnterpriseConfig#setDomainSuffixMatch(java.lang.String)>
Upvotes: 1 |
2021/02/02 | 623 | 2,254 | <issue_start>username_0: My phone Moto X 4 has LineageOS 17.1 installed and is rooted with magisk. I use the phone's hot spot as main mean to connect to the internet.
In this scenario the android device acts as DHCP server, therefore distributing random IP addresses in the 192.168.43.0/24 sub range. I would like to assign static IP addresses to my devices, then i can connect to them trough SSH easily. The clementine android remote also requires my laptop to be available on a fixed IP.
I do not like to carry a travel router for this basic network ability.
On android 9 this was possible by setting up the dnsmasq.conf file, setting the file permissions and configuring SELinux rules.
This [workaround](https://android.stackexchange.com/questions/213670/how-can-i-permanently-assign-a-static-ip-address-to-wi-fi-or-usb-tether-clients/213774#213774) helped me to set it up.
>
> Android uses dnsmasq as its DHCP/DNS server (up to Pie). So create the configuration file /etc/dnsmasq.conf with option dhcp-host=,.
>
>
><issue_comment>username_1: This issue has been resolved with assistance from Reddit's /r/networking community. [The thread](https://old.reddit.com/r/networking/comments/lbdafp/8021x_ise_android_11_problem/) states the RADIUS server certificate must be issued by a public CA. Client certificates can (and should) still be issued by private PKI. The new **Domain** field in the wifi config dialog must be the **CN** or **subjectAlternateName** of the server certificate, per WAP3 specification. I did not need to install the private CA into Android 11.
Upvotes: 1 [selected_answer]<issue_comment>username_2: For anyone who doesn't want to trust a public CA for their network: we made this work by ensuring the dnsNme was set correctly on our certificates. We had our CN equal to a domain, and our SAN incorrectly had the DNS field of SAN equal to a string like "Our RADIUS Server". Changing this to a proper domain and setting the "domain" field in the settings made this work.
From the Android SDK docs (what a place to find an answer to this), if an SAN is present, it is *preferred* over a CN.
<https://developer.android.com/reference/android/net/wifi/WifiEnterpriseConfig#setDomainSuffixMatch(java.lang.String)>
Upvotes: 1 |
2021/02/04 | 881 | 3,799 | <issue_start>username_0: I noticed that ads inside apps are not loaded when Google Play Services' data connection is disabled and kind of formed the idea that it is responsible for loading these ads within the apps.
Is there any particular package (com.google.\*) that I can disable to prevent ads from loading, that is, is any particular package solely responsible for this task (loading ads)?
Is there a way to stop these ads by disabling some such package or system app that would still let me use gmail, play store and other such services?
I am not looking for external ad blocking apps.<issue_comment>username_1: Apps are self-contained. Even for ads delivered by Google AdMob, there is no ad-system component involved at all. Apps are loading ads and other data directly from the Internet.
Therefore, what you want is not possible. You can disable every app package by Google on your phone, but as long as the internet still works, the apps will show you ads.
The only system package that might be used is the WebView - a component that allows apps to display web pages - and ads are typically web content.
The problem is that many apps also use WebViews for displaying non-ad content, some apps even mainly consist of a WebView and the whole app consists of web pages.
The used WebView can be configured in Android developer options. On some devices, there is a separate WebView component installed, on others, the default web browser or an installed Chrome app is used as a WebView provider.
It is possible to develop an app that provides a WebView with an integrated ad-filter, but I have not heard of such an app.
Ad-blocking WebView
===================
It seems like there are already such apps available. Based on the information I found, [Adblock Browser](https://play.google.com/store/apps/details?id=org.adblockplus.browser) should provide a WebView implementation with integrated ad-blocking (not yet tested).
You have to install this app and make it the default WebView provider as shown in [this answer](https://android.stackexchange.com/a/228544/2241).
However, using that app has one major disadvantage: it is based on Chromium, the open-source part of Google Chrome. Therefore, all vulnerabilities found in Chrome also apply to this web browser. So if you want to stay secure, every time a security update for Chrome is published (which happens some times multiple times a week) the developers of Adblock Browser need to update their project, incorporate all necessary changes, and also publish an update. Otherwise, apps that use WebView for regular (non-ad related) purposes may otherwise be vulnerable to an attack.
In the end, this is an advantage of ad-filtering external apps like [Blokada](https://blokada.org/) or on the network level in your Wifi network, you can install a gateway like [Pi-hole](https://pi-hole.net/). Both filter apps and Pi-Hole work very similarly. You don't need to update them so often as security vulnerabilities are not so often found in such apps/systems.
Upvotes: 1 <issue_comment>username_2: I use NetGuard to block Google Ads service requests and it works so well that I don't see a single ad in apps. But you need a NetGuard premium for blocking those domains.
I also restricted my Play Service from internet connections and permissions. This helps a lot in my device. And I don't think you can disable any system app. They still can do anything; at least Google apps can ignore these.
Upvotes: 0 <issue_comment>username_3: You can use [AdAway](https://adaway.org/), it works without root, the only ad it still works is from YouTube. Now I don't see any ads in apps, I see no apps in Chrome too.
Well, of course i still see the Ad Frame, but it get an error showing the ad, so technically you're not seeing an ad.
Upvotes: 0 |
2021/02/05 | 1,587 | 8,207 | <issue_start>username_0: I removed some apps from my non-rooted Redmi 4X device with 'adb shell' because it was becoming very slow and unresponsive even for basic tasks. The packages I removed following [this tutorial](https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/) are:
```
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.glgm
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.music
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.videos
Success
santoni:/ $ pm uninstall -k --user 0 com.android.email
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.account
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.mi_connect_service
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.payment
Success
santoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.id
Success
santoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.in
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.mirecycle
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.videoplayer
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.cloudsync
Failure [not installed for 0]
santoni:/ $ pm uninstall -k --user 0 com.miui.player
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.micloudsync
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.apps.photos
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.hybrid
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.screenrecorder
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.scanner
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.securitycenter
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.midrop
Success
santoni:/ $ pm uninstall -k --user 0 com.android.thememanager
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.weather2
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.yellowpage
Success
santoni:/ $
```
After I try to reboot, it is now stuck in a boot loop. How do I rectify this?
I use Arch Linux so please don't suggest any Windows-only tools that are
not available for Linux.
This phone is close to 4 years old and its battery is quite swollen, hence the screen too has come loose. Other forum threads suggest that it might be a [battery issue](https://android.stackexchange.com/questions/46527/stuck-in-boot-loop) however I would like to first try out anything I can do to revive this phone.
This is my first question on any stack exchange site so please forgive any errors and give me suggestions on how I can improve.<issue_comment>username_1: Apps are self-contained. Even for ads delivered by Google AdMob, there is no ad-system component involved at all. Apps are loading ads and other data directly from the Internet.
Therefore, what you want is not possible. You can disable every app package by Google on your phone, but as long as the internet still works, the apps will show you ads.
The only system package that might be used is the WebView - a component that allows apps to display web pages - and ads are typically web content.
The problem is that many apps also use WebViews for displaying non-ad content, some apps even mainly consist of a WebView and the whole app consists of web pages.
The used WebView can be configured in Android developer options. On some devices, there is a separate WebView component installed, on others, the default web browser or an installed Chrome app is used as a WebView provider.
It is possible to develop an app that provides a WebView with an integrated ad-filter, but I have not heard of such an app.
Ad-blocking WebView
===================
It seems like there are already such apps available. Based on the information I found, [Adblock Browser](https://play.google.com/store/apps/details?id=org.adblockplus.browser) should provide a WebView implementation with integrated ad-blocking (not yet tested).
You have to install this app and make it the default WebView provider as shown in [this answer](https://android.stackexchange.com/a/228544/2241).
However, using that app has one major disadvantage: it is based on Chromium, the open-source part of Google Chrome. Therefore, all vulnerabilities found in Chrome also apply to this web browser. So if you want to stay secure, every time a security update for Chrome is published (which happens some times multiple times a week) the developers of Adblock Browser need to update their project, incorporate all necessary changes, and also publish an update. Otherwise, apps that use WebView for regular (non-ad related) purposes may otherwise be vulnerable to an attack.
In the end, this is an advantage of ad-filtering external apps like [Blokada](https://blokada.org/) or on the network level in your Wifi network, you can install a gateway like [Pi-hole](https://pi-hole.net/). Both filter apps and Pi-Hole work very similarly. You don't need to update them so often as security vulnerabilities are not so often found in such apps/systems.
Upvotes: 1 <issue_comment>username_2: I use NetGuard to block Google Ads service requests and it works so well that I don't see a single ad in apps. But you need a NetGuard premium for blocking those domains.
I also restricted my Play Service from internet connections and permissions. This helps a lot in my device. And I don't think you can disable any system app. They still can do anything; at least Google apps can ignore these.
Upvotes: 0 <issue_comment>username_3: You can use [AdAway](https://adaway.org/), it works without root, the only ad it still works is from YouTube. Now I don't see any ads in apps, I see no apps in Chrome too.
Well, of course i still see the Ad Frame, but it get an error showing the ad, so technically you're not seeing an ad.
Upvotes: 0 |
2021/02/06 | 1,499 | 6,033 | <issue_start>username_0: I've gotten stuck trying to upgrade a Glorystar Nebula 15 kiosk Android tablet (as customized for the orphaned Flywheel spin-bikes) to a vendor-provided **single-file** Android 7.1 firmware image (`7.20191202.115231.img`, 715MB).
A special challenge here: this tablet has **no physical buttons whatsever**: no power, no volume controls, no home. (It simply turns on whenever power is supplied; there's a click power toggle inline on the DC power cord plugging into the back. It's got no battery for unplugged use.)
Following the vendor's instructions (using a Windows `AndroidTool` program `2.35`), it was able to 'Switch' to detecting a LOADER device, and appeared to write firmware - but after a lack of progress ending on a log line mentioning 'Success', I disconnected & power-cycled in an attempt to view my hopefully-fresh-new-stock-Android7.1 tablet - and instead found it in a state where it never proceeds past a 'GS' logo boot screen.
Currently, from this GS screen:
* the tablet only ever appears as "Found One ADB Device" in the Windows `AndroidTool`, whereas previously it could 'Switch' to "LOADER"
* it can be detected via `adb` from MacOS – but oddly, not via `adb` inside the same Windows10 VM for which `AndroidTool` was sorta-working.and, `adb shell` commands give a error about the sh-path not being valid.
* `adb` can reboot it into recovery mode - but without physical buttons, no navigation/selection from the recovery menu is yet possible, and it does not appear to `adb` or `AndroidTool` in this mode
* `adb` can seemingly also reboot it into `bootloader` or `fastboot` mode; in this mode it no longer appears to MacOS `adb`, but does appear in MacOS `fastboot devices` list. However, attempting to connect the tablet while in this mode to Windows `AndroidTool` still only ever shows "Found One ADB Device" (or nothing)
I'm looking for any path out of this dead-end state that allows a re-attempt of the flashing the original vendor single-file firmware IMG, or other potential Android 7.1 firmwares. For example:
* I've found a header on the motherboard with pins GND / PWR / HOME / ESC / V+ / V- / MENU / K2 / K1. However, hand-shorting PWR or V+ to GND with a small wire (alone or together, at the 'recovery' menu that's supposedly looking for vol-nav inputs or other times), has had no visible effect since the tablet's been in this state.
* Can the vendor's single IMG be broken into the smaller more-specific parts that `fastboot` seems limited to flashing? Can applying those, or some other, smaller steps restore a true "Found One LOADER Device" mode, such that the `AndroidTool` might be able to make another attempt?
Etc – open to whatever gets Android 7.1 on this device, including, at this point, all-or-nothing gambits to resuscitate or brick it.
Any ideas?<issue_comment>username_1: Apps are self-contained. Even for ads delivered by Google AdMob, there is no ad-system component involved at all. Apps are loading ads and other data directly from the Internet.
Therefore, what you want is not possible. You can disable every app package by Google on your phone, but as long as the internet still works, the apps will show you ads.
The only system package that might be used is the WebView - a component that allows apps to display web pages - and ads are typically web content.
The problem is that many apps also use WebViews for displaying non-ad content, some apps even mainly consist of a WebView and the whole app consists of web pages.
The used WebView can be configured in Android developer options. On some devices, there is a separate WebView component installed, on others, the default web browser or an installed Chrome app is used as a WebView provider.
It is possible to develop an app that provides a WebView with an integrated ad-filter, but I have not heard of such an app.
Ad-blocking WebView
===================
It seems like there are already such apps available. Based on the information I found, [Adblock Browser](https://play.google.com/store/apps/details?id=org.adblockplus.browser) should provide a WebView implementation with integrated ad-blocking (not yet tested).
You have to install this app and make it the default WebView provider as shown in [this answer](https://android.stackexchange.com/a/228544/2241).
However, using that app has one major disadvantage: it is based on Chromium, the open-source part of Google Chrome. Therefore, all vulnerabilities found in Chrome also apply to this web browser. So if you want to stay secure, every time a security update for Chrome is published (which happens some times multiple times a week) the developers of Adblock Browser need to update their project, incorporate all necessary changes, and also publish an update. Otherwise, apps that use WebView for regular (non-ad related) purposes may otherwise be vulnerable to an attack.
In the end, this is an advantage of ad-filtering external apps like [Blokada](https://blokada.org/) or on the network level in your Wifi network, you can install a gateway like [Pi-hole](https://pi-hole.net/). Both filter apps and Pi-Hole work very similarly. You don't need to update them so often as security vulnerabilities are not so often found in such apps/systems.
Upvotes: 1 <issue_comment>username_2: I use NetGuard to block Google Ads service requests and it works so well that I don't see a single ad in apps. But you need a NetGuard premium for blocking those domains.
I also restricted my Play Service from internet connections and permissions. This helps a lot in my device. And I don't think you can disable any system app. They still can do anything; at least Google apps can ignore these.
Upvotes: 0 <issue_comment>username_3: You can use [AdAway](https://adaway.org/), it works without root, the only ad it still works is from YouTube. Now I don't see any ads in apps, I see no apps in Chrome too.
Well, of course i still see the Ad Frame, but it get an error showing the ad, so technically you're not seeing an ad.
Upvotes: 0 |
2021/02/12 | 901 | 3,836 | <issue_start>username_0: Every time I download a photo (.jpg or .png file) with the Chrome browser (stable version) to my external SD card, it gets duplicated and stored also in "/storage/emulated/0/Pictures" folder (internal storage). The duplicate has always somewhat a smaller file size. How can I disable this and why is this happening ?
This doesn't happen when I download a photo with Opera Mini or MS Edge browser to my SD card for example. **It only happens to pictures downloaded with Google Chrome when the download location is set to "SD card".**
My SD card is formated as portable storage on my HTC 10 (Android Oreo).<issue_comment>username_1: Apps are self-contained. Even for ads delivered by Google AdMob, there is no ad-system component involved at all. Apps are loading ads and other data directly from the Internet.
Therefore, what you want is not possible. You can disable every app package by Google on your phone, but as long as the internet still works, the apps will show you ads.
The only system package that might be used is the WebView - a component that allows apps to display web pages - and ads are typically web content.
The problem is that many apps also use WebViews for displaying non-ad content, some apps even mainly consist of a WebView and the whole app consists of web pages.
The used WebView can be configured in Android developer options. On some devices, there is a separate WebView component installed, on others, the default web browser or an installed Chrome app is used as a WebView provider.
It is possible to develop an app that provides a WebView with an integrated ad-filter, but I have not heard of such an app.
Ad-blocking WebView
===================
It seems like there are already such apps available. Based on the information I found, [Adblock Browser](https://play.google.com/store/apps/details?id=org.adblockplus.browser) should provide a WebView implementation with integrated ad-blocking (not yet tested).
You have to install this app and make it the default WebView provider as shown in [this answer](https://android.stackexchange.com/a/228544/2241).
However, using that app has one major disadvantage: it is based on Chromium, the open-source part of Google Chrome. Therefore, all vulnerabilities found in Chrome also apply to this web browser. So if you want to stay secure, every time a security update for Chrome is published (which happens some times multiple times a week) the developers of Adblock Browser need to update their project, incorporate all necessary changes, and also publish an update. Otherwise, apps that use WebView for regular (non-ad related) purposes may otherwise be vulnerable to an attack.
In the end, this is an advantage of ad-filtering external apps like [Blokada](https://blokada.org/) or on the network level in your Wifi network, you can install a gateway like [Pi-hole](https://pi-hole.net/). Both filter apps and Pi-Hole work very similarly. You don't need to update them so often as security vulnerabilities are not so often found in such apps/systems.
Upvotes: 1 <issue_comment>username_2: I use NetGuard to block Google Ads service requests and it works so well that I don't see a single ad in apps. But you need a NetGuard premium for blocking those domains.
I also restricted my Play Service from internet connections and permissions. This helps a lot in my device. And I don't think you can disable any system app. They still can do anything; at least Google apps can ignore these.
Upvotes: 0 <issue_comment>username_3: You can use [AdAway](https://adaway.org/), it works without root, the only ad it still works is from YouTube. Now I don't see any ads in apps, I see no apps in Chrome too.
Well, of course i still see the Ad Frame, but it get an error showing the ad, so technically you're not seeing an ad.
Upvotes: 0 |
2021/02/14 | 444 | 1,928 | <issue_start>username_0: I have a strange problem on my Samsung J2 Android phone. Although apps like WhatsApp and some games which require Internet work, none of the Google Apps like Google, Chrome, YouTube and Play Store are working. Whenever I open the Google apps, it shows "Check your internet connection" although my mobile data is on. But, on connecting my phone to a Wi-Fi network, these apps work. How can I fix this?
P.S. One more important thing: When I open Chrome, I get a message saying ERR\_PROXY\_CONNECTION\_FAILED.<issue_comment>username_1: i think auto sync is turn off, go to accounts and turn auto sync on
Upvotes: -1 <issue_comment>username_2: You can turn off data saver mode. And try to use Google apps.
Your other apps are working. But you can reset network setting. You can change APN.
Go to setting / mobile network / Access point name. Every carrier has APN. You can try all APN.
Force stop google app and than start again. Clear cache and storage for apps.
Upvotes: 2 <issue_comment>username_3: Check if google domain is not blocked by the network you are using , also try resting network settings , and try to delete the configuration settings that has been provided by your service provider automatically and call the help line ask them to resend you the internet settings.
Upvotes: 2 <issue_comment>username_4: ERR\_PROXY\_CONNECTION\_FAILED.
This obviously has to do something with proxies. Either you set a proxy through your cellular data setting or some application has put phone in tunneling (VPN etc).
And obviously google services are highly sensitive to proxy IPs. Check if your IP is what your ISP has provided. Google services are often buggy with cache so try clearing some cache as well.
Changing APNs might also work, sometimes Google might get sensitive of your real IP. Do a hotspot sharing and check google services with that IP on other devices.
Upvotes: 2 [selected_answer] |
2021/02/14 | 518 | 2,259 | <issue_start>username_0: So recently a favorite app of mine has been taken down from Google Play Store. But even though the app is no longer available on Play Store, it is still on my phone and tablet (both from Samsung company) and works perfectly fine on both of my devices. Also, when I go to 'My Apps and Games', I still see the app on 'Library' and 'Installed' options.
I'm aware that in order for my favorite app to function properly, I must ignore software updates on my devices. Hence, I've been ignoring software update notifications ever since.
But what I really want to know is that, **w**i**ll I be able to install the app from 'Library' on a new device from Samsung or any other company even when it is no longer in Play Store?** Or doing so will cause the app to malfunction across all my devices? **Will the app still be safe on my old devices?**<issue_comment>username_1: i think auto sync is turn off, go to accounts and turn auto sync on
Upvotes: -1 <issue_comment>username_2: You can turn off data saver mode. And try to use Google apps.
Your other apps are working. But you can reset network setting. You can change APN.
Go to setting / mobile network / Access point name. Every carrier has APN. You can try all APN.
Force stop google app and than start again. Clear cache and storage for apps.
Upvotes: 2 <issue_comment>username_3: Check if google domain is not blocked by the network you are using , also try resting network settings , and try to delete the configuration settings that has been provided by your service provider automatically and call the help line ask them to resend you the internet settings.
Upvotes: 2 <issue_comment>username_4: ERR\_PROXY\_CONNECTION\_FAILED.
This obviously has to do something with proxies. Either you set a proxy through your cellular data setting or some application has put phone in tunneling (VPN etc).
And obviously google services are highly sensitive to proxy IPs. Check if your IP is what your ISP has provided. Google services are often buggy with cache so try clearing some cache as well.
Changing APNs might also work, sometimes Google might get sensitive of your real IP. Do a hotspot sharing and check google services with that IP on other devices.
Upvotes: 2 [selected_answer] |
2021/02/14 | 555 | 2,215 | <issue_start>username_0: I've found numerous guides online on how to fix the missing OEM unlock toggle on Samsung Galaxy S9 (SM-G960U) running Android 10. I've been able to follow all steps except for the last one before rebooting the phone. And that step is going into software update and unchecking ***download updates automatically*** and checking ***download updates manually***. The problem is that those options don't exist!
I can only tap on ***Check for updates*** and there's a grayed-out option that says ***Continue update***. I don't know if this is true, but I think it's the same as going into developer options and switching off ***auto-update system***, which I was able to do.
Either way, I still wasn't able to fix the missing button, even after following [this guide](https://www.thecustomdroid.com/fix-missing-oem-unlock-toggle-samsung-galaxy-devices/#supported-devices) I was just talking about. I've seen other guides and they talk about the same thing that this one does.
Can someone help me unlock my OEM unlock button, please?
---
As of now, I played around with my phone and found out the reboot to bootloader option in the menu after starting the phone with **power key + volume up + Bixby key**. I didn't know what that was going to do but when I selected that, a light blue screen came on and said `downloading... do not turn off target`. There's an option to cancel it, but I want to see what happens.
Maybe I didn't have a bootloader at all? (sounds crazy because I need a bootloader to start my phone, so maybe it's downloading something else?). In either case, I'll keep this question posted with any new info.<issue_comment>username_1: You have to wait 7 days after enabling developer mode, and OEM with show up
Upvotes: -1 <issue_comment>username_2: Regarding the 7-day wait mentioned in [username_1's answer](https://android.stackexchange.com/a/243063), that is completely untrue. I've had mine for over 2 months, and never showed the OEM unlock. I did hear though that one certain version allows it but the G960**U** cannot.
Also, that blue screen is called "Download Mode". It's used for when using Odin or other tools to reflash/flash images to your device.
Upvotes: 0 |
2021/02/17 | 521 | 2,134 | <issue_start>username_0: I'd like to entirely replace Android on my phone, which I plan to eventually root.
I've learned so far that Linux Deploy can be used to run a full Linux distro alongside the Android OS, but really I want to replace Android OS.
I'm willing to put Mobian (mobian-project.org) on there or just pure Debian.
Is this possible yet in 2021?<issue_comment>username_1: Simple answer : NO
Reason :
Hardware drivers are proprietary
Building them without the source is extremely difficult
Requires a lot of expertise and time
Not possible unless you have low level access to your device hardware (Meaning being able to flash without fastboot or edl)
So yeah stick to the answer that, NO you can't replace Android entirely with Linux.
Something you can do is :
You can of course try using other AOSP based OS like Lineage OS which are build on AOSP so it is compatible with the default kernel for you device (This is also only possible if it is already built for your device)
If you want to run Linux alongside Linux there are a few ways.
Like you said you can use Linux Deploy. (I have personally not used this)
Or you can use PRoot with Termux which is a user-space implementation of chroot thus you can a virtualized Linux environment (similar too using chroot) but without the need of a rooted device.
You can either use PRoot with scripts created by others via AnLinux or Andronix.
Or you could always learn how it works and manually set it up :>
And no as time goes on things wont change. You won't be able to install Linux in a Android device. This is not due to hardware incapability but rather it is how the Smartphone industry works.
Upvotes: 1 <issue_comment>username_2: I could be entirely wrong but here i go.
With postmarketOS, and recent years, people work hard to bring linux to phones. One of the examples is OnePlus 6 - one maintainer worked hard to get it running. But, here we are. It's not yet really in a daily-driving state where one can replace it, but for example calling works. So to answer your question, you could but would you be happy with this yet buggy state of linux?
Upvotes: 0 |
2021/02/19 | 866 | 3,003 | <issue_start>username_0: I'm trying to decompile an apk with the apk tools and I'm not getting it. When I run `apktool -d myapp.apk` it displays this **error** to me:
```
Exception in thread "main" brut.androlib.AndrolibException: Invalid chunk type: expected=0x00000200, got=0x00000203
at brut.androlib.res.decoder.ARSCDecoder.checkChunkType(ARSCDecoder.java:542)
at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:88)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:786)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:67)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:59)
at brut.androlib.Androlib.getResTable(Androlib.java:66)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:236)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:118)
at brut.apktool.Main.cmdDecode(Main.java:170)
at brut.apktool.Main.main(Main.java:76)
```
Can anyone help me with that? I would offer more reward does not yet<issue_comment>username_1: Simple answer : NO
Reason :
Hardware drivers are proprietary
Building them without the source is extremely difficult
Requires a lot of expertise and time
Not possible unless you have low level access to your device hardware (Meaning being able to flash without fastboot or edl)
So yeah stick to the answer that, NO you can't replace Android entirely with Linux.
Something you can do is :
You can of course try using other AOSP based OS like Lineage OS which are build on AOSP so it is compatible with the default kernel for you device (This is also only possible if it is already built for your device)
If you want to run Linux alongside Linux there are a few ways.
Like you said you can use Linux Deploy. (I have personally not used this)
Or you can use PRoot with Termux which is a user-space implementation of chroot thus you can a virtualized Linux environment (similar too using chroot) but without the need of a rooted device.
You can either use PRoot with scripts created by others via AnLinux or Andronix.
Or you could always learn how it works and manually set it up :>
And no as time goes on things wont change. You won't be able to install Linux in a Android device. This is not due to hardware incapability but rather it is how the Smartphone industry works.
Upvotes: 1 <issue_comment>username_2: I could be entirely wrong but here i go.
With postmarketOS, and recent years, people work hard to bring linux to phones. One of the examples is OnePlus 6 - one maintainer worked hard to get it running. But, here we are. It's not yet really in a daily-driving state where one can replace it, but for example calling works. So to answer your question, you could but would you be happy with this yet buggy state of linux?
Upvotes: 0 |
2021/02/19 | 463 | 1,547 | <issue_start>username_0: I have a private PGP key on [OpenKeyChain](https://play.google.com/store/apps/details?id=org.sufficientlysecure.keychain) that I'd like to move to tails.
There only seems to be one way to export from OpenKeyChain - choose to make the encrypted backup file? But I can't get the process to work.
* I made a backup from Android, "backup.sec.pgp" (Noting the passphrase of hyphenated numbers)
* Transferred it to tails
* Ran 'gpg --decrypt backup.sec.pgp | gpg --import backup.sec.pgp'
It returns:
```
gpg: unknown armor header: Passphrase-Format: numeric9x4
gpg: unknown armor header: Passphrase-Begin: 96
gpg: AES256 encrypted data
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
```
Then I enter in the long hyphenated numerical passphrase and it spits out:
```
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session key
```
Advice would be hugely appreciated<issue_comment>username_1: this may sound "extra" but. I believe it will get the job done. try using this method on pc or a Mac with this
<https://www.openkeychain.org/faq/#how-to-import-an-openkeychain-backup-with-gpg>
then make a backup and move it to tails.
if You've found a better way I'm all ears as I currently have to go through this pain in the ass. such a pain but both, wonderful services.
gl
Upvotes: 0 <issue_comment>username_2: Just a typo, I got confused as well.
The right command is:
```
gpg --decrypt backup_YYYY-MM-DD.pgp | gpg --import
```
you typed the file name twice.
Hope it helps.
Upvotes: 2 |
2021/02/19 | 264 | 994 | <issue_start>username_0: I accidentaly clicked on <http://127.0.0.1:5555> this link on my android phone what should i do? i don't know anything about coding so please write with simple words to me<issue_comment>username_1: 127.0.0.1 is the address of your phone itself. Therefore everything that can be loaded have to be generated by an app or an system service of Android on your phone. If there is no app listening on port 5555 then nothing will happen, the web browser will simply show an error page.
Therefore you don't have to worry.
Upvotes: 1 <issue_comment>username_2: 127.0.0.1 is a loopback device... Meaning it is going back to itself (your own phone, 127.0.0.1 is your own device's internal address). Port 5555 is used by VPN's for transmitting and receiving encrypted traffic, so basically you clicked a link that redirected your request back to itself, or in other words it did nothing. You should be safe, malware is much less common than people want you to believe.
Upvotes: 0 |
2021/02/21 | 411 | 1,634 | <issue_start>username_0: pretext:
as gmail no longer allows me to send zip files, i have been looking into other ways to get my java source directories from android to laptop and back again, depending whether I'm at home or not (folder hierarchy must be preserved). I have been trying to set up git on my android phone and have been using termux as the command shell to do this.
the problem:
I am unable to create a directory for which BOTH termux and the java ide have read write access. I have setup storage permissions in termux. If the IDE can write termux can't, and in another location termux can write but the IDE can't.
What I need is a folder location that both apps have full read write permissions. (I am not too bothered if these permissions extent to other folders)
I do not want to root my device.
Nokia 7.2 Android 10<issue_comment>username_1: 127.0.0.1 is the address of your phone itself. Therefore everything that can be loaded have to be generated by an app or an system service of Android on your phone. If there is no app listening on port 5555 then nothing will happen, the web browser will simply show an error page.
Therefore you don't have to worry.
Upvotes: 1 <issue_comment>username_2: 127.0.0.1 is a loopback device... Meaning it is going back to itself (your own phone, 127.0.0.1 is your own device's internal address). Port 5555 is used by VPN's for transmitting and receiving encrypted traffic, so basically you clicked a link that redirected your request back to itself, or in other words it did nothing. You should be safe, malware is much less common than people want you to believe.
Upvotes: 0 |
2021/02/23 | 296 | 1,140 | <issue_start>username_0: I've a few month old Samsung Galaxy A51 (android 10) and it's camera needs couple of seconds (2-4) BEFORE taking any picture, which is just too long when I want to photo children.
My past phones were all from Samsung Galaxy A series and never had this issue.
Is there anything I can do to make taking photos faster?<issue_comment>username_1: 127.0.0.1 is the address of your phone itself. Therefore everything that can be loaded have to be generated by an app or an system service of Android on your phone. If there is no app listening on port 5555 then nothing will happen, the web browser will simply show an error page.
Therefore you don't have to worry.
Upvotes: 1 <issue_comment>username_2: 127.0.0.1 is a loopback device... Meaning it is going back to itself (your own phone, 127.0.0.1 is your own device's internal address). Port 5555 is used by VPN's for transmitting and receiving encrypted traffic, so basically you clicked a link that redirected your request back to itself, or in other words it did nothing. You should be safe, malware is much less common than people want you to believe.
Upvotes: 0 |
2021/02/23 | 2,222 | 7,264 | <issue_start>username_0: On an Android Nougat (7.1.1) set top box, `du` and `df` of my `/data` partition are very different:
```
$ adb shell du -sh /data
1.0G /data
$ adb shell df -H /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/sda9 10G 10G 469M 96% /data
```
I don’t think that anything else is mounted under `/data`:
```
$ adb shell mount | grep "\/data"
/dev/block/sda9 on /data type ext4 (rw,seclabel,nosuid,nodev,relatime,discard,noauto_da_alloc,data=ordered)
$ adb shell mount | grep "sda9"
/dev/block/sda9 on /data type ext4 (rw,seclabel,nosuid,nodev,relatime,discard,noauto_da_alloc,data=ordered)
```
`lsof` indicates to me that there are dozens of processes holding hundreds of small deleted files of the sort
```
init 1 root 3w CHR 1,11 0t0 14517 /dev/__kmsg__ (deleted)
ueventd 391 root 3w CHR 1,11 0t0 14593 /dev/__kmsg__ (deleted)
. . .
main 756 root mem unknown /dev/ashmem/dalvik-large object space allocation (deleted)
main 756 root mem unknown /dev/ashmem/dalvik-large object space allocation (deleted)
. . .
omm.times 3934 system mem unknown /dev/ashmem/dalvik-mark sweep sweep array free buffer (deleted)
omm.times 3934 system mem unknown /dev/ashmem/dalvik-mark sweep sweep array free buffer (deleted)
```
Using `busybox`, results are different (`df` shows much less usage), but there is still a large discrepancy between `du` and `df`:
```
$ adb shell busybox du -sh /data
389.4M /data
$ adb shell busybox df -h /data
Filesystem Size Used Available Use% Mounted on
/dev/block/bootdevice/by-name/userdata
9.7G 8.6G 1.1G 89% /data
```
And using `toybox`, the results are similar to `busybox`:
```
$ adb shell toybox du -sh /data
389M /data
$ adb shell toybox df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/sda9 10G 8.6G 1.1G 89% /data
```
It think that it's important to note that ***these numbers remain similar after a reboot***.
Also, I wish to note that I cannot OTA update this device's Android due to running out of disk space, even though the OTA image is only about 1GB in size. This fact leads me to believe that the results of `df` are accurate in terms of actual available disk space.
All adb commands are run as root i.e., I did `adb root` before executing them. But at risk of making this question be too verbose, here's everything run at the adb prompt:
```
$ adb shell
Z:/ # whoami
root
Z:/ # du -sh /data
389M /data
Z:/ # df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/sda9 10G 8.6G 1.1G 89% /data
10.197.12.14:/ # busybox du -sh /data
389.4M /data
Z:/ # busybox df -h /data
Filesystem Size Used Available Use% Mounted on
/dev/block/bootdevice/by-name/userdata
9.7G 8.6G 1.1G 89% /data
Z:/ # toybox du -sh /data
389M /data
Z:/ # toybox df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/sda9 10G 8.6G 1.1G 89% /data
Z:/ #
```
A user in comments has asked for the following:
```
Z:/ # while read num; do (( sum += num )); done <<< $(find /data -type f -exec stat -c%b {} +); expr $sum / 2048
393
```
I understand that `du` reports free space by scanning reachable nodes, and that this could therefore mean that my file system is corrupt. However, unfortunately, this is for devices in the field, and I don’t want to have to (and don’t think I can) run `fsck` or `e2fsck`.
What might be causing the huge difference between `du` and `df` on this device, and how might this problem be resolved? I’m happy to provide further logs.<issue_comment>username_1: `df` stands for "Disk Free". That means, it just needs to check with the "global file system information" about free space (accessible for all users). The size of the file system itself is also "globally available". The difference logically is the "used space". Done.
`du` works differently: not on file system level but on file level. It needs to look up each directory and file separately, gather it's size, and sum that up. So it can only take into account what it has access to.
Now you've run both commands as "normal user" – who has no permission to traverse e.g. `/data/data` (where all the apps' data is stored). So it can only sum up a portion of what space is occupied on `/data`. Would you run both commands as root user (as the screenshot in the comment by [alecxs](https://android.stackexchange.com/users/170470/alecxs) shows), numbers would be much closer together – as usually root can access all files. Though as again Alex correctly points out: there is still [SELinux](https://en.wikipedia.org/wiki/SELinux) which might deny full access – which according to him is a known issue for `mtk-su` on the Amazon FireTV stick, and might be the culprit here, and isolated mount [namespaces](https://en.wikipedia.org/wiki/Linux_namespaces) could be yet another reason for invisible files.
**TL;DR:** there's neither a file system corruption, nor a broken `du` binary necessarily causing the difference. All might work as designed. If you want to make sure, you can run `fsck` (if you prefer, in read-only mode) to rule out the former – and set up a test case on a different place for the latter.
Upvotes: 2 <issue_comment>username_2: The /data partition was indeed corrupted.
After running `e2fsck -p /dev/block/sda9`, here was the updated `du` and `df` (again, after doing an `adb root`):
```
$ adb shell du -s /data
1.3G /data
$ adb shell df -H /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/sda9 10G 1.5G 8.9G 15% /data
```
After fixing the file system, the device ran properly and updated successfully thereafter.
(Note that I found that I had to run `e2fsck` with the `-p` option; it wouldn't run interactively for some reason.)
A portion of the output of the above `e2fsck` command is
```
data contains a file system with errors, check forced.
data: Deleted inode 163845 has zero dtime. FIXED.
data: Deleted inode 163847 has zero dtime. FIXED.
data: Deleted inode 163849 has zero dtime. FIXED.
. . . [snip ] . . .
data: Deleted inode 213003 has zero dtime. FIXED.
data: Deleted inode 262223 has zero dtime. FIXED.
data: Deleted inode 303108 has zero dtime. FIXED.
data: 5203/655360 files (2.0% non-contiguous), 186831/2621440 blocks
```
There were a total of 140 lines of the sort `data: Deleted inode...`
FWIW, we are guessing that this problem was possibly caused by the filesystem becoming full with logs, which then caused corruption during the next attempted download of OTA updates: Those downloads failed, but thereafter left the file system in a corrupted state. Subsequent attempts at those downloads seemed to further corrupt the file system.
Thanks very much to @alecxs for your persistence and relevant details. (However, please note that to run `e2fsck`, the partition /dev/block/sda9 had to be UNmounted.)
Upvotes: 2 [selected_answer] |
2021/02/23 | 1,092 | 3,930 | <issue_start>username_0: I have a Samsung Galaxy 10. Somehow, my ex has gained access and is able to see my texts and video calls in Whatsapp and Telegram, etc. He is listening to or watching every conversation. I became suspicious when he mentioned details from private conversations. He admitted to mirroring my device but will not provide details and says he has stopped. However, I believe it is still happening. When I am on video calls in WhatsApp and Telegram, the calls freeze and it seems the signal is bad even when I am on WiFi or have full bars. How can I stop this? Please help.<issue_comment>username_1: `df` stands for "Disk Free". That means, it just needs to check with the "global file system information" about free space (accessible for all users). The size of the file system itself is also "globally available". The difference logically is the "used space". Done.
`du` works differently: not on file system level but on file level. It needs to look up each directory and file separately, gather it's size, and sum that up. So it can only take into account what it has access to.
Now you've run both commands as "normal user" – who has no permission to traverse e.g. `/data/data` (where all the apps' data is stored). So it can only sum up a portion of what space is occupied on `/data`. Would you run both commands as root user (as the screenshot in the comment by [alecxs](https://android.stackexchange.com/users/170470/alecxs) shows), numbers would be much closer together – as usually root can access all files. Though as again Alex correctly points out: there is still [SELinux](https://en.wikipedia.org/wiki/SELinux) which might deny full access – which according to him is a known issue for `mtk-su` on the Amazon FireTV stick, and might be the culprit here, and isolated mount [namespaces](https://en.wikipedia.org/wiki/Linux_namespaces) could be yet another reason for invisible files.
**TL;DR:** there's neither a file system corruption, nor a broken `du` binary necessarily causing the difference. All might work as designed. If you want to make sure, you can run `fsck` (if you prefer, in read-only mode) to rule out the former – and set up a test case on a different place for the latter.
Upvotes: 2 <issue_comment>username_2: The /data partition was indeed corrupted.
After running `e2fsck -p /dev/block/sda9`, here was the updated `du` and `df` (again, after doing an `adb root`):
```
$ adb shell du -s /data
1.3G /data
$ adb shell df -H /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/sda9 10G 1.5G 8.9G 15% /data
```
After fixing the file system, the device ran properly and updated successfully thereafter.
(Note that I found that I had to run `e2fsck` with the `-p` option; it wouldn't run interactively for some reason.)
A portion of the output of the above `e2fsck` command is
```
data contains a file system with errors, check forced.
data: Deleted inode 163845 has zero dtime. FIXED.
data: Deleted inode 163847 has zero dtime. FIXED.
data: Deleted inode 163849 has zero dtime. FIXED.
. . . [snip ] . . .
data: Deleted inode 213003 has zero dtime. FIXED.
data: Deleted inode 262223 has zero dtime. FIXED.
data: Deleted inode 303108 has zero dtime. FIXED.
data: 5203/655360 files (2.0% non-contiguous), 186831/2621440 blocks
```
There were a total of 140 lines of the sort `data: Deleted inode...`
FWIW, we are guessing that this problem was possibly caused by the filesystem becoming full with logs, which then caused corruption during the next attempted download of OTA updates: Those downloads failed, but thereafter left the file system in a corrupted state. Subsequent attempts at those downloads seemed to further corrupt the file system.
Thanks very much to @alecxs for your persistence and relevant details. (However, please note that to run `e2fsck`, the partition /dev/block/sda9 had to be UNmounted.)
Upvotes: 2 [selected_answer] |
2021/02/25 | 1,038 | 3,618 | <issue_start>username_0: so I got this 36 GB SD card, and I've only used 2 GB on it, I'm on a Samsung J7 Neo BTW, and when I attempt to transfer a 5 GB game to the SD card, it stops halfway trough and a message saying "insufficient storage space" pops up, any idea how to fix it?<issue_comment>username_1: `df` stands for "Disk Free". That means, it just needs to check with the "global file system information" about free space (accessible for all users). The size of the file system itself is also "globally available". The difference logically is the "used space". Done.
`du` works differently: not on file system level but on file level. It needs to look up each directory and file separately, gather it's size, and sum that up. So it can only take into account what it has access to.
Now you've run both commands as "normal user" – who has no permission to traverse e.g. `/data/data` (where all the apps' data is stored). So it can only sum up a portion of what space is occupied on `/data`. Would you run both commands as root user (as the screenshot in the comment by [alecxs](https://android.stackexchange.com/users/170470/alecxs) shows), numbers would be much closer together – as usually root can access all files. Though as again Alex correctly points out: there is still [SELinux](https://en.wikipedia.org/wiki/SELinux) which might deny full access – which according to him is a known issue for `mtk-su` on the Amazon FireTV stick, and might be the culprit here, and isolated mount [namespaces](https://en.wikipedia.org/wiki/Linux_namespaces) could be yet another reason for invisible files.
**TL;DR:** there's neither a file system corruption, nor a broken `du` binary necessarily causing the difference. All might work as designed. If you want to make sure, you can run `fsck` (if you prefer, in read-only mode) to rule out the former – and set up a test case on a different place for the latter.
Upvotes: 2 <issue_comment>username_2: The /data partition was indeed corrupted.
After running `e2fsck -p /dev/block/sda9`, here was the updated `du` and `df` (again, after doing an `adb root`):
```
$ adb shell du -s /data
1.3G /data
$ adb shell df -H /data
Filesystem Size Used Avail Use% Mounted on
/dev/block/sda9 10G 1.5G 8.9G 15% /data
```
After fixing the file system, the device ran properly and updated successfully thereafter.
(Note that I found that I had to run `e2fsck` with the `-p` option; it wouldn't run interactively for some reason.)
A portion of the output of the above `e2fsck` command is
```
data contains a file system with errors, check forced.
data: Deleted inode 163845 has zero dtime. FIXED.
data: Deleted inode 163847 has zero dtime. FIXED.
data: Deleted inode 163849 has zero dtime. FIXED.
. . . [snip ] . . .
data: Deleted inode 213003 has zero dtime. FIXED.
data: Deleted inode 262223 has zero dtime. FIXED.
data: Deleted inode 303108 has zero dtime. FIXED.
data: 5203/655360 files (2.0% non-contiguous), 186831/2621440 blocks
```
There were a total of 140 lines of the sort `data: Deleted inode...`
FWIW, we are guessing that this problem was possibly caused by the filesystem becoming full with logs, which then caused corruption during the next attempted download of OTA updates: Those downloads failed, but thereafter left the file system in a corrupted state. Subsequent attempts at those downloads seemed to further corrupt the file system.
Thanks very much to @alecxs for your persistence and relevant details. (However, please note that to run `e2fsck`, the partition /dev/block/sda9 had to be UNmounted.)
Upvotes: 2 [selected_answer] |
2021/02/25 | 748 | 2,743 | <issue_start>username_0: so uh, i just went onto a website, and I apparently have 4 viruses on my phone, it said "Your sim card has been damaged by a virus!" I dont know if this is fr and I'm only 14, but i know when not to click on something stupid. But I have to ask, is this real? I know how to deal with it if it IS true, but it is weird. It says my sim card is already 48% damaged.<issue_comment>username_1: You can check any unknown apps is installed remove it.
Clear cache of web browser.
You can scan your mobile using antivirus. You can use avg, Avast or panda antivirus. You can use free trail of anti virus.
You can erase your mobile.
Upvotes: -1 <issue_comment>username_2: The comments on your question already cleared things for you. It is [a scam](https://www.google.com/search?gl=us&hl=en&pws=0&filter=0&q=Your+sim+card+has+been+damaged+by+a+virus&gl=us&hl=en&pws=0&tbm=isch). If a website or an app suddenly or ever claims that *something is wrong* with your device, its accessories, its OS, a web account, your bank account, **you can be damn well sure that the other party is trying to scam you**.
10/10 times these scams appear as ads, so using an adblocker for both your web browser and and your device is suggested. I use [Ublock Origin addon](https://addons.mozilla.org/en-US/android/addon/ublock-origin/) (on Firefox for Android) which greatly helps in reducing ads nonsense when browsing. To stop nonsense ads on Android apps I use [AdAway](https://adaway.org/) (you can also use [Blockada](https://blokada.org/)) adblocker app. Some folks give moral reasons not to use adblockers but I keep security, privacy and web sanity over morality. You are on your own with morality here.
In a browser, 9/10 times these ads are able to load through [javascripts](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript), often third-party scripts. Using a solution which blocks at least third-party javascripts is recommended to everyone for browsing the web with sanity. I use [NoScript addon](https://addons.mozilla.org/en-US/android/addon/noscript/) (on Firefox for Android).
You also need to know about WAP billing frauds (you click something on some [often] not-so-popular webpage, and guess what XY amount of money is automatically deducted by your carrier. You apparently gets subscribed to some XYZ value-added service!). WAP billing frauds are facilitated by third-party javascripts.
The list can go on but it is best that at this age you spend a couple of hours to learn about privacy and security on the web, Android or whatever OS your mobile and PC are using, on at least a monthly basis. What you would learn would be far better than a quick fix I have suggested.
Upvotes: 2 |
2021/02/26 | 1,318 | 4,736 | <issue_start>username_0: I am running [LineageOS 16](https://download.lineageos.org/santoni) on a Redmi 4X device.
I tried installing the relevant [opengapps pico version](https://opengapps.org/) selecting ARM64 and Android 9.
I booted to TWRP, selected install and clicked on the opengapps zip file. It installed successfully with absolutely NO error code whatsoever. I then cleared Dalvik/cache(TWRP menu after installing opengapps) and rebooted to system.
I ran through setup and it all finished smoothly. I can install apps from the play store and all services too are working.
[](https://i.stack.imgur.com/liqXfl.png)
However this keeps happening and android says that setup keeps crashing.
I then redownloaded the opengapps zip again,rebooted to TWRP and installed it again. There was no error message. This time I booted to system without clearing Dalvik/Cache.
I ran through setup again. Everything happened properly, all my google stuff is working but again this setup screen keeps reappearing and Android keeps saying that setup keeps crashing.
[](https://i.stack.imgur.com/xvXAUl.png)
It crashes right after this screen when I click not now.
[](https://i.stack.imgur.com/qWneal.png)
Even now this notification is always present in the notification bar.
[](https://i.stack.imgur.com/7P7u9l.png)
Surprisingly all my google apps are still working perfectly including play store,gmail,classroom. I can also call, get messages and do everything else a phone is supposed to do.
[This thread](https://amp.reddit.com/r/LineageOS/comments/dh8co0/lineageos_16_for_redmi_4x_santoni_got_rescueparty/) talks about bootloop which is definitely NOT my issue. I didn't find any other thread related to santoni+lineageos16.
[This](https://android.stackexchange.com/a/234157/342189) is how I went about rooting my device.
I don't know how to obtain android system logs/logs relevant to opengapps so I am unable to post any of them. I will really appreciate any help I get since this is becoming quite annoying.<issue_comment>username_1: You can check any unknown apps is installed remove it.
Clear cache of web browser.
You can scan your mobile using antivirus. You can use avg, Avast or panda antivirus. You can use free trail of anti virus.
You can erase your mobile.
Upvotes: -1 <issue_comment>username_2: The comments on your question already cleared things for you. It is [a scam](https://www.google.com/search?gl=us&hl=en&pws=0&filter=0&q=Your+sim+card+has+been+damaged+by+a+virus&gl=us&hl=en&pws=0&tbm=isch). If a website or an app suddenly or ever claims that *something is wrong* with your device, its accessories, its OS, a web account, your bank account, **you can be damn well sure that the other party is trying to scam you**.
10/10 times these scams appear as ads, so using an adblocker for both your web browser and and your device is suggested. I use [Ublock Origin addon](https://addons.mozilla.org/en-US/android/addon/ublock-origin/) (on Firefox for Android) which greatly helps in reducing ads nonsense when browsing. To stop nonsense ads on Android apps I use [AdAway](https://adaway.org/) (you can also use [Blockada](https://blokada.org/)) adblocker app. Some folks give moral reasons not to use adblockers but I keep security, privacy and web sanity over morality. You are on your own with morality here.
In a browser, 9/10 times these ads are able to load through [javascripts](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript), often third-party scripts. Using a solution which blocks at least third-party javascripts is recommended to everyone for browsing the web with sanity. I use [NoScript addon](https://addons.mozilla.org/en-US/android/addon/noscript/) (on Firefox for Android).
You also need to know about WAP billing frauds (you click something on some [often] not-so-popular webpage, and guess what XY amount of money is automatically deducted by your carrier. You apparently gets subscribed to some XYZ value-added service!). WAP billing frauds are facilitated by third-party javascripts.
The list can go on but it is best that at this age you spend a couple of hours to learn about privacy and security on the web, Android or whatever OS your mobile and PC are using, on at least a monthly basis. What you would learn would be far better than a quick fix I have suggested.
Upvotes: 2 |
2021/03/03 | 830 | 3,204 | <issue_start>username_0: I was wondering, is it possible to view a history of apps I looked at on Google Play, but didn't necessarily download?
I went down a lengthy rabbit hole of suggested apps and then my Play Store app suddenly crashed...
I am hoping against all hope there might be a general viewing history. I am already aware of how to see a list of currently installed apps, and a list of apps I have (ever) downloaded.
If no such list/history exists or can be cleverly made, perhaps I shall lookup apps through the browser in the future, since surely I would be able to see a history as it would appear like any other webpage visited I would think. However this would certainly be less convenient and would lack the other features and benefits that are a part of the actual app.
Anyways, thanks for your insight and your time.
Barrage<issue_comment>username_1: You can check any unknown apps is installed remove it.
Clear cache of web browser.
You can scan your mobile using antivirus. You can use avg, Avast or panda antivirus. You can use free trail of anti virus.
You can erase your mobile.
Upvotes: -1 <issue_comment>username_2: The comments on your question already cleared things for you. It is [a scam](https://www.google.com/search?gl=us&hl=en&pws=0&filter=0&q=Your+sim+card+has+been+damaged+by+a+virus&gl=us&hl=en&pws=0&tbm=isch). If a website or an app suddenly or ever claims that *something is wrong* with your device, its accessories, its OS, a web account, your bank account, **you can be damn well sure that the other party is trying to scam you**.
10/10 times these scams appear as ads, so using an adblocker for both your web browser and and your device is suggested. I use [Ublock Origin addon](https://addons.mozilla.org/en-US/android/addon/ublock-origin/) (on Firefox for Android) which greatly helps in reducing ads nonsense when browsing. To stop nonsense ads on Android apps I use [AdAway](https://adaway.org/) (you can also use [Blockada](https://blokada.org/)) adblocker app. Some folks give moral reasons not to use adblockers but I keep security, privacy and web sanity over morality. You are on your own with morality here.
In a browser, 9/10 times these ads are able to load through [javascripts](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript), often third-party scripts. Using a solution which blocks at least third-party javascripts is recommended to everyone for browsing the web with sanity. I use [NoScript addon](https://addons.mozilla.org/en-US/android/addon/noscript/) (on Firefox for Android).
You also need to know about WAP billing frauds (you click something on some [often] not-so-popular webpage, and guess what XY amount of money is automatically deducted by your carrier. You apparently gets subscribed to some XYZ value-added service!). WAP billing frauds are facilitated by third-party javascripts.
The list can go on but it is best that at this age you spend a couple of hours to learn about privacy and security on the web, Android or whatever OS your mobile and PC are using, on at least a monthly basis. What you would learn would be far better than a quick fix I have suggested.
Upvotes: 2 |
2021/03/04 | 3,427 | 15,202 | <issue_start>username_0: My mother had a shopping app on her old smartphone which runs Android v6. Recently I noticed that the app on her phone was no longer supported. I've seen such things happen on old phones generally with many apps. I just wanted to know, why do companies drop their support to older OS versions after few years? Does it cost them a lot to continue the support to older OS versions as well? Does it require a whole team to be hired to just keep managing the support for older OS? Just being curious about this. Thanks.<issue_comment>username_1: There are two ways to support old Android versions:
1. Build one app that makes use of compatibility patches to supports old Android versions (down to a specific version) but also support all modern Android versions.
2. Build two or more apps each for a set of Android versions.
The second option is of course very costly as you have to develop maintain each app app version independently (or at least large parts of the app). This way is often not used or only if the app has been completely rewritten for new devices and for old devices the old version remains with minimal to no support.
Therefore the common way is option 1 – one app that has all compatibility fixes included. The main problem is that newer Android versions include interesting new features that are not (fully) available using the compatibility system Google provides. Therefore if you want to make use of them and the functionality is not optional in your app, app developers may decide to drop support of older Android versions in favor if being able to use new features of new Android versions. Decreasing the number of supported Android versions simplifies the app as old workarounds can be removed and don't have to be maintained anymore. And of course it removes the necessity to test the app on such old devices which can be a problem if you want to test your app on physical devices (not emulators) as old devices break and are more and more difficult to get.
Upvotes: 6 [selected_answer]<issue_comment>username_2: The Android SDK (software development kit) sets a minimum version of Android that it supports, as explained by another Q and A:
<https://stackoverflow.com/q/24441178/1836461>
<https://stackoverflow.com/a/61087797/1836461>
Developers/companies (referred to as just "developer" from now on) can choose to support older version, but it gets hard to maintain that code. Speaking as a developer, it can be difficult to remember what settings or commands mean to different versions of an OS. Some of these differences are even deprecated (disapproved of) or completely removed from the newer SDKs, which makes it difficult or impossible to maintain backwards compatibility. And sometimes it's removed because of good reasons, usually meaning that it has significant security issues.
And just because the app is dropped, it doesn't mean that there isn't a newer version available. Some companies may rewrite their software completely (for various reasons including getting rid of large amounts of unnecessary legacy code), then post it as a separate app, leaving the previous version available as their idea of backwards compatibility.
In fact, most non-mobile software development is done like this. The old version is still available somewhere when a new version is released. Mobile stores like Google and Apple don't have an easy way for a user to get older versions, even though the developer can still see those old versions.
Other reasons
-------------
A company may also decide that their method of communication (protocols) need to be updated to newer specifications that aren't available in old versions of the SDK. If you have an app written in an old SDK that works with old phones, but you need/decide to upgrade those protocols to a security version the old version just doesn't support, you may have to remove some backwards compatibility to get access to the newer standards in a newer SDK. And if you're going to completely rewrite an app, it makes more sense to do it in the latest SDK, rather than one that'll be completely out dated again in 1-2 years.
Even just rewriting an app to clean it up, remove unnecessary functionality, redo the user interface/user experience (UI/UX), or 100 other reasons, using the most recent SDK also makes the most sense.
The Answer I linked to above talks about 25% of Twitter users being ignored because of platform changes due to an upgraded app. Well, those 25% are the older phones that will likely be the fastest shrinking group of phones around. They will eventually be broken, dropped, the battery ruined with no replacements available, or a 1000 other reasons, including other apps ceasing to support them. I'm not saying it's a good move to remove that many users from using your app all at once, but evidently they thought they could survive it.
Parallel example
----------------
In the desktop browser market, Chrome is the vast leader in usage.
<https://netmarketshare.com/browser-market-share.aspx>
<https://en.wikipedia.org/wiki/Usage_share_of_web_browsers>
As Internet Explorer (IE), Edge, Gecko, Firefox, Safari, and others have fallen out of use, developers stop doing as much cross-browser compatibility. As someone who's done that as well, it's a total PITA, especially when a requirement is pixel perfect compatibility, which is pretty much impossible. I have 5 browsers installed because of this reason, yet I only use 1 for browsing.
Some companies will insist on supporting IE and Edge, because "it's installed as the default on computers and most of our users don't know to install something else". It doesn't matter how few people actually use IE or Edge, because "the statistics are taken from sites where most users are devs or higher level computer users". But the reality is that the majority of browsers aren't worth the time to support. People don't support Netscape Navigator anymore, even if there is someone still running Win 3.11 for Workgroups, Win 98SE, or Mac OS 8.5.
Conclusion
----------
What I'm saying saying is at some point, you have to draw a line as to what you're going to support, as older versions cease to be useful or usable by both the user and the developer.
Spending time, money, and effort on old versions that aren't heavily used isn't usually a good use of resources.
Sometimes this is strictly a "make more money" ideal, in that the developer wants to force you to buy the new version, but that's not always the case. It makes more sense to developers to spend more time on new features and relevant bugs in a new version than new features and bugs in the old version.
Upvotes: 3 <issue_comment>username_3: There is more money in forcing users to upgrade to newer versions of Android, which in turn requires buying new hardware to run the newer version of Android.
To make this happen, the developers of Android change the programming APIs little by little as new versions come out. New ways of doing things are added, and old ways of doing things are removed over time. Bugs in the APIs that older software depended on are fixed, and no effort is put in to maintaining the old behavior to maintain compatibility.
Doing this forces app makers to constantly maintain their software and release newer versions of it with minor changes. It costs more money to tweak the software so that it works on older versions of Android as well as the latest release at the same time. To maintain compatibility across major versions differences of Android, multiple versions of the app may have to be maintained and distributed separately. This would become quite costly, and since most everyone has a newer device, the market to justify the extra expense just isn't there.
Microsoft's traditional approach has been to go to great lengths to maintain compatibility with older software. Large numbers of applications were tested on their next version of Windows prior to release, and many tweaks were done to ensure compatibility. Because of this, software developers can just make one version of the software that works on an older version of Windows, and it will work on the newer versions as well. With the release of Windows Vista Microsoft began to move away from this business strategy, and is now developing Windows 10 in a way that more resembles Android, but Windows compatibility with older software is still better than the mobile operating systems and even Mac OS X.
Upvotes: 2 <issue_comment>username_4: *TL;DR answer:*
Because programming for each version of Android is slightly different and thus supporting each of them costs extra money. When a particular version is generating less profit than necessary to justify maintaining it, the support is dropped.
Upvotes: 2 <issue_comment>username_5: The other answers are great, and they respond to the question directly; let us try a slightly different approach.
Why do people still have phones running such old versions of Android in the first place? Usually it is because **their manufacturers no longer support those models**. Why not? Surely part of the reason is that **the Android developers no longer support old versions of Android**.
So not only is it inherently costly to develop apps for old versions of Android, **such developers would have to put up with a platform full of known bugs that will definitely not be fixed**. Who wants to do that?
Maybe developers will put up with it for a while, if their users demand it. But when there are not many users using an old Android version anymore, it is likely to be dropped.
The issues discussed here and in the other answers also explain why some websites only support the “latest versions” of the major web browsers.
Upvotes: 2 <issue_comment>username_6: I work on software (math libraries) for quite a few platforms, including Android. I can describe our decision-making process for Android version support. It is not entirely typical, because we only produce native code, and don't touch Java or Kotlin.
We started on Android in early 2018 (so we were late-comers) because an existing customer who used other platforms wanted Android. They wanted to offer apps that dealt with data from their Windows products.
After some exploration and prototyping, we did an implementation, and shipped it in early 2019. The minimum Android version that the customer wanted support for was 5.0, and they only wanted 64-bit native code. Not needing to produce 32-bit native code was welcome, since the software has a *lot* of automated testing, and avoiding the need to test both 32-bit and 64-bit versions was welcome.
The main problem with needing to prepare in 2018 to support Android 5.0 was getting a 5.x device, since they were getting hard to find. We got an Amazon Kindle Fire with an OS based on 5.1, and found some incompatibilities with the 7.0 that we were using on new devices for the main testing. We considered it obligatory to have a device on the oldest (or nearly so) version that we supported, so that we could reproduce version-specific bugs if they happened. If you try hard to ensure things like that won't be a problem, they usually don't happen at all. We were in production, testing on 5.1 and 7.0, and claiming support for 5.0 onwards. The newest released Android at the time was 9.x, but 8.x was the newest with any market share.
Android devices don't last forever, especially if they aren't being used regularly. Leaving them unused and unplugged for months is a bad idea, because sometimes they won't wake up again. To make sure that your software works on newer versions of Android, you need to test it on them, and you also need to preserve some devices on old versions, so that you can reproduce customer bugs. The simplest way to do this is to buy new test devices, approximately annually.
At that point, dropping support for older versions of Android was a good idea, because it enabled us to trim what would otherwise be an endlessly growing collection of old devices.
In mid-2020, we updated to a newer NDK, to get a newer C++ compiler, and made Android 7 our minimum supported version. Android 10 was the newest version in circulation, but we'd got some nice fast test 'phones with 9.0, and settled for that.
At the end of June 2022, I changed to Android 9 as the minimum supported. Android 12 was then the current version, and 13 was approaching release. The native code environment doesn't change nearly as fast as the app presentation layer, so updating every two years should be OK.
As of June 2022, according to the data at [GlobalStats Statcounter](https://gs.statcounter.com/os-version-market-share/android/mobile-tablet/worldwide), I'll be compatible with just over 82% of the worldwide Android market, heavily biased towards newer and faster devices. (88.6% of the North American market, 87% of the European market) My ISV customers (my employers don't sell end-user apps) are happy with this.
Update: GlobalStats Statcounter has become less reliable due to [privacy changes in Google Chrome](https://developer.chrome.com/blog/user-agent-reduction-android-model-and-version/). GlobalStats compile their figures from web browsers that visit a wide range of websites, and updates to recent versions of Chrome mean that the user-agent strings now default to Android 10, irrespective of the actual Android version. There are ways of getting the actual version, but they don't work for devices where the manufacturer has not implemented `getHighEntropyValues()`. That means Android 10 will be overrepresented until Chrome changes to a different default user-agent.
Upvotes: 1 <issue_comment>username_7: The answers given thus far are factual, but I question the principles behind them, and would like to briefly address the question of "why..." in a *deeper sense*.
It makes sense that developers would upgrade apps and release new versions -- but in my opinion the release of new versions should not require retirement of older versions. Simply identify them as "unsupported" and let them remain available for those users who cannot run the new version. (Personally, I blame Microsoft for inventing, and making seem "natural," the "forced upgrade" business model in the computing industry...)
Actually, I also take issue with the very idea of "dropping support" at all. One can never be certain that *nobody* is still using something; I myself am just now getting around to looking at, and trying, some CD-ROM games for Windows 98... (Fortunately, I have never found it necessary to contact Microsoft for support, but somebody else out there may wish to.) Personally, as a software developer, I continue to support everything I've ever written, and have in fact taken support calls well into the 2000s for software I wrote (by which I mean parts of the turnkey host computer for a commercial product) between 1988 and 1997. In effect, this means supporting *everything*, *forever*. I reject the claim that this will cost any significant amount of money, because the number of users making demands on that support will decrease (probably inverse-exponentially, but never to zero, mathematically) and require less and less expenditure as time goes on.
Upvotes: 1 |
2021/03/08 | 3,820 | 10,719 | <issue_start>username_0: There doesn't seem to be much written on this, but I see an option to pair my device with a QR code scanner. Is there a way to pair my phone with my computer by generating a QR code on my computer and scanning it from my phone?
I'm running Ubuntu 20.04.
I'm using the Pixel 4a running Android 11.
<issue_comment>username_1: *This answer explains the background history of the built-in feature in Android Studio. For the technology used and 3rd-party software, you can read [my answer here](https://android.stackexchange.com/a/249230/44325).*
---
As of 26 January 2022, the feature can be used on the stable version of [Android Studio Bumblebee 2021.1.1](https://developer.android.com/studio/releases/past-releases#expandable-2) with Android 11+ devices. Though, [the performance may still be buggy on some platforms](https://www.androidpolice.com/android-studio-bumblebee-stable/).
### Background History
While the revamped wireless debugging has been known since
* the source code commits in October 2019 by [XDA](https://www.xda-developers.com/android-11-native-wireless-adb/)
>
> On the user-side, Google plans to add a new “wireless debugging” switch in Developer Options that supports pairing devices by scanning a QR code or entering a 6 digit code.
>
>
>
* the release of Android 11 DP2 in March 2020, as reported by [9 to 5 Google](https://9to5google.com/2020/03/18/android-11-dp2-wireless-adb-debugging/) and [Android Police](https://www.androidpolice.com/2020/03/18/android-11-developer-preview-2-fully-supports-wireless-adb/)
it was first introduced officially on [Android 11: Developer Preview 3](https://android-developers.googleblog.com/2020/04/android-11-developer-preview-3.html) in April 2020.
>
> **Wireless Debugging** - In Android 11, we’ve completely revamped the debugging experience using ADB over a Wi-Fi connection. With limited USB ports on laptops, and a myriad of USB cables & connections to manage, the Wireless Debugging feature in Android 11 can help you be more productive. Unlike the existing TCP/IP debugging workflow, Wireless Debugging on Android 11 does not need a cable to set up, remembers connections over time, and can utilize the full speed of the latest Wi-Fi standards. In DP3, use the pairing code workflow to get started with this developer feature. ***We plan to add an integrated experience for Wireless Debugging with QR code scanning in a future Android Studio release***, but we want to get your early feedback on the command line tool offered in Android 11 DP3. For details, see the [documentation](https://developer.android.com/about/versions/11/features#wireless-adb).
>
>
> (Emphasis added, link fixed)
>
>
>
However, it was not until December 2020 that the new Android Studio Canary version, [Android Studio Arctic Fox (2020.3.1)](https://developers.googleblog.com/2020/12/announcing-android-studio-arctic-fox.html) shown the pairing interface for the first time.
>
> Lastly, for those running MacOS (other platforms are coming soon) with the latest Android Platform tools and an Android 11 device, you can try out the IDE integration for the [Wireless ADB](https://developer.android.com/studio/command-line/adb#wireless-adb-android-11) feature by going to the **Run** device selection dialogue → **Pair Devices Using Wi-Fi**.
>
>
> 
>
>
> *Menu to access Wireless ADB feature*
>
>
> 
>
>
> *Wireless ADB Setup Window*
>
>
>
Upvotes: 5 [selected_answer]<issue_comment>username_2: You can pair your phone wirelessly using ADB by following these steps:
1. Make sure your phone and laptop are on the same network.
2. Open the following menu on your phone: `Settings`>`Developer options`>`Wireless debugging`. Enable the feature and then click on `Pair device with pairing code` on the same screen.
3. Open a terminal on your laptop and use the below command to pair your phone with your laptop:
```
adb pair host:port code
```
You can find `host`, `port` and `code` on your phone screen after clicking on `Pair device with pairing code` in the `wireless debugging` menu.
4. Run the below command to make sure the pairing has been done successfully:
```
adb devices
```
Upvotes: 3 <issue_comment>username_1: *This answer explains the technology used and 3rd-party software. For background history of the built-in feature in Android Studio, you can read [my answer here](https://android.stackexchange.com/a/234468/44325).*
---
**Android 11 and ADB utilize [multicast DNS (mDNS)](https://en.wikipedia.org/wiki/Multicast_DNS) for its wireless pairing.**
[ADB 30.0.0](https://developer.android.com/studio/releases/platform-tools#3000_april_2020) added support for wireless pairing, including commands like:
* `adb pair` to pair the Android device with the host machine using pairing code
* `adb mdns check` to check which mDNS daemon is used
+ On Windows, using [Openscreen discovery](https://android.googlesource.com/platform/packages/modules/adb/+/f4ba8d73079b99532069dbe888a58167b8723d6c%5E%21/) added in [ADB 31.0.2](https://developer.android.com/studio/releases/platform-tools#3102_april_2021):
```
C:\android-sdk\platform-tools> adb mdns check
mdns daemon version [Openscreen discovery 0.0.0]
```
+ On Windows, using Bonjour service
```
C:\android-sdk\platform-tools> adb mdns check
mdns daemon version [2140303]
```
* `adb mdns services` to list available mDNS services created by the Android devices
```
C:\android-sdk\platform-tools> adb mdns services
List of discovered mdns services
adb-941AY0HXWG-r8Nucn _adb-tls-connect._tcp. 192.168.0.147:37387
adb-941AY0HXWG-r8Nucn _adb-tls-pairing._tcp. 192.168.0.147:42885
```
In addition to the built-in feature in Android Studio, there is also some 3rd-party software that simulates the same process by generating a QR code to initiate the wireless pairing:
* [GitHub - benigumocom/debug\_from\_qr.py](https://gist.github.com/benigumocom/a6a87fc1cb690c3c4e3a7642ebf2be6f): an executable Python 3 script
+ Dependency packages:
- zeroconf
- qrencode
* Windows executable: [GitHub - valterfukuoka
/
qrencodecompilewindows](https://github.com/valterfukuoka/qrencodecompilewindows)
+ Demo video: [YouTube - BENIGUMO.COM - Pair device with QR code - Android11](https://youtu.be/bI2ljXBj-I8?t=74)
+ Sample
```
C:\> py .\debug_from_qr.py
█████████████████████████████████
█████████████████████████████████
████ ▄▄▄▄▄ █ ██▀▀ █ ▀█ ▄▄▄▄▄ ████
████ █ █ █ ▀█▄█▄▀▄█ █ █ ████
████ █▄▄▄█ █▀ █ ▄ ▄▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█▄█ ▀▄▀ █▄█▄▄▄▄▄▄▄████
████ ▄██ ▄▄▀██▄▀▀▀ █ ▀█ █▄ ▄▄████
████▄▄▄▄▀▀▄▄▀ ▄█▄▄▀▄███▄▄████████
████ ▄▄ ▄█▄▀▀▀▀▀▀ ▄▀█▀▄▀▀ ▄▄▄████
██████▄█▀█▄▄ ▄██▄▄▀▄▄▄▀▄█▄▀▄▀████
████▄▄██▄█▄▄ ▄▀▀▄▀ ▀ ▄▄▄ ▀▀████
████ ▄▄▄▄▄ █▀▄█▄▄▄▀▄ █▄█ ▀██████
████ █ █ █▄ ███▀▄█ ▄▄ ▄▄▄ ████
████ █▄▄▄█ █▀▄█▄▄▄▀▀ ▄▄▄█▄▀ ▀████
████▄▄▄▄▄▄▄█▄█▄█▄▄█▄████▄▄██▄████
█████████████████████████████████
█████████████████████████████████
Scan QR code to pair new devices.
[Developer options]-[Wireless debugging]-[Pair device with QR code]
Press enter to exit...
Service debug._adb-tls-pairing._tcp.local. added.
service info: ServiceInfo(type='_adb-tls-pairing._tcp.local.', name='debug._adb-tls-pairing._tcp.local.', addresses=[b'\xc0\xa8\x00\x93', b'\xc0\xa8\x00\x9f'], port=40067, weight=0, priority=0, server='Android-2.local.', properties={}, interface_index=None)
adb pair Android-2.local.:40067 123456
Successfully paired to Android-2.local.:40067 [guid=adb-941AY0HXWG-r8Nucn]
Service debug._adb-tls-pairing._tcp.local. removed.
Press enter to exit...
List of devices attached
adb-941AY0HXWG-r8Nucn._adb-tls-connect._tcp. device product:sargo model:Pixel_3a device:sargo transport_id:3
```
* [GitHub - saleehk/adb-wifi](https://github.com/saleehk/adb-wifi): an NPM command line interface (CLI) tool
+ Install: `npm i adb-wifi -g`
+ Usage: `adb-wifi`
+ Sample
```
C:\> adb-wifi
[Developer options]->[Wireless debugging]->[Pair device with QR code]
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄▀ ▀ ▀ █▄▄█▄▀▄▄ ██ ▄▄▄▄▄ █
█ █ █ █ █▀ ▀▀█▄ █▀ ███ █ █ █
█ █▄▄▄█ █▄█▀ ▄█▀▄█▄▄ █ ██▀█ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ █ █ █▄▀▄█ █▄▀▄█▄▄▄▄▄▄▄█
█ ▄▄▀▀▄█▄█ ▄ ▄▀ ██ ██▄▄██▄▄▄▀ █
█▀▀▀▀▄▀▄▄▄ ▄▄▀▄▀▀███▄█▄▄▀▀ ▀▀ ▄█▄█
█▄▀ █▄▀▄█▀ ▄▀ ▄▄▄▀█▀▄▄▀ ▄ ▀ █▄▄█ █
█▀ ██ ▀▄ ▀▀▀ █▄▀█ ▄▄ █ ▄▀ ▀ ▄█▀█▀█
██▄ ▄█▀▄█▄▀▄█▄ ▀▄█▀▄ ▀ ▀▄▄▀▀█ ▄█
█▄▀▄▄ ▄▀█ ▀█▄▀▄ ▀ ▀ █ ▀█ █▄ ██ ▀█
█ █▄ ▄▀▄ █ ██ ▄█▀▄▄▄▀ ███ ██▀▄▄█
██▀▄██▄▄ ▄ █▀▀ ▄█▄▄▄█ ██ ██▄ ▀█▄ █
█▄█▄█▄▄▄▄ ▀█ ▄▀▄▄ ▀█▀ ▄▄ ▄▄▄ █▄ ▀█
█ ▄▄▄▄▄ ██ ▀▀ █ ▀▀▄▀▄▄▀▀▀ █▄█ ▀▀▀██
█ █ █ █▀ ▄▀▄▄█▄█▀▄█▀▀ ▄▄▄ ▄█ ▄█
█ █▄▄▄█ █ █▄██▄█▄▄▀▀█▄▄▄▀█▀▀▀▀▀█▄▀█
█▄▄▄▄▄▄▄█▄██▄▄██▄█▄███▄█▄█▄▄██▄▄███
stdout: Successfully paired to 192.168.0.147:38629 [guid=adb-941AY0HXWG-r8Nucn]
```
**mDNS Compatibility**
Since this feature depends on mDNS, different operating systems may have different compatibility:
* **Apple** has a native implementation in iOS and macOS
* **Linux** distros tend to implement mDNS through the Avahi daemon
* **Windows** does not have a native implementation until Windows 10 (1703), but even then it may still fail:
+ User may need to install [Apple's Bonjour Print Services](https://support.apple.com/kb/DL999)
+ [Super User - How to enable mDNS on Windows 10 build 17134?](https://superuser.com/q/1330027/356789)
---
Additional references:
* [XDA Developers - Android 11 may finally bring a proper, native Wireless ADB implementation](https://www.xda-developers.com/android-11-native-wireless-adb/)
* [Android finally supports a basic networking feature: mDNS .local resolution](https://blog.esper.io/android-dessert-bites-26-mdns-local-47912385/)
Upvotes: 3 <issue_comment>username_3: Just wanted to add that if you try to scan the QR code directly from the camera, like on a Pixel by pointing it at the QR code and clicking the link, it won't work. You will get an error message that says "QR Code contains incorrect WiFi password". This error message is a red herring, it has nothing to do with the WiFi password, you just can't pair with the QR code by scanning it with the camera
Instead, like is mentioned in username_2's answer, you have to go to:
Settings --> System --> Developer options --> Wireless debugging (Yes you can click the text) --> Pair device with QR code
Then when you scan the QR code it should work. I think it's bad UI design that you have to click on the "Wireless debugging" text since it looks like that's just a single radio button to toggle the Wireless debugging option, but in actuality there's an entire sub-menu hidden behind it.
Upvotes: 0 |
2021/03/10 | 3,844 | 10,865 | <issue_start>username_0: I'm trying to use Google's voice typing, but it is not able to punctuate my sentences.
No matter I say "point", "dot" or "comma", it always writes it into my text.
Earlier I though this is only because I wanted to use the voice typing in other languages (not English). But now I'm trying to reach this functionality in English.
Is there any hidden tricks to enable the punctuation on Android 11 (Samsung)?
I found someone used the Swype keyboard which is obsolete now (since 2018). So really what are my options?<issue_comment>username_1: *This answer explains the background history of the built-in feature in Android Studio. For the technology used and 3rd-party software, you can read [my answer here](https://android.stackexchange.com/a/249230/44325).*
---
As of 26 January 2022, the feature can be used on the stable version of [Android Studio Bumblebee 2021.1.1](https://developer.android.com/studio/releases/past-releases#expandable-2) with Android 11+ devices. Though, [the performance may still be buggy on some platforms](https://www.androidpolice.com/android-studio-bumblebee-stable/).
### Background History
While the revamped wireless debugging has been known since
* the source code commits in October 2019 by [XDA](https://www.xda-developers.com/android-11-native-wireless-adb/)
>
> On the user-side, Google plans to add a new “wireless debugging” switch in Developer Options that supports pairing devices by scanning a QR code or entering a 6 digit code.
>
>
>
* the release of Android 11 DP2 in March 2020, as reported by [9 to 5 Google](https://9to5google.com/2020/03/18/android-11-dp2-wireless-adb-debugging/) and [Android Police](https://www.androidpolice.com/2020/03/18/android-11-developer-preview-2-fully-supports-wireless-adb/)
it was first introduced officially on [Android 11: Developer Preview 3](https://android-developers.googleblog.com/2020/04/android-11-developer-preview-3.html) in April 2020.
>
> **Wireless Debugging** - In Android 11, we’ve completely revamped the debugging experience using ADB over a Wi-Fi connection. With limited USB ports on laptops, and a myriad of USB cables & connections to manage, the Wireless Debugging feature in Android 11 can help you be more productive. Unlike the existing TCP/IP debugging workflow, Wireless Debugging on Android 11 does not need a cable to set up, remembers connections over time, and can utilize the full speed of the latest Wi-Fi standards. In DP3, use the pairing code workflow to get started with this developer feature. ***We plan to add an integrated experience for Wireless Debugging with QR code scanning in a future Android Studio release***, but we want to get your early feedback on the command line tool offered in Android 11 DP3. For details, see the [documentation](https://developer.android.com/about/versions/11/features#wireless-adb).
>
>
> (Emphasis added, link fixed)
>
>
>
However, it was not until December 2020 that the new Android Studio Canary version, [Android Studio Arctic Fox (2020.3.1)](https://developers.googleblog.com/2020/12/announcing-android-studio-arctic-fox.html) shown the pairing interface for the first time.
>
> Lastly, for those running MacOS (other platforms are coming soon) with the latest Android Platform tools and an Android 11 device, you can try out the IDE integration for the [Wireless ADB](https://developer.android.com/studio/command-line/adb#wireless-adb-android-11) feature by going to the **Run** device selection dialogue → **Pair Devices Using Wi-Fi**.
>
>
> 
>
>
> *Menu to access Wireless ADB feature*
>
>
> 
>
>
> *Wireless ADB Setup Window*
>
>
>
Upvotes: 5 [selected_answer]<issue_comment>username_2: You can pair your phone wirelessly using ADB by following these steps:
1. Make sure your phone and laptop are on the same network.
2. Open the following menu on your phone: `Settings`>`Developer options`>`Wireless debugging`. Enable the feature and then click on `Pair device with pairing code` on the same screen.
3. Open a terminal on your laptop and use the below command to pair your phone with your laptop:
```
adb pair host:port code
```
You can find `host`, `port` and `code` on your phone screen after clicking on `Pair device with pairing code` in the `wireless debugging` menu.
4. Run the below command to make sure the pairing has been done successfully:
```
adb devices
```
Upvotes: 3 <issue_comment>username_1: *This answer explains the technology used and 3rd-party software. For background history of the built-in feature in Android Studio, you can read [my answer here](https://android.stackexchange.com/a/234468/44325).*
---
**Android 11 and ADB utilize [multicast DNS (mDNS)](https://en.wikipedia.org/wiki/Multicast_DNS) for its wireless pairing.**
[ADB 30.0.0](https://developer.android.com/studio/releases/platform-tools#3000_april_2020) added support for wireless pairing, including commands like:
* `adb pair` to pair the Android device with the host machine using pairing code
* `adb mdns check` to check which mDNS daemon is used
+ On Windows, using [Openscreen discovery](https://android.googlesource.com/platform/packages/modules/adb/+/f4ba8d73079b99532069dbe888a58167b8723d6c%5E%21/) added in [ADB 31.0.2](https://developer.android.com/studio/releases/platform-tools#3102_april_2021):
```
C:\android-sdk\platform-tools> adb mdns check
mdns daemon version [Openscreen discovery 0.0.0]
```
+ On Windows, using Bonjour service
```
C:\android-sdk\platform-tools> adb mdns check
mdns daemon version [2140303]
```
* `adb mdns services` to list available mDNS services created by the Android devices
```
C:\android-sdk\platform-tools> adb mdns services
List of discovered mdns services
adb-941AY0HXWG-r8Nucn _adb-tls-connect._tcp. 192.168.0.147:37387
adb-941AY0HXWG-r8Nucn _adb-tls-pairing._tcp. 192.168.0.147:42885
```
In addition to the built-in feature in Android Studio, there is also some 3rd-party software that simulates the same process by generating a QR code to initiate the wireless pairing:
* [GitHub - benigumocom/debug\_from\_qr.py](https://gist.github.com/benigumocom/a6a87fc1cb690c3c4e3a7642ebf2be6f): an executable Python 3 script
+ Dependency packages:
- zeroconf
- qrencode
* Windows executable: [GitHub - valterfukuoka
/
qrencodecompilewindows](https://github.com/valterfukuoka/qrencodecompilewindows)
+ Demo video: [YouTube - BENIGUMO.COM - Pair device with QR code - Android11](https://youtu.be/bI2ljXBj-I8?t=74)
+ Sample
```
C:\> py .\debug_from_qr.py
█████████████████████████████████
█████████████████████████████████
████ ▄▄▄▄▄ █ ██▀▀ █ ▀█ ▄▄▄▄▄ ████
████ █ █ █ ▀█▄█▄▀▄█ █ █ ████
████ █▄▄▄█ █▀ █ ▄ ▄▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█▄█ ▀▄▀ █▄█▄▄▄▄▄▄▄████
████ ▄██ ▄▄▀██▄▀▀▀ █ ▀█ █▄ ▄▄████
████▄▄▄▄▀▀▄▄▀ ▄█▄▄▀▄███▄▄████████
████ ▄▄ ▄█▄▀▀▀▀▀▀ ▄▀█▀▄▀▀ ▄▄▄████
██████▄█▀█▄▄ ▄██▄▄▀▄▄▄▀▄█▄▀▄▀████
████▄▄██▄█▄▄ ▄▀▀▄▀ ▀ ▄▄▄ ▀▀████
████ ▄▄▄▄▄ █▀▄█▄▄▄▀▄ █▄█ ▀██████
████ █ █ █▄ ███▀▄█ ▄▄ ▄▄▄ ████
████ █▄▄▄█ █▀▄█▄▄▄▀▀ ▄▄▄█▄▀ ▀████
████▄▄▄▄▄▄▄█▄█▄█▄▄█▄████▄▄██▄████
█████████████████████████████████
█████████████████████████████████
Scan QR code to pair new devices.
[Developer options]-[Wireless debugging]-[Pair device with QR code]
Press enter to exit...
Service debug._adb-tls-pairing._tcp.local. added.
service info: ServiceInfo(type='_adb-tls-pairing._tcp.local.', name='debug._adb-tls-pairing._tcp.local.', addresses=[b'\xc0\xa8\x00\x93', b'\xc0\xa8\x00\x9f'], port=40067, weight=0, priority=0, server='Android-2.local.', properties={}, interface_index=None)
adb pair Android-2.local.:40067 123456
Successfully paired to Android-2.local.:40067 [guid=adb-941AY0HXWG-r8Nucn]
Service debug._adb-tls-pairing._tcp.local. removed.
Press enter to exit...
List of devices attached
adb-941AY0HXWG-r8Nucn._adb-tls-connect._tcp. device product:sargo model:Pixel_3a device:sargo transport_id:3
```
* [GitHub - saleehk/adb-wifi](https://github.com/saleehk/adb-wifi): an NPM command line interface (CLI) tool
+ Install: `npm i adb-wifi -g`
+ Usage: `adb-wifi`
+ Sample
```
C:\> adb-wifi
[Developer options]->[Wireless debugging]->[Pair device with QR code]
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄▀ ▀ ▀ █▄▄█▄▀▄▄ ██ ▄▄▄▄▄ █
█ █ █ █ █▀ ▀▀█▄ █▀ ███ █ █ █
█ █▄▄▄█ █▄█▀ ▄█▀▄█▄▄ █ ██▀█ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ █ █ █▄▀▄█ █▄▀▄█▄▄▄▄▄▄▄█
█ ▄▄▀▀▄█▄█ ▄ ▄▀ ██ ██▄▄██▄▄▄▀ █
█▀▀▀▀▄▀▄▄▄ ▄▄▀▄▀▀███▄█▄▄▀▀ ▀▀ ▄█▄█
█▄▀ █▄▀▄█▀ ▄▀ ▄▄▄▀█▀▄▄▀ ▄ ▀ █▄▄█ █
█▀ ██ ▀▄ ▀▀▀ █▄▀█ ▄▄ █ ▄▀ ▀ ▄█▀█▀█
██▄ ▄█▀▄█▄▀▄█▄ ▀▄█▀▄ ▀ ▀▄▄▀▀█ ▄█
█▄▀▄▄ ▄▀█ ▀█▄▀▄ ▀ ▀ █ ▀█ █▄ ██ ▀█
█ █▄ ▄▀▄ █ ██ ▄█▀▄▄▄▀ ███ ██▀▄▄█
██▀▄██▄▄ ▄ █▀▀ ▄█▄▄▄█ ██ ██▄ ▀█▄ █
█▄█▄█▄▄▄▄ ▀█ ▄▀▄▄ ▀█▀ ▄▄ ▄▄▄ █▄ ▀█
█ ▄▄▄▄▄ ██ ▀▀ █ ▀▀▄▀▄▄▀▀▀ █▄█ ▀▀▀██
█ █ █ █▀ ▄▀▄▄█▄█▀▄█▀▀ ▄▄▄ ▄█ ▄█
█ █▄▄▄█ █ █▄██▄█▄▄▀▀█▄▄▄▀█▀▀▀▀▀█▄▀█
█▄▄▄▄▄▄▄█▄██▄▄██▄█▄███▄█▄█▄▄██▄▄███
stdout: Successfully paired to 192.168.0.147:38629 [guid=adb-941AY0HXWG-r8Nucn]
```
**mDNS Compatibility**
Since this feature depends on mDNS, different operating systems may have different compatibility:
* **Apple** has a native implementation in iOS and macOS
* **Linux** distros tend to implement mDNS through the Avahi daemon
* **Windows** does not have a native implementation until Windows 10 (1703), but even then it may still fail:
+ User may need to install [Apple's Bonjour Print Services](https://support.apple.com/kb/DL999)
+ [Super User - How to enable mDNS on Windows 10 build 17134?](https://superuser.com/q/1330027/356789)
---
Additional references:
* [XDA Developers - Android 11 may finally bring a proper, native Wireless ADB implementation](https://www.xda-developers.com/android-11-native-wireless-adb/)
* [Android finally supports a basic networking feature: mDNS .local resolution](https://blog.esper.io/android-dessert-bites-26-mdns-local-47912385/)
Upvotes: 3 <issue_comment>username_3: Just wanted to add that if you try to scan the QR code directly from the camera, like on a Pixel by pointing it at the QR code and clicking the link, it won't work. You will get an error message that says "QR Code contains incorrect WiFi password". This error message is a red herring, it has nothing to do with the WiFi password, you just can't pair with the QR code by scanning it with the camera
Instead, like is mentioned in username_2's answer, you have to go to:
Settings --> System --> Developer options --> Wireless debugging (Yes you can click the text) --> Pair device with QR code
Then when you scan the QR code it should work. I think it's bad UI design that you have to click on the "Wireless debugging" text since it looks like that's just a single radio button to toggle the Wireless debugging option, but in actuality there's an entire sub-menu hidden behind it.
Upvotes: 0 |
2021/03/14 | 3,764 | 10,544 | <issue_start>username_0: How can I display two clocks in two different time zones in the notification bar? By default, only one time is displayed at the top left of the screen.
<issue_comment>username_1: *This answer explains the background history of the built-in feature in Android Studio. For the technology used and 3rd-party software, you can read [my answer here](https://android.stackexchange.com/a/249230/44325).*
---
As of 26 January 2022, the feature can be used on the stable version of [Android Studio Bumblebee 2021.1.1](https://developer.android.com/studio/releases/past-releases#expandable-2) with Android 11+ devices. Though, [the performance may still be buggy on some platforms](https://www.androidpolice.com/android-studio-bumblebee-stable/).
### Background History
While the revamped wireless debugging has been known since
* the source code commits in October 2019 by [XDA](https://www.xda-developers.com/android-11-native-wireless-adb/)
>
> On the user-side, Google plans to add a new “wireless debugging” switch in Developer Options that supports pairing devices by scanning a QR code or entering a 6 digit code.
>
>
>
* the release of Android 11 DP2 in March 2020, as reported by [9 to 5 Google](https://9to5google.com/2020/03/18/android-11-dp2-wireless-adb-debugging/) and [Android Police](https://www.androidpolice.com/2020/03/18/android-11-developer-preview-2-fully-supports-wireless-adb/)
it was first introduced officially on [Android 11: Developer Preview 3](https://android-developers.googleblog.com/2020/04/android-11-developer-preview-3.html) in April 2020.
>
> **Wireless Debugging** - In Android 11, we’ve completely revamped the debugging experience using ADB over a Wi-Fi connection. With limited USB ports on laptops, and a myriad of USB cables & connections to manage, the Wireless Debugging feature in Android 11 can help you be more productive. Unlike the existing TCP/IP debugging workflow, Wireless Debugging on Android 11 does not need a cable to set up, remembers connections over time, and can utilize the full speed of the latest Wi-Fi standards. In DP3, use the pairing code workflow to get started with this developer feature. ***We plan to add an integrated experience for Wireless Debugging with QR code scanning in a future Android Studio release***, but we want to get your early feedback on the command line tool offered in Android 11 DP3. For details, see the [documentation](https://developer.android.com/about/versions/11/features#wireless-adb).
>
>
> (Emphasis added, link fixed)
>
>
>
However, it was not until December 2020 that the new Android Studio Canary version, [Android Studio Arctic Fox (2020.3.1)](https://developers.googleblog.com/2020/12/announcing-android-studio-arctic-fox.html) shown the pairing interface for the first time.
>
> Lastly, for those running MacOS (other platforms are coming soon) with the latest Android Platform tools and an Android 11 device, you can try out the IDE integration for the [Wireless ADB](https://developer.android.com/studio/command-line/adb#wireless-adb-android-11) feature by going to the **Run** device selection dialogue → **Pair Devices Using Wi-Fi**.
>
>
> 
>
>
> *Menu to access Wireless ADB feature*
>
>
> 
>
>
> *Wireless ADB Setup Window*
>
>
>
Upvotes: 5 [selected_answer]<issue_comment>username_2: You can pair your phone wirelessly using ADB by following these steps:
1. Make sure your phone and laptop are on the same network.
2. Open the following menu on your phone: `Settings`>`Developer options`>`Wireless debugging`. Enable the feature and then click on `Pair device with pairing code` on the same screen.
3. Open a terminal on your laptop and use the below command to pair your phone with your laptop:
```
adb pair host:port code
```
You can find `host`, `port` and `code` on your phone screen after clicking on `Pair device with pairing code` in the `wireless debugging` menu.
4. Run the below command to make sure the pairing has been done successfully:
```
adb devices
```
Upvotes: 3 <issue_comment>username_1: *This answer explains the technology used and 3rd-party software. For background history of the built-in feature in Android Studio, you can read [my answer here](https://android.stackexchange.com/a/234468/44325).*
---
**Android 11 and ADB utilize [multicast DNS (mDNS)](https://en.wikipedia.org/wiki/Multicast_DNS) for its wireless pairing.**
[ADB 30.0.0](https://developer.android.com/studio/releases/platform-tools#3000_april_2020) added support for wireless pairing, including commands like:
* `adb pair` to pair the Android device with the host machine using pairing code
* `adb mdns check` to check which mDNS daemon is used
+ On Windows, using [Openscreen discovery](https://android.googlesource.com/platform/packages/modules/adb/+/f4ba8d73079b99532069dbe888a58167b8723d6c%5E%21/) added in [ADB 31.0.2](https://developer.android.com/studio/releases/platform-tools#3102_april_2021):
```
C:\android-sdk\platform-tools> adb mdns check
mdns daemon version [Openscreen discovery 0.0.0]
```
+ On Windows, using Bonjour service
```
C:\android-sdk\platform-tools> adb mdns check
mdns daemon version [2140303]
```
* `adb mdns services` to list available mDNS services created by the Android devices
```
C:\android-sdk\platform-tools> adb mdns services
List of discovered mdns services
adb-941AY0HXWG-r8Nucn _adb-tls-connect._tcp. 192.168.0.147:37387
adb-941AY0HXWG-r8Nucn _adb-tls-pairing._tcp. 192.168.0.147:42885
```
In addition to the built-in feature in Android Studio, there is also some 3rd-party software that simulates the same process by generating a QR code to initiate the wireless pairing:
* [GitHub - benigumocom/debug\_from\_qr.py](https://gist.github.com/benigumocom/a6a87fc1cb690c3c4e3a7642ebf2be6f): an executable Python 3 script
+ Dependency packages:
- zeroconf
- qrencode
* Windows executable: [GitHub - valterfukuoka
/
qrencodecompilewindows](https://github.com/valterfukuoka/qrencodecompilewindows)
+ Demo video: [YouTube - BENIGUMO.COM - Pair device with QR code - Android11](https://youtu.be/bI2ljXBj-I8?t=74)
+ Sample
```
C:\> py .\debug_from_qr.py
█████████████████████████████████
█████████████████████████████████
████ ▄▄▄▄▄ █ ██▀▀ █ ▀█ ▄▄▄▄▄ ████
████ █ █ █ ▀█▄█▄▀▄█ █ █ ████
████ █▄▄▄█ █▀ █ ▄ ▄▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█▄█ ▀▄▀ █▄█▄▄▄▄▄▄▄████
████ ▄██ ▄▄▀██▄▀▀▀ █ ▀█ █▄ ▄▄████
████▄▄▄▄▀▀▄▄▀ ▄█▄▄▀▄███▄▄████████
████ ▄▄ ▄█▄▀▀▀▀▀▀ ▄▀█▀▄▀▀ ▄▄▄████
██████▄█▀█▄▄ ▄██▄▄▀▄▄▄▀▄█▄▀▄▀████
████▄▄██▄█▄▄ ▄▀▀▄▀ ▀ ▄▄▄ ▀▀████
████ ▄▄▄▄▄ █▀▄█▄▄▄▀▄ █▄█ ▀██████
████ █ █ █▄ ███▀▄█ ▄▄ ▄▄▄ ████
████ █▄▄▄█ █▀▄█▄▄▄▀▀ ▄▄▄█▄▀ ▀████
████▄▄▄▄▄▄▄█▄█▄█▄▄█▄████▄▄██▄████
█████████████████████████████████
█████████████████████████████████
Scan QR code to pair new devices.
[Developer options]-[Wireless debugging]-[Pair device with QR code]
Press enter to exit...
Service debug._adb-tls-pairing._tcp.local. added.
service info: ServiceInfo(type='_adb-tls-pairing._tcp.local.', name='debug._adb-tls-pairing._tcp.local.', addresses=[b'\xc0\xa8\x00\x93', b'\xc0\xa8\x00\x9f'], port=40067, weight=0, priority=0, server='Android-2.local.', properties={}, interface_index=None)
adb pair Android-2.local.:40067 123456
Successfully paired to Android-2.local.:40067 [guid=adb-941AY0HXWG-r8Nucn]
Service debug._adb-tls-pairing._tcp.local. removed.
Press enter to exit...
List of devices attached
adb-941AY0HXWG-r8Nucn._adb-tls-connect._tcp. device product:sargo model:Pixel_3a device:sargo transport_id:3
```
* [GitHub - saleehk/adb-wifi](https://github.com/saleehk/adb-wifi): an NPM command line interface (CLI) tool
+ Install: `npm i adb-wifi -g`
+ Usage: `adb-wifi`
+ Sample
```
C:\> adb-wifi
[Developer options]->[Wireless debugging]->[Pair device with QR code]
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █▄▀ ▀ ▀ █▄▄█▄▀▄▄ ██ ▄▄▄▄▄ █
█ █ █ █ █▀ ▀▀█▄ █▀ ███ █ █ █
█ █▄▄▄█ █▄█▀ ▄█▀▄█▄▄ █ ██▀█ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄█ █ █ █▄▀▄█ █▄▀▄█▄▄▄▄▄▄▄█
█ ▄▄▀▀▄█▄█ ▄ ▄▀ ██ ██▄▄██▄▄▄▀ █
█▀▀▀▀▄▀▄▄▄ ▄▄▀▄▀▀███▄█▄▄▀▀ ▀▀ ▄█▄█
█▄▀ █▄▀▄█▀ ▄▀ ▄▄▄▀█▀▄▄▀ ▄ ▀ █▄▄█ █
█▀ ██ ▀▄ ▀▀▀ █▄▀█ ▄▄ █ ▄▀ ▀ ▄█▀█▀█
██▄ ▄█▀▄█▄▀▄█▄ ▀▄█▀▄ ▀ ▀▄▄▀▀█ ▄█
█▄▀▄▄ ▄▀█ ▀█▄▀▄ ▀ ▀ █ ▀█ █▄ ██ ▀█
█ █▄ ▄▀▄ █ ██ ▄█▀▄▄▄▀ ███ ██▀▄▄█
██▀▄██▄▄ ▄ █▀▀ ▄█▄▄▄█ ██ ██▄ ▀█▄ █
█▄█▄█▄▄▄▄ ▀█ ▄▀▄▄ ▀█▀ ▄▄ ▄▄▄ █▄ ▀█
█ ▄▄▄▄▄ ██ ▀▀ █ ▀▀▄▀▄▄▀▀▀ █▄█ ▀▀▀██
█ █ █ █▀ ▄▀▄▄█▄█▀▄█▀▀ ▄▄▄ ▄█ ▄█
█ █▄▄▄█ █ █▄██▄█▄▄▀▀█▄▄▄▀█▀▀▀▀▀█▄▀█
█▄▄▄▄▄▄▄█▄██▄▄██▄█▄███▄█▄█▄▄██▄▄███
stdout: Successfully paired to 192.168.0.147:38629 [guid=adb-941AY0HXWG-r8Nucn]
```
**mDNS Compatibility**
Since this feature depends on mDNS, different operating systems may have different compatibility:
* **Apple** has a native implementation in iOS and macOS
* **Linux** distros tend to implement mDNS through the Avahi daemon
* **Windows** does not have a native implementation until Windows 10 (1703), but even then it may still fail:
+ User may need to install [Apple's Bonjour Print Services](https://support.apple.com/kb/DL999)
+ [Super User - How to enable mDNS on Windows 10 build 17134?](https://superuser.com/q/1330027/356789)
---
Additional references:
* [XDA Developers - Android 11 may finally bring a proper, native Wireless ADB implementation](https://www.xda-developers.com/android-11-native-wireless-adb/)
* [Android finally supports a basic networking feature: mDNS .local resolution](https://blog.esper.io/android-dessert-bites-26-mdns-local-47912385/)
Upvotes: 3 <issue_comment>username_3: Just wanted to add that if you try to scan the QR code directly from the camera, like on a Pixel by pointing it at the QR code and clicking the link, it won't work. You will get an error message that says "QR Code contains incorrect WiFi password". This error message is a red herring, it has nothing to do with the WiFi password, you just can't pair with the QR code by scanning it with the camera
Instead, like is mentioned in username_2's answer, you have to go to:
Settings --> System --> Developer options --> Wireless debugging (Yes you can click the text) --> Pair device with QR code
Then when you scan the QR code it should work. I think it's bad UI design that you have to click on the "Wireless debugging" text since it looks like that's just a single radio button to toggle the Wireless debugging option, but in actuality there's an entire sub-menu hidden behind it.
Upvotes: 0 |
2021/03/16 | 253 | 941 | <issue_start>username_0: I have enabled Android 11 easter egg by dialing 3 times and unlocking "11" now I have cat controls enabled when I slide down settings shortcut menu on my Poco F2 Pro (MIUI 12 - 12.2.4), and I do not know how to disable this. I honestly don't mind having these controls there, but my UI became very laggy since I've done this (there were no POCO launcher updates or any updates for that matter hence, "cats" are the main suspect). Anyone knows how to disable them?<issue_comment>username_1: I finally found it. You need to go to settings, then Notifications & Control centre, then under Smart home choose None instead of Android R Easter Egg.
Upvotes: 3 <issue_comment>username_2: 1. Go to Settings, then About phone, then Android version.
2. Open the logo by pressing it several times, then reverse the regulator.

3. A sign will show, and done.
Upvotes: 3 [selected_answer] |
2021/03/17 | 270 | 1,044 | <issue_start>username_0: I have a Redmi Note 7 (lavender)
As I was updating between custom ROM versions (Android 11) and the stock ROM (MIUI), I messed up a few things and ended up with broken encryption. The internal storage is showing up as 0MB, possibly due to this. I know the password, and when I enter it into TWRP's password scren, it shows it as being successful, but I'm getting the error: `Unable to mount storage`
Any ideas on how to fix this?<issue_comment>username_1: Depends on the type of encryption, if it's only 9 bits, it wouldn't take long to crack the encryption with the right tools, but to be honest, unless it's some REALLY valuable data, just format it. If you messed up the encryption though, it could have some bad sectors I wouldn't trust it for any data handling tasks.
Upvotes: 1 <issue_comment>username_1: Remember: You don't need to decrypt it using TWRP, just format it on a PC with an SD card reader, format it while being booted into android, and there ya go, you have a new SD card ready to go.
Upvotes: -1 |
2021/03/20 | 516 | 2,312 | <issue_start>username_0: I got a spam call on my mobile recently and while the phone was ringing, on the screen I can see my location displayed along with incoming person's name.
Why my phone was showing my own location for this particular call?
Does it mean that my phone is compromised or something?
Edit:
Just before the call, I was having a call with a scammer who was trying to trick me to enter my bank details through a phishing site (which I entered some random numbers, but correct phone number)<issue_comment>username_1: Most cell phone towers know and publish their exact location. If your phone is now in an area with multiple cell phone towers in reception range it is a simple mathematical task to triangulate your position based on the phone tower locations and the signal strength to each cell tower.
The more towers there are in reception range and the smaller the signal covering area of each cell phone tower is, the better the calculated location.
As modern 4G and 5G cells in city areas are getting smaller and smaller the calculated location can be very accurate nowadays.
Upvotes: 0 <issue_comment>username_2: When many phones receive incoming calls, they display the incoming number as well as an approximate location of the incoming call, usually based on a table lookup for the country code / area code / prefix of the Caller ID of the incoming call.
The Caller ID data is easy to forge, so often scammers set it to match whatever location they are calling (by matching your country code / area code / prefix). This way, when they call, it looks like a local call, and they believe you are more likely to pick up the phone. But, in reality, they can be calling from anywhere in the world.
When they set their Caller ID to match the country code / area code / prefix of your phone number, your approximate location will appear on your screen because that is simply the location associated with that Caller ID data.
The best way I have found to circumvent their tactics is to get a phone number with a completely different country code / area code / prefix from where you live or typically travel and different from any of your close contacts. That way, when an incoming call uses Caller ID data that is similar to yours, you quickly know it is most likely a scammer.
Upvotes: 1 |
2021/03/22 | 911 | 3,486 | <issue_start>username_0: I’m trying to make a backup of my music playlists, that I've created using the Samsung Music app on my Samsung Galaxy A6 (Andriod 10).
So far I’ve not been able to locate where these playlists are stored, and neither a way to extract them.
Most forum questions about this problem either hold old outdated answers, or none at all.
Does anyone know a way to extract Music Playlists (preferably as a text file)? Or by using some app for it?
Regards<issue_comment>username_1: I still don’t know where the files are stored, but for others with same wish for text file-backups, the app: "***Playlist Manager***" can do the job.
It basically has a "*Share A Playlist*" function which allows you to share in text format.
Upvotes: 1 <issue_comment>username_2: I have been using [Playlist Backup](https://apkpure.com/playlist-backup/org.ssi.playlistbackup) on older Androids, and it works well. It creates a text file for any playlist backedup and can be found in the "PlaylistBackup" directory. Please confirm if it works on newer phones.
Upvotes: 1 <issue_comment>username_3: **"Manage Playlists"**
in *Settings* of **"Samsung Music"** offers the ability to export and import playlists (text files, more details below).
---
The availability of this feature seems to be dependent on the Android version. My old Samsung phone has **Android 10**, the new one has **Android 12 (Android 13 now)**.
Both have the same **Samsung Music App V 192.168.127.12** installed. Higher versions also have this functionality.
**Only** on the **Android 12+13 phone** I could find
>
> Samsung Music: `...` 》 Settings 》Manage Playlists 》Export My Playlists
>
>
>
and
>
> Samsung Music: `...` 》Settings 》Manage Playlists 》Import Playlists
>
>
>
---
**Hint:** Settings can be found in the three dots menu (`...`) on the upper right corner of the Samsung Music App.
The playlists are stored in `*.m3u`format in the internal memory, directory `Music`. This is an editable text format.
---
**How to backup / restore Playlists:**
1. **Use case I: New phone**
I was able to transfer the playlists from the old to the new phone by using Samsung Smartswitch. Just ensure the music is on the target phone before running the Smartswitch (use TotalCommander with WiFi plugin etc to copy it). Also important: After copying, run Samsung Music App and give it the time to discover the music on your target phone. Then finally, run SmartSwitch on both phones to transfer apps + settings.
2. **Use case II: Same phone, new SD card**
Recently got a bigger micro SD card and transferred the files via PC using a card reader.
I figured out that you can back up all your playlists as described before.
Then, shutdown the smartphone and swap the SD cards (insert the new one with all the files in the same folders on it).
Boot the smartphone, then go to `...` 》Settings 》Manage Playlists 》Import Playlists and import all playlists backed up to internal disc earlier.
After that you will see the old playlists with 0 files as well as new ones with the correct file references in it.
Seems the Music App fixes the card ID in the playlists when you import them on the fly.
You may now delete the old playlists with 0 files in them.
---
Note: In most cases this works fine, but I found that in a few cases the exported playlist cannot be reimported, possibly due to lame programming in the code of the music app. In those cases import ends up with an error (0 files imported).
Upvotes: 0 |
2021/03/23 | 674 | 1,947 | <issue_start>username_0: Recently, apps that are fine an hour ago now crash when I open them. The crash report message seems to be caused by a null pointer exception (NPE) in `com.google.android.trichromelibrary`.
Apps affected for me:
* Gmail
* Dashlane
Is it just me, or is there actually something wrong with the library? How can I fix these affected apps?
Crash report:
```
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Xiaomi/polaris/polaris:10/QKQ1.190828.002/20.9.4:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: ...
pid: ..., tid: ..., name: com.dashlane >>> com.dashlane <<<
uid: ...
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
...
backtrace:
#00 pc 00000000038621f0 /data/app/
com.google.android.trichromelibrary 438909034-YaxP9ttrIDcQBfleP5vm7Q==/base.apk!
libmonochrome_64.so (offset 0x646000) (BuildId: ... )
```
(click [here](https://i.stack.imgur.com/DcKCO.jpg) for the screenshot of the bug report)<issue_comment>username_1: Downgrading "Android System WebView" (which seems to be related to the Trichrome Library) solved this problem on my phone.
Upvotes: 3 <issue_comment>username_2: It was a WebView issue and it has been fixed as mentioned here:
<https://www.google.com/appsstatus#hl=en&v=issue&sid=1&iid=aa75515d184a2423be444d676b7ebf45>
>
> Updating Android System WebView and Google Chrome via Google Play
> should now resolve the issue for all users.
>
>
> 1. Navigate to Play Store app
> 2. Search for Android System WebView (<https://play.google.com/store/apps/details?id=com.google.android.webview>)
> 3. Select the "Update" option
> 4. Repeat these steps for Google Chrome (<https://play.google.com/store/apps/details?id=com.android.chrome>)
>
>
> For more information about updating Android apps please see:
> <https://support.google.com/googleplay/answer/113412>
>
>
>
Upvotes: 5 [selected_answer] |
2021/03/25 | 1,577 | 6,300 | <issue_start>username_0: I'm having a very strange problem today with my Galaxy S10+.
I had an update yesterday evening, and all of today it's been broken in a weird way. This'll be a longish post because I want to be really clear about the problems I'm having and explain what I've done so far to try fix it. Right off the bat I want to note that these problems are not exclusive to my SD card. My SD card works just fine and my pictures are stored across both my internal storage and the SD card. I've tried most of my troubleshooting with and without it in.
These problems occurred immediately after I finished an update. The Software Update Information says "G975FXXU9FUBD / G975FOTF9FUBD / G975FXXU9DUBD"
Basically, when I open the stock Gallery app, it shows absolutely nothing. None of my pictures or albums show at all. However, the automatically generated Stories work just fine. I can't select anything, I can't highlight anything, I can't change anything. All I see is a blank screen where I can swipe endlessly between Pictures and Albums and see a whole lot of nothing.
My files are perfectly fine and safe from what I can see. I've hooked it up to my computer and nothing is missing, damaged, broken or corrupted. They are all there in the My Files app and show all the thumbnails for the pictures. I've downloaded another Gallery app from the Play Store and all the pictures are there in the right order and the albums are there too.
But, if I say open a picture in My Files and click Gallery as the app to open the image with, it'll hang for a while then open a black screen with no buttons on it except the home bar, and all I can do is back out of it. Strangely, when I open the app tray after this, it'll only show the My Files app being open and not Gallery.
There are two very strange aspects to my problem too - I can't take photos with the camera or screenshots.
The Camera app won't save photos no matter whether I choose to point them to the internal storage or the SD card. It'll show the little preview box showing a picture was taken and do the little animation, but after a while that just turns back into the generic Gallery icon, says "Warning, camera failed" and closes itself.
If I'm quick and click on the icon that shows the picture I took, it'll just do the same thing. If I try click there before taking a picture, it'll just open the broken Gallery app after a delay of a few seconds.
I'd love to show some screenshots of my problems but I also can't take screenshots. I can press the button for it and get the overlay, but if I try to crop them or let it save, it just hangs on the overlay screen and I can't interact with anything and can only back out.
I can still save photos from online or from apps like Twitter, and apps like Messenger or Line which I use very often allow me to open and browse media and send pictures just fine. They also let me save pictures taken with the camera as long as it's through those apps and it saves those photos as I've set it in the settings of those apps, and I can see them in the My Files app right after.
After spending the whole day googling as best I can, so far I've tried the following;
* Booting in Safe Mode (both with and without the SD card in) - The same problem exists in Safe Mode
* Clearing the Cache/Data for various apps like Gallery, Media and Devices, My Files, Camera and all sorts
* Looked for files called ".nomedia" on both the phone itself and through my computer and found nothing.
* I was going to try deleting the "com.android.gallery3d" folder as suggested in a post which sounded a lot like my problem, but turns out I don't have that folder in the directory the post suggested.
* Using a "media rescan" app.
* Forcing an update through the Galaxy Store but it couldn't find an update for Gallery and wouldn't let me do anything with it.
* Pressing the "uninstall update" button on the Gallery app settings page and it remained the same. Updated it through the Galaxy Store and no prizes for guessing the outcome there.
* Literally just turning my device off for an hour and leaving it, then back on.
* Literally just leaving the device on, locked for an hour.
* Literally just leaving the device on with the Gallery app open in case it needed to refresh or something.
I've tried most of these both with and without the SD card in too.
I feel the problem has to be centred around Gallery because it's only ever when an app needs to use it as a medium for saving, viewing or interacting with a picture where it has issues.
The only thing I can really see that might be causing a problem is that I've got a LOT of pictures and videos. We're talking well over ten thousand pictures spread across the internal storage and the SD card. But a day ago when it worked perfectly fine that didn't seem to be an issue.
I've been using it all day and besides the gallery thing it's worked just fine. No other apps seem to be broken or have had any weird issues. My notifications are as they normally are. It's literally just any time I need to use the Gallery app.
So far all my troubleshooting has done is bother me by deleting the wallpapers and theme/icons I had on after coming out of Safe Mode. I'm completely stumped as to what to try short of a full factory restore, and I really don't want to have to take that option.
Any help would be really appreciated.<issue_comment>username_1: Downgrading "Android System WebView" (which seems to be related to the Trichrome Library) solved this problem on my phone.
Upvotes: 3 <issue_comment>username_2: It was a WebView issue and it has been fixed as mentioned here:
<https://www.google.com/appsstatus#hl=en&v=issue&sid=1&iid=aa75515d184a2423be444d676b7ebf45>
>
> Updating Android System WebView and Google Chrome via Google Play
> should now resolve the issue for all users.
>
>
> 1. Navigate to Play Store app
> 2. Search for Android System WebView (<https://play.google.com/store/apps/details?id=com.google.android.webview>)
> 3. Select the "Update" option
> 4. Repeat these steps for Google Chrome (<https://play.google.com/store/apps/details?id=com.android.chrome>)
>
>
> For more information about updating Android apps please see:
> <https://support.google.com/googleplay/answer/113412>
>
>
>
Upvotes: 5 [selected_answer] |
2021/03/26 | 432 | 1,424 | <issue_start>username_0: Many sites show buttons to accept/reject the cookie policy at the bottom of the screen. But on my phone (Xiaomi Note 7, Android 10) this puts them under the on-screen-buttons:

It seems that everything under the faint/thin line at the bottom is out of reach, either nothing happens or the on-screen buttons take precedence (on sites with thicker buttons, I can tap the button above the line)
Is there a way to avoid or mitigate this?<issue_comment>username_1: Downgrading "Android System WebView" (which seems to be related to the Trichrome Library) solved this problem on my phone.
Upvotes: 3 <issue_comment>username_2: It was a WebView issue and it has been fixed as mentioned here:
<https://www.google.com/appsstatus#hl=en&v=issue&sid=1&iid=aa75515d184a2423be444d676b7ebf45>
>
> Updating Android System WebView and Google Chrome via Google Play
> should now resolve the issue for all users.
>
>
> 1. Navigate to Play Store app
> 2. Search for Android System WebView (<https://play.google.com/store/apps/details?id=com.google.android.webview>)
> 3. Select the "Update" option
> 4. Repeat these steps for Google Chrome (<https://play.google.com/store/apps/details?id=com.android.chrome>)
>
>
> For more information about updating Android apps please see:
> <https://support.google.com/googleplay/answer/113412>
>
>
>
Upvotes: 5 [selected_answer] |
2021/03/28 | 464 | 1,617 | <issue_start>username_0: I am using Ubuntu 18.04.
From Android Studio with the following code I am getting file directory
```
Context ctx = getApplicationContext();
final File filesDir = ctx.getFilesDir();
```
which is `/data/user/0/com.example.ipfs/files/`. I am running my app on Android Emulator. How do I go to the `/data/user/0/com.example.ipfs/files/` folder from my PC?<issue_comment>username_1: For this, Android Studio has the feature called ***Device File Explorer*** that will allow you to view the connected device or emulator internal files. This is useful especially when you are utilising the `getFilesDir()` as a path to save your app generated files & hence are not able to see them with the standard **File Manager**.
From the main menu, go to **View** -> **Tool Windows** -> **Device File Explorer**. You can then select your device / emulator from the drop down list.
To access `/data/user/0/com.example.ipfs/files/`, just go to the directory `data/data/com.example.ipfs/files` from the list displayed in the ***Device File Explorer*** once your device / simulator is connected.
Upvotes: 5 [selected_answer]<issue_comment>username_2: I am using Ubuntu 22.04 right now I tried this solution using AndroidStudio2022 and it's work and I figure out it was pointing to a hidden files below..
>
> PATH:
> /home/[user]/.cache/Google/AndroidStudio2022.1/device-explorer/[device\_emulator\_name]/data/user/0/[project\_name]
>
>
> Example:
> /home/awen/.cache/Google/AndroidStudio2022.1/device-explorer/Pixel\_5\_API\_32
> [emulator-5554]/data/user/0/com.example.html\_pdf\_demo
>
>
>
Upvotes: 0 |
2021/03/30 | 1,884 | 5,289 | <issue_start>username_0: I'm trying to automate a task on my (non-rooted) Android phone.
While I have it "working" using `input`, it is quite slow due to taking ~0.7s per event. (Basically, I just need to send a bunch of tap events, so what I have now is a sequence of `adb shell input tap $x $y`.)
I tried `sendevent`, but it gives me "permission denied". (I'm not sure why; the device is allegedly writable by the `input` group, of which the shell user is a member... and obviously, the `input` command can send events.)
Is there some trick to getting `sendevent` to work? Or some way to send multiple commands in a single invocation of `input`?
I'd prefer solutions that don't require installing third-party software...<issue_comment>username_1: So... really crappy method: fork `adb`... as in, run it on the local shell in the background, using `&`. This is super-ugly and somewhat dependent on each instance executing with consistent timing (and probably not too polite to the android device, asking it to spin up all those Java processes), but it works.
Example:
```
tap() { adb shell input tap "$@" & sleep 0.02 }
tap 500 500
tap 600 600
tap 700 700
```
...will send tap events to (500, 500), (600, 600) and (700, 700) in fairly quick succession.
Upvotes: 2 <issue_comment>username_2: EDIT: Below you can find a way to use sendevent, however as I figured since posting, `sendevent` will not work on later Android devices, as access to input devices from shell has been explicitely [disabled in SELinux policy](https://github.com/home-assistant/core/issues/73147#issuecomment-1159344674). I don't know a way to work around this without rooting. The recommended way is to use `UiAutomation#injectInputEvent`. That's Java code, so one could write a service, which forwards events received on some interface. That leads far way beyond this question. Anyway, my sendevent solution you may still use on some devices.
---
You can find complete `sendevent` examples online (eg in [this blog post](http://ktnr74.blogspot.com/2013/06/emulating-touchscreen-interaction-with.html)), but none worked for me out of the box, so I had to tweak things a bit.
First of all, if you want to use `sendevent`, you should figure out the right event device first. `getevent` can be used to obtain this info, either `getevent -p` or `getevent -i` will tell you the event dev <-> device connections, so you can find the event associated with your touchscreen device.
You can also use `getevent` to see how a real tap event looks like on your device. Just run `adb shell`, start `getevent`, then tap on the screen (for some reason `adb shell getevent` didn't return the events):
```
/dev/input/event2: 0003 0039 000025e9
/dev/input/event2: 0001 014a 00000001
/dev/input/event2: 0003 0035 00000320
/dev/input/event2: 0003 0036 000002ae
/dev/input/event2: 0000 0000 00000000
/dev/input/event2: 0003 0030 00000005
/dev/input/event2: 0000 0000 00000000
/dev/input/event2: 0003 0039 ffffffff
/dev/input/event2: 0001 014a 00000000
/dev/input/event2: 0000 0000 00000000
```
You get a bunch of hex codes. Try the same with `getevent -l`:
```
/dev/input/event2: EV_ABS ABS_MT_TRACKING_ID 000025e8
/dev/input/event2: EV_KEY BTN_TOUCH DOWN
/dev/input/event2: EV_ABS ABS_MT_POSITION_X 000002f8
/dev/input/event2: EV_ABS ABS_MT_POSITION_Y 000002f2
/dev/input/event2: EV_ABS ABS_MT_TOUCH_MAJOR 00000005
/dev/input/event2: EV_ABS ABS_MT_TOUCH_MINOR 00000004
/dev/input/event2: EV_SYN SYN_REPORT 00000000
/dev/input/event2: EV_ABS ABS_MT_TRACKING_ID ffffffff
/dev/input/event2: EV_KEY BTN_TOUCH UP
/dev/input/event2: EV_SYN SYN_REPORT 00000000
```
and you will see the labels for the codes (where applicable), so you can match the codes with the labels. If you don't want a generic solution, just want it to work on your own device, then you only have to recreate the tap sequence you've just seen. (Be careful with the hex codes, getevent prints hex, but sendevent expects decimal.)
This is the code I use in one of my scripts:
```
EV_SYN=0
EV_KEY=1
EV_ABS=3
BTN_TOUCH=330
BTN_TOUCH_DOWN=1
BTN_TOUCH_UP=0
SYN_REPORT=0
ABS_MT_TRACKING_ID=57
ABS_MT_POSITION_X=53
ABS_MT_POSITION_Y=54
ABS_MT_TOUCH_MAJOR=48
ABS_MT_TOUCH_MINOR=49
event_dev=`adb shell getevent -pl 2>/dev/null | sed -e ':a;N;$!ba;s/\n / /g' | awk '/ABS_MT_TOUCH/{print \$4}'`
tracking_id=1111
POS_X=600
POS_Y=800
adb shell "
sendevent $event_dev $EV_ABS $ABS_MT_TRACKING_ID $tracking_id
sendevent $event_dev $EV_KEY $BTN_TOUCH $BTN_TOUCH_DOWN
sendevent $event_dev $EV_ABS $ABS_MT_POSITION_X $POS_X
sendevent $event_dev $EV_ABS $ABS_MT_POSITION_Y $POS_Y
sendevent $event_dev $EV_ABS $ABS_MT_TOUCH_MAJOR 5
sendevent $event_dev $EV_ABS $ABS_MT_TOUCH_MINOR 4
sendevent $event_dev $EV_SYN $SYN_REPORT 0
"
adb shell "
sendevent $event_dev $EV_ABS $ABS_MT_TRACKING_ID -1
sendevent $event_dev $EV_KEY $BTN_TOUCH $BTN_TOUCH_UP
sendevent $event_dev $EV_SYN $SYN_REPORT 0
"
```
It works on my non-rooted device, but you may have to tweak it to match your device codes and sequences.
Upvotes: 0 |
2021/03/30 | 434 | 1,499 | <issue_start>username_0: <https://support.microsoft.com/en-us/office/change-your-background-for-a-teams-meeting-f77a2381-443a-499d-825e-509a140f4780> mentions:
>
> Note: If you don't see this option in the menu, the feature might not be available on your device yet.
>
>
>
What are the requirements to have the change your background feature enabled in Microsoft Teams on Android? I have a Samsung Galaxy S9 with Android and I don't see the feature.<issue_comment>username_1: As of late March 2021, Microsoft Teams for Android doesn't have "blur background".
However, per [MSPowerUser.com - Background blur is coming to Microsoft Teams for Android](https://mspoweruser.com/background-blur-microsoft-teams-android/) which has a link in the article to a support forum, such a feature is pending/planned, but with no definitive timeline.
Upvotes: 2 [selected_answer]<issue_comment>username_2: <https://www.tomsguide.com/news/galaxy-s21-features-to-enable> claims one can change the background on a meeting in MS Teams on Android with a Samsung Galaxy S21:
>
> Galaxy S21 features: Video effects. With the Galaxy S21, Samsung has introduced a new feature for video calls. Simply called Video Call Effects, it lets you add blur, a solid color, or an image to your background while on a chat. In this age of social distancing, Video Call Effects spice up your video calls.
>
>
>
<https://redd.it/p726we> claims that MS Teams the virtual background option with Xiaomi Pocophone F1.
Upvotes: 0 |
2021/04/01 | 610 | 2,392 | <issue_start>username_0: If I go to the Play Store, and pull up Firefox, I notice that its version `88.0.0-beta.3`. I searched some more and found another version that is `87.0.0-rc.1`
I dont want a beta version or rc version, I want the most recent stable version.
How would I go about installing that?
Edit in case comment is removed: this site was helpful to me (`aarch64`):
<https://archive.mozilla.org/pub/mobile/releases/><issue_comment>username_1: You *can't* get the latest stable version till it is released. AFAIK, Firefox doesn't offer an independent stable release channel. Therefore, your Options :
* Wait for rc/ beta versions to be upgraded to stable.
* Downgrade to previous stable version, as explained in the [support page](https://support.mozilla.org/en-US/kb/install-older-version-Firefox).
>
> Firefox now includes downgrade protection to prevent corruption of user profile data. If you install an older version, you'll be prompted to create a new Firefox profile.
>
>
>
* [Switch to Firefox Extended Support Release (ESR) for personal use](https://support.mozilla.org/en-US/kb/switch-to-Firefox-Extended-Support-Release-ESR). Note that you will get latest security and stability fixes but not the latest features.
* Use a different browser till such time Play Store offers stable version.
Upvotes: 0 <issue_comment>username_2: This is likely just a temporary experience where the current stable release is technically labelled as "87.0.0-rc1". I agree that it's a bit confusing, but I think it is most likely temporary.
The latest official release version of Firefox for Android can be obtain here:
<https://play.google.com/store/apps/details?id=org.mozilla.firefox>
Alternatively, you can enter your email at the following page, and Mozilla will email you a link to the current official release version:
<https://www.mozilla.org/firefox/mobile/>
All the source code for Firefox mobile is available here (unlike many other browsers, there is no non-public source code used to create Firefox):
<https://searchfox.org/mozilla-mobile/source/>
BTW, all releases of the desktop version of Firefox are available via FTP, but I'm not aware of anything identical for the Android version. For completeness, that FTP site for the desktop releases can be accessed via this link:
<https://ftp.mozilla.org/pub/firefox/releases/>
Upvotes: 3 [selected_answer] |
2021/04/07 | 745 | 3,140 | <issue_start>username_0: Question: All data-recovery solutions I can find on this site are from 6 or more years ago. Similarly, commercial solutions (such as Dr. Fone) are only good up to android 4. Are there any tools or techniques that still have a reasonable chance of success on Android 11?
Background: I have an ASUS Zenfone 6 that I recently updated. After the update, I was asked for the lock pattern, which I somehow forgot (I usually use the fingerprint scanner). Without bypassing the lockscreen (or somehow reactivating the fingerprint without the lock pattern) the only option I see is to reset the phone (which I understand will delete the user partition). If it is possible to create an image or recover data after the factory reset, there is at least a chance I can recover the contacts and a few months worth of photos that defaulted to internal memory after a previous update. I know that android has encrypted the user partition by default since Android 5, so maybe recovering data is no longer possible.
Perhaps a successful method would include rooting the phone, although I don't intend to keep it rooted. At this point any method is better than no method.<issue_comment>username_1: You *can't* get the latest stable version till it is released. AFAIK, Firefox doesn't offer an independent stable release channel. Therefore, your Options :
* Wait for rc/ beta versions to be upgraded to stable.
* Downgrade to previous stable version, as explained in the [support page](https://support.mozilla.org/en-US/kb/install-older-version-Firefox).
>
> Firefox now includes downgrade protection to prevent corruption of user profile data. If you install an older version, you'll be prompted to create a new Firefox profile.
>
>
>
* [Switch to Firefox Extended Support Release (ESR) for personal use](https://support.mozilla.org/en-US/kb/switch-to-Firefox-Extended-Support-Release-ESR). Note that you will get latest security and stability fixes but not the latest features.
* Use a different browser till such time Play Store offers stable version.
Upvotes: 0 <issue_comment>username_2: This is likely just a temporary experience where the current stable release is technically labelled as "87.0.0-rc1". I agree that it's a bit confusing, but I think it is most likely temporary.
The latest official release version of Firefox for Android can be obtain here:
<https://play.google.com/store/apps/details?id=org.mozilla.firefox>
Alternatively, you can enter your email at the following page, and Mozilla will email you a link to the current official release version:
<https://www.mozilla.org/firefox/mobile/>
All the source code for Firefox mobile is available here (unlike many other browsers, there is no non-public source code used to create Firefox):
<https://searchfox.org/mozilla-mobile/source/>
BTW, all releases of the desktop version of Firefox are available via FTP, but I'm not aware of anything identical for the Android version. For completeness, that FTP site for the desktop releases can be accessed via this link:
<https://ftp.mozilla.org/pub/firefox/releases/>
Upvotes: 3 [selected_answer] |
2021/04/07 | 585 | 2,376 | <issue_start>username_0: I have a Samsung galaxy S3. I used to connect it to my router via WiFi and connect to the internet. Everything was OK till I switched WiFi off and then on. It doesn't connect to the router anymore and says "WiFi not in range", But it does connect to WiFi hotspot on my other phone. I don't have the problem on my other devices.
I've tried restarting the phone and it didn't work. Any ideas?<issue_comment>username_1: You *can't* get the latest stable version till it is released. AFAIK, Firefox doesn't offer an independent stable release channel. Therefore, your Options :
* Wait for rc/ beta versions to be upgraded to stable.
* Downgrade to previous stable version, as explained in the [support page](https://support.mozilla.org/en-US/kb/install-older-version-Firefox).
>
> Firefox now includes downgrade protection to prevent corruption of user profile data. If you install an older version, you'll be prompted to create a new Firefox profile.
>
>
>
* [Switch to Firefox Extended Support Release (ESR) for personal use](https://support.mozilla.org/en-US/kb/switch-to-Firefox-Extended-Support-Release-ESR). Note that you will get latest security and stability fixes but not the latest features.
* Use a different browser till such time Play Store offers stable version.
Upvotes: 0 <issue_comment>username_2: This is likely just a temporary experience where the current stable release is technically labelled as "87.0.0-rc1". I agree that it's a bit confusing, but I think it is most likely temporary.
The latest official release version of Firefox for Android can be obtain here:
<https://play.google.com/store/apps/details?id=org.mozilla.firefox>
Alternatively, you can enter your email at the following page, and Mozilla will email you a link to the current official release version:
<https://www.mozilla.org/firefox/mobile/>
All the source code for Firefox mobile is available here (unlike many other browsers, there is no non-public source code used to create Firefox):
<https://searchfox.org/mozilla-mobile/source/>
BTW, all releases of the desktop version of Firefox are available via FTP, but I'm not aware of anything identical for the Android version. For completeness, that FTP site for the desktop releases can be accessed via this link:
<https://ftp.mozilla.org/pub/firefox/releases/>
Upvotes: 3 [selected_answer] |
2021/04/08 | 621 | 2,504 | <issue_start>username_0: I've been using Keepass2Android for a while. I try to store my files in DropBox so I can access across multiple devices. I have noticed that somehow I have some copies of my `mypasswords.kdbx` file that are listed as being in the `content://`. I've searched around and can't find `mypasswords.kdbx` file anywhere on my phone.
In desktop KeePass, I can synchronize two password files that have the same master password, but this doesn't seem to work in Keepass2Android.
Does anyone know where `content://` is located?<issue_comment>username_1: You *can't* get the latest stable version till it is released. AFAIK, Firefox doesn't offer an independent stable release channel. Therefore, your Options :
* Wait for rc/ beta versions to be upgraded to stable.
* Downgrade to previous stable version, as explained in the [support page](https://support.mozilla.org/en-US/kb/install-older-version-Firefox).
>
> Firefox now includes downgrade protection to prevent corruption of user profile data. If you install an older version, you'll be prompted to create a new Firefox profile.
>
>
>
* [Switch to Firefox Extended Support Release (ESR) for personal use](https://support.mozilla.org/en-US/kb/switch-to-Firefox-Extended-Support-Release-ESR). Note that you will get latest security and stability fixes but not the latest features.
* Use a different browser till such time Play Store offers stable version.
Upvotes: 0 <issue_comment>username_2: This is likely just a temporary experience where the current stable release is technically labelled as "87.0.0-rc1". I agree that it's a bit confusing, but I think it is most likely temporary.
The latest official release version of Firefox for Android can be obtain here:
<https://play.google.com/store/apps/details?id=org.mozilla.firefox>
Alternatively, you can enter your email at the following page, and Mozilla will email you a link to the current official release version:
<https://www.mozilla.org/firefox/mobile/>
All the source code for Firefox mobile is available here (unlike many other browsers, there is no non-public source code used to create Firefox):
<https://searchfox.org/mozilla-mobile/source/>
BTW, all releases of the desktop version of Firefox are available via FTP, but I'm not aware of anything identical for the Android version. For completeness, that FTP site for the desktop releases can be accessed via this link:
<https://ftp.mozilla.org/pub/firefox/releases/>
Upvotes: 3 [selected_answer] |
2021/04/09 | 571 | 2,348 | <issue_start>username_0: For example, we typically get 192.168.1.XXX addresses from a home router, but an Android phone gives out addresses on another 192.XXX which makes it problematic for connecting devices with each other in the same house.
Why does it do that? If it's only for security reasons, can it be reverted to use the home router's subnet?<issue_comment>username_1: Your phone is not connected to your router when the hotspot is enabled. It creates its own network and makes cellular data available over WiFi to devices on that network. Even if changing the IP range to 192.168.1.\* would be possible, it wouldn't make a difference, because your router's network and phone hotspot's network are two different networks.
Upvotes: 1 <issue_comment>username_2: *Note: This answer also applies to Apple iOS and other operating systems, which have hotspot (tethering) capability.*
The WiFi or cellular network you connect to, is usually IP wise under the management of that networks [DHCP server](https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol). It controls who get which IP. If your phone joined that network and would start handing out IPs that are "owned" by that network, you would over time run into an IP conflicts.
To solve this you could "bridge" those two networks, allowing your tethered devices to request an IP from the original DHCP server. But this will often fail, especially in cellular networks, as you will only be entitled to a single IP on that connection.
So for maximum compatibility, operating systems will use [NAT](https://en.wikipedia.org/wiki/Network_address_translation) when deploying hotspots (tethering). NAT hides the facts that your phone is sharing its connectivity with additional devices, allowing them to access the Internet.
>
> ...can it be reverted to use the home router's subnet?
>
>
>
Technically you could, but those networks would remain separate thanks to NAT. You would end up with two 192.168.1.xxx which could not talk to each other. If you need your devices to talk to each other, your best option is to connect them to the same WiFi network. This will work best with private networks, as many public/Hotel WiFi might [prevent](https://documentation.meraki.com/MR/Firewall_and_Traffic_Shaping/Wireless_Client_Isolation) this behavior.
Upvotes: 3 [selected_answer] |
2021/04/11 | 480 | 1,973 | <issue_start>username_0: I purchased a used Nexus 6P on ebay to replace my current 6P, because the camera has failed.
The seller indicates that the new phone has been factory reset, but I'd like to be sure that there is no spyware hidden deep in the system.
On a desktop machine I would erase the hard drive, install the operating system of my choice, and be confident that most reasonable vectors of attack were removed. (Sure, he could've hidden something in the firmware of a device or whatever else, but I'm not worried about that level of sophistication).
I'm not sure how Android factory resets work, but given that the phone's memory is never completely erased, I worry that a malicious actor could have put bad software into the image that the factory reset restores from.
Is this a valid concern? If so, is there a way to address it and be sure that my phone is not sending all of my information to some one else (other than google)?<issue_comment>username_1: Theoretically, a factory-reset wipes data only while any deep seated malware that injects itself into the `/system` partition *isn't* wiped. To that extent you have a valid concern.
Fortunately, you have a Nexus device. Google provides factory images for Nexus/Pixel devices ([here](https://developers.google.com/android/images)). You can flash the factory image for your device following instructions on that linked page. See [adb tag wiki](https://android.stackexchange.com/tags/adb/info), if you aren't familiar with `adb`. It might look a little complicated if it's the first time you are doing this, but it isn't.
Upvotes: 6 [selected_answer]<issue_comment>username_2: In addition to the accepted answer, by flashing the official image and applying **bootloader lock** you have 100% spyware-free guarantee.
This because Android devices with a locker bootloader won't boot if the boot loader is not genuinely signed by the manufacturer, and the public key is buried in the firmware.
Upvotes: 3 |
2021/04/19 | 997 | 3,396 | <issue_start>username_0: Several times a day my Android phone (Samsung Galaxy A51, Android 11) is showing this toast
>
> We're having trouble connecting. Check your network connection and try again.
>
>
>
If I stay offline this toast will return every few minutes. How can I find out which app is posting these toasts. And most importantly how do I get rid of them? Long-pressing the toast doesn't show anything.<issue_comment>username_1: You could use the **[Toast Source](https://play.google.com/store/apps/details?id=pl.revanmj.toastsource "Toast Source (Google Play)")** app for that. It not only integrates the app icon and name with each toast message (first screenshot below), but also gives you a history of toasts you received and which app sent it:
[](https://i.stack.imgur.com/apuyL.png) [](https://i.stack.imgur.com/ThNpt.png)
*Toast Source* (source: [Google Play](https://play.google.com/store/apps/details?id=pl.revanmj.toastsource "Toast Source (Google Play)"); click images for larger variants)
Quite privacy friendly it doesn't even require the Internet permission (so no ads either). But as it uses accessibility services, it's unclear whether it will survice [Googles current purge](http://www.androidpolice.com/2017/11/12/google-will-remove-play-store-apps-use-accessibility-services-anything-except-helping-disabled-users/ "AndroidPolice: Google will remove Play Store apps that use Accessibility Services for anything except helping disabled users").
Upvotes: 3 <issue_comment>username_2: You can use Android's [adb](https://developer.android.com/studio/command-line/adb.html) tool:
```
adb shell uiautomator events
```
Make sure you have [USB Debugging](https://developer.android.com/studio/debug/dev-options.html) enabled on your device. Connect your device to a computer and open a terminal to run the above adb command.
Running this command will dump out system events - you will get a LOT of information.
For example, here's a Toast I created by setting an alarm with the Clock app:
>
> 11-27 16:31:32.510 EventType: TYPE\_ANNOUNCEMENT; EventTime: 6865213;
> PackageName: com.google.android.deskclock; MovementGranularity: 0;
> Action: 0 [ ClassName: android.view.ViewGroup; Text: [Alarm set for 15
> hours and 59 minutes from now.]; ContentDescription: null; ItemCount:
> -1; CurrentItemIndex: -1; IsEnabled: true; IsPassword: false; IsChecked: false; IsFullScreen: false; Scrollable: false; BeforeText:
> null; FromIndex: -1; ToIndex: -1; ScrollX: -1; ScrollY: -1;
> MaxScrollX: -1; MaxScrollY: -1; AddedCount: -1; RemovedCount: -1;
> ParcelableData: null ]; recordCount: 0
>
>
>
Note the app in question is listed under `PackageName` as `com.google.android.deskclock;`. This should give you a good idea which app the Toast has originated from.
Upvotes: 3 <issue_comment>username_3: Using the [Toaster app](https://play.google.com/store/apps/details?id=org.mars3142.android.toaster) I found out that the toasts were coming from [SmartThings](https://play.google.com/store/apps/details?id=com.samsung.android.oneconnect) app. I have no idea what this app is for and I'm certainly not using it. In the settings I managed to uninstall it and I assume this will stop it from spamming me with toasts.
Upvotes: 2 [selected_answer] |
2021/04/20 | 1,168 | 4,142 | <issue_start>username_0: I'm forced to get a "smartphone", even though I want nothing to do with them, simply to be able to use as a "digital identification" thing and similar things for companies that refuse to provide a website -- only an "app". So I'm trying to find the cheapest possible one.
There appears to be only two "kinds": iPhone (ridiculously expensive beyond words) and Android (less expensive, but infested with Google). Since I don't actually want to use them for their intended purpose, and will only power it on briefly when forced to, I'm going to have to pick an Android one.
The cheapest one I can find where I live is $189. A bit more than I expected. Could've sworn they sold sub-$100 ones not long ago. Either way, what I'm wondering is if they are going to make me keep buying new ones every few years, or if I can just perpetually update that one with new versions of the "Android" OS? Or do new versions eventually require newer phone hardware and refuse to install, leaving me with a rotting brick which eventually stops working?
I have a feeling that these things are made to become obsolete rather quickly. Is that feeling correct?<issue_comment>username_1: You could use the **[Toast Source](https://play.google.com/store/apps/details?id=pl.revanmj.toastsource "Toast Source (Google Play)")** app for that. It not only integrates the app icon and name with each toast message (first screenshot below), but also gives you a history of toasts you received and which app sent it:
[](https://i.stack.imgur.com/apuyL.png) [](https://i.stack.imgur.com/ThNpt.png)
*Toast Source* (source: [Google Play](https://play.google.com/store/apps/details?id=pl.revanmj.toastsource "Toast Source (Google Play)"); click images for larger variants)
Quite privacy friendly it doesn't even require the Internet permission (so no ads either). But as it uses accessibility services, it's unclear whether it will survice [Googles current purge](http://www.androidpolice.com/2017/11/12/google-will-remove-play-store-apps-use-accessibility-services-anything-except-helping-disabled-users/ "AndroidPolice: Google will remove Play Store apps that use Accessibility Services for anything except helping disabled users").
Upvotes: 3 <issue_comment>username_2: You can use Android's [adb](https://developer.android.com/studio/command-line/adb.html) tool:
```
adb shell uiautomator events
```
Make sure you have [USB Debugging](https://developer.android.com/studio/debug/dev-options.html) enabled on your device. Connect your device to a computer and open a terminal to run the above adb command.
Running this command will dump out system events - you will get a LOT of information.
For example, here's a Toast I created by setting an alarm with the Clock app:
>
> 11-27 16:31:32.510 EventType: TYPE\_ANNOUNCEMENT; EventTime: 6865213;
> PackageName: com.google.android.deskclock; MovementGranularity: 0;
> Action: 0 [ ClassName: android.view.ViewGroup; Text: [Alarm set for 15
> hours and 59 minutes from now.]; ContentDescription: null; ItemCount:
> -1; CurrentItemIndex: -1; IsEnabled: true; IsPassword: false; IsChecked: false; IsFullScreen: false; Scrollable: false; BeforeText:
> null; FromIndex: -1; ToIndex: -1; ScrollX: -1; ScrollY: -1;
> MaxScrollX: -1; MaxScrollY: -1; AddedCount: -1; RemovedCount: -1;
> ParcelableData: null ]; recordCount: 0
>
>
>
Note the app in question is listed under `PackageName` as `com.google.android.deskclock;`. This should give you a good idea which app the Toast has originated from.
Upvotes: 3 <issue_comment>username_3: Using the [Toaster app](https://play.google.com/store/apps/details?id=org.mars3142.android.toaster) I found out that the toasts were coming from [SmartThings](https://play.google.com/store/apps/details?id=com.samsung.android.oneconnect) app. I have no idea what this app is for and I'm certainly not using it. In the settings I managed to uninstall it and I assume this will stop it from spamming me with toasts.
Upvotes: 2 [selected_answer] |
2021/04/20 | 597 | 2,586 | <issue_start>username_0: I'm trying to factory reset a Galaxy S20 because I've forgotten to add MDM in the intial setup and as far as I know you can't add this later.
To do the factory reset I've done Settings > General Management > Reset > Factory data reset. Then tap Reset and Delete all. But it then asks me to confirm my Samsung Account which it somehow can't do, because I always get a loading icon which fails after some time. Then it asks me for the password of my Samsung Account and again goes into a loading icon which also just stops after some time. I don't get any error message.
There's also the option to send a confirmation e-mail, but this also leads to the loading screen but after some time I get a little pop-up telling me there is a network error. The screen here stays white and I need to use the back button to go the confirmation screen of my Samsung Account.
I do have internet access on my phone, because I can open websites with Chrome. I'm using my home Wlan Network to connect to the internet.
I didn't find any solution to this problem with Google, just the normal documentation from Samsung of how to factory reset a phone, which doesn't work for me.<issue_comment>username_1: The solution to my problem was that somehow my phone couldn't access the Samsung Account site over my home network. I've switched to a hotspot of my other phone, and now everything is working as it should. I was lead to this solution because I've seen other people having problems with accessing the Samsung Account site. Perhaps some providers have problems with this.
Upvotes: 2 [selected_answer]<issue_comment>username_2: If you'd like to factory reset your Samsung device, you must hold the Home, Power, and Volume Up button. It will then take you to the Samsung recovery mode. When there, use the volume keys to control the options and the home buttons to press. There should be an option called factory reset, press that and wait for it to delete all data from your phone. Then, click restart the phone. The phone should boot up normally and the setup will begin. I hope this solved your problem.
Regards.
Upvotes: 0 <issue_comment>username_3: There is a sort of recovery mode called EDL, the new ODIN mode.
As you are using a samsung phone, download galaxy S20 firmware (you need to type somewhere the phone e.g. SM-G530FZ Galaxy Grand Prime phone code), and downlaod Odin.
Shut Down completely your phone.
Press volume down button until connect your phone to pc, and the phone should be recognized by ODIN.
Else if it's not, Download some EDL Utility.
Upvotes: -1 |
2021/04/30 | 698 | 2,574 | <issue_start>username_0: I am new to the Android programming world. I own an iQR70 device from MLS that is using -if I read well- the kiosk mode for its own application called MAIC (something like Amazon's Alexa, a virtual assistant).
[](https://i.stack.imgur.com/NHyiI.png)
The real pain with this device is that the application is buggy, does not get any updates, and overall does not work properly.
So, my questions are:
1. Is there any way to disable the kiosk mode and work with it as a normal tablet? Or desperately,
2. Can I install compatible firmware? I don't care for the data inside.
---
I tried to install a stock firmware "Version: MLS iQR70 – 7.0\_MT8167\_V1.0\_20180111-B1" from `https://firmware247.com/mls-iqr70-firmware/` using "Format all + Download" using MediaTek SP Flash Tool v5.2052.00 and now it does not power up. It doesn't even connect anymore with the SP Flash Tool.
[](https://i.stack.imgur.com/5mZLv.jpg)
Is the device completely dead? Is there any way to revive it? I have two of them, can I download/upload the firmware from the good one to the bad one?<issue_comment>username_1: The solution to my problem was that somehow my phone couldn't access the Samsung Account site over my home network. I've switched to a hotspot of my other phone, and now everything is working as it should. I was lead to this solution because I've seen other people having problems with accessing the Samsung Account site. Perhaps some providers have problems with this.
Upvotes: 2 [selected_answer]<issue_comment>username_2: If you'd like to factory reset your Samsung device, you must hold the Home, Power, and Volume Up button. It will then take you to the Samsung recovery mode. When there, use the volume keys to control the options and the home buttons to press. There should be an option called factory reset, press that and wait for it to delete all data from your phone. Then, click restart the phone. The phone should boot up normally and the setup will begin. I hope this solved your problem.
Regards.
Upvotes: 0 <issue_comment>username_3: There is a sort of recovery mode called EDL, the new ODIN mode.
As you are using a samsung phone, download galaxy S20 firmware (you need to type somewhere the phone e.g. SM-G530FZ Galaxy Grand Prime phone code), and downlaod Odin.
Shut Down completely your phone.
Press volume down button until connect your phone to pc, and the phone should be recognized by ODIN.
Else if it's not, Download some EDL Utility.
Upvotes: -1 |
2021/05/03 | 542 | 2,101 | <issue_start>username_0: I have Samsung Galaxy M11 (SM-M115F/DS). I want to install TWRP in it. But I can't unlock the bootloader or go to download mode. I already enabled OEM Unlock.
I saw on some sites that on this device I have to press both volumes up and down to go to download mode or unlock the bootloader but actually, nothing happens. It only goes to recovery mode with power and volume up. There it has a "Reboot to Bootloader" option.
[](https://i.stack.imgur.com/bomeh.jpg)
When I go there, I get this
[](https://i.stack.imgur.com/kfZZD.jpg)
When I give the options to start, I return to recovery mode.<issue_comment>username_1: The solution to my problem was that somehow my phone couldn't access the Samsung Account site over my home network. I've switched to a hotspot of my other phone, and now everything is working as it should. I was lead to this solution because I've seen other people having problems with accessing the Samsung Account site. Perhaps some providers have problems with this.
Upvotes: 2 [selected_answer]<issue_comment>username_2: If you'd like to factory reset your Samsung device, you must hold the Home, Power, and Volume Up button. It will then take you to the Samsung recovery mode. When there, use the volume keys to control the options and the home buttons to press. There should be an option called factory reset, press that and wait for it to delete all data from your phone. Then, click restart the phone. The phone should boot up normally and the setup will begin. I hope this solved your problem.
Regards.
Upvotes: 0 <issue_comment>username_3: There is a sort of recovery mode called EDL, the new ODIN mode.
As you are using a samsung phone, download galaxy S20 firmware (you need to type somewhere the phone e.g. SM-G530FZ Galaxy Grand Prime phone code), and downlaod Odin.
Shut Down completely your phone.
Press volume down button until connect your phone to pc, and the phone should be recognized by ODIN.
Else if it's not, Download some EDL Utility.
Upvotes: -1 |
2021/05/04 | 493 | 2,006 | <issue_start>username_0: Within the last couple of months a change in Brave had affected my typical article reading workflow. This also affects Chrome, so I'm assuming it's a change in the underlying shared codebase.
I use [Pocket](https://getpocket.com/) to manage articles to read, and I would typically open an article in the Pocket app, click the share button, and then share the article URL to the browser. Recently this stopped working. Brave (and Chrome) no longer show in the list of all of the apps. Edge, however, does still show in that list.
I originally thought that Pocket had changed the way it was sharing, but I get the same results sharing a URL directly from one of the browser apps (though that app's *Print* action does show in the share options). Sharing from Pocket goes directly to the full app list, while sharing from the browser shows just the top options, then your have to scroll right and click *More…*.
My new workflow is to use the copy action (which includes the article title as well as URL), and then paste it into the browser, and then delete the article title so it's just the URL, then navigate.
Is there something I can configure to get this browser sharing feature back? Does anyone know what the underlying change was for?<issue_comment>username_1: 1. Open Chrome, type: `chrome://flags/#chrome-sharing-hub`
2. Set it to Disable. Restart Chrome. After restarting, you will have the normal sharing sheet.
[](https://i.stack.imgur.com/CSPMx.png)
The process should be the same with Brave.
**Note:** Google may remove the flag in future releases of the app.
Upvotes: 1 <issue_comment>username_2: After a couple of months, the Chrome share action returned, and then a couple of months later the Brave share action returned. I assume it was due to some changes in their apps.

Upvotes: 1 [selected_answer] |
2021/05/06 | 1,427 | 4,731 | <issue_start>username_0: I have an ARMv7a device and I am not able to install ARMv8a applications. But I am able to install ARMv7a + ARMv8a applications.
How am I able to install ARMv7a + ARMv8a and ARMv7a but not ARMv8a applications?<issue_comment>username_1: Basics
------
Applications that are entirely built from Java or Kotlin code, including all the libraries and SDKs they use, *don't care* about which of armv7a and armv8a a device supports. However, quite a few apps include "native code", or "machine code", usually compiled from C or C++ code using the Android Native Development Kit ("NDK").
A given piece of machine code is either 32-bit (armv7a) or 64-bit (armv8a). It *cannot* be both.
Running native code
-------------------
Applications that support both armv7a and armv8a have *two sets* of machine code included in their APK files:
* One set for armv7a
* One set for armv8a
Your armv7a device can happily run the code that's intended for it. It can understand that, and has the libraries and other software it needs to run it. It can't understand armv8a code at all, and is thus unable to run it. Applications that only support armv8a thus can't be run, so Android prevents you from installing them. If it let you install them, you'd waste data and storage finding out that they crashed when run.
Forthcoming complexities
------------------------
The ARMv9 architecture Is gradually appearing in Android devices. The [Qualcomm Snapdragon 8 Gen 1](https://en.wikipedia.org/wiki/List_of_Qualcomm_Snapdragon_processors#Snapdragon_8_Gen_1_(2022)) was one of the first v9 chips announced, in November 2021. Most ARMv9 cores can't run armv7a code, because they don't implement that 32-bit instruction set (or any other). The [2023 generation of new core designs from ARM](https://community.arm.com/arm-community-blogs/b/announcements/posts/arm-cortex-a720-and-cortex-a520-cpus) is the first with *no cores at all* that can run armv7a code. They *can* run armv8a code.
This means that devices with ARMv9 processors:
* Can run apps that support armv7a and armv8a.
* Can run apps that only support armv8a.
* Can't run apps that only support armv7a.
It's a good thing that Google have been demanding that new and updated apps include armv8a code [since August 2019](https://developer.android.com/google/play/requirements/64-bit) if they include *any* native code.
If the Android NDK acquires an option to build for armv9a, such code won't run on armv7a or armv8a devices. I presume that Google will require APKs with armv9a code to provide armv8a code as well, at least for a few years.
### Why is there any armv7a machine code in use?
Android has quite a long history, and when it started, neither armv7a nor armv8a had been standardised. So there's been a gradual process of upgrading native code to newer standards.
In [more detail](https://developer.android.com/ndk/downloads/revision_history), the original NDK in June 2009 only supported "armeabi" machine code, using the ARMv5TE instruction set. Armv7a was added in June 2010, x86 in June 2011 and MIPS in May 2012. Armv8a, along with 64-bit x86 and MIPS was added in July 2014. Armeabi, MIPS and MIPS64 were removed in June 2018.
Someone starting on Android NDK work today would support armv7a and armv8a, or maybe only armv8a if they were only interested in newer, faster devices, or their app needed to use *lots* of memory.
There have been a few Android devices that had 64-bit processors and a 64-bit Android kernel, but didn't have 64-bit Java/Kotlin run-times. The one I encountered was a 2017 model of the Amazon Kindle Fire HD 10, which is now discontinued. I bought it for the 64-bit Android 5, and the lack of 64-bit Java run-times was no problem for the native code I needed to test in the ADB shell.
The main benefit of 64-bit Java/Kotlin run-times is that they allow apps running on them to access more memory. This is only significant on devices with at least 4GB of RAM, so providing those run-times on devices with smaller memories has little value. As of 2023, 4GB seems to be becoming the standard for new low-end Android devices.
Upvotes: 3 <issue_comment>username_2: Regarding the SoC:
* ARMv7 SoC => 32-bit
* ARMv8 SoC => 32-bit + 64-bit both
Regarding the app:
* ARMv7a + ARMv8a packages => it has both ARMv7a and v8a binaries of that app bundled, so it installs the 32-bit version (ARMv7a) of the package if the device has an ARMv7 SoC or the 64-bit version if the device has an ARMv8 SoC.
* ARMv7a packages => it only has 32-bit binaries, installable on both ARMv7 and v8 chips.
* ARMv8a packages => it only has ARMv8a installable binaries, so if the device is 32-bit, the app package simply won't install.
Upvotes: 1 |
2021/05/15 | 511 | 2,039 | <issue_start>username_0: So, my phone is running MIUI 12.5(rooted if it matters) and some apps just push individual notifications so each notification I get, shows up in its own bubble instead of showing them all under a group of notifications for this same app.
It's really hard since it takes up all my screen and if I want to search for notifications from a certain app I have to go over all the other notifications from the other apps..
Is there a way to force notifications from the same app to be grouped together in my notification bar?
Thanks<issue_comment>username_1: This works for me on Pixel 4a running stock Android 11 (YMMV on MIUI)
Download and install from Play Store [Notifications Organizer](https://play.google.com/store/apps/details?id=net.east_hino.notification_organizer) . App description includes
>
> Organize notifications by app
>
>
>
Grant the permissions asked and optionally toggle unread badge count and tool bar fixed (not sure what this does but I enabled it).
On getting notifications, a tiny bell icon flashes in status bar and you see notifications by app in the notification bar (relevant portion of screen shot below)
[](https://i.stack.imgur.com/aNMvr.png)
You can access the notifications through the app also (for easy access, drop app widget to home screen)
[](https://i.stack.imgur.com/JFP6w.png)
Note that only 5 apps are supported (in the notification bar, while no such restrictions apply to app interface) , so you would need to add apps to *exclusion list* to exclude them.
P.S. The app is being well maintained with last update of June end. In case it doesn't work as advertised, maybe you should approach developer. I am not affiliated with it.
Upvotes: 0 <issue_comment>username_2: shortest possible working solution : switch to a stock android based custom ROM. Stock android by default behaves the way you're talking about
Upvotes: -1 |
2021/05/17 | 433 | 1,716 | <issue_start>username_0: Every app in my phone (Xiaomi Mi A2, Android One) that implements Credit Card auto-fill still shows my old credit card information even though I have already (a) replaced all my [payment information](https://pay.google.com/gp/w/home/paymentmethods) in my google account a few weeks ago, (b) used 'Scan a new card' feature every time this auto-fill feature pops up and (c) cleared cache and storage of the app that used this feature.
Do you know where these credit card information are kept and where can I reset them?
[](https://i.stack.imgur.com/2q7Fb.jpg)
Note: The credit card info above were purposefully blurred.
**Other Notes**
Out of curiosity, when I select any of those old credit cards, I get an error popup
```
Request failed: An unexpected error has occurred. Please try again later [OR-PMIA-18]
```
This is expected as I have removed them from my google account.<issue_comment>username_1: Cleat the App Data which are storing the information.
And if it doesnot work.
your password can be managed by different apps depending on what Brand you are using, SAMSUNG, IPHONE or other every Manufacture has its own official app which manage this kind of information of users.
Like Samsung has Samsung Pass (in settings).
Upvotes: -1 <issue_comment>username_2: I was able to reset the Credit Card information by going to Settings > Google > Auto-fill > Auto-fill with Google then switch to different Google account and back again. My guess is this action clears the auto-fill cache.
You might also have some luck clearing the Setting app's cache instead but I have not tried that.
Upvotes: 3 [selected_answer] |
2021/05/19 | 222 | 942 | <issue_start>username_0: I am on Android 8.0.0 and not able to find an option to prevent an app from accessing the mobile network.
Did I just not find it or doesn't this feature exist on version 8 yet?<issue_comment>username_1: Cleat the App Data which are storing the information.
And if it doesnot work.
your password can be managed by different apps depending on what Brand you are using, SAMSUNG, IPHONE or other every Manufacture has its own official app which manage this kind of information of users.
Like Samsung has Samsung Pass (in settings).
Upvotes: -1 <issue_comment>username_2: I was able to reset the Credit Card information by going to Settings > Google > Auto-fill > Auto-fill with Google then switch to different Google account and back again. My guess is this action clears the auto-fill cache.
You might also have some luck clearing the Setting app's cache instead but I have not tried that.
Upvotes: 3 [selected_answer] |
2021/05/30 | 480 | 1,835 | <issue_start>username_0: I am using MI Note 5 Pro android version 9.0 and Windows 10 Basic.
On USB plugging('File Transfer' selected), I can only access files from Phone by normal copy paste(ctrl-c/v) but cannot access full file path from Phone because there is no drive letter assigned.
[](https://i.stack.imgur.com/9PMk5.png)
[](https://i.stack.imgur.com/erHPm.png)
where disk is sd card.
I am getting files path as "This PC\Redmi Note 5 Pro\Internal shared storage" but want something like "P:\Redmi Note 5 Pro\Internal shared storage" How to get it without rooting phone?
Purpose: I want to backup my phone data to PC periodically using "Areca backup" open source utility which creates incremental backup. Note: I will not be writing any data to Phone but will only need to read it for copy operation.<issue_comment>username_1: MTP the protocol used for accessing the phone is not implemented as file-system on Windows thus you don't get a drive letter. Additionally MTP is a pretty unstable, ineffective and slow file-system which makes it not a good choice for backup.
But be aware that the files you can access via MTP are just the tip of the ice berg, making a backup of those data will not allow you to restore your phone (except for some apps that explicitly place their files on these cars section as a backup).
If you still want to backup the data you should enable Android Debug Bridge (adb) and use [adb-sync](https://github.com/google/adb-sync) go copy the data to your PC. From there you can then make a backup.
Upvotes: 1 <issue_comment>username_2: Software like [MTPdrive](https://www.mtpdrive.com/) directly mounts a device with a drive letter.
Upvotes: 1 [selected_answer] |
2021/06/01 | 409 | 1,576 | <issue_start>username_0: My phone is massively cluttered - I've got something on the order of 50 (!) apps I am not using at all. I could manually uninstall them, but the wait for the uninstallation to finish between selecting the next one would drive me crazy.
Is there a way to, at least, create a list of apps to be uninstalled all together? I'm not afraid of using ADB, but don't want to root the phone. I'd also prefer not to use 3rd party apps.
My phone is Xiaomi Mi A3 (Android One), with Android 9.
Order of preference for methods:
1. Google Play on PC (website)
2. Phone settings or similar (no 3rd party app)
3. ADB or other debug interface, without rooting
4. 3rd party app<issue_comment>username_1: MTP the protocol used for accessing the phone is not implemented as file-system on Windows thus you don't get a drive letter. Additionally MTP is a pretty unstable, ineffective and slow file-system which makes it not a good choice for backup.
But be aware that the files you can access via MTP are just the tip of the ice berg, making a backup of those data will not allow you to restore your phone (except for some apps that explicitly place their files on these cars section as a backup).
If you still want to backup the data you should enable Android Debug Bridge (adb) and use [adb-sync](https://github.com/google/adb-sync) go copy the data to your PC. From there you can then make a backup.
Upvotes: 1 <issue_comment>username_2: Software like [MTPdrive](https://www.mtpdrive.com/) directly mounts a device with a drive letter.
Upvotes: 1 [selected_answer] |
2021/06/02 | 734 | 2,860 | <issue_start>username_0: For uploading Instagram posts, the images need to be on my phone, so I tried sending the image on WhatsApp Desktop so that I have it on my phone, but this doesn't save it in the gallery. What can I do to automatically store these images and videos in my gallery?
If this is not possible, is there an app or something that automatically sends a WhatsApp message back to me, so I can send my images to that number and it sends it to me so they appear in my gallery?<issue_comment>username_1: There's no way to automatically download and save sent media from WhatsApp web to mobile, but there's a workaround.
You need two mobile numbers and the ability to run two WhatsApp accounts either using a built-in dual account feature if available or using a third-party dual app provider to achieve this (for a second mobile number, there are several apps like TextNow which gives you an American temporary number for free and you can make WhatsApp accounts with it and even get those numbers permanent for dirt cheap prices)
Once you someway managed two WhatsApp accounts, the rest is rather simple - turn auto download media on the number your phone has and send a pic from the desktop using WhatsApp web from another number.
Upvotes: 1 <issue_comment>username_2: Sounds like your main problem is getting pics from a PC to show up in your smartphone gallery, presumably an Android.
To get this job done, there isn't a need to hold on to WhatsApp at all and create 2 accounts (although that's an option - the gallery won't catch the pictures from 2nd clone account easily, especially if it's running in some kind of virtual environment). So here are your options.
* **Wired Xfer** from Phone to PC. Connect the phone to the USB port and it'll ask how you want that connection to behave - charging only, file or player. Choose files (or storage). Navigate to the gallery folder which would be `{internal storage}/DCIM/100Andro` (or `Camera` instead of `100Andro`) and copy if there. It will then def. be in your gallery.
* Wireless Transfer. There are a lot of apps like Airdroid that can do this. (Many times the device manufacturer throws in their homemade tool). Follow these guides [*here*](https://www.alphr.com/computing/1000231/how-to-transfer-files-from-pc-to-android-phone-using-wi-fi-manage-your-media/) & [*here (video guide*)](https://www.youtube.com/watch?v=qoPVeObuWF8) to get Wireless transfer working.
* `adb connect`. Refer to this [XDA guide](https://www.youtube.com/watch?v=vr0GLIufzkM)
In either case, for pics to show up in your gallery without hassle, they need to be copied to `{internal storage}/DCIM/100Andro` (or `Camera` instead of `100Andro`). You can use a non-stock powerful 3rd-party gallery app like F-stop that can scan all places on your phone for pictures instead of just a few limited paths.
Upvotes: 0 |
2021/06/10 | 1,360 | 4,599 | <issue_start>username_0: As described in [this answer by @irfan-latif](https://android.stackexchange.com/a/203913/18559), I am trying to boot (without flashing) my Google Pixel 3a into TWRP via the following command:
`fastboot boot twrp-3.5.2_9-0-sargo.img`
This failed with the following messages:
```
Sending 'boot.img' (65536 KB) OKAY [ 2.028s]
Booting FAILED (remote: 'Error verifying the received boot.img: Invalid Parameter')
fastboot: error: Command failed
```
The only things I found on this topic are:
* [A thread on Reddit](https://www.reddit.com/r/Pixel3a/comments/ga7l5h/twrp_not_booting_in_android_p/) which wasn't really solved as they moved from `boot`ing to `flash`ing which eventually worked for them, but I'm interested in booting only at this point.
* [A thread on XDA Dev](https://forum.xda-developers.com/t/attempted-to-boot-twrp-error-verifying-the-received-boot-img-invalid-parameter.4019469/) which basically ended with ["TWRP for Pixel 3/3XL on Adroid 10 does not work and will not until they release a compatible version"](https://forum.xda-developers.com/t/attempted-to-boot-twrp-error-verifying-the-received-boot-img-invalid-parameter.4019469/post-81198795). Note also that this may not apply to me as I have Android 11 (RQ3A.210605.005 to be precise) and a newer TWRP version.
* [A Github issue](https://github.com/TeamWin/android_device_google_crosshatch/issues/5) from 4 Sep 2020, closed with the message "android 11 is not supported yet." (though this is for a slightly different device).
What caused the error, can it be resolved, and if so, how?
P.S. Further details:
---------------------
```
$ adb --version
Android Debug Bridge version 1.0.41
Version 31.0.2-7242960
$ fastboot --version
fastboot version 31.0.2-7242960
```
* I have unlocked the bootloader.
* I also tried booting the LineageOS recovery which appears to work, but continues starting Android normally instead of TWRP:
```
$ fastboot -v boot lineage-18.1-20210608-recovery-sargo.img
Sending 'boot.img' (65536 KB) OKAY [ 2.004s]
Booting OKAY [ 7.085s]
Finished. Total time: 9.156s
```<issue_comment>username_1: There's no way to automatically download and save sent media from WhatsApp web to mobile, but there's a workaround.
You need two mobile numbers and the ability to run two WhatsApp accounts either using a built-in dual account feature if available or using a third-party dual app provider to achieve this (for a second mobile number, there are several apps like TextNow which gives you an American temporary number for free and you can make WhatsApp accounts with it and even get those numbers permanent for dirt cheap prices)
Once you someway managed two WhatsApp accounts, the rest is rather simple - turn auto download media on the number your phone has and send a pic from the desktop using WhatsApp web from another number.
Upvotes: 1 <issue_comment>username_2: Sounds like your main problem is getting pics from a PC to show up in your smartphone gallery, presumably an Android.
To get this job done, there isn't a need to hold on to WhatsApp at all and create 2 accounts (although that's an option - the gallery won't catch the pictures from 2nd clone account easily, especially if it's running in some kind of virtual environment). So here are your options.
* **Wired Xfer** from Phone to PC. Connect the phone to the USB port and it'll ask how you want that connection to behave - charging only, file or player. Choose files (or storage). Navigate to the gallery folder which would be `{internal storage}/DCIM/100Andro` (or `Camera` instead of `100Andro`) and copy if there. It will then def. be in your gallery.
* Wireless Transfer. There are a lot of apps like Airdroid that can do this. (Many times the device manufacturer throws in their homemade tool). Follow these guides [*here*](https://www.alphr.com/computing/1000231/how-to-transfer-files-from-pc-to-android-phone-using-wi-fi-manage-your-media/) & [*here (video guide*)](https://www.youtube.com/watch?v=qoPVeObuWF8) to get Wireless transfer working.
* `adb connect`. Refer to this [XDA guide](https://www.youtube.com/watch?v=vr0GLIufzkM)
In either case, for pics to show up in your gallery without hassle, they need to be copied to `{internal storage}/DCIM/100Andro` (or `Camera` instead of `100Andro`). You can use a non-stock powerful 3rd-party gallery app like F-stop that can scan all places on your phone for pictures instead of just a few limited paths.
Upvotes: 0 |
2021/06/10 | 462 | 1,809 | <issue_start>username_0: When I'm browsing on my computer, I can press CTRL-W or click the X on a tab to close it. That's convenient. But it seems Chrome for Android has no similar function.
To close the current tab on Android, I need to click the "tabs" icon which brings up all tabs. This often takes 10-60 seconds on my phone because there is anything between 100-3000 tabs open/cached there, and it seems very unnecessary.
Is there another way to close the current tab without first loading all the tabs?<issue_comment>username_1: Long press the tab number next to the 3 vertical dot, a menu will appear. Select Close tab.
[](https://i.stack.imgur.com/M267l.png)
Upvotes: 5 [selected_answer]<issue_comment>username_2: Install a keyboard that has a control key. [Here](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard) is one such keyboard.
To close the active tab without displaying all tabs, tap the address bar to invoke the keyboard, then press Ctrl+W (the keyboard should let you tap the two keys separately in the order Ctrl,W). The tab will close and the next older tab will become active.
To change the active tab without displaying all tabs, swipe the address bar left or right. This is useful if you need to skip over a tab you don't want to close.
To open a new tab without displaying all tabs, tap the three dot menu icon and choose "New tab."
Using these three methods, you should be able to completely avoid displaying all tabs. I believe the only function you need to show all tabs to access is "close all tabs." Even that might be possible with something like Ctrl+Shift+W but I don't want to try it because I too have an embarrassing amount of tabs I need to sort through.
Upvotes: 2 |
2021/06/10 | 633 | 2,364 | <issue_start>username_0: **TL/DR:**
How do I forbid the phone from using ANY mobile data ?
---
If I use a single byte of mobile data, my plan charges me.
Turns out, the phone used data by itself some days ago.
**And NO, before you ask: it did NOT turn on the mobile data function.**
Yet, I was charged.
The standard *network usage graph* is useless to spot what app used the data, and certainly won't tell how it used data without enabling the mobile data function.
Guess all I can do is forbid the phone altogether to access mobile data
Is there a way to do that ?
A prompt, with password, would be great
**Thank you all for the solutions so far**
---
* Rarely, it DOES turn on mobile data itself, but it stays that way, so I can see and revert.
(Happens in some reboots, or when I unplug the SIM, while handling the SD card, etc)
* The carrier said it's the phone's fault, obviously
* I can't remember the last time I HAD to use mobile data. So, if the solution makes it hard to enable it, won't be a problem.
---
I'm gonna try and sabotage my APNs<issue_comment>username_1: Long press the tab number next to the 3 vertical dot, a menu will appear. Select Close tab.
[](https://i.stack.imgur.com/M267l.png)
Upvotes: 5 [selected_answer]<issue_comment>username_2: Install a keyboard that has a control key. [Here](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard) is one such keyboard.
To close the active tab without displaying all tabs, tap the address bar to invoke the keyboard, then press Ctrl+W (the keyboard should let you tap the two keys separately in the order Ctrl,W). The tab will close and the next older tab will become active.
To change the active tab without displaying all tabs, swipe the address bar left or right. This is useful if you need to skip over a tab you don't want to close.
To open a new tab without displaying all tabs, tap the three dot menu icon and choose "New tab."
Using these three methods, you should be able to completely avoid displaying all tabs. I believe the only function you need to show all tabs to access is "close all tabs." Even that might be possible with something like Ctrl+Shift+W but I don't want to try it because I too have an embarrassing amount of tabs I need to sort through.
Upvotes: 2 |
2021/06/13 | 469 | 1,834 | <issue_start>username_0: On my Windows computer, if I close a browser page, the next time I launch the browser, it goes to my home location. This is true regardless of the browser so far as I can tell.
On my Android tablets (Samsung Galaxy 10, Amazon Fire Tablet) or phone if I close the browser and then reopen it, it returns to the last page browsed, not to a home page. I have to back out from the last page back to the original page to get to that.
How can I change this so that upon opening a fresh page, it goes to a home page?<issue_comment>username_1: Long press the tab number next to the 3 vertical dot, a menu will appear. Select Close tab.
[](https://i.stack.imgur.com/M267l.png)
Upvotes: 5 [selected_answer]<issue_comment>username_2: Install a keyboard that has a control key. [Here](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard) is one such keyboard.
To close the active tab without displaying all tabs, tap the address bar to invoke the keyboard, then press Ctrl+W (the keyboard should let you tap the two keys separately in the order Ctrl,W). The tab will close and the next older tab will become active.
To change the active tab without displaying all tabs, swipe the address bar left or right. This is useful if you need to skip over a tab you don't want to close.
To open a new tab without displaying all tabs, tap the three dot menu icon and choose "New tab."
Using these three methods, you should be able to completely avoid displaying all tabs. I believe the only function you need to show all tabs to access is "close all tabs." Even that might be possible with something like Ctrl+Shift+W but I don't want to try it because I too have an embarrassing amount of tabs I need to sort through.
Upvotes: 2 |
2021/06/14 | 504 | 2,026 | <issue_start>username_0: EDIT: The problem described happened to be related with the use of WhatsApp Web instead of WhatsApp app on the phone.
In my WhatsApp chats a couple of months old, I see placeholders for photos, videos, or voice messages. However, the photo itself is not shown, and when I click on it, the error message appears "Photo unavailable. Can't view this photo because it's no longer on your phone."
I myself have never deleted any of these photos from my phone. The message has not been deleted by the other party. I guess it's WhatsApp itself that deletes the media files after a couple of months. How do I stop this? I want all my sent or received WhatsApp media to be kept on my phone for unlimited time.<issue_comment>username_1: Long press the tab number next to the 3 vertical dot, a menu will appear. Select Close tab.
[](https://i.stack.imgur.com/M267l.png)
Upvotes: 5 [selected_answer]<issue_comment>username_2: Install a keyboard that has a control key. [Here](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard) is one such keyboard.
To close the active tab without displaying all tabs, tap the address bar to invoke the keyboard, then press Ctrl+W (the keyboard should let you tap the two keys separately in the order Ctrl,W). The tab will close and the next older tab will become active.
To change the active tab without displaying all tabs, swipe the address bar left or right. This is useful if you need to skip over a tab you don't want to close.
To open a new tab without displaying all tabs, tap the three dot menu icon and choose "New tab."
Using these three methods, you should be able to completely avoid displaying all tabs. I believe the only function you need to show all tabs to access is "close all tabs." Even that might be possible with something like Ctrl+Shift+W but I don't want to try it because I too have an embarrassing amount of tabs I need to sort through.
Upvotes: 2 |
2021/06/16 | 419 | 1,658 | <issue_start>username_0: I am planning to switch to a new phone. so on the old phone, I start WhatsApp backup to Google drive and I waited until it was completed. then I wanted to make sure that it is completed so I started the backup again and it showed me that it has some data and started uploading again.
I am now confused. are my chats backed up or not?<issue_comment>username_1: Long press the tab number next to the 3 vertical dot, a menu will appear. Select Close tab.
[](https://i.stack.imgur.com/M267l.png)
Upvotes: 5 [selected_answer]<issue_comment>username_2: Install a keyboard that has a control key. [Here](https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard) is one such keyboard.
To close the active tab without displaying all tabs, tap the address bar to invoke the keyboard, then press Ctrl+W (the keyboard should let you tap the two keys separately in the order Ctrl,W). The tab will close and the next older tab will become active.
To change the active tab without displaying all tabs, swipe the address bar left or right. This is useful if you need to skip over a tab you don't want to close.
To open a new tab without displaying all tabs, tap the three dot menu icon and choose "New tab."
Using these three methods, you should be able to completely avoid displaying all tabs. I believe the only function you need to show all tabs to access is "close all tabs." Even that might be possible with something like Ctrl+Shift+W but I don't want to try it because I too have an embarrassing amount of tabs I need to sort through.
Upvotes: 2 |
2021/06/20 | 415 | 1,594 | <issue_start>username_0: How to install a mobile-only Android app on an Android tablet? By "mobile-only", I meant the app has only released a mobile version and no tablet version. For example, [DoorDash](https://play.google.com/store/apps/details?id=com.dd.doordash) is one such app.<issue_comment>username_1: You can try finding an APK for the app online. If it's not on the Play Store, it probably won't work with your device. Normally, apps are available for both phone and tablet, whether or not it's made for mobile. Correct me if I am wrong.
Upvotes: 0 <issue_comment>username_2: In case of the DoorDash app I would say the developers are simply too stupid to understand that in the Android eco system there are still tablets without cellular.
From my perspective the only functionality of this app which requires a mobile is the function to make phone calls from within the app (Android [`CALL_PHONE` permission](https://developer.android.com/reference/android/Manifest.permission#CALL_PHONE)). I am not familiar with DoorDash but I would assume that is is not a fundamental problem if you just want to order something.
If Google Play Store refuses app installation then you can still use one of the free APK sources like <https://ApkMirror.com> or <https://ApkPure.com> (as long as you trust those sites).
Both provide the DoorDash app and it can be installed on a non-cellular tablet without problem.
* <https://apkpure.com/de/doordash-food-delivery/com.dd.doordash>
* <https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=com.dd.doordash>
Upvotes: 3 [selected_answer] |
2021/06/22 | 327 | 1,048 | <issue_start>username_0: How can I view a .docx document using dark mode on Android?<issue_comment>username_1: [Firelord**♦**](https://android.stackexchange.com/users/96277/firelord "21,891 reputation") mentioned that [WPS Office](https://en.wikipedia.org/wiki/WPS_Office) allows users to view a .docx document using dark mode on Android:
>
> Wps office supports night mode which acts as dark mode actually, though you have to enable it explicitly for every document. – [Firelord**♦**](https://android.stackexchange.com/users/96277/firelord "21,891 reputation") [Jun 7 '20 at 4:20](https://android.stackexchange.com/questions/225717/how-can-i-view-a-docx-document-using-dark-mode-on-android#comment294025_225717)
>
>
>
Upvotes: 0 <issue_comment>username_2: If you are running Android 11 *(Not sure about lower versions if they have the system-wide dark theme)* and system-wide dark theme is enabled. Google Docs will open the document in dark mode.
*It'll be helpful if you provide more details about your device.*
Upvotes: 2 [selected_answer] |
2021/06/24 | 1,256 | 4,429 | <issue_start>username_0: I am trying to flash TWRP to my ZTE Axon 7, but until now I just keep getting errors every time I try to flash something.
```
D:\ZTE Axon 7>fastboot devices
a773911d fastboot
D:\ZTE Axon 7>fastboot flash recovery "D:\ZTE Axon 7\twrp-3.5.2_9-0-ailsa_ii.img"
Sending 'recovery' (16104 KB) FAILED (Write to device failed (Unknown error))
fastboot: error: Command failed
```
When I look at any guides/videos online, it just works, but not for me. The device is already wiped and the bootloader is unlocked. I also tried some commands like `clear cache` and `reboot bootloader`, but they produce the same kind of error. I am in fastboot mode, I also get some unknown error in MiFlash.
[](https://i.stack.imgur.com/gu8Ai.png)
So basically I haven't really been able to flash anything. Already tried different ports and cables, don't have any other cables lying around.
Trying to use `fastboot boot` (different USB ports):
```
C:\adb-platform-tools>fastboot boot twrp-3.5.2_9-0-ailsa_ii.img
Sending 'boot.img' (16104 KB) FAILED (Status read failed (Too many links))
fastboot: error: Command failed
C:\adb-platform-tools>fastboot boot twrp-3.5.2_9-0-ailsa_ii.img
Sending 'boot.img' (16104 KB) FAILED (Write to device failed in SendBuffer() (Too many links))
fastboot: error: Command failed
C:\adb-platform-tools>fastboot boot twrp-3.5.2_9-0-ailsa_ii.img
Sending 'boot.img' (16104 KB) FAILED (Status read failed (Too many links))
fastboot: error: Command failed
```
Really running out of ideas on this one, I've already tried numerous things and keep getting a variation of these "Write to device failed" errors all the time.
PC does have a Ryzen 5800x, maybe that is the problem?<issue_comment>username_1: Ok, the solution is pretty weird.
I was reading [MrNoob - How to fix data transfer failure (Too many links) error in Fastboot?](https://mrnoob.net/data-transfer-failure-too-many-links-fix/) which mentions something about Windows 10 drivers being problematic, so it is suggested to use a USB 2.0 adapter or something similar. So I have one of those and tried a command, and it worked. Next, I tried flashing
```
fastboot flash boot twrp.img
```
But it still didn't work and got the "Couldn’t parse partition size ‘0x’". But I thought to myself how can this be, one command works and the next just fails like that all of a sudden.
Then I read through [DroidWin - How To Fix Fastboot: Error: Couldn’t Parse Partition Size ‘0x’](https://www.droidwin.com/fix-fastboot-error-couldnt-parse-partition-size-0x/). I guess you can skip the root requirements for now and look at the flash command used:
```
fastboot flash:raw boot twrp.img
```
However, this still didn't work and I have tried it before, do you know why? In my case, it's really f-ing weird.
One thing I must mention before this is that I also installed the "QDLoader HS-USB Driver\_64bit" drivers, on Windows 10. This will now display some "Test Mode" text on the lower right because these drivers are not signed by Microsoft.
1. Connect the phone to USB 2.0 adapter with a proper cable
2. Make sure the device shows up in fastboot devices
3. The weird thing is, DO NOT use any peripherals like a wireless mouse on the same USB adapter the phone is connected to. It probably interferes with it somehow.
4. Now run the command and it should work (you can use `fastboot reboot bootloader` just to make sure it's OK and commands work)
Might have to repeat these steps if the commands stop working again.
Upvotes: 3 [selected_answer]<issue_comment>username_2: I've been going through every step you're all talking about. Most of the articles are fairly accurate, but they're outdated.
It's a weird procedure and you have to have the right tools installed (drivers, software, etc.). But, I've found that the key is in the order that you do these steps for fastboot to connect (recognize the device).
It's still a trial-and-error but so far, I've deduced:
Once you have everything set up correctly, unplug the device from USB, enter flash mode, plug in the device, run `fastboot devices`, and verify it's detected (make sure it's the only thing that is connected). If it's not detected, the fastboot command will fail. If it is connected, run your fastboot command and cross your fingers!
Upvotes: 1 |
2021/07/11 | 926 | 3,633 | <issue_start>username_0: My Android contacts used to sync with my Office 365 (exchange server) mail account, but this stopped working.
More details: I have a Samsung S10 phone running Android 11 (up to date as of this posting). I use the native 'phone' app (green background, white phone symbol) which in turn uses the native 'contacts' app (orange background, white 'person' symbol, version 12.1.20.11). Up until recently, after making a call to a new number, I could choose to 'create contact' from the 'recents' list, and that name / number would automatically show up in my Office365 account online and in my windows 10 outlook installation within minutes. Similarly, contacts added in Outlook on my laptop would show up in the Contacts list on the phone within minutes. But recently, that stopped happening. I spent days researching, experimenting, and finally today I got it working again, but I'd like to see if others agree with my conclusions and also, provide info for others who may have run into this. (See my answer posted below).<issue_comment>username_1: Ok, the solution is pretty weird.
I was reading [MrNoob - How to fix data transfer failure (Too many links) error in Fastboot?](https://mrnoob.net/data-transfer-failure-too-many-links-fix/) which mentions something about Windows 10 drivers being problematic, so it is suggested to use a USB 2.0 adapter or something similar. So I have one of those and tried a command, and it worked. Next, I tried flashing
```
fastboot flash boot twrp.img
```
But it still didn't work and got the "Couldn’t parse partition size ‘0x’". But I thought to myself how can this be, one command works and the next just fails like that all of a sudden.
Then I read through [DroidWin - How To Fix Fastboot: Error: Couldn’t Parse Partition Size ‘0x’](https://www.droidwin.com/fix-fastboot-error-couldnt-parse-partition-size-0x/). I guess you can skip the root requirements for now and look at the flash command used:
```
fastboot flash:raw boot twrp.img
```
However, this still didn't work and I have tried it before, do you know why? In my case, it's really f-ing weird.
One thing I must mention before this is that I also installed the "QDLoader HS-USB Driver\_64bit" drivers, on Windows 10. This will now display some "Test Mode" text on the lower right because these drivers are not signed by Microsoft.
1. Connect the phone to USB 2.0 adapter with a proper cable
2. Make sure the device shows up in fastboot devices
3. The weird thing is, DO NOT use any peripherals like a wireless mouse on the same USB adapter the phone is connected to. It probably interferes with it somehow.
4. Now run the command and it should work (you can use `fastboot reboot bootloader` just to make sure it's OK and commands work)
Might have to repeat these steps if the commands stop working again.
Upvotes: 3 [selected_answer]<issue_comment>username_2: I've been going through every step you're all talking about. Most of the articles are fairly accurate, but they're outdated.
It's a weird procedure and you have to have the right tools installed (drivers, software, etc.). But, I've found that the key is in the order that you do these steps for fastboot to connect (recognize the device).
It's still a trial-and-error but so far, I've deduced:
Once you have everything set up correctly, unplug the device from USB, enter flash mode, plug in the device, run `fastboot devices`, and verify it's detected (make sure it's the only thing that is connected). If it's not detected, the fastboot command will fail. If it is connected, run your fastboot command and cross your fingers!
Upvotes: 1 |
2021/07/12 | 573 | 2,033 | <issue_start>username_0: Working on an Android 6 (stock ROM) phone, which has only internal storage (no external sd card), and is not rooted.
Aurora Store is installed and updated on this phone via F-droid.
Aurora Store has a "Downloads" choice in its "hamburger" menu, where I see something like this:
[](https://i.stack.imgur.com/jEsWZ.png)
So, clearly some .apk's have been downloaded - the question is, where?
I have checked the following locations:
* `/sdcard/Aurora/` - there are some random .apk's there, but not the two on the screenshot
* `/sdcard/Download/` - again, some random .apk's there, but not the two on the screenshot
With a bit of `find`, I also found the following location - but unfortunately, it turns out completely empty in `adb shell`:
```
$ ./adb shell
shell@DDDDD:/ $ ls -la /sdcard/Android/data/com.aurora.store/files/Downloads/
shell@DDDDD:/ $
```
My guess is, the .apk's Aurora downloaded are actually here - but I cannot access/see them, because I'd need root for that, and this phone is not rooted.
Could anyone confirm, what should be the default downloads directory/location for Aurora Store, on an unrooted phone with only internal storage - and whether root is needed to access these files?<issue_comment>username_1: You are right - I had the same problem...
However, "manual download" works with this folder:
storage/emulated/0/Aurora/Store/Downloads/
...com.futuremark.pcmark.android.benchmark/
...4061/
...com.futuremark.pcmark.android.benchmark.apk
Upvotes: 0 <issue_comment>username_2: Aurora Store downloads files to app-specific storage by default (`/data/data/com.aurora.store/files/Download`).
If you want to save APKs to shared storage to access them without root, in Aurora go to **Settings** → **Downloads** and switch on "User external Storage". After this, APKs will be stored in `Android/data/com.aurora.store/files/Downloads` under Internal Storage (typically `/storage/emulated/0`).
Upvotes: 1 |
2021/07/16 | 521 | 1,812 | <issue_start>username_0: Let say on my home Wifi, I want to use DNS server "X" and on work WiFI, I want to use another DNS-server: "Y", on cellular a server "Z" and so on.
Is this possible to do this automatically? (Preferably without root)
There seems to be loads of "DNS-apps" on play store, but I can't find any that do this. (have not tried them all)<issue_comment>username_1: You can setup a Tasker profile that is based on either a location or a WiFi network to trigger the task. Set the task to change the custom setting for private DNS with the hostname dependent on which network you are on.
Upvotes: 2 <issue_comment>username_2: The solution below will set Private DNS to "Automatic" on SSID: 'SSID-1' and 'SSID-2' Everything else will set Private DNS to your entered Private DNS hostname in settings.
1. Install [Tasker.](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=sv&gl=US)
2. Set up tasker as [follow](https://www.reddit.com/r/tasker/comments/9yvo2h/android_p_private_dns_setting_access_in_tasker/): (Change SSID-1/SSID2 to your name)
```
Profile: AutoPrivateDNS
State: Wifi Connected [ SSID:SSID-1/SSID-2 MAC:* IP:* Active:Any ]
Enter: Anon
A1: Custom Setting [ Type:Global Name:private_dns_mode Value:opportunistic Use Root:Off Read Setting To: ]
Exit: Anon
A1: Custom Setting [ Type:Global Name:private_dns_mode Value:hostname Use Root:Off Read Setting To: ]
```
3. Grant Tasker WRITE\_SECURE\_SETTINGS permissions via ADB with following command:
`adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS`
4. To set Private DNS to Off instead of 'Automatic' use the value 'Off' instead of 'opportunistic'.
5. Tested with Android 11, Samsung S10E, no root.
Upvotes: 4 [selected_answer] |
2021/07/18 | 582 | 2,395 | <issue_start>username_0: I have found a few similar questions but no answers yet.
I use the Microsoft SwiftKey keyboard so I can type in both English and Dutch simultaneously (without having to switch between them). This works great but the system spell checker still put red lines under all my words. I have set the spell checker to 'use system languages' but it only uses the first one in the list. If I select manually, I can only use one language. Is there a way to get multilingual spell check?<issue_comment>username_1: My experience has been that this may not be possible, but probably depends on which phone you're using. My current and past two phones flat out would not allow me to set SwiftKey as the global spell-checker. (I can *autocorrect* with it, but with two languages plus dialect plus slang in the "learned" dictionary... this is not especially useful.)
I would check that your default spell-checker is actually, or even can be, set to SwiftKey. On my current Samsung with android 11, the spell-checker setting is completely integrated and only available under "Samsung keyboard settings" (meaning I can only use the native Samsung keyboard if I want to enable it), while on the older Huaweis (android 6 & 9), it was called "Spelling correction," but the only selection possible was Gboard.
([Someone elsewhere on SO suggested this was a change in android 5,](https://stackoverflow.com/a/30977600/7448796) and looking at the releases, the SpellCheckerService class pops up in API 14/android 4, so it may be that the global function didn't even exist until then.)
Edited to reiterate: N.B. that I'm specifically responding to the question as to "spell-checker" and **not** "autocorrect" (as it sounds like @metshein is referencing below), which (somewhat confusingly) are actually two different settings. The OP mentioned "red lines" below words, which is a spell-checking function separate from autocorrect, which can be enabled or not within SwiftKey.
Upvotes: 2 <issue_comment>username_2: I'm using Samsung Galaxy A7 and I have 3 languages in my keyboard and spell checker and it works just fine. Maybe like 1% of the time it might correct my Estonian word to a Swedish one but that's because the words can be quite similar.
And I'm also using the Swiftkey keyboard so I guess it really might depend on the phone but it shouldn't..doesn't make much sense xd
Upvotes: 0 |
2021/07/20 | 439 | 1,735 | <issue_start>username_0: According <https://support.google.com/work/android/answer/6191949?hl=en>:
>
> 1. Go to Settings > Accounts > Remove work profile.
> 2. Tap Delete to confirm the removal of all apps and data within your work profile.
> 3. Ensure that the policy app ("Device Policy") is uninstalled and not present on your device.
>
>
>
My Samsung Galaxy S10 with Android 11 doesn't have Settings > Accounts. The closest I can find is Settings > Accounts and backup > Manage accounts. But then when I click on the Work profile, select an account, and click Remove account. I get "This change isn't allowed by your admin." What do I need to do to remove the Work profile from my personal phone?<issue_comment>username_1: I ended up contacting my previous employer. They had to remove the profile on their end via the administrative UI.
Upvotes: 1 <issue_comment>username_2: The option you are looking for is "uninstall work profile", not "remove account". If you use the search bar in your settings menu then it should come up.
I just did it and it worked perfectly. I had the same problem as you do. I will try to add a screenshot to demonstrate.
[](https://i.stack.imgur.com/rybri.jpg)
Upvotes: 2 <issue_comment>username_3: Probably irrelevant to the original question based on newer OS version, but thought I'd mention it for reference. On Samsung S7 running Android 8, I had to go into the Workspace (app) section, for the workspace created for that work profile, and uninstall the workspace from the workspace app settings. Only then was I also able to remove the MDM app that set up the workspace. There was no workspace settings with the Settings app.
Upvotes: 1 |
2021/07/21 | 430 | 1,726 | <issue_start>username_0: I have a galaxy S20+ and a generic USB c to HDMI cable. I connected the phone to a Philips monitor but I don't see anything on the monitor and in the USB settings I only see USB controlled by: connected device. And when trying to switch it to This device, I get an error saying "couldn't switch". Not sure if this cable isn't compatible by phones or if there's any settings I can change.<issue_comment>username_1: 1. Open the Settings menu on your Samsung device.
2. Tap on Connections which should be the topmost setting.
3. Now scroll to the bottom and tap on More connection settings.
4. Select HDMI mode from the options.
5. A small window should appear with the HDMI options — Samsung DeX and Screen mirroring.
Select either of the two based on your preference.
Upvotes: 1 <issue_comment>username_2: Just a guess, maybe you should press dex in the drop down menu quick panel icons?
You might need to edit the quick panel and drag it down.
Otherwise, you can try (search "dex settings" in settings) to enable auto start when hdmi is connected.
I find it easier to search in settings, because searching in finder requires more keywords.
Sometimes it's easier to edit the Dex settings when you first connect it wirelessly to windows, because there are more settings when it's turned on.
Finally, I'm not sure Dex needs to be used at all when connecting to a display. Check your HDMI cable if it supports the right protocols (usb 3.1, mhl, hdmi alternate mode).
And ofcourse, set the input source of your Philips dislay to HDMI.
Upvotes: 1 <issue_comment>username_3: It turned out it was a faulty cable. I used another cable and the connection worked without issues
Upvotes: 1 [selected_answer] |
2021/07/21 | 4,490 | 12,158 | <issue_start>username_0: **Summary - Update 2:**
I am not deleting the question content, to preserve history ( but an admin may if appropriate delete that content) but things have change since. A day after I can into the below mentioned `TWRP createTarFork() error 255` issue I could manage the data restore `/data` from `TWRP Nandroid backup`. **The issue is for 2nd install of the same `stock ROM` - I run into a `bootloop`.** The `TWRP backup` itself was from an `Encrypted partition` being restored to another `partition` ( `Encrypted` or otherwise regardless ). Trying to get to the RC of the `bootloop` & some way I an restore my `/data` I've attached logs of bad & normal boot below.
```
'android.frameworks.sensorservice@1.0::ISensorManager/default': No such file or directory
```
I am attaching [Entire /sys/fs/pstore/console-ramoops-0](https://paste.c-net.org/GranddadBronze)
what seems the issue ?
I have TWRP backups of `vendor system boot` that i tinkered restores with. No Luck. This is stock `MIUI ROM` with `TWRP as recovery base` so after flashing dm-verify-no encrypt.zip ( cant recall the exact name ) + certification.zi & permssiver I get past `MIUI` logo but now looping at powered by `android` logo
`fsck` outcomes
```
olivelite:/ # e2fsck /dev/block/mmcblk0p60
e2fsck 1.43.3 (04-Sep-2016)
/dev/block/mmcblk0p60: clean, 4614/65536 files, 184349/262144 blocks
olivelite:/ # fsck /dev/block/mmcblk0p60
/sbin/sh: fsck: not found
127|olivelite:/ # e2fsck -v /dev/block/mmcblk0p60
e2fsck 1.43.3 (04-Sep-2016)
/dev/block/mmcblk0p60: clean, 4614/65536 files, 184349/262144 blocks
olivelite:/ # e2fsck -v /dev/block/mmcblk0p59
e2fsck 1.43.3 (04-Sep-2016)
/dev/block/mmcblk0p59: clean, 4547/262144 files, 680379/1048576 blocks
olivelite:/ # e2fsck -v /dev/block/mmcblk0p62
e2fsck 1.43.3 (04-Sep-2016)
data: clean, 62826/1389536 files, 3383723/5667584 blocks
olivelite:/ # e2fsck -v /dev/block/mmcblk0p57
e2fsck 1.43.3 (04-Sep-2016)
/dev/block/mmcblk0p57: clean, 33/98304 files, 22707/98304 blocksenter
```
`fsck` sounds clean for all `partitions`
[Here is the `**logcat**`](https://paste.c-net.org/RopesSchemes) & [here's `**dmesg**`](https://paste.c-net.org/RubbleStacey)
from `logcat` it could be a `decryption` issue. But that's only for `boot`
`twrp`asks for pattern and decrypts just fine. Why cant it happen during `boot`- that's my hunch on the prob. Not trying to lure in that direction. Like *Mikko* said pretty much everything screams so its difficult to nab the culprit
Gonna try `/data` backup `wipe` and `restore` lets see...
.
**Update**
as I suspected it appears to be `encryption` related. the previous successful install had a `pattern lock` ( at the time that install was built, I `flashed - permissiver.zip, certificate.zip & dm-verity-force-encryption w default ops to disable verity & disable forced encryption` ) - but`TWRP nandroid backup` itself is never `encrypted`. When tried to restore it - I always ended up with `TWRP createTarFork() error 255` which is a very generic error - with multiple RC's. In my case it happens immediately ( previous data was `wiped & formatted all relevant partitions` . Only way I could successfully restore was use `flashtool` ( that runs `fastboot` commands underneath ) to install `stock` -> `fastboot twrp & patched magisk boot install` and then restore `/data` ( after running `magisk` & `dm verity` attempt `twrp` restore ) - in that case restore was successful. So with above steps I could successfully restore `/data` but that restored `/data` will get stuck in `bootloop` ( if `twrp` backups arent `encrypted` , why then does a simple `wipe & format` not allow `TWRP restore` ? only `flashtool` de-novo `stock` install will permit restore ? . I read a bug in `twrp` will not let backup from `encrypted partition` be restored onto un-encrypted ..ok so I also `encrypted` de-novo `stock` install with same pattern & after successfully restoring `/data` got stuck in the same `bootloop` again ) .
while I am using this de-novo `stock` install right now with 'bare minimal survival kit' apps.
I could pull up logs of what a `successful boot` looked like
to compare with `boot loop after /data restored` I uploaded earlier ( as suggested by *Mikko* - need bad boot and normal boot logs to compare ) .
**So the big Question**
is how in the world can I get back `/data` to restore from my `Nandroid backup` without `boot looping`
Uploaded these :
Normal boot [`pmsg-ramoops`](https://paste.c-net.org/MethodsMovement) , [`dmesg`](https://paste.c-net.org/KeeganEmpress), [`ramoops`](https://paste.c-net.org/FeelsCostanza) ( last 2 are pretty much the same - if you read ramoops- good enough ), [`logcat`](https://paste.c-net.org/DeformedOverture)
Needless to say restore's being attempted on the same stock ROM<issue_comment>username_1: If you run stock firmware and it's bootlooping, there's really not much that you can do because you don't have source code to the firmware you're running.
Your boot log seems to have a couple of interesting parts. I think this might suggest some kind of permission problem. Have you touched SELinux stuff (e.g. changed ACLs)?
```
[ 0.629174] ------------[ cut here ]------------
[ 0.629189] WARNING: CPU: 0 PID: 1 at /home/work/olivelite-p-stable-build/kernel/msm-4.9/drivers/base/core.c:600 device_create_file+0x7c/0xac
[ 0.629193] Attribute otg_status: write permission without 'store'
[ 0.629197] Modules linked in:
[ 0.629205] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.112-perf-gd9f74a7 #1
[ 0.629209] Hardware name: Qualcomm Technologies, Inc. SDM439 (Flattened Device Tree)
[ 0.629226] [] (unwind\_backtrace) from [] (show\_stack+0x20/0x24)
[ 0.629235] [] (show\_stack) from [] (dump\_stack+0x94/0xa8)
[ 0.629245] [] (dump\_stack) from [] (\_\_warn+0xf8/0x110)
[ 0.629253] [] (\_\_warn) from [] (warn\_slowpath\_fmt+0x58/0x74)
[ 0.629260] [] (warn\_slowpath\_fmt) from [] (device\_create\_file+0x7c/0xac)
[ 0.629271] [] (device\_create\_file) from [] (msm\_otg\_probe+0x1668/0x1c28)
[ 0.629281] [] (msm\_otg\_probe) from [] (platform\_drv\_probe+0x48/0xac)
[ 0.629289] [] (platform\_drv\_probe) from [] (driver\_probe\_device+0x244/0x2f0)
[ 0.629297] [] (driver\_probe\_device) from [] (\_\_driver\_attach+0xc8/0xcc)
[ 0.629303] [] (\_\_driver\_attach) from [] (bus\_for\_each\_dev+0x8c/0xd0)
[ 0.629311] [] (bus\_for\_each\_dev) from [] (driver\_attach+0x2c/0x30)
[ 0.629317] [] (driver\_attach) from [] (bus\_add\_driver+0x1ac/0x224)
[ 0.629324] [] (bus\_add\_driver) from [] (driver\_register+0x9c/0x120)
[ 0.629331] [] (driver\_register) from [] (\_\_platform\_driver\_register+0x50/0x58)
[ 0.629341] [] (\_\_platform\_driver\_register) from [] (msm\_otg\_driver\_init+0x1c/0x20)
[ 0.629350] [] (msm\_otg\_driver\_init) from [] (do\_one\_initcall+0x60/0x1a4)
[ 0.629359] [] (do\_one\_initcall) from [] (kernel\_init\_freeable+0x1f4/0x2b0)
[ 0.629369] [] (kernel\_init\_freeable) from [] (kernel\_init+0x18/0x158)
[ 0.629378] [] (kernel\_init) from [] (ret\_from\_fork+0x14/0x24)
[ 0.629384] ---[ end trace 09e0ec112fb2ab2d ]---
...
[ 3.606115] init: Couldn't load property file '/odm/default.prop': open() failed: Nk such file or directory: No such file or directory
[ 3.606592] selinux: avc: denied { set } for scontext=u:r:vendor\_init:s0 tcontext=u:object\_r:exported\_secure\_prop:s0 tclass=property\_service permissive=1
...
[ 5.976174] e2fsck: e2fsck 1.43.3 (04-Sep-2016)
[ 5.976174]
[ 5.976210] e2fsck: /dev/block/bootdevice/by-name/persist is mounted.
[ 5.976210]
[ 5.976222] e2fsck: e2fsck: Cannot continue, aborting.
...
[ 7.388219] type=1400 audit(54437781.749:20): avc: denied { setattr } for pid=404 comm="init" name="shared" dev="mmcblk0p62" ino=1157358 scontext=u:r:vendor\_init:s0 tcontext=u:object\_r:system\_data\_file:s0 tclass=dir permissive=1
[ 7.399091] type=1400 audit(54437781.749:20): avc: denied { setattr } for pid=404 comm="init" name="shared" dev="mmcblk0p62" ino=1157358 scontext=u:r:vendor\_init:s0 tcontext=u:object\_r:system\_data\_file:s0 tclass=dir permissive=1
[ 7.399114] type=1400 audit(54437781.759:21): avc: denied { setattr } for pid=404 comm="init" name="tombstones" dev="mmcblk0p62" ino=514055 scontext=u:r:vendor\_init:s0 tcontext=u:object\_r:tombstone\_data\_file:s0 tclass=dir permissive=1
[ 7.402174] type=1400 audit(54437781.759:21): avc: denied { setattr } for pid=404 comm="init" name="tombstones" dev="mmcblk0p62" ino=514055 scontext=u:r:vendor\_init:s0 tcontext=u:object\_r:tombstone\_data\_file8s0 tclass=dir permissive=1
[ 7.402193] type=1400 audit(54437781.769:22): avc: denied { write } for pid=404 comm="init" name="misc" dev="mmcblk0p62" ino=385537 scontext=u:r:vendor\_init:s0 tcontext=u:object\_r:system\_data\_file:s0 tclass=dir permissive=1
[ 7.402323] type=1400 audit(54437781.769:22): avc: denied { write } for pid=404 comm="init" name="misc" dev="mmcblk0p62" ino=385537 scontext=u:r:vendor\_init:s0 tcontext=u:object\_r:system\_data\_file:s0 tclass=dir permissive=1
[ 7.402339] type=1400 audit(54437781.769:23): avc: denied { add\_name } for pid=404 comm="init" name="dts" scontext=u:r:vendor\_init:s0 tcontext=u:object\_r:system\_data\_file:s0 tclass=dir permissive=1
```
Also note the `e2fsck` aborting in the middle of the process.
**I would guess SELinux config being messed up or a filesystem corruption.**
You'd really need a log from *correctly booting* phone with the *identical firmware version* to compare to know for sure. In many cases official vendor firmware is a piece of crap that may emit all the above errors on every boot so you really cannot know if you're looking at red herring.
Usually the only good way to debug issues like this is to take full boot log from known working phone and compare it to full boot log from a phone that doesn't boot. (Obviously you need a comparision tool that can ignore the timestamps at the start of the lines. I'd use `meld` with filters.)
**Usually the problem is caused by the first error in the log.** However, as I mentioned, **vendor firmware often have lots of errors on every boot** so you cannot know which are fatal if you don't have known good boot log to compare. The line you mentioned in the question (`ISensorManager/default`) is way after all the above mentioned errors. I would assume that the `ISensorManager` failure is just a result of the other stuff going wrong.
Upvotes: 2 <issue_comment>username_2: **Issues & solutions much as I could reach**
Cant restore `TWRP /data backup`
Can't figure out why `TWRP` backup itself being un-`encrypted` ( albeit from an encrypted phone ) cant be restored to any phone with the same ROM. This is with `TWRP 3.5.x`. Work around was flash ROM de-novo ( `wipe / format` in TWRP did not work ) & then attempt restore. But I ran into `bootloop`. There is another [solution](https://android.stackexchange.com/questions/98228/removing-encryption-from-recovery) that targets `Luks Header` , but did not bother going further down the rabbit hole.
I really appreciate Mikko's dig into those logs , which is understandably is boring and frustrating .much as I'd have like to accept his answer - it's way off. This is abs nothing to do with `SeLinux`( `permissive 1` as the `log` shouts everywhere ) neither it was a corrupted fs ( `e2fsck` issue)
`Bootloop` after `/data restore`
Something to do with my older install being `encrypted` but I cant figure out presicely. I took my TWRP files and attempted manual restore :
```
$r --selinux --xattrs -vxpPf data.ext4.win003 /data/data/com.whatsapp
```
where r is `/data/tmp/tar-arm` as [suggested here](https://android.stackexchange.com/questions/214065/backup-whatsapp-from-nandroid) . My `whatsapp` data ( primary target of recovery besides other apps ) was straddled across 03 an 04 volumes and I ran into issues `invalid tar format` or some. The issue was not with backup but `/data/tmp/tar-arm`wasn't capable . I pulled it into `Linux` and ran regular tar similarly and restored. Lesson : if `tar` utils says backup is bad - dont take it for-granted. It might be a bad `tar`
Upvotes: 1 [selected_answer] |
2021/07/28 | 427 | 1,597 | <issue_start>username_0: I've just got a Nord 2.
I've installed MS Swiftkey and setup both English and Italian.
While the input itself works with both languages, all Italian works are underlined in red.
This doesn't happen with GBoard.
Also this doesn't happen in another phone of mine, same configuration.
Does anyone has any idea?<issue_comment>username_1: >
> It doesn't happen with Gboard or the default keyboard because they're
> integrated with the Android system, and they have the access to the
> settings like "personal dictionary" in Android system; meanwhile
> SwiftKey is a 3rd party app, it does not have the system level access.
> That's why it cannot identify the languages other than system default
> language. In other words, Google Spell Checker works with Gboard but
> not SwiftKey.
>
>
> The solution is to disable spell checker.
>
>
>
Another potential solution could be adding Italian Language in settings. Go to:
```
Settings --> More/Additional Settings --> Language & Region
```
Here add Italian along with English.
[Source](https://support.swiftkey.com/hc/en-us/community/posts/115004508429--Duplicate-Android-Showing-red-underlines-for-all-words-in-second-language)
Hope this helps!
Upvotes: 1 <issue_comment>username_2: You mentioned on another phone - it works ( aka `Swiftkey` Italian isnt underlined by spellchecker ) Also try putting `swiftkey` as default keyboard and there's a language selection ,where you put in *Italian as your 1st language and Eng as second* ( do that my removing all languages and then add Italian 1st then Eng )
Upvotes: 0 |
2021/07/29 | 719 | 2,848 | <issue_start>username_0: [](https://i.stack.imgur.com/Mp4VR.png)
I get this error whenever selecting any choice for permissions prompts in Chrome Dev. No results on Google, XDA, or here; Google has a similar but irrelevant hit for Hwaiwei devices (something to do with a trackball, which this phone does not have). I've checked all permissions, can't for the life of me figure out how to fix this? My device is stock, and this has been present since day one.
**Specs**
~~Model: Stock LM-G900TM14j
Android 10 (No root)~~
Model: Stock T-Mo LG V60 ThinQ 5G (LMV600TMLATMOCB)
Android 11 (No root)
EDIT: Strangely enough, I traded up to the V60 but am still experiencing this error.<issue_comment>username_1: Try opening phone settings - then look for applications or app management or apps or apps and notification such options. Then try to navigate to list of applications. Look for chrome application. Then click on App permission & make sure the needed permission is given. In settings menu - additional settings look for quick ball. In quick ball settings select hide automaticaly for all apps. Then open chrome browser and try to give permission
Upvotes: 0 <issue_comment>username_2: I just wanna add this for future spectators, until the problem gets fixed.
Chrome (for Android anyway) just has really crappy, limited permissions management, which is not good enough for LG. From what I can tell, there's nothing to be done about it. If you can do whatever it is you need to do in a different browser and switch back to Chrome Dev when you're done, you should.
This worked for me in Vivladi, where I was initally experiencing the same problems. Click "block" instead of "allow". Then go to site settings, click on whatever permission you need, and you'll see the site is now in the "blocked" list. Just click on it and change it to allowed, and it should work.
...whereas Chrome won't even generate a list for you or let you choose something more powerful than "ask me"...smh
Upvotes: 2 <issue_comment>username_3: You can fix the issue by following the steps below
* Click on the Google Chrome icon and choose the info option. Alternatively, you can go to the settings --> installed apps/apps --> Google chrome.
* Click on Storage --> Manage storage --> Clear all data.
* Go back to the info page and select the Permissions option.
* Allow all the permission that you require for the site (at least camera and microphone).
* Now, try opening the app.
* ***If you are still facing the issue then you might have opened any screen recording apps or any other apps like small bubbles in the background. So you have to close them to clear this error.***
You can refer to the following video for a quick fix.
<https://www.youtube.com/watch?v=xsNZnTFu0r8>
Upvotes: 0 |
2021/08/01 | 918 | 3,540 | <issue_start>username_0: After installing Microsoft's Outlook app I noticed that when going to search for something on the Internet by selecting text and searching, I am forced to use Bing instead of my default search engine (Google).
[](https://i.stack.imgur.com/eUVpU.jpg)
(Screenshot from Firefox)
I have just found out that this is a known issue [mentioned by Android Police in 2020](https://www.androidpolice.com/2020/07/13/microsoft-caught-sneaking-bing-search-onto-phones-with-the-outlook-app/).
I use Firefox 90.1.3 (Build #2015824995) on a Samsung Galaxy S10 and Google is always set as my default. I even removed Bing from the options, yet it is still there when trying the selection search.
[](https://i.stack.imgur.com/UjJi3.jpg)
I noticed that when using Samsung's Internet Browser, there is the extra option of 'Web search' as well as 'Bing Search' and using 'Web search' goes to my default search engine. That is not on Firefox.
Is there a known way to stop this intrusion into my right to choose which search engine I use when using Firefox?
@Robert indirectly made a good point on settings within Outlook within comments so I had a look.
I am forced not to use my default browser as I cannot set it in Outlook (see below)
[](https://i.stack.imgur.com/WGBot.jpg)
Tapping on the slider does nothing<issue_comment>username_1: I think this menu isn't created by Firefox, but either a system-wide function created by the Outlook app. There are many apps that createsuch links in so to say right-click menus on Android.
I don't however know how to remove this, sorry.
But I can suggest a different mail app to you, which is more privacy-friendly in comparison to Outlook or Gmail. It's named FairEmail an available at email.faircode.eu. I know this isn't the solution you are searching for, but I just wanted to spread this great app.
Upvotes: 1 <issue_comment>username_2: The fact that the toggle to enable "Use default browser" is unresponsive is apparently some kind of bug. Depending on your version/email setup, you're meant to either have the "Use default browser" option or not. It shouldn't be greyed out like that -- though it's that way on mine as well, and I've seen MS forum posts from others to that effect so this may be some weird, hopefully temporary, regression.
In many third-party apps, selecting text will trigger an android *webview* rather than a full-fledged browser. Contextual Text Selection was released in Android 6.0, allowing developers to capture text you select in their app and send it to another process. The developer can decide what options to include on that little pop-up menu, so adding "Bing search" is Microsoft taking advantage of a captive audience. It's strange that you don't have "Web search" in your pop-up menu as well, though -- it shows in mine. That context menu is somewhat dependent on other apps installed, so this might sound obvious or odd, but do you have the Google app installed (the lightweight search that comes pre-installed on a lot of androids)?
It looks like this:
[](https://i.stack.imgur.com/MQNY5.jpg)
I think this may be the source of the "web search" option. Until they fix the default browser toggle, adding the web search possibility will at least give you something of a workaround.
Upvotes: 0 |
2021/08/01 | 502 | 1,693 | <issue_start>username_0: I have Garmin Swim 2.
On my Pixel 3A XL installed [Garmin Connect](https://play.google.com/store/apps/details?id=com.garmin.android.apps.connectmobile), it works fine.
But I want also see data on [Google Fit](https://play.google.com/store/apps/details?id=com.google.android.apps.fitness).
Unfortunately Garmin Swim 2 doesn't connect with Google Fit and I need to install third party app do this.
I installed [Health Sync](https://play.google.com/store/apps/details?id=nl.appyhapps.healthsync).
Look like it's working:
[](https://i.stack.imgur.com/mwr1r.png)
But I don't see any activities in Google Fit where I didn't have my phone with me, for example swimming, sleep and so on.
On [Garmin Forum](https://forums.garmin.com/apps-software/mobile-apps-web/f/garmin-connect-web/160201/garmin-connect-sync-to-google-fit-and-samsung-health#pifragment-455=1) I found the following:
>
> in Settings of Google Fit, under Tracking Preferences, Turn off "
> Track your activities" Use Phone sensors to automatically track
> metrics like steps and distance.
>
>
>
Okay, I did this, but it didn't help.
What I should do to sync Garmin Connect with Google Fit?<issue_comment>username_1: if there is a problem with Health Sync, you can use the 'Report another problem' option in the Help Center, and you will get support to solve the problem.
Upvotes: 1 <issue_comment>username_2: Thanks to Health Sync support, problem was solved.
Actually I have two google accounts and Goggle Fit used another account.
When I switched to correct account, everything started to work.
Upvotes: 1 [selected_answer] |
2021/08/09 | 497 | 2,085 | <issue_start>username_0: My work Google account is one of many synced to my phone. I'm a teacher so I have lot's of student emails as contacts on my work Google account. When I do a search for say "David" on my phone's contact list all my students I've ever had with the name David show up and it is very cluttered.
**Is there a way to remove the contacts of my work Google account from my phone without deleting them from the associated Google account, and while still keeping access to emails from that account on my phone?**<issue_comment>username_1: If Your Phone is Set to Display Contacts from Google Account, it will likely keep showing except if you deselect the linked google account from displaying its contacts. Else, you will need to delet the contact and syncronize it.
Upvotes: 1 <issue_comment>username_2: I had a similar problem with having my husband's Google account on my phone. It synced his contacts to my phone.
What I did was this:
Turned Airplane mode on.
Settings>Accounts-Google>[your account], and make sure Contacts sync is turned off. Make sure you turn off sync on all the Google accounts. Next, go to Settings>Apps, tap Menu>Show System, and select Contact Storage. Clear Cache/Data.
What I did also was select Calls, Call Settings, Contacts, and Contact Migrator; Clear Cache/Data.
Restarted the phone, turned Airplane mode off, turned sync on just my accounts on and opened contacts. It worked.
Upvotes: 1 <issue_comment>username_3: I the same problem with my work google contacts. I tried the answers above but they did not work for me.
Here is what I did instead. (Note: I have a Redmi Note 10.)
1. Use a computer to delete all your google contacts. You can probably do this with your phone too. The phone will then sync and remove the contacts.
2. After the contacts are removed, go to Settings>Accounts & sync>Google> Select the google account and disable the syncing of contacts.
3. Go to Google Contacts and recover your contacts from the trash. These contacts will no longer appear on your phone's contacts.
I hope this helps.
Upvotes: 0 |
2021/08/11 | 306 | 1,158 | <issue_start>username_0: When trying to connect the app to web.whatsapp.com, the app insists to "unlock to link a device", meaning I get the same screen as when I turn my phone's screen on after it sleeps.
I know other WhatsApp users don't need to do that, they get right into the QR screen without any security measures.
So why does it happen?<issue_comment>username_1: *I'm only guessing here, and I'm probably wrong*
Maybe it's due to [screen pinning feature](https://support.google.com/android/answer/9455138)? Like they want to be sure that it's you linking with a computer?
Upvotes: -1 <issue_comment>username_2: To me it seems like the authentication for linking a device is meant to be rolled out to everyone. If someone does not have it yet, it's because a) he might not have updated the app yet or b) WhatsApp is publishing its new versions as a staged rollout, so not everyone is going to get it the same time.
The need for authenticating before linking is also described in WhatsApp's [help center](https://faq.whatsapp.com/web/download-and-installation/how-to-log-in-or-out), which leads to the conclusion above.
Upvotes: 1 [selected_answer] |