text:
Is it safe to turn off kernel panic in Android?
So I'm using a custom kernel that overclocked my CPU and GPU. I turned down the frequency to stock but the big cpu freq can't be set(restore itself to default after some time), causing my phone to heat up if I'm having heavy workload/game. When my phone is really hot, kernel panic comes in and reboot my phone, I hate it when it happen while I'm gaming.
I looked up why it reboot and the cause is kernel panic. So I searched how to disable kernel panic and so I did.
My phone doesn't reboot anymore. But I'm thinking is it okay to disable it? I can't use another kernel cause it the only one kernel that support custom rom and having hotplug (really helpful at saving battery and less cpu heat). And I don't know how to recompile a kernel.
My tweaks.sh
sysctl -w kernel.panic=0
sysctl -w kernel.panic_on_oops=0
sysctl -w kernel.softlockup_panic=0

Forcing operating system to continue execution when it thinks it should abort is never safe. In extreme cases this may damage the hardware, as you pointed out that panic occurs due to overheating. Better avoid. Even better is to never let the temperature raise above safe threshold. Kernel documentation: https://www.kernel.org/doc/Documentation/sysctl/kernel.txt


text:
How to resolve an encryption issue?
I used a lockscreen to encrypt my phone and accidentally messed up the system and TWRP. I've since formatted it and am using it normally, albeit without root this time lol. But, just in case, I made a backup of the data beforehand. Is it possible to decrypt it if I remember the lockscreen? I can't get encryption keys from the phone because I've already formatted it to a new system, but can I get them from another software that can read the files? I read about it online, and apparently there are a bunch of strange commands you need to type into the system, and I'm not too familiar with this because I don't want to mess anything up, and it's really quite complicated stuff to understand. What I gathered from this was that you would have to format the phone again in order to recover the filesystem data, which I obviously cannot do. So please don't just recommend esoteric guides to me as if I'll magically understand everything; that's why I'm asking in the first place. So, is there a solution here that a layperson can understand? Can I somehow decrypt the image using only a PC, inputting the password through some special tool or something? Or is there some other way?

no way. once encryption key is gone no software in the world can read the files. that's the purpose of encryption. independent using password or not, the key is lost forever

@alecxs But I know the password in any case, so it is possible to maybe recover from the image?

the password is worthless without the encryption key (which is random generated)

@alecxs Is there something I can do if I backed up the whole storage beforehand? Is the encryption key stored there?

@alecxs Well it was on Android 10, a full backup of mmcblk0p66, can this be recovered some way?

depends on encryption type. for FDE it is possible only if crypto footer is present at end of mmcblk0p66. for FBE it is possible only if TEE keystore is not flushed (should not happen on formatting)

@alecxs I believe it's FDE, actually. What can I do, then?

adb push mmcblk0p66 /dev/block/mmcblk0p66 and reboot

@alecxs Is it just going to work like that? Like, no extra step?

there is no extra step. either crypto footer is last 16384 bytes of mmcblk0p66 then it will restored and TWRP is able to decrypt. or crypto footer is located other partition (which you don't have backup) and therefore unable to decrypt

source: Stack Exchange

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

sort: votes


text:
If a phone is encrypted (Android 5.1) but user doesn't use a screen lock, and then does factory reset, is data secure?
If I have a phone running Android 5.1 and it is encrypted, but I don't use a lock/PIN for unlocking and using the phone, does that mean if if I do a factory reset, the data on the phone can still be recovered? I mean, does not using a screen lock mess up this process of encryption+factory reset to wipe data?

If user password/PIN/pattern is not set, data is encrypted with the default_password provided that encryption is enabled. And encrypted data is highly unlikely to be recoverable after factory reset. See my answers to Data deleted after encryption - recoverable? and Can user data be recovered after formatting and flashing stock ROM?.

@IrfanLatif Thank you. If the data was not encrypted, then there's a good chance it can be recovered even after fctry reset, isn't there?

Yes............

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


text:
What files on Android phone allow remote access to the device?
I was wondering what files/apps on Android phone allow remote access to the device.  For instance I had a problem with my phone and had to speak with my provider and they asked permission to access the phone remotley.  Which files/programs allow for that type of access?

Please explain "remote access". There's no universal remote access method available on Android devices except ADB.

Is your phone a generic Android phone or is it branded by your mobile network operator? What device model is your phone and have you notice something while your provider was connected remotely?

Well when this happened it was an LG v10 I believe.  However now I have a Samsung, but all Android devices can be accessed remotely by the carrier correct?

All Android devices aren't sold by carriers. You can buy an Android device which is not bound to any network. And providing remote access to carrier is not a universal phenomenon AFAIK.


text:
Changing country in Android play store is not working, how can I change it?
I have moved from Hong Kong to the UK. I am now physically in the UK connected to the UK network with a UK number and a UK SIM. However, I can't change my Play Store country to the UK.
Initially, in the Play Store app in Android, under country and profiles, there was Hong Kong and it suggested me to change to the UK, listing a few options how I can add a payment method, including adding credit / debit card, Three Pay, etc.
I tapped adding credit / debit card, and it showed a warning saying that I won't be able to use my current balance, and I won't be able to change again for 365 days. I tapped continue, the warning disappeared, and nothing happened.
I then used my computer to signed in Google Pay, created a UK profile, and added a UK debit card to it. Then under country and profiles, both Hong Kong and the UK appeared, with Hong Kong selected.

When I tapped the UK, the same warning appeared, and after I tapped continue, the warning disappeared and nothing happened.

I have two Android phones and they behave the same. I cannot delete my Hong Kong payment profile as I have a Developer account and an AdSense account tied to it. How can I change my Play Store country to the UK?
I have tried deleting storage and cache for my Play Store, and also tried removing the Google account and adding back in, but they didn't help. Initially on the first day I landed the UK a box did appear for me to enter my account details, but I hadn't got my debit card yet at that moment so I didn't continue.

Have you read this https://stackoverflow.com/questions/23469010/migrate-google-merchant-account-to-different-country?

I used a 3rd phone with an older Android version, added my Google account into that phone, and changed using the exact same way in the Play Store.


text:
Is there any way to change screenshot buttons in phones which don't have it in the settings?
I have a Samsung Galaxy Core GT-I8262.
Its power button has some issues and I can't take screenshots using the combination of power and home buttons (I can't take screenshots using the combination of other keys).
It doesn't have the screenshot feature in the notification bar. Also, there isn't anything regarding screenshots in settings.
So is there a way to change the buttons to, for example, home and volume-down keys?

If your device is rooted, yes. If not, maybe an app may help

@beeshyams Thanks. How can I find out if it's rooted or not?

If you are the first owner and didn't root it, then it is not //many root checker apps are available on play store. They can help


text:
How to fix emojis showing gibberish on incoming SMS messages Google Fi service
Yesterday for no apparent reasons I started to see text like this in the body of the text if the sender had both text and emojis:
hi you smell like poo!
~9weuaisigjei3

When I expected to see:
hi you smell like poo!

Now if they send only emojis I would see this:

~06WjjgASrCDcGQg

In any case it's annoying.  How can I fix this?

I got on chat with Google FI Support who walked me through through these fixes.

Goto Settings>Apps>GoogleFi>Storage and tap Clear Data
Open Google FI app and complete setup.
If this recurs make sure to contact support to make sure your network is fixed.


text:
Fastboot gets stuck on waiting for device trying to access Fairphone device on Arch linux
Basically through the fastboot "API"  i cannot access/see the Fairphone 3+, while theandroid debug bridge is working.
Using adb devices lets me see the device and adb reboot bootloader reboots the phone.
My steps so far are:
On Arch linux:

installed:  android-tools; android-udev and android-file-transfer

setup new udev rules for the device following this article.

SUBSYSTEM=="usb",ATTR{idVendor}=="...", MODE="0660", GROUP="adbusers", OWNER="..."
SUBSYSTEM=="usb",ATTR{idVendor}=="...",ATTR{idProduct}=="...",SYMLINK+="android_adb", OWNER="..."
SUBSYSTEM=="usb",ATTR{idVendor}=="...",ATTR{idProduct}=="...",SYMLINK+="android_fastboot", OWNER="..."

tried running fastboot as root

On Fairphone:

enabled Developer mode
Get the IMEI and SerialNumber to unlock the bootloader code
Enable OEM unlocking
when fastbooting (through adb)

i select START and continue with the boot process

** Connection attempts**

Trying both USB 2.0 and USB 3.0 ports on my laptop
(The USB-C cable i am using is an official fp cable)

When now using fastboot oem unlock or any fastboot command i get stuck with <waiting for device>
Maybe fastboot cannot access the USb devices?
What do i have to do to actually be able to use fastboot?

What does sudo fastboot devices show?

"adb reboot bootloader reboots the phone" and "i select START and continue with the boot process" indicates you haven't entered fastboot mode, therefore fastboot commands can't work. enter fastboot mode with Vol Down + Power


text:
Why is it possible to re-lock the bootloader after installing a custom ROM (on some devices)?
As I understand it, if an Android device’s bootloader is locked (fastboot oem lock), it should check the installed system on boot to verify that it’s signed with some (the manufacturer’s?) signing keys. I’ve seen several warnings not to lock the bootloader again after installing a custom ROM like LineageOS because the bootloader would complain about the modified system image and refuse to boot.
However, I have two Android devices on which I have installed custom ROMs:

The Fairphone 3 (FP3), where I installed /e/ OS
The OnePlus One (bacon), where I installed LineageOS 18.1 (with microG)

I’ve subsequently re-locked the bootloader on both devices and, surprisingly, not experienced any issues so far. For the Fairphone 3, I originally assumed that this works because /e/ OS is officially supported by the manufacturer, so I thought that the /e/ OS images are probably signed with some official keys. However, I don’t think there is any such support in the case of the OnePlus One (which is also long out of manufacturer support by now). Another hint is this forum post on the Fairphone forums, which reports the following:

I relocked the bootloader (fastboot flashing lock), it automatically
wiped my user data, and booted successfully! Also, after restoring my
data, I was able to upgrade from last-week’s release to the new
release of today - all without problems.
Now, this does raise a lot of security questions though. I did not
realize that LineageOS, /e/ and even Fairphone where all signing their
builds with google test keys - essentially rendering the OS build
integrity checks meaningless… I guess in fact that means that it
doesnt really matter which keys are being used, as they are simply not
checked? Any key would be accepted?

So, my question is: Why does running /e/ OS or LineageOS with a locked bootloader work in these cases? What is the significance of the Google test keys here – do the bootloaders just always accept them?

May be because some new devices support user-settable root of trust. Details here: Is there a way to root an Android phone without unlocking the bootloader?.

@IrfanLatif Ah, interesting! However, since you say “new devices”, this doesn’t sound like it would have been available at the time when the OnePlus One was released (2014)? I also don’t understand how it fits in with the statement about the Google test keys.

The official LOS subreddit has a comprehensive post on this topic. Still I'd advise against it because it makes recovering from failures much harder.

@AndyYan Thanks, that was a very helpful and detailed overview. I would say the most relevant part is: There are also a few phones (like the original Pixel/XL and OnePlus phones like the 5/5t and older) that don't support AVB v2, but can have their bootloaders relocked because they simply never check to see if the OS is signed by the vendor, just that it has some valid signature on it. This implies that the OnePlus One doesn’t check the origin of the signature, explaining that case. I suppose the Fairphone 3 is a similar case, then?

so in essence, re-locking does not make sense, because in the few models where it does work, it gets you no extra security, and otherwise just breaks your boot


text:
How to use a custom notification sound in gmail when email received from a specific contact
I am a volunteer firefighter and when we get an alarm, I receive an email from a specific address.  I would like to be able to change the notification sound the gmail android app uses when any email from this address is received.  I believe there used to be a way to configure a label in gmail and set a custom notification sound for that label, but that feature seems to have been removed in more recent versions of android.  Is there any way to do this with the current gmail app?

If you are willing to change your Gmail app and use an open source app, you can have notifications set up and also have the message read out aloud. See answer here

You could use something like Tasker or Automate to detect these emails and act appropriately.


text:
USB connection with my android not working any longer
I have a problem connecting my android phone with my PC. I however get the option of Transfer files under Use USB for but this does not seem work. Any leads?

Check different USB cable and different USB port on your PC.

Thanks for the suggestion I have tried phones and different cables(Type C and the normal USB)

you get Use USB for popup when connecting?

https://www.google.com/search?q=mtp+usb+device+bug


text:
How do I create a separate vendor partition?
I recently got an android phone running AOSP Android 5.1 Lollipop. I want to upgrade its software to higher android version, probably 9.0 as per the phone's capacity. But for that, I need treble support in the phone. And for that, I need to create a vendor partition. Here is a tutorial I found on XDA.
Link
This guide is focused on MI3/MI4 devices and the resource ROM mentioned in it is also for MI3/MI4 devices. I think they may not work on my phone. The phone with me is of Micromax Canvas model. So please guide me through this. Thanks.

You can't make a device support treble by simply creating a vendor partition. Better search for the newest custom ROM for your device and use that.

No new ROM available for this model. But even if I can't support treble by creating a vendor partition, please tell me how to create a vendor partition. And if the above method is applicable for other devices too.

Please read including all comments. Working on the partition table is the easiest way to brick your device: https://android.stackexchange.com/questions/237263/resize-system-partition-on-galaxy-note-3-sm-n9005

Looks serious. Thanks for all these resources. I will try my best not to do it.

Use parted or gdisk (or its variant) tools to create partition as you would do on any Linux system. Here's a quick example to use sgdisk: https://android.stackexchange.com/a/220042/218526. Bear in mind that any such command could be the last communication you've with your device. Partitioning is something which must be done when you know what you are doing, not by copying commands from support forums.

Thanks for the information Irfan Latif. I know that wrong partitioning can be the worst nightmare for a person with a phone. But, I still wish to try it out on my experiment phone as I have its stock rom and flash tool to restore original os if anything goes wrong.

Be aware that stock ROM and flash tool might not be enough to restore a device bricked due to partitioning went wrong: Can I flash Android on device with overwritten mmcblk0?.


text:
How to resolve a bug where documets and media files are not indexed to MediaStorage
I have encountered a problem with several file managers which I have failed to resolve.
Files in my device are not properly indexed and hence are not recognised by the file managers at least to my understanding.
Instead of choosing a desired category in the file manager e.g documents or video etc, it shows as empty yet  have several files of that type. I have to manually dig through the internal Storage to find the specific file see image:

I understand in some devices running MIUI, the culprit apps usually are Downloads and MediaStorage so I have wiped their data and even uninstalled updates yet the problem still persists. Funny the problem does not in second space (multi user space), anything that I am missing.
Android 9, MIUI 11 Xiaomi Redmi Note 4 (mido)

Have you tried a force scan of shared storage: https://android.stackexchange.com/a/209119/218526?

files in second space probably have different location (or namespace) if your phone is rooted check /data/media/0 /data/media/10 ... possible other reason files placed /data/media/0 manually may not have right permissions. files with non-trivial names (forbidden chars on fat) or size bigger than 4gb are invisible from /storage/emulated/0

@IrfanLatif yes I did a force scan twice but with no positive results

it's hard to say without knowing file location and how the file was created or if we even talk about the same thing. for example on isolated mount namespaces you can create a file from one app but it is not visible to other apps, unless you change settings in magisk

@alecxs thanks so much for the explanation, the problem is fixed after a nandroid restoration, I don't whether I should delete this question or leave  as it seems too individualised.

@xavier_fakerat don't delete the question. Post the answer as something like: "I restored nandroid backup I had and it solved the problem for me. It is unfortunate that I still don't know how restoring the backup solved the problem. If anyone has pointers to that, please put them in the  comments for others to understand this solution". A lot of times, an answer has good value even if it doesn't explain how the answer works. :)


text:
What is this S icon inside white square?
Anybody who knows about this app please reply.
Phone is Vivo

Hi, please follow the given link to help you identify it.

It's in my granddad's phone. I can't access it. Concerned if any scam app has been installed accidentally.

Let someone who has access do the need. With millions of Android apps available, we can't identify every notification either, moreover from non-store apps.


text:
"Verify it's you" pop-up when I try to make a purchase through Google Play
Whenever I want to make an in-app purchase, a prompt with the header "Verify it's you" with a text box and a submit button appears, but it doesn't say what i need to introduce in the text box. I tried my password, security codes etc, but it doesn't work. I couldn't take a screenshot due to security. Has anyone encountered this issue?

Possible duplicate of this unanswered question. What is your device model and if you're okay with sharing it, the mobile carrier, the country where you live, and if you have some payments linked to the Google account? Most of us haven't experienced this, so it's hard for us to answer.

Typically a "Verify it's you" dialog from Google looks like shown in this question: https://security.stackexchange.com/questions/184927

May be this dialog is created by the Sim-toolkit (would be an explanation why the dialog is so simple)? This would make sense if GooglePlay Store is trying to charge the payment via your mobile network carrier.

this usually happens when your google account is used on other devices

@Andrew T. yes that one but I don't have the "Resend code" button. I have a Samsung Galaxy S20+ serial number:R58N93LAYYL carrier Vodafone country Romania

Also transactions worked like a month ago.

Appreciate the clarification. By "payments linked to the Google account", it was supposed to be "payment methods", not "transactions" (sorry, my bad). From Google Play's Payment methods, is there anything related to your mobile carrier, or probably something else other than cards? Just like Robert, I also have a suspicion that this may be related to "direct carrier billing". If that's the case, perhaps you can try contacting customer service about this? Otherwise, what is your current payment method?

Nope other than my credit card I don't have another payment method


text:
Receive a notification when the phone goes offline
How do I get a notification when my phone actually has no internet service?
I'm using an Always On VPN connection that sometimes silently goes offline (it's a known problem).

OS: Android 10 (Anroid One)
No root
Without Google account
F-droid or other FOSS source are OK

Looks like Automate can do this but it's only available in the Google Play.
I would prefer a method that does not require additional software.

You can download Automate from APKMirror or using Raccoon apk downloader.


text:
How can I make an APK stop checking for updates? It's not downloaded from Google play
There's this music app (Fildo 4.2.9) that for a certain reason I don't want to use the latest version of, is there a possible way i can stop it from checking for updates? i literally can't use it because it displays a box that won't go unless it's updated.

There are only two way: 1. don't allow the app to connect to the server it uses for checking if there are updates. 2. Modify the APK so that it does not check for updates. For both ways there no "one-click" solution.

Care to explain more on how i can do these stuff? Or how to locate the server or the file that checks for updates?

Both ways can get pretty complex. The easier way is usually blocking the server. Use one of the packet capture apps or PCapremote to capture the app network traffic (after clearing it's app data). Also make sure that you don't use private DNS feature of Android. Then you should see the server name. Once you got the server name you can try to block it e.g. using Blokada app.

Thank you, i will try it out.


text:
Google Photos using up too much data and at the same time hangs on uploads even when on wifi
Two problems related to the Google Photos App:

It often hangs on uploading saying "waiting for wifi" even though the phone is connected to wifi
According to "Mobile data usage" in settings, Photos is using a lot of mobile data

To me it almost seems like 1. and 2. contradict each other. I use an always on VPN.


text:
How to decrypt android adopted storage without the key?
I would like to know if there is any possible workaround for decrypting the adapted storage. I don't care about recovering my data because I've got the backup already. I tried formatting the sd card several times from the custom recovery as well as from the pc with no luck. Since I've already formatted /data partiton of my phone, I got no way to recover my lost key. So is there any way to make the sd card usable?

You don't have to decrypt an SD-card to make it usable again. Once you have deleted all data there is nothing left that can be decrypted. Just delete the entire partition and may be the first sectors of the disc (not the partition) to make sure that the sd-card can no longer be recognized.

From diskpart to ease US partition master, I tried everything. Ease US partition master gives this error ---> "There are some errors occured while writing partition chains on disk". Windows tells there is some problem in my disk. When I try to fix it, it says unable to fix.

That sounds more like a defect SD-card. Windows diskpart tool does not care about Android encryption.

If it were a defective SD card then why would it still get detected on windows. Also, EaseUS partition master shows, there are 2 partitions on the disk.

Because flash memory often starts to fail on write operations while read operations still work. So a defect sd-card behaves often like a read-only memory system.

repartition MicroSD Card from PC card reader with gparted or diskmgmt.msc


text:
Whatsapp: "The download was unable to complete. Please try again later" for received voice messages and stickers
Received voice notes or stickers don't download since a few days ago. The message shows a down-arrow icon, I click it and the circle around the icon spins for a few seconds and then shows this error:

Any ideas on what else to try for this error or how to debug it? This is what I have tried, to no avail:

Internet connection is fine, other phones with Whatsapp using that connection work and every other app in this phone works fine. Tried WiFi and mobile data connection
Phone date and time is correct
Enough disk space
Cleared Whatsapp cache and also wiped Android cache partition in recovery
Whatsapp updated to last version
Backup messages, uninstall Whatsapp, install Whatsapp, restore messages
Tried with auto or manual download in Whatsapp options

As a workaround, it works using Whatsapp Web


text:
Someone factory reset my android phone. How do I know more?
I am looking for my smartphone. I found it on my pants. It is factory resetted. Last time I check I was doing fine using the phone to call gojek (like uber in Indonesia)
And then I got message after I restart the computer that my phone is factory resetted without authorization.
I have no idea. How can my phone got factory resetted without authorization? Is this because while the phone is in the pocket somehow it register 15+ false finger prints or what? I did set things up that way.
In any case, I wanted to know more. Is there a log or something that I can check to see what's happening.
I lost quite a lot of data, but most I can recover.

Someone pressed physical button power + volume up and then selected factory reset with volume up/down + power. This can also happen accidentially if the buttons are wet/short-circuited or pressed by coincidence respectively. There is /cache/recovery/last_log which may give some hint

how do I see cache/recovery/last_log

"show log" in recovery menu

where is this recovery menu?

exact key combo depends on device model https://www.hardreset.info/devices/samsung/samsung-galaxy-note-9/recovery-mode


text:
What is the approximate battery discharge rate of Google Pixel 3XL phones when turned off?
I am considering purchasing a new Google Pixel 3XL Android phone, primarily for photography.  I don't believe those phones have been manufactured for 2-3 years, so I am concerned about the battery health.  If the phone has been sitting in a box for 2 years with 0% charge, my understanding is that it's likely the battery will not function well.
For this reason, I'm wondering: What is the approximate battery discharge rate of Google Pixel 3XL Android phones when turned off?
(Also, if anyone happens to know how approximately much battery charge was present when the phones were placed in their box, that will be helpful.)

The answer starts from what you asked towards the end of your question.

Li-ion battery's are charged to around 40% while storing. That's about the charge level (give or take few % points) you'd see when you take a phone out of box for first time. Reason

Lithium-ion must be stored in a charged state, ideally at 40 percent. This prevents the battery from dropping below 2.50V/cell, triggering sleep mode.

Sleep mode is a protective mechanism to prevent deep discharge and you can't charge the battery conventionally when it enters that mode.

But batteries do self discharge and the typical rate of Li-ion batteries is about
2% per month (Table 3). But this does not mean you get a fully discharged battery say after 2 years. That's because

There is virtually no self-discharge below about 4.0V at 20°C (68°F); storing at 3.7V yields amazing longevity for most Li-ion systems

But yes, your battery would suffer a capacity loss as you can see in Table 2 of link quoted in above point. If you can get a new battery from OEM, which is manufactured recently, this risk can be mitigated and you can use it for long.
But if your use case is only photography, I guess you need not change battery at all.

This is generally applicable to all Android devices and  your specific model should not be an exception.

Thank you so much.  That is all excellent information!  A comment then a question: Comment: It's unsettling that the site you found states ~2%/mo, but this other site states 10%/mo for Li-ion: https://www.batteryeducation.com/2012/10/battery-self-discharge-rates.html  Question: In item 3, you mentioned "Table 3". Did you mean Table 2?  If so, and we extrapolate the data from Table 2 linearly (any idea if linear would be correct curve for extrapolation?), that would mean a 3 year old battery stored with an initial charge of 40% at 25C would have ~88% capacity; if stored at 30C, ~77% capacity.

Thanks. There is lot of conflicting information on the net on these aspects. That's why I prefer Battery University as it has a series of articles which are not internally conflicting - to address your comment //Coming to your Question in comment, it isn't linear. AFAIK there is nothing like negative storage - any battery is technically EoL of it's capacity is down to 80% of rated capacity. Of course it can still be used for a long time, only charging needs to be frequent, to a point is reached where it needs to be on charge to be used // Yes I meant Table 2, fixed typo, thanks catching that

Thanks. You mentioned that any battery is technically EOL at 80% of rated capacity.  Does Google replace them for free under warranty if they drop below that level?

Of course NO... Batteries aren't covered in warranty AFAIK

Of course not.  LOL.  It reminds me of crappy vehicle warranties that pretty much only cover components within the drivetrain and very little else.


text:
No or very poor cell signal in areas I know have good signal
My phone worked fine till about the middle of yesterday. I live out in the country but usually I see 3 to 4 bars sitting at my desk in the basement. But now even if I walk up to the top of the hill (200 ft) on the property, from which I can see 3 cell towers, the signal comes and goes. For about 30 seconds there is full strength and then nothing, and I mean absolute zero signal, for a minute or 2. I had this problem last year as the phone was in warranty I just got a replacement. I figured the antenna wasn't connected correctly and it came loose. But to suddenly get this bad again, and I am sure I haven't dropped or jarred phone, I have to think something else is screwed up.
This morning I figure since I hadn't done any updates in a while I should do them. I used my WiFi connection to update and it worked for a couple minutes after I did the update, then the signal was gone again. This makes me think some setting is messed up but where and how to fix it is my problem.
As I drive around I get signal, but noticeably I have to be closer to a tower to get signal and then it gives me 4 to 5 bars otherwise nothing.
I have checked the "Mobile Network" settings; "Roaming" is on, "Preferred Network Type" is set to "Global", and "Enhanced 4G LTE Mode" is on. I have tried changing them all but no difference.
If it is relevant my phone is Motorola Moto E6
This is such an odd problem I am not even sure where to start digging for answers


text:
Why can I receive a 7mb video text but it is too large to forward?
Problem: I have an A51 Samsung. I can't forward a text video that was attached and text to me from another A51 (my wife's).
What I tried: I tried saving smaller since I cannot trim it.
It just doesn't make sense to me that my wife can attach and text me a 7 MB video but I can't do the same, having the same identical phone.

This could just be a bandwidth limitation. Is this a single message recipient, a group with messages sent as MMS, or a group message sent as a group of SMS (i.e. singlular texts to many people, each harboring the same video?) These are all possibilities integral to texting apps, and can be set with differing settings/priorities per user or device.

What is the complete error message? Could you provide a screenshot? Might also be the mobile carrier's restriction, do both of you using the same carrier and same plan?

Do you both have the same service provider?  If so, it's possible you just married up. ;)

@wbogacz, and everyone.  --  This is just a single message I want to send to a single recipient. A screenshot would simply just be an image of the video I want to forward that I received. My wife and I have the same exact phone and carrier. We bought them at the same time.... liked "it's possible you just married up." Ha! :)   -- I'm open to any user settings if that is a possible solution. I'm just not sure what that would be.

Are you both using the same messaging app? Samsung has their own that is different from the standard Android app.

@girolamous Yeah, we are. Just the standard "Messges" app.


text:
Looking for Android 7 stock ROM Moto G5S plus XT1804
I want to flash the official stock ROM that came with my Moto G5S plus phone XT1804 i.e. India build. I searched but so far could only find the Android 8 ROM.
Why am I looking for this? I updated my phone to Android 8.1 December 2018 update. After that VoLTE stopped working. I can access the internet, send SMSes but can't make or receive calls. The VoLTE provisioned option in Phone Information is greyed out. I think that if I downgrade to nougat I may be able to get back my VoLTE. I have flashed other roms, including custom roms, too but no luck so far.

be aware other partitions like persist dsp modem may have important role too, always flash full stock ROM + firmware. also check your IMEI https://forum.xda-developers.com/showthread.php?t=3782387


text:
How to change color of an app?
I don't know programming,but I know that we can change color of an app by going to res>>values>>color and editing it there with the app
"apk editor".
But this app is not working now.
when i click "build" it shows this error message:

invalid resource directory name: /data/user/0/com.gmail.heagoo.apkeditor/files/decoded/res navigation
invalid resource directory name: /data/user/0/com.gmail.heagoo.apkeditor/files/decoded/res font>

Notice that this error message shows up even if i don't make any changes. Even if I just open an apk and press build, this error message pops up.
So, is this a problem with the application?
What should i do?
How can i change color of an app?

It seems that the APK file you want to edit is not supported by "apk editor". May be you should just talk to the developer of "apk editor"?

Wasn't your identical question closed earlier this morning? This seems to have been submitted as Q#237025 [closed], and now again as Q#237026.

I asked for suggesting an app in that question. That is why it was closed. But even after  i edited out that sentence , the question was not reopened. I think it take some time to reopen that question. So, I posted this question. However this cannot be considered a duplicate because i edited the first question to "This was deleted" because there was no option to delete that question

res>>values>>color isn't the only place to save colors. A developer can hard-code the colors e.g. in styles.xml or may change dynamically from Java code. So there's no general answer to your question. Ask the developer or reverse-engineer the app fully and dig it out yourself. // Regarding the error you're getting, again, there is no universally working solution for all apps to decompile and recompile them. Developer may use some obfuscation method which makes it impossible or very difficult to de/re-compile the app.

@Irfan Latif Ok,thanks


text:
Termux find if microphone or camera is in use by other apps
I want to make a simple script in termux to find out if microphone or camera is in use by other apps.
You can suggest me any method , it dont have to be soley based on termux I just somehow want to get that info in termux script
Other details :--
Android version : 10
Root : no
ROM: stock miui(12)
Correct me if my question need more details

I don't think termux has any privileges to do that. you might however find some info in logcat (don't know what to look for)


text:
Google won't stop asking me to agree to new features for text messaging
I keep getting the following pop up message on my phone.
"Faster, richer, higher-quality chat on Wi-Fi or data
To turn on chat features from Google, you agree to the Terms of Service. Google will occasionally verify your number by exchanging your device info with your operator. (SMS charges may apply.) Google's Privacy Policy describes how data is handled. Learn more."
I refuse to agree and select continue without new features but it won't stop popping up.  It is so frustrating.
Any suggestions?


text:
How can I configure Android's default phone calling application do that the screen doesn't turn off automatically after ca. 20 seconds during a call?
When I make a phone call using the speaker, the screen turns off after about 20 seconds after the call started.
How can I configure Android's default phone calling application do that the screen doesn't turn off automatically after about 20 seconds during a call?
I use the default Android phone call application on Android 10 with Samsung Galaxy S9.

@beeshyams been able to use the numpad, mute/unmute, enable or disable the speaker, see phone notifications etc while I'm in a call

Which means you want to turn off the proximity sensor while on call //automation solutions are one option to try//please add the explanation to the question. Comments may be deleted// be aware that those solutions may not work on all devices /OSes plus the automation options may have changed.

@beeshyams thanks no actually the issue is not the proximity sensor. Even though triggering the sensor, When I make a phone call using the speaker, the screen turns off after about 20 seconds after the call started.

@beeshyams thanks I am not placing the phone near my ear but instead using speakers or Bluetooth headphones


text:
Where is Boot flow screen displayed in android
I have came across Boot flow and when there is based on boot state of a device, it shows different colot screen.
YELLOW: Warning screen for LOCKED devices with custom root of trust set
ORANGE: Warning screen for UNLOCKED devices
RED (eio): Warning screen for dm-verity corruption
RED (no os found): No valid OS found

Let me know where or from which path those screens are displaying?
Eg:Yellow Screen

Does this answer your question? Is Android's system recovery a firmware thing or Android thing? Can factory reset be prevented?

This is all happen in OEM bootloader (proprietary) before android is started. This screen is displayed before splash screen only in yellow/orange/red state

Let me know the path from aosp please. http://androidxref.com/9.0.0_r3/

@Abracadabra Bootloaders aren't part of AOSP. They are OEM-specific thing. AOSP contains just a  basic reference implementation of final bootloader (which loads kernel); check AVB documentation and code. Final bootloader in the device may or may not be based on it. It's entirely up to the OEM.

So correct me if I am wrong.  OEM specific will be available in device and not in aosp code?

@IrfanLatif then how it communicates with aosp and oem specific?

once chain of trust is broken android will not boot at all, that is what boot flow is designed for. are you mixing up with your other question "how can i trace whether avb is running normally or not?"

@alecxs no. Very simple. I just need to know from which path those different screens are displaying? Eg:  Orange Screen https://source.android.com/security/verifiedboot/boot-flow#unlocked-devices. In aosp souce code, which folder?

don't know what you mean. bootloader is proprietary. do you have source code of aboot or lk for your device?

no source code but usually where this will be available? @alecxs please let me know what is 1k or aboot. Sorry I am not aware of this.

@Abracadabra please spend time to learn the basics. It'll help you self answer many of your questions. You can start with https://forum.xda-developers.com/t/info-android-device-partitions-and-filesystems.3586565/ and https://forum.xda-developers.com/t/info-boot-process-android-vs-linux.3785254/ and https://android.stackexchange.com/a/220678/218526. Do check the AOSP links in the last link.

IrfanLatif has linked source code of aboot but I am not even sure this is the stage where OEMs implement boot state warning screen. After reading source code I believe it is happen earlier in OEM bootloader which is what I should have called SBL (which is proprietary closed source). AVB/dm-verity on the other hand is implemented in aboot. google documentation is bit confusing because bootloader check (yellow screen) is actually predecessor to verifiedboot http://newandroidbook.com/Articles/aboot.html

for mediatek devices it is in lk (little kernel, aka fastboot) which is bit different to qualcomm devices. XopmoH97 has written hex patch for disable yellow screen on mediatek devices orange_state_disabler_v0.3.zip

I  analysed the hint message text of boot state warning screen in code but I am not able to find where those message comes from.

I am not able to download the zip. @alecxs


text:
"Unable to get VPN permissions, you may need to reboot device and try again"
On my Play Store-included Chinese Android phone (Xiaomi Poco X3 NFC), I recently encountered an issue where I had to re-accept permissions for all of my apps.  My VPN app failed, and I began getting errors that the phone itself was preventing me from connecting to a VPN.  I tried clearing the cache, the files, re-installing the app, using new VPN client and configuration files, restarting the phone, etc.  None of this helped.

I backed up all of my data and reset the phone to factory defaults.
Important reminder:
Before resetting the phone, I removed my MicroSD because the dialog said that it would delete everything on the MicroSD if I did not do this.
Sussing out the source of the problem:
After reformatting my phone, I slowly installed each app that I thought might be the culprit.  Then, I slowly did each system app update.  I found there were a few apps that could cause the problem.  These are the apps that I suspect have the ability to permanently block connection to VPN in order of confidence with first being most certain: Mi Credit, Screenshot (by Mi), Updater (by Mi), and Security (by Mi).  There may be other system apps that create this problem.
Update: Themes (MI) also creates this problem, consistently.  The VPN connects and says that it is connected, but download rates drop to 0kbps.  If I remove myself from the MI Themes privacy policy and wait a few minuets, the VPN starts working again.  If I re-accept the privacy policy, the VPN stops working, again.  This is reproduceable.
Methodology:
After reformatting, I spent a few hours connected to my VPN and browsing before installing any of these apps.  After installing them one-by-one, I encountered issues.  Removing updates did not undo the problem of the VPNs being blocked: I had to factory reset the phone, again.  I installed these other apps, one after each reset, to test each one of them.  I installed "updater" and "security" at the same time so it might be only one of these two, but I suspect that all of the system apps on the new MIUI system app update set are tainted.  Finally, I reset the device, ignored all updates, turned off auto-update in three locations--Developer Options, System Apps Update settings, and System Apps Updater settings--, and began to use my phone again.  Everything has been working fine for 24 hours.  If it fails hereafter, I will update my answer and include it as part of the question; so, if my answer is here, the theory stands.
How is this happening?
If anyone knows why these apps are causing this problem or can guide me through figuring it out, please mention me in a comment.  Thank you!


text:
Autodeletion of bootup sound
a noob here
My stock rom doesn't have a default boot soundBut my old device has a boot sound(Which means I can change it)Then my question is that how can I set boot up sound on my relatively newer deviceMy phone is not carrier locked in any wayMy old device is Samsung tab4 10.1My newer device is Samsung J7 max OS - 5.1.0 and 8.1.0 respectively My newer device automatically deletes PowerOn.ogg in my /system/media/audio/ui after a reboot I have theese many magisk modules

Is any of these modules interfering  Any workaround is appreciated
Thanks in advance

Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.

I want to set a bootup (a sound that plays at bootup) sound but my stock rom doesn't have one by default so I can't just change poweron.ogg  in the ui directory under /system/media/audio

All that I am asking is that my older device running android 5.1.0 Samsung stock rom + twrp is able to change its bootup sound by changing poweron.ogg but in my newer rom 8.1.0 (stock deknoxed debloated + magisk + twrp) is unable to set a bootup sound ( it is deleting poweron.ogg after reboot )

Please help I am desperate


text:
How root android 8.1 gtaxlwifi?
i wanna root my tablet, Samsung Galaxy Tab A. I tried enable bootloader using Adb & fastboot and later twrp and magisk, but i couldnt use Fastboot Commands, even with drivers. So, are there way to unlock bootloader with/without pc?
Note:
I am using Ubuntu at pc
I will be thankfull if u say method :)

https://topjohnwu.github.io/Magisk/install.html#instructions

@alecxs the section header mentioned "If your Samsung device is NOT launched with Android 9.0 or higher, you are reading the wrong section." though.

@AndrewT. this warning is regarding a-only system-as-root with magisk in recovery, but unlocking bootloader and patching AP_*.tar.md5 still applies (I have done it for SM-T555 android 7) reason is fstab might located in vendor and vbmeta needs to be patched

Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.


text:
Create and edit a bash script in an USB connected smartphone
The question explains it all. I am using Ubuntu 20.04 LTS. I have connected an android smartphone to pc using USB. Changed directory to internal storage using:
cd /run/user/*/gvfs/*/'Internal Shared Storage'

And now I wanna create a bash script. Did this:
touch test.sh

But it says:
touch: setting times of 'test.sh': Operation not supported

But if I 'ls' again, I see 'test.sh' actually got created. So whatever, I do this to edit 'test.sh' using vim:
vim test.sh

But got this:
cannot open path of the current working directory: Permission denied

Doing sudo outputs the same error. Is it possible to do what I am trying to do?
Android version is 8.

Cross-posted from Ubuntu.SE: https://askubuntu.com/q/1363757/331791

If you access your phone via Ubuntu/MTP then editing is not directly possible. There may be an emulation for file editing (download file from device to temp file, wait for the editor to be closed and re-upload the file to the device). As MTP is not a very stable protocol I would not recommend to use it. If you want to edit a file on-device better enable adb and used adb shell for your commands.

@Robert thanks for your reply. Another question. What if I have a pre-written bash script and I just copy it in the connected device and run it? I would get the same permission error right? How would I overcome that?

On Android there is no bash and the number of common Linux commands is also reduced. But a shell script should work. Note that the internal storage on Android is mounted with noexec option.

@Robert Thank you!


text:
How to set dark mode except for text?
I like dark mode but the problem is that it is difficult to read text on a black background so that when I read in dark mode, my eyes become watery.
So, is there a way to exclude texts from darkmode, such that there is a white box behind texts..?

Not possible in general but a developer can make an app that way.

@Irfan Latif How can we do that? Can we edit an app to make it like this?//Thanks for replying


text:
ADB requires drivers that are installed, not fastboot though, what drivers are required for fastboot?
I want to use ADB to backup everything on my phone so I can use CFAutoroot and restore root permissions, without erasing my entire phone, or deleting an app. I've had issues with this phone, I still have root access, but my Superuser or root control app is fucked up, to where it freezes or says binary reserved. I don't know how to fix this, so I want to back up my phone with ADB.
So I have used ADB and it restarts my phone adb restart bootloader, but when I use fastboot to flash it waits for devices, and nobody is providing sufficient answers, so I need the help or you guys. I'm trying to flash TWRP to my Samsung Galaxy S4 IGH-I337. It doesn't work.

Have you read this question and answer? https://android.stackexchange.com/questions/162664/fastboot-on-samsung-devices

adb backup is running in boot mode. not all apps support it. re-install kinguser apk or whatever gui kingroot provides to grant root access. you can backup apps with Migrate instead

root goes through but the supersu still says binary reserved or it crashes.

refer to comment


text:
Is it possible to change USB Audio Interface input stereo to mono?
Is it possible to change USB Audio Interface input stereo to mono?
So we're streaming using a mixer to audio interface to phone via USB OTG.
The thing with the Audio Interface, and btw our Audio Interface is the Behringer UMC22, and the Interface treats its input 1 as the left channel and the input 2 as right channel. Now so when we stream, it only outputs on the left channel because that is where our mixer is plugged in (input 1).
Is there like an app or anything that I can do to let the recording input just like in PC to change from 2 channels (stereo) to 1 Channel (mono) only? Thank you

What about a hardware solution using an Y-cable so that you can plug in your mixer into both channels?

Oooh thank you. We just got our first audio interface so I didn't know the interface would do that. Hahaha I should have made our 10m TRS Cable stereo on one end and two mono on the other. Thank you for this solution.


text:
Will my old device reconnect with my account if I change my account password back?
Background:
The device in question is an LG Stylo 3 (LS777) which I think is running Nougat. USB debugging is on and it shows up "unauthorized.: I dropped it and broke the screen a couple years ago, and recently fixed it. Either I forgot the pattern screen lock, or (as I've been reading) this phone has whatever bug that causes the device to forget it. I know I can factory reset it, it's just a last option.
How I got from there to here:
I had four accounts on this device. Using the hotspot on my current phone, I changed the hotspot wifi name to an open wifi network I know this phone connected to. And voila! Account Action Required notifications pop up!
Question(s):
I've been using one account as a guinea pig. I change my passwords regularly, and I don't remember which password I was using when it was on this phone, but I do remember every one I've used with this account.

When I get to the right password, will the device authenticate my account and show up again in Find My Device? I'm changing it once every 24 hours and rebooting the phone at random intervals, forcing it to reconnect.
Was the option to override the screen lock by remotely locking your device available with Nougat in 2018? (will that plan work)

I'm just curious if I'm wasting my time. Or is there an easier way to bypass or wipe the lock screen that I haven't found yet. The phone is registered to my LG account, but that f'ing site is so convoluted, I haven't seen a way to do that.
Thanks in advance.

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.

I'm on the third pw now. I did it on my laptop, turned on my wifi hotspot, then waited for the prompt to hit my main phone before powering my Stylo 3 on. It connected to the wifi, and all of the notifications started coming. It's still showing up as needing updated.


text:
Android x86 isn't working in virtualbox
I have installed android x86 in virtualbox. But its not booting now.
After installation it pop up a message "Android x86 installed successfully". Then I power off the vm and remove the iso image from it and then power on. When booting the os it only shows this. (This display has been there for 1 hour.)

Make sure you are using the 64bit version, according to a lot of post here over the years, this error is common to Android-x86 and occurs more often in the 32bit version. Besides that I assume that VirtualBox graphics system is simply not supported by Android-x86. Keep in mind that it is a non-commercial community project.

@Robert I have used 64bit

What is your CPU and GPU model ? Old CPU doesn't support SSE commands and doesn't run new version of android-x86.


text:
Chrome, YouTube, Whatsapp keeps crashing
My phone is 5 years old, Moto G4 play. Updated to Android 7.
Not many apps, still app keeps crashing and I have no idea how to solve, also memory usage of each app is bloated. In app settings page I see Carrier Service is reported as 500MB then I go to Carrier Service settings page, it is recalibrated to 30MB. Then Google authenticator - MFA app shows 250 MB, again I open its settings, gets recalibrated to 16MB. Finally I restarted the phone, now this is stable, but I'm too scared to open many apps simultaneously
Am I seeing hardware failure or Virus. I just installed AVG free version and scanned, it says nothing suspicious is found. I'm worried about both, at least if it is only hardware failure I can start doing routine back-ups

Virus scanner on Android are regular apps and thus they can not access on most devices about 50% of the data only. Therefore virus scanner on Android are next to useless and what the report, too.

@Robert that broke my heart. After restart things are stable it seems


text:
Google Chrome fails to update
I'm on Android 10.
When I open google chrome its menu is replaced with a red icon.
On clicking it there's a red menu item "Update Google Chrome" or so.
On invoking that action I get to a new screen (I think from google play store) which says "Try again". On the bottom it suggests to play "Hot Balloon" in the meanwhile.
I tried this for weeks and it was always the same.
I tried rebooting but it didn't help.
I tried updating from within the Play Store app. There was an Update button but when I clicked it it just said "something went wrong".
I checked if there's enough storage. Both internal storage and SD card have >3 GB left.

Found the solution here:
https://customeruseinfo.com/solved-google-chrome-and-system-webview-isnt-getting-up-to-date/ > Clear Google Play Store Cache and Storage
Settings > Apps and Notifications > Google Play Store > Storage & Cache > Clear storage
Then confirm and try updating again -> works


text:
How to fix an incorrect resolution setting without ADB
I'm running Android TV on Lineage OS, on a Raspberry Pi 4. After changing the resolution setting, the connected display (a TV) no longer displays anything but the message "Video Format not supported".
How can I change the resolution setting back/reset it?
I have SSH enabled, but I don't know the default user/password for Lineage. USB debugging is disabled - otherwise I would have done this in ADB.
I've already done numerous searches on the Internet but can't find anything relevant. Will I just have to reflash and start again?
Any help would be greatly appreciated!

Connect to another display and set it back? Sounds like it's just your TV doesn't like it.

@AndyYan yea tried that... Problem is, the resolution is now set to 1080p@30, and I think it's the 30fps part that's breaking it.


text:
What kind of smartphone should I be buying if my one and only use is going to be "BankID"?
In Sweden, there's a bunch of very confusing "e-id" things, but it basically boils down to this: you need something called "Mobile BankID".
In theory, there are other solutions, and even "BankID on file", which I currently use. That means you install their cancerware on Windows and don't need any hardware/cards. Sadly, they have no requirement for companies to support this method, so in practice, 99% of all websites that "support" BankID actually only support "Mobile BankID".
"Mobile BankID", as you probably have already guessed, requires a "smartphone" and is an "app" (Android/iOS). I don't have one of those, for multiple reasons. (Privacy, a deep-rooted hate toward them and what they represent, the lack of money to waste on stuff I don't want anything to do with, etc.)
When asking them about this, they basically just respond: "most people use Mobile BankID, so the other ways are being phased out and we cannot force companies or other authorities to support the non-smartphone ones".
So I'm essentially being forced to buy a "smartphone". Which doesn't sound too bad as long as I can remove the battery and SIM card and only mount and start it when I need to "e-sign" something... except there are some serious problems with that:

It seems like these things (whether Android or iOS based) are not supported for a long time, and then they force you to buy new hardware?
It seems like these so-called "smartphones" are trending toward not having a removable battery, and soon there may not be any left that let me remove it.
Same thing with the SIM card which is apparently no longer even an actual card, but just some kind of re-programmable memory.

I have heard that there are soundproof boxes which also block all signals, which would solve the privacy/security issue with the battery/SIM card not being detachable, but I have looked for such a thing for a long time and just can't find anything. And note that I mean in Sweden. I'm sure you can find something on Amazon or something, but they rarely allow shipping to Sweden, or start harassing me whenever I actually try to buy from the USA.
The biggest problem is perhaps the fact that these things "expire" almost like milk. What kind of "smartphone" should I buy if I want like 10+ of OS/software updates for this dedicated "BankID device"? In fact, I wish to never have to upgrade the hardware, if at all possible.
PS: Their third option for BankID, with a hardware non-smartphone device and card, still requires you to run the program on the computer and connect a hardware dongle with USB, so please don't suggest that. And after reading more about it, it's even worse than "Mobile BankID" IMO. Plus the same problem applies there with the lack of support for anything but "Mobile BankID" specifically.

For security purposes a Samsung device that gets 4 years security updates would be preferable. Note that the 4 years start when the device had been published by Samsung and not when you buy it. hence make sure you are not buying a phone that is on the market for more than a few months.

Sorry, but device recommendation is off-topic here. You might be interested in our sister site, Hardware Recommendations Stack Exchange, but please ensure to follow their guidelines to get the best device for your need.

Does this answer your question? LineageOS - is it possible to install and run apps without using Gapps or MicroG?

Does this answer your question? Info on and removal of COVID contact tracing in Google Play Services

I always buy used phones <50 € and keep it for two years. Xiaomi devices are cheap apple clones and highly customizable (check so called custom ROMs like LineageOS are available for desired specific device model). If you prefer sustainability buy modular phone like Fairphone


text:
Redmi note 8 is on recovery mode. Booting constantly but not booting to system
I changed the dpi from 392 to 1000 in my Rei note 8 in developer option. After that it constantly is on booting Loop to recovery mode. And I can not wipe my data cause it is only there . (Local drive). So I can't afford to loose data because some of my important information and sodt copies of certificates and other identification proof are there.  How can I get them back cause only option there is to wipe data because mi assistant is useless here.(no function).
So please kindly do take some time to help me if you can. I am eagerly waiting for the solution.  Thanks in advance for the answer.

Does this answer your question? Bad screen resolution permanently crashes Poco F1


text:
Install/replace default android audio decoder - Play Hi-res audio
I want to be able to playback hi-res audio files on my device without being tied to a specific application. According to this spec page on GSMArena the device should be able to play 32-bit audio files. But it seems that this functionality was maybe added to OneUI as the same audio files (24-bit and 32-bit audio) playback with static or stuttering on any AOSP custom rom. Even playing back the audio on other phones, like Pixels, result in the same stuttering. Apps like VLC do support these files flawlessly however it doesn't have the same functionality like closed-sourced apps (example BlackPlayer EX). My question is there anyway to replace the default Android OS audio playback engine or somehow add functionality to support these kinds of files? Or is there any way to add functionality to down-mix the files to 16-bit during playback?
Device: Galaxy S10+ (Exynos)
OS: Evolution X 5.9.1
Root: Magisk

If your device is rooted, V4a can sample at higher rates apart from a ton of other audiophile modifications. I've had this module running from Android 8 onwards to 11

@beeshyams Yes, I'm rooted with Magisk. I have both Audio Modification Library and Viper4Android installed. Do you have any instructions or links into how to do that?

By default or goes to the higher setting. You can join the Telegram group if you need help https://t.me/ViPER4AndroidFX


text:
Any way to extract a live wallpaper from a theme on the theme store?
I would like to extract/save/download a live wallpaper from a theme which I downloaded. Is there anyway to do this without rooting my phone?

Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.

Try to extract the APK file and check out what assets and resources you find inside. Just unzip the APK file.

@Robert is this approach still possible, considering that LiveWallpaper also uses Service component and some code to work?

@AndrewT. Of course a live wall paper is not a video nor animated gif, it is an app that generates animation by code so you can not make it run outside of the app itself. But depending on the live background parts of the background may be contained within the app in form of images.


text:
How to Autostart App on Android TV
I'm using an Amlogic TV Box with Android 9.
I'm trying to get an app to launch at startup, but the app will not launch.

The method I'm using is:
/data/local/userinit.sh
#!/system/bin/sh
am start com.package.name

or
#!/system/bin/sh
am start com.package.name/com.package.name.ActivityName

This version of Android does not have the Auto-start manager in settings to do it the easy way.

You need to wait for the Android's Zygote process which starts app processes, and SystemUI app which shows notifications and status bar at top, and preferably Home/Launcher app which show app icons, to come up before executing that command.

Also see my answers to How can I run a script on boot? and How to run an executable on boot and keep it running?.


text:
How to have text reminder popup when receiving calls from specific contacts?
Use case: I would like to be able to add a note that is displayed the next time a certain person calls. For example when "Joe" calls it shows me a note such as "Joe has peanut allergies" or "I owe him $20" etc.
How can I do this? Is there an app? I have Tasker. I could have Tasker launch my standard note taking app when calls are received but I don't know how it could open the specific note for each person.

Similar question: Any Android app to display a user-entered note when a contact calls (surprisingly asked at very near timing)

A paid app// More apps from Izzy's list //Haven't tried these myself


text:
How do I upgrade my Alcatel Idol 4s (6070O) from Android 6.0.1 to a newer firmware?
I have an old Alcatel Idol 4s laying around which is on Android 6.0.1 and I was wondering if there's any way to upgrade it to Android 7 or 8? I tried every single method I could find but no luck. Almost every single method needs a rooted device (which I also couldn't find a solution for), I even tried using the Alcatel Mobile Upgrade Tool but it gave me a prompt saying there's no update available, and obviously, I couldn't find any software updates in the settings as well, so I need help.

If there is no official update you can only check for a custom ROM. A rooted device is not really required, but a bootloader unlocked device is usually a requirement.

Thank you for the response @Robert. Do you know where I can possibly find ROMs compatible with my phone model?

Use your favorite search engine and check xda dev forums. But based on the Android version and the manufacturer you may not find one. You device is a little bit too old, most developers have already switched to a newer device (so you are about five years too late) and Alcatel is not really a popular manufacturer.


text:
Is date safe in encrypted phone without passcode
If my phone does not have a passcode, but is encrypted by default, and I factory reset it, is my data safe? Or is there a way someone can decrypt it since it had no passcode

If no password is set default_password is your password which is used to derive keys used for encryption. With factory reset they should be gone and cannot be recovered.


text:
Playing audio through phone call speaker
Is there a newer method of routing audio to the phone call speaker (the speaker that you put your ear to)? This suggests using Earpiece, but the app does not appear to work on Android 11 and up and hasn't been updated since 2015. Any suggestions?


text:
xiaomi redmi note 8T is stuck in recovery mode
My sister´s phone Xiaomi Redmi Note 8 Pro is stuck in the recovery loop. it went in the recovery loop and kept on rebooting again and again. If I select "reboot to system," then it gets back to recovery mode again. I try the option connect with MIAssistant but I recognize that she does not have unable USB sharing, so that´s why I cannot connect that phone to app Mi PC Suite via USB...
Is there any chance to save her images, contacts... because she does not save it on the cloud nor do she save them to Google Drive or any other file host, she only save them on the local drive on mobile.
Thank you for any answers :)

What was the cause of this? Did you update MIUI? I doubt data can be recovered, only hope is trying to fix boot-loop

Not sure if of any help but worth a try, if you can get signed secure boot download agent with proper auth_sv5.auth file, you could at least preserve status quo before doing experiments (you can't access userdata directly because of encryption) https://android.stackexchange.com/q/203283

I try to describe what was she doing. So she increase the volume and the icon of volume (icon where you can see  volume level) did not disappear after a few seconds and when she turn on the facebook or insta this icon still does not disappear, So she turn off the phone by pressing the button on the right.
And she turned it on again but the icon still was there, so she decided to restart her phone, and so she managed to get into recovery mode...

wait.. so this is not a boot-loop. only the volume button stucks/is wet/short-circuited. just let it dry it will work again after few weeks. if you manage to enter fastboot mode fastboot continue will boot ignoring Volume Up Button

yeah, but I am still in recovery mode. And i did not know how to get out of here. I try to reboot it but the phone turn off and when it turn on I was there again ...

https://www.hardreset.info/devices/xiaomi/xiaomi-redmi-note-8-pro/fastboot-mode

https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads

https://superuser.com/q/1669444


text:
Export Google chrome's tabs *by groups*
I have been following How can I export the list of open Chrome tabs? and was able to use Chrome's native method, to generate the tabs list. Not having tried the scripting tips yet, I saved it manually.
But the list is disordered, and not broken by tab groups (of which I have a lot...). The native sync feature discards the groups too. Is there a method to get a list of tabs from android chrome by group?
As a less ideal alternative, is there a way to sync/send an entire,  single group from android Chrome to the PC client?


text:
How to split Partition External SD card for adoptable & Portable without rooting?
My mobile device  have

OS Android 6.0.1  Marshellow Processor Qualcomm Family cortex a53
Machine arrch 64 Architecture arm cortex a53 External memory card 64GB
ROM 16 GB MOBILE NOT ROOTED

It have option to formatting external card as internal but when I install user apps and move not all apps move to the internal formatted external as card some installs still on internal card. And occupies internal memory.
I tried to partition Micro SD card  from PC mini partition wizard and  created two three partition
first one of 20GB Fat32
Second one  20GB ext2
Third one  20 GB ext2.
When I connected it to mobile it doesn't show any partition and asked.for.formatting in portable or internal when I said  to format as internal it formatted and deleted all partitions.
After searching googling  founded  some posts and answers  in many forums and found the commands for and shell or terminal all emulator
adb shell sm list-disks adoptable
sm partition disk:179:160 mixed 25
adb shell sm format private:179,3
adb shell sm mount private:179,3
adb shell pm set-install-location 2
adb shell pm get-install-location

But will these commands for partitioning 2 portions and I want 3 dedicated  partitions

First fat32 one mountable viewable  for photos videos of fat32 partion readable in Windows to

Second ext2 one as apps moving ext2 partition for fast apps functioning

Third ext2 For backup of stock from or custom ROM a can't support more than 4gb file size

I tried these commands from Windows adb shell but  'SM' file not found error come
Now my queries are :-

Do SM & PM: command solve my problem to dedicated partitions for proper functioning. Of adoptable storage. In my case of Android 6.0.1

Does the SM  & PM commands needs to be  turned in terminal emulator or Windows DOS and shell

Does SM & PM command compatible in Android 6.01 do it function in it or not

Does SM & PM  command need rooting the mobile first

Does super user command SU should be running before SM & PM command but sinus not functioning to do SU function without rooting.

Where  to get binAry files SM & PM  & SU commands and how can we infuse or download in mobile system folder or can work without infusing in mobile by running bootloader recovery tarp image can we run it .... command help please

How to mount and view browwse ext2 external partions in Android as whenever I format it in ext2 it's unreadable  from file manager  or any app which app or command we can view or mount the ext2 partitions from Android mobile

As I am novice and new to Android adb commands Linux  commands to. So I need advice help to modify the command and precious advice. Kindly guide step by step?

never did but maybe clone small MicroSD Card (which is already mixed 50) to larger MicroSD Card with more disk space. finally add 3rd partition with external tool on remaining disk space

You can do this without root but the method is much simpler out of necessity since in my experience, there are some exceptions but you did research and found the closest solution. I used the sm mixed partition method. You need to find a legitimate guide to it.
It is extremely important what order you do things in.
Also, you will have 3 storage partitions technically, an emulated sd that adopts the first partition, after performing the mixed partitioning, eject and safely remove sd card, -or what I would try is to leave unallocated space unpartitioned and then do the mixed partitioning. Then, these steps you should really google a confirmed working guide there are many with the wrong order of operations but it goes, format mixed safely remove and eject.
Power off android, insert sd card boot, allow it to adopt the sd card as fused storage increasing your emulated sd card. it's been so long since I did it so please do google I am very fuzzy on some details.
But I will say it was kinda unreliable for me, for a while my apps would be there, then .asked would disappear or suddenly my apps would be missing, as well and no real explanation.
And then I'd have to install it all again.
Also, apps that want to be on internal will move back after an update or reboot if I recall from my experience. And then you need to move them again.
The way I have been getting around that has been root. Although it's possible you can find a rootless solution that has the functionality of apktool m which lets you edit the apk of an app that will not allow itself to move to sd card you can quick edit that and set the apks preferred installation as auto, internal or external preferred.
If you can edit apks rootlessly then set external preferred and voila it now will allow move to sd card.
Do not do this with google apps. Globally setting external as your default installation medium doesn't work right? That's a deprecated thing from KitKat or am I wrong?
Anyway I would try it that way, also, you can use rikka's shizuku to allow sai to work rootlessly, and then you can try it's option that let's you choose.default installation media but I don't think it will work
But I was on 7,8 and 9 and was lacking so much knowledge  Which is ext 4 right? Now, reboot, and this time the other portable storage partition has to be set up as your extsd or media_rw partition and it'll be a fat or vfat partition. Not sure if you can mount or bind folders without root but that's another thing to look into.
And finally, you may have tried to leave unallocated space unpartitioned and inactive now I would try to format that space however you prefer, if it's ntfs android may not bother with trying to get you to format it, or maybe ext 2 would do that no idea and you can mount it with paragon a total commander plugin and a standalone app.
That way it's kinda guaranteed to be available to you in documentsui and such when making your recovery.
I personally think you could just do that on the portable storage partition.
That's what I do and upload to drive is an option or even a secondary old small 16gb sd card would work if you dont need that partition available all the time.
Or if you need all of them at the same time for the process to work you could get a cheap old sd card reader.
Just for after something bad happens. I'm not sure what your method is so I might be making dumb assumptions.
Anyway too much typing my head hurts.
Good luck. And if you can root do it man and then you can be frustrated with app2sd like me lmao pretty much as equally unreliable as the rootless mixed partition method. But yeah, it's super imperative that you let android adopt and then create the portable storage partitions or it will keep saying it's corrupt and try to repair it and not see it.
Oh, su is not needed for sm command are you sure you are following a good guide like on xda. I don't remember using the pm command just the partitioning part Try solid explorer, try fx file manager, try paragon, or some other partiotn5 mounting tool. Those commands won't do the trick as far as I know. But again I may be very wrong since it's been so long. But setting partitions yourself with the pm command is not what I did and I never tried to set a preferred install Location and have it work. Okay so tired. Gotta go. my brain is failing me.


text:
Logcat analysis Android
I am analysing the logs of an app and I found this message after the app has been successfully lanuched
ActivityTaskManager: The Process packagename Already Exists in BG. So sending its PID: 14389
W/ActivityTaskManager( ): Activity top resumed state loss timeout for ActivityRecord{28ecd14 u0 packageName/full_path_toActivity}
W/ActivityTaskManager( 1566): Activity pause timeout for ActivityRecord

When I am running the same app multiple times (under the same environment, like running the app for the same amount of time, without manual intervention, clearing the logcat before launching of the app), then also the number of times, the particular tag is shown on the logcat is  different (I am filtering the logs using package name and the pid of the app). I want to know why the frequency of the tags are coming different even though I have not modified the apk.
Is it like there are few tags whose frequency should be same and there are ones for which it may be different?
I want to know the meaning of various tags which are coming from the Android SDK side like ActivityTaskManager, ActivityManager, etc in the logcat, (i.e the tags which are not being written by the developer of the app). Would you like to recommend to read any document so that I will be more comfortables understaing these Tags in the logcat?
Thanks in Advance

The best "document" you can read is the AOSP source code. Google provides the AOSP source code with all braches of all versions. Additionally AOSP source code is mirrored to GitHub and some other places.

Android also provides a simple interactive user interface for browsing source code on Android Code Search


text:
Recover data from a bricked phone (not yet reset)
I get this screen from an old android device:

It has not yet went through a full factory reset so the data is still there. The data (photos) is in internal storage (no sdcard).
Any ideas how to recover data from this?

maybe if you mention phone model

@alecxs Actually a tablet, Samsung SM-T211

enter recovery mode and install philz_touch_6.44.9-lt023g.zip via "apply update from external storage" or flash philz_touch_6.44.9-lt023g.tar.md5 from Odin. enter recovery mode again, it looks like this

in PhilZ touch recovery "Mounts and Storage" mount /data and /sdcard1. "Install Zip" from sdcard aromafm-1.91.zip for file manager. copy your pictures to MicroSD Card. you can also copy files to PC with adb pull or do a raw dump of ext4 partition 'adb pull /dev/block/platform/sdhci-pxav3.2/by-name/USER data.img'

in case you are facing trouble another custom recovery TWRP v2.7.1.0 is also available for SM-T211. be aware to untick all checkboxes in Odin

@alecxs Thanks for this. One of my main issue even before I posted here is I couldn't even get to recovery mode. I have been trying the Volume Up + Home + Power button routine several times and even Volume Down but the screen only gets rebooted to that "Firmware upgrade encountered..." screen over and over. Any other ways to go to recovery?

try download mode with JIG dongle

@alecxs I'll try to get one of those then I'll update you, thanks!

Hey @alecxs, I managed to get a JIG dongle but unfortunately it did not work on this SM-T211. Though the JIG dongle worked a different Samsung phone when I tested it. I guess I am SOL?

watch youtube disassembly video how to open, disconnect battery, connect JIG dongle, hold Volume Down + Home and connect battery. Repeat with usb-cable if still no luck

@alecxs Next level stuff right there. It may take a while before if I try that but I'll let you know if I am successful. Thanks again.


text:
Automated reboot without root
I'm responsible for an automation lab with many Android phones connected to Linux servers via adb for testing. We have an issue where devices will sometimes disappear from adb which means that someone has to manually find the phone and reboot it before it will come back. I'm interested in finding solutions to reduce this need for manual intervention.
One idea I had was that we could periodically send a ping to the device from the host and if the device did not receive a ping in a specific period it would assume it was disconnected and reboot itself. The issue is that we cannot root these phones so I'm not sure if that is possible.
I do however, have the ability to write and install my own apps on the devices and I don't need to worry about any playstore rules.  Is there anyway I can achieve this without rooting the device?

For rebooting the device the process calling it requires root permissions. The only way to reboot a device without using the UI is via adb. Therefore as long as the devices are not rooted this will, not work.

scheduled reboot is possible with automate apps like automate, macrodroid, tasker. if that devices have wifi or sim card you could even use message received as trigger for /system/bin/reboot

https://www.xda-developers.com/tasker-5-9-2-beta-run-adb-shell-commands-without-tethered-pc


text:
twrp recovery installed but it boots to android instead
i wanted to add custom rom to my galaxy j7 max and hence tried installing twrp(3.1.1& 3.2 or what ever) in Odin the task passed but then when i try to boot to it by pressing vol up+ power + home , instead of opening twrp it boot normally to the android and cannot get twrp .. so plz help

Does this answer your question? adb device doesn't listed on cmd {Lenovo K8 Plus}

Read this: https://forum.xda-developers.com/t/recovery-root-twrp-3-1-1-1-samsung-galaxy-j7-max-2017-sm-g615f.3710048/


text:
Access files from SD card (Android 8.1) from computer
I am using an additional SD card on my Android 8.1 phone. It is not formatted as internal memory, and I would like to keep it this way in case my phone fails.
The problem I now face is that I can't access photos in DCIM/Camera on this SD card through my computer. I tried connecting through mtp, and also by running a server (sshelper) on my phone. Unfortunately, the files remain invisible.
I have read that this is "by design", but it seems ridiculous to not be able to copy files from a storage area to my computer. Is there a reasonably simple way to achieve this?

by design one must unlock screen first


text:
In Android Studio, which system image should I choose for a Pixel 4 emulator?
In Android Studio, I'm adding a Pixel 4 virtual device. It asks me to select a System Image, and has the following one selected by default:
Release name: Pie
API Level: 28
ABI: x86
Target: Android 9.0 (Google Play)

There are others with API levels 29 and 30 that are shown but that I haven't downloaded yet. How do I decide which System Image to use for a Pixel 4?

Pixel 4 is still maintained by Google hence it has received update to Android 11. If you want to simulate that select the API30 image.

Hi Robert, would the general rule be "use the highest API level that existed when the device stopped being maintained by Google"?

Since your previous question was also related to an emulator, may I know what you're trying to do and/or the specific concern you are having regarding the system image, so that we can focus and clarify those?

No, the general rule if you develop for a specific device is "get a real physical device". An emulator is just for testing general compatibility to a certain Android version. It will never behave exactly like a real device. Therefore most app developers don't use the emulator at all, instead then have multiple physical test devices.


text:
How to delete a file registered in Word for Android recent files list?
The file in this picture within the recent list is an old competition fixtures file I want to delete.

I click on the three dots to the right of the file and select delete and it says I don't have permission to delete the file.

This file opens OK so it exists and it happens with all files in the recents list.
This is a file which is obviously on my device but I can't even find the data folder using a file management app let alone

≫ data  ≫ user ≫ 0 ≫ com.microsoft.word...

How do I delete this file?
Word version info provided by app

In an answer provided by EdwinSleepDoc to a similar question in Microsoft Forums, it says

When you open a password protected Word or Excel file on Android Word or Excel, it opens the file and then dumps an unprotected version of that file deep into Android's file system. Later, when you delete the original on your phone, the file still shows up in your Android Word or Excel 'recents' list and you can just tap it and open it.  It is quite disturbing.  It has a long file path usually users>>data>>0 ...

I cannot yet confirm that it is true about password protected files being handled like this, but I have found that this is true of files downloaded and opened from websites or opened from emails.
Following the instructions in the answer, the only way to delete this copy is to go to Settings > Apps > Word or Excel  > Storage > Clear data.
This will clear that folder of these files and reset your app.  You do not have access to that folder to delete these files individually. This is the only way.
NOTE FOR SENSITIVE FILES: The "remove from list" option within the recents list does not delete the file from the device.  It will remain in that folder, just no longer in the list.

"You do not have access to that folder to delete these files individually" unless you have root access. +1


text:
.nomedia + SD Card - just can't create the file, no matter what
I have an ASUS Zenfone 7 Pro phone running Android 11. This phone comes with an SD card slot and so I wanted to make use of it. It stored the files great, I can read the files all good. But I cannot make my Gallery/Android System ignore any folder on the MicroSD card.
For example, I have a folder with album previews. These all show up as folders in Gallery - needlessly.
So why I can't make the file? I don't know.
If I open Solid Explorer and try to create a new empty file as .nomedia anywhere on the SD card, it will just time out and will fail at the task. I can only force close the app when this happens. Other apps just gave me an error, but nothing specific.
How do I overcome this limitation? Maybe it's because the SD card is formatted FAT32? But I remember using MicroSD in my old Note 4 and other phones, and they handled .nomedia just fine. What changed? Something Android 11 related?

your problem is with Solid Explorer

Try this app to create

@beeshyams Unfortunately I was not able to open the SD Card with this app. It only shows internal storage - where Solid Explorer also worked just fine. :/ Thank you though.


text:
Android ignores DHCP "Search domain" unless it's on a VPN
So I have a single subnet, flat LAN, multiple wired access points all in bridge mode.
I have ISC-DHCP server and Bind9 DNS server configured for dynamic DNS hosts etc.  The DNS provides a local zone of my public domain, *.lan.publicdomain.com but is not externally marked as a server for that domain.  Thus internal *.lan. hosts are on the LAN server and *.publicdomain.com hosts are on the external public DNS at 123reg.
I also have an OpenVPN port open on the public IP.  Externally vpn.publicdomain.com leads to my current IP.
It all works, I can be on the VPN on 4G or public wifi ... or be on my local wifi and access all my LAN hosts either way.  I can actually be on both my local Wifi and VPN at the same time.
The android issue is that while on the VPN going to say:
http://somehost:8080/
Will resolve correctly to somehost.lan.publicdomain.com and the site will open.
If however I disconnect from VPN and just connect to my bare Wifi, my phone will still access somehost, but it will not resolve it without specifying the FQDN.  It's like it will accept the search-domain from the VPN DHCP pool, but it will not accept it from the ISC-DHCP server locally.
Is this something to do with Android forcing DNS to avoid adblocks?  Only when on VPN they can't get away with doing that as it's insecure and corporate types would object loudly.
I should note that all normal LAN clients, like Windows10, Linux etc, all honor the search domain in DHCP.  Just not the android in LAN mode.
Phone is MotoG5 Plus, android: 8.1.0

Check Android network settings if "Private DNS" (or similar) is enabled. If it is enabled it may ignore your local DNS config outside of VPN. Not sure if it would make a difference if your local DNS server would support DNS over TLS or HTTPS.

Related answers: https://android.stackexchange.com/search?q=user%3A218526+%22search+domain%22

The issue appeared to resolve itself.  I think it might have been some complicated negative DNS caching because I only added the LAN DHCP search domain later and tried to test it.
I wouldn't have expected it be cache as switching back and forward between connections and one resolved and one didn't, on either connection it resolves to the same IP.


text:
Unable to activate Developer Options on Samsung
A quote from here:

I have tried everything and am unable to activate the developer
options on my Sasmung Galaxy S7 Edge with Android 8.0. Whenever I tap
the build number repeatedly, it says that the developer mode has
already been enabled. I can confirm however, that this is not the
case:

The "Developer Options" menu does not appear in my settings
Even when using the search, these settings do not appear
Some users used third party apps like "ActivityLauncher" to manually search the com.settings.Settings.$DeveloperOptions activity.
I have tried this method multiple times with different apps, it doesnt
work. Trying to open an activity that requires developer mode gives me
an error as well.
Tried restarting the phone multiple times, closing all tabs, clearing the "settings"-App cache and data. Nothing works.

I am at a loss right now... I really want to avoid resetting to
factory mode because my phone has a ton of data stored on it. Any
ideas on how I could solve this?

This was also true for my S8, Android 9. Though, every time it says "You are _ steps away from being a developer..." and then asks me to put in the password and then says "Developer mode has been turned on." I can repeat this many times and it will ask me for the password every time and say the same things every time and the developer options are still not there. I am equally at a loss to the OP and I'm equally unhappy about the current only solution of a factory reset. Help would be greatly appreciated!

Does this answer your question? Re-enabling Developer Options

Try this app https://play.google.com/store/apps/details?id=cn.trinea.developer.options

@Robert I am looking for a solution not a workaround.

Have you tried to enter Developer Settings and then disable them from within? Sometimes it is possible to activate Developer options the regular way.

I am not sure what you mean. See my answer if that answers your question.

I found the reason it was for me: I use an internet filter called NetSpark (https://www.netsparkmobile.com/en/) which disables Developer Options as a security measure to prevent workarounds or uninstallations. It is a matter of enabling this in the Netspark settings.


text:
Transfering lot of images from device to windows
Hello Android Community.
I need to transfer something like 15.000 images from the internal memory of my Redmi Note 7 (Android 10) to my PC (Windows 10 46 bit).
I'm trying to transfer these using the (stock) USB cable, the problem is that it seems just impossible to complete the process as I 'm having (in order):

File not found error.
Path not avaiable errors.
Device not responding.
Explorer.exe freezes.
Other random errors.

My question is if there is another and less painful way to transfer these data (maybe using a linux virtual machine?).
I tried using  even google drive but it does not show my photos even if they are under backup with google photo (maybe i'll post a question about it).
Thank you.

Use adb. A much better solution is to create a full path list of all the images you want to copy in a file. Than setup a simple batch script to take each line from that file as file path of the image and adb pull it from the device using adb. If there comes an error, log the file path and the error in a separate file and continue. Even if the script cannot continue, you would know where the script stopped (at which file), which files have been successfully and exactly which of them are yet to be copied.

The benefit is that you are not sucking up resources with GUI so PC related errors and freezes should not occur. File not found or path not found errors shouldn't occur unless for some reason the media database of your device is corrupted or the device connection gets broken. That's what I think.

You can also do the reverse. Setup an SSH server on Windows (using Putty / Windows WSL). Setup Termux or Terminal Emulator on Android. Write a simple shell script that creates a list file, than copies each file to the SSH server hosted on Windows from Android. This way, you can avoid much of the freezes and possible file not found related errors that may be specific to using your PC

Done with ADB, thank you. (btw, i think that all of these issues are quite unacceptable in 2021).

@Raydar Totally agree file transfer problems belong in the past...


text:
can only access SD card; cant access the internal storage on pc
i need to delete 3 gigs of "pictures" from my internal storage,it says there is 3 gigs of photos in there but they dont show up in the google file manager and when i connect to pc it only shows the SD card and not the internal storage.

you should not delete files via MTP this is weak protocol

On Android for historical reasons a certain part of the internal storage is often calls arcade section. Are you sure you are really see the sd-card and not that part of the internal storage?

i recommend to delete pictures on the phone itself instead https://android.stackexchange.com/q/232775

i cant delete the pictures on the phone because they dont show up in the google file manager...

Try going to the settings and then storage and then files to explore if there are any pictures that you can delete.

the pictures folder is empty in google file manager but it takes up 2.9gb


text:
Break or trivialize recovery mode
Is it possible to have either a broken recovery mode (without bricking other modes) or a trivial recovery mode (e.g. no menu and automatically shutdown)? Where can I find existing ones or instructions to build my own one?
One naive "solution" I thought about is to flash 0 into /recovery, but I do not know if there may be unexpected consequences.

The main problem of flashing a broken recovery is that someone can reflash a working recovery using the same method. Therefore this only an obstacle for "very simple Android users".

@Robert I understand that. But exposing a 3-second factory reset option to everyone is even worse. Also, let's ignore FRP since that relies on google services.

Does this answer your question? Is Android's system recovery a firmware thing or Android thing? Can factory reset be prevented?

@alecxs The answer in that question says " In A/B slots, recovery is part of boot.img so it can be directly booted by ABL." If I understand correctly normal boot and recovery do share the same kernel. But then where is the beginning of the railroad switch? in ramdisk?

that happens earlier. in ABL where the physical key is recognized.

@alecxs Ok key gets recognized. But suppose we are not on A-only device, the same kernel will be loaded. So there is going to be a firmware level railroad switch? Do recovery and normal os use the same ramdisk?

https://source.android.com/devices/bootloader/partitions/ramdisk-partitions

@alecxs No I am not mixing them up but that link clarifies a bit. Do we have control over kernel parameters or it is completely hardcoded in bootloader?

use this tool AIK to separate ramdisk from kernel and have a look into split_img/cmdline txt file for parameters