date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2020/01/30 | 583 | 2,129 | <issue_start>username_0: My HTC A9 phone is asking me for an 8-digits password only when a SIM is in the device. I already tried it with the PUK of the SIM what does not work. If there is no SIM in the device, there is no password prompt and I can use the phone normally. With no SIM in the device, I did a factory reset of the phone, but nothing changed.
The password prompt says: "Network locked". Is this a SIM-locked phone?
What is going on here?<issue_comment>username_1: if [adoptable-storage](https://android.stackexchange.com/tags/adoptable-storage/info) is supported from this ROM, all new installed apps will go to microSD Card by default, as long as `android:installLocation="auto"` is defined in [AndroidManifest.xml](http://developer.android.com/guide/appendix/install-location.html)
* check available disk space (of /data or /mnt/expand/\*)
* uninstall some apps
* check available disk space
* install some apps
* check available disk space
you will see available disk space for /data increases
Upvotes: 0 <issue_comment>username_2: The answer was found through a comment by <NAME> here: ["System" using 342GB storage?](https://android.stackexchange.com/questions/220729/system-using-342gb-storage/220749#comment285301_220729) While I'd found this question prior to posting my own, I had dismissed it as being inapplicable since my `df` output is very different, and I hadn't found the menus shown in the screenshots there.
What I had to do is to go to Settings -> Storage -> The (almost empty) SD card. Then click on the grippy 3-dot menu in the top right, and select Migrate. You then get into the menu mentioned in the above answer (which was apparently supposed to show up when first installing the SD card, but didn't show for me). I moved the content, which took 15 minutes or so. And since then my phone indicates:
* Internal shared storage: 344GB used of 367GB
* SanDisk SD card: 26.32GB used of 361GB
When plugging in the phone, it now also indicates 334GB available space, and I can load more music and take more pictures.
Thank you for the suggestions, everyone.
Upvotes: 3 [selected_answer] |
2020/01/31 | 259 | 875 | <issue_start>username_0: I have a Samsung Galaxy J2 Pro running Android 7.1.1, and Samsung Experience version 8.5.
How do I get the battery percentage into the status bar? I am sure it was there until yesterday (unless I am going crazy) and now it has disappeared. Yes I have tried turning it off and on :)<issue_comment>username_1: Step 1: Tap on the Settings from the Home Screen.
Step 2: Select Smart manager
Step 3: Select Battery
Step 4: Now, you should see the option that can help you show the battery percentage.
Step 4: Turn Battery Percentage on.
Source:
<https://phoneradar.com/samsung-galaxy-j2-pro-tips-tricks-faqs-options/#f>
Upvotes: 0 <issue_comment>username_2: OK, I found it myself when I had time to read through all the Settings in the manual:
1. tap "Settings"
2. tap "Display"
3. tap "Status Bar"
4. turn on "Show battery percentage"
Upvotes: 1 |
2020/01/31 | 1,832 | 6,728 | <issue_start>username_0: The current state of the device is shown bellow.
I prefer using heimdall to flash each partition directly from command line if possible. Unless it is mandatory to put all images inside a tar and flash them at the same time.
Top left corner of the Download mode screen:
[](https://i.stack.imgur.com/FJ5fQ.png)
More details of the previous (and solved) problem here: [question](https://android.stackexchange.com/questions/220764/how-to-recover-from-recovery-boot-loop-in-galaxy-a20?noredirect=1#comment285459_220764)<issue_comment>username_1: For Heimdal:
I refer to the [Developers](https://gitlab.com/BenjaminDobell/Heimdall/raw/master/Linux/README) read me file for linux command line instructions:
Flashing Firmware from Command Line:
```
1. Fully charge your phone (use the wall charger as it's faster).
2. Download a decrypted device ROM or a Heimdall Firmware Package
and extract everything to the one directory.
3. If the ROM is not a Heimdall Firmware Package it may instead be provided
as multiple archives (nested or otherwise), extract them all to the same
location.
NOTE: If you want to use the CSC then extract it last.
4. Put your Galaxy S device into download mode and plug it in..
5. Open a terminal and navigate to the directory where you extracted
the ROM/firmware files.
6. Type the following to list all the functionality Heimdall supports:
heimdall help
7. Before flashing, you must first know the names of the partitions you
wish to flash. These can be obtained by executing:
heimdall print-pit --no-reboot
The inclusion of --no-reboot ensures the phone will not reboot after PIT
file has been downloaded and displayed. After executing a command with
the --no-reboot argument, the next command should include the --resume
argument.
NOTE: You can still safely reboot your phone manually (with the power
button) after executing --no-reboot commands.
8. Use the help and print-pit output to construct a command with all the
files you want to flash.
Here is an example that does a full flash and repartition on a GT-I9000:
heimdall flash --repartition --resume --pit s1_odin_20100512.pit --FACTORYFS factoryfs.rfs --CACHE cache.rfs --DBDATA dbdata.rfs --IBL+PBL boot.bin --SBL Sbl.bin --PARAM param.lfs --KERNEL zImage --MODEM modem.bin
9. Heimdall will display the progress as it flashes so that you know things
are working as they should.
```
How to Create a Heimdall Firmware Package:
```
Firstly, Heimdall's firmware package format is just a regular TAR archive
compressed with gzip. The only two real requirements are that a valid
firmware.xml must be included (refer to Appendix A) and you can only
include files (no directories, links etc.) As such if you'd like there is
nothing preventing you from creating Heimdall packages manually. Of course
Heimdall Frontend provides a simple user interface that takes care of all
the hard work for you.
There are two ways in which you can create a firmware package. You can
create a package from scratch, or you can load an existing package, apply
modifications and then save the package. Creating a package from scratch
is the preferred approach, by taking this approach you're far less likely
to run into file name length limitations.
Before you can access Heimdall Frontend's firmware creation functionality
(available from the "Create Package" tab) you must first specify which
files will be included in your package, as well as a few flashing options
i.e. Whether or not users should repartition when flashing. This
information must be filled out from the "Flash" tab in exactly the same
fashion you would provide information to flash your device (see "Performing
a Custom Flash with Heimdall Frontend"). As mentioned above, it's not the
preferred means, but you're able to load an existing package as a starting
point for this information.
Once you've specified the files/partitions you wish to include in your
firmware package the "Create Package" tab will become available. Clicking
this tab will display additional information that you can include in your
package. In order to continue you must fill out all sections except for the
URLs section, which is optional. The following is a break-down of what all
these options mean.
```
For Odin:
Depending on what Odin version you are using it can be slightly different. A newer Odin version it is pretty simple:
Make sure your bootloader is current with the devices firmware or updated. Check the `u#` within the firmware zip/tar name.
1) unpack the .zip of the official firmware.
2) Start Odin.
3) connect your device through USB. Once connected a device should show up within the com box.
4) select AP, within the selection go to your unpacked firmware and select the tar.md file or tar file.
**Make sure you do not select/enable anything with the pit option.**
5) Once loaded push the start button and let it so it's thing.
It should take a bit or got to twenty minutes or more to boot. Once booted you should be good to go with the firmware.
If you have more than just a single tar or tar.md5 file then:
1) unpack the .zip of the official firmware.
2) the zip might include a variety of things (files) such as AP, BL, CP, CSC.
3) start Odin.
4) connect your device through USB. Once connected a device should show up within the com box.
5) select each of the different boxes and within the selection put the associated files in the correct box. The AP (system), BL (Bootloader), CP (Modem), CSC (Device Variant).
**Make sure you do not select/enable anything with thepit option.**
6) Once loaded push the start button and let it so it's thing.
Upvotes: 1 <issue_comment>username_2: Flashing the correct img solved the problem:
```
heimdall flash --RECOVERY TWRP-3.3.1.0_A20_V1.2_by_Agrim720\[Black-themed\].img.img
```
File was found here: [XDA-forum](https://forum.xda-developers.com/galaxy-a20/development/recovery-twrp-3-3-1-0-galaxy-a10-exynos-t4013481)
Device: A205GUBU4ASK2
Previously rooted with boot.img patched by [magisk](https://forum.xda-developers.com/showpost.php?p=80021195&postcount=4) and [vbmeta](https://forum.xda-developers.com/showpost.php?p=80168136&postcount=170) flashed:
```
heimdall flash --BOOT magisk_patched.img
heimdall flash --VBMETA vbmeta.img
```
I highly recommend to avoid Samsung devices. Motorola ones, e.g. are better for custom ROMs.
If device complains about "official binaries", [bypassing KG state](https://forum.xda-developers.com/galaxy-s8/how-to/how-to-bypass-rmm-prenormal-to-install-t3891193) is needed.
Upvotes: 3 [selected_answer] |
2020/02/03 | 1,284 | 4,545 | <issue_start>username_0: Help, I don't know what I did but after installing a custom ROM, I noticed that my system partition cannot be mounted as read/write.
I tried
-------
---
"mount -o rw,remount /system" command on a terminal emulator, ADB shell, and TWRP terminal
The command shows no feedback showing failure (maybe I succeeded?)
---
Mount it using the built-in TWRP mount function.
The system check box can be checked out (it doesn't retain its check mark on reboot)
---
Some apps that actually works according to sources and reviews.
Some say (Failure to mount..) Some say (System mounted as rw) some doesn't have feedback.
---
I don't know what to do.
I noticed this when I installed a custom ROM. I tried using another custom ROM but same thing. Also reformatting doesn't help. I don't know if this occur on the stock ROM.
---
For reference
Device: Xiaomi Mi A2
Android version: Android 10
Custom ROM: AICP nightly build 15.0<issue_comment>username_1: Android 10 prevents apps or pretty much anything from mounting system as R/W. Yes, even if you are rooted.
**<NAME>**, the creator of Magisk has covered this in a series of tweets. I will link them below for your reference. Your only way of tampering your system now would be using a systemless Magisk module. You can make your own or use some other module and inject files inside its folder before rebooting to apply that module.
1. Just confirmed that the inability to remount system (the directory "/" in system-as-root) to rw is something new in Android Q, NOT an issue with the new system-as-root approach Magisk is using in the canary builds. Will have to investigate further to find out how to deal with it. Source: <https://twitter.com/topjohnwu/status/1169720663201988611>
2. I found out that Android 10's system images are formatted with EXT4\_FEATURE\_RO\_COMPAT\_SHARED\_BLOCKS. It will deduplicate blocks in the filesystem to reduce the image size. On my Pixel XL, the partition is physically not large enough to successfully run 'e2fsck -E unshare\_blocks'. Source: <https://twitter.com/topjohnwu/status/1170404631865778177?lang=en>
3. As clearly stated in the name of the feature, that EXT4 shared blocks feature is RO (read-only). The inability to disable this feature due to lack of free space in the partition (at least on my Pixel XL) makes it literally impossible to ever mount the system partition as rw. Source: <https://twitter.com/topjohnwu/status/1170404633371525120>
4. I guess Google's justification to format partitions with this feature enabled is the introduction of overlayfs to "simulate" a writable partition.
**RIP to any mods or root apps that modify system. On Android 10 it seems system is either formatted as RO or using logical partitions**. Source: <https://twitter.com/topjohnwu/status/1170404634604658688>
5. BTW, just found this tidbit in Android's source code. They call these kind of filesystems "ext4 dedup". Other read-only filesystems they are aware of is squashfs (widely used in extremely constrained devices) and Huawei's EROFS. Source: <https://twitter.com/topjohnwu/status/1170443615077666816>
So, in short, you cannot R/W the system partition anymore with Android 10. The argument is just rejected.
Upvotes: 3 <issue_comment>username_2: I was having similar problems with Android 10 (Havoc OS / TWRP / Magisk 20.4) on an ASUS Max Pro M1. I wanted to remount /system so that I could edit /system/etc/hosts. I couldn't get adb to remount, though, and running "adb root" wouldn't work either.
Eventually I was successful, though, doing what I needed to do on the phone in a terminal, rather than using adb / debug mode. Here's what I did, including installing a file editor, since busybox can't install on Android 10 either:
1. Install Termux from the google play store.
2. Run Termux.
3. Type "pkg install vim".
4. Type "su", and grant permissions when the Magisk app prompts you.
5. Type "mount -o rw,remount /" #mount -o /system doesn't work, so you have to mount the whole filesystem in read/write mode.
6. If you want to use vim as root, you'll need to do this, too: "alias vi=/data/user/0/com.termux/files/usr/bin/vim" #let the shell know where to find the binaries for vim, since it's installed with termux. You may need to modify the path slightly depending on your phone; check first to confirm that's where it is.
7. Do your dirty work.
8. When finished, type "mount -o ro,remount /" to remount the filesystem as read only.
That should do it! I hope this works for you as well...
Upvotes: 0 |
2020/02/05 | 1,271 | 4,577 | <issue_start>username_0: I own a Samsung Galaxy Tab S6, and it's quite good... except for Samsung's software, which I would qualify as bloatware without hesitation.
I bought a cable that is able to move signal from USB-C ports to HDMI ports, and I connected my tablet to my TV using that cable.
The problem arrives when Samsung, in all its wisdom, refuses to just stream my screen, and insists on starting this Frankenstein thing of Dex. Even if the idea seems good, its execution is very poor, and all the software running on it becomes highly unstable, crashing all the time (when it does not have any problems running in basic mode).
And that's why I'm looking for some way to send my tablet screen to my TV while avoiding to activate Dex.
As an extra, I also considered using something like Chromecast Ultra, and in fact I did, but its streaming quality is just a disaster, and looses a lot of quality (hence my intention to go with simple cables).
Thank you for your attention.<issue_comment>username_1: Android 10 prevents apps or pretty much anything from mounting system as R/W. Yes, even if you are rooted.
**<NAME>**, the creator of Magisk has covered this in a series of tweets. I will link them below for your reference. Your only way of tampering your system now would be using a systemless Magisk module. You can make your own or use some other module and inject files inside its folder before rebooting to apply that module.
1. Just confirmed that the inability to remount system (the directory "/" in system-as-root) to rw is something new in Android Q, NOT an issue with the new system-as-root approach Magisk is using in the canary builds. Will have to investigate further to find out how to deal with it. Source: <https://twitter.com/topjohnwu/status/1169720663201988611>
2. I found out that Android 10's system images are formatted with EXT4\_FEATURE\_RO\_COMPAT\_SHARED\_BLOCKS. It will deduplicate blocks in the filesystem to reduce the image size. On my Pixel XL, the partition is physically not large enough to successfully run 'e2fsck -E unshare\_blocks'. Source: <https://twitter.com/topjohnwu/status/1170404631865778177?lang=en>
3. As clearly stated in the name of the feature, that EXT4 shared blocks feature is RO (read-only). The inability to disable this feature due to lack of free space in the partition (at least on my Pixel XL) makes it literally impossible to ever mount the system partition as rw. Source: <https://twitter.com/topjohnwu/status/1170404633371525120>
4. I guess Google's justification to format partitions with this feature enabled is the introduction of overlayfs to "simulate" a writable partition.
**RIP to any mods or root apps that modify system. On Android 10 it seems system is either formatted as RO or using logical partitions**. Source: <https://twitter.com/topjohnwu/status/1170404634604658688>
5. BTW, just found this tidbit in Android's source code. They call these kind of filesystems "ext4 dedup". Other read-only filesystems they are aware of is squashfs (widely used in extremely constrained devices) and Huawei's EROFS. Source: <https://twitter.com/topjohnwu/status/1170443615077666816>
So, in short, you cannot R/W the system partition anymore with Android 10. The argument is just rejected.
Upvotes: 3 <issue_comment>username_2: I was having similar problems with Android 10 (Havoc OS / TWRP / Magisk 20.4) on an ASUS Max Pro M1. I wanted to remount /system so that I could edit /system/etc/hosts. I couldn't get adb to remount, though, and running "adb root" wouldn't work either.
Eventually I was successful, though, doing what I needed to do on the phone in a terminal, rather than using adb / debug mode. Here's what I did, including installing a file editor, since busybox can't install on Android 10 either:
1. Install Termux from the google play store.
2. Run Termux.
3. Type "pkg install vim".
4. Type "su", and grant permissions when the Magisk app prompts you.
5. Type "mount -o rw,remount /" #mount -o /system doesn't work, so you have to mount the whole filesystem in read/write mode.
6. If you want to use vim as root, you'll need to do this, too: "alias vi=/data/user/0/com.termux/files/usr/bin/vim" #let the shell know where to find the binaries for vim, since it's installed with termux. You may need to modify the path slightly depending on your phone; check first to confirm that's where it is.
7. Do your dirty work.
8. When finished, type "mount -o ro,remount /" to remount the filesystem as read only.
That should do it! I hope this works for you as well...
Upvotes: 0 |
2020/02/08 | 593 | 2,407 | <issue_start>username_0: I've an Android 9 Samsung tablet. I've set up normal (I.e. not limited) accounts for my children. When the tablet reboot, the only account which is usable is mine. The others are greyed out. When I've logged in once, the other accounts are unlocked.
I'd like my children to be able to use the tablet after a reboot without me needing to log in. How can I achieve that?
I found [this question](https://android.stackexchange.com/questions/183542/how-can-i-allow-a-second-user-account-to-unlock-my-device-after-a-reboot) which seems similar but it has no answers.<issue_comment>username_1: It seems like by the primary user (here called "user 0") has to log in by definition as the first user. The documentation on the File Based Encryption (FBE) does not give many details on the question why:
>
> Each user in a multi-user environment gets a separate encryption key. Every user gets two keys: a DE and a CE key. User 0 must log into the device first as it is a special user. This is pertinent for Device Administration uses.
>
>
>
Source: <https://source.android.com/security/encryption/file-based#supporting-multiple-users>
Hence I don't see a chance to change this behavior, you can only teach your children not to reboot the tablet and not to switch it off. In air plane mode with really disabled Wifi the battery loss should be minimal so that the tablet can stay on even when it is not used for some days.
Upvotes: 4 [selected_answer]<issue_comment>username_2: Disabling FBE will get you what you want, though it seriously reduces the security of the device.
File Based Encryption (FBE) is called "Strong Protection" in the settings. On my tablet, you can disable it in Settings > Security > Other Security Settings > Strong Protection. (My tablet is a Samsung Galaxy running Android 11.) On some other devices it is under Biometrics And Security > Other Security settings.
I'm okay with disabling FBE, because the tablet is for my kids, who don't have much confidential information. But even in my case the tablet has all our Google passwords, because it's almost impossible to use an Android tablet without storing your Google password in a few apps.
(I deserve no credit for this answer, since it just combines information from comments. But I thought it would be nice to put the pieces together for someone who actually wants to change the setting.)
Upvotes: 1 |
2020/02/08 | 760 | 2,910 | <issue_start>username_0: Lately I've been playing around with .sh scripting in Android. At first I used [BusyBox](https://play.google.com/store/apps/details?id=com.jrummy.busybox.installer) and it's integrated scripting utility, though I quickly realised that coding on the phone isn't the best, so I switched over to my desktop and started using ADB to push my scripts to my device. It all worked well for about two weeks, until recently the exact same scripts that used to work perfectly, tell me some `: not found[0]: syntax error: '{` Error. I've copied the exact same code from my script and used BusyBox to create it for me, and that way it works just fine. So the code is fine.
After some digging, I think it's either because of permissions, because of encoding possibly, or also because of the location of the scripts. I've tried many different locations (because I want to be able to run the scripts without root), and ended up choosing `/storage/emulated/0`. If I understood correctly, this is a symlink to the internal storage, which is read/write-able without root. But maybe sometimes executable and sometimes not? I don't know.
So my question is as following: **What is the best location on an Android Device to run scripts without root from?** Preferably a path that works on any android device.
Info:
* Rooted Samsung S7 SM-G930F
* Android 8.0.0
* I'm using `#!/system/bin/sh` inside the .sh files
* I'm running the scripts with `sh script.sh`
* When trying to run it as an executable `./script.sh`, I get a `Permission denied` error. With or without root.
PS: And if anyone has a clue to why the exact same scripts stopped working out of nowhere, I'd be happy to know!
**UPDATE:** Thanks to @IrfanLatif, I've managed to fix the `: not found[0]: syntax error: '{` Error! I was using Visual Studio Code as my editor for the scripts, which was saving them with the End of Line Sequence `CRLF`, which Android doesn't like. For an easy fix, just change your Line Endings to `LF`, problem solved. Check the comments out for more info.<issue_comment>username_1: `/storage/emulated/0` is usually mounted in a way that prevents execution of programs from this location.
Therefore even with a set executable bit for your script you won't be able to execute it directly. Of course you can still execute it via sh:
```
/system/bin/sh /storage/emulated/0/test.sh
```
Alternatively there is the directory `/data/local/tmp` which is writable without root (e.g. via adb). There you can place a script and execute it directly.
Note: Listing the content of `/data` and `/data/local` is denied for non-root users, but in `/data/local/tmp` you have permissions again.
Upvotes: 4 [selected_answer]<issue_comment>username_2: I am using the [Pydroid3](https://play.google.com/store/apps/details?id=ru.iiec.pydroid3) app over the same device configuration.
`sh script.sh` seems to work in it.
Upvotes: 1 |
2020/02/09 | 623 | 2,370 | <issue_start>username_0: I would like to be able to send some kind of notification to my android using a remote shell script (SimpleSSHD running as root, so basically the same as an adb shell).
On an iOS device I can use the commands `cvibrate` to make the device vibrate and `sbalert` to display a notification via SSH. I would like to do the same, but on android.
It would be great if it could be an actual notification like any other app would invoke, but a way to just vibrate it would suffice aswell if both isn't possible on android.
This seems like a very simple task, but I've not been able to find a solution...<issue_comment>username_1: You can setup a Task in [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm) which you can invoke from command-line. The task can be setup with actions of your liking in combination, such as show a notification and [vibrate with XYZ pattern](https://tasker.joaoapps.com/userguide/en/help/ah_vibrate_pattern.html). When setting up a task in Tasker, setup the action like this: Alert → Notify
Fill up the fields as you like. Make sure to enable *Allow External Access* setting under Preferences → Misc, accessible from three-dots line on the right edge of top bar in Tasker's homescreen.
As for invoking the task from command line, run:
```
su -c am broadcast -a net.dinglisch.android.taskerm.ACTION_TASK --es "task_name" "YOUR_TASK"
```
Replace YOUR\_TASK with your task's name.
Tip: you can setup Tasker to show text of your liking in your notification by a bit more tricks. Setup a task to watch for a file for changes and assign an action to change the value of a tasker variable to the contents of that file. In your aforesaid vibration/notification task, when filling up the field for "text", assign that local variable instead. So next time, when invoking the task, change the contents of the file for a custom text notification before sending that command.
Tip2: it is also possible that send variable directly to a task using command-line, but I don't have much experience with it so you've got to ask uncle web.
Upvotes: 3 <issue_comment>username_2: Use cmd notification:
```
cmd notification post [flags]
```
If you are root notification will not be displayed:
```
su -lp 2000 -c "cmd notification post -S bigtext -t 'Title' 'Tag' 'Multiline text'"
```
Upvotes: 3 |
2020/02/09 | 706 | 2,571 | <issue_start>username_0: My Samsung Galaxy A70 prompted for a software update this morning. I dutifully complied and left it to get on with it.
Upon return, I was presented with the following error:
>
> partition tz
>
>
> Reason tz: Hash of data does not match digest in descriptor.2nd
>
>
>
Plus some other stuff about hash, firmware version, etc.
[](https://i.stack.imgur.com/dWumx.jpg)
To clarify, all I did was select to update. I didn't plug any cables in (as the image indicates), and I wasn't trying any manual firmware/software install.
It's still under warranty, so I'll probably just be taking back to the retailer, but I thought i'd ask here in the hope that there's a quick fix that won't invalidate the warranty.
Any suggestions?<issue_comment>username_1: You can setup a Task in [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm) which you can invoke from command-line. The task can be setup with actions of your liking in combination, such as show a notification and [vibrate with XYZ pattern](https://tasker.joaoapps.com/userguide/en/help/ah_vibrate_pattern.html). When setting up a task in Tasker, setup the action like this: Alert → Notify
Fill up the fields as you like. Make sure to enable *Allow External Access* setting under Preferences → Misc, accessible from three-dots line on the right edge of top bar in Tasker's homescreen.
As for invoking the task from command line, run:
```
su -c am broadcast -a net.dinglisch.android.taskerm.ACTION_TASK --es "task_name" "YOUR_TASK"
```
Replace YOUR\_TASK with your task's name.
Tip: you can setup Tasker to show text of your liking in your notification by a bit more tricks. Setup a task to watch for a file for changes and assign an action to change the value of a tasker variable to the contents of that file. In your aforesaid vibration/notification task, when filling up the field for "text", assign that local variable instead. So next time, when invoking the task, change the contents of the file for a custom text notification before sending that command.
Tip2: it is also possible that send variable directly to a task using command-line, but I don't have much experience with it so you've got to ask uncle web.
Upvotes: 3 <issue_comment>username_2: Use cmd notification:
```
cmd notification post [flags]
```
If you are root notification will not be displayed:
```
su -lp 2000 -c "cmd notification post -S bigtext -t 'Title' 'Tag' 'Multiline text'"
```
Upvotes: 3 |
2020/02/10 | 2,265 | 7,465 | <issue_start>username_0: I have two Android system users configured.
```
$ pm list users
Users:
UserInfo{0:Owner:13} running
UserInfo{10:security space:13} running
UserInfo{999:XSpace:800010} running
```
When the mobile is running at Android 8.1, I can access the secondary user's space `/storage/emulated/10` easily in `adb shell`.
But after I upgrade to Android 9, I can no longer do it:
```
$ ls /storage/emulated/10
ls: /storage/emulated/10: Permission denied
```
Any ideas how I can access my second user's space in `adb shell`?
Btw, my `/sdcard/` always points to the first user's space `/storage/emulated/0` at `adb shell` regardless what my current user is at mobile UI. The `adb shell` connection remains the same when I switch users at mobile UI too.
When I switch users at mobile UI level, my adb connection remains the same. And I do see the current user changes with the following command:
```
$ dumpsys activity | grep mCurrentUser
mCurrentUser=0
$ dumpsys activity | grep mCurrentUser
mCurrentUser=10
```<issue_comment>username_1: WHY IS ADB DENIED ACCESS TO MULTI-USER STORAGE?
-----------------------------------------------
Access to `/storage/emulated/10` is denied from `adb shell` due to [this change](https://android.googlesource.com/platform/system/vold/+/d7e51760430bc06617e7b42c77a8f4cfde80d041) in Android 9:
>
> *Add "default\_normal" support to `vold`.
>
> This new flag isolates each user on a multi-user device for security reasons.*
>
>
>
What the mount option `default_normal` does in `sdcardfs` is explained [here](https://android.googlesource.com/kernel/common/+/a56758feb0ba81d25de1edb7a5536a7042cc0a8f):
>
> *The `default_normal` option causes mounts with the gid set to `AID_SDCARD_RW` to have user specific gids, as in the normal case.*
>
>
>
The whole story is about Android's filesystem emulation in order to have a permission-less directory (`/sdcard`) which makes file sharing among multiple UNIX users (apps) possible. It's achieved through mount namespaces and different ***VIEWs*** of `/data/media` mounted in `/mnt/runtime/`. Apps belonging to secondary as well as primary user have **isolated mount namespaces**. For details please see [**What is the “u#\_everybody” UID?**](https://android.stackexchange.com/a/210159/218526) and [**What is /storage/emulated/0/?**](https://android.stackexchange.com/a/205494/218526).
>
> Btw, my `/sdcard/` always points to the first user's space `/storage/emulated/0` at `adb shell` regardless what my current user is at mobile UI.
>
>
>
For all native processes running in root mount namespace (including `adbd`), `/sdcard` is a symlink to `/storage/emulated/0` and `/storage/emulated` is bind mounted from `/mnt/runtime/default`. The device owner's (User\_ID: 0) files in `/storage/emulated/0` have ownership `root:sdcard_rw (0:1015)` and permission mode `0771`, while secondary profile/user's (say with User\_ID: 10) files in `/storage/emulated/10` have ownership `0:1001015`.
It means that non-root processes can read the directories only if they are members of supplementary groups: `0001015`, `1001015`, `11001015` and so on, *"others"* can only traverse the directories. Since `adbd` is [member of](https://android.googlesource.com/platform/system/core/+/refs/tags/android-9.0.0_r1/adb/daemon/main.cpp#108) only `1015` GID, it can read only device owner's files, not of secondary users.
However up to Android 8 there was an exception to the above rule: to all the processes running in root mount namespace (non-app processes), `sdcardfs` always returned the directories `/storage/emulated/[N]` owned by GID `1015`. So `adb` was able to read these directories. However the exception has been removed in Android 9 using mount option `default_normal`.
---
HOW TO ACCESS MULTIPLE-USERS FILES FROM `ADB`?
----------------------------------------------
**WITH ROOT ACCESS:**
You can mount the emulated filesystem without `default_normal` option:
```
~# umount /mnt/runtime/*/emulated
~# /system/bin/sdcard -u 1023 -g 1023 -m -w -G /data/media emulated
```
Or to make changes permanent, replace `sdcard` binary with a shell script:
```
~# cd /system/bin/; mv sdcard sdcard.bin; touch sdcard
~# chown 0.2000 sdcard*; chmod 0755 sdcard*
~# chcon u:object_r:system_file:s0 sdcard
~# chcon u:object_r:sdcardd_exec:s0 sdcard.bin
```
`/system/bin/sdcard` (remove `-i` argument passed by `vold`):
```
#!/system/bin/sh
set -- $(echo "$*" | sed 's/-i //')
/system/bin/sdcard.bin $*
```
After reboot you should be able to read files in `/storage/emulated/10` from `adb shell`.
**WITHOUT ROOT ACCESS:**
On Android 9+ filesystem level access to secondary users/profiles is not possible from `adb` on `user` builds of ROMs (i.e. without root). Only interaction through [`adb` commands](https://developer.android.com/studio/command-line/adb) which support `--user` option (`am`, `pm`, `content` etc.) is possible. Documented in [What’s in Android 9 for enterprise apps](https://developer.android.com/work/versions/android-9.0#developer_tools_access):
>
> *"To help keep work data in the work profile, the Android Debug Bridge (adb) tool can’t access directories and files in the work profile."*
>
>
>
If the files owned by secondary users are accessible to primary user (through `adb` or any other means, except through Device/Work Policy Controller app), it breaks the intended isolation between users/profiles which is controlled through Android APIs. See more details in [**How to share files between regular account and work account?**](https://android.stackexchange.com/a/221593/218526)
It should be noted that Android Debugging Bridge (`adb`) is meant to be used by developers for debugging, not by end users. That's why a fully-managed device owner can [completely disable](https://developer.android.com/reference/android/app/admin/DevicePolicyManager#setGlobalSetting(android.content.ComponentName,%20java.lang.String,%20java.lang.String)) `adb`.
There's a **suggested workaround** to transfer data with secondary users/profiles as explained in [Testing Multiple Users](https://source.android.com/devices/tech/admin/multi-user-testing#content-provider):
>
> *"`adb` (or more accurately the `adbd` daemon) always runs as the system user (user ID = 0) regardless of which user is current. Therefore device paths that are user dependent (such as `/sdcard/`) always resolve as the system user."
>
> ...
>
> "Access to `/sdcard` paths of secondary users is denied starting in Android 9."
>
> ...
>
> "Because `adb` runs as the system user and data is sandboxed in Android 9 and higher, you must use **content providers** to push or pull any test data from a nonsystem user."*
>
>
>
For instance to transfer `test.jpg` file to `/storage/emulated/10/Pictures/` run the following commands from `adb shell`:
```
~$ content insert --user 10 --uri content://media/external/images/media/ --bind _display_name:s:test.jpg
~$ ID=$(content query --user 10 --projection _id --uri content://media/external/images/media/ --where _display_name=\'test.jpg\' | grep -o '_id=[0-9]*' | cut -d= -f2)
~$ content write --user 10 --uri content://media/external/images/media/$ID < test.jpg
```
However it's not a practical approach for bulk data transfers on a regular basis.
Upvotes: 4 <issue_comment>username_2: Shared folder for all users is `/storage/emulated/*/Android/obb`
where `*` = userid
Upvotes: 0 |
2020/02/11 | 2,103 | 6,030 | <issue_start>username_0: I was trying to do [flash factory image](https://developers.google.com/android/images#instructions) on [angler](https://developers.google.com/android/images#angler) on my Nexus 6P. There is some `No space left on device` error:
```
./flash-all.sh # added set -x to script
+ fastboot flash bootloader bootloader-angler-angler-03.68.img
target reported max download size of 494927872 bytes
sending 'bootloader' (3544 KB)...
OKAY [ 0.127s]
writing 'bootloader'...
OKAY [ 0.208s]
finished. total time: 0.335s
+ fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.022s]
finished. total time: 0.073s
+ sleep 5
+ fastboot flash radio radio-angler-angler-03.81.img
< waiting for any device >
target reported max download size of 494927872 bytes
sending 'radio' (48728 KB)...
OKAY [ 1.283s]
writing 'radio'...
OKAY [ 2.174s]
finished. total time: 3.457s
+ fastboot reboot-bootloader
rebooting into bootloader...
OKAY [ 0.022s]
finished. total time: 0.072s
+ sleep 5
+ fastboot -w update image-angler-n2g48c.zip
extracting android-info.txt (0 MB)...
extracting boot.img (12 MB)...
target reported max download size of 494927872 bytes
archive does not contain 'boot.sig'
archive does not contain 'dtbo.img'
archive does not contain 'dt.img'
extracting recovery.img (17 MB)...
archive does not contain 'recovery.sig'
extracting system.img (2727 MB)...
W/ziparchive(66399): Zip: unable to allocate 2860210996 bytes at offset 0 : \
No space left on device
failed to extract 'system.img': I/O error
```
(space inserted by myself for better readability)
I suppose this is lacking space on the phone.
```
shell@angler: $ df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 1.4G 484.0K 1.4G 0% /dev
tmpfs 1.4G 0 1.4G 0% /mnt
/dev/block/dm-0 3.0G 1.8G 1.1G 62% /system
/dev/block/dm-1 196.6M 184.7M 8.0M 96% /vendor
/dev/block/platform/soc.0/f9824900.sdhci/by-name/cache
92.9M 1.8M 88.0M 2% /cache
/dev/block/platform/soc.0/f9824900.sdhci/by-name/persist
3.9M 740.0K 3.0M 20% /persist
/dev/block/platform/soc.0/f9824900.sdhci/by-name/modem
80.0M 47.5M 32.4M 59% /firmware
tmpfs 1.4G 0 1.4G 0% /storage
/dev/block/dm-2 53.5G 132.9M 52.9G 0% /data
df: /mnt/runtime/default/emulated: Permission denied
/data/media 53.5G 132.9M 52.9G 0% /storage/emulated
```
Using `fastboot` version `1:8.1.0+r23-5` from Debian, Android is `angler:8.1.0`.
Any idea what could be the problem?
Searching in the sources, it fails in `static void* unzip_file(ZipArchiveHandle zip, const char* entry_name, int64_t* sz)`
```
int error = ExtractToMemory(zip, &zip_entry, data, zip_entry.uncompressed_length);
if (error != 0) {
fprintf(stderr, "failed to extract '%s': %s\n", entry_name, ErrorCodeString(error));
free(data);
return 0;
}
```
<https://android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#505>
or in `static int unzip_to_file(ZipArchiveHandle zip, const char* entry_name)`
```
int error = ExtractEntryToFile(zip, &zip_entry, fd);
if (error != 0) {
fprintf(stderr, "failed to extract '%s': %s\n", entry_name, ErrorCodeString(error));
return -1;
}
```
<https://android.googlesource.com/platform/system/core/+/android-8.1.0_r73/fastboot/fastboot.cpp#628>
**UPDATE**: it looks like it's really lack of space on the laptop. Previously I had about 8GB, which I considered enough. After clear to have 17GB and trying to update different image image-angler-nmf26f.zip I got different error (probably related `/tmp` being `tmpfs`):
```
strace -o strace.log fastboot -w update image-angler-nmf26f.zip
extracting android-info.txt (0 MB)...
extracting boot.img (12 MB)...
target reported max download size of 494927872 bytes
archive does not contain 'boot.sig'
archive does not contain 'dtbo.img'
archive does not contain 'dt.img'
extracting recovery.img (17 MB)...
archive does not contain 'recovery.sig'
extracting system.img (2691 MB)...
archive does not contain 'system.sig'
archive does not contain 'vbmeta.img'
extracting vendor.img (194 MB)...
W/ziparchive(109113): Zip: unable to allocate 204079852 bytes at offset 0 : No space left on device
failed to extract 'vendor.img': I/O error
wiping userdata...
Couldn't parse erase-block-size '0x'.
Couldn't parse logical-block-size '0x'.
mke2fs 1.45.5 (07-Jan-2020)
/tmp/TemporaryFile-xaoMGH: Unimplemented ext2 library function while setting up superblock
/usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
mke2fs failed: 1
error: Cannot generate image for userdata
```<issue_comment>username_1: [According to the others](https://techpiezo.com/android/fastboot-error-mke2fs-failed-cannot-generate-image-for-userdata/) is `-w` option is somehow broken and should be replaced with `fastboot erase` , e.g.:
```
fastboot oem unlock
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader-angler-angler-03.68.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio-angler-angler-03.81.img
```
I the end I followed [Firelord suggestion](https://android.stackexchange.com/questions/114745/what-does-archive-does-not-contain-android-something-txt-mean/114775#114775) to unpack `image-angler-nmf26f.zip` (instead of flashing it) and flash all partitions manually:
```
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash vendor vendor.img
```
NOTE: running commands `fastboot erase` is not needed as `fastboot flash` erase system.
Upvotes: 0 <issue_comment>username_2: On Linux you can do `TMPDIR= ./flash-all.sh` to override where `fastboot` unzips to.
Upvotes: 2 |
2020/02/13 | 882 | 3,246 | <issue_start>username_0: `xapk`, `apks`, or `multiple-apks` is the new standard for apps that is basically one folder and multiple apks in it.
I know there are apps like apkpure or SAI that can do it, but I want to know how to it manually.
I know we can use `adb install-multiple` to install signed apks but if they are unsigned how can I do it if I have the root?
I used to be able to copy and paste single apk to `/system/priv-app/${folder}` to bypass the signature check but simply copying and pasting multiple apks under the same folder doesn't seem to work in this case.<issue_comment>username_1: For those who are trying to install XAPK files through `adb` because their XAPK Installer does not work on their Android phone, I've got you covered.
[You must have Android Debug Bridge (ADB) set up and working.](https://developer.android.com/studio/command-line/adb "Developer Android Documentation")
XAPK files are basically [ZIP Archive](https://en.wikipedia.org/wiki/ZIP_(file_format) "Wikipedia Article") files (described by their PK header at the beginning of the file)
This means we are able to open/extract those files using any ZIP tool that we have (I prefer [7-Zip](https://www.7-zip.org/ "Download Page"))
Once we have extracted the files from the archive, we are only interested in .APK files.
Open the Command Prompt/Terminal in the folder where you've extracted the archive,
and type the following command: `adb install-multiple "AppName.apk" "ConfigA.apk" "ConfigB.apk"`
### Notes
* The order of files in the command does not matter.
* AppName, ConfigA and ConfigB are examples, they will differ depending on the package.
* There might be more APK files, make sure to include them all.
* If there are several APK files with different architectures, make sure to check your phones CPU architecture before proceeding with installing the APK.
Upvotes: 4 <issue_comment>username_2: Here is a guide on how to install an XAPK file to your Android device via adb on a Windows machine:
1. Rename your `.xapk` file to `.zip`.
2. Unzip the file to a new folder.
3. In the new folder, you will see a few `.apk` files, and sometimes also a folder `Android` which includes a `.obb` file (you can ignore the following files: `icon.png` and `manifast.json`).
4. Open a [Command Prompt](https://www.lifewire.com/how-to-open-command-prompt-2618089) from within the new folder and run `adb install-multiple "com.application.name.apk" "config.one.apk" "config.xxhdpi.apk"` (these apk names are just an example; replace them with the apk names you see in your folder).
5. if your XAPK file contains a `.obb` file (you should see a folder named `Android`), then run also the following: `adb push Android\obb\com.application.name /storage/emulated/0/Android/obb/` (replace `com.application.name` with the name of the apk you are installing).
6. Done!
I also include a few notes from [@user337422](https://android.stackexchange.com/a/232725/327095)'s excellent answer:
* There might be more APK files, make sure to include them all.
* If there are several APK files with different architectures (example: `config.arm64_v8a.apk`), make sure to check your phone's CPU architecture before proceeding with installing the APK.
Upvotes: 3 |
2020/02/15 | 1,948 | 5,663 | <issue_start>username_0: I have tried `clean all` command in `Diskpart` and it took an hour to be completed but at the end nothing has changed. I think the SD card is locked and when I try to format or re-partition the disk, either it will show a successful result or it will return "Windows was unable to complete the format" error. I have tried to format it in Linux ([this answer](https://android.stackexchange.com/questions/196963/impossible-to-format-corrupted-sd-card-formatted-as-internal-storage)) and Android as well but no luck. Is there a way to reuse my SD card as a portable storage?
UPDATE: GParted details when I delete the partition
```
GParted 0.30.0 --enable-libparted-dmraid --enable-online-resize
Libparted 3.2
Delete /dev/mmcblk0p2 (unknown, 59.46 GiB) from /dev/mmcblk0 00:00:08 ( SUCCESS )
calibrate /dev/mmcblk0p2 00:00:00 ( SUCCESS )
path: /dev/mmcblk0p2 (partition)
start: 34816
end: 124735454
size: 124700639 (59.46 GiB)
delete partition 00:00:08 ( SUCCESS )
libparted messages ( INFO )
Input/output error during write on /dev/mmcblk0
========================================
Delete /dev/mmcblk0p1 (unknown, 16.00 MiB) from /dev/mmcblk0 00:00:01 ( SUCCESS )
calibrate /dev/mmcblk0p1 00:00:00 ( SUCCESS )
path: /dev/mmcblk0p1 (partition)
start: 2048
end: 34815
size: 32768 (16.00 MiB)
delete partition 00:00:01 ( SUCCESS )
========================================
```
GParted details when I try to format:
```
GParted 0.30.0 --enable-libparted-dmraid --enable-online-resize
Libparted 3.2
Format /dev/mmcblk0p1 as fat16 00:00:01 ( ERROR )
calibrate /dev/mmcblk0p1 00:00:00 ( SUCCESS )
path: /dev/mmcblk0p1 (partition)
start: 2048
end: 34815
size: 32768 (16.00 MiB)
clear old file system signatures in /dev/mmcblk0p1 00:00:00 ( SUCCESS )
write 512.00 KiB of zeros at byte offset 0 00:00:00 ( SUCCESS )
write 512.00 KiB of zeros at byte offset 16252928 00:00:00 ( SUCCESS )
write 4.00 KiB of zeros at byte offset 16711680 00:00:00 ( SUCCESS )
write 8.00 KiB of zeros at byte offset 16769024 00:00:00 ( SUCCESS )
flush operating system cache of /dev/mmcblk0 00:00:00 ( SUCCESS )
set partition type on /dev/mmcblk0p1 00:00:01 ( SUCCESS )
new partition type: fat16
create new fat16 file system 00:00:00 ( ERROR )
mkfs.fat -F16 -v -I '/dev/mmcblk0p1' ( EXECUTING )
Failed to execute child process “mkfs.fat” (Input/output error) ( ERROR )
========================================
Format /dev/mmcblk0p2 as fat32
```
Results for zeroing:
```
sudo dd if=/dev/zero of=/dev/mmcblk0 bs=8192
dd: error writing `dev/mmcblk0`: No space left on device
7795969+0 records in
7795968+0 records out
63864569856 bytes (64 GB, 59 CAB) copied, 3824.26 s, 16.7 MB/s
```
Results for [amd64-stdtool](https://github.com/BertoldVdb/sdtool/tree/master/static) status:
```
[+] Found RCA for /dev/mmcblk0: E624.
[+] Card CSD: 400E005A7B590001DED48F700R808006.
[+] Write protection state: Off.
```<issue_comment>username_1: For those who are trying to install XAPK files through `adb` because their XAPK Installer does not work on their Android phone, I've got you covered.
[You must have Android Debug Bridge (ADB) set up and working.](https://developer.android.com/studio/command-line/adb "Developer Android Documentation")
XAPK files are basically [ZIP Archive](https://en.wikipedia.org/wiki/ZIP_(file_format) "Wikipedia Article") files (described by their PK header at the beginning of the file)
This means we are able to open/extract those files using any ZIP tool that we have (I prefer [7-Zip](https://www.7-zip.org/ "Download Page"))
Once we have extracted the files from the archive, we are only interested in .APK files.
Open the Command Prompt/Terminal in the folder where you've extracted the archive,
and type the following command: `adb install-multiple "AppName.apk" "ConfigA.apk" "ConfigB.apk"`
### Notes
* The order of files in the command does not matter.
* AppName, ConfigA and ConfigB are examples, they will differ depending on the package.
* There might be more APK files, make sure to include them all.
* If there are several APK files with different architectures, make sure to check your phones CPU architecture before proceeding with installing the APK.
Upvotes: 4 <issue_comment>username_2: Here is a guide on how to install an XAPK file to your Android device via adb on a Windows machine:
1. Rename your `.xapk` file to `.zip`.
2. Unzip the file to a new folder.
3. In the new folder, you will see a few `.apk` files, and sometimes also a folder `Android` which includes a `.obb` file (you can ignore the following files: `icon.png` and `manifast.json`).
4. Open a [Command Prompt](https://www.lifewire.com/how-to-open-command-prompt-2618089) from within the new folder and run `adb install-multiple "com.application.name.apk" "config.one.apk" "config.xxhdpi.apk"` (these apk names are just an example; replace them with the apk names you see in your folder).
5. if your XAPK file contains a `.obb` file (you should see a folder named `Android`), then run also the following: `adb push Android\obb\com.application.name /storage/emulated/0/Android/obb/` (replace `com.application.name` with the name of the apk you are installing).
6. Done!
I also include a few notes from [@user337422](https://android.stackexchange.com/a/232725/327095)'s excellent answer:
* There might be more APK files, make sure to include them all.
* If there are several APK files with different architectures (example: `config.arm64_v8a.apk`), make sure to check your phone's CPU architecture before proceeding with installing the APK.
Upvotes: 3 |
2020/02/16 | 1,079 | 3,979 | <issue_start>username_0: I just bought a Google Pixel 3a phone, I cannot connect to xfinitywifi. I have no problem with many other Wi-Fi.
What happened is like this:
1. When I tap xfinitywifi at the Wi-Fi list, I can see that it comes to the phase of acquiring an IP address.
2. Then it shows I need to log in to the Wi-Fi.
At this point, I encountered several different problems:
* I am led to a sign-in page, `wifilogin.comcast.com`, but before I can finish typing user name, I am led back to the Wi-Fi list interface and it shows either "not connected" or "connected but no internet"
* I am led to that sign-in page, but before I even have a chance to type, it goes back to the Wi-Fi list interface
* It does not leave from the Wi-Fi list interface at all. I can see some notification at the top saying login is needed, but it does not change to that login page
At the first start of the phone, it asked me whether I want to transfer everything from my old LG phone to this phone, I did that. The LG phone connected to xfinitywifi automatically.
I tried the following:
* Open the browser and go to wifilogin.comcast.com, it only gives me a blank page
* Click Forget the wifi and re-connect
* Power down and on
* Go to setting and delete all the user credentials.
None of these works.
Any suggestion?<issue_comment>username_1: For those who are trying to install XAPK files through `adb` because their XAPK Installer does not work on their Android phone, I've got you covered.
[You must have Android Debug Bridge (ADB) set up and working.](https://developer.android.com/studio/command-line/adb "Developer Android Documentation")
XAPK files are basically [ZIP Archive](https://en.wikipedia.org/wiki/ZIP_(file_format) "Wikipedia Article") files (described by their PK header at the beginning of the file)
This means we are able to open/extract those files using any ZIP tool that we have (I prefer [7-Zip](https://www.7-zip.org/ "Download Page"))
Once we have extracted the files from the archive, we are only interested in .APK files.
Open the Command Prompt/Terminal in the folder where you've extracted the archive,
and type the following command: `adb install-multiple "AppName.apk" "ConfigA.apk" "ConfigB.apk"`
### Notes
* The order of files in the command does not matter.
* AppName, ConfigA and ConfigB are examples, they will differ depending on the package.
* There might be more APK files, make sure to include them all.
* If there are several APK files with different architectures, make sure to check your phones CPU architecture before proceeding with installing the APK.
Upvotes: 4 <issue_comment>username_2: Here is a guide on how to install an XAPK file to your Android device via adb on a Windows machine:
1. Rename your `.xapk` file to `.zip`.
2. Unzip the file to a new folder.
3. In the new folder, you will see a few `.apk` files, and sometimes also a folder `Android` which includes a `.obb` file (you can ignore the following files: `icon.png` and `manifast.json`).
4. Open a [Command Prompt](https://www.lifewire.com/how-to-open-command-prompt-2618089) from within the new folder and run `adb install-multiple "com.application.name.apk" "config.one.apk" "config.xxhdpi.apk"` (these apk names are just an example; replace them with the apk names you see in your folder).
5. if your XAPK file contains a `.obb` file (you should see a folder named `Android`), then run also the following: `adb push Android\obb\com.application.name /storage/emulated/0/Android/obb/` (replace `com.application.name` with the name of the apk you are installing).
6. Done!
I also include a few notes from [@user337422](https://android.stackexchange.com/a/232725/327095)'s excellent answer:
* There might be more APK files, make sure to include them all.
* If there are several APK files with different architectures (example: `config.arm64_v8a.apk`), make sure to check your phone's CPU architecture before proceeding with installing the APK.
Upvotes: 3 |
2020/02/16 | 848 | 3,178 | <issue_start>username_0: On the web application for desktop this is accomplished by navigating to the file, clicking on it, and pressing Shift + Z.
Is there a way to accomplish the same functionality on Android? Either within the Google Drive app or thru some other means?
NOTE: When I go to a file that's in multiple locations on the Google Drive app and go to: Options -> Details, then I can see all the locations the file is in, and also remove locations, but I can't seem to add locations from this menu.<issue_comment>username_1: For those who are trying to install XAPK files through `adb` because their XAPK Installer does not work on their Android phone, I've got you covered.
[You must have Android Debug Bridge (ADB) set up and working.](https://developer.android.com/studio/command-line/adb "Developer Android Documentation")
XAPK files are basically [ZIP Archive](https://en.wikipedia.org/wiki/ZIP_(file_format) "Wikipedia Article") files (described by their PK header at the beginning of the file)
This means we are able to open/extract those files using any ZIP tool that we have (I prefer [7-Zip](https://www.7-zip.org/ "Download Page"))
Once we have extracted the files from the archive, we are only interested in .APK files.
Open the Command Prompt/Terminal in the folder where you've extracted the archive,
and type the following command: `adb install-multiple "AppName.apk" "ConfigA.apk" "ConfigB.apk"`
### Notes
* The order of files in the command does not matter.
* AppName, ConfigA and ConfigB are examples, they will differ depending on the package.
* There might be more APK files, make sure to include them all.
* If there are several APK files with different architectures, make sure to check your phones CPU architecture before proceeding with installing the APK.
Upvotes: 4 <issue_comment>username_2: Here is a guide on how to install an XAPK file to your Android device via adb on a Windows machine:
1. Rename your `.xapk` file to `.zip`.
2. Unzip the file to a new folder.
3. In the new folder, you will see a few `.apk` files, and sometimes also a folder `Android` which includes a `.obb` file (you can ignore the following files: `icon.png` and `manifast.json`).
4. Open a [Command Prompt](https://www.lifewire.com/how-to-open-command-prompt-2618089) from within the new folder and run `adb install-multiple "com.application.name.apk" "config.one.apk" "config.xxhdpi.apk"` (these apk names are just an example; replace them with the apk names you see in your folder).
5. if your XAPK file contains a `.obb` file (you should see a folder named `Android`), then run also the following: `adb push Android\obb\com.application.name /storage/emulated/0/Android/obb/` (replace `com.application.name` with the name of the apk you are installing).
6. Done!
I also include a few notes from [@user337422](https://android.stackexchange.com/a/232725/327095)'s excellent answer:
* There might be more APK files, make sure to include them all.
* If there are several APK files with different architectures (example: `config.arm64_v8a.apk`), make sure to check your phone's CPU architecture before proceeding with installing the APK.
Upvotes: 3 |
2020/02/20 | 564 | 1,838 | <issue_start>username_0: I am looking for a SOCKS proxy server I can run on my Android phone. I could only find some commercial apps, but would prefer a FOSS alternative.
It does not need to be an app: a binary I can run from `adb shell` would work as well, but I'd prefer it if it does not require root.<issue_comment>username_1: Use SSH!
========
You can use the FOSS application [SimpleSSHD](https://f-droid.org/en/packages/org.galexander.sshd/) for this! You can get it directly from that link, the Google Play Store or using the [F-droid](https://f-droid.org) app store on your phone.
Once setup you can connect to your device using either your LAN or WAN IP from your PC like this:
```
ssh -D 8899 -p
```
The `-D` option sets up `a local "dynamic" application-level port forwarding`, which essentially makes ssh act like a SOCKS5 (SOCKS4 is supported as well) proxy server. SimpleSSHD will show the IP, selected port and password.
After this, you can set your proxy to `127.0.0.1:8899` on your PC. I've tested it with curl:
```
curl --socks5 127.0.0.1:8899 https://myip.is
```
And it worked! Note that I did not even need root for this, it worked as the normal android user.
Note that if you want to use your mobile network for this your cell provider might not let you connect to SSHD using the WAN IP. A VPN can circumvent this if necessary.
Upvotes: 3 [selected_answer]<issue_comment>username_2: If you want to get a SOCKS proxy of your mobile Internet, you can connect it over USB.
1. Go to developer settings, enable USB debugging
2. Connect USB cable
3. Install `adb`. In Debian, this is `sudo apt install adb`
4. Forward the port 2222 by doing `adb forward tcp:2222 tcp:2222`
5. Start the `sshd`
6. Set up proxy by doing `ssh -D 8899 127.0.0.1 -p 2222`, where 8899 is the desired port of your proxy.
Upvotes: 0 |
2020/02/21 | 660 | 2,643 | <issue_start>username_0: I ran into an issue with my Google Pixel 3a XL phone where it repeatedly crashed and rebooted. After looking into the issue, I remembered that the crashes started as soon as I connected to a specific Wi-Fi network.
The issue began as soon as I connected to it. I tried rebooting in Safe Mode to see if that fixed the problem, which initially disabled all networking features, but as soon as I switched them back on, the crashes started again. I was able to stop the crashes by disabling Wi-Fi immediately after the next restart, forgetting the network it was trying to connect to, then re-enabling Wi-Fi.
The issue seems to occur *only* when I connect to that *specific* Wi-Fi network; connecting to other networks doesn't create any problem. I was reading another help guide that said to reset the network settings to fix problems with it, but I doubt that will fix the issue as it just resets the saved networks. I already deleted the info about the problematic network by forgetting it, so I don't think this will resolve it.
The network is an unsecured network, and is a public network (so I don't have access to router info, etc.)
What could be causing the phone to crash and reboot when I connect to that *one specific* Wi-Fi network, and not any other network?<issue_comment>username_1: I have the exact same problem with my Google Pixel 2 XL. It happens only in one (secured) network. I have tried "Network Settings Reset" but it didn't help. The workaround we have found:
1. Boot into safe mode
1. Press and hold the power button
2. Touch and hold “Power off” button until view “Reboot to safe mode”
3. Press “OK” to boot into safe mode
2. Enable WiFi and connect to the problematic network
3. Restart to normal mode. It can connect to the network as long as it is remembered.
Upvotes: 0 <issue_comment>username_2: This is a known, supposedly fixed but not yet pushed into production issue for Wi-Fi networks utilizing 802.11k:
<https://issuetracker.google.com/issues/144381412>
See also:
<https://www.reddit.com/r/Pixel3/comments/f7mych/reboot_when_connecting_to_wifi/>
It has been more than a year and still unresolved in end user devices. I don't understand why it is taking this long especially considering:
* That they have supposedly fixed it in the code.
* How widespread this must be, as all devices are affected (even if most people may not realize it has to do with Wi-Fi, it took me a while to connect the dots). I am personally experiencing the same on a Pixel 3.
Please upvote and comment on the Google Bug tracker link above so Google can finally take care of this.
Upvotes: 2 |
2020/02/22 | 628 | 2,637 | <issue_start>username_0: For some reason, whenever someone calls me, the Samsung Galaxy S7 now shows the phone put, tells me to double-tap to unlock, then it does it a few seconds later. I have never seen this before, never wanted to double-tap.
I have gone to the talkback and it is off.
I don't know why it started doing this but how do I make it stop?<issue_comment>username_1: Go to Settings -> Display -> Double tap -> Turn on
double tap is enabled.
Upvotes: 1 <issue_comment>username_2: I have a Galaxy S7 SM-G930U and had the same issue. Both during incoming and outgoing phone calls my phone would display a padlock symbol and a message reading "Double tap to unlock." This would overlay the call information screen behind. When the message was displayed, I was unable to hear a ring or voice on the call.
The workaround was to quickly double-tap and press speaker to allow the phone call to function.
I had recently installed a new head phone jack inside the phone and had also received a software update. Trying new phone apps did not solve the problem, so I suspected it was a hardware issue. I went through all of the steps necessary to remove the back cover, disassemble the phone and removed and reattached the battery connection. I had taken this step to replace the headphone jack. Somehow the battery connection must have been loose because reattaching the battery solved the 'double-tap' issue for me. Disassembling your phone is a process, be careful, or take your phone to a shop to check it.
Upvotes: 0 <issue_comment>username_3: Also try this.
Go setting / accessibility / talkback. Turn off talkback. When talkback is on, it will prompt to double tap to unlock. But this double tap is using two finger and swipe up.
Upvotes: 1 <issue_comment>username_4: 0
I have a Galaxy S7 SM-G930T and had just changed the battery. When looking for an answer to the double tap to unlock problem, one answer suggested proximity sensor problem and then found Androi\_toulouse answer. Both these suggested to me that the problem might be with the ear speaker not being connected properly since that was what was not working even when I double tapped. Removing the back cover which I had only seal light at the sides, I inspected the area at the top end of the fone and found that the small top circuit board was not seated correctly. A couple of tabs at the top needed to be tucked under the frame. Remove the board and loosened 3 screws on the speaker/batt cover to lift and help accomodate the board so that it laid flat and secure. Turned the fone back on and made a call ... everything worked fine after that.
Upvotes: 0 |
2020/02/23 | 783 | 2,922 | <issue_start>username_0: I have an Android phone (Cosmo Communicator) with a keyboard but without function keys. On Windows or Linux, `ALT`+`F4` closes the application (well, window) that is focused.
Is there anything similar on Android (9.0 Pie)? I find it hard to believe this is impossible yet I was unable to google it out.<issue_comment>username_1: In my device (Redmi Note 5), we can force close the app by pressing the back button for about 3-5 seconds.
Upvotes: 0 <issue_comment>username_2: I'm on Android Pie as well, and under the keyboard settings (Language and Input), there is a physical keyboard section which lists out the shortcuts available ([example](https://www.amazon.com/clouddrive/share/RWI4P0VRH7N9JKS3kLtDnFapfRMt4SDASmH6vmIJO2O)). If your keyboard doesn't come with a function key, you may need to find a mobile equivalent to AHK that can bind a certain key input or combination to invoke the meta key input. Also note you may be able to send a keyinput event through ADB or your device's local shell terminal, which then might be made more accessible through various automation methods, some of which may have device-dependent factors.
Note: though it doesn't seem to appear on the list, I distinctly recall `Alt`+`F4` working with a keyboard? Will verify on current device when I get the chance.
Upvotes: 0 <issue_comment>username_3: I got a video projector a few months back that is running Android as a base OS, to which I attached a cheap wireless generic Windows keyboard. Projector is running some older versions of Android. Here is what works for me:
Note: Hold down the `Right-Alt` key the entire time:
* `Tab` to get a list of running apps.
* Pick the app to close, then `Down` arrow, then `Space` to actually close it.
* Repeat for other apps.
* When done, release `Right-Alt` key
`F3` also brings up the list of current apps, but it also seems to immediately context-switch to the selected app. The same happens when you `Alt`-`Tab` and don't hold down the `Alt` key.
Upvotes: 0 <issue_comment>username_4: **In Android 9:**
* To go home you can press the `Windows` key (if you have a keyboard for Windows) plus `Enter`
* Press the `Win` key plus `-`. Android will show you all shortcuts.
* Another way, if you already have plugged in your keyboard, go to "Settings" and search "Physical keyboard", there you will find configuration needed.
Upvotes: 1 <issue_comment>username_5: A spin on the [username_3](https://android.stackexchange.com/a/224123/370150)'s answer, tested on my Android TV.
* Hold `Alt` key entire time
* Press `Tab` key (app switcher will appear)
* With arrow keys, select an app that is running
* Press `Del` or `Backspace` to close the app
* Repeat for other apps
* You can press `Esc` to quit from the app switcher any time
* Release `Alt` key
Overall, this task-killing keyboard procedure is essentially the same as on Windows 10, for example.
Upvotes: 0 |
2020/02/25 | 835 | 2,916 | <issue_start>username_0: I am a Linux enthusiast and probable expert, and using it since 1993 on the command line (today with [zsh](https://zsh.org/)) (and Unix since 1987, SunOS3.2).
I personally have a Huawei tablet, details [here](https://android.stackexchange.com/q/216710/305984). With an SD card.
I also have a Logitech Bluetooth keyboard case for that tablet.
I need to be able to read some PDF documents on the tablet without a working internet connection. (at my work at [CEA/LIST](https://en.wikipedia.org/wiki/CEA-LIST:_Laboratory_for_Integration_of_Systems_and_Technology) - a quite bureaucratic organization since indirectly related to French nuclear warheads, I have a powerful Dell workstation with `root` access & Ethernet connection to the Internet under Debian/Unstable - so sometimes Xorg does not work properly -, but no access to the corporate Wifi; for the [clips-rule-gcc](https://github.com/bstarynk/clips-rules-gcc) project I prefer to read the [CLIPS](http://www.clipsrules.net/) documentation on my [BYOD](https://whatis.techtarget.com/definition/BYOD-bring-your-own-device) tablet).
If my tablet was good genuine Linux [Debian](https://debian.org/) system, I would just `wget http://clipsrules.sourceforge.net/documentation/v640/bpg.pdf` when Internet is available, and later `evince bpg.pdf` when it is not, taking advantage of `zsh` auto completion facilities.
What are the equivalent on Android 8 ?
My AppStore is google, and I was not yet able to root my tablet. Dreaming of that every day.<issue_comment>username_1: Did you tried [Termux](https://termux.com/)?
The terminal emulator for android, this does not require any root access either.
[](https://i.stack.imgur.com/K7wTZ.png)
Edit: to install `wget` type `pkg install wget` and press enter.
For pdf viewer use native android one such as [Mu Pdf](https://play.google.com/store/apps/details?id=com.artifex.mupdfdemo) or, [Google pdf viewer](https://play.google.com/store/apps/details?id=com.google.android.apps.pdfviewer)
Once installed you can try `xdg-open filename.pdf`
It will give you a list of the compatible app to open the file or else you can open the pdf viewer app to browse files of your choice.
Upvotes: 2 <issue_comment>username_2: the android cmd line language is MirBSD Korn Shell [mksh](http://www.mirbsd.org/mksh.htm) and default core utilities are FreeBSD or [toybox](http://www.landley.net/toybox) (and few android specific toolbox) applets
there is no dpkg or apt equivalent the closest is android package manager (commands `am` or `pm`)
default console is android debug bridge (like ssh) you need to enable usb-debugging in developer settings, connect to pc and install package `android-tools-adb` then you can start `adb shell` and authorize the ~/. android RSA-key by simply accept confirmation dialog on tablet
Upvotes: 1 |
2020/02/27 | 711 | 2,244 | <issue_start>username_0: I have `sparse.img` image with the following properties:
```
$ file sparse.img
sparse.img: Android sparse image, version: 1.0, Total of 2512896 4096-byte output blocks in 60 input chunks.
```
I want to see its contents so
* I have converted it into raw image.
* Created a new directory
* Trying to mount the raw image on to the directory
using the following commands:
```
$ simg2img sparse.img sparse_raw.img
$ mkdir raw
$ sudo mount -t ext4 -o loop sparse_raw.img raw
```
First two commands run fine and I can see `sparse_raw.img` generated of size larger than `sparse.img`.
Last command failed with an error:
>
> wrong fs type, bad option, bad superblock on /dev/loop27, missing codepage or helper program, or other error.
>
>
>
I think that may be the `sparse_raw.img` is not an `ext4` image but how can I sure about it?
I have tried to mount it as
* ext2, ext3 or without -t
* without -o loop
but nothing works.
Please suggest a way to fix it.<issue_comment>username_1: The ext4 feature (400) is the new metadata\_csum feature. If this feature is enabled and old tools are used to mount the filesystem they will only be able to mount read-only.
Try to mount it read-only:
```
$ sudo mount -t ext4 -o ro system.img.raw ~/mnt
```
Upvotes: 1 <issue_comment>username_2: The file system might not be in the beginning of the raw partition image.
First you need to convert the image from sparse to raw, using either `simg2img` or [sparse\_img\_to\_ext4.py](https://gist.github.com/Alex131089/bf51dcd70d96d4430d87451dec5ae6db).
Then, you need to find the beginning of the actual partition, [binwalk](https://github.com/ReFirmLabs/binwalk) is my favorite tool for that:
```
$ binwalk super.raw.img
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
1048576 0x100000 Linux EXT filesystem, rev 3.0, ext2 filesystem data, UUID=8f83745e-c212-5aab-a776-4aeed9fad9fa, volume name "/"
[...many many irrlevant hits...]
```
Now you can mount the file system using the first offset from the binwalk output:
```
sudo mount super.raw.img -t ext4 -o ro,loop,offset=0x100000 /media/super/
```
Upvotes: 4 [selected_answer] |
2020/02/28 | 742 | 2,617 | <issue_start>username_0: I was offered a Samsung Galaxy S6 Edge a few months ago and I discovered over time that applications installed themselves on my phone and performed operations in the background and my ins such as activate the microphone , play music or send sms. I tried several factory values reset but nothing changes, each time I have the internet connection activated they reinstall completely. This has the effect of heating my phone and reducing the life of the battery.
So I decided to flash my phone with an Official ROM that I did on SamMobile But when I launched the flash with Odin and my phone in download mode the operation failed!
I haven't been able to solve this problem for months already that's why I come here to ask for your help.
when the flash fails, my phone displays the error "SECURE CHECK FAIL: (BOOTLOADER)
I would like to make some clarifications:
- my phone is an SM-G925F (This is what is written behind it is also what is displayed in the settings)
- In download mode I rather see Product: name SM-G925L
- in the developer option, I don't find the "Unlock OEM" button
- When I click on "Software update" in my phone, nothing happens
- I don't know if it's important to specify it but I live in Cameroon
I need help please!
[](https://i.stack.imgur.com/3QH0k.jpg)<issue_comment>username_1: The ext4 feature (400) is the new metadata\_csum feature. If this feature is enabled and old tools are used to mount the filesystem they will only be able to mount read-only.
Try to mount it read-only:
```
$ sudo mount -t ext4 -o ro system.img.raw ~/mnt
```
Upvotes: 1 <issue_comment>username_2: The file system might not be in the beginning of the raw partition image.
First you need to convert the image from sparse to raw, using either `simg2img` or [sparse\_img\_to\_ext4.py](https://gist.github.com/Alex131089/bf51dcd70d96d4430d87451dec5ae6db).
Then, you need to find the beginning of the actual partition, [binwalk](https://github.com/ReFirmLabs/binwalk) is my favorite tool for that:
```
$ binwalk super.raw.img
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
1048576 0x100000 Linux EXT filesystem, rev 3.0, ext2 filesystem data, UUID=8f83745e-c212-5aab-a776-4aeed9fad9fa, volume name "/"
[...many many irrlevant hits...]
```
Now you can mount the file system using the first offset from the binwalk output:
```
sudo mount super.raw.img -t ext4 -o ro,loop,offset=0x100000 /media/super/
```
Upvotes: 4 [selected_answer] |
2020/02/29 | 1,760 | 5,551 | <issue_start>username_0: I own a Klipad KL4888 tablet running Android 6.0.1
After a crash, I had to do a factory reset and a wipe cache from the recovery menu.
However, when restarting and running the setupWizard, it asks me a Wifi/GSM, but systematically the message "Can't connect to the internet" appears.
So I went through ADB (the device is unfortunately not pre-rooted), and in the logs I noticed this :
```
02-28 23:03:25.995 2784 2929 I SetupWizard.CheckConnectionTask: connecting to walled garden server. retries=0
02-28 23:03:26.246 970 1174 D WifiService: acquireWifiLockLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@52836c}
02-28 23:03:28.123 970 1176 D WifiService: releaseWifiLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@52836c}
02-28 23:03:36.239 2784 2929 W SetupWizard.CheckConnectionTask: IOException e=java.net.SocketTimeoutException: failed to connect to status.eqoe.cn/185.234.212.233 (port 80) after 10000ms
02-28 23:03:36.239 2784 2929 I SetupWizard.CheckConnectionTask: connecting to walled garden server. retries=1
02-28 23:03:46.301 2784 2929 W SetupWizard.CheckConnectionTask: IOException e=java.net.SocketTimeoutException: failed to connect to status.eqoe.cn/185.234.212.233 (port 80) after 10000ms
02-28 23:03:46.301 2784 2929 I SetupWizard.CheckConnectionTask: connecting to walled garden server. retries=2
02-28 23:03:56.360 2784 2929 W SetupWizard.CheckConnectionTask: IOException e=java.net.SocketTimeoutException: failed to connect to status.eqoe.cn/185.234.212.233 (port 80) after 10000ms
02-28 23:03:56.360 2784 2929 I SetupWizard.CheckConnectionTask: connecting to walled garden server. retries=3
02-28 23:04:06.421 2784 2929 W SetupWizard.CheckConnectionTask: IOException e=java.net.SocketTimeoutException: failed to connect to status.eqoe.cn/185.234.212.233 (port 80) after 10000ms
```
I also tried to disable Wifi, in order to be able to choose the "Ignore" option but obviously not enough rights.
The problem is that this famous site that is being tested is obviously no longer reachable.
Is there any way to get out of this situation?
An upgrade, but is the hardware compatible?
Modify the Java sources, in order to ping another site?
Thank you !<issue_comment>username_1: I was stuck with the same device for 1 month.
I finally got rid of this by DNS cheating.
1. Setup your own DNS server
2. Add a primary zone named `status.eqoe.cn`
3. Add a ressource record A type on the zone with target `172.16.31.10` (IP found resolving `clients1.google.com`, setup android site)
4. Declare your own server as DNS in your wifi setup
5. Now setup your device and don’t forget to forget your wifi settings (in order to flush dns cache)
You will access standard google android setup, instead of unresponsive `eqoe.cn` one.
When your device is ready to work you can discard DNS setting on wifi setup
Upvotes: 3 [selected_answer]<issue_comment>username_2: I had this problem after factory resetting my Samsung Galaxy Tab 2 and trying to install a Marshmallow custom ROM (Slim6). The setup wizard successfully connected to wifi, but then hung at the 'Checking connection' stage, with no option to skip having to use wifi. The tablet doesn't have GSM, and there isn't any way of turning the wifi off before the setup wizard automatically starts.
I found a few potential solutions, hopefully at least one of which will be helpful to someone else:
1. Rename `SetupWizard.apk` so that it never starts. Using the TWRP custom recovery, mount the System partition read-write, then from Advanced/File Manager, navigate to `/system/priv-app/SetupWizard/` and delete or (safer) rename the `.apk` file.
2. Edit the `/system/build.props` file to make the wifi part of the setup wizard optional. I didn't actually try this, but you can use Advanced/Terminal in TWRP to get a command line that will let you edit the file, and [this gist](https://gist.github.com/eladkarako/5694eada31277fdc75cee4043461372e#file-tweaked_build-prop-L25) suggests some `ro.setupwizard` keys that look like they would do the job.
3. Try using a different GApps distribution, e.g. Open GApps or Delta GApps.
In my case, the first option worked, but it turned out that the real problem was that the version of GApps that I was using (Open GApps) wasn't compatible with my ROM; switching to Delta GApps fixed the problem with the setup wizard, as well as various other bugs.
Any of these options have the possibility of bricking your device if you get them wrong, hence I haven't described how to do them in detail. If you don't already know what TWRP or GApps are, or how to install them, then you need to do a lot more research first, until you are confident you understand the risks! Look for instructions that are specific to your model of device, and versions of the software that are known to work with it.
Upvotes: 1 <issue_comment>username_3: I had the "no internet" WiFi icon when the tablet came back from having the screen repaired. Internet worked, but automatic connections to WIFi didn't.
And then [recently] I started getting "open captive portal" messages
connect with adb shell:
```
adb shell
```
use superuser:
```
su
```
Check what setting is set (just out of curiosity):
settings get global captive\_portal\_server
```
status.eqoe.cn
```
I didn't bother with any of the fallback or http/https settings, I just did the following setting:
```
settings put global captive_portal_server "connectivitycheck.gstatic.com"
```
and it worked! That's a relief!
Upvotes: 1 |
2020/03/03 | 500 | 1,998 | <issue_start>username_0: Android (Stock android) has a feature that enables Android to support multiple user profiles. Note this has nothing to do with online accounts such as a Google account.
Within the phone you can define profiles and switch from one account to other effectively running apps and other staff separately.
This is what I mean: <https://www.howtogeek.com/333484/how-to-set-up-multiple-user-profiles-on-android/>
In practice I found out most phones disable this feature. For instance Samsung and Oppo devices do not have it. Others have it. In the specs of the phones they never mention this feature, i.e. by looking at the specs of a phone I cannot know if it is enabled or not.
Is there any way to get a list of all devices which offer this feature?<issue_comment>username_1: Many new phones that appear support this feature. the function is valid since android 5 but of course, it also depends on the device you have. All the new phones that appear like Samsung, Lenovo, Apple,.. support these functions. If you wanna be 100% sure go online and search for the phone you want to see the specifications.
Good luck!
Upvotes: 1 <issue_comment>username_2: **It's very rare, even impossible to find out whether multiple users feature is included on a specific model.**
From my experience, only a handful of manufacturers keep this feature turned on on their Android devices. Mostly not very famous Chinese brands like: Wieppo, Ulefone, Oukitel, and Oppo. *Why do other big manufacturers turn off this great feature of Android?* It is stupid.
The only fast and easy way to know whether a device is capable of running multiple users is to just see a working model in a shop and check if you can spot an avatar in the right corner or in Settings.
The bad thing is only with this current pandemic is that visiting an electronics or phone shop can be quite a hassle/dangerous.

Upvotes: 1 [selected_answer] |
2020/03/04 | 582 | 2,217 | <issue_start>username_0: Every time that I connect via USB my not-rooted Galaxy S6 (SM-G920F with stock Android 7.0) to my car (a Kia Soul 2015), this popup annoys me:
"The connected device is unable to access data on this device. Reconnect the USB cable and try again. Android File Transfer or Samsung Smart Switch..." and I have to touch "OK" to dismiss it.
I dismissed it so many times that at this point I have nightmares at night about this popup that tries to kill me wrapping itself around me and taking my breath away.
What I tried is to set "USB configuration" to "Charge this phone". In this case the popup doesn't appear when I plug the USB cable, but after a while, if I also have enabled "USB debugging" (that I need), the "USB configuration" reverts to "MTP (Media Transfer Protocol)" by itself and the popup reappear at the next cable plug. Double annoyance!
Any way to kill that popup definitely?
(My car in this case: Kia Soul 2015)<issue_comment>username_1: I have been dealing with this all year and finally figured out a solution! Here's the steps:
1. On your phone, go to settings.
2. Scroll down to and click on "about phone"
3. Click on "Software information"
4. Find "Build number", and click on it until you get a message that says that you're a developer. I think it's 10 times.
5. Go back
6. Go back
7. Scroll to the bottom and you should now see "developer options"
8. Scroll down and click on "default usb configuration"
9. Select "charging phone only"
10. Go back
DONE!
Upvotes: 3 [selected_answer]<issue_comment>username_2: I turned off USB Debugging and when I reconnect after that I don't see the popup anymore.
1. Settings > Developer Options (you have to enable Developer Options)
2. Developer Options > USB Debugging: Turn it off
3. Click Back
Then, disconnect and reconnect and you shouldn't see the popup anymore.
Except.. I don't really like leaving USB Debugging off.
Fixing the data access problem instead may require rebooting the computer you connected your phone to, or installing a working driver (OS-specific), or other things like replacing your USB cable with a fully working one.
Upvotes: 0 |
2020/03/04 | 1,026 | 3,727 | <issue_start>username_0: When I turn the screen off on an Android smartphone, I want battery life to be conserved. Thus, I don't want any third-party apps running in the background, and I don't want the device periodically turning on WiFi (or connecting via 2G/3G/4G/5G).
I set up a test Android Samsung smartphone running Android Nougat, and installed just 25 popular apps. I set all 25 apps to "Always Sleeping" in Settings. I then let the device sit for 8 hours with the screen turned off. During those 8 hours, the Android device connected to a WiFi router 59 times and transmitted/received data each time.
I don't want to turn on Airplane Mode, because I still want the device to be able to receive and log incoming phone calls.
Is there a way to accomplish this with Android (on a non-rooted device)?<issue_comment>username_1: I do it by disconnecting from data, WiFi & Bluetooth, then turning on airplane mode & power off.
Can also go to the dialer pad and dial `*#*#4636#*#*` (star-pound-star-pound-4636-pound-star-pound-star), tap phone information and scroll down to enable radios, and move the selector to the off position.
Upvotes: -1 <issue_comment>username_2: As discussed in comments
* You want to make sure that the device enters [doze](https://source.android.com/devices/tech/power/platform_mgmt#doze) mode *quickly* and disconnect wifi / mobile data when the screen is off. Aeroplane mode is not an option because you need to be able to make /receive calls.
* You can achieve that by [Naptime](https://play.google.com/store/apps/details?id=com.franco.doze) app:
>
> * Naptime lowers your device's power consumption while the display is off by empowering Android's built-in doze power saving functionality.
> * Faster idle means less power being consumed uneccessarily. By default doze can take a while to kick in so Naptime just speeds-up that process automagically for you.
> * It can also automatically disable W-iFi, mobile data, location & bluetooth as soon as doze kicks in.
>
>
>
In addition, Naptime can also help in enabling doze while in motion (phone in your pocket and you are walking).
It requires root but for unrooted devices it works with elevated privileges through `adb` commands given in app instructions.
This is a one time process and *need not* be applied on reboot (AFAIR).
* In addition, have a look at this question [How to tame "Phone Idle" battery drain on unrooted device?](https://android.stackexchange.com/q/191668/131553) for other apps that can help you. I would recommend you try [Wakelock Detector [LITE]](https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector.noroot&hl=en) ([XDA thread](https://forum.xda-developers.com/showthread.php?t=2179651)) which is handy in detecting apps that keep your device awake. It gives a better metric than the one you mentioned in question (make sure you follow the instructions).
You can identify such apps and decide on suitable alternatives.
* As a second line of defense, in case you aren't happy with Naptime, try, [Greenify](https://play.google.com/store/apps/details?id=com.oasisfeng.greenify) is another useful app that can come in handy to tame troublesome apps. This works with unrooted devices with `adb` privileged permissions. Alternatively, you have an open source app [Brevent](https://play.google.com/store/apps/details?id=me.piebridge.brevent) that works as well but `adb` privileged permissions are required after a reboot. IMHO, with improved Android battery management in recent versions, you may not need this line of defense at all.
* Also see this for more [Disable autostart on boot and restrict background execution](https://android.stackexchange.com/q/209327/131553)
Upvotes: 1 |
2020/03/06 | 455 | 1,797 | <issue_start>username_0: How does **Whatsapp** access my fingerprint?
WhatsApp did not ask permission to use my fingerprint.
Then how do they use my fingerprint for unlocking?<issue_comment>username_1: I just updated to 2.20.64 to check
WhatsApp does need fingerprint permission, under " `Use Fingerprint Hardware`" and `Use Biometric Hardware`"
You can check under permissions in Play Store - see "others"
Edit : If you are wondering why the app *doesn't ask* you explicitly for permission, the reason is simple - both the permissions quoted above are *normal* permissions for which user [approval is not required](https://developer.android.com/reference/android/Manifest.permission). Also see [Permissions Overview](https://developer.android.com/guide/topics/permissions/overview#normal-dangerous)
>
> If an app declares in its manifest that it needs a *normal* permission, the system *automatically grants the app that permission at install time*. The system doesn't prompt the user to grant normal permissions, and *users cannot revoke these permissions*
>
>
>
(Emphasis supplied)
See this [Stack overflow Question - Android nougat USE\_FINGERPRINT permissions](https://stackoverflow.com/questions/47428491/android-nougat-use-fingerprint-permissions#47429264), which states the same
Upvotes: 2 [selected_answer]<issue_comment>username_2: Any app including whatsapp cannot read/access your fingerprint data.
```
Your fingerprint data isn't shared with Google or any apps on your device.
Apps are notified only whether your fingerprint was verified.
```
source - <https://support.google.com/pixelphone/answer/6300638>
Android OS might be doing the moderation here. An App might access/store this data only when you register your fingerprint with the app directly.
Upvotes: 0 |
2020/03/06 | 721 | 2,577 | <issue_start>username_0: I brought a new phone recently (Blackview A60 Pro) and while calls and texts work fine, I can't access the internet. I spoke to my network provider (Talkmobile) who said that I need to add an APN.
However, for some reason, the option to add one is missing from my phone. There is no + sign and the 3 dots doesn't bring up an option to add an APN. The current APNs can't be edited as well. I've attached screenshots as well.
I downloaded myAPN but it didn't work on my phone and I'm not sure what else to do. Would really appreciate any help with this as I'm quite stuck and have tried everything.
[](https://i.stack.imgur.com/7vF2Hl.png)
[](https://i.stack.imgur.com/ydzOil.png)
.[](https://i.stack.imgur.com/MzwTYl.png)
[](https://i.stack.imgur.com/PbJt6l.png)<issue_comment>username_1: I just updated to 2.20.64 to check
WhatsApp does need fingerprint permission, under " `Use Fingerprint Hardware`" and `Use Biometric Hardware`"
You can check under permissions in Play Store - see "others"
Edit : If you are wondering why the app *doesn't ask* you explicitly for permission, the reason is simple - both the permissions quoted above are *normal* permissions for which user [approval is not required](https://developer.android.com/reference/android/Manifest.permission). Also see [Permissions Overview](https://developer.android.com/guide/topics/permissions/overview#normal-dangerous)
>
> If an app declares in its manifest that it needs a *normal* permission, the system *automatically grants the app that permission at install time*. The system doesn't prompt the user to grant normal permissions, and *users cannot revoke these permissions*
>
>
>
(Emphasis supplied)
See this [Stack overflow Question - Android nougat USE\_FINGERPRINT permissions](https://stackoverflow.com/questions/47428491/android-nougat-use-fingerprint-permissions#47429264), which states the same
Upvotes: 2 [selected_answer]<issue_comment>username_2: Any app including whatsapp cannot read/access your fingerprint data.
```
Your fingerprint data isn't shared with Google or any apps on your device.
Apps are notified only whether your fingerprint was verified.
```
source - <https://support.google.com/pixelphone/answer/6300638>
Android OS might be doing the moderation here. An App might access/store this data only when you register your fingerprint with the app directly.
Upvotes: 0 |
2020/03/06 | 508 | 2,055 | <issue_start>username_0: My playstore is not working from my device. Whenever trying to download or update, it just shows 'waiting for downalod' and that loading bar spins forever around the app logo. No i do not have any connection issues. My internet is strong enough, and to check, I have used other wifi and also cellular data. I have tried already clearing data, disabling and enabling, restarting, reset settings etc. Please help!<issue_comment>username_1: I just updated to 2.20.64 to check
WhatsApp does need fingerprint permission, under " `Use Fingerprint Hardware`" and `Use Biometric Hardware`"
You can check under permissions in Play Store - see "others"
Edit : If you are wondering why the app *doesn't ask* you explicitly for permission, the reason is simple - both the permissions quoted above are *normal* permissions for which user [approval is not required](https://developer.android.com/reference/android/Manifest.permission). Also see [Permissions Overview](https://developer.android.com/guide/topics/permissions/overview#normal-dangerous)
>
> If an app declares in its manifest that it needs a *normal* permission, the system *automatically grants the app that permission at install time*. The system doesn't prompt the user to grant normal permissions, and *users cannot revoke these permissions*
>
>
>
(Emphasis supplied)
See this [Stack overflow Question - Android nougat USE\_FINGERPRINT permissions](https://stackoverflow.com/questions/47428491/android-nougat-use-fingerprint-permissions#47429264), which states the same
Upvotes: 2 [selected_answer]<issue_comment>username_2: Any app including whatsapp cannot read/access your fingerprint data.
```
Your fingerprint data isn't shared with Google or any apps on your device.
Apps are notified only whether your fingerprint was verified.
```
source - <https://support.google.com/pixelphone/answer/6300638>
Android OS might be doing the moderation here. An App might access/store this data only when you register your fingerprint with the app directly.
Upvotes: 0 |
2020/03/06 | 383 | 1,540 | <issue_start>username_0: I am looking for a good way to lock the screen on my phone without using a physical button (the botton is on the edge of dying so I am preserving it for turning the phone on).
I would like to lock the phone by movement or tapping somewhere on the touch screen.
(I prefer it if this can be done without using external apps but if necessary I prefer free ones without ads.)
The f-Droid app [FLock](https://f-droid.org/en/packages/ryey.flock/) seems like it would have been ideal, but it crashes before I even have the chance to test it ().<issue_comment>username_1: The app [Lock](https://f-droid.org/en/packages/name.seguri.android.lock/) works but a downside is that afterwards the phone cannot be unlocked using a fingerprint, only using the pattern. (Also it is not available from within other apps. So a movement activated solution would be better.)
Upvotes: 1 <issue_comment>username_2: There's a built-in option that comes with Android 10 which allows you to lock the screen without using the bottom.
In your phone settings, go to "Accessibility" and enable "accessibility menu".
This will now put an icon on the the right side of your navigation bar. Pressing on the icon will bring up a menu, with one of the options as "lock screen". Pressing on that will lock your screen just like pressing the power button would. You also have the option to power off the phone in that same menu.
See screenshot below.
Upvotes: 4 [selected_answer] |
2020/03/11 | 504 | 1,374 | <issue_start>username_0: I am using [SimpleSSHD](https://f-droid.org/en/packages/org.galexander.sshd/) and doing `scp` to transfer files from my computer to my Redmi phone.
My question is that after I have copied files to `data/user/0/org.galexander.sshd/files`, how do I access them, such as with a File Manager?<issue_comment>username_1: Don't ever copy files out of `/sdcard/`, for this task you should leave the files where they are. In order to copy files using SimpleSSHD, simply connect and copy: assuming you've left the default port of `2222` you can do this,
SCP File Transfer
-----------------
```
host=192.168.1.228
scp -r "scp://root@${host}:2222//sdcard/DCIM/OpenCamera" .
```
RSYNC over SSH File Transfer
----------------------------
```
host=192.168.1.228
rsync --progress -ave 'ssh -p 2222' "root@${host}:/sdcard/DCIM/OpenCamera" .
```
Upvotes: 2 [selected_answer]<issue_comment>username_2: On my phone the mountpoint of the external SD card is not `/sdcard/`, but `/storage/XXXX-XXXX/`.
e.g.:
```
HWVNS-H:/data/data/org.galexander.sshd/files $ ls -la /storage/C42F-10F5/
total 480
drwxrwx--- 16 root everybod 32768 Jan 1 1970 .
drwxr-xr-x 5 root root 100 Feb 25 08:56 ..
drwxrwx--- 5 root everybod 32768 Dec 22 2020 Android
drwxrwx--- 4 root everybod 32768 Nov 22 16:36 DCIM
...
```
Upvotes: 0 |
2020/03/12 | 2,355 | 7,564 | <issue_start>username_0: Recently, Google made security changes which make sure [safety-net](/questions/tagged/safety-net "show questions tagged 'safety-net'") fails check when Magisk is installed.
This was Tweeted by <NAME> (Magisk developer) , [here](https://mobile.twitter.com/topjohnwu/status/1237656703929180160) and [here](https://mobile.twitter.com/topjohnwu/status/1237830555523149824). Some excerpts:
>
> So here we go, after years of fun messing around using Magisk, it seems that Google FINALLY decided to "fix" SafetyNet to something useful, and that is to use key attestation to verify device status (after 3 years since introduced to Android's platform!)
>
>
> **Let's face it. Fun is over guys.**
>
>
>
(Emphasis added)
**Edit:** From [Github](https://github.com/topjohnwu/Magisk/commit/612b51d48f9771a65cfab045f931573f42d3a494)
>
> **Disable MagiskHide by default**
>
>
> Since SafetyNet CTS is impossible to achieve, leaving MagiskHide on
> by default no longer serves a purpose.
>
>
> For more details regarding the latest SafetyNet changes, please check:
> <https://twitter.com/topjohnwu/status/1237656703929180160>
> <https://twitter.com/topjohnwu/status/1237830555523149824>
>
>
> MagiskHide's functionality will continue to exist within the Magisk
> project as it is still extremely effective to hide modifications in
> userspace (including SafetyNet's basicIntegrity check).
>
>
> Future MagiskHide improvements *may* come, but since the holy grail
> has been taken, any form of improvement is now a very low priority
>
>
>
It looks to me that Google could/should have implemented this earlier but didn't and the CTS check being done from within Magisk wasn't comprehensive.
Please demystify this in simple terms (to the extent possible) for folks who don't understand the innards of Android (like me).<issue_comment>username_1: It appears that Google may have chosen not to enforce this checking, even though it was implemented for a short while (a few days?). At first, the Magisk developer, <NAME>, sounded quite pessimistic about it, going even so far as to say that the fun was over.
A few days after the tweets from <NAME> that were referenced in the question, however, on March 14, <NAME> [tweeted again](https://twitter.com/topjohnwu/status/1238514375150850048?lang=en), and this time he said
>
> So apparently CTS is just passing again out of nowhere? Maybe Google is still testing things out?
>
>
> I'm over it anyways. Google is apparently willing to use key attestation for detection. Since MagiskHide is still there, people can still always use it as usual.
>
>
>
In my own test in late May 2020, with MagiskHide not enabled, SafetyNet failed, but with MagiskHide enabled and targetting my test app, SafetyNet passed, meaning that MagishHide could still defeat SafetyNet. The test was run on a Pixel 3 with android 10.
So, Google may have the capability to detect Magisk, since the boot loader check had been moved into the TEE, but they have somehow stopped doing that, for reasons known only to Google.
Upvotes: 2 <issue_comment>username_2: This is the latest (as on 30 August 21) on safety net.
[What are the changes in Magisk?](https://android.stackexchange.com/q/241285/131553)
---
<NAME> (Magisk Developer) posted [updates today](https://twitter.com/topjohnwu/status/1277474811220910080?s=20), which clarifies the reasons.
Earlier, SafetyNet API wasn't fully / correctly implemented, the way it was meant to be :
* [Key Attestation](https://twitter.com/topjohnwu/status/1237656704537395201?s=20)
>
> From what we've seen so far, key attestation **doesn't seem to be fully enforced** yet, as devices with incompatible, potentially buggy(?) keymaster implementations (e.g. some OnePlus devices) that result in attest key cmd failures still pass SafetyNet regardless.
>
>
>
* Attestation was [done locally](https://twitter.com/topjohnwu/status/1237670017954504704?s=20)
>
> bootloader reports the device status via kernel cmdlines, and init will reflect them in properties, and apparently SafetyNet was using those values. All those stuff is in userspace, so **Magisk can simply manipulate it**
>
>
>
Now, with the [Feature Preview: SafetyNet Attestation API evaluationType](https://groups.google.com/forum/m/#!topic/safetynet-api-clients/lpDXBNeV7Fg), there will be two types of evaluation, `BASIC` and `HARDWARE_BACKED` for a complete evaluation with remote validation (as against local) :
>
> HARDWARE\_BACKED - When we use the available hardware-backed security features of the **remote device** (e.g. hardware-backed key attestation) to influence our evaluation.
>
>
>
>
> We’re currently evaluating and adjusting the eligibility criteria for devices where **we will rely on hardware-backed security features.**
>
>
>
Can this new system be hacked?
==============================
**Looks very unlikely**
* Even if we force validation to use `BASIC` method, [it won't be hidden](https://twitter.com/topjohnwu/status/1277477259020955650?s=20)
>
> IMO it is theoretically possible to alter control flow in SafetyNet's code to force it to always use BASIC evaluation by using some hooking framework like Xposed, however these kind of code injection is **basically impossible to hide** (memory space analysis).
>
>
>
* `HARDWARE_BACKED` is serious stuff and [unlikely to be cracked](https://twitter.com/topjohnwu/status/1237656705225248768?s=20) since it involves [TEE](https://source.android.com/security/trusty) or hardware changes leading to cryptographic compromise (Robert also pointed out [in comments](https://android.stackexchange.com/questions/221976/magisk-will-fail-safety-net-hereafter-why#comment287703_221976))
>
> To hack this thing, you have to either find a **vulnerability in TEE firmware** (which will be patched ASAP once found) **or hardware** (less likely to happen) to break the cryptography.
>
>
>
>
> Breaking TEE won't be easy, which is why many security researchers are actively working on it.
>
>
>
(Emphasis added in all quotes)
How to check if Google has implemented hardware Attestation for my device?
==========================================================================
**Edit** Magisk canary has been updated to show evaluation status and once the API is implemented, you will see more details (failing SafetyNet). Or, follow instructions on this XDA post to [check attestation method using logcat](https://forum.xda-developers.com/showpost.php?p=82935207&postcount=40370)
[](https://i.stack.imgur.com/cXa9x.jpg)
For more information see [SafetyNet's hardware attestation will make hiding root in Magisk really hard](https://www.xda-developers.com/safetynet-hardware-attestation-hide-root-magisk/amp/)
---
Edited on 16 December 20
And the final nail in the coffin for fooling safety net detection
=================================================================
Johnwu in
* [tweet](https://twitter.com/topjohnwu/status/1337860804788436993) says
>
> HW based evaluation is impractical to "hack" (except tricks to make it fallback to basic), and I lost all interest in improving the current way of hiding.
>
>
>
* Another [tweet](https://twitter.com/topjohnwu/status/1337852287117475840) of 13 Dec 2020
>
> If passing SafetyNet is the only use of Magisk for you, then yeah, bye Face with rolling eyes
> ( in response to *So... magisk is completely useless right now?...*)
>
>
>
Upvotes: 4 [selected_answer] |
2020/03/15 | 1,168 | 4,624 | <issue_start>username_0: I'm quite confused about Samsung's "App Power Management" page.
There seems to be several overlapping settings:
1. Adaptive Battery - Limit battery for apps that you don't use often
2. Put apps to sleep - put apps to sleep when they haven't been used for a while
3. Sleeping Apps - These apps won't run in the background
4. Deep Sleeping Apps - ...will never run in the background...
5. Apps that won't be put to sleep
Here's my guess interpretation:
* (1) & (2) sound like exactly the same setting. I'm assuming (1) is the stock Android 10 implementation whereas (2) is the custom Samsung version that possibly predates Android 10 and potentially more aggressive? Honestly I'm not sure why they're keeping both.
* Same goes for (3) & (4). Both sound the same to me. It looks like again maybe (3) is the original OS setting and (4) is some Samsung thing.
* I'm assuming (5) is an exclusion list for apps that won't be picked up by (1) & (2)
* None of these settings are related to Doze mode and even putting an app under (5) doesn't disable dozing for that app.
Would love to get more details if you have them.
Edit: Galaxy 20<issue_comment>username_1: This is an educated *guess*, based on my interests in battery related things.
* Android Pie [introduced five buckets](https://developer.android.com/about/versions/pie/power), to classify apps, as a part of power management, in the sense app restrictions (and therefore battery usage) are based on the buckets they belong to. Exact implementation is left to OEMs (that's why I said "guess").
Briefly:
>
> * **Active:** App currently being used.
> * **Working Set:** An app is in the working set bucket if it runs often but it is not currently active. Example, social media apps
> * **Frequent:** used regularly, but not necessarily every day. For example, a workout-tracking app.
> * **Rare:** not often used. For example, a hotel app that the user only runs while they're staying at that hotel.
> * **Never:** installed but never run are assigned to the never bucket.
>
>
>
Apart from this, we have [doze](/questions/tagged/doze "show questions tagged 'doze'") and battery optimization (found in battery settings). With this as background:
1. **Adaptive Battery** This is an AI feature which learns from usage, in terms of when (at what time) is an app used, what is the frequency, and things like screen brightness etc. Aim is to use AI and the buckets together to optimize battery and user experience
>
> put AI at the core of the operating system and focuses on intelligent and simple experiences.
>
>
>
For more see [What is exactly "Adaptive battery", and what does it mean for app developers?](https://stackoverflow.com/q/50342864)
2. **Put apps to sleep:** This is battery optimization and you can select apps to be included or excluded. This is also linked to doze. Let's say your screen off is set to 5 minutes and your browser is selected to be a part of this set of apps. After screen off, and a certain interval, doze kicks in and your browser background activities are paused.
3. **Apps that won't be put to sleep:** If you *exclude* an app from battery optimization, it will function when screen is off and not be affected by doze. For example it may be your music player.
4. **Deep sleeping apps:** This is advanced battery optimization found in some OEMs and is a pain point at times for users and developers. AFAIK, all OEMs don't have this. [Don't kill my app.com](https://dontkillmyapp.com/) gives examples of how badly this optimize and advanced optimization hurt for different OEMs.
5. **Apps that won't be put to sleep:** may be system apps like alarm (you can't let that go to sleep) or user apps like VPN, alarm etc.
To reiterate, I don't have a Samsung device but I am fairly sure that the description above is correct in broad terms. Corrections by way of posting answers are welcome.
Upvotes: 3 <issue_comment>username_2: To properly answer this:
Sleeping apps - These apps won't run in the background. They may not receive updates or send notifications
This means they cannot be started in the background state. The user must open them before anything can happen.
Deep Sleeping apps - Deep sleeping apps will never run in the background. They'll only work when you open them
This means even if you open the app, and leave the app (home button) they will be shut down after a few minutes, or when screen shuts off. They also cannot be started in the background state.
Sleeping apps work like normal if you open them, deep sleeping apps only work when you are interacting with them.
Upvotes: 0 |
2020/03/16 | 973 | 3,732 | <issue_start>username_0: I updated my OnePlus 6 to Android 10 (OxygenOS 10.3.2) recently and having a hard time to use it because of the horizontal overview navigation introduced from Android 9.
I am in want of replacing horizontal overview/recent apps navigation with vertical one (as was available till Android 8).
In Android 9, the trick for my stock ROM was to replace OnePlus launcher with an older version from Android 8 build. However, this trick doesn't work on Android 10 anymore. Neither does disabling or removing the stock OnePlus launcher. It just disables Overview functionality at my face than.
I primarily use Nova launcher. I have tried to use one or two other launchers from Play Store in the hope that they might bring vertical overview on the table, but all at vain.
So, how do I bring back vertical overview in Android 10 in OnePlus 6?
Note 1: I am only looking for answers as solutions that does the job I am asking for. Nothing else.
Note 2: the device is rooted with Magisk.<issue_comment>username_1: This is a workaround and *not* what the OP wants in terms of vertical recents ( I don't think it's possible for reasons mentioned at the end of answer).
* Install EdXposed ([How to install EdXposed on Android 10 without triggering safety net](https://android.stackexchange.com/q/218179/131553)), [Xposed Edge Pro](https://forum.xda-developers.com/xposed/modules/xposed-edgepro-v2-0-release-t3525566) at a minimum and [Gravity Box for 10 (beta)](https://forum.xda-developers.com/xposed/modules/app-gravitybox-v10-0-0-beta-1-android-10-t3974497) (preferred).
* In Xposed Edge Pro, enable gestures and select any edge (if you choose edge covered by keyboard, make sure in app preferences, to enable) where you want the gestures to be triggered (right bottom in the screenshot) and associate *running apps drawer* action with the gesture.
[](https://i.stack.imgur.com/Iv8hVl.jpg)
[](https://i.stack.imgur.com/njQcZl.jpg)
(Click to enlarge)
* When you activate the gesture, it shows running apps which is far more easier way of accessing recent apps instead of multiple horizontal swipes.
[](https://i.stack.imgur.com/1Gzdbl.jpg)
(Click to enlarge)
* You are done but you need to remember to activate the gesture *but* muscle memory tells you to tap the recent icon. If you want to associate running apps drawer with tapping the recents icon, you needn't select the gesture as described above. In Gravitybox Navigation keys action → Single tap action → Custom action → Shortcuts → Xposed Edge Pro actions → running apps drawer
* Lastly, my guess as to why what OP wants cannot happen unless the OnePlus launcher is modified, somehow. You can see the launcher in the screenshot above (second row, second icon) but you don't see that using Nova recents. It's reasonable to assume that a third party launcher works with the support of OnePlus launcher and unless the base is modified, you won't get vertical apps. The trick (of installing old version of OnePlus launcher) didn't work probably because of compatibility with Android 10. If you try to freeze or uninstall OnePlus launcher, the recents key doesn't work. This further supports my theory but I haven't investigated further.
Upvotes: 2 <issue_comment>username_2: Samsung has a tool to modify the UI called Good Lock in both galaxy store and play store. Within that there is an tool called "Task Changer" that let me change the recent app list to a verticle style as before in earlier Android versions. I'm also using Nova.
Upvotes: 0 |
2020/03/16 | 1,319 | 4,656 | <issue_start>username_0: I am trying to install an apk that contains armeabi-v7a native libraries, on an emulator with KVM enabled. When I try to install the apk on to the running device I am facing this error: `Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]`
As per <https://developer.android.com/studio/releases/emulator#30-0-0> the error above shouldn't occur on Android 9 or 11
>
> Android 11 system images
> You can now create an AVD that runs Android 11 by selecting either of the available API level 30 system images:
>
>
> x86: Includes both x86 and ARMv7 ABIs.
> x86\_64: Includes x86, x86\_64, ARMv7 and ARM64 ABIs.
> Support for ARM binaries on Android 9 and 11 system images
> If you were previously unable to use the Android Emulator because your app depended on ARM binaries, you can now use the Android 9 x86 system image or any Android 11 system image to run your app – it is no longer necessary to download a specific system image to run ARM binaries. These Android 9 and Android 11 system images support ARM by default and provide dramatically improved performance when compared to those with full ARM emulation.
>
>
>
My environment is `Ubuntu 18.04 (LTS)`
Here are some of my setup commands:
tools `https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip`
`sdkmanager --install "system-images;android-28;default;x86" "emulator" "platform-tools" "platforms;android-28"` (at this step feel free to replace `x86` with `x86_64`)
Note I have tried with google-apis/playstore services and it allows the installation but fails at runtime.
`avdmanager create avd -n "x86" -k "system-images;android-28;default;x86"` (same steps of replacement apply)
`emulator @x86 -no-boot-anim -noaudio -no-window -verbose -wipe-data -partition-size 1024 -qemu -enable-kvm`
Is it something I'm missing? editing the `build.prop` file doesn't help.<issue_comment>username_1: This is a workaround and *not* what the OP wants in terms of vertical recents ( I don't think it's possible for reasons mentioned at the end of answer).
* Install EdXposed ([How to install EdXposed on Android 10 without triggering safety net](https://android.stackexchange.com/q/218179/131553)), [Xposed Edge Pro](https://forum.xda-developers.com/xposed/modules/xposed-edgepro-v2-0-release-t3525566) at a minimum and [Gravity Box for 10 (beta)](https://forum.xda-developers.com/xposed/modules/app-gravitybox-v10-0-0-beta-1-android-10-t3974497) (preferred).
* In Xposed Edge Pro, enable gestures and select any edge (if you choose edge covered by keyboard, make sure in app preferences, to enable) where you want the gestures to be triggered (right bottom in the screenshot) and associate *running apps drawer* action with the gesture.
[](https://i.stack.imgur.com/Iv8hVl.jpg)
[](https://i.stack.imgur.com/njQcZl.jpg)
(Click to enlarge)
* When you activate the gesture, it shows running apps which is far more easier way of accessing recent apps instead of multiple horizontal swipes.
[](https://i.stack.imgur.com/1Gzdbl.jpg)
(Click to enlarge)
* You are done but you need to remember to activate the gesture *but* muscle memory tells you to tap the recent icon. If you want to associate running apps drawer with tapping the recents icon, you needn't select the gesture as described above. In Gravitybox Navigation keys action → Single tap action → Custom action → Shortcuts → Xposed Edge Pro actions → running apps drawer
* Lastly, my guess as to why what OP wants cannot happen unless the OnePlus launcher is modified, somehow. You can see the launcher in the screenshot above (second row, second icon) but you don't see that using Nova recents. It's reasonable to assume that a third party launcher works with the support of OnePlus launcher and unless the base is modified, you won't get vertical apps. The trick (of installing old version of OnePlus launcher) didn't work probably because of compatibility with Android 10. If you try to freeze or uninstall OnePlus launcher, the recents key doesn't work. This further supports my theory but I haven't investigated further.
Upvotes: 2 <issue_comment>username_2: Samsung has a tool to modify the UI called Good Lock in both galaxy store and play store. Within that there is an tool called "Task Changer" that let me change the recent app list to a verticle style as before in earlier Android versions. I'm also using Nova.
Upvotes: 0 |
2020/03/18 | 912 | 3,340 | <issue_start>username_0: I have some old backups of my older phones (samsung galaxy S4 / i9500). One of them is a Nandroid backup, one is ADB, and i guess the third one is an Android Image created most probably by ODIN (.tar.md5 file). Since I dont have the mobile device with me anymore, is there a way i can extract my personal data (especially sms) from those backups directly in my Windows 10 Home edition PC ?
My Nandroid backup has the following files:
```
boot.img, cache.ext4.tar, data.ext4.tar, efs.ext4.tar, modem.img,
nandroid.md5, preload.ext4.tar, recovery.img, recovery.log, system.ext4.tar
```<issue_comment>username_1: This is a workaround and *not* what the OP wants in terms of vertical recents ( I don't think it's possible for reasons mentioned at the end of answer).
* Install EdXposed ([How to install EdXposed on Android 10 without triggering safety net](https://android.stackexchange.com/q/218179/131553)), [Xposed Edge Pro](https://forum.xda-developers.com/xposed/modules/xposed-edgepro-v2-0-release-t3525566) at a minimum and [Gravity Box for 10 (beta)](https://forum.xda-developers.com/xposed/modules/app-gravitybox-v10-0-0-beta-1-android-10-t3974497) (preferred).
* In Xposed Edge Pro, enable gestures and select any edge (if you choose edge covered by keyboard, make sure in app preferences, to enable) where you want the gestures to be triggered (right bottom in the screenshot) and associate *running apps drawer* action with the gesture.
[](https://i.stack.imgur.com/Iv8hVl.jpg)
[](https://i.stack.imgur.com/njQcZl.jpg)
(Click to enlarge)
* When you activate the gesture, it shows running apps which is far more easier way of accessing recent apps instead of multiple horizontal swipes.
[](https://i.stack.imgur.com/1Gzdbl.jpg)
(Click to enlarge)
* You are done but you need to remember to activate the gesture *but* muscle memory tells you to tap the recent icon. If you want to associate running apps drawer with tapping the recents icon, you needn't select the gesture as described above. In Gravitybox Navigation keys action → Single tap action → Custom action → Shortcuts → Xposed Edge Pro actions → running apps drawer
* Lastly, my guess as to why what OP wants cannot happen unless the OnePlus launcher is modified, somehow. You can see the launcher in the screenshot above (second row, second icon) but you don't see that using Nova recents. It's reasonable to assume that a third party launcher works with the support of OnePlus launcher and unless the base is modified, you won't get vertical apps. The trick (of installing old version of OnePlus launcher) didn't work probably because of compatibility with Android 10. If you try to freeze or uninstall OnePlus launcher, the recents key doesn't work. This further supports my theory but I haven't investigated further.
Upvotes: 2 <issue_comment>username_2: Samsung has a tool to modify the UI called Good Lock in both galaxy store and play store. Within that there is an tool called "Task Changer" that let me change the recent app list to a verticle style as before in earlier Android versions. I'm also using Nova.
Upvotes: 0 |
2020/03/24 | 1,475 | 4,754 | <issue_start>username_0: Howto downgrade any app to the previous version without losing data on android 8.1 ?
EDIT 0 : Nota Bene : Here, Fairemail is given as an example, my question is not app specific but Android specific. I'm actually asking how to downgrade any app to it's **previous release** having already downloaded the apk.
Here is the information of the package [eu.faircode.email](https://f-droid.org/packages/eu.faircode.email/) I want to push to downgrade :
```
$ du -h eu.faircode.email_1036.apk
13M eu.faircode.email_1036.apk
$ aapt2 dump badging eu.faircode.email_1036.apk | egrep '^$|package|[s]dkVersion:|application-label:|native-code:'
package: name='eu.faircode.email' versionCode='1036' versionName='1.1036' platformBuildVersionName='' platformBuildVersionCode='' compileSdkVersion='29' compileSdkVersionCodename='10'
sdkVersion:'21'
application-label:'FairEmail'
native-code: 'arm64-v8a' 'armeabi-v7a' 'x86' 'x86_64'
```
I tried to reinstall this app without data-loss :
```
$ adb install -r -d eu.faircode.email_1036.apk
Performing Streamed Install
adb: failed to install eu.faircode.email_1036.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
```
but it didn't work, so I tried the un-installation of this app without data loss and it worked :
```
$ adb uninstall -k eu.faircode.email
The -k option uninstalls the application while retaining the data/cache.
At the moment, there is no way to remove the remaining data.
You will have to reinstall the application with the same signature, and fully uninstall it.
If you truly wish to continue, execute 'adb shell cmd package uninstall -k'.
$ adb shell cmd package uninstall -k eu.faircode.email
Success
```
But then the installation of `eu.faircode.email_1036.apk` didn't :
```
$ adb install eu.faircode.email_1036.apk
Performing Streamed Install
adb: failed to install eu.faircode.email_1036.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
$ adb install -d eu.faircode.email_1036.apk
Performing Streamed Install
adb: failed to install eu.faircode.email_1036.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
$ echo $?
1
```
It seems `adb install -d` is only use-able with debuggable packages only according to this :
```
$ adb | grep downgrade
-d: allow version code downgrade (debuggable packages only)
```
Can you help me ?<issue_comment>username_1: What you want is not possible and for a good reason: updated data structures (files, database, etc) are often incompatible with old app versions. This is why you can downgrade debuggable packages (for development purposes) only.
If you have a problem with FairEmail, please report it in this forum:
<https://forum.xda-developers.com/android/apps-games/source-email-t3824168>
Upvotes: 2 <issue_comment>username_2: If your device is rooted, there's a work-around (apply at your own risk – as Marcel [correctly pointed out](/a/222304/16575), there's a reason why it's made close to impossible):
1. install [titanium-backup](/questions/tagged/titanium-backup "show questions tagged 'titanium-backup'")
2. backup the app you want to downgrade
3. uninstall the app you want to downgrade (completely, i.e. app & data)
4. install the older version
5. use Titanium Backup to restore *data only*
This worked for me in several cases. No guarantees however: if the newer version changed structures in its databases/configuration, you will end up with an unstable app – and later updates might fail (in those cases, use TiBu to restore the *full backup* you made originally – so make sure to keep that one safe).
Upvotes: 2 <issue_comment>username_3: Nokia TA-1041, android 8.0.0.
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5ubuntu2
Ubuntu 20.04.3 LTS x86\_64
Kernel: 5.13.0-40-generic
I actually met a similar problem, when downgrading the WeChat from 8.0.18 to 7.0.21. I tried `adb install -r -d` and `adb install -r -t -d`, both of them does not work, with the error [INSTALL\_FAILED\_VERSION\_DOWNGRADE].
However, I tried this method, it works. <https://moreless.medium.com/how-to-downgrade-an-android-app-without-losing-chat-history-afea00141601>
1. `adb shell cmd package uninstall -k` to uninstall package.
2. `adb reboot` to reboot your phone.
3. `adb install` to install a lower version app.
Note that the reboot is very important, this step could not be avoided. I actually tried `adb shell cmd package uninstall -k` before reading the page above. But as long as I do not reboot, the lower version could not be installed, with the error [INSTALL\_FAILED\_VERSION\_DOWNGRADE].
Additionally, <https://blog.csdn.net/u012852597/article/details/108814434> from this article, it seems that you could also try to copy the apk file to '/data/local/tmp/' and install the apk.
Upvotes: 0 |
2020/03/26 | 1,065 | 3,677 | <issue_start>username_0: My phone (Nokia 7.1, Android 10) downloaded a Google Security Patch update over night and asked me to reboot the system for installing the patch. But after the reboot, it said that the system is corrupted and the phone needs a factory reset. I don't want to lose the data on the phone.
I can get the phone into Download mode and communicate to it via fastboot and I tried to use adb to sideload the original Android 10 image (29ad19....zip, which is build 4\_08D), but it won't let me install it because the build timestamp is older than my current system's build timestamp and it refuses to let me downgrade.
I tried re-installing the latest security patch (4\_08F) from [here](https://t.me/s/nokiarepoen) via adb but the system says that this patch was meant for 4\_08E not 4\_08F. This is confusing because if the system had trouble installing this patch in the morning, it should have stuck with 4\_08E, right?
My questions to the community are as follows:
1) Can I force my phone to downgrade and install an older system without losing my data? If so, could someone point me to the correct instructions?
2) Are there newer updates for Nokia 7.1 that I've not found which I should be trying to install?
Thanks!<issue_comment>username_1: What you want is not possible and for a good reason: updated data structures (files, database, etc) are often incompatible with old app versions. This is why you can downgrade debuggable packages (for development purposes) only.
If you have a problem with FairEmail, please report it in this forum:
<https://forum.xda-developers.com/android/apps-games/source-email-t3824168>
Upvotes: 2 <issue_comment>username_2: If your device is rooted, there's a work-around (apply at your own risk – as Marcel [correctly pointed out](/a/222304/16575), there's a reason why it's made close to impossible):
1. install [titanium-backup](/questions/tagged/titanium-backup "show questions tagged 'titanium-backup'")
2. backup the app you want to downgrade
3. uninstall the app you want to downgrade (completely, i.e. app & data)
4. install the older version
5. use Titanium Backup to restore *data only*
This worked for me in several cases. No guarantees however: if the newer version changed structures in its databases/configuration, you will end up with an unstable app – and later updates might fail (in those cases, use TiBu to restore the *full backup* you made originally – so make sure to keep that one safe).
Upvotes: 2 <issue_comment>username_3: Nokia TA-1041, android 8.0.0.
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5ubuntu2
Ubuntu 20.04.3 LTS x86\_64
Kernel: 5.13.0-40-generic
I actually met a similar problem, when downgrading the WeChat from 8.0.18 to 7.0.21. I tried `adb install -r -d` and `adb install -r -t -d`, both of them does not work, with the error [INSTALL\_FAILED\_VERSION\_DOWNGRADE].
However, I tried this method, it works. <https://moreless.medium.com/how-to-downgrade-an-android-app-without-losing-chat-history-afea00141601>
1. `adb shell cmd package uninstall -k` to uninstall package.
2. `adb reboot` to reboot your phone.
3. `adb install` to install a lower version app.
Note that the reboot is very important, this step could not be avoided. I actually tried `adb shell cmd package uninstall -k` before reading the page above. But as long as I do not reboot, the lower version could not be installed, with the error [INSTALL\_FAILED\_VERSION\_DOWNGRADE].
Additionally, <https://blog.csdn.net/u012852597/article/details/108814434> from this article, it seems that you could also try to copy the apk file to '/data/local/tmp/' and install the apk.
Upvotes: 0 |
2020/03/27 | 1,410 | 5,338 | <issue_start>username_0: **Updated with more information -- please see below**
I have an unrooted LG X Power running Android 6.0.1. I have recently gone through Google Photos (using a desktop web browser) and deleted a bunch of videos, but even though Photos tells me that they will be removed from my devices, they remain on my phone, and I can't seem to get rid of them. When I try to delete them using the Photos app on the phone, I get the error message:
>
> **Can't delete [x] items**
>
>
> Photos doesn't have access to delete items on your SD card. Go to the Gallery app to continue deleting.
>
>
>
But I don't even *have* a Gallery app on my phone! Moreover, when I use a file browser to see what's on my SD card, there is no trace of them; they do not appear in the DCIM > Camera directory (although my photos do).
Where are these videos hiding? I suspect they are hidden somewhere in my internal storage, as I am rapidly running out of storage space, but the DCIM > Camera directory in my internal storage is completely empty, and I can't seem to find any other large directory. Why doesn't deleting them from Google Photos remove them from my phone? And why does Photos keep telling me to use a nonexistent Gallery app to delete them?
**Edited to add:** As far as I can tell, Photos *does* have permission to access the SD card; it says so in Preferences, and is able to *save* photos and videos there with no problem. It only throws up an error message when I try to *delete*. Furthermore, the error seems to affect photos and videos taken recently; older photos and videos (which were all taken on a different phone) can be deleted with no difficulty.
**Further updates:** Well, I found them! The files are *not* on my SD card, but rather are in my internal storage. But the plot thickens:
* Using the [DiskUsage app by <NAME>](https://play.google.com/store/apps/details?id=com.google.android.diskusage) I was able to find the files hidden in my DCIM folder on my internal storage (which is odd, because Photos keeps telling me that it can't delete them because it doesn't have access privileges for my SD card... which it does... but anyway...). The folder, according to this app, contains about 5.9 GB of media. (There's also a Podcasts folder with 1.33 GB that I'd like to get rid of, also...) See screenshot below, then keep reading for more of the mystery!
[](https://i.stack.imgur.com/h7Pyd.png)
* When I try to delete the files (whether one at a time, or the whole folder at once) I get an error message: "Error: file wasn't deleted." No additional information about *why* the file wasn't deleted is provided. See screenshots 2 and 3 below, then keep reading for more info!
[](https://i.stack.imgur.com/4fLgh.png) [](https://i.stack.imgur.com/mAhkv.png)
* To further compound my frustrations, the files (and folders) in question *don't show up* when I use other file browsers. Here, for example, is what I see in Android File Transfer (see my last screenshot below). Notice that the DCIM folder exists, but is essentially empty, except for a few thumbnails; the Podcasts folder isn't shown at all. I get similar results when I use the stock File Manager app on my phone, and when I use this [other File Manager app](https://play.google.com/store/apps/details?id=com.alphainventor.filemanager), and when I use [Files By Google](https://play.google.com/store/apps/details?id=com.google.android.apps.nbu.files): none of these apps show the existence of the files in question at all. And yet they're there, taking up space, visible in DiskUsage.
I'm hoping that with this additional information, someone can help me figure out how to finally delete these damn files. I could really use that 7 GB of space back.
[](https://i.stack.imgur.com/PaI1a.png)<issue_comment>username_1: Using [SD Maid - system cleaning tool](https://play.google.com/store/apps/details?id=eu.thedarken.sdm) (free version) to *clean* the device and delete those files using built-in file explorer solved the problem for OP. From app description
>
> Nobody is perfect and neither is Android.
>
>
> Apps you have already removed leave something behind.
>
>
> Logs, crash reports and other files you don't really want are constantly being created.
>
>
> Your storage is collecting files and directories you don't recognize.
>
>
>
That said, I have no clue of what exactly caused the problem and why other apps couldn't delete the files. Or how this app fixed the underlying issue.
I am not affiliated with the app. I've been happily using the pro version for years with scheduled operations to keep the device clean.
Upvotes: 3 [selected_answer]<issue_comment>username_2: I suggest you try deleting the files with Total Commander.
Note (perhaps related):
It happened to me before that I have removed all files in a `.thumbnails-XXXXXXX` folder (about 900Mb), and they were actually gone (as opposed to your case, where you see your files persist).
But that space was never recovered. And I found others reporting the same issue.
Upvotes: 0 |
2020/03/29 | 2,573 | 7,843 | <issue_start>username_0: I couldn't find a guide online to root my Oppo Realme 2 (RMX1805, Color OS Version 6.0, Android Version 9). So how can I root my Oppo Realme 2?
Update: I have unlocked my bootloader following the instructions [here](https://forum.xda-developers.com/realme-2/how-to/guide-to-unlock-bootloader-realme-c1-t3966734).<issue_comment>username_1: first step is unlock bootloader, which you have done already. i will post this step as mandatory
**1) unlock bootloader: WARNING all data lost**
* download latest [platform-tools](https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads) to PC
* enable [OEM unlocking](https://www.thecustomdroid.com/enable-oem-unlocking-on-android) in developer options
* reboot device into bootloader mode (keep holding `Volume Down` while rebooting or power on device with `Volume Down` + `Power`)
* connect device with usb cable and install [usb drivers](https://developer.android.com/studio/run/win-usb) for PC
* navigate to folder `platform-tools` from [cmd.exe](https://www.howtogeek.com/235101/10-ways-to-open-the-command-prompt-in-windows-10)
* unlock bootloader from fastboot (confirm with `Volume Up`)
```
fastboot devices
fastboot flashing unlock
```
---
**2) boot custom recovery without modifying/flashing device**
* download custom recovery [TWRP](https://www.cyanogenmods.org/twrp-recovery-for-realme-2-download) into `platform-tools` folder
* boot TWRP from fastboot (do not flash)
```
fastboot boot twrp.img
```
* **DO NOT swipe** to allow modifications of system
* wait 30 seconds then install adb [usb drivers](https://developer.android.com/studio/run/win-usb) for PC
* tap the icon `≡` lower right corner and check the log for
**a)** `Data successfully decrypted` (or no error)
**b)** `Failed to mount '/data'`
---
**3) dump the current boot partition from device** (depending on mounting `/data` a) successful or b) failed)
* **a**) backup `boot.emmc.win` from TWRP
+ *TWRP* - tap *Backup* - select *Boot* partition
+ copy `TWRP/BACKUPS` folder to PC via [MTP](https://thegeekpage.com/fix-mtp-not-working-in-windows-10)
* **b**) backup `boot.img` from adb
```
adb devices
adb pull /dev/block/bootdevice/by-name/boot boot.emmc.win
```
---
**edit:** (other method)
* **c) extract boot.img from OTA (stock ROM) with ozipdecrypt.py**
if for whatever reason TWRP is not available (or not booting) you still can find stock ROM for your device. However, flashing boot.img from download is risky, make 100% sure that this build number is matching your device
```
ro.build.description=S88051AA1-user 9 PKQ1.190319.001 eng.root.20190830.025347 release-keys
ro.build.display.full_id=RMX1805_11_A.60_190830
```
+ install [Python 3.8.2](https://www.python.org)
+ install pycryptodome
```
pip3.exe install pycryptodome
```
+ download and extract [oppo\_ozip\_decrypt-master.zip](https://github.com/bkerler/oppo_ozip_decrypt)
+ download [stock ROM](https://download.c.realme.com/osupdate/RMX1805EX_11_OTA_0600_all_LtoqeM8aS1Gq.ozip)
+ run `ozipdecrypt.py` from [cmd.exe](https://www.howtogeek.com/235101/10-ways-to-open-the-command-prompt-in-windows-10)
```
python.exe ozipdecrypt.py RMX1805EX_11_OTA_0600_all_LtoqeM8aS1Gq.ozip
```
+ check folder `out` and rename `out\boot.img` into `boot.emmc.win` (just to not confuse with encrypted boot.img, name of file doesn't matter)
[](https://i.stack.imgur.com/1Zsqx.png)
(i have uploaded the converted stock ROM [here](https://www.mediafire.com/file/v3j0rrxni6w0crd), `recovery.img` is missing)
---
**4) root your device with Magisk**
* **a**) install Magisk directly from TWRP (may brick device)
+ copy [Magisk-v20.4.zip](https://github.com/topjohnwu/Magisk/blob/master/README.MD#introduction) to Storage or MicroSD via [MTP](https://thegeekpage.com/fix-mtp-not-working-in-windows-10)
+ *TWRP* - tap *Install* - select `Magisk-v20.4.zip` - *Swipe to confirm Flash*
+ reboot device (*TWRP* - tap *Reboot* - tap *System*)
---
* **b**) patch `boot.emmc.win` "offline" with Magisk Manager
+ reboot device (*TWRP* - tap *Reboot* - tap *System*)
+ copy `boot.emmc.win` to Internal Storage via [MTP](https://thegeekpage.com/fix-mtp-not-working-in-windows-10)
+ install + launch [MagiskManager-v7.5.1.apk](https://github.com/topjohnwu/Magisk/blob/master/README.MD#introduction)
+ enable *Advanced Settings* - ***Preserve force encryption***
+ tap on *Install (1)* - *Install (2)* - *Select and Patch a File*
+ allow permissions for storage
+ navigate to Internal Storage and select `boot.emmc.win`
(this will start patching immediately but does not modify your device - no worry the text "Flashing.." is misleading)
[](https://cdn.thecustomdroid.com/wp-content/uploads/2018/02/Install-Magisk-on-Android-using-Patched-Boot-Image-01.jpg)
---
**(5) flash the rooted boot image from fastboot**
- copy `magisk_patched.img` to PC via [MTP](https://thegeekpage.com/fix-mtp-not-working-in-windows-10)
- reboot device into bootloader mode (keep holding `Volume Down` while rebooting or power on device with `Volume Down` + `Power`)
- boot `magisk_patched.img` without modifying/flashing device (for testing purposes)
```
fastboot devices
fastboot boot magisk_patched.img
```
- if it works: reboot device into bootloader mode
- flash `magisk_patched.img` to boot partition (may brick device)
```
fastboot flash boot magisk_patched.img
fastboot reboot
```
---
**Unbricking** (method b) only)
* reboot device into bootloader mode (keep holding `Volume Down` while rebooting or power on device with `Volume Down` + `Power`)
* flash your backup of original `boot.emmc.win` from fastboot
```
fastboot devices
fastboot flash boot boot.emmc.win
fastboot reboot
```
Upvotes: 2 <issue_comment>username_2: I think the ROOT of Oppo phones is not too difficult because it has Recovery Mode by itself, can directly flash ROOT files.
**Important:** Please backup your data and download the original ROM file on OPPO homepage before doing so, in case of any possible uncertainties.
Now, all you need to do is download the SuperSU file, save it to the storage device or SD card.
Download this file: [SuperSU 2.82 SR5](https://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip?retrieve_file=1)
If it does not work, try with this file, it works on most Oppo devices (however, this is not the latest version of SuperSU, but it is still fully supported): [OPPO SuperSU](https://drive.google.com/file/d/16Ooe5t7GK6r5tPr0aW6-IakCIIXa1pDO/view?usp=sharing)
Next, turn off the phone. Now start pressing Volume Down and Power keys together for a few moments. Wait for a while, the screen will display the language selection menu, it supports English, Simplified Chinese and Traditional Chinese. Here, we choose English. You can move options with the volume up and down keys, select them with the power key, or you can press directly on the screen.
In the ColorOS RECOVERY options panel, select `Install from storage device`, navigate to the SuperSU file you just selected and flash it.
Before rebooting, go to `Wipe data` then wipe cache.
Everything is completed, when you reboot, on the phone screen will appear SuperSU, you have successfully ROOT!
Note: Using this method SuperSU will be saved to the system partition. Ie you will not be able to uninstall it but can turn it off as other system applications. To remove ROOT, go to Oppo homepage, download the original ROM, then use the above method to reinstall the operating system.
Good luck.
Upvotes: 1 |
2020/03/31 | 290 | 1,159 | <issue_start>username_0: I have installed Android for PC from [android-x86.org](https://www.android-x86.org/). The Android version is Pie. It is working fine, but videos are not being streamed. YouTube is working fine when opened in Chrome but no app is streaming the videos.
Android native libraries are also downloaded using settings. The OS is connected to VirtWiFi and LAN and even the YouTube ads also work in the YouTube app but only audio, no video.
Is there a different network route for Chrome and for apps? I can build a custom Android app also to troubleshoot the issue but not sure what to start from?<issue_comment>username_1: I was using my old 1st gen i7 HP PC (and its iGPU).
What I have done in order to fix this is to install an old AMD card (because Nvidia cards aren't supported), and now it works.
EDIT: This was happening because the iGPU dodn't support HW video decoding, and so it failed and required the external AMD gpu
Upvotes: 0 <issue_comment>username_2: I solved it by disabling the FFmpeg codec in the preferences.
Weird, but it fixed the issue when I was using an old HP Probook 4520s with integrated graphics.
Upvotes: 1 |
2020/04/02 | 225 | 929 | <issue_start>username_0: I have the Samsung Watch Active 2, and use Google Calendar app on my phone, which also has event notifications on my watch, which is great.
However, the default Samsung calendar notification also shows up, but it would lock up the screen and require me to explicitly dismiss the notification to use the watch. Is there a way this notification can be disabled?<issue_comment>username_1: I was using my old 1st gen i7 HP PC (and its iGPU).
What I have done in order to fix this is to install an old AMD card (because Nvidia cards aren't supported), and now it works.
EDIT: This was happening because the iGPU dodn't support HW video decoding, and so it failed and required the external AMD gpu
Upvotes: 0 <issue_comment>username_2: I solved it by disabling the FFmpeg codec in the preferences.
Weird, but it fixed the issue when I was using an old HP Probook 4520s with integrated graphics.
Upvotes: 1 |
2020/04/05 | 272 | 1,077 | <issue_start>username_0: In my previous Android phone, when I to copied any link, there was a popup window of ADM asking whether I wanted to download the specific file or not. It required that ADM should be running in the background.
But now, there's no such pop-up. I've to manually paste links. Although I've enabled the pop-up permission of the app in phone settings.
Is there some other android permission, or ADM setting that I'm missing?
EDIT : I've also checked for auto intercept links, I've enabled it. Still not working.<issue_comment>username_1: I was using my old 1st gen i7 HP PC (and its iGPU).
What I have done in order to fix this is to install an old AMD card (because Nvidia cards aren't supported), and now it works.
EDIT: This was happening because the iGPU dodn't support HW video decoding, and so it failed and required the external AMD gpu
Upvotes: 0 <issue_comment>username_2: I solved it by disabling the FFmpeg codec in the preferences.
Weird, but it fixed the issue when I was using an old HP Probook 4520s with integrated graphics.
Upvotes: 1 |
2020/04/09 | 555 | 2,173 | <issue_start>username_0: There are virtual space apps for Android, such as Parallel Space or Dual Space. I know that we can't access outside files in a virtual environment, but I was able to access them in Dual Space's virtual environment.
Do such virtual space apps provide a fully virtual environment?<issue_comment>username_1: ParallelSpace and DualSpace use the same technology if I get their description correctly and this technology has nothing to do with virtualization: they use app cloning
App cloning means that an app is renamed (not the visible name but the app package name such as `com.whatsapp`). Therefore the app is unpacked, modified at certain points to use the new name and then packed and signed with a new signature and afterwards installed.
As Android separates each app a renamed app can be installed side-by-side with the original app. The actual separation is done by the Android OS in exactly the same way it is done for every app.
And just like any other app if the repackaged app stores data in the sd-card section you can access this data.
Upvotes: 2 <issue_comment>username_2: If virtual space apps are acting like [Parallel Space](https://play.google.com/store/apps/details?id=com.lbe.parallel.intl) then they are virtualizing the app runtime environment. Accessing external storage would not be a problem.
[Commonsware](https://stackoverflow.com/users/115145/commonsware) put up a [blogpost](https://commonsware.com/blog/2017/01/17/droidception.html) explaining what is going on under the hood with this virtualization with a caveat:
>
> However, this sort of virtualization technique – Android apps running inside other Android apps, for an Inception-style experience – requires that you trust the virtualization engine. After all, by definition, it can see all I/O between the app and Android, as it proxies all of that I/O. It is a [[Man-In-The-Middle] MITM attack](https://en.wikipedia.org/wiki/Man-in-the-middle_attack) on the app.
>
>
>
So if you trust the makers of Parallel Space (or don't care) it is an option to consider.
From my answer: <https://android.stackexchange.com/a/169048/3573>
Upvotes: 3 [selected_answer] |
2020/04/10 | 1,315 | 4,728 | <issue_start>username_0: Answers to this question [Is power consumed from battery to run the phone when charging?](https://android.stackexchange.com/q/130000/131553) explain how charging while phone is in use does both - charging the battery **and** powering the on going activities.
My question is different — **Can I stop charging the battery but use the connected power for ongoing activities?**
*Why do I want to do this?*
* I want to charge the battery within ideal limits (see [Ideal charging / discharging percentage for maximum battery life?](https://android.stackexchange.com/q/156526/131553))
and
* at the same time use the charging power to keep running the phone without any heat stress on battery, thus extending battery life.
* Also the battery is not drained, enabling me to use the phone for longer time without charging
Edit : I am not looking for dedicated cables or hardware that can possibly do this<issue_comment>username_1: Yes, it's possible if your device is rooted running [Advanced Charging Controller-Acc](https://forum.xda-developers.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427) Magisk module
*and* device kernel supports (see currently known list at the end of answer. For more join [telegram](https://t.me/vr25_xda)
)
* Battery Idle Mode: To activate this feature at a user defined battery level.
And/Or
* Custom Charging Voltage Limits: Activates this feature at a user defined voltage level. This method is superior to first method since granular voltage control is possible Keep in mind that battery charge level is *not* an accurate indication of voltage. Kernels that support this, include support for first mode too.
First step is to configure charging to be stopped at a safe level, in my case, 75%, using the Acc module
Next step is to use the charging power to run the phone *only*
**How does it work?**
In either methods (battery idle mode or Voltage based) , the charger is fooled into "believing" temperature conditions aren't good for charging (either the reported battery temperature is too high or too low, so battery charging is discontinued as a safety precaution).
That means the device is drawing power from the external power supply alone - which is exactly what we wanted! And the battery doesn't get drained because it is not being used (of course over a long period of time it would drop a percentage point. As an example I used the device to surf for 4 hours, mostly YouTube videos and lost *just 1%* of battery)
On my OnePlus 7, battery idle mode is supported by [Kirisakura kernel](https://forum.xda-developers.com/oneplus-7-pro/development/kernel-kirisakura-1-0-0-op7-pro-aka-t3933916). Interestingly, beta versions of stock ROM have this feature in stock kernel but one doesn't know if it makes it to next stable version (Edit : Stock kernel on 10.3.2 supports idle battery mode as verified by me)
When this feature is running, a low USB equivalent power is fed to the phone and conventional charging indicators show charging with zero power. Note that the second screenshot (Ampere app) shows "not charging" and no word about discharging, so the battery is at status quo. Normally, such apps show a binary status, either charging or discharging. Here, you see the difference
[](https://i.stack.imgur.com/etek3m.jpg)
[](https://i.stack.imgur.com/F3MHVm.jpg)
This screenshot below is from ACCA (Acc App, optional companion app of Acc magisk module ) which offers all the command line options (believe me, a ton of them) in a user friendly GUI. It shows battery charging idle mode at 75%
[](https://i.stack.imgur.com/PRMqrm.jpg)
---
**Support Battery Idle Mode**
* Asus Zenfone Max Pro M1
* Essential Phone
* Lenovo K5 Pro L38041 (kunlun)
* Motorola Moto G4 Play
* OnePlus 7/Pro
* Xiaomi Redmi 3 (ido)
* Xiami Redmi Note 8
* Pixel 4a on Android 11 (not initially but in subsequent updates) and Android 12.
**Support Custom Max Charging Voltage**
* Essential Phone
* Lenovo K5 Pro L38041 (kunlun)
* Xiami Redmi Note 8
...
Upvotes: 6 [selected_answer]<issue_comment>username_2: For completeness, I want to add my solution. I have been using a tablet as a control panel for home automation. The first one died, with a swollen battery that made the screen detach from the case.
Samsung repaired it, but didn't tell me the cause. I realised it later. So I now use the home automation to disconnect power to it for 4 hours a day.
A simpler soltion would be put a mechanical or electronic timer to do the same.
Upvotes: 0 |
2020/04/11 | 297 | 1,181 | <issue_start>username_0: Every time I copy and paste text on my android phone white spaces are removed, i.e.:
Copy:
`this is a test`
Paste:
`thisisatest`
The behaviour is the same no matter which app I copy/paste text from/into.
I'm using LineageOS and this started happening about 2 weeks ago, but I cannot precise the exact date or which apps were installed right before it.
Any idea how to fix/debug this?<issue_comment>username_1: Do you have mbway installed?
I can confirm it's mbway. If you force stop the app, copy paste starts working fine again
Upvotes: 2 <issue_comment>username_2: Some Apps - MBWay included - allow the user to copy a content automatically removing the white spaces. In fact what happens is that 2 entries are stored within clipboard. The original entry preserves the white spaces. The second entry records all content without white spaces. Very useful when you are copying Credit Card numbers. Some of those Apps don't revert back that 'configuration'. The quick solution is to force stop that specific App. Look for apps that have embed COPY features.
[](https://i.stack.imgur.com/rwQGo.jpg)
Upvotes: 2 |
2020/04/11 | 820 | 2,479 | <issue_start>username_0: I am using Magisk 20.4 and trying to mount /system on a Google Pixel (1st gen) running Android 10.
I have tried using:
```
adb shell su -c mount -o rw,remount /system
```
that gives:
>
> mount: '/system' not in /proc/mounts
>
>
>
The following also do not work:
```
adb shell su -c mount -o rw,remount /
```
>
> '/dev/root' is read-only
>
>
>
```
adb shell su -c mount -o rw,remount /sbin/.magisk/mirror/system_root
```
>
> '/sbin/.magisk/block/system\_root' is read-only
>
>
>
I was also curious whether stuff in /sbin/.magisk/rootdir/system/ can actually override stuff in /system/ but that doesn't seem to be the case..
Has anyone managed to mount /system on Android 10? Is this issue specific to Google Pixel?
Cheers,
Paschalis
EDIT:
=====
trying Hack5 suggestion, it gives me:
>
> mount: '/system' not in /proc/mounts
>
>
>
Since I knew that `/sbin/.magisk/mirror/system_root` was a valid mount point, Ive tried the following, which still fails:
```
mount -wo remount /dev/block/bootdevice/by-name/system$(getprop
ro.boot.slot_suffix) /sbin/.magisk/block/system_root
```
>
> mount: '/sbin/.magisk/block/system\_root' not in /proc/mounts
>
>
>
EDIT2:
------
Turns out it's [impossible](https://twitter.com/topjohnwu/status/1170404631865778177) to mount /system on a factory image of Google Pixel. But, I was missing the whole point of `Magisk`! So I made a few modules and I can override/add the system libs and bins that I need. There is even support for `apex` on Android 10!<issue_comment>username_1: Your second command is correct, but the virtual block device is read only. IIRC, this is caused by the a/b mapping virtualisations.
Referring to <https://android.stackexchange.com/a/158890/171244>, you can see that specifying the correct block device will help. Try:
```
adb shell
su -c mount -wo remount /dev/block/bootdevice/by-name/system$(getprop ro.boot.slot_suffix) /system
```
This will switch from the virtual mapper (/dev/root) which is read-only, to the actual partition block device, making it writable
Upvotes: 1 <issue_comment>username_2: ext4-dedup/logical partitions are ro by design
Upvotes: 0 <issue_comment>username_3: I think the problem is from magisk, thank God I have a boot img that I patched using 7.2.3 vesion of Magisk, the latest 7.5.1 keep giving me that error msg. Try using the old magisk and you wont have that mount: '/system' not in /proc/mounts error
Upvotes: 0 |
2020/04/13 | 1,084 | 3,933 | <issue_start>username_0: Whatsapp 2.20.108 on Android 9
I try to export a chat with media. I export it either to gmail or gdrive. (please note the difference: You can **backup** and **export** to gdrive. I'm interested in the **export** functionality)
For some chats, it works; but for other chats, only a few media are exported instead of all. Also the chat messages are not always exported properly. For example, for one chat, only messages after June 2018 are exported, but not the older ones.
What's going on here? Can this be changed?
I want to save all the chat text and all pictures, videos, audio, documents.<issue_comment>username_1: **tl:dr;** It's a WhatsApp limitation and there seems be to no workaround.
* Whatsapp export by *mail* has limitations. [WhatsApp FAQ](https://faq.whatsapp.com/en/android/23756533) says
>
> * If you choose to attach media, the most recent media sent will be added as attachments.
> * When exporting with media, you can send up to 10,000 latest messages. Without media, you can send 40,000 messages. These constraints are due to maximum email sizes.
>
>
>
* [This blog](https://www.zapptales.com/en/how-to-export-whatsapp-chat-android-iphone-ios/) adds more details
>
> A maximum of the last 10.000 messages are sent. However, if you have some videos or images, the number of exported messages might be much smaller.
>
>
> WhatsApp will start creating a “package” with the latest Media files and text. It will put the last media files and messages first and then will stop when approximately 18 Mb of data have been packaged.
>
>
> * If you have some videos in your chat, this could mean that you have two or three videos, some pictures and only one week of chat.
> * If you have basically many pictures, you will be able to export about 50 to 75 pictures and a few months of chat.
> * In case that you do not have many media files, you will be able to export a maximum of 10.000 messages with this system
>
>
>
* I couldn't find any such limitations for export to *Google drive* in whatsapp FAQ or on my search on the net but going by this issue on [Google support](https://support.google.com/drive/thread/14988017?hl=en) and fair number of people who up voted this complaint, it seems to be common. As you can see, Google has washed their hands off and pointed to WhatsApp. You may like to raise this issue with [WhatsApp](https://www.whatsapp.com/contact/)
and post your findings here to cover the Google Drive portion
Upvotes: 4 [selected_answer]<issue_comment>username_2: I wanted to backup and delete some groups I was on that were taking up lots of space on my phone. Here is a long method which I used:
* Backup Whatsapp to GDrive as protection and switch off WiFi/3G so you can restore any screw up.
* Install Webdav on the phone. Will now allow internal memory to be mapped as drive letter. Can also use FTP server app. Map drive letter on Windows
* Webdav copy limit is 50MB files. Change to 4GB ( <https://www.imageway.com/2017/email-hosting-blog/email-hosting-tutorials/increase-webdav-file-limit-in-windows>)
* Copy entire Whatsapp folder to PC e.g. Original
* In whatsapp export chat without media as text file
* Clear/Delete the chat. Wait for deletion to finish.
* Copy Whatsapp to a new folder called Trimmed
Now some file manipulation depending on your preference.
* Use "dir /b /s /a-d >Trimmed.txt" in the Trimmed directory root (need /a-d so directories are not listed)
* Use text manipulation to turn the Trimmed.txt file into a batch file to delete the Trimmed file list from the Original folder.
* The Original folder will now contain the files that were in that chat that you deleted
If you just wanted a copy of all files but want to keep the chat as it was then uninstall/reinstall Whatsapp and restore from GDrive and all will be back the way it was.
Alternative is root and decrypt Whatsapp database but it is too much work.
Upvotes: 2 |
2020/04/14 | 1,229 | 4,934 | <issue_start>username_0: This XDA blog [How A/B Partitions and Seamless Updates Affect Custom Development on XDA](https://www.xda-developers.com/how-a-b-partitions-and-seamless-updates-affect-custom-development-on-xda/) has some Q&A's, of which :
>
> * My device supports A/B partitions, does that mean I can make use of a Project Treble Generic System Image?
>
>
> Not necessarily. Project Treble and A/B support are unrelated. The **Motorola Moto Z2 Force doesn’t support Project Treble, yet it supports the A/B partition scheme**.
>
>
> * My device supports Project Treble, does that mean I have an A/B partition scheme?
>
>
> This is not always the case. The Honor 9 Lite is a prime example as it **supports Project Treble yet does not have an A/B partition scheme**.
>
>
>
(Emphasis added)
I thought Treble and A/B devices are synonymous in the sense having one implied other. That's not the case
**Why is this? What are the differences?**<issue_comment>username_1: Both technologies have nothing in common, really, so everything is unrelated:
The A/B partition technology is the horizontal separation in the following image, whereas Project Treble defines the vertical separations inside each partition.
[](https://i.stack.imgur.com/rxDpt.png)
[Project Treble diagram source](https://android-developers.googleblog.com/2017/05/here-comes-treble-modular-base-for.html)
A/B partition scheme
--------------------
Basically the A/B partition scheme for "(Seamless) System Updates" is nothing more that two operating systems installed side-by-side, each in its own system partition. The unusual part (compared to e.g. having multiple OSes installed on a PC) is that both OS installations use the same user data partition. Also, when installing updates the active OS installation applies modifications to the other, inactive OS installation, instead of to itself.
The A/B partition layout does not make any assumptions about the OS that is installed inside the partition, hence it does not matter if the OS is Project Treble compliant or not.
Project Treble
--------------
Project Treble applies to the internals of each OS installation and how the different layers within the OS communicate with each other. Hence for Project Treble it is totally irrelevant if there are one, two or many OS partitions. The A/B partitioning scheme is compatible with, but separate from, Project Treble, and vice versa.
Upvotes: 4 [selected_answer]<issue_comment>username_2: Operating System on Android devices consists of two major parts:
* The generic Android code (AOSP) and
* The code specific to hardware, provided by OEM/SoC vendor (mostly based on AOSP reference implementations).
**Project Treble** is targeted to separate AOSP code from vendor code so that each can be compiled and updated independently. [HIDL](https://source.android.com/devices/architecture/hidl) (the communication layer between both code layers: HALs and AOSP framework) was specifically designed to achieve the goal. So now we have necessarily separate `system` and `vendor`/`odm` partitions. It resolved (or tried to resolve) the problem of delayed or no OTA updates from OEMs after device release.
**A/B partitioning** puts AOSP + vendor code on two identical pairs/slots of partitions (including `boot`, `system` and `vendor`). So that if OTA update fails on one slot, the other one continues to work. Also it makes updating the inactive slot possible while OS (active slot) is running, so doesn't affect user's work flow. This approach encourages OEMs to send more frequent updates, without any fears. As the [official documentation](https://source.android.com/devices/tech/ota/ab) states:
>
> This approach reduces the likelihood of an inactive device after an update, which means fewer device replacements and device reflashes at repair and warranty centers.
>
>
>
At design level both are independent of each other (except that both involve partitions). **Treble** is relevant to OS (mostly userspace) i.e. how running processes from AOSP and vendor interact with each other (includes IPC based on *binders*). While **A/B partitioning** replaces the OTA update phenomenon which was previously based on `recovery` and `cache` partitions. So it involves necessary changes even to bootloader i.e. the logic: how it boots from different `boot`/`system` partitions, particularly after a failed OTA update. Once OS is loaded, A/B isn't of much concern (except when OTA update occurs).
So both innovations address different but somewhat related problems to achieve the same goal: **more OTA updates**. Also they collectively set the ground for [dynamic partitions](https://source.android.com/devices/tech/ota/dynamic_partitions) which let OEMs resize `system`/`vendor`/`odm`/`product` partitions during OTA updates as the AOSP and vendor code grows or shrinks.
Upvotes: 2 |
2020/04/15 | 699 | 2,560 | <issue_start>username_0: I rooted Intex Cloud Cube v08 and installed an xposed module. After restarting the device it says
>
> "unfortunately system UI has stopped"
>
>
>
and after tapping on ok it again shows the same. It is still the same after restarting.
I tried key combinations
**volume down + power key**
-: It is going into safe mode but not recovery mode
**volume up + power key**
-: Just restarting normally
I don't have custom recovery
How to solve this problem and go into the stock recovery mode?<issue_comment>username_1: I don't know about your phone in particular and a quick search gave me nothing, but holding down Volume up + Power + Home also seems to be a common combination for recovery mode.
Worth a try I guess.
Upvotes: 0 <issue_comment>username_2: The problem is solved now. Thanks to a comment suggesting [this link](https://www.mobilereset99.com/intex-mobile-recovery-mode/) (Use volume buttons to move and power button to select any option)
>
> **Method 1**
>
>
> * Power off your Intex Mobile, by holding the power button.
> * Hold down the Volume Up + Power Button.
> * After that, Release both Buttons when you see Intex Logo or Android Logo appears.
> * Now you can see Android Recovery Mode.
>
>
> **Method 2**
>
>
> * Power off your Intex Mobile, by holding the power button.
> * Hold down the Volume Down + Power Button.
> * After that, Release both Buttons when you see Intex Logo or Android Logo appears.
> * Now you can see Android Recovery Mode.
>
>
> **Method 3**
>
>
> * Power off your Intex Mobile, by holding the power button.
> * Hold down the Volume Up + Home + Power Button.
> * After that, Release both Buttons when you see Android exclamation mark appears.
> * Now you can see Android Recovery Mode, if not (While holding down the Power button press and release Volume Up Button).
>
>
> **Method 4**
>
>
> * Power off your Intex Mobile, by holding the power button.
> * Hold down the Volume Up + Power Button.
> * After that, Release both Buttons when you see Android exclamation mark appears.
> * Next, While holding down the Power button press and release Volume Up Button.
> * Now you can see Android Recovery Mode.
>
>
>
I tried the 4th method in the link.
But since `volume up` + `power` was restarting the device normally, I held down the `power` and was pressing and releasing the `volume up`
button.
The device didn't go in recovery mode but it rebooted and started working **without** the popup "unfortunately system UI has stopped".
Upvotes: 2 [selected_answer] |
2020/04/18 | 1,416 | 4,408 | <issue_start>username_0: [BlueStacks](https://www.bluestacks.com/) is a popular Android emulator for Windows and macOS for gamers. It is popular, because the emulator ships with Google Play Store pre-installed and installing any games is easy. Unfortunately, the emulator file system is not rooted by default. How to root it?<issue_comment>username_1: These instructions require that you understand the UNIX command line basics. The instructions work on OSX, Linux and Windows. No Microsoft Windows or BlueStacks Tweaker needed.
The emulator is internally using VirtualBox and runs Android x64 binaries (64 bit). It ships with two VirtualBox VDI disk images, `Prebundled.bdi` and `Root.vdi`. Luckily BlueStacks has left a primitive `su` binary on the disk image, so we do not need to add this binary to the image ourselves. We still need to change VirtualBox settings, though.
`adb` command can be obtained from Android Studio SDK by Google or it is also found in `/Applications/BlueStacks.app/Contents/MacOS/adb`.
Make sure that the emulator is off and turn all disks in VirtualBox configuration file to read-write. On macOS, the file can be found `~/Library/BlueStacks/Android/Android.vbox`. Make sure the emulator is not running when you edit this file.
[](https://i.stack.imgur.com/4laPH.png)
Start the emulator.
Enable ADB bridge in the emulator settings.
[](https://i.stack.imgur.com/tcUZY.png)
Download [SuperSU zip](https://supersuroot.org/downloads/SuperSU-v2.82-201705271822.zip) file on your local computer.
Start your ADB hacking session.
```
# This is the default port exposed by BlueStacks
adb connect localhost:5555
```
Push the zip file to the `/mnt/sdcard` of the emulated device.
```
adb push SuperSU-v2.82-201705271822.zip /mnt/sdcard
```
Then work inside the emulator shell:
```
# Start shell session in the emulator VM
adb shell
```
```
# Use the provided BlueStacks binary to switch to root
system/xbin/bstk/su
# Disable SELinux
setenforce 0
# Remount all filesystems
mount -o rw,remount,rw /
mount -o rw,remount,rw /system
mount -o rw,remount,exec,rw /storage/emulated
# Unzip SuperSU zip
cd /mnt/sdcard
mkdir supersu
cd supersu
unzip ../SuperSU-v2.82-201705271822.zip
# Extract su command and run its post-install
cp x64/su /system/xbin/su
chmod a+rwx /system/xbin/su
/system/xbin/su --install
# Start su daemon mode
/system/xbin/su --daemon
```
Now run the installer for Superuser.apk in the emulator through Media Manager.
[](https://i.stack.imgur.com/4QhdM.png)
[](https://i.stack.imgur.com/AAdgg.png)
When `su --daemon` is running SuperSU Android UI should detect the root when started:
[](https://i.stack.imgur.com/c6m1A.png)
The emulator needs to be restarted after this as it hangs. After the restart, when opening SuperSU you see it is enabled.
[](https://i.stack.imgur.com/dyzYz.png)
Upvotes: 4 [selected_answer]<issue_comment>username_2: [username_1's answer](https://android.stackexchange.com/a/224120/44325) already covered the main question. However, if there are some difficulties while following it, here are some additional tips that may help:
a) If `adb connect localhost:5555` doesn't work, try `adb kill-server` and then `adb start-server`
b) Usually the .zip file SuperUser..... is a directory, if so, I suggest avoiding these steps
```
mkdir supers
cd supersu
unzip ../SuperSU-v2.82-201705271822.zip*
```
c) Try to find the `SuperUser.apk` on the internet. Then run
*Exit from `adb` and begin from the first step*
*All steps are similar but*
`adb push /mnt/sdcard`
*Avoid these steps*
**#1. Unzip SuperSU zip**
```
cd /mnt/sdcard
mkdir supersu
cd supersu
unzip ../SuperSU-v2.82-201705271822.zip
```
**#2. Extract su command and run its post-install**
```
cp x64/su /system/xbin/su
chmod a+rwx /system/xbin/su
/system/xbin/su --install
```
**#Continue with the next steps**
Then run the `SuperUser.apk` you got from the internet from the step where says run `SuperUser.apk` from MediaCenter.
Upvotes: 1 |
2020/04/21 | 750 | 2,454 | <issue_start>username_0: After flashing a custom ROM, there is a watermark in the top-right of the screen saying
>
> 
>
>
> 未写入google key和tee key
>
>
>
I've googled it and have tried several of the solutions suggested, but none have worked. Interestingly, most people get a slightly different variation of this message, in red.
I've removed "FactoryTest" from my phone, but do not have `com.mediatek.factorymode` as some have suggested. I've messed around with my IMEI keys, this did not help. The message also still appears even with the SIM card removed.
Where on the phone could this be stored? My phone is rooted, so if I could locate the file responsible, I could easily delete it.<issue_comment>username_1: 1. Download [Minimal ADB and Fastboot](https://forum.xda-developers.com/showthread.php?t=2317790) on the computer
2. Plug in the phone into the computer, but keep the phone on
3. On the computer, open the terminal/command prompt
4. Enter these commands
```
adb devices
adb shell
pm list packages
pm uninstall --user 0 com.mediatek.factorymode
```
5. Restart the phone and the watermark will be removed
Upvotes: 2 <issue_comment>username_2: You can kill/uninstall the sdrpmbFloat view service with root permissions.
You should be able to go to Developer Options > Active Services to disable the service.
Source: <https://forum.xda-developers.com/t/ulefone-power-3s-problem.3794521/post-77513923>
Upvotes: 0 <issue_comment>username_3: I successfully removed the watermarks with "tee" and/or "google" words in Ulefone Armor 3WT.
Many sources suggested 2 possible solutions:
1. Kill the service name "sdrpmbFloat" from the Developer options (not work for me)
2. Using ADB, delete the package called `com.mediatek.engineermode` or `com.mediatek.factorymode` or `com.android.watermark` (again, it didn't work for me, I couldn't find the packages)
But, I found another solution.
I had to **comment/delete** the line `ro.agui_tee=TRUSTKERNEL` in the file `/system/product/build.prop` (**need root**) just in case that line does not exist in the file `/system/build.prop`.
So, to root Ulefone with MTKroot app: <https://www.ayudaroot.com/root/ulfone/como-hacer-root-en-los-telefonos-moviles-ulefone-armor-3wt/> (Spanish)
And where I found a similar solution: <https://www.phonandroid.com/forum/threads/ulefone-armor-9-imei-manquant-et-erreurs-tee-google-resolu.208178/> (French)
Upvotes: 1 |
2020/04/21 | 1,130 | 3,966 | <issue_start>username_0: I'm trying to install Android-x86 on USB for my new HP laptop. I have followed the instructions on Android-x86.org. My issue is that after the initial install, it never boots again, it just gets stuck on the Android logo.
I have seen a few posts such as [this answer](https://android.stackexchange.com/a/214061/44325):
>
> when you change the internal frame where the UEFI firmware settings to the EFI framework setting change the boot order you have to make a small partition for grub go back and change it back otherwise it won't boot the second time
>
>
>
but unsure of how to do this.
I have also seen [this answer](https://superuser.com/a/1270769/356789):
>
> 6. In boot menu select `Installation - Install Android-x86 to harddisk`
> 7. In `Choose Partition` menu select `Create/Modify partitions`
> 8. **In `Do you want to use GPT` question select `No`**
> 9. `cfdisk` program will open
> 10. Select `New` and select `Primary` as partition type, set size to `100` MB and select Beginning
> 11. Select bootable. Now the `Flags` column should say `Boot` for the new partition
> 12. Select the free space and select `New` and select `Primary` as partition type, leave size as default to fill the remaining free space
> 13. Select `Write` and type `yes` and press Enter
> 14. Select `Quit`
>
>
>
but I'm stuck in the fact when I click on create/modify on this, I get `cgdisk` not `cfdisk`, and it's not as easy to use. I don't know why this is happening. Before I realised what to do, I was accessing `cfdisk`, but now it's only `cgdisk`.
I have purchased 4 premium USB sticks just in case the issue was due to a bad USB, but it's not the case and I'm just so frustrated.
Any help at all would really be appreciated.<issue_comment>username_1: Sometimes, it takes a long time until you boot through the Android logo screen
You can try adding
```
nomodeset xforcevesa
```
to the boot options according to this [video](https://youtu.be/QBhgPN6HqMs).
The video is created by me as a part of our free video tutorials service on demand. That means anyone can ask us for instruction in a video and we will create the tutorial for free.
The instructions are as follows:
1. After starting Android, select the first boot option and don't press enter.
2. Select E.
3. Select E again.
4. Now move the cursor left, by pressing the left key until you reach the word `quiet`.
5. Replace `quiet` with `nomodeset xforcevesa`.
6. Press Enter.
7. Press B to boot this option.
8. Wait until Android loads, which may take a long time in some cases.
Please use the Auto installation option, if this is the only OS on your laptop.
Auto installation [tutorial](https://www.android-x86.org/installhowto.html).
Instructions:
[](https://i.stack.imgur.com/RtB3p.png)
[](https://i.stack.imgur.com/5Ey5B.png)
Upvotes: 0 <issue_comment>username_2: I've found something that **might** help you. I recently installed androidx86-9.0-rc1 as a dual boot (unlike you), and I too faced this same problem that it booted for the first time just fine but gets stuck in subsequent boots.
So I tried uninstalling and reinstalling it to see what's wrong and what I found that when I am on Windows and if I try to switch to already-installed androidx86 [by choosing restart option in Windows/by entering BIOS from Windows and then booting to androidx86], it gets stuck [and gets stuck in subsequent times too, once you did such].
So for this, you must boot to androidx86 directly after you power on your PC when it's initially shut down.
Supposedly you're on Windows, and say you want to switch to androidx86 [newly re-installed, not the one that got stuck], so don't restart Windows; just shut down the PC and power it on to boot to androidx86. Just note that this is my observation only for the dual-boot case,
Upvotes: 1 |
2020/04/24 | 728 | 2,756 | <issue_start>username_0: I'm running Android on a mobile device, but I really just use it as a computer. I have a wireless mouse/keyboard that I use to navigate windows, etc. The keyboard works well generally, but I find some features lacking. I really would like to map keypresses to the touch screen input. i.e. I can set `W` to send touch input from a part of the screen given by the pixel location or some such thing.
I have a background in computer system, so I'm not afraid to get my hands dirty. I am willing to root the device, install programs, or build in some additional hardware. I can probably do it from scratch, but I really would like to not waste that much time on it.<issue_comment>username_1: You can use a keymapper app like octopus.
This app mirrors the original app and adds keymapper.
<https://play.google.com/store/apps/details?id=com.chaozhuo.gameassistant>
Here's the link for this app!
Upvotes: 0 <issue_comment>username_2: If you are willing to use a PC as the interface.
There appears to exist a modified version of the open-source [scrcpy](https://github.com/Genymobile/scrcpy) which has keyboard shortcut support for playing games, but should partially map to your requirement:
[QtScrcpy - gitee repo](https://gitee.com/Barryda/QtScrcpy) or [QtScrcpy - github repo](https://github.com/barry-ran/QtScrcpy)
See project README for keyboard mapping feature:
<https://github.com/barry-ran/QtScrcpy/blob/master/README.md>
[](https://i.stack.imgur.com/q4bCv.jpg)
It looks promising. Unfortunately I haven't used it, and while open source, most of the project UI/documentation isn't in English.
The issue thread for the keyboard mapping feature for scrcpy:
<https://github.com/Genymobile/scrcpy/issues/712>
you might want to look there for more options.
Upvotes: 3 [selected_answer]<issue_comment>username_3: Although this question has an accepted answer, I just thought I could add another option, for others looking for something like this.
You could use an automation app like Automate, Macrodroid, Tasker or Automagic(development stopped), to listen for the specific keyboard input, and execute the touch action.
Trigger: keyboard input
Constraints/conditions: external keyboard sends input
Action: UI interaction - touch screen
(Trigger constraints and actions are called differently in different apps.)
Upvotes: 1 <issue_comment>username_4: You can read mouse and keyboard data from /dev/input/event\* and write data into touchScreen by write data into /dev/input/event\* , use EVIOCGRAB to prevent event send to other program .
Here is a simple tool for example <https://github.com/DriverLin/mouse-keyboard-map-touch>
Upvotes: 1 |
2020/04/24 | 717 | 2,654 | <issue_start>username_0: i need help, with google contacts.
The phone is using google contacts and dialer (Android 9). I want to import contacts TO PHONE, but google contacts app allows only import to gmail acc.
Is there some solution? I do not want to use google servicies for syncing and storing my contacts, calls and messages.
Thank you
* e.g. something like local account on windows 10
* was helpful but apps are very old and not updated [Add contact without using "Google account"?](https://android.stackexchange.com/questions/24331/add-contact-without-using-google-account)<issue_comment>username_1: You can use a keymapper app like octopus.
This app mirrors the original app and adds keymapper.
<https://play.google.com/store/apps/details?id=com.chaozhuo.gameassistant>
Here's the link for this app!
Upvotes: 0 <issue_comment>username_2: If you are willing to use a PC as the interface.
There appears to exist a modified version of the open-source [scrcpy](https://github.com/Genymobile/scrcpy) which has keyboard shortcut support for playing games, but should partially map to your requirement:
[QtScrcpy - gitee repo](https://gitee.com/Barryda/QtScrcpy) or [QtScrcpy - github repo](https://github.com/barry-ran/QtScrcpy)
See project README for keyboard mapping feature:
<https://github.com/barry-ran/QtScrcpy/blob/master/README.md>
[](https://i.stack.imgur.com/q4bCv.jpg)
It looks promising. Unfortunately I haven't used it, and while open source, most of the project UI/documentation isn't in English.
The issue thread for the keyboard mapping feature for scrcpy:
<https://github.com/Genymobile/scrcpy/issues/712>
you might want to look there for more options.
Upvotes: 3 [selected_answer]<issue_comment>username_3: Although this question has an accepted answer, I just thought I could add another option, for others looking for something like this.
You could use an automation app like Automate, Macrodroid, Tasker or Automagic(development stopped), to listen for the specific keyboard input, and execute the touch action.
Trigger: keyboard input
Constraints/conditions: external keyboard sends input
Action: UI interaction - touch screen
(Trigger constraints and actions are called differently in different apps.)
Upvotes: 1 <issue_comment>username_4: You can read mouse and keyboard data from /dev/input/event\* and write data into touchScreen by write data into /dev/input/event\* , use EVIOCGRAB to prevent event send to other program .
Here is a simple tool for example <https://github.com/DriverLin/mouse-keyboard-map-touch>
Upvotes: 1 |
2020/04/24 | 853 | 3,173 | <issue_start>username_0: first question here. I was using wifi normally on my phone. Then I turned it off and after some time turned it back again. Since then I can not access the internet. It's showing `Connected(no internet access)`.
I tried to set the IP static. It did not work for DNS `192.168.200.1`. No matter what IP I set with this DNS it does not work. Then used the `8.8.8.8` as DNS, now it's connected. But it is really slow, and the connection does not seem stable. Every time I have to reload google.com several times just to get the page.
The problem is specific to this device only. Other devices connected to the same network are perfect.
I tried
* Restarting the router
* Resetting network settings
* Clearing network cache from maintenance mode
* Rebooting the device with and without airplane mode
My phone is Huawei Y9 2018 with Android 9.
Can someone suggest me what should I do? Is this a router issue? Or is this my device problem?
I'm new in this area. So my knowledge is not so deep and you might have to explain things a bit more in detail for me to grasp the concept.<issue_comment>username_1: You can use a keymapper app like octopus.
This app mirrors the original app and adds keymapper.
<https://play.google.com/store/apps/details?id=com.chaozhuo.gameassistant>
Here's the link for this app!
Upvotes: 0 <issue_comment>username_2: If you are willing to use a PC as the interface.
There appears to exist a modified version of the open-source [scrcpy](https://github.com/Genymobile/scrcpy) which has keyboard shortcut support for playing games, but should partially map to your requirement:
[QtScrcpy - gitee repo](https://gitee.com/Barryda/QtScrcpy) or [QtScrcpy - github repo](https://github.com/barry-ran/QtScrcpy)
See project README for keyboard mapping feature:
<https://github.com/barry-ran/QtScrcpy/blob/master/README.md>
[](https://i.stack.imgur.com/q4bCv.jpg)
It looks promising. Unfortunately I haven't used it, and while open source, most of the project UI/documentation isn't in English.
The issue thread for the keyboard mapping feature for scrcpy:
<https://github.com/Genymobile/scrcpy/issues/712>
you might want to look there for more options.
Upvotes: 3 [selected_answer]<issue_comment>username_3: Although this question has an accepted answer, I just thought I could add another option, for others looking for something like this.
You could use an automation app like Automate, Macrodroid, Tasker or Automagic(development stopped), to listen for the specific keyboard input, and execute the touch action.
Trigger: keyboard input
Constraints/conditions: external keyboard sends input
Action: UI interaction - touch screen
(Trigger constraints and actions are called differently in different apps.)
Upvotes: 1 <issue_comment>username_4: You can read mouse and keyboard data from /dev/input/event\* and write data into touchScreen by write data into /dev/input/event\* , use EVIOCGRAB to prevent event send to other program .
Here is a simple tool for example <https://github.com/DriverLin/mouse-keyboard-map-touch>
Upvotes: 1 |
2020/04/26 | 617 | 2,310 | <issue_start>username_0: Since some time it is possible to opt in for Application to be signed with Google maintained key. How does the certificate looks like? Is it a self signed one like before, or maybe it is issued from some Google one?<issue_comment>username_1: You can use a keymapper app like octopus.
This app mirrors the original app and adds keymapper.
<https://play.google.com/store/apps/details?id=com.chaozhuo.gameassistant>
Here's the link for this app!
Upvotes: 0 <issue_comment>username_2: If you are willing to use a PC as the interface.
There appears to exist a modified version of the open-source [scrcpy](https://github.com/Genymobile/scrcpy) which has keyboard shortcut support for playing games, but should partially map to your requirement:
[QtScrcpy - gitee repo](https://gitee.com/Barryda/QtScrcpy) or [QtScrcpy - github repo](https://github.com/barry-ran/QtScrcpy)
See project README for keyboard mapping feature:
<https://github.com/barry-ran/QtScrcpy/blob/master/README.md>
[](https://i.stack.imgur.com/q4bCv.jpg)
It looks promising. Unfortunately I haven't used it, and while open source, most of the project UI/documentation isn't in English.
The issue thread for the keyboard mapping feature for scrcpy:
<https://github.com/Genymobile/scrcpy/issues/712>
you might want to look there for more options.
Upvotes: 3 [selected_answer]<issue_comment>username_3: Although this question has an accepted answer, I just thought I could add another option, for others looking for something like this.
You could use an automation app like Automate, Macrodroid, Tasker or Automagic(development stopped), to listen for the specific keyboard input, and execute the touch action.
Trigger: keyboard input
Constraints/conditions: external keyboard sends input
Action: UI interaction - touch screen
(Trigger constraints and actions are called differently in different apps.)
Upvotes: 1 <issue_comment>username_4: You can read mouse and keyboard data from /dev/input/event\* and write data into touchScreen by write data into /dev/input/event\* , use EVIOCGRAB to prevent event send to other program .
Here is a simple tool for example <https://github.com/DriverLin/mouse-keyboard-map-touch>
Upvotes: 1 |
2020/04/26 | 1,558 | 6,205 | <issue_start>username_0: I like using battery saver on my Android phone as it greatly extends the battery. However, there is one app that I use that I would like to exempt from two of the things that batter saver disables - vibration and location services.
I'm ok with the battery usage for these on this one app only but want to restrict all other apps from using the battery.
How can I accomplish this?<issue_comment>username_1: Assuming you have a Pixel 3XL and using the system level battery saving,
From: <https://dontkillmyapp.com/google>
**Pie and pre-Pie**
If you see background processing issues, overall it is a good idea to make your app not battery optimized to ensure it gets the freedom it needs to perform in the background.
For that:
* Go to Settings > Apps > Your app > Advanced > Battery > Battery optimization
* Change view to All apps
* Search for your app
* Choose Not optimized
**From the comments:**
>
> my app is already not optimized, but vibration doesn't work nor does GPS with the screen off when power saver is on.
>
>
>
So as stated in: <https://support.google.com/pixelphone/answer/6187458?hl=en>
**What happens when Power Saver is on:**
* Apps only refresh their content, like email or news, when you look at the app.
* Location services stop when your screen is off.
* Apps stop doing things in the background, unless you turn off battery optimization.
* Your phone stops listening for "Ok Google.” Instead, you need to squeeze your phone or tap the Assistant icon Assistant.
* Dark theme turns on.
* Your phone and notifications may be delayed.
So your app not receiving GPS/location services is covered by **Power Saver** behavior, as to why vibration isn't working I can't say without knowing why vibration is occurring unless its related to any of the above items like location or a background process.
Upvotes: 1 <issue_comment>username_2: Vibration and GPS are considered as system services, not apps. Thus, it cannot be exempted on the usual setting when Battery Saver is enabled. However, ***since Android 8.0 Oreo*, it is possible to tweak some settings for Battery Saver.**
This is related to the [`BATTERY_SAVER_CONSTANTS`](https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/provider/Settings.java;l=11939;bpv=0;bpt=1) global settings that can be modified through ADB.
```
/**
* Battery Saver specific settings
* This is encoded as a key=value list, separated by commas. Ex:
*
* "vibration_disabled=true,adjust_brightness_factor=0.5"
*
* The following keys are supported:
*
*
```
* advertise_is_enabled (boolean)
* datasaver_disabled (boolean)
* enable_night_mode (boolean)
* launch_boost_disabled (boolean)
* vibration_disabled (boolean)
* animation_disabled (boolean)
* soundtrigger_disabled (boolean)
* fullbackup_deferred (boolean)
* keyvaluebackup_deferred (boolean)
* firewall_disabled (boolean)
* gps_mode (int)
* adjust_brightness_disabled (boolean)
* adjust_brightness_factor (float)
* force_all_apps_standby (boolean)
* force_background_check (boolean)
* optional_sensors_disabled (boolean)
* aod_disabled (boolean)
* quick_doze_enabled (boolean)
*
```
* @hide
* @see com.android.server.power.batterysaver.BatterySaverPolicy
*/
@UnsupportedAppUsage
@TestApi
public static final String BATTERY_SAVER_CONSTANTS = "battery_saver_constants";
```
For the possible integer values of [`gps_mode`](https://cs.android.com/android/platform/superproject/+/master:frameworks/base/core/java/android/os/PowerManager.java;bpv=0;bpt=1;l=711):
```
/**
* Either the location providers shouldn't be affected by battery saver,
* or battery saver is off.
*/
public static final int LOCATION_MODE_NO_CHANGE = 0;
/**
* In this mode, the GPS based location provider should be disabled when battery saver is on and
* the device is non-interactive.
*/
public static final int LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 1;
/**
* All location providers should be disabled when battery saver is on and
* the device is non-interactive.
*/
public static final int LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 2;
/**
* In this mode, all the location providers will be kept available, but location fixes
* should only be provided to foreground apps.
*/
public static final int LOCATION_MODE_FOREGROUND_ONLY = 3;
/**
* In this mode, location will not be turned off, but LocationManager will throttle all
* requests to providers when the device is non-interactive.
*/
public static final int LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 4;
```
As stated on XDA Developers, [How to Customize Battery Saver Mode in Android 8.0 Oreo](https://www.xda-developers.com/customize-battery-saver-mode-android-8-0/):
1. Install [ADB](https://www.xda-developers.com/install-adb-windows-macos-linux/) and [USB drivers](https://developer.android.com/studio/run/oem-usb) if necessary.
2. Connect the Android device to the PC with USB and wait until the device is detected
3. Open a command prompt and type `adb devices` to make sure the ADB detects it.
4. Type `adb shell`
5. Decide which values wanted to be changed. Inputting multiple keys are supported with comma separation. For this specific question: `vibration_disabled=false,gps_mode=0`
6. Type `settings put global battery_saver_constants` . Note that the change is permanent, so to undo, the user needs to manually input the opposite values instead.
On rooted devices, it is also possible to run the `settings` command directly from the device using terminal apps like Termux.
Upvotes: 4 [selected_answer] |
2020/04/27 | 393 | 1,327 | <issue_start>username_0: I have forgotten the PIN of a device but I do have access to a root shell with `adb shell` and `su`
*Is there some way I could remove the screen PIN lock or change it?*<issue_comment>username_1: The big axe
-----------
A brute force solution existed as I had access to fastboot too.
To remove the PIN, removed the entire userdata partition with `fastboot`
`fastboot erase userdata`
as described here:
<https://android.stackexchange.com/a/175887/320098>
Upvotes: 2 <issue_comment>username_2: if your device is not encrypted with login credentials you can delete `locksettings.db`
```
adb shell su -c "rm /data/system/locksettings.db*"
```
However, bear in mind the following files are required for FBE encryption. If you delete these files you won't be able to decrypt userdata partition, all data is lost
```
/data/system/gatekeeper.password.key
/data/system/gatekeeper.pattern.key
/data/system/locksettings.db
/data/system/locksettings.db-shm
/data/system/locksettings.db-wal
```
Upvotes: 3 [selected_answer]<issue_comment>username_3: @alexcs solution can work without root / su (sorry I can't comment on his answer) :
```
adb reboot recovery
```
(wait for reboot)
```
adb shell rm /data/system/locksettings.db
```
and reboot into normal mode with :
```
adb reboot
```
Upvotes: 2 |
2020/04/29 | 380 | 1,385 | <issue_start>username_0: I cannot unlock apps to close them in the recent apps screen on my new phone. Pressing the lock icon only open the app.
[](https://i.stack.imgur.com/OBb85.png)<issue_comment>username_1: Not sure if you're still having this issue, but recently suffered the same (different app) and managed to resolve it completely by accident:
Go to the recent apps menu (as shown in image) and simple do a (quick) swipe to the right on the app you want to lock/unlock, starting point doesn't seem to matter much but make sure to swipe all the way to (or over) the edge. If you do it too slow or not far enough it doesn't work.
I haven't been able to find this in any official documentation or if/where it can be configured/disabled, it's not listed in the System->Gestures menu. It also seems to be fairly tenacious since 'locking' an app persists after a reboot or force stop via developer menu's 'running services'.
It seems to be something similar to Windows' 'Pin to Taskbar' or Apple's 'Keep in Dock'.
Phone: Alcatel 1S (2019) running Android 9 (build 01001)
Upvotes: 1 <issue_comment>username_2: I solved it by swiping down the lock icon on my android 10 device. Hope this helps
Upvotes: 3 <issue_comment>username_3: I also found tapping and swiping under or on the lock icon and swiping down unlocks the app.
Upvotes: 0 |
2020/04/29 | 1,066 | 3,830 | <issue_start>username_0: I bought a cheap Blackview BV5900 running on Android 9.0 (I assume a custom ROM) as I needed something rugged and with long battery life for testing purposes. I'm struggling to find any answers as to why apps won't auto start when they are supposed to. The app in question primarily is Grandstream Wave - Video which is effectively a SIP client. It auto starts just fine on an old Samsung Galaxy V6.
I've tried various auto-start apps to see if I could get around it, but it would seem they fail to load as well on boot, so they don't do the task they are intended to perform. I've been in contact with the manufacturer and their answer is it just won't do it.
As it's a test phone I'm quite happy to root it, although I'm completely new to Android, I'm sure I'll find enough info to get started with a bit of googling.
What I'm after is a bit of help on what to look for and how to find it. From what I gather, the app is looking for a `BOOT_COMPLETE` message of some sort, so I'm guessing that is disabled somewhere? Any answers, please assume I know nothing, you will be correct.
**EDIT 11May2020**
Tried the shell command as requested [here](https://android.stackexchange.com/a/224547/322004) - no Joy. Result from shell below. Not sure whether this just means I don't have enough privilege to run it or it's disabled in some way?
```
Broadcasting: Intent { act=android.intent.action.BOOT_COMPLETED flg=0x400000 pkg=com.grandstream.wave }
Security exception: Permission Denial: not allowed to send broadcast android.intent.action.BOOT_COMPLETED from pid=5834, uid=2000
java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.BOOT_COMPLETED from pid=5834, uid=2000
at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:21774)
at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:22411)
at com.android.server.am.ActivityManagerShellCommand.runSendBroadcast(ActivityManagerShellCommand.java:690)
at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:174)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:16434)
at android.os.Binder.shellCommand(Binder.java:634) at android.os.Binder.onTransact(Binder.java:532)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3551)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3397)
at android.os.Binder.execTransact(Binder.java:731)
```<issue_comment>username_1: Not sure if you're still having this issue, but recently suffered the same (different app) and managed to resolve it completely by accident:
Go to the recent apps menu (as shown in image) and simple do a (quick) swipe to the right on the app you want to lock/unlock, starting point doesn't seem to matter much but make sure to swipe all the way to (or over) the edge. If you do it too slow or not far enough it doesn't work.
I haven't been able to find this in any official documentation or if/where it can be configured/disabled, it's not listed in the System->Gestures menu. It also seems to be fairly tenacious since 'locking' an app persists after a reboot or force stop via developer menu's 'running services'.
It seems to be something similar to Windows' 'Pin to Taskbar' or Apple's 'Keep in Dock'.
Phone: Alcatel 1S (2019) running Android 9 (build 01001)
Upvotes: 1 <issue_comment>username_2: I solved it by swiping down the lock icon on my android 10 device. Hope this helps
Upvotes: 3 <issue_comment>username_3: I also found tapping and swiping under or on the lock icon and swiping down unlocks the app.
Upvotes: 0 |
2020/04/24 | 423 | 1,644 | <issue_start>username_0: first question here. I was using wifi normally on my phone. Then I turned it off and after some time turned it back again. Since then I can not access the internet. It's showing `Connected(no internet access)`.
I tried to set the IP static. It did not work for DNS `192.168.200.1`. No matter what IP I set with this DNS it does not work. Then used the `8.8.8.8` as DNS, now it's connected. But it is really slow, and the connection does not seem stable. Every time I have to reload google.com several times just to get the page.
The problem is specific to this device only. Other devices connected to the same network are perfect.
Can someone suggest me what should I do? Is this a router issue? Or is this my device problem?
I'm new in this area. So my knowledge is not so deep and you might have to explain things a bit more in detail for me to grasp the concept.<issue_comment>username_1: You can use Airplane Mode to reset DNS.
Put the phone in Airplane mode. Wait about a minute. Power the phone OFF, then start it up, then Remove Airplane Mode and test. It should work.
Upvotes: 2 [selected_answer]<issue_comment>username_2: I just had this issue took me ages but clearing the data from the the google play store app solved it for me..
1. Open your Android device's Settings app and tap "Apps" or "Apps & notifications."
2. Select the Google Play Store app from the complete list of apps.
3. Tap "Storage," and then hit "Clear Data."
Hope it helps someone else!
Upvotes: 1 <issue_comment>username_3: "Forgetting" the WiFi network on my Samsung S7 and then re-logging into it solved the problem.
Upvotes: 0 |
2020/05/01 | 489 | 1,924 | <issue_start>username_0: My phone (Neffos X1) is stuck in a bootloop since yesterday evening. I haven't done any updates (at least not manually) or new installations recently, so it just happened out of the blue. It loads till the Neffos logo and then restarts over and over again.
Since I can't take the battery out, I tried letting it run out of energy and then restart, but as soon as I connect it to a power source the bootloop will start again.
My Phone won't react to any button combination, so I also can't access recovery mode, or any other mode by that matter.
I tried flashing it via SP Flash Tools, but the phone doesn't react to it.
My laptop actually doesn't seem to detect my phone at all, so I can't use ADB as well, can't unlock bootloader or get into fastboot. At least I don't know how.
I tried removing my SD card, since that seems to be the problem sometimes, but it also didn't help.
Is there anything I can do to get out of the bootloot or is it beyond fixing? Like I said, it just happened out of the blue, so it would be pretty upsetting, if my phone just broke for no reason.
I would appreciate any help very very much, so thank you in advance.<issue_comment>username_1: You can use Airplane Mode to reset DNS.
Put the phone in Airplane mode. Wait about a minute. Power the phone OFF, then start it up, then Remove Airplane Mode and test. It should work.
Upvotes: 2 [selected_answer]<issue_comment>username_2: I just had this issue took me ages but clearing the data from the the google play store app solved it for me..
1. Open your Android device's Settings app and tap "Apps" or "Apps & notifications."
2. Select the Google Play Store app from the complete list of apps.
3. Tap "Storage," and then hit "Clear Data."
Hope it helps someone else!
Upvotes: 1 <issue_comment>username_3: "Forgetting" the WiFi network on my Samsung S7 and then re-logging into it solved the problem.
Upvotes: 0 |
2020/05/07 | 505 | 2,064 | <issue_start>username_0: We have two applications that run on the Android platform that both use XML files to transfer data. (`Android v8.0.0`)
However when we open either app, the OS always asks "*Which one of these two apps to you want to open this file with by default?*". We don't want to set a default as we need both apps to be able to open XML files as required by their individual function.
Is there a way to tell Android "***This file type can be opened by any app that wants to do so***"?
At the moment we need to go into **App** settings and ***Clear Default*** on each app after we have run it in order for the other app to "*take over*" as default when we run that. Once we have set default to either app, then the other one throws an error when it tries to open files because it is not the **default** app
That's not really a viable way forward.
Is Android even capable of this file type handling duality? Is there a setting we can change to allow files to be opened by "*non-default*" apps.
Changing the app code is not a short term solution, but if Android truly cannot handle the situation then we may need to, but that will not solve the problem for our users right now. Changing a setting in Android to allow what we want to have happen would be quicker and cleaner.
Thanks for your help.<issue_comment>username_1: You can use Airplane Mode to reset DNS.
Put the phone in Airplane mode. Wait about a minute. Power the phone OFF, then start it up, then Remove Airplane Mode and test. It should work.
Upvotes: 2 [selected_answer]<issue_comment>username_2: I just had this issue took me ages but clearing the data from the the google play store app solved it for me..
1. Open your Android device's Settings app and tap "Apps" or "Apps & notifications."
2. Select the Google Play Store app from the complete list of apps.
3. Tap "Storage," and then hit "Clear Data."
Hope it helps someone else!
Upvotes: 1 <issue_comment>username_3: "Forgetting" the WiFi network on my Samsung S7 and then re-logging into it solved the problem.
Upvotes: 0 |
2020/05/07 | 648 | 2,319 | <issue_start>username_0: **NOTE**: I asked a similar question here several days ago, but I was told to re-post it to "Stack Exchange Software Recommendations", which I did.
Now, I posted this current question to "Stack Exchange Software Recommendations", but I was told to re-post it here.
I hope this current question indeed will now be accepted here.
I know that I can use `adb` from my desktop computer to take a backup of my sdcard ...
```
adb pull /sdcard/ .
```
This downloads everything from my sdcard to the specified directory on my desktop machine. However, I'm wondering if there is some way to download in an rsync-like manner: *i.e.*, only downloading and updating files that have actually changed between my device's sdcard and the directory on the desktop machine.
Or is there perhaps a non-adb-based way to do this?
Also, I want to initiate this from the desktop machine, not the Android device.
Any ideas?
**PS**: This is an Android-10 device, a OnePlus 7Pro (GM-1917) running OOS 10.3.2. However, the answer to my question is probably unrelated to that, since it has to do more with `adb` than the android device itself.
Thanks in advance.<issue_comment>username_1: Per the comment by alecxs, above, `adb-sync` gives me the functionality I'm looking for: <https://github.com/google/adb-sync>
Some day I'll also try `Adebar`.
Thanks to alecxs!
Upvotes: 3 [selected_answer]<issue_comment>username_2: I tried the original adb-sync (<https://github.com/google/adb-sync>), but I couldn't get it to work due to an encoding error. The better-adb-sync fork (<https://github.com/SelfAdjointOperator/better-adb-sync/>) worked well, though.
Just note that the command line options are a bit different from the original, e.g. when you want to pull files from the phone (and not copy to the phone from your PC), you should use `--pull` instead of `--reverse`.
Upvotes: 1 <issue_comment>username_3: Run SimpleSSHD <https://f-droid.org/en/packages/org.galexander.sshd/> and use rsync like you would with any other ssh-enabled server.
```
rsync -r -e 'ssh -p 2222' --info=progress2 user@192.168.74.123:/storage/emulated/0 ~/backup/sdcard
```
It's not exactly "over adb" but you could enable USB tethering on the phone and use the corresponding phone IP address to get a good transfer speed.
Upvotes: 0 |
2020/05/07 | 509 | 2,070 | <issue_start>username_0: [](https://i.stack.imgur.com/SIx98.jpg)
It keeps popping up when I start using the phone, shortly after it has booted. The phone is a Samsung Galaxy Note 3 (SM-N900), running Android-5.0
I flashed the phone and installed a fresh copy of the stock Android-5.0 the one I got it with (OTA update). What could be wrong with it. I need an interpretation of this error message. Thanks.<issue_comment>username_1: android.process.media is a common issue which can occur anytime and is caused mainly because of two applications, the Download Manager and the Media Storage.
try the following
1. Go to Settings > Applications > Manage Applications and make sure to look under the ‘all’ tab. Scroll down and find Google Services Framework and clear the cache and data for this one.
2. After doing that, scroll down and find Google Play. Tap on it and clear cache+data for this one too.
3. Now press the back button and choose Google Services Framework from all apps > Force stop > Clear cache > OK
4. Now open Google Play from you app drawer and when given an error, click OK.
5. Turn off your device by holding the power button and clicking on Shut down/ Reboot
Upvotes: -1 <issue_comment>username_2: android.process.media appears to be, as the name suggests, "Media Storage" crashing. Clearing "Media Storage" cache doesn't work when *another* app is causing it to crash -- and this app is almost always "Download Manager". Clearing the cache of both apps fixes it:
* Settings -> Application Manager -> All apps.
* Find "Download manager", and select "clear cache".
* Find "Media Storage", and select "clear cache".
Some odd websites suggest disabling "Media Storage". Well of course it will get rid of the errors... But you won't even be able to access the pictures you took from the Samsung "Gallery" app, or even take photos or screenshots.
Source: I had this problem again with my good old Note 3. Writing this to help others because most websites don't help much.
Upvotes: 0 |
2020/05/08 | 490 | 2,019 | <issue_start>username_0: I'm wondering if there is a way to record Microsoft Teams meetings with a smartphone; I'm using a Motorola Moto G6 Play and the record button doesn't appear.
[](https://i.stack.imgur.com/CDEC5.png)
I tried with a screen recorder, but Android doesn't allow you to record internal audio unless you root your smartphone (in this case the warranty goes away).<issue_comment>username_1: android.process.media is a common issue which can occur anytime and is caused mainly because of two applications, the Download Manager and the Media Storage.
try the following
1. Go to Settings > Applications > Manage Applications and make sure to look under the ‘all’ tab. Scroll down and find Google Services Framework and clear the cache and data for this one.
2. After doing that, scroll down and find Google Play. Tap on it and clear cache+data for this one too.
3. Now press the back button and choose Google Services Framework from all apps > Force stop > Clear cache > OK
4. Now open Google Play from you app drawer and when given an error, click OK.
5. Turn off your device by holding the power button and clicking on Shut down/ Reboot
Upvotes: -1 <issue_comment>username_2: android.process.media appears to be, as the name suggests, "Media Storage" crashing. Clearing "Media Storage" cache doesn't work when *another* app is causing it to crash -- and this app is almost always "Download Manager". Clearing the cache of both apps fixes it:
* Settings -> Application Manager -> All apps.
* Find "Download manager", and select "clear cache".
* Find "Media Storage", and select "clear cache".
Some odd websites suggest disabling "Media Storage". Well of course it will get rid of the errors... But you won't even be able to access the pictures you took from the Samsung "Gallery" app, or even take photos or screenshots.
Source: I had this problem again with my good old Note 3. Writing this to help others because most websites don't help much.
Upvotes: 0 |
2020/05/12 | 494 | 2,099 | <issue_start>username_0: There's plenty of directions for those who forget their pin code and can't unlock their phone, but there's no explanation for those who have their phone UNLOCKED, but don't remember their pin code to change it.
I can use my phone right now, but I don't remember my pin. That's why once it's off or the screen is locked, which will happen at night, I suppose, I won't be able to access it anymore without wiping the data.
Is there an easier way for me to deal with the problem?<issue_comment>username_1: android.process.media is a common issue which can occur anytime and is caused mainly because of two applications, the Download Manager and the Media Storage.
try the following
1. Go to Settings > Applications > Manage Applications and make sure to look under the ‘all’ tab. Scroll down and find Google Services Framework and clear the cache and data for this one.
2. After doing that, scroll down and find Google Play. Tap on it and clear cache+data for this one too.
3. Now press the back button and choose Google Services Framework from all apps > Force stop > Clear cache > OK
4. Now open Google Play from you app drawer and when given an error, click OK.
5. Turn off your device by holding the power button and clicking on Shut down/ Reboot
Upvotes: -1 <issue_comment>username_2: android.process.media appears to be, as the name suggests, "Media Storage" crashing. Clearing "Media Storage" cache doesn't work when *another* app is causing it to crash -- and this app is almost always "Download Manager". Clearing the cache of both apps fixes it:
* Settings -> Application Manager -> All apps.
* Find "Download manager", and select "clear cache".
* Find "Media Storage", and select "clear cache".
Some odd websites suggest disabling "Media Storage". Well of course it will get rid of the errors... But you won't even be able to access the pictures you took from the Samsung "Gallery" app, or even take photos or screenshots.
Source: I had this problem again with my good old Note 3. Writing this to help others because most websites don't help much.
Upvotes: 0 |
2020/05/13 | 560 | 2,310 | <issue_start>username_0: I'd like to add a widget/shortcut/whatever to the home screen that would allow me to execute a google assistant command as if I had said it.
For example, "Turn off the Livingroom TV".
This would be extremely useful, as it would allow me to dedicate a page in my launcher to home automation tasks. Sometimes it's not reasonable to use my voice (baby on lap for example) and while I'm aware I can hold the home button then click the keyboard icon, I was hoping there was a quicker/easier way.
Although I'd prefer a general answer, I'm using an LG V30+, running Android 8.0.0 if you have any more specific ideas.<issue_comment>username_1: There is [Assistant Shortcuts](https://play.google.com/store/apps/details?id=host.stjin.assistantshortcuts) app on Google Play. I haven't tried it myself, but I think it is a possible solution to your request.
Upvotes: 1 <issue_comment>username_2: Since asking this question, Google has release an app called [Action Blocks](https://play.google.com/store/apps/details?id=com.google.android.apps.accessibility.maui.actionblocks) which does literally exactly what I'm asking for in this question.
With it, you can create "actions" which are either from one of the predefined examples or you can type in arbitrary text which would be parsed as if you typed (or said) it into google assistant directly. These actions can be attached to the homescreen as widgets.
It's not the fastest application in the world, and it's still a bit buggy at time of writing, but it's also only about a week old so I imagine it'll get more solid over time.
---
Another new alternative that has come to the surface since writing this answer, is the [Home Assistant](https://www.home-assistant.io/integrations/google_assistant/) integration. Those with a technical inclination will likely prefer this method. For me, it's been vastly more reliable than google's action blocks and far more customisable and was easy to set up seeing as I already run a home assistant server (though admittedly not as easy as action blocks).
Upvotes: 3 [selected_answer]<issue_comment>username_3: If you create a routine in the Google Home app, you can then add that routine to your home screen on your device. No need for extra apps other than the official Google Home app.
Upvotes: 0 |
2020/05/14 | 232 | 832 | <issue_start>username_0: Since yesterday, I am seeing the below icon on my Samsung Galaxy M30s that looks like 2 arrows inside a broken triangle.

I have gone through the official user manual and found nothing related to this.
What does this icon mean?<issue_comment>username_1: It is the [data saver](https://www.samsung.com/au/support/mobile-devices/what-is-the-data-saver-feature/)
icon - switch it off from your settings and it will vanish (Thanks to OP for the link of Data saver)
Source: Personal experience
Upvotes: 2 [selected_answer]<issue_comment>username_2: You need to go to settings and then
Connection >data usage> data saver
and turn off the data saver if you would like to remove the sign

Upvotes: 2 |
2020/05/14 | 1,635 | 5,802 | <issue_start>username_0: I'm using Chrome and Firefox on Android 10. I need to add a link to my home screen and I can't find a way to add the specific link.
I know that I can do the following:
1. Go to the URL
2. Tap the overflow (3-dot) menu
3. Add to home screen
However, if I navigate to a specific URL **within** some sites, like Weather Underground (<https://www.wunderground.com/>) and follow the above process, it doesn't add the specific URL, it adds `www.wunderground.com` and doesn't seem to give me any way to edit that URL to reference the specific subpage (e.g. `www.wunderground.com/my/specific/url`).
Why, and how to solve this?<issue_comment>username_1: ### tl;dr
Using the browsers' "Add to Home Screen" (A2HS) feature may not open the expected link due to the browsers trying to comply with the standard of Progressive Web Application (PWA). Try other approaches instead, like **using app widgets or 3rd-party apps altogether (examples below)**.
### Progressive Web Application (PWA), Manifest file, and Add to Home Screen (A2HS)
To put it simply, [PWA](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps) is an advanced web app that follows some rules. One of them is having a manifest file.
>
> In order to call a Web App a PWA, technically speaking it should have the following features: Secure contexts (**HTTPS**), one or more Service Workers, and a [manifest file](https://developer.mozilla.org/en-US/docs/Web/Manifest).
>
>
>
[A2HS](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen#How_do_you_make_an_app_A2HS-ready) is a browser feature to "install" a web app based on the configuration in the manifest file, which is [linked on the header tag](https://developer.mozilla.org/en-US/docs/Web/Manifest#Deploying_a_manifest_with_the_link_tag).
```
...
...
```
One of the required fields in the manifest file is [`start_url`](https://developer.mozilla.org/en-US/docs/Web/Manifest/start_url) that will be loaded when opening the "app".
>
> The `start_url` member is a string that represents the start URL of the web application — the prefered URL that should be loaded when the user launches the web application (e.g., when the user taps on the web application's icon from a device's application menu or homescreen).
>
>
>
[If `start_url` is invalid](https://w3c.github.io/manifest/#start_url-member), it *may* return the document URL instead (i.e. the exact URL when the page is added to the home screen). However, since the manifest file is configured by the web developer, it might be difficult for end-users to modify/override this value.
In short, when a user adds a web page to the home screen, the browser will check if there is a manifest file, and if there is, it will try to use its value.
### Some examples...
* Wikimedia (including Wikipedia, Gamepedia, and possibly other wikis) has a mobile front-end extension that will *only* add the manifest file to the mobile view [with `start_url` always pointing to the Main Page](https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/includes/api/ApiWebappManifest.php#L25).
The manifest file:
````
/w/api.php?action=webapp-manifest">
````
The content of the manifest file:
```
{"name":"Wikipedia","orientation":"portrait","dir":"ltr","lang":"en","display":"browser","theme_color":"#eaecf0","background_color":"#fff","start_url":"/wiki/Main_Page","icons":[{"src":"/static/apple-touch/wikipedia.png","sizes":"160x160","type":"image/png"}]}
```
This is why adding the desktop version works (and depending on the browser's configuration, it will redirect to the mobile view automatically), but adding the mobile view always returns to the Main Page instead.
* Weather Underground always sets the manifest file regardless if it is viewed on desktop or mobile.
The manifest file:
````
bundle-next/manifest.webmanifest">
````
Containing `"start_url": "/",` which is basically the domain itself.
### Solutions and/or workarounds
* Some sites only have a manifest file on mobile view, using desktop mode may mitigate this issue
* Some [automation](/questions/tagged/automation "show questions tagged 'automation'") apps may allow opening an exact URL. Tasker has "Browse URL" task and users can also add an app widget on the home screen as a shortcut to that task
* Some 3rd-party apps can [create a home screen shortcut to a URL](https://play.google.com/store/search?q=url%20shortcut%20home%20screen&c=apps)
* Changing user agent *may* work (e.g. by using XPrivacyLua as mentioned by user [beeshyams](https://android.stackexchange.com/users/131553/beeshyams) in the [chat room](https://chat.stackexchange.com/transcript/message/54868660#54868660)). According to the [documentation](https://developer.mozilla.org/en-US/docs/Web/Manifest/start_url),
>
> **Note:** The `start_url` member is purely advisory, and a user agent may ignore it or allow the user to alter it at install time or afterwards.
>
>
>
* (Idea, untested) strip the tag (e.g. using "ad" blockers) from the HTML when the page is loaded.
Upvotes: 3 <issue_comment>username_2: Thanks to the link from @Andrew T, this well-reviewed Android app seems perfect for linking to any website (or even Action within an Android app):
<https://play.google.com/store/apps/details?id=rk.android.app.shortcutmaker>
Just tried it and it did exactly what I wanted with no fuss and some nice options.
Upvotes: 1 <issue_comment>username_3: A solution that works for me:
1. shorten the link with some website like Bitly com
2. turn off the internet access
3. paste a shoterned link to your browser and try to reach it
4. unavailable internet will give you a time to add this "proxy" page to your home screen
Now I have a link, not an in-browser application.
Upvotes: 2 |
2020/05/14 | 508 | 1,809 | <issue_start>username_0: I have problem with KG State prenormal on my Samsung Galaxy A8.
So, I installed TWRP, after I installed SaboorROM, and after connect to WiFi, the device set's the KG state to Prenormal and I was unable to boot into TWRP or into SaboorROM. So I installed Stock ROM (AP: A530FXXSBCTC4 | CSC: A530FODXBCTC2). After install I enabled Developer settings and OEM was already unlocked. So I tried to "date|time changing experiments" to reach KG state checking, but nothing worked. Than I was about 500 hours if KG state will change, nothing :/
OEM: unlocked
FRP: unlock
KG: prenormal
Binary: 11 Android: Pie
**How to change KG state?**<issue_comment>username_1: [...] Sadly there is no workaround just yet. 1 week no reboot is useless if you are on Bootloader 7 (Android 10 or latest android 9 update)
<https://forum.xda-developers.com/galaxy-a6/help/official-released-binaries-allowed-to-t4102447>
:(
Upvotes: 0 <issue_comment>username_2: Apart from not rebooting in a week there's another method that worked for my device (not galaxy a8) but i don't know if it will for you.
So, you need to:
* First flash (reflash) official stock firmware, i'd try to flash the version your device had when you bought it, but if you can't, try latest.
* Then boot and proceed with the setup. Skip connecting to the internet so you finish it faster.
* After you finished the setup, connect to the internet and wait. Enable OEM unlocking in developer settings if needed.
* Next log into any valid google account on your phone and wait some time (i waited about an hour).
* Reboot to odin mode and kg status should be checking.
If this doesn't work, try factory resetting after that (keeping the bootloader unlocked) and doing everything again but without even enabling developer options.
Upvotes: 1 |
2020/05/15 | 389 | 1,447 | <issue_start>username_0: How can I block outgoing caller ID on a Nokia 7.2 with Android One 10?
I've tried to do the following:
* Open the phone app
* Click the three dots menu, choose settings
Now I see many options, including *Caller ID and Spam*. I don't see any option to block Caller ID.<issue_comment>username_1: [...] Sadly there is no workaround just yet. 1 week no reboot is useless if you are on Bootloader 7 (Android 10 or latest android 9 update)
<https://forum.xda-developers.com/galaxy-a6/help/official-released-binaries-allowed-to-t4102447>
:(
Upvotes: 0 <issue_comment>username_2: Apart from not rebooting in a week there's another method that worked for my device (not galaxy a8) but i don't know if it will for you.
So, you need to:
* First flash (reflash) official stock firmware, i'd try to flash the version your device had when you bought it, but if you can't, try latest.
* Then boot and proceed with the setup. Skip connecting to the internet so you finish it faster.
* After you finished the setup, connect to the internet and wait. Enable OEM unlocking in developer settings if needed.
* Next log into any valid google account on your phone and wait some time (i waited about an hour).
* Reboot to odin mode and kg status should be checking.
If this doesn't work, try factory resetting after that (keeping the bootloader unlocked) and doing everything again but without even enabling developer options.
Upvotes: 1 |
2020/05/18 | 548 | 2,059 | <issue_start>username_0: I'm running Evolution X 4.3 (official) for Samsung Galaxy S6 (zerofltexx) with MagiskRoot and a few Magisk Modules. I was recently thinking about getting a custom boot animation for my phone, so I installed a root browser and looked for `/system/media/` but it wasn't there.
I also tried the file manager built into TWRP, but I couldn't find it there either. When I tried to use the "Boot Animations for Superuser" app, it ran into an error trying to backup the existing boot animation.
If the `/system/media/` folder is missing, how am I still getting the default boot animation that comes with Evolution X? Anyways, I just need help on how to replace the boot animation.<issue_comment>username_1: You should read the detailed text of the [Boot Animations for Superuser](https://play.google.com/store/apps/details?id=com.jrummy.apps.boot.animations&hl=en) app. There you can find the following info:
>
> **Q:** Is my device supported?
>
> **A:** Your device must be rooted to install a boot animation. Some manufacturers, like Samsung, use a different boot animation format (QMG) which is not compatible with this app.
>
>
>
Therefore the app does not work for Samsung devices. You need an app that is specialized to Samsung devices or that supports the QMG format.
And keep in mind the next section:
>
> **Q:** The boot animation doesn’t play. How can I fix this?
>
> **A:** Some Android devices use different install locations. You should find your current boot animation location and change it in the app’s preferences.
>
>
>
This explains why `/system/media/` does not exist. Again, Samsung seems to follows a different path that most of the other Android devices.
Upvotes: 2 [selected_answer]<issue_comment>username_2: I had the same problem with a Nexus 5, couldn't find `/system/media` using the file manager in `TWRP - 3.7.0_9-0`.
I solved the problem by go to `Mount` in the main menu and select `System`.
After that, I was able to see the folder normally using the file manager in `TWRP`.
Upvotes: 0 |
2020/05/19 | 865 | 3,319 | <issue_start>username_0: I would not recommend rooting a device that is still under warranty.
I am trying to find a way to root my old device from 2014 that has become my daily because the new one got damaged and cannot afford a new one. It runs on Android Lollipop.
I am trying to avoid the traditional root way which involves unlocking the bootloader and then flashing it with different files. I am not comfortable in doing that since it is risky and my brick my phone from a mistake. There are tutorials on doing it for my exact phone model so that is not the requirement here at all.
I also know about the one click root solutions but there seems to be a lot of debate on its safety as it is not clear what info is being collected by the app developer. I did kingroot on my test device and it is fine for that device but I don't want it on my daily.
I have found a way which "on paper" seems the safest. It roots without rooting the device. However, I would still like to make sure that it is safe before I use it.
In the below link there is a video that is about an app called VMOS which allows to duplicate the O/S (done automatically) and creates a virtual O/S on top of the locked one on the device and then the virtual one can be rooted.
<https://www.youtube.com/watch?v=UUTxMGsM_Uc>
The app has been removed from the "Android Play Store". I am adding below the FAQ from their website. In the FAQ they mention that they do not collect any data and that the only data they collect is for error logs.
<https://www.vmos.com/faq.htm>
Can that claim be trusted? Would anyone trust that they are honest and do not collect any other data.
I don't think that the app can be put behind a firewall because then it might block all the apps that are running on it as it is the main gateway for them.
I am also sure that running a virtual O/S would require to use more resources on the device. So this solution would not be useful for just any device.<issue_comment>username_1: You should read the detailed text of the [Boot Animations for Superuser](https://play.google.com/store/apps/details?id=com.jrummy.apps.boot.animations&hl=en) app. There you can find the following info:
>
> **Q:** Is my device supported?
>
> **A:** Your device must be rooted to install a boot animation. Some manufacturers, like Samsung, use a different boot animation format (QMG) which is not compatible with this app.
>
>
>
Therefore the app does not work for Samsung devices. You need an app that is specialized to Samsung devices or that supports the QMG format.
And keep in mind the next section:
>
> **Q:** The boot animation doesn’t play. How can I fix this?
>
> **A:** Some Android devices use different install locations. You should find your current boot animation location and change it in the app’s preferences.
>
>
>
This explains why `/system/media/` does not exist. Again, Samsung seems to follows a different path that most of the other Android devices.
Upvotes: 2 [selected_answer]<issue_comment>username_2: I had the same problem with a Nexus 5, couldn't find `/system/media` using the file manager in `TWRP - 3.7.0_9-0`.
I solved the problem by go to `Mount` in the main menu and select `System`.
After that, I was able to see the folder normally using the file manager in `TWRP`.
Upvotes: 0 |
2020/05/19 | 367 | 1,327 | <issue_start>username_0: i have an Asus K011 Tablet, which i want to connect to the internet. Hovewer wifi is damaged on the motherboard as well as bluetooth so the only possibillity is ot connect it via USB cable to my laptop and from laptop share the internet to the tablet. How can i do it , which program i should use?
Thanks for the answers<issue_comment>username_1: On Windows 10 x64 — not sure if any other hardware/firmware/etc limitations might apply — you can navigate to `Ethernet Properties` dialogue window...
[](https://i.stack.imgur.com/QMfFc.png)
...for wired, and `Mobile hotspot` system settings window...
[](https://i.stack.imgur.com/WiC09.png)...
for wireless internet sharing. Though I've never utilized these features myself and can't speak for how well they work, note that (at least for me) they came standard with my build and I did not need to download or utilize any 3rd party software or utility. Hope that helps!
Upvotes: -1 <issue_comment>username_2: Use reverse usb thethering through android VPN api.
This project can do that:
<https://github.com/Genymobile/gnirehtet>
. No root required.
It is creating a tun0 network interface. ipv4 with tcp/udp will work.
Upvotes: 2 |
2020/05/20 | 744 | 2,902 | <issue_start>username_0: Every time, after booting up my device ([UbiSlate 7Cz](http://www.datawind.com/ubislate-7cz.html)), I receive the following error message with a black background:
>
> Unfortunately, com.android.keyguard has stopped.
>
>
>
When I tap "OK" below this message, the dialogue box quickly disappears and reappears again. I'm unable to access anything on my device. So, opening the settings app and following the steps outlined in [this](https://androidforums.com/threads/com-android-keyguard-has-stopped.1164050/) thread is out of my domain.
However, I managed to open my device in recovery mode by pressing the power and volume up buttons. Even after executing the following commands in the recovery mode:
* wipe data/factory reset
* wipe cache partition
and rebooting the device again, there was no improvement in the situation.
Other options, I get when I press the power and volume up buttons are fastboot mode and normal boot. When I chose the fastboot mode, the device just displayed the default start-up screen. As it was showing the same stuff even after hours, I used the reset pin to turn the device off (the power button didn't have any impact during this regime). From here, I am able to do the same steps as mentioned earlier. But even after all this, the device just shows this particular error message.
While searching this site, I found this question *[How to fix instant lock “unfortunately com.android.systemui has stopped” on Moto G with ART](https://android.stackexchange.com/q/89253/323631)* which I found to be similar to that of mine but with a different error message. I find my question to be different from that because, my device didn't have ART and I'm unable to view anything unlike the OP there, who could see some apps and widgets on the home screen. Also I have a feeling that different error messages have different methods to fix.
I also had a look at these threads - *[How to fix "Unfortunately, the process xxx has stopped"?](https://android.stackexchange.com/q/95803/323631)*, and *[How to fix "unfortunately , the process com.android.systemui has stopped" error?](https://android.stackexchange.com/q/69407/323631)*, but none of the methods described in the answers resolved my issue.
It would be very helpful if you could provide any solutions to this problem.
Thank you in advance!<issue_comment>username_1: My solution: the error happened only when I entered a new SIM card. Without SIM cards the phone worked as expected (Alcatel Pixi 3). I had to disable sim pin using another phone, and then transfer the sim back to the mobile phone with the problem. Disabling sim pin check seemed to solve it.
Upvotes: 1 <issue_comment>username_2: \*\* Clear Data & Catch of the App
1. Option 1. Long Press the Keyboard App & Go to Storage and Clear Data
2. Option 2. Go Setting -> App -> Keyboard -> Storage -> Clear Storage.
Upvotes: 0 |
2020/05/21 | 808 | 3,032 | <issue_start>username_0: In using an app, for example Wechat, to have video chats.
Two Android phones A and B are sitting in the same room. The two users of A and B stated video chat with mobile phones C and D in another city, when two users of C and D are also sitting in the same room.
That is, phone A is calling phone C; phone B is calling phone D.
When the video chats started, because phones A and B, C and D are close to each other, sharp noises started to appear.
What's the way to prevent this noises in the video chats?
Thank you.
[](https://i.stack.imgur.com/oPpO9.png)<issue_comment>username_1: This phenomenon is called [audio feedback](https://en.wikipedia.org/wiki/Audio_feedback) which usually occurs when the sound from the speakers reaches back into the microphone, and then gets amplified because of the speaker-mic loop.
Common and general solutions are to cut off the loop, or at least reduce the loop gain by:
1. Wearing earphone or headphone (isolate the speaker and the mic, prevent the feedback loop completely)
2. Mute the mic when not needed to speak (prevent the chance of feedback loop)
3. Reduce the speaker volume (reduce the volume gain)
4. Take some distance between the speakers (reduce the volume gain)
Upvotes: 5 [selected_answer]<issue_comment>username_2: Before feedback cancellation techniques became common, such an effect would happen even with one pair of phones, e.g. phone A calling phone C. If both phones are on loudspeaker, then the signal emitted by the phone A would go into A's microphone and get transmitted to the phone C, where the same feedback between the loudspeaker and the microphone would re-transmit it back to A, etc:
```
SPK_A -> MIC_A -> SPK_C -> MIC_C
```
This problem is prevented by subtracting the loudspeaker output signal for the microphone input. However, for such a software subtraction to work, phone A needs to know what to subtract: if A is the only phone in the room, it can subtract its own loudspeaker output, and feedback cancellation works as intended.
With a second pair of phones, feedback cancellation fails because the signal emitted by the phone A is picked up by the phone B instead. As the phone B doesn't know what signal A was emitting, it cannot subtract it from its microphone input, and sends it to phone D:
```
SPK_A -> MIC_B -> SPK_D -> MIC_C
```
There is a second (symmetrical) feedback loop that is possible:
```
SPK_B -> MIC_A -> SPK_C -> MIC_D
```
As you can see, the loops are closed, and there is no opportunity for the feedback cancellation software to break those.
In order to prevent the noise, you'll have to break the cross-phone loops physically, e.g. by muting both loudspeakers (switching to earphone) in one of the rooms (e.g. A and B), or in one of the calls (e.g. A and C).
Indeed, muting the microphones, being in separate rooms or having a single call at a time would also help, but I suppose those are not real options.
Upvotes: 3 |
2020/05/22 | 471 | 1,655 | <issue_start>username_0: I know how to open the `termux` app, run (for example) `sv up sshd`, and then interact with the Android device via `ssh`, `rsync`, etc. This is just an example, and the same is also true for any other `termux` initiated procedures.
However, to do this, it's necessary to perform that manual open and manual `sv up sshd` command in `termux` on the device itself.
I want to be able to perform that initial termux interaction from my desktop computer via `adb` without ***any*** direct interaction with the device itself, aside from plugging in the USB cable.
I have looked for solutions, but it seems like no one has come up with any way to interact with `termux` except by first actually manually opening that app on the device, which I do not want to do.
However, could I have overlooked something? I'm hoping that I indeed missed something, and that ***somehow*** I can start `termux`-initiated procedures via `adb`.
Does anyone know how that might be done?
Thank you in advance.<issue_comment>username_1: Per [the comment by <NAME>](https://android.stackexchange.com/questions/225260/termux-running-termux-via-adb-without-any-direct-interaction-with-the-device/225274#comment293033_225260) above, the following works:
1. Launch `termux`
2. Do the following:
```
echo 'sv up sshd
sshd started' > .profile
```
3. Run this whenever I want to start `sshd` via `adb`:
```
adb shell am start -n com.termux/.HomeActivity
```
Upvotes: 3 [selected_answer]<issue_comment>username_2: ```
adb shell am start -n com.termux/.HomeActivity
adb shell input text "your command here"
adb shell input keyevent ENTER
```
Upvotes: 2 |
2020/05/25 | 281 | 1,134 | <issue_start>username_0: I need to add my bookmarks window to the main page. For that, it asks me for a URL which I don't know what it is. I know that the URL for the history list is `chrome://history`.
I tried with the PC or desktop's `chrome://bookmarks`, but it didn't work.
What is the URL of bookmarks or favorites<issue_comment>username_1: There is no such URL for Chrome for Android as of version 80.0. All Chrome specific URLs are listed and can be accessed from `chrome://chrome-urls`. Bookmarks related URL is not listed there.
Second, for a user to access their Bookmarks a separate activity is launched named `org.chromium.chrome.browser.bookmarks.BookmarkActivity`, but this activity cannot be launched outside of Chrome.
In short, what you are after and specifically in the manner you are after is not possible on Chrome for Android.
Upvotes: 3 <issue_comment>username_2: If you're trying to set the home page URL, try this one (works fine for me in Android 11 Chrome):
chrome-native://bookmarks/
This will directly open your bookmarks when you launch Chrome (i.e. if there isn't already a tab open).
Upvotes: 0 |
2020/05/26 | 653 | 2,623 | <issue_start>username_0: I have found a pretty old device Huawei Ascend Y210. This mobile officially has Android 2.3.3 (API level 10). I found an online custom lollipop ROM for the specific mobile. The device has CWM as custom recovery. The zip file (the rom file) was installed successfully. The environment feels like android Lollipop should look like. Going to the mobile's settings > About phone > Android version, the version is 5.0.1 as expected. Using the command `adb shell getprop ro.build.version.release` the result is 5.0.1 indeed. However, I tried running `adb shell getprop ro.build.version.sdk` the result is 10 which is the API level of the stock android of the phone (Android 2.3.3). Apps made from API level 23 will fail to install as the API level is getting recognized as 10. Changing the apps' Minimum API level to 10 using APK Editor Studio, allows the app to get installed but it crashes once I try to open it.
Is that a bug? I mean can I somewhere change the API level of the device? Or is the ROM a scam and the android is never really getting updated to 5.0.1 and the ROM just changes the graphic interface? How is it even possible to trick the adb that the android version is 5.0.1 but keep the API level to 10?
P.S.: If someone has any ROM for Huawei Ascend Y210 with android 5.0.1 or higher handy, I would appreciate a download link.
Thanks in advance!<issue_comment>username_1: Every Android device has its own API level.
it is not a bug, while you use a feature/app that requires higher API level but the device API level is lower than the requirement, the app will surely crash
API level is based on the Android version of the device, but then it also uses the hardware resource, so even if it's upgraded to a newer version of Android, it can't advance the API level higher than the hardware resource available.
Upvotes: 0 <issue_comment>username_2: As Izzy mentioned the issue here was that the owner of the ROM had modified the `ro.build.version.sdk` in the `build.prop` without actually provide any feature of the API level 23. I am not sure if username_1's answer is correct since I could not find any resource online that claims the same thing (correct me if I am wrong), Google's official site claims nothing about the API level, it just mentions some thing about the Android Compatibility regardless of the API level and the hardware. I could not find any ROM for the device since it's pretty old and almost every support for the Huawei and Honor phones on custom ROMs and rooting is dead after Huawei disabling the ability to unlock the bootloader.
Upvotes: 2 [selected_answer] |
2020/05/29 | 1,708 | 5,509 | <issue_start>username_0: I own a Oneplus 7T, which runs Android 10 and therefore has no working TWRP to flash ROMs with. It's bootloader is unlocked and is rooted.
When installing a new ROM, whether it is a custom ROM or an update to the current ROM, I install them by extracting the ROM zip, extracting `payload.bin`, and flashing certain `.img` files in fastboot, following the instructions found [here](https://forum.xda-developers.com/oneplus-7t/how-to/rom-stock-fastboot-roms-oneplus-7t-t3979213) under the 'Manual Flash' section.
However, I'd like to understand more about this process. The instructions flash less `.img` files than were extracted. For example, in the recent Oneplus 7T OOS 10.0.11 update, the the number of `.img` files [extracted](https://i.stack.imgur.com/OxJvU.jpg) (31) is less than what was flashed according to the instructions (19). Furthermore, the instructions passed the arguments `--disable-verity` when flashing two of the .imgs, but not the others.
Therefore, I'm wondering:
1. What does each .img file do?
2. Which files must be flashed and in what order?
3. Why are certain files flashed with certain arguments?<issue_comment>username_1: I own a OnePlus 7 and the same developer has answered a similar question in [One Plus 7 device forums](https://forum.xda-developers.com/showpost.php?p=82449285&postcount=439)
**Question**
>
> I just noticed, the script in bat file only flashes 25 .img files, but when I extracted payload.bin in OB2 I saw 32 .img files. Does this mean that the other .img files in payload are not needed? Or can I add the command in bat file to flash other images?
>
>
>
**Answer**
>
> They can't be flashed using fastboot, that are the criticals partitions, they are needed and it's for that these fastboot roms can't be used to update or downgrade the software you have on your device, because the fastboot roms can't flash all partitions. This fastboot roms should be used if your system cannot be used and if you don't have access to TWRP
>
>
>
* They need to be flashed in the order specified. All of them (see next point)
* `.img` files replace the file on the device with the one in fastboot ROM, *except* for [critical partitions](https://source.android.com/devices/bootloader/unlock-trusty#flashing-lock-unlock_critical)
(I am not sure what these are for your device but could be boot loader, OTA, TEE, SoC etc) . This accounts for the difference in number (31 extracted but 19 only flashed). See [Irfan's comment](https://android.stackexchange.com/questions/225436/when-installing-new-rom-through-fastboot-which-img-files-must-be-flashed-with/225437?noredirect=1#comment293618_225436)
* `--disable-verity` is only applicable for `vbmeta` header files. For more details, see [How to disable dm-verity on Android with "user" build type ROM?](https://android.stackexchange.com/q/215800/131553) where the concept is well explained, in detail.
Upvotes: 3 [selected_answer]<issue_comment>username_2: If your ROM developer does it, you can just
```
fastboot update rom.zip
```
Where `rom.zip` contains `android-info.txt` and at least `boot`, `system`, `product`, `vendor`, `vbmeta`, and `dtbo` img files.
If necessary, unzip and rezip creating an empty `android-info.txt`.
IMG files contain an exact replica of the partition which is copied exactly onto the device.
---
While it may have been a requirement before, for Android 10-based Google Pixel, only `boot`, `system`, and `vendor` were flashed.
```
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.050s]
Setting current slot to 'b' OKAY [ 0.447s]
extracting boot.img (29 MB) to disk... took 0.132s
archive does not contain 'boot.sig'
Sending 'boot_b' (29825 KB) OKAY [ 0.801s]
Writing 'boot_b' OKAY [ 0.706s]
archive does not contain 'dtbo.img'
archive does not contain 'dt.img'
archive does not contain 'recovery.img'
archive does not contain 'vbmeta.img'
archive does not contain 'vbmeta_system.img'
archive does not contain 'super_empty.img'
archive does not contain 'boot_other.img'
archive does not contain 'odm.img'
archive does not contain 'product.img'
archive does not contain 'product_services.img'
extracting system.img (1949 MB) to disk... took 7.095s
archive does not contain 'system.sig'
Sending sparse 'system_b' 1/4 (524284 KB) OKAY [ 13.063s]
Writing 'system_b' OKAY [ 4.652s]
Sending sparse 'system_b' 2/4 (524284 KB) OKAY [ 13.006s]
Writing 'system_b' OKAY [ 4.006s]
Sending sparse 'system_b' 3/4 (524284 KB) OKAY [ 13.052s]
Writing 'system_b' OKAY [ 4.255s]
Sending sparse 'system_b' 4/4 (423068 KB) OKAY [ 10.459s]
Writing 'system_b' OKAY [ 3.348s]
extracting system_other.img (313 MB) to disk... took 1.306s
archive does not contain 'system.sig'
Sending 'system_a' (320532 KB) OKAY [ 7.964s]
Writing 'system_a' OKAY [ 3.700s]
extracting vendor.img (259 MB) to disk... took 1.012s
archive does not contain 'vendor.sig'
Sending 'vendor_b' (265808 KB) OKAY [ 6.615s]
Writing 'vendor_b' OKAY [ 2.748s]
archive does not contain 'vendor_other.img'
Rebooting OKAY [ 0.041s]
```
Upvotes: 1 |
2020/05/30 | 831 | 3,351 | <issue_start>username_0: I am using [Shelter](https://github.com/PeterCxy/Shelter) to create an isolated space for apps which I don't trust very much and to disable them when I am not using. Shelter works by creating a work profile in Android and registering itself as the administrator, thus granting it rights to disable apps.
This has been working great in my Android 8 phone, but I recently got a new phone which comes with Android 10, and unfortunately it looks like I can no longer share the same keyboard in work profile apps. This is important to me because I use [KeePass2Android](https://play.google.com/store/apps/details?id=keepass2android.keepass2android)
to store my passwords and it provides a virtual keyboard to automatically input credentials into any text field.
Is there any way to get back the old functionality and be able to use personal keyboards in work apps?<issue_comment>username_1: Install your keyboard by cloning it into Shelter or by installing it through an App Store that is installed / cloned into Shelter.
After that, you can activate your keyboard in *Settings > System > Languages and input > On-screen keyboard > Work*.
The reason why Android enforces a separation on the keyboard is simple: Third party keyboards also grab data. If you choose to use a third-party keyboard, it should not be able to combine your data. Shelters goal is the strict split between your data to provide isolation and thus more privacy.
EDIT: This will not include data sharing which you're apparently after. It wasn't clear to me before you replied to me. If it's just about getting the "same keyboard" (in "same APK" without data sharing), this is the right approach.
**An alternate solution for your problem with KeePass**
I had the same problem, here is how I solved it:
I've setup Syncthing on all my profiles and my PC (should work with Shelter as well) and let all profiles sync a KeePass database. Use the Syncthing-Fork from F-Droid in particular, it offers better diagnostic capabilities. Alternatively, use another Cloud provider if privacy is not a concern.
I use KeePassDX from F-Droid on all my profiles. It allows to open a local KeyPass database and supports quick unlock with a PIN. It works well between profiles.
Good part about this solution is that your KeePass database is synced between two devices. It works with multiple Android user profiles and should also work with Shelter.
If this doesn't suit you, there is only the old copy paste between your KeePass app and the isolated Shelter app, because the clipboard is shared between both profiles.
Upvotes: -1 <issue_comment>username_2: Here's how I got it working on Android 13:
*Settings -> Apps -> Special App Access -> Connected Work & Personal Apps -> Choose App i.e. Gboard -> Enabled Connected Switch. That will enable the sync between both keyboards (also available for other apps i.e. Android Auto etc.)*
[](https://i.stack.imgur.com/rdg5Im.jpg)
Please note, I tried with SwiftKeyboard and it said "blocked by admin", I am almost certain that Shelter has some weird policy that is stopping it.
So as of now it works well with Gboard. Good luck!
[](https://i.stack.imgur.com/e0UQ6m.jpg)
Upvotes: 0 |
2020/05/30 | 1,195 | 4,207 | <issue_start>username_0: My original Li-ion has 3000 mAh capacity. I've modded my device to have a total of 7000 mAh capacity now.
The enhanced capacity means that my percentage is not displayed accurately anymore.
About 2000 mAh charge displays 75% charge. That means 5000 mAh are located in the top 25% of my battery indicator.
(Charging times confirm: 1 Hour @1800 mA goes from 25% to 75%, but 75 to 83 takes almost the same time and so on.)
I know a lot is possible with a rooted Android device but I'm not too much of a software person.
How can I change the percentages that display? There has to be some kind of lookup table where the Vbatt→"%" conversion is done.
Edit: If no one can help me, I am going to add a bunch of tp4056 chips to enable actually charging.
The software seems to mess around quite a bit.
Now my phone is charging the 2nd time, and (I assume because it is calculated that the battery should be “full” by now in terms of mAh) it has reached “100%” despite the Vbatt being 3.95 Volts. Actual charge is ~ 70% at max!
Here you can see it charged more than 2000 mAh after reaching “100%”. I stopped the charge at 4.2 V.

The lower portion reached 75% after 1000mAh and took 900 more for the rest. So this has lost all it's 'linearity'.
Can I (additionally to changing the display behavior) also change the charging algorithm?
Do I have to compile a kernel by myself? Is there settings for this? I want higher current first and very low current for the charging above 4.1 V.<issue_comment>username_1: Let's look at the challenges you would face in achieving correct reading, [rooting](/questions/tagged/rooting "show questions tagged 'rooting'") is not a magic key that let's you do everything easily:
* The battery capacity (mAh) is coded in two places - the ROM and kernel (see [Where are the battery capacity files located?](https://android.stackexchange.com/q/145263/131553)) Only OEM would know from where the values are picked up, so you would need to have a custom ROM and kernel that stores this higher value. You would need to do this own and this is definitely **not** a trivial effort. ROM "chefs" wouldn't be interested in this (not appealing or in demand). You say you aren't a software person, so it's safe to discard this path.
* The charging algorithm is also proprietary and not open source given the competition ( I can charge from xx to yy% in so many minutes is the sales pitch). So that's your next **huge** challenge since the charger, charging cable and the device need to be in sync with the algorithm. Impossible for you to replicate. See the [charging algorithm](https://i.stack.imgur.com/7ADGt.png)
([Source](https://goughlui.com/2016/05/29/review-teardown-anker-powercore-10050-a1310-qc2-0-power-bank/)
) of an Anker power bank to get a sense of how challenging it would be to figure out on your own.
* Charging incorrectly is going to damage your new battery and the purpose of acquiring it is partly defeated. This would be the result since you aren't easily going to achieve the first two points.
It is for these and probably more reasons that third party sellers who provide extended batteries do not attempt to show the correct percentage. Read the reviews of any such product and you will find complaints around this
**What you can do**
* Use a battery bank of desired capacity.
* Experiment at various charging speeds and arrive at a rough correlation between shown and actual voltages.
* Rig up hardware based system as you suggested in your question (off-topic on this site)
Upvotes: 3 [selected_answer]<issue_comment>username_2: The go-to for my case would be not to edit voltages, but to change battery capacity in the system.
The device needs to be rooted in order to access and edit
/etc/floating\_feature.xml .
This contains a section containing the capacity in mAh which can be edited to the desired amount (in my case 6500 mAh).
This is from a post by user Yamaha169 on XDA forums.
(<https://forum.xda-developers.com/s7-edge/help/mod-aftermarket-misreading-battery-t3510597/amp/>)

Upvotes: 0 |
2020/06/01 | 717 | 2,768 | <issue_start>username_0: Discord talk channel stays **broadcasting indefinitely in background** even if the screen is locked.
*Note that I write "background" from the user's point of view. The app has a persistent notification so that makes it technically non-background on Android.*
I would like to know if there is a setting or app that could be used to prevent this privacy issue.
For example to stop apps on screen lock, or to auto-disable microphone after some time.<issue_comment>username_1: There is no definite solution to your problem AFAIK, but I can share my thoughts on it.
From [documentation](https://developer.android.com/about/versions/pie/android-9.0-changes-all#bg-sensor-access):
>
> If your app is running in the background on a device running Android 9... it cannot access the microphone
>
>
>
Furthermore since Android 9 you can force an app to use microphone (and other operations) [only in foreground](https://android.googlesource.com/platform/frameworks/base/+/2378a4a3faa989a51c1aea8a4dd325c9f0235a58%5E%21/#F0):
```
~$ appops set com.discord RECORD_AUDIO foreground
```
Both of the above are applicable only if the app is not running a foreground service i.e. not showing a persistent notification.
In case of older Android version or if the app is running a foreground service you can try to make use of some [automation](https://android.stackexchange.com/tags/automation/info) apps to revoke `RECORD_AUDIO` permission and/or operation as soon as screen is locked:
```
~$ pm revoke org.lineageos.recorder android.permission.RECORD_AUDIO
~$ appops set com.discord RECORD_AUDIO ignore
```
And do the inverse when screen is unlocked.
However Android framework mostly kills/restarts the app/service when a permission is revoked. Or the app may continue using the previous state of permission unless it's manually restarted. So the approach is not reliable but may work for some apps under certain circumstances.
>
> For example to stop apps on screen lock, or to auto-disable microphone after some time.
>
>
>
Stock Android doesn't provide any such feature to auto-disable or disable mic from lock screen, though a custom ROM developer or OEM may provide e.g. a "Turn Mic Off" tile. Some ROMs add "Kill app" button to notification (on long press). But that may require unlocking the screen. Again you can automate to kill the app on screen lock. But some apps may also start a service on broadcast events.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Navigate to Settings/Apps/Advanced/Default Apps/Digital Assistant, then change from Voice to Google speech recognition. That should replace the mic symbol with the phone symbol.
-or-
You could try denying the Google app's mic permission or both.
Upvotes: 1 |
2020/06/01 | 3,020 | 13,040 | <issue_start>username_0: Has anybody had a closer look into this module what it really does?
I want to know if the functionality will work if bluetooth is turned off.
I guess a surefire method to test this would be to remove the SIM, disable all antennas and measure EM radiation (though I'm not sure if there's still cell tower communication with the SIM removed).
Even if the answer above is no: I don't want this software on my Phone.
* Is it possible to modify Google Play Services (GPS), remove contact tracing, and
use GPS as usual after? This seems the best option but an update might then again overwrite it.
* Root and remove GPS. I have a OnePlus 7. Will everything keep working well except the Google apps of course?
* LineageOS maybe but I like OxygenOS a lot..
* Other options?
Much would be cleared up if we can see the code. Is this possible?<issue_comment>username_1: The Covid contact tracing in Google Play Services is an API. And according to he documentation this API is working opt-in. By default your device will not track anything.
Also note that "contact" in this context means "a cryptographically random token generated by a different device that was within Bluetooth range at a certain time". No contact data like name is transmitted.
For "activating" this interface you need at least one of the Google certified Covid 19 tracing apps (there can be only one app per country and only public health agency is allowed to publish one).
And in such an app Google enforces that the user has a switch for enabling and disabling the tracking system.
~~However if you still not trust Play Services with integrated Covid tracking API you should switch to a Custom ROM + OpenGApps. Every device I have tested that uses this combination does not provide the COVID contact tracing API, even if the very latest version of Google Play Services is installed. Hence it seems like the tracing API is generally disabled for Custom ROMS using OpenGApps.~~
It is still unclear why on some devices with CustomROM and OpenGApps the COVID tracking API is available and on other devices this option does not show up even with latest OpenGApps installed.
You can verify on your own if your PlayService support Covid 19 tracking:
Open **Settings** -> **Google** If the first entry in the services list shows you something about "Notifications on encountered Covid 19 infections" than the API is ready to use. If not then every Covid tracking app that wants to use this API will not work (the app will just show the error code 39501).
Upvotes: 2 <issue_comment>username_2: Contact tracing is not the only way a user can be tracked and mass-scale user tracking has been in motion for a long time. Some examples:
* On Replicant, it is argued that [Samsung Galaxy devices running proprietary Android versions come with a back-door that provides remote access to the data stored on the device.](https://redmine.replicant.us/projects/replicant/wiki/SamsungGalaxyBackdoor).
* <NAME> of Quartz says that [Google collects Android users’ locations even when location services are disabled](https://qz.com/1131515).
* <NAME> on his blog posted that [NSA can hack the Baseband Processor and control your smartphone even when the phone is switched off](https://mythoughtsontechnologyandjamaica.blogspot.com/2015/03/NSA-CIA-smartphone-hack-Baseband-Processor.html).
One mitigating measure against Google Play Services' tracking is to root your device and use app like cn.wq.disableservice. With this you can have control over GMS and block single actions, like prevent GMS from updating itself. It's painful to understand all the things but it should be technically possible to block data transfers.
[](https://i.stack.imgur.com/ARAwRm.png)
This however would not be sufficient. You are already being profile/tracked when you are using:
* proprietary software or services (such as Android OS as shipped by an OEM);
* various services such as cloud syncing of personal/private data;
* real-time text to speech translation -- your audio could be getting saved onto the cloud. You can see some of that data collected by Google [here](https://myactivity.google.com/myactivity?restrict=vaa);
* maps with real-time live traffic data.
Some services/software, such as Google Play Store, even force this tracking by requiring the user to sign in to use the product. Furthermore, a staggering number of Android apps use some sort of analytics such as Firebase.
Upvotes: 1 <issue_comment>username_3: Google Play Services introduced user-tracking capabilities in my Android device without my knowledge or consent. I consider this software a user-tracking software (read [Google's Software is Malware](https://www.gnu.org/proprietary/malware-google.en.html) from Free Software Foundation) which also offers services to third-party app developers to spy on their users. This sordid state of affairs led me to the following solution which disables Google Play Services software, other preinstalled softwares from Google, and their user-spying capabilities.
**Instructions in brief that you need to execute:**
1. Transfer all your phones contacts into the phone's SIM card.
2. Download the APK for alternative browser to Chrome to external sdcard.
3. Move all the files you want to keep from phone's internal card to the external card.
4. Factory reset your phone.
5. Wait for Factory reset.
6. Skip past Google credentials prompt.
7. Switch off app permissions.
8. Delete Google apps like YouTube and Chrome.
9. Disable and close Google Play Services, and mute error messages about its absence.
10. Install browser APK from sdcard.
11. Browse to an independent app store and download replacement apps.
Details
-------
1. Transfer all your phone's contacts into the phone's SIM card. Your phone is about to be wiped and your connection with Google is about to terminate. (There are working alternatives to everything Google offers, so you'll hardly notice it gone once you've did all this.)
2. Go to the website of Mozilla or Opera or whatever browser you like. Download the APK of the latest browser from their website. You're not going to install this APK yet. You are going to save this to your SDCARD and install it later. You will need this file and it's the only file you will need.
If you are unable to find the APK on the website you can consider a third-party app store such as APKPURE which is like Google Play Store, except that it's not from Google. See if you can find a decent browser APK as an alternative to Chrome (in my opinion, Google Chrome also tracks your location and reports your movements and contacts to unknown parties).
3. Go through your whole phone and copy across any files on the phone's internal card to the external sdcard. This can be a time consuming process depending upon how much data is stored in your phone. All the data from the phone's internal memory is about to be wiped in later instructions, so make sure you **copy everything important beforehand.**
4. Reset your phone. (Reset only the Internal memory if an option is available to you.) To do this you can go to Settings → System → Reset options, or you can just switch off the phone and switch it back on again whilst holding the Volume Up button.
5. Wait for Factory reset to complete and for your phone to boot to the device/phone setup screen.
6. Now that you've reached the First screen, please type in your Google credentials.
7. Swipe down from the Status bar and click the cog icon to open Settings. Go to Apps and Notifcations, then from there App permissions. Go through all of them and switch all of them to off state right away.
8. Go back to Apps and Notifications setting. If you see any app from Google just disable it, then force stop the app which is already running in the back ground. Get rid of everything preinstalled by Google before you even start using your new fresh phone, especially the Google Play Services which is essential for disabling **removing COVID-19 notification API**.
**Do note that** disabling Google Play Services (upon which insanely high number of third-party apps in Play Store depend upon) means you are going to get some error messages from third-party apps to show up. You can mute such messages because even though they mention that they need Google Play Services to function they actually don't in reality. The benefit to the user is that user-tracking services offered by Google Play Services to third-party apps installed in your phone would no longer be available to such installed apps anymore.
Speaking redundantly here, there would a few error messages that will appear immediately and may pop up occasionally over the course of the month until you have used all the apps you usually do in the course of a month, and until you have caught and dealt with all the error messages as they come up. This will include your phone's dialer app, text messages app, camera app, and basic functional apps. They will all work without Google Play Services
9. With caveat mentioned in step 8. in mind, go on, disable Google Play Services and force stop it, just like you did that with Chrome, YouTube, Photos, Drive, Gmail, etc. (You will still be able to access Drive and Gmail via your non-Chrome browser whose APK you downloaded earlier.)
Now deal with the error messages. If you click on the error message itself, it raises up the Google Play Services app, expecting you to click Enable. That's not what you want to do. Each error message starts off with the name of the app that generated the error message. Go to Settings → Apps\*not. → the actual app that generated the error messages, then click on Notifications. In there find a setting mentioning "Google Play Services notifications" or something to that effect. Switch off these notifications. If this notification toggle isn't there then there's the option of switching off the apps notifications generally.
There will be three or four of these errors to work through right off the bat. Other error messages might pop up later in the day as you use an app for the first time on your freshly factory reset device. Just disable the notification on the app itself. It's unlikely you'll see any error messages after the first hour. Maybe in the first 24 hours you'll have dealt with all of them. Maybe one will pop up in a week, maybe a week. You will find your phone and its apps (non Google) still functions perfectly without Google Play Services, and that the error messages are more like a mutable warning rather than some fatal crash.
10. Go to Files. Go to your external sdcard and find the APK file you downloaded earlier. Click on it and you'll be asked about installing from other sources. Files is not Google Play Store so, yes, you want to install from other sources - your sdcard will be the primary means of installing software. Click through everything that needs to be clicked to get the browser installed. Now that that's done, you cant start looking for an alternative to Google Play Store.
11. I use APKPure app store myself but there are a variety of websites which cater toward getting the APK of an app rather than installing from the fancy mechanisms as offered by the likes of Samsung or a Huawei app store. I think some of these stores-by-manufacturer might provide you with an APK store independent of the fact you don't have one of their phones. If you can download the APK from it, then it will work in Android. The one thing you need to suss out is whether your phone is 32 or 64 bit and whether is ARM or x86. If it's x86, sod this whole post and just install a touch screen version of Linux. It's easy and your options are as open as a desktop PC. With ARM there are a few versions of Linux you can install but it's beyond the scope of this text to install it. Have a search for "UserLAnd" (sic) if you want a better version of Linux on your phone than Android but it can get quite technical at the moment.
Most phones are ARM32, but try downloading APKX files. If they work on your phone, then that means you have an ARM64 chip in your phone.
You probably want APKs to use email. Search email apps in your choice of app store. In the app, you can fill out your Gmail address on the create account screen and most email clients will fill out the server details automatically. There's a Google help page about setting up your email client manually with correct SMTP, POP3, IMAP, etc., kind of stuff if the email app you chose doesn't do it for you. I used AqualMail which doesn't rely on Google Play to function. As an alternative to an app, you can use Gmail, Hotmail, Outlook, Yahoo, etc., directly through your browser.
That's the end of the tutorial.
Upvotes: 1 <issue_comment>username_4: Google Play Services v20.15.15 seems to be the last version before covid tracing was added. Stock phone FW versions released before April 2020 should all have a lower version of Google Play Services - don't update past 20.15.15
Upvotes: 2 |
2020/06/02 | 305 | 1,258 | <issue_start>username_0: I have a Samsung S9 running Android version 10 (q).
I frequently use the Google speech to text facility on the keyboard. I can make it do punctuation like commas and periods however I cannot make it do a new line or carriage return.
There seems to be posts about very old Android versions showing that this may have been possible. is this still possible please?<issue_comment>username_1: On Android 12 with a Google Pixel 6 and Gboard voice typing, the voice command is "New line".
Upvotes: 1 <issue_comment>username_2: I have the same phone, Samsung Galaxy S9, with Android 10, with the same problem. When I said, "new line" or "new paragraph," these phrases are not typed. If I say them after a period, a space is generated. If I say "period new paragraph," just the period is generated. Changing the language settings to single language or disabling, "Block Offensive Words" does not affect it.
In Google Play Store, I updated "Speech Services by Google" and rebooted. After that I got, "new paragraph" to work. I'm not sure if I didn't just get the pause to be an appropriate length. It works even without a comma or period. It seems that it needs to be said as if it were written in italics.It doesn't always work.
Upvotes: 0 |
2020/06/04 | 309 | 1,357 | <issue_start>username_0: On a newly configured Android 9 tablet, I installed **Total Commander** which can open most of the known compressed file types (`zip`, `tgz`, etc). I want to open such a compressed attachment directly from the Gmail application without first saving it. However, when I tap to a `zip` attachment in a mail, only a list of other installed applications that can handle the `zip` file are shown, but not Total Commander. How can I add Total Commander to this list?<issue_comment>username_1: The Total Commander app can only work with saved ZIP files. This is defined in it's AndroidManifest.xml:
```
```
As you can see there is only an entry for the `file` scheme, but no for the `content` scheme.
On Android users can not modify which app can handle what file format. Hence without a change by the author of Total Commands you can't do change this behavior on an unrooted device.
Upvotes: 2 <issue_comment>username_2: I contacted the developer of this software. They are going to make the necessary modifications in the coming releases. Currently, the first beta version fulfills my need with a limitation ("*only when Total Commander was already running in the background when I click on the downloaded file*"). This limitation will be addressed in "*beta 2*". I will update my answer when this is generally available.
Upvotes: 0 |
2020/06/06 | 194 | 690 | <issue_start>username_0: In my Pixel 3 with stock ROM I can see (among other) apps called "T Google Enrolment" and "X Google Enrolment". What are these and what do they do? Can I safely disable them?
**UPDATE:** If, as alluded in an answer, these are listening for "OK Google" phrase, why are there two of them and how are they different from "OK Google enrolment"?<issue_comment>username_1: They're used for hotword detection, e.g. continuously listening for "OK Google".
Upvotes: 0 <issue_comment>username_2: To disable it:
1. Open Settings
2. Search for "OK Google"
3. Choose "OK Google Enrolment"
4. Select info
5. Push the "Force stop" button
6. Push the "Disable" button
Upvotes: 1 |
2020/06/06 | 946 | 3,549 | <issue_start>username_0: While YouTube Kids app is allowed on my daughter's Android phone, YouTube app is blocked. Recently I realised she still accesses youtube.com through her web browser so she can follow her favourite gaming YouTubers (on YouTube Kids app she can't follow their channels, she can only find their videos one by one through a general search, which is extremely annoying and unsatisfying).
Is there a way to either follow a channel in YouTube kids or to allow the following of a channel in YouTube app or in web youtube.com while blocking YouTube in general?<issue_comment>username_1: I find Kaspersky Safe Kids to be very good. In the app store. You should be able to block sites under the internet tab.
Upvotes: 0 <issue_comment>username_2: There is a "combined approach" that should work for you, requiring multiple components:
### 1. Block `youtube.com`
As [alecxs](/users/170470/alecxs) successfully tested, blocking `youtube.com` will only affect the web browser, but not the YouTube app (and thus neither the YouTube kids app). You could block that in your router, but then it would only apply when your daughter is home and not using mobile data. Do do that directly on-device, you can use e.g. [Netguard](https://f-droid.org/packages/eu.faircode.netguard/) (yes, the one from F-Droid – the one from Play Store doesn't have that feature as the Play Store policies do not permit, [see here](https://github.com/M66B/NetGuard/blob/master/ADBLOCKING.md)).
### 2. Use a child-protection app
While 1. would work, it would not prevent your daughter from simply "quitting Netguard". So you need something that restricts the apps she can use. For this there are plenty of [child protection apps](https://android.izzysoft.de/applists/category/named/childprotect)¹ – but you should choose wisely: many of those come with a bunch of trackers (Analytics, Ads etc), which is an absolute No-Go in this context. [JoLo](https://play.google.com/store/apps/details?id=software.jolo.kindersicherung) seems to be a good choice – it got very good [reference from MobilSicher.DE](https://mobilsicher.de/ratgeber/jolo-kindersicherung-empfehlenswert), which never just scratches the surface (aka "looks great and has many features") but also checks what apps do "behind your back" (aka tracking, calling home, extracting data…). With such an app, you can establish a "Kiosk": only the parent can change settings – and the child only gets access to what the parent configured.
So combining 1+2, `youtube.com` would not be reachable from the browser, the kids app would still work, and the official YT app could be hidden. On top you get an ad blocker (less traffic, and also protecting your child against "unwanted content"), which you'll certainly welcome.
### 3. Put the YouTube app into "restricted mode"
You could try putting the YT app into [restricted mode](https://support.google.com/youtube/answer/174084?co=GENIE.Platform%3DAndroid) and see if that works for you, so the girl can "follow her channels" from there. Not sure how well that works, or how you can keep your daughter from changing that setting (probably only by using [Google Family Link](https://play.google.com/store/apps/details?id=com.google.android.apps.kids.familylink) which from a privacy perspective can **not** be recommended, as [all data will be logged with Google](https://mobilsicher.de/apps-kurz-vorgestellt/app-test-google-family-link) (again, found out by MobilSicher.DE).
---
¹ disclosure: link goes to my own Android site
Upvotes: 2 [selected_answer] |
2020/06/07 | 1,243 | 4,684 | <issue_start>username_0: I have been using **Viber** for almost ten years on many devices (including Blackberries, Android phones and tablets, Windows and Linux PCs). Lately, my old Samsung tablet started to fail, so I bought a new tablet (**Lenovo TB-8505F** 8" Wifi only). I tried to activate Viber on this tablet as a [**secondary device**](https://help.viber.com/en/article/use-viber-on-your-tablet-or-ipad) which is the way I had used Viber for years: mobile phone is always my **primary** device; tablet *and* PCs are my **secondary** devices.
However, it seems that this new tablet is treated like a mobile phone by Viber (although it is a WiFi only device). So, Viber tries to activate this tablet as a **primary** device only.
As a comparison:
1. On the old Samsung tablet, the "activation screen" which is displayed just after I enter my mobile phone number, shows the relevant QR code to be scanned by my **primary** device (phone). [This is the correct behavior].
2. On the new Lenovo tablet, the "activation screen" which is displayed just after I enter my mobile phone number, shows that an SMS or phone call activation will be attempted [wrong behavior] just like the tablet **were a primary device only** (which it **should not**). In case I continue with the SMS/phone activation, my **primary device** (phone) gets disconnected [as expected].
I want to activate my new Lenovo Tablet as a **secondary** device. Is there a workaround to force Viber to "treat" this device as a secondary device?<issue_comment>username_1: I contacted *Viber Support* several days ago. Eventually the answer came from *Viber Support (Ian)*. The steps are like this:
* Remove Viber from your tablet (I added this step).
* Go to tablet's **Settings** **Display** **Display size** and change from **Default** (or anything else) to **Small**.
* Reboot your tablet so its *dpi* will change.
* Install and activate Viber on the tablet as a *secondary* device (now you will see the expected QR code).
* Change the **Display size** back to whatever it was before.
* To be sure, reboot your tablet and test Viber.
***Note***: Unfortunately, I cannot check the "Display size" of my old Samsung tablet, because I already did a factory reset on it.
Upvotes: 1 <issue_comment>username_2: Having the same issue with Samsung Galaxy TAB A 2019 and witnessing the crap support from Viber, I would like to point that the issue is indeed caused by the Viber device identification from screen resolution as Robert suggested. What is important is to differentiate screen resolution to one that can be identified as "tablet". In an Android developers site I found the following dp info:
>
> Here's how other smallest width values correspond to typical screen sizes
>
> 320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).
>
> 480dp: a large phone screen ~5" (480x800 mdpi).
>
> 600dp: a 7” tablet (600x1024 mdpi).
>
> 720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc).
>
>
>
For some reason my tablet had as factory default setting minimum width 533 dp!
On Android 10 you have to dig deep to find this by activating Developer Options menu (Settings/About tablet/Software Information/7 taps on Build Label) and under Drawing label find the Minimum width setting. For a 10.1'' you can set it to 800 dp.
After restart the installation as secondary device proceeds as normal.
I have to point that Viber support after passing them a slum dunk with the post from this forum and my minimum width setting did not even bother to look for an answer!! They sent me as a reply the summary of this post with the "recommendation" to find View and Small Screen setting on Android !! I hope that my recommendation to include a warning to their knowledge base (which kept sending me as a fix to this problem !!) would resolve future issues. Especially since it is so easy for a developer/ technical person from a multi million dollar company to spot and solve.
Thanks for the info provided by Robert and Fendonkadifeli!!
Upvotes: 0 <issue_comment>username_3: What worked for me is running adb command:
```
.\adb shell wm density // to get current value X
.\adb shell wm density 160 // to set density
```
,activate Viber hopefully as secondary device, and after that - revert value:
```
.\adb shell wm density X` // revert value to X(previously read value)
```
Also, running command `.\adb shell wm density reset` should revert density to initial value, but it faild to work for me.
You could try different values for density. As I understand it, lower value should correspond to larger screen size, ie. tablet.
Upvotes: 0 |
2020/06/08 | 1,386 | 5,586 | <issue_start>username_0: How to allow a call recorder app access to call logs?
=====================================================
Since Android 9 (pie) Google Play has forbidden apps that are not the primary telephony app to access the call logs. The other problem seem to be that the phone recording call quality especially of the party on the other end has seemed to be severely degraded since the prior Android version.
For context, read [Google Play Store Changes SMS and Call Log Policy](https://blog.gummicube.com/2019/01/google-play-store-changes-sms-and-call-log-policy/).
Related post: [Access the call-log to complement what has been banned by policy](https://android.stackexchange.com/q/209149/96277)<issue_comment>username_1: You can't unless your device is rooted or if you are running Android 8 or earlier
---
Details
**Call logs**
Thanks to Irfan who [commented](https://android.stackexchange.com/questions/225751/how-to-allow-a-call-recorder-app-access-to-call-logs#comment294126_225751)
>
> On Android 9+ an app can read call logs only if it holds `READ_CALL_LOG` permission, which is intended to be granted only to the apps registered as default phone app (on Android 10+ it also requires whitelisting restricted permissions during app installation). Additionally apps published on Play Store cannot hold `READ_CALL_LOG` permission if they aren't capable of being used as default phone app which includes call recording apps.
>
>
> For the same reason some call recording and other apps which need to access call logs or ongoing call's phone number publish two different versions of their apps; one on Play Store (without `READ_CALL_LOG` permission) and the other with the said permission.
>
>
>
**Call recording**
* Android has blocked call recording from Android 9 onwards ([country specfic](https://www.boldbeast.com/forum/topic1744-android-9-pie-call-recording.html))
. This has been resisted by several users as you can see in [the issue tracker](https://issuetracker.google.com/issues/128677410#comment).
* Only silver lining is that at some point of time it may be restored in future versions as mentioned in the issue tracker
>
> Our development team has been adding call recording APIs on their road map. Its something that we would like to address in a future version of Android. However due to the security and privacy implications of such APIs it is not something we can deliver for the Q release.
>
>
>
* Without root, you cannot overcome these limitations - poor quality of recording, one sided recording, caller identity not being tagged (as in the related question which you linked). You can see these complaints in the latest reviews of the app you linked.
* Side loading an older APK isn't going to help if you are on Android 9 or above, since OS itself is blocking it. Some call recorders like [Boldbeast](https://play.google.com/store/apps/details?id=com.boldbeast.recorder) have made Magisk modules to overcome these limitations. On OnePlus devices, you can similarly record using a Magisk module.
* If you don't want to root your phone, star the issue tracker and hope that call recording and maybe access to call logs is restored in future versions
Upvotes: 2 <issue_comment>username_2: Accessibility App Connectors allow access to phone call information
===================================================================
Android 9 (pie) app that keeps track of call details without access to call logs:
[Call Recorder - Cube ACR](https://play.google.com/store/apps/details?id=com.catalinagroup.callrecorder&hl=en_US)
**Call Recorder - Cube ACR provides:**
(a) The date and time of the call.
(b) The duration of the call.
(c) The size of the recording in bytes.
(d) The phone number or the name of the person (if in contacts).
(e) Incoming or Outgoing call.
It uses Accessibility App Connectors to get access to this data.
This answer will only work for developers of Android apps, yet works quite well in this case. It doesn't provide access to the actual call logs but it does provide access to the same information. Accessibility App Connectors allow the underlying program to "see' the data that is on the display screen and be notified of events such as placing or receiving a phone call.
The following Google Play app is an example of an app that uses this method. It records the Contact name or the phone number of all phone calls and it does this on Android 9 (Pie) without rooting the phone.
[Call Recorder - Cube ACR](https://play.google.com/store/apps/details?id=com.catalinagroup.callrecorder&hl=en_US)
The above app has an app connector that lets it access the current phone number and display either the contact name or the phone number if the number is not in the phone contacts. The recorded call quality in speaker phone mode seems pretty good. **This app does not require rooting the phone.**
Because of the above Google Play policy change it may be the case that every phone call recorder app on Google play always has poor quality unless in speaker phone mode. The quality of many of them even in speaker phone mode seems degraded for the other caller. I tested about a dozen of the most popular apps for recording quality. This one may be the best of the twelve. I still have to run some more tests to make sure.
There is a big difference when tested on someone's voicemail message and when tested with an actual person on the other end. Quite often (even in speaker phone mode) the person on the other end is at only half the volume.
Upvotes: 1 [selected_answer] |
2020/06/08 | 1,246 | 5,058 | <issue_start>username_0: I want to get apps from Google Play without logging in to Google Play or using a google account. I just dont want google to have this information.
Is it possible ?<issue_comment>username_1: You can't unless your device is rooted or if you are running Android 8 or earlier
---
Details
**Call logs**
Thanks to Irfan who [commented](https://android.stackexchange.com/questions/225751/how-to-allow-a-call-recorder-app-access-to-call-logs#comment294126_225751)
>
> On Android 9+ an app can read call logs only if it holds `READ_CALL_LOG` permission, which is intended to be granted only to the apps registered as default phone app (on Android 10+ it also requires whitelisting restricted permissions during app installation). Additionally apps published on Play Store cannot hold `READ_CALL_LOG` permission if they aren't capable of being used as default phone app which includes call recording apps.
>
>
> For the same reason some call recording and other apps which need to access call logs or ongoing call's phone number publish two different versions of their apps; one on Play Store (without `READ_CALL_LOG` permission) and the other with the said permission.
>
>
>
**Call recording**
* Android has blocked call recording from Android 9 onwards ([country specfic](https://www.boldbeast.com/forum/topic1744-android-9-pie-call-recording.html))
. This has been resisted by several users as you can see in [the issue tracker](https://issuetracker.google.com/issues/128677410#comment).
* Only silver lining is that at some point of time it may be restored in future versions as mentioned in the issue tracker
>
> Our development team has been adding call recording APIs on their road map. Its something that we would like to address in a future version of Android. However due to the security and privacy implications of such APIs it is not something we can deliver for the Q release.
>
>
>
* Without root, you cannot overcome these limitations - poor quality of recording, one sided recording, caller identity not being tagged (as in the related question which you linked). You can see these complaints in the latest reviews of the app you linked.
* Side loading an older APK isn't going to help if you are on Android 9 or above, since OS itself is blocking it. Some call recorders like [Boldbeast](https://play.google.com/store/apps/details?id=com.boldbeast.recorder) have made Magisk modules to overcome these limitations. On OnePlus devices, you can similarly record using a Magisk module.
* If you don't want to root your phone, star the issue tracker and hope that call recording and maybe access to call logs is restored in future versions
Upvotes: 2 <issue_comment>username_2: Accessibility App Connectors allow access to phone call information
===================================================================
Android 9 (pie) app that keeps track of call details without access to call logs:
[Call Recorder - Cube ACR](https://play.google.com/store/apps/details?id=com.catalinagroup.callrecorder&hl=en_US)
**Call Recorder - Cube ACR provides:**
(a) The date and time of the call.
(b) The duration of the call.
(c) The size of the recording in bytes.
(d) The phone number or the name of the person (if in contacts).
(e) Incoming or Outgoing call.
It uses Accessibility App Connectors to get access to this data.
This answer will only work for developers of Android apps, yet works quite well in this case. It doesn't provide access to the actual call logs but it does provide access to the same information. Accessibility App Connectors allow the underlying program to "see' the data that is on the display screen and be notified of events such as placing or receiving a phone call.
The following Google Play app is an example of an app that uses this method. It records the Contact name or the phone number of all phone calls and it does this on Android 9 (Pie) without rooting the phone.
[Call Recorder - Cube ACR](https://play.google.com/store/apps/details?id=com.catalinagroup.callrecorder&hl=en_US)
The above app has an app connector that lets it access the current phone number and display either the contact name or the phone number if the number is not in the phone contacts. The recorded call quality in speaker phone mode seems pretty good. **This app does not require rooting the phone.**
Because of the above Google Play policy change it may be the case that every phone call recorder app on Google play always has poor quality unless in speaker phone mode. The quality of many of them even in speaker phone mode seems degraded for the other caller. I tested about a dozen of the most popular apps for recording quality. This one may be the best of the twelve. I still have to run some more tests to make sure.
There is a big difference when tested on someone's voicemail message and when tested with an actual person on the other end. Quite often (even in speaker phone mode) the person on the other end is at only half the volume.
Upvotes: 1 [selected_answer] |
2020/06/09 | 332 | 1,309 | <issue_start>username_0: On my Samsung Galaxy S9+ in my Contacts app, I have a group called "Not assigned" with 712 contacts. How do I delete this group and its contacts that are not in other groups?
These contacts are not sync to Google. The rest of the contacts are.
[](https://i.stack.imgur.com/Wv2Qk.png)<issue_comment>username_1: Not the solution I was looking for, but I tapped on each contact and deleted it. This required 4 taps per contact. My wrist was getting sore half way through. It took me about 1 hour.
Upvotes: 0 <issue_comment>username_2: If you got those 'Not assigned' contact from a google account then you are in luck.
* Log in back to that google account to which those 'Not assigned' contacts belong.
* Once you log in, those 'Not assigned' will be assigned back to the google account that you just added.
* Select that google account in the display option.
* Now you'll be able to bulk select all contacts and delete them.
(Note: it will also be deleted from your synced google account but you can easily and quickly recover it from <https://contacts.google.com/trash> or from VCF file)
* Now you can remove your google account from your Samsung device without leaving any 'Not assigned' contacts.
Upvotes: 1 |
2020/06/09 | 290 | 1,212 | <issue_start>username_0: How can I access the browser console on [Opera Mobile on Android](https://play.google.com/store/apps/details?id=com.opera.browser)?
Browser console = something similar to the developer console window on Chrome, when pressing the keyboard shortcut Ctrl Shift J<issue_comment>username_1: Not the solution I was looking for, but I tapped on each contact and deleted it. This required 4 taps per contact. My wrist was getting sore half way through. It took me about 1 hour.
Upvotes: 0 <issue_comment>username_2: If you got those 'Not assigned' contact from a google account then you are in luck.
* Log in back to that google account to which those 'Not assigned' contacts belong.
* Once you log in, those 'Not assigned' will be assigned back to the google account that you just added.
* Select that google account in the display option.
* Now you'll be able to bulk select all contacts and delete them.
(Note: it will also be deleted from your synced google account but you can easily and quickly recover it from <https://contacts.google.com/trash> or from VCF file)
* Now you can remove your google account from your Samsung device without leaving any 'Not assigned' contacts.
Upvotes: 1 |
2020/06/10 | 689 | 2,671 | <issue_start>username_0: [Here](https://source.android.com/devices/tech/connect/wifi-mac-randomization) is the MAC Randomization described and stated:
>
> Note: Randomized MAC addresses are generated per SSID and are persistent.
>
>
>
I can confirm after deleting the SSID, rebooting, and connecting again, the same random MAC is used as before. However, if you reset the device to factory defaults and connect to the same SSID, the device connects with another random MAC address.
So how can you trigger this behavior without doing a factory reset?<issue_comment>username_1: The key related to MAC randomization is only generated for the first time.
And the MAC address is calculated by calling `hmac_sha256` over the SSID with the generated key.
This key is stored in the `/data/...` on the device, and as far as I know, Android does not provide any API to remove it.
But when you perform a factory reset, all the data located under `/data/...` is wiped out, that's why the MAC address changes after that.
Therefore, if you can manage to remove the key, you can trigger this behavior, which is not easy, in my opinion.
Upvotes: 3 <issue_comment>username_2: On Android 11, there is a new option "Wi-Fi-enhanced MAC randomization" in the developer options.
When you enable it, delete/forget the network, and then reconnect, you get a new MAC address every time. Also, you get a new MAC address for this WiFi/SSID when you reboot your device. Disabling and enabling WiFi is not enough to get a new MAC. With this enabled, the device also generates a new random MAC address every few days.
When you disable this option, you get back your previously used random MAC.
Please also read [username_1's answer](https://android.stackexchange.com/a/229158/44325), which is very informative.
Even with a new random MAC, some WiFi hotspots recognize you and still show your free hotspot time is over. This seems to be because of cookies with the Android browser. To mitigate this: connect, dismiss the notification that you have to log in, and in your browser in a new private window, open any non-HTTPS website. Then you'll be redirected to the login page, can log in, and enjoy free WiFi again.
Upvotes: 4 [selected_answer]<issue_comment>username_3: Here is a list of events that will change your random MAC:
* The network name changes
* The operating system is upgraded and the device connects to the network for the first time after the upgrade
* The network name is "forgotten" in the phone settings and then reconnected to
Source: <https://wifi-helpcenter.nokia.com/hc/en-us/articles/360056890733-Issues-with-random-MAC-addresses-Android-10-iOS-14->
Upvotes: 0 |
2020/06/06 | 790 | 3,123 | <issue_start>username_0: I have an BLÜ Pure XR with a broken screen (completely black) which I'm trying to put to some use (security camera perhaps), however, since I can't access the phone at all, I'm not able to turn on USB Debugging, and all strategies I've found online (including putting the phone in ClockWork mode, which I seem to have done successfully) using ADB yield "Permission denied" errors in one form or another (`mount: Permission denied`, `adbd cannot run as root in production builds`, `...java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder android.os.IServiceManager.getService(java.lang.String)' on a null object reference...`, etc).
I say I've successfully put the phone in ClockWork mode because if I connect it to my PC via USB and I run `adb devices` shows me a device in the list, and some of the errors I get include "BLÜ Pure XR" in their contents so it seems to be somewhat successfully connected.
Am I attempting to do something impossible?<issue_comment>username_1: The key related to MAC randomization is only generated for the first time.
And the MAC address is calculated by calling `hmac_sha256` over the SSID with the generated key.
This key is stored in the `/data/...` on the device, and as far as I know, Android does not provide any API to remove it.
But when you perform a factory reset, all the data located under `/data/...` is wiped out, that's why the MAC address changes after that.
Therefore, if you can manage to remove the key, you can trigger this behavior, which is not easy, in my opinion.
Upvotes: 3 <issue_comment>username_2: On Android 11, there is a new option "Wi-Fi-enhanced MAC randomization" in the developer options.
When you enable it, delete/forget the network, and then reconnect, you get a new MAC address every time. Also, you get a new MAC address for this WiFi/SSID when you reboot your device. Disabling and enabling WiFi is not enough to get a new MAC. With this enabled, the device also generates a new random MAC address every few days.
When you disable this option, you get back your previously used random MAC.
Please also read [username_1's answer](https://android.stackexchange.com/a/229158/44325), which is very informative.
Even with a new random MAC, some WiFi hotspots recognize you and still show your free hotspot time is over. This seems to be because of cookies with the Android browser. To mitigate this: connect, dismiss the notification that you have to log in, and in your browser in a new private window, open any non-HTTPS website. Then you'll be redirected to the login page, can log in, and enjoy free WiFi again.
Upvotes: 4 [selected_answer]<issue_comment>username_3: Here is a list of events that will change your random MAC:
* The network name changes
* The operating system is upgraded and the device connects to the network for the first time after the upgrade
* The network name is "forgotten" in the phone settings and then reconnected to
Source: <https://wifi-helpcenter.nokia.com/hc/en-us/articles/360056890733-Issues-with-random-MAC-addresses-Android-10-iOS-14->
Upvotes: 0 |
2020/06/13 | 795 | 3,127 | <issue_start>username_0: After upgrading to Android 10, I am not able to use the Files app to view local files on my phone. If I run Files and view the Downloads folder, for example, it merely says "Can't load content at the moment".
I've been using the built-in Files app for many versions of Android. But after upgrading to Android 10 it stopped working. I am able to view the contents of *some* directories. And if I choose / navigate to folders in a different way, e.g.
* Images -> Download
Or
* Device -> Download
Then the file explorer will view some files. But simply selecting "Downloads" from the menu gives me this error.
I have gone into App Permission -> Storage, but the Files app does not appear there. Inside App Info -> Files it says "No Permissions requested". I have installed two other file browsing apps, and both of them can access all of my folders just fine.
Is there something I'm missing to be able to browse my own local files, on my own device, using the OS built-in file browser?<issue_comment>username_1: The key related to MAC randomization is only generated for the first time.
And the MAC address is calculated by calling `hmac_sha256` over the SSID with the generated key.
This key is stored in the `/data/...` on the device, and as far as I know, Android does not provide any API to remove it.
But when you perform a factory reset, all the data located under `/data/...` is wiped out, that's why the MAC address changes after that.
Therefore, if you can manage to remove the key, you can trigger this behavior, which is not easy, in my opinion.
Upvotes: 3 <issue_comment>username_2: On Android 11, there is a new option "Wi-Fi-enhanced MAC randomization" in the developer options.
When you enable it, delete/forget the network, and then reconnect, you get a new MAC address every time. Also, you get a new MAC address for this WiFi/SSID when you reboot your device. Disabling and enabling WiFi is not enough to get a new MAC. With this enabled, the device also generates a new random MAC address every few days.
When you disable this option, you get back your previously used random MAC.
Please also read [username_1's answer](https://android.stackexchange.com/a/229158/44325), which is very informative.
Even with a new random MAC, some WiFi hotspots recognize you and still show your free hotspot time is over. This seems to be because of cookies with the Android browser. To mitigate this: connect, dismiss the notification that you have to log in, and in your browser in a new private window, open any non-HTTPS website. Then you'll be redirected to the login page, can log in, and enjoy free WiFi again.
Upvotes: 4 [selected_answer]<issue_comment>username_3: Here is a list of events that will change your random MAC:
* The network name changes
* The operating system is upgraded and the device connects to the network for the first time after the upgrade
* The network name is "forgotten" in the phone settings and then reconnected to
Source: <https://wifi-helpcenter.nokia.com/hc/en-us/articles/360056890733-Issues-with-random-MAC-addresses-Android-10-iOS-14->
Upvotes: 0 |
2020/06/15 | 274 | 1,128 | <issue_start>username_0: I am driving with Google Maps, while Bluetooth on. I cannot hear any Google Maps sounds if Bluetooth is on, my car stereo system is not playing them, while listening radio (I know you could change the input source but I do not want that).
So I turn Bluetooth off because then the sounds of Google Maps come from the phone.
How can you force all sounds from Google Maps to come from the phone, although you have Bluetooth on and connected to car stereo?<issue_comment>username_1: I installed the application *Waze* which has the setting *Play sound to phone speaker*, which solves the case, at least for now: all sounds of the applications go the phone speakers, while calls etc go to the car speakers.
I could not do that on Google Maps.
Upvotes: 1 [selected_answer]<issue_comment>username_2: Current version of Google Maps (10.47.1) seems to support this function:
1. tap on your avatar icon
2. tap on "Settings"
3. Scroll down and tap on "Navigation Settings"
4. Disable "play voice over Bluetooth
Tested with Bosch Infotainment headunit in Suzuki car and it worked exactly as expected.
Upvotes: 1 |
2020/06/16 | 507 | 1,801 | <issue_start>username_0: I bought a Samsung Galaxy A71 recently then I installed an app called [Alt-C](https://play.google.com/store/apps/details?id=za.co.canobakedbeans.instacopy) on my phone and my MacBook air. It works fine, but the app cannot copy text from my own phone to my Mac, and a message appears on my phone, saying:
>
> Alt-C could not paste text to PC: make sure you copied the text on your device.
>
>
>
and a notification appears on my Mac saying:
>
> there was no text in the device's clipboard.
>
>
>
Does anyone have a solution for that?<issue_comment>username_1: Had the same problem and it seems that since Android 10, apps can only access the clipboard if they are in the foreground. So the only way for the copy to work from Phone to Mac is to open the app on your phone after you've copied the text, and then paste on the Mac.
Upvotes: 3 <issue_comment>username_2: I've found that Alt C works on Android 11 if you've recently opened it on your phone, or if you allow it to keep use battery in the background.
For the latter, the ways to do this vary - here's an [example for Pixel phones](https://support.google.com/pixelphone/thread/6068458/how-to-keep-apps-running-in-the-background?hl=en). I haven't tested this thoroughly with Alt C.
Upvotes: 0 <issue_comment>username_3: In Android 12, I faced the same issue where I was able to copy text from PC to phone but not able to copy text from phone to PC, it showed "couldn't paste text from realme", but later I found the way to copy text from phone to PC.
Basically, when you copy text from your phone then you have to open the Alt-C app in order to sync with your PC, and when the app is open on your phone, then you try to paste it on your PC, then it will be paste. It worked for me in Android 12.
Upvotes: 0 |