text:
Google Play Problem with my wifi
Google Play Store not working with my wifi. When I try to update or install apps stuck "Waiting for download". On another wifi working perfectly. And on my wifi with VPN working too, but too slow.
This problem exist on all android device with on my wifi.

If all Google services do not work this might indicate that your Wifi router has been hacked (there might be other reasons, too, but this is the first that comes into my mind). In such a situation data to certain servers is intercepted. Because PlayStore uses HTTPS with pinned certificates then app download does not work. Use your web browser and check a large number of larger and smaller websites that use HTTPS if there are errors shown regarding certificates.

Everythig working fine in browser and android app (gmail, google, youtube, etc.) only app install and update not working in play store.

The only alternative would be that Google has blocked your IP for app download, but for what reason? Also Google typically blocks user accounts, not IPs. But it is worth a  try - power down your wifi router and modem (if you have multiple devices for Internet connection) and then connect them again. This should get you a new IP address and therefore remove existing blockings on IP level.

3-4 years ago we have the same IP address. I think static IP though, less often, the modem was turned off for weeks.

Can you download apps on mobile data?

yes without a problem.


text:
Please help me do data recovery from a phone stuck in bootloop
I bought a Huawei Honor 5C Pro phone 2 years back and so far it had been working well. Two nights back, the phone shut down because of empty battery and I slept without putting it on charge.
The next morning, I started to charge it but the red light started blinking continuously for some time. Then, the honor logo was repeatedly flashing on and off without it reaching the lock screen.After every two or three times of flashing honor logo, it flashes emui with reboot,factory reset and clear partition cache options but it doesn't stop for me to choose any option.
This bootloop happens continuously while it is charging and if I remove it from charging, it still bootloops and doesn't shutdown no matter what. It bootloops until all battery is drained and then shuts down.
Only one time did it open while charge was 10% but after that, it shut down and hasn't stopped bootlooping.
Unfortunately, the battery is not removable.
Also, the problem is, when I put it on charge, for some time a red light blinks and then without any input from user, the phone switches on, boots to Honor logo and after every 2-3 honor logo flashes, it flashes to emui (with reboot, factory reset and clear partition cache option) but the screen immediately blacks out before I can choose any option.
The morning it happened, after many tries, it did open once at 10% charge. But it again switched off and hasn't stopped bootlooping since.
I don't care if the phone doesn't work. I just need the data stored on the ROM. If the phone can work, that's great but the data is more important.
As long as the phone keeps charging, this boot loop keeps happening despite me trying to switch off the phone. When I remove it from charging, it still boot loops until battery is low.
Please help me get back control of the phone or atleast recover the data stored on the phone's ROM.

This is your the second post on the same topic. Please to only ask one question per topic. You can edit your old question at any time and add or change something.

When your Android's system files stop communicating correctly, the device may end up having difficulty starting. Boot loops are the result of system files not knowing how to function during the initial start-up phase and can be caused by a variety of things, from downloading new apps to accidentally changing system files.
Soft Reset the Android Phone
The first step in dealing with a boot loop is performing a simple soft reset. Turn off your Android phone and remove the battery. If you're unable to remove the battery on your specific model of phone, leave the device powered off for at least five minutes. Turn the device back on to see if the boot issue has been resolved. Sometimes a quick soft reset is all it takes to shake bugs out of the startup process.
Factory Reset the Device
Factory resetting your phone will completely wipe it of data and restore it to the original factory settings. Power down the device and boot it into Recovery Mode. The exact steps for booting into Recovery Mode depend on the phone's manufacturer – consult your user manual. From there, select “Wipe Data/Factory Reset” and start the process. After the wipe, select “Reboot System Now” from the main menu.
Using CWM Recovery
If your phone is rooted already with CWM, the steps for wiping the device are different. Power down the phone and launch it into CWM Recovery Mode by pressing the Home, power, and volume up keys at the same time (this key combination may be different for your specific Android phone). Select “Advanced,” choose “Wipe,” and then pick “Dalvik cache.” Next, choose “Mounts and Storage” and then use “Wipe /cache.” Reboot the phone and the issue should be resolved.You can do same things if you have TWRP recovery.
Use Dr. Fone and RecoverIt from Wondershare
This is app for pc. Download this programs(for premium functions you can install cracked version) and connect your phone to pc. Click on data recovery and you will see "Recovery from bricked phone". It can work when your phone has hard brick or soft brick. After that press on recovery and it will work. If something is not clear for you, you can watch tutorials from YouTube and etc.
These are the ways I know. I hope these methods can help you.

https://smallbusiness.chron.com/fix-boot-loop-android-78426.html

Wondershare products are scam and won't fix anything on bootloader locked devices

Sometimes it works. So, I wrote it as option.

source: Stack Exchange

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

sort: votes


text:
How can I tweak my kernel to use all CPUs in my rooted device?
I have Huawei ALE-L21 alice (2015) Magisk-rooted Bootloader-Unlocked Xposed-Installed but it's somehow slower and I decided to tweak my CPU but here is what ES Kernel Manager shows:

Also, I can't actually use the governor

This is my ROM info:

Pretty sure that is just how big.LITTLE architechture works, you either have the big cores active or the little cores active, you can't have all 8 of them active at the same time.  Also, if you're maxing your CPU settings, you're defeating the entire purpose of the kernel's governer and will drain the battery quite rapidly. Also, your CPU options will depend entirely on what the kernel allows for, so you may want to reach out to the kernel development team for the ROM you are using, which is likely the Viper ROM maintainer for your device.

So, I can't just flash another kernel on-top?

Not to get all 8 cores working at once... That just isn't how big.LITTLE architecture works in general, the little cores handle the simple and background tasks when there is nothing going on to save battery, and the big cores take over when your actively doing stuff that takes some power... This is handled by the kernel's governer and I/O scheduler. You might find a kernel with a different governer or I/O scheduler, but you likely won't fine one that can get all 8 cores to work at once, plus most apps can't use more than 1 or 2 cores, they are not designed to.

What is the problem your trying to fix?

The problem is related to speed. There is so much latency on this device and Maybe, it is increasing as mush as I install more apps in internal but I have adopted storage.

Or maybe it is because of the RAM as  I only see less than 500MB each time I go to recent.

Adopted storage is always slower than native storage... I wouldn't sorry about the RAM, you have 2GB which is sufficient and the kernel will manage it. If you have 500MB or so free all the time, you don't have memory issue (free ram is wasted ram). The problem here is you have a 5 year old device and it just doesn't have the resources for modern android apps. Unlike computers, phones and their hardware have a much faster use cycle, typically 2 years (low end hardware) to 4-5 years (high end hardware) is their legitimate useful life.

Not to say you can't use them today... But they will be slow and laggy at times as they just don't have resources of a Pixel 4 or Samsung S11 or similar device which is the target platform for today's development. Phones are quite optimized when released, in general kernel updates, governors, clock setting, etc, will not give you massive changes in performance, but smaller ones that are sometimes noticeable and sometimes not. Eventually, you need to accept that a piece of hardware just isn't sufficient for your needs, and accept that mobile hardware has a much shorter life.

Oh man, that hurts. Anyway I did a lot of effort for this phone to be in this state. It's much better than stock state!
Btw, What is the best recent Android smartphone that can be rooted easily that you may suggest for me to buy?

The only phones I've used for a several years... Google Pixels.. The Pixel 4A is an excellent device at double it's price. We have two of them and tehy are excellent. My 2 cents worth.

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


text:
Is it possible to see when a bluetooth device was last connected?
I misplaced my bluetooth headphones, does anyone know whether it is possible to get a history when they were last connected on my Android 11 google Pixel 3A? Thanks in advance.

Probably not. There for sure is no such log on my own iPhone for my Bluetooth ear pieces.


text:
Stopped receiving AIB bank code notifications
I have recently stopped receiving notifications from my bank and one card company when they send me codes to log on to their sites on the PC.  I have a Huawei PSmart 9 phone and I am on 02 network.  Both the bank and 02 are saying that it is not their end causing the problem.  I have searched through the internet and tried every thing on my phone settings but nothing works.

Just for clarification, is it sent as an Android notification, or SMS? Also, did you recently change the phone? If it's an Android notification, since the Huawei and Google debacle, it might be possible that the bank app is using Google's push notification, and for the device to receive it, it needs to have updated Google Play Service. If it's an SMS, then it has something to do with the mobile carrier.

No Andrew I haven't changed the phone.  I will contact the bank and ask what way they send their notifications and act accordingly. Ta

After 9 months of having this problem I was finally given a solution today from a lovely gentleman in AIB. I had tried everything!!! I rang them every month, called into the branch, checked with phone provider etc. It was a case of change my phone or my bank.
Here’s what worked for me.
Go to your messages. In the top right hand corner there should be three dots. Click on them. There will be a selection of options. Click on spam and blocked. My AIB messages were coming up as blocked. There were about 50 of them there. Click that AIB is not spam.
Best of luck


text:
Send a text message on Instagram app using URI
WhatsApp allows users to send a message using URI with the format whatsapp://send?text=<message>.
Is there a similar way to send messages on the Instagram app?

The Android instagram listens for the scheme instagram:// as "host name" (instead of send as it is on whatsapp) it accepts commands like create_post, create_messenger_room, android and a lot more (see AndroidManifest.xml of Instagram app. I don't use this app and I have not tried it what other parameters are required but trying it out and checking adb logcat for errors might help you to identify how to use this interface.

does every app listens for the scheme which stats with the app_name:// as hostname

An app listens for a scheme if it has been declared in it's AndroidManifest.xml. Some apps do, others not.


text:
How do I disable notification sounds and vibrate in messenger?
I'd like to disable sounds and vibration for messages on Facebook messenger, but leave on sound/vibration for calls and other apps. How can I do this?

Configure channels in app's notification settings (provided that it uses different channels) to control different types of notofications.

@IrfanLatif what do you mean by "channels" - I don't see that mentioned in Messenger's notification settings, nor in the android notification settings.

I don't have Messenger app to guide you precisely, so this may help: https://duckduckgo.com/?q=android+notification+channels

As of now, notifications for chats and calls in Messenger are grouped and can only be enabled/disabled together.
Your best bet is to contact facebook/messenger and ask them to add the feature, by splitting the notifications into channels, which can then be controlled seperately.


text:
Replacement SD card not mounted properly in device
I have an Android 8.1 device (encrypted, not rooted) that is configured to use an SD card as internal storage. That SDcard broke down and needed to be replaced.
After inserting a fresh replacement card, the device recognized it and asked how it should be formatted. I chose "internal", and the format went though without issues. The card shows up under "Storage" with the correct capacity, just as the old one did.
However, using this card is not possible. All apps that try to access it (like camera, browser downloads, file managers) show "SD card not available" errors.
When I connect to the device through adb shell to check how the file systems are mounted, I can see a difference. This is what shows up when the old card is inserted:
bbb100:/ $ mount
[...]
/dev/block/dm-3 on /mnt/expand/beb7cb3c-0c09-43cf-83b8-ce1eac90a92b type ext4 (rw,dirsync,seclabel,nosuid,nodev,noatime)
/mnt/expand/beb7cb3c-0c09-43cf-83b8-ce1eac90a92b/media on /mnt/runtime/default/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid)
/mnt/expand/beb7cb3c-0c09-43cf-83b8-ce1eac90a92b/media on /storage/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,multiuser,mask=6,derive_gid)
/mnt/expand/beb7cb3c-0c09-43cf-83b8-ce1eac90a92b/media on /mnt/runtime/read/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=23,derive_gid)
/mnt/expand/beb7cb3c-0c09-43cf-83b8-ce1eac90a92b/media on /mnt/runtime/write/emulated type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,multiuser,mask=7,derive_gid)
bbb100:/ $

and this appears when the new card is inserted:
bbb100:/ $ mount
[...]
/dev/block/dm-3 on /mnt/expand/49d563a3-0905-4173-a1b3-8c29e3917d2c type ext4 (rw,dirsync,seclabel,nosuid,nodev,noatime,data=ordered)
bbb100:/ $

So it seems the new card is not initialized correctly and/or several directories do not get mounted for whatever reason.
Things I tried to no avail:

re-formatting the card
eject, mount
reboot the device
ran sm partition disk:179,64 private in adb shell just to see if there are any errors on the console (via) - there is no error
tried with different SD card (also brand new) - same behavior
copied device- and partition UUIDs (PTUUID, PARTUUID) from old SD card to new card using gdisk, hoping that Android would recognize the new card as "known" and mount it. It doesn't.

What's going on here and what else can I do to make the card work?

Did you try Forgetting the old card before formatting the new one?

@IrfanLatif No, I did not, for fear that would then be unable to access anything on that card anymore, since it's encrypted. I saved most of the data, but I might have forgotten something.

@IrfanLatif I could try to change the UUID of the new SD card to match the old card, would that convince Android to mount it properly? (It probably would, but it's unclear to me why bending over backwards so much is necessary - why won't the OS treat a new card properly on its own?)

Sorry I personally never used Adoptable Storage except for experimenting. So can't be very helpful.

@IrfanLatif For what it's worth, you were right. Thanks for the pointer.

Okay, I figured it out (hat tip to @IrfanLatif). What's going on is this:
Android focuses on one single "primary" SD card that can be used to permanently enhance internal storage, e.g. by moving apps to it.
When it is removed, the system remembers that apps and settings are still stored there, and waits that it shows up again. Other SD cards can be formatted for internal use, but they won't actually be usable until all ties with the known SD card are broken.
This means the card must be explicitly forgotten. The option to Forget a card is available from the Storage menu when that card is not currently inserted.

Be sure to backup everything you need before doing that.
Eject the card via the menu and remove it from the slot.
Tap the card's name in the storage menu and then "Forget".
Confirm the warning that all data on that card will be lost forever, since the card is encrypted and Android is about to delete the encryption keys.

Only after that, Android will accept a different SD card as its primary storage and make it available to the rest of the system.

Thanks, @Tomalak. After searching a very long time, this answer finally gave me a way to replace an android sdcard formatted as internal with a larger one.


text:
Razer Phone 2 showing wrong size for the SD card and performance of the card is not ok
I have the following setup:

Razer Phone 2 (Android Phone)
Samsung EVO 128 GB SD card SDXC class 10 (Yellow one)
SD Card formatted as internal storage from the Razer phone

After using the phone for couple of months the performance of the phone started to get effected. The I checked and found that the SD card was sowing 256 GB but the card is actually 128 GB.

I have double checked the card physically and it is a 128 GB card.
Now how do I reformat the SD card so that it is corrected (found a video on how to do that) and then copy my data back to the card so that it works as before. The card is encrypted so the copied data will not make sense. But as long as it works after I copy back that will do.
I do not have another card where I can clone this card. I plan to copy to my windows machine, format and then copy-back the content of the card.
Any suggestion on the steps/measures I have to take to have the card corrected and retain the data?

Ideally, you'd want to decrypt the data first, then copy it off for re-formatting. I'm not sure if Samsung's Tizen OS supports formatting the external SD card in recovery or not, otherwise, it can be reformatted via fastboot, though I'm unsure if Samsung's Tizen OS allows formatting the external SD via fastboot on a bootloader locked device. There are Android apps that can format, however you'll want to do research and only install one that's been reviewed by a major 3rd party (Android Authority, CNET, TechSpot, etc.), else it can be formatted on a PC.

Its not a Samsung phone tho.

I misread the first and second bullets =] Disregarding the Samsung mention, all the information would still apply (the only meaningful difference is the RAZER uses Android, whereas Samsung uses a highly customized version called Tizen and implements a different security feature called Knox, neither of which are relevant to your issue)

@JW0914 I am sorry but why do you mention Tizen OS here? It is never mentioned in the question. The question is only about Android.


text:
Does MMS messages with pictures always use your data?
I have the Pixel 3a running android 11. My Wi-Fi is always on. And my mobile data is always off. I have the app "My Data Manager" installed so I can see when my mobile data is being used. When I send an MMS text, no data is used. But when I send a MMS text with a pic, then I can see that my data is being used. The following app is using the data "org.codeaurora.ims". Is this normal? Because my phone plan is supposed to offer unlimited text messaging with pictures. But everytime I send an MMS text with a pic, it's eating away at my data plan. Thanks for your help.

Yes, MMS are sent via regular data connection, however as MMS already have a price of it's own the MNOs should not charge the use data for it.

Thank you Robert.  So this is not an issue with Android but an issue I need to resolve with my phone carrier?  I don't know what MNO stands for.

MNO = Mobile Network Operator

No, it does not take your data(Internet connection) but it takes the balance of your sim.


text:
New Android version for Acer DA220HQL
I have got the following android model (Acer DA220HQL) with  Android Ice Cream installed (Android 4.0.4). Unfortunately this version is quite outdated nowadays and all android apps  do not work. I would like to know, if there is any new official Android version or even a custom android rom that would be compatible with this specific model (image attached for better assistance) and which one.
That would help me a lot!

Regards

It seems there's no official update for this device. I also noticed that you have been asking this on many forums without success. I'm afraid if there's no custom ROM found on XDA until now, then it seems impossible to create one (I noticed that the ROM developer needed the device tree source which seems unavailable). I'm skeptical about the blog that says it's possible to update to Android 6 though... sorry :(

I just saw that same blog for update to android 6 and I would like to ask if it is possible and also if exists such version of that particular device. I have posted only to acer community forum where I got no reply and android central forum where they told me that I might find one android version, but it does not worth the effort to install it. Asking this trustworthy forum if android 6 is supported by this device? Regards

Actually, forget that blog... the download links are already dead, and the blog contains many similar posts just with the device name changed, the reviews are also fake... the only hope was someone from the XDA forum speculated that it might be possible to create a custom ROM based on Android 4.1/4.2, but then nothing heard anymore. I'm really afraid that there's no alternative since each Android ROM has to be made specifically for each device...


text:
Help with Nexus 6P bootloop: Couldn't parse partition size '0x' when trying to flash new image
I need help with my Nexus 6P.
Because of a bootloop, I was trying to flash a new boot image. I went to the Google download page for factory images and tried using the "flash-all.bat" file. I don't know how to exactly explain this but, here is the full command prompt line from the flash-all batch file.
Note: It also says my device is corrupt while trying to go into recovery mode.
I don't know how to fix, please help :(
Sending 'bootloader' (3544 KB)                     OKAY [  0.136s]
Writing 'bootloader'                               OKAY [  0.215s]
Finished. Total time: 0.405s
Rebooting into bootloader                          OKAY [  0.108s]
Finished. Total time: 0.113s
Sending 'radio' (48728 KB)                         OKAY [  1.511s]
Writing 'radio'                                    OKAY [  2.174s]
Finished. Total time: 3.741s
Rebooting into bootloader                          OKAY [  0.007s]
Finished. Total time: 0.009s
--------------------------------------------
Bootloader Version...: angler-03.68
Baseband Version.....: angler-03.81
Serial Number........: 84B7N16109000032
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [  0.018s]
Checking 'version-bootloader'                      OKAY [  0.018s]
Checking 'version-baseband'                        OKAY [  0.018s]
extracting boot.img (12 MB) to disk... took 0.033s
archive does not contain 'boot.sig'
fastboot: error: Couldn't parse partition size '0x'.
Press any key to exit...

Flashing vendor, system, and recovery individually works but boot doesn't. When flashing boot image on its own, it also says the same thing.
fastboot: error: Couldn't parse partition size '0x'.

Is the device unlocked? BTW: Even if Huawei technically is the manufacturer usually people speak about "Google Nexus 6P" because everything relevant is provided by Google.

Yes, the device is unlocked.


text:
How to select photos by file-name when opening from inside an app?
I am converting hundreds of A4 pages of handwritten text into computer text with the amazing Pen to Script app on my Android 10 phone. I got many more to process and I go crazy on one detail:
Here is my problem: Every time I start a new page, I have to select its photo from a very full folder. But every time I get offered some useless (for this purpose) "app switcher" (I am not sure that is its correct name) where I see recent photos and a choice of several apps to select photos.
Problem is also that at thumbnail-size on a phone, all pages of handwritten text look the same.
In my app switcher I found an icon that looks like six tiny white rectangles on a small grey rectangle. This gives me the view I need: file names rather than thumb-nails.
Update: The view which give me the file-names in the app switcher is called "list view"; found that on long-tap on its icon. So please, how can I set "list view" as my default to come up each time I have to select a photo?
I would have preferred to have Total Commander come up, whenever I have to select a photo. But if a user can show me how to make the file-name-view sticky in my app switcher, that would be a solution for this present project.

Usually the way how an image is selected/chosen is defined by the app that requests the image. Also the apps shown in the "app switcher" is pupulated by those apps that define they can provide an image. As TC can only select but not provide an image it is not shown here. As workaround I would try to make one directory per image and move the image in there. If the "Pen to Script App" supports it may be even possible to launch the app from outside alterady defining the photo to be processed. That may be possible via Intent opened via adb or on the shell of the app Termux.

@Robert Sorry, TC is one of the apps that are being offered by the annoying switcher step in my work flow, next to "Bug reports"[sic], "Drive", "Photos", "Photos" and "Recent Images". So I can chose TC but cannot make that choice stick. Your idea about hundreds of folders does not help, but - temporarily - assign Pen to Script to open all photos is promissing, thank you, will test that now. Let you know in a moment.

So sad, my phone is offering 112 apps which can potentially open a photo when hit in my file explorer, but Pen to Script has not registered itself for that purpose. The idea was great, just what one needs from a forum when goind brain-dead from manually batch-processing stuff.

By chance I found a semi-solution: when Pen to Script is showing me the unloved app switcher to select the next photo, I can tap on a sad looking grey icon to the right of the heading "recent images". This gives me the files names I need, rather than thumbs. This too I have not found how to make stick, but it saves me several clicks per page, because I no longer need Total Commander.

Update: The view which give me the file-names in the app switcher is called "list view"; found that on long-tap on its icon. So please, how can I set "list view" as my default to come up each time I have to select a photo?


text:
Wikipedia app or Gmail doubles Wiki image sizes when sharing them
I am sharing a lot of images and articles from mobile Wikipedia app to my Gmail account. Today I noticed that either app itself or Gmail is doubling image sizes during this course of action.
For example, I stumbled across this image.

Corresponding Wikipedia page says:

500 × 373 pixels. No higher resolution available

I shared it to my email address the usual way (using three dot > Share) and when received shared email in my Gmail it turned out that the image has 1280 x 955 pixel dimensions. So it is two and a half times bigger than the original one.

As you can see above, the image itself is very blurred and artificially oversized. So, it is not Wikipedia hiding some actually bigger image resolution. It is either Wikipedia app or Gmail doubling image during share process.
Is this some weird feature that I don't understand? Or is this a bug introduced in Wikipedia mobile app?

You should check if the image gets also resized if you share it with a different app. If this is the case the behavior is simply a bug you you should create an issue for it: https://phabricator.wikimedia.org/tag/wikipedia-android-app-backlog/

This is because the Wikipedia app actually requests a fixed 1280px-width image when viewing it in the in-app gallery and sharing it from there.
When an image is tapped, the app allows the user to view the image in a special viewer (a.k.a. in-app gallery). The image shown in the gallery is actually a resized image.
For this specific image, the URL is
https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Kraszewski_manor_in_Do%C7%94haje%2C_drevaryt.Jpg/1280px-Kraszewski_manor_in_Do%C7%94haje%2C_drevaryt.Jpg

Note the 1280px in the middle of the URL. This link is actually an API for generating an image thumbnail with arbitrary width so that it is possible for Wikipedia/Wikimedia Commons to generate a smaller/larger image than the original when needed.
When tapping the "Share" button, the app uses the image directly from the in-app gallery (which has been resized) and stores it locally as a temporary file for the purpose of sharing, which is why the width is always 1280px when shared.

One known possible workaround is to download the image first since it is using the original URL, and thus getting the original image with the original size.

Since the official Wikipedia app is open-sourced:

For end-users: feel free to file an issue for this to discuss if this is a bug or by design, and to let them know the user's expectation.
For developers: it is possible to modify the behavior of image sharing. The relevant code should be inside GalleryItemFragment.shareImage() for determining the source of the image and GalleryActivity.onShare() for the filename.


text:
ZH960 tablet, suspicious hardware parameters, what to do?
I've bought a recent, middle (or top) category Android tablet model ZH960. It specification says 8GB RAM and 128GB flash, with an astonishing 1280x2560 display.
However, after I've tried it, it simply did not work so. It is slow (particularly using recent browsers), the display resolution is clearly worse than specified (pixels are well visible), contrary that the "Settings" -> "About this tablet" says the values specified by the reseller.
What to do? How to check it?

This is a fake.
Probably the "producer" bought tablet with 1 GB RAMs, and flashed them with a firmware lying about their hardware. However, some simple adb shell commands show the real hardware capacity:

Fact is that the device has 1GB RAM and a 16GB flash. It is today a low-end device, overwritten by a firmware which falsify the reported hw parameters.
The internet is full with

Unclear / contradicting "specifications" of this hardware.
Warnings about the scam (example).

I could not find any trace of the producer. Most likely, the model does not even exist.
If you bought this table, here is the time to initiate a customer complain. If you can not, my sincere condolences.

Side note: I bought this thing on ebay. The seller paid my money back, but wanted the fake device back. I sent it back to him. And then... he simply sold it to others! I tried to report the cheat to the ebay, but nothing happened! Their reporting page does not even have a cheat/fake option!


text:
Does my hidden files (in android phone) get deleted if there is no enough space to restore them?
I tried to restore my hidden files on my android phone. I had less than 20% available space while the hidden files size was more than 30%. It gave me a warning of out of space memory. A box appeared where I quickly clicked the cancel button with reflex without reading what was written. I thought that my files were still there in the hidden folder but they were not. They were deleted completely. My free space also increased by that much. Does it happen like this?

No. This doesn't happen normally. How exactly did you hide the files?

Please describe in details what you mean by "hidden files". Are you talking about files in a "dot directory" (directories that starts with a dot)?  Or are you talking about files that have been hidden by a specific app?

Additionally this question is a duplicate of https://superuser.com/questions/1595448/does-my-encrypted-hidden-files-in-android-phone-get-deleted-if-there-is-no-eno where already had been noted that your question is missing important details but you again posted it (using a different account).


text:
Settings get global mobile_data always returns 0
On a rooted mediatek 6580 phone running Android 5.1.1, if data is enabled using svc data enable or even pulling down the notification bar, the command settings get global mobile_data shows an output of 0 instead of 1. As a result if running from a script, such like;
while true; do
sleep 10
if [ `settings get global mobile_data` == "0" ]; then
svc data enable
else
svc data disable
fi
done

This script turns on data successfully, but couldn't turn data off after 10 seconds, since settings get global mobile_data always returns 0. Where as, I did the same with wifi as in replaced mobile_data with wifi and svc wifi enable/disable Wifi seemed to do the job as expected. Turned on after 10 seconds, and after 10 seconds turned itself off and repeat. I wonder why it isn't the same with mobile data. Manually running svc data disable turns off data, but running from a script seems to be a problem in this case.

Try settings get global mobile_data${i} where i is 1 to 9.

Unfortunately all of them returns 0 from 1-9 even if data is on

Save all settings to a text file before and after switching Mobile Data on or off. Take a diff of both files to see what keys/values changed.


text:
Recovering LINE account chat history after a delete and reinstall
I deleted and reinstalled my LINE messaging app since it kept notifying me to do so the past few days (which I found odd because it was on the latest version). I'm guessing it might have had something to do with me playing around with Lucky Patcher to install a modded version of Google Playstore, which ultimately failed so I had to flash GAPPS to get the playstore back after LP uninstalled it.
Anyways, I backed up my LINE app using Titanium Backup before deleting and reinstalling. After the reinstall, I opened LINE, logged in, and saw that all my chat history has been deleted so I ran TB to restore the data (restore app + data didn't let me install LINE so I installed it through the PlayStore and just restored the data using TB).
However, when I opened LINE again, I saw everything restored briefly until I got notified that my account is being used on another device and I was forced to delete everything.
I looked through the questions and answers in StackExchange, Reddit, and XDA but most of their problems involved transferring their LINE app to a different phone, or a different ROM (but the same phone). All I did was to delete and reinstall so my android id should not have changed so it doesn't make sense why LINE is giving me that notice.
Does anyone have ideas on how to fix this?
Phone: OnePlus 6, Android 9, rooted.
Thanks!


text:
Fastboot not working with new Teclast P80H
I am developing an in-car product and app.  Previously, I had a Teclast P80H tablet with a micro-USB connector and running Android 7.0.  I was able to enter fastboot mode and from Windows cmd window, issue the Android SDK command "fastboot oem off-mode-charge 0".  This successfully reconfigured that older tablet so that, if the tablet was fully shut down and turned off, connecting 5V to the micro-USB jack would cause the tablet to boot up and run.  This was great for my in-car product and app.
Now that old tablet is no longer available, so I'm trying a newer version of the Teclast P80H.  This one has a USB-C connector and runs Android 10.0.  It takes a slightly different method to get into fastboot mode, but I think I've figured it out.  However, when I issue the command "fastboot oem off-mode-charge 0" I get a message "FAILED (remote: 'unknown cmd.')".
In order to make sure I really do have the tablet in fastboot mode, I've tried a couple things.  First, issuing "fastboot reboot" does indeed reboot the new tablet like it did with the old tablet.  Even better, the command "fastboot oem get_identifier_token" seems to work, telling me "(bootloader) Identifier token:" and on the next line "(bootloader) ******************".  Well, I've omitted the actual identifier for security purposes, of course, I guess.  But this seems to prove to me that I have the tablet in the right mode to receive the "fastboot oem off-mode-charge 0" command.
But it seems like maybe this version of the tablet's oem commands doesn't include "off-mode-charge".  Perhaps the name or syntax has changed.  But I don't know how to find out.  While "fastboot help" works, it seems that 'fastboot oem help" doesn't.  I don't know how to figure out how to configure this new tablet.
Again, my objective is for the tablet to boot up from full shutdown, whenever 5V is applied through the USB-C connector.  BTW, I'm using the USB-C to USB-A cable that came with the tablet, plugging the USB-A end into my Windows 10 computer.
I did re-install the latest Android Studio.  I also updated the SDK to Android 10.  (It was Android 9.)  However, the fastboot.exe program remains with an 11/14/2019 file date, perhaps the original date I installed it.
Any suggestions?  Thanks!

Thanks for trying, Robert.  But as I said, I've been using fastboot successfully already on the prior model of Teclast P80H (with micro-usb connector, Android 7.0).  So, as politely expressed as I'm able, your comment is both incorrect and unhelpful.  Any ideas instead on how to move forward?  (Actually, I may try researching MediaTek...  Thanks for that.)

Does this answer your question? Automatically power on Android when the charger is connected

sed -i '0,/off-mode-charge=1/s/off-mode-charge=1/off-mode-charge=0/' $(find /dev/block -name by-name)/para from TWRP recovery will change the value located in para partition (mediatek devices)

@alecxs your link and 'sed' command look promising.  However, they are beyond my experience/ability at this time.  This is for a new small business product.  I'd like to private message you about direct help, and I've seen your profile, but I don't see how to send a private message...


text:
Nexus 6P Bootlooping, can't go to recovery mode, tried multiple flashes, used Nexus Root Toolkit. Is my device gone forever?
As you guys may know, the Nexus 6P has a notorious bootlooping issue. After trying multiple flashes, and even going to WugFresh's Nexus Root Toolkit, I had no avail for any signs that my device was fixed. I can't go to recovery mode either because it bootloops there too. My question is that is my device gone forever? Can I no longer fix it? Thanks in advance.

Have you tried just to run TWRP recovery from external image (not flash): fastboot boot <twrp.img>

Not yet, but I'll try that now.

@Robert tried that command, still bootlooping.

@user334424 did you find any solution?


text:
Screen on when charging on powered off phone
The issue
My phone's screen is always on when I charge it while it is turned off.
It displays this image:

And the screen cannot be turned off. I believe it is not charging either, but I can boot it normally. It charges normally when on.

Specification

Image installed: lineage-17.1-20201012-UNOFFICIAL-treble_a64_bvS
Build number: treble_a64_bvS-userdebug 10 QQ3A.200805.001 eng.crossg.20201012.051017 test-keys
Phone: Blackview BV 5500 Pro

Similar issues
I believe the issues posted at

https://forum.xda-developers.com/galaxy-s5/help/power-off-charging-lineage-os-14-1-t3694182
https://forum.xda-developers.com/lineage/help/charging-screen-misbehaving-phone-off-t3611714

are fairly similar, but do no have a solution, as far as I can tell.

What I've tried
Originally, I had the message

Orange State
Your device has been unlocked and can't be trusted..Your device will boot in 5 seconds

Displayed along the picture of the battery. The phone would not boot (unless I've pushed the on button, that is), but the message would continually be displayed.
I've followed the tutorial at https://forum.hovatek.com/thread-31664.html and removed the 5 seconds boot delay time in Orange State: I don't see that warning when I turn off my phone or when it is turned off and charging, but the screen still stays on when I'm charging the phone turned off.


text:
How to backup Signal app on sd card instead of internal storage?
I want to backup the signal app on my Android phone at the sd card for my new phone. In the app there is no option to choose the pathway, it is automatically saved in the internal storage. However, the app now has 4,7 GB and my storage is only 16 GB big and nearly full. With the storage needed for the system I'd basically had to remove everything else to make it work. So the backup always starts but stops at some point and no backup is created.
I tried

deleting other apps and media even though I calculated it would still not be enough space and it wasn't.
removing the /signal/backups folder manually several times before or while the backup was creating but the folder at the sd card still remained empty and was recreated in the internal storage
finding an option to move the entire app to the sd card as possible with other apps but this has to be in a forced way if possible
making the used space by signal smaller by deleting saved pictures by signal in the internal storage and by deleting chats but the space remained the same size ...
google. But what I found in the internet was not much and I did not understand what to do. Like using tasker or osmand somehow?

Do you know a creative or clever way of forcing Android and Signal to backup on the sd card?

Does your phone allow you to save other apps to the sd card?

yes, I moved other apps to the sd card, but not all apps are possible on my phone


text:
Decrease the screen size (not resolution) on Android 11 (`wm overscan` is deprecated)
I recently bought a Pixel 4a and being used to a way smaller phones before (4.7 inches), it's gigantic for me. I'm trying to find a way to decrease the usable space of the screen (from the top) and hide the camera cutout.
I found out this, but the option is only available on Samsung (and other brands). Then I found out this thread and the wm overscan ADB command and just as it looked like I found a solution, it turned out Google deprecated the overscan command in Android 11.
I tried also Nacho Notch and other "notch-hiding" software, but they only "blacken" the notification bar and don't actually reduce the screen size.
Any ideas what I can do to actually achieve this on Android 11?

I have the same issue with my Google Pixel 4a. Fortunately even though overscan is deprecated, setting size still works. The downside is that the screen is centered instead of being aligned to the bottom of the screen.
Open a root shell on your phone, then run:
wm size # to get your current phone display size
wm size 1080x1800 # slightly reduce the display size

You can also use wm size reset to reset the display size.
Edit: you can also use Screen Shift to edit the screen resolution. (Overscan won't work.)


text:
List of all actions protected by given permission
I am supposed to perform static analysis of an APK that has a lot of permissions requested in the Manifest.
I would like to find out whether all the permissions requested are really needed by the app to perform some action.
When I read documentation for a specific permission, it hardly mentions what actions (API calls, object initiations, broadcasts etc.) are specifically protected by that permission.
For example: When I read the docs of READ_PHONE_STATE here, it never mentions the actual API calls protected by the permission. I need to google and find that the user needs this permission to call some methods of TelephonyManager, which is something that I can try to find in the Smali code of my APK to verify that the permission is really needed.
So my question is: Is there some documentation, website or list, where I could easily find all assets protected by various Android permissions? The documentation usually contains all permission needed by a specific call, but it does not contain all calls protected by a specific permission.

I don't think you'll find all information at one place. It's scattered over https://developer.android.com and AOSP source code. In particular Android platform's manifest file can be of a little help.

In recent versions of Android the Android source code for the API used by AndroidStudio  contains RequiresPermission annotations on methods that specify which permissions are required to cal it. Of course there are other ways to make use of a permission that those API calls.


text:
does someone have a solution for "encryption unsuccessful" on redmi go?

operating system ONLY working - stock
TWRP doesn't decrypt /data/
this solution doesn't work : http://www.electricbreadcrumbs.com/2012/07/guide-to-fixing-encryption-unsuccessful.html
deleting cache and data does NOTHING
doing factory reset only reboots
all ideas allowed (by me ;) )
maybe provide a link to really working system? as i saw most are having problems with hardware...
... or a way ( with root ) to fully delete gApps - all apps and file managers can't do it...

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


text:
Termux (Terminal) tsu is adding "(unreachable)" to my current working path
When I run tsu (which is Termux's version of su), my current working directory gets prefixed with "(unreachable)", as you can see from the transcript of my session.
[u0_a116 …/~]$ tsu
[root …/home]# pwd
(unreachable)/data/data/com.termux/files/home
[root …/home]#

I did some digging and found what seems to me is the culprit.
tsu is a script that sets up an environment for the root user and then runs su to give you root privilege with the new environment. This is what the command that tsu is running looks like after opening all the variables.
/sbin/su -c PATH=/sbin/.magisk/busybox env -i PATH=/data/data/com.termux/files/usr/bin:/data    /data/com.termux/files/usr/bin/applets:/system/bin:/system/xbin:/sbin:/sbin/bin     ANDROID_DATA=/data TMPDIR=/data/data/com.termux/files/home/.suroot/.tmp PREFIX=/    data/data/com.termux/files/usr TERM=xterm-256color LD_PRELOAD=/data/data/com.ter    mux/files/usr/lib/libtermux-exec.so ANDROID_ROOT=/system HOME=/data/data/com.ter    mux/files/home/.suroot /data/data/com.termux/files/usr/bin/bash
This causes a problem when I try to run a script that is using relative paths. (I'm running a script to setup a full linux distro with proot in Termux).
If I take out the 'env -i` from the command then I get the current working directory without the prefixed "(unreachable)". This does not setup the new environment, it leaves the old environment intact as if I would have selected --preserve option.

Go to Magisk settings if you are rooted device with Magisk and set "Mount Namespace Mode" to "Inherit Namespace" and reboot device.
If you are using SuperSU, go to SuperSU settings and enable "Mount Namespace Separation" mode.

I have had the same problem. I resolved it with a work around. I added to the environment the following.
PWD=$(echo $PWD | cut -c 14-)
I added the following lines to the tsu script at line numbers 239 - 241
# Following line added to fix the problem of pwd starting with (unreachable)
ENV_BUILT+=" PWD=$(echo $PWD | cut -c 14-)"

Following is the the full code of the updated tsu script

#!/data/data/com.termux/files/usr/bin/bash

# Copyright (c) 2020, Cswl C. https://github.com/cswl
# This software is licensed under the ISC Liscense.
# https://github.com/cswl/tsu/blob/v8/LICENSE.md

### tsu
_TSU_VERSION="8.5.1"

log_DEBUG() { __debug_wrapper() { :; }; }

gather_debug_info() {
    echo "Environment: "
    env
    echo "============================"
    dpkg --print-architecture
    echo "Android version:"
    getprop ro.build.version.release
    echo "Android device:"
    getprop ro.product.manufacturer
    getprop ro.product.model
    uname -a

} >>"$LOG_FILE"

# Allow debugging with a long option
if [[ "$1" == '--dbg' ]]; then
    _TSU_DEBUG=true
    printf -v LOG_FILE "%(%Y%m%d)T"
    LOG_FILE="./tsu_debug_$LOG_FILE"
    gather_debug_info
    set -x
    shift
fi

## Support for busybox style calling convention.
## This works because we don't actually `readlink` the script location.
_TSU_CALL="${BASH_SOURCE[0]##*/}"
if [[ "$_TSU_CALL" == "sudo" ]]; then
    _TSU_AS_SUDO=true
fi

show_usage() {
    cat <<"EOF"
tsu A su interface wrapper for Termux

    Usage:
        tsu
        tsu [ -s SHELL ]  [-p|-a] [USER]
        tsu --dbg [ -s SHELL ] [-p|-a] [-E] [USER]
        tsu -h | --help | --version

    Options:
    --dbg        Enable debug output
    -s <shell>   Use an alternate specified shell.
    -p           Prepend system binaries to PATH
    -a           Append system binaries to PATH
    -h --help    Show this screen.

    This package also provides a minimal sudo which is enough to run most programs as root

        sudo command

    https://github.com/cswl/tsu

EOF
}

show_usage_sudo() {
    cat <<"EOF"
sudo - run commands as root or another user
  usage: sudo command
  usage: sudo [-E] [-u USER] command

    Options:
      -E          Preserve environment variables from the current shell.
      -u USER   Switch to USER instead of root..
EOF
}

# Defaults in Termux and Android
TERMUX_FS="/data/data/com.termux/files"
TERMUX_PREFIX="$TERMUX_FS/usr"
TERMUX_PATH="$TERMUX_PREFIX/bin:$TERMUX_PREFIX/bin/applets"
ROOT_HOME="$TERMUX_FS/home/.suroot"
ANDROID_SYSPATHS="/system/bin:/system/xbin"
EXTRA_SYSPATHS="/sbin:/sbin/bin"
#ANDROID_ASROOT_SYSPATHS="/bin:/xbin"

# Some constants that may change in future.
BB_MAGISK="/sbin/.magisk/busybox"

# Options parsing

# Loop through arguments and process them
log_DEBUG TSU_AS_SUDO
if [[ "$_TSU_AS_SUDO" == true ]]; then
    # Handle cases where people do `sudo su`
    if [[ "$1" == "su" ]]; then
        unset _TSU_AS_SUDO
    fi

    _is_pos() {
        for e in -u --user -E --preserve-enviroment; do [[ "$e" == "$1" ]] && return 1; done
        return 0
    }

    for arg in "$@"; do

        # It is important to break as soon as we see a positional argument
        # Otherwise `sudo id -u` or `sudo some_cmd -E` wont work as expected

        if _is_pos "$arg"; then break; fi

        case $arg in
        -u | --user)
            SWITCH_USER="$2"
            shift
            shift
            ;;
        -E | --preserve-enviroment)
            ENVIRONMENT_PRESERVE=true
            shift
            ;;
        esac
    done

fi

log_DEBUG _TSU_AS_SUDO
if [[ -z "$_TSU_AS_SUDO" ]]; then
    for arg in "$@"; do
        case $arg in
        -p | --syspre)
            PREPEND_SYSTEM_PATH=true
            shift
            ;;
        -a | --sysadd)
            APPEND_SYSTEM_PATH=true
            shift
            ;;
        -s | --shell)
            ALT_SHELL="$2"
            shift
            shift
            ;;
        --version)
            echo "tsu - $_TSU_VERSION"
            exit
            ;;
        -h | --help)
            show_usage
            exit
            ;;

        *)
            POS_ARGS+=("$1")
            shift
            ;;
        esac
    done

    SWITCH_USER="${POS_ARGS[0]}"
fi

declare -A EXP_ENV

env_path_helper() {

    # We will try to match the default behavior of normal linux su
    # Unless the user specifically asks to preserve the enviroment,
    # We create a fresh new one.
    log_DEBUG "${FUNCNAME[0]}"

    log_DEBUG SWITCH_USER
    if [[ -z "$SWITCH_USER" ]]; then
        ## By default we start a fresh root shell with HOME set to that of the root home

        # Creat root $HOME if it doesnt exsists yet
        [[ -d "$ROOT_HOME" ]] || mkdir "$ROOT_HOME"
        NEW_HOME="$ROOT_HOME"

        EXP_ENV[PREFIX]="$PREFIX"
        EXP_ENV[TMPDIR]="$ROOT_HOME/.tmp"
        EXP_ENV[LD_PRELOAD]="$LD_PRELOAD"

        log_DEBUG _TSU_AS_SUDO
        if [[ "$_TSU_AS_SUDO" == true ]]; then
            # sudo copies PATH variable, so most user binaries can run as root
            # tested with `sudo env` version 1.8.31p1
            NEW_PATH="$PATH"
            EXP_ENV[SUDO_GID]="$(id -g)"
            EXP_ENV[SUDO_USER]="$(id -un)"
            EXP_ENV[SUDO_USER]="$(id -u)"
        else
            NEW_PATH="$TERMUX_PATH"
        fi

        # Android versions prior to 7.0 will break if LD_LIBRARY_PATH is set
        log_DEBUG "LD_LIBRARY_PATH"
        if [[ -n "$LD_LIBRARY_PATH" ]]; then
            SYS_LIBS="/system/lib64"
            EXP_ENV[LD_LIBRARY_PATH]="$LD_LIBRARY_PATH:$SYS_LIBS"
        else
            ASP="${ANDROID_SYSPATHS}:${EXTRA_SYSPATHS}"
            # Should we add /system/* paths:
            # Some Android utilities work. but some break
            log_DEBUG "PREPEND_SYSTEM_PATH"
            if [[ -n "$PREPEND_SYSTEM_PATH" ]]; then
                NEW_PATH="$ASP:$NEW_PATH"
            else
                NEW_PATH="$NEW_PATH:$ASP"
            fi
        fi

    else
        # Other uid in the system cannot run Termux binaries
        NEW_HOME="/"
        NEW_PATH="$ANDROID_SYSPATHS"

    fi

    # We create a new environment cause the one on the
    # user Termux enviroment may be polluted with startup scripts
    EXP_ENV[PATH]="$NEW_PATH"
    EXP_ENV[HOME]="$NEW_HOME"
    EXP_ENV[TERM]="xterm-256color"

    [[ -z "$_TSU_DEBUG" ]] || set +x
    ## Android specific exports: Need more testing.
    EXP_ENV[ANDROID_ROOT]="$ANDROID_ROOT"
    EXP_ENV[ANDROID_DATA]="$ANDROID_DATA"

    ENV_BUILT=""

    for key in "${!EXP_ENV[@]}"; do
        ENV_BUILT="$ENV_BUILT $key=${EXP_ENV[$key]} "
    done

    # Following line added to fix the problem of pwd starting with (unreachable)
    ENV_BUILT+=" PWD=$(echo $PWD | cut -c 14-)"

    [[ -z "$_TSU_DEBUG" ]] || set -x

}

root_shell_helper() {
    log_DEBUG "${FUNCNAME[0]}"

    if [[ -n "$SWITCH_USER" ]]; then
        ROOT_SHELL="/system/bin/sh"
        return
    fi
    # Selection of shell, checked in this order.
    # user defined shell -> user's login shell
    # bash ->  sh
    log_DEBUG "ALT_SHELL"
    if [[ "$ALT_SHELL" == "system" ]]; then
        ROOT_SHELL="/system/bin/sh"
    elif [[ -n "$ALT_SHELL" ]]; then
        # Expand //usr/ to /usr/
        ALT_SHELL_EXPANDED="${ALT_SHELL/\/usr\//$TERMUX_PREFIX\/}"
        ROOT_SHELL="$ALT_SHELL_EXPANDED"
    elif [[ -x "$HOME/.termux/shell" ]]; then
        ROOT_SHELL="$(readlink -f -- "$HOME/.termux/shell")"
    elif [[ -x "$PREFIX/bin/bash" ]]; then
        ROOT_SHELL="$PREFIX/bin/bash"
    else
        ROOT_SHELL="$PREFIX/bin/sh"
    fi
}

log_DEBUG _TSU_AS_SUDO
if [[ "$_TSU_AS_SUDO" == true ]]; then
    if [[ -z "$1" ]]; then
        show_usage_sudo
        exit 1
    fi
    CMD_ARGS=$(printf '%q ' "$@")
    log_DEBUG ENVIRONMENT_PRESERVE
    [[ -n "$ENVIRONMENT_PRESERVE" ]] || env_path_helper

    STARTUP_SCRIPT="$CMD_ARGS"
else

    root_shell_helper
    env_path_helper

    STARTUP_SCRIPT="$ROOT_SHELL"
fi

SU_BINARY_SEARCH=("/system/xbin/su" "/system/bin/su")

# On some systems with other root methods `/sbin` is inacessible.
if [[ -x "/sbin" ]]; then
    SU_BINARY_SEARCH+=("/sbin/su" "/sbin/bin/su")
else
    SKIP_SBIN=1
fi

# Unset all Termux LD_* enviroment variables to prevent symbols missing , dlopen()ing of wrong libs.
unset LD_LIBRARY_PATH
unset LD_PRELOAD

### ----- MAGISKSU
# shellcheck disable=SC2117
if [[ -z "$SKIP_SBIN" && "$(/sbin/su -v)" == *"MAGISKSU" ]]; then
    # We are on Magisk su
    su_args=("/sbin/su")
    [[ -z "$SWITCH_USER" ]] || su_args+=("$SWITCH_USER")

    su_cmdline="PATH=$BB_MAGISK "
    if [[ -n "$ENVIRONMENT_PRESERVE" ]]; then
        su_args+=("--preserve-environment")
        su_cmdline+="$STARTUP_SCRIPT"
    else
        su_cmdline+="env -i $ENV_BUILT $STARTUP_SCRIPT"
    fi
    su_args+=("-c")
    exec "${su_args[@]}" "${su_cmdline}"
    ##### ----- END MAGISKSU
else
    ##### ----- OTHERS SU
    for SU_BINARY in "${SU_BINARY_SEARCH[@]}"; do
        if [[ -x "$SU_BINARY" ]]; then

            su_args=("$SU_BINARY")
            [[ -z "$SWITCH_USER" ]] || su_args+=("$SWITCH_USER")

            # Let's use the system toybox/toolbox for now
            su_cmdline="PATH=$ANDROID_SYSPATHS "
            if [[ -n "$ENVIRONMENT_PRESERVE" ]]; then
                su_args+=("--preserve-environment")
                su_cmdline+="$STARTUP_SCRIPT "
            else
                su_cmdline+="env -i $ENV_BUILT $STARTUP_SCRIPT"
            fi
            su_args+=("-c")
            exec "${su_args[@]}" "${su_cmdline}"
        fi
    done
fi
##### ----- END OTHERS SU

# We didnt find any su binary
set +x
printf -- "No superuser binary detected. \n"
printf -- "Are you rooted? \n"

if [[ -n "$_TSU_DEBUG" ]]; then
    echo "-------------------------------------"
    echo "tsu ran in debug mode."
    echo "Full log can be found in tsu_debug.log"
    echo "Report any issues to: https://github.com/cswl/tsu "
fi

exit 1

This worked for regular use of tsu. But when I use sudo proot I'm still having the (unreachable) problem. Even if I don't use relative paths I still have when I exit the proot session I get an error that it can't load the current working directory since it can't find it. this is because the path is starting with (unreachable).


text:
How to push a file to internal storage?
I want to do this step to root my phone:
Copy it to the internal storage of your device
So the command is:
adb push <local file> <remote location>

The "local file" is "boot.img"
What is name for my phone's "internal storage"?

/sdcard/ or /storage/emulated/0/

A boot.img is mostly installed via fastbootand therefore doe snot have to be pushed via adb to the device. You should edit your question and add more details like the manufacturer and model name of your phone, the Android version your phone runs and the link to the root tutorial you use.

I'm following this tutorial https://forum.xda-developers.com/moto-g7/how-to/moto-g7-twrp-root-t3914112?nocache=1 to root my moto g7 play

that's correct, don't flash it, just push to /sdcard and patch it with Magisk Manager (step 5 is important) 'adb pull /sdcard/Download/magisk_patched.img' will pull the patched boot.img back to PC's platform-tools folder

Thanks I got there, then went into "Recovery Mode" and then get "no command", press power and vol and go to recovery menu. Then reboot and it's still not installed. Will try using TWRP

adb push <the file> /sdcard/

if /sdcard is not available, try
adb push <the file> /storage/emulated/0/


text:
Mi Box 3 startup issue from remote
I tried searching on various forums and couldnt found any similar case reported. I received Android 9 update Mi Box 3 last week. Since then i am facing a major issue of remote getting disconnected after a few hours of mi box's sleep.
I replaced the batteries on remote just to be safe but still, after 3-4 hours of sleep the device dont respond on remote's power button or any other button for that matter press.
Second surprising issue is the TV dont register MIBOX as a HDMI CEC valid device while the Mi Box is asleep.
The above mentioned issues started after I updated Mi Box 3 to android 9 last week

Mine was doing the same thing. I did a factory reset and that seems to have fixed it.


text:
Samsung Galaxy A10 restarts automatically
I have had my mobile for almost a year, but recently it started to restart unexpectedly. This happens most often while charging, but exceptionally it happens at other times. It only occurs to me that it causes unstable applications, but I can only guess which causes it, unless the problem is somewhere else.
Please help.
Thank you.
PS. Samsung Galaxy A10 - Android 10 (ONE UI 2.0)

Does the phone is getting hot when such reboot occur?

@Robert No, I didn't notice.

Unfortunately, I can't advise anyone. Resetting didn't help either, so the problem is on the hardware side (as I found out, probably the battery) and only complaints will solve it. Fortunately, my cell phone is still under warranty.


text:
Updating Android make it to user more data transfer, now there is no way to block data by default
I have accidentally updated my Android One phone to v10 of 2020-05-01 and now each time I switch-on the phone data transfer is also on.
How can I disable data transfer by default so I need to manually enable it whenever I want.
Previously once I switched-off the data, by sliding a drawer from top of the screen and tapping data transfer triangle, it was off until I really made it on. It also stayed up when I rebooted the system.

How to you enable/disable mobile data? Have you also disabled VoiceOverLTE (VoLTE) because if VoLTE is enabled your device may still open a data connection even if you disabled it. This is required as LTE has only data, hence voice calls have to be done via data, or otherwise your phone has to go down to 3G/2G for voice calls.

Operators around here make a distinction between voice calls and data connections. Honestly I never came across VoLTE term, but even if is in use it is not charged against may data quota. Only "true" data transfer lowers the remaining limit. Not sure though how the operator differentiates the two.

Theoretically you are correct VoLTE data calls are not charged, however 99% of all mobile network operators don't manage to correctly distinguish between VoLTE traffic and regular traffic. This always makes problems when you are abroad and you want to disable mobile data because of high roaming costs. Looks like the customers should complain more often about wrong charged data connections. If the complaint handling costs more and more money they finally start implementing data charging correctly.

I am almost sure that VoLTE is charged correctly against voice limit as the problem appeared recently just after updating Android. Before not even a byte was charged as long as I did not enable the transfer on the sliding drawer. Now after each reboot sometimes even a megabyte gets charged which outside of EU starts a new costly package and even within EU makes me start counting the period when extra charges take place. This is hell annoying enough to consider to switch to another OS.

It is not the complete call data that is charged incorrectly, typically some signalling data and other smaller data are charged wrong. It may by only up to a few hundred KB per day but depending on your data plan (especially on roaming) this still can cost you some money.

In this case how would you explain that just a week ago data transfer stayed off and now gets on each time I restart the phone?

I would assume that the old version did not had VoLTE support or the new version simply has a bug may be introduced by the device manufacturer modifications.


text:
Can I run AOSPExtended Android 10 ROM in a 16gb storage phone?
I have a Micromax canvas Q417 modeled phone whose last officially received system update was of Android 5.1 Lollipop and they too about 5 years ago. So I decided to install a custom ROM. After searching and researching, I found AOSPExtended Android 10 ROM perfect for me (here is the link). It is an old Motorola model ROM but the device specifications for this model and my model are the same except for one thing ie this phone comes in two variants, one with 16gb internal storage and another with 32. I have 16gb internal storage and after rains some parts on Reddit and Quora, I found that Android 10 updates take a lot of space probably miss than 16gb. The ROM download size in this link is about 400mb which so will I be able to install it on my phone and have some space left for other things (at least 5gb of available space should work)? If not then which ones among Pie and Oreo will be suitable for my phone and I didn't want to get lower than Android 8. I know that this question may be down voted or even closed but before doing so please answer my question. Thanks for reading.

A smartphone is not like a PC. You don't need similar hardware, you need a custom ROM built for exactly your device model only. A single different component inside your phone compared to the phone the ROM was built for can make the ROM unusable to you. Therefore you need a custom ROM built for your device, otherwise you can brick or destroy your phone.

Actually there is no custom ROM good my phone model. So I am using Motorola ROM.

The MotoX victara has an AMOLED, yours have an LCD hence the display controller will be with a chance next to 100% different. Thus this ROM will most likely not work. You need a ROM with at least the major hardware (CPU, display, storage, Wifi chip, mobile radio, ...) components exactly identical to your device. Otherwise you don't even have to try it.

So which ROM should I use?

If you don't find a ROM for your device then you have to stay with your current ROM or try to develop an ROM on your own if you have plenty of time and some development skills.


text:
What does a "crossed circle" system notification icon mean on Amazon Kindle Fire HD 10?
I recently spotted a "crossed circle" system notification icon on my Fire HD 10.

What does it mean?

It means that you have not turned on the "hands free" feature of the Alexa app. Instead of just speaking to Alexa, you will first have to long press the home button to make her listen to you.

Circle with slash means you tapped the volume button and then selected "None". It means you are in silent mode. In some devices it's also when there's no cellular network.

It means hands-free Alexa.
You can change that on and off at the notification bar.

Welcome on the Android SE! And what is a "hands-free Alexa"? Could you please explain?

When this sign (circle with line through)is on it means that Alexa does not work, go to settings and activate Alexa and it disappears.
Note :- this is on a Kindle Fire Tablet.


text:
Don't use Google and APKPure misbehaves - how do I update apps?
I have RedMi 3s (Android 6.0.1) phone. Also, I don't like Google, don't use their email and don't work with a Google account - so I don't use the Google Play Store.
For a few years, I have been using the APK Pure app to update all of my other apps. But - a while ago (perhaps early this year?) - somehow, it kind of stopped working. That is, it recognizes the apps that need updates, but never manages to actually get the updates going.
So what I'm looking for is another method/venue/app for routinely updating my apps. Preferably - one in which I don't have to actually press "INSTALL" for every single update, but I'm willing to live with that.
Alternatively, if I could someone overcome my APK Pure issue, that would be good too.
Any ideas?
Note: Manually updating individual apps works fine.

Maybe switch to APKMirror or one of the other alternatives? Not sure whether a non-system app can do automated installs/updates, though.

@Izzy: Isn't APKMirror based on you manually searching and navigating their site, rather than itself finding the relevant updates?

Have you tried to reinstall the apkpure app, or cleared at least it's data? have you tried to manually update an app? May be you don't get any updates because there are no longer updates for your apps on Android 6? Have you checked the Android logcat for errors?

@einpoklum I've never tried it (I'm using F-Droid and nothing else), so I cannot tell. Hence just the comment as possible pointer.

@Robert: I've just reinstalled APKPure - no effect. It still won't update apps, even when I press their "Update" button. Also - manual updates from APKs I downloaded myself - work. Also - there are updates for my apps.

You could try Aurora Store from F-Droid. It uses anonymous accounts to access the Play Store itself.

@Grimoire: I was going to try some of the alternatives Izzy linked to (already tried SkyDroid, which doesn't do what I need), but this sounds promising.

@Grimoire: Ok, I installed Aurora Store, and it seems like it should do what I wanted - but it just fails silently. You press "Update selected" or "Update All", it pauses for a half-second, then concludes with nothing happening. I've filed a bug about this.

I see the same issue on an A70. I can't believe that updating apps from apkpure simply doesn't work: can anyone confirm that when they start apkpure and see the list of apps with pending updates, they can tap "update all" or "update" (for a specific app) and that it works?

Just made a bit of progress: managed to update individual apps after clearing app data (clearing cache didn't help). Still haven't managed to get "update all" to work, though. Interestingly, the button says "pause all" instead of "update all" even before I've triggered an update.

Eventually, Aurora Store worked for me. It's an app which access Google Play without requiring the user to have an account there or to provide his credentials.
On the other hand, APK Pure stopped misbehaving on mi MI 9 SE. Not sure if the problem was on my end or with the APK Pure app itself.


text:
Flashing Nexus 7 factory image fails on writing userdata
So I've been attempting to factory restore my good ol' Nexus 7 (2013) LTE (deb) all day, and I can't get past this one error that has me stuck. I'm using the stock image from Google, and where I'm stuck at is when running the flash-all.sh from the command line, everything looks great up until "Writing 'userdata'":
...
Erasing 'userdata'                                 OKAY [ 19.272s]
mke2fs 1.45.4 (23-Sep-2019)
Creating filesystem with 6997491 4k blocks and 1749664 inodes
Filesystem UUID: ee2e310b-02d9-4271-b8ff-75d231a0a955
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'userdata' (180 KB)                        OKAY [  0.011s]
Writing 'userdata'                                 FAILED (remote: 'Bogus size sparse and chunk header')
fastboot: error: Command failed

I found a similar question posted related to a Nexus 5 having the same issue (Flashing Nexus 5 factory image fails on writing userdata), and the same general workaround seems to work up to getting to the android boot screen, except the device is stuck in a bootloop. One comment mentioned needing to resize the partition prior to the first boot. So far, I haven't been able to find how exactly to do that. Anybody got an idea?
Appreciate any help!

why don't you just skip userdata, no need to flash it's empty anyway

I tried that, except if I skip, and then boot up normally, the OS gets stuck in a boot loop. From what I've read, I need to change the partition size, otherwise it will never successfully write to it when it first boots up.

you can format from 'fastboot format:ext4 userdata' (use latest platform-tools) or from TWRP 'mke2fs -t ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata'

This can be resolved by manually performing the actions specified in the flash-all.bat file. I had the exact same problem and this stack exchange page got me sorted.
Flashing Nexus 5 factory image fails on writing userdata


text:
Why do I see a screenshot of something that I was doing in the background on my smartphone?
When I take a screenshot it does not appear on it, it is like seeing through a drawn glass, It can only be seen from the outside, it's hard to explain.
Is it some kind of malware? The screenshot looks much better when there is a solid color and it can be seen perfectly, it is as if the screenshot were on my screen.  I have already rebooted my device and it still continues.

The Huawei devices have a number of gestures to use to make screenshots general or highly specific. You will want to look at settings intrinsic to them, since you can capture menus and tabs on top of screens, so, multi-layered can be captured but not as you intended. Read your user manual.

Do you mean that you see a little impression of the previous screen you were on even after you switch the app right? For example: You are using youtube and the you press home key and go to home screen but you can still see the faded view of the youtube app on homescreen.
First of all that's totally normal! I have a leeco le2 and experience the same thing everyday.. It's just because of the limitation of your screen(hardware). It's not any malware.. and definitely nothing to worry about.


text:
Is there a way to connect an external microphone to android, while using internal speakers and charging the phone?
I want to improve the microphone sound quality while using internal speakers. I also want to be able to charge phone while on the call. Is there a way to do it?
So far I only saw solutions that would require headphones to also be connected to the device.


text:
Samsung Andriod Mobile does not detect 5GHz Wifi from Verizon Router
I have Verizon Fios Router that has following network

Fios-95QSI-5G
Fios-95QSI

My laptop detects and connect to 5GHz Wifi, but not my Android Samsung. How do I fix this?
Below are the specifics

Samsung Galaxy J3 Prime (SM-J327T1)
Android Version 7

I have a family member that also owns this phone, even though T-Mobile advertised it as being 5.8Ghz capable... It isn't! Unless it's just firmware locked, but that seems unlikely.

I have updated the questions as is is clear that the question is on the 5GHz Wifi system not 5G.

in settings of Fios Router enable 2.4GHz Wifi for more compatibility

I am sorry to tell you..
Your phone is not 5g.
Your phone was created in 2017 before there were any 5g carriers or even 5g phones.
Network technology for this phone is limited to 2G, 3G, and 4G but don't fret! this is still a really nice phone and supports wifi!
Why don't you just use Wifi?  It's fast.. faster on most ways.. slower in a few others.

Not your downvoter, but I think he is talking about the 5.8Ghz wifi band. Indicated by him mentioning his dual band verizon router.

OMG @Tim_Stewart .. I think you nailed it! :) I don't know why I didn't even think of that.  I appreciate your "setting me straight".. I am going to leave this post until it is all settled.. delete it if it is costing me points. :-) THANKS!

Lol so it was a 5th gen cellular question then?

Yes, unfortunately you will have to purchase a new phone to connect to the 5Ghz band.
Your phone only supports 802.11-b/g/n over 2.4 GHz.
This information is from the Samsung website, under the show all specs tab for the phone.
https://www.samsung.com/us/mobile/phones/all-other-phones/galaxy-j3-prime--t-mobile--sm-j327tzkatmb/

Please know though.. 5ghz is not "BETTER".. only different.  Performance with this band varies on usage.  5ghz will not have interference from many devices to include microwaves.. but in my house 2.4ghz simply goes through more stuff like walls and carries a little farther.  Your mileage may vary.

@Señor CMasMas, get some beamforming action going, it has much better object penetration.

According to Phoneandmore this phone has 802.11 a/b/g/n (2.4Ghz, 5Ghz). Where did you got the information from that it is a 2.4GHz only?

@Robert. We own one, its lies. Look at other sources, you will find conflicting Information


text:
Deleted Contacts on WhatsApp but Chat not deleted
Someone deleted me on their contacts because I can't see their profile photo anymore. I just want to know if ever our chat box is not deleted on his/her WhatsApp app, Will he/she see changes on my profile photo or status after deleting me on his/her contacts if he kept the chat box?

Not being able to see someone's profile picture does not mean they deleted you from their contacts. It's possible they simply removed the picture and no one can see it including you.
If the person still has the chat saved, then yes they will see your profile picture.
If you don't want someone to see your profile picture you can delete their contact, and in WhatsApp settings select that only your contacts can see your picture. Alternatively you can block that person's number and they won't be able to check your profile picture

So even if for example he/she deleted me on his or her contact list, but still have the chat logs on his or her chat section, he or she will see if I changed my profile photo or if I am online or not?

That's correct. They can open the chat with you and see your new profile and last seen

Thank you for your help!


text:
How Auto start apps are able to start after reboot?
Many OEMs have restrictions which do not allow an application to run after boot complete. For this, we need to give autostart permission to that app. Then how does apps like Autostart, startup manager are able to run right after boot without having any permissions? Autostart is developed by a small team and is not as popular as whatsapp, facebook and others that it can be whitelisted by the OEM. Any inputs will be helpful.
Edit1: I am aware of broadcast receiver but even after using them user needs to manually set autostart permission for my application to be able to run the application in background after BOOT_COMPLETE. However this is not the case for autostart apps.
Thanks.

When talking about a specific app please always include a link to the PlayStore web page of that app, because there are a lot of "Autostart" apps available and it is not quite clear which one you are referring to. There are different events that come frequently (e.g. BatteryLevel*) so that you don't need BOOT_COMPLETE if you want to start something some short time after boot.

How do you know Autostart app runs right after boot?

@Robert https://play.google.com/store/apps/details?id=com.autostart&hl=en&gl=US this is the link of one such app. I read on Google's developer page link that apps can now listen to only a few implicit intents.


text:
Using Here Documents in Termux
I'm trying to run commands in a script that needs to be run as superuser. I tried doing this with here documents but wasn't successful. ( I used to be able to use it with tsu in Termux).
Does anyone know a reason why it shouldn't work or a way to get it to work.
Here is the code that used to work but doesn't work anymore.
#!/data/data/com.termux/files/usr/bin/bash
... begining of script Just some regular commands

sudo touch s
tsu << EOF
    echo "Test" > s
    exit
EOF

echo after here doc

The results currently from this script is
echo "Test" > s
exit
after here doc

The 2 first lines should not appear at all and they should be in the file s. But the file s is empty.
I have also tried the following code but with the same results.
sudo touch s
sudo -s << EOF
    echo "Test" > s
    exit
EOF

echo after here doc

I have also googled this and haven't found anything to help me. All suggestion work in regular linux but not in Termux. Here is one example of what I have tried.
Any suggestion or help will be appreciated.

I explained the behavior here: https://github.com/topjohnwu/Magisk/issues/1463#issuecomment-506874581

I'm not sure I fully understand what you wrote there. Is there anyway I can accomplish what I'm trying to do? I would like to be able to run some commands in a script as root but not with sudo. The reason is that I'm having an issue with the PWD having (unreachable) prefixed to the path. See here from @isrgish. For tsu I have found a solution but when I try to run with sudo I still get the (unreachable) prefix.

remove all formatting whitespaces

@alecxs That doesn't seem to help.

okay forget it, i just remembered how i fixed some issues with mksh here documents. after reading github it's clear that termux su does not support that usage (like expected from linux su) you must run su -c  instead (like for magisk su)


text:
How to properly propagate unmounting of USB OTG storage to all mount namespaces (rooted device)
This is a (spiritual) follow-up to the previously answered question How to bind mount a folder inside /sdcard with correct permissions?.
Device: Samsung Galaxy Tab S2 8.0
ROM: LineageOS 16.0 (Android 9) with Magisk
Other things to note: SELinux set to permissive
This in-car tablet with OTG storage via permanently-mounted USB hub. When the car is powered on, the tablet, USB hub, and any peripherals receive power, the tablet switches into OTG mode, and all USB devices are enumerated correctly (confirmed via lsusb in a root shell).
If I reboot the tablet while it is powered, then use the instructions in the above-linked answer, everything seems to work as intended. In summary, after booting, I can mount my USB device to its mount-point as follows
$ su -mm (switch to a global namespace root shell)
# mkdir /data/media/0/usb1 (create the mount point)
# mount -t exfat -o <options string> /dev/block/sdb1 /mnt/runtime/write/emulated/0/usb1

which results in the following mounts:
# mount
...
/dev/block/sdb1 on /mnt/runtime/default/emulated/0/usb1 <options>
/dev/block/sdb1 on /mnt/runtime/read/emulated/0/usb1 <options>
/dev/block/sdb1 on /mnt/runtime/write/emulated/0/usb1 <options>
/dev/block/sdb1 on /storage/emulated/0/usb1 <options>
/dev/block/sdb1 on /storage/emulated/0/usb1 <options>

Just to be clear, the final mount to /storage/emulated/0/usb1 does in fact appear twice. In any case, at this point, everything work as expected as long as the tablet remains powered; all apps can access the data on the USB OTG storage with no issue.
When powered-off and back on, the OTG storage needs to be unmounted and then remounted, since the device gets re-probed (e.g. the USB-OTG storage partition /dev/block/sdb1 will disappear on loss of power, and then when power is applied, it will appear again as /dev/block/sdc1). I've narrowed the issue down to the fact that running umount in a global namespace root shell doesn't seem to propagate to all other mount namespaces. In a root shell, everything works just fine.
umount called on these mounts returns no errors and running mount in a root shell confirms that the drive is no longer mounted. However, even after this, it seems that all of the non-global mount namespaces still retain the mount. There are two things that indicate this:

It's impossible to delete the mount point directory, in any shell (including a root shell):

$ su -mm
# rmdir /data/media/0/usb1
rm: cannot remove /data/media/0/usb1 : Device or resource busy

I've tried running lsof in a root shell, but don't see anything holding a handle open to the mount point directory. I haven't built or downloaded an nsenter binary to switch into the mount namespace of different apps to check, but I suspect the mount is still held open in other namespaces. I say this because...

Apps can still access the USB-OTG storage, even after it's been unmounted in a root shell. The access remains until the tablet loses power, at which point the mount point directory appears empty to all applications. Upon power restoration, if I mount the new partition in /dev/block to the same mount point as before, root shells have no issue accessing the data, however all other apps just see it as an empty directory.

I've tried using a bind mount as follows...
# mount -t exfat /dev/block/sdb1 /mnt/media_rw/usb1
# mount -t sdcardfs /mnt/media_rw/usb1 /mnt/runtime/write/emulated/0/usb1

...but this just pushes the problem to the "base" mount point. On power loss and restore, remounting the exFAT mount and then the bind sdcardfs mount to /sdcard just results in an "empty" folder for apps, but the root shell works properly (both in the /mnt/media_rw_usb1 directory as well as the mount point in /sdcard/usb1). In this case, it becomes impossible to delete the /mnt/media_rw_usb1 directory with the same Device or resource busy error.
I'm thoroughly stumped on how to handle this. I've gotten by in the past by using a Tasker script to use nsenter to enter into the mount namespace of the apps I need to access the drive, and run loops to unmount the directory in question until an error returns, at which point I run a separate task to mount the OTG storage again. I'd like to avoid this approach, though, since it's really kludgy and it's actually quite slow.
I think I've given enough information. Thanks in advance.

while grep -qw '/[^ ]*/usb1' /proc/mounts; do umount -l $(grep -owm1 '/[^ ]*/usb1' /proc/mounts); done; should unmount all old entries for /data/media/0/usb1 in a loop

@alecxs I'm not sure that will be of any use... the drive is actually unmounted in the shell. The issue is that the unmount is not propagating to all other app namespaces.

ah wait, you didn't meant the 5 lines in your question.. you can set namespaces to global in magisk settings

@alecxs That doesn't make any difference. Apps still run in their own mount namespaces on Android 6+

you must reboot to apply that settings

No... the global namespace setting in Magisk only applies to shells, not to running apps.

Let us continue this discussion in chat.

@IrfanLatif you may be the only person that understands what I'm asking

Mount propagation is complicated enough (but not impossible) to understand, and even more complicated to explain, at least in comments or an answer. Most probably you are dealing with a slave or private mount. So try with mount --make-rslave first. For how to use it, and why to use it, please see mount manpage.

Also read about the related concepts in mount, mount_namespaces and sharedsubtree. Keep nsenter and unshare binaries with you throughout your learning experience. I hope you find your answer and will be able to explain the concepts to others :)

@IrfanLatif I did a little more digging today and it seems the issue only appears as soon as I use the different runtime mounting views (i.e. mount anything to the /mnt/runtime/{default,read,write}/.... If I just mount to e.g. /mnt/media_rw/usb1, I can mount/unmount at will with no issues. Because of this, I suspect I'm running into an Android-specific issue where the kernel is holding a handle open to my mounted device. I will try your advice re: the subtree operations, however. Thanks!


text:
How to debug when the USB is set to "CHARGING ONLY" mode

Device: Nokia 2.2
Carrier: Airtel
Android version: 10
Root status: Never rooted

I've set a PIN lock to my phone and forgot the password.. luckily I've turned on the USB debugging mode earlier but I didn't set the USB behaviour to PTP or MTP, It's still in the charging only mode. The phone's not allowing to change the USB behaviour to PTP unless I unlock my phone which I literally cannot do.
Is there anyway to change the USB behaviour to PTP, so that I can use ADB to recover call lists and app data from my phone?

If you would have set the USB mode to MTP before has no effect in your case as MTP will only be active if the device has been unlocked at least once. Before your files can't be accessed because they are encrypted using File Based Encryption (FBE).

Do you think I can use adb for data recovery no matter what mode of USB behaviour it is..???

If your phone is really encrypted (which should be the case by default for Android 10) then it does not matter if you could access the phone, the user data files remain encrypted after reboot unless you have entered the correct PIN or somehow manages to unlock the phone (e.g. via Google remote find my device?).

Tell me which other ways can I use to unlock my device.. I'm trying the Google remote find my device now..

I just tried the Google's find my device.. but the tool aims to wipe all my data.. could you tell me any other way around please.

The only way left I know is to try to enter the PIN multiple times. On some device then an option occurs to unlock the device using the Google account password instead. Make sure the device is online while you do this. But this is the last way I know.

Okay #Robert, thnx for your time.


text:
Is a rooted phone safe for phone banking?
My phone (Android 7) has been rooted for years. That means it hasn't updated in years. I'm wondering if it's safe to do financial transactions on it...like download my banks app and a bitcoin e-wallet.
If not, then how can I make it safe while maintaining root?

I guess the question can be shorted to "is phone banking safe". The answer would be "No" – especially not on a device without the latest security patches. What is more, banking apps would not work on it – funnily not because of the missing security fixes, which banking institutions seem to find irrelevant, but because it's rooted (which they find more dangerous, though exactly by means of root one can increase security)…

"...though exactly by means of root one can increase security" How so? And would it supercede the security from the latest patches?

Rooting itself does not increase security but if you unlock your device and install a customROM (which banking apps also consider as "rooted") with latest security patches this is more secure that the stock firmware that have not seen an update for years.

Any suggestions on such Tom's. Can I use Google play on them?

The means Robert pointed out are part of it (Custom ROMs with more recent security patches). Others include e.g. proper firewalls like AFWall+ (non-root firewalls utilize VPN so you cannot use a VPN at the same time as there can be only one active at a time), blocking specific tracking modules in apps (or misleading them so tracking becomes nil), and more. This is a bit more complex, though, and not answered in a comment or even a "short answer" here as it rather needs a long tutorial to cover just half of it. And yes, if you insist you can install GApps. Or their alternative, microG.

stock roms are really unsafe with root. Therefore it's always recommended to flash a custom rom which has good security.

@Aayush any suggestions?

@Izzy I'm very interested to learn. How do you block tracking modules of an app? What are the other methods? Are these methods to be implemented on Android, or are you talking about a custom ROM? I'll start with downloading AFWall+. I want to be as secure as possible, so eager to know the other steps I should take.

@Kaftee may I suggest making that a separate question ("How do you block tracking modules of an app?")? A Q&A site works best with specific questions (rather than broad ones – so "…and what are other methods" should come last referencing the specific ones as "What else can I do to make my device more secure"). Btw, there are security blogs dealing exactly with that. If you can read German, I'd recommend you Mike Kuketz' Take back control series.

Stock roms are really unsafe with root because they are not made and optimized to be used with root access. Therefore it's always recommended to flash a secure custom rom. You can try lineage OS.. regarded as very secure.
I believe that custom open source Android ROMs like Lineage OS are secure just because of the fact that their full source code is open source.
And the professionals and hobbyists out there definitely would check and ensure that it has no secret bugs.
The developers would also not like to damage their reputations by open sourcing a software with spywares that everyone including the topmost brains in the world can scrutinize.


text:
I have my android connected to my pc via a wifi hot spot. How do I enable usb debbuging through the adb ? What is the commands?
What are the commands in ADB to enable USB debugging?
I have my android connected to my pc via a wifi hot spot. How do I enable usb debbuging through the adb ? What is the commands?

https://android.stackexchange.com/q/197914 https://play.google.com/store/apps/details?id=za.co.henry.hsu.adbwirelessbyhenry

Enable developer options and USB debugging of your phone:

Open Settings, then select About.
Tap on Build number seven times.
Go back, and select Developer options.
Scroll down, and check the Android debugging or USB debugging entry under Debugging.
Plug your phone into your computer.

For debugging Android studio via WiFi install Wifi Adb Ultimate plugin
https://plugins.jetbrains.com/plugin/9207-wifi-adb-ultimate

consider improvement include adb tcpip 5555;
adb connect  for a complete answer

If you want to do this manually, it can be like usethe4ce answered in https://stackoverflow.com/questions/4893953/run-install-debug-android-applications-over-wi-fi


text:
Restart unresponsive phone without power button
My huawei y9 prime became unresponsive and i cant connect it to my pc to reboot it with adb since i cannot press "use usb to transfer files" so adb doesnt see my device and as title says, power button is broken.
Can i force connect it using SN?
edit: forgot to say that phone was unlocked when it froze

update : only solutions i found is to either try to use a microusb mouse or to wait till phone is dead, download fastboot plug phone into pc, boot into fastboot mode (on huawei long press down volume key) till you get a screen, then enter command fastboot devices , if you see a number then use fastboot reboot


text:
ADB content query - Browser
I am having some slight issue using the query
adb shell content query --uri content://browser/bookmarks" & "adb shell content query --uri content://browser/searches
I have played around with the browser and added some bookmarks, but I am receiving nothing in return. Does anyone have encounter any issue using the queries?

AFAIK, this browser content provider is not always utilized by all browsers, maybe AOSP Browser though. What browser are you using?


text:
Android 8 encrypt phone vs SD card
I have Android 8.1 on my phone.
It states under Settings->Security->Encryption&cred = Phone Encrypted.
I am using microSD on my phone. This microSD is not encrypted as I am able to remove it and read it.
Does Android 8.1 have capability to encrypt microSD card?
If so, where would I find this option? Do all phone manufactures implement this option?

capability to encrypt means the MicroSD Card will not be longer removeable, and data is not recoverable for damaged MicroSD Cards (because encryption key is not accessable/shareable) [adoptable-storage]


text:
Media players are showing duplicate files after moving them
So today I moved the entire 'Download'(which contains music and asmr I downloaded from YT with those mp3 sites) file from my phone storage, to my SD card. Then I went to my music player app and it showed the music and asmr titles double. I panicked and went to move back that file to my phone storage.
After I did it, I went to check my music player, and it showed me 3 times! I uninstalled the app and installed it back, but it still showed me double. I installed another music app, and it showed me just one time. I went back to the previous one and tried to play both titles to see if it works. The first title worked, but the second one didn't.
I checked the details of the songs, the first one showed me that it's from  /storage/emulated/0/Download/(the title of the song).mp3 and the second one showed me /storage/548F-6D80/Download/(the title of the song).mp3. So I downloaded another music app, and it showed me double there too. I tried the same thing, it was the same, first worked, second didn't. So I tried to delete the second one(the one that didn't work) and it was deleted, but the first title remained.
I went to my first music player and it didn't show that music title twice again! So I did the same with the other ones, delete the one that doesn't work, and it didn't showed me double again! Right now I tried to move only the music to my SD card, to see if it would show me double again, and it didn't! Does anyone know what might have been the cause? I also searched the music titles(before I found the method to delete them) on my SD card, and it showed me the file with 0 items.
Maybe it showed me double because it saw only the file with 0 items in it?

The music players get their information from the central Android Media Storage database (part of the Android OS), therefore both players were showing the same information.
When moving a large number of files around you have to keep calm and wait until the database has updated/re-scanned all entries. This happend automatically in background and can take some time depending on the number of files moved.
If after a few hours the situation is still not correct reboot the device, that should trigger a full re-scan of all media files.

you mean restart the phone? because when i accidentally rebooted my old phone, everything was deleted and i had to start from the start. Fortunately i was able to get everything back.


text:
Stop news from trying to put me in a political echo chamber?
I like to tell google to "play the news" for me during long road trips.  However, I noticed it's giving me news which has a clear lean towards one side of the political spectrum.  While I admittedly do lean slightly towards that side I want to hear unbiased news which makes strong arguments for both sides' political views so I can make well informed decisions, not sit in an an echo chamber that says one side is always right and I shouldn't bother considering the other side's views.
I've manually blocked the 3 major networks that have a clear political lean, and I'm trying to block other news providers when I hear reporting with a clear bias, but since I'm usually in the middle of a long drive when it happens I can't block the provider right then, and by the time I've stopped and could block someone I usually no longer know who it was I wanted to block.
Is there some easier way to keep google from trying to give me politically biased news other then trying to manually block every single biased news provider, which I suspect would take forever?  Failing that is there at least a way I can block the current news provider, if I've decided their reporting is too biased, via voice commands while driving?

you have funny expectations to google - the whole design is to keep you in a bubble

@alecks Sadly it is, and I understand why google would do it from a business perspective, but I hate it anyways.  American politics are going down hill because everyone is in their own bubble that tells them their side is perfect and the other side is evil people trying to destroy America, the net result is cooperation across parties becomes even worse then it already was and nothing gets done.  Of course Google is just one of dozens of tech companies helping people put themselves in a bubble so it's probably not fair to blame just them for it.

it's 2020. it's not just america. it's Aldous Huxley Brave New World, or Marc-Uwe Kling QualityLand. blame the consumers

By Google, do you mean Google app? Because otherwise, the question would become off-topic to us.

question is about voice-control - blocking news provider via voice commands