text:
Missing storage space in Android 7.0

Where did all the missing space go? I've deleted most of my apps, but no matter how much I get rid of it keeps saying I'm almost out. The stuff I have accounts for 3.5 GB-ish, but there's lots that seems to have disappeared. The version is Android 7.0; the phone is a Samsung Galaxy S5.
What's going wrong here?

You added the tag storage to your question, and there are nearly 500 questions associated with that tag. Have you investigated those, even only the ones with accepted answers? Hover over the tag and click the link view tag to take you to a list of related questions to explore.

How disk space is used on Android device?

Never seen this before!
Anyways here is the steps i would do:
1. If you are sure that the 15.9/16GB is wrong, e.g you know you haven't got that many apps/videos, then proceed to step 3.
2. If you know you have got like more than 50 apps or really many videos, take some time and delete videos/apps (of course images, otger files too) that take much storage.
3. Go to Setting > Device Mainteance and then clean everything you can (optimize the phone)
4. If that doesn't work go to like a phone reparator and check what they can do.


text:
Android battery monitoring method
Android phones powered by a constant 4v DC external supply (no battery) still show battery charge diminishing to low battery warning. Switching the mains off and then back on and restarting the phone restores the battery meter to 70% which then starts depleting again.
How does Android do this without sensing the actual "battery" voltage?
How does Android decide that this non-existent 4 volt battery is flat and needs recharging?

Usually there is a special battery controller chip (IC) in your phone which is always active even if the phone is switched off. This chip does the calculation on whatever base.
Android running on the main CPU just queries this special controller, retrieves and displays the values.
For a more detailed answer see How does charging a phone battery work?.

source: Stack Exchange

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

sort: votes


text:
Data recover/transfer from a disk image
Situation. I have a .img disk image file obtained from a .vmdk file via a virtualbox conversion, the latter being created by an Android 4.4.2 emulator. I'm trying to recover some app data and transfer it to a new, working, .img file.
What I did. I extracted APKs and copied app data folders (com.devname.appname) from/to the /data/data directory. I did that using a file manager and via Ubuntu terminal. I also attempted to copy the folders to /Android/data. Although cp -ar retains files permissions and ownership, that was of no use after the import into the working image.
The problem (and a workaround). When the APKs are installed, a new uid (in the 10000 group) is generated for them. These values are unknown when I import the data folders, hence they are destroyed at phone boot. A log in /data/system/uiderrors.txt confirms this. The only way I could make it work was to install the APK, run the app so that the new data folders are created with a proper uid, replace those folders with old ones and fix ownership and permissions accordingly (for every app). This turned out to be effective, but it's a very tedious and error-prone process.
Is there a proper way to achieve this result?
Probably noteworthy:

Folders are copied after the APK is installed. The APK won't install if folders are there already.
Original image has some Android data corrupted, so it cannot be mounted in the emulator. loop mount works properly, though.
I didn't modify packages.list and packages.xml files (should I?).

This problem exists even for popular/common backup-restore apps such as Titanium Backup; I know of no way to rectify it. +1 and would like to see a solution as well. It would be of less significance after Android 8.x though - now the name of APK folders are hashed too so you can't figure that part out either.

Thanks. I wasn't aware of that change in Oreo, good to know. I was also wondering  how backup apps and ADB backup/restore commands handle file permissions.

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


text:
Can't get to fastboot. nor twrp nor OS - Xiaomi mi 5X/A1
I'm having a problem with my Xiaomi mi 5X and i wondered if someone on this forum could help me solve it.
As i said, i have a Xiaomi mi 5X but i changed its firmware and OS to the one of Mi A1 (Android One).
Today I was trying to install on my device the GCam app, with the tool Mi A1 GCam.
After I clicked the "Enable HAL3, EIS and install" the phone went dark. Now i can't boot into the OS, nor the twrp nor to the fastboot mode. When i try to do it i have to hold down the power button and corresponding volume key for several seconds and the Android One boot screen appears but just in a flash, and goes dark again.
Can any of you help me, please?
Thank you

Have you tried using adb?
If you haven't got it already, download the SDK tools for windows from https://developer.android.com/studio/ under the "Command line tools only" section, and unzip it where you want.
Once you've done that, open a command prompt in the platform-tools folder within the SDK directory. The command
adp devices

will tell you that your device is connected. Then you can try
adp reboot recovery

If that doesn't work, install the universal adp driver and try again.


text:
I used "FIND MY DEVICE" feature. Now phone wont start
I went to Google Dashboard - Find My Device and tried the PLAY SOUND.
The phone got into non-responsive state.
I tried to reboot the phone, but now my phone doesn't boot.
Device is XIAOMI REDMI NOTE 4
Please let me know what should I do!

What do you mean by non responsive? Is it not restarting or powering off?

@Weezy it is not going beyond splash screen. Does the phone get bricked by this feature of android ?


text:
How do I control how many processes run in the background on Android Marshmellow 6.0?
My tablet has a tendency to run kind of slow, and I think it's because there's too much running in the background.  How do I control how many things get started at one time?

Do you have root?

@IrfanLatif No, it isn't jail broken.

Then you are left with Running Services in Developer Options. But that's not as helpful as rooted device can be.

@IrfanLatif I found 3 ES File Explorers running in background services!  Thanks!

Yes ES Explorer is a battery hog sometimes. Use Solid Explorer or MiXplorer.

@IrfanLatif You mean Memory Hog?

Yeah. A piece of software consuming one source heavily usually consumes others as well


text:
Enable Dark Screen on Samsung
I'd like to try out the dark screen mode on my Galaxy J7 max but the option has been greyed out and I was wondering why. Any clues? This option is found under Accessibility>Vision

Make sure that your device is updated to at least Android 10.
Slide down the notification and settings shade.
Depending on how you've organized your system settings in the pulldown menu, you may need to swipe over a screen to see the dark mode setting (it has a moon icon).

If you turn on the talk back feature, dark screen will work but if you turn talk back off, dark screen stops working. I think this is because it was only made for the purpose of privacy for people who have bad vision and need talk back.


text:
Termux says file does not exist but it does
A while back I installed nano on Termux and it worked fine, but when I accidentally tried to copy a file into a nonexistant directory at nano's location, nano wouldn't run. I checked and the executable is still there with the object code and all. If I chmod -x nano and run nano, it says nano has wrong permissions but using chmod +x nano and running nano says there is no such file or directory. The same thing happened when I tried installing Haskrll stack. First I tried installing a non-ARM version accidentally, but when I found the correct ARM executable, it had the same issue as nano. I've looked around for solutions and some answers to other questions say the issue could be trying to run from sd card but it used to work so I don't think that's it and don't know of a way to check. Also, all other executables in nano and stack's directory (and all other directories) work just fine.

Seems SELinux issue. Did you try restorecon or setting SELinux permissive? Secondly paths isuus occur when using absolute executable paths while LD_PRELOAD is set.

The thing is, I tried with UserLAnd it doesn't the same issue with stack. Passing binaries in between UserLAnd and Termux doesn't work unless I compile statically. I think the issue is, that as Termux's directories are organized differently, the binaries can't find the .so files. Could SELinux still be an issue? I don't really know what it is. Also, would you know why Termux and UserLAnd say the dynamic binaries don't exists when I try running them?


text:
Security related concern for my android phone
i purchased an android  mobile and had my google account set up but the device later went faulty and would not turn on, so now I got the same brand phone exchanged. meanwhile I have also set up my google account to delete itself if at all my faulty phone comes up as the seller took it back. Should I wait before setting up my new phone or will it cause my new phone to not setup properly. How does google's device security detect my account login from a device based on the brand or OS or based on MAC address?.


text:
Why does Samsung's Always On Display not work on some not so old Galaxy devices?
Samsung's Always On Display (AOD) has minimum and targeted API 24 i.e. Android Nougat 7.0. It runs on all the latest Galaxy smartphones including, but not limited, to A5 (2017), A7 (2017) and even the much older devices - S6 and S7.
My Galaxy A9 Pro (2016) got updated to Android Oreo 8.0 today with no AOD whatsoever. It had Marshmallow out of the box (S6 had Lollipop). So, I tried sideloading the AOD's untouched APK I obtained from a trusted source. It failed to install, without giving any error message.
Whereas, on the previous Nougat 7.0 OS, I had successfully sideloaded the APK though it never worked. Also apparently there already exists a package with the same name as the APK I try to sideload but maybe it is disabled permanently. So, the quick-install-after-a-reboot trick worked sometimes. It did add the Always on Display option in the Settings app but it always crashed when opened.
What's the reason behind this behaviour? An app which is supposed to run on lower API 24, doesn't work on API 26 even though the manufacturer is same and the hardware isn't much different than the above listed Galaxy smartphones.

Just a guess, but it could be that there's a Samsung-specific API that is not implemented on Galaxy A9 Pro, which makes it crashes when accessed (are you able to get the log using ADB/logcat?). Unfortunately, I don't know much about how Samsung's customization works...


text:
Find Your Device doesn't lock/erase or indicate it will be completed when phone is online
I don't believe these exact questions have been answered, so would appreciate your help!
I lost my Samsung Galaxy S8 while it was on airplane mode. I have been checking Find Your Device frequently, but I have seen no change in the date it was synced (which is the day before I lost it), nor have I been able to locate it.
I tried locking it, but after inputting the information the screen gets stuck in “Trying to contact your phone…”.
I also clicked “Yes, erase” in the “Consider erasing your device” section. The words “Trying to contact your device to erase it…” showed up in the bottom left corner and disappeared within a few seconds. I was left with a screen saying that I could restart these steps at any time:

When I go to the Find Your Device homepage again, there is no record that I tried erasing the phone. The “Yes, erase” option is still there. I tried it multiple times from both of my Gmail accounts. How can I tell that the erase command was sent and will be completed as soon as the device is online? And how can I tell if it has been erased? I did not receive any emails about it.
I did sign out of my Google accounts remotely and change my passwords. Is that why it doesn’t work? I thought I would still be able to track the device after those actions, but I don’t know if I can still lock the phone or erase it. I don’t actually know if the signout and password changes worked, though, because the phone was on airplane mode when I lost it.
Any other advice would be great. Thanks!


text:
Does deleting a gmail account from one device erase all the activity for that device in the my activity section.
My s.o. found my activity in our shared account. I deleted the account from my phone. Will that erase for clear the activity for that device in the account history.

What kind of "activity" are you talking about?

Everything that I searched,  every app I used,  it even showed when I used a secure folder.. every thing I have done showed up. Lol

you may wanna check this out id you want to delete your complete google history
https://support.google.com/websearch/answer/465?co=GENIE.Platform%3DDesktop&hl=en

No, removing a Google account from a phone doesn't affect Chrome history, Google search history, or app installation history from the time before you removed the account. You can clear all the activity from the account, but you can't only clear the activity that was from a particular phone.
It's like if you use Facebook on a friend's computer and then log out of Facebook from that computer. Logging out doesn't remove the Facebook posts you made while you were logged in. You can't automatically delete all the posts made from that one computer, because they're associated with the account, not the computer you used.


text:
Why does a charger charges one phone but not another?
I have a charger that came with my phone, Huawei Mate 9. I recently bought another phone, Xiaomi Pocophone X1. I tried to charge the new phone with my charger (and cable) and it went into boot loops and ended up draining the battery instead of charging. I then connected it to the charger that came with it and it charged fine.
What caused this difference? I'm asking since I want to buy a backup charger and want to know what to look for (other than buying a Xiaomi original)

Strange, I would think that the Xiaomi would just go into slow charging with a non-OEM cable unless both Huawei and Xiaomi uses a similar but different protocol for each of their proprietary fast charging solutions.

To add to @MorrisonChang comment, both of them (OEMs) do not share the slightest hint about their proprietary technologies. In theory, what you faced shouldn't happen but since it did, you are better off buying a spare charger from them, rather than bother with reasons in my opinion


text:
Is there a way (not date) to number photos sequentially.
My regular digital camera assigns numbers sequentially.  My Android 8.0 Galaxy S8+, after the date, assigns random numbers to each picture. If copied to a computer the pics all become "created" at the same time. I'd like them numbered in the sequence taken. Samsung says it's a logarithm naming matter and what I want "can't be done". I don't believe that. It's a computer. Why wouldn't it be able to do it?

Is it a random number or the time? Ex: 20181102_154430 Being Nov 2, 2018 @ 3:44:30 PM

"If copied to a computer the pics all become "created" at the same time." That means you use MTP to copy them, right? It's MTP that causes the date being set to "now". To correcting that, and naming them sequentially, there is e.g. exiftool you could use on the PC. The correct date is still held in Exif data inside the image files, which is what exiftool uses to fix the issue.

To my knowledge, all digital cameras follow the Design rule for Camera File system (DCF), a Japan Electronics and Information Technology Industries Association JEITA standard (CP-3461B) for digital cameras. This is why your digital camera sequences the photos.
Phones do not necessarily have to follow this standard, since they are not just digital cameras. Phone storage still used the DCIM folder to give a standardized placement for photos, but this does not mean that they photo file names will follow the standard.
As far as phones storing photo with sequential numbers, yes, it is possible that they could do that. It would mean changing how the file names are generated to use a sequencing number instead of the randomly generated number or, in my case with the S9, the use of the time in military format for the second half.


text:
Make Google voice / assistant listen always when ear buds connected?
My bluetooth earbuds on my Android S7 phone do not have a button to activate Google Voice Assistant for things like note to self Etc. If the phone screen is on Google Voice is always listening.
How can I set Google Voice Assistant to always be listening when I have these bluetooth earbuds in?
Or how would I have it always be listening anytime wired earbuds are connected?

Try Macrodroid automation. Trigger : Headphones inserted; Action: Voice search. Save macro and test

Pretty sure Google removed this feature so you have to buy a Google Home device


text:
What Google services do the Google Pixel phones require using?
What Google services do the Google Pixel phones require using?  Or can they be used without using Google products?
For example, do they require using a Google account?  If so, do they require using the Google Play Store?  What about Google Drive?  Do they force syncing contacts and calendars to Google servers?
Can all the Google apps be disabled on them?
When answering please specify if your answer applies to the original Pixel or the Pixel 2, or (if you know) both.

This applies to both Pixel devices. The first time you start the phone, you'll be asked to sync it with a Google account.
Google Play Store is optional. You can download third-party apps on the devices.
You will not be asked to sync contacts or calendar to Google servers.
But it only makes sense to buy the Google Pixel if you're fine with using a Google account.


text:
How does WhatsApp update the "last seen"?
Previously we were able to turn off mobile/Wi-Fi and turn on airplane mode, read the message, turn off airplane mode and turn mobile data / Wi-Fi on and that was the end of it. However, now it seems WhatsApp stores the information of the user opening the message even in offline mode to be sent later when it gets a connection.
My question is regarding last seen. What if I turn on airplane mode, read old messages that I have already opened. Close WhatsApp completely and turn airplane mode off. Will my last seen now be the time when I was reading old messages in airplane mode, or the last time I actually opened WhatsApp while connected to the internet. Can anyone confirm this?

You probably know this already, but for those who don't, you can turn "Last seen" off under Settings > Account > Privacy.


text:
LG G4 ghost touch and swipe when data is turned on
Odd problem with my LG G4 phone, on Monday I check my whatsapp and the screen starts ghost touching itself randomly in different places?  I lock the phone to stop it and reset a couple of times, but it’s still noticeable.
At the same time that started there was a issue with my rear camera, a message kept popping up saying “unfornately the camera has stopped working”.  I eventfully got that fixed by removing the battery for a bit, no other standard troubleshooting was able to fix it?
Before I fixed the rear camera I had identified that if I switch the data connection off then the screen is fine, no ghost touches ever happen when data is off.
So I’ve been keeping my data off now until I need it, but when I turn it on the ghost touching starts near instantly.  And if it’s on, but there is no signal then it’s fine, but the moment it gets signal the ghost touches start again.
I also notice that sometimes the whole screens frame rate drops way down, almost as if I’m only viewing a remote access view of my screen??
I’m planning to do a factory reset after I get a backup setup, but looking to see if anyone has any ideas.
I haven’t installed any apps that weren’t on the play store, and I haven’t modified the OS is any way.  And it doesn’t happen when connect to WiFi

Finished the factory reset and now the ghost touches are worse than ever. Now happens whether data is on or off. It must be a hardware issue, or the screen protector??

I may have found a solution?...  Before, I was exclusively using fast-charging.  I stopped that completely and went back to normal charge 2-3 days ago and the ghost touching has not re-occurred since!
My battery also lasts noticeably longer after a normal charge, so I think I’ll stick to this regardless.
If things change I’ll post a comment

The voltage is usually the culprit on most ghost touch cases: How can electromagnetic interference from a USB charger cause a capacitive touchscreen to malfunction?


text:
Tool to find duplicate files and hardlink them
Where might there be a small program (possibly statically-linked binary) like fdupes or rdfind, to help me find duplicate files within the same partition/mount--checking only specified directories--and hardlink them?
My architecture:  armv8l
root@localhost/storage/emulated/0/TitaniumBackup 2018-08-02,12:12:26# (16) uname -a
Linux localhost 3.10.108-ga044406f3ee #1 SMP PREEMPT Sun Jul 15 02:16:25 CEST 2018 armv8l

Assume I already have root shell access, with Busybox installed.
Filesystem               1K-blocks     Used Available Use% Mounted on
tmpfs                       944236      500    943736   1% /dev
tmpfs                       944236        0    944236   0% /mnt
/dev/block/mmcblk0p3         16048     2320     13728  15% /efs
/dev/block/mmcblk0p21       197472      428    197044   1% /cache
/dev/block/mmcblk0p23     11588512 11507720     80792 100% /data
/dev/block/mmcblk0p18         8080       92      7988   2% /persdata/absolute
/dev/block/mmcblk0p4          3952      548      3404  14% /cpefs
tmpfs                       944236      452    943784   1% /sbin
/dev/block/mmcblk0p20      3023760  1258796   1764964  42% /sbin/.core/mirror/system
/sbin/.core/block/loop08    157152   110660     46492  71% /sbin/.core/img
tmpfs                       944236        0    944236   0% /system
tmpfs                       944236        0    944236   0% /system/etc/permissions
tmpfs                       944236        0    944236   0% /system/priv-app
tmpfs                       944236        0    944236   0% /system/app
tmpfs                       944236        0    944236   0% /system/app/FaceLock/lib
tmpfs                       944236        0    944236   0% /system/lib
tmpfs                       944236        0    944236   0% /system/framework
tmpfs                       944236        0    944236   0% /system/vendor
/data/media               11588512 11507732     80780 100% /mnt/runtime/default/emulated

I doubt that there are many duplicate system files. What do you want to achieve - shrinking an Android system image or getting more space on your Android device?

Mainly concerned with stuff in /storage/emulated/0, away from the core system. Unrelated 3rd-party cloud/backup tools overlap too much (Lucky Patcher, SMS B&R, Titanium, etc) tripling+ old apk's & historical user data files not vital to operation. Except that left alone they eat too much damn space, causing wide Android failures routinely.

Until a better tool comes along, this script will find and hardlink duplicate files filtered out by extension, under given directories.
It's far from ideal, but others can customize it to their needs.  As practically a one-liner I hate that it's incomprehensibly concise, but I had to deal with a few hurdles in a rather limiting BusyBox environment.

(cd /data/media/0/; (date; set -x; mount; df; fdupes -nAS1 -o time -r  TitaniumBackup SmsContactsBackup; df) |tee fdupes.log |grep "\.apk" |sed 's/[][\\ ()]/?/g' |awk '{system( "ls -l "$0); system("touch -m "$2" -r "$1" &&  ln -vf "$1"  "$2 )  }' 2>&1 |tee duphlinker.log)

The available fdupes for termux doesn't hardlink.  So I only use its output identifying similar files.
Starting under /data/media/0/ (not /storage/emulated/0, since in modern Android that's a virtual mount not supporting filesystem links), I chose to recursively scan only directories TitaniumBackup and SmsContactsBackup, where I happen to know large duplicates form after their corresponding apps run.
I filter out all but .apk files.
Since some file paths contained escaped spaces--nasty when whitespace is needed as an unconfigurable delimiter later--with sed I replace all "\ " with the single-character wildcard "?".  This allows a tiny risk of linking mismatched files, if they are improbably similarly named.
In awk I set the mod timestamps to that of the oldest file, then force form the hardlink, freeing disk space from the newer file.

The higher-level apps don't notice, and self-clean after uploading to my cloud eventually (if they have such features).
Now I'll just put that into crontab for Magisk, at about 4am daily.  It runs in under a minute.

SD Maid can help you find duplicates. You need to buy the pro version to unlock all features though (in the case of duplicates, deleting them from the app).

Lots of apps can do that, eg. http://www.it4nextgen.com/duplicate-file-finder-apps-android/ , some of which I already had.  Thanks, but the question is specifically about hardlinking (a sysadmin app or shell program that finds and knows where to run ln).

Dammit I should read better. Don't know about an app, but if you want you can use fdupes and ln as commands in termux

Unless you know better, I've already looked around for an fdupes binary, and don't mean to try and deploy build-essentials or compile it myself, for armv8l.   However, I might just write a shell script to scan file sizes and checksums, then link matches, schedule it after space hoggers finish, etc.

termux has its own repository, you can do apt install fdupes from the app to install it from termux's servers

https://github.com/termux/termux-packages/tree/master/packages -- That's a list of all packages termux provides to download. fdupes is one of them

Good tip @SSS, but after I did pkg install fdupes, I find it is not upgrade-able to a version that begins to support creating hardlinks (-L argument).  Currently the termux repo offers only v1.6.1


text:
Not able to tick items in SP Flash Tool after selecting scatter .txt file.How to check Boxes?
I download SP Flash Tool And recovery file zip,extracted recovery zip which contain three files:
1)scatter .txt file
2)recovery image file
3)recovery read me file
After that i opened tool.exe and select the scatter file but don't able to tick the recovery name object

You need to select a file to write each partition you want to select. Double click on the location column for the partition you want to write to and select an img file, e.g. twrp.


text:
Controlling phone and making calls remotely
I'm wondering if there's a way to connect to my phone via, say, ssh and be able to make calls and send texts remotely.
Use case would be for when I'm abroad but have internet, I'd be able to contact people without roaming and whatnot.

https://community.teamviewer.com/t5/Knowledge-Base/Connections-From-Mobile-to-Mobile-Devices/ta-p/280

If you have internet, why not using a SIP solution? Plenty of them available, usually providing calls and texts. And for the latter, there're also messengers. No need to remotely access a home device for that.

I suggest Teamviewer app for remote control


text:
ADB shell input keypress play/pause doesn't work in Netflix/Hulu Android apps?
I'm trying to control my Android Box (running Android 6.0, my guess is a modified version of a phone's os, definitely not the official android tv os) via adb for a home automation project & I'm having a bit of trouble with some apps not responding to emulated keypress events. So far I've experienced the following results:
Apps used for testing
Xfinity Stream - Pause & Play both work (using adb shell input 85, MEDIA_PLAY_PAUSE keycode)
Hulu - Pause works & Play doesn't (again using adb shell input 85)
Netflix - Both Pause & Play don't work (tried both adb shell input 85 & adb shell input 127/126, PAUSE & PLAY keycodes)
Has anyone else experienced this issue of inconsistency with apps responding to keypresses? Is there any way I can reliably simulate the Play/Pause for all apps?
System-wide the Power & Mute/Unmute work, so I'm curious why the Play/Pause doesn't.


text:
How to optimize all my apps in “Battery Optimization”?
I have xiaomi mi max 32gb -Multirom 8.4.26
I make all my apps "battery optimized" except these apps: (Greenify+amplify+powernap+Launcher+Appops+Magisk+ Xposed).

But after rebooting my mobile, apps returns non-optimized. So I need to make all my apps optimized after every reboot. This task is tiring and wastes my time.
My Question: Can you help me batch optimize all apps after every reboot, please? By using tasker or terminal commands or adb commands or mod or anything
Please help me

up...............................up.............................up


text:
My phone dials #3282 (#DATA) by itself. Which app did it?
For about the last month, I occasionally find my Cricket Samsung Amp Prime (Android 7.1.1) dialing #3282 (#DATA) without me initiating it.  According to my call log, it started on October 1, 2018.  It has happened about 6 or 7 times over about five weeks, with no noticeable pattern.  It does seem to happen after I've been actively using the phone.  On Cricket, this results in a "Your call can not be completed as dialed" message.  I think it used to be an active feature but is no more.
I suspect that an app update is behind this, but I'm not sure which one.  I have about 20 apps with phone permission enabled.  Is there a way to log when an app uses phone privileges?  Or straighter to the point, does anyone know which app might be causing this?

In my case, the app was Nova Launcher.  I had recently enabled the permissions needed for gestures, and presumably, one of the defaults is to dial #DATA when a user swipes down on the screen.
To disable this gesture, start Nova Launcher, go to Settings, and edit the Swipe Down gesture (or whichever gesture is assigned) and choose None or another action.


text:
Can't download due to no storage. I have enough storage
I keep getting a error saying cannot download not enough space. But according to my phone I have 429MB and the file I want downloaded is only 40.08MB. I don't want to use my SD card because the file will be deleted later but, it's needed now. What should I do?

How much storage does your phone have?

Android considers a phone lacking storage if less than 10% of its total storage is free. Bring the value of stored materials off the trigger value of 10%. Plenty of questions here with answers about that to find.

That 429 mb is not all for the tangible storage of the phone. Some of those are for cache, system storage etc

Do you have your permissions set for the app in which you are downloading from?! Sometimes you can't even save your settings if they can not write to the drive/device.


text:
How to make adb shell commands wrap single line to multiple lines by default?
Let's say I have this long one-liner command:
am force-stop com.example.foo; am force-stop com.example.bar; am force-stop com.example.foo2 am force-stop com.example.bar2; am force-stop com.example.foo; am force-stop com.example.bar; ps|grep example

When I copy-paste into terminal, it doesn't wrap as multiple lines like ordinary terminal do, instead it keep single line:

As you can see, I can't view whole commands in single screen when the cursor move to the end by copy-paste OR press End. It only shows partial commands and not able to re-copy part of command easily.
Desired behavior:

Is it possible ? I learned that COLUMNS=150 can increase the adb command width from 80 to 150, but still I can't found a way to achieve this.
Note that I don't want to add \ manually which also not working when reuse the command:

My workaround is use busybox sh, but still I welcome any answer to achieve this in native way without busybox.


text:
Linux automount corrupts ext4 partitions of Android install?
I've been experimenting with dual-boot between Linux and Android on an x86 device which came with Android + Windows preinstalled (Chuwi Hi10 Pro).
I soon found out that simply booting Ubuntu (either from a live USB stick or from the on-device install) will kill the Android installation (hangs at boot), to the point that only a factory restore will help.
The reason seems to be that Ubuntu automounts every ext4 filesystem it can find, including the Android partitions (system/data/cache/config). I've fixed this by adding the following to /etc/fstab:
# do _not_ automount the Android partitions
UUID=57f8f4bc-abf4-655f-bf67-946fc0f9f25b  /none ext4 ro,noauto 0 0
UUID=57f8f4bc-abf4-655f-bf67-946fc0f9f25b1 /none ext4 ro,noauto 0 0
UUID=57f8f4bc-abf4-655f-bf67-946fc0f9f25b2 /none ext4 ro,noauto 0 0
UUID=57f8f4bc-abf4-655f-bf67-946fc0f9f25b3 /none ext4 ro,noauto 0 0

I'm now wondering about two things:

What is it that Ubuntu can possibly do to the ext4 partitions that will later cause Android to hang on boot?
Could this be related to the fact that apparently all Android partitions share the same UUID?

EDIT: as suggested by mook765, here's the output of lsblk -f:
NAME         FSTYPE LABEL     UUID                                 MOUNTPOINT
mmcblk0
├─mmcblk0p1  vfat   ANDROIDIA 1389-AFF9                            /boot/efi
├─mmcblk0p2
├─mmcblk0p3
├─mmcblk0p4
├─mmcblk0p5
├─mmcblk0p6
├─mmcblk0p7  ext4             57f8f4bc-abf4-655f-bf67-946fc0f9f25b
├─mmcblk0p8  ext4             57f8f4bc-abf4-655f-bf67-946fc0f9f25b
├─mmcblk0p9  ext4             57f8f4bc-abf4-655f-bf67-946fc0f9f25b
├─mmcblk0p10
├─mmcblk0p11 ext4             57f8f4bc-abf4-655f-bf67-946fc0f9f25b
├─mmcblk0p12 vfat             8A7A-6F97
└─mmcblk0p13 ext4             9dadc784-4ed1-4e54-adec-8227b73a0777 /
mmcblk0boot0
mmcblk0boot1

Note that this is an intentional duplicate from https://askubuntu.com/questions/1092142/ubuntu-automount-corrupts-ext4-partitions-of-android-install.


text:
Cant do anything on my Htc one m8
My htc one m8 was all good since yesterday. It's age is about one year. The problem is when i open any apps or do anything it's just restart automatically and vanish my previous activity. As a example I uninstall an app then it restart and after restarting the is still there. I also try to factory reset the phone but it's done nothing all my apps was there.Can anyone help.
Thanks in advance.

This problem also happens into safe mode. I've tried both from settings menu and also recovery menu to factory reset the phone.

Which brand is it? Is it rooted?

That's because your memory is read-only! You can't write data to it: the delete operation writes to memory - at least modifies it.
Not sure about what may be causing this, but probably from malwares or as I can think of now a defective eMMC chip like you know those SD Card that suddenly becomes "Write protection enabled" .
I have myself experienced this and never found a solution so far. This seems to happen with HTC, HUAWEI and I had a case involving a Motorola phone.

Thank you so much for reply. Which memory you are telling about? Imternal or external

I am not able to change anything to my htc one m8. Every time I try to change something it takes reboots and goes to the same place where the problem starts. I have found others having this issue in this https://androidforums.com/threads/internal-phone-storage-becomes-read-only.347685/. Help me pls. I don't understand the instruction there.

I mean the internal memory. You may try flashing the firmware to the phone and see if it gonna solve this.


text:
Can not install apk, got navigated to Security page when tap on apk
I need to install apk on my Motorola android 7, no root.
I did enable allow install app from unknown source
I dont have any screen filtering app running on my phone (so other thread on this topic doesnt work).
Everytime i tap on apk. The security page show up, not the install button.

How are you installing? Source - sideloading or other repositories? Also please add a screenshot of security page, and Android version details by [edit]

maybe side loading, I've download an apk from a website and need to install it.

Try troubleshooting using logcat.


text:
Why my phone is sending some other phone number as my caller ID and for SMS?
I've been using LineageOS 14.1 on ZUK Z1 for quite a while now. One problem I am facing is, sometimes my phone sends text messages from some other number which I don't even know. This also happens to the calls, my phone number is replaced with someone else's number.
Couple of days ago I did a fresh install of LineageOS 15.1 hoping this will fix the issue with my phone, but that had some other problems attached with it. I wasn't able to connect my phone to PC through USB cable, lots of apps were crashing making phone unusable. I had to go back to LineageOS 14.1 but this is not the main question. I wanted to ask what can be the issue which is causing the phone to use someone else's phone number as my phone number while calling or for the SMS purposes?
My friends pointed this thing lots of times and also referred the numbers through which my SMS or call was delivered. After calling those numbers I got to know they are people within my area at the time of my messages being delivered from their numbers. This problem is not on some specific region, I travel a lot and this happens no matter where I am which makes it clear it is not fault in my area's network coverage.
I tried searching for problem like this but I wasn't able to find any single, that's why I am posting this.
There is also another problem which I forgot to mention earlier, my phone restarts on its own sometimes.
Any help would be appreciated!
By the way Lineageos 14.1 is basically Android 7.1 and Lineageos 15.1 is Android 8.1.


text:
How to automatically copy contents from the connected phone
I'm looking for an approach (for Windows) to copy certain phone contents (say Downloads/ dir) automatically to a certain PC directory, after setting the USB mode to "File transfer".
Theoretically it sounds not complicated - list the directories on a connected device (detect a drive) --> pick the relevant one --> copy into the predefined dir.
Did someone alredy implement any similar task?

This is better automated using ADB shell commands because MTP sucks (it's not a drive letter).

So i achieved the desired via old good Linux.
Steps:
Use Mobaxterm, Cygwin or any other Linux-to-Windows framework that restructures Windows tree to a Linux one.
Once the phone is connected and it's drive set to act as USB (i.e. a drive letter is assigned, say E:), it can be defined for $DIR variable for future usage.
Then this part of Bash code can run on a platform that transfers Linux bash input to the language readable by any PC. From here Linux makes all the trick.
The code:
#!/bin/bash

DIR="/drives/"$1"/"     # SRC DIRECTORY
DEST="/drives/d/DEST/"  # DEST DIRECTORY

find "$DIR" -type f \( -iname "*.pat1" -o -iname "*.pat2" \) -exec cp '{}' "$DEST" \;  #SEARCH SRC DIR AND COPY TO DEST FILES OF MULTIPLE PATTERNS

Syntax:
./SCRIPTname.sh e       # "E" stands for the drive letter assigned to the Android device

To monitor a phone connection automatically once a 3 seconds  and have timings statistics use:
watch -n 3 time ./SCRIPTname.sh e


text:
mac address randomization on NON-rooted Android 8.1 phone for both wifi and mobile data
I am trying to force my box to
(up to date as of posting, NOT rooted Xiomi Redmi Note 5 with Android 8.1.0 OPM1.17 with security patch 2018-09-01., kernel 4.4.78perf+, gui is MIUI v10.0.2.)
randomize mac address by default before connecting to any network on both wifi/wlan and "mobile data" connection.
How do I achieve this, please?

autistic, on the following site they mention random MAC for Android 8 very shortly https://source.android.com/devices/tech/connect/wifi-mac-randomization I have no Andoird 8 anymore so I can not test it, but you can look under developer options.
Source: https://support.google.com/fi/thread/4601390/how-can-i-turn-off-mac-randomization-in-android-8-1-generic-tablet?hl=en I hope it helps.

I do not know whether that would work on v8.1, but the following works with v11: https://android.stackexchange.com/questions/58507/how-can-i-randomize-my-mac-address-every-time-my-wifi-is-turned-on/241760#241760


text:
how to check if i have successfully disabled dm-verity?
my phone has dm verity enabled by default. I read about ways to disable it. After that, is there any way with which can i verify if dm-verity is disabled?

All that dm-verity usually mean is that you have write access to the /system partition. So trying to write to (or place) any file in there should be enough.
Be careful though, modifying /system is always risky.


text:
How long are call logs stored and is this configurable?
As far as I can tell, my OnePlus 3 has complete call logs for the past 6 months (last log 4-19-2018, today is 10-20-2018 which seems too much of a coincidence)
Logs are really useful but some calls I make only once a year so being able to keep (more) complete logs would be really useful.
Is this something that's configurable on Android? And, is there a way to sync this with my Google account so it's backed up even?

There is a limit of 500 entries for calls (incoming, outgoing and missed) in Android. How long will the call log last, go back in time or get filled depends on how often you call or are called.
If your device is rooted, you can install Unlimited CallLog for LP/MM/N, an Xposed module that extends the limit to an unlimited number like its name suggests for Android 5 to 7. For non rooted devices, a search via Google Play Store provides a list of apps that should also extend the limit.
Your device should have the ability to backup the call history; search for Backup in the Settings app. Some of the apps (see previous link) also provides for backup options.
Manage & restore your device backups in Google Drive


text:
When saving a webpage from Chrome on Android, where in the file manager can I locate the stored file?
I need to know where are the saved webpages of Google Chrome stored in Android.  I mean, I can access them from the browser itself but I need to know where its stored in the file manager.

The save folder may vary depending on the firmware of your device, but usually it is mnt / sdcard / download

I checked its not there,could you suggest some other place where it will be

check these paths /data/data/com.android.browser/files/  OR /Download/ OR look for your setings.


text:
Android App for split screen pdf note taking (for tablets)
Does anybody know of an app which lets you have a split screen of pdf(left) and note taking blank page(right) setting, so that you can make notes for every individual page? When you revisit it would show the pdf page and its corresponding note. I know of the Boox Note e-ink reader being able to do this and some iOS apps such as Easy-annotate or Flexcil. Is there also perhaps an app like these for android?
Thanks.


text:
Change week day names on specific locale
Where Android stores strings like week day names, months, etc for each locale?
I dug into SettingsUI, framework-res, but didn't find anything related into res/values/arrays.xml or strings.xml. Could it be into the linked odex file?
I'm using a modified by me LG stock Rom KK 4.4 on a G2

Found /system/usr/icu/icudt51l.dat
http://site.icu-project.org
Need to tamper with that file

followed this guide, profit https://code.google.com/archive/p/khmeriphone/wikis/How_to_Modify_ICU_dat.wiki


text:
Gmail Contacts on Android refusing to sync 1 specific contact. What could be the reasons?
In my android device, I have set my contacts to be sync to my gmail account. I just add contacts under my email address instead of the phone and just assumed that everything will be synced. But now I found 1 contact that just would not sync. No clue why. Contacts created after that and just now before posting all synced, except that one. When I view all email account contacts in android, its 293 while my gmail contacts web-client has just 292. My backup phone which is also synced to Gmail Contacts has 292.
I have no clue why this contact would not sync. What is different about it? But the main question that I wonder is, how many contacts have I lost due to these non-syncing issue and never realised till date.
How do I understand the problem?


text:
How to disable Amazon Single Sign-on in Kindle Fire tablet
I've two Amazon Kindle Fire tablets and i've an Amazon Prime Subscription.
I don't want to use the same Amazon Prime account in Fire tablet. Because my Contacts, Preferences, Calendar everything gets synced between. I don't want that.
I want to use separate Amazon accounts in each Fire tab and use a Complete Amazon Prime Subscription for Prime Video, Music and Kindle Apps in Fire. How can i make it possible ?
1. Amazon Account 3 - Has Prime Subscription

Amazon Fire HD 10 ( Amazon Account 1 with No Prime Subscription )
Use Amazon Account 3 for Fire Apps - Prime Video, Music and Kindle

Amazon Fire HD 7 ( Amazon Account 2 with No Prime Subscription )
Use Amazon Account 3 for Fire Apps - Prime Video, Music and Kindle

I've tried ADB, to uninstall Amazon's own Prime Video app - com.amazon.avod and tried to install APK from the Google Play Store - com.amazon.avod.thirdpartyclient, so that i can configure the Prime Video with a different account. But the app is not getting uninstalled and if i try to install com.amazon.avod.thirdpartyclient, i'm getting PROVIDER CONFLICT error.
    pm uninstall --user 0 com.amazon.avod
    Success
    pm install /storage/emulated/0/Download/com.amazon.avod.thirdpartyclient_2018-10-19.apk
    Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]

I can think of

Installing Stock Android in the Fire tabs, which will make things easy and better.
Disabling Single Sign on in Amazon Kindle Fire tab - which i have no idea how to.

Please can somebody shed some light on this.


text:
System Shared Preferences
I am new to Android. Using shared preferences each application can store key-value pairs and it can be in several modes (private, public read, etc) and the default mode is the private mode because of security issues.
I understand that if an application set the mode to 'public', it would be readable by other apps. But I am wondering if there are any system-wide shared preferences that can be read by all the applications by default? How can I find the list of all readable preferences (of other apps)? Should I enumerate all /data/data/*/shared_prefs/*.xml and see to which one I have access?


text:
Is there a widget or something I can go with IFTTT to block and unblock a contact?
I have a friend that says some pretty bad things about certain people pretty often and a lot of the time I am around those people while he's sending me those messages.
I just want a button/widget I can use to discreetly block his texts and calls quickly, like as the person is walking up to me and will arrive in less than 3 seconds.
Does that exist? Can I use IFTTT to do something like that?

Can't you just pocket your device when there is a person approaching you?

Also, it is no one's job to fascilitate bad actors, even if they are our friends. Why do you let yourself remain an enabler?

He's my son and she is my wife. He is also my best friend and I married his mother. She's nuts and questions everything.

Imagine the questions she would have if his contact incredulously disappeared from your phone in her presence all the time. Your best friend not in your phone? "What else are you hiding from me?!?"


text:
How to Disable FLAG_SECURE without root?
I just realised the only way to bypass screenshot security on certain apps is to disable this FLAG_SECURE, which as I see can be done using Xposed module.
But I don't want to root my phone. Is there any way to disable FLAG_SECURE and bypass screenshot security without root.

No... Root is required.

You might want to give Virtual Xposed a spin.
It is an application that acts as a sort of "host" for other user apps you can install inside it. It then has full control over the process of the inner app, and can apply the functionality of some Xposed apps without requiring an unlocked bootloader or Root.
However, it can only work for Xposed modules that don't modify the system. If your mentioned module tries to do that, VX won't be any good.

Virtual xposed DOES work! See my update below https://forum.xda-developers.com/showpost.php?p=84006109&postcount=527


text:
What is the partition layout of the Google Pixel?
I have searched for a listing of the partitions on the first Google Pixel. What are they?


text:
How to remove the "vinyl record" from the lock screen?
On my Android phone I see a picture of a moving vinyl record when I press the on/off button.
It seems to be a media player application. But I don't want to use it. I don't even have any music saved on my phone. And I don't find any setting to remove it.

How can I remove this?
I want to see the clock and maybe other things on the lock screen.

Lock screens are usually customized by their makers. Could you mention your phone model, Android version, and whether you're using a stock lock screen or a 3rd-party one?

Force Stop the music app in the Settings. Hope it works.

I found an app with the name "music", but I didn't find a place to disable it or to (force) shut it down. When I open the Music app it asks me to agree to their Terms of Service. Until now I did not agree. It shouldn't play...

There always is a Force Stop function in apps on android phones.


text:
My android device doesn't show up when I do ADB Devices but DOES show up in my Chrome developer tools
Really not sure what's going on because it seems to be detected by chrome when I plug in but ADB doesn't know whats going on.

Welcome to Android Enthusiasts! We will need much more information to give good recommendations here. Please [edit] your question and include at least: The device you're using, Android version it is running, the OS on your computer, what steps you've been performing, whether USB debugging is turned on. Also check and update the tags you've used to match your issue (what got Chrome browser on Android to do with it?).

Since you've got Chrome Remote debugging working, just make sure that Chrome debugging isn't running when doing things with adb on the command line.
I believe that Chrome has its own version of adb-server so that would conflict with the one used by Android Studio/Android SDK tools.

Thanks this has annoyed me for years. I was randomly un/replugging my device until something worked. What seems to fix it: let ADB connect first, then adb devices finds it, then launch chrome://inspect. (Or, just close the Chrome inspector for a minute and let ADB figure it out, re-open Chrome)


text:
How can i mount all partitions of harddisk in android x86?
i installed android-x86-4.2-20130228 as a live but does'nt read my partition of my hardisk
i tried with Paragon UFSD Root Mounter but not work good in 4.2.2 and  es explorateur does'nt read any partition

i think that you could mount your partition from your hard disk with the mount command.
Usually all partitions are avalaible in /dev/block/.
So you could check what is mounted by typing "mount" in a terminal emulator app or through adb (computer).
After that, u could comparring the partitions names with an ls -al /dev/block/ command.
After that u could have a better idea of wich partition name is your hard disk.
Usually, and depending on how you have connected your hard disk to your android-X86 (SD or USB or by other method(s)), the partition block have "mmc" is it name.
Finally, you could mount your partition with theses followed command:
mkdir /hard-disk-partition
mount -t FAT32 -o rw /dev/block/partitionname /hard-disk-partition

-t argument is used to define the partition filesystem
-o argument is used to define the access type

-r is for read only
-rw is for read and write
-rwx is for read, write, and execute
I think that -t and -o arguments are sufficients for your usage.
Ah, and before i forget, it's possible that you have to install an "all-in one toolbox" like Busybox or Toybox, because maybe that some applets commands aren't installed on your Android system (/system/bin and /system/xbin/), it will be usefull if u have to use commands like egrep, sed or awk for exemple.

When i use mkdir /hard-disk-partition it show me : mkdir failed for /hard-disk-partition, Read-only file system
and when i use mount -t FAT32 -o rw /dev/block/partitionname /hard-disk-partition
it show : mount : no such file or directory

For the first command output, it say that your system partition is mounted in read-only mode, because / is a part of the system partition. You could try to reboot in a custom recovery mode as twrp for exemple to be sure to be able to mount your partition, or u can create the new folder in /sdcard/.

I didn't find how can i install twrp in android x86

Have u a smartphone device with Android and x86 processor or it's an vm with android-x86 installed ? In case of the device, please say the manufacturer and the model.

i installed android x86 daul boot with windows

Peace be with you!
I have tried a lot search on Google and then at last I successfully done it.
Now I tell you how to do it.
Let's begin!
1)Open the terminal
2)Give following commands
su
mkdir /mnt/windows
ntfs-3g /dev/block/sdax mnt/windows
Note: x is the number of your drive which can be 1,2 or 3 etc.
3)Now open File manager named Super File Manager.
If you have not installed then install using the link below:
https://play.google.com/store/apps/details?id=com.superfilemanager.esexplorer.exfileexplorer
4)Go to settings, scroll down and check Root Explorer
5) Navigate back from the settings and there a tab will appear named /Root .Click this tab and find /mnt directory there.Open it and find folder named window within this directory.
Open it also and there you will find your ntfs drive of windows environment.
Tell me if any problem!


text:
Have transferred all music to SD card but still seem to have full system/ user data
My galaxy S7 external SD card seemed to have stopped working. Which caused my phone to show full internal storage. I replaced the SD card with a new and larger one and transferred all my google play music to it. My phone is still showing full storage. 30.5 GB of storage is consumed by userdata/system. I removed the external sd card and checked if the google play music was showing any data still. No data is showing. So I can not for the life of me figure out what data and where is consuming all my storage.
Next step is clear the cache.
Last step is master/hard reset. Really don't feel like that though.
Ideas?

And clearing cache did nothing.

So I figured I would just start throwing things at the wall. I ran a graphics test in recovery mode. Then went back in to settings>device maintenance>storage>update and ran a 360 security database update. Then wettings>device maintenance>storage settings>phone memory. Interestingly is showed my music and audio to be the main culprit. I selected it and it opened my google play music app. Verified that it still was set to external storage and then went back in to my settings>device maintenance>storage and lo and behold my storage dropped from 31.5 GB used to 18GB used.

My assumption is that even though google play music app had transferred the files to my sd card it still retained the files in some hidden directory. By running the security database update it must have recognized the files and deleted them from the internal storage. That or my phone was drunk and needed to sober up and realize the files were transferred.

You can self answer the question too, to help others in a similar situation :)


text:
Is possible to open and display both front and back cameras simultaneously?
Does anyone know if it is possible to open and display both front and back cameras simultaneously?
Any suggestions or references will be appreciated

Please refer to these two answers https://stackoverflow.com/questions/30377081/access-both-back-and-front-cameras-simultaneously and https://stackoverflow.com/questions/51227768/how-to-save-front-and-back-camera-footage-in-the-same-file-after-being-recorded
According to the first answer, most often the android phone do not have enough hardware resources to have both camera working at the same time.
However, this is quite old answer and these days phones come with much better hardware support. You can try opening front camera while the rear camera is in action.
Hope this helps.


text:
Alarm not sounding on an Honor 6X
Note: I have researched this online, but none of the answers seem to work.
Currently, my honor 6X does not make any alarm sound. Obviously, this can lead to some predictable problems. I've made sure of the following:

My volume, ringer, alarm, and calls are all turned to max.
My regular volume works perfectly
I am using the default clock app
I deleted all my alarms and tried again, to no avail
My phone was restarted (I do not want to do a factory restart unless that is the only possible solution)
The alarm pops up, but has no sound
I gave clock priority over other apps and gave it all the permissions possible
I've tried different alarm sounds and reset it to the default
I have turned off Bluetooth
I have cleared all other apps
I have turned off the Android given task manager
I have no other clock apps
Although, my phone is rooted, but for over a year now, and have only encountered this problem very recently, so I think I can cross that off my list.

I am completely lost now on what to do, I have basically tried everything possible. So how in the world can I get this to work? Any opinion or idea would be greatly appreciated

In alarm settings, please check whether you have enabled gradually increase volume to never. ( I am using Google clock)

Have you disallowed notifications for the Clock app (including disallowing sound there)?

Also check if it is a protected app or whatever it is called now for those apps that switch off after screen is off

@wbogacz nope, all permissions granted

@beeshyams I completely turned off the "protection app" for all apps.

@Rahul Gopi I can't seem to find that setting in my clock settings

this image shows settings for timer which is similar to that of alarm. https://i2.wp.com/mashtips.com/wp-content/uploads/2018/08/AddClock_Timer.jpeg?resize=600%2C320&ssl=1

you can also try the following two methods.

In the Settings - Smart Assist - Gesture setting, there is an alarm to turn the mute to see if it is caused by flipping the phone and causing the alarm to be muted.
Wait for the new version and upgrade to the latest version


text:
Unpinning apps when using Gesture-based system navigation
I've recently acquired a Redmi Note 5, and I quite appreciate the gesture navigation. (Settings -> System & Device -> Full screen display -> Full screen gestures) However, I also like using app pinning when friends borrow my phones.
Traditionally, to unpin an app you have to hold Back and Overview at the same time. But in gesture mode, there is no navigation bar to press buttons in.
As it currently stands, I have to reboot the phone to unpin an app, which is impractical for various reasons.
Is there a way to unpin apps using gestures? (Or perhaps unpin with the fingerprint sensor or something like that, anything not involving the navigation bar. Or maybe even disabling gesture mode when an app is pinned)

Force-stopping the app or running am task lock stop works for unpinning any app. The problem is that I cannot use either of them without root access. As long as Android is rooted, you can use a Gesture control type app to setup a systemwide gesture, which when activated would kill the front-end app or run that command.

I am using a Huawei Mate 20 Pro, using gesture navigation, and I have found that to unpin an app you have to swipe from the side, as if you were going back, but hold it instead of releasing it. Then it will take you to the lock screen. Hope this helps.

Hey there! Thanks for the suggestions. Sadly in MIUI long-hold the back swipe only causes it to behave like long-pressing Overview, which would erstwhile swap to the previous active app.


text:
Flashing Nexus 5 factory image fails on writing userdata
Recently, I purchased a used Nexus 5. I would like perform a full reset, so I’m trying to flash the factory image using Google’s official instructions.
However, I keep getting the message FAILED (remote: 'Bogus size sparse and chunk header') for the Writing 'userdata' step.
Am I doing something wrong, or is something wrong with the instructions or image from Google?
(Possibly) relevant info:

I'm running macOS Mojave 10.14 (18A391) on my computer.
I'm using fastboot from the Android SDK Platform-Tools version 28.0.1, installed using Android Studio 3.2.1.
I tried the two most recent images of Android version 6.0.1 (M4B30X and M4B30Z), both give the same issue.

The full output of the flashing process can be seen here:
$ ./flash-all.sh
Sending 'bootloader' (3124 KB)                     OKAY [  0.310s]
Writing 'bootloader'                               OKAY [  0.516s]
Finished. Total time: 0.923s
rebooting into bootloader                          OKAY [  0.108s]
Finished. Total time: 0.108s
Sending 'radio' (45489 KB)                         OKAY [  1.640s]
Writing 'radio'                                    OKAY [  3.130s]
Finished. Total time: 4.867s
rebooting into bootloader                          OKAY [  0.104s]
Finished. Total time: 0.104s
extracting android-info.txt (0 MB) to RAM...
--------------------------------------------
Bootloader Version...: HHZ20h
Baseband Version.....: M8974A-2.0.50.2.30
Serial Number........: ***redacted***
--------------------------------------------
Checking product                                   OKAY [  0.100s]
Checking version-bootloader                        OKAY [  0.100s]
Checking version-baseband                          OKAY [  0.100s]
extracting boot.img (8 MB) to disk... took 0.037s
archive does not contain 'boot.sig'
archive does not contain 'dtbo.img'
archive does not contain 'dt.img'
archive does not contain 'odm.img'
archive does not contain 'product.img'
archive does not contain 'product-services.img'
extracting recovery.img (9 MB) to disk... took 0.033s
archive does not contain 'recovery.sig'
archive does not contain 'super.img'
extracting system.img (996 MB) to disk... took 7.816s
archive does not contain 'system.sig'
archive does not contain 'vbmeta.img'
archive does not contain 'vendor.img'
mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 7137786 4k blocks and 1785856 inodes
Filesystem UUID: aab8dc10-d114-48a0-b9dc-c7ebdd24c79d
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000

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

mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 179200 4k blocks and 44832 inodes
Filesystem UUID: 2d2b45ab-678b-43ba-8b3c-83827764dbc8
Superblock backups stored on blocks:
    32768, 98304, 163840

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

Sending 'boot' (9154 KB)                           OKAY [  0.510s]
Writing 'boot'                                     OKAY [  0.776s]
Sending 'recovery' (10012 KB)                      OKAY [  0.564s]
Writing 'recovery'                                 OKAY [  0.832s]
Sending 'system' (1020665 KB)                      OKAY [ 36.364s]
Writing 'system'                                   OKAY [ 69.147s]
Erasing 'userdata'                                 OKAY [ 14.079s]
Sending 'userdata' (4272 KB)                       OKAY [  0.360s]
Writing 'userdata'                                 FAILED (remote: 'Bogus size sparse and chunk header')
Finished. Total time: 133.541s

I encounter the same problem today :)
flash-all script failed when writing userdata
I have managed to solve this issue by manually continue the flashing process:
1) extract image-hammerhead-m4b30z.zip

2) cd to the extracted folder

3) run the following commands (one by one)
fastboot erase userdata
fastboot flash userdata userdata.img
fastboot erase cache
fastboot flash cache cache.img
fastboot reboot

it's too late for this post, but I'm answering for anyone else finding this post
refer to this link http://www.gandalfk7.it/2019/03/24/fastboot-too-old-and-error-cannot-generate-image-for-userdata/
 you must update your os platform tools and execute sh flash-all.sh after updating the platform set the PATH in your directory as this reference says
do these steps and like the link said and you will make it!
-  download the newer platform-tools from https://developer.android.com/studio/releases/platform-tools.
-  Decompress them with #unzip platform-tools_r28.0.2-linux.zip
a new platform-tools folder will be created
then in your folder where you have unzipped the factory default
-  edit flash-all.sh and add this line on top:

export PATH=/home/YOURUSER/Downloads/platform-tools:$PATH

-  in this way the script will search for executables in that folder, using the newer ones.

Heads up to anyone that finds this happening on a Nexus 7. Same problem except there's a secondary problem after explicitly specifying platform tools. Force flashing userdata doesn't allocate all the remaining space for userdata. Solution is to resize it afterward before first boot. If you try to resize after first boot you will get stuck in a boot loop and have to reflash everything.

please move your answer to this question https://android.stackexchange.com/q/230412


text:
Wifi hotspot without internet
With newer versions of Android and for certain manufacturers they always tries to make sure your WiFi has internet. I guess this is an OK feature if multiple known Wifi AP is available.
However the issue is that we have a product that creates a WiFi hotspot much like dashcams do.
The question is, is there a way to tell Android (via our App),that you know you are connecting to a WiFi network without internet so Android should stop controlling the WiFi "smartly" to try to get Internet regardless?

Since you're apparently programming an app, you might want to check out [so], the programmers there will be much more familiar with writing Android apps.


text:
Touchscreen dead zone - intermittent problem
I have a deadzone in the touchscreen and I don't know what to do. This zone corresponds exactly to the dictionary suggestion zone.
This problem is not permanent, but intermittent.
My phone is a Sony Xperia Z3

If problem is not permanent you should try to find the cause - e.g. certain software, temperature. If nothing helps you have to perform a factory reset and see if the problem reoccurs.

I tried without success. I changed the keyboard app and resized the keyboard, and it restored dictionary functionality

A hack, not a solution:

I changed the keyboard app, for an app on which keyboard resizing works (impossible to resize the default Android keyboard, because the resizing arrow stands precisely on the dead touchscreen zone). Swiftkey app worked.
I chose the large keyboard size.

Functionality is restored, although the 'handicap' remains.


text:
How to "safely" root a Motorola XT320 (running Android 2.3.6 / Gingerbread) without loosing data?
Related to this question: How to extract calendar data from the stock calendar app of Android Gingerbread (2.3.6) without a Google account?
How can I "safely" root a Motorola XT320 phone running Android 2.3.6 / Gingerbread? It is my intent to do this without loosing any data. Through root privileges, I hope to gain access to certain data on the phone (a local calendar) which I want to backup.
I have to admit I am new to this field. As far as I can tell, the most recommended app for this purpose appears to be KINGO ROOT. Unfortunately, my phone is not on the compatibility list. If I understand the matter correctly, this rules out a relatively "safe", mostly non-invasive exploit-based root approach and only leaves flashing certain parts of the ROM as an option. The latter should only be done after a backup of all essential data has been made ...
Because this phone and its OS are rather old, I was wondering whether anybody around here has any (past) experience that could help me.

have u seen this page maybe it can help https://www.oneclickroot.com/root/motorola-xt320-tnbst_4_07-23-15rps-2-3-6/

There are a few options. But you need to be cautious and do a little bit research before choosing one.
Step 1. Back up all your data to pc or sd card (if sd card then better remove it after backup is complete). For pc you can use tools like moboginey pc suit.
Next you can use one click root functionality of mobogine. Or try following guidelines here - https://www.oneclickroot.com/root/motorola-xt320-tnbst_4_07-23-15rps-2-3-6/

https://motorola-global-en-roe.custhelp.com/app/answers/detail/a_id/77416/p/30,6720,8421

Thanks. The stock calendar app in Gingerbread AFAIK does not allow to sync a (previously) local calendar to a service other than Google could.  Because I want to avoid Google cloud, syncing the data out to a calendar server of my own is unfortunately not an option.  Step 1. Back up all your data - yeah, I have seen this advice before. Hence my quest for a relatively safe option. I can not backup the relevant data without rooting the device first :( The you need to be cautious part is where I am seeking advice from people who have experience with this or similar types of phones.

Did you try using moboginey?

"Fake google account" / "outlook calendar": If you can provide a working example / set of instructions, feel free to post it as an answer to the related question :)

Create a new google account, 2. Add it to your phone, 3. sync calendar -- now data is synced with your new google account. 4. export calendar as csv from google calendar.

hope this helps. please accept the answer if it helps.

https://support.google.com/calendar/answer/37111?hl=en

[...] google account, 2. Add it to your phone, 3. sync calendar ... this really does NOT avoid Google cloud, I am afraid. This is precisely what I do not want to do (with just any Google account). When I saw the phrase fake google account I sort of expected a way avoiding to involve Google's servers / infrastructure :/ Sry, but this does not help.

Why you dont want to involve google?


text:
Creating copy of phone (apps, settings etc.)
I have two rooted Huawei P9 Plus phones running Android 7. Now I would like to copy the apps, the settings of the apps, the system settings etc. from one phone to the other phone so that both phones are exactly the same.
How can this be easily done? I have root, so I could also use an app requiring root.

Depends on "the other device". Are they identical devices (i.e. same model, etc)? Then check our [tag:nandroid] questions. If not: TitaniumBackup can do most.

@Izzy Yes, they are completely identical devices

I can no longer answer here – but then the best way is using a [tag:nandroid] backup created on one and restored on the other. Unless you want to do that on a daily basis, then that might take a bit too long :)

It can be done using many ways,

if you use the same Google account on both devices then just a simple cloud restore from the initial setup screen would setup everything just the same. (when I was switching roms frequently which are all based upon lineage, or same feature sets, I noticed even personal settings appeared to be restored along with all apps, messages and other data) So I think It'd be the easiest.
Mentioning root You could also use apps like titanium backup etc (btw I faced lot of after restore stuff like setting up permissions for each app and its just for the apps) also do note that new apps for doing the same are also available.
Assuming you are rooted on both of your devices with a working twrp recovery(as with most cases) and every config of both phones being the same then you can do a nandroid backup (backup from twrp menu) to your sd card transfer the backup folder to your other phone and then restore it there.
ps.
(tl;dr I don't recommend this to you by any means but It can work taking your case.)
I haven't tried it on two phones and would have a high chance of breaking your phone if things doesn't match well (nandroid backups can break even on cases where the new roms doesn't match older ones)


text:
Use gps position of another phone
We have a paraplegical friend that loves to play pokemon go (one of the few activities that his condition allow him).
Even so, the care that he needs does not allow us to bring him outside.
We would like to allow his phone GPS to lock onto another droid GPS, and so he can "walk" with us around the city, and stay at home where can can be taken care.
I´ve found how to do that with Bluetooth, but we need to do that over internet...
Any clues?


text:
Confusing comments in MTK Droid Tools
Every version on MTK Droid Tools on https://mtkdroidtools.com has a
 file "files_for_delete.txt" with comments in Russian. What's the meaning of that - should't it be in English to let everyone read it?
By the way, is this tool an Open Source and available for review? Otherwise how can one be sure that the code is safe?

If you are referring to "MTKDroid" this "is an application created by rua1" (a russian user on xda-developers.com.

What's the meaning of that - should't it be in English to let everyone read it?

As stated by @Robert, it was developed by rua1 who is Russian (his/her profile on XDA-Developers).
Using Google translate, here is an excerpt from the first few lines of the file. The comments are explanation of the lines
; --------- A list of files to delete from the phone ------------
; comments can be left after the sign;
; the name of the file to be deleted must contain the full path and begin with the /
; spaces in the tail and in front of the sign are allowed;

/system/recovery-from-boot.p; This file interferes with the installation of a modified recovery !!!
/system/media/bootaudio.mp3; sound when downloading on androids 2.2.2 and higher
/system/media/shutaudio.mp3

; Next, the list relevant to the B63M. On the other phones will not do harm. nothing to delete;)

/system/app/caivs.apk; Application that sends paid sms
/system/app/com.android.caivs.app.apk
/system/app/PinyinIME.*
/system/app/KaiXinAccountService.apk
/system/app/KaiXinAccountService.odex
/system/app/RenRenAccountService.apk
/system/app/RenRenAccountService.odex
/system/app/Sogou*.*
/system/app/sogou*.*
/system/app/androidmarketu.apk

; add-ons for B79

/system/app/SmsReg.*; Application that sends paid sms

/system/app/MobileLog.apk
/system/app/ModemLog.*

By the way, is this tool an Open Source and available for review? Otherwise how can one be sure that the code is safe?

From this post:

You cannot revive/update this tool because no source is available.
  The original author disappear by the forum.
  Some users developed some updates about external modules.
  But it's the maximum that it's possible now and for the future.


text:
How do I stop ads interrupting my music player
I have a Galaxy Note 9 where I usually have music playing in Amazon Music Player in the background while I play games. In the old version of the OS (Samsung's version Android 8.1) when I am playing a game and an advert starts, it would pause the music, but I could just slide down the notification area and unpause it. Since the recent upgrade to Android 9 (again Samsung's version which it automatically upgraded to), I have to wait until the advert has finished before I can unpause the music. This is ultra annoying!
I don't mind the advert, or even the advert playing its sounds while the music is in the background, but completely taking over the sound like this just wrong!
So is there a setting or app-permission or anything I can change to disable ads from stealing exclusive access to the audio?

Are you against using a third-party apps to disable ads, such as through an ad-blocker?

If it comes to that, then I don't mind installing them.

If adblock is an option, I highly recommend Blokada. It is a local VPN that uses host files to block ads and can work without root. More info here. (I am not affiliated with it). It sounds easiest just to block the ads
However, there is no way to keep an app from stealing audio focus that I am aware of.

Open the Google Settings app on your device (called Google Settings or Settings, depending on your device).
Scroll down and tap Google.
Tap Ads.
Turn on Opt out of interest-based ads or Opt out of Ads Personalization.
Reset the ad id, or user id.
This is the only thing I've been able to find on the subject.  Like you, I run a background app while doing other things and, knock on plastic and glass, it seems to have worked
I have an S10+, but it should be the same on your note

This would not affect sound in ads so not help to stop ads to mute music.


text:
How can I backup everything on an android?
I have a redmi note 5. It has been asking for updates for a while, which I have been postponing. The reason is that my previous phone, a huawei, got locked into bootloop when I did update it, so I have been weary.
But since I'm starting to cave, I was wondering if there was a way to backup absolutely, utterly everything on the phone, to the point of being able to flash it if I have to, load the data again, and end up holding the exact same phone I did before all that.

You might need to read all the answers on the duplicate first before attempting a backup.

Well, why do my search skills suck so bad these days? Sorry for the duplicate and thanks!


text:
Install TWRP on encrypted device
I would like to install TWRP on an encrypted device to make a backup and maybe reinstall firmware. (Samsung SMT-530) The reason I wanna do this is because when restarting, I am able to enter password to decrypt but will get stuck in subsequent samsung logo screen forever, without giving me chance to unlock device. And after some googleing the solution seems to be installing twrp and update firmware. The source for this solution says clearly that doing so will wipe out the device, and recommends to backup first. And I thought, and this probably will sound silly, I could make a backup via TWRP.
When trying to go into recovery mode, and install TWRP from sd card gives the following errors. First screenshot is after going into recovery mode, second is error messages after trying to install twrp from sd card

Most probably this is a silly question, but could please anyone tell me whether it is possible to install TWRP recovery and make a complete backup without having to wipe out - Factory Reset my device ? USB debugging is off device is unrooted and have tried to find clear info via google without success.

be careful ... you could brick your device. First do not try to install TWRP - instead go into encrypted Android as usual like before. Then make a factory reset (after you have made a backup). When finish you could try to install TWRP as boot-manager with help of your Linux PC or Linux Laptop. (by your attempts before, this is all failing because filesystem is encrypted) ... you would need to make a factory reset first to install TWRP as boot-manager.


text:
Not getting the lock icon in the recent apps list
I came to know that there is a lock icon on every app in the recent apps list in the overview in android that allows us to pin some apps to the list.
I am using Android 7.0 , but I am not getting any such icon there. See this screenshot :

Is there any hidden setting in Android by which this functionality can be enabled ?

https://www.techrepublic.com/article/how-to-make-use-of-the-android-nougat-recent-apps-lock/

I think you haven't understood my question properly. My question is how to enable that feature, because the lock icon is not there on any of the apps (see the above screenshot).

Did you mean screen pinning? Open Settings-> Security & location->Screen pinning.  Enable it. Also, enable 'ask for pattern before unpinning'. These settings are from android 9.0. And, for 7.0 you can search for screen pinning from search option top-right of settings page.

https://stackoverflow.com/questions/46613909/lock-an-app-on-the-recent-apps-screen-prevent-user-from-closing-it-when-certai

@RahulGopi no, this is not about screen pinning. Now I don't remember if I had this feature on stock Nexus 5 (perhaps not because it's too old), but per-app lock is there on the "recent apps" when I started using Lineage OS.

@AndrewT. I am running also 9.0 stock android, also don't remember the same used in Oreo and nougat. But. for custom UI devices like xiaomi, have still such options.

No, no, I know very well about the screen pinning feature. I am talking about the tiny lock icon beside the cross mark on the top bar of the recent apps list, by which we can lock individual apps to the recent apps list. The link which you provided me at first. My question is 'how to enable that feature' ? That is by default, not enabled in my phone.


text:
How to give an app permission to write to external SD on a rooted phone
I have a rooted Galaxy S7.  I'd like to give permission to an app that does not request it to write to the external SD card storage.  How can I do this?

did you try: pm grant command?

If you know the app package name, you can try the shell command pm grant.
Enable USB Debugging, probably already done for you, then type adb shell pm grant [replace_app.package.name] android.permission.WRITE_EXTERNAL_STORAGE hit enter. Your app should now have that permission.  Not sure if permanently though.

Googled and figured out how to turn on USB debugging. Type where????

You need a terminal to be able to run adb commands. google again to know how to get adb running on your computer


text:
Call custom emergency number from lockscreen
Ok, basically, what I want, is to provide Android phone to child, locked by passcode (or gesture), and allow the child to call parents (two numbers) from locked device.
My current available target device is SDK 22, Android 5.1, but I will not limit the answers to this target.
What is not correct answer:

something along the lines of setting ICE info, this won't allow to call, just to display ICE phone numbers
modifying the SIM card data, as this is not possible generally and not available in my case
solutions requiring ROOTing the device, as this is not possible in my case
solutions using CALL_PRIVILEGED, as this permission is protected and not achievable without ROOTing the device or having custom ROM
Solutions using Samsung or other proprietary emergency dialers, as the devices I target, do not use any such measure, and look like this

What I've tried to do is

Creating custom notification intent on the lockscreen, which would use ACTION_CALL intent and android.permission.CALL_PHONE permission

this is not working solution, as CALL_PHONE requires unlocking the device

Creating custom notification intent on the lockscreen, which would send out SMS to pre-defined numbers

this works, however it might be pricey, and I consider this the last resort option
this also does/might not resolve the emergency cases, child might got into, because the reaction time depends on parents having the phone volume up and calling back right-away

Your question turned up in close vote queue, so I want to clarify that whether you are asking from a developer's perspective or an end-user's perspective?

@Firelord both actually, i'd be more than happy for solution which suits end-users, however I'm capable of accepting dev solution and turning that into end-user solution (ie through github/fdroid)

The feature you are looking for already exists in Android 7.0+. Upgrade your device if you can.

I sincerely cannot upgrade the devices, however, what you've posted is what I mentioned in incorrect answers as first option, this will only set ICE emergency info, but not allow you to call said emergency number if it is not in SIM card (where default 911, 112, etc. emergency numbers are persisted)

Sorry, I don't know what ICE info is but do you not want the ability to call custom contacts from the lock screen without unlocking? As you can see in the first image there is an "add contact" button to do so. I've done it on my phone as well, can be seen here.

thank you, are you actually able to call the contacts from the posted screenshot without unlocking device? ICE info is abbreviation of "In Case of Emergency", which is exactly what you've posted

Yep, can call without unlocking, hence the suggestion to upgrade if you can.


text:
Locked Samsung tablet A
My grandson has put a pattern lock on his tablet & has forgotten it. When I try to turn it off or sign in I keep being asked for the pattern I’m just locked out

Check previous questions, they may be helpful. Here is the link: https://android.stackexchange.com/questions/tagged/pattern-lock+samsung

You might keep trying patterns if you think that after a number of wrong patterns you could get right one but android will setup a timer to wait if wrong pattern is drawn and each time timer to wait will increase.
The next option would be a hard reset your device.
Please keep in mind

• Resetting your device will completely erase all user data on the device.
• After reset you may be asked to sign in with the previous Google account (as a security feature named FRP) that the device had previously signed in before Resetting. So, make sure you have sign in detials of that account.

How to hard reset Samsung tablet A ?

Switch off the device.

Press and hold the Volume Up key + Home key + Power key simultaneously.

Release keys when the Samsung Galaxy Tab screen displays.

Recovery menu would take a little time to appear(It would take couple of seconds to show you System Update so wait.)

Choose wipe data/factory reset by pressing volume - button.

Press power to confirm factory reset(choose delete all user data.)

It would take couple time to reset it, after process is done the option may appear to 'Reboot' device or it may be Rebooted to system automatically.

Now you would be asked to set up your tablet and you all screen lock is disabled.


text:
How to update wpa_supplicant to version 8
I am running LineageOS 14.1
I want to upgrade the wpa_supplicant so i can connect to my network with Management Frame Protection turned on.
I need to know how to update wpa_supplicant so i can connect to wpa3 when it get released with openwrt 19.01
This connecting to my network with my phone running android 8.1 has no issues connecting to my network with Management Frame Protection turned on.

You need to build wpa_supplicant yourself from latest source, either with ROM or the individual program. Standard source needs some Android specific changes. Or you can build static binary if you need to use from commandline

@Irfan Latif how do i do that, i have never complied any thing for an android OS before. is it like linux ?

Yes it's same with gcc, minor differences with Android NDK. Better go far gcc with musl, glibc is problematic with NSS stuff. If custom ROM source is available for your device with Lineage or Omni, you can go for that too. Check relevant site for instructions. But I'll suggest building standalone binary


text:
Monthly OTA update
When the monthly security OTA update is being applied, does the android system verify the integrity of the system partitions and system apps ?

I suggest you consider visiting our [ask] guide to know how to ask a good question. A good question shows effort on part of the asker to solve the problem on their own. Your questions consistently shows no efforts so far in that regard. For example, if you look for an answer for this question you would easily find one through a search engine. If you still don't understand what you find, let us know. We can help you out. :)

Depends. If it is an incremental update, then yes, it does check vendor, system, boot and other partitions to pass an integrity check before applying an update.
On the other hand, if it is a full update (1.5GB or so) then it will overwrite the main partitions and hence won't need an integrity pass.


text:
Bluetooth: one device for input and one for output
Good morning everyone!
I am wondering, is it possible on Android 9 to use a Bluetooth headset as voice input and a Bluetooth speaker as output at the same time?
Context: I need to run my voice through a modulator!


text:
x88 Max+ Android Hide On Screen Keyboard
This little box is so close to replacing my PC but it has a number of frustrating issues that I would like to fix (it's running Android 9.0).
The on screen keyboard won't go away. I have show virtual keyboard turned off in physical keyboard settings but it still appears.
The enter key enters the currently selected key on the physical keyboard instead of enter. I know how to fix this by rooting the device but I don't know how to root the device (and I'd rather not root the device if I can avoid it).
The cursor keys control the selected key on the on screen keyboard instead of the cursor position on the screen.
Selecting a suggested search term in Google Chrome with the mouse while typing in the URL/Search bar doesn't work (does nothing).
If I can fix the on screen keyboard issues this box will be good enough to replace my PC! Any help appreciated.

You can use External Keyboard Helper Pro app to do this on the T95Q, I assume on the X88 MAX Plus too (I got rid of mine as it cannot do VPN over Ethernet).


text:
Lock bootloader with broken USB port
I bought a Xiaomi Mi A2 maybe 10 months from now, and from changing software, or some strange things, I broke the USB port.
The strange thing is that only the "OTG" part got broken. I mean, I still can charge the phone, and use the native USB-C to Micro-Jack convertor, but I cannot use USB-C headphones or correct the phone to my PC.
I sent the phone to the warranty service, but since I had unlocked the bootloader, they didn't cover the charges. It was in christmas, so they didn't even wanted to fix anything, the just sent me the phone back.
But as a developer, I really need USB Debugging, and I bought some nice USB-C headphones, and I can't use them, so I wonder if there's anything I can do to relock the bootloader, and maybe send the phone to them for a repair.
Any ideas? I'd be really pleased. Thanks in advance

Only thing i can think of is maybe it was dropped while being charged and the usb jack is slightly bent inside...
ALWAYS TRY ANOTHER  CONFIRMED WORKING USB CABLE FIRST !

Start Fastboot on the PC
Use wait-for-device or just devices first
fastboot wait-for-device or fastboot devices
You should see "waiting for device"

A worthy mention..
This will require your fastboot commands to be constructed as a script file.  .

write each command in a new text file, line by line
( one command per line )
Save the text document as a .bat file on Windows or a .sh file on linux
Run the script

if .bat ( Double Click )
if .sh ( use command sh -c /path/script.sh )

SCRIPT CONTENTS EXAMPLE
fastboot wait-for-device
fastboot oem lock

Script will vary slightly with linux ( !#sbin/sh)
Fastboot should wait for a connection and then execute the next command ( oem lock )
To Use All Of This ...

Start the script on PC
Plug in the USB to PC but not Device ( important )
Now the tricky part, Slowly plug in the USB cable to the device, try to apply a slight amount of pressure going in a circle to find the sweet spot ( the part where the terminals are touching - the angle that the usb is bent on.. )

Try to find the spot where there's a connection, and watch the script run...
You are trying to hold the USB connection for just long enough to run OEM Lock, Fastboot will wait for the sweet spot ( only just connecting ) and then run OEM Lock after it gets a connection...

P.S you might have turned USB Charge Only - On


text:
Dirty Flash Android Kernel
Will it be an issue if I dirty flash android kernel? I am trying out a few kernels for my phone and I want to make sure that dirty flashing won't affect the efficiency of the kernel. If it does, what is the method to flash a new kernel without losing data and apps?

Booting a new kernel image on an existing system is quite usual, especially as fastboot allows to do so even without flashing the kernel image: Just execute fastboot boot <kernelimage.img> to boot a kernel image from your PC.

BTW, "dirty flashing" a kernel is quite normal... Flash the (I assume) custom kernel and follow any process the kernel dev recommends, which is typically no make than wipe caches. There should be no reason in most cases to have to wipe data when flashing a new kernel.

Use twrp to flash the kernels.
Always keep a flashable zip of the stock kernel, in case you face any problem.
I have seen requirements of many kernel developers that,
you need to be on stock kernel before flashing the custom one. So, before flashing another custom kernel, it is always recommended to flash the stock one, then flash the custom one.


text:
Remove app on my home screen
I have a Samsung Galaxy Prime 7 or vice versa and I can't remove a app on my home screen when I push the app there's uninstall or remove and there's a trash can but I can't do it

Good idea to show a screen recording of the issue.

Could you especify what error are you facing while trying to remove the shortcut? With more information, we'll be able to help you to solve this issue.
But you can try some of the steps below:
1 - Drag and move the shortcut to the "trash can" icon in the upper corner of your display.
2 - Long press the shortcut and it may show an popup with a few options like "uninstall and remove", if the remove option is available, the click on it.
3 - Try uninstalling the app which the shortcut belongs, and reinstalling it again, but make sure to disable the "Add Shortcut to home screen" option in the settings.
If those methods didn't work, follow the steps I told you in the first lines and send more information about what issues you're having while removing the shortcut.
Awaiting for your answer...


text:
Unable to delete anything in telegram
My question is that I am unable to delete any message or photo in a group chat.

EDIT
It might be worth having a look at telegram today, they have announced some new features, including the unsed/delete anything.
Details are here: Unsend Anything
If you are in a channel, then the behaviour you have highlighted would be expected, you would be able to reach out to the creator and ask them to delete the message(s) or discuss being given access rights on the channel.
As per Telegram FAQ:
The creator of a channel can broadcast messages, delete any messages, add members (the first 200 only), remove members, change the channel's name, profile image and link, as well as delete the channel completely. The creator can also add and remove administrators to help manage the channel.
Have a look at Telegram's website here for more information: What can administrators do?

but it is basic functionality to delete a message, why did they excluded this

@AvinashKumar
That would be at the discretion of the creator of the channel.

It's a group not channel


text:
Fixing a kindle fire X43Z60
So I have a Kindle Fire. One day I was stupid and deleted a bunch of stuff in the /system folder. Now, it no longer boots. No ADB, no fastboot, no nothing.
However, it still shows the static boot screen (with the orange 'fire' text.)
It never moves to the animated boot screen.
Can I get it into fastboot without a cable, or can I get into recovery mode?

Without the original Kindle cable you will not be able to get it into fastboot/recovery mode,
If you'd like more information and even some suggestions on what you might like to try next to see if you can rescue this device, head over to xda developers forum on the Kindle Fire
https://forum.xda-developers.com/kindle-fire-hd

Put the device in fast boot mode: Power + Volume up buttons.
Select recovery option, then select safe recovery option.


text:
There is no WiFi signal when debugging app
I'm using a real device to build code with IntelliJ.
I realized that when I run app, the WiFi signal is too weak, almost lost the connection.
My device is Xiaomi Redmi note 5. The WiFi only loses the connection when I run the app or debug the app. If anyone has same problem, please tell me, lost internet connection and I can't run the app and test it.

Based on more than 1-year experience in developing and debugging Android apps, I've never experienced this. Android emulator can throttle network, but AFAIK it can't do that on real devices. Since you're developing an app, you should check the logcat if there's something related to the WiFi when you debug/run your app.

I got it, just turn off terminal and turn on again :)))

@HuệVũ feel free to put that as an answer to your question if that was your solution


text:
WiFi stops working when connected to Bluetooth box
When I connect my Android 6 Huawei to my bluetooth box and play music my wifi decides to kill itself, while it is still on and connected.

Wifi and Bluetooth usually use the same frequency range. Therefore it is not unusual that the one can affect the other.

My phone uses 2.4Ghz, I don't know what my box uses, but can I change the freq. of the box?

Bluetooth uses by definition the 2.4GHz range. Usually devices are optimized for minimal side effected when using both Bluetooth and Wifi. For an unknown reason on your device the situation seems to be different.


text:
Is it possible to keep the touch sensor on while the screen is off?
I know that the touch sensor of a phone's screen requires power to operate. So, my question is that, is there any way to keep the touch sensor on while the screen is off in Android OS?

I think yes but I'm not 100% sure. Thing is I remember some old phone had thisbor similar thing because developer tried to make double tap to wake as LG phones have, but it had resulted in a huge battery drain and wasn't finished (I can't remember what phone it was, if I do I will post here). Anyway you would need to make custom kernel, and maybe even play with drivers. Why do you need this?

Actually, I am trying to make an Android app, which can respond to gestures even when the screen is off, for faster access.

Is that possible by acquiring partial wake lock?

I'm not sure but it will probably make battery drain because cpu won't be in doze or deep sleep, maybe if you use device sensors but not every device has double tap sensor and it doesn't allow much to do with it. Ask this on xda or stack owerflow because they deal with development

authors: Једноруки Крстивоје