text:
Unable to get apt-update and apt-upgrade to work on Bliss OS using Termux
Ideally, I am trying to gain root access to a Bliss OS (version 11.14) Virtualbox machine I have so that I can view saved PCAP files. Sadly, to get to the directory I have to be root. The only option seems to be installing a fake root module (https://www.crisisshelter.org/get-root-access-in-termux-without-root-fakeroot/).
However, this and several other things I have tried to do with Termux lead up to running apt-update and apt-upgrade. However, I keep seeming to get repository issues.
$ apt update && apt upgrade
Get:1 https://grimler.se/termux-packages-24 stable InRelease [16.8 kB]
Get:2 https://grimler.se/game-packages-24 games InRelease [9347 B]
Err:1 https://grimler.se/termux-packages-24 stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO PUBKEY B0076E4908716168
Get:3 https://grimler.se/science-packages-24 science InRelease [9360 B]
Err:2 https://grimler.se/game-packages-24 games InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BO076E4908716168
Err:3 https://grimler.se/science-packages-24 science InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490871616B
Reading package lists... Done
W: GPG error: https://grimler.se/termux-packages-24 stable InRelease: The following signatures couldn't be verified because the public key is not available: NO PUBKEY B0076E490871616B
E: The repository 'https://grimler.se/termux-packages-24 stable InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now. N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
W: GPG error: https://grimler.se/game-packages-24 games InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
E: The repository 'https://grimler.se/game-packages-24 games InRelease' is not signed. N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
W: GPG error: https://grimler.se/science-packages-24 science InRelease: The following signatures couldn't be verified because the public key is not available: NO PUBKEY B0076E490B71616B
E: The repository 'https://grimler.se/science-packages-24 science InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).

Screenshot of terminal output
I can't seem to find a fix for Termux anywhere online. Does anyone have a better solution to getting root access via Termux?
UPDATE: I updated termux to a more modern version. However, I get "File has unexpected size" error when I try to run apt-get update, or when I try to install anything.
~ $ pkg install su
Checking availability of current mirror: ok
Get:1 https://packages. termux.dev/apt/termux-main stable InRelease [14.0 kB]
Get:2 https://packages. termux.dev/apt/termux-main stable/main x86_64 Packages [450 kB]
Ign:2 https://packages. termux.dev/apt/termux-main stable/main x86_64 Packages
Err:2 https://packages. termux.org/apt/termux-main stable/main x86_64 Packages
  File has unexpected size (451382 != 450311). Mirror sync in progress? [IP: 216.18.208.174 443]
Err:2 https://packages. termux.org/apt/termux-main stable/main x86_64 Packages
  File has unexpected size (451382 != 450311). Mirror sync in progress? [IP: 216.18.208.174 443]
Err:2 https://packages. termux.org/apt/termux-main stable/main x86_64 Packages
  File has unexpected size (451382 != 450311). Mirror sync in progress? [IP: 216.18.208.174 443]
Fetched 14.0 kB in 1s (10.7 kB/s)
Reading package lists... Done
E: Failed to fetch https://packages. termux.org/apt/termux-main/dists/stable/main/binary-x86_64/Packages File has unexpected size (451382 != 450311). Mirror sync in progress? [IP: 216.18.208.174 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Screenshot of terminal output
Does anyone know a fix for this?

I am trying to gain root access ... so that I can view saved PCAP files -- why do you need root access for this? Where (exact location) are these PCAP files saved? Are you unable to copy them to /sdcard (aka Internal Storage)?

You have added a repository but not it's PGP key. Use apt-key add <site-public-key.gpg> e.g. on the published key here.

@Firelord I am attempting to view pcap information generated via csploit for a senior project im doing. It seems the only location the pcap files are saved are: /data/user/0/org.csploit.android/cache/csploit-sniff-randomnumber.pcap. The So far, I have not found a way to changed the save location in csploit, and I get a permission denied error when i try to access that exact directory.

@Robert is site-public-key.gpg something i should already have on my system? Or is that something I have to find somewhere? Sorry, very new to this.

If you add a repository you also have to add the matching PGP key. I have posted the link to the page where the key is linked on in my last comment.

@Robert I have not added any new repositories (i think?). All I've done was change from the default termux repository "the official repositories" (I was getting errors from there as well) to the "Mirrors by grimler repository. Every time i try to install anything with apt or pkg, I get the same errors.

Do you use Termux from Play Store or F-Droid? The PlayStore version is outdated and will not be updated. May be this is the reason, or your installation is pretty old. Repository keys some times change then you also have to manually add them as I described (if you trust the key and the repo).

@Robert I downloaded this termux version from the Aurora Store.

Aurora uses GooglePlay Store as APK source so you should have the outdated version.

@Robert, Where could I find a more updated version, or do you have a suggestion on a better terminal i can use? I mean the other one i have is the Terminal Emulator app, but that too is giving me permission denied when i try to access /data/user/0, nor does it seem recognize any basic utilities like termux does (such as apt, pkg, etc...).

I asked you if you use the version from Google Play or F-Droid... I would consider this as a broad hint. Alternatively please google termux download.

Robert I had the Google Play version. I have updated to what i think is the most recent (0.118.0), however when i run apt-get update i now get the error: "File has unexpected size (451382 != 540311). Mirror sync in progress? [IP: 216.18.208.174 443]

Just a tip, please copy and paste the text output from the terminal instead of posting a screenshot since images are not really accessible to some.

Your link about the fakeroot module seems to be one of these websites that are created by bots to get money using website ads.
PCAP file is just network traffic capture as a file.
If you are just interested in the network traffic being captured regardless of the file or the format, I recommend you to use HttpCanary.


text:
Samsung galaxy z fold 4 - app automation help
Last night my wife was playing with the settings on her z fold 4, and she did some sort of app automation.
What do i mean?
She basically told her phone that whenever she opens certain apps, like WhatsApp, Messenger etc, to add a blue screen filter.
I have searched everywhere and i cannot find this setting to turn it off...
can anyone help please?

You may check the list of installed apps instead of settings. A blue screen filter can be provided by apps which always show a transparent overlay over all (or certain) apps. If the transparent overlay is colored with alpha transparency it can be used a blue light filter.

it was something in her settings, she showed me and asked what it meant I just cant remember what the setting was..

source: Stack Exchange

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

sort: votes


text:
How to open an app using ADB?
I would like to modify an existing app from Google Play to not appear on the app drawer. So what I did is I decompiled the apk file and then removed the line: <category android:name="android.intent.category.LAUNCHER"> from the manifest file and now the app does not appear in the app drawer.
Now, if I want to open the app (just like opening it if I press it from the app drawer), how can I do it using the ADB shell?
I read that we can use adb shell monkey -p your.app.package.name 1 to open an app but when I tried to use this it says ** No activities found to run, monkey aborted.

Use am start <packageName>/<activityClassName> to start an app with the specified activity.

Hi, I'm not familiar which specific activity to start. I tried reading the manifest file and there are a lot of  scopes, how can I know which activity to run that will open the whole GUI of app just like how it can be opened when pressed on the app drawer?

I would start with the activity you removed the <category line from as this is the activity used by the launcher.

I would like to modify an existing app from Google Play to not appear on the app drawer -- you might be trying too hard for this. There are some app launchers which can hide an app from app drawer (Nova Launcher 2 and Lawnchair2 do for sure). Very easy to do that. You can try them to see if that's all you really need.

You can use an app like Activity Launcher
and if the app shows no activity to launch, that means in the process of decompiling you destroyed the app's ability to be launched.
And if you want to start the app from adb, you can take the activity name from Activity Launcher like this:
adb shell am start -n your.package.name/Activity Name from Activity Launcher

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


text:
Why does Android mark my applications as unsafe?
While downloading unsafe modded .apk files from the internet and while installing them there is no prompt of "unsafe app being downloaded". But when I install an apk that I made, there is a prompt (just a warning that the app that I am installing can be malicious). Why does this happen and how can I prevent it from happening in my applications?

You have already answered your question. Modding an APK also requires to resign the APK, but now packageName and signer does not match (or the signer is simply unknown to Google) which is by definition suspicious from Google's perspective. You can prevent that by not modding apps.

"install an apk that I made" how did you make the APK though?

I think you are misinterpreting the question. I said that downloading a modded apk from internet which is clearly not the original one gives no warning but if i try to make my own small little app for android it starts giving warnings (and if you are asking i am using buildozer to compile apk and was using python to develop the app(kivy for the frontend))


text:
How can I load a webpage from cache for offline browsing in Google Chrome browser?
In Google Chrome browser running on an Android phone, I opened a webpage under wifi. Now I am disconnected from WiFi, I want to access the webpage loaded before from the cache, but it shows "No Internet" instead. can I see the webpage loaded before from the cache?
Thanks.

AFAIK, you have to manually save the webpage from Chrome. A cache by itself might not sufficient because some sites prevent caching altogether.

I remember when no wifi connection, it automatically enters offline browsing mode?


text:
Transfer pictures via adb, while preserving the ability to pick a better shot later
When I view a picture on my Pixel6, the phone suggests a "Top Shot" and lets me "pick a better shot".
I would like to transfer my pictures to a hard drive using adb, while retaining that ability.
I don't use Google Photos. Phone not rooted.
Is that possible?
If needed I can modify any Camera app's setting, or pre-process the pictures before using adb using any app, or post-process them afterwards using any software.

The source of a "Top Shot" is according to Google's documentation a "motion picture" (effectively a video not a picture). https://support.google.com/googlecamera/answer/9937175

@Robert: Interesting! Would you know whether the video gets transferred by adb? I only see JPGs on the destination hard drive.

Sorry I don't know where and in which format the Camera app saves the data use to provide the Top Shot picker.


text:
What is causing Android device to turn its screen on at seemingly random times?
A friend has an LG phone running Android 6.0 (Marshmallow).  Many, many times during each day (and night) the device's screen apparently turns itself on.  This is causing much battery drain, and reportedly, a bit of annoyance.
There are no incoming calls or SMS messages at these times.  There are also no new notifications from Android or any installed apps when this occurs.
All apps on the device were installed from the Google Play Store or from F-Droid.  The only exception is the licensed version of AdGuard, which was purchased and downloaded directly from AdGuard.
Scanning for malware using several different well-known scanners reportedly came up with nothing.
The device is not rooted.
The device is stationary on a flat surface when this is noticed.  It reportedly happens regardless of whether or not the device is plugged in to a USB cable for power.
A new battery was installed, but that did not result in any changes (except longer battery life).
What could be causing this, and how to fix it?

Check the notification history? It could be a notification that only appeared and disappeared in less than 1 second.

Screen may wake up (due to full wakelock held before holding the partial one) when a scheduled job runs or an alarm is fired e.g. for a sync job or to fetch cloud messages. This - kind of buggy - behavior was more common in old Android releases. Checking logcat may help.

@AndrewT. Thanks.  Is there any way to check the notification history on Android 6?

@IrfanLatif Interesting ideas.  Thanks.  I'm trying to remember... how does one check logcat on Android 6?  BTW, I don't think they have a computer to help with that process, but I can certainly ask.

BTW, Andrew and Irfan, I just noticed that this question (which I posted 12 minutes ago) has 4 views, and I think SE counts the posting action as 1 view.  That means you two are 2 out of the first 3 readers, and you both posted helpful comments.  Thanks so much!

Android 4.3: How to get the notification history may help, but it seems it also depends on the vendor and Android version.

@AndrewT. Thanks Andrew. I need to get some rest, but I'll review that QA soon.

Is there data sync going on? Does your anti-virus download a new key file automatically and scan? Do you use Dropbox? Google services like Play Protect? App auto-update on?


text:
backend components for SMS on Oxygen
I took off all google apps and oxygen telemetry using root, but apparently I also took off something important.
I'm now receiving all SMS about half an hour late and I can't send any. This problem persists even if I manually open the app.
I changed the default SMS app to Signal, so I tried to revert to the original 'messages' app by google, but that crashes on launch.
I'm at a loss finding out what essential component I must have removed. Can anyone help out?

A list of removed apps may help the community to give you better advice.

Are you sure that it is your phone relying the SMS and not a coincidal problem of your cellular provider? I would first check the SIM card in a different phone. SMS are received by the radio interface layer (RIL) and the handed over to the Android system. The RIL is as far as I know model specific so there is no general answer.

@IrfanLatif I wish I had one ;) I went a bit over enthusiastic I'm afraid. In the worst case doing a re-flash of the system partition won't be a big deal.

@Robert I have considered that as well, but I'm not expecting a helpful response from my cell provider :P There is also a good change I just goofed up myself. I haven't had a chance to test with another phone yet.


text:
VNC over USB tether?
Edit:  I want to connect to a vnc server on  a PC from an Android client via usb tethering.
I'm trying to use my phone as a way of interacting with a headless linux box.  I can't get VNC or connectbot to work with usb tethering - they just time out.  Work as expected when I connect the phone through wifi.  Is there something I need to do to make this work? Open some ports or something?  I could get primitive ftp working through a USB tether.
Anyway I'm in need of suggestions of where to start looking - or if it is at all possible.
Wifi and bluetooth don't suit my use-case
Cheers

Opening ports in the tethering network is always a problem on Android. If you already have USB connection why don't you just use adb. Using adb you can forward ports in both directions. But you could even skip that by simply using scrcpy which works like VNC (IMHO even better) but simply requires and adb connection.

Thanks for the info . To clarify I want to control my linux desktop with my phone. Will scrcpy work in that direction? A cursory read of the README leads me to believe it's geared in the other direction.

No scrcpy is only for remote controlling Android. You should edit your question and make it clear that the VNC server is running on the PC side.


text:
Accessibility for Gesture Controls gets disabled at least daily
I read through and tested all the solutions here but to no avail : Accessibility services gets disabled automatically
On Xiaomi 12S Ultra with latest MIUI. disabled all optimizations, battery saver etc but it somehow turns off my accessibility without me doing it (or it will just state - not working. Tap for info.) and there's no further info from the system.
What else can I do? It's not app specific as it also happens on FNG and Vivid Navigation gestures.


text:
Warning sign at WhatsApp backup in Google Drive
I have an Android phone with WhatsApp installed that backs up to my Google Drive. When I go to the app settings in Google Drive, I see a warning next to WhatsApp (a gray triangle with an exclamation mark).
Why is that and how do I fix it?

According to this thread from Google Support related to the same problem, it is a permission issue. Follow the steps as described on the message addressed to the OP of the mentioned thread by WhatsApp Support:

Thanks for your message.
There is an issue with the permission settings of your Google Drive account. You will need to access your Google Drive account to resolve this issue.
On your PC, open Google Drive, click the gear icon in the top right > Settings > Manage Apps > WhatsApp > Options > make sure you haven't selected Disconnect from Google.
To ensure WhatsApp functions properly on your device, please reset WhatsApp's app permissions.
You can use your phone's search feature to search for your permissions settings, or follow these paths:

Android: Open your phone's Settings > Apps > WhatsApp > Permissions.
Android for Pixel: Open your phone's Settings > Apps & notifications > WhatsApp > Permissions.

Be aware that the above paths may vary from phone to phone. Please contact your phone's manufacturer for specific instructions. You can restore or backup your chat history from Google Drive after you have given permission to WhatsApp and Google Drive. Please let us know If you continue to have issues.
WhatsApp Support Team

From the same thread:

Remove permissions of Whatsapp then do backup, Whatsapp will ask for permissions, you give it, and it should work. Found this on reddit.
Link: https://www.reddit.com/r/whatsapp/comments/de5w9b/google_drive_backup_gray_triangle_with/

I found that text too. But when I go to google drive, the only option there is is to disconnect from Google. I haven't selected it though.
I can go to the permissions page on my phone, but there is no option to clear all permissions. I can only clear individual options, but there is no option that is even remotely related to backup to google drive. So I didn't know what to do with that explanation.

I have EXACTLY the same problem, followed exactly these same steps (found elsewhere initially) and haven't been able to solve this problem.


text:
Photo's filename weird numbers
I have an android phone. When I tried to connected it to my PC and opened image folder (DCIM/101SHARP), I have found many photos.
There is a photo with the name ".trashed-1666704779-DSC_0328.JPG".
At first I thought "1666704779" is unix timestamp, but it doesn't seem so, because when I converted it into a date, it was a date in the future.
Can someone tell what "1666704779" stands for, if it actually has any meanings. Thanks!

Does that file really matter? It is a hidden file. It has "trash" in its name. It is probably meant to be discarded. As for creation date, use your file manager, show hidden files, and see properties for that file. You might be able to see creation date or last modification date. You should also be able to open it in an image viewer (or rename it first by removing the first dot).

@Firelord I don't want to know creation/modification date, I just want to know what is the meaning behind that number if there is any

File naming schemes are dependent on the app which created them. There is no standard as in what naming convention to follow. You can ask the developer of the app for the naming convention their app is using. You can increase your chances of getting an answer here by mentioning the name of the app which created that file.


text:
Where's Whatsapp identity (private) key located?
According to the end-end-end encrypted messaging protocol named Signal Protocol and implemented also in Whatsapp, each user has a long-term identity key pair, in addition to some one-time ephemeral keys and a signed prekey.
The identity key, namely the one mentioned in the official documentation in page 4, is used in the first triple Diffie-Hellman agreement and signs all the prekeys.
Does anybody know where this key pair is saved?
I'm assuming here a full access to the memory of the device.
In the axolotl.db file I can find traces of current ratcheting keys but not of the identity key.

Force stop the WhatsApp app, set inotifywatch on the app's data directories, open the app, send a message, check inotify event log to find out which files were accessed.

Signal E2EE is bonded to TEE (can't speak for Whatsapp guess not)


text:
Why am I not able to install the Signal app onto my Samsung Galaxy Tab S7 FE 5G?
I have a Samsung Galaxy Tab S7 FE 5G and the Signal app is seemingly unavailable for this device.
I didn't have ANY issues with Telegram, so it's quite baffling to me.
Does anyone know why? Do I need to download it from another source altogether?

There are many factors (including the ones applied by the developer themselves) that may prevent the app unavailable to install from the Play Store, and it's almost impossible to pinpoint which one specifically is the cause. On the other hand, Signal provides alternative installation by APK. You may want to try installing it and try it if it's working properly or not on a tablet.


text:
How can I prevent Microsoft Teams from muting my alarms?
If I'm in a Microsoft teams meetings, my alarms are muted (the alarm shows up on the screen but the sound is barely audible). How can I prevent Microsoft Teams from muting my alarms?
I  use MS Teams on Android 10 with Samsung Galaxy S9.

Did you see/try: https://android.stackexchange.com/a/246776/3573 otherwise the topic is "Audio Focus"

Thanks, good to know about that term.


text:
Ghost files on sd card
About the first problem: so, once out of nowhere the files on my old sd card got corrupted. I decided to pull in and out tge sd card, without safely ejecting it first, which corrupted it completely. So I got a new sd card, and every time I prepare it for usage,android asks me to move 1.47 GB of files to free up space. If I do, 1.47 GB gets magically added to the amount of occupied space on my SD card to the "apps" category, however no apps are visible themselves. I've reformatted the card several times, changed it from internal storage to portable and back, the ghost files are still there. My guess is that the apps that were previously on my sd card themselves got erased, but the system saved their weight and the directories they were in.
There's another problem, with google play. Basically it completely ignores the existence of my sd card, even though it's formatted as internal storage.
I'd greatly appreciate any solution to atleast one of the problems I've mentioned, because I'm completely lost, even after days of trying to find solutions. Also I think I should note that it's impossible for me to get a card reader for my pc in the nearest future.

"however no apps are visible themselves". Where do you expect them to be visible? // How do you know that Play Store ignores the existence of your SD card? // Is your device rooted?

Android populates a database which contains all files. May be this database is out of sync  and Android does not update it because of a bug. In the end resetting the mediastore database may help you.

You could try to enable adb and use the command pm trim-caches as shown here: https://stackoverflow.com/q/25631612/150978 Hopefully it recovers the lost storage.


text:
Unable to run rclone mount (even as root). Stuck on Error : fusermount: fork/exec /system/bin/fusermount: permission denied
I have already:

A rooted Android 5.0 device (Stock-ROM, Magisk 19.3), Termux installed (termux-v0.79-offline-bootstraps.apk) and root permissions granted.
Installed rclone through official repository in Termux  pkg install rclone.
Created a rclone sftp configuration rclone config under the name "sshfs-srv-rasp1". Obviously, I have a RaspberryPi-Server with ssh-server already running. Other Linux machines can successfully connect through ssh and sftp/sshfs.
Checked if the rclone configuration works: rclone ls sshfs-srv-rasp1:  I get the correct file-listing from srv-rasp1. So the connection works.
Downloaded fusermount binary from https://forum.xda-developers.com/t/exe-static-linux-binaries-for-arm-android-cryptsetup-encfs-f2fs-tools-testdisk-photorec.3709380/page-4#post-76462538 (Filename=gocryptfs_fusermount-ARMHF.zip -> extract fusermount for arm - not arm64).
Copied fusermount to /data/data/com.termux/files/usr/bin, and gave maximal permissions 777 (everybody can execute).
Checked with fusermount -V, that fusermount can be successfully launched.
Created an empty directory /storage/emulated/legacy/srv-rasp1 as mount-point.

When executing rclone in Termux as normal user:
$ rclone -vvv mount sshfs-srv-rasp1: /storage/emulated/legacy/srv-rasp1

I get the following permission error (fusermount failes on permissions in /dev/fuse):
2022/10/09 09:24:25 mount helper error: fusermount: failed to open /dev/fuse: Permission denied
When trying as root with tsudo:
$ tsudo rclone -vvv mount sshfs-srv-rasp1: /storage/emulated/legacy/srv-rasp1

or with tsu:
tsu -c "rclone -vvv mount sshfs-srv-rasp1: /storage/emulated/legacy/srv-rasp1"

I get past the /dev/fuse problem, but now it halts on some other permission error, regarding fork/exec:
2022/10/09 09:38:33 Fatal error: failed to mount FUSE fs: fusermount: fork/exec /data/data/com.termux/files/usr/bin/fusermount: permission denied
Another approach to get rclone executed with root privileges is to use (su -c "XXXX"). The
problem is, with su we lose the enviromental variables $PATH, $HOME, which are needed for the shell to locate executables ($PATH), and for rclone to load $HOME/.config/rclone/rclone.conf. The workaround is to explicitly pass these variables to the command (emphasis on double quotation marks "", not ''):
su -c "PATH=$PATH HOME=$HOME rclone -vvv mount sshfs-srv-rasp1: /storage/emulated/legacy/srv-rasp1"

Result: rclone is correctly located and successfully executed in PATH=/data/data/com.termux/files/usr/bin, the configuration file /data/data/com.termux/files/home/.config/rclone/rclone.conf is, too, successfully loaded, BUT the error: "fork/exec ... permission denied" remains.
How can I get past these permissions errors?

Most probably related to mount namespace or SELinux. Already reported by others. Instead of using sudo or su -c or tsu -c, better open a root shell and run commands from there. You can also use strace to get the error more precisely. And I hope you've gone through this answer of mine.

"Android permissions are a beast".
In desktop-Linux if you have root permissions you get spoiled to be able to do everything (good or bad). I found out, that in Android even if you execute something with root permissions, you are still not almighty, and need some tweaks. Maybe it is better this way ...
Below I will explain how I successfully mounted my sftp-share on a mount-point using Termux, and made it accessible to all users/apps/file explorers. Credits to MountainX: In his post How to automate rclone-mount without Termux or Magisk?
he paved the way to break through the permissions-jungle for clone-mount without Magisk/Termux. I believe one can do it within Termux/Magisk as well. The obvious advantage is scriptability, cronjobs to regularly check/restore connections etc.
Steps:

I prefer doing command-line stuff on Termux using my keyboard from a desktop through ssh, and not on the touchscreen (in case somebody is interested, summary for a quick-setup but not the most secure:  $ pkg install openssh, create a password with $ passwd, launch $ sshd, find your android's ip with $ ifconfig, look under wlan0 the entry: inet 192.168.XXX.XXX, login to your android device from a desktop with $ ssh 192.168.XXX.XXX -p 8022). When inside Termux I also strongly suggest exploring directories with Midnight-Commander: $ pkg install mc. All the following steps were performed through ssh-connection(s) from the terminal-emulator of a desktop computer. Main advantage: one can have multiple ssh-connections, for example one as root-CLI, a second as normal-user-CLI, a third with 'midnight-commander' to check the results of mounting.
In Magisk-Manager-Settings of the android-device find the "Namespace" Option and choose "Global namespace" or "Inherited namespace" (for the time being it is working with both, if I find some problems in the future I will edit the answer).
The executables rclone and fusermount MUST be in /system/bin AND have ownership system:shell. NOT root:root. It seems, when launched that way they break through the permissions-jungle. Other combinations do not work (for example ownerships changed but launched from another directory). But it is not straightforward how to copy them in /system/bin because it is generally mounted read-only. Supposing both files are already installed in /data/data/com.termux/files/usr/bin, we must (a) make /system/bin writable, (b) copy them (c) change ownerships and mod, (d) restore /system/bin as read-only.

In Termux:
$ su
# mount -o rw,remount /system
# cp /data/data/com.termux/files/usr/bin/rclone /system/bin/
# cp /data/data/com.termux/files/usr/bin/fusermount  /system/bin/
# chown system:shell /system/bin/rclone
# chmod 775 /system/bin/rclone
# chown system:shell /system/bin/fusermount
# chmod 775 /system/bin/fusermount
# mount -o ro,remount /system
# exit
$

Now we can launch rclone/fusermount through su -c "XXXX" again, but this time through their /system/bin/ copies. By the way, we do not need to pass $PATH variable any more. In my search I discovered the su --mount-master option as well.

su --mount-master -c "HOME=$HOME rclone -vvv mount sshfs-srv-rasp1: /storage/emulated/legacy/srv-rasp1 --allow-other"
As long as the above command is up and running, the mount-point /storage/emulated/legacy/srv-rasp1 is successfully linked to the sftp-share. The option "--allow-other" allows users other than root to have access. I could confirm access through a separate ssh-connection with 'midnight-commander'. But the moment the command is killed with Ctrl-c, the connection closes.

You can add the "--daemon" option to have it run in background. You can check anytime that rclone is still alive with pgrep rclone

In order to kill the connection gracefully: su -c "fusermount -u -z /storage/emulated/legacy/srv-rasp1". Note the -z ("lazy") option: it forces unmount even when someone is using the share. This command kills rclone in the background (check with pgrep).

What mount point to choose? My suggestion is, to create a mountpoint-directory in a place accessible from all apps. A good place is somewhere in internal-SD, typically /storage/emulated/0/XXXX or /storage/emulated/legacy/XXXX. You must check in your specific android variant where it lives. Beware, that that termux and su -c "XXXX" may see different things under /storage/emulated !. For example, on my Samsung Tab4:
$ ls /storage/emulated
0  legacy

but
$ su -c "ls /storage/emulated"
legacy

Interestingly, both /storage/emulated/0 and /storage/emulated/legacy refer to the same internal SD-Card. Since rclone command is executed through su -c "XXXX", I decided to use the common denominator "legacy". You have to check in your device the exact path through which su -c "XXXX" sees the internal SD-Card.

Until now, our sftp-share is accessible only within termux. Other apps (e.g. File-Explorer) don't have access. This has to do with ownerships/permission granted to the mount-point by rclone.
Check while rclone is running:
ls -l /storage/emulated/legacy/
drwxrwx--- 2 root sdcard_r 4096 Jan  1  2014 Alarms
drwxrwx--x 5 root sdcard_r 4096 Sep 22 17:47 Android
drwxrwx--- 2 root sdcard_r 4096 Jan  1  2014 DCIM
drwxrwx--- 3 root sdcard_r 4096 Oct  6 18:14 Documents
drwxrwx--- 3 root sdcard_r 4096 Oct  8 17:28 Download
...
drwxr-xr-x 1 root root        0 Oct  9 14:38 srv-rasp1

Ownership of mount-point srv-rasp1 is root:root. Changing the ownership out-of-connection has no effect: rclone grants again root:root. Even my rooted ES-Explorer could not see the content of srv-rasp1. The solution is to tweak the ownerships in rclone: --gid 9997 --dir-perms 0771 --file-perms 0660 --umask=0
The command so far:
su --mount-master -c "HOME=$HOME rclone -vvv mount sshfs-srv-rasp1: /storage/emulated/legacy/srv-rasp1 --gid 9997 --dir-perms 0771 --file-perms 0660 --umask=0 --allow-other --daemon"
Check ownerships/permissions again:
$ ls -l /storage/emulated/legacy
drwxrwx--- 2 root sdcard_r  4096 Jan  1  2014 Alarms
drwxrwx--x 5 root sdcard_r  4096 Sep 22 17:47 Android
drwxrwx--- 2 root sdcard_r  4096 Jan  1  2014 DCIM
drwxrwx--- 3 root sdcard_r  4096 Oct  6 18:14 Documents
drwxrwx--- 3 root sdcard_r  4096 Oct  8 17:28 Download
...
drwxrwx--x 1 root everybody    0 Oct  9 14:46 srv-rasp1

Voila. Mount-point srv-rasp1 was given group-ownership "everybody". ES-Explorer and all other apps can now access see the contents of srv-rasp1 mount.
Some comments, slightly unrelated to the question but still interesting:

rclone mounts as "root" directory by default not the actual root ("/") but the HOME directory ("/home/XXXX/") of the user who logs in the ssh/sftp server. In order to override this, I found a not-so-clear answer here: https://github.com/rclone/rclone/issues/4307. By experimenting, I discovered that rclone accepts the general syntax of Linux sshfs command: server:/path/to/mount/, with the remark that instead of "server" we give the configuration-name. So, if I want to mount srv-rasp1/mnt/ I simply have to type: ... rclone mount sshfs-srv-rasp1:/mnt /storage/emulated/legacy/srv-rasp1 .... The mount-point will be showing now the contents of srv-rasp1/mnt/
In his post MountainX adds some rclone options regarding vfs and cache stuff. This is beyond my knowledge but seems to achieve a seamless interaction between device <-> server, simultaneous writing/reading etc. I simply added them to the command line.

Below my final command:
su --mount-master -c "HOME=$HOME rclone -vvv mount sshfs-srv-rasp1:/mnt /storage/emulated/legacy/srv-rasp1 --gid 9997 --dir-perms 0771 --file-perms 0660 --umask=0 --cache-dir /storage/emulated/legacy/.cache --vfs-cache-mode full --vfs-cache-max-age 2h0m0s --vfs-cache-poll-interval 5m0s --allow-other --daemon"
In my setting, I didn't need:

to tweak anything regarding SELinux (see also the comment of MountainX in the above mentioned link).
to pass any Termux enviromental variable regarding libraries (e.g. LD_LIBRARY_PATH=$LD_LIBRARY_PATH). The executables rclone and fusermount are stand-alone, don't need any external libraries.
to tweak anything regarding namespaces (e.g. readlink or nsenter stuff), as Irfan Latif suggested (see How to mount rclone on Android? )

However, I can not exclude that the above mentioned tweaks could be needed in other settings. For this reason I mention them.


text:
How to tell Android Auto not to use several rows of pixels at the bottom of the screen (physical frame/bezel is smaller than the screen behind it)
I got an after-market Android Auto infotainment. The issue is its physical frame covers several rows of pixels at the bottom of the screen.
Is there a way I can override the device screen dimensions in some config file somewhere so the system does not know about the 10-20 rows of pixels at the bottom? (So I don't have to cut the plastic bezel, which will surely turn out horrible.)
"Hey Android, I know you think the screen size is 2000x1000, but it is actually only 2000x990."

likely solution: https://forum.xda-developers.com/t/android-resize-resolution-calibrate-screen-height-position.2728354/#post-83476275

duplicate of: https://android.stackexchange.com/q/115484/176353


text:
How can I hover over some text on a webpage in Opera for Android?
On this Timeline on Patents.SE, for example, hovering over the S shows it stands for "simultaneous dates" (see image below).
This works on Chrome desktop, but not on Opera mobile.

Does this answer your question? Is there a way to trigger hover behavior in the Chrome Beta browser?


text:
Can I transfer purchased apps+license info between devices via adb?
I've some desk phones that are basically a 7-ish-inch tablet with a handset hanging next to it. Since nobody uses the phone anymore, the only thing they've served for these days was as control surfaces for the place. For that I use a kiosked browser or the an app that connects to my automation controller.
The problem is is that these things have grown ancient and no longer have their certificate stores current enough to connect to anything encrypted. Among those things; the Play Store and even the local servers but the app is compatible, I know that because it was already installed in one of them that was factory restored by mistake.
Trying to revive an Android TV box recently, I learned how to push apps through adb wirelessly, I already connected to the reset phone and it doesn't seems like a big deal sideloading the app, the problem is the license information. Using this awesome file manager app, FX, that shows a lot of metadata about just about anything, I saw that the app requested under "UNGROUPED PERMISSIONS" (no idea) two that caught my attention: Google Play billing service and Play Install Referrer API. This sort of worries me because I bought this netdiag utility app a while back, that for it to remain licensed, I had to be signed up to Google's services which was beyond infuriating, I have a feeling there might be some of that in this app too. On the other hand, the other devices that weren't reset still have the app working and they were logged off, their certificates are old as well, and on top of that the phones are on a network without Internet access. This gives me a little hope. :)
Any suggestion?

How non-free apps from PlayStore check their license is up to the app developer. So don't check at all (if you have the APK you have the licensed version). Others use the Google recommended way to ask GooglePlayServices through API. Not sure how Google handles the situation if PlayServices can't phone home anymore, thus how long license information are cached.

I haven't seen them lately but remember when there were a ton of apps that, to license them, you purchased a companion app? I didn't like these because while some would hide themselves, some wouldn't which created more clutter in an already cluttered OS. NOW, I'm seeing their merits... :(


text:
restarting Phone and touch not working
The phone is behaving as if the power button is pressed forever (confirmed this by removing the power button - volume button strip), also the touch stopped working before this issue happened..(the os is booting after i remove the power button strip) is there any co-relation between both the issues ?? I gave the phone to a repair guy after it was water damaged.
my phone is redmi 6 pro (sakura)
thanks

Water can cause corrosion that continues to "attack" all the components unless it has been full cleaned. Most likely what you encounter are the late effects of the water damage.


text:
Prevent SMS from being classified as spam on Android
One-time-password SMS send during MFA by our system is classified by Android OS as spam. Is there anything that can be done to prevent that from happening? How does Android OS determine what SMS is spam?

Android (the OS) doesn't have internal spam detection. Instead, it's a feature incorporated into messaging apps, and the procedure to detect spam and remove it may vary.
For example:

Google Messages only provides reporting the message as not spam while the detection itself is based on machine learning models on the user's device, as per Your chats stay private with spam detection.

How spam detection works

Messages tries to detect suspected spam and hides it in the spam folder. If you get a suspected spam warning in Messages, you can let Google know if it’s spam or not by tapping “Report spam” or “Report not spam.”

How we protect your data

[...]
When Spam protection is on, Messages uses machine learning models that operate on your device to detect known spam patterns in your messages. The app analyzes these patterns to catch more spam and warn you sooner. Because spam is detected on-device, Messages warns you about spam even when you don’t have a data connection.
[...]

Truecaller relies on user's contribution but allows for manual appeal, as mentioned in their FAQ, What is spam?

Truecaller spam lists are created by our user community who choose to report unsolicited calls and SMS messages.
[...]
We acknowledge that mistakes can happen from time to time.  If you believe that your number has been mistakenly added to our spam list, for the EU, EEA, and Switzerland please [email to support.eu@truecaller.com]. For the rest of the world please [email to support@truecaller.com].

For other messaging apps, please search for their own help center, support, or policy.


text:
Can USB-C charger from laptop be used to charge USB-C Samsung phone?
I have a Samsung S8 phone, which has USB-C charging connector. I lost the original charger for my phone, but I have the original USB-C charger for my Huawei Matebook X Pro laptop. Is it possible to use this charger to charge the phone? Is the USB-C standard itself a guarantee that all the relevant characteristics will be equivalent?
Here is the electric info from the mobile phone charger (which has USB-A female output connector, and there was USB-A to USB-C cable which I lost):
OUTPUT: 5.0V = 2.0A, 10.0W
        9.0V = 1.67A, 15.0W

Here is the electric info from the laptop charger (which has USB-C female output connector):
OUTPUT: 5.0V = 2.0A, 10.0W
        9.0V = **2.0A**, **18.0W**
       12.0V = 2.0A, 24.0W
       15.0V = 3.0A, 45.0W
       20.0V = 3.25A, 65.0W

(There is a difference in ampere and wattage for the 9.0V, is that a problem or is it that the device will just take what it needs?)

Is the wattage really 18.0W? Wattage is Voltage x Ampere, so having the same V and A shouldn't produce a different W.

@AndrewT. sorry, there is a difference in amperes too! I have edited the post. Thank you very much!

According to Wikipedia Samsung S8 uses Qualcomm Quick Charge 2.0 for the higher voltage levels. When using a standard USB-C charger with the S8 the maximum is 5V * 2.5A = 12.5 Watt.
Most likely the laptop USB-C charger only supports USB Power Delivery and thus it will charge at maximum with 12.5 Watt.

... so, the conclusion is? :-)

@Tomas The conclusion is what I wrote in the last sentence. Expect to get 12.5 Watt @ 5V.

so, what is the answer to my question?

@Thomas I am sorry but the answer is clear and I have already written it: your phone does not support USB power delivery with more than 5Volt so it will not load with 9V because it only supports proprietary Qualcomm Quick Charge 2.0.


text:
No microphone (one way, out) when first initiating a call with someone (Redmi Note 9S)
I've been experiencing strange behaviour when making calls with my Redmi Note 9S. Whenever I try to call someone or pickup a call from someone, if it's the first time I've called them in an unknown amount of time (maybe a few hours or so), they aren't able to hear me. I have to end the call, and then redial for them to be able to hear me.
I can hear them without issue, and the problem persists regardless of whether I'm using the built-in mic or headphone speakers.
I'm on MIUI Global 12.5.6 with a prompt to update to MIUI 13, but this update seems to be broken as it fails whether it downloads the update itself or I download it manually and pass the update file into the update manager. It fails for seemingly inconsistent reasons, where either the download fails or it can't install the update. Maybe this could be the problem?


text:
find out what app/package uses sensor
on my device running AOSP something accesses a sensor of my phone continuously, preventing it from going into deep sleep and thus draining battery.
Logcat shows the pid, but that just links to android.hardware.sensors@2.1-service.multihal.odin (using adb and ps -p PID)
an entry in logcat looks like this:
10-10 21:33:18.615   869   954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:isWakeUpSensor()
10-10 21:33:18.617   869   954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:run() after post event here
10-10 21:33:18.817   869   954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:run() before post event here
10-10 21:33:18.817   869   954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:readEvents() enter
10-10 21:33:18.817   869   954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS: before polling
10-10 21:33:19.068   869   954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS: poll result timeout, continue for next
10-10 21:33:19.068   869   954 I android.hardware.sensors@2.1-service.multihal.odin: MIUS:readEvents() exit

Is there any way to find out what actually calls the sensor?
Thanks in advance!


text:
App ill installed
I have attempted to install an app from its apk file, but I failed. It was a game created with RENPY, turns out apps over ~2GB cannot be installed and the app I wanted to install was a bit more. At the time I thought nothing of it, simply something that happens.
Now however I noticed that my device has ~2GB of storage occupied that before were free... only, I cannot "see" them. My assumption is that the apk was installed, Android then checked it, found it couldn't work, sent the error message and then left the installed app. Said app doesn't appear in the list of all apps installed.
How do I remove it and free my storage space?


text:
Error when downloading software update
I have a galaxy s8+ (model number: SM-G955F). It is knox tripped but the build status is still official. But when trying to update to the April 1st 2021 software update it downloads all the way, does a restart but then says error and does not update. Is there a way to fix it or does the fact that knox is tripped mean I can no longer update security patches?

You could try to install the latest original firmware version using a PC running Odin/Heimdall. As the original firmware version is properly signed it should not change the state of your phone.

I Updated it by downloading the Samsung Smart Switch app. The app detected that it was on an older version and automatically downloaded the update


text:
Recover user data (photos videos) from a Poco X3 Pro forgotten pattern
So, I decided yesterday to change my pattern to something more complicated for terms of privacy. For my bad, I had such an awful day yesterday and I honestly don't remember the whole pattern. My fingerprint is also registered on the device, but it won't use it since I have my pattern set too. The related Google account and Mi account belong to me, and I have the users/passwords.
I've been taking pictures and videos for over a year without syncing in the cloud (dumb me, really). I've been trying to find my pattern by drawing what I remember for almost eight hours. I have an important amount of information that I care in my phone, like a concert I went with my brother and so on.
Initially my personal computer had the usb-debugging allowed and I tried some stuff with adb, like trying to pull my gesture.key from my device for trying a brute-force attack for my pattern, but I was unable get my key since my phone is not rooted. I also tried to pull all my personal data from adb but I needed to grant the permissions from my device, which I couldn't do.
I downloaded some of those trash-software that promise you to get away the pattern (by deleting the data, which is something that I don't want to do) and constantly updated my usb drivers it seems like in some point my PC got unauthorized for the usb debugging. So, some of the adb stuff that I could try is discarded now.
I also tried to boot in recovery mode (stock recovery) and activated the safe assistant mode, but the mi desktop software did not recognise my phone. I tried to boot some custom recovery, but I don't have my bootloader unlocked. I took my phone to different mobile care centers, and they told me that only way to get away the pattern is by deleting my data, which again is something that I don't want to happen.
For now, I'm trying different patterns that kind of come in mind and registering theme to keep track of those which are not the right ones.
I'm desperate and running out of ideas. I'm a developer with knowledge on C, C++, JavaScript, TypeScript, Python and some others, so any developer-approaches are welcome. Also, I'm willing to offer rewards or pay for overcoming this.
My Device is a Xiaomi Poco X3 Pro.

Most likely you will lose all data, but worth a try: flash eng firmware to get adb root access. if you are lucky your device comes with broken encryption and don't need pattern

This seems like the extreme solution I was looking for. Thank you so much for the info.

Xiaomi phones doesn't support you to transfer the data of a locked out device as it can be used by anyone if found a lost phone. You can try the forgot password option on the phone and change it through the mi account if it supports that. Or you can check if it's backed in the mi cloud using the same account and checking on your device. You can always contact the mi service centre's nearby for further informations.

I appreciate the answer, but I think it describes what I already know and tried.


text:
How to export data from clouded stepcounter app
I am trying to get to the data recorded by a step counter app from Leap Fitness Group:
https://play.google.com/store/apps/details?id=pedometer.steptracker.calorieburner.stepcounter
I have had this app for a rather long time and I'd like to acquire the data that it has been recording to analyze and visualize it with data analytics software myself. I don't know which file I need to export from the app folder, as all the files seem to have some day in 1981 as their last edit date. The app also syncs to my google (drive?) account, but I can't find the files in my Google Drive. I have searched the internetz for solutions, but my searches have returned zilch, and I don't know how to monitor an app on Android to see where it's writing to and in what format.
If you have ever tried to export your data from an app by Leap Fitness Group, I invite you to share your experiences.

Related: Where Android apps store data?

Unfortunately this app declares android:allowBackup="false" in it's manifest and it targets API 30, which means backup is completely disabled. It it does backup data to the cloud this is done in a custom way without help of Android OS. If the app does not provide an export function on it's own. I have seen that it makes use of Google Firebase which also provides a database function. Most likely the data is store there, but the firebase db doesn't belong to your Google account but to the app developer's (they can see all data).

@Robert unfortunately, I also got no answer from the app devs upon my request. This is rather bad...


text:
Can't connect the laptop to TV using wireless display (Chromecast works fine though)
I got a new TV with Google TV and Android 11.
I am able to cast tabs in Chrome to it from my PC. But when I try to connect to the TV using the wireless display feature , it
doesn't show anything.

What should I do?

The Windows Wireless Display function requires a display that supports Miracast or WiGig. Are you sure your TV supports one of those standards?

@Robert How do I check miracast compatiblity?

Also how to enable it?

Have you checked the technical specifications of your TV? As you don't tell us the exact me del name and manufacturer you have to check it yourself.

@Robert Miracast is not mentioned in it. But since it's android TV, why can't I just enable it myself? I tried an app. It said "3rd parties app are not allowed to install miracast since android 8.0". Why can't I just override this setting and force enable it?

There's a guide to enable Miracast (WiFi Direct) on XDA Forum (need root). Whether it's possible or working, is another question.

@AndrewT. I am not sure if just changing a property is enough on recent Android versions. A newer guide from 2019 for Android 9 mentions that a lot of system libraries have to replaced as well. So I assume Miracast is no longer included in Android so you can not just "enable it".


text:
Can't see soundbar volume level on my TV
I have a Sony HT-S20R sound system. It's connected to my TV using HDMI ARC. My TV is the latest (QLED with support for HDMI ARC and Google TV as OS).
But when I increase the volume using the TV remote, it changes the volume but doesn't show the current volume level which is very annoying.
Any solution for it? Both support S/PDIF Optical. Is it better and can solve the problem?


text:
Do receipt apps like receipt hog automatically sync your online receipts in the background when Wi-fi is on, or do you need to open the app?
Even with background activity enabled, do these apps usually need to be opened to sync online receipts, or is it possible for the apps to do so in the background?

It's totally at the app developer's discretion. And they can change the behavior with every release of the app.

Thank you, I would assume it's not going to automatically sync as long as I don't allow background usage.


text:
Trojan downloaded
Not sure this is the best place to ask but I'll give it a shot...
My son clicked a link in a spam message on my phone which downloaded
Android/trojan.downloader.agent
Instantly kaspersky and malwarebytes spotted the trojan and quarantined
My question is...
Should this mean that the virus has been adequately dealt with or is there a chance that it may still remain on the system?

The virus has been dealt with.


text:
Do Samsung finger scanners constantly use battery if you keep your finger on the sensor without needing to scan anything?
I'm using the Samsung A32 5G.
It has a finger sensor that allows the phone to be unlocked, I'm wondering if the phone is on and you constantly keep your finger on that sensor, will it continue to try to pick up a fingerprint and use up battery, or will it only use battery when it is actively asking for a fingerprint to be scanned?
Do you not have to worry about leaving your fingerprint randomly on the sensor which could waste battery?

As far as I know a fingerprint sensor never draws much power even when active. Additionally in my understanding a fingerprint sensor is like a camera sensor - it is always "ready to work" (finger on sensor, light on camera sensor) but unless instructed by the software to do its job it remains in sleep mode (inactive).

I tried adb logcat on Samsung Galaxy M21 and it doesn't output anything when I put my finger on the fingerprint scanner while there's nothing requested for it, unlike when unlocking the phone.

@Robert Thank you! In that case it shouldn't draw any power unless the phone actually requests a scan. I'm assuming that sleep mode does not use any power whatsoever.


text:
How do I boot an Android S8 that is out of memory
I have an Android S8 that is out of memory and will not start completely.
I've already switched over to a new phone for daily use.
It will start and boot to the main screen for under a minute, then goes into a boot loop.
There are text message threads that I need for business and legal reasons, and I need them exactly as they are.  When I synced (inexact term) my new S21, I only got the receiver side of the messages, my side was not restored.


text:
Pixel 6 can't connect to n48 (5g SA)
TL;DR
I have a Google Pixel 6 and I am able to see my private PLMN but attempting to connect will show instant text, "couldn't connect". No logs in my 5g core, and no registration attempt.
Issue

GSM Arena shows that Pixel 6 can do n48
I've verified that the Pixel 6 can decode SIB1 in n48 and see the test network name "Open5GCore"
Attempt to connect provides no logs in the core using the following
radio imp files (Android still using version 12.1)

12.1.0 (SQ3A.220705.003.A3, Jul 2022, Verizon, Verizon MVNOs)
12.1.0 (SQ3A.220705.004, Jul 2022)
13.0.0 (TP1A.220905.004, Sep 2022)

I'm starting to think that the phone has a carrier block at the software level that I don't have the knowledge to verify.
In the US, there aren't any carriers who use n48, maybe some flag hasn't been set true yet via OTA images?
FCC branded it for private use, maybe Google intentionally blocks the capability?
I'm writing this late so I'll upload my logcat in the morning.

Also cross-posted on XDA Forum: https://forum.xda-developers.com/t/pixel-6-cant-connect-to-n48-5g-sa.4501163/


text:
How do I upgrade an Android phone's version from my pc
Ok so I have Android 7.0 and I'm trying to upgrade it to Android 8 or 9 because some apps require that as the minimum version.
The problem now is I feel like my phone has stopped receiving updates from the manufacturer so I want to know if it is possible to manually upgrade it through ADB (or something) with my laptop.
When I check the phone's software updater it says there are no upgrades and it's the latest version but we both know that isn't true, so I'm trying to forcefully upgrade it.
My phone is T-Mobile and the model is 5049W
Edit: It doesn't even seem like there's a custom ROM/recovery for this particular model of T-Mobile.

According to quick research, this is T-Mobile Revvl (Alcatel 5049W) and it only gets Android 7.0 (no official update). Thus, the only way to upgrade is to find custom ROM that has newer version and for this specific model, if available... or if it's even possible to flash image/unlock the bootloader. Note that unlike PC, there's no generic ROM that can be flashed on any Android device.

There's a hint on XDA Forum in 2018 and in 2022 about unlocking the bootloader.

@AndrewT. how would I know if the custom ROM supports my phone model?

Also would updating it make me lose all the files on my phone?

@BlindSpots it doesn't even seem like there's a custom ROM for T-Mobile. :(

Unlocked Bootloader
I rooted early on, and then didn't for a long time.  Being a computer power user, it is hard to wrap my head around all the restrictions I have to endure on my miniature computer phone.  The effort to root, for the average person, is generally not worth it, however there is often one critical thing that pushes someone down that road.
Extending the life of a device by installing a custom ROM is one of those.  I was able to do that for a friend on a Moto-Z XT1650 who couldn't afford a new phone.  The well supported Lineage OS officially supported that device up to version 17.1 (Android 10).
In order to go down this path, you need a lot of motivation. Also, certain types of people are able to navigate the information and process it much better than others as there is a lot of noise and extracting accurate and relevant information is challenging.  The lion's share of quality info comes from developers and IT enthusiasts and without that background it can be hard to follow even if you can identify the pearls.
Also, your device needs to be a good fit. Some devices are easier than others to unlock.  Within a device model, there are variants by country and often by Telco that can have minor differences that impact ease of rooting if not eliminating it entirely (practically speaking).  For example, I had a Samsung Galaxy S8 and, while S8's with the Exynos chipset could have their bootloaders unlocked, the variant sold to by my Telco had a Snapdragon chipset, which could not.  To my knowledge no one ever figured out how to unlock that particular bootloader though many tried as the device was widely circulated.  Eventually, there was an exploit released that worked around the bootloader by injected another ROM during the boot process.  This was better than nothing but not ideal as the layering was resource intensive during use and created some peculiarities.
To do well, it is best to be part of a large group of similar users.  As many shared features as possible: common device, common OS, common locale, etc.  Ideally you want solutions to exist before you even realize you have a problem.
To this end, prior to buying my next phone, I started investigating what hardware was best suited to a white label Android experience, what devices could have their bootloaders unlocked, and what devices were officially supported by alternate OS' such as Lineage OS.
This was a few years ago and while I shortlisted some Google phones, I ultimately settled on the OnePlus 7 Pro (GM1917).  I have had a multi-year honeymoon.  The specs of the device are impressive and what I originally bought for the ability to run alternate OS' has been very well maintained by the manufacturer.  It originally shipped with OxygenOS 9 (Android 9) and is currently running OxygenOS 12 (Android 12).
Should 'you' do it?
I don't necessarily encourage you to do what I am doing, rather I am sharing that it can work if one is willing to invest untold hours over months and years researching with many Depends moments endnote along the way and more to come.  Just because you can do it, doesn't mean you should.  People DIY a lot of things without understanding the ongoing overhead  required to maintain them. There are many variables in play.  Outside of your specific device and your skillset, what works one day won't necessarily work the next, and every OS upgrade is a potential problem. Over the years,  I have introduced as many problems as I have solved.
I and lots of others started off without a clue, ignored everyone's dire warnings, slogged through it, and am happy I did. For every success story there are other users with bricked devices.
My Recommendations
Your phone was released over 5 years ago, and doesn't seem to be a popular model amongst enthusiasts.  The writing is on the wall and even if you manage to extend its life the process of getting there will render it largely unusable temporarily (potentially permanently). Troubleshooting aside, installing a custom ROM will necessitate wiping your device.  Therefore I recommend:

buy another used device that is reasonably priced, has better hardware, and an updated OS.
ideally buy from a user who has cared for since new, rather than a bulk online seller who refurbishes.
if interested, with a new device in hand, pursue extending the life of your old device.

Extending the Life
This forum is not the place to continue this particular journey. You will need to familiarize yourself with sites that better cater to this, and are structured as discussion forums.
A great example is XDA Developers
Founded in 2003 by developers.  Originally focused on issues and features for Windows Mobile its focus shifted to Android in 2010.  It is a great resource for info and links for custom ROMs and help rooting.
Some links to get you started:
General Development > Android Development and Hacking >
Android Q&A, Help & Troubleshooting:

T-Mobile Revvl (Alcatel 5049w)
T-mobile revvl 4 root

Good luck!

Depends Moment: Period of extreme stress where one risks soiling oneself.


text:
Stop google from saving my photos/images online
Today I got one of those "A year ago today..." notifications from google where it showed a photo I took a year ago today and It was really weird because I considered that photo (and in general all the photos I take, as well as screenshots, etc) to be private and I don't want them stored in the f***ing cloud.
I've looked into the "Manage your google account" options but couldn'd find a way to shut this cloud backup or whatever is called down.
Can someone tell me how to keep the photos/images/screenshots/etc off the cluod and just keep them on my phone?

According to Google Photos Help:

Open the Google Photos app;
Sign in to your account, if you aren't already signed in;
Tap your account profile photo or initial in the top right corner;
Select Photos settings;
Select Back up & sync.
Tap Back up & sync to turn off.


text:
Browser without video playback
I am trying to avoid any kind of sexual stimulation and want to block video content on any browser. I was looking for browsers which provide this functionality but could not find one. These are the browsers which I found

Atlas Browser
Lightning Browser
No image Browser
Habit Browser

All these browsers block only images in the browser. But I need a specific one which can block videos only. Finally, I found one such that blocks both images and videos but this functionality cannot be separated. The browser is Purity - Safe Porn less Browser.
I want to know if this functionality is separatable? Can we block images and videos separately? This browser needs subscription ; so does anyone know about any such browser that does not support flash or video files.
Important question : Can we practically block images and videos separately or are they correlated?

You could use Firefox and go into the about:config and disable all the video codecs so that videos will not play.  As for images, just use an extension/add-on like "Image Block X" for example.

@Archerbob...Thanks. Indeed a great solution. Do you know any way to make these changes permanent. Like deleting that codec settings or some sort of other way.

@Archerbob ...what needs to be disabled to block downloads also?

I found a solution with help of Archerbob's comment. We can disable all video codecs and permanently lock this setting using various blockers available on Playstore such as BlockerX and Blockerhero. I added about:config to the blocked keywords and now I am totally blocked out of this setting.
This blocking codec thing did not work well with youtube but somehow solved my problem. Anybody looking for a solution can give it a try.

I assume your a parent, trying to prevent a child from accessing certain content on the web.  Unfortunately, there's no way to really achieve that but with supervision, because anyone with a modicum of computing knowledge, even a child, can get around and circumvent any measures taken to block or block access to such content... this was the way it was even when I was going to school.

I dont know any browsers, but if your phone is rooted and have magisk installed you could install energized protection a magisk module to completely block sexual contents on your device, so even if you search for it on any browser in your phone no results will showing up..
P.s i have tested this method with chrome browser and it works, and should work with any other major browser too.

@YomaAroriode....No such filter can block porn completely. I have rich experience dealing with such apps and modules. So my question stays the same.

Energized module uses hosts based blocking. This cannot provide the granular filtering OP is seeking. Consider telegraph.co.uk or timesofindia.com. Even though they operate as "media/news" website, the unsolicited and erotically charged suggestions post, images and videos they display makes these websites as "Adult only / 18+ only"! Imagine OP being following up a tech/political news article link and being exposed to sexually stimulating media (as a suggestion between the article or at the end of it) they want to avoid.

oh okay, thanks for the info it is noted...

I sort of wonder if what the OP really needs is a Firewall

Have you tried the "Text Mode" extension from the Google Play store for Chrome, blocks images, videos and flash content.


text:
Cannot stop hotspot from loading which prevents wifi from auto loading
I have an Android head unit, which has hot spot details inserted, which I can't delete or remove with factory reset. I want to have my wifi to auto load on boot, but the hot spot prevents this from happening.
What can I do to disable the hot spot permanently or have it turn off after it starts and auto start my head units wifi.
It's a Chinese HU, Android 10
Thanks

Can you load an app from Play Store or sideload it? If yes, try an automation app such as MacroDroid or Tasker or Automate and use any of them to wait for boot completion, detect hostspot is active, then enable Wifi (which would turn off hotpost automatically).

Play Store works fine, I'll give them a go.Which would be the easiest to use?

Try Macrodroid.


text:
Route mobile hotspot traffic through VPN on a rooted device
I'm running an unlocked and rooted Samsung Galaxy Note 20 Ultra 5G (SM-N986U1) with an Android 12 custom ROM on the most recent security patch. The goal is that any devices that connect to my mobile hotspot have access to machines on my home network. I mainly would like to do this in order to use the Air Link feature of Oculus remotely without forwarding a different port each time I connect - I tried side-loading WireGuard on my Quest Two, when I connect it just locks the whole OS up, so that's not an option.
The local IP range of devices connected via hotspot is 192.168.36.0/24. I guess the hotspot interface is called swlan
I tried
iptables -t filter -F FORWARD
iptables -t nat -F POSTROUTING
iptables -t filter -I FORWARD -j ACCEPT
iptables -t nat -I POSTROUTING -j MASQUERADE
ip rule add from 192.168.36.0/24 lookup 61
ip route add default dev tun0 scope link table 61
ip route add 192.168.36.0/24 dev swlan0 scope link table 61
ip route add broadcast 255.255.255.255

But it returns
/vpnroute.sh                                          <
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: No such device

When both tun0 and swlan0 are active - so I'm not sure what it means "no such device".
I do have root access but I am not at all familiar with routing traffic on Linux/Android or iptables or anything of that nature so I am in need of help. If someone could hook me up with some commands I can just paste into an adb shell to accomplish this that would be much appreciated.


text:
Settings keeps showing notifications
Everytime I click my settings on my home screen it keeps showing this:

On-body detection
Keep your device unlocked while it's on you

M
Add another email account Set up your personal or work email

How do I turn this off. I have tried everything.

Looks like common notifications from a device has just been set up recently? Could you mention the device model and Android version?


text:
Preferred Network Mode not changing using ADB on Samsung S21 (Android 12)
I am trying to change the preferred network of android using ADB on Samsung S21 (Android 12) through the following commands:
adb shell settings put global preferred_network_mode 9
adb shell settings put global preferred_network_mode1 9
adb shell stop ril-daemon
adb shell start ril-daemon
adb shell settings put global airplane_mode_on 1
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
adb shell sleep 5;
adb shell settings put global airplane_mode_on 0
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false

adb reboot

But it's not updating in the phone. The phone is still in WCDMA only mode.

Again, as I wrote on SO, you should provide more details why you think these commands should work on an S21. Where did you get them from?

Have you observed the value for preferred_network_mode that is getting saved into settings_global.xml when you change your preferred network mode using Settings app? Use that, instead of the ones you are using. A value for  preferred_network_mode is likely a part of internal API for your OS. It is not expected to remain same between devices or between OS versions. Also, in addition to what Robert asked, tell us the target mode you want to switch to. The Android version (and region) you are using might also be relevant here.

@Firelord I use these commands on a Samsung S9 (Android 10) and it works. On Samsung S21 I have the Android 12 version for Romania.
When I change the preferred network mode from the Settings app, the value for preferred_network_mode is saved into settings_global.xml and the value for LTE, GSM/WCDMA is 9.
I want to change the network from WCDMA to LTE, GSM/WCDMA.

You could try dialing *#*#4636#*#* to change it. When you dial this number, without pressing dial, should bring up a menu page titled "Testing". Then click on "Phone Information" and at the bottom there should be a dropdown box titled "Set preferred network type", select the dropdown box and select the cellular type you wish.
NOT to be used with ADB (Android Debug Bridge) as this "testing" page is an internal settings page unreachable by ADB without going through a lot of other things.
Fell free to comment and edit this post as I am relatively new.

How do dial without dialling ?  Nothing happens for me on S9 or Note20

Put in the number and don't click the call button.

I tried again, it does not work on my devices.  Have you mistyped it ?  Or does it require some other option to be enabled first ?  Either way, please update your answer.

https://www.youtube.com/watch?v=lpqHc0n4Qv0


text:
How to switch to "work profile" on phone running Android 10
How to switch to Work Profile on Samsung Galaxy Note 9 running Android 10?
All the guides I find online are related to tablets and/or they point to menus that are not available on the official Android 10 running on my phone.

Did you add an account with a work-related email address from the company? (For more information about Work Profile: What is a work profile?

No, I have not. Can I use the work profile not linking it to any account?
If this is not possible, can I just activate the work profile with another random email address I create?


text:
Cannot delete some custom user certificates on Android 10
I have added user certificates, but Android do not let me delete most of them.
How did I add the certificates:

Open the setting drop down menu
Go to Biometrics and Security -> Other Security settings -> Install from Device Storage
Enter the pin
Type a name for the certificate
Choose if it is used for VPN and apps or Wi-Fi

1- If I add it as a Wi-Fi cert, then I can see it in the list from the User certificates menu, but it is not present in the list from View Security certificates. This kind of certificate do not let me delete the certificate later.
2- If I add it as a VPN and apps cert, then I see it both in the list from the User certificates menu, and also in the list from the menu View security certificates, at the tab USER. Only from this tab I can delete the certificate. I cannot delete from the menu User certificates.
In both scenarios the CA certificate has no effect. The certificate has been tested in other different machines, working fine, and it has the flag CA=TRUE.
Then, my questions are:
a- How to delete the VPN and apps certificates I've ended up adding many duplicates
b- How to get the CA certificate to properly work? I am testing it with Firefox, Firefox Focus, and Chrome.
Android version 10, running on Samsung Galaxy note 9.


text:
Rollout of new scanners copy/image
We have purchased 30 android devices with scanners to use in our warehouses to process stock(scanning UPCs, etc).  We have setup one unit and just want to clone/image the other units with the setup.  Nothing fancy; using standard apps; just need the apps and passwords and network setup copied/imaged to the other units for quick setup.  Amazingly I can't find something like this.  Sites have mentioned "rooted" - which the vendor said not to do.  And others are suggesting MDM software which is nice; but way more than what I'm looking for.  Isn't there a simple answer?  Thanks

Thanks Robert,  For the backup & restore; where do a run this from;  Would I connect the android to a Window 11 machine and run these commands from CMD? If yes in summary; plug device 1; enable then backup; then device 2 enable then restore?  Why do you say "another problem" - hopefully only because it is a step?  Data Trans via USB - not an option because it is Android 10 device.  Tried the cloud backup/restore; but it didn't setup completely.  Thanks

Android mass device enrollment requires special devices enabled for that.
Regular end user devices only have three possibilities:
Backup & Restore
Backup one device using adb backup -apk -all -f backup.ab and restore it to the other devices using adb restore backup.ab. Note that a lot of apps disallow backup which means their app data can not be cloned only the empty app. Another problem is that you first have to enable adb on each device before you can restore the backup.
Data transfer via USB cable
When an Android device is "fresh" (e.g. after a factory reset) the first time dialog comes up. In that initialization progress you can connect two Android phones using an USB cable and directly transfer data from one device to a second. Note that only devices running Android 12+ will allow to transfer app data of apps that disallow app backup. Also this method may not copy apps that were side-loaded to the source app.
Restore from Cloud Backup
If there is a Google account on the first device and cloud backup is enabled you can try to use this account to restore apps and data from Google cloud on each device. As you have to enter user credentials every time this still a bit of work for multiple devices...

You can install and use TWRP Recovery without rooting the device, but unlocking the bootloader will delete your data.  So backup your data first and save it to a PC.  Then create your backup for your apps, et cetera with TWRP Recovery and copy that to a PC.  Then just restore the recovery file on each device and copy the data. https://forum.xda-developers.com/t/how-to-backup-and-restore-using-twrp-recovery-copy-to-pc-and-restore-to-any-touchpad.3892047/

@Archerbob an unlocked bootloader is not root that is correct, but it is already 70% of the path for getting root. An unlocked bootloader can be considered as a security risk.

That's why one uses the appropriate fastboot commands for their device to re-lock the bootloader afterwards.  After doing the recovery, reboot into fastboot mode and issue the command "fastboot oem lock" or fastboot flashing lock.  You may need to install ADB and fastboot.

@Archerbob Relocking is an option (if it is available, not sure if really all device allow to relock the bootloader). But you really have to know what you are doing. If you made a mistake and modified accidentally the system partition the device will not boot anymore after relocking. It might even end up in bricking the device you can't re-unlock the bootloader. Also certain devices may permanently disable features upon unlocking the bootloader (e.g. Samsung Knox). These features are not reactivated by relocking the bootloader.

Thanks Robert, For the backup & restore; where do a run this from; Would I connect the android to a Window 11 machine and run these commands from CMD? If yes in summary; plug device 1; enable then backup; then device 2 enable then restore? Why do you say "another problem" - hopefully only because it is a step? Data Trans via USB - not an option because it is Android 10 device. Tried the cloud backup/restore; but it didn't setup completely. Thanks –

@KitteryTradingPostC6000 You need an PC with adb installed (e.g. from Android SDK but there are unofficial downloads available that only contains adb). And you need to enable developer menu on each device and then in it Android Debug Bridge option.


text:
Does having more widgets/things on screen when the screen is off or on use up more battery than if there was less?
Let's say you had a timer widget that was counting down time. If you turn off the screen, would the widget be taking up more battery than if it wasn't on screen and was just in the background counting down time?
Generally, does having things going on in the main screen with either the screen on or off use up more battery, or does it not make a difference?

Static icons or widgets on home screen don't make any difference, at least not noticeable. But a widget can be dynamic - performing periodic updates. It depends on the app developer. They may opt to update the widget when screen is off, doing some background work which affects battery life. But this behavior is not limited to widgets only. Any app can wake up the device and perform a necessary (from the developer's perspective) task. Or they may wait for the device to wake up.

@IrfanLatif Thanks! I would like to ask about this specifically according to the clock/timer app which has a small widget/pop up showing the timer.
This means the timer would probably update in real time, so having the screen off but the widget on-screen might use up a bit more battery than if it was just in the background, but I'm not sure.

To be sure you need to observe the behavior of the app on device, or ask the developer.

@IrfanLatif Understandable, though in most cases I'll assume having those things on screen will take up just a tad bit more battery even with the screen off.


text:
Why is an OTG not detected when a micro SD card is already inserted in the device?
I have tried this on both Realme XT running Android 11 and Samsung Galaxy Tab S7+ running Android 12.
Whenever there's a micro SD card inserted and I attach a USB drive/SD card from my camera via OTG, it is not detected. But if I remove the micro SD card and try again with the OTG, it is detected.
I have realised that a micro SD card and another SD card/usb drive is not detected simultaneously on both my devices.
Am I missing something or is this a shortcoming of Android?

Mast likely the manufacturer has configured Micro SD-card and OTG device to use the same mount point and thus only one of both works.

That makes sense

I just had the same issue, and I can tell you this is definitively not an Android issue, as I have devices that work fine, for instance, a Fire HD 10 running Android 9.
I think the issue is hardware related, as I have seen this problem with other devices, for instance an in-car entertainment system (Honda vehicle), where it tells you that you can't access the SD card while the USB port is in use, so I need to unplug my phone to use the SD card.
BTW, I just confirmed with Samsung support that in fact, you can't use both the SD card slot and the USB (otg) port at the same time.

Thanks for the answer. I thought I was doing something wrong but now I know.


text:
No music quality option in Clubhouse for Android
I know the Clubhouse have the music playing feature in the new version of it, but I don't have the music quality option in my Clubhouse app. Based of this post, it must have the below icons:

How to enable and use Music Mode in Clubhouse?
To enable the new feature, users can open Clubhouse and once they are in a room, they can navigate to the options by tapping on the three-dot menu on the top-right. Look for the 'Audio Quality' option here and subsequently, Choose 'Music' amongst the various options.

But my room options are like below:

My phone is Xiaomi Note 9A on Android 10, as you can see below:

And its permission are :

Also I use dual app option in my Xiaomi phone, so I have two Clubhouse app at my cellphone.
So if possible, I want to know why I don't have music options in my Clubhouse rooms.

As explained in the article and Clubhouse blog article, the Music Mode is currently only available on iOS.

As was the case with spatial audio, Music Mode will roll out on iOS first with Android as a fast follow.

This is strengthen with the remark on Clubhouse Knowledge Center.

What is music mode?
Note: Music mode is currently only available on iOS.


text:
movetoios: whatsapp deleted all other files?
I have recently bought a second-hand iphone. Coming from a Samsung Galaxy A6, I wanted to transfer my whatsapp database to my new phone. After some attempts, I finally succeeded and transferred everything except movies. I assumed that these files would still be on my A6 but when I looked in the whatsapp media directory, I could not find what I was looking for.
I do not know how the program works or if this question should be in the apple exchange site but I hope to find out what happens when you use the MovetoiOS tool with the files you did not select for transfer and where I should be able to find these files. Obviously, just running whatsapp on old A6 won't work as whatsapp is now configured on my iphone.

Are you sure you didn't accidentally delete the movie files, perhaps from 3rd-party app like Google Photos or other gallery/file manager apps?

i'm absolutely sure I did not do that.

I'm now just wondering: when I remove all databases and reinstall whatsapp on my A6 again: it will download an old backup from my google drive. The movies should be in there too I guess. But I'm affraid I might cause trouble on my iPhone. But extracting the backup in my google drive might be a solution?


text:
hide profile picture for google voice messages
I have migrated my primary phone number to a google voice number. It caused some surprise to see my profile picture appear next to my message on someone else's phone. This number is used in a wide array of contexts and would like it to be as anonymous as possible. Is there a way to uncouple google voice VoIP activity from google profile information?


text:
How to disable split-screen when opening the app from Edge panels on Samsung Android 12?
I have a Samsung A53 running with Android 12 and OneUI 4.1.
When I open an application from the Edge panels, it always opens in split-screen / multi-window, if the app has a split-screen layout (such as Google Maps or WhatsApp).
I find this behaviour intensely annoying, but cannot find a way around it - searching the settings yielded a toggle in Advanced - Labs to enable this for all apps, but this is obviously the exact opposite of what I'm trying to achieve.
An online article mentioned an app named "Samsung multiwindow toggle" where this can be disabled, however I haven't been able to find it in the Play Store. I've also looked through similar questions here, but they were mostly quite old and related to different software versions, with settings that I don't have.
So, what can be done to get rid of this "feature"?

Have you tried the Samsung AppStore? It usually carries all Samsung-specific apps its developers push to devices. Unless this is a third-party Samsung app? https://www.samsung.com/us/apps/

The settings can be changed from the Edge panels' settings directly (not Android settings):

Open Edge panels by swiping it
Press the hamburger menu (3 horizontal bars)
Select "Edit"
Press the kebab menu (3 vertical dots)
There are 2 options for "Open in split screen view"

Touch and hold
Tap


text:
Mock location that is find from the app
I usually used a Fake GPS APP in order to smart-work from different location and not only from my home.
Now the APP that I use in order to login to my work, I don't know how,
but it understand that I use a Fake GPS APP, so I can't use it anymore.
Is there possibility to solve this problem please ?
Thanks all in advance
Denis

Any app can find out that the location isMock. You need a framework mod like Xposed to hide this from apps.

Thanks a lot for your answer... I'll study this Xposed in order to understand more and then I'll ask some other help. Thanks again.


text:
Samsung A42 5g, when i try to open an APK file it says i need to sign in to save file, where do i sign in?
I am trying to download an APK file, when I try to open it I get a message at the end to say I need to sign in before I can save the file, where do I sign in?

What browser are you using? What is the exact message? Could you post a screenshot of it?

Are you sure the message is "sign in" and not "signed" (the APK has to be signed otherwise installation is not possible).


text:
Fastboot vs. Adb sideload vs. Custom Recovery?
I have a device that is an A/B device. I want to flash a custom rom I built from scratch. It's been a while for me and Android has changed a lot.

Xda says to always use a custom recovery like TWRP.
Google says to use fastboot flashall
Some other sites say you can do adb sideload in the normal recovery

What is the difference between all these?

Please always include the manufacturer and model name of your phone. Just "an A/B device" is very unspecific. Is the device bootloader unlocked? What Google says is only valid for Google phones (not Android in general). There are Android devices that doesn't have bootloader with fastboot at all.

It's a unknown chinese device. The bootlocker is unlockable. It has fastboot and fully treble compliant


text:
com.sec.android.app.camerasaver is using the camera in the background on Android 12

Samsung phone
Android 12
One UI core 4.1

Whenever I reboot my phone, the camera indicator shows up in the status bar, there’s no camera-related app open in the foreground and I have not enabled background permission to any app (except for system apps which have the option greyed out)
When I tap the camera indicator, it shows me that com.sec.android.app.camerasaver is using the camera. It happens for an instant. Camera permission for this app is “only while using the app”.
What is this package and is this a security issue?

There's a similar thread on Samsung Community (Spanish) mentioning that it might be related to the Samsung's built-in Camera system app (com.sec.android.app.camera).

@AndrewT. It is indeed a Samsung system app but camera being accessed in background when the permission is only for foreground looks like a shady practice to me

@raptorAcrylyc most of the background restrictions are only for third party user apps, not for system / framework apps. The latter have usually a plethora of privileges a normal user can't even think of.

On the other hand, com.sec.android.app.camerasaver (not yet identified) might be a different app than com.sec.android.app.camera (Samsung Camera) since the pop-up should have shown "Being used by Camera" instead of the raw package name. Also, after decompiling the APK for Samsung Camera, there's no camerasaver package inside the app. Thus, the permission for the Camera app should be irrelevant.


text:
Stuck on Boot Screen - LightningFastRom - LineageOS - 17.1
I recently installed LightningFastRom 17.1, a ROM based off LineageOS 17.1, for my Galaxy Tab E 9.6 (SM-T560NU-gtelwifiue). For GApps, I used OpenGApps (arm, 10.0, micro). I modified the .zip file using this video. When I first booted it, it worked perfectly, then I flashed SuperSU. I waited an entire day and it still didn't boot. Does anyone know how to get back to recovery while on the boot screen, I decided to flash a new ROM.

Why have you use SuperSU instead of Magisk?

I used SuperSU before I started using Magisk. I decided to try SuperSU again. I have a Galaxy Grand Prime (SM-G530, gprimelte) and I flashed Magisk on that. That's also stuck on boot. It uses LineageOS 16.0.


text:
Android Auto deletes Bluetooth connection
Since I started using Android Auto in my Mercedes-Benz, it has been very annoying that the Android Auto app on my Samsung Galaxy S21 frequently deletes the Bluetooth connection to the car. When the Bluetooth connection to the car is deleted, you get no audio in the car speakers on in- or outgoing phone calls. This is a major drawback of Android Auto.
Searching on the internet reveals that this is a common problem for Android Auto users. Many people propose solutions like clearing the cache or data for the app, clearing cache or data of Bluetooth, or deleting the Bluetooth profile of your phone on the car etc. But none of the proposed solutions are permanent.
Can anyone come up with a permanent solution instead of canceling Android Auto?

I have found a permanent solution to the problem:
Never plug the USB cable into your Android phone before turning on the ignition of your car and the Bluetooth connection between your car and your phone has been established. When the Bluetooth connection has been established, you can plug the USB cable into your phone.
Following this procedure, Android Auto never deletes the Bluetooth connection between your car and your phone.


text:
Avatar on YouTube Vanced is not clickable
I am using YouTube Vanced (not because of removed ads, but because of old UI, and also it does not force you to update, I could use the original YouTube, but because of last I don't) version 15.05.54. The problem is that on my Android tablet (Android 6.0), the avatars in comments are clickable and I can go to someone's channel, but using exactly the same on my Android phone (Xiaomi Redmi 7A, Android 10) I can't.
What's the problem? I remember, that earlier it was working, but now it doesn't. Maybe my Android version is too high?


text:
Android interfacing with phone with a broken screen
Screen is 100% dead black.
What are your options? What can you do from the PC with a phone with a broken screen?
I can find plethora of software promising you to do all kind of magic, but half of them most likely malware, adware, bloatware:
https://www.coolmuster.com/android/top-3-android-repair-software.html
Good news is I had USB debugging enabled before the screen broke.
The phone works perfectly tho. I can hear the alarms, email notifications, notification sounds from other apps, the PC recognize it.
Is there a software which makes it possible to show the screen of the phone on the PC when connected through USB cable???

Is this a phone or tablet, if its a tablet you may have a micro hdmi port that you can go out to an external monitor just by plugging it in.  If its a phone I don't really know what functionality you have unless you state the brand and model.

Samsung A41 no hdmi just USB-C.

Do you have a Samsung Multi-port Adapter?  The cost 30 to 100 dollars depending on where you purchase from, or a generic off aliexpress for $15

You plug a HDMI cable into the adapter

If you have a working adb connection you can use scrcpy to mirror the phone screen to a connected PC or Mac.
Scrcpy is an open source tool. The only problem that can arise is that typical scrcpy distributions contain an older version of adb which then conflicts with an already installed version.
But besides of that scrcpy is a perfect tool for phones with dead screen.

Device unauthorized man :( I can use the screen and even without seeing I know where the Allow button is because I can mtp off pictures the same way but it doesn't work in your case it keep saying it's unauthorized.


text:
Stuck on the boot screen with locked bootloader - Pixel 6
I was trying to flash a custom ROM on my phone (Pixel 6) and something went wrong. i was following the instructions on screen and the last one was to lock the bootloader which I did. Now the phone seems to be stuck in the boot loop (I keep getting the google screen) when I start. On the boot screen I am unable to use the recovery or rescue mode, they bring me back to the boot screen. I'm very concerned about what to do now. Can someone please help!

Do you have a PC?
You may be able to get into the phone via ADB, that you can install to your PC from the Android SDK Platform Tools ZIP file for Windows, Linux, et cetera
There is a guide on the XDA forum to help you.
1st on the list is to get to recovery via ADB via "adb reboot recovery"