text:
Why did the account sync became so delayed specifically for the Google account?
Until recently Gmail messages arrived to my Nokia 9 PureView instantly.
But recently unacceptable sync delays appeared in the Google account, especially in popular services like Gmail.
Nokia suggested to delete Gmail's cache and do a soft reboot (power+volume up), but it didn't help whatsoever. Likewise neither did Safe Mode. Their next suggestion - factory reset - was enough to send me here.
If I manually click the 3 dots and choose to sync now, it solves it...for that moment.
The following screenshot was taken at 18:30, almost half a working day after some of these syncs took place.
WhatsApp, in comparison, syncs its contacts every hour without any misses.
Can anything bring back the Google Account sync to what it used to be?

Are push notifications of other apps also delayed? If yes I would suspect that the GooglePlayServices may not work correctly. Therefore this is the app you should try clearing the cache.

No, WhatsApp and other apps are still immediate. Clearing GooglePlayServices's cache didn't help either.

Google's Fix sync errors with the Gmail Android app's last resort ("Only follow these steps if the above steps didn't work") solved it for me!
However, it initially led to confusion since it seems to refer to obsolete settings.
The correct "last resort" steps are:

Open your device's Settings app.
Tap Apps & notifications > See All Apps (not "App info").
Tap Gmail > Storage & cache (not "Storage").
Tap CLEAR STORAGE > OK (not "Clear Data").
Restart your device.

Not sure step #5 is mandatory, but I guess it's better to be on the safe side.

"CLEAR STORAGE > OK (not "Clear Data")" so clear cache then?

True, just meant Google's outdated guide calls it "Clear Data" instead of "Clear Storage".


text:
SD Card formatting
Bought a 128G card I meant to use as mixed internal / portable (or 100% if not possible with mixed) on a

Galaxy-Xcover-4 (SMG390F)
Android version 9
Kernel 3.18.91
Not rooted (Though I could do it I guess, if there's any method and it is the only way to reach the goal).

First I tried to see if it was possible to do from Phone, but did not find any.
Then I did:
adb shell
sm set-force-adoptable true
sm partition disk:179,32 mixed 34
sm set-force-adoptable false

It got partitioned, but did not increase internal memory + using the elipsis on SD card view (Settings -> Device Care -> Storage -> SD Card) only crashed. Tried to reboot. But to no avail.
Then I deleted the partitions and re-inserted the card. It asked about formatting the card, and I did; but it is all portable. (I.e. System / Internal is not increased.)
Then I tried same adb session as above but with sm partition disk:179,32 private (I.e. use 100% of SD-card as internal). This also formatted SD-Card, but now it is not recognized at all.
Re-booted, but still the same.
Is there a way forth to make it increase internal storage?
The phone only have 15G natively and I am constantly pushing close to 100% usage.

If its becoming complicated I think you should mount bind somefolders in internal storage to folders in external storage and move the files to the respective folders or simply sysmlink them.

@Silent: One can do that on un-rooted device? Problem is apps. I have all media (including photos) on SD.

Could you mention the Android version and the encryption status? According to GSM Arena, looks like Samsung Galaxy Xcover 4 starts with Android 7.0 and is upgradable to Android 9.0. There's a warning on Android Developers that on devices encrypted with FBE on Android 7.0-8.1, external SD cannot be used as adoptable storage. Only since Android 9.0 that adoptable storage can be used with FBE.

@user3342816 actually it needs root sorry.

@AndrewT. It say "Android version 9" under Software information. (It does not say 9.0 though, but guess it is).

https://www.xda-developers.com/adoptable-storage-samsung-android-pie

source: Stack Exchange

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

sort: votes


text:
How to enable adb in frp locked phone?
By editing boot.img-ramdisk with ro.secure=0 ro.debuggable=1 persist.sys.usb.config=mtp,adb, packing again with mkbootimg produces boot.img.
Heimdall is used with partition information table, and flashed for sboot.bin(bootloader) and boot.img(BOOT).  I conjectured that adb devices would produce connected device.  But experiment shows NO device connected.  I turned off the developer option before going into download mode to mimic situation of locked frp.
Hypothesis is that flashing with adb enabled boot.img would enable adb debugging after flashing.  What is wrong with this hypothesis?

are you sure it is booting at all? how did you sign boot.img?

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


text:
Why is there NO files in TWRP recovery in adb?
Without TWRP, adb devices shows no device connected.  "fastboot devices" also produces nothing in Samsung Galaxy.
But in TWRP recovery, "adb devices" show "52034c5afabcc377  recovery".
adb shell ls at root shows directories.  But adb shell cd /system and adb shell ls shows no files.
Question:  why devices in recovery in TWRP fail to list files?

usage hint: type adb shell only once

When you only see empty directories, it is probably because the system partition is not mounted yet.
Mount /system either using twrp (I don't know exactly, but there is somewhere an option to mount system, maybe under settings or advanced) or using adb shell: mount /system
Same applies to /data: if it's empty too, use mount /data

https://android.stackexchange.com/questions/201050/fail-when-pull-system-files-in-twrp-recovery?rq=1 is related and shows more information on mounting /system


text:
How can I force my contact list to get updated on my Samsung Galaxy S9?
I store my contacts in my Google account. I can access these contacts on my Samsung Galaxy S9 phone via the Samsung contact application. After I add a contact in my Google account via another device, how can I force my contact list to get updated on my Samsung Galaxy S9?

On every Android device I have worked with there was always an option to force synchronization of Google data in the settings of the account:
Open Android settings and navigate to the account list. Open the used Google account and then it's "Account sync" page (synchronization settings).
There you can enable/disable each synchronization category like Contacts and so on. And there is in the upper right corner a three-dots-menu which allow to "Synch now"


text:
How to connect Samsung galaxy S9 plus to internet while phone is locked and notification bar is also locked and I have forgotten pattern lock
I have forgotten my phone's pattern lock now in order to unlock it there is one option I know is by using Samsung account I can unlock it but unfortunately my phone's notification bar is locked and phone's ADB debugging is also off, so how can I make my phone online. I don't want to hard reset as it will erase my data in the phone so please if anyone know how to connect a locked phone to internet please tell me and also let me know if you know how to break pattern lock without losing data. thank you so much.

insert sim card into another phone and disable SIM PIN completely. now insert sim card back into locked phone it will connect to mobile data automatically without asking for PIN. finally login to find my mobile on pc and remote unlock phone


text:
Resize USB internal storage and use some as external without formatting the whole USB
I expanded my Amazon FireTV 4K Max (Fire TV Home Version 6341067.1 running Fire OS 7.2.5.5 PS7255/2444) storage by installing a USB flash drive together with an OTG and a usb 3.0 hub but i formatted the whole USB as internal storage.
I would like to know if is it possible to resize the USB partition used as internal storage so i canuse the rest of the USB as external storage without having to format the whole USB?
Hope someone can help.
Thanks in advanced. :)

Possible dupe: I want to split one MicroSD card into two parts: part adoptable storage, and part normal storage. How can I do this?? Though, not sure if it can be done without formatting the whole USB.

It's no dupe because I'm asking for possible resize without losing the information in the already created partition.


text:
How is path look like for password.key in Android 10?
I have my own Android 10 locked up with a PIN (encrypted Android 10) - and then later I have forgotten the correct PIN how it looks (has only numbers).
Now I found a solution for Android < 6.0 or Android < 7.0 where it is easy
simply to delete the password.key file with adb like :

adb shell rm /data/system/password.key

How would this look for Android 10.0 resp. Android 10.1 ?!
I do not want to make a factory reset, because I have no backup of this encrypted device.
Thank you for answering this !

As you write the device is encrypted and the used encryption key can only be accessed if you enter the correct PIN after a reboot. So no matter what you delete you won't be able to access the data without the correct PIN unless you have never shut down or rebooted device since the PIN was entered correctly the last time.

you probably asking for locksettings.db but even if device is unencrypted and adb is authorized /data cannot accessed anyway (except you have root access)


text:
Can I change Java heap size on Android devices?
I have a Samsung Galaxy A20s with Android 11 and 2790 MB RAM. The phone was originally designed for Android 9.0 but now that it's been upgraded to 11; it's become slow and my RAM is always almost full and the Droid Hardware Info app says my Java Heap is 192 MB.
is there any way I could change the heap size? It's way too high for my A20s.

It seems like you use some sort of system info app that shows you a value and you assign a meaning to the value it never has:
Java Heap and it's size
The Java heap is (a bit simplified) the main memory pool of a Java application. Therefore if your used app shows you that the Java Heap is 192 MB then this means that the Java part of this Android app currently uses 192MB RAM (assuming the app developer has calculated the used RAM in a correct way, calculating the current heap size on Java is not that simple not sure if it is also that complicated on Android).
This also means the Java heap size of every Android app is different. This is not a general limit but just the RAM usage of each Android app.
Your question was how to change that value - as you can see this question doesn't make sense as this is not a configured value somewhere in the system but just the RAM usage of an app.
If you have RAM problems make sure you don't have apps running you don't use (disable or uninstall unused apps). Also for some common XXL apps like Facebook there are lite versions available which are designed to consume less resources like RAM. Switch to those lite versions where applicable would be another recommendation to save RAM.

the app shows the heap size for all android apps not itself. it's just like cpu-z on desktop. look this phone, A20s' hardware was designed for android 9, now it's been upgraded to 11 and can't handle it. it's slow to use. but if we change the heap size to 64 I'm sure it'll be able to function much better.

@mohsentux Usually the heap size is identical for all apps (unless the app declares largeHeap="true"  in it's manifest. If I have an phone that doesn't run smoothly with Android 11 because of memory problems why should allowing every app more memory improve the situation? If RAM was already short with the lower heap size, increasing the heap size can make the RAM shortage only worse (if the app use the extra RAM at all). Increasing the heao size is only useful if you have apps that crash with an OutOfmemoryError (because their heap is too small).


text:
Can Google Assistant interact with apps while they're open?
I would like to know whether Google Assistant can interact with apps while they're open, and whether you could kindly provide me with since examples.
The rationale for my question follows:
I was wondering whether Android supports making Google Assistant interact with apps while they're open. I know Google Assistant interfaces to apps which it can open by calling them with parameters. For example if I tell it "call Joe on WhatsApp" it opens WhatsApp and then immediately WhatsApp calls Joe. However, while WhatsApp is open, I can open Google Assistant to overlay, but then I cannot tell it, after the call has been answered, "switch call to video". This would be useful.
What I would like to know, is whether this functionality is available in the Google Assistant API, and, if so, why WhatsApp hasn't implemented the interface. If not, it could be quite useful, because that way a blind person could easily make a call on someone's phone, even someone else's phone, found in the house, and if a child next to the blind person wanted to call their mother and switch to video after the call and the child was too small then the blind person, or person who accidentally lost their vision temporarily due to an accident, health condition, or other, could easily do that. Then the mother could intervene and do what was needed to offer her presence, and, if needed, her help. I feel that this would be an important accessibility feature that Google and WhatsApp could implement and add support for together. The phone the blind person normally uses with TalkBack could break or run out of battery. Or it may be that another adult in the house in charge faints and the blind person realizes this and needs to take over and needs to use the other person's phone as trained and as fast as possible, and may not want to have to go through activating TalkBack which may not have been configured on the other phone or whose speech may confuse the child at hand, making them think the phone is doing things they do not want the phone to do, which could cause the child to grab the phone from the blind person and remain helpless, unable to make the call or do what they need to do on the phone.
I wonder whether Google will implement the ability for users to interact with apps via Google Assistant while those apps are open, rather than just using Google Assistant for opening those apps, in the near future.
Other apps could also benefit from interfacing with Google Assistant in this way in countless manners. For instance a music app could let the user change the music played from the assistant. A camera app could allow the user to take a picture by simply telling the assistant after it was opened. YouTube could play the cartoon the assistant told it to after the user opened YouTube from the assistant. These are all perfectly reasonable and extremely useful functions which are significant improvements from a usability perspective for a blind user who has to deal with an impatient child who wants to see things on the phone and can't write because of being too young while the other parent is away from home at work.
Thanks.

Can Google Assistant interact with apps while they're open?
Yes and No depending what you mean by Google Assistant and app
Google Assistant covers a number of features but for the purposes of this answer will cover two specific sets, with unfortunately similar names:

Google Actions - Cloud based voice services written by third-party developers, similar to Amazon Alexa Skills, where you have known path voice conversations with an 'app' in the cloud. While their use is promoted with the home interactive speaker devices, you can use these on Android devices. Other than the Google app itself, no third-party Android app is involved, but the same backend service for that third-party app is probably used. Realize that once you are in the 'voice app' that app is using the voice infrastructure of Google to transform speech to text, and even then only a limited number of synonyms which is then used by the 'voice app'.

Google App Actions / App Shortcuts -
A defined set of Android Intents which are sent to a supporting Android app. Note that Android Intents are usually for imperative action which the app will then handle fully.

See: https://developer.android.com/guide/topics/ui/shortcuts#shortcut-capabilities
Once the Android Intent is fired, the receiving app is brought to the front and historically the foreground app takes priority except for media playing, notifications or incoming calls. Only with Android 10 and onward it is possible to officially support shared microphone input which of course brings its own privacy/security concerns.
TalkBack is a Google Accessibility app separate from Google Assistant which provides for sight assistive navigation/user input.
So how does TalkBack work?
Android when released supported D-pad navigation and the concept of focus for each individual visual element used by a typical app developer not including games. Adding additional metadata about each visual field doesn't normally require a major code change, see Android Developers Accessibility Principles. Using Android's accessibility APIs is how TalkBack to provide for sight assistive navigation/user input.
So can't I speak to the third-party Android app to make it do things in a natural way?
What you describe requires deeper integration with TalkBack. But TalkBack isn't necessarily the only accessibility support app available. Any APIs that it uses should exist in the Android framework. Alternatively the third-party Android app itself can integrate speech-to-text features.
Why does the third-party voice app, or Google Action, sound more natural/understandable than TalkBack?
Those services are designed voice first during development and use Speech Synthesis Markup Language (SSML) to add in prosody necessary to make the output sound more natural.
Android does have its own API called TTSSpan for adding some prosody elements to spoken output. However it doesn't support SSML directly:
SSML support in Android TTS?, which means more effort from developers who do want to support more natural speech output.
So what does that mean?
If a user says "add 5 to number field" context is important to know what does "add 5" and which "number field" is being referred to. Voice first apps would be designed to respond with "which number field, x or y" or reset the conversation so that the user and app are synced up. Android apps are designed primarily to be visual with cues to make the input conform with expectation (allowed letters, numbers, length, etc.) with accessibility or voice as an extra supported feature but not primary one.
TalkBack or any third-party Accessibility app has only the limited knowledge expressed by any accessibility tags for the fields that are on that one screen and has no knowledge of any other screen. No Android framework API exists for a Android app developer to say to the Accessibility app "if the user says xyz do foobar".
So what about integrating speech-to-text directly into the Android app
Speech-to-Text is currently a paid service for third-party apps and done in the cloud. While on device speech-to-text is possible, app developers may just depend on Custom Keyboard (GBoard, OEM keyboard, others) to handle that aspect. For example, the search field in the YouTube for Android app by tapping the microphone icon allows you to speak your search topic. The Facebook for Android app doesn't have such a way in the app and depends upon the the Keyboard App to feed it text. Do realize that until recently, good quality voice recognition required sending your voice to the cloud for parsing.
But if in Android 10 and up now allows for shared microphone access then further feature integration is possible.
Yes, but would depend on the developer of the Accessibility App (Google or other party) and the hundreds of thousands of the third-party app developers to support any API, and to my knowledge there is no API for that in the Android framework.

The Google Assistant can open certain types of apps, mostly ones that are directly connected to like for instance: YouTube Music, Maps, and Calendar, also Messages, and Phone. However, when trying to do games, it may not respond in the same way.
This depends on how you use it. It varies depending on the question you ask. Usually, you have to be very specific otherwise, it will not respond in the way you intend for it to. Meaning: it will probably not act right and will end up giving you something completely.
That is why, be as specific as you can when asking the question or giving an answer to any assistant, be that Google/Bixby/Cortana/Alexa/Siri, etc.

You talk about opening apps.  The question asks about sending commands to apps slready open.  There is overlap but not always the same.

So, can it be done? And, how do I do it?


text:
How to enable and disable app using LADB?
So far, I only could find this related discussion from this site regarding disabling app on android by ADB, but I'm using LADB app and confirm whether these commands are correct or not since the discussion didn't mention anything about re-enabling the app.
adb shell pm disable-user --user 0 <package name>

adb shell pm enable-user --user 0 <package name>

This is the app I am going to use:

Will it work just like when I disable or enable app through settings? The app I wanna disable is Facebook, by the way. On my old phone android 8.1, it has disable feature, but idk why my phone with android 11 doesn't have this feature. Anyway, are those commands safe to try? I'm not familiar with Android shell whatever, I only thought it would be wise to ask here first before I test it.

Facebook is a third party app so even if it comes pre-installed as system app you should be able to disable it in apps sections of Android settings.

An app disabled using shell is not listed in Settings app at all. You would have to use a third-party app to list disabled apps. As for LADB, its Play Store page gives instructions to make it connect to wireless adb. If you follow the instructions correctly this app should give you access to shell (aka adb shell). After that, you can run your pm disable...  commands.


text:
Cannot boot into recovery after changing file system of internal storage
I have a Samsung Galaxy S7 (GT-930F) and have been using it with an unofficial build of Lineage OS (which can be found here) for quite some time now.
But when I wanted to make a clean update to the latest build, I got the following error message in TWRP:

Updater Process ended with ERROR: 1
Error installing zip file /sdcard/lineage-19.0-20211220-UNOFFICIAL-herolte.zip

I thought reflashing TWRP with Odin might help but it didn't help with the error.
In trying to overcome this strange error, I (probably) totally bricked my phone. I thought the error might have something to do with the file system of the external sd card, so I changed it. That didn't eradicate the error so I had the (very stupid, as I now have come to realize) idea to change the file system of the internal storage to EXT4 (if I remember correctly).
As a result, TWRP is stuck in the loading screen and ODIN spits out a Write operation error if I want to reflash TWRP. I can still go into download mode, though.
Is this fixable or is my phone bricked?

check if adb shell works on TWRP splash screen, there you can repair file system with mke2fs or mkfs.f2fs otherwise flash stock ROM, unlock bootloader and start from scratch

Thanks a lot. Repairing the file system did not work for me but now I am back on flash stock ROM and can go on from there :)


text:
I'm unable to repack system.img after extraction
I extracted system.img of my rom using MTK extractor and edited a app then tried to repack but it failed. MTK extractor says system_unpack/file_contexts:No such directory found. Can anyone please tell me how to repack my system.img? I'm struck :/

you should use linux and loop mount the image for editing


text:
Is it possible to "fake" / isolate App or Permissions for an App without root (gravely invasive permissions Galaxy Wearable App)
I can't believe the wearable app (for galaxy buds) is actual allowed on the playstore. The permissions the app asks for are nothing I've ever seen before.
It asks for EVERYTHING , literally. And if you remove a single permission, the app won't work. Samsungs privacy policy is not making it any better.
Since there's no alternative app, how would one go about isolating an app in a way, that it won't be able to access, or, for example, receive access to a fake/empty contact, calendar, call list, gps etc.?
I am aware of apps such as AppOPs or whatever the name is, but I think we can all agree that nowadays, you can't trust ANY app. Especially if it's from the (censored) playstore.
PS: Would a new user profile like Island or Shelter even isolate contacts, call list, gps etc? How about battery consumption (running 2 users)
Device: Oneplus 7 Pro

On my phone, before connecting any Samung wearable devices, it only asks for location and phone permissions. Location is needed to do bluetooth scans for Samsung wearable devices. According to the description phone permission is needed to access device identifiers, which sounds more nefarious. That probably includes the imei number. I ended up blocking Wear's internet access through an android firewall (AFWall+), but that requires root. That should at least prevent Wear from phoning home my data, but it will also block device firmware updates.

@JanKanis thank you for commenting, I thought this post was dead after a day, 9 months ago haha. I feel your pain, I ended up simply discovering that you can view the battery percentage & control noise cancel. through the widget WITHOUT granting permissions. I blocked the app's network and background access so no phoning home. I think I granted permissioms intially just once to change audio preset but then removed all perms and blocked access as described above. (My OEM phone allows blocking of WiFi & celluar data through app settings (hold->details), your milage may vary. PiHole also exists).

Ooh. Using the widget is clever hack, @StellarEquilibrium this should be in its own answer here because that is a killer tip

Oh darn. It appears Samsung plugged that "hole".  Even the widgets runs into the permissions nag screen. They must  be really motivated to harvest all the information :(


text:
How can I create or manage user accounts on an Android 11 Oppo phone
I have a new phone (Oppo A54 - 5G) and I like to create a second user account.
The phone has Android 11 installed, and according to change user - Android 11 tutorial, it should be possible to create/change user accounts in Android 11.
But on the Oppo phone, I don't see the user account buttons in the top bar, and I can not find in in the settings.
So I would like to know:

is it possible to create and use multiple users on an Oppo Android 11 phone?
if yes, that where can I find the settings menu to create users and switch to the new users?

Oppo phones don't use Android they use ColorOS. Mostly ColorOS is identical to Android, but there can be differences. So you should better use the manuals from Oppo: https://support.oppo.com/en/answer/?aid=neu12782

Hmm... my ColorOS version is 11.1, the oppo manual says, multi-user should be available since ColorOS 10, but I dont have the multi user option in my settings.
Is there anything I must do to enable the multi-user menu?

The availability of Multi-user Mode depends on the phone model and ColorOS version. This means that some models don't support multi-user mode.


text:
Fastboot recognizes device but unable to flash (stuck with no output)
I'm trying to flash a custom ROM on my Android smartphone using fastboot. When trying to flash the recovery, the command does not output anything and is stuck.
./fastboot flash recovery recovery.img

Environment:

ROM: PixelExperience 11 (Plus) (Official for X00TD)
Recovery: Supplied with the ROM
Smartphone: Asus Zenfone Max Pro M1 (X00TD / ZB601KL Variant)
PC:

                 /////////////                user@pop-os
             /////////////////////            -------------
          ///////*767////////////////         OS: Pop!_OS 20.04 LTS x86_64
        //////7676767676*//////////////       Host: 80F6 Lenovo B40-80
       /////76767//7676767//////////////      Kernel: 5.15.8-76051508-generic
      /////767676///*76767///////////////     Uptime: 54 mins
     ///////767676///76767.///7676*///////    Packages: 1896 (dpkg), 27 (flatpak)
    /////////767676//76767///767676////////   Shell: bash 5.0.17
    //////////76767676767////76767/////////   Resolution: 1366x768
    ///////////76767676//////7676//////////   DE: GNOME
    ////////////,7676,///////767///////////   WM: Mutter
    /////////////*7676///////76////////////   WM Theme: Pop
    ///////////////7676////////////////////   Theme: Pop-dark [GTK2/3]
     ///////////////7676///767////////////    Icons: Pop [GTK2/3]
      //////////////////////'////////////     Terminal: gnome-terminal
       //////.7676767676767676767,//////      CPU: Intel i5-5200U (4) @ 2.700GHz
        /////767676767676767676767/////       GPU: Intel HD Graphics 5500
          ///////////////////////////         Memory: 2679MiB / 7865MiB
             /////////////////////
                 /////////////

(Also tried, unsuccessfully in the older Kubuntu 18.04, with the same result)
I've tried using both the system supplied (Ubuntu repository) version of fastboot and the one shipped with Android's platform tools.
Installed the system version with sudo apt install android-tools-adb android-tools-fastboot.
fastboot Versions:
user@pop-os:~$ fastboot --version
fastboot version 1:8.1.0+r23-5ubuntu2
Installed as /usr/lib/android-sdk/platform-tools/fastboot

user@pop-os:~/Android/platform-tools$ ./fastboot --version
fastboot version 31.0.3-7562133
Installed as /home/user/Android/platform-tools/fastboot

Prerequisites:
Have configured udev rules as shown below (to avoid "no permission" error when running fastboot without sudo)
#/etc/udev/rules.d/51-android.rules

SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev"

And added current user to the 'plugdev' group with sudo usermod -aG plugdev $LOGNAME
Issue:
After rebooting into fastboot mode through either the hardware keys (VOLUME UP + POWER) or the command ./adb reboot bootloader, my device is recognized by fastboot.
user@pop-os:~/Android/platform-tools$ ./fastboot devices
XXXXXXXX04HP    fastboot

But when I try to flash the recovery, the command gives no output and is stuck
user@pop-os:~/Android/platform-tools$ ./fastboot flash recovery recovery.img

And just when I unplug the device from the PC, it gives an error
user@pop-os:~/Android/platform-tools$ ./fastboot flash recovery recovery.img
Sending 'recovery' (21517 KB)                      FAILED (Write to device failed (No such device))
fastboot: error: Command failed

Conclusion:
As recommended in the hyperlinked guide and other resources, I have tried using different USB ports (both 2.0 & 3.0), different cables and, as mentioned, different PC and version of Ubuntu. Nothing resolved the issue.
However, using Windows 10 with the same PC (its dual-booted), USB port, cable and the mobile device, I was able to successfully flash the recovery and later the ROM also.
There are similar questions to this one with some whose accepted answers are not very helpful and most of them are old. I would really like some help with this issue.
Thanks in advance for your inputs.

as you already pointed out it's not an issue with the android phone but with linux, i suggest to migrate that question to https://unix.stackexchange.com

Posted it here. Thanks @alecxs


text:
Poco X3 Pro 90Hz SetEdit setting not working
Poco X3 Pro ships with 60hz or 120hz screen settings and no 90hz (for optimal battery/performance preference like some other Xiaomi phones).
There are dozens of guides showing how to achieve 90hz without root and claimed to be working (people response in comment sections, etc.)

YouTube guide
Reddit guide
More Google results

All of them explain the same process using SetEdit app.
I did follow every step and rebooted the phone and tried with both 60hz and 120hz settings.
No matter what, it shows in the database user_refresh_rate is set to 90, and yet the screen refresh rate is still at 120 (top left), tested with developer tools and testufo.
If the setting is overwritten by the app and saved into the database, how come it's not working?

Just curious, if you use SetEdit to change the value to 60, will it work as intended? Also, I found a thread on XDA Forums, but reading the posts, looks like the result is kind of mixed; some worked, but some didn't work. Possibly related to specific ROMs.

@AndrewT. I tried that with 60, no changes. It's interesting in that link I do not have step 3. on my Poco X3 Pro. I did however managed to clear system cached data with app called Activity Launcher and one thing I noticed the user_refresh_rate line was gone when I relaunched also freshly cleared SetEdit. I had to go to Display settings and toggle between 120 and 60 to add that line back, but changing it and rebooting still didn't work. Only difference I see from that forum post and mine is that my MiUI version is newer 12.5.4.


text:
Android, TalkBack, support for blind users with short attention span
I would like to know what Android does to support blind Android users with sort attention span.
One of the problems with these users, is, that while the user interface talks, the sound of the reading voice itself distracts them to the point where they focus on the sounds and not on the letters that make up the words. In this manner, they can never understand the words, that are being spoken out. The words are just spoken out too fast, and everything just goes too fast for them to keep track of everything.
What these users need, besides linear navigation in TalkBack, is a way to control the speed at which words and pauses are pronounced. They need to be able to drag out the pronunciation of the words over a long length of time. This slows everything down. Never mind. The point is that they must understand. Not only, they must be able to memorize and keep track of what goes by while it is being spoken.
Ideally these users should be able to control, not only swiping forward and backward between one word and another to navigate, but also, the length of time for each letter to be pronounced. They should have access to quadruple tap and drag a slider to control the speed, which they need to change as needed while everything is read. Because, at any given point in time, their ability to focus on longer pronunciations or shorter pronountiations as reading speed changes, and there is always, at any given point of time, matching their awareness and awakeness, a right, optimal, speed, with which to read the words out aloud.
The same goes for sound clues. These, just like the words, should also be sounded out longer or shorter, to allow the blind user with attention problems to have the time they need, in their slowness, to focus on them, and say to themselves, "yes, I've heard the sound i recognize as being such and such", and this must take place before the sounds finishes. The user must be able to talk to themselves during the sound, not after, when the sound had finished and the user has forgotten about it before they were able to say anything to themselves, about it.
So, my question is, does Android have anything to support this feature, which would be indispensably necessary to make the device accessible to blind users with sort attention span?
Thanks.


text:
How to free the space called 'Other'
How can I eliminate this 9.21 GB of space called "Altro" (Other);
Is there the possibility to know what kind of things are there in this 9 GB, I tried some apps but none gives me some useful info.
I am on android 12, xiaomi mi 9t.

How disk space is used on Android device?

Unfortunately on an unrooted phone it is impossible to see what files and folders Android categorizes as "Other". You can only check the shared folder /sdcard (e.g. from a connected PC or a file-manager app) and the installed apps (clear cache/data of unused apps or uninstall/disable them).

You can't (possibly) 'eliminate' the contents without SU access. However MixPlorer or ES file Explorer might help you read much of / level contents.


text:
I can't transfer data to my microSD
I'm on Android 7.1.1. I can't transfer data to my microSD, allegedly because of a lack of space which it has plenty of, actually (it used to be brimful, though).
..
Click the image to see in full size
What do you suggest I should do?

android does not allow moving apps to portable storage, therefore you get error message "not enough storage" while trying. reformat your MicroSD Card as internal adoptable-storage first

@alecxs But I successfully did it before

what you did before was moving apps to /sdcard (which is your internal emulated storage EXTERNAL_STORAGE) but it is full now. adopt MicroSD Card first so that /sdcard points to /mnt/expand/* instead, then try again

@alecxs what do you mean by "adopt MicroSD Card"?

https://android.stackexchange.com/q/220729

Might also help to mention the device model, in case if the manufacturer disables the adoptable storage.

@alecxs could you write an answer with the instructions? I have hard time following you (I read the page you suggested)

only if you prefer to format from command line, enable usb-debugging in hidden developer options and download platform-tools. connect phone, install android_winusb.inf and in cmd.exe type 'adb.exe devices' then confirm connection on screen (you are now ready for adb shell commands) https://jimcofer.com/2016/03/10/marshmallow-lg-and-adoptable-storage


text:
How can I import a Root CA that's trusted by Chrome on Android 11
I have a Root CA (airgapped, openssl) that I use for a lot of internal lab projects.
In the past, I've just imported the CA cert into the User credentials store on Android and the system began trusting it immediately.
I just wiped my phone and now, on Android 11, I'm unable to get this Root CA trusted the way it was before.
The CA cert definitely has the CA:TRUE extension:
$ openssl x509 -in root.crt -noout -text|grep -B2 TRUE
        X509v3 extensions:
            X509v3 Basic Constraints:
                CA:TRUE

The Server cert that's presented in the SSL exchange matches the DNS name and also includes the same name in the SAN extension:
(...)
        Issuer: O = <domain> Lab Root CA, emailAddress = <me>, L = <Place>, ST = <state>, C = US, CN = <domain> Lab Root CA
        Validity
            Not Before: Aug 13 11:39:55 2020 GMT
            Not After : Aug 13 11:39:55 2023 GMT
        Subject: C = US, ST = <state>, CN = <lab server name>
(....)
            X509v3 Subject Alternative Name:
                DNS:<lab server name>

The server I'm testing with correctly chains the cert in the TLS response, and this setup works great across a bunch of browsers and OS combinations in the desktop world (and worked until recently on Android).
I've tried the following:

Import the Root CA Certificate through the normal "Import from SD Card" method. The CA imports properly, but Chrome still gives invalid authority browser warnings.

(Rooted) moving the imported cert from the user /data/misc/user/0/cacerts-added imported credentials folder to /system/etc/security/cacerts. The CA appears correctly in the "System" tab of Trusted Credentials, but still doesn't work in chrome

Manually crafting the DER-encoded file into the System cacerts folder. Chrome still doesn't work.

Following the example of some PEM-encoded trusted CA certs already on the system, crafting my own and putting it into System cacerts. Chrome still doesn't work.

I tried using a Magisk module to move User trusted certs to the System store. This module worked as described, and moved my Root CA into the System tab, but Chrome still didn't want to trust for SSL and continues to give out browser warnings.

Some other observations:

Running curl -vv https://<testurl> via adb constantly complains about SSL certificate problem: self signed certificate in certificate chain even though the CA that the certificate is signed by is in the Trusted credentials store.
The CA trust chain definitely works fine in desktop browsers, and via openssl s_client on a desktop (Verify return code: 0 (ok) when the Root CA is imported into the desktop trust)
I've cleared Chrome's app storage every time I go to test after making a change. No dice.

Is there anything else I can try or a setting that I've missed? It's very annoying to not be able to manage trusted Root CAs on Android 11 like I used to.
I'd rather not have to turf the whole airgapped, comprehensive SSL CA that I've set up for something like Let's Encrypt just because of Android compatibility so please don't suggest that as an alternative. There are lots of internal-only endpoints in this lab and my public DNS provider doesn't support automation for dns-01 ACME, so it would be a really big pain to proxy and juggle these certs.
Here's a sample of what one of the server certs looks like:
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number: 4123 (0x101b)
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: O = <domain> Lab Root CA, emailAddress = <me>, L = <city>, ST = <state>, C = US, CN = <domain> Lab Root CA
        Validity
            Not Before: Dec 23 13:06:42 2021 GMT
            Not After : Dec 22 13:06:42 2024 GMT
        Subject: C = US, ST = <state>, CN = monitoring.lab.<domain>
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                RSA Public-Key: (2048 bit)
                Modulus:
(...)
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints:
                CA:FALSE
            Netscape Cert Type:
                SSL Server
            Netscape Comment:
                OpenSSL Generated Server Certificate
            X509v3 Subject Key Identifier:
                (...)
            X509v3 Authority Key Identifier:
                keyid:(...)
                DirName:/O=<domain> Lab Root CA/emailAddress=<me>/L=<city>/ST=<state>/C=US/CN=<domain> Lab Root CA
                serial:(...)

            X509v3 Key Usage: critical
                Digital Signature, Key Encipherment
            X509v3 Extended Key Usage:
                TLS Web Server Authentication
            X509v3 Subject Alternative Name:
                DNS:monitoring.lab.<domain>
    Signature Algorithm: sha256WithRSAEncryption
(snip)

Are you sure the CA is really the problem and not the leaf certificates? The requirements/restrictions for server certificates have increased regarding maximum certificate validity and cert extensions that have to be present. It would be good if you would include an sample server certificate in your question as well.

Here's what one of the server certs looks like. They all continue to work fine on desktop versions of chrome, and the error in android is NET::ERR_CERT_AUTHORITY_INVALID so it feels almost like the android OS security trust isn't even being used by the apps properly.
(cert sample edited into main question)

The error indicates that the root CA certificate is the cause, but your server certificate also looks "defect" as it's validity period is too long. Most web browsers do no accept validity periods longer than 13 months. The Subject Alternative Name extension is present so that should not cause problems (this extension is now mandatory).
For the root CA cert I don't know what extension are really required I just compare it to the one created by Fiddler (which I know works):
I see the following extensions:

X509v3 Basic Constraints (2.5.29.19):

CA: TRUE
Path Length Constraint: 0

KeyUsage (2.5.29.15)

Certificate Signing

SubjectKeyIdentifier (2.5.29.14)

20 byte random identifier

And of course the signature algorithm should be only secure algorithms like RSA with at least 2048bit key and SHA-256.

Thanks! Yeah it seems to be something in this openssl CA that I set up several years ago. I just tried setting up a completely new one using cfssl and now my phone is happy again.
Strange that none of my desktop browsers have complained yet, but I'm sure that's coming soon if android isn't trusting the CA any more


text:
How can I copy-paste an image into a form field on Chrome for Android?
I use a Google Pixel 6 with Android 12. I tried the following, but it doesn't work:

Copy the Android Enthusiasts site logo image
Navigate to the Ask Question page
Long-hold the form and select Paste

I have the same issue with the two other websites have tried, namely Gmail and GitHub.
How can I copy-paste an image into a form field on Chrome for Android without having to download and re-upload the image myself?

Use the image URL.

If the image is from a website, long press on the image, select Copy Image. Then go to the field you want the image to be pasted into, long-press on the field and select Paste.

@ReddyLutonadio thanks I've done but got some error as shown in the gif

@Robert  Thanks. I would like to copy the image instead of the URL in case that the website is private

@FranckDernoncourt Apologies I opened Kiwi browser instead of Chrome.

I have tried a little experiment with copy-pasting images on Chrome for Android. Looks like SE Imgur uploader can accept JPG and PNG images fine, but not SVG (the site logo is in SVG format) and Gravatar image (API-returned image). However, I could copy-paste the SVG site logo to Google Keep fine. At this point, I'm afraid it's more of a problem with the SE Imgur uploader (which might be more suitable as a post on meta) rather than a general issue. Have you tried on other sites that also accept pasting images?

@ReddyLutonadio  thank you. This is interesting to know that it works in the kiwi web browser

@AndrewT.  I have the same issue with the two other websites have tried, namely Gmail and GitHub

Do you still have the same issue? It seems to be working fine (at least on my side) with the latest version.

@ReddyLutonadio nice, thank you. The issue is now fixed indeed. You are welcome to post it as an answer

Back in January 2022 when the OP asked the question, I had the same issue while pasting images with Chrome using the Paste option after using Copy image (but not with Kiwi browser, see comments).
With the latest Chrome version (98.0.4758.01), the issue has disappeared. Whatever the cause, it seems the Chrome developers have (for now) solved it.


text:
How do I search for entries containing a given text or regular expression using TalkBack
I would like to know how to use TalkBack to search for entries by issuing a given partial keyword or regular expression. Perhaps, as an alternative, the user could speak an entry, and, after the text was entered, the user could check the text for correctness, by having it read aloud, letter per letter, or as a whole, and then issue the search.
This could be useful in several contexts, for instance, the blind person is coding or using some app with menus or am interface with a list of buttons and wants to get to a given menu entry without remembering its position, without getting confused by listening to other entries, which may make them forget what they're doing.
Or they may be going through the chronology of a web browser, and cannot find what they're looking for.
It would be nice if there were a way to do this, because it would really help.
Thanks.


text:
How to stop Gboard from trying to 'update your typing experience'?
Since a recent upgrade, Gboard started to show notifications saying "Updating your typing experience".
I have all network access of Gboard blocked with the NetGuard firewall, have all data-sharing options I could find in the Gboard settings disabled and have no permissions set for the Gboard app.
I would like to prevent it from sending and storing any data about things I entered. Why do these notifications show and how to prevent them?
It looks like some users reported the same problem 3 years ago on Reddit. I'm using a new Android version. The problem isn't necessarily related to the upgrade.

I'm also having the exact same issue since yesterday on my Galaxy S10e (stock Android 11 up-to-date) and Gboard (see exact version on screenshot). I've been blocking Gboard network access with NetGuard. The notifications occur several times a day.
 Hope the additional info helps, and that a solution exists to stop this nonsense :)


text:
Slow loading of the internal storage folder in PC
Slow loading of the internal storage folder specifically when I connect my phone to the PC. A green bar keeps on progressing quickly at the beginning and seems to be slowing down as it reaches the end and still the folders don't appear. I am not able to transfer the files from my phone to the PC.
Please help.

Please don't use ALL CAPS, it's considered as shouting which is rude and hard to read.

MTP is a very dump and slow protocol but it should come to an end loading the folder. Try to reboot the phone. Also make sure the /sdcard shared folder does not contain too many files (less than may be ~1000).

i did but still it didn't work .

Then I would enable developer options, enable ADB and install a minimal ADB set-up on your PC. This allows you to access the phone via ADB shell and upload/download files to/from the PC. It should not suffer from any performance problems. Using ADB shell you can clean up the sdcard folder. May be then MTP works again. You can also try to clear the Android Media store https://android.stackexchange.com/questions/46315/not-all-files-are-visible-over-mtp

Issue you're facing is mostly because of either of these two reasons:

MTP acts retarded when there are too many files
Windows acts dumb sometimes (switch to linux)

I don't really have a solution to either than switching to linux (as i did) for the latter
Now some REAL workaround to HELP you:

Connect Your phone and computer to same WiFi/hotspot or even connect your pc to the same mobile's hotspot
Download MixPlorer or any other file manager with FTP on your android device

then follow this guide
https://manyandroid.app/android-ftp-file-transfer-mixplorer/
Trust me learning to transfer file this way would just be a one time investment, this setup will help you forever!


text:
How to get out of "Select Boot Mode" screen on ONN tablet?
When I power on my ONN tablet, I come to the "Select Boot Mode" screen.

The arrow moves up and down by itself, and I am unable to make a selection.  I've changed the power button hardware and it still does it.  I have also tried holding down the power and volume up.  It resets, but comes back to this screen.
Is there perhaps something wrong with the hardware?

hello so i see this problem u need a computer to fix this problem u need to install a flasher may i know ur model?

"The arrow moves up and down by itself" seems to hint that a possible problem is with the volume button stuck, thus it always reboots to this screen...


text:
How can I disable the Android 11's auto-reset permissions globally?
Since Android 11, there is a system feature where it resets app permissions after a certain amount of time has passed and you haven't used the app. I hate this, it keeps resetting apps I use infrequently.
I know you can turn it off on most apps, but it seems to turn back on when there are app or system updates. There must be a way to disable this feature entirely or to make the default setting off instead of on.
I have tried various searches but I can find nothing. Others must have had the desire to disable this annoying feature? Any help would be appreciated!

As of Android 12 there's no setting to disable the feature entirely. You've to do it for individual apps which is a cumbersome job. To make it relatively easier, you can use PMX. Disclosure: I'm the author of the app.

In Android 12, even with the toggle OFF it still happens and i still get notifications about it. This "feature" is more nuisance than anything else

@IrfanLatif Your application can control the "Remove permissions and free up space" "feature" of Android? If I can toggle it FALSE for all 196 installed applications I'll buy it today! :)

@Paul AFAIK the same feature is named differently in different Android releases: "Remove permissions and free up space", "Auto revoke permissions", "Remove permissions if app isn't used", and may be others.

I think this might work on some Android versions in an adb root shell: pm disable com.google.android.permissioncontroller/com.android.permissioncontroller.permission.service.AutoRevokeService ;
pm disable com.google.android.permissioncontroller/com.android.permissioncontroller.permission.service.AutoRevokeOnBootReceiver

I don't have the rep to post it but I think the answer might be device_config put app_hibernation app_hibernation_enabled false (run with adb shell, no need for root). I'll have to wait for a while though to see if it keeps removing permissions to be sure :D
Ref: https://developer.android.com/topic/performance/app-hibernation#manually-invoke

I have not found a way to completely disable this "feature", but it can be done per app: Google play store→your profile picture in the top right→"Play protect" (even if it's off)→gear icon in the top right→permissions for unused apps→"Auto-remove on" tab
Then click each, turn off the "Remove permissions if app isn't used" slider and go back.
The app "RepetiTouch" can be used to record and repeatedly execute clicks, but you should be careful with it, when I just tried it, it somehow got into another menu and installed a random app.
This still needs to be repeated after every app install. The closest I've found to automating this is letting an automatic app like MacroDroid trigger on app install and use the "Secure settings" plugin to launch the Google play store activity "[Play Protect] com.google.android.finsky.protect.impl.PlayProtectHomeDeepLinkActivity", which is the "Play protect" screen.

Since you haven't mentioned your OEM, Android skin, etc., I'm going to answer this from my device's perspective, i.e., a Realme device (steps below would also work with any Realme/Oppo/OnePlus device)
Go to app info on each of those apps > permissions > toggle "remove permissions if not used" to OFF.

The question is to disable the feature globally, not for individual apps. OP mentioned that.

Disable Play protect service at all. I have disabled it, and now permissions are not being removed. There is only one disadvantage - it is annoying banner in Google Play asking me to turn on Play protect.

This did not work for me.

@Paul Maybe it auto-enabled itself. It does that all the time. I'm pretty sure that's against GDPR.

It didn't auto-enable itself for me for a while, but I still got removed permissions, so it's unrelated.

Open Settings, open Play Services, scroll down to "Unused Apps", then de-select "Remove permissions and free up space". This is on Android 12 but should also work on 11.

This approach is similar to karthik nair's answer for each app, though it's unclear if disabling only Play Services would work.


text:
How to fix Samsung A8+ (SM-A730F)
Hi, I'm trying to fix my Samsung A8+ (SM-A730F) and have no luck with it so far.
My phone suddenly freeze for almost 1 hour, then reset automatically and enter download mode and stuck in there until now.
I've searched for several solutions and ended up trying to install stock firmware.
Here's the list of thing I've downloaded:

Odin3 v3.13.1 (from samsung odin website)
Odin3 v3.14.4 (from technastic website)
Samsung USB Driver v1.7.48.0
Stock firmware A730FXXU3BRK3 (from samfrew website)
Stock firmware A730FXXU7CTE1 (from samfrew website)
Stock firmware A730FXXU7CUI2 (from samfrew website)
TWRP v3.6.0

Here's what I've tried so far:

I try to flash with each of stock firmware I downloaded using both Odin3 software (with and without administrator).
I try to flash with all 4 BL, AP, CP, HOME_CSC files together
I try to flash with only single file (BL only, AP only, CP only, HOME_CSC only)
I try to re-partition with PIT files extracted from CSC files
I try to flash TWRP (place it in AP section) without BL, CP, HOME_CSC files

Every attempt I try so far ended up with log message "Complete(Write) operation failed".
When I flash with TWRP log show "RQT_CLOSE" and phone displayed a text "Custom binary(RECOVERY) blocked due to remaining installment balance".
Any ideas, suggestion, or advice about how to solve this problem?
NOTES:

I don't have original cable (currently use welcomm cable)
I can't access my setting to know whether my developer and oem are enabled or not
Sorry if I'm posting this in the wrong section

Though I dont think I can help you much here, but i would like to add two things: (a)The cable you're using DOES NOT matter, it needn't be original as long as it works. (b)Developer Options and USB debugging being turned ON or OFF ISN'T a CONCERN here. Neither Samsung's Download mode, nor stock/custom recovery cares that. The rest, let's hope someone comes up and helps you.

I see, I thought developer or usb debugging mode or cable matter. Yes, I hope someone will came up with something, it's kinda frustating to try and fail repeatedly while those solution found in the internet works.


text:
screen mirroring from android tv box to smartphone
I want the opposite of screen mirroring, from android tv box to smartphone.
Reason I want remote control apps on android tv box with smartphone but avoid over the air streaming.
The android tv box is rooted and connected via ethernet LAN port to my home network.
Google TV and other screen cast apps require wifi enabled on tv box (which is disabled). I prefer solution over TCP/IP. scrcpy can control over adb which works on tcpip too, but it's for PC. Therefore I am fine with middle solution control PC from smartphone + control tv box from PC
What can I do?

If you just need to control your AndroidTV without viewing the screen on the smartphone you can use your phone as remote control: https://support.google.com/androidtv/answer/6122465?hl=en

tried com.ecloud.eshare.server it works but unfortunately touch input does not control tv (you can extract apk from Beelink S82 Plus TV Box firmware here)

gms is outdated and does not support android 7.1.1 tv box for some reason. therefore cannot use google tv

was able to install CetusPlay on set top box. it can share screen or remote control at least. unfortunately not simultaneously, that are two separate modes. maybe I should try teamviewer?

couldn't get teamviewer to work


text:
gmail does not show messages in outlook -- install as imap?
I have a OnePLus 7 (not Pro) and use the Outlook app for certain reasons (work).
Because I don't want multiple mail programs if I can avoid it, I always had my Gmail account in there which always worked fine. But now, not sure if this is an update, my Gmail account has become unresponsive. If I delete the account and then:

add it via "Add mail account" -> add Google account, it asks for some permissions the Google way and does not complain, but it does no show any emails, not even the unread ones. I'm "done for the day".
add it via IMAP (selecting not Google) after setting "IMAP enabled" in my Gmail account on the browser, using these directions, it says: Log-in error Please check your email and password and try again.

For route 2 I'm sure the problem is not the e-mail or password, because those work in the browser. And route 1 does not seem to work as it does not load messages.
Does anyone know how to access Gmail as IMAP on and Android device? Does it require the 2-step verification somewhere?

Note that Outlook app is not a mail client. It is a viewer of the mail store in Microsoft cloud (where all the credentials are stored). So the app does not access GMail at all, only the cloud servers do (so behavior can change without app update). Have you set-up an application password on the Google account? Because otherwise Google's two-factor authentication may be a problem.

I have two exchange e-mail accounts in there, and it has an option to add e-mail accounts, pre-configured ones from Gmail, Yahoo etc as well as costom IMAP and POP accounts -- I think it supports e-mail? I used to be able to read my Gmail in there without problems.

I just want to point out that Outlook is not a "classic" email app, it does not read any mail accounts, Instead the mail accounts are managed in Microsoft cloud where also your account data is saved. So Microsoft has access to all your mail accounts, downloads their mails to their cloud and then displays them in the Outlook app.

Ah right. So the IMAP options etc that I fill in are sent to the cloud, then handled there, then sent back to my phone, instead of from my phone straight to the IMAP server? Still, if the options are all correct that should also work (unless they specify that it doesn't)?


text:
Lost mobile data connection upon Android 11 minor upgrade - from Sep 1, 2021 to Nov 1, 2021 - APN menu gone - Motorola moto g 5G
My Motorola moto g 5G was updated to Android 11 with Android security update Sep 1 2021 a few weeks ago. Everything worked fine until a few days ago when there was a seemingly minor update to Android security update Nov 1 2021.
Then I lost all mobile data connectivity.  Mobile calls as well as Wi-Fi data do work as expected.  Several reboots and checks also via menu *#*#4634#*#* seem to indicate working data connectivity to me.  The mobile data symbol "4G" is visible but greyed out, indicating working but deactivated mobile data connectivity - same as when connected to Wi-Fi.  My carrier said that everything is fine on their side.
Also, at the same time the problem started a menu item / sub-menu was lost:
Settings -> Network&internet -> Mobile network

The menu shows the SIM card and a "Use SIM" slider switch (active) but there are no options underneath.   There used to be an "Advanced" option with Access Point Names.  That option is gone - therefore I could not check and/or re-set APNs to try to solve the issue.
How can I re-activate the connection to mobile data?  Is perhaps some new Google app necessary to switch to mobile data?  The phone has Google Play Services disabled (worked well with Android 10 and 11 for several months).
This update also brought a new "WiFi calling" icon in the top notification bar (visible whenever I am connected to Wi-Fi).  There is no Wi-Fi problem, though.  I am just saying this for knowledgeable people to know which software development level I am at.  Perhaps some other, mobile data relevant change was introduced at the same time as Wi-Fi calling was?

Have you tried to remove the SIM, reboot and reinsert the SIM card (and again reboot)?

Thanks @Robert , doing it right now. Shall I re-insert the SIM card while the mobile is on?

Usually inserting a SIM card, while the phone is on, is allowed. Some phones automatically perform a reboot after inserting.

Thanks. Sadly, no effect. Menu still lost and mobile data switched off though 4G-connected, data enabled and Wi-Fi off.


text:
The download button does not appear to download the VR Apps
My phone is not allowing me to download the VR app for my Samsung Gear... The download button is not coming up for me to tap.I tried restarting my phone several times.

By "VR app for Samsung Gear", did you mean Oculus app? Also, just want to confirm from the tag, is the device Samsung Galaxy S7 Edge? Lastly, is your Samsung Gear VR model compatible with Samsung Galaxy S7 Edge?


text:
How to make YouTube URLs open in YouTube app rather than browser? (updated for 2022)
I'm using Android 12 on a Google Pixel 3. My default browser is Brave. I sometimes also use Chrome.
For many types of links, such as https://www.linkedin.com/feed/update/urn:li:activity:6883161994237636609/ , my phone correctly opens the content via the related native app (in this case, LinkedIn).
I want all YouTube URLs to open via the YouTube app and thought my settings (shown below) would enable this behavior; what is wrong?
Although many similar questions have been asked before, their old answers haven't helped me in 2022:

How do I get Youtube Links to open in the YouTube app and not a browser?
Youtube videos open in browser by default
Open links in corresponding app instead of browser
Force links to open in the app, not the default browser

You can see that my settings look appropriate here:

P.S. YouTube URLs within email messages in my Gmail app do open the YouTube app correctly.

This is for Brave Browser only and the navigation that is shown below might change in the future because who knows ¯\(ツ)/¯.
Try disabling “Video playback in Brave” under Settings > Site settings > Media
PS: Similar settings are available in most popular browsers, messaging apps, etc. All you have to do is fiddle around the settings. And most settings won't break/harm your phone.


text:
Samsung Bootloop no recovery A10
So i was in the middle of installing twrp custom recovery on a Samsung A10 (SM-A105FN) but something went wrong. I dont know what or how it failed i just know that it did, and that custom recovery is blocking my normal/default recovery. Which brings me to the point where if i press the volume down button and power button it does turn with the error message that the phone is not running offical samsung software on but no recovery screen no nothing. Its in a bootloop with no recovery mode basically. it doesnt connect to the computer which does not give me alot of hope besides of crying for help.

enter download mode and flash stock ROM from ODIN


text:
EDL is non-functional and /data partition is inaccessible, and I fear that my Android device is permanently damaged
I have a OnePlus 7Pro (GM1917) that was working fine for a long time with OOS 10.3.8. Its bootloader is unlocked, and it was rooted. I hadn't upgraded it for a long time, and recently I decided to flash an A11 ROM: OOS 11.0.5.1.GM21AA. At that point, I lost all ability to access the /data partition.
I know that there can be similar issues with such an A10-to-A11 upgrade, and that many of these issues are solvable. However, I have investigated and tried many things to fix this, to no avail, and I fear that my problem goes deeper than those issues and might not be fixable. But I'm hoping that there might still be something which I haven't tried that could fix my problem.
Here is a detailed description of everything I did, how it all failed, and everything I have tried so far to fix it ...
After the A10-to-A11 upgrade, my device went into a permanent boot loop when trying to boot to System.
I then did fastboot boot twrp-3.6.0_11-0-guacamole.img (which is the version of TWRP that is meant to work with this OOS 11.0.5.1 ROM), and this indeed put me into TWRP. However, the /data partition is inaccessible. Whenever I try to format /data, I consistently get these messages:
Failed to mount /data (Invalid argument)
Unable to recreate /data/media folder.
Unable to mount storage
Unable to mount /data/media/TWRP/.twrps
Unable to wipe data

I then went back to the bootloader, and I ran these commands:
fastboot erase userdata
fastboot format:ext4 userdata

These commands successfully run with no error messages. However, when I then go back into TWRP, /data is still inaccessible, and I get the same error messages that I listed above when trying to format /data .
I then tried to decrypt /data, but when I do so, it asks for a password, and I have no idea what password to give. I never used any password on the device in the past. I am not allowed to decrypt /data without a password.
So, I decided to use the MsmDownloadTool to reflash my device back to OOS 10.3.8. This works fine with a different GM1917 device that I have (but which I never tried flashing to OOS 11). However, with this particular device, after going into EDL mode, I am told that I am "Connected", but a couple seconds later it gives me the "Sahara Connection Failed" message. I have double-, triple-, and quadruple-checked the device drivers, and it indeed is showing that the Qualcomm qds 9008 driver is properly installed and active on the PC. Furthermore, as I mentioned, I have no problem using MsmDownloadTool on that same PC with another GM1917 device.
I then went further: I extracted payload.bin from the OOS 11.0.5.1.GM21AA installation bundle, and I extracted all of the *.img files. I flashed boot.img via fastboot and retried everything that I mentioned above, but nothing has changed.
I then went and flashed all of the *.img files via fastboot. However, still nothing has changed.
When flashing the set of all *.img files, in some cases, I was told that the file is critical and cannot be reflashed. I then ran these two commands ...
fastboot flashing unlock
fastboot flashing unlock_critical

... but in both cases, I am told that the device is already unlocked. Trying to flash all of the *.img files again gave me the same results: i.e., some got flashed, and others were not flashed due to being "Critical".
Also, some of the items I flashed were said to be "sparse", and their flashes were flagged with warnings, but as far as I can tell, they seem to have been flashed anyway.
In the end, I still go into a bootloop when booting to System, the /data partition is still inaccessible, and EDL mode still does not function.
Do these problems with /data and EDL and everything else mean that my device is somehow permanently damaged? Or are there perhaps one or more additional things that I can try in order to restore it to some sort of working state?
Thank you in advance for any thoughts or ideas.

The problem with /data has now been fixed.
I had forgotten that in the past, I was trying the OrangeFox dual-boot recovery on this device, and it had repartitioned /data.
I fixed this by flashing the appropriate *.img files again for my OS (OOS 10.3.8), and then by booting into the standard OrangeFox recovery (the non-dual-boot version) via fastboot, and then by using its adb sideload facility to flash that same OrangeFox recovery. OrangeFox's adb sideload mechanism offers options to the user for repartitioning and rebuilding /data. I utilized those options and set /data back to "Stock", and after that, /data became accessible again, and I could format it and access it in recovery with no problem.
At this point, I flashed OOS 10.3.8, and I then flashed the appropriate TWRP and Magisk. Now, my device is back up and running in that OOS version.
The EDL problem continues, but given that my device is now usable again, I am not overly concerned about this MsmDownloadTool issue at the moment. In my spare time, I'll continue to look into that.
All's well that ends well! ... and now it's indeed a happy New Year for me!

While I don't have a perfect answer for you, I can at least provide some info on MSMDownloadTool. I've resolved that Sahara Connection Failed issue through a couple of ways:

Changing the USB port I am connected to
Reattaching my device
Restarting the program

MSMDownloadTool seems pretty finicky. I usually get stuck in a loop where it completes and then restarts the flash, locking my phone into EDL mode. I'd recommend flashing via fastboot or recovery before resorting to MSMDownloadTool. I've had some luck directly flashing the OTA Updates that OnePlus provides.

Thank you very much. Unfortunately, I tried those same things numerous times with MsmDownloadTool, and unfortunately, that problem persists. However, I managed to fix the problem with /data!  See my Answer, which I am now posting.


text:
Bootlooping VFD 600
I have a Vodafone Smart Prime 7 (VFD600) that is bootlooping since today. It is not Unlocked, rooted or modified in any way. I haven't used it since september, and I have tried wiping data and flashing the stock rom, but no luck.

what was the error message on formatting /data

@alecxs no error message.


text:
I changed my Google account password on my PC. How do I make the change on my phone and tablets?
I changed my Google account password on my PC. That went fine. But how do I make the change on my phone and tablets? I don't want the phone or Google apps on the phone to suddenly ask me for the password when I'm out doing something. I want to change it pro-actively.  But I have not found any way to re-log-in to my Google account on the phone.
Phone is a Samsung Galaxy running Android version 7.0 (I know, I know. New phone in the near future).
Prior Research: A similar (unanswered) question has been asked here 5 years ago Apply google password change to android but the difference is that I am not experiencing the difficulties that poster was.

Google usually does not use passwords for authentication on Android. Only for the initial account set-up you have to enter username and password which is then sent to the Google authentication server but not stored on your phone.
If username and password were correct the authentication server sends back an long term oAuth authentication token (looks like a long string of random characters - usually 50 character or longer) which used for authentication and updated periodically by the server (about every month).
Therefore changing the password has no effect on your Android device. If you want to logout devices from your Google account, Google provides a web page where you cans see all active devices and where you can log out each device if want:
http://google.com/devices


text:
Can I recover someone's WhatsApp chat history after I've mistakenly changed phone numbers?
I've got all someone's chat history on my WhatsApp number after trying to help her when her phone broke.  I want to get it back onto her WhatsApp number - can anyone help?
When her phone broke, I tried to help out by lending her my phone. I used WhatsApp's Change Number feature to change from my number to hers.  Then when I got her a new phone, I used Change Number to go back to my number.  But I didn't realise Change Number changes the number in all Chats and Groups.  All her chats and groups now have my number in them.  So now I get my messages, plus any from her Chats and Groups and I have her entire history on my number.
Can anyone see a way to untangle this mess?  I'm in a lot of trouble.
Things I have tried:

She has set up WhatsApp on her new phone with her original number but the history is gone.
I've looked at restoring an old version of her WhatsApp backup - but I think her history has been over-written by recent backups after this mess happened. I can't find any previous versions on Google Drive.
I looked at transferring my backup to her, but don't think this is possible.
I said I could email her individual chat histories - she wasn't impressed.

Any ideas are welcome. Both our phones are Android.

my opinion: unregister all phone numbers and uninstall WhatsApp on both phones. Don't ever use any facebook apps at all. In case you wanna fiddle with databases TripCode and ztedd have good base to start


text:
Is it possible to recover apks after a wipe?
Today, I unlocked the bootloader of my old Oneplus One, which wiped the data partition of my phone. I had a backup made with adb backup -all but I discovered only after the procedure that apks were not included.
This phone had some apps that I had installed which are not found around anymore. I want to keep them for nostalgia sake. So, I'm wondering if there's some way to recover apks from a wiped phone (just like you can do a disk recovery on a PC using tools such as Recuva). I tried looking on the internet but I found tools that either recover only data but not apks or are pure scams.

If Oneplus  did their job correctly a bootloader unlock wipe erases the user data encryption key and thus makes all user data including APKs unrecoverable.

I see, thanks for the info!

@Robert OnePlus One was released in 2014 with Android 4.4 (upgradeable up to Android 6). As far as my experience goes with OnePlus One (Android 4.4 - 5.0) there was no default encryption of data partition. So if OP checks the current status of encryption they may realize that data recovery is still possible to some extent.

@Firelord I used "adb shell getprop ro.crypto.state" and it returned unencrypted. I'm confident I never activated encryption on this phone before wiping

@valepu in that case unless if you enabled encryption long time ago and forgot about it I'd assume that before you unlocked bootloader your data partition was unecrypted too. Which implies data recovery is possible to some extent.

Yes I'm sure I never activated encryption on this phone. The problem is how to do data recovery

For data recovery you can try reading up this resource: https://android.stackexchange.com/a/208114/96277

oh i see that's clever. Create an image with dd and then use typical PC data recovery tools, i shall try that!


text:
How can I allow mobile data but disable all outgoing texts and all outgoing phone calls?
I have a Google Pixel 6 on Android 12.
How can I allow mobile data but disable outgoing texts and outgoing phone calls?

besides uninstalling phone app and messages app I have no idea

I honestly can't say regarding the pixel 6. That's one thing I miss about the old mobiles.  There is a company " ScaleFusion" that offers this. While it looks like it may be intended for mass implementation , they may have it available for individual consumers.
You could always use a hidden vault or dialer in the interim.
Then place this fake dialer on the home screen
https://play.google.com/store/apps/details?id=come.wakeappbase.dialerprank.


text:
Unable to install P12 certificate in Android 8.1.0
I am using an LG Aristo 2 Plus, Android 8.1.0, and have a CA and client certificate to use for a wifi network.  I have downloaded the certificates onto my phone and when I attempt to install them through:
General -> Lock screen & security -> Encryption & credentials -> Install from storage -> navigate to the files
The files are greyed out or disabled and I am unable to install them.  They're both in p12 format.

They should be in crt format to be installed.

That was it, thanks!

@Walter kindly upvote the answer too if it helped!


text:
Prevent headphones from starting Google Assistant
Like many headphones, my headphones have a button that calls up the phone's voice assistant. The phone is a Fairphone 3, stock OS, which is their own variant of Android, but looks much like any other Android. So the default voice assistant would be Google Assistant. I don't use Google Assistant, or any other voice assistant.
Unfortunately, the assistant button of the headphones is pretty easy to press by accident. That stops the music and tells me to set up Google Assistant when it is safe to do so. This is accompanied by a pop-up saying "Your Google Assistant is ready to help you get things done TURN ON". Furthermore, the question is asked in a deafeningly loud voice, seemingly uncorrelated to any of the volume levels.
What I've found;

This user's solution doesn't work, the default app is set to None, but the phone still asks to set up Google Assistant. This also doesn't work.
This is related, but unanswered.
I'm aware I can remove Google in totality from the phone, which is a cool idea, but then I'd need to figure out how to get a lot of apps without Google Play, and I'm not keen to do that right now.

By turning off everything I could find in the Google Assistant settings, I've managed to stop it from doing anything if the phone is locked. If the phone is unlocked, I still get the popup. Why the Google Assistant settings matter when the assistant is set to None confuses me.
A solution that worked by modifying the response to signals from headphones or by removing the Google Assistant would be great. Rooting the phone is not a problem.

What happens if/when you freeze or disable both Google Assistant and the Google app?

@ReddyLutonadio There only seems to be a "Google" app, but when I disable that all popups/questions from the google assistant go away. The phone warns that this could break other things, but everything still seems to work fine. I will update in a week to let you know if there are any side effects. Many thanks!

@ReddyLutonadio I can confirm that disabling the google app prevents the request for the google assistant to start, and in a week of using the phone I have experienced no adverse side effects, despite the warning given when disabling. If you were willing to write that as an answer I can accept it.

If disabling Google Assistant does not prevent, then try also disabling Google app as it gives access to the Google Assistant via its settings (open Google app, press on your account, select Settings -> Google Assistant). Get started with the Google Assistant on Pixel 4 & later states that:

To use the new Google Assistant, you need a Pixel 4 and up with:

The Google app with version 10.73 and up.

The above is also true for other phones brands and models. So disabling Google app should prevent the Assistant from starting when you insert the headphones.

I'm afraid disabling the Google app means you cannot use Assistant or Google Lens at all. The issue itself seems an obvious big, but I assume nobody at Google uses (or cares about) wired headphones any more.


text:
adb sideload stuck at 36%
I am struggling to flash lineage-14.1-20181216-nightly-i9100-signed.zip , on a old S2
the installation gets stuck both with adb sideload and manual 'install' on TWRP, with message on phone logs
patching system image unconditionally
I tried heimdall flash, following this reddit post but I get the error:
ERROR: Protocol initialisation failed!
any idea?
thanks
ps: also, fastboot does not see any device

it might be a system partition size ... (?) given that on phone it's 503 MB, while the whole LOS folder is 561 MB  ...

maybe this could help ? https://android.stackexchange.com/questions/216123/android-how-to-increase-system-partition-and-decrease-data-partition

actually I try the steps recommended there, but I get adb: error: cannot stat parted: No such file or directory

Based on the Reddit thread, I think you're right that the system partition is too small. Samsung is a bit different than other manufacturers, so I'm not sure parted may work. Btw, I read the continuation on that Reddit thread where they successfully repartitioned using heimdall and correct PIT file. Have you tried that instead?

thanks! I think I managed to install it, by looking at the charging logo ... but the OS  still does not start :/ https://forum.xda-developers.com/t/rom-unofficial-11-0-0-r43-i9100-lineageos-18-1.4199759/post-86209793

although,  not lineageOS 18, but the 14, taken from https://lineageosroms.com/i9100/

lineageos rely on stock firmware. flashing in repartitioning mode, PIT is rewritten therefore all partitions get lost (except overlapping old PIT entries by coincidence maybe)

yeah, although,  right now it's stuck on boot-loop  -- checking this further


text:
make android work as if it's a real physical USB drive
It would be cool to make android behave as if it's a real USB drive when connecting the device to TV and PC(s). So we don't get things like "Unsupported" and make many things possible. I tried doing some diggings and found it was pretty easy in older versions of Android according to this  xda post due to USB mass storage.
Since it was possible to emulate as USB drive, I'm sure it still is possible now.
**In Android 4.4 I found a structure sys>devices>virtual>android_usb>android0>f_mass_storage. My guess is, this can be used for emulating USB drive(guess cause, I'm a total newbie yet to firefup Android studio and write code on it). But I can't find this structure on Android 10(f_mass_storage is missing). Is there there something like this in Android 10 or any workaround with it in Android 10?
**mount my system file. Create a block device mmcblk1(not sure if I used the right term, like /dev/sda in Linux). Format it with USB alike file  type( like /dev/sda1 in Linux ). And somehow direct to this location when a USB cable is connected to a TV or etc throught an app.  Also do I have build a USB drive protocal here instead of Android default protocol?, it's kinda getting messy.....
Am I with a wrong concept to pull this off? If yes, any advice how to do it? Also any reference/article related to it would be much appreciated (as mentioned, total newbie :/ )

USB Mass Storage (UMS) mode is thoroughly explained in my answer to Why can't I see Android storage as a partition on PC?

Thanks a bunch. I spent hours after hours reading the last few days(curse ggl and ddg). Your post/answer was so far the best! If its okay with you, from your expertise, can you recommend me a book(s)/article(s)/topics? I am curious on how android is exposed as USB programmatically! I will try to reprogram the whole thing myself in future, if I have the chance. Thanks for your valueable time :)

Update- I got the start line. Linux usb gadget. But I'm having hard time with tings like if my device have CONFIG_USB_CONFIGFS_MASS_STORAGE enabled) stuffs.               Any advice for this?


text:
How to force app-registered links to open in browser
For links registered to apps, if I don't want to permanently disable the ability to open these links in apps, is there a way to force open them sometimes in browser instead?


text:
Couldn't Connect Private DNS (Own DNS)
I have created my own DNS resolver for blocking some web pages and I can't figure out how to use it on Android. If I configure the DNS of any other device to use my DNS, it works like a charm (I've tested this both Windows and Ubuntu).
I tried configuring it in the Private DNS section of an Android, but it keeps saying "Couldn't Connect". If I use 1dot1dot1dot1.cloudflare-dns.com instead, it works.
So, my question is:
What are the requirements for a DNS Provider to be configurable in the Android's Private DNS section?

Does your DNS resolver support DNS over TLS/DoT?

Yes. When I started looking at the differences between my DNS and Cloudflare, I realized I didn't have support for DoH and DoT. So I applied the necessary changes to support both.

I don't have the rep to just use the comment so this is likely a far cry from a good answer.
The verbiage where you can specify does state hostname so (without rooting?) we have to let the system resolve the hostname. You could use one.one.one.one as well, for the sake of less typing.
I would suspect it's just a typo but you might also check if you entered -com or .com in your device. If you're using the address as entered in the OP, it should be 1dot1dot1dot1.cloudflare-dns.com.
I could be mistaken but, since Android 9, it seems like any private DNS app on the branded Play Store requires the use of VPN tunneling contrivance, on the device. It also looks like the only check it makes is that the TLD field does not begin with a number, as far as how it decides to validate it.

Thanks for noticing the -com. It was a typo, I've edited the question. I'll read your answer carefully tomorrow.

No problem. I'm of the inclination that there is not a non-hostname answer, on Android 9+ Play branded devices, for the behavior you want so I would think you could leave it marked as unanswered. I believe this was changed to enforce DNS over TLS.


text:
Accessibility: camera switches and project activate: when will these be available internationally?
I have a friend with amyotrophic lateral sclerosis. As a result of this, muscles do not receive nourishment in a progressively worsening manner, so that the muscles start becoming more and more impaired and unable to move with time.
I have been exploring camera switches and project activate on Android, hoping that it would allow my friend to communicate through their phone and operate their phone in the later stages of their disabling condition.
These features are described here:
Disabled people can now use Android phones with face gestures
With them, you can raise your eyebrows, look left, up, or right, or smile or open your mouth to perform various actions such as play a prerecorded sound, make a phone call, or call a carer, and with project activate you can also use these camera switches to navigate your phone.
However, I learned that these are only available in Australia, Britain, Canada and the United States.
I don't understand why such a useful feature would be geographically restricted. I am living abroad and cannot find activate on Google Play, although I need it. Does anyone know when these will be available intentionally, or whether there is anything I can use in the meantime?

Based on Meet the 13 newest Android features., "Camera Switches will be made widely available on September 30th." which links to the Android Accessibility Suite app.

For Project Activate, we can't really say anything because we're not Google nor affiliated with Google.


text:
What's turning on Bluetooth every hour on my OnePlus 6?
I noticed something has been turning on Bluetooth on my OnePlus 6 automatically. I googled online and learned to turn off Bluetooth scanning (for location-based features).
However, the problem persists. Something keeps turning on Bluetooth every hour, at the 37th minute, i.e.

I turned Bluetooth off. Then at 2:38 pm, I hear the sound that my phone connected to my Bluetooth speaker.

I turned it off again. Then at 3:38 pm, I hear the sound that my phone connected to my Bluetooth speaker.

I turned it off. The same thing happened at 4:38 pm.

What is doing this?

I had a similar issue a few years ago.  Although I never found the culprit, a workaround was to uninstall the Bluetooth drivers.

You can try to enable developer options and adb on the device and then check adb logcat at the time Bluetooth gets enabled. May be the log contains something you can identify the cause.

Thanks a lot to Firelord's response.
I followed the leads they gave and ended up finding the culprit is the smart lock I installed for my home that requires bluetooth.
I found this line in android.log file: BluetoothManagerService: enable(com.august.luna).
With OnePlus 6, I didn't have to use adb, I was able to:

turned on Developer Option,
turned on Debug level logging (the log line of answer is debug level),
turned on Save Log (didn't reboot though. don't know if it actually mattered),
and then shared the log (uploading it to my Google Drive).

On my OnePlus 6 running OxygenOS 10.3.11 (Android 10) I can find out the culprit using the following adb commands:
adb shell
dumpsys bluetooth_manager | toybox sed -ne '/abled.*due.*to.*APPLICATION_REQUEST.*/p'

Example:

$ adb shell
$ dumpsys bluetooth_manager | toybox sed -ne '/abled.*due.*to.*APPLICATION_REQUEST.*/p'
  01-05 13:31:04  Enabled  due to APPLICATION_REQUEST by com.arlosoft.macrodroid
  01-05 13:31:18 Disabled  due to APPLICATION_REQUEST by com.android.systemui
  01-05 13:31:27  Enabled  due to APPLICATION_REQUEST by com.arlosoft.macrodroid
  01-05 13:32:22 Disabled  due to APPLICATION_REQUEST by com.arlosoft.macrodroid
  01-05 13:34:24  Enabled  due to APPLICATION_REQUEST by com.arlosoft.macrodroid
  01-05 13:39:22 Disabled  due to APPLICATION_REQUEST by com.android.systemui

As you can see the command queries Bluetooth Manager service and filters out information relevant to us. If you want to find out where this information is in the full log/dump, look for the heading Enable log: in the full dump of bluetooth_manager using dumpsys bluetooth_manager. This information may prove useful if my dumpsys query fails to produce output.
The string after by is the package name of the app that requested Bluetooth be enabled or disabled at the given time. To find the app name from the package name you can use my answer for the question "How to find app based on package name?"

One can also find out this information (package name) by filtering the logcat
adb logcat | grep -i 'bluetooth.*packageName'

Demo output:

01-05 13:32:22.305  1193 16018 E BluetoothManagerService: [CW] addActiveLog, reason: 1, packageName: com.arlosoft.macrodroid, enable: false
01-05 13:32:22.305  1193 16018 D BluetoothManagerService: [CW] Bluetooth Manager Service, enable: false, reason: 1, packageName: com.arlosoft.macrodroid

Thanks a lot. This is very helpful. I followed the leads you gave and ended up finding the culprit is the smart lock I installed for my home that requires bluetooth. I found this line in android.log file: BluetoothManagerService: enable(com.august.luna). With OnePlus 6, I didn't have to use adb, I was able to turn on Developer Option and then share the log (uploading it to my Google Drive).


text:
WiFi connection is unstable when uploading (or perhaps downloading) large files with FTP
I use an app like WiFi FTP Server or Files on Xiaomi Poco 3. Everything works perfectly. However, often the upload break. I notice that I cannot access the internet either when that happens.
Quickly turning on and off WiFi fixes the issue and if fast enough, the file transfer will resume.
I use an app for pinging.
.
As you see, after a while, pinging the router IP will fail.
However, turning off and turning on WiFi quickly will restore connections. This is of course a very annoying problem. That's because I have to keep guarding the smartphone.
As far as I know, this is only happening when uploading large files. If I do nothing, the WiFi is fine. I am using WiFi FTP Server app on Android and FileZilla on my computer. I don't think the problem is in either software. Using Xiaomi's own Files will have the same problem.

How to fix this? What can possibly go wrong?

Wifi is a shared media, collisions can occur at any time that is nothing unusual. What Wifi channel(s) does you Wifi use? If your Wifi supports "extra wide/broad channels" disable them. The wider a channel is the higher the chance for disturbances. If router and phone support it make sure to use 5GHz Wifi usually this frequency range is not so crowded.

Is the ping stable on the PC? There's a possibility that the router/ISP may do some throttling/back off when it detects a surge of bandwidth usage.

Let me check. Router throttling back when it detects a surge of bandwidth use? Interesting. How do I find out?


text:
How to enable the OEM unlocking option if isnt available in the developer options menu?
Im trying to unlock the frp and the phone , based on kirin 710 and 710A, and there is no OEM Unlock option in the developer menu.
It has been issued the commands:
fastboot -s usb:1-1 oem device-info
fastboot -s usb:1-1 oem unlock
fastboot -s usb:1-1 flashing unlock

all with and without the -s argument, the phone is using emui 9, the usb cable is ok, and the phone is booted in fastboot.
All the commands report a
FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

AFAIK, this is because the oem unlock isn't enabled.
So, how can workaround this?
Thanks.

I would assume you don't find this option because your device does not support an official way to unlock it. Please read this blog post and the contained links https://www.xda-developers.com/huawei-honor-bootloader-unlock-potatonv/

Thanks Im reading the article and I will post what happened.

The thing the socs dont appear in the supported list, but Im going to try anyway.


text:
Moto G7 Power (XT1955-4) detects two touch inputs
I bought an aftermarket replacement LCD + touch for my Moto G7 Power off Aliexpress. However, it has an issue.
The problem is that it sometimes detects a touch in the top middle of the screen. This is the part of the screen where the notch is. So an actual physical touch on that part of the screen could never be registered because there is no touch sensing there.
When I then touch the screen anywhere else with just one finger, it detects two touch inputs. My screen is unusable in this state (obviously). I have to turn the screen off and back on again to get rid of this error. Here is a screenshot of the issue:

I have tried cleaning the connector, wiping data and cache + Dalvik cache. I downgraded my phone to another firmware version. I tried two different custom ROMs (LineageOS 18 and 17) but the issue persists. I'm using the original charging cable. No screen protector. It happens during normal usage without the phone heating up bad. A restart doesn't help, it only temporarily fixes the issue in the same way turning the screen off and on again does. Sometimes it happens 1 minute after I turn the screen on, sometimes it doesn't happen for half an hour. On average I would say it happens 50 times a day, which is getting very annoying.
I managed to start the partial screen app and press RUN SCREEN ANALYSIS through ADB shell after the glitch started happening. But after a minute, the app tells me "no areas were added". The erroneous touch is happening at (339.5; 0) so I also tried starting the analysis and then sending a tap event at those coordinates but still, no areas were added.
Is there anything I can do? Like making the system permanently ignore touch inputs in that region? I'm fine with such a solution as long as it works. I have some knowledge about Unix and Android systems, but I'm not an expert at this. Btw, I have already filed a complaint with the seller.
[EDIT]:
I managed to remove the notch by installing None Display Cutout through Magisk. This allowed me to run partial screen full screen. Then I did an analysis in partial screen and sent an input event through ADB with: adb shell input tap 339.5 0. This time, a partial screen found an area and has included it in its ignored regions. However, the glitch keeps happening still!


text:
Installed base system size on Galaxy S10+ smartphone
I recently had a brief chance to look at a Samsung Galaxy S10+ smartphone with 512GB of internal storage and 8GB RAM. After the base setup, there was already about 70GB of used memory on the device, which made me curious.
In the system settings the device claimed that the "Base System" already consumes a whooping 47GB (!!!) of storage in this device. I can't believe this is real. The previous device (Galaxy S7) only had 32GB of internal memory and the system was just ~5GB, and that included the mirrored partition Android keeps around for seamless updates. Within a few weeks of usage the used space on this device is already about 80GB, and that's without having gigabytes of photos or videos around.
My Question: How can I find out what is actually included in this gigantic "base system"? I found some SM-G975 base images on the net (e.g. samfirms.com) but those are all much smaller (~6..7GB unzipped).
Preferably without having to root or otherwise modify the device (which I don't own).
Update: Found related question here: Android OS Storage Usage So it's reproducable. I wonder what the author of that question found out?

Check the partition list as shown in the linked question. Then you know more details. I would assume that the cache and other partitions are increased. You also have to consider that all those Samsung pre-installed app got an update which is then installed in data partition.

might be related (btw you can't root without data loss therefore you are limited to shell permissions) https://android.stackexchange.com/q/220729