text:
downloaded file disappears from file manager, but chrome wont re-download (replace), or re-name (create new file)
Android 7.1 on LG phone
"stock" chrome
I download a movie,
its a really long filename,
and the file didn't show up in downloads
so few days later I stumble upon same movie,
try to download, and chrome says file already exists
I check "downloads" in "file manager" but there is nothing there
I choose replace file option, file is not replace
I choose create new file option, and a file shows up in downloads in file manager
but as soon as I close file manager, the file is gone
so i try it again, but this time it wont rename file
it also wont replace file (pretends its downloading, then says already downloaded, but no file)
So I added a .nomedia to the directory cause I don't want this file randomly popping up ;)
how do I reveal this file? get rid of it?
It doesn't show up when I connect to laptop either
update: file is like 352 characters, should I post the url?

wwwwwwwww.www_ww+wwwwww+wwwwwwwwwww+wwwww+wwwwwww+wwwwwww+www+www+wwwww+ww+wwwwwwww+ww+www+w+wwww+www+www+wwwww+w+ww+www+www+wwww+wwwwwwwwww+www+wwww+wwwwww+wwww+www+ww+wwww+wwwwwwww+wwwwww+wwwww+wwww+www+wwwww+www+ww+wwwwww+wwwwwwwwww+wwww+www+wwwww+ww+wwwww+www+wwwwwww+ww+ww+w+wwwww+ww+wwwww+www+wwwwww+www+www+wwww+www+www+wwww+wwwwwwwwww_240p.mp4

You should try the following

Storage type

Are you sure your file is on phones internal storage and not on a micro sdcard. If it’s on a micro sdcard then connect it with you PC and execute the following on terminal cd the/sdcard/Downloads then remove the file rm long-file-name.mp4 (after a few characters hit Tab, it’ll type it for you.) Or format your sdcard (but first copy the files/folders you care about, do not copy downloads folder)

Basic hidden files

Make sure in your file explorer “show hidden files” option is enabled, use a 3rd party file explorer.

Use terminal

Connect your phone with PC and in terminal cd to/the/phone/storage/Downloads then remove the file rm long-file-name.mp4 (after a few characters hit Tab, it’ll type it for you.)

If you’re root user

Try to find the file using root explorer, rename the file name to something simple or delete it.

Wipe your storage

Copy the files/folder you care about manually (do not copy downloads folder) then wipe the internal storage.


text:
I changed Mainboard in S6 its wrong country code and does not work now what?
As above the board was locked to AT&T but i got the code for that I put my open sim card in it , it picks up wifi and looks like network signal but when i try to phone with it is says dialing ...dialing and hangs up. any help would be great !

download ROM according to your region and flash with Odin

source: Stack Exchange

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

sort: votes


text:
Wi-Fi Multimedia (WMM) causing a 100ms latency overhead on Android device
So the issue is that I have a Samsung M01 (Android 10) which is having a 100ms overhead latency.
Basically pinging the router gives me a average of 110ms of latency.
So after going around tweaking many settings I finally isolated the problem to the WMM setting.
The lag only happens when WMM is enabled so disabling it fixes the problem.
The problem with disabling WMM is that after that my router only goes at a extremely slow 14Mbps Disabling WMM causes Wi-Fi Speeds to drop to 14Mbps
Also another thing I noticed is that this latency overhead only happens when I am connected to a mobile tower (tested by enabling airplane mode )
The latency was monitored while I was playing a game, Downloading some files on a Wi-Fi call and it doesn't go below 100ms. But there are some random times when it starts behaving properly and gives me a latency of 2 to 5ms
Note : The ping monitoring was done by pinging in the local network.
This problem only occurs on my Samsung android device (It also occurs on another Samsung device (Samsung On7 Pro Android 5) but not on the Lenovo device I own). This doesn't occur on any PC/Laptops I have access to.
So does anyone have any suggestion on how to fix this issue?
Thanks in advance.

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


text:
Does "How will you use this SD card?" wipe data?
There is a notification almost every time after boot saying "Issue with SD card" "Tap to Fix".
What happens when I then choose "Use as portable storage"?
I don't want any formatting to happen and it is not clear if it will format or not. ( My SD card works fine from recovery and I can mount and view it in the terminal without problem. Not sure what the notification is about. )

Yes it reformats.

I have now backed up my contents and am able to try this out.

The popup indeed makes it clear that data will be lost.

Process
If, like me, you don't believe the system that your card is broken, you can try running fsck like @alecxs advised me to. Use the -y flag to avoid manually confirming every fix.
I used mount/blkid to see what filesystemtype my SDcard uses and what its block device id is. And then I ran fsck.exfat /dev/block/mmcblk0p1 which told me
1|beryllium:/ # fsck.exfat -V /dev/block/mmcblk0p1
exfatfsck 1.2.2
Copyright (C) 2011-2015  Andrew Nayenko
beryllium:/ # fsck.exfat /dev/block/mmcblk0p1
exfatfsck 1.2.2
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
WARN: volume was not unmounted cleanly.
Checking file system on /dev/block/mmcblk0p1.
File system version           1.0
Sector size                 512 bytes
Cluster size                128 KB
Volume size                 463 GB
Used space                  211 GB
Available space             252 GB
ERROR: unknown entry type 0x89.

ERROR: unexpected continuation (0).
Totally 5536 directories and 64646 files.
File system checking finished. ERRORS FOUND: 2.

whoops, I should have unmounted it first!!
Running it again (this time from boot instead of recovery (shouldn't matter), and not mounted) I get the option to actually fix it. Note that I did this as su:
beryllium:/ # fsck.exfat /dev/block/mmcblk0p1
exfatfsck 1.3.0
Checking file system on /dev/block/mmcblk0p1.
File system version           1.0
Sector size                 512 bytes
Cluster size                128 KB
Volume size                 463 GB
Used space                  211 GB
Available space             252 GB
ERROR: unknown entry type 0xc0.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc1.
Fix (Y/N)? Y
ERROR: unknown entry type 0xc1.
Fix (Y/N)? Y
Totally 5537 directories and 64860 files.
File system checking finished. ERRORS FOUND: 3, FIXED: 3.
reboot

The reboot was fairly quick, the login afterwards took a bit of time, and now... the sd card warning is gone! This also answers a question I was already typing but haven't submitted yet: How to fix the SD card without data loss!
I shall publish that question as well soon, so that it's easier to find this solution.

@alecxs thank you! Thought I'd let you know that this helped!


text:
Why my SD card name is not the same as I format it?
I formatted my SD card into 2 partition. The first one is exfat and the second partition is f2fs.
I renamed the first partition as "Limbo" and the second as "Saint".
On Linux it shows both name but on the android is different, the first partition is "Limbo" and The second partition is "SanDisk SD Card".
Is there's any reason why it is not the same?
Using Gnome disk:

Is it partition label or filesystem label? Partition table MBR or GPT? What tools you used on Linux and Android to show the label?

@Irfan I think it's partition label, updated post. Sorry for late reply

Getting the partition label seems to be not that easy on Android, therefore a lot of apps show the volume serial name or a name generated using the card manufacturer instead. Check if the partition labels are shown correctly in DiskInfo. This app usually shows the real partition names (as "partition nickname").


text:
How to format SD card second partition as internal storage
I formatted my SD card into 2 partition. The first one is exfat and the second partition is f2fs.
I want to format the second partition as internal storage using built in storage setting, but when I do that the whole SD card get formatted.
How do I format the second partition as internal storage without losing the first partition data?

Does this answer your question? I want to split one MicroSD card into two parts: part adoptable storage, and part normal storage. How can I do this?

I will lose my data that way

yes repartitioning will erase everything. do a backup to PC via adb and restore afterwards. no other way because adoptable-storage requires 3rd partition 16 MiB (probably related to encryption)

okay thanks @alecxs I'll test it using my another SD card.


text:
Is Android 10 unrootable?
I'm trying to root my device but after doing so much research, I've found that the rooting apps either don't work because it was made for an older version of android, it found that it's not rootable at all from the info given (such as android version and model number), or the download button just doesn't work. I've tried apps like One Click Root, Framaroot, Root Master, and Kingo Root. So I came here to look for an answer. Is it possible to root my phone in anyway, no matter the method? Below is some device info:
Model number: Samsung Galaxy S9 (SM-G960U)
Android Version: 10.0

If any more info is needed, please let me know in the comments. Thanks!

Check https://forum.xda-developers.com/t/root-extreme-syndicate-g960u-u1.4041815/ Maybe you have already read it.

the question is more about bootloader unlocking than about rooting 1, 2. one-click-routing is dead since android 6+ 3. bootloader unlocking dies nowadays with huawei google samsung oppo, others will follow 4, 5

Did you check if Magisk is supported on the S9?

Android is almost always rootable, devices are not. As alecxs mentioned, it depends on if your bootloader is unlockable or not. Locked bootloaders (and an other OEM-specific protection mechanisms) aren't Android, technically. Getting root without unlocking the bootloader is just a bonus, not an expected behavior: Is there a way to root an Android phone without unlocking the bootloader?

You have a full guide to root Galaxy S9 at https://www.androidinfotech.com/root-samsung-galaxy-s9-plus-exynos-sm-g965-android-10/
but that is full on unlocking bootloader and disabling knox which will have consequences in terms of warranty or apps that need payments

there is also root exploit for locked bootloader without tripping knox, see first comment Reddy Lutonadio (although not for U8)

Is it possible to unroot the phone with SuperSu? If that won't work with S9, how about with a file manager?

You mean unroot as losing root privileges @MatthewSchell? With FilManger I doubt.  But you can always do whole procedure of bootloader locking again, to go back to original state minus knox security, unless you  can hack it as @alecks suggested

Yeah I mean to completely reverse all changes I made to my phone to get root in the first place, I know rooting a device poses a security threat so I want to do what I need to do quick and then unroot it again. If keeping the bootloader unlocked also poses a security threat, I want to undo that too

@ReddyLutonadio is the Extreme Syndicate safe to use?

@Denis did you say I can't get knox security back even after unrooting?

I don't own a S9, so I can't say if it is safe or not. You need to search, read what others have done and tried, then decide whether you will root or not. Make sure you know the steps and what went right or wrong based on the experience of those who tried before you.

@MatthewSchell as far as I'm aware in Android 9 or 10 there is not possible to restore knox.  As mentioned above there is a way for 8 so you would have to downgrade


text:
How to remove DuckDuckGo browser from ArrowOS?
I recently installed ArrowOS on my phone but it comes with the duckduckgo browser which really annoys me with constant notifications and overall I hate it.
How do I remove it safely from the system so that I don't get stuck in a bootloop?
I had already tried what @Firelord suggested in the comments before opening this thread but got stuck in bootloop. I have encountered similar situations with other devices too and will appreciate any help I get, whether they be step by step tutorials or general advice on how to approach this kind of problem.
Needlessly to say I have root access and have Magisk installed.

Why don't you just install a different web browser make it the default web browser and WebView (the latter in the developer options). Then the default browser is just ignored.

That way I don't learn anything, hence I want to mess around with the apps that startup at boot to really understand how android works. I have, in fact, already downloaded brave and made it the default browser on my system.

Have you also made it the default WebView app? Otherwise DuckDuckGo my be still used by apps which display web sites via WebView.

There is only 1 option called Android System Webview and then the version number of the webview implementation with a blue chromium logo before all the text. I installed amaze file manager and apparently I can uninstall system level apps with it. Do you think I should do it?


text:
How to pull within adb shell
I didn't find a way to use pull command within adb shell.  I'm using adb from version 30.0.5
so pull command doesn't seem to exist within shell.
adb pull doesn't work neither pull only.
Probably it's part of some other command like list packages is
pm list packages

Thanks

pull alone or adb shell pull aren't valid commands. Only adb pull is i.e. pull is an argument passed to adb binary. adb pull is run when you are working on a PC and it pulls a file or directory from the connected Android device. When you run adb shell you are moved to Android device. Now your commands are not being executed on a PC. So pulling doesn't make sense. // Can you please explain what you are trying to achieve?

Thanks @IrfanLatif, I just wanted to copy some files to local system.  It works when I exit adb shell but not from within.
It makes sense not possible to copy if those are commands within the phone.

That is what Irfan told you pull only works from "outside" it is acommand-line option of adb. Therefore if you are in an adb shell pull is not available.

Yes @Robert I got it.  It makes sense, Thanks

Yes clear adb runs locally from terminal ie linux.  adb shell directly on the phone, thanks

adb help will give you a list of commands. maybe you find this link(s) helpful to start https://android.stackexchange.com/q/233402


text:
Is it possible to get vendor-specific files (e.g. drivers) from a phone and use them in combination with AOSP?
I was wondering whether it's possible to get these files, because to use AOSP on a device, you need these even just to boot. They aren't publicly available from some vendors (IIRC Google provides them?), so I thought about getting them directly from the Android device. I have found some answers regarding where they are, but I don't know, if it's possible to use them from there, or even if there's an option to.
I know there are existing custom ROMs such as LineageOS, which for each device work out of the box, so that isn't a problem, regarding devices they support. But what about devices they don't support? For example the 2020 Samsung Galaxy Tab A7. They support the 2016 version, but not the 2020.

Some custom ROMs use the original kernel which contains the drivers and combine it with a new ROM.

To my knowledge no OEM officially provides binary blobs (userspace HALs). But they are bound to release kernel code due to GPL. Binary blobs are always extracted from a working device by custom ROM developers. And it's one of the steps in custom ROM development: https://wiki.lineageos.org/proprietary_blobs.html. // Please note that development related questions are off-topic here.


text:
Google apps not working on mobile data, although non-Google apps are working
I have a strange problem on my Samsung J2 Android phone. Although apps like WhatsApp and some games which require Internet work, none of the Google Apps like Google, Chrome, YouTube and Play Store are working. Whenever I open the Google apps, it shows "Check your internet connection"  although my mobile data is on. But, on connecting my phone to a Wi-Fi network, these apps work. How can I fix this?
P.S. One more important thing: When I open Chrome, I get a message saying ERR_PROXY_CONNECTION_FAILED.

Your carrier might be blocking Google domains. Do a ping and/or dig on few of the commonly accessed Google domains. Also check logcat to see what errors Google apps throw when a connection fails.

@irfanLatif how do you do that?

Does anyone else have a solution? I will definitely award the bounty to the one who solves my problem.

In which country do you live and which mobile network provider do you use? If there is a man-in-the-middle attack (e.g. by your government) on the mobile network then Google services will not work because they use certificate pinning. Other apps will as ling as the used server certificate is trusted by the device.

I live in India, but I don't think that's the case.

ERR_PROXY_CONNECTION_FAILED.
This obviously has to do something with proxies. Either you set a proxy through your cellular data setting or some application has put phone in tunneling (VPN etc).
And obviously google services are highly sensitive to proxy IPs. Check if your IP is what your ISP has provided. Google services are often buggy with cache so try clearing some cache as well.
Changing APNs might also work, sometimes Google might get sensitive of your real IP. Do a hotspot sharing and check google services with that IP on other devices.

Hi, thanks for your help. I am guessing that resetting my APNs will do it, but what does resetting an APN mean? Will it cause any problem in my phone?

@AD-1 Hey,APNs are literally pre-sent configs which are sent by providers, most of time(at least in my country) you can prompt your ISP to resend APN through USSD. I highly recommend you to make a contact with ISP for this purpose. Ports,Protocols and proxies are set in APNs

Do you know about the same in India? What should we do in India about this?

hey, I awarded you the bounty. Congrats!

@AD-1 Hey! Thanks for that, this might be of a help check

Thanks for your help, @iBUYPOWER!

Check if google domain is not blocked by the network you are using , also try resting network settings , and try to delete the configuration settings that has been provided by your service provider automatically and call the help line ask them to resend you the internet settings.

You can turn off data saver mode. And try to use Google apps.
Your other apps are working. But you can reset network setting. You can change APN.
Go to setting / mobile network / Access point name. Every carrier has APN. You can try all APN.
Force stop google app and than start again. Clear cache and storage for apps.

Can you elaborate more?

i think auto sync is turn off, go to accounts and turn auto sync on

Chrome, YouTube and Play Store don't need sync to work. Plus, if sync was the problem it should be exhibiting when Wi-Fi was being used. The problem with OP is only when the device is using mobile data.

This is definitely not the problem. This is a recent problem for me, but my auto-sync has always been turned off.


text:
How to pull app data from the phone (without root)
I'm trying to pull down app from the phone, and see the files within
First I used App Inspector to get a package name.
Then few options to get the actual apk down, but no luck.
So I"ve done
adb shell
pm list package health

so it listed Samsung Health  as com.sec.android.app.shealth
Then outside the shell I tried backup
adb backup -f SamsungHealth.ab com.sec.android.app.shealth

Provided PIN on the mobile, so it downloaded but the file is tiny 500b.  I tried to tar it but no luck.
dd if=SamungHealth.ab bs=24 skip=1 | openssl zlib -d | tar -x

or
dd if=SamungHealth.ab bs=4K iflag=skip_bytes skip=24 | openssl zlib -d > SamungHealths.tar

but either say that zlib error  (Fedora 32, with zlib and openssl installed and tar works normally otherwise
140635897317184:error:29065064:lib(41):bio_zlib_read:zlib inflate error:crypto/comp/c_zlib.c:400:zlib error:data error

I tried other option within adb shell
adb shell
run-as com.sec.android.app.shealth

error - run-as: package not debuggable: com.sec.android.app.shealth
so I couldn't even continue to go and see the folder
cd /data/com.sec.android.app.shealth
ls
cp ....

to list files...  I tried for several application not systemic, user installed but same issue

1.) So, Is it possible to see files of particular app at all if not rooted?
2.) Why backup so small even though each app had 150Mb + data?
3.) Any other way to open backup file, as it looks like is not a tar archive convertible?
Thanks

"Is it possible to see files of particular app at all if not rooted? ". No. See details here: Why are superuser permissions needed to acess /data partition?. What you are trying is not a genuine solution, but just a workaround which may work only on apps built with allowBackup attribute set. If it doesn't work, there's no other way.

Thanks @IrfanLatif I was curious how come is possible to uninstall apps without root privileges, but it seems to me that apps don't actually get removed.  They are however not listed any more via adb shell, but on the mobile still seen (probably just reset to factory default).  So this USB debugging - via adb  don't give you much extra permissions.  I presume that other applications also can't have access to another existing application on the mobile.  New app normally has to request some system permissions via API calls, but not actual access to files also.

User (non-system) apps' data is completely removed if -k options is not passed to adb uninstall. APK file is also removed if the app is not installed for any other user (e.g. a work profile). // App installation is not handled by ADB or the app itself. There are privileged system components which perform [un]installation of the app. Explained in the already linked answer. // Yes, apps cannot have access to other apps' private data.

try again with -system + -keyvalue flags (usage: adb backup [-f ] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|nosystem] [-keyvalue|-nokeyvalue] [<pkgname...>]). just a hint, leave password blank. this way you get unencrypted backup, plain zlib deflate which can be extracted with gzip (no java, openssl). another related issue https://android.stackexchange.com/q/143367


text:
Only get sound notifications from contacts and certain apps
I get a lot of annoying spam calls and texts. I want my phone to only give me a sound notification when someone from my contacts list calls or texts me. So I turned on the Do Not Disturb mode, and selected the priories, so that I only get notifications from my contacts.
The problem with this, is that now none of my apps give me notifications. I still want to get notifications from certain apps, like Skype for instance. So I clicked on the app notifications, to select the apps that I want to override the do not disturb. But I am only given a few odd app choices, not all of my apps. (See photo) But if I turn off do not disturb, I get spam calls and texts all day, which is pretty annoying.
Can anyone help me figure out how I can get sound notifications from my contacts only (Call and Text), but still get other app notifications?
I appreciate anyone's help. Thanks!

Do you have non-stock OS, like Samsung? I'm on a Pixel and (1) the "do not disturb" app menu lists all the apps and (2) there's also a menu called "display options for hidden notifications" that lets me select "no sound from notifications"

I don't think I have non-stock OS. I fixed the issue, with the answer below from svin83. But thanks for the comment. : )

Info
You could be better off with another approach like for example:

Set the notification sounds for SMS and ringtone to an empty audio clip. (no sound)
Add all your contacts to a contact group.
Set your preferred SMS/ringtone sounds for that entire contact-group.

This may be better for long term use since it won't hide and silence notifications of all installed apps.
Note: This may depend on your phone make/model/firmware.
Answering your question
I'll use Skype as an example.
Open app info for skype
Settings->Apps->Skype
Notification settings
Select notifications, then tap the name of any notification category (not the toggle switch).
Then toggle (enable) the option named Ignore do not disturb at the bottom the list.

Thank you so much! This solved my problem!

Glad I could help you out.


text:
What is the PhotoEditorPro greyed out in the Gallery
I am using Android 8.1 in a Samsung Galaxy J7 Prime.
If I open a picture in the Gallery, and I hit the three-dot menu at the top right, there are 5 items in the menu.
The last item is Open in Photo Editor Pro, and it is always greyed out.
.
Which is that app? (link to Google Play)
If I install it, would that menu item become available?
This is what I see when looking for Photo Editor Pro

Google search results indicate that Samsung used to offer this "Photo Editor Pro" feature for image editing, but one or the other Android update removed this functionality. https://www.google.com/search?gl=us&hl=en&pws=0&filter=0&q=%22photo+editor+pro%22+%22gallery%22+%22samsung%22+%22oreo%22

@Firelord - Thanks. Will check the links. From a quick look, I understand the Photo Editor Pro was gone when updating from Oreo to Pie, which is not my case.
I will post more detail.


text:
Disconnected by openvpn server in first two hours
I have setup the openvpn server and client. The client could connect to the server. Then, the server will aways disconnect the client after around two hours(refer to the log of server). And to my surprise, the client shows the connection still on. But I can't send any data from client to server at that time.
Here is the config of server(part):
duplicate-cn
keepalive 10 120
nice 3
verb 0
mute 10
reneg-sec 0

Here is the log of server:
Feb  1 07:59:32 OpenVPN server: peer xxx.xxx.xxx.xxx (client) connected - local IP: 10.8.0.2
Feb  1 09:33:34 OpenVPN server: peer xxx.xxx.xxx.xxx (client) disconnected, sent: 55 KB, received: 56 KB
Feb  2 07:59:08 OpenVPN server: peer xxx.xxx.xxx.xxx (client) connected - local IP: 10.8.0.2
Feb  2 09:34:56 OpenVPN server: peer xxx.xxx.xxx.xxx (client) disconnected, sent: 56 KB, received: 57 KB
Feb  3 07:58:12 OpenVPN server: peer xxx.xxx.xxx.xxx (client) connected - local IP: 10.8.0.2
Feb  3 09:58:20 OpenVPN server: peer xxx.xxx.xxx.xxx (client) disconnected, sent: 70 KB, received: 71 KB

Here is the config of client(part):
client
dev tun
proto udp
remote xxx.xxx.net 2222
resolv-retry infinite
nobind
persist-key
persist-tun
auth SHA1
cipher BF-CBC
comp-lzo adaptive
nice 0
verb 3
mute 10

Here is the log of clinet:
2021-2-3 7:58   VPN profile [client] is connecting to [xxx.xxx.net]. (protocol[OpenVPN], IP[10.8.0.2], interface[tun0])
2021-2-2 7:59   VPN profile [clinet] is connecting to [xxx.xxx.net]. (protocol[OpenVPN], IP[10.8.0.2], interface[tun0])
2021-2-1 7:59   VPN profile [clinet] is connecting to [xxx.xxx.net]. (protocol[OpenVPN], IP[10.8.0.2], interface[tun0])

Hello. Can you show how all of that is connected to Android per se? See [help/on-topic]. You might have ended up posting this question on a wrong Stack Exchange site.


text:
Can I enable USB debugging and recover data via PC from a phone with broken touch?
One of the possibilities is attaching a mouse via an OTG adapter and enable USB debug from there. Or just replace the touch screen, of course.
At the moment, I don’t have an OTG adapter and the cost of replacing the screen surpasses the phones price.
So I am left wondering, is there any other way?

Is your data deleted or corrupted? If not, you may be able to simply to copy the data off the device in MTP mode.

If the screen itself is still working you could do so theoretically. The main problem is that if you have  enabled ABD and connect the phone to your PC a dialog comes up and asks if you allow adb access form the currently connected PC. This dialog disappears if you disconnect the PC (e.g. because you want to connect the mouse via OTG). Therefore you may need to (temporary) use a Android remote control software like  TeamViewer, AirDroid, ...

there is another way (for some ancient devices) https://forum.xda-developers.com/t/bypass-secure-usb-debugging-prompt-on-phone-with-broken-screen.2965462/post-76618122


text:
Get an actual detailed data and specs about current established Wifi link and agreed CAPABs with AP/Sation?
I thought getting this info would be as easy as running old good iw with root but to my surprise it turns out even here Android manages to screw you and your expectations yet again. I've asked around in less tech-savvy communities but got no answer so you are my last resort, SE.
I'm looking to get detailed info about currently established connection. If it isnt obvious when I say detailed info I mean it, I don't care about basic primitive stuff like TX/RX, assumed speed, signal strength and network SSID name, I want to know current established and agreed upon IEEE capabilities between my phone interface and AP/Station. I want to know interval data, used pre-amble, etc. On my Androind 9 based phone iw dev wlan0 link or iw dev wlan0 station dump only returns basic info I can see in the UI already.
Is there some way I can get more exhaustive (but good human-readable) info about currently established wireless connection and its capabilities/specs?
(I do have root and terminal access)


text:
Can I rotate my camera to landscape mode with broken gyroscope?
A lot of sensors on my machine are destroyed, including the gyroscope and accelerometer, because I am a terrible phone owner.
As a result, the camera does not rotate and my steps aren't counted.
Anyway, is there an artificial way to rotate my camera in landscape mode?
Is there some setting or an application I can use to fix the camera precisely?
(I checked a dozen of apps that only rotate the screen, but the camera remains in portrait mode within the landscape mode of the screen.)
My device is Huawei P20 Pro and its OS is Android 10.

Related/possible dupe: Any way to force an app to rotate?

@AndrewT. not a dupe. The other ticket is about a software issue.
In my case I am trying to find software resolution to a hardware problem.

It turned out the Rotation Control App, with its rightmost option, image the same as auto-rotate icon, does the job for me.
E.g., streaming in Facebook is successfully affected, which was my final goal.
More details can be found here:
https://www.phonearena.com/news/How-to-force-landscape-or-portrait-mode-in-apps-like-Instagram-and-others-Android_id78439


text:
Cannot update some apps
I am using Android 8.1, Samsung Galaxy J7 Prime, Google Play Store v 23.8.08-21, Google Play Services v 20.50.16.
Everything installed from the Play Store.
For a few apps that I have installed, whenever I try to update them in Play, they would finish downloading, and start downloading again. After several times, the process finishes and I still have the same old version.
I can still update most of the apps, or install new apps.
For instance, I had this problem with Waze. In addition, the total size that was shown was different from the actual size (36.22MB vs. 78.51MB), but download goes up to the actual size.
I tried uninstalling Waze, to see if this fixed the issue, and now I cannot install it again, so I am in a worse situation than before.

This problem is similar, but not the same, to another I had previously reported Cannot install / update apps
I reinstalled Android in between.
How can I solve this problem?
I have already

Cleared Cache from Google Play Store and Google Play Services.
Removed my Google account and Added it again.
Rebooted phone.

I did not try Clear Data from Google Play Store, since there were people reporting that the phone became unusable after that.

Are the installed apps installed from PlayStore? Because if the app signature does not match the installation may fail. What Android and PlayStore version is installed on your device?

@Robert - I have added all info you asked about

As only a few apps are affected I would try to install the update by sideloading the app from apkmirror.com/apkpure.com or similar web site. As you already have the app installed the app has to have the same cryptographic signature hence you don't have to fear that the downloaded app may be forged or manipulated if it installs as update. Hopefully this fixes the update problems.


text:
Use Android device as external monitor from a Linux box **in a fluid way**
My need is to setup a VR headset with a smartphone inside, displaying the game that runs on a computer. I've done my homework and I already know about all the VNC-based solutions, but here the latency and fluidity are paramount.
I've setup a windows 10 box with the spacedesk software (a server on the pc, a client on the smartphone) and it works flawlessly when I connect the usb cable, setup the phone as connection share and use this direct IP address. I haven't fully tested it but it seems perfect for my need, so I know the hardware is not a limitation.
I want to do the same on a linux box (mint 20) so I tested variations of this idea, using x11vnc. It works but it's not usable for a game (it might be for office work). I get about 1 FPS, many glitches when the image changes suddenly, I cannot imagine to play this way. If I reduce the color space drastically it's slightly better (not even good) but of course ugly.
So my question : are there options I can set to make it fluid ? Is there another protocol better suited ? I don't need the taking control capability, a simple video stream fits my needs, that's an idea I havent explored. I don't mind having a cable attached, so maybe there's a way using adb, I know the reverse is possible but I didn't find a solution to my need.

I am sorry but that VNC does not work well does not surprise me. VNC is old and the protocols are usually not performance optimized. I would suggest to use a different approach: Take the phone as video-streaming client. If you use a codec that can be decoded by the phone in hardware the performance should be outstanding compared to VNC. And the PC could do the video encoding using it's GPU. That should provide a minimal latency.

I would search on "desktop streaming" and "WebRTC" for possible solutions.


text:
Cannot move app to SD card
I am using Android 8.1 in a Samsung Galaxy J7 Prime.
Some apps show a Storage used option. This means they can be stored in Device memory or External storage.
I mean to move all apps to External storage whenever possible.
In some cases, when I select
Storage used -> CHANGE to move to SD card, after 100% completion the app is still in Device memory.
Is there any way to solve this?
Notes:

Cannot move app to SD card: "Not enough storage space" is a similar question from me (although not the same).
I would avoid removing the app and reinstalling, just to try, since I have this problem.

native App2SD is not related to android version, it is a decision of app developer. if app allows it, note that external storage is still another location in your phones memory (emulated storage). you can however map MicroSD Card with [adoptable-storage] as emulated storage location (unfortunately not for FBE encrypted devices with android 8.1)

Does this answer your question? SD card not appearing when formatted as internal

"Some apps show a Storage used option. This means they can be stored in Device memory or External storage." This might not be correct. It's the android:installLocation attribute which decides if the app is movable or not. See my answers to related questions: How to free Internal Storage by moving data or using symlink / bind-mount with Adoptable Storage? and How to move apps from internal to external storage?

@IrfanLatif - I will read your links. In the meantime, why would the OS show an option for choosing the storage location of an app if it is not movable?
If it's the android:installLocation attribute which decides if the app is movable or not, I would expect the OS to check that attribute and show the option as per it.
Otherwise, what controls the appearance of such an option?

I've never been a user of Samsung device, neither I ever moved apps to external storage except for experimenting. So I'm not sure about it. That's why I said might be. Logically you are correct. But you can check the said attribute in the app's manifest to confirm.

Nevertheless i got the feeling you missed the point of my comment. after moving to SD card, app is still in device memory, because /sdcard is still in device memory. see linked question how to solve this from command line, when your ROM does not provide this setting in gui


text:
How to find an exact string on contacts either on Google or Samsung Contacts
I just migrated from Apple to Android and transferred all of my contacts.  Each one of my clients is entered as a contact and under the notes section of the contacts I enter the date when I talked to them and I also enter the date on when I need to contact them again, the dates are entered as a string with no spaces, for example today's date would be entered as February3,2021.  Every day I see who I need to call by just entering the date string into search on my contacts App., for example, tomorrow, I will enter February4,2021 and I will see the names of the people who I need to speak to.
Now that I am on Android I do the same thing but when I enter February2,2021 I am also shown February20,2021, February21,2021..... February29,2021.
I need to find a way to search for an exact string to solve my problem, I tried entering the string under " " and that doesn't work and I have not yet found a way to do this.
I would appreciate your help.


text:
How to debug a broken Google Play store?
I can´t use the Google Play store. I open it and it freezes on the loading animation. How can I debug it to know whats happening? I have free space on flash, I've been erasing lots of apps and documents in case that was the problem, but nothing. What can I do? This is critical as my job VPN access and bank depend on my android, I need the play store to work.
I have android 9 on a ZTE A7
EDIT: Already tried also deleting Google Play Store and Google Services data, but still not working

@alecxs I was not able to uninstall the updates of the application, I didn't found the option. I'm connected to wifi, but I've tried connected to 4g and same error occured. The device is stock with official firmware, and I have no firewall app installed.

Is it really broken, or just appears so? Is your network a factor? My phone/network tries to enumerate some IPv6 WiFi connections, but does so slowly, so I have turned off ipv6 functionality to restore speed over function. This may have been transitory, but I haven't returned to it.

@wbogacz tbh I wouldn't be able to tell the difference between broken or appears to be. My wifi connection never presented issues, in fact I can use all other apps (instagram, reddit, whatsapp, etc) with no problem. I will try the ipv6 trick

Hm.. what else you could try? remove all google accounts. or try to uninstall google play (+ services) from adb shell (at least updates). try older version from apkmirror, apkpure, etc


text:
Photos in DCIM folder messed up - sometimes file explorer frozen
I have a Samsung S8 and I try to access DCIM folder. Once doing so, sometimes the file explorer freezes and sometimes it does not display all the results. Actually I see some old photos on top. If I search for the latest photos I can find by using the photo name, but it seems that the order has been messed up. On the other hand, the gallery shows properly the pictures in the correct order. Do you know why it happens and how it can be fixed?

By "file explorer" do you mean an app or the Windows Explorer on a PC connected via USB to your phone?


text:
How to stop a video from a web page from continuing to play after I shut down web page?
I often play videos that are embedded in a web page.
When I close Google or Chrome, the video keeps playing and I can't find it.
What setting do I need to change so that the video stops when I close the web page?

I think this is simply a bug of latest Chrome.

Go to setting /system. You can turn off Running background app when Google chrome is closed. When web page is closed, it will not play video.
You can reset setting to default.


text:
BlueStacks 4 Hyper-V does not finish booting while Hyper-V is enabled
I am using Windows 10 20H2, 64-bit, with CPU virtualization enabled.
I have enabled Virtual Machine Platform because I use Windows Subsystem for Linux. But I had not enabled Hyper-V when I installed BlueStacks.
I installed BlueStacks 4.0 via this executable: BlueStacksInstaller_4.260.0.1032_native_4176a437bc759281d8303dbcf40bdb72.exe,it automatically detects the settings of my computer and downloads the appropriate edition of BlueStacks.
After installation I started BlueStacks, and it starts fairly fast.
But I found the edition of BlueStacks I have installed is BlueStacks (Hyper-V), however I had not enabled it.
So I enabled Hyper-V in OptionalFeatures.exe, and restarted, and then I found out that it just won't finish starting up, it just stuck at displaying Starting BlueStacks Hyper-V, please wait.
The progress bar is very close to finish point, but it just refuses to go any further, like this:

Finally it said: Could not start the Engine.

I restarted the Engine multiple times and always succeeded in recreating the problem.
I then disabled Hyper-V and rebooted my computer, and I can use BlueStacks again.
However I also want to use Oracle VirtualBox, which requires Hyper-V.
So I uninstalled BlueStacks and downloaded the non-Hyper-V edition, tried to install it while Hyper-V is disabled, and it failed with error:

But Hyper-V is disabled:
PS C:\Windows\System32> Get-WindowsOptionalFeature -Online | where {$_.FeatureName -match "Hyper-V"}

FeatureName : Microsoft-Hyper-V-All
State       : Disabled

FeatureName : Microsoft-Hyper-V
State       : Disabled

FeatureName : Microsoft-Hyper-V-Tools-All
State       : Disabled

FeatureName : Microsoft-Hyper-V-Management-PowerShell
State       : Disabled

FeatureName : Microsoft-Hyper-V-Hypervisor
State       : Disabled

FeatureName : Microsoft-Hyper-V-Services
State       : Disabled

FeatureName : Microsoft-Hyper-V-Management-Clients
State       : Disabled

I have disabled Windows Defender and I am not using any anti-virus software, my computer has 12 GiB RAM and its CPU is Intel Core i5 4430 @ 3.00GHz;
How can I use BlueStacks with Hyper-V enabled?

I have to use BlueStacks because I want to use EKA2L1, but my android phone has a 32 bit OS and I can't successfully install EKA2L1 on it, EKA2L1 supports only 64-bit systems; I tried to use the Windows version, it crashes and says mf.dll, mfplat.dll, mfreadwrite.dll and mftranscode.dll were missing, I downloaded all these dlls and tried to run it again, only to be greeted by another crash: Can't create window! Check if your PC support at least OpenGL 3.1! My GPU is Intel HD Graphics 4600 and I don't have dedicated GPU......

Please do not put extra info in comments. Just edit your post instead. Emulators need special support for Hyper-V (which is also used by other Windows features like application sandboxing and others). Looks like BlueStacks does not yet support it. Other virtualization software like VirtualBox also have big problems when Hyper-V is active.

see:https://developer.android.com/studio/run/emulator-acceleration#vm-windows

Yes, this is because I have enabled Virtual Machine Platform and it implicitly enables Hyper-V, because Hyper-V is a native hypervisor, as long as it is enabled Windows boots as a virtual machine and can only access the emulated CPU and can't access the physical CPU, the emulated CPU doesn't support VT-x, so as long as Hyper-V is enabled performance of hosted hypervisors will decrease.
And I found out that Windows Defender Device Guard is also enabled and it also implicitly enables Hyper-V.
So I used these commands in elevated cmd to truly disable Hyper-V:
bcdedit.exe /set hypervisorlaunchtype off
dism /online /disable-feature /featurename:VirtualMachinePlatform
reg add HKLM:\System\CurrentControlSet\Control\DeviceGuard /v EnableVirtualizationBasedSecurity /t REG_DWORD /d 0
shutdown /r /t 0

After that I can't open BlueStacks (Hyper-V), so I uninstalled it and installed the version without Hyper-V, which is faster because of VT-x.


text:
How to remove white circles around Android icons?
Can anyone tell me how to get rid of the white circle that appears around all the freeform app icons? It seems like a terrible design aesthetic in this case where there is no other solid white in the GUI. I am running an Xperia XZ1 with android 9.0 and there is a setting in the launcher for 'add white circular background' that does nothing when turned off. Maybe I need to downgrade my version of android to 8.0 in order for this setting to work?

by contrast, on a moto g 1st gen running lollipop, the homescreen appears beautiful with all the freeform icons intact. Why is Android taking this path of degrading design?

The "white circle" is just the current Android theme. From time to time Google invents a new "cool" style how icons should look. You can try to change the shape in developer options: https://android.gadgethacks.com/how-to/change-your-home-screen-icon-shapes-android-10-0194758/

well might as well try downgrading to oreo then ..

Android has a built in downgrade protection. Only on unlocked/rooted devices you can downgrade and of course only when there is a lower version for that device.


text:
A strange circle keep appearing since Android 11 Beta update
Recently I updated my Oppo A9 to the Android 11 beta. Since then, a strange sign keeps appearing in the centre of my screen at random intervals. It appears at the centre of the screen, then it stays there for 1 or 2 seconds, and then it disappears.

What is it? How to get rid it?


text:
Device wont show up in Droid Explorer
For some reason the Droid Explorer (and other apps) wont show my Samsung device at all.
The button "Restart ADB" works, but doesn't accomplish anything.

Using adb manually works perfectly and the device shows up too.

Hi, would you mind clicking on the droid-explorer tag, maybe you can already find solution

Can you see it on the USB bus with the device manager?

Droid Explorer requires TWRP recovery


text:
Stop 'in app' ads from loading?
I noticed that ads inside apps are not loaded when Google Play Services' data connection is disabled and kind of formed the idea that it is responsible for loading these ads within the apps.
Is there any particular package (com.google.*) that I can disable to prevent ads from loading, that is, is any particular package solely responsible for this task (loading ads)?
Is there a way to stop these ads by disabling some such package or system app that would still let me use gmail, play store and other such services?
I am not looking for external ad blocking apps.

Apps are self-contained. Even for ads delivered by Google AdMob, there is no ad-system component involved at all. Apps are loading ads and other data directly from the Internet.
Therefore, what you want is not possible. You can disable every app package by Google on your phone, but as long as the internet still works, the apps will show you ads.
The only system package that might be used is the WebView - a component that allows apps to display web pages - and ads are typically web content.
The problem is that many apps also use WebViews for displaying non-ad content, some apps even mainly consist of a WebView and the whole app consists of web pages.
The used WebView can be configured in Android developer options. On some devices, there is a separate WebView component installed, on others, the default web browser or an installed Chrome app is used as a WebView provider.
It is possible to develop an app that provides a WebView with an integrated ad-filter, but I have not heard of such an app.
Ad-blocking WebView
It seems like there are already such apps available. Based on the information I found, Adblock Browser should provide a WebView implementation with integrated ad-blocking (not yet tested).
You have to install this app and make it the default WebView provider as shown in this answer.
However, using that app has one major disadvantage: it is based on Chromium, the open-source part of Google Chrome. Therefore, all vulnerabilities found in Chrome also apply to this web browser. So if you want to stay secure, every time a security update for Chrome is published (which happens some times multiple times a week) the developers of Adblock Browser need to update their project, incorporate all necessary changes, and also publish an update. Otherwise, apps that use WebView for regular (non-ad related) purposes may otherwise be vulnerable to an attack.
In the end, this is an advantage of ad-filtering external apps like Blokada or on the network level in your Wifi network, you can install a gateway like Pi-hole. Both filter apps and Pi-Hole work very similarly. You don't need to update them so often as security vulnerabilities are not so often found in such apps/systems.

I use NetGuard to block Google Ads service requests and it works so well that I don't see a single ad in apps. But you need a NetGuard premium for blocking those domains.
I also restricted my Play Service from internet connections and permissions. This helps a lot in my device. And I don't think you can disable any system app. They still can do anything; at least Google apps can ignore these.

You can use AdAway, it works without root, the only ad it still works is from YouTube. Now I don't see any ads in apps, I see no apps in Chrome too.
Well, of course i still see the Ad Frame, but it get an error showing the ad, so technically you're not seeing an ad.


text:
Why does android has only one zram but linux distros use many zram equal to the number of cpu cores?
Most android roms have only one zram device [zram0] but linux distros use many zram like zram0, zram1 ....
Why is it like that? Does using many zram consumes more power or adds complexity? what's the exact reason?

It's a debatable topic whether or not multiple ZRAM devices add any benefit. E.g. see this: https://askubuntu.com/questions/1171950. Apart from that, you can create as many ZRAM devices as you want on Android too. Pass zram.num_devices=<NUM> parameter in kernel commandline. After boot do: echo -n <SIZE> >/sys/block/zram[N]/disksize; mkswap /dev/block/zram[N]; swapon /dev/block/zram[N]. That's all.


text:
Samsung A51 suddenly turns off
My brand new Samsung A51 Telenor phone turns off after 1-2h in screen lock. We gave it to service, but they said there are no problems. But the phone still powers off when it is not used less and in it is in the lock screen. Does anybody have similar problem?
We also did factory reset, softer reset, cleared the cache, but no use.

The service lies, as usual. Btw, it is very unlikely that they would be some official repair, it is more likely that they are only some company contract, having zero access to any phone documentation or any specific skills to fix the phone. Their real job is to handle similar complaints like yours, but without doing anything (and without needing to pay back the money or giving you a new phone).

Btw, I think most likely the battery is bad in your phone, however your only way to check this, if you buy a new battery and try it. If the problem remains, then you will have two good batteries with a bad phone.

thank you, i give to service again and tell them if no new phone please don't bother to return it to me. :) we will see

It won't work, they won't give it you another phone. They would need to buy it from the producer, exactly like you. If you complain strongly, they accept the phone "for repair", then they do nothing and they give it back as "it is repaired". It worths a try, but the best what you can do if you help the googlers of the future by posting your complains to the internet. And, as you buy your next phone, google for it - maybe others did the same before you...

You have a very little chance that also they will try a battery replace. But even this would mean that they need to work. Phones can not be repaired, some parts can be replaced but that is all. The rules to handle customer complaints were created for washing machines or for refrigerators, these can be repaired.

yes i think you right i get sms that phone work in bound of specification and that noting wrong, so i think that this will not be easy at all. thank you in any way. maybe i can try to root it and put some other rom or custom rom?

If it is a battery problem, or a problem of the battery management hardware, it won't work. I think it is the most likely. In your place I would buy another battery, and if it does not work, then you have a lesson to buy other phones in the future.


text:
Google assistant activate after pressing button on headphones
I'm using Redmi Note 8 Pro (Android 10, MIUI 12.0.2, not rooted) and headphones with one button.
I have turn off Google assistant, however when I press button it activate Google assistant (or some other assistant).
When I listen music and want pause player, I press button on headphones, and instead of pause music, it activates some assistant. This assistant after few seconds say, that didn't understand and music play again.
How to turn off activating this assistant after press button on headphones?

Is the device rooted?

@RockPaperLz-MaskitorCasket No, it's not rooted,


text:
How to set emulator sensor values programmatically?
I'm looking for a way to set the x, y, and z values for the accelerometer sensor on an android emulator for tests using espresso. My test requires that the device be positioned in a specific way and I am aware that the android emulator has extended controls to modify the rotation and movement of the virtual sensors. However, I am looking for a way to do this automatically without needing to use the extended controls or physically moving an actual device.
I have successfully modified the virtual sensors through the emulator console when connecting to the emulator via telnet; however, I haven't found a way to achieve this programmatically. To do this via telnet, I first needed to enter an authentication token, then, I used the following console command sensor set acceleration x:y:z.
I have previously used adb shell dumpsys battery set level <percent> to modify the battery level of the device and I was wondering if there was a similar command to modify the x, y, and z components of the accelerometer.
Is there a way to achieve my goal programmatically, or will I need to aim for manually manipulating either the emulated or physical device during tests?

Have you managed to solve the problem of setting the value of the accelerometer sensor programmatically?


text:
No password screen lock option -- Can it be enabled?
I'm using a PALM phone which for whatever reason has no Password screen lock option.  Only swipe and PIN options.
Does anyone know of a way to get the password option enabled that you typically have with most android phones?
Thanks!

guess that's intentionally because of the keyboard size

@alecxs yes it seems to be true it must be intentional.  Thing you can use the keybaord for everyhting else, why not for lock screen.  I guess a case of trying to make things userfriendly which turns into a fail for some people.  :)


text:
How can I access files downloaded from Chrome on Android 11?
With Android 11 adding scoped storage, I'm noticing I'm not able to access some key folders in my file manager app of choice (Solid Explorer).  In this case, files downloaded via Chrome and it's default save location (on SD). Even trying to open files within Chrome that requires an external app (such as PDFs) will fail and can not open these files. This effectively makes Chrome useless for downloading anything.
I am able to access Android/data in internal storage after granting permission, but not on my SD card. I can't access anything at all.
How can I access my downloaded files now (without rooting)?
I cannot access anything here. And looking at the downloads via Chrome, I cannot "move" files out, just "share" or delete them. And sharing does nothing at all, the file transfer will fail. "Sharing" to Solid Explorer does not work. What other options do I have?

Galaxy S20+ (ATT)
Chrome 88.0.4324.181
Solid Explorer 2.8.9

Even sharing to Google drive doesn't seem to work either...

Upgrade to the latest version of app, 2.8.8. It let's you do that without root as long as you give permissions asked

I am on 2.8.8 but it's all the same. On internal storage, I can see the app folders but none of the files within, on SD I don't even see the folders.


text:
How can I Automate for selected apps to only use cellular data and not Wi-Fi... and vise versa?
I tried doing it myself (On Automate) but it's a bit too advanced. Can I get your help?
Also, I think Android overriding data connection when wifi is on might have to be factored in. I could use Afwall (and Netguard?) to control what connection they use but if the wifi is on, then the app won't be able to use data. For example, on Afwall, I have app x restricted from using Wi-Fi and enabled for it to only us data. But if both WiFi and data connections are on, then the app gets no connection. But if I turn Wi-Fi off, then it will get connected. Turn Wi-Fi back on and no connection again. How do I get around this?
Android 7 | Rooted

On the Apps section, select App in foreground? Tap on the block. On the package option, select your app. Press Save.
On the Connectivity section, select Wi-Fi set state block. Set the Wi-Fi option to On. Press Save. Link the block to the Yes output of Step 1.
On the Connectivity section, select Mobile data set state block. Set the Mobile data option to On. Press Save. Link its input to the No output of Step 1.
On the Connectivity section, select Wi-Fi set state block. Set the Wi-Fi option to Off. Press Save. Link its input to the output of Step 3. Then link its output to the input of Step 1
Your flow will look like the image below. Give it a name, give the necessary permissions, start the flow.

Thank you so much for that Reddy! Really appreciate it! I'm a little confused. You say the 2nd app. There is no 2nd app. It's just one app that I want to use only cellular data...and everything else on the phone to be as normal (when wifi on...use wifi only). Or should I just disregard creating a flow for another app (unless I decide to late). Could you elaborate please? Thanks again!

@JJrussel If only one app, then you don't need 2 flows. Enable mobile when the app is on the foreground. Change the No of the App in foreground? block and enable wifi.

So which one do u go with, 1 or 2? https://imgur.com/0L4orx2

@JJrussel You will combine part of both. I will edit my answer and change the picture when I have time tomorrow.

@JJrussel See edit.


text:
Redmi 4X stuck at boot loop
I removed some apps from my non-rooted Redmi 4X device with 'adb shell' because it was becoming very slow and unresponsive even for basic tasks. The packages I removed following this tutorial are:
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.glgm
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.music
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.videos
Success
santoni:/ $ pm uninstall -k --user 0 com.android.email
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.account
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.mi_connect_service
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.payment
Success
santoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.id
Success
santoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.in
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.mirecycle
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.videoplayer
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.cloudsync
Failure [not installed for 0]
santoni:/ $ pm uninstall -k --user 0 com.miui.player
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.micloudsync
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.apps.photos
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.hybrid
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.screenrecorder
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.scanner
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.securitycenter
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.midrop
Success
santoni:/ $ pm uninstall -k --user 0 com.android.thememanager
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.weather2
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.yellowpage
Success
santoni:/ $

After I try to reboot, it is now stuck in a boot loop. How do I rectify this?
I use Arch Linux so please don't suggest any Windows-only tools that are
not available for Linux.
This phone is close to 4 years old and its battery is quite swollen, hence the screen too has come loose. Other forum threads suggest that it might be a battery issue however I would like to first try out anything I can do to revive this phone.
This is my first question on any stack exchange site so please forgive any errors and give me suggestions on how I can improve.

Removing com.miui.securitycenter was the cause of the bootloop.

As described in this article the reason for a boot loop is corrupted software/corrupted ROM

Not really. Nothing was corrupted. You just removed a system app needed for boot. I agree this package shouldn't be a boot dependency but this unfortunately is the case.
Honestly, with a Xiaomi Redmi 4X, you'd better install an AOSP ROM. Xiaomi doesn't provide security updates anymore.
I suggest you to either install the official LineageOS version (Android 9) or the official crDroid ROM (Android 11)
In general, if you can unlock the bootloader of your phone, go for a custom ROM. If you can't, use the Universal Android Debloater. The nice thing about this debloater is that the packages are documented so you can see what you can delete or not.

Thank You so much! This was the answer I was looking for. I don't want to create an MI account just to install a custom ROM. Also it is my mother's phone and I can't risk any stability issues/risks of a bricked phone.

I reset my phone to factory settings by pressing the power and volume keys together which solved the problem of the boot loop, though it resulted in full data loss(obviously).
As described in this article the reason for a boot loop is corrupted software/corrupted ROM. Hence the best way to deal with this issue is to either reset to factory settings or install a custom ROM after 'rooting' it(as @Robert suggested).


text:
Add standard Romanian keyboard with diacritics to Gboard
Is it somehow possible to install a Gboard keyboard layout for Romanian that has the diacritics  ă â î ș ț as separate keys? Other keyboard apps have it,

but not Gboard.
The ones that are called Romanian and can be added in settings are exactly the same as the English ones, where those diacritics can be typed as special characters under a i s t.
The layouts that are available for Romania in Gboard are generic, e.g.QUERTY, while other keyboard apps that do have the layout I ask for here are displaying it as a specific sub-type,   for example  in Flesky keyboard app it's caled "QWERTY (Romanian)".

In Multiling O Keyboard it is called "Romanian standard", like in Linux.

There's something called "Vlax Romani (Romania)" for Gboard that looks mostly like the screenshot example you have. I guess that's a specific dialect of Romanian (according to Google, at least -- I know next to nothing about the language), but it looks like it could work for your purposes... unless the auto-correct and spell-check are so different that they drive you nuts.


text:
Google play services is crashing my Samsung J7 phone
Google services is crashing my Samsung J7 phone.
I can't disable or force stop the app. The button is inaccessible.
I can't uninstall updates: it tells me "administrator protected",  I need to give permission.
I went to device administrator. When I click on the box (find my device) to disable it, now settings stop working and I go back to my screen.
I tried:

to switch the phone on off
wifi on-off
airplane mode
force stop all google apps
disable from safe mode
disable from settings (through lock screen and security)
also all google apps are crashing too
google chrome, google search, playstore

I still get the " google play services keeps stopping" message.

Disable Wifi and cellular data, clean the app data of google services and reboot the device. Does the service still crash? If not re-enable Wifi and leave the phone alone for some hours (hopefully this will update data and/or app of play services to a stable version).

i cannot press clean app data.  norforcestop or disable.


text:
Nintendo Switch Controller delayed response on Android TV 9
I'm owning a Xiaomi Mi TV 4A that runs Android TV 9. I would like to play games on it with the SNES -aka Super Famicom- Nintendo Switch Bluetooth controller.
Connecting the controller works but there is a big delay after pressing a button and there are random other issues like multiple steps instead of one after pressing the D-Pad in a direction.
Is this an issue with the controller or are there settings I'm missing?
I updated the OS, tried reconnecting the Gamepad and rebooting the TV without success.

Sadly this is an issue with Nintendo Switch Controllers
While Nintendo Switch Controllers use Bluetooth HID, they aren't completely conforming to the specification which means that you'll need a modified driver (and that is hard on Android).
Bluetooth HID (Human Interface Device) is the spec that allows for bluetooth keyboards, mice, and gamepads to communicate with supporting devices.
So I found this project trying to document the interface to the Nintendo Switch. As can be seen at the end of Issue #7 HID protocol for Bluetooth/USB there has been some success on Linux, but Issue #92 for Android has remained unanswered.
Changing the bluetooth driver is a Custom ROM level change. A compatible Android bluetooth driver would have to be made and support your bluetooth chipset and your platform hardware. As you are running TV hardware, I have doubts that any Custom ROMs exist, and then writing a driver supporting the Bluetooth chipset would be a further obstacle.
Based on:
Nintendo Switch Reverse Engineering HID Notes
Issue #7 - HID Protocol for Bluetooth / USB
Issue #92 - How to communicate with joycon in Android platform?


text:
Internet stops working on my home Wi-Fi network until I restart the Wi-Fi
I have a Samsung Galaxy Note 9 and recently I have been experiencing a very weird problem. When connected to Wi-Fi on my home network, the internet frequently stops working. I would still be connected to Wi-Fi, but there would be no internet (little exclamation sign appears). Once I turn the Wi-Fi off and on again, it would start working fine again. This happens frequently (some times the internet only works for 5 minutes then I have to restart the Wi-Fi again). The weird part is, the problem only happens on my home Wi-Fi network, and it doesn't happen on any other devices in my home. So it basically only happens when my phone is connected to my home Wi-Fi. I tried forgetting the network, resetting networking settings on my phone, nothing worked. I am trying as much as possible not to try a factory reset.
I am not even sure if the problem is with my phone or my router. Any thoughts?

Are there other device in your home WiFi network and do they show a similar behavior (to check if the problem is phone or WiFi related)?

Yes there are many devices (laptops, android phones, iPhones). None of them show a similar problem.

I tried a guest network, it didn't work. My router only supports 2.4 ghz unfortunately.

@alecxs I tried a static IP, the same problem happens.


text:
Browser going "Back" by itself
having a super weird issue with Google Pixel 4 XL.
Since yesterday my Chrome (tried later on Brave and something wild like Vivaldi) is acting out.
Opening new tab and going to website like facebook.com/instagram.com/index.hr would start loading the site then as soon as it is loaded it would return back to starting page. In the tab I can go "Forward" to were I was before but it would again go back.
Nice thing about it is that some websites like google.com/poslovni.hr work completely normal and this is not happening.
Then later that day all websites worked normal but now couple of hours later I open same tab again and it literally went back in history page by page to the beginning of the tab.
I've updated to latest Android, restarted, cleaned cache but no help.
Initially was thinking it's Chrome issue but seems that it's on mobile level because it's happening on all installed browsers.
Any idea on what to do in this case?

Web browser often use one process per tab. When the browser "goes back" this could mean that the tab process has crashed. As Chrome, Brave and Vivaldi all base on Chromium it is not unlikely that all three are affected by this problem.

@Robert are there any browsers not based on Chromium? I've tried Edge and Firefox now... Tor Browser seem to work tho. So can I do something about my Chromium issues?

Firefox and Tor Browser both should use the Firefox based rendering engine.


text:
Android seems to be overriding my Messnger Lite app
I am not tech savvy so am hoping someone can help and in a way I can understand. I was trying to free up some space on my phone and moved a bunch of files on my phone to the SD card I have in it. Since doing that I cannot control the notification sound for my Messenger Lite app I have installed. When I get a message and receive the popup notification on my phone from that app, the little popup box with still say Messenger Lite at the top, but instead of seeing the little icon associated with that app, it shows the Android robot symbol. I am just hoping by including that bit of info it will help pinpoint the issue. The best way to describe it is that Android is overriding that app. It won't let me set any custom sound for the app, not even ones that came preinstalled on my phone. I know I somehow combined files or must have somehow overwritten a file when transferring them to my SD card. I tried uninstalling and reinstalling the Messenger Lite app, but that didn't fix it. Can anyone help?

I would assume that the Android robot symbol is a place holder which is displayed if the original icon can not be loaded.

I have similar problem. Notify icon is a robot, but I can change the sound of notification. What's is your android ROM? My is lineage os 16
For notify sound change I am using this Google app. https://play.google.com/store/apps/details?id=com.google.android.soundpicker


text:
ls: /storage/emulated: Permission denied
List all directory in storage with adb :
adb shell ls -a   /storage
.
..
emulated
sdcard0
self

I want to list all directory located in  /storage/emulated:
adb shell ls -a   /storage/emulated
ls: /storage/emulated: Permission denied

Add sudo to list again:
sudo adb shell ls -a   /storage/emulated
ls: /storage/emulated: Permission denied

How can i get the permission then?

Is the device rooted? You have use sudo but you have not indicated if the device is rooted.

How to root my android phone?

sudo on host side is pointless, adb binary is already running with sufficient permissions


text:
How do I run the latest version of rsync as root with SimpleSSHD?
SimpleSSHD is a free (open source, no ads) SSH server based on dropbear that supports scp, sftp, and rsync.
How do I run the latest version of rsync as root when accessing my phone from a remote host?

Download the latest rsync binary:
mkdir ~/bin && cd ~/bin &&
curl --progress-bar -L -o rsync "https://github.com/JBBgameich/rsync-static/releases/download/continuous/rsync-aarch64" &&
chmod 755 rsync && echo 'export PATH=$HOME/bin:$PATH' > ~/.profile

To then use the new downloaded version of rsync as root on the Android phone, use the following rsync command options from the remote host:
rsync -e 'ssh -p 2222' --rsync-path='su -c /data/user/0/org.galexander.sshd/files/bin/rsync'

You'll need to add the source and destination and other rsync options. See the man page for what these listed options are doing :)


text:
How do I backup Internal Storage to PC or OTG Drive without it changing folder and file modified dates?
I'm on Android 11 and I want to backup my files to a drive but I don't want it to change the modified date for folders and files...

Best way to preserve such attributes is packing all files into a TAR archive. You can create it via adb and directly save it on the PC: adb exec-out 'cd /sdcard; tar -cf - .' > backup.tar

what if i want to save it in a different drive? sorry i dont know a lot about adb..

What do you mean "different drive" as USB OTG stick or a drive on your PC?

portable ext hard drive, just start the command prompt where i want to save the tar?

An external hdd is fine. Just place the path before the backup.tar (specify an absolute path like F:\backup.tar on Windows.

after typing the command it makes a corrupted tar file that i cant open that's around 1kb....

adb pull -a /sdcard preserves mtime

@alecxs not for folders though...

Make sure you have adb installed on your PC, enabled on your phone and your phone connected via USB. Try adb shell first. if that works use the backup command. If that still does not work open the created file in an text editor and read the error message.

@Robert adb shell works. This is what the error message says /system/bin/sh: cd /storage/emulated/0: inaccessible or not found
/system/bin/sh:  tar -cf - .: inaccessible or not found

/system/bin/sh: cd /storage/emulated/0: inaccessible or not found /system/bin/sh:  tar -cf - .\: inaccessible or not found

Does this answer your question? How do I backup media, game data (internal storage) using TWRP?

Does this answer your question? ADB pull stops after first error

How do I restore it directly to my phone after backing up using tar in your linked post


text:
How to achieve factory-reset or bootloader mode for Flywheel (Glorystar Nebula rf3288) tablet without buttons?
I've gotten stuck trying to upgrade a Glorystar Nebula 15 kiosk Android tablet (as customized for the orphaned Flywheel spin-bikes) to a vendor-provided single-file Android 7.1 firmware image (7.20191202.115231.img, 715MB).
A special challenge here: this tablet has no physical buttons whatsever: no power, no volume controls, no home. (It simply turns on whenever power is supplied; there's a click power toggle inline on the DC power cord plugging into the back. It's got no battery for unplugged use.)
Following the vendor's instructions (using a Windows AndroidTool program 2.35), it was able to 'Switch' to detecting a LOADER device, and appeared to write firmware - but after a lack of progress ending on a log line mentioning 'Success', I disconnected & power-cycled in an attempt to view my hopefully-fresh-new-stock-Android7.1 tablet - and instead found it in a state where it never proceeds past a 'GS' logo boot screen.
Currently, from this GS screen:

the tablet only ever appears as "Found One ADB Device" in the Windows AndroidTool, whereas previously it could 'Switch' to "LOADER"
it can be detected via adb from MacOS – but oddly, not via adb inside the same Windows10 VM for which AndroidTool was sorta-working.and, adb shell commands give a error about the sh-path not being valid.
adb can reboot it into recovery mode - but without physical buttons, no navigation/selection from the recovery menu is yet possible, and it does not appear to adb or AndroidTool in this mode
adb can seemingly also reboot it into bootloader or fastboot mode; in this mode it no longer appears to MacOS adb, but does appear in MacOS fastboot devices list. However, attempting to connect the tablet while in this mode to Windows AndroidTool still only ever shows "Found One ADB Device" (or nothing)

I'm looking for any path out of this dead-end state that allows a re-attempt of the flashing the original vendor single-file firmware IMG, or other potential Android 7.1 firmwares.  For example:

I've found a header on the motherboard with pins GND / PWR / HOME / ESC / V+ / V- / MENU / K2 / K1. However, hand-shorting PWR or V+ to GND with a small wire (alone or together, at the 'recovery' menu that's supposedly looking for vol-nav inputs or other times), has had no visible effect since the tablet's been in this state.

Can the vendor's single IMG be broken into the smaller more-specific parts that fastboot seems limited to flashing? Can applying those, or some other, smaller steps restore a true "Found One LOADER Device" mode, such that the AndroidTool might be able to make another attempt?

Etc – open to whatever gets Android 7.1 on this device, including, at this point, all-or-nothing gambits to resuscitate or brick it.
Any ideas?

For your device you should use a touch based recovery as you don't have any buttons. If you don't found a pre-compiled recovery for your device, look for another recovery or compile your own. You can also try to use this library to compile the recovery. Once you've got your recovery follow these steps.

Enable Developer mode in Settings.
Turn on OEM unlocking.
Connect your phone with USB cable.
Allow computer to access ADB.
Now execute the following commands...

Reboot from ADB to bootloader.
adb reboot bootloader

Should reboot the device to fastboot mode.

You might need to know your unlock code.
fastboot oem get_unlock_data

You have to send this code to the OEM and they should give you another code.

After that you can try to unlock the bootloader.
fastboot oem unlock bootloader your_code_from_oem

This step is necessary for Motorola devices, but not sure about others.

Then you should flash a recovery.
fastboot flash recovery recovery.img

Make sure you're flashing the correct recovery.

Then reboot into recovery.
fastboot reboot recovery

This should boot up the touch based recovery.

If you're done with all these steps then you've successfully unlocked your bootloader and flashed a custom recovery on the device. Now you can wipe the device including the OS.
Note: when you lock/unlock your bootloader your userdata is automatically wiped. If you don’t want to flash a custom recovery that’s fine, just simply unlock and relock the bootloader.

Thanks, this is useful! However, I'm currently away from the problem device so can't yet try the steps for a couple days. Also, there's no TWRP clearly fit to my device, nor is it clear that the compile instructions include enough details/resources to build something for this device. (Right off the bat, they mention OS builds – like LineageOS or Omni – that are neither part of the current nor intended state of the tablet.) But, I've discovered its current state is in some sort of OEM lock, so your tips about that step are useful (and may require OEM followup.) …

As the bounty deadline is coming up, I'll award it, though I'm not sure yes this actually solves my problem. Is it the case that after achieving a touch-based recovery mode, that mode would then be able to apply the single 7.20191202.115231.img file somehow, in each of its segments – such as from an SD card? Or must it somehow be decomposed and flashed to each of the separate partitions using other adb/ fastboot commands?

After some research, I found that Glory Star has a support group that mentions a solution to this in their community.
There is a video on the link there where it shows a step-by-step procedure on how to update it back to the Android firmware. I tried it and it works. The only thing is it only supports Android 5.1.
I have tried it and it works, but not been able to have Google Play in it.


text:
How to repair/fix SD external SD card at 0 Mb?
After installing LineageOS 17.1 on my Xiaomi Redmi Note 7, the wizard offered me to use my sd card either internal or external storage. None of the options work.
If I select internal, the wizard crashes, if I select external, it goes through but then ask me later the same thing "SD card is uncompatible, do you want to format it as internal or external ?"
etc.
So I tried to repair or wipe it through TWRP recovery, and it gives me "Error code : 1".
TWRP shows the external SD is 0Mb. I don't know if it means it's detected and corrupted, or maybe not detected at all.
Then I tried to put my microSD card in an SD card reader in my Windows 10 Thinkpad T420, and it doesn't even show up.
I read several threads here and there. I already tried to use partitionning tools (3 of them), but the SD card doesn't show up there either. No "blank" partition shown or even a drive letter appearing.
Nothing.
I tried Play Store apps that could fix it but it was impossible.
I was wondering if I can repair/fix/reset/erase SD card so it will show at least my 32Gb blank partition on my laptop.
I'm able to use fastboot/adb shell or any command line solution.
I saw a solution using "parted" but it doesn't come included in TWRP, I should flash an old recovery, not recommandable I think.
EDIT : What I additionnaly tried.
Rooted my phone, and tried to use Aparted app, failure.
Tried from diskutily on my mac, "last block couldn't be written"
Tried on command line using diskutil erase on my mac, failure.
Tried filling the SDcard with cat /dev/random and then formatting.
Created a GPARTED USB live. The SDcard finally appeared after several times in/out but resulted with "impossible to create partition table"
Everything results with different code errors, depending on the machine (Windows, linux, OSX, Android...), I'm getting scared that the SDcard definitely died.
Thanks in advance for your answers.
Cheers

parted is dangerous tool, i recommend to use gparted instead. anyway you can just adb push parted binary to /tmp https://android.stackexchange.com/q/219992

Hi thank you for your answer, I'll give a try to Aparted, but I need to root my phone first. (It's the first time I install a custom ROM on this phone and I dddn't need root for my usage so far). I'll do it tonight.
Regarding Gparted, it's only a tool for linux if I remember well ? I don't have a linux machine at the moment.

try UNetbootin Xubuntu bootable usb flash drive

Yes I thought about creating live USB, will do if nothing else works.
I tried Aparted and ApartedPro tools. Aparted detects a corrupted sd card and offers to fix the sdcard, and says it has been fixed, however still showing 0Mb in Aparted app then.
ApartedPro shows a 32Gb Free Space when opening the app, then I try to format it to Fat32 or EXT4, and it fails with "Error formatting the partition No number detected"

Hi again, I tried to do it through disk utilty in MacOS, the SDcard shows up but when I format it, it says "impossible to format last block" (in french).
I tried Gparted Live on my Windows laptop, and the SDcard won't show up.
I cannot use Gparted Live on my mac because I need a physical keyboard and I just have a bluetooth one... Looking at other options, maybe command line ?

consider sd card is corrupted (emmc wear-out)

Hi, thanks for your help anyway ;-)


text:
How do I restore a tar Android backup directly to my phone?
Android 11. I made a backup of my Internal Storage using this:
adb exec-out 'tar --create --exclude=data/media/0/TWRP \
data/media/0 2>/backup-errors.txt | \
gzip' | \
dd of=sdcardbackup-$(date +%Y%m%d).tar.gz && \
adb shell cat /backup-errors.txt

But how do I restore that directly to my internal storage after formatting?

https://twrp.me/faq/openrecoveryscript.html

guess something with exec-in - are you running adb from windows or linux host (there might be issue with carriage return \r on windows)?

@alecxs windows...

on windows exec-out always corrupt files this way, the only reason why it works gzip files missing newlines

what do i do???

suggested several alternatives. however on linux this will work: 'adb exec-in "gzip -d | tar -px" < C:\adb\sdcard*.tar.gz'

no way of doing it on windows with .sh ?

what is windows with .sh? from your question can see you are running dd and date from host, therefore i don't think your host is plain windows cmd.exe? is this wsl bash? have you tested?

running it as .sh file

.sh files are linux shell files they can't run on windows by default. furthermore a script is just a substitute for batch processing cmd lines, that still requires all the linux core utils used within script. if the above cmd did not work, how can it work from within shell script?


text:
How can I make my Samsung Galaxy S9+ install unsigned applications?
I have root on my phone, and also Lucky Patcher patched the signature verification stuff (both of them). I have rooted my Galaxy with Magisk and Odin (using PC). I can't patch "dalvik-cache" whatever that means, and I have a suspicion that that is why my unsigned apks install, but crash straight after opening. It's not the app, as I can use them perfectly well on an emulator. Does anyone know how to get past this problem? Thanks!

Android can not install unsigned apps/APKs, the APK signature is always checked when you install it. The only way would be to manipulate an already installed app. Upon installation the APK file is saved, some files extracted and the DEX files are pre-compiled using dex2oat on modern devices using ART runtime. Those extracted files and the APK itself can be modified but that isn't that simple. I assume that is Lucky Patcher is trying to do and fails.

@Robert Maybe some signature could be updated in some apk manifest?

@peterh-ReinstateMonica You can of course re-sign an APK file with a self-generated key pair. But then Android would not allow to install this app as an update of an already existing app because the keys do not match. On a rooted device it may be possible to change the files where Android saves the info which installed app is signed by what key, but I never did this before and don't know how complicated such a modification would be.

Check whether apps can support your android OS version.
You can turn on Allow installation of app from unknown sources. Go to setting / security / turn on Unknown sources option.

"Allow installation of app from unknown sources" -- this wouldn't make a difference. Unsigned apps cannot be installed. See https://source.android.com/security/apksigning


text:
Factory Reset not working on moto Z3 play (beckham)
I have a moto z3 play (device name beckham) which I can't factory reset now. What happens is when I go to Settings > Advanced > Reset options > Erase all data (factory reset) but the phone simply restart back. I also tried going to fastboot mode and running the command from there and the behavior ends up the same. My third try was to just do like this post but when I run the fastboot commands it fails with the error:

$ fastboot erase userdata (bootloader) has: not found Erasing
'userdata'                                 FAILED (remote: 'unknown
command') fastboot: error: Command failed $ fastboot erase cache
(bootloader) partiti: not found Erasing 'cache'
(bootloader) Invalid partition name cacheiti FAILED (remote: '')
fastboot: error: Command failed

Any idea on that? Thx
Edit All attempts were made in both USB 2.0 and 3.0
Tried in another pc (all of them linux) and also with older version (r30 and r25.0.4) of fastboot, the error gets even stranger since each time gives a different output for same input:
[$ platform-tools]$ sudo ./fastboot devices
0048267113 fastboot
[$ platform-tools]$ sudo ./fastboot erase userdata
erasing 'userdata'...
(bootloader) Invalid partition name userdataon-type:us
FAILED (remote failure)
finished. total time: 0.001s
[$ platform-tools]$ sudo ./fastboot erase userdata
(bootloader) slot-co: not found
(bootloader) slot-suffi: not found
(bootloader) partition-typ: not found
erasing 'userdata'...
(bootloader) Invalid partition name userdataon-typ
FAILED (remote failure)
finished. total time: 0.001s
[$ platform-tools]$ sudo ./fastboot erase userdata
(bootloader) slot-counttyp: not found
(bootloader) slot-su: not found
(bootloader) slot-suffi: not found
(bootloader) partition-typ: not found
erasing 'userdata'...
(bootloader) Invalid partition name userdataon-typ
FAILED (remote failure)
finished. total time: 0.001s
[$ platform-tools]$ sudo ./fastboot erase userdata
(bootloader) slot-counttyp: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-su: not found
erasing 'userdata'...
(bootloader) Invalid partition name userdataon-typ
FAILED (remote failure)
finished. total time: 0.001s
[$ platform-tools]$ sudo ./fastboot erase cache
(bootloader) slot-counttyp: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slo: not found
(bootloader) partition-: not found
erasing 'cache'...
FAILED (remote: unknown command)
finished. total time: 0.000s

$ fastboot format:ext4 userdata;
FAILED (remote: 'unknown command') fastboot: error: Command failed
it is like the device is not accepting any fastboot command, also oem unlock commands failed if this info helps..

you could try mfastboot not sure what's the difference, maybe it has more privileges

well, mfastboot worked at least for the erase userdata/cache commands but still not working for oem get_unlock_data.. thanks for the help

maybe first oem unlock in developer options must enabled for get_unlock_data

yep, it is enabled


text:
What happens if I modify ro.product.abilist64?
I'm on a 32 bit SO (64 bit hardware). I built a 64 bit app, and somehow when it is built, it just turned to 32 bit (the app). So if I just add the arm64-v8a abi it should install?
I'm not asking if it will gonna work, of course will not work im just curious about it. I didn't found nothing about change it. Also I think my system will bootloop. I already saved the file, I just need restart  the phone.
Edit: I just can't bootloop my device now, because my phone number just got blocked so if I reset my phone I will lose my Signal/WhatsApp.

Yeah, it got stuck in bootoop. But it was different from these bootloops, the phone didn't reset, it just kept playing the animation forever and forever (3 minutes)...
hopefully, i have vim on my android so i could edit without my pc and then back to normal. I hope someone read it before do it.


text:
How can I turn off an Android phone in the same Ethernet remotely using a Windows computer?
As in title: How can I turn off an Android phone in the same Ethernet remotely using a Windows computer?
They are in the same Local Area Network and connected to the same router, the Android phone is connected to the router via WiFi and the Windows computer is connected to the router via a cable.
I have tried numerous times to get a solution using Google search with different keywords, and objectively Google isn't very competent in understanding complex sentences and I can't get what I am looking for, see for yourself what the results Google gave: Google: How can I turn off an Android phone in the same Ethernet remotely using a Windows computer?, most of the results are exactly the opposite of what I intended to achieve.
I want to connect to the phone wirelessly and send commands through WiFi.
I figure I need to use either Telnet or SSH to do this, log into the Android device remotely and use
Android terminal commands to shutdown the phone.
Unfortunately I have tried telnet and here is the result:
C:\Windows\System32>telnet 192.168.1.3
Connecting To 192.168.1.3...Could not open connection to the host, on port 23: Connect failed

I know what this means, this is because telnet port is not open and the telnet server isn't online on the Android phone by default.
So naturally I need to install some application on the Android phone that runs the telnet/SSH server and opens the telnet/SSH port, and setup a login and password, so I can connect to the phone remotely and it has to somehow execute the commands.
The phone isn't rooted, but I have Android Studio and the phone does have USB Debugging, what tweaks do I need to make in order to enable remote logging?
And I don't know how to use Android terminal, is there even a command line interface shell on Android? I don't have any experience with this, however from what I have learned Android is based on Linux and I have some experience in Ubuntu 20.04 LTS WSL, I know I can use these commands:
sudo power off
shutdown -h now

Android must use something similar.
How can I achieve this?

The suggested duplicate: How can I shutdown my Android phone using an adb command? doesn't answer my question because it shuts down the phone through USB while I have explicitly stated in my question that I want to shutdown the phone wirelessly through WiFi connection.

Does this answer your question? How can I shutdown my Android phone using an adb command? (note adb over Wifi has to be enabled first)

adb shell reboot -p

The solutions in the linked duplicate merely uses adb to execute commands in a shell. If you can find a way to do that without using usb (adb wireless /ssh) than they would work pretty much the same way.

Shutdown as a command requires root
The simple answer is you can't perform a shell command from within an app for shutdown an Android system unless your device is rooted.
For performing the shutdown command on Android special permissions are required. When triggering a shutdown via UI the command is internally forwarded to a component that has the permissions to shutdown the system.
But regular apps (and therefore this applies also to all processes like telnet or ssh started in the context of an app) don't have this permission and thus can't shutdown the system.
Workaround: shutdown via adb over IP
Executing the command shutdown -p via adb should power off your phone.The problem is that adb by by default only available via USB connection (if you have enabled developer options and adb). The only workaround would be to connect your phone after booting to a PC and enable adb access via IP. This would be then allow a sort of telnet (via "adb connect IP" instead of telnet).
Warning: ADB over IP is really equivalent to telnet which means that it's data  is transmitted totally unprotected in plain text on network level. Therefore you should use adb over IP only in safe networks.
See also this question: How can I shutdown my Android phone using an adb command?


text:
How to fake a 4G connection?
I need to find a way to mock 3g/4g, so applications think they are connected via data(3g/4g). But in reality, I am connected to wifi.
My device is running Android 9 (Pie) with Magisk & EdXposed.

Hello. Can you mention why you want to do that? Perhaps your original problem can be solved in a different way.

a game requires wifi for download resources, but it is useless, so he have a option for only download on Wi-Fi, so if i are connected on Wi-Fi he download, but in 4g no, so i need to mock my wifi

Have you tried existing xposed modules like https://play.google.com/store/apps/details?id=eu.chylek.adam.fakewifi

yes, but this is for 4g to wifi, i need Wi-Fi to 4g


text:
How to get stock recovery image for Bauhn Amid 972xs?
I'm trying to port TWRP recovery for Bauhn Amid 972xs (Amlogic Meson6 g04 customer platform) just to get some more life out of the device. The device is running android 4.0.3, my problem is I cannot locate the recovery.img that I need for porting TWRP using kitchen. The device is rooted so I can read the contents of root. It is also using Android system recovery <3e>. Any help is appreciated!
CPU: Amlogic Meson6 g04 customer platform
Vendor: Amlogic
Family: Cortex-A9
ABI: armeabi-v7a
Revision: r3p0
Kernel: Linux version 3.0.8

So effectively your question is what command to execute/which partition to save to dump the installed recovery ROM into a file. Is that what you are asking?

Yes, if that's how I could get the stock recovery. I'm fairly new to linux so if you could point me on some guides on how to do it or briefly explain how it's done I appreciate it. Thanks.

There is no "recovery.img" as a file, this is a partition. See these two articles: Android partitions explained and Making Dump Files Out of Android Device Partitions

thanks for these, will check these out. I'll just update for any progress