text:
Android camera access
I mean if when one app is using camera in background , is using another camera app at the same time possible??
Some people say it depends on how the applications is coded.
Also the app “sound assistant” makes 2 music apps using speaker at the same time.
And there are apps that use front and back camera simultaneously.
Then, access to camera by 2apps at the sametime can be possible??
Any way thanks for reading and I want to know if the phone is rooted or an app has root permission , there would be a change in answer:)
I wonder in rooted android phone, this can be possbile .
Btw i am talking in android version 5.0-6.0 which was released 2015-2016.


text:
Does using two SIM cards in a smartphone drain the battery more?
Does using two SIM cards in a smartphone drain the battery more? If yes, what does the phone do differently to cause a higher energy consumption?
If take out one SIM card, is it true that the phone still transmit microwaves towards cell towers for this free slot?
Does phone trasmit more EM per unit of time when use two SIM cards?

Dual SIM smartphones only have one antenna, so they have to switch between SIM1 and SIM2. If one SIM slot is empty all actions related to that slot are simply. As the phone already scans all cellular towers nearby an empty SIM2 slot should not cause any battery usage. Only if a SIM card is inserted switching between the networks/cell towers should have cause a slightly more battery usage as the time sender/receiver unit is active increases.

@Robert So we can say in unit of time two sim phone transmit more microwaves toward cell towers?

The phone has to keep connection with two towers and if you move around it also have to perform a hand-over to the next tower twice that often, so yes there should be a slightly higher battery consumption.

source: Stack Exchange

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

sort: votes


text:
Rooting android phone
In rooted android , apps can have root permission so they can do everything.
I want to know if an app perform factory reset of command rm-rf,
Will it reset everything including system partition?
Cuz in rooted phone, we can change system partition like controlling battery and making click sound disappear when taking photo etc.
i want to know whether factory resest and rm-rf can wipe modified system partion too.

The question has already been asked here using a different account: https://android.stackexchange.com/questions/249264/can-rm-rf-reset-rooting-phone-s-system-partition The other question is better formulated so this one can be closed/deleted.

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


text:
Can virus (spy) apps install custom firmware (custom ROM) in a rooted Android phone?
I heard spy apps can root Android phones. If the phone is rooted and spy apps are installed, can spy apps install a custom ROM in that Android phone?

Theoretically if your phone has a vulnerability and an app uses that vulnerability to gain root it could install a custom ROM. But custom ROMs have to be device specific and you first would have to unlock the bootloader which causes all user data to be erased. That should attract the attention of even the stupidest user and thus is a bad idea for a malware which wants to stay undetected...

Malware with enough privileges (manually granted or gained through a vulnerability) can do anything which includes burning your device. But installing custom ROM doesn't make much sense from a hacker's perspective. They are very goal-oriented and rarely do purposeless things.

I thought spy apps and can have remote controll so, isnt it possible that they unlock the bootloader by themsleves ?


text:
How to modify the IP packet destination IP address in Android?
Here, I can type this in Termux
su
iptables -I OUTPUT -d 1.2.3.4 -j REJECT
iptables-save

to reject the packet so as to forbid the Application to visit a certain host. It works well.
However, now I want to make the Application thinks it is visiting 1.2.3.4 but it is visiting 5.6.7.8 instead. which means change the IP packet's destination IP address from 1.2.3.4 to 5.6.7.8
I tried many tutorials but ended up in a failure. Not working at all, the Application still visits 1.2.3.4.
Can anyone help me with this? By using iptables or any other method. My Android device is rooted with Magisk installed.

If the application uses host/dns names, you could edit your hosts file or use a local dns server to resolve those to different IP addresses

You can do that using a destination NAT (DNAT), see here
Specifically, in your example you would do one of:
iptables -t nat -I OUTPUT -d 1.2.3.4 -j DNAT --to-destination 5.6.7.8
Of course, you would want the return packets to make the inverse translation, so it looks like the reply is coming from 1.2.3.4 again, so you need also on of these:
iptables -t nat -I INPUT -s 5.6.7.8 -j SNAT --to-source 1.2.3.4
(In the original answer I had PREROUTING/POSTROUTING instead of OUTPUT/INPUT, but that is when you are doing that in a router. For locally generated packets, OUTPUT/INPUT should be the correct one).


text:
When you're looking at your google activity and it says viewed next to it, does that mean you actually viewed that topic in your cards?
When you're looking at your google activity in your iPhone. Next to some of my cards it says viewed but I didn't actually view that topic. So what does that mean?

Welcome to Android Enthusiasts Stack Exchange. Since the question mentioned "iPhone", this doesn't look like a question about Android, and thus it's migrated to our sister site for Apple products, [apple.se].


text:
Turn on/off usb gadgets via adb?
Is it possible to enable USB gadgets functions via ADB? Especially in a Release build device.
i can use setprop but in Release build devices it wont work. Also how do i use the gadgets after enabling it since /dev is read only.

What do you mean by "USB gadgets functions"? As far as I know this is not an official Android feature.

As mentioned, it's unclear what "USB gadgets functions" mean here. Did you mean enabling/disabling the USB functionality of an Android device? Or did you mean turning on/off the connected device? Otherwise, could you provide a concrete example? Also, for those who are not familiar with this, what did you mean by setprop and /dev?

Not possible with ADB but with root you can configure Android's USB Gadget Functions through sysfs on old devices (/sys/class/android_usb/) or configfs on new devices (/config/usb_gadget/). To entirely disable USB Gadget functionality of Linux kernel you need to rebuild the kernel. System properties (setprop) only control how Android framework should configure different gadget functions including ADB and MTP.

Thanks a lot. I was wondering since i saw few functins with a file explorer.

one last question, any way/work-around to use usb gadgets without root? api works in non root ?or perhaps porting? (github.com/linux-usb-gadgets)


text:
How can I stop some calendar entries from disappearing
For some reason. most of the appointments I make for my massage therapist, disappear. But only if I  make them at the clinic.
When I am there, I enter the next appointment.I then check to see if it is in the calendar. And it always is. However, every one of them (except once) disappear a few days later.
I am not deleting them. even accidentally because all other entries are always good.
Is there a way I  can stop this from happening?
Note - the mobile reception there is dicey.  I have Samsung Note 20 and Business Calendar

The question is tagged with Google Calendar, but there's also an app named "Business Calendar", which one did you mean?

I was under the impression that Business Calendar is just an interface to Google Calendar.  And there was any other tag I could use,  While I am entering it on Business Calendar on my mobile, I am checking it on my desktop in Google Calendar.


text:
Battery low triggering by ringtones and voice in Android phones
Is it technically feasible to have this feature of Battery low triggering by ringtones and voice to the end user say when battery has reached level of 10% or 5% in android os phone devices?
This feature if feasible is also applicable to ios apple phone devices.

I have not sees such a feature implemented in the Android OS itself, may be there is a manufacturer which has modified Android in such a way. The only alternative would be to use an app that monitors battery state and plays the sound if a certain level is reached. However because of battery optimizations such an app may not work reliable, as the monitoring code is only executed infrequently and if the battery usage is high automatisch shutdown because of low battery may come first before the notification had a chance to trigger and play the sound.

Related: Macrodroid: I want a repeating alert when battery is less than/over than x%. I think there's another similar question answered with a 3rd-party app, but I couldn't find it now.

Thanks Robert and Andrew. Can we call this feature as a battery low level alarm trigger in android os and apple ios phones? There could be technical challenges but this can be achieved?


text:
Fastboot bootloop after formating
device: Xiaomi Redmi 8a (olivelite), unlocked bootloader
i got that problem after this actions:
in twrp i formated
+)Dalvik cache
+)internal storage
+)Data
+)Cache
then i pressed "formate data" in twrp
then i pressed reboot to recovery button(i thought that was needed to apply changes)

now i have only acces to fastboot, adb doesnt work
power + volume buttons doesnt work
phone always boots to fastboot
after i got that problem i tried this:

https://new.c.mi.com/global/miuidownload/detail/guide/1
this is the solution, i downloaded global miui rom files for fastboot install method, started flash_all.sh script, and it worked


text:
How to suggest changes to Android Gboard built-in keyboard layouts?
The built-in Nepali keyboard layout in Android Gboard is missing several characters and is generally awkward to use.
Is there a way to suggest changes to it?

GBoard is a closed source app by Google, so modifying it is not that simple.
In my opinion the best chance is to create a new issue in the Google Issue Tracker.


text:
Contact won't ring through vibrate mode when set as "Allow during Do not disturb"
As the title says. I have a contact who will call with 1 of 24 different phone numbers. I have set that contact as Allow during Do not disturb in the sound and vibrate settings. When they call it does not ring through but instead vibrates only.
I am on a Samsung S22 updated to Android 13 recently. (worst decision of my life, I have never had so many issues with an Android before 13.)

When you switch to Vibrate mode, does the Do Not Disturb mode also turn on? Otherwise, I'm afraid that both modes and their behaviors are unrelated to each other.

I know for a fact that prior to Android 13 I could get a call to ring through on Vibrate mode. I am fairly certain that this was accomplished by allowing it through DnD.


text:
What's this app icon?

Hi I hope anyone can help figure out this app icon on the notification bar. I can't for the life of me know what it is. lol

If you have Firefox than you've a tab opened in Private Browsing in it. Close Private Browsing and the icon should go away. See https://support.mozilla.org/en-US/kb/private-browsing-firefox-android

Thank you so much!!!


text:
Where can I find the log of bluetooth enable and disable
Problem
I have Samsung Note 20 and a Samsung Watch.  The watch wakes me up every morning between 4:42 and 4:43 am. This is independent of the time zone. It happens in NZ and Malaysia.  It happens even though I have "Do Not Disturb" on a time schedule.
I notice that the phone even disconnects from the car, while I am still sitting in the car (with it on).  It also disconnects from the car and watch when the phone is showing on an advert on an app. This happens often, maybe it's related to the ad that's being played.
Information
The notification is Phone disconnected. I have this notification on, to remind me if I  forget my phone.
Assumption
I  assume that bluetooth has been turned off or disabled.
Question
Where can I find the logs on bluetooth enable and disable, so that I can discover what process is responsible?

Run adb shell dumpsys bluetooth_manager command.

You need to turn on the "Enable Bluetooth HCI Snoop Log" option in the "Developer Settings" of your device.
The log Bluetooth log file is usually stored here:
/sdcard/btsnoop_hci.log
or here:
/data/misc/bluetooth/logs/btsnoop_hci.log

Hi. I don't have this option in my Android 10 device. Could you mention the device name and the Android version on which you tried this answer?

On Pixel 3a (Android 9). You can go to System > Advanced > "Developer options" > "Enable Bluetooth HCI Snoop Log". After enabling the setting, logs are stored here /data/misc/bluetooth/logs.
If you cannot find "Developer options", you need to enable them. You can enable them by tapping "Build number" in settings multiple times (https://developer.android.com/studio/debug/dev-options).

I removed the tick because the file is no longer accessible directly.  I am still trying methods to access it.

My device was rooted so thats why I am able to access the files. You try these commands to get the logs:

adb bugreport report.
unzip report.zip.
After extracting the report.zip, the bluetooth logs can be found in FS/data/misc/bluetooth/logs folder. You can open the log file using a tool like WireShark.

I am confused, is this command on windows running adb ?  And I have plus-oned your reply as it does have merit.

adb is a tool to communicate between a PC and an Android device. You are right, you need to run adb from a PC running windows(or other supported OS like Linux) while your mobile device is connected to the PC via USB cable.

Alternative is to generate bugreport directly from the phone. To genreate bugreport from the phone, you can go to "Developer options" (assuming you enabled them by following by comment above) and select "Take bug report". You will see the progress in the notification and when its finsihed you can tap the notification to upload the bugreport to a drive or email so you can access it.


text:
Why doesn't my Motorola G 5g 2022 camera focus
When I try taking a video, my camera does not focus on the subject. Although it is perfectly fine when taking pictures. Why is this and is it able to be fixed?

This may depend on the Camera app. Have you tried other 3rd-party Camera apps?


text:
How to flash something if the data partition is encrypted?
Problem
The data on my phone is encrypted and I do not know how to flash something without decrypting it by using Disable Force Encryption.
When the data partition is decrypted I can just copy a file to be flashed to data, boot to recovery and flash it via recovery. But if the data partition is encrypted I cannot find/flash that file in recovery

Disable Force Encryption cannot 'decrypt' your phone (see answer). TWRP / OrangeFox / Redwolf can (if maintainer has implemented right)

TWRP (Recommended)
TWRP allows you to temporarily decrypt your data by using your phone's password
Why is this solution recommended?
Flashing incidents
I was trying to uninstall NikGapps by renaming .zip file to UnInstall.zip as it is recommended, but for some reasons OrangeFox was doing something under the hood and NikGapps was not understanding that the zip file has uninstall.zip name and it must uninstall Gapps instead of installing. When I tried the same on TWRP everything was working. The same story was with Magisk uninstalling where I have to rename it to uninstall.zip too
Decryption
It is much harder to use your phone when you cannot go to recovery and flash something without a PC or Sd-Card
Magisk flash from OrangeFox (Inaccurate, possibly my fault)
When I tried the Add magisk feature from OrangeFox instead of flashing it manually I got bootloop. Possibly I have done something wrong and it is my fault. Please write in the comments if it is working fine and I will delete this story with magisk

Sd-Card
If you move your files to Sd-Card and connect Sd-Card to your phone you will be able to flash the files that are located on in

Adb sideload

Connect your phone to a PC with installed adb.
How or where to install adb
Reboot to recovery and enable adb sideload feature there.
How to open recovery? Disable your phone and hold Power button and Volume Down button. If it does not work find how to open recovery on your phone
Execute adb sideload PATH_TO_FLASHABLE_FILE in your terminal/command line. Do not forget to change PATH_TO_FLASHABLE_FILE to your real path.
How to open terminal
See logs in your recovery and wait until it is successfully complete
Congratulations. Your file is flashed without decrypting the data partition

@Robert, you said You simply flash the system partition and hope that the new system can also decrypt the data partition., why do you think that is the thing I am doing? I was flashing files that I cannot just put in my storage and flash them via twrp so I showed how to do it by using adb sideload

"Your file is flashed on your encrypted ROM without decrypting it" this read like the ROM is encrypted which is not the case, the data partition is encrypted.

First, let's clarify the terms 'decrypted' and 'unencrypted':

When data on the phone is encrypted, one must (online) decrypt it with the proper PIN/pattern/password in order to access files.
When encryption is disabled, data remains unencrypted. Only possible after formatting, (offline) access to plain files is possible.

The latter can be achieved with Disable Force Encryption but requires formatting (data loss). You don't need to decrypt userdata in TWRP recovery, you can just copy files to RAM or MicroSD Card via adb.
$ adb push ./no-verity-opt-encrypt-6.1.zip /tmp
$ adb shell twrp install /tmp/no-verity-opt-encrypt-6.1.zip

Note: this zip won't change the encryption state. In order to become unencrypted, factory reset or formatting is required (WARNING: all data lost!)
$ adb shell twrp format data

Wow! I have found out that encrypted data can be decrypted yesterday when installed TeamWin Recovery instead of OrangeFox. Thank you for information
Your solution with adb shell twrp install is excellent. I did not know that I can do such things if the data is encrypted

source https://twrp.me/faq/openrecoveryscript.html


text:
Compared to APK file, are apps installed from AAB (Android App Bundle) impacting their performance?
I'm just a normal Android user. My phone is Samsung Galaxy S10 (Qualcomm S855 variant). I'm satisfied with this phone, but I always felt that the Android version of some Apps are laggy when using, like: Twitter, YouTube, Google Maps, and even the Google Play Store. You will feel the scrolling stutter and lag in many scene. Although it's three years old phone, I don't think it doesn't have enough performance to running these apps. I've tested on another phones (Galaxy Note10) and the situation is same.  So I think the application itself has optimization problems, or the latest version has bug.
I have tried Clear App Cache and Re-install again from Play Store. The problem is remains, so I turn off autoupdate in Play Store and install previous version through APK (Download from APK Mirror), all the problems are solved, it's working well and feel smooth when you scrolling or do any operation, and then I tried install the latest version of APK, it's still not have any problem, working perfectly too.
I know that the apps installed from Google Play Store are distributed in the Android App Bundle (AAB) format. So here is the question: will the AAB make Android apps laggy?

Android apps are uploaded to PlayStore using AAB but the AAB is never distributed to the device. Instead for each app a a set of APK files (sometimes called split APK) is downloaded by the device and installed together as one app. Was the version you installed a one-APK file or a set of APK files (e.g. in APKS or XAPK format)?

Thank your reply, i only installed one APK file (Variant:APK Arch:universal dpi:nodpi)both of them

Then you can test your hypothesis yourself. Instead of using an universal APK install the APKS variant of the same version and check if it behaves differently.

The version from the Play Store may have been corrupted after multiple updates, which can happen to any app. Android can (depending on Android version, device manufacturer) keep install data after uninstalling an app, and if you reinstall soon enough it just uses that existing data. Restarting the device cleans out uninstalled apps.

@Robert  i tried, doesn't feel any different but can be clearly felt is that App installed form Play Store is unsmooth than i manuel install


text:
Can I enable some kind of "precision pen mode" on my android tablets?
The Background
I want to annotate PDFs on my tablet, which I tried several apps for. All of them had the same problem: my fingers are too big to write smallish characters on the screen.
Telling this to a friend, she gave me a pen of hers (so unfortunately I don't know the brand), it is an active one (needs to be switched on) and works well when drawing longer lines. However, the problem with drawing small letters or digits remained, they mostly wouldn't show up, or only some of the strokes.
To debug this, I installed an app called "mobile screen and display tools" which can detect display touches and displays a crosshair where it detects a touch. This revealed some very annoying behaviour:

Touching the screen with the pen, then moving the pen in a small circle (5 pixels?) around the original touch point will not update the touch position.
Touching the screen, moving the pen by a cm or two, then doing the same circular motion will update the touch position.

So it seems to me that the display is perfectly able to detect single pixel movements, but it decides to ignore them directly after a touch. It won't ignore them after a decisive pen move.
Which explains the problem I had with drawing smallish letters/digits: larger strokes will be recognized - small ones won't. I assume this is a "usability feature" on android so people using their finger (inadvertantly wiggling the finger a bit) won't trigger a "move" when they want to trigger a "touch".
This happens on a new BlackView Tab 10 Pro tablet (Android 11), an older Lenovo Yoga Yt-X703L tablet (Android 7.1.1) and a Huawei P20 phone with EMUI 12, so it doesn't seem to be related to the hardware, vendor, or android version.
The question
Is there a way to tell android devices "I'm using a pen; if I move it after touching the display, even by just one pixel, treat that as a move and not as an accidential finger wriggle"?

I would assume that your main problem is that all your devices don't have pen support (or the pen is the wrong for the device like for the Yoga=, instead your pen simulates a finger, but the logic for fingers and pens is different. Fingers can dither a bit so it is usually a good idea to suppress minor movements to not accidentally start a drag-and-drop operation. I would try to get the original pen that is designed for the Lenovo Yoga and try if it works better.

Possibly related/dupe: Why won't a fine-tip stylus work on my phones/tablet?

@AndrewT. This does not seem to be that kind of problem; both tablets and the phone pick up the stylus very well at the first touch, and after the stylus has been moved more than 10 pixels. It's just the first few pixels after touching that seem to get ignored.

@GuntramBlohm, did you end up finding a solution? I have the same problem and it's quite annoying that the touchscreen/Android is able to detect fine movement but ignores them. I can see why this behavior is desirable for fingers, but an option to disable it for active pens seems such an obvious feature....

@Steven I didn't, I ended up buying a different tablet with explicit stylus support.

@GuntramBlohm, thanks!


text:
How to view these no file extension files exist in the android>data>xyz app>files folder?
I have installed an app from play store, which contains pdf files. When I click on download button the app download them in such way that these files are only able to be opened in that app. (Like how youtube saved videos offline)
I cannot share these files to my PC. When I went to Android/Data/XYZAPP/Files, I get to see these files. But I cannot open them directly. They have no file extension (e.g. 234828173)
I tried to open them with bin file viewer. They contains a lot of binary or hex code.
Those are the pdf files (because if I download 2 pdf there shows 2 files if I download +1 there gets a +1 file, except them there are no files in that specific app data folder), how can I open them like I open other normal pdf files.
Thanks

Ask the developer of the app what obfuscation or encryption they are using on the saved files.

The files can be obfuscated, encrypted, compressed and so on. Unless it is a very common file format (e.g. identifiable using Linux file command) you can only get the file format by decrypting and interpreting the decompiled code.


text:
Google Assistant needs Wi-Fi network to work? Google Pixel 6
Occasionally (not all the time), when invoking the Google Assistant on my Pixel 6 phone, I get the exact message "For that, you'll have to turn on Wi-Fi and connect to a network."

Online, I have zero results for that message when searching for it, which seems plain weird. I've tried giving google assistant any permissions it might not have had out of the box, alas, the problem persists. A reboot usually does fix it though. Still, a nuisance. Cellular data is always on, and I live in San Diego.

Your data is not enabled. (dunno why, but i see cell signal but not data carrier)

Check your APN and Cell Data settings. (it might be as simple as a switch)

Otherwise go into developer settings (tap build number 4 times)
Then set "data always on" (this is just useful to have selected)
 Troubleshooting steps: For data Connectivity
1.) There is a "data enabled" in your network settings. Its a switch, or a checkbox.
2.) APNs. If that doesnt work, find your APN settings and match them to your carrier.

for me, I google for "T-Mobile APN settings"
if its greyed out, try adding a new APN and manually set it up. You will be able to tick the bubble after you hit [SAVE] in the ... menu.

If that fails, then you need to flash your device to a different carrier.
(But thats a pixel, so its probably just data switch disabled. Cause even bad simcards/inactive would still show 1x/hsp*/3g/lte/4/5g etc)

Thanks, I now see what you mean. Very strange, however it appears it often shows cell reception but no speed or carrier info, see attached screenshot from just now with cell data working fine (messages coming in etc) but once again, assistant presenting me with the same error message... I DO run a firewall, netguard.

Data always on in dev options had already been set to on. Can't really find apn settings other than the default apn 'fast.t-mobile.com setting but I can't edit or make changes. I could add another apn, but not sure which one, or if that would help. In looking around online, 'fast.t-mobile.com' seems to be the go-to apn for pixel phones on T-mobile.

https://imgur.com/a/Uu5ver9


text:
Disable location icon in status bar for single app
I'm using /e/OS 15 (Android 12, a privacy-focused fork of LineageOS) on my Fairphone 4.
After upgrading to Android 12, one of the changes I noticed is that every couple of seconds, the location icon appears in the status bar and stays there for a moment as a blue dot.
I know that is related to exactly one app that regularly checks for my location and Android wants to inform me about this.
Although I consider this useful in most cases, for this app it is pretty annoying.
Is there any way to disable the notification only for this app in the status bar? I already discovered the setting to completely hide the location notification, but that's not what I am looking for.
Thanks in advance!

You may get a more focused audience by posting in the comminity forum of /e/ os: https://community.e.foundation/

Isn't it a pure Android feature?

AFAIR there are status bar icons for camera and microphone access in plain Android, but not for location.

That's a valuable information, thx! So I'll try it in the /e/OS forum

Here the related question: https://community.e.foundation/t/disable-location-icon-in-status-bar-for-single-app/45377

Workaround can be found here: https://android.stackexchange.com/questions/248964/disable-location-indicator-on-network-access-permanently-on-lineageos-android-12


text:
Can you create a profile on an Android phone without rooting?
Can you create a profile on an Android phone without rooting? Since the phone I want can't be rooted, is there a way you can create a separate profile like almost any tablet lets you do?

You mean user profiles? See this comment.

Like a tablet, sorry for the late reply, any tablet mainly lets you make a new user account, is that possible with a phone, like with Samsung there is Knox and external apps like Parallel Space but it only works where you would be in one workspace.


text:
How to force all messages to MMS?
I cannot send SMS on my Samsung Galaxy S22 Ultra.  I can receive SMS and I can send/receive MMS.
I've spent hours on the phone with tech support from my carrier and Samsung.  I've sent the phone in for warranty repairs as well but still cannot send an SMS.  I've tried several 3rd-party messaging apps and they all have the same issue.
Is there any way to force a messaging app to send all texts through MMS? Any help is appreciated as I don't want to send the phone in again.

Many messaging apps have an option to send long SMS messages as MMS or as a bunch of short SMS messages in a series.  A "long" SMS message is defined as more than 160 7-bit characters, 140 8-bit characters, or 70 16-bit characters.
It's not ideal, but in any of these apps (and there are scores of them), all you have to do is enable the "send as MMS" option and then ensure each message exceeds that limit.  You can pad the end of shorter messages with happy faces (our world always needs more happy faces! ), or perhaps just boring blank spaces if they don't get truncated by the app/carrier.


text:
Launch app in splitscreen mode from command line
How to launch activity in splitscreen mode with the am command in Android terminal or Termux?
Say I want to launch the "Material Files" explorer, I run:
am start -n me.zhanghai.android.files/.filelist.FileListActivity

but it launches in fullscreen.
How to make it splitscreen? Also, it would be best if I can customize launching on top/bottom half.


text:
Can I change the source code of a basic Android application?
I already know how to build applications using Android Studio.
I would like to know if there is a way to access and modify the source code of an Android application. For instance, can I add some features in the Calculator modifying its source code ?

Is this question better suited for Stack Overflow ?

Last time I checked, Android standard apps that are part of AOSP usually don't use Android Studio for building, instead they are built by the scripts that also build the operating system. Thus getting and building them is not that simple.


text:
How find large files with QDirStat on Android 11 with root?
I want to list all files in my phones /data volume using QDirStat, or something simular.
On my phone, I've used DiskUsage (com.google.android.diskusage) before, but I find the visualization lacking.
I want to apply the steps described in this guide with my phone as the remote server:
https://github.com/shundhammer/qdirstat/blob/master/doc/QDirStat-for-Servers.md
Technical details

OnePlus phone running Android 11
Root via Magisk
SSH server with key-files
GNU/Linux desktop PC
Working SFTP mount of my phones / (FS root) on my  PC

Goals

Create a reading on-device using the QDirStat server script

Run the script (folder & file indexer) on-device
Don't index from the PC via an SFTP mount
The script is headless: it does not contain a GUI

Index every file & folder in /data (as root)
Import the index-dump into QDirStat on my PC

Analyze the index on PC
Manually delete some files using Nautilus' SFTP

Questions

The script seems to require Perl

How can Perl be installed on Android?
If it's installed in Termux, can it index everything?
What would be the (most-)proper way of doing this be?

Can I run QDirStat on an ARM arch?

Will cross-compilation be required?
Will cross-compiling the Qt framework be required?
How do I provide the required libs for QDirStat?

Thanks for reading

Compiling QDirStat for ARM is not the problem, the main problem is that there is no X-Window system so you have to port the application to Android: https://doc.qt.io/qt-6/porting-to-android.html Unless you have experience with QT I don't think this will be easy.

Thanks for responding @Robert; please note that the script is headless (edited the question to clear that up), meaning it doesn't have a GUI. (Quote: QDirStat can be used for headless (no X server, no X libs) servers) from here

Run the qdirstat-cache-writer script with root on Termux. Forget about running QT application on Android. For those who are comfortable with CLI, du + sort is great. For Android GUI lovers, SD Maid is a good app for storage analysis and cleaning.


text:
How to add a Google Docs heading shortcut to home screen?
Google Docs shortcuts that lead you directly to a particular heading of the document instead of just the beginning of the document.


text:
New battery results in strange behavior
I was having the impression that my phone (Pixel 4) battery is already low on capacity (and a battery monitor calculated a capacity of 61%) so I ordered a new one and followed a tutorial on how to replace it. It was rather easy.
Now with the new battery I have some strange behavior that I can't really solve but it is reproducible since days:
When my phone reaches around 40-45% while using, it shuts off. It doesn't shut down like it does when it is really on low battery, it simply dies. It also dies in a way that I can't trigger the booting process. I have to connect it to a cable, wait for the % to show up on the screen and then I am able to boot it.
When it is finally up and running, I have often a completely different percentage shown in the top. Sometimes 50%+ (which means when it hits 40-45% again, it shuts off again). Sometimes (like right now) it showed 45% before booting and when booting was finished, it showed 18%.
So now I thought I need to calibrate it (and as I have read here, it is even only a myth). Anyway I tried it nonetheless. Drained it until it never even showed the boot logo again, then charged it until 100% while still being off. Issue persisted. I drained it again and charged it fully while being on. Still the same "shut off" around 40%.
One additional thing I noticed: My device lives like an hour at 1% capacity (no extreme power saving active!) before it shuts down, so I really have the feeling that the percentage is wrong/off.
Is the new battery broken? Would it help for me to make a full reset of my phone? Any ideas what I could try?

There are similar questions on this site but none having an affirmative way to fix. Consensus is "change the battery" and take extra care that you are doing it correctly without messing up the circuitry (not saying you did that but as a precaution) // I don't think a factory reset will help unless you repeat this experiment in safe mode and you get contrary results (battery works as expected)

Hm... yeah I think it is the only reasonable explanation. The battery must have some kind of defect. I will try and order a new one.

I have now a new battery since 4 days and it behaves now again like it should. No shutdowns in-between anymore and no unreasonable jumps in percentages.
Only strange thing I observed was directly after the replacement. The new battery was stuck on 31% until the battery died but once attached to charging, it behaved like it should, so I assume my system was simply confused with the new one at first :)


text:
Need to lock Genymotion SaaS appliance to run only 1 app in restricted user by default and prevent install 3rd party apps and access to settings
(solved)
I need to run an app in Genymotion that is used for data entry and upload of the entered data into 3rd party sites. The logins to 3rd party sites are stored in this application (probably encrypted). The application will store multiple logins for my different customers of who need to have the data uploaded into the 3rd party sites. The data into the app will then be entered by other people to whom I outsource the data entry.
So I created Genymotion appliance, installed the app and in this application I entered logins for sites such as ebay. I am looking for suggestions on what can I do to secure the appliance to prevent the data being copied out from it.
I want to prevent the person to whom I outsource data entry to be able to install and load 3rd party other apps, modify system settings, install other apps, copy the system directory, copy the login and password information saved by the application.
Let's assume the worst possible case here when application is well written but the passwords mentioned above (for the ecommerce sites like ebay) is saved in plain text in this application in the internal application directory. What I know about the application is it doesn't support access to SD Card, only can read and write data to the internal memory.
What can I do in Gennymotion to improve the security of my appliance. Genymotion virtual machines are rooted. So I looked at following steps already:

Setup restricted user on Android
Set restriction for the restricted user to only be able to use the one application. Disable anything else (including disabled browser, email, youtube etc..)
Try to get the restricted user loading on boot of Android. When Android restarts, however, it doesn't allow choice to login into the restricted user or the admin user, sort of like a Windows or MacOS login menu. To get the appliance to always start with restricted user by default, I need to add a script and the scripted will need to start using Tasker or MacroDroid.

However, how do I prevent the user from installing 3rd party apps? Is it good enough to disable all user apps (except that one used for data entry) from the restricted user? Is there any other way the user could abuse the access to the virtual appliance and load something there? Are there any system android apps I need to disable for the restricted user to prevent the user to be able to do anything bad with it?
The application used for data entry can not download any application or data, however, I believe it does use the webview because it loads sites like ebay and fills the forms on those sites. It only interacts with select websites only like Ebay to enter data into Ebay forms..
Is there anything I can do to secure Genymotion appliance any other than what I already mentioned. I would like to send the link to the Genymotion SaaS Android to people who will do data entry for me into Ebay and other sites. So I need to make sure the virtual appliance is secured as much as possible from tinkering with it. I need to make sure somebody doesn't get hand on the stored login details.
Just to clarify for the login credentials:
I am not sure how the user credentials are stored and I will find it out, however, for now, I go from the worst case scenario when the credentials are stored in plain text in the app settings. The user name and password is stored in the application with exception for Ebay because the many other sites do not have API key or any webservices interface, so the application would access those sites simply via a webview, and when it goes to login there it will do that by filling in the login information on the login form (simulates keystrokes). The user name and password is entered into the login form for the site. That's why the login info is stored in the application itself.
This question is not about how to secure the specific application I will be using, but how to secure the actual whole Android appliance from tinkering with.
I am aware I will the risks here, just want to do as much due diligence as I can.
Update:
Done some digging so this cannot be done. Neither Genymobile or Appetize or other online Android emulators can offer fine-tuning in terms of user access. The closest is Genymobile because at least allows adding and removing access of users to individual appliances. That is however not resolving the issue with Android and in particular rooted Android, since all online emulators run rooted Android and I am not sure how that is secured against potentially malicious actors who receive access link.
The only easy way to solve it, kind of in a mickey-mousy way is to install Kiosk mode application. That kiosk app will run at every boot and it only shows the specific application. There is always risk of course the malicious user would do something to crash the application and the Kiosk app, but if the application is not a web browser or email client or similar it should be relatively safe.
There are plenty of Kiosk mode apps for Android but none of them is free (don't try to look, no chance to find one), the cheapest cost about 7 USD one-time purchase, the more expensive ones cost 20 per month per device or more and come with remote control etc... Not cheap but kiosk mode apps are almost exlusively used by businesses so that's why there is lack of free apps.
Anyhow I believe this is the closest as I could get to deal with this.

Sources for Genymotion restricted user setup ..
How to set restricted user as default user on reboot?
https://docs.genymotion.com/paas/10_Using_root_access/

Genymotion is an emulator that is installed on  local PC. It is based on VirtualBox so you have an Open Source emulator running on a PC the user may have admin/root permissions. Thus no matter what you do the user can modify everything and every limitation you implement can by bypassed. If you want to limit something you need to run everything on a server where you are the only one who has root access. But in general using an app in n emulator for data entering is a bad idea. better develop a website based on Python or PHP (server side execution).

Thanks for response. Sorry I didn't explain perhaps clearly. 1.  I am not using Genymotion desktop, but their SaaS product, which is server hosted on Genymotion server for which I pay subscription by minute. 2. I am already using Airtable for manual data entry collection and then it goes to the Android App. From there the Android app is entering data into Ebay/Amazon etc.  So did you mean develop website to enter data into Amazon/Ebay?

Resolved by installing Kiosk mode app on Android. Details in the original post.

Looks like you found a solution by yourself, which is great! Since this site is a Q&A site, consider posting it as a proper answer instead since it's encouraged by the site, thanks!


text:
How to change the voice of Google Assistant when configured with more than one language? (Android 13)
Android 13 Google Assistant using English and Spanish languages. Opened the Google app, tap my profile, Settings, Google Assistant, English (United States) was already listed and español (Estados Unidos) was then added. Then selected “assistant voice and speech output” and from there I can select the voice that I want to use, but only for English. The option to change the Spanish voice is not available.
Had to remove English leaving only Spanish and then I was able to select the Spanish voice, but after adding the English language back, all I get is the option to change the English voice but not Spanish.
How can I select the voice for English and the voice for Spanish without having to remove one of the languages?

As of current writing (November 2022), the settings for "Assistant voice and speech output" only affect the primary language. Note that the primary language is the first language in the settings.
There are 2 known ways to change the primary language:

Use "change the language to <language>" voice command to switch the primary language, or
Change the first language from the settings, but it will remove the second language if it's the same language, thus not really different than removing and re-adding it back.

Note: The "Assistant voice and speech output" settings won't automatically refresh when the language is changed, the user needs to navigate back and reopen the settings to see the change.


text:
How to play YouTube in browser while screen is off?
I'd prefer not to have to install some other weird apps or fiddle too much. (In particular I don't want to use NewPipe, Vanced.)
If it matters, I use

Bloket browser (I'm willing to try other browsers but I must be able to block ads too).
moto g(7) plus
Android version 10

The duplicate also mentions Firefox, Brave and Chrome browsers.

Install Firefox browser.
Install uBlock Origin for adblocking.
In Firefox go to ⋮ (Settings) > Turn on "Desktop site".


text:
Forward option is missing from the "message application" after it updated
My phone is MIUI Global 12.0.8, Android version 10 (QP1A.190711.020).
After the "messages" app updated, the "forward" option disappeared. As a result, I can no more forward messages. I tried to downgrade "messages", and this worked a short time, but then the app updated again, and there seems to be no way to prevent it to update.
What can I do?

There are lots of third party apps that can work as SMS app (reception and sending). For example messengers like Signal can also work as SMS app. Fell free to test such apps if they suite your needs.

The question is tagged with 'android-messages' which is specifically about Google's Messages app. Is it the correct app?

@Andrew T. I'm not sure, that's the app that came with the phone as I bought it. But the app icone is the same as the link you provided, so I think it is the correct app.

If it is the same app, then have you tried long-pressing the message you want to forward? What options are shown on the top bar? Also, just in case, could you mention the installed app version?

Yes, of course. This was how the old version worked. Unfortunately, there is no more a "forward" option available. The version updated itself without my permission, but I'll have a look at it.

version messages.android_20221101_01_RC01

That's strange, I'm on messages.android_20221115_01_RC00.phone.openbeta_dynamic (Beta program; Pixel 3a, Android 12) and phone_samsung_dynamic (customized for Samsung devices; Galaxy M12, Android 12) but the forward option is still there. Have you checked for a few messages, not only one? Also, which version was the downgrade? Otherwise, any permissions blocked?

Yes, I've tried many messages. Regarding the downgrade version, sorry, too much for me. I've installed a better app.


text:
Forgot PIN. Is there a way to reset PIN code with root and unlocked bootloader? OnePlus 7T
My phone is a OnePlus 7T with a root and unlocked bootloader. I was adding face unlocking and I've also set up a new PIN code. Everything was working great until the periodic prompt with the need to enter a PIN. Unfortunately, I don't remember it and I've got a big problem right now.
I don't know if it helps but my biometric unlocking methods should also work (fingerprint and face). I just need to pass that prompt for PIN and then reset it somehow. I've access to all Google accounts logged in the phone, but I don't see the option to reset the PIN code on https://www.google.com/android/find.
Is there a way to reset the PIN code somehow?

If you've not rebooted the device than make sure a reboot never happens or you would be locked out badly. Do you have USB debugging enabled and authorized? If yes for both, than get as much data from your device as much as you can using adb. You've to prepare yourself for a factory reset now. That's the final step unfortunately. Facial and fingerprint related data is not used for data encryption. It is either PIN/Password. Android at times (don't know why) require that the screen must be unlocked using PIN/Password, and that's where you are stuck now...

Once you've gotten hold of all the data you can get, see if this lockscreen bypass would work. https://www.youtube.com/watch?v=dSgSnYPgzT0 Note carefully: attempt this only after extracting data from your device or if you are simply unable to get data and you're left with nothing but a factory reset to do. If that hack works out, than your screen should be unlocked. In that case, it would be a bit more easy to get some more data cause the phone's UI would be accessible. But the original problem would still remain and the final step would still be a factory reset.

I don't remember if I had usb debugging enabled :(. If I'm trying to use adb I'm starting with adb devices command and it lists the device but it says that it is unauthorized.

Do you remember device is encrypted? for unencrypted device screen lock can reset from TWRP recovery

unfortunately it is :(

@Firelord, reason for Android asking PIN covered here https://android.stackexchange.com/q/241560/131553


text:
Android phone as security camera; needs to disable safe mode
Summary:

I want to take pictures with the screen locked, as in the former Android. (Useful for using a phone as a security camera or a timelapse cam. Urgent need.)
I want to disable safe mode (without using a screen lock, using an app lock instead), since this is a huge security hole allowing a person to take control of the phone. (Also, useful for employee phones and child phones.)

I carry one phone, but use 3 phones for the house as security cameras, and 4 or more out in the field for the business as security cameras and supervision.
I just upgraded the phones, and realized after many hours that the makers of Android destroyed my number one use.  Which is to say: Android no longer allows photos to be taken with the screen locked.
Solutions:

I failed to find a rear camera way to take photos, which needs to be integrated into Tasker that I use for the best customization.
I failed to find a screen lock replacement.
I was able to use app locking programs to lock down my phone, but was unable to use it in safe mode, which is stupidly easy for anyone to figure out how to boot into, even for a child.  Safe mode cannot be locked with a different security level than the main mode, thus is a huge security nightmare for kids, employees, or security camera phones (now, in need of disabling the PIN pattern).  I also cannot remove my main account, since several of the key programs are paid by my main account, also, I want a paperweight for anyone stealing the phones or messing with them.

This is very short-sighted of the Android developers.


text:
login only recognises password at second attempt
On a Cubot Quest phone with android 9: Each time I reboot, the login screen does not accept my password at first attempt. It shows Wrong Password and immediately asks for a password again. At the second time the password is accepted. This happened about 100 times in a row.
This may be related to a bunch of other problems that started a few days ago: Apps crash repeatedly and the phone crash usually within 10 or so seconds. I tried to empty the cash of some Apps but next time I reboot the change has been reversed ie the old cash size is shown for the app; I tried to delete several apps, but after a reboot they are back again; if wifi or bluetooth or location etc are off and I switch them on, after a reboot they will be off again. Internal Memory is said to be 33% full. Ram I don't know.
Given the phone hangs up within 10 seconds debugging or backing up is obviously close to impossible.
Any ideas before a factory reset?

Based on your description a hardware defect could be the cause. It could be the flash memory or the battery. Both can cause problems like crashes or reboots. If writing to flash memory doesn't work anymore it could be because flash is defect and has switched to read-only mode or the battery is too weak to provide the write voltage. What happens if you connect the phone o a charger? Do the phone still act this way?

Same problem on charger.   I managed to open a Note in the yellow Note App, make a text edit and reboot before crashes started. The change was gone after the reboot. That may support the idea that the flash is in read-only mode.

To finalise this question: The phone stopped working completely a few days early into December 22. Wouldn't even switch on now. So, probably a hardware issue.

To finalise this question: The phone stopped working completely a few days early into December 22. Wouldn't even switch on now. So, probably a hardware issue.


text:
Recover pending WhatsApp messages sent to old phone number
I have WhatsApp on my Android phone. I changed from number A to number B and did not notify contacts. Later, some contacts told me that they had sent me messages on WhatsApp to phone number A, and I did not receive them. They see the messages as having only one tick, which means that they are on WhatsApp's servers. I would like to recover those pending messages, especially from the other contacts who didn't tell me that they had sent messages.
I changed the number on the WhatsApp app back to number A, but still, those messages do not appear on the phone.
Does the encryption key change when I change numbers? If so, those messages are indecipherable, even if the WhatsApp server does send them.
If not, has anyone managed to recover pending messages?
Note: this question is different from Will I receive pending messages after I reactivate my account on new phone? because the action is reversible (I can change phone numbers) and I know that the top answer does not work (I have pending messages that I did not receive).

"I tried changing the number on the phone back to number A" does this mean you have switched SIM card or does this mean you have reconfigured Whatsapp to use the old number?

Thanks @Robert. I reconfigured WhatsApp and I edited the question.


text:
Is FBE + Metadata Encryption secure if pin/password not set
My device is based on Android 11 and does not have a security lock screen. By default it has FBE and Metadata encryption enabled. How secure this encryption is without setting the Pin/password.
How is the default key generated.
Can anyone share any commit details which gives us the key generation and storage mechanisms on AOSP

Secure against what? If you can simply boot the phone and look at all data the app shows I would call this not secure. If no lockscreen password has been set then a default password is used, which is well-known.

Hey Robert, Thanks for the comment, I want to understand the Key generation process when the password or pin is not set. I read a few posts and found that the the FBE keys are linked to screen lock (Ref: https://security.stackexchange.com/questions/196230/connection-between-pin-password-and-encryption-keys-in-android/247954#247954), So how does the key generation happen, and where are they stored. please share the commits on AOSP if possible

The linked answer shows as far as I know the complete process. As I wrote if you don't set a password a static default password will be used. Besides that nothing changes.

Note that the default password is usually default_password (with underscore).


text:
I want to transfer all my recordings done AND KEEP the date of creation with my huawei P30 lite to my Oppo Reno7 5G/Find X5 Lite
I transfered all my data from my Huawei to my oppo without any trouble, except my recordings. I was able to transfere them but the date of creation was reset. I really want to keep this information, but I haven't found a way. I already transfered my recordings from my Huawei P20 lite to my huawei P30 lite in April, and when I look in the file, all my recordings older than April 2021 has their date set to 13.04.21, but the date is the good one in the recordings app. It makes me really wonder where this information is stored.
I hope this is clear, don't hesitate to ask for more information.
Good day and thank you for taking the time to read this.

There are multiple ways to preserve file attributes (including timestamps) while copying files. Creating and extracting tar archive is one of them. You can use Termux on both sides.

Possibly related/dupe: Is there a way to backup contents of internal SD, while preserving the file's modification date?


text:
Using LADB: "sm partition" does not show any differnce in internal storage
Using LADB (Local ADB Shell App) i tried turning my SD card into expandable internal storage (or adoptable storage, which isnt availabe on my samsung).
I am unfortunatly not able to connect my phone to a computer, but it should work the same through the local shell.
The command sm partition disk:179,32 private or even sm partition disk:179,32 mixed 50 should expand my current internal storage. The "mixed" option even shows half of the original cards storage as a secondary sd card in my file system, but there is no change in internal storage at all. sm partition disk:179,32 public is not effecitve as well.
Maybe it just doesnt show any difference, but i want to be sure that this worked, and if not - why?


text:
How can I suppress notifications, such as Amber alerts, on Android 11?
How can I suppress notifications, such as Amber alerts, on Android 11? I am getting numerous alerts for which I can do nothing, but my peace is being interrupted by these irrelevant alerts.

On the Home Screen, swipe up to show the list of installed Apps, search for "Messages" and open the "Messages" app.
Tap the 3 vertical dots "..." next to the magnifying glass (upper-right corner of the screen) and select "Settings".
Select "Emergency alert settings"
Select "Emergency alerts"
You can now uncheck "Extreme alerts", "Severe alerts", and "AMBER alerts".

Verified on Android 9, but provided here in the hope it will be helpful to others, as these steps are somewhat arcane, and searching in settings yields no results.

Open Setttings -> Notifications -> Wireless emergency alerts, set AMBER alerts to off.
Assuming you are using Google Messages:

Press the profile, then Messages settings.
Press Advanced -> Wireless emergency alerts. Press the 3-dots, select Alert preferences.
Emergency alerts opens. Set AMBER alerts to off. Or you can just switch off Allow alerts.

Optionally, you can also switch off Extreme threats and Severe threats.

The exact method will vary by device, but the general steps are:

Go to the Settings app
Select "Apps & notifications", or your device's equivalent category containing notification preferences.
Select "Wireless emergency alerts", which may be under Advanced.
Toggle the alerts that you wish to receive on/off.

Alternatively, if your OEM moved the category for the alerts, you can use the settings app's search bar to search for "Wireless emergency alerts".


text:
OnePlus 7t - Device unauthorized in recovery mode (but authorized when turned on)
I would like to install a clean Android 11 with adb sideload, but I've encountered a problem. When I rebooted to recovery and tried adb sideload rom.zip it gives me this error:
adb: sideload connection failed: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

Same output goes for adb shell
I have also tried to see what adb devices returns when in recovery and it shows my devices as unauthorized, although when my phone is normally turned on "adb devices" shows my device as authorized. I have tried some solutions found online, but any didn't work (for e.g.: revoking usb debbuging keys).
I don't know if that matters, but my phone is/have:

rooted (but right now I don't have Magisk installed)
unlocked bootloader,
stock recovery.

Any help will be appreciated.

Did you try adb kill-server? Are you using stock recovery or something else?

Yes, I did. I'm on stock recovery

Flash or boot into TWRP. TWRP would not give you device unauthorized problem when being accessed using adb. Also, I think the easiest way on a OnePlus device to flash stock ROM is to let the Settings app download the update and apply it. It works on a rooted device too.

I did as you said and when I've booted with TWRP and I've tried some commands there and ADB showed device as in recovery, but still side load didn't work. I know that the easiest way is to update form settings, but I just wanted to do a clean installation.

When you tried to sideload in TWRP, did you get the same error or was the error different?

I've tried it two times since after first try I've got a message in TWRP that it failed:
C:~>adb sideload OnePlus7TOxygen_14.E.35_OTA_0350_all_2206171459_2d24e8424d684e1f.zip
Total xfer: 0.00x
And the second one:
C:~>adb sideload OnePlus7TOxygen_14.E.35_OTA_0350_all_2206171459_2d24e8424d684e1f.zip
adb: sideload connection failed: closed
Anyway I think I will just flash it with fastboot since it's seems working. I've got another noob quesiton. Which partition should I choose (A or B), because I've tried switching them in TWRP and now I don't know which one was set at the start.

Did you follow the sideload instructions for TWRP? See https://forum.fairphone.com/t/update-to-lineage-17-1-not-possible-adb-sideload-connection-failed/65175/2 // You have to first enable Sideloading from TWRP Advanced settings and than issue adb sideload command.

I've tried that and after swiping to begin the process console brings up and shows starting ADB sideload feauture... and there is bar below with blue light running on it and that process seems not ending and I have only cancel button avaiable.

I've treid to flash on that screen with console in TWRP and that's what I've got:
C:\Users\rzadd\Desktop\platform-tools>adb sideload OnePlus7TOxygen_14.E.35_OTA_0350_all_2206171459_2d24e8424d684e1f.zip serving: 'OnePlus7TOxygen_14.E.35_OTA_0350_all_2206171459_2d24e8424d684e1f.zip'  (~0%)    adb: failed to read command: No error
And in TWRP is says:
Installing zip file /sideload/package.zip Flashing A/B zip to inactive slot: A To flash additional zips, plese reboot recovery to switch to updated slot.


text:
Why are all android web browsers unable to display PDF documents?
I just switched from an iPhone to a Pixel. Whenever I try to open a PDF document, the browser automatically downloads it and ask me to open it elsewhere. I don't want that; I want an in-browser PDF view. Also it's not specific to browsers: the Gmail app, the Telegram app, almost any app is like that. Do I need to install a system plugin/extension or something?
Edit 1: can you "hack" the pdf feature into the webview by e.g. rooting the phone?
Edit 2: as I understand from the answers it's the AOSP developers' intention to make the pdf feature unavailable, contrary to say legal reason with adobe?

Related: Open PDF files directly in Chrome for Android

It's almost like asking "why a gallery app cannot open text files?". Simply, it's the developers' choice what functionality they want to offer in their app. Web browser are for "web" which is mainly HTML and JavaScript. Both have nothing in common with PDF. So it's not mandatory by any means for web browsers to support PDF.

You can use Kiwi Browser and add a PDF reader extension such as this one. It should load the PDFs within the browser, just like Chrome does on desktop. It did work on a couple of PDFs I tried.

Firefox Nightly just added this feature. It works like a charm.

@TiagoCarneiro how long will it take for the Google play version to have this feature approximately?

Short answer:
Install a PDF reader app to your device. Or find a browser (or other app) which suits your needs.
Long answer:
Android from the start has a concept called Intents, which means one app could use a different app to handle specific task like 'open email app to start a message' or 'play a video'. This also means if a document format has a version 2 / or additional features, the receiver app could be updated to handle it.
The downside is Android devices need to have an app installed capable of reading the file/intent/URI passed to it.
From what I understand iOS only added Universal Links in iOS 9 which could provide similar behavior. Since Apple provides a PDF viewer in their UIWebview/WkWebview I expect any app on iOS to use the existing iOS framework as cross-app interaction had additional requirements.
Given that any additional feature (like displaying PDF) will add size to the original app, in the early days it was better to have a distinct separate app. Didn't need the feature, you didn't need to download anything which could cost valuable data airtime or take up space in your phone and possibly avoid having a duplicated function in different apps. Understandably modern phone have lots of storage space but in the end Android has had a guiding principle via the Intent system to leave the ability to read/play any document (PDF, office file, video, audio) to those apps who can specifically handle those file formats.
Answers to Edit1 and Edit2 by OP:
Edit1 response: "Rooting" won't give you additional features in any browser/app as adding features involves deep changes to the app requiring software development time. If you want a well integrated PDF viewer in a browser app, you'll have to find one. Opera has been suggested. This would be the same with any other messaging/communications app for any particular file or action, i.e. you don't expect it to view spreadsheets or handle geographic mapping. The advantage of Android is that you are free to change which app handles the action and get a better experience rather than be limited to any prebuilt apps (which iOS limits).
Edit2 response: Manufacturers are free to add in their own PDF/Document viewers for their particular flavor of Android. AOSP just provides the environment. PDF at this point is a mix of open and proprietary parts so depending on the document version any PDF rendering engine may encounter difficulties. Additionally PDF is trying to display text/images in a particular way including fonts. This now means that any app embedding a PDF engine will need be aware of security attacks. See my answer to Why has Android made it impossible to install system fonts? on how fonts can pose a security risk. Browsers given their sandbox nature displaying arbitrary HTML and Javascript code are attentive to security, other apps perhaps not so much as it is not a core product feature.

Ugh. The whole reason I don't want an external reader is because I don't want the PDF polluting the file system, plunking the file who knows where using flash erase cycles as well as making me hunt for and deleting it afterwards.  Often the in-browser viewer will read it directly from memory without having to save it somewhere first.

@Michael For browsers, if it doesn't end up in the Download directory, the document will still be in the browser's temp file space along with other HTML/Javascript files. Sadly Android's end user file management is complicated, even for Android developers, so your frustration is understandable.

Yes as the previous discussion, my reasons to wish for pdf in browser are that no only do they pollute the download folder, but it also loses the webpage title (e.g. the file from arxiv is named with an id number instead of the article title), and also adobe reader has no tab feature and in general has bad experience. Is there a workaround, I'd take it even if I have to root my phone...

@SayakoHoshimiya See my additional answers to your edits. You may want to post on Software Recommendations for a Android browser that fits you needs.

moon+ reader will ask if you want to keep the pdf in the filesystem after viewing it. If you choose "no" it will remove it from the temporary directory it's put it in.

Your premise is wrong.
Android browsers absolutely can display PDFs.
However, the application design paradigm in Android is fairly Unixy in that applications are generally designed to do one thing (i.e. browse the web) and do it well. If they need something else doing (i.e. reading a PDF), they pass that on to another application to handle (whose sole purpose is handling that other thing) using intents.
Just because that's the typical design paradigm, doesn't mean that developers couldn't choose to eschew it, as in Opera's case.


text:
Forward wifi thru p2p
sharing wifi internet via p2p
My android can connect to wifi at the same time it is operating p2p (wifi-direct) as a GO.
How can I go about sharing/forwarding internet connections (from wifi "wlan0") to the clients on my p2p group (interface "p2p0") ?
I have terrible wifi in the apartment, so I would like to set this Android up as a kind of makeshift repeater.
I feel like this is an iptables type of thing, but I am not sure.
Thanks for the info!

I am also looking for the exact same thing, and I found this project - https://github.com/shinilms/direct-net-share.
Have a look at the iptable commands in this file - https://github.com/shinilms/direct-net-share/blob/master/app/src/main/java/shinil/direct_share/RootManager.kt.
I wasn't able to get it working but it is a starting point.


text:
How can I change the Google account used by the Google Lens app?
I use a Pixel 6 and Android 12. When opening the Google Lens app for the first time, the following dialog appears:

Welcome to Google Lens
Google Lens helps you search what you see. You're signed as account@example.com
This account will be able to see your Lens, Search, and Assistant activity.
Cancel Continue

How can I change the Google account used by the Google Lens app?

Try changing Google app account // I didn't try

Lens seems to be integrated with the Google Assistant. So you'll want to change the account that is selected to be used for the Assistant.
Fast way (using Settings search)

Settings (app)
Search at the top for "assistant"
Pick the account here you would rather use

Long way (going only through menus)

Settings (app)
Apps & notifications
Assistant
See all Assistant Settings
Pick the account here you would rather use


text:
How do I print background colors on webpages in Android?
I'm trying to print a page from my work web app, and table cell colors are pretty critical. I know it's not available on Chrome or Android's native WebView app component (at least not in my work app).
How do I print background colors on webpages in Android? Does ANY Android browser allow this option?

Related for Chrome: How to force background graphics printing on Chrome for Android?

Good question.  I don't know if it will help, but my first step would be to try Firefox for Android because it doesn't use WebView.


text:
How to add a link to Wi-Fi on the Home Screen of Galaxy S8+
I am using a Samsung Galaxy S8+ (Android 9)
In order to get to list of available Wi-Fi networks, I must tap the gear for Settings (on the Home Screen), followed by a tap on "Connections", followed by a tap on "Wi-Fi", and then a tap on the name of the available network.
I already have a link to the Samsung gear for Settings on the home screen. Is there a way to add a link that takes me straight to the available Wi-Fi networks?
Tapping and holding the Settings gear on the Home Screen shows this:

In contrast, tapping and holding the Settings gear on a Nokia G20, running stock firmware with Android 12) shows this (the menu item for "Wi-Fi" can be dragged & dropped onto the Home Screen:

Also in contrast, tapping and holding the Settings gear on a Pixel 1, running Lineage 17, shows this (again, the menu item for "Wi-Fi" can be dragged & dropped onto the Home Screen:

I just checked my Galaxy M21, Android 12, and looks like Samsung did heavy modifications to the Settings app, including not providing an app widget and home screen shortcuts for Settings. This means that at least it might need a 3rd-party app (either a shortcut maker or automation app) to do this.

In Android up to version 11 you can swipe down from the upper screen border to get the quick settings bar.
In quick settings there is the Wifi button (unless you removed it). Tap and hold the Wifi button and Android will open the WiFi network list in Android settings.


text:
Samsung A50's navigation bar hidden when it is inside a case
I apologize if this is a dumb question. I don't actually own an Android phone, just asking for a family member.
The navigation bar in a Samsung A50 disappears when the phone is inside a wallet-type case. The only way I found to make it reappear, is by removing the phone from the case.
It seems there is a magnet that triggers the navigation bar to be hidden. The owner of the phone told me that this started happening when she updated the OS. I don't have version information at this moment, but will add the info as soon as I get it from the phone owner.
Thank you!

"[...] inside a wallet-type case", "It seems there is a magnet [...]" this looks like a "smart cover" which may change the device behavior, like showing a simpler user interface when the cover is closed.


text:
Clarification on delete backed-up photos automatically for Google Photos?
I'm on the Samsung A32 5G on Android 12.
I was curious about when exactly Google Photos will automatically delete backed-up photos and it says:

If photos are saved for 60 days
If your device’s storage is less than 25%

Though I'm a bit confused about what these conditions mean exactly, is it referring to my phone's device storage having less than 25% space and that's when it's deleted?
Where are photos saved for 60 days?
Does Google Photos or its backup actually take up any additional space on my physical phone, or is it all on my Google Drive?
If the Google Photos are saved on my Drive, does that mean a backup will take up twice as much space as before? If photos are already uploaded to Google Drive, what's the point of making a copy?

Does Google Photos or its backup actually take up any additional space on my physical phone, or is it all on my Google Drive?

Google Photos backs up the photos to the cloud storage (shared quota with Gmail and Google Drive), not as Drive backups, and not on the device. It can be accessed at https://photos.google.com/.

If the Google Photos are saved on my Drive, does that mean a backup will take up twice as much space as before? If photos are already uploaded to Google Drive, what's the point of making a copy?

The backed up photos will take up the same or less size on the cloud storage, depending on the Google Photos' backup option. There's no backup copy on the device, other than the original images in case the user needs to process or do something with the images. On the other hand, Drive backups don't take up storage quota.

[...] is it referring to my phone's device storage having less than 25% space and that's when it's deleted? Where are photos saved for 60 days?

Yes, it's when the device storage is less than 25%. The photos saved are the original photos on the device (as mentioned above) that have been backed up to the cloud storage.
Note that the automatic cleanup is a feature of the Files by Google app as mentioned on its help center. Also, note that it's only available on Pixel devices. On Samsung and other devices, the "Smart Storage" setting is unavailable.
Tested on Google Pixel 3a, Android 12; and Samsung Galaxy M21, Android 12.

Thank you for the answer!
So just to confirm, all google photos are only saved on my drive, and backups will also be saved there taking up almost the same amount of space. Will the backup images be lower quality if they're smaller? I don't have Files by Google, but what does it mean by "saved" files? How is it different from 'unsaved' files? What's the point of a backup if it gets deleted in 60 days? Is 'internal' storage referring to your device, or cloud storage on drive?

@ShangWang "all google photos are only saved on my drive" only if you turn on the "back up & sync" on all folders from Google Photos. "backups will also be saved [on Drive] taking up almost the same amount of space" Drive backup doesn't store photos, but Drive backup also doesn't take up storage quota. "Will the backup images be lower quality if they're smaller?" it depends on the Google Photos' backup setting. "but what does it mean by "saved" files?" it means the photos on the devices that have been backed up to the cloud.

@ShangWang "What's the point of a backup if it gets deleted in 60 days?" it's the original files on the device that are deleted, not the backup. "Is 'internal' storage referring to your device, or cloud storage on drive?" internal storage is the device storage.

Thank you for the further clarification. In that case "backups" will only take up space in my google drive, but google photos themselves won't? In that case, are the google photos I see on the app just supposed to showcase the existing photos in my gallery and that's it? They don't take up any space/make copies unless I turn on the backup option?

@ShangWang correct. Google Photos is just like other Gallery apps, showing photos currently on the device. It won't back up anything unless the backup option is turned on.

Thanks! I had the idea that it did because I noticed even deleted photos would remain in Google photos. I'm thinking that these were photos that were backed up and will remain there for 60 days or until I delete it myself. Is this the case, or do photos just sometimes display your old deleted photos despite being deleted?


text:
TWRP stuck on splash screen, odin not recognizing phone
I have a Galaxy S5 (T-Mobile).
I recently booted into TWRP (flashed with odin,) and attempted to flash Resurrection Remix with NikGapps using an SD card. Upon reboot RR was stuck on the loading screen, and on reboot it tried to boot to TWRP but that got stuck on the splash screen too.
I tried to reflash with odin, but even in Download Mode the phone is not recognized by odin.
I've tried:

Countless reboots
Unplugging and replugging, trying different cables
Trying to get Fastboot to work (Unsuccessful)
Letting TWRP load for an hour (Unsuccessful)

Extra info: Every reboot redirects to the broken TWRP install, and Download Mode is still accessible from the phone.
If someone could help me, that would be nice because I'm scared this phone might be bricked.

Considering the age of your phone (about 7-8 years) a hardware defect is a likely cause for the problems: the soldering points of the USB-socket where it is connected to the mainboard can break when the USB plug is inserted too often with a high pressure or the plug was moved while inserted (prying effect).

broken twrp might still provide adb shell for emergency


text:
Faint backdrop of another app always present in the phone
For some reason, I always have a backdrop of chess app on my phone. It isn't just chess but a few other buttons (back, toggle etc) from the OS a long time ago. This happened after I updated to a beta oneplus OS and since then It has never gone away. It persists through the updates and that backdrop is there even when the OS has not even loaded properly after the restart of the phone
Only a pic can describe the situation the best. However, when I took the screenshot the screenshot when viewed on my laptop does not have that backdrop

Based on your description the chess app was active too long and has burnt-in into your OLED screen.
OLED pixels age faster the brighter they are lit and the longer they are on. An aged OLED pixel is getting darker and darker over the time so you see those ghost images.
Theoretically this can be fixed by reducing the brightness of those pixels that have not lost so much of their brightness or alternatively let those pixels also age so that they get to the same brightness as the more "worn-out" pixels.
On OLED TVs this is usually done automatically by the screen controller as it is otherwise very difficult to control the pixel brightness on a per-pixel level and also lit the correct sub-pixel.
For end users the only way to fix this is by replacing the screen.

I take that I should see somebody about this. Not the screen .. I mean.. the chess addiction

@NitinSiwach A chess game is a "bad enemy" for an OLED display: the changes are usually in a matter of multiple seconds or minutes so that images are shown a long time without any change. And even worse the chess board and the not moving meeple or empty fields don't change at all. For an OLED display it would be good if the whole board would be painted to a slightly randomized position. So at least every time you start the app (or every hour the complete board should move around on the display for a few pixels. I would suggest to add such an "OLED option" to the app author.

@Robert can this issue occur on an IPS LCD display too? A friend of mine had this issue on their Moto G4 Plus which had an IPS LCD display.

@Firelord To my knowledge LCD displays don't have anything that could cause a similar effect. The backlight is usually created by a few LEDs that are always lit together so any degeneration effects should affect all LEDs at the same time. Also an LCD panel doesn't care if the content changes or not.


text:
decrypt Android app TCP traffic using mitmproxy, frida, and wireshark
I am trying to inspect traffic from a production Android app, which I don't control, on a rooted Android phone. I'm following the guide here, which basically uses mitmproxy and frida running on a Linux container on the Android device.
The app doesn't use HTTP/S, so I am trying to use Wireshark to inspect the raw TCP traffic. My Android device and my Mac laptop are connected to the same WiFi network.

I started mitmproxy (on the Android linux container) with the --rawtcp flag. (latest verison 5.3.0 of mitmproxy)
I also specified a SSLKEYLOGFILE in order to export SSL/TLS master keys
command: SSLKEYLOGFILE="$PWD/sslkeylogfile.txt" mitmproxy --mode transparent --rawtcp

Then I start the app under investigation using the Frida dynamic instrumentation tools, and the frida universal android ssl repinning bypass script:

frida -H 127.0.0.1 -f com.example.app -l frida-android-repinning.js

Then I cat the sslkeylogfile.txt to terminal and copy it over to my Mac laptop. The file looks like this:
CLIENT_RANDOM 1234567890abcdef...2f
CLIENT_RANDOM f43c7a7b0c96b1b2...74

Then on my Mac laptop computer, I start the Wireshark GUI app, go to Preferences > Protocols > TLS, and set the (Pre)-Master-Secret log filename to the sslkeylog.txt file I just created.
Then in Wireshark I set a filter ip.addr = 192.168.1.242, corresponding to my Android phone's local IP, and start Wireshark.
Unfortunately when I click on any packets with the Source or Destination corresponding to my filter, the packets are still encrypted. I expected that they would have been decrypted into plaintext because I specified the sslkeylog.txt file.

How can I decrypt the traffic?

Does your log really only contains the CLIENT_RANNDOM? Because this seems to be not sufficient for TLS decryption: https://osqa-ask.wireshark.org/questions/50305/how-does-wireshark-decrypt-ssltls-with-only-clientrandom/ Usually it is a a good idea to enable the TLS decryption log (set a file name in the same settings page where you specify the SSLKEYLOGFILE file). Otherwise TLS decryption just fails silently any you never know why.

Yes, it looks like there are only CLIENT_RANDOM keys in sslkeylogfile.txt. In the Wireshark TLS debug file, it shows some lines like Cannot find QUIC CLIENT_EARLY_TRAFFIC_SECRET ad also decrypt_ssl3_record: using server decoder and decrypt_ssl3_record: no decoder available. Not sure how to get these from mitmproxy

In my opinion your chances would be better if you directly extract the keys from the app and don't use mitmproxy at all. https://github.com/saleemrashid/frida-sslkeylog BTW: Mitmproxy latest version is 9.0.1 not 5.3.0. Your python version may be too old to get the latest version.

Thanks. FYI I upgraded my python and now have mitmproxy version 9.0.1. The sslkeylogfile.txt now contains these keys: CLIENT_HANDSHAKE_TRAFFIC_SECRET,CLIENT_TRAFFIC_SECRET_0,EXPORTER_SECRET,SERVER_HANDSHAKE_TRAFFIC_SECRET,SERVER_TRAFFIC_SECRET_0. Wireshark is still not decrypting the contents though. I'll try the frida-sslkeylog method next

Also I do see lines like this in the ssl-debug.txt file now: matched client_appdata, matched client_handshake, matched exporter, matched server_appdata, matched server_handshake. Not able to get frida-sslkeylog working yet, it seems to fail to download frida rather than using my built version (which is for an arm64 architecture, google pixel 4 phone)


text:
Android 12 cellbroadcastreceiver permission denial causing high CPU usage in com.android.phone process?
Every since my Nokia 5.3 was upgraded to Andoid 12 recently, the battery suffers from processes com.android.phone and qcrild using the CPU a fair amount.  It is not completely reproducible, but it happens especially when the the phone is locked, or at least the screen is off.
I observe that increased CPU usage via adb shell top -u radio.
At that same time adb shell dumpsys phone shows a lot of the following:
❯ adb shell dumpsys phone
------- PhoneGlobals -------
  mPrevRoamingNotification=0
  mDefaultDataSubId=1
  mDataRoamingNotifLog:
  isSmsCapable=true
    2022-11-23T13:56:23.510818 - dataAllowed=true, reasons=Data allowed reason: NORMAL
    2022-11-23T13:56:23.512116 - dataAllowed=true, reasons=Data allowed reason: NORMAL
[snip rest of the output]

And that seems to always immediately follow these adb shell logcat -d phone warnings about ...without a qualified user and Permission Denial to read the phone state:
11-23 13:56:23.460  1681  3481 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcastMultiplePermissions:1206 com.android.server.TelephonyRegistry.broadcastServiceStateChanged:2880 com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId:1608 com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact:455 android.os.Binder.execTransactInternal:1184
11-23 13:56:23.461  1681  3481 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcastMultiplePermissions:1256 android.content.Context.sendBroadcastMultiplePermissions:2215 com.android.server.TelephonyRegistry.broadcastServiceStateChanged:2884 com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId:1608 com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact:455
11-23 13:56:23.462  1681  3481 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcastMultiplePermissions:1256 android.content.Context.sendBroadcastMultiplePermissions:2215 com.android.server.TelephonyRegistry.broadcastServiceStateChanged:2891 com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId:1608 com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact:455
11-23 13:56:23.463  1681  2031 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 (has extras) } to com.google.android.cellbroadcastreceiver/com.android.cellbroadcastreceiver.CellBroadcastReceiver requires android.permission.READ_PHONE_STATE due to sender android (uid 1001)
11-23 13:56:23.463  1681  2031 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 (has extras) } to com.google.android.cellbroadcastreceiver/com.android.cellbroadcastreceiver.CellBroadcastReceiver requires android.permission.ACCESS_FINE_LOCATION due to sender android (uid 1001)
11-23 13:56:23.464  1681  3481 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcastMultiplePermissions:1256 android.content.Context.sendBroadcastMultiplePermissions:2215 com.android.server.TelephonyRegistry.broadcastServiceStateChanged:2895 com.android.server.TelephonyRegistry.notifyServiceStateForPhoneId:1608 com.android.internal.telephony.ITelephonyRegistry$Stub.onTransact:455
11-23 13:56:23.465  1681  2031 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 (has extras) } to com.google.android.cellbroadcastreceiver/com.android.cellbroadcastreceiver.CellBroadcastReceiver requires android.permission.READ_PHONE_STATE due to sender android (uid 1001)

And that results in a lot of logging that seems to be about refreshing the data about my mobile carrier (onRefreshCarrierInfo()), which may be where the CPU time is actually spent (following log capture is from a later occurrence):
11-23 14:18:08.592  2936  2936 D ServiceStateProvider: subId=1
11-23 14:18:08.592  2462  2640 I CustomizedNetworkIcon: getConfigValueByKey: oem_key_rat_name_of_4g_int=0
11-23 14:18:08.595  2462  2640 I CustomizedNetworkIcon: getConfigValueByKey: oem_display_lte_icon_int=1
11-23 14:18:08.597  2936  2936 I Telephony: TelecomAccountRegistry: onSubscriptionsChanged - reregister accounts
11-23 14:18:08.598  1676  2040 D CompatibilityInfo: mCompatibilityFlags - 0
11-23 14:18:08.598  2936  2936 D Telephony: isEmergencyPreferredAccount: subId=1, activeData=1
11-23 14:18:08.598  1676  2040 D CompatibilityInfo: applicationDensity - 280
11-23 14:18:08.598  2936  2936 D Telephony: isEmergencyPreferredAccount: Device does not require preference.
11-23 14:18:08.598  1676  2040 D CompatibilityInfo: applicationScale - 1.0
11-23 14:18:08.600 31066 31066 D CellBroadcastReceiver: onReceive Intent { act=android.intent.action.SERVICE_STATE flg=0x1000010 cmp=com.google.android.cellbroadcastreceiver/com.android.cellbroadcastreceiver.CellBroadcastReceiver (has extras) }
11-23 14:18:08.600 31066 31066 D CellBroadcastReceiver: onServiceStateChanged, ss: 0
11-23 14:18:08.600 31066 31066 D CellBroadcastReceiver: networkOperator: 20416
11-23 14:18:08.600 31066 31066 D CellBroadcastReceiver: update supported roaming operator as
11-23 14:18:08.601  2936  2936 I Telephony: isRttCurrentlySupported -- regular acct, hasVoiceAvailability: false
11-23 14:18:08.601  2936  2936 I Telephony:  isRttSupported: false
11-23 14:18:08.601  2936  2936 I Telephony:  isUserRttSettingOn: false
11-23 14:18:08.601  2936  2936 I Telephony:  alwaysAllowWhileRoaming: false
11-23 14:18:08.601  2936  2936 I Telephony:  isRoaming: false
11-23 14:18:08.601  2936  2936 I Telephony:  isOnWfc: false
11-23 14:18:08.607  2462  2640 E CustomizedImsIcon: customizedVoLTEandVoWiFiIcon:
11-23 14:18:08.608  2462  4440 I CustomizedImsIcon: [0] customizedImsIcon:++
11-23 14:18:08.608  2462  4440 D CustomizedImsIcon: isAirplaneModeOn: false
11-23 14:18:08.608  2462  4440 D CustomizedImsIcon: customizedImsIcon:clear all vowifi icon which is added with TAG when airplane is off
11-23 14:18:08.608  2462  4440 I CustomizedImsIcon: [0] isOperaterCustomized:mccmnc=20416
11-23 14:18:08.609  2462  4440 I CustomizedImsIcon: [0] isOperaterClaroCustomized:mccmnc=20416
11-23 14:18:08.609  2462  4440 I CustomizedImsIcon: [0] isCustomizedBySkuId:isCustomized=false
11-23 14:18:08.609  2462  4440 D CustomizedImsIcon: getSimCount: simCount=1
11-23 14:18:08.610  2462  4440 I CustomizedImsIcon: [0] isWifiCallingAvailable: isImsRegistered is false
11-23 14:18:08.610  2462  4440 I CustomizedImsIcon: [0] isShowVoWiFiIcon: isAllowed=false
11-23 14:18:08.612  2462  4440 I CustomizedImsIcon: [0] isAllowShowVoLteIcon:OEM_ALLOW_SHOW_VOLTE_ICON_BOOL=false  phoneId=0
11-23 14:18:08.612  2462  4440 I CustomizedImsIcon: [0] isShowVolteIcon: isAllowed=false
11-23 14:18:08.613  2462  4440 I CustomizedImsIcon: [0] customizedImsIcon:--
11-23 14:18:08.615  2936  2936 I Telephony: reRegisterPstnPhoneAccount: subId: 1 - no change
11-23 14:18:08.615  2936  2936 D CallNotifier: updatePhoneStateListeners: update CF notifications.
11-23 14:18:08.616  2936  2936 I NotificationMgr: updateCfi: subId= 1, visible=N
11-23 14:18:08.616  2936  2936 I NotificationMgr: updateMwi(): subId 1 update to false
11-23 14:18:08.618  2462  2462 D KeyguardUpdateMonitor: received broadcast android.intent.action.SERVICE_STATE
11-23 14:18:08.618  2462  2462 V KeyguardUpdateMonitor: action android.intent.action.SERVICE_STATE serviceState={mVoiceRegState=0(IN_SERVICE), mDataRegState=0(IN_SERVICE), mChannelNumber=1656, duplexMode()=1, mCellBandwidths=[], mOperatorAlphaLong=Simpel, mOperatorAlphaShort=Simpel, isManualNetworkSelection=false(automatic), getRilVoiceRadioTechnology=14(LTE), getRilDataRadioTechnology=14(LTE), mCssIndicator=unsupported, mNetworkId=-1, mSystemId=-1, mCdmaRoamingIndicator=-1, mCdmaDefaultRoamingIndicator=-1, mIsEmergencyOnly=false, isUsingCarrierAggregation=false, mArfcnRsrpBoost=0, mNetworkRegistrationInfos=[NetworkRegistrationInfo{ domain=CS transportType=WWAN registrationState=HOME roamingType=NOT_ROAMING accessNetworkTechnology=LTE rejectCause=0 emergencyEnabled=false availableServices=[VOICE,SMS,VIDEO] cellIdentity=CellIdentityLte:{ mCi=70817281 mPci=66 mTac=527 mEarfcn=1656 mBands=[] mBandwidth=2147483647 mMcc=204 mMnc=16 mAlphaLong=Simpel mAlphaShort=Simpel mAdditionalPlmns={} mCsgInfo=null} voiceSpecificInfo=VoiceSpecificRegistrationInfo { mCssSupported=false mRoamingIndicator=1 mSystemIsInPrl=-1 mDefaultRoamingIndicator=-1} dataSpecificInfo=null nrState=**** rRplmn=20416 isUsingCarrierAggregation=false}, NetworkRegistrationInfo{ domain=PS transportType=WWAN registrationState=HOME roamingType=NOT_ROAMING accessNetworkTechnology=LTE rejectCause=0 emergencyEnabled=false availableServices=[DATA] cellIdentity=CellIdentityLte:{ mCi=70817281 mPci=66 mTac=527 mEarfcn=1656 mBands=[] mBandwidth=2147483647 mMcc=204 mMnc=16 mAlphaLong=Simpel mAlphaShort=Simpel mAdditionalPlmns={} mCsgInfo=null} voiceSpecificInfo=null dataSpecificInfo=android.telephony.DataSpecificRegistrationInfo :{ maxDataCalls = 20 isDcNrRestricted = false isNrAvailable = false isEnDcAvailable = false LteVopsSupportInfo :  mVopsSupport = 3 mEmcBearerSupport = 2 } nrState=**** rRplmn=20416 isUsingCarrierAggregation=false}], mNrFrequencyRange=0, mOperatorAlphaLongRaw=Simpel, mOperatorAlphaShortRaw=Simpel, mIsDataRoamingFromRegistration=false, mIsIwlanPreferred=false} subId=1
[...snipping a lot more similar logging...]

What could be wrong?  Or at least, how can I further debug this?

Also cross-posted this to https://forum.xda-developers.com/t/android-12-cellbroadcastreceiver-permission-denial-causing-high-cpu-usage-in-com-android-phone-process.4529991/.

After more research, my current best quess is that the Qualcomm RIL driver (presumably via qcrild) very often sends a '1002 unsolicited response (voice) network state changed' event: com.android.phone logs "D RILJ    : Unsol response received; Sending ack to ril.cpp [PHONE0]:" and "D RILJ    : [UNSL]< UNSOL_RESPONSE_NETWORK_STATE_CHANGED [PHONE0]", often 10+ times per second.


text:
Google Messages: Contact names are not displayed
Recently, I've found that Google Messages doesn't show a contact name for most of the messages. It's just a phone number displayed. When I click on Details, there is no contact information. When I go to contact via Contacts (Google) app then the number is here.
It doesn't show contact both on the phone and at https://messages.google.com.
The app has permission to allow Contacts.
App version: messages.android_2022101_01_RC02.phone_dynamic
Mobile OS: MIUI 13.0.15 / Android 12 SKQ1.210908.001
Any ideas on how to fix it?

This has been fixed in the messages.android_2022107_04_RC02.phone_dynamic version.

I had the same issue.  Uninstalled/reinstalled, did not fix.
Some contact did not have a 1 in front of the number - adding a 1 made them appear.
Even easier - I changed the current country from "automatically detected" to US in the messages settings.

Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

It has already been fixed, over a year ago, the OP said it was software update


text:
Is Samsung Tab S8 going to respond faster than Tab S3
My wife is using Tab S3.  And finds it a bit slow to respond.  I am looking at the Tab S8 Ultra.  I know the CPU is more than twice as fast.  But does this translate to response speed ?

And the reason for the downvote is ?

Yes it is. There's more RAM, a better CPU, and a newer operating system. It'll almost be like night and day.
Click here for a specs a specs comparison between the two.
Click here for a review of the snap dragon 8 gen 1 inside tge Tab s8.
If you click here for 8 gen1, and here for Marvell PXA986, you'll see that the Snapdragon 8gen1 in the galaxy tab s8 is over 1000 times faster than the Marvell PXA986 in the galaxy tab S3.

Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.


text:
Where is the phone blacklist stored?
I have a problem with spam calls, they call me many times a day. To solve this problem, I've tried many call blockers apps (NoPhoneSpam, Calls Blacklist, CallBlocker, etc...) and none of them work. Some of them worked for a while, but then stopped to work.
The spammers use a prefix and change the last 3 or 4 numbers of the phone, and I want to block them all. The android native phone app allows me to block numbers, and it works, but without wildcards, so I can't block all numbers with a given prefix without entering them one by one (not an option).
I want to know if the Phone app blacklist is stored anywhere that I can edit it with a text editor, or if there is a way to add phones to it using terminal, so I can write a script to add all phones I want to block.

The phone app data is likely inside app-specific storage which is inaccessible without root access. On the other hand, related/possible dupe: Can I block calls based on a specific number prefix or pattern?

While the phone apps are free to maintain their own list of blocked numbers, Android also has a Content Provider (with the app name: Blocked Numbers Storage) which the apps can use to share a common blocked number repository very much like Contacts and Messages. The stock phone app in AOSP uses the same blocked number provider which saves its database in /data/user_de/<USER_ID>/com.android.providers.blockednumber/databases/blockednumbers.db.

Related: Accessing list or raw data for blocked numbers?