text:
How to filter out repeated keystrokes like "uu" or two consecutive blank spaces and automatically turn them into one single character like "u" and " "
Cheap Bluetooth keyboards have some serious drawbacks that could be easily avoided by software. I bought one for 7 Eur and nearly half the times I hit "u" I get "uu" or "uuu", which is clearly because of faulty hardware since it doesn't happen to any other vocal or symbol and no, it has nothing to do with leaving a key pressed in order to get something like "uuuuu".
Then I got a somewhat more expensive model (15 Eur) and about one in 4 times I hit the space bar I get two consecutive blank spaces and not one, unless I hit it very slowly, carefully and in the exact center of the key.
This could be easily avoided by purchasing a 70 Eur keyboard unless you are poor like me, and the other option would be to have Android filter out repeated characters that are typed very quickly (with a time threshold like, e.g. 'filter out any repeated character that is typed 100 ms after the first one'), thus effectively turning my dreadful double blanks and "uu"s into single blanks and single spaces respectively, without me having to spend more money that I can afford right now.
Please give me a soluuution. Thanks.

https://www.guidingtech.com/ways-to-fix-keyboard-typing-lag-on-android

@alecks Nothing to do with my quuestion, but I can't yet vote down. Thanks anyway.

one can't vote down comments

@alecxs That didn´t use to be the case. I haven´t been here for a long time.

What phone are you using ?

EDIT #3: ... "External Keyboard Helper Pro"  $ 1.49 US, Google Play Store, does indeed have that setting, and so far is the only app I've found which I'm certain does.
EDIT #2: ... Confirmed: some phones don't have that setting except perhaps when an external/physical keyboard is attached, in which case I'd suggest using the Search field in your phone's Settings to find "physical keyboard" (worked on 2 diff phones here each with diff locations for it within Settings), or "external keyboard", or just "keyboard"...  And again, as a last resort you could probably find another general Keyboard app at Google Play/Store which does have that setting, try using Google Search to find which apps include it, such as "android keyboard app with key repeat delay setting" (I've yet to see a computer/system without it since 1983, it's often one of the first settings I personalize whenever using a new system; I'm old-school IT/Tech/programmer)...  HTH...
EDIT #1:  ... Thx to a helpful reply here, it appears different phones have different Accessibility settings...  (I'd incorrectly assumed something that Fundamental would also be Universal; my bad, sigh, lol)...   I have a Samsung Galaxy S10 with Android 12; my fiance's Moto w/11 is completely different, I've just discovered; I'll try to find the setting in hers and re-edit soon...
ORIG:
Android OS-level setting: Accessibility/Interaction and Dexterity/Bounce Keys (similar to Key Repeat Rate sliders in Windows/etc.). This "should" apply to any key input, whether on screen, external, etc, tho I don't have an external keyboard for a phone to try it out;
If it doesn't, then try finding/using a different keyboard app which does have this setting directly within it (I should think most do?  Google search it if needed), not just at the OS (Android) level.

AFAIK, this accessibility setting may only be available on Samsung devices (checked on Galaxy M12) but not Android universally; it's not available on Google Pixel 3a. Thus, it might help if you could [edit] and mention the device model. Thanks.

Oops, thx @Andrew T., had assumed Accessibility was Universal; added my phone specs, checking others now, will re-edit...


text:
Location sharing is not enabled on my device. How do I fix that?
When I try to share my location in Google Maps on my Samsung Galaxy S21 FE, I get the following error message:

Roughly translated, the error message means "Location sharing is not enabled on this device". Next to it is a link labeled "Beheben", which means "Fix it". When I click on that link, the link is replaced with a spinner for about 1 second, then the "Fix it" link just reappears, and nothing else happens.
Why is Google Maps unable to fix the problem, and how can I fix it myself? The issue seems somehow related to my Google account, since I can share my location when logging in to Maps with another Google account.
What I already tried:

Check my Google account settings: Everything there looks fine to me.
"Send feedback" to Google: Done (at least) twice in the last months. No reply.
Ask on the Google community forum. Won't work. (More or less) the same message as in this question here results in "Failed to post. Content violates Community Policy."

source: Stack Exchange

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

sort: votes


text:
How to enter specific characters by typing specific words without special keys
I would like to have my Android tablet recognize every time I enter a specific codeword or sequence of characters like, e.g. "qtqtqt" and turn it automatically into a specific symbol like, e.g. "ñ".
I am not asking how to (re)define or assign a key combination like Shift+u, but rather how to type a codeword and get it automatically turned into a symbol.
In my example, let's say I want to assign the codeword "be" to the symbol "ñ", an obviously bad choice since that is a very common word in English, but I do this for the sake of explaining my point here. Then, whenever I tried to type Hamlet's famous words (just ordinary keystrokes without Shift or Ctrl or Alt) I would get this automatically:

To ñ or not to ñ, that's the question!

Thanks

See my response here.

@ReddyLutonadio thanks, but I need to do it with an external keyboard, so your response doesn't apply.

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


text:
Touch Screen Not responding but stylus works
This is a little different to other posts. I have a Samsung Note 20 Ultra

There is no damage to the phone or screen
I have not dropped it
Suddenly in the middle of browsing the touchscreen stopped responding
Since I have fingerprint access, its hard to do anything
I used the stylus to boot into safe mode
The issue is still there
I have checked all touch screen settings

Accidental Touch Protection is off
Touch Sensitivity - tried on and off
Touch and Hold delay is 0.5 sec
Tap duration is off
Ignore repeated touches is off

I tried *#2663# to recalibrate touchscreen, the firmware update fails.

Is this an Android issue or is it hardware ?

Hardware issue. Backup  your data while you can to cloud, PC wherever//If you still suspect Android do a factory-reset after backing up and I am pretty sure your problem will remain//S-pen is independent of touch screen function. I can't back this statement with evidence but that's the case AFAIK

I have come to that inclusion. I think that either the connector has fallen off the top layer of the screen OR the digitizer has gone.  The seller will fix under warranty.  But its a pain I have bank authenticator apps that are meant to he installed from the appropriate countries. It was a mission to do it. I had to use Google account for that country together with a VPN.

The seller failed to fix the phone after 5 weeks, and voluntarily gave me a brand-new one.


text:
Where are Android contacts stored?
I have a dual-boot Linux/Android phone. I want to get my contacts off the Android partition. Where is that file stored?
I tried googling it, but it seems like everyone is trying to sell me an app that does it.
I'd rather store it in a location and use it/add to it from Linux, but I need the path/file name.
(I had to wipe my OS last night after some kernel hacking left me high and dry, so it'll be a minute before I can get back to a good working version of Linux. :( I should have made a backup, but I didn't)

Your contacts must be synced to Google if you had sync turned on.

Interesting question.  Which dual boot Linux / Android phone are you using?  Do you recommend it?

The cosmo communicator. its pretty ok. its a weird setup in actuality. the thing has better specs that might make it good for playing games on andriod, but the layout kinda makes it hard to do that. the linux "support" is kinda meh too. I got it thinking I could use cellphone sensors to integrate into linux games, but its not documented very well, all the devices in the device tree are fed via andriod, interfacing from linux is harder than it needs to be. it also breaks loads of existing libraries. the OEM is pretty restrictive. I was trying to build out debian devtools when I broke it.

I mean, its not broken, just all the work I did to the OS is gone


text:
Not able to perform HTTP/S request while tethering
On my computer, I need to deactivate IPv6, deactivate all automated DNS system, set manually the DNS to any DNS I want (phone DNS or other), to be able to perform HTTP/S requests on domain names
If I don't do that, HTTP/S requests only succeed on IPv4 hostname/URL. Not on IPv6 hostname/URL or domain names (stackexchange.com etc...)
Should it be reported upstream? What is the problem?
I want to have connectivity

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

I’m voting to close this question because it belongs to Superuser.


text:
Android static IP ethernet on head unit
I need to set static IP on an Android 10 head unit where there is no ethernet settings page enabled so I couldn't set it by the touch panel.
I try to set the address with adb command (adb root) and I was able to set it by using ifconfig eth0 <static_ip_address>. But at the boot, the system forgot this setting.
Where could I set it in a general configuration file that set the static IP configuration permanently?


text:
Why can't I turn on Wi-Fi on the Waydroid emulator?
I just installed the Android emulator called Waydroid on Ubuntu 22.04. Almost everything seems to work as expected, except that I'm completely unable to turn on Wi-Fi usage. Whenever I toggle Wi-Fi on in the settings, the toggle goes to "On" but it doesn't actually turn on. If I leave that page in the settings, and return, it resets to Off. Any help?

The applications which run an emulation or a virtualized service typically won't give you access to the network interfaces of the host system. They usually create their own virtual network interface and make their app/service rely on that for network access. Try listing network interfaces in your host (Ubuntu). You'd most likely find waydroid0 or something which is responsible for providing network access to the emulator. Within the emulator you'd probably have eth0 or something else named ethernet interface. It is through that interface the emulator can talk to the host.

...Wi-fi settings of Android in your emulator is as useless as the Wi-Fi settings in Android emulator offered by Google. IMO, It is there because removing it from the Settings app's code is not worth it.


text:
Which notification settings controls Family Link notifications?
I have migrated my daughter's phone from Microsoft Launcher to Google Family Link. Everything works as expected (or even better) and the only problem (or actually one of two problems) we're facing is the irritating notification that Family Link displays:

How can I get rid of it?
I have tried to open the corresponding app (Google) notification settings. I found many entries there, but nothing that seems to be related to Family Link.
On one of two phones, I managed to resolve this by completely disabling the Google application from displaying any kind of notifications. But that's a workaround I'd like to avoid the most, if possible.

I don't use Google Family Link so I cannot check if my answer would. It is worth a try though. See How to block specific notifications from an app?. The app you need to target is Google Play Services.

The notification shows "Google Play services" as the source of the notification. You might be able to access the notification setting directly by long-pressing the notification. However, that doesn't mean that there's a notification setting for Family Link specifically if Google doesn't provide a notification channel for this.

It seems that disabling "Google Play services" notification, as you both suggest, will resolve this issue. However, it will also block any forthcoming notifications from Google Play, for example some game-related notifications. It's a trade-off that I am willing to accept. However, I am really, really surprised that given the fact that dozens, if not hundreds of millions of parents are using Family Link, they haven't still come with the separate setting. I don't mind my girls having full games-related notifications and I don't see anything in common between Google Play games and Family Link.

This seems very weird. I'll do some tests and report here. Thank you.


text:
Unable to uninstall Microsoft Launcher or Microsoft Family Safety. Apps are installed back automatically
I have migrated my daughters phone from Microsoft Launcher to Google Family Link. Everything works as expected (or even better) but the problem we're facing is that we cannot uninstall Microsoft stuff from the phone -- namely Microsoft Launcher and Microsoft Family Safety.
Steps:

We locate the application's icon in the app drawer (Android 11, Xiaomi Redmi 11S, MIUI 13) and trying to uninstall it the regular way:

We're hit with the confirmation message:

After so-called uninstallation process corresponding icon disappears:

Only to reappear about 2-3 seconds later:

Microsoft stuff (FamilySafety and Lanuncher) are the only apps that we cannot uninstall, we can uninstall any other without any problems.
As you can see, a bare Google / MIUI app drawer and launcher is in use. Microsoft Launcher has been (successfully?) removed as a home screen launcher.
What we're doing wrong or how can I get rid of it?

Just checking if you tried to disable the Microsoft apps in Google Family Link.

Yes, that was the first thing that I did. A workaround that just works. But by no means answer why suddenly I cannot uninstall an app from my phone. An app that I have manually and myself installed. To be honest, this is the first time in the past 10 years that I have come with such a weird situation. We all have heard about hundreds of apps that you cannot remove from your phone, but it was always apps that have come to you with the phone. I have never heard about the situation where I can install something myself only to not being able to uninstall this thing later. Really, really weird.

Also checking if you did: https://support.microsoft.com/en-au/topic/uninstalling-the-microsoft-family-safety-app-97685a5c-4847-421a-a234-330a7642526b as it sounds like the Microsoft device manager or some other device manager (Google / Xiaomi ?) is still active.

Due to the nature of usage, both apps (Microsoft Launcher and Microsoft Family Safety) are setup with the Device Admin permission during installation. This permission must be revoked before one can uninstall it (or any other app with such permission). And some additional steps may be needed.
For Microsoft Family Safety (instructions from source adjusted to Redmi 11S):

Sign out from your child’s account in Family Safety app (tap on the app’s menu button → Settings → Sign out) on your child phone

Depending on child’s age, family organizer approval may be needed

Exit app and go to Settings → Privacy protection → Special permissions → Device admin apps → Family Safety → Deactivate this device admin app

For Microsoft Launcher (on Redmi 11S):

Go to Settings → Privacy protection → Special permissions → Device admin apps → Family Safety → Deactivate this device admin app

Go to Settings → Home screen → Default launcher → deactivate Microsoft Launcher (change it to some other)

Now you can uninstall these apps the regular way and they won't be reinstalled automatically.
Source: Uninstalling the Microsoft Family Safety app.


text:
How to disable Google Assistant without being logged into account?
I am unable to disable Google Assistant without being logged into an account.  When I try to, I am stuck with the following:

Sign in to make the Google Assistant yours.
Your assistant knows you by your Google Account and can help you with your calendar, ...

Is there a way to disable Google Assistant without being logged into an account?

Google Assistant, as everything else Google, requires a Google account. If you aren't logged in then GA won't work. Most would consider that state as "disabled".

@ChanganAuto If a device is under MDM (AKA no particular Google account), Google Assistant allows containment to be breached when device is in kiosk mode (device locked down) = not so locked down.  https://developer.android.com/work/dpc/dedicated-devices

Would love to know the answer to this one. I don't have a Google account activated on the phone and it keeps pestering me with this message. It's like "you can choose not to use what've decided to force you to use, but don't think we're not going to pester you obnoxiously about it for the rest of your life if you say 'no'".


text:
Android Phone WiFi: "Cannot Connect. Try again"
My new Android phone can't connect to my Wi-Fi network.

The SSIDs are visible, not hidden.

There is a 5ghz and a 2.4ghz network on separate SSIDs. Both have the same problem.

The phone gives the error Couldn't Connect. Try Again. when the password is entered. The network entries have Check password and try again underneath them in Wi-Fi settings.

The password is confirmed to be correct. It has been entered while visibly showing what the whole password is.

Other devices can connect to the Wi-Fi access point without any problems eg. iPhone, iPad, PC with Linux, PC with Windows, Macbook, Chromecast 4k.

The phone is brand new Poco X4 Pro.

Network settings in Android have been reset.

The Wi-Fi router has been reset.

Wi-Fi bands on the router have been changed.

Is there anything I can do to troubleshoot the error?


text:
Special permission "WiFi control" permission inactive
Special access "WiFi control" permissions on Samsung S6Lite (Android 12, 2022) can not be toggled on or off for all apps (system or non-systems apps; there was just one adjustable - Google Photos). It looks like something preventing a user to do so. I see the blue toggle icons, but they are sort of dimmed and I can not interact.
Any suggestions what's blocking?

Not a direct answer to your question. But you can try to change CHANGE_WIFI_STATE AppOp permission using app: PMX. Introduction here: What are manifest permissions and AppOps?. Disclosure: both links belong to me.

I can change CHANGE_WIFI_STATE with ADB. The question is: What blocks on the user interface level? Because in all other devices I new there were nothing preventing controlling "WiFi control" permissions. But thank you for reference to your app.


text:
Place all app icons on one home screen instead of two on Redmi Note 10 (MIUI)
I just switched from Xiaomi Redmi Note 9 to the Note 10. I haven't started installing apps on the 10, but already the home screen is split into 2 pages.

On my old phone, everything was on one screen.
How do I fix this? I'd also like to get rid of the "weather, time, and search bar" theme, it's taking up too much space.

Turns out you can long press those elements to get rid of them, then move the icons to the 1st screen and it will collapse to 1 screen.


text:
Turn an old Samsung Galaxy S6 into a GameBoy/eBook reader
I have a Galaxy Tab S6 (I know, old...) and I would like to turn it into something that, once turned on, will do two things:

GameBoy (via an emulator)
Ebook (via the Kindle reader)

I want to make dead sure nothing else is usable/visible. I am talking about Chrome, settings, and anything. When I want to install new GameBoy games, I will upload them to the tablet via ADB.
I enabled developers mode on the tablet, and enabled USB debugging. I got onto the shell (I am OK with the Unix command line) and ran pm list packages and got this:
package:com.monotype.android.font.rosemary
package:com.sec.android.app.DataCreate
package:com.sec.android.widgetapp.samsungapps
package:com.google.android.youtube
package:com.sec.android.app.chromecustomizations
package:com.android.providers.telephony
package:com.sec.android.app.parser
package:com.android.providers.calendar
package:com.osp.app.signin
package:com.samsung.clipboardsaveservice
package:com.android.providers.media
package:com.google.android.onetimeinitializer
package:com.sec.android.widgetapp.digitalclock
package:com.android.wallpapercropper
package:com.sec.factory.camera
package:org.simalliance.openmobileapi.service
package:com.sec.usbsettings
package:com.android.documentsui
package:com.android.externalstorage
package:com.sec.factory
package:com.android.htmlviewer
package:com.android.mms.service
package:com.sec.android.wallpapercropper2
package:com.android.providers.downloads
package:com.android.browser.provider
package:com.hancom.androidpc.appwidget
package:com.sec.android.app.FlashBarService
package:com.sec.android.Kies
package:com.samsung.android.email.sync
package:com.monotype.android.font.foundation
package:com.samsung.android.email.provider
package:com.samsung.android.MtpApplication
package:com.sec.android.app.factorykeystring
package:com.sec.android.app.samsungapps
package:com.sec.android.emergencymode.service
package:com.google.android.configupdater
package:com.sec.android.app.wlantest
package:com.sec.android.widgetapp.SPlannerAppWidget
package:com.sec.android.app.billing
package:com.android.defcontainer
package:com.sec.android.daemonapp
package:com.android.vending
package:com.android.pacprocessor
package:com.samsung.android.email.ui
package:com.sec.android.app.popupuireceiver
package:com.samsung.android.SettingsReceiver
package:com.sec.android.app.soundalive
package:com.sec.android.providers.security
package:com.sec.android.provider.badge
package:com.android.certinstaller
package:com.samsung.android.securitylogagent
package:com.google.android.marvin.talkback
package:com.samsung.android.app.assistantmenu
package:com.samsung.android.email.composer
package:com.samsung.SMT
package:android
package:com.android.contacts
package:com.android.backupconfirm
package:com.samsung.klmsagent
package:com.samsung.android.app.memo
package:com.sec.android.app.SecSetupWizard
package:com.sprd.thermal
package:com.google.android.gm
package:com.samsung.android.scloud.auth
package:com.samsung.android.scloud.sync
package:com.sec.android.app.hwmoduletest
package:com.sec.bcservice
package:com.android.calendar
package:com.sec.modem.settings
package:com.sec.android.app.sysscope
package:com.sec.android.app.wallpaperchooser
package:com.sec.android.app.servicemodeapp
package:com.sec.android.preloadinstaller
package:com.google.android.setupwizard
package:com.sec.android.gallery3d
package:com.android.providers.settings
package:com.android.sharedstoragebackup
package:com.sec.android.widgetapp.dualclockdigital
package:com.samsung.android.app.colorblind
package:com.hancom.office.hshow.viewer.hshow_viewer_apk
package:com.google.android.music
package:com.sec.android.pagebuddynotisvc
package:com.android.printspooler
package:com.android.dreams.basic
package:com.sec.android.app.music
package:com.android.incallui
package:com.android.inputdevices
package:com.sec.android.Preconfig
package:com.hancom.androidpc.hanupdater
package:com.google.android.apps.docs
package:com.google.android.apps.maps
package:com.sec.enterprise.mdm.vpn
package:com.sec.android.widgetapp.at.hero.accuweather
package:com.sec.android.inputmethod
package:com.android.cellbroadcastreceiver
package:com.sec.android.app.clockpackage
package:com.sec.android.RilServiceModeApp
package:com.google.android.webview
package:com.sec.android.app.simsettingmgr
package:com.android.server.telecom
package:com.google.android.syncadapters.contacts
package:com.android.keychain
package:com.android.chrome
package:com.samsung.android.asksmanager
package:com.samsung.android.sm
package:com.google.android.gms
package:com.google.android.gsf
package:com.google.android.tts
package:com.google.android.partnersetup
package:com.sec.android.diagmonagent
package:com.android.packageinstaller
package:com.google.android.videos
package:com.sec.spp.push
package:com.sec.android.app.myfiles
package:com.android.proxyhandler
package:com.samsung.android.allshare.service.fileshare
package:com.sec.android.app.launcher
package:com.hancom.office.hcell.viewer.hcell_viewer_apk
package:com.sec.android.app.sns3
package:com.google.android.feedback
package:com.google.android.apps.photos
package:com.google.android.syncadapters.calendar
package:com.android.managedprovisioning
package:com.sec.android.providers.tasks
package:com.monotype.android.font.chococooky
package:com.android.dreams.phototable
package:com.samsung.safetyinformation
package:com.sec.android.app.ringtoneBR
package:com.android.providers.partnerbookmarks
package:com.google.android.gsf.login
package:com.cleanmaster.sdk
package:com.samsung.android.app.accesscontrol
package:com.android.wallpaper.livepicker
package:com.sec.enterprise.mdm.services.simpin
package:com.samsung.android.app.FileShareClient
package:com.hancom.androidpc.viewer.launcher
package:com.sec.android.app.popupcalculator
package:com.sec.android.soagent
package:com.samsung.android.scloud.backup
package:com.samsung.android.fmm
package:com.samsung.android.mdm
package:com.sec.phone
package:com.google.android.backuptransport
package:com.sec.android.app.kidshome
package:com.visionobjects.resourcemanager
package:com.samsung.android.smcore
package:com.android.settings
package:com.sec.android.app.bluetoothtest
package:com.sec.android.emergencylauncher
package:com.sec.hearingadjust
package:com.sec.android.splitsound
package:com.wssnps
package:com.policydm
package:com.hancom.androidpc.launcher.shared
package:com.samsung.android.app.FileShareServer
package:com.sec.android.app.snsimagecache
package:com.android.vpndialogs
package:com.google.android.talk
package:com.android.phone
package:com.android.shell
package:com.sec.tcpdumpservice
package:com.android.providers.userdictionary
package:com.sec.enterprise.knox.cloudmdm.smdms
package:com.wssyncmldm
package:com.android.location.fused
package:com.android.systemui
package:com.monotype.android.font.cooljazz
package:com.sec.android.provider.logsprovider
package:com.samsung.aasaservice
package:com.sec.android.app.fm
package:com.sec.android.app.mt
package:com.hancom.office.hword.viewer.hword_apk
package:com.sec.android.provider.emergencymode
package:com.sec.android.app.camera
package:com.android.bluetooth
package:com.google.android.androidforwork
package:com.android.providers.contacts
package:com.sec.android.widgetapp.webmanual
package:com.samsung.sec.android.application.csc
package:com.android.captiveportallogin
package:com.samsung.android.video
package:com.samsung.android.email.widget
package:com.samsung.location
shell@gtexswifi:/ $ pm list packages
package:com.monotype.android.font.rosemary
package:com.sec.android.app.DataCreate
package:com.sec.android.widgetapp.samsungapps
package:com.google.android.youtube
package:com.sec.android.app.chromecustomizations
package:com.android.providers.telephony
package:com.sec.android.app.parser
package:com.google.android.googlequicksearchbox
package:com.android.providers.calendar
package:com.osp.app.signin
package:com.samsung.clipboardsaveservice
package:com.android.providers.media
package:com.google.android.onetimeinitializer
package:com.sec.android.widgetapp.digitalclock
package:com.android.wallpapercropper
package:com.sec.factory.camera
package:org.simalliance.openmobileapi.service
package:com.sec.usbsettings
package:com.android.documentsui
package:com.android.externalstorage
package:com.sec.factory
package:com.android.htmlviewer
package:com.android.mms.service
package:com.sec.android.wallpapercropper2
package:com.android.providers.downloads
package:com.android.browser.provider
package:com.hancom.androidpc.appwidget
package:com.sec.android.app.FlashBarService
package:com.sec.android.Kies
package:com.samsung.android.email.sync
package:com.monotype.android.font.foundation
package:com.samsung.android.email.provider
package:com.samsung.android.MtpApplication
package:com.sec.android.app.factorykeystring
package:com.sec.android.app.samsungapps
package:com.sec.android.emergencymode.service
package:com.google.android.configupdater
package:com.sec.android.app.wlantest
package:com.sec.android.widgetapp.SPlannerAppWidget
package:com.sec.android.app.billing
package:com.android.defcontainer
package:com.sec.android.daemonapp
package:com.android.vending
package:com.android.pacprocessor
package:com.samsung.android.email.ui
package:com.sec.android.app.popupuireceiver
package:com.samsung.android.SettingsReceiver
package:com.sec.android.app.soundalive
package:com.sec.android.providers.security
package:com.sec.android.provider.badge
package:com.android.certinstaller
package:com.samsung.android.securitylogagent
package:com.google.android.marvin.talkback
package:com.samsung.android.app.assistantmenu
package:com.samsung.android.email.composer
package:com.samsung.SMT
package:android
package:com.android.contacts
package:com.android.backupconfirm
package:com.samsung.klmsagent
package:com.samsung.android.app.memo
package:com.sec.android.app.SecSetupWizard
package:com.sprd.thermal
package:com.google.android.gm
package:com.samsung.android.scloud.auth
package:com.samsung.android.scloud.sync
package:com.sec.android.app.hwmoduletest
package:com.sec.bcservice
package:com.android.calendar
package:com.sec.modem.settings
package:com.sec.android.app.sysscope
package:com.sec.android.app.wallpaperchooser
package:com.sec.android.app.servicemodeapp
package:com.sec.android.preloadinstaller
package:com.google.android.setupwizard
package:com.sec.android.gallery3d
package:com.android.providers.settings
package:com.android.sharedstoragebackup
package:com.sec.android.widgetapp.dualclockdigital
package:com.samsung.android.app.colorblind
package:com.hancom.office.hshow.viewer.hshow_viewer_apk
package:com.google.android.music
package:com.sec.android.pagebuddynotisvc
package:com.android.printspooler
package:com.android.dreams.basic
package:com.sec.android.app.music
package:com.android.incallui
package:com.android.inputdevices
package:com.sec.android.Preconfig
package:com.hancom.androidpc.hanupdater
package:com.google.android.apps.docs
package:com.google.android.apps.maps
package:com.sec.enterprise.mdm.vpn
package:com.sec.android.widgetapp.at.hero.accuweather
package:com.sec.android.inputmethod
package:com.android.cellbroadcastreceiver
package:com.sec.android.app.clockpackage
package:com.sec.android.RilServiceModeApp
package:com.google.android.webview
package:com.sec.android.app.simsettingmgr
package:com.android.server.telecom
package:com.google.android.syncadapters.contacts
package:com.android.keychain
package:com.android.chrome
package:com.samsung.android.asksmanager
package:com.samsung.android.sm
package:com.google.android.gsf
package:com.google.android.tts
package:com.google.android.partnersetup
package:com.sec.android.diagmonagent
package:com.android.packageinstaller
package:com.google.android.videos
package:com.sec.spp.push
package:com.sec.android.app.myfiles
package:com.android.proxyhandler
package:com.samsung.android.allshare.service.fileshare
package:com.sec.android.app.launcher
package:com.hancom.office.hcell.viewer.hcell_viewer_apk
package:com.sec.android.app.sns3
package:com.google.android.feedback
package:com.google.android.apps.photos
package:com.google.android.syncadapters.calendar
package:com.android.managedprovisioning
package:com.sec.android.providers.tasks
package:com.monotype.android.font.chococooky
package:com.android.dreams.phototable
package:com.samsung.safetyinformation
package:com.sec.android.app.ringtoneBR
package:com.android.providers.partnerbookmarks
package:com.google.android.gsf.login
package:com.cleanmaster.sdk
package:com.samsung.android.app.accesscontrol
package:com.android.wallpaper.livepicker
package:com.sec.enterprise.mdm.services.simpin
package:com.samsung.android.app.FileShareClient
package:com.hancom.androidpc.viewer.launcher
package:com.sec.android.app.popupcalculator
package:com.sec.android.soagent
package:com.samsung.android.scloud.backup
package:com.samsung.android.fmm
package:com.samsung.android.mdm
package:com.sec.phone
package:com.google.android.backuptransport
package:com.sec.android.app.kidshome
package:com.visionobjects.resourcemanager
package:com.samsung.android.smcore
package:com.android.settings
package:com.sec.android.app.bluetoothtest
package:com.sec.android.emergencylauncher
package:com.sec.hearingadjust
package:com.sec.android.splitsound
package:com.wssnps
package:com.policydm
package:com.hancom.androidpc.launcher.shared
package:com.samsung.android.app.FileShareServer
package:com.sec.android.app.snsimagecache
package:com.android.vpndialogs
package:com.google.android.talk
package:com.android.phone
package:com.android.shell
package:com.sec.tcpdumpservice
package:com.android.providers.userdictionary
package:com.sec.enterprise.knox.cloudmdm.smdms
package:com.wssyncmldm
package:com.android.location.fused
package:com.android.systemui
package:com.monotype.android.font.cooljazz
package:com.sec.android.provider.logsprovider
package:com.samsung.aasaservice
package:com.sec.android.app.fm
package:com.sec.android.app.mt
package:com.hancom.office.hword.viewer.hword_apk
package:com.sec.android.provider.emergencymode
package:com.sec.android.app.camera
package:com.android.bluetooth
package:com.google.android.androidforwork
package:com.android.providers.contacts
package:com.sec.android.widgetapp.webmanual
package:com.samsung.sec.android.application.csc
package:com.android.captiveportallogin
package:com.samsung.android.video
package:com.samsung.android.email.widget
package:com.samsung.location

I am not managing to disable Chrome:
pm disable com.android.chrome
Error: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=11728, uid=2000, package uid=10065

Two questions:

How do I disable packages? Do I need "root" permissions on the tablet?

If/when I do become root, which ones shall I delete?

I would be more specific about the version of Samsung Galaxy Tab S6 to include model year/OS version as Samsung tends to reuse names/use similar names in various products, i.e. the Galaxy S6 (phone) is different from the Galaxy Tab S6 (tablet).


text:
How to set an Android tablet so that it is not possible to exit a Chrome tab?
We need to set up an Android tablet so that it can only be used to browse a Chrome tab set by us. It must not be possible for the user to exit Chrome or do anything other than fill in the fields of the web page opened in the Chrome tab. Can anyone tell us how this can be done?
We just searched on google for a solution with no success.

Unless I'm wholly off on this the solution is a dedicated app which should load a given page in webview and makes sure the webview cannot be closed. The app also needs to set itself as a default home launcher app so that home button presses doesn't dismiss the app. You might want to look into Kiosk type app to see if they provide the features you need. Else you might have to get somebody to develop a custom app for this.

Possibly related (but old): Set Kiosk mode in Chrome for Android

Kiosk seems a possible answer to this problem. I’ll keep you updated about it.


text:
Video to Live Wallpaper that survives a restart
I have an MP4 that I want as my live wallpaper. I can set it, but only through an app. The app does not, of course - automatically at startup - select the file, then set it as a live wallpaper. As I understand it, Android, unlike iOS, does not support live wallpapers WITHOUT an app.
Is there a way to create a live wallpaper that will remain stable in my system?

What I tried: I installed - and uninstalled - a host of video-to-wallpaper apps, in the hope that one might have a start-up option in the settings. None did.

I have Google wallpapers installed. In it, I went to "live wallpapers", one of the things there was the video-to-live-wallpaper app, I selected it, it gave me the MP3, and I set it as the live wallpaper. Restarted the phone - gone.

I've set the live wallpaper in the app, in the phone's launcher settings, and in the Android system settings, all to no avail.

Every single time I start the phone I have to open the app, find the MP4, and set it as the live wallpaper - again.
Alternatively: can that MP4 be converted to a live wallpaper format that does NOT require some outside app to be running in the background supporting it?
Phone running Android 12.


text:
Spotify conflict between smartphone and car tablet
I apologize for my English because it's not my native language and I hope I'm not breaking some forum rules.
I got a Samsung s21 fe and a Macrom M-an700dab, which is a car tablet with android 8.1 mounted on a peugeot  308. I have regular spotify account, only one device at time. When I'm in the car I'd like to use the tablet Spotify app and the s21 Spotify app, cause I can control that via Alexa Echo Auto. I thought in theory that can work if I use the "connect to device" Spotify feature in the smartphone app, which see the Macrom tablet like a device, allowing me to change song with the phone (therefore with the voice) and with the tablet.
The problem is that most of the time Spotify pauses the song after a few seconds, and even if I play it again it re-pauses. Then I have to close the app on the phone and use the app on the tablet or vice versa. I think what makes the conflict is the fact that the smartphone is connected to the tablet with Bluetooth.
I'd like to find a way to fix this.
I hope I have been as clear as possible, even if this problem is difficult for me to explain even in my own language. If there is something unclear or missing information, tell me and I will try to explain myself better.
Thank you in advance.


text:
Action-triggered lock screen
It's probably not possible, but it's worth an ask.
I've set up my phone in such a way that it won't be obvious to anyone else how to use it.
What I'd like is this:
(a) to NOT have to unlock the phone every single time I use it; but
(b) to have any incorrect use of the phone trigger the lock screen.
I can easily set the launcher to do (b), but it looks like we can't have a lock screen that doesn't come up automatically whenever you use the phone.
...or can we?

Is Smart Lock not acceptable as a solution? The phone would show lock screen only when it has not been used for at least 4 hours or if the criteria it depends upon can no longer be met. An unsafe option is to remove the lock screen completely and use an app as a lock screen replacement that can also provide the level of flexibility you need. An automation app such as Tasker can create a rudimentary lock screen for this purpose.

Thanks for the thought! But no, it's not a solution at all. It's not a way to do what I need, it's a way to do something completely different.
It doesn't protect the phone from people who don't understand the graphic interface I've built. It doesn't trigger the lock screen when I want it. It triggers it based on things that don't help me.

I wonder if there's a way to use something like tasker to literally go into settings and TURN ON THE LOCK SCREEN when my trigger is triggered... ?


text:
Start Chromium at web page with ActivityManager
I've got Chromium 106 installed on my phone and can successfully launch it via
$ adb shell am start -n org.chromium.chrome/com.google.android.apps.chrome.Main

However, when I try to bring up a specific page at launch time with
$ adb shell am start -n org.chromium.chrome/com.google.android.apps.chrome.Main -d http://127.0.0.1:8080

(I've got a web server running on port 8080 on my host with reverse TCP forwarding set up.)
the app doesn't launch but I get the error
Starting: Intent { dat=http://127.0.0.1:8080 cmp=org.chromium.chrome/com.google.android.apps.chrome.Main }
Error type 3
Error: Activity class {org.chromium.chrome/com.google.android.apps.chrome.Main} does not exist.

Is this not the right way to use am with Chromium?
Note: The command works if I run under su -c.

Try changing the activity name to org.chromium.chrome.browser.ChromeTabbedActivity and put the URL in double quotes. Source: https://android.stackexchange.com/a/241012/96277

You mean org.chromium.chrome/org.chromium.chrome.browser.ChromeTabbedActivity?  Same error.


text:
Is there a way to keep an Amazon Fire TV from going into Power Saving Mode?
Asking here because it was originally posted to Super User where it was closed due to the mod considering it an Android device.
My fire department recently purchased a TV with the intention of using it to monitor things like calls, call responses and weather. For obvious reasons, this TV needs to stay on 24/7/365 (aside from things like updates or temporary power drops).
Now for the problem, this is an Insignia model ns-55f301NA22 and is an Amazon Fire TV (not using a FireStick, it is a Fire TV). From research I have done on Amazon forums, this TV cannot be kept on 24/7. Apparently while you can shut the screensaver off, eventually the TV will go into a power saving or shutdown mode. Does anyone have suggestions on preventing this TV from going into power saving mode?
We would really like the screen to stay awake at all times, but if absolutely necessary, we would be willing to have it set to come on with motion activation or something of the like.
Edit to add: our call information is sourced from a website which can run through the TV’s browser. The website does have graphics that rotate through a couple different screens.

TVs usually have some power saving/screen burn in prevention mode which supersedes any built in OS. You may want to explain where is the source of your signal for "call responses and weather" info. If it s a static website or desktop you may still run into the same problems as the TV detects no change in display signal and goes to sleep.

@MorrisonChang I edited to add a couple details. I don’t know if these are what you were looking for.

On Android phones/tablets, there's usually "Stay awake (screen will never sleep while charging)" on the Developer options. However, I don't know if there's such a setting on Fire TV.

So, after some experimentation, we were unable to find a way to just keep the TV awake. However, we were able to connect the TV with an HDMI cable to a computer. This still caused both the TV and computer to fall asleep. However, with some setting adjustments on the computer, keeping the computer hooked up to a power source and adding a mouse/courser jiggling app, neither the TV nor the computer falls asleep.
Thank you to everyone who added helpful comments as well, you got those of us working on this issue starting to point in the right direction.


text:
Determining compatibility of app on Google Play
Is there a way to see which devices a certain app on Google Play is compatible on?
Edit: to clarify, this is from a user-side perspective.

Is this from a developer or end-user perspective?

Are you looking for any devices which are compatible or only your own devices?

Sorry for the ambiguity, I'd be looking for any devices which are compatible (from an end-user perspective)

Possible dupe: How can I find a compatible device for a given app on Play Store?, Get app's compatibility matrix from Play Store


text:
Google Messages adds spaces to emoticons
Since past 3-6 months Android Messages app started to insert spaces between characters of my emoticons and also started to remove certain characters, causing garbage to be actually sent:

In addition to Google Messages, I am using Gboard on both devices, so maybe this is a problem with the keyboard app, not with the messaging app.
Does anyone know what is this and how to prevent this?
At first I thought that this is a problem with my very old Motorla Moto One (first edition, X1941). But now I have migrated to Neffos X9 and I am observing exactly the same behavior.

This is caused by the "use simple characters" setting on Android Messages app. The setting will convert special characters in SMS messages.
This is due to the possibility that the recipient's messaging app converts the smileys into respecting emoji, thus resulting in an incomprehensible message, like when the sender intends to send the symbols as-is instead of being considered as an emoticon.
Related questions demonstrating the issue:

How do I disable all emoticons on incoming/outgoing text messages?
Prevent Samsung's stock Messaging app from converting textual emoticon to emoji

Wasn't "use simple characters" setting meant to control whether national characters are converted into Latin counterparts? I intentionally enabled the setting that you're talking about, but I was 300% sure that I am enabling the feature of national characters conversion.

@trejder that's also one of the purposes. Basically it makes the SMS (which by default only supports the limited GSM 03.38 character sets) save for the SMS provider (wrong encoding, e.g. due to emoji) and recipients (client-side emoji conversion).

I have accepted your answer, because you have explained everything perfectly. However, I must admit that this is as stupid as it can be. I've been using this switch (to replace national characters into simple Latin characters) for as long as I have been using Andriod phones, so ~10 years now. And they've only introduced adding spaces inside emoticons only a couple of months ago. Was that too hard to make that being controlled by two separate switches? Now, I can only choose: to have emoticons and send expensive 2-3 SMS long messages (even though text itself is short) or disable both at once.


text:
Is it possible to backup absolutely everything?
My phone is having issues, so I'd like to know if it's possible to backup everything, so apps, app data, files, pretty much every little thing.
(My phone is a Samsung J7 Star that's unrooted)

Without root, it's practically impossible since each app can decide whether it is allowed to be backed up or not, and its data cannot be accessed without root access.

Would I be able to root my phone and keep everything, because I'd do it if it means I can fix the issue or backup everything

The common way to root is by unlocking the bootloader and flashing a custom recovery first, but unlocking the bootloader will factory reset the device. On the other hand, rooting apps may be able to bypass the requirements, but they may not work anymore.

Alright, thank you


text:
Set Automate app as a device admin on Fire OS
I'm using Fire OS 7.3.2. I'm trying to set the "Automate" app as a Device admin, but when I click "Grant as device admin" it doesn't do anything. So I then tried to use ADB commands but it only just said "Unknown component".
Can someone please help?

Is the "grant as device admin" a button in system setting? If so, then Amazon has likely removed the "device admin" feature from their non-standard Android.

I'm not sure how the Android settings on Fire OS looks like, but can you find Device administrator manually, usually inside Security settings?

@ballzak Well, yes and no. The system settings are recognized apps by the system. The app I'm trying to activate; is through a system popup menu.

@AndrewT. Yes, but as my reply to ballzak says, is through a popup menu.

@borger The system show no such dialog, so it's likely the dialog Automate shown. Try enabling Automate as a device admin in system Security settings instead.

@ballzak Yes, the system has a built-in popup dialog when an application requests admin permissions. And the system security settings doesn't show "Automate" on the list. P.S: Sorry for the late reply, family stuff.

@borger Please use in-app Help & feedback menu to submit an issue report.


text:
Where does Whatsapp store its data on the phone?
I was clearing up some storage in my phone. The File Explorer App says Whatsapp takes 10.68 GB (see screenshot 1), whereas the folder Android/media/com.whatsapp is only 6.23 GB (see screenshot 2). Is there any other place where Whatsapp stores its data?
I have a Xiaomi phone with MIUI 12.5 and Android 11 RKQ1.

No. My phone doesn't have any data in the locations listed in that answer, i.e. Android/data/com.whatsapp

Other folders listed in that answer don't exist on my phone. Probably because of the changes in data storage policies with Android versions.

That's the only location where it stores data. Two possibilities I can think of a) WhatsApp cache taking up unusually large space b) storage mis-reported. Double check with an app like this

Another alternative

"My phone doesn't have any data in the locations listed in that answer" - yes for sure there is data in '/data/user[_de]/<user_id>/' but you don't have root access


text:
How does Google Play determine location? How do I trick it to think I'm in US? VPN and location spoofer don't work
I just want to buy in-game content from Play Store and I can't redeem the code (with the "need more info" error). It's a US code, my phone has US settings, I cleared all Play data, made an account set in the US, and I use VPN and FakeGps which work on Google Maps, but YouTube and Play still know I'm not in the US right now, and I can't find any more info on what else it uses to tell where I am.

I guess Google have upgraded their VPN detection mechanisms, I think they base it on an ISPs level now.

@xavier_fakerat is saying nonsense. When you are using a VPN, there is no way for the receiver to know your ISP, since the way to get your ISP is with your IP address which is precisely what a VPN is spoofing. It can only check that you're in a VPN, again from your IP address, and block you.

If you have bought something then Google assigns you a fixed country which can only be changed once a year. Once this country is assigned to your account it doesn't matter in which country you are located based on your IP. Check play store settings for the currently assigned country.

@adamency I don't understand the rant, but this is exactly what I was trying to say, they know the VPNs IP addresses and block them that essentially means there is a set of IPs (US) from the known ISPs that are allowed. BTW learn to be polite in you conversations. Also do not put too much trust in VPNs, they've got to many limitations.

@adamency Despite what many VPN providers advertise VPNs are useless (at best ineffective) at: 1. Achieving anonymity. 2. Preventing Google or Facebook from collecting your private data. 3. Hiding your mobile phone location (GPS). I wonder what makes you think Google can't detect your location when using a VPN, perhaps as you have bluntly tried to explain above a VPN can be at least useful Encrypting your data so your ISP or mobile network provider cannot monitor or log your online activity. (credits: ivpn.net)

It most likely knows this from your SIM card and phone number which is not a US one simply.


text:
Where does bmgr store the backups when using LocalTransport?
I've successfully triggered a backup using bmgr:
$ adb shell bmgr list transports
  * com.android.localtransport/.LocalTransport

$ adb shell bmgr transport com.android.localtransport/.LocalTransport
Selected transport com.android.localtransport/.LocalTransport (formerly com.android.localtransport/.LocalTransport)

$ adb shell bmgr enable true
Backup Manager now enabled

$ adb shell bmgr backupnow com.mirfatif.mylocation
Running incremental backup for 1 requested packages.
Package @pm@ with result: Success
Package com.mirfatif.mylocation with progress: 2560/3072
Package com.mirfatif.mylocation with progress: 3072/3072
Package com.mirfatif.mylocation with progress: 5632/3072
Package com.mirfatif.mylocation with result: Success
Backup finished with result: Success

Now where can I find this backup archive (presumably *.ab) on the device? Is it in a location accessible without root powers?
(if you wonder for the background: with adb backup being deprecated, and Android 12 said to only backup data for apps marked as debug, I'm looking for an alternative allowing me to have my backups in a location of my choosing. On that path I'm exploring bmgr, but this piece of information seems missing and did not surface during my searching the web. If it's possible for an end-user to define a dedicated transport with a storage end-point of choice, hints on that are welcome too and considered valid answers as long as they meet the goal)

/data/data/com.android.localtransport/files/1/_delta/

Ah, I was afraid of something like that. Thanks, @IrfanLatif – so there's no way to get to those files without root I guess (to copy them off-device and e.g. copy back and restore after a factory reset)?

Correct. AFAIK.

Hope we're both proven wrong then by someone (there's still a chance if there's an easy way to establish your own transport) – but afraid you're right. It's safe if Google gets our backups, but dangerous if we do, even when encrypted… Thanks once more!

Backup transports need signature level permission: android.permission.BACKUP. Else Seedvault could have been installed as a normal app.


text:
Galaxy S10e stuck on boot screen - cannot get into download mode or recovery
I have Galaxy S10e (beyond0lte), which had crDroid 11 installed. I flashed the latest stock firmware, then TWRP 3.7.0.0 patched with Magisk 25.0 using Odin and was able to get into TWRP. In TWRP I installed the crDroid 12 zip. It appeared to succeed, I wiped cache/Dalvik cache as suggested, and rebooted. My phone is now stuck on the boot screen showing

This phone is not running Samsung's official software. (blah blah blah)
Samsung Galaxy S10e

I left it like that for a good half hour just in case.
The only thing I can do now is reboot by holding Vol Down + Power. I cannot get into recovery mode nor download mode, no matter how many times I try the key combinations (Vol Up/Down + Bixby + Power) - it just goes back to that screen. I was able to do both before installing the crDroid 12 ZIP. Is there anything I can do to recover this phone?

It seems that the stock firmware update changed what needs to be done to get into recovery or download mode!
I now need to have the USB cable connected to a computer while pressing the same key combo (Volume Up + Bixby + Power). Some say to have it connected to power only, not a computer, but that didn't work for me. To get into download mode I now have to power off the phone and hold down Volume Down + Bixby while plugging in the USB cable.


text:
Resize /data on stock recovery
I'm on the BL6000Pro (with Magisk) which has no custom recovery (like TWRP) that I know of.
I run CAOS11 on it but the /system partition is already full while the /data partition is huge and empty.
I'd like to shrink /data and expand /system.
However, all solutions to shrinking /data require a custom recovery to manipulate the unmounted /data partition.
I can manipulate /system via fastboot resize-logical-partition system {{size}} but not /data because /data is not a logical partition.
In the stock recovery I have no adb access (adb devices says "unauthorized") while I have adb access in the ROM.
Question:
Is there a way to shrink /data without a custom recovery?
I think this question applies generically to any device that has no custom recovery and might therefore be of (somewhat) larger value to the community.
Edit:
Here's an excerpt from fastboot getvar all
(bootloader) partition-size:userdata:0x3A05FF8000
(bootloader) partition-size:sdc:0x3B96000000
(bootloader) partition-size:misc:0x80000
(bootloader) partition-size:boot:0x2000000
(bootloader) partition-size:super:0x140000000
(bootloader) partition-size:metadata:0x2000000
(bootloader) partition-size:vendor:0x29817000
(bootloader) partition-size:system:0x100000000
(bootloader) super-partition-name:super
(bootloader) is-logical:para:no
(bootloader) is-logical:userdata:no
(bootloader) is-logical:sdc:no
(bootloader) is-logical:misc:no
(bootloader) is-logical:boot:no
(bootloader) is-logical:super:no
(bootloader) is-logical:metadata:no
(bootloader) is-logical:vendor:yes
(bootloader) is-logical:system:yes

"you can delete some non-essential dynamic partitions, such as the product partition" (search for lpmake) what is 'fastboot getvar partition-size:super' total size, do you really think it's necessary to shrink userdata partition?

@alecxs Thanks for the response. I added the excerpt to the question.
I already deleted product to fit in the CAOS11 /system.
I already increased /systembut only marginally via fastbootd, I don't see another way to increasing /systembut I'd be grateful for any suggestions.

your super partition is almost full, without custom recovery or root you can increase system 359 MB only

@alecxs I managed to create a full backup via mtkclient.
I'm not sure what to do next. My only idea is to edit the scatter file (increase partition_sizeof super, also reduce the size of userdata) and flash the super partition again via SP Flash. Is that allowed? Also I'm not sure what to do with pgpt and sgpt. I'd greatly appreciate your advice.

Hi, sounds like a plan. you should be able to modify pgpt+sgpt files on pc with partitioning tool

try something like parted pgpt.bin unit B print on linux PC. here is a example usage for parted

just to clarify: by edit scatter you mean calculate new size + new offset for all partitions in line of course. + pgpt must edited too, both steps are required in combination (write new partitions in new scatter + write new pgpt) imho

here is how to (not) restore pgpt https://forum.xda-developers.com/t/4536929


text:
Cannot enable wifi/tcpip adb at boot time in Android 10 - no Allow USB debugging prompt/unauthorized
I have a Lenovo TB_X606F, with stock Android 10. I managed to root the device, and I wanted to be able to have the device listen to port 5555 for adb connections over Wi-Fi, that is TCP/IP, at startup (otherwise, I have to connect it via USB to a PC, and issue adb tcpip 5555 on the PC, and then disconnect USB, every time I want to access the device with adb over TCP-IP/Wi-Fi, and I want to avoid having to do that).
I have seen:

https://forum.xda-developers.com/t/seeking-advice-on-rooting-smart-tab-m10-fhd-plus-2nd-gen.4080371/
https://forum.xda-developers.com/t/solved-manually-enable-adb-debugging-from-recovery.2335799/page-3
https://stackoverflow.com/questions/12251101/how-to-enable-adbd-to-listen-to-a-port-at-boot-time-in-android
https://stackoverflow.com/questions/51943937/unable-to-use-adb-connect-to-enable-wifi-debugging
https://forum.xda-developers.com/t/adb-missing-popup-debugging-authorization-permission.4484757/
How can I enable Android Debugging from a root shell on the phone?
How to enable adbd to listen to a port at boot time in Android?

... and I performed these commands, rebooting the device after each command to test:
$ adb shell
X606F:/ $ su
X606F:/ # setprop persist.adb.tcp.port 5555
X606F:/ # setprop persist.sys.start.adb 1 # here it started allowing connections, but unauthorized
X606F:/ # setprop persist.service.debuggable 1
X606F:/ # setprop persist.service.adb.enable 1
X606F:/ # settings put global adb_enabled 1

Now, when the device is rebooted and goes online, I can do on my Linux PC:
$ adb kill-server
$ adb devices -l
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully

$ adb connect 192.168.0.10:5555
connected to 192.168.0.10:5555
$ adb devices -l
List of devices attached
192.168.0.10:5555      unauthorized transport_id:1

The problem is, once I've done adb connect, the "Allow USB debugging" never shows up on the tablet, and therefore I cannot allow the debug connection, and therefore it remains unauthorized. So, I cannot run anything:
$ adb shell
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

Yup - I have checked "for a confirmation dialog on your device" - it did not show up, wish it did ...
Funnily, if I thereafter plug the tablet device to the PC, I do get the "Allow USB debugging" prompt/popup/dialog - when I allow it, I get this:
$ adb devices -l
List of devices attached
HA1HA1HA               unauthorized usb:2-1.2 transport_id:2
192.168.0.10:5555      device product:LenovoTB-X606F_EEA model:Lenovo_TB_X606F device:X606F transport_id:1

... basically, now the TCP/IP/Wi-Fi connection is authorized, and the USB one is not ?!
So - how can I enable adb access over Wi-Fi (TCP/IP) on this device, such that when I connect to the device with adb from a PC, I get a prompt to "Allow USB debugging"?


text:
Allow inter-device communication on WiFi hotspot?
Is it possible to allow devices connected to a hotspot to communicate with each other?
I have a Ulefone Power Armor 13 rolling Android 11 and WiFi hotspot. Multiple devices can connect to the hotspot simultaneously, but it seems the phone is blocking these devices from communicating with each other. Everyone can communicate with the phone itself but not with other devices connected to the same hotspot. Pinging another device from Windows yields
>ping 192.168.90.77
Pinging 192.168.90.77 with 32 bytes of data:
Reply from 192.168.90.241: Destination host unreachable.
Reply from 192.168.90.241: Destination host unreachable.

This was not the case on my old Cat S60 phone rolling Android 6. There, all devices connected to the hotspot could communicate with each other directly (I am guessing that Android 11 is to blame, not the phone, but I don't actually know).

If it's due to AP Client Isolation, you need a rooted device to change ap_isolate in hostapd.conf. And that too may not be straightforward because Android usually creates configuration file dynamically.

This has just started happening to me on a Sony Xperia XZ1. What's really weird is it has not had updates for years. I have been able to connect both a laptop and a raspberry to it and access the rpi from the laptop on many occasions in the past, and now it just doesnt work. Only difference I can think of is it no longer has a SIM card in as I have a new phone.

@Mangodan2003 check the "security patch level", was probably a new security patch, silently installed, that broke it

@IrfanLatif at least on my Samsung Galaxy S22 Ultra updated to Android 13 and rooted, there are no results for sudo find / -iname "*hostapd.conf*" - hostapd.conf does not seem to exist

@hanshenrik already stated: "And that too may not be straightforward because Android usually creates configuration file dynamically."

@Mangodan2003 with Irfran's pointer, I found a solution :D see my answer below (requires a rooted phone tho)

I do not know how to do this on a non-rooted phone, but for rooted phones: Install Termux and run
pkg install tsu php

then run
sudo php -r '$confFiles=glob("/data/vendor/wifi/hostapd/hostapd*.conf"); foreach($confFiles as$confFile){var_dump($confFile);$conf=file_get_contents($confFile);$conf2=preg_replace('\''/\\#?ap_isolate\\=?\\d?/'\'','\''ap_isolate=0'\'',$conf); if($conf2 !==$conf){} else{$conf2=rtrim($conf)."\nap_isolate=0\n";}file_put_contents($confFile,$conf2,LOCK_EX);}'

and reboot.
Alternatively add this code to a foo.php
<?php

$confFiles = glob("/data/vendor/wifi/hostapd/hostapd*.conf");
foreach($confFiles as $confFile){
    var_dump($confFile);
    $conf = file_get_contents($confFile);
    $conf2 = preg_replace('/\\#?ap_isolate\\=?\\d?/', 'ap_isolate=0', $conf);
    if($conf2 !== $conf){
        //
    } else{
        $conf2 = rtrim($conf) . "\nap_isolate=0\n";
    }
    file_put_contents($confFile, $conf2, LOCK_EX);
}

and run
sudo php foo.php

and reboot.
Thanks to @Irfan Latif for pointing me in the right direction


text:
How do I block reels on Instagram?
I find myself wasting lots of time watching Instagram reels that I did not intend to watch. It is not good for me and does not help me achieve the goals I want to achieve. I have installed tools to help me limit the time I spend on certain activities on my smartphone and on my laptop, but now I'm looking for a tool to do this with Instagram reels in particular.
Is there a way to block Instagram reels completely on the Instagram app on my Android phone?

On Firefox or Kiwi browser, this is easy. Use Ublock Origin extension and block the elements responsible for loading those reels. On the app, this is going to be pretty hard. I tried to block the reels on Facebook app by first investigating whether the reels are fetched from a source which could be distinguished from the rest of the data the app fetches. It did not help. Other solution was to decompile the app and look for the code that adds those reels. Well, FB app's code was massive and was minified on top of that, so I gave up investigating it.

@Firelord wow! Thanks for going to all that effort. I didn't realise you could log on to Instagram in your web browser on mobile, I thought Instagram forced you to use the app on mobile.


text:
"pop-up message" obstructing for 120 seconds, was 2s
I have a new Motorola phone (moto g pure XT2163DL, Android 12), and it's giving me trouble.
For multiple apps, the "mini-notification" or "quick status message" that they display is staying asserted for way too long, obstructing my touch keyboard and other important functionality.
My older Android phone does it right. The messages pop up and go away after about two seconds.
On my newer phone the messages are staying up a full 120 seconds! Surely somebody has run into this before. Please, where is this setting, so I can fix it?! (An Android developer might know what this special message type is called. Is it an alert, a dialog box, a pop-up? Please let me know, as my searches will be much more useful!)
Pictures below:
"Saved Successfully." stays displayed 120 seconds:

Switching applications and rotating the screen doesn't make the message go away:

Sometimes the message is long and so much more troublesome! You can't touch-type on the keyboard while the message is hiding it! : "Opera Touch pasted from your clipboard" :

That is a "toast message". There should be a menu on Accessibility Settings similar to the one on Oppo ColorOS.

That was it. "Time to take action". Inside of Accessibility --> Timing Controls. I changed it from 2 minutes back to default, and now it takes only the two seconds that it used to take. Those  "Toast" messages are not using that setting properly, since no action was required or taken! Thank you!

You should also be able to get rid of those "Toast messages" by clicking or tapping on them, or some other reasonable method. That's a bug in the Android operating system.

If you could act on a toast, it's called snackbar// It's there in the comment linked for you by @AndrewT


text:
How recover photos from a locked Android smartphone?
A friend gives me her phone that she does not use anymore. This is a Oneplus 7 (android). She has set a pattern to lock the screen and does not remember it. So the smartphone is locked.
She's not sure that all her photos are recover so she wants me to save all of them before I reset the smartphone. USB debugging is not activated.
I see several options here:

Use her Google account to deactivated the lockscreen (No idea if possible and  I have not found anything about this)
Bypass the lockscreen and access the data (sonds illegal to me but
maybe there is a way). All the solution I have found erase data.
Make a copy of all the data of the smartphone (also sonds illegal)
Use her Google account to force synchronisation between the smartphone and Google Photos from PC (I have no idea if this option exists)
Any other solution?

Is the device encrypted?

@mashuptwice I can't find information about that. Oneplus does not give details about it and I am pretty sure the previous owner did not set encryption if this is a parameter in the phone

of course device is encrypted. there is no way to decrypt without pin

About illegal angle, ask your friend if she is okay if you try to break into her phone cause she cannot give the lock screen credentials and it seems unreasonable of her to ask you to get access to her photos without lock screen credentials. Once she gives a go ahead, you only have one angle to pursue. Exploiting a bug in your device and hoping that it gives you wireless access to the device or bypasses lock screen. Here is one full screen bypass exploit that might work on that device. https://bugs.xdavidhu.me/google/2022/11/10/accidental-70k-google-pixel-lock-screen-bypass/

@Firelord the .dismiss() vulnerability cannot decrypt device. but yeah nice exploit :)

@alecxs that is correct. It does not decrypt the device. It  temporarily bypasses the lock screen. So if the screen times out, OP has to run the exploit again. :) But the exploit enables access to the home screen which is sufficient to get photos and other user data from internal storage.

@Firelord, perhaps you should post that as an answer.

@RohitGupta answers suggesting exploits become outdated very soon. I don't think posting an answer in this case would do any good. Besides, OP didn't respond to my comment, so I cannot write with confidence that my answer would work.

None of the option have been tested. She remembered her pattern so I am able to unlock the phone. Firelord's solution is probably the best option in this case. But as he said, exploiting a bug may be outdated very soon.


text:
obtain partition size without root access
On my device, I can obtain a list of existing partitions by executing ls -al /dev/block/bootdevice/by-name via ADB. But I found no way to obtain the size of each partition without root powers: cat /proc/partitions, blockdev --getsize64 <device>, cat /sys/class/block/sda3/size, cat /proc/diskstats – all of them give me a Permission denied; lsblk -no SIZE <device> gives me a "not found" (no lsblk obviously). Things like df or mount are not helpful in this context as they only apply to mounted partitions, and I need sizes from partitions not currently mounted.
Are there any methods I might have missed and which might work on a non-rooted device?
(the device in question runs Android 10, but I'm interested in all general solutions at least for recent devices, hence no version tag)


text:
How can I enable cpu, memory, and io in cgroupv2 (attempt to run Docker on Android)
I am trying to run Docker on Android, using a Pixel 3a XL rooted, running stock rom but flashed a custom kernel. I need to enable cpu, cpuset, memory, io, and pid controllers in cgroupv2. After enabling them in menuconfig and flashing the kernel, the script used to check shows only pid available under cgroupv2 controllers.
What do I need to do besides enabling these options in the kernel’s menuconfig? Did I maybe not enable all the necessary options? Any help would be greatly appreciated!
With the current state, when I run docker I get a warning for each item, ex “WARN: Unable to find cpu controller”. and error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE)
As I understand it, these options may be mounted with cgroupv1 and this is why they do not show up?
I am using this guide: https://gist.github.com/FreddieOliveira/efe850df7ff3951cb62d74bd770dce27
and these are the options I enabled in my kernel using menuconfig: https://wiki.gentoo.org/wiki/Docker
From the config I flashed in my kernel:
CONFIG_CGROUPS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CPUSETS=y
CONFIG_CGROUP_CPUACCT=y
I flash the kernel by flashing the Image.lz4-dtb file that is created after building the kernel.
Here is a photo after running the script to check if kernel options are all enabled. Am trying to change these from missing to available/enabled.

The solution was to run: sudo mount -t tmpfs cgroup_root /sys/fs/cgroup
which created directories for each of the cgroup resources and allowed Docker to run.
Useful is section 2.1: https://android.googlesource.com/kernel/common/+/android-trusty-3.10/Documentation/cgroups/cgroups.txt


text:
How to launch Google Maps Driving Mode after Assistant Driving Mode Shutdown in November 2022?
I have an older car with no Android Auto built in. I used the Android Auto feature on my phone screen all the time before it was disabled in Android 12.
This forced me to switch to the Assistant Driving Mode screen, which was OK and would auto-launch when I got in my car.
This was now also shut down, and apparently I am supposed to use the Google Maps Driving Mode instead. But I don't really understand how I can launch it. Assistant Driving Mode would auto-launch, and it would also have a persistent notification that could be used to open it while connected to the car via bluetooth. This is no longer the case.
All of the articles I'm seeing are saying that you need to start navigating in Google Maps to start the driving mode there, but that can't be the only way? I use Driving Mode to make calls and play podcasts, and mostly drive around my town where I have no need for navigation. So is there another way to launch driving mode without starting navigation in Google Maps?

I don't know if it's possible on a car or not, but on a phone/tablet, Google Maps has a Driving Mode shortcut widget that can be placed on the homescreen.

Thank you, that does somewhat work. It will launch a near-driving mode screen, but only allows starting navigation. Music and call controls are not available until I start navigation. It seems this is the current state of things, and in my opinion quite an asinine design decision by Google. But anyway, @AndrewT. I think your comment is as close to the answer I'm looking for as it can be, so if you would post it as an answer, I'll consider this the correct one.

Feel free to post a self-answer because you know the details and limitations better :)


text:
Set custom notification sound per contact regardless of app - Samsung Phone
I own a Samsung phone (One UI 5.0 Android 13), and was trying to set a custom notification sound for a contact (technically a "room") in the Element android app.
In the process I found this issue where BillCarsonFr mentions that Android uses Notification Channels since Android 8, which seems like it's supposed to let you set a custom sound for any notification channel.
I observed the notification sound picking process on other apps like my SMS App or another web-based messaging App that had built in options to change notification sounds, and both of them loaded up an interface that was clearly from the Settings app in Samsung, letting me choose a sound. It also claimed to be a setting located in "App Name" > Chats > "Room/Person's Name".
However, I could not find a way anywhere to open a Chats setting under any App within the Samsung Settings app. It feels very frustrating to know such an option is there somewhere but there's no visual way of reaching it.
So... TL;DR: Is there any way I can forcefully open this chat-specific Setting using either ADB, some specific android SDK code, or an already existing App someone made?

On Samsung, the per-app notification setting should be accessible from App Info - Notifications - Notifications categories. There are also conversations for Android 11 or above, but AFAIK, it's only created after enabling custom notifications for each contact from the app directly.

@AndrewT. you're right, notification categories does show the custom notification settings in apps where I've already previously configured a custom notification by being redirected through the app itself. Like you said, you can't add new people here, you have to go through the actual app. So unfortunately my question remains, can I bypass this somehow and create an entry without using the app itself. Thank you for the input


text:
Accidentally disconnected LG K7 during the firmware update
I accidentally disconnected LG K7 during the firmware update and I don't know what to do. I was on a phone call when I left it to charge my laptop and I wanted to move the phone to another charger that's near my bed. I didn't see that it was doing an update and I'm scared that I have messed up big this time. Please help.

Was the firmware update initiated from the laptop, or over the air (OTA)? Did the phone shut down while it was doing the update? Finally, did the update complete? Otherwise, I don't think there's anything to worry about.

computer but i droped my phone and now had to replace it


text:
Does "adb shell settings put secure location_mode 0" reliably turn off/disable GPS?
I am trying to completely turn off and disable all GPS and location services for an Android phone.
I found the following ADB command -- "adb shell settings put secure location_mode 0"
Does this completely stop the GPS services from working, including any pinging of any kind to GPS satellites?

OP's follow-up question: How to disable GPS on Android phone?

The location_mode of the Secure settings will disable the Location service until it will be turned on on the settings or by changing the value of the key location_mode. (Checks if location is enabled, based on mode and restrictions.)
Disabling the location mode imply that applications cannot get the fix to access the Location services. Third-party applications on Android cannot access the GPS/GNSS hardware, it can access the services of GNSS and Location but not the hardware itself. To access these services, the application need to have the permission ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION AND the Location service must be enabled.
On other hand, system applications can have access to the GNSS/GPS hardware (permission LOCATION_HARDWARE). Thus, there is no guarantee that GNSS/GPS will not be used by the system itself.


text:
My android phone drains from 100 percent to 0 percent in 20 minutes
I have been using my laptop to charge my android phone until recently when I noticed the back lid pushed to the back slightly and then the battery drains from 100 percent to 0 percent in 20 minutes. I suspect either the charging system or the battery. How can I be sure of the problem so I don't replace the battery to find out its a charging system issue?

I haven't understood the problem description. Anyway, does this happen when charged from the OEM power brick also?

yeah it also happens when charged from a regular charger

In that case it's  most likely a battery issue. Likely your device is more than 3 years old or heavily used. In any case, you are left with the option of changing the battery

Yes i bought it back in 2019 and that explains why the battery should be the problem,  thanks i just hope a new battery won't get drained so fast

As someone who has replaced Nexus 5's battery 3 times, there are at least 2 factors: The first is one is obviously these batteries have broken (swollen), but they also broke fast due to being incorrectly charged (continuously overnight, overcharged, ungrounded outlet, etc.)

Thanks for the tip Andrew T., that is exactly what I used to do, my phone would spend the night plugged in to my laptop, didn't know that was detrimental to the health of the battery

The more often you charge a battery sit it is already close to 100% the faster the battery dies. Especially keeping it connected means it will charge to 100 and then stop charging. As most phones can not directly use the USB power it will discharge until about 95% is reached. So this is the fastest way to kill a battery.

@CoderTimothy please see this https://android.stackexchange.com/q/156526/131553


text:
Webex Application on Android does not bypass Do Not Disturb
I'm using a Samsung Galaxy Note 20 Ultra 5G on Android 12, One UI 4.1.
Where I work, we use Webex for our phone system.  Every so often, I go on call.  My cell number gets added as part of an on call hunt group.  When I'm not on call, someone else gets added.
Because the Webex app's call sound is really not very alerting, I like to have my cell's phone app ring, in addition to the Webex app (I have a much more alerting sound for the phone app).
When I'm on call, I need the Webex app to bypass my do not disturb so it wakes me up in the middle of the night.  It does not.  Consequently, I've had to get creative with a bunch of other settings that really screw around with how my phone rings.  Ideally, what I want is for my phone app on my cell to ring whenever my desk phone (a softphone on my workstation at work) rings.  When I'm on call, setting Remote Office in the Webex app to "on" with my cell number seems to force my cell and my desk to ring at the same time as the phone app and the Webex app.  When I'm not on call, this same setting seems to force calls to my work number to go direct to my cell and direct to voicemail.  The cell will ring once briefly.  Webex doesn't even ring.
To deal with this, I have to disable all my other app notifications and leave do not disturb turned off overnight.  This is less than ideal.
What do I do?  Life seems like it would work properly if Do Not Disturb settings were respected.  I am set to allow the Webex app through Do Not Disturb in Android and while the alert shows on the screen, it doesn't make any noise or vibration - which makes me believe that it's not actually bypassing Do Not Disturb.

In my personal experience, you can add specific contacts, to a list of contacts that CAN contact you while Do Not Disturb is enabled. Suggested by someone who is “on call” the majority of the year

You would think, but no.  The number that is used incoming changes depending on who calls.  I can't just allow a whole bank of numbers through my do not disturb.  Namely because I can't know who is going to be calling from whatever number.


text:
How to control volume for Chromecast with Google TV from your phone AND have 5.1 surround support
I have just bought a new Chromecast with Google TV and hooked it up to my A/V-Receiver+Beamer setup, but I will refer to it as "TV" further on as it doesn't make a difference here.
According to Android Police - How to control Chromecast with Google TV volume using your phone, there are three options:

TV volume is controlled via HDMI CEC using the Chromecast remote
TV volume is controlled via Infrared using the Chromecast remote
Chromecast volume is controlled via the Chromecast remote

I can't combine those options.
Options 1) and 2) mean I can't use my phone or Google Assistant to change the volume of what I'm playing.
Option 3) means I will lose support for 5.1 surround sound, so this is an option I do not want to use in my home cinema setup.
So apparently, I'm out of luck end of the story.
BUT:
In the Google Home app, I can open my Chromecast and open a remote on my phone and it has volume buttons, with which I could control the volume of my TV (as if I would have pressed the buttons on my Chromecast remote), if I chose option 1) above.
So this is proof that it is indeed possible to control the volume directly from my phone AND have support for 5.1 sound. It's just hidden underneath a lot of clicking around.
I'm not new to programming at all, I have worked as a Java developer in the past for almost a decade), but I'm completely new to Android development.
I want to figure out how feasible it is to write an app which essentially does the following:
The app is in the background, no user interface is visible. It hijacks the physical volume controls of the phone (this is doable at least when you're within an app (aCalendar does this and allows you to scroll with those buttons). It determines whether media is currently streamed to a Google Cast device (which seems to be doable as well), determines whether that device being cast to supports volume control (or determines whether the device is a Chromecast with Google TV, and ends up with the same result) and if yes, it sends a volume up/down event to that Chromecast.
If not, the app just forwards the event to Android and it behaves as normal (e.g. by changing the phone's internal volume, changing the in-call volume, etc.).
More specific questions:

Is it possible to intercept volume-button presses in an app which runs in the background (please excuse me if I'm not using correct Android terminology heere)?
Is it possible to forward intercepted volume button presses to the OS, so that the default behavior of those buttons doesn't break?
Is it possible to determine whether media is being streamed to a cast device?
Is it possible to determine whether that device is supporting volume controlling or alternatively determine what model of Chromecast it is?
Is it possible to send volume events or remote-key presses to that device, like the Google Home app does?

I know, the question is rather long, but the topic is quite complex on the other hand.

Welcome to Android Enthusiasts Stack Exchange. Please note that app development is off-topic since Android Enthusiasts focuses on end-users and power users (who are not necessarily developers) solving their issues. Thus, while this community might explain the technicality of Android OS to your queries, coding solutions are out of the scope of this community. For programming questions, you might want to try our sister site [so].

Not sure if possible for a non-rooted device as it sounds like you are trying to do tapjacking. Since you have an A/V setup you may wish to read the OEM docs on Android TV - HDMI-CEC


text:
How to disable GPS on Android phone?
I want to disable all GPS functionality for my Android phone. How would I do that?
Thanks!

OP's previous question (for additional context): Does "adb shell settings put secure location_mode 0" reliably turn off/disable GPS?

Related/possible dupe: Disabling the GPS?, Can I disable GPS?

Does this answer your question? How to disable GPS if not in use?


text:
How to block a contact on WhatsApp based on local time?
I am trying to avoid getting WhatsApp calls from specific people who live on the other side of the world - when it's daytime for them, it's nighttime for me. Talking to them about it hasn't helped.
How do I block a contact on WhatsApp (on a Pixel 5, if it matters) only for a certain time window?

Interesting use case. I am not a developer but Whatsapp doesn't allow access to it's internal working through an API or any other way that can be exploited to do what you wish to do. Simplest IMO is to disable data (both mobile and Wifi) in that time slot. This process needn't be manual, it can likely be automated but it needs root or elevated privileges to the automation app using ADB

Or try an app like this that claims to block calls on schedule. There are plenty of such apps on Play store. I haven't used any

@beeshyams Disabling data would mean I am blocking everyone. I still want to be able to receive (urgent) WhatsApp calls from only some of my contacts. Not leaning towards installing another app for this at the moment.


text:
Auto backup so I can share the same app data on Bluestacks and phone
I have a Samsung Galaxy S5, running Android  6.0.1 Marshmallow. I also have BlueStacks 5.
A group of games I play does not have Google Play transfer, and I thought I could use the import button on BlueStacks and find the file on my phone (save file) and copy that to the import of BlueStacks. However, seeing as every time I play on a different device, I'll have to copy through cable, import, etc.
I was hoping I could set something like OneDrive to backup and sync constantly that specific file (which would get updated as saved). Currently, I have to use Android Studio to access the save file - it is hidden from the operating system.
How can I do this?

As you might have noticed from using Android Studio, without root access, apps can't access other apps' internal data. And with how each app can determine if they're allowed to be backed up systematically, I'm afraid it's almost impossible to do what you want.

OP's follow-up question: Android Studio help - data manager - permission denied


text:
How to stop vlc from resizing on home button touch
I have vlc installed on my Android phone running Android version 11, whenever there is a video playing and then I hit the home button it resizes and continues to play the video in Pip mode, I have checked in the VLC video settings and I have confirmed that  PiP is disabled. How do I force VLC to not resize whenever I hit either the intentions button or the home button?

I don't use VLC, but could you check the App Info settings whether there is a Picture-in-picture option there? (Similar question: Is it possible put Waze in a movable tile window, the same way Google Maps can?)

In the system settings or in the application settings?

From the system settings, e.g. long-tapping the app icon and selecting the circled-"i" icon.

Let me try, disabling it from the system sounds like a great idea

it worked, i found the setting and prevented vlc from using picture in picture,  Thanks

Good to know, feel free to self-answer it :)


text:
Android Studio - data manager - permission denied
I have a Samsung Galaxy S5, Android 6.0.1 Marshmallow. I try to access a save file for a game without Google Play cloud backup.
I have managed to get deeper into the file system using Android Studio than using file managers on Windows and devices (as in I can see the game folder now). However, I get permission denied. Everything I try to open, I get permission denied, or similar. (the phone is in debug mode, etc.)
To be honest, I barely know my way around Android Studio, I am not a developer.
How can I give myself permission?

OP's previous question (for additional context): Auto backup so I can share the same app data on Bluestacks and phone

thanks andrew T.


text:
Xiaomi stuck on the fastboot screen after failed EMUI update
Yesterday, I used the Xiaomi Mi 9 SE Updater app to update my EMUI version. After downloading the update zip file (2.8GB), the app warned me that it would "install the update, start in recovery mode and will ask for my password as the file system was encrypted" (I don't remember the message exactly).
The phone rebooted and got stuck on the Fastboot screen for more than a hour.

After that I rebooted multiple times with different ways (hold power button, hold power button + volume down, and hold power button + volume up and down) but just after the reboot it gets stuck on the Fastboot screen again.
I tried using the Android platform tools to try to reboot it but the result is the same, always stuck on the Fastboot screen.
$ sudo ./fastboot devices
f6da2608    fastboot

$ sudo ./fastboot reboot
Rebooting                                          OKAY [  0.000s]
Finished. Total time: 0.351s

$ sudo ./fastboot reboot recovery
Rebooting into recovery                            OKAY [  0.000s]
Finished. Total time: 0.352s

Do you have any solution to fix ?
If not, is it possible to do a factory reset ? I have backups for my data so no problem for me.

On a windows computer, you can try using the MI flash tool to flash the firmware again

@beeshyams Thanks for the suggestion, I will try it!

I couldn't make it work. I downloaded the Fastboot ROM, run the program and stuff but when the device was not recognized apparently. Each time I clicked "Flash" my device shut down.

Oops.. Maybe someone else can suggest a way out. Maybe, just maybe it will boot normally if you let battery drain out completely and then try to power up after charging?

Thanks anyway! Yeah I though the battery trick might do it too. I'm currently turning it on, then a few minutes later it shuts down, I turn it on again and so on all day long until the battery's dead. We'll see.

Download the SDK platform tools for the OS you have. Connect your device while in fastboot mode with your computer and run
fastboot devices

This should give you a result if your device is recognized. If your device does not show up make sure to install the proper drivers for it.
Then download the official fastboot ROM for your device. Unzip it and there should be a file in there with a name like flash_all (bat or sh depending on your OS run the appropriate one). Guides like this one can help for more details

Thanks for the flash_all script, I didn't see there was scripts embedded in the ROM file at first. Unfortunately I couldn't try it because I returned the phone to the shop (warranty was still active). If they can't fix it I will try this. Otherwise I will ask them what they did and post it here.

I got a refund because they couldn't fix it... Thanks anyway!


text:
Interoperation between DroidVim and Termux
I've been using DroidVim under Android for a few years now, primarily to edit a rather sprawling notes repository that I sync with my PC using git under Termux.  The repo lives in a subdirectory of the internal storage root directory (/storage/emulated/0/Notes).  Under Android 8, which I'm still using on an older phone, I have DroidVim set to start up in that directory and I can load various session files for various tasks.  But under my newer phone, which runs Android 12, I can only see and access directories in internal storage (outside of the path allocated to DroidVim) and can't see any non-directory files (like, for example, the text files that I wish to edit with vim).
Is this because of changes to Android permissions?  If so, is there a way around it, with or without rooting the phone?
DroidVim now has a file browser built into it, and files you select to edit are copied over to a temporary location for editing.  This really doesn't work for my purposes.
There doesn't seem to be an option in DroidVim to enable more access to the filesystem.  Currently it looks like it has the "Files and media" permission; when I tap on that it shows a dialog with "Allow access to media only" selected; the only other option is "Don't allow".
I'm able to access files in the root of internal storage using other apps (like Termux, for example)—I just can't do that with DroidVim.  Termux cannot, however, access the "home" directory of DroidVim.  Is there another location I could store my repo where both DroidVim and Termux would have access to it?


text:
Is it possible to give a system app full read and write access to the main external storage in Android 11?
We're building our own ROM from AOSP, and the ROM will have a third-party app installed to /system/priv-app but we need to give that app read and write access to the main external storage without any user input.
The ROM is based on Android 11, API level 30.
However, we found no such permissions that could allow us to grant the app external storage access, and it seems like whatever permissions like WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE, etc. either have no effect or doesn't function as expected in Android 11.
We found MANAGE_EXTERNAL_STORAGE, but this also needs user input via ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION intent.
Are there any hidden permissions to allow us such thing? Or is there any other solution that can achieve the same effect?


text:
How can I edit APK's library files (.so files)?
I want to install 2 different versions of an app. I researched a little and found that I need to change APK's package name with APK Editor. I decompiled the APK with APK Editor and changed everything related to the package name. For example, the app's package name was com.oldapk.filee, which I changed to com.newapk.file. Then I compiled it again and installed the new APK file. But I was unable to launch the new APK file.
I enabled USB Debugging on my phone and started to looking crash logs. I saw that the package name was mentioned as com.oldapk.filee, and I started thinking about what could be wrong. I used ack on Linux to check which files have the com.oldapk.filee string and saw that 2 libraries (.so files) was including the old package name. I changed them in NotePad++ (Hex Editor Addon) to the new package name, but this time when the app launched, I was able to see starting screen, but it was crashing in 0.5 seconds after I launched it. I checked the crash logs again and then I saw that the package name was still old. Maybe the changes that I made didn't affect it.
How can I edit these files?

why do you want to edit a .so file for which apparently you do not have the source? this sounds like repackaging of the app

Welcome to Android Enthusiasts! This seems to be an XY problem. Instead of trying to get your supposed solution working: Would a different approach be welcome if it lead to the wanted result? You could e.g. use an app like Shelter to have an isolated workspace (Shelter actually uses Android's Work Profiles). Or you could simply create a separate user-profile and install the second version there.

@kampias I already described why I have to edit .so file.

@Izzy yes I can but honestly I don't want to deal with user-profiles and to be honest, I don't have a storage for it. So, I need to edit .so file.

Just in case you might be interested, we also have a sister site specifically for [reverseengineering.se].

Editing the package name of an existing app that you are not a developer can be a challenge. Also, unlike editing the Smali code, editing binary files can indeed break the app.
Here is some points that should be considered :

The ack commands will only list strings and the name of the package can be encoded.

Both APKs can use a same directory/file (e.g. in external storage), that maybe does not contains the package name, will lead to a crash due to permissions issue as the file/directory will be owned by the UUID of the com.oldapk.filee and cannot be accessed. To list the folders/files that are used by the application, these commands ADB shell commands can be used:

Get the user of the app com.oldapk.filee

> ps -A | grep com.oldapk.filee
u0_a230       10259    899 16984024 74060 0                   0 S
com.oldapk.filee

Get the list of files owned by the user of the app (u0_a230) on the /sdcard

> find /sdcard/ -user u0_a230

In the binary, changing the package name with a another one that the length is not equal to the length of com.oldapk.filee will break the library (ensure that the '\0' 0x00 is the last byte of the string).

Application can have an anti-tampering protection, it can be installed but crash if the app is tampered.

Adding the flag android:debuggable="true" to the tag <application> on the "AndroidManifest.xml" can help debugging the tampered APK.

Hope that can help and good luck.

Completely agree. Beyond ASCII, try searching UTF16-encoded equivalent, but even then, there could be some other encoding. Using a package name with the exact same length is mandatory. If you have external & internal storage, maybe installing one on internal and the other on external will limit the risk of namespace conflict, just a wild guess here…

I thinked about the length of the library too. I will check today, thanks anyways!

I tried today and nothing changed :(


text:
Installing firmware SM-A015F to SM-A015AZ hardware
i have a SM-A015AZ and their is no OEM unlocking feature and i want to install magisk i updated the firmware manually with Odin but no luck i now want to install SM-A015F firmware on my SM-A015AZ phone i feagured it would work since they have the same specks and same hardware*.

Not a good idea to flash ROM meant for another model https://android.stackexchange.com/q/35925/16575