text:
Getting DeadObjectException on uninstalling any app using adb
On a fairly old non-rooted Galaxy Tab A-tablet I wanted to uninstall all the Samsung and Microsoft apps and most of the Google packages to make it faster. Using adb shell pm uninstall -k user 0 I uninstalled 106 packages but after com.sec.android.app.music I suddenly can't uninstall packages anymore. Instead, I get a DeadObjectException and the tablet reboots:
$ adb shell pm uninstall -k user 0 flipboard.boxer.app

    android.os.DeadObjectException
            at android.os.BinderProxy.transactNative(Native Method)
            at android.os.BinderProxy.transact(Binder.java:628)
            at android.os.BinderProxy.shellCommand(Binder.java:675)
            at com.android.commands.pm.Pm.runShellCommand(Pm.java:299)
            at com.android.commands.pm.Pm.runUninstall(Pm.java:674)
            at com.android.commands.pm.Pm.run(Pm.java:170)
            at com.android.commands.pm.Pm.main(Pm.java:103)
            at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
            at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:315)

It looks to me like pm needs something that isn't there, so I might have uninstalled something that it needs. My question is, how do I find out what it was, and, assuming it wasn't the Samsung music app, why did it function correctly until after I installed that?
In an attempt to start over I have reset the tablet to factory settings and all the apps are there again, including the music app, but even now I get the same error when attempting to uninstall any of them.

First, I noticed that user needs some dashes to look like --user Second are you sure that is the package name? "clipboard.boxer.app" because general but not always the case it starts with a com.package.name

OP also posted on XDA Forum, just in case the issue has been resolved there but not here yet.

@AndrewT Sorry for the cross posting but my question got no response there which made me wonder if I even found the right forum for this problem. Can you tell me if it is?

@Lilfuzzybunny007 Thanks for the double dashes suggestion. I will try it when I get home tonight.

@Mr.Wrong no worries :) I accidentally found your thread on XDA while researching for this issue, so I decided to link it here... just in case there are additional details posted on there but not here. FWIW, this question is on-topic on here (issues faced by Android end/power-users).

Are you able to uninstall other packages or is it only this package that fails to uninstall? Have you tried to reboot the device?

@Robert I get this error with any package I attempt to uninstall. The above is just an example.

So it appeared @Lilfuzzybunny007's suggestion worked. Thanks everyone!

I noticed that user needs some dashes to look like --user
Second are you sure that is the package name? "clipboard.boxer.app" because general but not always the case it starts with a com.package.name


text:
Can we find out who has developed the app by looking on the signature?
Is it possible that the published app is not signed by its developer andd if yes, How can we find out who is the app developer?

Yes it's possible, you can check by unzipping the APK, finding the META-INF/CERT.RSA file which contains the developer's public key and using the command openssl pkcs7 -in /path/to/extracted/apk/META-INF/CERT.RSA -inform DER -print.
For more info have a look at the first section of this link: https://www.evilsocket.net/2017/04/27/Android-Applications-Reversing-101/.

The way you describe only works for APKs that are signed with the old v1 signature scheme. For APKs that are only signed using v2 or v3 signature scheme you need apksigner tool for the Android SDK. See this answer how to to use apksigner to verify the issuer of an APK file.

source: Stack Exchange

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

sort: votes


text:
How do i remove the "Pre-LockScreen" before pattern unlock on Android 9.0
Is it possible to remove the "Pre-Lock Screen" on android 9.0. Basically when i press the power button to wake my phone what displays is a Grey Co loured Lock Screen showing the time and Date, if i scroll this up it then asks me to fingerprint unlock or pattern unlock.
Kind of annoying because if i want to glance at my notifications i need to first swipe up, then when it requests the pattern hit the back button to display my lockscreen background and my notifications ect.
The First Image display the Pre-lock i want to remove and the third is where i want it to be whenever i press my power button to wake my phone

I don't know if this is the standard behavior of Android 9.0 Pie or vendor's customization, but just in case this is device-dependent, could you provide the phone model?

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


text:
Why `diag_mdlog` not able to write on `/sdcard` if it is fired from an Android App that has write permissions?
I am getting a weird behavior with diag_mdlog executable. I am executing it from my Android app as

su -c /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg

The issue is:

if the android app has granted android.permission.READ_EXTERNAL_STORAGE or android.permission.WRITE_EXTERNAL_STORAGE then it exits with permissions denied error as the following logs:

01-20 17:56:35.403 19087 19087 E Diag_Lib: diag_mdlog: command = o
01-20 17:56:35.403 19087 19087 E Diag_Lib: diag_mdlog: command = f
01-20 17:56:35.403 19087 19087 E Diag_Lib: diag: No Session is active for the given mask
01-20 17:56:35.403 19087 19087 E Diag_Lib: diag_mdlog: Error creating: /sdcard/abc, errno: 13
01-20 17:56:35.403 19087 19087 E Diag_Lib: diag_mdlog: Attempting to use default directory
01-20 17:56:35.403 19087 19087 E Diag_Lib: diag:In main failed to create xml file
01-20 17:56:35.403 19087 19087 E Diag_Lib:
01-20 17:56:35.403 19087 19087 E Diag_Lib: diag_mdlog: Continuing with default directory path /sdcard/diag_logs/20200120_175635
01-20 17:56:35.403 19087 19087 E Diag_Lib: diag_mdlog: Unable to create directory, errno: 13 Exiting....

OTOH, if the app has not granted both the permissions then it works fine as the following logs:

01-20 17:57:38.258 19364 19364 E Diag_Lib: diag_mdlog: command = o
01-20 17:57:38.258 19364 19364 E Diag_Lib: diag_mdlog: command = f
01-20 17:57:38.258 19364 19364 E Diag_Lib: diag: No Session is active for the given mask
01-20 17:57:38.259 19364 19364 E Diag_Lib: diag_mdlog: Warning output directory already exists: /sdcard/abc
01-20 17:57:38.259 19364 19364 E Diag_Lib: diag_mdlog: Proceeding...
01-20 17:57:38.270 19364 19364 E Diag_Lib:
01-20 17:57:38.270 19364 19364 E Diag_Lib: diag_mdlog: Diag_LSM_Init succeeded.
01-20 17:57:38.270 19364 19364 E Diag_Lib:
01-20 17:57:38.270 19364 19364 E Diag_Lib:  REMOTE PROCESSOR MASK 0
01-20 17:57:38.270 19364 19364 E Diag_Lib: diag:kernel supported: NUM_PERIPHERALS = 6, DIAG_CON_ALL: 127
01-20 17:57:38.271 19364 19364 E Diag_Lib:  logging switched
01-20 17:57:38.271 19364 19364 E Diag_Lib: Output dirs /sdcard/abc --- /sdcard/abc
01-20 17:57:38.271 19364 19364 E Diag_Lib:
01-20 17:57:38.271 19364 19364 E Diag_Lib: diag_mdlog: Reading mask for MSM, proc_type: 0
01-20 17:57:38.271 19364 19364 E Diag_Lib: Reading the mask file: /sdcard/Test.cfg
01-20 17:57:38.271 19364 19364 E Diag_Lib: diag: Determining contents of directory /sdcard/abc for circular logging ...
01-20 17:57:42.446 19364 19368 E Diag_Lib:  creating new file /sdcard/abc/diag_log_20200120_1757421579523262440.qmdl

Now, if I will deny write permissions from Android settings then I will get further error logs as the following:
01-20 18:00:18.799 19364 19368 E Diag_Lib: diag: In log_to_device, error writing to sd card, Permission denied, errno: 13
01-20 18:00:18.799 19364 19368 E Diag_Lib:  failed to write to file, device may be absent, errno: 13
01-20 18:00:18.799 19364 19368 E Diag_Lib:  File open error, please check
01-20 18:00:18.799 19364 19368 E Diag_Lib:  memory device -1, errno: 13
01-20 18:00:18.800 19364 19368 E Diag_Lib:  File open error, please check
01-20 18:00:18.800 19364 19368 E Diag_Lib:  memory device -1, errno: 13

Update 1
I have just tried to play with quotes around the command and it has following result:

DL is diag_mdlog logs
PL is java.lang.Process :: error stream logs

# Samsung S10 5G
    * Read/Write permissions GRANTED

        - su -c /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg
        DL: - diag_mdlog: Unable to create directory, errno: 13 Exiting....

        - su -c '/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg'
        PL: - /system/bin/sh: /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg: not found

        - su -c `/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg`
        DL: - diag_mdlog: Unable to create directory, errno: 13 Exiting....

        - su -c "/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg"
        PL: - /system/bin/sh: /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg: not found

    * Read/Write permissions Denied

        - su -c /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg
        * Run FINE.

        - su -c '/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg'
        PL: - /system/bin/sh: /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg: not found

        - su -c `/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg`
        * Run FINE.

        - su -c "/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg"
        PL: - /system/bin/sh: /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg: not found

# Mi K20 PRO
    * Read/Write permissions GRANTED

        - su -c /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg
        DL: - diag_mdlog: Unable to create directory, errno: 13 Exiting....

        - su -c '/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg'
        PL: - /system/bin/sh: /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg: inaccessible or not found

        - su -c `/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg`
        DL: - diag_mdlog: Unable to create directory, errno: 13 Exiting....

        - su -c "/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg"
        PL: - /system/bin/sh: /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg: inaccessible or not found

    * Read/Write permissions Denied

        - su -c /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg
        * Run FINE.

        - su -c '/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg'
        PL: - /system/bin/sh: /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg: inaccessible or not found

        - su -c `/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg`
        * Run FINE.

        - su -c "/vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg"
        PL: - /system/bin/sh: /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg: inaccessible or not found

Update 2
I was just wondering to run it in background process with

su -c /vendor/bin/diag_mdlog -o /sdcard/abc -f /sdcard/Test.cfg &
  but it is also not working.

Even creating the following shell script at /system/script/ with giving 755 permissions and executing it doesn't help me.
exec_diag_mdlog.sh:
raphaelin:/system/scripts # cat exec_diag_mdlog.sh
#!/system/bin/sh

diag_mdlog -o /sdcard/oem_logs -f /sdcard/Test.cfg &

raphaelin:/system/scripts #

Any suggestion to let the command will not execute in the context of app?
Any solution to this problem?

Read about how Android makes use of mount namespaces to control storage permissions. And UIDs/GIDs 1015, 9997. Does the command work from Termux? Also quote the whole command like: su -c '...'.

It does work with adb shell and also from any app that doesn't have Write permissions granted.

No luck with a single quote. I have updated the question with more detail.

@IrfanLatif Is it possible to run a command to create a process that runs diag_mdlog executable beyond the context of an android application? (I know I can do this with init scripts but I want something that I can execute from my app directly)

@IrfanLatif Is it possible?: 1. Create a shell script that will start/stop diag_mdlog. 2. Create custom prop(something like in build.prop) 3. Create an init script to run the shell script based on the custom prop. 4. Now the app can enable/disable custom prop to start/stop diag_mdlog

Yes it's definitely possible. Executing directly from app should also work (if it works from a terminal emulator app; directly on terminal and in shell script). But it's more about app development how you need to execute it from within app. When executing su you run it with Magisk context, not app context. As I mentioned in my first comment, do take care of mount namespace separation regarding storage permission. Run with strace to get more specific reason of failure.


text:
Change default folder for Chrome bookmarks
Every time I add a bookmark in Chrome, it saves it to "Mobile bookmarks". I now have to press "Edit" and change the folder to "Bookmarks bar". I'm sure that Chrome previously saved to the last folder that was saved to. Is there a way to default to Bookmarks bar?

It seems like Chrome now does this - not sure if something was fixed recently! Cannot Reproduce.


text:
How can I clear the "Auto Backup" data to get a clean install?
When I delete and then later re-add an app, the app doesn't start "clean".  Instead it "remembers" things from the last time the app was installed, which I do not want.
I have tried settings > (specific app) > storage > clear data  and settings > (specific app) > storage > clear cache, but despite those actions, there are things the app remembers.  And even if I delete the app at that point, then reinstall it, it remembers things, so this is not a clean install.
How can I delete the app data or clear the app data or remove the app data that is saved (and later restored) by the Android Auto Backup process?


text:
Why can I still not receive OTA updates after flashing stock firmware on my Moto G7?
After purchasing a Motorola Moto G7, I rooted it using TWRP and Magisk.  After a few months of having it rooted, I decided to undo the process in order to restore the ability to receive OTA updates.  I flashed official firmware and re-locked the bootloader, but I still get the boot warning saying that a separate OS was loaded and that it's a security risk (yellow).  After checking the system Settings, I discovered that I still couldn't receive updates either.
Relevant Information

Product/Variant: river XT1962-1 64GB PVT
Firmware/OS: RIVER_RETAIL_9.0_PPOS29.114-134-7_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
Followed this process to restore stock firmware: manually update G7 using fastboot | Moto G7

I'm not sure if this makes any kind of a difference, but I did encounter an issue when locking the bootloader:
root@ThinkCentre-M900z:/home/user# fastboot oem lock
...
(bootloader) Flash valid Android images now
(bootloader) Then re-run this command to lock
OKAY [  0.003s]
finished. total time: 0.003s

After the above command failed to re-lock the device, I tried using fastboot flashing lock and that seemed to work.
root@ThinkCentre-M900z:/home/user# fastboot flashing lock
...
(bootloader) Phone is locked. Rebooting phone.
OKAY [  0.004s]
finished. total time: 0.004s

When I run fastboot oem lock after having used flashing lock, it gives a message stating that the bootloader is already locked.
I have two theories so far:

The firmware I flashed is incorrect
The bootloader is not actually locked (this seems improbable)

Is there any way to fix this?  Or am I doomed to manually installing OTAs until I get a new phone?  Please let me know if I left out any important information.
Any help is appreciated.

i guess the oem lock has kind of validation checks (which failed, for example wrong boot.img) but flashing lock does ignore this and lock the bootloader regardless the validation. you need to unlock again, flash the right files and lock with oem lock

@alecxs That's basically what it said when I ran fastboot oem lock.  Any idea where I could get the "right files?"

unfortunately no https://www.youtube.com/watch?v=OcuyyPMKX40


text:
What are the causes of an android phone bricking?
I will try to change a firmware of SAMSUNG Galaxy J600FN with a current firmware of J600FNXXU6BSK2 with a new firmware J600GDXU3ARH5. I am changing the firmware to bypass the FRP because methods like Talk back, Inserting/Removing Sim card and HushSMS won't work.
Questions:

Will this scenario will be suceeding in changing firmware?
What are the common causes of the android phone bricking? (Hard/Soft Brick)

You might wish to consult these questions – especially What is actually happening when you hard brick a phone? – and our unbricking tag-wiki (follow up to What does it mean to “brick” your phone? and Why is bricking possible?) // Further, I'd say the [tag:frp] tag doesn't fit on your question (or what does factory-reset protection have to do with bricking the phone?)

May help: Bootloader/BIOS, flashing ROM and correlated risks. Why Android devices are more brickable than PCs?

If you are flashing ROM, Common causes could be

Wrong ROM
Battery Failure (Please make sure it is charged fully or upto 70%)
Power Off/ Cancelling process in between.

Please search for the same Model ROM to Upgrade to current version.
Also in Settings, search for Software Update option before trying anything else.


text:
Record screen problem
vivo 1902 - unable to capture the screen of this interface due to app limitation on
how to override this situation when record screen from some apps. If I use the app recorder it just blanks when I play it again.

You cannot do screen recording on apps which restrict taking screenshots and recording. Your only solution will be root access, I believe.


text:
What and when clears content of /data/local/tmp?
I plan to copy and start precompiled binary from  /data/local/tmp and I would like to get any information one edge cases that might cause some potential issue, like - what and when this folder being cleared out during either normal OS operation or reboot? Okay, the reboot case is obvious but what about normal operation? Do these "Clear cache" tools normally clear it out as well? Any default services/daemons that do that?

I beg to differ that a reboot deletes files in /data/local/tmp. Never did a reboot delete any of my files located there in any of my phone.

it is never cleared

... at least on stock Android.


text:
I have an old Xcover 3 and want to access all files as there are 3 GB I cannot access
Is there a way I can access all or nearly all files including the operating system files?
I would like to see what is eating up space in it. I kept deleting files and without downloading anything or taking photos and more and more space was taken up until the phone was full again.
I ended up installing an SD card and removing a lot of apps I don't use much.
It only has 8GB internal memory, 4.53 GB of space shows up when connected to a PC which makes sense with the system memory being 3.13GB.
I have now deleted and removed as much as I can and it shows 1.38 GB free. When I first got it there was much more free space than that.
It is running 6.0.1 and shows:
system memory 3.44GB
used space 3.13GB
available space 1.38 GB
which adds up to 7.95 GB.
I would like to know what is in the 3.13 GB used space as all the files and folders I can see with a PC is 24 MB.
dialing *#9900# (Delete dumpstate/logcat) has no effect

See my answer to How disk space is used on Android device?

Thanks, I loaded a terminal emulator and found Knox is using 3.2GB. On the app info it just shows a few MB. It looks like I will have to root it to see what is in there.

Without root you can't be 100% sure where space is being used. But in most cases it's possible to get a close estimate.

I have seen that rooting it may cause a problem with Knox. As this is a work phone I don't want to mess too much with it as I am sending it back soon as I have a new one. What could Knox be storing that woud take up over 3 GB?

If it is a work phone the admins of your company may use the work profile feature. In that case all apps that run inside the Knox protected area may be included in that 3.2 GB storage size calculation. Therefore check all your work apps for their data usage. Especially mail and browser app usually cache a lot of data. In the end it is like Irfan said, if you don't find the causing app(s) by chance you will never know it without root - hence you have to live with it. And complain at your company buying 8GB phones - 16GB+ is the minimum today for a usable phone.

The phone was supposed to be temporary, I have had it 3 years. We have had a change of manager and now have Samsung A50's

There was talk that the old manager was monitoring our calls and possibly controlling the microphone and maybe the camera.
There were a few people who said he knew things they had not told anyone else at work or just one person by phone. He put live (by 4G) cameras in our vehicles and trackers that analyze our driving. Glad he's gone.
I was wondering if there was any data hidden in the phone that would prove this.


text:
Add WhatsApp images to Google Photo album in the cloud
I have a HUAWEI P20 phone and I am using the native Google Photos app to organize my photos on this device. Only the Camera folder is set for automatic upload to the cloud.
I am using Viber and WhatsApp on this phone. Their image folders are not uploaded automatically to Google Photos in the cloud and I do not need this, so that automatic uploading for this folders is turned off.
I also have a couple of albums in Google Photos to which I add particular photos from the Camera, Viber Images and WhatsApp Images folders. The problem is that only photos from the Camera and Viber Images folders I added to my albums on my HUAWEI device appear in the cloud (when I view them online at https://photos.google.com/). The images from the WhatsApp Images folder I add to the albums never appear online.
Does anybody know how to solve this problem?

P.S. I've looked at full image paths in Viber Images and WhatsApp Images folders to find any difference that may lead to this effect. It seems, paths for Viber and WhatsApp images have the same structure and this is not the source of the problem:
/storage/emulated/0/WhatsApp/Media/WhatsApp Images/IMG-20200108-WA0000.jpg

/storage/emulated/0/viber/media/Viber Images/IMG-9104f1a4b3f873e1d9c8806bb9a8bd25-V.jpg

And sure, I am using the latest official firmware on my phone.

You have to manually change the settings for it to be backed up.
In the Google Photos app:

go to the Albums tab
locate the PHOTOS ON DEVICE section
scroll to find the WhatsApp Images folder
when you click to open it, on top, right after the title, there is a Back up & sync switch -> click to activate it.

If you also want to back up the videos, there's a separate folder for that, you have to activate the switch for it too - and for any other local folder you might want to have in the cloud.

Guys and girls, please, do not tell me how to enable automatic upload of WhatsApp or Viber images into the cloud. I KNOW HOW TO DO THAT AND I DO NOT NEED THIS! I receive a lot of images in Viber and WhatsApp, but I want to store only SOME OF THEM in my albums online. This works as expected for Viber but not for WhatsApp. I am trying to understand why.


text:
Auto reply to sms from specific contact
I would like to send an automatic reply sms to a specific text. Is there an app or way this could be done? I am using the default Android sms app. I have searched for auto-reply apps but most don't allow selection of a specific contact. Also I would like something simple and don't need things for Whatsapp, Facebook messenger etc.

automation app from playstore is exactly what i use for tracking my kids. i send sms with specific text "where are you" and receive auto reply sms with location (to my specific number only)
found this in changelog to my favorite automation app
Due to new Google Play policy restrictions to prevent apps accessing the SMS inbox:

Removed monitor inbox option for incoming SMS
Removed SMS Sent trigger
Removed Delete SMS action

assuming this rules apply to every app in playstore, you need to find older apk (Dec 2018)
https://www.apkmirror.com/apk/arlosoft/macrodroid-device-automation-2/macrodroid-device-automation-2-3-30-3-release

You could try Tasker
https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en_GB
It can be a little intimidating at first but there are lots of guides online for automating stuff, including this one for sms auto reply.

Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Especially, the Tasker Profile & Task needed to do this.


text:
Charge and USB flash drive through same port
I have a Pixel 3.  I'm trying to use an external USB connected microSD card for recording long videos in a vehicle.  However, even with wireless charging I'm finding that the power supplied is insufficient to keep the battery from draining.  I would like to therefore provide wired power, at the same time that the USB drive is connected.  How can I do this?
My first throught was some kind of USB hub, but then I realized that the phone will be accessing the device in on the go mode, not normal slave move.
 Various bits of research suggest that it's not trivial or standard
But it does seem to be possible.  I don't want to do any wiring, I just want something off the self.  One answer to the above linked question  specifically says:

To have your tablet to be charged and simultaneously be in host mode, a special arrangement is required. In USB charging specification it is called "accessory charger adapter". For some more details you can see this item. However, your tablet must support this "accessory" mode, which may not be the case.

I don't even know how to tell if my device supports this mode.  The words "accessory charger adapter" are rather overloaded and Google returns a lot of completely unrelated stuff.

ADDITION: The devices are available at Amazon with keyword search [OTG and charge at the same time]

I also tried this search, but am still no closer to finding something that should work.

Does this answer your question? Can OTG HUB charge with connected charger more than 0.5A?

your external microSD card is connected via USB OTG so the problem remains the same - no charging in host mode

@alecxs That question doesn't seem to provide a clear answer on anything... I don't see a link to the actual device, but the answer seems to suggest that the product in question claims to support OTG and charging simultaneously... except that it apparently can't (is it lying?!)... except there are certain devices which it purportedly can do this with... except nobody seems to know where the list of devices is.

yes they lying.. for usb-c it may different https://android.stackexchange.com/q/194421

good luck https://www.google.com/search?q=custom+kernel+pixel+3+otg+charging+aca+mode

@alecxs Thanks, I'll need it apparently... I'm still on the Dec 2018 security release in the hopes that somebody will crack Verizon's stupid bootloader disabling so I can actually root my device.

just linking for future reference https://android.stackexchange.com/q/114070

@alecxs Thanks... it seems the keywords I am looking for are "USB-C Charging OTG Host", although so far it seems they are all micro-USB, not USB-C.

"This OTG hub can also charge your phone using the micro USB charging port adaptor and it can charge in two way" (lie - it can charge, but not same time in OTG mode) https://www.ebay.com/itm/153301609120


text:
Galaxy Tab S5E and multiple SD cards
I got a Galaxy Tab S5E today to use as a photo editor. This is the 64gb version so I grabbed a micro SD card and put into it. A 128gb card. The card and tablet work together as expected.
I also grabbed a USB C card reader to plug in my camera SD cards on the go.
The issue I'm having is that the usb card reader is not working unless I remove the micro SD card and vice versa.
Is there any way to fix this?
The card reader doesn't registers as an SD card. It registers as a "usb mass storage device" so I'm not sure why there would be any type of conflict.


text:
Does Samsung has a feature like second space in Xiaomi?
In Xiaomi we can do second space.
Put certain password we go to first space.
Put another password and we go to second space.
Xiaomi also support dual apps, which is a different feature.
Combined, I think we can have like 4 Whatsapp account per phone.
What about samsung?
Do we have second space in Samsung?
I've heard some devices allow for multiple users sharing a phone.
Say you do regular whatsapp in one device. You do your secret businesses on another user. If someone forces you to open your devices you will just show your first user.
Note: Samsung seems to have ways to allow multiple users on the same phone
https://eu.community.samsung.com/t5/Tablets/Multi-User-switching-accounts-something-you-should-be-aware-of/td-p/1316185
However, there is no way to hide that extra users from say cops.
Android in general can
https://android.gadgethacks.com/how-to/android-basics-set-up-multiple-user-accounts-same-device-0168597/
However, there is no way to do it like second space.

http://www.samsungknox.com

UPDATE: there are apps for isolating environment and e.g. hiding other apps. Check Island.
Unfortunately, lots of Android capabilities are limited by producers - that's the case, too. According to this link on Reddit, people are searching, but with no success. The only devices are tablets, described e.g. here on Samsung Support page for Galaxy Tab S.
Of course you can enable multi-user functionality by modifying system files, but mostly that's not the way a standard user like - warranty issues, triggered Knox, disables access to S Apps... essentially, lots of problems.
So, to sum up - without modifications, it's impossible on Samsung smartphones to enable multi-user functionality. Root your phone, and then you'll be able to turn on multi-user, but keep in mind that rooting your device comes with lots of pros and cons.


text:
Alarm as full charged battery notification
Xiaomi MIUI10Global8.12.20/Redmi Note4
While trying to find a way to set an alarm as a full charge notification,this search result popped up(manually set the alarm).
Since this a frequently required feature, is there an app or something to automatically achieve this?

I developed an app called Battery Alarm (free, no ads).
The app notifies the user when the battery level reaches a certain threshold.

By setting the "Max Alarm" to 100%, the app will notify the user if the battery is fully charged.

A recommendation by the author himself... Anyway a nice and clean app, even without INTERNET permission :)

Bing gives the worst search results!
After a google search  the following results popped up
Full Battery & Theft Alarm is a popular app to achieve the result.


text:
Samsung Galaxy S10+ randomly switches to roaming SIM and forces enable data roaming!
I have the latest firmware update, and I'm using it with 2 SIMs; Sim #1 is a Google-Fi on roaming, and Sim #2 is the local default sim. I choose SIM 2 to be the default for everything (calls, SMSs, and data). However, I kept seeing the mobile for some reason switches the data to SIM 1, however, I disabled data roaming, and surprisingly, the mobile still randomly changes to SIM 1 (Google Fi) and also consume data!!

in developer options there is setting "aggressive handover" maybe it is related. btw you should switch sim 2 to slot 1 because one some devices only the 1st slot is full featured (at least, for my device)

I just checked all "Developer options" and there is not "Agrresive handover" or anything similar.

nevermind. it is not related at all https://i.stack.imgur.com/3au0S.png


text:
Share menu actions are lagging
Whenever choosing an action from the native share menu, the whole widget freezes for a few seconds. It happens every time, no matter what app I want to share to. It seems that the share menu only becomes responsive after those few seconds after being opened:
https://vimeo.com/386471272
When using a non-native share menu, like the one in Firefox Preview, the delay is gone:
https://vimeo.com/386471520
I'm on Android 8.1.0 (LineageOS)
What could be the source of the issue?
EDIT:
I've checked logcat for weird errors and here are some suspicious looking ones:
[01-22 16:10:01.087 8020:8020 E/ActivityThread]
Activity com.android.internal.app.ChooserActivity has leaked ServiceConnection ChooserTargetServiceConnection{service=null, activity=ActivityInfo{d52e89e com.moez.QKSMS.feature.compose.ComposeActivity}} that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.android.internal.app.ChooserActivity has leaked ServiceConnection ChooserTargetServiceConnection{service=null, activity=ActivityInfo{d52e89e com.moez.QKSMS.feature.compose.ComposeActivity}} that was originally bound here
    at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1532)
    at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1424)
    at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1605)
    at android.app.ContextImpl.bindServiceAsUser(ContextImpl.java:1565)
    at android.content.ContextWrapper.bindServiceAsUser(ContextWrapper.java:691)
    at com.android.internal.app.ChooserActivity.queryTargetServices(ChooserActivity.java:531)
    at com.android.internal.app.ChooserActivity$ChooserListAdapter.onListRebuilt(ChooserActivity.java:1025)
    at com.android.internal.app.ResolverActivity$ResolveListAdapter$2.run(ResolverActivity.java:1585)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

[01-22 16:10:01.113 8020:8020 E/ActivityThread]
Activity com.android.internal.app.ChooserActivity has leaked ServiceConnection ChooserTargetServiceConnection{service=null, activity=ActivityInfo{200f0aa org.telegram.ui.LaunchActivity}} that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.android.internal.app.ChooserActivity has leaked ServiceConnection ChooserTargetServiceConnection{service=null, activity=ActivityInfo{200f0aa org.telegram.ui.LaunchActivity}} that was originally bound here
    at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1532)
    at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1424)
    at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1605)
    at android.app.ContextImpl.bindServiceAsUser(ContextImpl.java:1565)
    at android.content.ContextWrapper.bindServiceAsUser(ContextWrapper.java:691)
    at com.android.internal.app.ChooserActivity.queryTargetServices(ChooserActivity.java:531)
    at com.android.internal.app.ChooserActivity$ChooserListAdapter.onListRebuilt(ChooserActivity.java:1025)
    at com.android.internal.app.ResolverActivity$ResolveListAdapter$2.run(ResolverActivity.java:1585)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

[01-22 16:10:01.134 1297:1297 E/BufferItemConsumer]
[unnamed-1297-915] Failed to release buffer: Unknown error -1 (1)

[01-22 16:10:01.151 8020:8020 E/ActivityThread]
Activity com.android.internal.app.ChooserActivity has leaked ServiceConnection ChooserTargetServiceConnection{service=null, activity=ActivityInfo{6eaf7e4 org.xbmc.kore.ui.sections.remote.RemoteActivity}} that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.android.internal.app.ChooserActivity has leaked ServiceConnection ChooserTargetServiceConnection{service=null, activity=ActivityInfo{6eaf7e4 org.xbmc.kore.ui.sections.remote.RemoteActivity}} that was originally bound here
    at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1532)
    at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1424)
    at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1605)
    at android.app.ContextImpl.bindServiceAsUser(ContextImpl.java:1565)
    at android.content.ContextWrapper.bindServiceAsUser(ContextWrapper.java:691)
    at com.android.internal.app.ChooserActivity.queryTargetServices(ChooserActivity.java:531)
    at com.android.internal.app.ChooserActivity$ChooserListAdapter.onListRebuilt(ChooserActivity.java:1025)
    at com.android.internal.app.ResolverActivity$ResolveListAdapter$2.run(ResolverActivity.java:1585)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

EDIT 2:
uninstalling apps mentioned in the above logcat did not resolve the issue
EDIT 3:
Here's the entire log that captures the time where the freeze occurs:
<<< log_count = 27 >>>
[01-22 19:48:37.925 1297:1297 E/BufferItemConsumer]
[unnamed-1297-925] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:37.986 816:831 E/NotificationService]
Suppressing notification from package by user request.

[01-22 19:48:37.993 1297:1297 E/BufferItemConsumer]
[unnamed-1297-926] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:38.258 1297:1297 E/BufferItemConsumer]
[unnamed-1297-927] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:38.325 420:2123 E/SurfaceFlinger]
Failed to find layer (com.dp.logcatapp/com.dp.logcatapp.activities.MainActivity#0) in layer parent (no-parent).

[01-22 19:48:38.344 1297:1297 E/BufferItemConsumer]
[unnamed-1297-928] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:42.319 419:419 E/lowmemorykiller]
Error writing /proc/22962/oom_score_adj; errno=22

[01-22 19:48:42.319 419:419 E/lowmemorykiller]
Error opening /proc/22890/oom_score_adj; errno=2

[01-22 19:48:42.332 816:25704 E/JavaBinder]
!!! FAILED BINDER TRANSACTION !!!  (parcel size = 76)

[01-22 19:48:42.421 816:833 E/zygote64]
Error encountered killing process cgroup uid 99586 pid 22994: No such file or directory

[01-22 19:48:44.079 18370:23548 E/tasks.model.Sources]
error inflating model for at.bitfire.davdroid
org.dmfs.tasks.model.ModelInflaterException: No model definition found for package at.bitfire.davdroid
    at org.dmfs.tasks.model.XmlModel.inflate(XmlModel.java:24)
    at org.dmfs.tasks.model.Sources.getAccounts(Sources.java:8)
    at org.dmfs.tasks.model.Sources.<init>(Sources.java:14)
    at org.dmfs.tasks.model.Sources.getInstance(Sources.java:2)
    at org.dmfs.tasks.utils.AsyncModelLoader.doInBackground(AsyncModelLoader.java:4)
    at org.dmfs.tasks.utils.AsyncModelLoader.doInBackground(AsyncModelLoader.java:1)
    at android.os.AsyncTask$2.call(AsyncTask.java:333)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    at java.lang.Thread.run(Thread.java:764)

[01-22 19:48:44.549 23484:23484 E/ActivityThread]
Activity com.android.internal.app.ChooserActivity has leaked ServiceConnection ChooserTargetServiceConnection{service=null, activity=ActivityInfo{7d65a6 org.telegram.ui.LaunchActivity}} that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.android.internal.app.ChooserActivity has leaked ServiceConnection ChooserTargetServiceConnection{service=null, activity=ActivityInfo{7d65a6 org.telegram.ui.LaunchActivity}} that was originally bound here
    at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1532)
    at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1424)
    at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1605)
    at android.app.ContextImpl.bindServiceAsUser(ContextImpl.java:1565)
    at android.content.ContextWrapper.bindServiceAsUser(ContextWrapper.java:691)
    at com.android.internal.app.ChooserActivity.queryTargetServices(ChooserActivity.java:531)
    at com.android.internal.app.ChooserActivity$ChooserListAdapter.onListRebuilt(ChooserActivity.java:1025)
    at com.android.internal.app.ResolverActivity$ResolveListAdapter$2.run(ResolverActivity.java:1585)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

[01-22 19:48:46.452 1297:1297 E/BufferItemConsumer]
[unnamed-1297-929] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:46.495 23571:23571 E//system/bin/webview_zygote32]
Failed to make and chown /acct/uid_99589: Permission denied

[01-22 19:48:46.495 23571:23571 E/Zygote]
createProcessGroup(99589, 0) failed: Permission denied

[01-22 19:48:46.510 1297:1297 E/BufferItemConsumer]
[unnamed-1297-930] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:46.730 23599:23599 E/asset]
setgid: Operation not permitted

[01-22 19:48:46.758 1297:1297 E/BufferItemConsumer]
[unnamed-1297-931] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:47.107 1297:1297 E/BufferItemConsumer]
[unnamed-1297-932] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:47.604 419:419 E/lowmemorykiller]
Error opening /proc/23119/oom_score_adj; errno=2

[01-22 19:48:47.604 419:419 E/lowmemorykiller]
Error writing /proc/23484/oom_score_adj; errno=22

[01-22 19:48:47.613 419:419 E/lowmemorykiller]
Error writing /proc/23484/oom_score_adj; errno=22

[01-22 19:48:50.221 1297:1297 E/BufferItemConsumer]
[unnamed-1297-933] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:50.351 1297:1297 E/BufferItemConsumer]
[unnamed-1297-934] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:51.491 1297:1297 E/BufferItemConsumer]
[unnamed-1297-935] Failed to release buffer: Unknown error -1 (1)

[01-22 19:48:51.596 816:831 E/NotificationService]
Suppressing notification from package by user request.

[01-22 19:48:51.634 1297:1297 E/BufferItemConsumer]
[unnamed-1297-936] Failed to release buffer: Unknown error -1 (1)

EDIT 4: I've ran locgat 5 separate times, each exhibiting the delay (of various duration, but 2s+ at least every time. Here's the log, attached as a link because otherwise I'd exceed the character limit:
https://hub.sealcode.org/P17

Check the adb logcat while opening the share menu for strange entries or errors. I would assume that one app in the sharing list causes this problem.

@Robert thanks! I've added the logcat output to the main question

The logcat messages don't indicate that there is a delay. You should better upload the part where the actual delay happens.

Ok, I've added the full log just now!

Looks like your device is running out of RAM therefore it tries to free RAM (lowmemorykiller log entries) which takes a while. You test it may be four to five times and check logcat if the lowmemorykiller is always very active at the time the share menu is open and unresponsive.

Done! Seems like lowmemorykiller only appears in one of the 5 log captures

Can you post the share intent code?
If you have any.

I don't know what you mean - and I suspect that looking into a particular share intent code won't be helpful, as the freeze happens before the intent is fired as can be seen in the logs)


text:
Disable Ability to Change Language with Spacebar
I have a Pixel 4 with Android 10.  I am new to Android.
I use both English and Spanish.  I want to be able hold down the Spacebar to enter the mode where I can move the cursor around.
But when I do so, I get a pop-up asking me to switch languages.  Since I can accomplish the same thing with the globe button, how can I disable this? Thanks

As a long-time Gboard user, I don't think there's a way to disable this feature. On the other hand, to use "slide to move cursor", you need to hold then quickly slide the finger to move the cursor. It's doable.

Oh yes, I see what you mean.  Thanks.

yea I know how you feel I was an apple user but as Andrew.T states just touch where you want the cursor and drag and you will get to where you need to be. hold your finger down for longer you get copy paste etc etc :)

You can do it. But you lose the ability to switch languages. So it depends what's a priority for you. Since I'm monolingual I have no need to switch languages and I have disabled the space bar language pop up.
The way to do it is to go into the language settings and delete all but one language. In my case I had to disable handwriting US English as well as another version of US English which uses a the keyboard layout that I never bother with. So I'm left with only one option and that is US English QWERTY. If you do something like that then the space bar can be used solely for moving the cursor by sliding or creating a space.


text:
Android automatically makes a call after connecting to audio bluetooth device
After connecting to my bluetooth headphone, my phone automatically calls my friend(let's call him Bob), when i reject the call it calls again, this issue only happens with my new bluetooth speaker, my device doesn't have this issue with any other audio or bluetooth devices.
P. S:Android version:8:0:0
Emui version:8:0:0:0

Does the Bluetooth headphone have buttons/functions to accept a call/turn volume/etc.? Have you tested on other phones? Might be a defect on the headphone.

@Andrew T., the bluetooth headphone doesn't have any buttons/functions, i have tested it on several devices, on windows 10 it automatically changes volume to 100 after connecting, on some android devices it makes a call, in some other android devices it makes a call and automatically plays a song.

Is there a way to reprogram the headphone or any option to prevent the bluetooth headphone from making call, playing music, changing volume?

There might be a way... I've done a quick research and came with Reddit thread that mentions Button Mapper app. I haven't tried it, and you probably need to do a trial & error on determining which keys are pressed and need to be disabled...

Actually the app doesn't work very well, it doesn't detect call button, also sometimes it doesn't bypass the button function.


text:
How can I prevent the YouTube application from constantly showing a pop-up for YouTube Premium trial?
How can I prevent the YouTube application from constantly showing a pop-up for the YouTube Premium trial? I'd like to never have this window.

This answer is from Quora:

Tap “channel icon”, top right hand corner. This will lead to “account”.
Scroll down to “settings”, and select “notifications”.
Scroll down to “Product Updates”, and turn the ‘switch' off by tapping on it. It shall turn grey, and point to the left.
While you're there, you can also change any other settings that may have been bothering you.
This may reset whenever YouTube updates, so remember to switch it off again if the adverts re-appear.

For the past 6-8 months, I have not been using the Youtube app (I prefer NewPipe to access Youtube). So, I can't confirm if the above suggestions work 100% of the time.

There is no "Product Updates" or anything similar (anymore).

Directions seem legit on the current Android app.

I have never been disturbed with these popups so far in the modded YouTube app named YouTube Vanced so I suggest you try this app. The app also has background play feature that can be used without a YouTube Premium subscription.
Head over the XDA thread here to know more about this app and learn about its installation.
Note: the app automatically blocks ads served by YouTube.


text:
Download to SD card
I put a 32gb SD card in my Nokia 2.2 yesterday and I've been wondering how to make my downloads from the Google Play store go straight to my sd card not internal storage. Because when I Try download an app for 1.6gb it goes to my internal storage which doesn't have enough space but my sd card does have enough space and I've been wondering how to change it from downloading to the internal storage to external SD card

https://android.stackexchange.com/tags/adoptable-storage/info

I'm not sure if you can install directly to SD from the Play Store but you can move SOME apps to your SD after they have been installed.

Go to Settings > Apps & notifications > App info.
Find the app you want to move in the list and tap it.
Select Storage. If the app supports being moved to a card, you’ll see a button here labeled Change. Tap this.
Select the SD Card in the Change storage dialog box. This brings up a confirmation screen. Tap Move to begin.


text:
How can one remove the animation when searching for a string in a web page in Google Chrome for Android?
How can one remove the animation when searching for a string in a web page in Google Chrome for Android?
For example searching for "law" with the "Find in page" Chrome feature on https://en.m.wikipedia.org/wiki/United_States takes more than three second of scrolling down animation before showing the first occurrence of "law" in the page:

I don't have time to write an answer but you could use a bookmarklet which would deliver whatever effect you interested in.

This is a longstanding problem[1][2][3] with no solution in sight. Some Reddit users argue[1] that if you click on the sidebar instead of arrows on the top, you get the same no-smooth-scroll functionality. I tested this and this is true. But this becomes next to useless when the searched term occurs often and between very few lines, as tapping onto them using the side bar is neither convenient nor practical.
My solution is Kiwi Browser (based on Chromium) and as of version v77.0.3865.92, it has that same classic find-in-page scroll (instantly shows next occurrence instead of scrolling to it). I've been using it because of its support to Chrome Extensions. Firefox for Android also doesn't have this problem either. If the smooth scrolling is a deal breaker you can try these alternatives.

1: Chrome app "find in page" issue
2: scroll-behavior: smooth on Chrome can cause motion sickness issues
3: DISABLE search animation query


text:
Phone stuck at 0% battery
I have a Moto G phone. I'm using LineageOS. Yesterday I notice my phone went dead. When I press power button, a white light in the camara flashes three times, which I understand to be no battery. It did have enough battery though.
When I connect the phone to charge (using PC), the 0% battery charging screen shows up. But it's stuck there at 0%. I can get to the boot menu (power button and volume down), which shows me "battery low", but when trying to boot recovery or any option, the phone restarts but is again stuck at low battery.
My guess is that the battery is gone. Since it cannot be charged, the OS doesn't have the power to load anything. However, it should load when the phone is connected and "charging". Perhaps the problem is not the battery itself but the phone recognising that the battery does have enough charge. Is this possible? Anyway, any idea is more than welcome.

first, PC can not really charge (<500mA) use the original charger. second, don't boot just leave it off while charging. third, powering phone with charger only does not work without battery, because charger doesn't give stable dc current

SOLUTION: I have same problem on Moto G6 running Android 9. My phone was on charger all night but showed 0% in the morning. However, it appeared to have some charge as I was able to make and receive phone calls and texts. The battery status icon was just stuck on 0%.
Here is the FIX that worked for me.

If your phone is working but shows 0% battery all the time, proceed to #2.

Hold down the (Vol-) + (Power) buttons until you see the bootloader screen.
(Note: do NOT release buttons until you see the bootloader menu screen. Also, do not worry if the camera takes a screenshot. Just keep holding the (Vol-) + (Power) buttons until the bootloader screen appears).

Use (Vol-) or (Vol+) button to change menu option to [Qcom].
[pressing (Vol-) or (Vol+) scroll through options].
I pressed (Vol-) 7 times or (Vol+) 3 times to reach [Qcom].
Your phone may be different. Just stop when you see the [Qcom] option.

Press (Power) button to choose the [Qcom] option.

The phone should reboot automatically and the battery icon will display the correct %.

I hope this method works for you. it worked for me. GOOD LUCK :)

i can't see the option i scrolled through the options and it didn't show up.

It's possible your phone doesn't have a qCom processor.? Don't worry.. you can try the following.
Assuming you have your phone on charger over night or a long time..  and the 0% is showing in screen.  Try just pressing and holding the Power Button" for a long time.. maybe a couple minutes.. maybe 4 or  5 minutes. Your phone should come alive then release the "Power Button".  This has worked for me. Just be patient and be sure the phone has been plugged in for awhile.  Good Luck  :)


text:
Using Gboard's phone layout on a tablet (or vice versa)
I use Gboard on a phone and a tablet. My preferred language is Maltese. With exactly the same settings, I get two different layouts. In particular, there's a missing button on the tablet that comes very handy when typing Maltese.
Here's the difference between the two layouts:

How to get the same keyboard layout on the tablet as on the phone?

Have you checked that both devices use the same version and the settings regarding language and layout are the same? https://support.google.com/gboard/answer/6380730?co=GENIE.Platform%3DAndroid&hl=en


text:
Smart Phone flash tool - Readback - EMMC_USER backup
I trying to take backup of my phone. and i use Smart Phone Flash Tool

How can i take (EMMC_USER)(64GB Rom) in HEX ?

Can someone tell me what HEX i need in length in Smart Phone Flash Tool, in tab (Readback, EMMC_USER)
Or are there a better way to take backup of the phone without root access.

you need to perform ram test to get the size for EMMC_PART_USER https://forum.hovatek.com/thread-21972.html

But i got MT6765 but the SP Flash Tool does not support it, it says only (DRAM flip test)

I have answered this very question probably a hundred times in 4 Years.
So instead of wasting time rewriting it all, i made video on how to do it on YouTube.
Instead of just Self Promoting that video as some would see it, Here goes 101.

Remove Battery or Turn Off the Device
Go into Memory Test Tab - SPFT
Tick Whatever Options are Available - Just make sure something is ticked.
Start the Test and Place your Battery back IN
Plug your Phone In
Once the Test Starts, Immediately Stop the Test
Now Focus on a small Panel in the Bottom Left,
( This info is read from the device when connecting )
OK, Now sellect EMMC section in the Panel
Look at EMMC_USER Size in the info

With this info, you can DUMP the Entire device - Or, Split the Dump into Partitions.
DUMPING IS USELESS ON ANDROID 9.0+
ANDROID 9.0+ MANDATES FACTORY SIGNED FIRMWARE ... BACKUPS WONT RESTORE 100%
I CAN RESTORE ONLY - PROJECT TREBLE RELATED PARTITIONS.
OLDER THAN ANDROID 9.0+ DUMPING AND RESTORING IS STILL OK.
DUMPING PRE 9.0+ ( AVB 2.0 )

Open Read Back Tab
Creat a new ReadBack file called EMMC_USER
Set the REGION to EMMC_USER
Set The Start to 0x0
Set the Length to the Size of EMMC_USER in the small panel ( bottom left )
Make Sure Device is Unplugged Prior to Doing any New Action - This is because a Handshake is made on each connection to the preloader, the preloader handshake is only good for One action each connection ( read, write , etc )
Press Start ReadBack
Plug - In device
Wait for 16 GB to download at around 21 MB per second.
Now Dump Preloader
Go ReadBack and Make a new ReadBack of Both EMMC_BOOT0 and EMMC_BOOT1

Sometimes both Partitions are required.
The usual dump length for both is  0x40000
and start is always 0x0 because your dumping the whole thing from 0

i wouldn't say backup is useless because once bootloader is unlocked you can restore from custom recovery (adb push)

https://youtu.be/pJHGAql2xAc here's a new video that cuts the long stuff out ogmf my old one.

pls where is the video?


text:
How can I factory/hard reset/wipe a Nokia 2.2 (TA-1188) without a (windows) PC?
Having looked around hither and thither now for a night as to how to factory reset a Nokia 2.2, I am still a bit confused and unable to do it.
Holding volume-down + power on brings me to a boot screen saying "=> FASTBOOT mode", but no buttons are having effect after that. Apparently the next step is to connect it via usb cable to a Windows computer with some specific tool or another installed on it?
I've seen people in youtube videos apparently using a Windows tool called 'InfinityBox AST' , and I have tried running that in a Windows VM, but for some (in my opinion) suspect reason, 'InfinityBox' decides to detect that's it's being ran under VirtualBox, and instantly refusing to launch with a message specifically stating that it wont run on a Virtual Machine.
(This 'vm detector' behavior is enough of a reason to me being quite reluctant and suspicious to even having attempted to run the utility trough Wine/Proton)

Is there really no way to factory reset a Nokia 2.2 TA-1188 cellphone without requiring an actual physical (Windows) PC in addition to some shady unofficial utility made by neither Google nor Nokia?
If not possible without a PC, is there some Linux software solution able to perform the task?

InfinityBox is professional hardware (for which you have to buy software licence codes every year) https://multi-com.pl/multicom/pimg/infinity_box_blue_500.jpg the standard way for controlling android devices from pc is platform-tools https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads and each OEM have there own flash tools of course. for mediatek chipset you can try https://spflashtool.com

if you plan to sell your phone, make sure you enabled oem unlocking in developer settings https://www.youtube.com/watch?v=h4jrdu1PhRI OR removed your google account before factory reset https://youtu.be/_jw1h1Ymoas

How to bypass "Verify your account" (Factory Reset Protection)

from any PC login to google with the phones bonded google play account, use Find My Device and set a temporary screen lock (4-5 digits) under Secure Device, or use the Erase Device option https://www.google.com/android/devicemanager if you cannot login to google use the forgot password option and leave phone online for ~ 72 hours after changing the google play account password

Having now been in contact with Nokia support; Apparently there is no way, at least with that specific phone in question (or the specific firmware ver.?), to get it unlocked/factory reset, for the common user.
Fortunately, the dude at Nokia support chat checked the IMEI's of it, and it turned out it was still within warranty, by a hair's length. So having contacted the chain that sold it, a second time, it seems the local store will be replacing the phone tomorrow.
As such, and though depending on varying consumer rights in countries; My hindsight tip would be to first press the seller with the fact, rather than immediately "making an appointment" trough Nokia's online warranty form, to send the phone away to Nokia as was suggested by Nokia support; Simply for Nokia to do the "magic" of unlocking your bought and paid for property(!!), and sending it back to you ..Something which no doubt would have added considerably more time than the store simply replacing the device and having to deal with manufacturer warranty themselves.
BTW: If you are indeed able to get to the 'downed droid' splash logo on your Nokia 2.2 (TA-1188) trough any physical button-combo, you just might want to confirm with Nokia support whether your phone might be a counterfeit one or not, or to verity that it's not been flashed with unoriginal and thus possibly tampered-with firmware.. (just push your way trough their silly chat-bot for a few questions, and then an actual human will respond to your inquiry on the other end)
PS: Google did eventually come trough with assistance in recovering my brother's hacked/locked Google account. (takes ~3.5 days).. But seemingly, that process also unlinks it from the/any associated device(s). Which is good, from a security perspective.. ..Though the problem becomes then, that that effectively makes it impossible to reset from online Android Device Manager as shown trough some online how-to's .. Meaning, the phone would've basically be considered as good as destroyed, if it had not been for it still being within warranty timerange... (personally, I'll be looking at Librem phone for myself in the near future, rather than risk experience a similar ordeal and frustration)

I'll leave this unaccepted for a while, in case someone might have some further input as either comment or answer.

first thing i always do on each friends and family members buyed android phone is enable OEM unlocking, usb-debugging and initial connect to their PCs (authorize RSA-Key, installing drivers, backup software, etc)

You need to hold Volume Up+Power (not Volume Down). Keep holding until you see the android logo. It will take you to the Recovery mode. Use the volume keys to select "Wipe data/factory reset". Then press on the Power button. Choose Yes to wipe all user data.
When completed, you can select "Reboot system now".

I'm fairly sure i tried that numerous times, with the only result being it rapidly rebooting over and over to a green "android one" splash boot screen, and if let go of the buttons, landing at regular start screen.  Volume Down + Power appears to be the only button combo that has any effect in that regard, even when holding the buttons in for up to 30-40 seconds..

by green "android one" , i mean the green logo on white background. (comment editing timed out)

Please see my 'BTW:' here: https://android.stackexchange.com/a/220754/291009 .. May i ask if you perhaps bought yours second hand?

factory reset from fastboot
enable OEM unlocking in developer options first
sudo apt install android-tools-adb android-tools-fastboot
fastboot flashing unlock

and if you want to re-lock bootloader
fastboot flashing lock
fastboot reboot

you should clarify current state of device. please note factory reset will only delete userdata. it does neither repair modified partitions nor remove FRP

The problem, and the reason the phone needs factory resetting is that it's locked with numeric code, so it's not possible to get to the android settings menus.

fastboot flashing unlock leaves the computer standing at "< waiting for any device >"

OEM unlocking is required for fastboot. contact the owner

The owner is my brother, who i'm supposed to unlock it for.


text:
How to permanenlty disable mobile data by renaming or editing files or directories on rooted-device?
Yes, I read the answers to the question by the link Disable mobile data permanently but I'm interested in a solution related with directories and files on rooted-device and not in using an application or setting(s).
I also read the comments to the question Delete mobile data using Root but the deleting /system/etc/apns-conf.xml dosn't help and I don't have the /system/app/telephony as well as /system/CarrierConfig.apk and /system/SettingsProvider.apk, maybe because I use Android 4.0.4 (?).
I know that to disable Wi-Fi it's enough to obtain root permissions and rename the folder /wifi inside of the /etc to another e.g. /wif. Can we do something like that to permanenlty disable also mobile data for example by renaming some directories or files or edit some file(s)?

So in the end telephony and SMS should work but no data connection, right? What about MMS (usually requires an WAP or mobile data connection)?

@Robert Yes, I meant mobile Internet only. MMS doesn't matter

@Robert is there a way or at least a link where I can read about?

I am sorry but I can't help you on that topic because I simply don't know a way how to do so.


text:
How to install TWRP or root device
I'm trying to install TWRP but it says (boot image with correct signature or disable verified boot)
My device is (Umidigi power)
Or root my device
I have try with this:
UniversalAndroot
Framaroot
Magisk Manager
Magisk v20
KingoRoot

Can someone help me with this?
Note 24/1-2020 17:31
step 1: adb reboot bootloader
step 2: fastboot flashing unlock
step 3: Volume Up

Follow the guide here: https://forum.xda-developers.com/showpost.php?p=79819558&postcount=8
SP_Flash_Tool for magisk_patched_boot.img in boot sector in SP_FLash_Tool
Install Magisk Manager V20.3 new version. and here we go. thanks for all imput :)

enable oem unlocking in developer options and start with unlocking bootloader from fastboot

Thanks i use (fastboot flashing unlock) works for me

Follow these steps carefully (It's almost same for every android devices):

Install ADB in your PC. Update the drivers of your device.
Boot your phone into recovery mode. (Make sure you turned on USB Debugging and OEM from developer options).
Open the ADB in your PC and check your phone is connected by USB or
  not. If it shows your phone in terminal then proceed further.
Reboot into fastboot.
Then unlock the bootloader (fastboot oem unlock).
After unlocking the bootloader flash the TWRP recovery's img file (Be careful becuase TWRP recovery isn't same for every phone. You've
  to go tho their website and find your phone's. If it's not available
  in their website then don't worry you'll find it in unofficial
  websites).
Now boot your phone into recovery mode. This will open TWRP recovery now.
Now you should use ADB sideload method or use your phones internal or external memory to store magisk zip and flash it using TWRP.

You don't need to use KingoRoot to root. Magisk is an amazing tool to root any device.

I know nothing about this device myself but, I have managed to find a thread over on XDA that contains a very beginner oriented guide on how to root the Umidigi power.
https://forum.xda-developers.com/showpost.php?p=79819558&postcount=8
This post is actually part of a thread on installing TWRP on the phone, however, after a quick read I couldn't easily see instructions for installing TWRP itself.

I know that it is convention to post a detailed guide here, or at least an outline of the guide I have linked to but, this is an extensive walk through of the steps involved and I didn't want to take any credit away from the OP on XDA by passing it off as my own.

Giving a brief description of required steps is recommended. If the target post gets deleted or modified, your answer would become useless.


text:
How to create filesystem in TWRP? Getting error: "Unable to format to remove encryption"
The screen appears after booting into TWRP and trying to format memory:

I was trying to flash a custom ROM using TWRP recovery but it's showing Unable to mount storage & Failed to mount '/data' (Invalid argument).
I tried several methods like formatting memory but it's also not happening. It's showing Unable to format to remove encryption. Also tried to change the file format but nothing helped me. Now whenever I switch my phone on it automatically boot up into TWRP recovery mode. I tried this method and almost every method possible but nothing helped.
I'm using Moto E4 Plus (nicklaus).

I had the same problem, and what worked for me, I formatted it from command line, so while in fastboot mode I typed:
fastboot format userdata

Then I flashed TWRP and rebooted into it and the files in the storage were all showing, all was working.

You can always format from command-line to be sure where the problem is (if any). This will erase your whole /data partition which contains personal data, apps etc.

Boot to TWRP recovery.
Find block device for userdata partition. Usually it's symlinked at /dev/block/by-name/userdata or /dev/block/bootdevice/by-name/userdata. See FINDING BLOCK DEVICE section in this answer.
Make sure userdata partition is not mounted (which already seems the case here). Execute mount to see all mounted filesystems. To un-mount open terminal or adb shell and execute:

~# umount /data
~# umount /sdcard

Find partition size:

~# SIZE=$(blockdev --getsz /dev/block/by-name/userdata)

You get size in 512-byte sectors.
Leave (at least) 16 KB (32 sectors) at partition end for crypto footer - it's required on devices using Full Disk Encryption (FDE):

~# SIZE=$((SIZE - 32))

Create filesystem on the rest of space. To create f2fs filesystem:

~# mkfs.f2fs -l data /dev/block/by-name/userdata $SIZE

To create ext4 filesystem, size is to be provided in block count. If using 4KB block size:

~# mkfs.ext4 -L data -b 4096 /dev/block/by-name/userdata $((SIZE * 512 / 4096))

Or if older Android-specific make_ext4fs is available:

~# make_ext4fs -L data -l $((SIZE * 512)) /dev/block/by-name/userdata

data is filesystem/volume label.

NOTES:

blockdev and mkfs.*/make_ext4fs are usually bundled with TWRP or you need to get static binaries.
Why we need to leave space for crypto-footer? See quote from Partition map:

Starting in Android 3.0, the recovery.fstab file gains an additional optional field, options. Currently the only defined option is length , which lets you explicitly specify the length of the partition. This length is used when reformatting the partition (e.g., for the userdata partition during a data wipe/factory reset operation, or for the system partition during installation of a full OTA package). If the length value is negative, then the size to format is taken by adding the length value to the true partition size. For instance, setting "length=-16384" means the last 16k of that partition will not be overwritten when that partition is reformatted. This supports features such as encryption of the userdata partition (where encryption metadata is stored at the end of the partition that should not be overwritten).

You don't need to provide filesystem size if you don't intend to encrypt your device or if device uses File Based Encryption (FBE). To create filesystem on whole partition:

~# mkfs.f2fs -l data /dev/block/by-name/userdata


text:
Why does Android sometimes eject the USB drive when connecting to power and how to stop it?
I've got an external micro SD card that I am connecting via USB to my phone for dashcam recording.  However, I have noticed an annoying issue - if I start recording before I start the car, sometimes the recording winds up going to internal flash, which is not what I want.
Obviously I have to use a wireless charger since I have a storage connected to the USB.  The wireless charger is connected to the vehicle's USB power.  What I see happen is that after starting the car, it takes a few seconds until USB power turns on.  At that point, if I have the screen on and my notifications pulled down, I see the USB drive being ejected - the "do not remove" message shows briefly, and then the USB notification disappears.  Then after a couple second, the USB re-appears and gets re-mounted.  But due to the USB being ejected, the app I am using as the dashcam apparently detects that the drive is not available, and so starts recording to internal flash instead.
It's rather a hassle to have to start the car, then wait 15 seconds or so, then fiddle around with my phone to make sure the app still knows the correct location to record to.  This wastes at least a minute of idling. I would rather figure out why Android thinks it should eject the drive when power is applied, and fix that instead.  I have been able to reproduce the issue on my desk (wireless) charger as well, and it seems is always happens on the first power event after the USB drive is plugged in; subsequent power events have no effect.
Why is Android ejecting my USB flash drive (despite remounting a few seconds later) when I connect to power, and how can I make it stop doing this?

I would assume that this is a bug of software or hardware level. It is rather difficult to guess if this is an Android (AOSP) bug or a specific bug of your device, introduced by the manufacturer of the device. BTW: Please never ask a question here without mentioning the concrete device unless you are running an 100% pure AOSP system...

@Robert Thanks for the pointer - I've added a tag for my phone model. I would assume that a phone from the creator of Android itself would be as close to "AOSP" (only adding the Google apps) as any off the shelf phone. :-)

@Michael OEMs make a lot of changes to AOSP code particularly related to hardware. Wireless charging and USB both are vendor specific things as they won't work without vendor's binary blobs as well as necessary changes to kernel. So, as Robert said, this seems to be a bug in interaction between wireless charging and USB charging mechanism. Or something similar, can't be more specific without looking at source code in depth. You may try asking Google directly. Or have a look at kernel log and logcat soon after the problem occurs.


text:
Files (used to) appear on smartphone but not on Windows Explorer
I had a couple files missing on my Windows Explorer, despite being able to play files on the device itself.
One tutorial told me to update my MTP driver, through Device Manager, I did, no changes.
I decided to solve this "discussed and known issue" by doing what everybody (here on Android SE) said solved it for them. So I entered into the Apps, and purged cache of two system applications, External Storage and Media Storage, then rebooted.
Allegedly after reboot, I had to leave my phone alone for about 10 minutes, for it to "rebuilt its cache", so I did. After it rebooted, I put it into my pocket, not giving it any extra data, after some 2 hours. I attached my Android to computer, the entire drive is empty, only customized-capability.xml was visible.
Smartphone also lost touch with the SD card, to the point where the music application forgot last played music (understandable) and doesn't detect music from various folders (atypical). I need to use external app called File Commander (which is somewhat comparable to Windows Explorer) to manually navigate to the SD card, after tapping music it will play, so no data is lost, but it is inaccessible to even my own device now.
Windows Explorer and File Commander tell me that there's only 3GB left (which makes sense in my scenario), but Windows won't display the files.
How do I solve this? How can I get phone and my computer to recognize the files?
Android 7.1.1
Sony Xperia Z5
P.S.: Yes, I did look thoroughly, there's no hidden files here.

Don't use MTP, keep life simple.

Related: Why does MTP show wrong directory location?

Make sure External Storage and Media Storage are running .
Rescan SD Card! Add the path to your SD and scan (Usually something like /sdcard or /storage/****-**** ). Reboot...
If second doenst work you could try: adb Guide or adb Driver :

On your phone:
Enable Developer Options on your phone -> Enable
 USB-Debugging -> Plug-in USB-cabel
On your PC:
Windows: Windows Key + R -> cmd ->  adb devices:
List all available devices:
Something like:
List of devices attached
9cc74efc        device

If you see your device :
adb root && adb shell

am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///sdcard

Source


text:
How to install apps to SD card with low internal storage - adoptable, app2sd, Xposed?
I’ve spent hours today trying to install an app on my 9.0 phone.
App size: ~1.5gb
Internal storage: 13/16gb.
SD card (formatted to adoptable): 4/64gb
I’ve read answers here explaining why it won’t work, others mentioning symlink or terminal commands, and others talking about link2sd and root options.
Basically I have a lot of outdated and incomplete answers from here, with no real verified recent solutions.
I thought this would be a simple search but I’m trying to get a conclusive answer before spending another day fiddling with my phone.
Too bad I can’t use my Stack Overflow rep for a bounty. Thank you fine people for your time.
(If anyone knows a definitive rooted and unrooted solution then hopefully this answer can help someone else looking for a 2020 response.)

all newly installed apps will go to adoptable-storage automatically

Adoptable Storage and Apps2SD/Link2SD are working solutions (at least up to Android 9) with their pros and cons. Not sure about Xposed. For details see How to free Internal Storage by moving data or using symlink / bind-mount with Adoptable Storage? and How to move apps from internal to external storage?. Make the question more specific if you find something missing or not working or if you have a specific requirement.

@alecxs the adoptable storage does not work. I am getting insufficient storage error with the prompt to delete. I’ve tried reformatting and ensured it was adoptable multiple times

@IrfanLatif the specific question would how to get the adoptable storage to work properly, since I cannot install any apps due to insufficient storage errors. I saw the answers you linked to earlier

That's answered in linked questions. Note installLocation. But I'm not sure if app is directly installed to SD card (or moved after installation) if installLocation is set to preferExternal or auto. I personally never used Adoptable Storage, except for testing.

@IrfanLatif I had read that answer earlier but it seems like I was just looking for something More clear like “use bind mounts, here is the terminal command” I’ll give it a go tomorrow

have you ever tested free up storage (moving DCIM to PC, uninstall updates or apps)? if you uninstall, then install, it is installed to adoptable-storage. bear in mind the reason for playstore not installing apps might not be related to actually storage


text:
Add mega account to cloud storage on es file explorer
I'm using es file pro version, I want to add mega account to cloud storage, the account addition section has "display as" so what should I fill in?

I would assume that this field allows you to name the account in your app (just used locally) so that you can add multiple Mega accounts without getting confused which folder is for which account.

I have tried to enter a name and still cannot log in


text:
magnifier glass app, on fingertip only
I am looking for an app (maybe it never existed and I imagined it), but it is a screen magnifier that only magnifies a small circle around your fingertip, like the equivalent of a 5 letter word, ideal for magnifying specific words or areas of your screen, I think I saw it once (on iphone maybe?), you just need to keep your fingertip on screen for about 2 seconds then a small circle appears above your fingertip magnifying anything under it, and you can move it all around your screen, and disappears when you lift your finger, is there such thing?
There is the triple TAP but it zooms the whole screen and I do not want that.

I think you are most likely to have seen what you are describing on an iPhone, however there is a similar function available as of Android 9.
You can use the Magnifier Widget on a piece of text by highlighting it and dragging the selection handle as shown on this page.
You can drag the handle around to magnify any of the text on-screen, one downside though is that the magnifier will 'snap' to each line of text which can take a little getting used to.


text:
Is there a difference between disabling app notifications in-app vs. Android OS?
Is there any effective difference between disabling an app's notifications in the app itself vs. via Android's per-app notifications panel?
I've defaulted to first trying to disable any notifications in the apps themselves, attacking at the root, rather than relying on the Android OS per-app notifications permissions. My thought is that doing it this way stops the app from sending a notification at all -- and thus, less battery used -- vs. Android merely hiding some notifications from view.
The downside to this is the inconvenience in having to go into the app itself and wander around the settings, with notification settings not always the simplest to reach, and in some cases, the app doesn't have granularity of notifications to tweak or limit.
Is there any basis to this, or is there no effective difference to managing/disabling notifications via Android's per-app settings?

A good question. My assumption is that in-app disabling usually means that the app sends an "unsubscribe" to the push server so that it does not get any new notifications. Disabling notifications via Android settings I would assume only affects the "visible part", hence that the notification is (not) shown. The device should still get the push notifications, because I don't see a way how Android should be able to send the "unsubscribe" message to to the push server.

@Robert, the phone prevents connections from the outside in. How would a push be implemented? Would it use a Google Pub/Sub service the Android can connect to?

@AlexisWilke The same way it is always done: open a connection and wait for data (the push event). A well documented example of such a technology is IMAP IDLE command. BTW: true push is possible. The now gone Blackberry system had shown that it is possible but has the drawback that it requires special data plans...

I've programmed Android a little bit and normally the answer is No.
An application, though, could have a pull of an external server data point which is not registered with the system. This would not always work if not properly registered with the OS. It would certainly work just fine while running the app. and thus in that situation, the app. specific settings would indeed be different.


text:
How to SSH into my Android Phone's command prompt
I have a non-rooted Android phone with the Termux app installed. I can run ifconfig on the phone's terminal and see the IP address of wlan0, and I can ping the phone's IP from the terminal on my computer. Is it possible to SSH into it from a computer on the same network? If so, what would the username and password be?
I know the openssh package is installed on the phone:
apt list | grep openssh returns
openssh/stable,now 8.1p1-4 arm [installed].
I can also run the ssh command in the phone's terminal (Termux).
Are there any extra packages I would have to install via pkg or apt? Please let me know, anything helps.

To connect to a device via SSH, there has to be an SSH server/SSH daemon running. Is sshd running on your device? This is typically not the case, as it's not needed.

@GiantTree Makes sense; how would I know whether or not sshd is running? And if it is, do you know what the ssh credentials would be?

@IrfanLatif Yes thank you soooo much! ;) That was exactly what I wanted!


text:
SU binary exists, but not executeable (no error while executing from terminal, just empty)
My friend is having a little problem with his phone where he can't update or use banking software on it because of root even though he has never rooted it and root checkers gave me mixed results, some says its rooted and some says its not rooted. So after looking around i downloaded a terminal and ran "su", it ran without errors, but it didn't do anything and didn't output anything.
Now, im not fully sure if this is what is causing his phone to not be able to update, but it does seem odd to have the su file on the phone without it actually being rooted, my guess is that the phone was bought used and the previous owner was attempting to root the phone but failed and just gave up. So, now me and my friend are trying to find a way to get his phone "unrooted" even though its technically not rooted. What should we do?

I just asked him and apparently he bought it new, so either he got scammed or its normal to have the su binary already on the phone...
Also the phone is a Redmi Note 4 Mediatek

best is flash stock ROM, also you can check if bootloader is unlocked already, this would allow you to boot custom recovery from fastboot

how do i check the bootloader?

also, how do i flash the stock ROM? can i do it from the original recovery?

in settings - developer options - oem unlocking must enabled also there must be mi account registered. check fastboot oem device-info https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads you can flash with XiaoMiFlash (if locked) or unlock with Mi Unlock Tool and flash from fastboot or twrp

my friend just checked and it is still locked...

But why would applications like the google play store detect root if the phone is not even unlocked?

xiaomi shipped with su or leftover of rooting apps. you can delete it from mtk-su shell

i was unable to delete it from mtk-su, read-only filesystem. do i have to remount it as r/w?

yes you must remount /system or /

but will modifying files in /system cause problems? like i heard people having bootloops after mounting partitions as rw  and doing modifications

also, its not my phone so i don't want to cause a bootloop/brick the phone

yes that is called dm-verity, be prepared for unbricking

there is a video for backup in the comments https://android.stackexchange.com/q/220584


text:
How to make a notification vibrate and sound once, and then ideally be muted afterward?
What I am looking to do is, get a notification as normal with vibration and sound, and then any further notifications from that app I want to not vibrate. For context, it would be the most helpful for a messaging app, where I would like to be informed when I receive a message, but I don't want my phone vibrating over and over if they are to send more than one message before I can reply. Just once is enough to let me know I have a message, I don't need 27 vibrations in my pocket. This sort of dynamic reaction to a notification would be extremely helpful for me, with the notification acting normally at first, and then if it is already present in the notification "bar" or "tab" (Im not sure what its called exactly), then it wouldn't do something like vibrate or sound my phone. I am not sure if any apps can control notifications like this, so I am here to ask for help. I am willing to root my phone if I need in order to get this functionality, so lets me know about any method you got, Thanks!
Additionally if anyone can think of a good method of receiving the notification you can let me know, I might not need my phone to vibrate or sound at all if there is a good alternative, but those are the only ways that I can think to inform me hands-free and from my pocket, and something like my phone notification led, while less intrusive, wouldn't really work.


text:
copy encrypted internal storage to pc ( in twrp mode )
I have this situation where I had my internal storage encrypted and then by using twrp I formatted only my data( booted into twrp > advance wipe > selected data and Dalvic cache > swiped to wipe . I didn't checked internal storage) ( dumb right ) now when I am booting into twrp it doesn't ask me for password to decrypt data but i can see my encrypted internal storage in file manager
I tryed to copy encrypted content to my pc ( hoping that i can decrypt it because i know the password by which it was encrypted ) but not able to do so
what I tried is

using adb pull it gives me error remote open failed: Required key not available
using MTP it is also giving me error
twrp decrypt <my password> it fails

can i somehow recover my data ( i know the password )

if you formatted /data partition your internal storage /data/media is formatted, can't be true. in any case you wiped your encryption credentials all data is lost forever. this is not expected behaviour for data wipe, claim this to your twrp maintainer

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

@alecxs maybe I did't said right I booted into twrp > advance wipe > selected data and Dalvic cache > swiped to wipe

I did't checked internal storage

from my understanding if you select data then twrp will only wipe your app data and apps that user have installed not the internal storage maybe I am wrong here

true if you wipe /data then everything except /data/media is just deleted (no formatting). unfortunately the credentials in /data/system are deleted with this. looks like a serious issue with twrp

@IrfanLatif yes my data exist in /sdcard encrepted but the problem is neither I can copy it in pc nor I am able to decrypt it

@IrfanLatif I was using Lineage os 16 ( which is Android 9 ) not sure about FDE/FBE but my guess is it's Full Disk Encryption

If it's FBE, as @alecxs said, your encryption keys are wiped and you won't be able to decrypt your remaining data. If it's FDE, you should not be able see anything in /sdcard until it's not decrypted. Your situation is quite vague. More information is needed.

adb pull the whole encrypted userdata partition (~ 1 h) and analyse the dump, maybe you can recover locksettings.db https://android.stackexchange.com/q/208106

@alecxs, @Irfan Thanks a lot to both of you but the problem is I am not able to copy using adb pull error is remote open failed: Required key not available

@alecxs ok I got it will try to follow the link you gave me if you want you can post answer and I will accept it

your password is just a little piece of the puzzle. decryption only works on the device itself, you can't decrypt on pc. you must look for credentials only (see linked question) adb pull /dev/block/bootdevice/by-name/userdata will work. run extundelete and binwalk or search with hexeditor.. but there is less hope

@alecxs running mount | grep 'on /data' gives me the output of /dev/block/sda17 is this the block I want to pull ??? forgot to tell earlier I am using oneplus 6T

yes. if not sure check ls -l $(find /dev/block -name by-name)/*


text:
How to find Google Assistant in Settings=>Apps in order to clear its storage/cache?
Since How to stop Google Assistant from freezing Xiaomi Mi Box S 4K's remote control? received no replies, I'd like to ask a more general question - how to clear Google Assistant's settings?
Or to put it more simply, how do I find Google Assistant in my list of apps in order to reset it there?
It's supposed to be play.google.com/store/apps/details?id=com.google.android.apps.googleassistant, but - in the Settings=>Apps of at least 2 different devices (a phone and a TV - both have Google Assistant in the general settings) - I find neither the aforementioned app ID nor Assistant nor Google Assistant, not even when system apps are included in my view.

Google assistant is not a separate app it's bundled with the Google App. So to clear the data for the Google Assistant you need to do it with the Google App

Just the system app called "Google", not any of the countless namesless apps called com.google.something?

'com.google.android.apps.googleassistant' is used to launch Assistant. It is not a system app and its tiny in size. The Assistant which we used is bundled in Google App (com.google.android.googlequicksearchbox) so you have to clear data of it in order to clear data of Google Assistant

FYI, I simply see neither com.google.android.googlequicksearchbox nor com.google.android.apps.googleassistant, not even any com.google.android.apps. I guess the only option according to you is clearing the main Google app itself.

Yes that's what I was trying to say


text:
How to unlock non owner account after reboot?
I've an Android 9 Samsung tablet. I've set up normal (I.e. not limited) accounts for my children.  When the tablet reboot, the only account which is usable is mine. The others are greyed out. When I've logged in once, the other accounts are unlocked.
I'd like my children to be able to use the tablet after a reboot without me needing to log in. How can I achieve that?
I found this question which seems similar but it has no answers.

I assume this is because of the device encryption (File Based Encryption). Before the main user has logged-in the device is not fully usable, therefore the other accounts are grayed-out. If my assumption is correct this is an integral property of Android and can't be changed. Keep in mind that Android is not a real multi-user OS.

It seems like by the primary user (here called "user 0") has to log in by definition as the first user. The documentation on the File Based Encryption (FBE) does not give many details on the question why:

Each user in a multi-user environment gets a separate encryption key. Every user gets two keys: a DE and a CE key. User 0 must log into the device first as it is a special user. This is pertinent for Device Administration uses.

Source: https://source.android.com/security/encryption/file-based#supporting-multiple-users
Hence I don't see a chance to change this behavior, you can only teach your children not to reboot the tablet and not to switch it off. In air plane mode with really disabled Wifi the battery loss should be minimal so that the tablet can stay on even when it is not used for some days.

Disabling encryption indeed allows all users to log in immediately after a reboot. Well not something I recommend as permanent setting but it was nice to understand why it worked on my older tablet which had a version of Android without encryption.

Is there a way to disable the FBE in android 12? It seems its there, turned on, but  grayedout at least in Lenovo.

Disabling FBE will get you what you want, though it seriously reduces the security of the device.
File Based Encryption (FBE) is called "Strong Protection" in the settings. On my tablet, you can disable it in Settings > Security > Other Security Settings > Strong Protection. (My tablet is a Samsung Galaxy running Android 11.) On some other devices it is under Biometrics And Security > Other Security settings.
I'm okay with disabling FBE, because the tablet is for my kids, who don't have much confidential information. But even in my case the tablet has all our Google passwords, because it's almost impossible to use an Android tablet without storing your Google password in a few apps.
(I deserve no credit for this answer, since it just combines information from comments. But I thought it would be nice to put the pieces together for someone who actually wants to change the setting.)


text:
What is EastworldService running from the Play Store app?
I looked in on my running apps and my Play Store has 1 process but 20 services running: Play Detection Async services, Collection Dispatching services, Thunderbird Setting Injector service's, Device Connection watcher service, GCM service, Pending Intent Callback service, Context Manager service, Nearby Direct service, Cable Authenticator, Emergency Persistent, Lockscreen, Scheduler, Google Location Management, Local Accuracy Injector, ClearcutDebugDump, Local Persistent, and Nearby messages service.

Is this not a little odd? Please please someone help. My phone is driving me crazy

The "Eastworld Service" is an integral part of the Google Mobile Services (GMS).
From it's code it seems for example to collects some device statistical data like app (un)installations, available Playstore updates, screen on-times, charging times...
BTW: The GMS core package also contains a "Westworld" service and other funny names. Also the Thunderbird service is mentioned here, seems to be related to Google Cloud Messaging (better known as Push Messaging system or "Firebase Messaging").