text:
Why is the 'iptables' target 'NFLOG" not sending log messages to the Kernel?
I recently started using an old cell phone, Samsung Galaxy J7 model SM-J700M. I rooted it, flashed LineageOS and installed a SIM card and it works just fine. I decided to work on a script with iptables rules, run it and noticed there are a few problems. The 'iptables' target 'LOG' gives an error message when used, then I use 'NFLOG' but it doesn't send any log messages to the kernel when packets traverse it. I thought maybe some modules are not loaded.
I used the command 'lsmod':
j7elte:/ # lsmod
lsmod: No file /proc/modules: No such file or directory
1|j7elte:/ #

Then I played around with 'modprobe':
j7elte:/ # modprobe -a <module_name>
modprobe: No file /proc/modules: No such file or directory
1|j7elte:/ #

What I can tell is, that the kernel is missing a whole lot of things. I was never good with the Android or the kernel.
How can I get the 'iptables' target 'NFLOG' to send messages to the kernel so that they appear after using 'dmesg' or 'adb logcat'?
Here is a snippit of 'logcat':
02-14 01:17:00.937  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:00.937  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:01.242  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:01.251  5245  5245 W sh      : type=1400 audit(0.0:906): avc: denied { read } for name="mediaserver" dev="mmcblk0p20" ino=704 scontext=u:r:shell:s0 tcontext=u:object_r:mediaserver_exec:s0 tclass=file permissive=0
02-14 01:17:01.251  5245  5245 W sh      : type=1300 audit(0.0:906): arch=40000028 syscall=334 per=8 success=no exit=-13 a0=ffffff9c a1=e7723060 a2=4 a3=0 items=0 ppid=2437 auid=4294967295 uid=2000 gid=2000 euid=2000 suid=2000 fsuid=2000 egid=2000 sgid=2000 fsgid=2000 ses=4294967295 tty=(none) exe="/system/bin/sh" subj=u:r:shell:s0 key=(null)
02-14 01:17:01.251  2298  2298 W auditd  : type=1327 audit(0.0:906): proctitle=2F73797374656D2F62696E2F7368002D63006578706F727420414E44524F49445F4C4F475F544147533D222727223B2065786563206C6F67636174
02-14 01:17:01.251  2298  2298 W auditd  : type=1320 audit(0.0:906):
02-14 01:17:01.291  5245  5245 W logcat  : type=1400 audit(0.0:907): avc: denied { read } for name="mediaserver" dev="mmcblk0p20" ino=704 scontext=u:r:shell:s0 tcontext=u:object_r:mediaserver_exec:s0 tclass=file permissive=0
02-14 01:17:01.291  5245  5245 W logcat  : type=1300 audit(0.0:907): arch=40000028 syscall=334 per=8 success=no exit=-13 a0=ffffff9c a1=f77230a0 a2=4 a3=0 items=0 ppid=2437 auid=4294967295 uid=2000 gid=2000 euid=2000 suid=2000 fsuid=2000 egid=2000 sgid=2000 fsgid=2000 ses=4294967295 tty=(none) exe="/system/bin/logcat" subj=u:r:shell:s0 key=(null)
02-14 01:17:01.938  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:01.938  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:02.244  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:02.939  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:02.940  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:03.247  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:03.941  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:03.941  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:04.249  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:04.291  2400  2400 W health@2.0-serv: type=1400 audit(0.0:908): avc: denied { read } for name="type" dev="sysfs" ino=12556 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
02-14 01:17:04.291  2400  2400 W health@2.0-serv: type=1300 audit(0.0:908): arch=40000028 syscall=322 per=8 success=no exit=-13 a0=ffffff9c a1=f6b11360 a2=a8000 a3=0 items=0 ppid=1 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=4294967295 tty=(none) exe="/system/vendor/bin/hw/android.hardware.health@2.0-service" subj=u:r:hal_health_default:s0 key=(null)
02-14 01:17:04.291  2298  2298 W auditd  : type=1327 audit(0.0:908): proctitle="/vendor/bin/hw/android.hardware.health@2.0-service"
02-14 01:17:04.291  2298  2298 W auditd  : type=1320 audit(0.0:908):
02-14 01:17:04.324  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:04.325  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:04.650  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:04.941  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:04.942  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:05.252  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:05.944  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:05.944  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:06.254  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:06.944  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:06.945  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:07.256  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:07.945  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:07.945  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:08.259  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:08.947  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:08.947  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:09.261  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:09.948  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:09.948  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:10.264  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:10.966  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:10.966  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)
02-14 01:17:11.266  2417  4576 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(3)
02-14 01:17:11.967  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] first frame after HWC_2_GLES
02-14 01:17:11.967  2417  2417 I display : [PrimaryDisplay] [DYNAMIC_RECOMP] GLES_2_HWC by high FPS(5)

NFLOG target doesn't write to kernel log but broadcasts to Netlink sockets.


text:
Add text labels in photos
In Android 11 (Samsung Galaxy A20):
When editing a photo using the OOTB Gallery/photo editing functionality, is there a way to add text labels in a photo?
Like this (label added in MS Paint):

If OOTB means Out Of The Box, there is no standard gallery app as manufacturers can change code/features (fonts/colors/filters/etc.). Without knowing which device you have, you may be served better by finding and installing an app that fits your needs.

There are photo editor apps like Snapseed which offer adding text to an image if that is what you are searching for.

source: Stack Exchange

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

sort: votes


text:
STA(Internet)/STA(ultrasonic device) concurrency
I would like to pair an ultrasound device (AP) to a tablet via a 5GHz wifi (at 40 MHz) connection. At the same time the tablet should connect via 2.4 or 5 GHz wifi to the internet (AP). Unfortunately I cannot combine those 2 connections into one wifi, because if I do, the MDR (Medical Device Regulation) of the ultrasound device will be violated and it can't be legally used without a new certification.
On top of that I need to use both connections simultaneously, because the transmitted ultrasonic pictures (which are displayed on the phone via an app) are to be streamed over the internet connection to a PC.
So summarized I have to APs and one STA device to connect simultaneously.
I have found an android interface named STA/STA Concurrency, which if I'm not mistaken should do the job.
The problem I have now is, that I don't find a STA/STA Concurrency supported tablets or to be more precise I don't find any information about which device is supporting the STA/STA Concurrency.
The STA/STA Concurrency states that it needs/prefer:

a 2x2+2x2 DBS Chip module
the APIs "IWifiChip.setMultiStaPrimaryConnection()" and "IWifiChip.setMultiStaUseCase()" and
the HAL Wi-Fi interface combination must have two concurrent STA interfaces exposed
But again the manufactures do not show such detailed information.

Some Android phones have a dual-band WLAN option (like the Asus ZenFone 8) with which you can connect a 2.4 and 5GHz WLAN separately. Unfortunately, I can't find any information if these connections can be used simultaneously. YouTube Link
Somebody on Stackoverflow tried to create a STA/STA Concurrency with a automotive wifi chip. But there is no solution either.
Does anybody have a solution for this problem? Hardware or Software, I don't care as long as it works (the tablet will be just a first prototype).
(As an alternative I thought about using a windows tablet, put in 2 wifi cards, install Android (or Linux if necessary and a android emulator for the ultrasonic app) and assign the wifis accordingly. But there again, I need a tablet with 2 separate antennas.)
Thanks in advance!
P.S. I know this is kind of a half hardware question, so off-topic. I tired it on Hardware recommendations, but nobody has a solution to this. But since this can maybe be solved via software, somebody over here can help me.

Interesting, I did not know about STA. May be you are lucky and the awaited Pixel Tablet is released in time for you. Usually Google's Pixel devices support the features Google develops for Android, so hopefully this will also be true for STA. Alternatively you could search for an HW-info app that prints out the result of WifiManager#isStaConcurrencyForLocalOnlyConnectionsSupported() and then make a quick tour through some large electronic shops that present running tablets you can test yourself.

Cross-posted from HardwareRecs.SE for hardware-based solution: https://hardwarerecs.stackexchange.com/q/16472/364

@Ben1401 I know it's late for this answer but Pixel 6a and 7a have the functionality that you are talking about.
https://issuetracker.google.com/issues/271014975#comment33
https://issuetracker.google.com/issues/232107693#comment5

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


text:
Android USB Ethernet - Create a wireless bridge with port forwarding
I have about 50 industrial machines (mostly CNC controlled by a PLC). They have ethernet jacks, with an existing IP address set. I need to connect them to the main building's network (which uses an entirely different IP scheme). I have accomplished this with a few machines by installing an industrial router in the machine, and using the router's NAT to bridge the two networks. It works well, but requires a router that costs around $400, requires an electrician to install, and requires downtime on the machine.
However, each of these machines has a Samsung Galaxy Tab A8 or Samsung Active Pro tablet mounted to it, connected to the building's WiFi. I have full control over the tablets, I can root them if needed.
I am wondering if I attach an ethernet adapter to the tablet's USB-C port (I've found a few that have pass-thru charging), then plug the ethernet cable into the CNC/PLC if there is a way I can bridge the wireless connection, and also have some NAT to do the address translation and forward the needed ports.
Changing IP addresses on the machine is not an option, and altering the building's network is not an option.
I have no need for DHCP, and only a couple of devices are on the ethernet side.
Has anyone done this?
Additional info:
I am fully aware that wiring each machine would be ideal, but it is not feasible. To show why, I’m putting some numbers below. This application is theoretical at this point, we have a small amount of data we want to relay to an on-site server, which is then parsed and displayed on the tablets. If the testing works, we’d look into customized android powered hardware in place of the tablets.
50 machines total (at this site)
$2,000 per minute downtime
30 minutes required to install cable (remove guarding and wire covers, run through tracks, replace covers)
$60,000 downtime (30 min x $2,000)
$250 per cable to run
$2,500 two engineers to review changes to networking and resign/recertify safety)
$62,750 / machine
$3,137,500 / site
So they can spend 3 million per location and risk angry customers from downtime or they can relay some data via some android tablets.
The data is not mission critical, it is used to monitor efficiency. If there are network issues the worst that happens is the data is reported when the connection is restored.

Honestly, I don't think using the tablets as routers is a very good way to do this due to the complexity and you essentially having dozens of tiny networks interconnected for no advantage. Why can't you just use VLAN's in the network and build one interconnecting route? This sounds like a basic network setup question.
Basically in your primary router for your network (usually, could be the switch as well) you would build a second "CNC" VLAN that matches the IP scheme of the CNC machines, and you assign switch ports to connect them to the network on the correct CNC VLAN. Then the router would just allow the two networks to communicate via the primary gateway (the router) for each network.
This is a very common setup actually. How exactly it would be implemented would vary a lot based on your equipment. This could be done via dedicated hardware (like one switch just for the CNC equipment) or by assigning ports of an existing switch to be untagged into the CNC VLAN.
This would allow for minimal new equipment and simple network routing, and minimal complexity while maintaining network security... Which is preferred in network setup.
I think adding additional routers or using the tablets/phones connected to each device as a routing device would add a level of complexity that would be quite a headache, especially later on.

I could see this being a normal setup if there were a few machines but we are talking about 50 machines using identical ip addresses, needing access to the same port ranges (some of which span hundreds of ports). As an example I have 50 machines, all with an ip address of 192.168.1.1, needing ports 100-350 accessible. This would also require cables be run to each machine which is a cost greater than $10,000 per facility. It’s not a practical solution.

It would have to be easier to just re-IP the equipment...

No it wouldn't, this is industrial equipment with dozens of devices connected to it via ethernet controlling moving parts and critical safety equipment, not to mention it requires specialized software that is expensive. Making changes to anything safety related requires a thorough review process and multiple engineers to validate the changes. This would have to be done 50 times over (once per machine, even though they are identical). This isn't just PCs in an office.
Downtime also costs more than $2,000 / minute

No offense, but I can't image the manufacturer of that equipment doesn't have a solution for this. Although this sounds like a massive undertaking, if done correctly this would only need to be done once and would rectify the problem, and if equipment was properly installed into the network at initial installation or replacement, this entire situation should be mitigated permanently. You might not like my answer, but it is technically correct and the proper way it should be done. This will continue to be an issue until it is handled properly and with a permanent fix, and the cost will only rise

The manufacturers of the equipment do not have a solution. “No offense” but I don’t think you have an understanding of how the world of industrial engineering works. Most equipment is custom built for manufacturers. There’s not really an “I want to add a second network card option”. You call them 6 months after they made it and they say “sorry we don’t remember how that machine works”. Also as I said before, this would not be done once, this would be done in several facilities.

No, I get that... Actually I do... But if you can re-IP the equipment that is the long term solution that will need to be done. I understand it will be a long, difficult process, but you should setup appropriate UNIQUE subnets for each set of equipment, or one large subnet for all the equipment (50 isn't that much, from an IP standpoint)... And the "port forwarding" isn't an issue when the network is routed as each IP can have access to all 65535 ports.

Having dozens of hack job routers in place to access all this equipment sounds like more of a hassle and has more potential safety and downtime issues than a properly engineered network solution. I presented to you what is a valid, technically sound answer to your issue, that is a long-term fix. I am not here to argue with you, but to present what is a solid answer to your problem and to prevent it only getting worse over time as equipment gets more and more complex. How you implement it or ignore it from  this point is up to you and I wish you the best of luck.

Again, your opinion is coming a lack of understanding of the industrial world. Sure I could update IP addresses, get it all on the network and have it all working beautifully (at great expense). Then, the first time the manufacturer comes out to support it they will clear all of the network settings of a machine, set them back to default IPs and create a nightmare of IP conflicts. Then IT will be chasing their tails all over the factory trying to figure out what is causing the conflicts while plant managers are staring over their shoulder screaming about how production came to a halt.

Because I posted a simple question, I will post the simple answer I have found.
The answer to the question is yes, Android tablets can work as an access point when combined with a usb ethernet adapter.
They must be rooted in order for it to work, once rooted, the nat/port forwarding can be managed from iptables.
How well it performs obviously depends on the existing wifi network, the quality of the tablet, the number of devices connected, and the amount of network traffic.


text:
How does an app know your location when you're using a VPN?

GPS turned off
VPN set to always on and to disconnect if off
No SIM card. Using WiFi

Wifi routers and cellular towers have been gathered together with their location. Android location service can make use of this database to calculate your position based on the surrounding known wifi and cellular systems. Some cellular towers even broadcast their location.

How is the wifi router information gathered? I believe for the cellular it's through 'getNetworkCountryIso'.

Do you know Google Street view? Those cars have gathered Wifi access points and their locations. And also every Android phone with activated GPS and Wifi can do the same.

So how to prevent it? Toggle of location? Would that work? But need to connect to the internet... Which would be better, mobile data or wifi? I understand both can be used to determine location right? Which can be used that you could do something to prevent location determining?

If your phone supports USB OTG use an USB Ethernet adapter and enable flight mode (no wifi or cellular connection). Alternatively there are apps available that claim to fake your GPS position but I don't know if they work.


text:
How do I add my existing audio notes to the Google Recorder app on my Pixel 7 Pro?
I used audio notes extensively on my old Samsung phone. Now I'm migrating to a Pixel 7 pro and I love the Google Recorder app which is only available on Pixel phones. It has live transcription and audio search. However, I can't seem to find a way to import my old audio notes into the recorder app. I have the audio files on my new phone as well as on Google drive, but there doesn't seem to be an option to add audio files. I'd like to keep all my audio notes in one app so I can search them, and of course getting the free auto-transcription for my old notes is a major bonus.
Is there any solution to this? At an extreme I could re-record the audio notes by playing them into a high quality microphone plugged into my phone. But that would be very time consuming so if there is any way to directly add the files please advise!

I have been searching for an answer on this, and it seems as if it's impossible. Which is a huge oversight

Also looking for this, so annoying. I've got a recording I want to put over and I may just play it on some speakers while my pixel records it again


text:
Phone bricks when I uninstall package installer - can I block app install?
I have a phone that I am trying to block from being able to install apps. I tried removing package installer via ADB, but when I did that the phone bricked upon being restarted, and had to be hard reset. My question is a) is there a way to avoid the phone bricking when package installer is removed, and b) is there a way to totally and permanently block app install without removing package installer? Thanks!

This is pretty much a duplicate of the question here. Would you mention the real purpose of preventing installation of any app via any route? It does not seem like a good strategy on its own. No app would be updated. Internet facing obsolete app versions exposes an Android device to malware infection (think of Pegasus malware), on top of the exposure it already has by not receiving OS level security updates.

Have you found a solution? I'm searching for the same: to block app installations on a child's device (Cubot KKM2 with Android 10). I also tried disabling the Package Installer (via SDMaid) and the phone failed to start normally next time, so for modern Androids probably another solution is needed. I also tried AppLock (a free app from Google Play), but it couldn't maintain the protection - the child managed to bypass it :)

@antonK not yet. What does your kid need on there, though? Maybe you could get a specialty device or internet filter on it.

@Firelord I don't want a browser/any other apps on my phone, and I don't want to be able to install any, in any way. Its for religious reasons.

@Antonk Or use an ipad, where you can block app store, and there are no apk-type-installs.


text:
Cannot turn on developer mode on TCL 20 Pro after factory reset
I have an issue with a TCL 20 Pro not allowing me to activate the Developer mode. I've tried to use the normal method of going to 'About Phone and tapping the build button x7' but it does not work.
I have a second TCL 20 Pro with which this method does work with no problems. The only difference that I can see is the one that has the issue has been factory reset, but when I confirm the firmware they are using, they have the same band and the same firmware version.
I cannot re-flash the firmware from the bootloader as the stock firmware file is a .tctbin file which is not recognised by the bootloader and I cannot seem to find the usual .zip file used for flashing.
My questions are:

Is there a workaround, ie: using the fastboot mode to enable dev mode and or the serial port?
Also, is the .tctbin the correct file type for flashing the TCL 20 Pro from a TS card?

Please describe in detail what "does not work" means. What error do you see when you try to activate developer mode?


text:
Check what website is my app displaying. It was created with appcreator24
I have an app that is basically a container of a browser opening a website but I am unable to see what website it is so I can open it through a normal browser.
I have tried to trap the network traffic but haven't found a way to do so, and extracting the apk has given me too much files to check. Any ideas?

Could you link the app? Also, if you turn off the internet, does it stop loading?

I can't since it has personal information, but It does not load anything without internet, not even the interface, so I'm 100% positive it's a sanboxed browser

Usually such generated apps have fixed code and load the start URL from a configuration file. Unpack the APK, delete the dex files and make a full text search tool searching for https:// assuming the site you configured is a https site or even longer parts of the URL that should be used. May be you find the URL, then you know the file.


text:
"Display over other apps" prevents me from entering passwords
The smartphone is a OnePlus Nord CE 5G, model EB2103.
Basically, when I focus a field where I'm supposed to enter a password, a system "Display over other apps" like this

takes over and overlays the original app, not allowing me to enter the password in any way.
This happened after I upgraded to Android 12.
Here I've filmed what happens.
Any clue how I can solve this?

I've also noticed one more detail. If the app has the little eye icon to make it show the password (unlike the app in the video), I can click on that icon before focusing the password field, then when I focus it and type the passord, the annoying thing doesn't happen.
Here is the video of this behavior, but be aware that the screen never gets full black for me; I always see what's going on while I type the password.

According to the logcat, the Password Store (legacy) app (package name: com.zeapo.pwdstore) tried to open the "Display over other apps" permission settings.
The relevant logcat is
ActivityTaskManager: START u0 {act=android.settings.action.MANAGE_OVERLAY_PERMISSION dat=package:com.zeapo.pwdstore flg=0x10000000 cmp=com.android.settings/.Settings$OverlaySettingsActivity mCallingUid=10278} from uid 10278

This has been reported on its GitHub repo, Issue #767 - [BUG] "Display over other apps" settings panel keeps popping up.. According to the developer, this is caused by the older autofill method leveraging the accessibility service for pre-Oreo (because the proper autofill service was introduced in Android 8.0 Oreo).
From comment #13 and afterward by the developer:

@jonathf @Rio6 can you both check your accessibility services and verify if the Password Store service is still enabled?

Yes, it is installed and enabled.

That's the problem, it shouldn't be. We don't use the accessibility service on Android Oreo and above. Try disabling it manually and I'll push a patch to prompt users automatically.

I've updated the fix for this at #827 to automatically disable the a11y service on Android Oreo and above so we'll be able to seamlessly resolve the problem without manual intervention.

For the solution, disabling the accessibility service for this app should fix the issue.

Note: according to Site/app linking to the legacy Password Store, the app has been migrated from com.zeapo.pwdstore to dev.msfjarvis.aps. The renewed app is on:

GitHub
Play Store
F-Droid


text:
How to remap keyboard shortcut?
I have found many discussions about how to use a different layout or swap two key, say, caps lock and CTRL, by something like External Keyboard Helper Pro, but is it possible to remap key shortcut, say, map ctrl+hjkl to arrow key in Android like powertoys in Windows and xkeysnail in Linux?

Keyboard customization in Android could be done via modifying Key layout files (*.kl) or Key character map files (*.kcm).
KL files specify which Android key is produced by each physical key.
KCM files specify how to interpret Android keys and combinations of Android keys with modifier keys.
In your case you need a custom KCM file.
You should start from a KCM file of your language. There are default KCM files for different languages from AOSP sources.
Suppose you use en-US keyboard layout. There is keyboard_layout_english_us.kcm. You should add your modifications with ctrl to H,J,K,L Android keys. Something like this:
key H {
    label:                              'H'
    base:                               'h'
    shift, capslock:                    'H'
    ctrl:                               fallback DPAD_LEFT
}
key J {
    label:                              'J'
    base:                               'j'
    shift, capslock:                    'J'
    ctrl:                               fallback DPAD_DOWN
}
key K {
    label:                              'K'
    base:                               'k'
    shift, capslock:                    'K'
    ctrl:                               fallback DPAD_UP
}
key L {
    label:                              'L'
    base:                               'l'
    shift, capslock:                    'L'
    ctrl:                               fallback DPAD_RIGHT
}

I don't have external keyboard right now so I can't check it.
Note: you can find other Android keys in Generic.kl file (last column).
Next, you need to apply your custom KCM file. There are two ways:

Upload it to your device with root access as described in documentation in "Location" section.
Install an app with your custom KCM file built in. No root required. Then you need to select that layout in keyboard's layout settings.

There is tutorial of how to build such app.
If you don't want to or don't know how to build such app, there is ExKeyMo web app (disclaimer: I'm the developer). Just enter your KCM file in the form and click Download. It will build the app for you.
Update: to verify your KCM file you should use validatekeymaps tool. There is web version of this tool (disclaimer: I'm the developer).
UPDATE:
ExKeyMo web app is not available on Heroku anymore. You'll have to run it locally. See the project's page on GitHub.


text:
How to keep clock on at night on charger
I keep my phone on a wireless charger beside my bed. Until recently, the clock would show on there very dimly with a black background, plus some other notifications and stuff. Recently, it changed to where it just goes fully black. I didn't knowingly change anything. This was not an app, just something native to Android. I'm on version 12, Pixel 3. Any idea how I can get the clock back?
It shows for a while then goes away, like some time in the night. I'm not sure if it's a time out thing, or maybe something that happens when charge goes to 100%.  Or maybe specific to being within the bedtime mode window, although I've scoured those settings.
BTW, this most obvious setting is enabled: Settings->Display->Lock screen->Always show time and info

"the clock would show on there very dimly with a black background" this looks like a screen saver. Could you check on Settings - Display - Screen saver?

It looks pretty much like this:  https://www.sammobile.com/2018/07/17/good-lock-2018-always-on-display  I don't think it's a screen save per se.


text:
What does a crossed out (strikethrough) session, colored in red, specify in Termux?
I've  experienced multiple unresponsive Termux sessions on Oneplus 5T by nothing more intensive than opening around five webpages in lynx (each in their own... again, session in tmux; Ctrl + B, C on the keyboard).
I've waited for several days and the sessions don't appear to recover.
Have the following sessions crashed outright or does Termux consider them to be in some frozen state?

According to the source code, the red strikethrough sessions are sessions that are finished running with non-zero exit code (e.g. session killed).

The TermuxSessionsListViewController class handles the UI for sessions list:

If the session is not running, then it will strikethrough the text
If the session is either not running and has non-zero exit status, then it will be colored in red

TerminalSession sessionAtRow = getItem(position).getTerminalSession();

...

boolean sessionRunning = sessionAtRow.isRunning();

if (sessionRunning) {
    sessionTitleView.setPaintFlags(sessionTitleView.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG);
} else {
    sessionTitleView.setPaintFlags(sessionTitleView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);
}
int defaultColor = shouldEnableDarkTheme ? Color.WHITE : Color.BLACK;
int color = sessionRunning || sessionAtRow.getExitStatus() == 0 ? defaultColor : Color.RED;
sessionTitleView.setTextColor(color);

The TerminalSession class handles the logic, including when it's considered finished running (PID = -1) with its exit code.
/** The pid of the shell process. 0 if not started and -1 if finished running. */
int mShellPid;

/** The exit status of the shell process. Only valid if ${@link #mShellPid} is -1. */
int mShellExitStatus;

...

/** Cleanup resources when the process exits. */
void cleanupResources(int exitStatus) {
    synchronized (this) {
        mShellPid = -1;
        mShellExitStatus = exitStatus;
    }

    ...

}

...

public synchronized boolean isRunning() {
    return mShellPid != -1;
}

/** Only valid if not {@link #isRunning()}. */
public synchronized int getExitStatus() {
    return mShellExitStatus;
}

...

@SuppressLint("HandlerLeak")
class MainThreadHandler extends Handler {

    ...

    @Override
    public void handleMessage(Message msg) {

        ...

        if (msg.what == MSG_PROCESS_EXITED) {
            int exitCode = (Integer) msg.obj;
            cleanupResources(exitCode);

            String exitDescription = "\r\n[Process completed";
            if (exitCode > 0) {
                // Non-zero process exit.
                exitDescription += " (code " + exitCode + ")";
            } else if (exitCode < 0) {
                // Negated signal.
                exitDescription += " (signal " + (-exitCode) + ")";
            }
            exitDescription += " - press Enter]";

            byte[] bytesToWrite = exitDescription.getBytes(StandardCharsets.UTF_8);
            mEmulator.append(bytesToWrite, bytesToWrite.length);
            notifyScreenUpdate();

            mClient.onSessionFinished(TerminalSession.this);
        }
    }

}


text:
how to move apps to SD card on Galaxy A15
apps are consuming a lot of space on my internal storage so I decided to buy a new memory card to where I intend to migrate all the apps to installed on internal storage to it but then I have tried selecting all the apps and then check if there is a menu with the option to move the apps to SD card but the android 11 OS does not even show any kind of menu on selecting multiple apps. How do I move apps to SD card to save on space?


text:
Is my data secure after factory reset with NO password SET
I had one plus 8 pro brand new phone Android 10. I sold the phone in a week's time. I never set any password or screen lock. I understand android 10 uses file-based encryption. I just did a factory reset and sold the phone. can the buyer retrieve by data though I have not set the screen password? will the file-based encryption take care?

The file encryption on Android 10 is used no matter if you have set a lock screen password or not. The file encryption does incorporate the password but an additional secret random key is also required for accessing encrypted files.
This key is erased on factory reset, so encrypted files become impossible to decrypt.

Thanks for your reply . Makes sense. That means my data is completely erased. And and the buyer can never retrieve. The buyer is a local mobile shop who works on software.

Just for clarity, the factory reset deletes all the user files, correct? (Yes, some of their bytes could remain on non-volatile storage regardless, but in this case, encrypted.)

@RockPaperLz-MaskitorCasket AFIK the user data partition is simply reformatted and the all encryption keys are erased and new keys are generated. This mostly all user data will remain but as the encryption keys are gone it can not be recovered.

I just heard from oneplus the phone manufacturer that encryption works only when the screen password is set. Please help

Do the controllers for the non-volatile storage chips in most Android devices perform TRIM-like functions as with SSDs?  Also, do they do anything like "Read zero after TRIM"?  If so, data recovery would likely require special equipment.  See https://superuser.com/questions/1749575/why-is-this-data-seemingly-gone

@Dave That is a very old info. Before Android 6 or 7 this was true.

@Robert Can you help me with any article on oneplus 8 pro where I confirm the phone is encrypted and uses file-based encryption? Also, I need to understand if they use 128-bit or 256-bit encryption. Sorry, I know I am asking too much. I just to know if my understanding is correct.

@Dave The only way to confirm encryption is to verify the encryption by performing the decryption manually. So you would need a rooted device. The most problematic part is how to extract the master encryption key for user and non-user data (those files that are accessible before first user logon). With root permissions you may be able to extract some intermediate keys from one of the processes memory. This is also the only way to verify AES256 is used because from encrypted data you can not tell this. But I am not an Linux encrypted file-system expert. So I can't help you on that topic.


text:
How can i tell if my phone has ever been rooted?
Banking apps can be not running when they think the phone is not safe even the phone is “not” rooted .
And factory reset or OTA update after rooting can make root access botched. Just like unrooting phone. So root checker apps can’t detect rooting after factory reset.
Then can i tell whether my phone has ever been rooted before factory reset without checking knox?
(Cuz broken knox doesnt necessarily mean rooting.)
My phone is reset . Root checking apps say its not rooted. But banking apps dont work.
Is thery any way to check..?

Factory reset does normally not remove root. Root my not work anymore because of missing app but the system partition is still modified and thus a banking app will refuse to work as the device state is not genuine. Only installing a full firmware may restore the original state (not sure about Samsung phone as rooting shout permanently trigger the fuse that disables Knox).

Yes,,, so i just want to know system partition has ever been modified..  Honestly… I am worrying malware app could root my phone . Cuz my phone got factory reset by malware app suddenly. So what i have now is reset phone .Thats why i want to know if my phone was rooted.. i used data recovery program after reset So i think thats maybe reason banking apps dont run now . But not sure the name of program so cant check if that programs have rooting feature.So i just want to know if my phone has ever been rooted before reset. worrying i cant even sleep i dont usethat phone anymore just want to check


text:
tablet doesn't turn on, does it need a backup battery?
I would like to know if the tablet needs a backup battery to start (the device does not turn on anymore)
It is an old device.
thanks in advance

Did you try holding the on/off switch for about 8 seconds?

How old is the tablet? When was the battery charged for the also time?


text:
disable keyguard, statusbar and navigation bar on AOSP Android 11 system
How do we disable the Keyguard to appear on the device after the boot up on Android 11 onwards.
Also how should I remove the Status bar and navigation bar to appear from the device always.
I do not want to add any Full screen flags through my applications. I want the screen to be in kiosk mode always.
Are there any flags or properties in AOSP Frameworks or device make-file which we can override to achieve this.

You can hide navbar and status bar by setting the height of these dimens to 0dp.

status_bar_height_portrait
navigation_bar_height
navigation_bar_height_landscape
navigation_bar_width

For disabling the keyguard by default, you can set the following bool in Settings Provider to true

def_lockscreen_disabled

Hello. How to set these dimensions that you mentioned above? I'm asking the procedure that is to be followed.

You have to edit these in frameworks_base overlays or define your own TARGET_PRODUCT_OVERLAYS.


text:
Process has died: cch CACC
I have a 32-bit app that is crashing on an LG-H872.  When I look at the logcat output, I see
I ActivityManager: Process my.app (pid 18816) has died: cch  CACC
W cr_ChildProcessConn: onServiceDisconnected (crash or killed by oom): pid=18816

What does cch  CACC mean?

This log is posted when a process is killed due to out-of-memory (OOM). It is accompanied by 2 codes: the OOM adjustment level and the process state.
The relevant code from ActivityManagerService:
reportUidInfoMessageLocked(TAG,
  "Process " + app.processName + " (pid " + pid + ") has died: "
  + ProcessList.makeOomAdjString(setAdj, true) + " "
  + ProcessList.makeProcStateString(setProcState), app.info.uid);

The following is the list from the AOSP source code for the OOM adjustment level and the process state.
OOM adjustment level

Message
Code
Explanation

cch
CACHED_APP_MIN_ADJ
This is a process only hosting activities that are not visible, so it can be killed without any disruption.

svcb
SERVICE_B_ADJ
The B list of SERVICE_ADJ -- these are the old and decrepit services that aren't as shiny and interesting as the ones in the A list.

prev
PREVIOUS_APP_ADJ
This is the process of the previous application that the user was in. This process is kept above other things, because it is very common to switch back to the previous app.  This is important both for recent task switch (toggling between the two top recent apps) as well as normal UI flow such as clicking on a URI in the e-mail app to view in the browser, and then pressing back to return to e-mail.

home
HOME_APP_ADJ
This is a process holding the home application -- we want to try  avoiding killing it, even if it would normally be in the background,  because the user interacts with it so much.

svc
SERVICE_ADJ
This is a process holding an application service -- killing it will not have much of an impact as far as the user is concerned.

hvy
HEAVY_WEIGHT_APP_ADJ
This is a process with a heavy-weight application.  It is in the background, but we want to try to avoid killing it. Value set in system/rootdir/init.rc on startup.

bkup
BACKUP_APP_ADJ
This is a process currently hosting a backup operation.  Killing it is not entirely fatal but is generally a bad idea.

prcl
PERCEPTIBLE_LOW_APP_ADJ
This is a process bound by the system (or other app) that's more important than services but not so perceptible that it affects the user immediately if killed.

prcm
PERCEPTIBLE_MEDIUM_APP_ADJ
This is a process hosting services that are not perceptible to the user but the client (system) binding to it requested to treat it as if it is perceptible and avoid killing it if possible.

prcp
PERCEPTIBLE_APP_ADJ
This is a process only hosting components that are perceptible to the user, and we really want to avoid killing them, but they are not immediately visible. An example is background music playback.

vis
VISIBLE_APP_ADJ
This is a process only hosting activities that are visible to the user, so we'd prefer they don't disappear.

fg
FOREGROUND_APP_ADJ
This is the process running the current foreground app.  We'd really rather not kill it!

psvc
PERSISTENT_SERVICE_ADJ
This is a process that the system or a persistent process has bound to, and indicated it is important.

pers
PERSISTENT_PROC_ADJ
This is a system persistent process, such as telephony. Definitely don't want to kill it, but doing so is not completely fatal.

sys
SYSTEM_ADJ
The system process runs at the default adjustment.

ntv
NATIVE_ADJ
Special code for native processes that are not being managed by the system (so don't have an oom adj assigned by the system).

(integer number)
(none)
Value when it is below the lowest defined level (NATIVE_ADJ = -1000)

Process state

Message
Code
Explanation

PER
PROCESS_STATE_PERSISTENT
Process is a persistent system process.

PERU
PROCESS_STATE_PERSISTENT_UI
Process is a persistent system process and is doing UI.

TOP
PROCESS_STATE_TOP
Process is hosting the current top activities.  Note that this covers all activities that are visible to the user.

BTOP
PROCESS_STATE_BOUND_TOP
Process is bound to a TOP app.

FGS
PROCESS_STATE_FOREGROUND_SERVICE
Process is hosting a foreground service.

BFGS
PROCESS_STATE_BOUND_FOREGROUND_SERVICE
Process is hosting a foreground service due to a system binding.

IMPF
PROCESS_STATE_IMPORTANT_FOREGROUND
Process is important to the user, and something they are aware of.

IMPB
PROCESS_STATE_IMPORTANT_BACKGROUND
Process is important to the user, but not something they are aware of.

TRNB
PROCESS_STATE_TRANSIENT_BACKGROUND
Process is in the background transient so we will try to keep running.

BKUP
PROCESS_STATE_BACKUP
Process is in the background running a backup/restore operation.

SVC
PROCESS_STATE_SERVICE
Process is in the background running a service.  Unlike oom_adj, this level is used for both the normal running in background state and the executing operations state.

RCVR
PROCESS_STATE_RECEIVER
Process is in the background running a receiver.   Note that from the perspective of oom_adj, receivers run at a higher foreground level, but for our prioritization here that is not necessary and putting them below services means many fewer changes in some process states as they receive broadcasts.

TPSL
PROCESS_STATE_TOP_SLEEPING
Same as PROCESS_STATE_TOP but while device is sleeping.

HVY
PROCESS_STATE_HEAVY_WEIGHT
Process is in the background, but it can't restore its state so we want to try to avoid killing it.

HOME
PROCESS_STATE_HOME
Process is in the background but hosts the home activity.

LAST
PROCESS_STATE_LAST_ACTIVITY
Process is in the background but hosts the last shown activity.

CAC
PROCESS_STATE_CACHED_ACTIVITY
Process is being cached for later use and contains activities.

CACC
PROCESS_STATE_CACHED_ACTIVITY_CLIENT
Process is being cached for later use and is a client of another cached process that contains activities.

CRE
PROCESS_STATE_CACHED_RECENT
Process is being cached for later use and has an activity that corresponds to an existing recent task.

CEM
PROCESS_STATE_CACHED_EMPTY
Process is being cached for later use and is empty.

NONE
PROCESS_STATE_NONEXISTENT
Process does not exist.

??
(none)
Default value when the code is not in the list.


text:
Can't add widgets to home screen on Huawei P30 Pro
I have a Huawei P30 Pro on Android 12. I normally have a large clock on my home screen, but it was somehow removed and I can't add it back.
I click/tap and hold and I don't get any options to add a widget or anything for the fact. I've searched and all articles say to tap and hold to add a widget, but nothing appears to me.
How to add a widget to the home screen?

Select a screen where you want to add your (lost) widget.
Pinch with 2 fingers (move them as you would to zoom this screen out).
In the bottom of your screen will appear some icons.
Tap on the Widget icon. The bottom row of icon will change to (scrollable) row of icons of your widgets.
Select your lost widget.

This instructing video may help you, too.


text:
Camera driver in kernel
As far as I know.. 2 programs cannot access to camera hardware at sametime.
but if developer has control in kernel or module or camera hardware(which could be modified by him)
and when developer access camera hardware directly and seeing through camera(just seeing, not controling focus, light etc..) in kernel level
can user also use camera app at sametime?
I searched, and found some say its possible if modify camera driver.
*Assuming user installed developer’s custom kernel or ROM


text:
Samsung Galaxy A22 5G never shows 5G
My 'Samsung Galaxy A22 5G' never shows "5G" on its status bar, despite being where 5G coverage is proven (checked on another 5G smartphone of mine).
It only shows "4G+".
https://www.gsmarena.com/samsung_galaxy_a22_5g-10873.php lists this phone as having 5G bands: 1, 3, 5, 7, 8, 20, 28, 38, 40, 41, 78, 79 SA/NSA/Sub6
Entering my phone's IEMI into https://www.imei.info only shows the following: IMEI.info: LTE-FDD: 800, 900, 2100, 2600 and IMEI.info: LTE-TDD: 2300, 2500, 2600:

I verified that its 'Network mode' is set to 5G/LTE/3G/2G (auto connect).
I also tried resetting its network settings via General management > Reset > Reset network settings.
Still, it only shows 4G+. It never shows 5G.
Any idea why?

What bands are used for 5g by your network provider? It may be also relevant if your network provider uses 5g standalone or non-standalone. The latter uses 5g just as speed enhancement for 4g.

@Robert 700MHz, 2.6GHz, 3.5GHz

You need to buy a phone that is meant for your country. You cant just buy one at random from ebay and be certain that it will work in your country or with your provider. They are built with different antennae and firmware.

@RohitGupta I actually bought it brand new in a reputable local store in my country.

Based on the information you provided so far, it looks like your 5G phone (800MHz, 900MHz, 2.1GHz, 2.3GHZ, 2.5GHz, 2.6GHz) is incompatible with your network provider's 5G (700MHz, 2.6GHz, 3.5GHz).
In general:

LTE-FDD
LTE-TDD
5G

700 MHz (B12, B13, B14, B17), 850 MHz (B5), 1800 MHz (B3), 1900 MHz (B2), 2100 MHz (B1), 2600 MHz (B7)
2300 MHz (B40), 2500 MHz (B41), 2600 MHz (B38, B39)
Sub-6 GHz bands (e.g., 600 MHz, 2.5 GHz, 3.5 GHz), mmWave bands (e.g., 28 GHz, 39 GHz)

In other words:

Your Phone's LTE
Your Network's Provider 5G

800MHz, 900MHz, 2.1GHz, 2.3GHZ, 2.5GHz, 2.6GHz
700MHz, 2.6GHz, 3.5GHz

The only common frequency is 2.6GHz, but on your phone it is listed under LTE, so it looks like this is the reason it only displays 4G+ .


text:
How do I know if files have been copied from my phone to a laptop via USB. Knowing I gave permission for file transfer
I connected my phone to someone's laptop so they could give me a certain file but I'm suspecting they used the opportunity to copy files from my phone to their device. Is there any chance a log is stored containing  any info about the process and what files were accessed?
Thank you.

Android only had logcat logging buffer a cyclic buffer of configurable size so old entries are overwritten after a certain time. But I am not aware that MTP transfers are logged into logcat. Next time use Bluetooth to receive a file...


text:
Assign a default app to a file type in Android 11
Is it possible to assign a default app to a file type in Android 11?
In Android 7 I had no problem to assign e.g., .mp3 file type to a particular application (e.g. to Laya Music Player).
Now, in Android 11 I don't see any way how to reach it. If it is possible, please tell me, how.
EDIT:
To be more specific, I want in arbitrary file manager:

See the icon of the application chosen by me (e.g. Laya Music Player) near every .mp3 file.

After tap (or double-tap) on to be opened in that application (Laya Music Player).

This is not the fully satisfactory solution, but the beeshyams' comment under the question suggests that Android most likely doesn't provide this feature anymore.
Some file managers, as Total Commander or MiXplorer have an option to

assign different file extensions (as .mp3 or .pdf) to an appropriate, selectable application,
save those assignments for future use, and
edit / remove every such individual assignment.

Unfortunately, such assignments are only internal ones, i.e.

those file managers will open the appropriate applications by tapping / double-tapping on the file name,

but other applications (and Adroid OS, too) will not change their appearance and behavior.


text:
View PC notifications on phone
I know that this has been asked before here, but I don't have sufficient reputation to post a comment here and ask if there is an update applying to Windows 10/11. I am looking a solution for the exact same question: How to view Windows notifications on my Android phone? May be there was no unified method of showing notifications on Windows at the time linked question has been asked, but as Windows 10/11 are designed with tablet mode in mind, there is a chance that Microsoft has made such a unification. I have searched Google Play for an app, found only one requiring an open browser window, which isn't what I'm looking for. Anyone having a solution for this?

Hello. As you are aware your question is a duplicate of the linked question. In a situation where you find a question which matches your problem but the answers there do not seem relevant or helpful to you, than a good approach in such a situation is to offer a bounty on that question. To offer a bounty, you would need to gain reputation points so that you can spend them for offering the bounty. Our [help] center can get you started with that. Good luck. :)


text:
How to monitor network traffic on Android with root access?
I want to monitor network traffic on my rooted Android device.
I found an app called "Network Log" (repo), but it's outdated, designed for old Android versions, and has some bugs (but not critical). The app captures every packet using iptables, so it requires root.
Can the approach be replicated without an app? Otherwise, are there other apps?

That would be a fitting question for our sister site Sorftware Recommendations – see: Where to ask for app recommendations?

Does this answer your question? How do I enable Mobile Data only for select apps on a rooted phone?


text:
How can I make Firefox (or any other Android browser) automatically redirect me/automatically change URLs?
There are at least two cases where I'd like my phone's browser to automatically replace all URLs that fit a pattern: www.reddit.com/XXX --> old.reddit.com/XXX, and XXX.fandom.com --> XXX.breezewiki.com. I assume this can't be that uncommon a request. Ideally this would work in the os's built in google results, firefox, chrome, etc. but I could live with it only working in Firefox. I can't find any tool or FF extension to do this on Android at all. Does such a tool exist? I'm on a Pixel 6a if it matters.

I haven't used Firefox on Android for a little bit (been meaning to try it again).  Can it use Web Extensions?  If so, you can use the excellent Redirector Web Extension.

@RockPaperLz-MaskitorCasket i'm afraid not :( i'm using Redirector on desktop, but there's no version of it for the Android app. (weirdly, it HAS a page in the /android/ directory of the add-ons site, but my device says it's incompatible and nothing in the docs mentions android so i think the listing is just incorrect. https://addons.mozilla.org/en-US/android/addon/redirector/ )

Just to clarify, Firefox for Android does not currently support the majority of Firefox desktop Web Extensions?  IIRC, Firefox for Android does support about a dozen of them, but it might still be limited to just those specific extensions.  I still really want to spend more time looking into more details on this topic... but time has been limited.


text:
Why does my stock Samsung Galaxy phone/tablet lack some features compared to other Samsung Galaxy models?
I have Samsung Galaxy M12 on stock Android 12. When I'm reading about Samsung features on the internet (including samsung-related questions here), sometimes I found that I don't have such features on my phone, like Secure Folder.
What are the possible reasons for the lack of features?

Possibly related: What Are The Differences Between Samsung Firmware Version For Countries In The Same Region?

There are at least 4 possible reasons:

Device model
One UI Core
Android Go
Android versions

Device Model
Newer Samsung phones and tablets tend to have more features despite having the same Android version (One UI version). Example:

Dual recording: record the selfie front view video and the main rear view video as separate files: S22, S23.
Edge Lighting: Note10, S20.

One UI Core
One UI is Samsung's customization on Android OS available since Android 9 Pie for the Samsung Galaxy series. While it packs many additional features outside of AOSP, there is also One UI Core, the stripped-down version of One UI usually found on budget models such as Galaxy M and A series.
Some known missing features:

Bixby (Bixby Routines, Bixby Vision)
Easy Mode
Edge Panels & Edge Lighting
Director's View and Dual recording
Game Launcher
Good Lock
Link to Windows
Samsung Knox Security
Samsung Health
Samsung Pay/Pay Mini
Secure Folder

Android Go
Android Go is an Android variant optimized for devices with low memory spec. Although not Samsung-specific, some features may be disabled:

Notification Access
Do not Disturb
Picture-in-picture
VR helper services
Zen mode

Android versions
Android versions also affect which features are available on the device, although this is also not really Samsung-specific. (Since there are too many differences, please refer to Wikipedia for the summary of each version)

References:

One UI Core

MUO - Samsung One UI vs. One UI Core: What's the Difference?
Sammy Fans - Samsung One UI vs One UI Core: Here’s the difference
Guiding Tech - Samsung One UI vs One UI Core: What’s the Difference

Android Go

Why is the Android Go's performance better?

Need further research: CSC (Country Specific Code)? Feel free to post another answer related to this.

Regarding removal of Smart View (need further researched).

Possible addition: Notification history (One UI Core? Device Model?)


text:
Android 11 file system and cloud storage
I have documents stored in the cloud, and I used to have a use case like this:

I edit documents on a PC
These documents are automatically uploaded to the cloud
I download documents to my phone via the application

But after buying a smartphone on Android 11, I ran into a problem that it was no longer possible to download files to the folder I needed because of updates in the file system, but the application still allows you to download to the Downloads folder, but the whole trouble is that the application stopped seeing files with the same name and offering to "Replace" them"or "Skip", but simply duplicates each time adding an index at the end of the name, which negates the use of the cloud, because you constantly have to keep in mind that after uploading documents you need to go in and delete all the old files (and there may be a lot of documents).
Is there any solution so that when downloading files, it is possible to replace files, and not duplicate them

If using a third party app is OK for you, use folder sync app. Firstly, you can set up to download into your desired folder instead of default "downloads" folder. Second, it has a rich set of options that give you good flexibility in syncing to/from cloud//I use it extensively and even use an automation app to sync without user interaction// consider [edit]ing your question to make it clear-for instance I don't know what "application" you are talking about "trouble is that the application stopped"

Thirdly, You won't need to alter your work flow by deleting cloud backups just to get right files synced to your device.


text:
Create Google passkey for Web authentication
Webauthn passkey support is mainstream as of Chrome 108.
How do I generate a Google passkey using my android device?

You'll be automatically prompted to create a passkey when visiting a Webauthn site or using an app that supports it.

If you want to kick-start the process:

Open https://www.passkeys.io/
Enter your email address
Enter the OTP sent to your email address
Tap "continue" when you see a prompt similar to this:

To test:

Logout
Login again and notice you don't need to enter a password


text:
Can't clean app caches on Xiaomi Mi Note 10
On Xiaomi Mi Note 10 I can't clean the caches of apps.
A workaround for cleaning the caches that worked partially was to make the Google PlayStore display the warning about missing disk space for an app update (by filling all available disk space) and clicking "Zum Speicherplatz" (go to disk space) then clicking on "Data in cache" to delete that cache. However, that does not delete all the app caches, only what is detected by the playstore and cache-cleaning apps don't work at all.
When I try deleting the app caches with a cleaning app, it runs without an error but no disk space is actually freed up afterwards. Also it displays that lots of system app each have a cache of the same size (for example 50 MB each and 1 GB overall) and doesn't display the actual apps with large caches, but this may vary. It does not run without an error with the cleaning app "1 tap cleaner" which doesn't work at all because the buttons are greyed out when it tries doing the below automatically.
When I go to manage apps and open an app there, the "delete data" (and the "force quit") button(s) are disabled (greyed out) and "disk space" displays "0,00 B". On a previous phone the same apps also had a lot of data in the cache but I could always delete them manually and with cache cleaning apps.
Here's how I know that the caches of some apps are larger and that they haven't been deleted (beyond that there should be more disk space left): there's a stock app "Deep cleansing" ("Tiefenreinigung") and it shows which apps take up a lot of disk space (when clicking on "Apps" on the page). The buttons for the apps are also greyed out for but I could delete their large caches on another Android phone. Screenshots:

An app taking up a lot of storage space with its cache that is not shown in the first screenshot is the stock Gallery app by Mi UI which can't be deinstalled and also has the delete data button greyed out. At least that what a scan with SD Maid shows.
When I go to "Deep cleansing" ("Tiefenreinigung") app data at the bottom only shows <10 MB that it could remove.
The phone has the latest updates but I generally decline any prompts it shows for giving some permissions to private data (however it may be that I once accidentally pressed allow when installing an app because I think it used to show two prompts asking for private data permissions after installing any app but now it shows only one; if there's a way to check and revoke let me know). I'm having this problem for quite a while now.
I don't know why it's legally allowed to prevent users to maintain usable phones and be able to delete their caches.
Do other users of that phone have the same problem? So far the only thing I could find was comments here which suggests few other users also experience this.
What's causing this problem and what else to try?

Try the app cleaner option using this app. Enable options under "generic" for deeper cleaning

Doesn't work, it doesn't even detect these apps caches in the app cleaner and I don't know what you mean with "enable options" or "generic", I went through the settings to search for that and gave the app the needed permissions. It should also work with other app cleaners and with stock Android itself anyway. When I open some of the apps in app control there is no option to delete its cache (it does detect the large files there and they are in /storage/emulated/0Android/data/com.appname).

Sorry to hear that. Anyway I meant that you could fiddle with the settings here // Maybe the issue is with Xiaomi implementation and I am not familiar with that

Thanks for clarifying, these settings seem useful. However, one needs SD Maid Pro to delete caches (for its app cleaner function). I certainly won't buy such an app, especially when this functionality should be provided by stock Android and when it doesn't even show all app caches. I reran its scan after fiddling with the settings and it still shows basically the same results with most apps missing but stock Gallery showing (which doesn't show in other cache cleaning apps).


text:
How to revoke all authorizations (to private data) given to Xiaomi in MIUI?
On Xiaomi Mi Note 10 there are three prompts asking for authorizations:

When opening Bereinigung (the stock cleaning app; I tried using that because I still can't delete caches with Xiaomi Mi Note 10)
Two prompts when installing any new app (I think it used to be two)

I accidentally pressed confirm to the prompt when opening Bereinigung (shown in the left/first screenshot) and I think I accidentally pressed confirm to one of two prompts after installing an app (now it only shows one prompt when installing an app shown in the right/second screenshot).
The text says something like (it's in German in the screenshot):

In order to use the basic features of this service, you must agree that Xiaomi will collect, process and use your personal data

and

Grant authorization
Virus scan is provided by Xiaomi. To be able to use this feature normally, you must allow Xiaomi to collect, process, and use your personal information (including the data related to your usage of this feature which will be used for content recommendation) in accordance with the Privacy Policy

I didn't actually meant to press confirm but the button appeared where I meant to press another button just before the prompt showed up. And I don't even want to use these features either.
I'd like to revoke these authorizations, how can I do so?

I checked "Authorization & Revocation" in the settings, but there

it does not display the Bereinigung app or general app install related authorizations but just a few apps that I haven't disabled so far: "Updater", "Updater for System-Apps" and "Security"
authorizations can't be revoked for the few remaining app: when pressing revoke it just loads "Revoking authorization" and then displays "Could not revoke authorization"; and for the apps that this worked it required retrying it many times.


text:
What does this "gear with a ladybug" icon mean on Samsung devices?
Samsung Galaxy Tab S8 Ultra, this icon (a gear with a ladybug? The sun holding the letter T?) suddenly appeared on my "swipe to unlock" screen.

Now the touchscreen is unresponsive and can't enter recovery mode. The only thing I can do is a soft reset.

Possibly similar issue: What is this S-outline with 2-dot eyes icon on Samsung lock screen?

It's a notification icon for "USB for file transfer". I see it only if the USB cable is plugged in between the phone and the PC, while I restart the phone.

Reference: The Complete Guide To Icons on Android Devices

It can be also a notification for Android System, e.g. after the device restart while finishing a system update.


text:
How to fix Samsung Galaxy S3 to boot successfully?
I'm using Samsung Galaxy S3 GT-I9300. Recently, I installed an app and the problem started. The phone started to crash. I had to restart the phone to work but the problem just repeated. But now, when I want to boot the phone, it just shows me the Samsung animating logo with a blue LED light, but it doesn't boot successfully and stays on showing the logo.
I tried many times to wipe the factory data, but nothing is fixed.
Please tell me what to do.

if stock rom doesn't boot on factory reset this sounds like emmc wear-out, unrelated to last app installed. try to re-flash stock rom, or maybe install custom rom


text:
Is it possible to make Android Emulator appear as an USB device on my Linux machine?
I need to access both ADB and MTP from one emulated device. May be there is some ready-made solution that can emulate android device via usb device emulating?
All that I found is an android kernel gadget https://android.googlesource.com/kernel/common/+/59c75bcf603f355ff34282422e8c3f2165b9d5f2/drivers/usb/gadget/android.c
It can be useful, but it's not the easiest way to do that.

You can not access ADB via MTP. MTP is a lightweight/limited file transfer protocol (most user would call it crippled). It is limited to one operation at the same time. ADB is an universal protocol for accessing Android devices via USB. It supports shell access, file transfer, port forwarding and so on. It is multiplexed and supports all features at the same time with multiple commands.

Yes, you're right, I messed up. I corrected the question. I am interested in emulating a device that will be able to work with two protocols via USB. Yes, it is very important that the device emulates connections over both protocols via USB.


text:
Can I restore backup in WhatsApp from first Gmail account when currently my data is being backup in the other?
All my data was backed up in my Google account, then I login WhatsApp in my other mobile and backed up next data in other second gmail account. Is there any way way to restore data from first account too?

Normally WhatsApp makes local backups too. I assume when you say other mobile you are using WhatsApp on a second phone, so on the first phone you might be able to open WhatsApp and go to settings, backup and tap make a backup now. It should make a local backup to your internal storage or sdcard if you have one under a folder named WhatsApp. The backups are encrypted so you can't just modify them. The key is stored in the app data. There is information on how to merge WhatsApp databases on XDA forums but it requires root.


text:
Does anyone else have to re-register their fingerprints every few days?
Not an Android question exactly, but has happened on every Android phone I've had including my current phone, a Pixel 7 Pro.  My fingerprint unlock stops working after a few days and I have to reregister my fingerprints to get it to work again.  Not specific to any one finger, happens on all fingers.  It is not forgetting the fingerprints, they are still showing as saved.  I think the subtle variations in dryness of my skin from week to week cause them to become invalid but I am not sure.  Does anyone else have this problem?
Note that this is not affected by my fingers being wet or dry.  I have also tried registering my fingerprints when my skin is at different levels of dryness (e.g. summer and winter profiles), but that does not seem to solve the issue either.

Do you use makeup?  Or do you work with chemicals like cleaners or developing agents for film photography, anaethetic agents, or paints ?  \

No, I don't use makeup.   I don't normally use chemicals and when I do I wear gloves.  I am a software engineer so I type a lot with my fingers but that is about it.

Maybe you can try a couple things, like wash off the screen and your hands and try registering again, or maybe you can try to register one finger multiple times. From experience the software learns to recognise the biometric unlock methods when using them, so usually when I set my fingerprint I lock the phone, use biometric unlock, then lock the phone and unlock again and repeat that a couple time wich usually makes it read my finger better. Maybe you are trying to unlock it in a way that's different to how you held the phone while registering.
I don't see how it would forget the fingerprint data. Maybe you can just try to unlock using your finger a bunch of times in a row for a couple days and see if it still stops recognising your finger. I hope it helps.

My hands and screen are clean when I register the fingerprints.  I have tried registering the same fingerprints multiple times.  Honestly my suspicion is that my fingerprints are more variable than the average user due to my skins tenancy to dry out and crack but I am not sure.  My mother has the same dry hands as me and has similar issues with her iphone.


text:
Quick Change Profiles App
I used to use an app called quick profiles on my old phone, but can't find this or anything similar on the play store for my new phone.
I used it to switch between different profiles for night home and work. It would change the screen brightness, volume, and vibrate setting for each profile.
Anyone know of something similar that's still available today?

Sounds similar to my old One Plus phone which had such customization. Sadly on my non-rooted stock Google Pixel 2 phone the closest is 'Digital Wellbeing'.


text:
Why won't my mobile data work in some countries that are covered by my plan?
I have a moto g(7) power with an international T-Mobile plan that is supposed to allow me to use my phone in most countries around the world without needing to get new SIM cards. This works most of the time, but I've noticed a few countries not behaving correctly. What normally happens is that I'll get a text message from T-Mobile saying "Welcome to X country" and explaining that I have 5 gigs of high-speed data per month for that country. Then once the high-speed data runs out, I can still use unlimited low-speed data for the rest of the 30-day cycle. But for the countries where this doesn't work, I'll still get the text message that confirms the country is covered by my plan and I'll see that I have cell signal but when I open a browser or try to use messaging apps it says there's no Internet.
Here is how it worked in Australia and New Zealand for example:

✅ I get a text confirming that I have coverage in the country
✅ The cell signal icon indicates a strong connection
✅ I am able to use mobile data

Here is how it's working in Fiji:

✅ I get a text confirming that I have coverage in the country
✅ The cell signal icon indicates a strong connection
❌ I am not able to use mobile data

Curiously, it seems that I am able to make phone calls and use SMS in Fiji, and I guess that's because those things are considered by phone plans to be different from mobile data.
At first I thought maybe the problem was related to the 5 gigs of high-speed data being expired, but the problem still wasn't solved when the cycle ended and my high-speed data was renewed. I've tried using mobile data in Fiji both with and without high-speed data available and the problem is the same in both cases.
T-Mobile customer support didn't seem to understand the problem unfortunately. Here are the troubleshooting steps they ran me through:

I reset the phone's network settings multiple times
I restarted the phone multiple times
I enabled international roaming

None of that worked, of course. What is causing this problem, and is there anything I can do to fix it?

Try shutting down the phone, taking the SIM out, inserting it after a minute or so and power up the phone. Logic:Your device will be re-registered on the local network (supported by your carrier) and this may help

You might want to check the APN setting.

This ^^^ and/or try selecting a different network. Not all providers have roaming contract/agreement with your provider.

I have tried your suggestions with no luck. I guess maybe T-Mobile promises that a country is covered even if there are no networks in that country they support

Hold on, I was finally able to get it working by turning off "automatically select network." I guess T-Mobile supports Digicel and not Vodafone. Someone post that as an answer so I can accept it!


text:
Can an Android device connect to the internet before decrypting the storage?
Can an Android device connect to the internet before the user enters their decryption password? I assume it cannot connect to saved WiFi networks, as these should be encrypted, but how about mobile networks?

Yes, it can. Android uses File Based Encryption which has Device Encrypted storage that encrypts device data and non-personal user & app data without screen lock credentials so that this data can be decrypted in Before First Unlock (BFU) state. Device Encrypted (DE) storage includes data like WiFi passwords, Bluetooth connections, alarms, theme, wallpaper, apps & device settings. Apps can also mark some of their data to be encrypted by DE so that they can operate in BFU state. Most of your personal and app data is encrypted under Credentials Encrypted (CE) storage which requires screen unlock credential for decryption.
Mobile networks and SIM card does not depend on device encryption. Only /data partition is encrypted. /system and /vendor partitions kickstart the hardware components. As soon as their firmware is loaded from /vendor after verified boot checks, modem starts searching for mobile networks and then SIM card authenticates with the station. You will receive incoming calls and SMS but you won't be able to see their contact names. For security reasons, the incoming SMS is not shown in BFU state either. As device settings are decrypted at BFU state, your device knows your preferred connections to choose from. From Android 12 onwards, you can disable 2G connections.
Android 12 devices support Resume on-reboot feature which schedules reboot for OTA updates. This requires an internet connection before and after the scheduled reboot so that the device can connect to Google servers to obtain the encryption key which is used to fully resume the device without having you unlock it.

Comments are not for extended discussion; this conversation has been moved to chat.


text:
How can I view which app has the permission to turn on and off the location services in Android?
How can I view which app has the permission to turn on and off the location in Android? I use a Samsung Galaxy S9 phone with Android 10.

All apps with android.permission.WRITE_SECURE_SETTINGS can turn on / off the location.

@IrfanLatif thanks! How can I see which app have android.permission.WRITE_SECURE_SETTINGS?

You can use any app that shows the complete list of permissions of installed apps.

As an answer to your comment, you can use PermissionManagerX. If your device isn't rooted, you can grant elevated privileges using ADB (instructions in app help). But elevated privileges are not required if you only want to see the list of permissions.
Search for android.permission.WRITE_SECURE_SETTINGS permission to get the list of apps:

To view also the system and framework apps, disable exclusion filters in drawer -> Exclusion Filters.

try settings > privacy > manage permissions > location>
you should be displayed a list of the apps
Always allowed >
Allowed during the use>
Not allowed>
I suggest you tick the three horizontal dots on up right side of the screen to display the system processes also
and if if you don't know wtf that specific service is just make a search on google, that will keep you entertained for a while, it does for me hahah!

This answers "which apps have the permission to use the location services", not "which apps have the permission to turn on and off the location services".


text:
Disconnected phone while installing a ROM on Samsung Galaxy S10
I tried to install a ROM in my Samsung Galaxy S10 5G, but after a minute, my phone suddenly disconnected from my PC and the following message appeared:

(이 휴대전화의 부트스트랩 로더 잠금이 해제되어 있고 소프트웨어 무결정이 인증되지 않았습니다. 이 휴대전화의 데이터가 손상될 수 있습니다. 중요하거나 민감한 정보는 여기에 저장하지 않는 것을 권장합니다. 계속하려면 전원 버튼을 누르세요)

Google Translate:

(This phone's bootstrap loader is unlocked and software integrity has not been authenticated. Data on this phone may be compromised. We recommend that you do not store any important or sensitive information here. Press the power button to continue press)

Since then, I can't get into recovery mode again. I tried several ways to open the recovery mode to start over the installation but doesn't work. Now I don't know what to do?

you need to enter download mode and flash with Odin3. try to avoid upgrades if you have any plans on customizing https://android.stackexchange.com/q/232732


text:
Which circumstances allows 2 phone icons to be displayed on the notification bar?
I'm using Motorola Moto G50 on Android 12. I noticed that there are 2 phone icons on the notification bar, one on the left and the other beside the clock icon on the right.

How come? Could this be the case of a forwarding call? or something related to that kind of service?

Hello. The icon on the right side shows that Wifi calling is enabled. See https://android.stackexchange.com/questions/188407/what-is-this-icon-depicting-a-phone-and-wi-fi-together

thanks for the response sir, but I was wondering WHY the wificall icon is SIMULTANEOUSLY being displayed with regular, every example img I've saw, only 1 were displayed not BOTH at the same time. should the regular one be a call on "wait' or so?

On my Samsung note 20, the wifi call is displayed if it's enabled and there is wifi available.   The phone icons is displayed only during a call.

bro, actually, I guess I was right, the wifi-call icon is in fact displaying cuz that SS was taken during a call, but as I was looking the moto g50 manual, the first one indicates that calls are cxurrently being diverted, I don't think I'm wrong bout this.
https://prnt.sc/edEudA8qfpkE
https://deviceguides.vodafone.co.uk/motorola/moto-g50-android-11-0/getting-started/list-of-screen-icons/

@Kalikaze looks like call divert (and missed calls) icon has an additional arrow, not a plain phone icon.


text:
Keep dial pad open during call. Proximity sensor NOT activated
I often keep my phone on speaker and muted away from my face. The screen goes completely blank after 10 seconds. This makes it very difficult to unmute and unspeaker myself if I need to say something. When I'm not in a call my screen goes dark after 2mins which is fine. I want my screen to remain on until the screen timeout or proximity sensor is activated.

Have you tried any automation app for this? Tasker, MacroDroid, Automate -- these apps can be given a try. A simplistic trigger and an action would likely be: if on call save user's screen timeout, set screen timeout to X minutes. When call ends -> reset screen timeout to user's screen timeout.

I will try those apps @Firelord

@Firelord they don't work


text:
How to find HTTP requests in apk source code
I've extracted an apk(react native) with dex2jar and jar to java through jd-qui and also with apktool, and I can view the source code but there is no clue where are the HTTP requests in the source code.
When I intercept the apk traffic I can see all the requests to graphql endoint but I cannot see in the source code, where they are triggered or stored.
I searched the extracted source code with some keywords such as grahpql endpoint name, and the server address but still no result.
And the code seems not obfuscated to me, just some parts are like;
@Metadata(d1 = {"\000\026\n\002\030\002\n\002\020\000\n\000\n\002\020\002\n\000\n\002\030\002\n\000\bf\030\0002\0020\001J\020\020\002\032\0020\0032\006\020\004\032\0020\005H&\006\006"}, d2 = {"Lcom/shopify/arrive/E2EModule;", "", "launch", "", "intent", "Landroid/content/Intent;", "app_release"}, k = 1, mv = {1, 7, 1}, xi = 48)
public interface E2EModule {
  void launch(Intent paramIntent);
}

Is there any way to reach where these requests are triggered or stored on the source code?
This is the apk name, com.shopify.arrive

As far as I know React native does not create DEX code, so most likely you won't find what you are searching by decompiling the DEX code no matter what tool you use.

Hi @Robert thanks for the reply, when I decompile the dex files they crated react native libraries in it, that's why I assume, it may not be react native too, but any idea to find http requests in source code?

Cross-posted to ReverseEngineering.SE: https://reverseengineering.stackexchange.com/q/31278/16786

If you can run the APK I would start with a dynamic analysis, e.g. use a man-in-the-middle proxy or simply use a DNS server where you can see all requests, then you get a list of servers. That ilist s a good starting point to search for the names in the APK, binary search or in decompiled code. Otherwise without knowing anything it will take you ages or pure luck to find where the request is created you are searching.

There are many ways you can try
First option is to Reverse engineer code into dex and decompile using any tool like fernflower or CFR. Then apply regex extract script to pull all the http links. Reference of code
Second option is to use pre-build tool like MobSF Automated tool which is used to extract http urls
Another possibility is that the developer of app has hide the urls/link in the splitted way or has encrypted it, in that case you can do dynamic analysis to fetch the urls along with the file from which url is being called.
Another possibility is that developer has hidden it in the binary usually written in C using JNI Java Native Interfaces. You can use tool like IDA  or Ghidra to disassemble code to have sneak into it.Here is tool
There are some other ways too which can be explored if these doesn't work.


text:
How to clear bluetooth cache when it is disabled?
I'm trying to follow online guides like this or this to clear the bluetooth storage on my Pixel 5a.

Settings > Apps > All > Triple Dots > Show System > Bluetooth
Storage & Cache
I want to tap "Clear cache" but the button is disabled:

How can I clear the Bluetooth settings?

The reason I'm trying this is I'm having problems with pairing my Pixel Buds, but only from my phone. I can successfully pair them from my macbook, and can set them up from another Pixel. But on my phone during Set Up it runs for a while, then fails with the error message:

Couldn't connect
Try manually pairing to the device by going to Settings

And the Pixel Buds have been renamed to "Carl's Pixel Buds" but they're not connected. Trying to connect by tapping on the entry in bluetooth, nothing happens.

I don't know why this option is disabled. The closest option I can find is

Settings > System > Reset options
Reset Wi-fi, mobile & Bluetooth

This is a big hammer! Thanks to @acejavelin for more context:

It is probably worth stating that this does a LOT more than just reset Bluetooth settings... All saved WiFi passwords, any custom APN settings, Hotspot settings, VPN settings, Data Saver settings, etc... will all be returned to factory defaults. Clearing data on Bluetooth is only clearing the driver cache, not the actual settings, this they would be automatically regenerated with no effect.

This didn't change the kB for either User data or Cache, but it did remove my existing paired devices.

After doing this reset then rebooting my phone, my Pixel Buds successfully paired!

It is probably worth stating that this does a LOT more than just reset Bluetooth settings... All saved WiFi passwords, any custom APN settings, Hotspot settings, VPN settings, Data Saver settings, etc... will all be returned to factory defaults. Clearing data on Bluetooth is only clearing the driver cache, not the actual settings, this they would be automatically regenerated with no effect.

This does nothing to clear the blutooth cache is there a way to do it via adb maybe?


text:
Tasker Scene WebView JavaScript Interaction
Is it possible to call a Javascript function that exists within a WebView from Tasker? I tried calling a URL on the WebView of "javascript:FUNCTION_NAME()", but that did not seem to work.
This is a completely random example. Lets say, from Tasker, that I want to be able to change the background color of the body of the WebView.
In the webview, I have the code
<script>
function ChangeBGColor(NewColor)
{
document.body.style.backgroundColor=NewColor;
}
</script>

I want to be able to call ChangeBGColor() from Tasker with a color.


text:
Possible to make a copy of WhatsApp backup stored in Google Drive?
My phone is a Samsung Galaxy S9. When my WhatsApp is regularly backed up to my Google Drive, the old one is deleted. I want to keep a copy of the old one, that was backed up to Google Drive.
How can I do it? Or you can tell me how to make a copy to the PC if you know it too.

Possible dupe: How do I access my WhatsApp backup in Google Drive?

Does this answer your question? How do I access to my Whatsapp backup in Google Drive?

No. I know how to access it. I was asking how to make a copy. It seems that I must install third party stuff. I do not do that unless I definitely know that it is a trusted source in every way. They probably are but I do not have time to confirm. So I will simply use another google account to backup . This way the old one in the first google account will remain.


text:
ADB file transfer works on internal storage but not SD card
I am trying to transfer a large amount of files (>40k images and videos). I've had trouble transferring it by dragging and dropping in Windows File Explorer so I used the adb push command. It works on the internal storage of my phone just fine. However, when I try to do it on my SD card, it just refuses to start. It would be stuck at "daemon started successfully". I've tried restarting my computer, my phone and the adb connection, still same thing.
This is the command I tried:
adb push "D:\Pictures and Videos" "storage/A01D-69AC"

Phone Model: Xperia 1 III
SD Card: Toshiba Exceria 256 GB

expected behaviour, no permissions

@alecxs thank you, do you happen to know what i need to do to fix that?

@alecxs does not seem to be a permission problem, i manage to move single files using the same command, might just be a size issue

How old is the SD-card? What file-system  is the SD-card formatted with? As it is larger as 64Gb it should be formatted as FATex by default.

@Robert i am using toshiba exceria 256 gb exFAT formatted, the sd card is about half a year old.

@alecxs i've tried using usb 2.0, same issue. For now, i am just using an sd card reader to transfer the files.

The adb command in your question uses the path storage/A01D-69AC. I think this path missed the leading slash to be correct (to become an absolute path).

try adb over tcpip (wifi)

Remove the spaces in the folder in your computer.
then do this:

adb push D:\PicturesandVideos /storage/A01D-69AC/

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:
Making kernel to allow 2processes to access camera at sametime
Like split cam or obs in windows,
Can i add virtual camera driver or moduel in kernel so that 2 processes in android can use camera at sametime? (One is default and the other is getting video frame)

Most likely that depends on the camera driver. If it was developed in a way that it can not be used concurrently then you may have to write a complete new driver.

Assuming Samsung galaxy phone. I thought using virtual driver as mirroring video stream would be possible without writing new driver


text:
Why does tapping on a Wi-Fi Network not do anything?
When I try to connect to certain Wi-Fi networks, it won't respond or try to connect. When I tap on the network name, it gives the selection animation, but it doesn't show the "connecting..." text or show that it's connected. Sometimes my network wouldn't even show up in the list. Every one of my other devices can connect to the network.
It seems to also happen in certain places in the building. When I put up my own hotspot on another device, it won't respond to that either.
I've got an unmodified non-root Samsung S10 with One UI version 4.1, Android version 12, and was just factory reset a few days ago
Any fixes?

Try forgetting the connection and then reconnect.


text:
Port-forwarded connection (adb) being reset
I'm connected to an Android phone (being hosted on OpenSTF) via adb and have run
$ adb reverse tcp:34567 tcp:34567

adb reverse --list confirms that the command was successful.  I've also got an HTTP server listening on my computer at 127.0.0.1:34567.  I've compiled a simple C program which creates a socket connection to 127.0.0.1:34567, sends a GET request, and then calls read on the socket.
When I run the program on the phone, it successfully connects and I'm able to send my request.  However, read fails with

Connection reset by peer

Running Wireshark on my computer shows no TCP packets on port 34567 (I'm listening on the any "interface").
Am I missing something obvious?  It's strange that the connection succeeds but that no packets reach my computer.
I don't have the issue if I connect a phone to my computer directly (i.e., via USB).

Is the PC running Windows? Not sure if localhost is covered by the "any" interface. AFAIR localhost is very special on Windows and Wireshark wasn't able to capture it at all, I think that changed with the latest major version of WinPcap so if you want to capture localhost make sure to use the latest versions of Wireshark and WinPcap and select the localhost interface for capturing. On Android side start with a standard program like telnet (e.g. in a Termux shell) instead your custom app.

No, this is a Linux PC.


text:
How to block Wi-Fi on tablet via interface without possibility to restore
Is it possible and how to block Wi-Fi on a tablet via its Android's interface without possibility to restore Wi-Fi back via the interface?
So that I would be able to restore Wi-Fi only with root permissions or by means of reinstalling Android
Maybe type a password somewhere and forget it. Or something else, I don't know...

You should explain in detail what you want to do and why. Often such questions like yours can be solved using a different approach you don't had in mind when qrit.ing the question. Therefore the "why" is very important...

@Robert I understand you. But in this specific case WHY I need to block Wi-Fi is exclusively my personal matter and has nothing to do with this website. I just need to know HOW to block it

There are apps that will block Wi-Fi, meant for parental control.
However, the easiest way to do it is on the router.  You can easily set up a rule on the router to block that MAC address.  The proviso is that the tablet is not set up for random MACs.

Related: https://source.android.com/docs/core/connect/wifi-mac-randomization-behavior

Rohit Gupta, the router is not a way as there may be another Wi-Fi hotspot nearby (not mine) a tablet can connect to. Regarding the apps: I meant without possibility to restore Wi-Fi via Android's interface including installed apps. Is it impossible to restore the connection back with the same apps?


text:
My Samsung Galaxy Note10+ is automatically deleting my Music!
In Some days, I listen to music on my Samsung music app. today, I found out that some of my music is gone! Even deleted on the My Files app! is there anything I can do to stop this?
Most of my music is from "internal storage/Music"
Some of my music is from "SD Card/Music"
All of my music is from "Onedrive/Music"
Only "sdcard/music" are having missing files
It happens whenever i favorite a song using Samsung music


text:
Is Amazon's Fire OS more or less secure than the latest Android OS?
I picked up a tablet from Amazon in a recent sale. I noticed the device (Fire HD 10 2021) is running Fire OS 7. (7.3.2.6 as of now) which is based on Android 9.0 (Pie). I have heard the tablets stay on the base version they have been shipped with to deliver a stable performance during the expected lifespan of the device. Sounds okay, however, I wonder if the most current version of Fire OS for a given device is as secure as the latest (supported) version of vanilla Android considering the version gap and vendor's update practice. The biggest security factor is probably still the user behavior but the platform and the eco system plays a role too.
I tried to look into some related security questions to come to a conclusion but could not find good information, e.g. Are fixed Android exploits that affect older versions (back) ported to Fire OS?
Is the average number of open vulnerabilities similar or higher? I am at risk if I am using Fire OS on an older device or should I consider rooting it and replacing the OS after 2-3 years? Can someone shed some light on this matter?

Perhaps related: Are security patches only applied to the latest Android version?. On there, I explained how the security patch is applied.


text:
Do music apps on Android filter small files?
I have lots of albums containing mp3 files on my Android phone. To listen to these tracks I have tried some music apps, but I am facing the same issue with lots of them : the small mp3 files (< 1 MB or so) are not showing up ! They are displayed if I am using a file explorer app, but not on the music apps, so I cannot listen to them.
Why is it so? Is this normal? Does it depend on my phone, Android version, or only the music apps? Is there a way to stop this? I was not able to find how to remove this filter in the parameters of the apps. Do you have the name of free music apps that do the job?
Thanks

"I have tried some music apps", which one? I have many small files, use VLC and don't have any issue. Have you tried it?

Music apps don't use the file system for listing files they use the MediaStore database which is provided by Android system wide. I don't know if MediaStore has size/duration filters but another possibility is that that those small files have a defect and because of this are ignored by MediaStore file indexer. Use a mp3 verifyer program that checks if the files are free of errors in mp3 stream and ID3.

Well definitely! Android developer here, this is the property/settings of the Musicplayer app, on the lines of what @Robert already mentioned. Medistore definitely allows the duration filter for the developers as a feature. With such setting developer should have given an option of ignoring the files smaller than X-seconds and after a rescan it will. Will give you an example of a very famous music player named Poweramp.

Well, thanks a lot, I have installed Poweramp and it does not suffer this problem ! :)


text:
Clearing Wifi Data Usage Statistics
I have a rooted Samsung Galaxy Tab S8 Ultra and I have been trying to
clear the "Wifi Data Usage" statistics in the setting menu.

It seems like there was someone that asked the same thing 7 years ago.
How to clear the data usage?
However, this method seems outdated.
I was not able to find any files to delete in the /data/system/netstats directory.

I've tried different file manager applications, including termux, to see if there were any files, but It was empty.
I'm in a situation where I have to frequently clear the statistics, so doing a factory reset every time is not a viable option.

I don't see why this method will not work on rooted phone as well.

Go to Settings
Select Connections (Internet/Networks)
Select Data Usage (towards the bottom)
Select Billing Cycle and Data Warning (Data Warning and Limit)
Select Start Billing Cycle on
Select Today's Date and press Set

I accidently deleted my original comment haha
Still, thank you for your comment.
However, that option is not available for my tablet.
When I go into "Data Usage", The only thing I can click on is "Wi-Fi data usage" and that's it.
That option is visible on my phone though.
I am guessing it's because my tablet is a wifi only model.

I tried on tablet, as you say, its not there.  I will leave the answer there for others seeking the solution for a phone.

It's weird why it's like that... Thank you for your help though