text:
Black and frozen videos / images in apps (Snap, Instagram, FB, ...)
I have a Blackview A10 under Android 6. Many times in a day, images are black or videos become black and frozen, thus I have to reboot my phone to be able to see it again, until it starts to become black again.
This happens in Facebook (I watch one video, then scroll to another video which becomes black and unresponsive, sometimes viewing another video unlocks this one or it neter happens), Snapchat (snaps I receive become black, with no image, for images and videos snaps) or even Instagram when someone sends me a link to a video, it stays black.
Is there a way to trace where this problem comes from and solve it, or not having to restart completely the phone every time this happens?
Maybe by restarting some service?

It's probably a defect in the device firmware. Cheaper phones often have less effort put into making sure the firmware is perfect. In that case, a new firmware would fix the problem, though again, cheaper phones are less likely to have a firmware update available and less likely to have a custom ROM development community. Even so, it's worth checking with the manufacturer.
If there are no firmware updates available, your only option is a better phone, from a manufacturer who's willing to spend the money getting the system integration right.

Thank you, I thought I could use some tricks to avoid rebooting the phone every time or update something manually, but this seems to be a dead end on such low end device.


text:
Android owner locked: Can't update phone
i am samsung galaxy tab E user. I don't have custom recovery system in my device. The owner of tablet is locked and I forgot the password. I know the google account signed in owners it's mine but there is no option of using that to unlock owner. Earlier I used by creating another user but I cant update my device OS now. How do I reset owner account or get option of opening it using google account signed in in there?

You can try  resetting the device to factory then when you'll be promoted to verify your Google account, simply put the owner account that was synced with the device then after that you can put any account and you should be able to download OTA updates

source: Stack Exchange

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

sort: votes


text:
How do I move the clock back to the right in Android Pie?
I have just installed Android Pie and the clock has moved from the right of the status bar to the left. Is there a setting to move it back?

Without root, this substratum claims to do it. I can't test being on Oreo https://forum.xda-developers.com/pixel-2-xl/themes/mod-center-statusbar-clock-p-t3818726

@beeshyams Substratum requires root. Also please don't post answers as comments.

With this and the notch (for the front camera that I never use) I can only see FOUR notifications, the least ever in any Android phone I've had, on the phone with the biggest screen I've ever had

This is a problem encountered by many that has upgraded into Android Pie or bought a new one with Android Pie. Luckily, this could be fixed but rooting the phone is necessary. Someone I know tried this and it worked. May this also help you,
https://www.xda-developers.com/status-bar-clock-tweaks-android-p-root/

Adding to this, you need to have root as said, as well as substratum theme engine (https://play.google.com/store/apps/details?id=projekt.substratum&hl=en_US) and the mod itself for editing the clock (https://forum.xda-developers.com/pixel-2-xl/themes/mod-center-statusbar-clock-p-t3818726)

Please mention the relevant content in your answer, instead of simply linking it. If the link expires in future, the answer would lose its usefulness. Thanks.

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
HTC Desire 516 dual sim ROOT FAILED (BRICKED?)
I've tried to root my HTC Desire 516 dual sim by following this guide:
http://forum.xda-developers.com/android/help/bootloader-fastboot-recovery-htc-desire-t2845467/page8
But obviously, I did something wrong. Now, when I turn on my phone and unlock the screen, suddenly there is a message saying "Unfortunately, HTC Sense has stopped", and I didn't make a backup and now don't know what to do. Can someone help me to fix it? I cannot do anything on the homescreen or even to get in the app menu, only in settings menu.
Also, when I try to wipe cache or go for the factory reset it returns a string saying "E: failed to mount/sdcard (no such file or directory)"
I tried to find a stock ROM for this phone but seems that there's none on the internet.

I just did what you did , i was already ready to brick my phone.
I received the same error of HTC Sense Stopped.
you can still reach settings menu. just pull the menu from the top of screen , and enter settings. and stay away from home screen as much as possible. thats where htc sense stucks.
from your computer play.google.com and install google go launcher to your phone.
from settings->apps>find htc sense . enter inside do clear cache, data and app defaults.
Now press home button . it will ask which launcher do you want to use . choose google go launcher , ALWAYS!
there you go.

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
What is this icon that looks like a headphone cable?
My phone got unlocked in my pocket and appears to have changed some things in the Google Now app (although I'm not sure this icon is related to that). I have never seen this icon anywhere before. I am using LG G4 stock android 6.0.
What is this icon and how can I revert whatever change caused it to be displayed?

The icon looks like an aux cable which suggests that your phone thinks that you have plugged in some headphones.
Assuming you haven't, you can try peering into the headphone socket (use a bright light) to see if anything is trapped in there. If there is you can try blowing into the port to see if that will dislodge/remove it, or turn if so the port is at the bottom and tap gently to see if that helps.

That does make sense as google now is set up to launch music app when i plug in headphones, and google now appears as listening for a split of a second and then music app launches. Thank you for your response, it has been all cleared now when i cleaned up headphones jack.

I had the same problem with my LG v10. So I plugged my earpiece and twisted the jack end till the symbol disappeared.  I then unplugged the earpiece and voila,  it was gone.


text:
Why do so many apps use location permissions on a near-constant basis?
I have an Android 5.1 device with App Permission Manager on, in order to stop apps from using permissions they don't need. Recently, I have noticed that many apps are trying to obtain my location when I don't need them to. For example, some apps attempt to get my location 3 times in a row on launching then, every 10 seconds while it is being used, or even every 7 seconds, even when the app has not been launched on my device - ever. Because I have blocked most apps from using my location, I now have a near-constant amount of toast notifications that read:
 (app name) has been denied to obtain your current location.

Why do they need my location so much? I would say it is for analytics reasons, but if that was the case, it should ask to get my location once per hour or once per day (not multiple times per minute).

Also for "targeted ads" (and those modules do more than just showing ads, see e.g. my article What’s it all about those modules apps contain?). Btw: AFAIK there is no permission named android.permission.LOCATION – it's either ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION. LOCATION itself is rather a permission group :)

@Izzy I guess that explains it. I did get more localized ads with location permissions always-on (and more location attempts when connected to the Internet), even though having it off is a serious battery saver (because the location permissions are used so much).

Yes, that's a good measure. I've made it an answer then.

Location details are not only used by analytics, but also by advertisements (think of localized ads). Unfortunately, many of those ad/analytics modules are "mal-behaving" and use those details for "profiling" as well.
For some closer details, I've collected information on my Android site:

What’s it all about those modules apps contain? is an article with much background information
Beware those snooping mods! gives some details on modules I found especially intrusive

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
Cannot boot Android-x86 on PC - Emergency remount
I have a 10.1 inch notebook with Linux, but would like to dualboot with Android x86. The ISO file works perfectly in VirtualBox, VMware, and on Live USB. I have tried both install from the Install program and copying the .img files onto a partition, then adding the boot entry to /etc/grub.d/40_custom. I get the following displayed on my screen when I select the boot entry.
Detecting Android-x86... found at /dev/sda2
[     3.697517] sysrq: SysRq: Emergency remount R/0

Then it reboots to the GRUB menu.
How do I fix this, and boot Android-x86?
I have an HP-e010nr with an AMD A4 dual core@1.0Ghz, 2GB ram, and I am trying to start Android-x86_64 7.1 on a 32GB partition (no fake sdcard).
I have stored everything in the parition in an "Android" directory.
My boot code is:
set root = (hd0,2) #/dev/sda2 in the partition where Android-x86 is located
kernel /Android/kernel quiet root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug SRC=/Android/
initrd /Android/initrd.img

(I ended up installing LineageOS x86 14.1 instead of Android x86, however, these instructions should still work for Android x86)
After trying to find my answer, I ended up removing my partition for Android-x86 and installing the LineageOS 14.1 .rpm. On Debian Linux (or Debian-based, like Ubuntu) install it with:
sudo alien -ci cm-x86_14.1.rpm

where cm-x86_14.1.rpm is your Android x86 package. If you are told alien is not installed, type sudo apt install alien before repeating.
After a while, it will convert into a .deb and then install. However, you will get the following messages:
/boot/grub/custom.cfg: No such file or directory
/boot/grub/custom.cfg: No such file or directory

In order to add the boot code that failed to be added, put the following in /etc/grub.d/40_custom:
menuentry "Android-x86 14.1-r2" {
    search --set=root --file /cm-x86-14.1-r2/kernel
    linux /cm-x86-14.1-r2/kernel quiet root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug
    initrd /cm-x86-14.1-r2/initrd.img
}
menuentry "Android-x86 14.1-r2 (DEBUG mode)" {
    search --set=root --file /cm-x86-14.1-r2/kernel
    linux /cm-x86-14.1-r2/kernel root=/dev/ram0 androidboot.selinux=permissive buildvariant=userdebug DEBUG=2
    initrd /cm-x86-14.1-r2/initrd.img
}

(I got the boot code from the cm-x86 postinit script)
Replace cm-x86-14.1-r2 with the location of Android-x86 (for example: android-x86-7.1-r1), and replace the 14.1 in Android-x86 14.1-r2 with your Android version number (like 7.1 or 8.1).
Then, reboot and select Android-x86 14.1-r2 to boot Android.


text:
What is creating these gibberish files on my SD card?
I recently took my SD card out of my tablet, and put it into my laptop. However, there were gibberish files everywhere on the SD card. A few of them:

In the Alarms folder, there were two files: .fgbnm_uyivfqwpo.txt and .fgbnm_uyivfqwpo11.txt. They both contained nothing but the stirng rAa7m3BIebYuaNAiY2vVfbUMRvRym7Ym#1527480871.
In the DCIM folder, there were .redghj_jklqwpo.hgk and .redghj_jklqwpo11.hgk. They contained the same data as the files above.
In the Documents folder, there were iiy_pol_gthqwpo.mp3 and iiy_pol_gthqwpo11.mp3. They also contained the same data, and Windows Media Player encountered an error when playing it.
In the Downloads folder, there were .ertyui_opikqwpo.ziip, .ertyui_opikqwpo11.ziip, .y_androidqwpo.ziip, and .y_androidqwpo11.ziip. If I opened them as a .zip file, I got "Please insert the last disk of the multi-disk set" on all 4 files.
The Movies folder contained dgdf_configqwpo.con and dgdf_configqwpo11.con.
The Ringtones folder contained .ewsdf_oplkqwpo.kjl and .ewsdf_oplkqwpo11.kjl.

The only things in common between all these files is the contents (rAa7m3BIebYuaNAiY2vVfbUMRvRym7Ym#1527480871) and the ending before the file extension (wpo and wpo11).
Searching the files found this question (it's in French!) that just says they can be deleted.
What app is creating these files? Whatever it is I want to remove it immediately.

Did u recently install the app clean master???

No. I've too many bad things about it to install it.

Here is the answer to your problem: These files come from installing applications from developers Cheetah Mobile. Delete the Cheetah Mobile app that you have installed and then delete these bogus files. Problem solved!

I had WhatsCall (Cheetah Mobile Cloud) installed, so I will see if uninstalling it fixes the problem.

I was worried too, googled and came to this thread. I uninstalled Photo Grid app developed by Cheetah then solved! Thanks Alfredo!

It actually helped! They didn't start showing up until a recent update. Perhaps it was a device or advertising ID, and the developers spammed it all over the SD card to stop it from getting deleted.

@Zackary that's it on the nail, tbh. Shame really, I used to love these guys. How the mighty have fallen....


text:
Swiftkey Keyboard uses too much space
Keyboard application uses 845 MB of my phone data which is really too much.
I want to delete data, but I am afraid that I will delete words predictions too.
Is there any solutions for me? Maybe there is option to decide what will be deleted. Cache memory is only 300 kb. I tried to move app to SD card but that option moves only application not data, and I started getting message that SwiftKey stopped working. After moving it back, works correctly again.
Hope someone can help me,
tnx

I have been using SwiftKey for a few years now and have a large dictionary. Still, my data size is some 17MB. Yours at 845MB is enormous, and this is likely due to some bug/error inside the app.
Here's what I can recommend:
Open SwiftKey and go to Account > Backup & Sync.
Here, ensure that you are backing up your SwiftKey account to Google account, Microsoft or other available options. This will ensure that your dictionary and learned words are synced to the server, and hence the learned words are connected to your account.
At this point, you should be safe when you delete the SwiftKey data and/or re-install the app. After the initial setup, you will be asked to log in to an account, and if you log in using the same account, your dictionary will return. This time, with a much smaller size (expected).
Check that your backup exists and your dictionary is synced:
If you want to confirm that your dictionary is backed up before deleting the data of SwiftKey, you can install SwiftKey Beta and then login using the same account. Now start typing and see if you are getting the predictions as expected. If you do, all is good, and you can delete both apps, re-install stable SwiftKey and have fun.


text:
Screen uses 99% of battery
I have a Galaxy Ace S5830. I tried using many different Jelly Bean and KitKat ROMs, and with each one (clean installs, without additional apps) my battery behaves weird. When the screen is turned on, even on the lowest brightness, it drains the battery very, very fast. I think with the screen turned on I can't get more than hour of battery life.
But when the screen is off, I can, for example, listen to the music for hours and hours and battery behaves normal.
And what is also interesting, whenever I go to Battery Stats, it shows Screen as 99% user, and sometimes it shows WiFi as 1%.
EDIT: Important addition: When my battery gets drained and I put it to the charger, it gets fully charged for few minutes! I tried wiping battery stats before and after every ROM installation, tried using Battery Calibration app, but nothing helps!
So what should I do to get my battery to behave normally?

It could very well be the light sensor reading by way of the kernel driver that is faulty or perhaps needs calibrating, which is affecting the autobrightness of the screen? Or possibly a known issue with the ROM in which it is not releasing the wakelock for the screen? Check with your respective forum where you got the ROM from?

As I said, i tried numerous different ROMs, and it's same...
Also brightness is set to lowest level, autobrightness is turned off.

And quite possibly all those ROMs are using the same or derivative of that kernel that has the issue.

I've checked the forums, and nobody has this problem..otherwise, I don't think people would use those ROMs, right?

are you running an app that is chewing up the battery - use BetterBatteryStats to find the culprit?

There is nothin in Battery stats except Screen and sometimes WiFi. None of the apps. OK, I'll try betterbatterystats

@kecman BBS is good app to find out what is eating up your battery with wakelocks and also Gsam battery monitor do that job with easy interface.

I tried both apps, and both of them say that apps use 0% of battery, and screen uses 99%... WiFi uses 1%...

I installed stock 2.3.3 ROM and now everything is fine...I will back it up, and then try experimenting with some newer ROMs :) Thanks for all the responses!

From your answer (phone charged again in a few minutes) I'd say there is a  problem with either your battery capacity or your battery stats (either the phone thinks the battery is empty while it isn't, or it thinks it's fully charged when it's not (and so it's emptied again very quickly).
The screen is always a big battery consumer (I never seen it under 40% on my phone) so if your battery life is reduced, it can drain it completely in a couple of hours.
What I'd recommend is to try to charge the battery for a long time after the phone has drained it, like overnight. You may want to try another charger also since there is always the possibility that something had gone wrong with yours.
If it doesn't help and you know someone with the same phone, try swapping the batteries (after both are fully charged):

If your phone still die in one hour, then you definitely have something consuming too much battery. Try looking into the number of wakelocks as recommended in the comments (also you may try to revert to stock ROM. If the issue is still there, there may be a hardware failure causing this issue)
If the other phone die in one hour and your is still good, it means you're battery wasn't fully charged. If this is the case, try to charge it again on the other phone and do the test again:

if the battery works fine the second time, there is an issue with your phone which doesn't charge batteries the right way. In this case I'm not sure what you can do (that may also be caused by a hardware issue)
if it still doesn't work for more than one hour, then you just need a new battery

Try a complete clean installation. I mean wipe
system
Data
Cache
D-Cache
 Then install the is and gapps only. Probably something stable. Then test it for 2 days .


text:
How to lower the minimum volume? (Nougat 7.1.2 through LineageOS 14.1)
The minimum volume level available for alarm and ring settings is visually twice as much on the control in the settings as what is available for media and is just way too loud.
I am not looking to add more steps between the available volume levels; just to lower the minimum for alarm and ring.
Phone is rooted and has xposed as well, though I didn't find a relevant module. Strong preference for an open-source solution, as I won't be installing some random app with excessive permissions.


text:
Incoming Call UI is not showing up
When i get an incoming call, the ringer rings but the incoming call UI do not show up, instead the following notification is shown in the notification area:
.
So in order to answer the call i have to open the Phone app select the 'Return to call in progress' option, see the Screenshot:

Fixed: Cleared the storage and cache of the Phone app. Now it is working fine.

This might help you

@parthu_panther if the dialer app would have been disabled, it wouldn't run in background, would it? Couldn't that rather be some error with power management? Maybe the dialer app must be set up as "exception" to never be dealt with by power management. I vaguely remember there was something introduced with Marshmallow, called "Doze" ;) Sure one would expect the ROM cook had added the dialer to that exception list automatically – but that might have been forgotten here, maybe.

since the prob is fixed but assuming diff possible solutions with you has always been marvelous. @Izzy yes it wouldn't run in background when disabled but sure he can check to clear defaults and cache inorder to load factory settings of the app. And power management could be the real culprit. There are many battery optimization apps who sets exception for minimal battery usage. And ye cant guarantee about 'Doze' as it started with marshmallow and op's prob for oreo. Btw though doze is enabled, apps with high priority will notify always and system apps like dialer/phone has high priority.

If you've solved the problem, please post that as an answer, so the question is marked as answered. Don't edit the question to include the answer.

You should mark your question as answered as @DanHulme says. Otherwise, thanks for actually answering, because I came here with this problem, and clearing the app's "data" fixed the issue.

I cleared the storage and cache of the Phone app. Now it is working fine.

This happens when your hardware is finding it difficult to deliver an appropriate screen. Try rebooting and phone would be fine.

The hardware isn't delivering "an appropriate screen". What should that be? Any backing for that?


text:
WiFi continually turns off and on Sony Xperia Compact (Android 8.0)
I have a Sony Xperia Compact running Android 8.0.0.
Recently I noticed that the WiFi constantly turns off and on. That is to say, I turn on WiFi, it searches for signal, shows a list of available networks and then turns off again by itself. It will then turn itself on again, and the cycle continues.
If I have airplane mode on, this sometimes allows me to hold a WiFi connection - but not always.
I am at a loss as how to approach this problem. I've tried resetting the network settings to default, which renders the same problem. I've tried running the phone in safe mode, to see if it was a 3rd party app, which also did not solve the problem.

Downgrade to nougat. Tried everything (reset router, delete network settings, software repair via companion etc etc.) nothing worked except the downgrade.

great thanks. Could you point me to a resource that shows me how to do that?


text:
How to inject pictures from the phones gallery into the camera feed in real time?
An android app is requesting pictures from the camera feed. I wish to inject the picture from my gallery rather than doing it in real-time. Any tools on rooted phones or android emulators for this? Thanks!

If the app starts the default camera app to do so,there might be an app that could do this. But if it tries to access the camera directly, a rooted phone will not be enough and you'll need an app for Xposed to do it. Even that wouldn't work if your app uses native APIs.


text:
How can I `adb pull` a large file when the USB connection breaks continuously?
I want to transfer a large file with adb pull, but my USB connection disconnects all the time, interrupting the transfer. How can I make this work?

I don't believe there a "resume" or continue option...

Is there a way were I can modify the code myself? Is it open source?

I don't know that... and that is outside the scope of this forum (developer specific questions are off-topic here).

Ok, I will just wait to see if someone knows a way or a "wrapper" that enables the resume

If you have problems with the USB connection but a working Wifi connection you could enable ADB over TCP and therefore avoid USB.

No, the problem is that my device resets in a loop after a few seconds, so the only way I can think of to make a backup is by resuming

A boot-loop probably won't allow enough time for any data to be copied at all, so i doubt that'll work. What type of device are you using, maybe you could fix it with a different approach.

My loop lasts around 20 secs. It is a Xiaomi, and I have seen that there are more people affected, with similar loop times. If I could resume pulling, then I could pull files little by little in those 20 secs to get them all. I cannot think of any other approach, to be honest. Any suggestion is appreciated

Here's a Python 3 script that implements a workaround based on adb and dd. It continuously retries and resumes downloads when disconnection happens.
#!/usr/bin/env python3

# adb-repull.py
#
# ADB pull emulation for machines with problematic USB ports/cables.
# It continuously retries and resumes download when disconnection happens.
#
# Copyright (c) 2018 Alexander Lopatin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import errno
import math
import os
import subprocess
import sys
import time

BUFFER_SIZE = 8192
SLEEP_TIMEOUT = 5

def run_with_retries(function):
    while True:
        try:
            return function()
        except ConnectionError as e:
            print(e)
            print('Retrying after {} seconds'.format(SLEEP_TIMEOUT))
            time.sleep(SLEEP_TIMEOUT)

def size_to_blocks(size):
    return math.ceil(size / BUFFER_SIZE)

def get_size(remote_file):
    print('Getting size of {}'.format(remote_file))
    with subprocess.Popen(['adb', 'shell', 'du', '-b', remote_file], stdout=subprocess.PIPE, stderr=subprocess.PIPE) as process:
        out, err = process.communicate()

        if len(err) > 0:
            raise ConnectionError('Disconnected')

        size_and_remote_file = out.decode('utf-8').split()
        if len(size_and_remote_file) > 0:
            return int(size_and_remote_file[0])
        else:
            raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), remote_file)

def is_execout_supported():
    print('Checking if exec-out is supported')
    with subprocess.Popen(['adb', 'exec-out', 'echo'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) as process:
        out, err = process.communicate()

        if len(err) > 0 and err.decode('utf-8').strip() != 'error: closed':
            raise ConnectionError('Disconnected')

        result = process.returncode == 0
        print('Yes' if result else 'No')
        return result

def get_size_with_retries(remote_file):
    return run_with_retries(lambda: get_size(remote_file))

def is_execout_supported_with_retries():
    return run_with_retries(is_execout_supported)

def update_progress(remote_file, current_block, last_block, speed):
    if current_block % 1000 == 0 or current_block == last_block:
        progress = (current_block / last_block) * 100.0
        speed_in_mib = speed / (1024 * 1024)
        print('Downloading {} {:.1f}% ({:.1f} MiB/s)'.format(remote_file, progress, speed_in_mib))

def pull(remote_file, local_file, remote_size, execout, output):
    print('Downloading {}'.format(remote_file))

    last_block = size_to_blocks(remote_size)
    local_size = os.path.getsize(local_file)
    current_block = size_to_blocks(local_size)

    time_elapsed = 0
    bytes_downloaded = 0

    dd_command = "dd if={} bs={} skip={} 2>>/dev/null".format(remote_file, BUFFER_SIZE, current_block)
    command = ['adb', 'exec-out', dd_command] if execout else ['adb', 'shell', 'busybox stty raw ; {}'.format(dd_command)]

    with subprocess.Popen(command, stdout=subprocess.PIPE) as process:
        while current_block < last_block:
            time_start = time.time()

            current_block += 1
            expected_buffer_size = remote_size - local_size if current_block == last_block else BUFFER_SIZE

            buffer = process.stdout.read(expected_buffer_size)
            buffer_size = len(buffer)

            if buffer_size != expected_buffer_size:
                raise ConnectionError('Wrong buffer size {}. Disconnected'.format(buffer_size))

            output.write(buffer)
            local_size += buffer_size

            time_end = time.time()
            time_elapsed += time_end - time_start

            bytes_downloaded += buffer_size
            speed = bytes_downloaded / time_elapsed
            update_progress(remote_file, current_block, last_block, speed)
        print('Done')

def pull_with_retries(remote_file, local_file):
    remote_size = get_size_with_retries(remote_file)
    execout = is_execout_supported_with_retries()

    with open(local_file, 'a+b') as output:
        output.seek(os.SEEK_END)
        run_with_retries(lambda: pull(remote_file, local_file, remote_size, execout, output))

def main(argv):
    if len(argv) < 2:
        print('Usage: %s /mnt/sdcard/remote.bin [local.bin]' % argv[0])
    else:
        try:
            if sys.platform != 'linux':
                raise OSError('Unsupported platform')
            remote_file = argv[1]
            local_file = os.path.basename(remote_file) if len(argv) < 3 else argv[2]
            pull_with_retries(remote_file, local_file)
        except OSError as e:
            print(e)

main(sys.argv)

For me, the performance is the same as adb pull. If you experience problems with performance—try to play with BUFFER_SIZE value.

Here are several collated options to for when the USB cable keeps disconnecting, for anyone seeing this in the future.

Use the script above by alopatindev to resume automatically using dd command.

Use Wireless ADB over Wi-Fi. The connection may be slightly slower, but it works around the broken cable.

Run an HTTP or FTP / SMB / SSH-SFTP server on Android and download the files using the computer, in a file browser or terminal.

Run an FTP, SSH-SFTP, SMB (windows media share protocol), or NFS server on the computer, and copy files over using a file explorer on the phone.

Install RSync in Termux (Fdroid) and on the computer, with an Rsync or SSH server running on one of the devices. Then you can copy to/from the server using the other device

ADB can not pull files partially or resume.
Also modifying the PC side of ADB is AFAIK of no use to you, as the provided functionality is provided by the on-device part (which you can't replace).
From my point of view there are two possibilities left:

Install an FTP server (app) that allows to automatically start with Android and that is able resume the download. Let is share a directory, the file you want to get is located in, or use your 20 seconds time window to move the file into the FTP shared directory.
Another option would be a cloud synchronization app (or command-line tool you could call via adb) that is able to push files automatically block-wise to the server (like the DropBox desktop client does). Unfortunately AFAIK the official Android DropBox client works differently and is of no use for you in this scenario. But some 3rd party Dropbox app or a different cloud sync app may be usable.


text:
Cannot unlock Nexus 5X due to bootloop
My phone is in a boot loop. It shows the Google text and restarts after few seconds. Not even the animation starts. It is the same if I start recovery mode.
I have windows 10, "Android ADB Interface" driver from Google and the phone shows up in device manager when i connect when the phone is in the bootloader screen (power + down).
I only can communicate with the phone when it is on the bootloader screen. For fastboot devices the phone shows up but not for adb devices. I tried all my usb ports.
DEVICE STATE - locked and unlocking from OEM is disabled.
I tried to connect to LGUP in Download Mode (power + up) with no success it doesn't recognise the phone.
I tried to unlock with Nexus Root Toolkit but it restarting my device and waiting for it but it restarts before the program recognizing it.
If I could make it work with LGUP or I could unlock somehow I could flash it with an image what can disable the big cores so the bootloop probably goes away.
I don't mind losing data. Any advice?

When you have a probably working image and a working fastboot why don't you flash the image via fastboot?

Possible duplicate of Nexus 5X bootloop, recovery mode doesn't exist


text:
Whatsapp backup and restore not working (Tested both local and google drive) - Bluestacks
How to do a whatsapp local backup and how to restore whatsapp using local backup.
I followed the steps mentioned in https://www.business-standard.com/article/technology/how-to-back-up-restore-whatsapp-chat-history-using-google-drive-storage-119072500591_1.html#:~:text=To%20find%20the%20local%20backup,folder%20inside%20the%20WhatsApp%20folder.
How to restore WhatsApp backup using microSD card

If you remove WhatsApp for any reason and install it again on the same device, the instant messenger notifies about the existing local backup and takes your permission to restore messages from it. Follow the steps below in case you switch to a new device and seek to restore WhatsApp chat history from local backup:

Step 1: Insert a microSD card in your old phone, if it has a slot

Step 2: Go to the phone’s file manager

Step 3: In the file manager, locate WhatsApp folder in root

Step 4: Copy the WhatsApp folder and transfer it to the microSD card

Step 5: Eject the microSD card safely and insert it in your new phone, if there is a slot

Step 6: Download and install WhatsApp on a new phone. Set it up and then uninstall it

Step 7: Replace the WhatsApp folder in your phone’s internal storage with the one saved in the microSD card

Step 8: In the file manager, navigate to sdcard/WhatsApp/Databases

Step 9: Rename the backup file you want to restore from msgstore-YYYY-MM-DD.1.db.crypt12 to msgstore.db.crypt12. It is possible that an earlier backup may be on an earlier protocol, such as crypt9 or crypt10. Don't change the number of the crypt extension

Step 10: Download and install WhatsApp again and select the option to restore the whatsapp data from "Google drive". But this time it will identify your local backup and notify if you would like to restore from it instead of visiting Google drive.

In case the old phone or the new phone does not have a microSD card slot, copy the WhatsApp folder from your phone’s internal storage on a desktop. Perform the step 6 mentioned above before transferring the folder in the new phone’s internal storage. Once you transfer the folder, perform Step 8 and onwards.

I have an Android device (actually I am using Bluestacks Android emulator but I expect the process to be the same). I have setup WhatsApp on this device. Now I want to move to another device. So I did a whatsapp local backup using WhatsApp -> settings -> Chat backup -> Backup
Now I manually copied the WhatsApp folder in the Andoid file system which has the folders Backups, Databases, Media
Now I manually transferred these folders and then installed Whatsapp on new Android device using the same phone number. But when I open Whatsapp in this new device, then I only see the option to restore from Google drive backup but not from local backup. So I clicked Skip but then I dont see my chats
What is the process to successfully backup and restore whatsapp data locally using Android emulator?
Edit:
I think there is an issue with the Whatsapp backup I am using. For example, the Whatsapp folder that was restored from Google drive is detected properly by whatsapp when I copied it to local storage. But the Whatsapp backup that I copied from Bluestacks is not detected I dont know why
Edit2:
I have opened whatsapp from my old Bluestacks device and backed up all whatsapp data to Google drive. Now in the new Bluestacks device I selected the Google drive account to restore the backup. But whatsapp is still not able to restore my chats etc. So this is probably a Bluestacks issue where I am not able to move the whatsapp backup from one device to another if I am using whatsapp on Bluestacks
So it looks like the whatsapp backup taken from an Android phone can be imported into Bluestacks. But the whatsapp backup taken from Bluestacks is not detected anywhere so I will loose the chat history, but atleast media is available in the whatsapp folders which I copied from my old Bluestacks device's Android file explorer.

Yes, I tested both local manual transfer and Google drive and found that the whatsapp data backedup from Bluestacks is not working for restore
But atleast I found that nox(used the version 3.0.3.0) app player Android emulator works fine. I tested the whatsapp backup and restore using Google drive and local manual transfer and both work fine
Additionally if one wants to know how to
Transfer files from nox Android emulator to MAC and vice versa,
Enable Root access in nox app player by selecting settings icon at top right corner of the nox app -> Switch ON the root. Then there is a common share folder which is accessible from both MAC and also nox Android emulator,

In nox the common share folder is at:- Open the Amaze File Manager (Tools folder on nox app player Android emulator home screen -> Amaze) and go to /root/mnt/shared

In MAC the common share folder is at:- Go to /Users/Username/Library/Application Support/NoxAppPlayer/Nox_share

Now to transfer files from nox to MAC:-
From Phone(/Storage or /emulated/storage/0) folder if we want to copy something to /root folder(Accessible to both Phone and MAC) then we can only copy files (or zip files as well) and not folders so zip the whatsapp folder (using AstroFileExplorer+Winzip software because somehow winzip is not detected in Amaze File Manager) and copy the zip file from /Storage to /root/mnt/shared using Amaze File Manager

Then in MAC we will have the files already at the common share folder location

P.S:
The issue I have with nox Android emulator is that it does not detect the MAC touchpad scrolling. I need to click on screen using mouse cursor and then scroll the screen like a touch screen. https://www.reddit.com/r/noxappplayer/comments/g1qp7b/touchpad_on_macbook_pro_with_nox/
Also nox app player is not able to access the camera. So I cannot open web whatsapp for example because I need to scan a photo of the barcode using whatsapp app with a camera
https://www.reddit.com/r/noxappplayer/comments/bmv8pl/problem_cant_connect_to_camera/


text:
Writable System Revets to RO
I rooted with TWRP 3.2.1-0, installed SuperSU zip (later automatically updated) and added Busybox. I presently have three backups plus one of the EFS directory alone. The older one is some three weeks old. Since then I fight with this problem. Probably, I have done something wrong, but I can’t figure out what.
The problem is that I don’t really have root access, even if any type of root checker says that I do. Files on ES Explorer read rw each time I restore any of those backups, as I can see, but a couple of minutes later the CHMOD strangely changes by itself to what it is when a phone is not rooted, and writing permissions are gone. Chang CHMOD with a file manager has the same result, but showing dwrx. If I reboot I have drw everywhere, but no effect on root access as in any case, and in less than 2 minutes all root directories revert to their original permissions, except the /system directory, maintaining now drwxrwxr-x. This is very confusing and difficult to describe, but something is sure: the permissions change by themselves and I never have root access. However I had it before the first TWRP backup because I could install an application on /system.
I know little about adb commands, but I have used those that I found on other threads on this forum and elsewhere, and get some answers like adbd cannot run as root in production builds for adb root. I also tried the following command on both the TWRP terminal and a terminal emulator app, also both under u0227@jflte:/ and after entering SU:
mount -o rw,remount /system
Result under u0227@jflte:/      Mount: Permission denied
after entering SU here tmp-mksh: Mount: not found
Command   /system/bin/mount -o remount,rw /system /system
Result:     Permission denied
More commands that I ran on adb on computer
adb devices
Result:
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
4daf65fc        device
adb shell
Result: shell@jflte:/ $ su
1|shell@jflte:/ $ #
1|shell@jflte:/ $ adb root
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
error: device not found
mount -o remount,rw /system
Result: mount: Permission denied
mount -o remount,rw -t ext4 /dev/block/actc /system
Result: mount: Permission denied
There are others that I tried, but this post is already so long...
Still, when I try to install any app with System Apps Installer or other as root, as I could before, I invariably get the same answer: Mounting error, Cannot mount system partition as Read/Write.
I found a few advices to use the command cat /proc/mounts  to find problems. I did, but I post a copy of the very long result after this text because I can’t find anything by myself. Perhaps it will help someone to help me.
The same happens now with the other slightly older backups that I restored, but at the beginning I even installed an application in the /system. Why has this changed? Could it have been from the latest updated SuperSU version, because I read on XDA Developers it has issues and recommend changing to an older version? I searched a lot and found many threads about this permissions problems but none changing like mine, and none solved. I wonder what the cause can be and. Why so many threads about the root permissions issue and not a single one solved?
Thank anyone for any welcome help. Sorry for being so long, but I really want to repair this issue and with so many threads about it I couldn't find just one solution.
Result from command cat /proc/mounts
root@jflte:/ # cat /proc/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware vfat ro,context=u:object_r:firmware_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/mdm /firmware-mdm vfat ro,context=u:object_r:firmware_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,errors=panic,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/hidden /preload ext4 ro,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persdata /persdata/absolute ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/data/media /mnt/shell/emulated sdcardfs rw,seclabel,nosuid,nodev,relatime,uid=1023,gid=1023,derive=legacy,reserved=20MB 0 0
/data/privatemode /mnt/shell/privatemode sdcardfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000,derive=none 0 0
/data/knox/sdcard /mnt/shell/knox-emulated sdcardfs rw,seclabel,nosuid,nodev,relatime,uid=1000,gid=1000,derive=none 0 0
tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,mode=751,gid=1028 0 0
/dev/block/vold/179:33 /mnt/media_rw/extSdCard vfat rw,dirsync,seclabel,nosuid,nodev,noexec,noatime,nodiratime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/mnt/media_rw/extSdCard /storage/extSdCard sdcardfs rw,seclabel,nosuid,nodev,relatime,uid=1023,gid=1023,derive=unified 0 0
/data/media /storage/emulated/0 sdcardfs rw,seclabel,nosuid,nodev,relatime,uid=1023,gid=1023,derive=legacy,reserved=20MB 0 0
/data/media /storage/emulated/legacy sdcardfs rw,seclabel,nosuid,nodev,relatime,uid=1023,gid=1023,derive=legacy,reserved=20MB 0 0
root@jflte:/ #

A lot of info, but you forgot the basics: Device name and Android version...

Galaxy S4.
5.0.1 stock.
It was not enough information after all, because it has been here for over two days. Would you like to help, please?

I avoid Samsung devices, therefore I don't have experience with them. However what I know: adb root will never work on most devices newer than Android 4. See adb root does not work. Anyway with your device I would recommend to install a current LineageOS instead of only rooting - Android 5 is pretty old...

It is not only rooting. I wanted to do it step by step, but was stopped on the way. I am starting to be convinced that the problem is on this latest SU version. I will try to find an older one and flash the zip with TWRP. Root did work on this phone about three years ago for nearly two. All I need is what I asked for and nothing else. Computer OSs last much longer. Guess why and how we are being stolen by manufacturers and carriers, mainly in the US, where almost only carriers sell phones locked and killing the warranty if you use your rirght to change the OS like w/any computer. Illegal.


text:
Bricked Nexus 7, failed to mount cache, can't unlock or reflash
My Nexus 7 (2013, 2nd gen) worked fine in plain vanilla form for years. Suddenly the boot stuck at "Google". I tried booting into recovery mode and saw failed to mount /cache. Erasing cache from the recovery screen did not help. I tried WugFresh Nexus Root Toolkit v2.1.9, and it froze at the unlock step. I tried Fastboot and it also froze at the unlock step with the following response:
platform-tools>fastboot oem unlock
...
(bootloader) Unlocking bootloader...
(bootloader) erasing userdata...

I tried fastboot format cache and fastboot erase cache but they both just hung at erasing 'cache'...
It appears that I cannot reflash the Nexus 7 back to factory fresh because it is failing to unlock the tablet or possibly rewrite memory in any way.
Is there any stronger method I can use to wipe out this tablet and reload it back to any usable form?  Or fastboot commands I haven't tried yet? Or something completely different?
Failing recovery, is there anything useful I can do with a nearly new looking 7 inch tablet or its component parts?
edit:
Today I tried adb sideload of the latest fresh image. It looks like my tablet is mostly choking on:
E: failed to mount /cache (Invalid argument)
Is there a way to destroy and recreate the cache as opposed to erasing or reformatting an existing cache?

Sounds like either the flash hardware is broken or the partition table is corrupt. If the former, you can't do anything useful with it. The second might be fixable but I'm not sure how.


text:
How do I restore newer messages to old phone?
I purchased a new phone that I don't like so I am returning it. I'll temporarily have to use my old phone. How do I restore just the new messages on the new phone too the old phone?
Edit for more detail:
I only want the most recent messages because the phone already has most messages so those messages would be duplicated.

Welcome to Android Enthusiasts Stack Exchange. By "messages", did you mean SMS or other social messaging apps? Also, could you mention both device models?

One option would be to wipe your old phone, then set it up as if it were new and be sure to use the option to bring over all the messages from your previously new phone.


text:
Touch Doesn't Work When I Unlock the Screen
In the process of installing a new ROM on my Moto E5 Plus (not after it has been installed, even before, on the main TWRP screen for example) and after the new ROM has already been installed, the following happens: If my cell phone locks the screen, When I click on the power button and the screen turns on, the touch does not work, however, if I connect the USB cable that is connected to my Linux computer to the cell phone, the touch works again. After doing this, when I lock the cell phone again, if the cable is still connected the effect is reversed and the touch does not work until I unplug the cable, however, if I remove the cable before blocking, when I unlock the effect It will be the same as the first time, the touch will only work if you plug the cable in again.
Does anyone have any idea what it could be? Hardware problem perhaps?
EDIT 1: I noticed that this actually doesn't happen exclusively when the cable is connected to my computer, but the behavior also happens if I connect the cell phone to the charger, that is, this happens when the cell phone is receiving power or not.

As this happens directly after installing a new ROM, a likely reason is a wrong or bugged touch driver.

How can I fix it? Can you give a tip?

Try a different ROM?

It could be ghost touch, can you turn on the Developer options and Show touches, then see if there are stuck touches even if you don't touch it?

I checked here and in fact there is no touch.

Could this be caused when I unlocked the bootloader?


text:
I Can't List Zipped Images in TWRP
I'm new to the Android world when it comes to these matters, so I ask for your patience if I say something wrong.
I have a Motorola Moto E5 Plus cell phone and I used my Linux Ubuntu to help with the commands. With all the tutorials I've seen, basically what I did was:

I downloaded the TWRPAPP APK, transferred it to my cell phone and installed it;
I ran the application and downloaded the latest version of TWRP (3.7.0_9-0-hannah):

NOTE: After downloading the image, I also transferred it to my computer.

I activated USB debugging and OEM unlocked;
I restarted the phone into the bootloader with: adb reboot bootloader
I unlocked the bootloader:

I got information from the OEM: fastboot oem get_unlock_data
I registered on the Motorola website and got the unlock key and executed: fastboot oem unlock <key>
Everything went well and the bootloader was unlocked...

Back at the bootloader screen, I started TWRP with the command fastboot boot twrp.img (as it was the only way I could get it to start);
And now the problem begins...
When TWRP finishes loading, the first screen asks for a password to decrypt:

I didn't really know what that password was. When I researched, I understood that this password was the same password to unlock the cell phone when it is on, however, the cell phone did not have a password.
So I clicked "Cancel" on the start screen and it continues to enter TWRP but on the logs screen it shows mounting errors and that was bad because I couldn't see anything inside the phone's folders and consequently I couldn't see the zipped image to flash.
From the tutorials I verified that I needed to: Wipe > Advanced Wipe > Check "Data" > Swipe to Wipe
Then return to the main menu: Wipe > Format Data > Type "yes" > Press Enter Button in Keyboard

After that I restart in TWRP and in fact I no longer have any password to enter and it even goes directly to the main menu, however, I also no longer have the GSI image that I downloaded.
PS: After all these things I tried to use OTG but I also couldn't get it to be recognized in TWRP.

Unlocking the bootloader by design erases all data. And in addition you wiped your data partition so everything you had downloaded is long gone.

So, I didn't mention it, but after unlocking the bootloader I moved the zipped image to the Download folder. Regarding wiping the participation, this was the only solution I found to be able to decrypt it, but as you mentioned, the data is lost, however, if I turn the device on again to place the zipped image in the Download folder (now with the partition already decrypted), Android itself will start at factory defaults (after all, it was wiped) and I see that during the boot process, Android encrypts the partition again :/

You can try to directly flash the image from the PC using adb sideload when TWRP is in sideload mode.

Well, in the end the sideloading process didn't load but I solved the main problem by moving the image to MicroSD and I was able to flash the image. Unfortunately, after that (and for other reasons) now no system starts... I even wanted to continue the subject here but as I thought this was another problem not related to this topic, I created this other question.

In the end, the sideloading process didn't load, but I solved the main problem by moving the image to MicroSD and I was able to flash the image.
Unfortunately, after that (and for other reasons), no system starts.
Follow-up: No Operacional System Android is Installed


text:
Google Authenticator signed out of my account. I can't sign back in without a PIN I have never created. Where do I go to create or reset this PIN?
Google Authenticator has (not for the first time!) decided to forget all my codes and sign me out.
However, this time when I tap Sign In I an prompted to 'Confirm your PIN':

I have never set this PIN. Where do I find it in my Google Account settings? Preferably, how do I disable the PIN entirely and revert to using my account username/password pair?

Welcome to Android Enthusiasts. I have been using Google Authenticator app for years and I don't recognize this look. Is this the official Google Authenticator app? Otherwise, could you mention the device model and whether there's a parental control/app lock/device administrator active?

@AndrewT. It's the official Google Authenticator app (Version 6.0) running on a Huawei PLE-701L, not rooted/jailbroken or anything like that. There are no parental controls or app locks - I am the sole user of the device.

Based on a quick research, looks like this is the same screen for unlocking the device on Huawei. This is because apps can request Android to show the "lock screen" to authenticate the user.

@AndrewT. You should make that an answer

@AndrewT. This is not the same screen that unlocks the device - that looks like a standard Android unlock screen and nothing like this - but the device unlock PIN is what it was asking for and that's what worked! I have never seen an app use this interface before, nor have I ever had an app ask for my device unlock PIN to do anything so it never occurred to me that was the PIN I should use. In the small chance anyone from Google ever sees this: This is absolutely terrible UX! Nevertheless, if you can turn your comment into an answer I can accept it. :) Thanks for your help!


text:
Getting /sbin/sh: parted: not found error
So I am trying to resize my system partition on my Huawei P10 because the ROM I want to use is bigger than the current partition. I pushed gdisk and parted with ADB, but for some reason I can't run it in shell even though it's clearly there. See image attached

EDIT: I just had to copy the file into sbin, but now I get a permission denied error

Seems like Android is the first Linux system you are working with. On Linux files can only be executed if they have the eXecutable bit set your the own, the owner-group or other. Use chmod to set.

Possibly related/duplicate: How to run "parted" command in terminal emulator on my android smartphone


text:
How to setup the number of rows used for auto-complete in MS Office 365 Excel on Android?
When I type the string, the Excel uses the content of the cells above to autocomplete the text, suggesting one of the strings from above.
It seems that the number of cells used to collect this text is very limited (I guess, about 50 lines).
How to change this value and make it start from the very first line (or at least make it the largest possible)?

You cannot change the number of rows used for autocomplete in Microsoft Office 365 Excel on Android. The feature is not customizable, and Excel has a fixed limit on the number of rows it uses for autocomplete suggestions.

Thank you. What's you source? Don't get me wrong, I need to be sure that there is no solution for the problem before I give up on it.


text:
Can I force Pixel 6 Pro to slow charge?
There are long periods of time when I know I will stay in place so I would like to be able to connect the phone to the charger and have it charge slowly to try and curb issues created with fast charging.
Preferably it would be something that I would be able to quickly switch to fast charging when needed.
Phone is not rooted, but I'm willing to root it if need be. I already use adaptive charging during the night. I was hoping for something not linked to the alarm.

If you are ready to root , see answer here

This could be possible just using hardware - if you use a 5V/1A (5W) charging block, for instance, your phone would charge at a maximum of 5W, which is rather slow for today's charging standards. That being said, even a 5W charger will charge your phone within several hours.
Another option, again hardware-based and assuming you're somewhere where it would be practical, is the Pixel Stand 2, which allows you to choose "Max charge" or "Charge quietly," which is effectively equivalent to "slower." These can be switched at any time, and wireless charging for the Pixel phones is generally slower than wired regardless.
These being possible, Pixel phones already offer several built-in and features that can be enabled that make this not as necessary as it used to be. See especially the "Protecting your battery" section linked.


text:
How to Add Google Account Without Syncing Contacts on android
I was looking to add a second account to my Android phone running Android version 12. The issue that I keep running into is that as soon as I sign in the contacts from that account are synced and my call records get all messed up.
There are some tutorials on the web that suggest that I turn the wifi (Internet) off as soon as I sign-in and then go to settings and disable contact sync.
I did try it but it does not work as the contacts are synced before I can turn off the interent.
I am looking for a permanent way and not a work around.
Thank you

Before adding the account, simply disable or take away contact permissions from the apps which are getting messed up. You can then go on to disable contact sync settings and enable or give the apps their permissions back.

This seems doable. But its crazy imo that there is no straightforward way of doing this. Just ask me do I wana sync contacts of not when I add the account.


text:
Fastboot boot twrp.img just boots back into bootloader
Im trying to boot in to the twrp.img for my Motorola Edge 20 (Berlin) because I can't flash it because my phone doesn't have an own partition for the recovery. fastboot says finished but my phone is just back in the bootloader where it was before
I tried:

empty VBMETA with verity and verification disabled

both fastboots (fastbootd and the fastboot in the bootloader)

another version of twrp both versions dosent work

My console output:
fastboot boot motorolaE20TWRP.img
Sending 'boot.img' (26460 KB)                      OKAY [  0.643s]
Booting                                            OKAY [ 10.190s]
Finished. Total time: 10.846s

Immediately on flashing what happens if you fastboot reboot recovery?

My phone doesn't have an own partition for the recovery I can't flash it because of that I need to boot in it

This may be a stupid question, but is the bootloader unlocked via the code from Motorola?

Yes my bootloader is unlocked and my phone is rooted but I want to boot into twrp

Do you have the stock ROM image? Can you boot that recovery.img file?

Yes i have the stock ROM but I cant boot the twrp.img recovery


text:
Cannot get network/internet access within crosvm managed VM
I am trying to run a VM with internet access on my Pixel 6a and Android 14. I am using crosvm to successfully boot debian on the Pixel, but unfortunately I am not able to get internet access (or any communication to the host).
# https://crosvm.dev/book/devices/net.html
ip tuntap add mode tap user $USER vnet_hdr crosvm_tap
ip addr add 192.168.10.1/24 dev crosvm_tap
ip link set crosvm_tap up

#routing
sysctl net.ipv4.ip_forward=1
HOST_DEV=$(ip route get 8.8.8.8 | awk -- '{printf $5}')
iptables -t nat -A POSTROUTING -o "${HOST_DEV}" -j MASQUERADE
iptables -A FORWARD -i "${HOST_DEV}" -o crosvm_tap -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i crosvm_tap -o "${HOST_DEV}" -j ACCEPT

cd /apex/com.android.virt/bin/

./crosvm run \
    -s /data/local/tmp/crosvm.sock \
    --disable-sandbox \
    --rwroot "/data/local/tmp/debian.ext4"  \
    --net tap-name=crosvm_tap \
    --mem 2048 \
    /data/local/tmp/kernel

So far, I followed the crosvm documentation and set up the TAP device and configure networking within the guest as described here: https://crosvm.dev/book/devices/net.html
I am using a kernel that supports virtio, but lspci still shows an unclassified ethernet controller and there is no /dev/virtio-ports device.
root@box:~# lspci -k
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma]
lspci: Unable to load libkmod resources: error -2
00:01.0 Mass storage controller: Red Hat, Inc. Virtio 1.0 block device (rev 01)
    Subsystem: Red Hat, Inc. Virtio 1.0 block device
    Kernel driver in use: virtio-pci
00:02.0 Unclassified device [00ff]: Red Hat, Inc. Virtio 1.0 RNG (rev 01)
    Subsystem: Red Hat, Inc. Virtio 1.0 RNG
    Kernel driver in use: virtio-pci
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio 1.0 memory balloon (rev 01)
    Subsystem: Red Hat, Inc. Virtio 1.0 memory balloon
    Kernel driver in use: virtio-pci
00:04.0 Unclassified device [00ff]: Red Hat, Inc. Virtio 1.0 network device (rev 01)
    Subsystem: Red Hat, Inc. Virtio 1.0 network device
    Kernel driver in use: virtio-pci
00:05.0 USB controller: Fresco Logic Device 1400
    Kernel driver in use: xhci_hcd
00:06.0 Unassigned class [ffff]: Red Hat, Inc. Device 0011 (rev 01)
    Subsystem: Device 00ff:00ff
    Kernel driver in use: pvpanic-pci

How to setup a virtual network device on Android properly so that I can get internet/network access within my VM?


text:
How can I access "visual voicemail" without closed-source apps on GrapheneOS?
Is there an open-source dialer or other application that allows access to PIN-protected voicemail messages? I don't want to have to call my voicemail. I am running GrapheneOS.

As far as I know there is not standardized access to voicemail systems via IP, therefore each app is carrier specific and carriers usually don't provide their apps as open source.

What is your phone? On CalyxOS and GrapheneOS there is a built-in Visual voicemail option in the default dialer but this won't work for every carriers.

If you are having issues with Visual Voicemail, please be aware that AT&T USA users are unable to use this feature currently due to a lack of AOSP support. Other carriers are done on a best effort basis. We would suggest using Google Dialer with sandboxed Google Play if you are unable to get this feature working.
https://grapheneos.org/usage#carrier-functionality

Voicemail can kick in when you havent answered your phone or when the signal strength is too low and your phone cant connect to the network.  The latter is not going to work if you are relying on an app.
I havent seen any carrier provide any interface to their system, which appears to be different for different carriers.  Also, down under, they charge you extra to access voicemail, even when you have an expensive package deal.  They are not going to give up that money.

How does Google's "Visual Voicemail" work then?

@legacy-code-dev Is that Visual Voicemail an app (please provide link)? If I search for this term I only get results that are related to iPhones...


text:
Flashing twrp failed on Moto G5s
I wanted to install twrp on Moto G5s but faced the following error:
Inspiron-7501:~/Downloads$ fastboot flash recovery twrp-3.5.img
(bootloader) is-logical:recovery: not found
Sending 'recovery' (15714 KB)                      OKAY [  0.711s]
Writing 'recovery'                                 (bootloader) Image not signed or corrupt
OKAY [  0.132s]
Finished. Total time: 0.848s

I tried multiple recovery images, including lineage recovery, and, as i mentioned, twrp.
I checked for the right files for my device (montana) and unlocked the bootloader previously.
If someone has an idea, i would appreciate some help.
Thanks in advance, Bennett.

Is your device bootloader unlocked?

yes it is, also according to settings.

In Android settings you only see "OEM unlock" which allows/disallows unlocking, but the question is if you have really have unlocked your device (e.g. via fastboot).


text:
After deleting user 0's locksettings.db, user 10 (Island work profile) failed to decrypt in TWRP
My Pixel 5 running Android 11, encountered a frozen screen when attempting to set the screen lock to none.

After the system auto reboots, the device prompts for unlocking the screen pattern. Even entering the correct pattern, the work profile consistently prompts for unlocking,

The issue seems from using One Lock to secure the device but not removing the screen lock pattern successfully.

Following a guide to delete locksetting files allowed successful access to the device. However, the work profile prevents the opening of apps.
Rebooting to TWRP (3.7.0_11-0) seems user 10's data is encrypted.
Also following How to decrypt Island / Work profile and Parallel Apps user in TWRP?, the same, does not solve the issue.
Any solution to decrypt the work profile data without format?
Edit:
According to the using-adb-to-change-the-screen-lock
I also attempted to remove the screen lock using ADB.
adb shell
locksettings clear --old MY_PASSWORD --user 0
locksettings clear --old MY_PASSWORD --user 10
locksettings verify --user 0
locksettings verify --user 10

both show Lock credential verified successfully
after rebooting to TWRP, user 10 still failed to decrypt

with the "One Lock" feature you have probably successfully merged the locksettings of both profiles - then deleted locksettings

Thanks for your response,
but in TWRP, I'm still unable to decrypt the data partition in user 10.
Even when using "twrp decrypt my_pattern_password 10"
or "twrp decrypt default_password 10" in twrp terminal
it continues to show 'Failed to decrypt user 10.

It seems that after successfully locking my device, it fails to generate the password.key or pattern.key in data/system. However, the screen is still locked. Perhaps this is the reason why TWRP can't decrypt it, and the device is frozen and reboots.


text:
Samsung Internet open links on it own and pop up as picture in picture
My phone pop up ads page every 5 minutes in Samsung Internet as picture in picture mode, I tried to find any app doing this but nothing was found, any idea on how to get rid of this?


text:
Multiple networks simultaneously
I have a wireless sensor (A) that sends the captured data to an Android device (B) over a wifi network created by A.
The data is received correctly on an app running on B, however the problem is that the wifi created by A lacks internet and I need to maintain internet connection on device B.

From the information I have been able to find, Speedify could accomplish this task, however I need a free alternative. The objective is that B can have internet while using the data reception application that needs to be connected to A's Wi-Fi, perhaps there is some way to force only the application to connect to A's Wi-Fi ( as a possible alternative to the simultaneous use of networks).
Device B would have the possibility of being rooted if this were necessary.
Related question: https://stackoverflow.com/questions/77288629/how-to-route-local-traffic-over-wifi-and-everything-else-using-the-mobile-data-i

What Android version has the phone?

@Robert I think it is the Android 13 version. According to the documentation https://source.android.com/docs/core/connect/wifi-sta-sta-concurrency?hl=es#restricted, it seems that from Android 12 it could be possible What I'm looking for, however, I don't know anything about programming on Android and I don't have access to the application code either..., but this makes me think that maybe there is some way to achieve it.

@Robert, any ideas?

Sorry but it seems that there is no demo app available for this feature. At least searching for terms like isStaConcurrencyForLocalOnlyConnectionsSupported does not return any existing app code (only versions of the API code). Therefore it seems like you need someone who can develop such an app to test it out if it works (keep in mind that app development is off-topic here).

It seems that while the api has a funtion to allow this, the apps running have to use this function. It isnt just a matter of the Android version, but also the manufacturer (unless rooted) and the apps themselves.

So is there a way to get several networks to work simultaneously (with root)?


text:
How to reinstall all Google Play Store dependencies, specifically Google Account Manager to make the Play Store work again?
I'm using GNU/Linux and the adb command connected on a Samsung phone (specifically the SM-N9600 model, on Android version 10) without root, and also termux to find paths easily on the phone. I uninstalled Google Account Manager with pm uninstall -k --user 0 com.google.android.gsf.login, I think, if I remember correctly.
I cannot get it back with either

pm install-existing com.google.android.gsf.login
pm install -r /storage/emulated/0/Download/com.google.android.gsf.login_7.1.2-25.apk

I tried looking inside the /system/priv-apps/ directory to find Google Account Manager, but couldn't find it.
When I open the Google Play Store (still haven't made an account on the phone) and press the "Sign In" button, it 'errors out' with this message

Something went wrong
There was a problem communicating with Google servers.
Try again later.

The output of what I have tried so far:

With pm install-existing com.google.android.gsf.login -> https://pastebin.com/h9cJz08z

crownqltechn:/storage/emulated/0/Download $ pm install-existing com.google.android.gsf.login
android.content.pm.PackageManager$NameNotFoundException: Package com.google.android.gsf.login doesn't exist
1|crownqltechn:/storage/emulated/0/Download $ pm install-existing com.google.android.gsf
Package com.google.android.gsf installed for user: 0
crownqltechn:/storage/emulated/0/Download $

With pm install -r /storage/emulated/0/Download/com.google.android.gsf.login_7.1.2-25.apk -> https://pastebin.com/bt8JFGJD

crownqltechn:/storage/emulated/0/Download $ ls | grep -i "google"
Google_Account_Manager_v7.1.2.apk
com.google.android.gsf.login_5.1-1743759-22_minAPI21(nodpi)_apkmirror.com.apk
com.google.android.gsf.login_7.1.2-25_minAPI23(nodpi)_apkmirror.com.apk
crownqltechn:/storage/emulated/0/Download $ pm install -r com.google.android.gsf.login_7.1.2-25_minAPI23\(nodpi\)_apkmirror.com.apk
System server has no access to read file context u:object_r:sdcardfs:s0 (from path /storage/emulated/0/Download/com.google.android.gsf.login_7.1.2-25_minAPI23(nodpi)_apkmirror.com.apk, context u:r:system_server:s0)
Error: Unable to open file: com.google.android.gsf.login_7.1.2-25_minAPI23(nodpi)_apkmirror.com.apk
Consider using a file under /data/local/tmp/
Error: Can't open file: com.google.android.gsf.login_7.1.2-25_minAPI23(nodpi)_apkmirror.com.apk

Exception occurred while executing:
java.lang.IllegalArgumentException: Error: Can't open file: com.google.android.gsf.login_7.1.2-25_minAPI23(nodpi)_apkmirror.com.apk
        at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:461)
        at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1060)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
        at android.os.ShellCommand.exec(ShellCommand.java:104)
        at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:27148)
        at android.os.Binder.shellCommand(Binder.java:916)
        at android.os.Binder.onTransact(Binder.java:790)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5452)
        at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:5158)
        at android.os.Binder.execTransactInternal(Binder.java:1056)
        at android.os.Binder.execTransact(Binder.java:1029)
255|crownqltechn:/storage/emulated/0/Download $ exit
[dream@headstone ~]$ adb install Downloads/com.google.android.gsf.login_7.1.2-25_minAPI23\(nodpi\)_apkmirror.com.apk
Performing Streamed Install
adb: failed to install Downloads/com.google.android.gsf.login_7.1.2-25_minAPI23(nodpi)_apkmirror.com.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Unknown Reason]
[dream@headstone ~]$

with ls /system/priv-app/ -> https://pastebin.com/MmYti96x

crownqltechn:/system/priv-app $ ls | grep -i google
GoogleExtServicesPrebuilt
GoogleFeedback
GoogleOneTimeInitializer
GooglePackageInstaller
GooglePartnerSetup
GooglePermissionControllerPrebuilt
GoogleRestore
GoogleServicesFramework
HotwordEnrollmentOKGoogleExWCD9340
HotwordEnrollmentXGoogleExWCD9340
crownqltechn:/system/priv-app $ ls | grep -i account
SamsungAccount
crownqltechn:/system/priv-app $ #now the entire directory
crownqltechn:/system/priv-app $ ls -a
.                                Fmm                                OMCAgent5                         SendHelpMessage
..                               FotaAgent                          ONS                               SettingsBixby
ANTRadioService                  FusedLocation                      OmaCP                             SettingsProvider
AODService_v50                   GalaxyAppsWidget_Phone_Dream       OneDrive_Samsung_v3               SettingsReceiver
AREmoji                          GalaxyApps_OPEN                    PaymentFramework                  SetupWizard
Accessibility                    GameHome                           PeopleStripe                      ShareLive
AirCommand                       GameOptimizingService              PhoneErrService                   SharedStorageBackup
AirReadingGlass                  GameTools_Dream                    Phonesky                          Shell
AndroidAutoStub                  GearVRService                      PhotoEditor_Q3_Mid                SingleOutFocusViewer_Q
AppsEdgePanel_v3.2               GmsCore                            PlatformNetworkPermissionConfig   SingleTakeService
AssistantMenu_N                  GoogleExtServicesPrebuilt          PowerPoint_SamsungStub            SmartCallProvider
AuthFramework                    GoogleFeedback                     PreloadInstaller                  SmartEpdgTestApp
BackupRestoreConfirmation        GoogleOneTimeInitializer           ProxyHandler                      SmartEye
BadgeProvider_N                  GooglePackageInstaller             Quickboard                        SmartManager_v5
BeaconManager                    GooglePartnerSetup                 RubinVersion25                    SmartManager_v6_DeviceSecurity
BioFaceService                   GooglePermissionControllerPrebuilt SDMConfig                         SmartSwitchAssistant
BiometricSetting                 GoogleRestore                      SEMFactoryApp                     SoterSskdsSerivce
Bixby                            GoogleServicesFramework            SKMSAgent                         SoundAlive_70
BixbyAgentStub                   HealthService                      SOAgent                           StatementService
BixbyService                     Hearingdro_Q                       SPPPushClient                     StickerCenter
BlockedNumberProvider            HotwordEnrollmentOKGoogleExWCD9340 SVCAgent                          StickerFaceARAvatar
BlueLightFilter                  HotwordEnrollmentXGoogleExWCD9340  SVoiceIME                         StorageManager
CIDManager                       HwModuleTest                       SamsungAccount                    StoryService
CMHProvider                      HybridRadio                        SamsungBilling                    SystemUI
CSC                              IPService                          SamsungCalendarProvider           SystemUIBixby2
CallLogBackup                    ImsLogger                          SamsungCamera                     SystemUIDesktop
CarrierConfig                    ImsTelephonyService                SamsungCloudClient                Tag
ClipboardSaveService             InProcessNetworkStack              SamsungContacts                   TaskEdgePanel_v3.2
ClipboardUIService               InputDevices                       SamsungContactsMigrator           TeeService
CocktailBarService_v3.2          IntelligentBiometricsService       SamsungContactsProvider           TeleService
ConfigUpdater                    IpsGeofence                        SamsungDeviceHealthManagerService Telecom
ContainerAgent3                  IrisUserTest                       SamsungDialer                     TelephonyUI
CtsShimPrivPrebuilt              KLMSAgent                          SamsungExperienceService          ThemeCenter
DeXonPC                          KeyguardWallpaperUpdator           SamsungGallery2018                ThemeStore
DesktopModeUiService             KnoxCore                           SamsungInCallUI                   TimeZoneData
DeviceKeystring                  KnoxDesktopLauncher                SamsungMagnifier3                 Tips
DevicePersonalizationServices    KnoxGuard                          SamsungMessages_11                TouchWizHome_2017
DeviceQualityAgent               KnoxKeyChain                       SamsungMultiConnectivity          Turbo
DeviceTest                       LedCoverAppCrown                   SamsungPass                       UIBCVirtualSoftkey
DiagMonAgent                     LedCoverService                    SamsungPositioning                UserDictionaryProvider
DigitalWellbeing                 LinkToWindowsService               SamsungSocial                     Velvet
DocumentsUI                      LinkedIn_SamsungStub               SamsungTimeZoneUpdater            VpnDialogs
DownloadProviderUi               LiveStickers                       SamsungVideoPlayer                WallpaperCropper
DressRoom                        LocalTransport                     SecCarrierProvider                WallpaperCropper2
DualOutFocusViewer_Q             ManagedProvisioning                SecDownloadProvider               Word_SamsungStub
DynamicLockscreen                MateAgent                          SecIrisService                    YourPhone_Stub
DynamicSystemInstallationService MediaLearningPlatform              SecLiveWallpapersPicker           com.qualcomm.location
EasySetup                        MediaProvider                      SecMediaProvider                  imsservice
EmergencyInfo                    MmsService                         SecMyFiles2019                    knoxanalyticsagent
EnhancedAttestationAgent         MobileWips                         SecSettings                       knoxvpnproxyhandler
EpdgService                      ModemServiceMode                   SecSettingsIntelligence           ringtoneBR
Excel_SamsungStub                MtpApplication                     SecSetupWizard_Global             serviceModeApp_FB
ExternalStorageProvider          MtpDocumentsProvider               SecSoterService                   smartfaceservice
FBInstaller_NS                   MultiSoundSetting                  SecSoundPicker                    wallpaper-res
FBServices                       NSDSWebApp                         SecTelephonyProvider
FaceService                      NSFusedLocation_v5.0_UPG           SecureFolder
Finder                           NetworkDiagnostic                  SelectiveFocusViewer
crownqltechn:/system/priv-app $

Is there any way to 'resurrect' the Google Play Store? Some government apps need the Google Play Store or else they crash.

I would check logcat for a more detailed message of "Something went wrong". May be there are other side-effects.

You coukd try a factory reset

I couldn't find anything with logcat, except:
05-10 16:33:43.403  9951  9951 E ActivityThread: Failed to find provider info for com.google.android.gsf.gservices
05-10 16:33:43.012  9951 10421 E ActivityThread: Failed to find provider info for com.google.settings
which is probably not useful logs...

I may have to backup all my files and factory reset if it's truly impossible.
if I could get root access or a way to mount the android's file system on GNU/Linux with write permissions I'd manually install everything like on LFS but that's not the case...


text:
How to backup edl userdata partition using firehose file on xiaomi snapdragon 652?
Xiaomi mi max helium with locked bootloader snapdragon 652 from the year 2016. Will it be possible to backup and restore the userdata partition after reinstalling the system? To backup and restore, do you use Qualcomm QFIL and QSTP? Is a special USB cable (deep flash cable) required? Is the firehose.mbn file in the helium.tgz file for installing the ROM via fastboot the only file needed for this? Only with edl-mode using adb reboot edl can I make a backup and restore or is the batteryless and test point method necessary?


text:
How to setup 7.1/5.1 channel USB sound card on Android
I'm trying to setup 7.1/5.1 channel USB audio card on my RPI4 (I'm using KonstaKang's ROM konstakang.com/devices/rpi4/LineageOS21 (Android 14). I found some info on the web that suggest multichannel audio is supported:
How to play 5.1 audio direct to speakers?
I tried editing /vendor/etc/usb_audio_policy_configuration.xml as suggested but still get only stereo output.
Could you please point me what can I check/change to make this work?
Update: I found that after the update of usb_audio_policy_configuration.xml actually there is sound from all 8 channels when adjusting the sound level from Settings but when playing video with VLC (AC3 5.1 audio) there is still only stereo on the main two channels.

What Android version is installed on your Raspberry and which ROM do you use (to my knowledge there is no official raspberry ROM).

@ Robert there is official ROM but in my experience it doesn't play well with Android // There are a bunch of Android ROMs, so OP would probably be better asking in Raspberry SE since there are few Questions and Answers here on this site //Besides, the hardware configurations of Pi, ROM peculiarity and Android version all contribute to complexity//I had a tough time getting Android Bluetooth paired

@beeshyams: That "official ROM" is not Android, but a Debian-based conventional Linux, Raspberry Pi OS.

@John I am aware of that :) //I also said in the comment that there are a bunch of Android ROMs, never said there is an official ROM for Android

I'm using KonstaKang's ROM https://konstakang.com/devices/rpi4/LineageOS21/ (Android 14).

@DimitarKosev When requested additional info or clarification, make sure to always [edit] the question to add it, not just comments.

Ok for the others looking to do the same as me, apparently the sound card works (Creative Soundblaster X3 but any USB card that works on Linux should do too), with the above configuration and outputs 7.1/5.1 surround. The actual issue is that most players output only stereo. I was testing with VLC that happens to be broken and does not output multi channel audio. KODI, MPV and Nova player do output proper 5.1/7.1 surround.   Tested with KonstaKANG AOSP 13/14 builds, Lineage21 and the multichannel sound works.


text:
Bypass "Your phone needs a SIM card to work" screen on a Moto G Play 2023 (Verizon)
I bought 2 Moto G Play 2023 phones off of eBay and I want to use them only with WiFi for development purposes. So I turn them on, and a little red bubble that says Hello pops up, and then a Verizon logo pops up. Then it goes to the screen with the Start button. I click that, then it wants me to insert a SIM card. There is no skip button, and when I try all the secret number codes in the Emergency Call section, they all are blocked saying that it is not an emergency number. There are some stickers on the back of the phones. Please ask me if you need them. So can someone please help me with this? Thanks! P.S. It runs Android 12.

I am aware of the 4 corners trick where you tap repeatedly on the screen with the "Start" button: upper left, upper right, lower right, lower left, and repeat? I found this video for Samsung: https://www.youtube.com/watch?v=nQ2wUoScHr8 with the added "lower vol" button action. If it works do report back.

Unfortunately no that didn't work :(


text:
How Can I Resolve a Persistent Security Breach on My Devices Despite Multiple Measures?
I’ve been experiencing a severe security breach where individuals have hacked into both my Android and Linux devices. They have access to all my online and offline activities, including my social media accounts, Gmail, WhatsApp, call logs, and SMS. Despite resetting my phone multiple times and enabling two-factor authentication for all my accounts, I am still unable to remove these intruders. I’ve also used the paid version of Bitdefender for malware protection, but it hasn’t detected any malware. I am confident that the intruders remain in my system.
To check if my phone is still compromised, I posted a story on Instagram and used the 'Close Friends' feature to share it only with my other account. However, I discovered that the intruders were still able to see the story. Additionally, they have made comments about my personal online activities that they should not have known about.
What further steps can I take to ensure that my devices are fully secure, and how can I conclusively verify that the intruders are no longer accessing my information?

Please edit your question and tell us what makes you think that you are still hacked!

For Google account: check Your devices

If you have enabled TFA for your social media accounts, then others cannot log in.  And I am sure Bitdefender would have found any malware if it existed on your phone.
If you are still worried then I would suggest these additional items

Change your mobile number
Change your email address
Try anotehr anti-virus such as the free version of Kaspersky.


text:
Working vpn server on termux native with root?
Does anyone has a working way or a step by step guide to set-up a vpn server on termux with root? Like someone who actually tried and succeed or already has one running to give me tips and point me in the right direction.
This seems impossible and every single tutorial i found online is either outdated or missing things
Can we make a Vpn server run on Android?
Even this is a bit outdated, I tried the application he mentioned "servers ultimate" and it has never been updated since 4 years ago, It does work but you will never be able to connect to the server due to the "TLS HANDSHAKE ERRORS" I think this is because the application is using deprecated ways to generate the certificates or the 'SSL/TLS' Keys
is this impossible or just not worth it?

One very simple feasibility check would be using the Python tool mitmproxy. It provides a Wireguard mode. Just for testing if Wireguard VPN can be run as server on Termux this might be an easy test.

@Robert I tried it, Outdated and filled with issues. I think they forgot about it because seems like no one uses it and it's not very configurable.


text:
Is it safe to remount the filesystem root / as read-write?
To clarify: I know that basically any root access is unsafe. But I'm asking only about the remount command itself, not about what can happen after.
I want to execute as root something like:
mount -o rw,remount /

Can this particular command or its equivalent theoretically break something (especially my data or even the whole OS) or I only need to be careful after the execution?
P.S. I use Termux as terminal emulator and KernelSU as root solution, but I don't think these things matter

Perhaps you could explain what you are trying to achieve

@RohitGupta I'm trying to achieve exactly what the title says (remount /), nothing more

I am not sure I understand the question... Just remounting a filesystem read-write can't "break" anything unless you actually write something to it. Can a mount/remount command damage anything? Nope, not if done correctly. I can't really put this as an answer as I have no definitive reference, but it's kind of like asking if you write someone an email but don't send it, will they get it... No, not unless you take some additional action.

@acejavelin I kind of disagree. See the quote, in this question// Surely things have changed a lot from then but it was at least a concern

@beeshyams Interesting... I had not heard that before. I guess my answer assumed that the root (or temp root) was already accomplished, which should have already triggered the tampered flag. Not sure how you would mount system r/w without root access which already implies the system has been modified.


text:
Unable to remount root partition: "Operation not permitted"
I have a device, rooted through the KernelSU. I granted root access to the Termux app using the KernelSU app. Now I have access to the su command, and theoretically should be able to use the mount command within the su shell. But when I try to use it for my root partition /, it says:
mount: '/dev/block/dm-2'->'/': Operation not permitted
What I want is to mount the root as read-write, but any mount operation I've tried failed.
The commands I've tried:
mount -o rw,remount /
mount -o ro,remount /
Or maybe there's another way to make the root writable?

To my knowledge this is quite normal. On modern devices you can't remount root partition - even with root permissions. That is the reason why Magisk uses file-system overlays to simulate modifications.


text:
Android Keystore error from GMS and NordVPN
I am having a problem on my Android TV Box X96 Max Plus Ultra (s905x4 4/64) Android 11. Tested on stock and on Slimbox ATV / AOSP with root and Magisk.
When I want to log in and connect to VPN in the NordVPN app, I get the error:

Exception during generating key keystore operation failed / exception during encryption keystore operation failed

Which would cause the login is not possible.
I did try several versions of the app. I can see the errors in the log of the app; the login procedure is:

Press Login in NordVPN
A Chrome window opens to enter the e-mail and password
After that, it returns to the app and login should be confirmed

SELinux = permissive.
I have tried around and could bypass these errors with:
Magiskpolicy deny gmscore_app keystore keystore_key gen_unique_id
chmod 660 /sys/fs/selinux/enforce
chmod 440 /sys/fs/selinux/policy #policy change not needed, just to make sure

Other things I did try: disable Google Play services (GMS) and the login and connection in NordVPN worked too (but the Google apps obviously could not work, and disabling the app is kind of equal result to denying the rule)
Only these changes would let me log in and connect without error.
Could anyone think of why this problem could exist and maybe how to fix it? And what impact (negative) on the system could these changes have?
I have uploaded logs to Pastebin.
In seconds on the timeline i did press login on .30/00 and connect on .20/50.
Logcat: https://pastebin.com/GuNcqzir
Log from Nordvpn: https://pastebin.com/t2r8jJH8
Log from begin of boot (1+2): https://pastebin.com/YVyF2k5a
https://pastebin.com/TrtKLuwE
I did find some errors in the log from boot 1 which i think could be related:
11-28 17:37:23.097     0     0 I         : [    7.136058@3]  [TEE] E/TC:? 00 tee_rpmb_verify_key_sync_counter:967 Verify key returning 0xffff000f
11-28 17:37:23.097     0     0 I         : [    7.136083@3]  [TEE] E/TC:? 00 tee_rpmb_verify_key_sync_counter:967 Verify key returning 0xffff000f
11-28 17:37:23.097     0     0 I         : [    7.136087@3]  [TEE] E/TC:? 00 tee_rpmb_init:1140 Verify key failed!
11-28 17:37:23.097     0     0 I         : [    7.136092@3]  [TEE] E/TC:? 00 tee_rpmb_init:1141 Make sure key here matches device key
[TEE] E/TC:? 00 TA panicked with code 0xffff000f

I am not sure if following errors are related to the problem:
11-28 17:37:22.473 0 0 E [ 6.511682@3] init: Unable to set property 'ro.crypto.state' from uid:0 gid:0 pid:1: Read-only property was already set
11-28 17:37:21.766 0 0 E [ 5.625557@3] selinux: SELinux: Could not set context for /mnt/vendor/odm_ext: Read-only file system
cgroup1: unknown subsys name 'schedtune' and 'blkio
11-28 17:37:21.760 0 0 E [ 2.474013@3] init: Could not set 'ro.boot.dynamic_partitions' to 'true' while loading .prop filesRead-only property was already set
11-28 17:37:21.758 0 0 E [ 1.650913@1] init: Failed to copy /avb into /metadata/gsi/dsu/avb/: No such file or directory
11-28 17:37:21.757     0     0 I [    1.609913@1]  init: [libfs_mgr]check_fs(): mount(/dev/block/by-name/metadata,/metadata,ext4)=-1: No such file or directory

11-28 17:37:25.149     0     0 I         : [    9.184167@3]  [TEE] E/TA:   fw_check_pack_version:282 The TA version (v0.2) is lower than the pkg version (v0.3).
11-28 17:37:25.149     0     0 I         : [    9.184170@3]  [TEE] E/TA:   fw_check_pack_version:283 The TA version is too low that may affect the work please update asap.
11-28 17:37:25.149     0     0 I         : [    9.184173@3]  [TEE] E/TA:   fw_check_pack_version:286 The TA ver is v0.2
11-28 17:37:25.149     0     0 I         : [    9.184176@3]  [TEE] E/TA:   fw_check_pack_version:287 The fw ver is v0.3```

Is the installed OS an official Google Android system (with pre-installed Google services and apps) or an AOSP version (even if it is provided by the device manufacturer). May be the box has no hardware backed AndroidKeystore system which is mandatory for Smartphones.

The TV Box is not certified. But it comes with pre installed Service and Apps. Not sure how to find out if its AOSP Version?
In the *.prop i can see that its sign with test-key/userdebug if thats relevant.
Under Security/Encryption there is Storage Type - Hardware-backed and Phone Encrypted.
I did find this, where a code part is for Checking for Hardware-Backed Keystore Support, but i do not know how to use this....
https://medium.com/@nachare.reena8/a-deep-dive-into-android-hardware-backed-keystore-3b0149356870
Is there an "easier" way to test or know if its supported?

Best way to trace those problems would be logcat log while the error occurs. A connected PC via adb could generate such a log or on the device itself it should be also possible to get access to logcat logs with rot permissions (e.g. via termux?). Often apps log their errors with Stacktrace to logcat. The error message and stack trace would be helpful, but finding in all those logcat messages won't be easy.

I did try logcat, but output was overwhelming. But will try again just when i try to login.
What i did was: dmesg | grep 'avc:' and there were many denials (but they actually do not matter because of selinux=0)
The thing is, only the rule to prevent Google Play Services create key_unique_id is enough (plus chmod) and the error does not happen. As i understand it should only try to set this ID at first time. But maybe can't and thats why its trying to do always. Maybe thats a trigger that if no id is set and not trying, the Hardbacked Keystore is deactivated and it only tries per Software?

It would be better if you would write everything you found out as an answer instead if squeezing it into multiple comments. May be it will be of use for other people that face a similar problem.

i will edit my question and add more infos + logs


text:
How to solve "Couldn't save screenshot storage may be in use"
i have been experiencing an issue on my smartphone.Every time i try to save a picture it says"Couldn't save screenshot,storage may be in use"
I already tried to clean the whole cache but it didn't work.

i have already fixed  this issue.It is basically a cache problem that i was experiencing,however even if i cleaned that,it didn't work so I got to go a little bit deeper and I found the solution.Very simple
1:Go to settings then application manager
2:Click on Chorme(in my case,the problem was on Google Chrome and Google)
3:Click on Manage Storage ,then on Manage and delete the content
4:Do the same to Google application and the problem will be fixed.
5:Also try cleaning DATA from apps if the text above doesn't work! (VERY USEFUL TOO).
Although it is simple I had a hard time trying to figure out what was wrong,then I noticed that it was not only to clean the cache normally but you also nedded to open its configuration and clean the cache that was in there.Apparently Google Chorme stores a lot of trash and over the time,it might cause some issues. Please if you have other ways to fix this problem,share them here. Let's help others :)
Learn more at:
https://www.popsci.com/fix-most-common-smartphone-problems/