text:
Can't read media files from mounted SD card partition
I have a tablet that I flashed with a modded (rooted) system partition. A side effect of this system partition is that it killed my 20gb SD card partition that is the main storage for the device.
I was able to remount the partition by creating a directory, setting permissions, and mounting using the following commands:
$ mkdir /mnt/media_rw/sd2
$ chmod 777 /mnt/media_rw/sd2
$ mount -o rw /dev/block/blck27 /mnt/media_rw/sd2

This works, but two problems occur:

I cannot open media files, such as movies, or run an apk file and install apps. It just says Cannot open this file. I know there's nothing wrong with the files, as I can simply move them over to the small 5gb partition and read them just fine.
Less importantly (I created a separate post about this issue already) I'm unable to access the SD card storage on my PC via USB.

Regarding #1, it's an issue I really need to resolve, because otherwise I'd have to copy anything over to the small storage in order to watch movies, listen to music, or any other type of media file...
I'm not overly concerned with #2, but if you have some insight that would be great.

permissions are handled by vold

@alecxs Could you give me an example of how I would modify my mount command in order to straighten this out? This is very interesting actually, because I noticed in the fstab file in the old system partition, it includes the following flag voldmanaged=sdcard1:auto,noemulatedsd The problem is, I don't know how to mimic this particular set of properties using the mount command. It's also vfat, if that helps at all.

do it in fstab like discovered. or try init service /system/bin/sdcard (linked)

@alecxs I thought fstab was a part of the ROM, and it cannot be persistently modified? I figured I needed to create a script, and run it with init.d script support or something. My understanding was that if I changed fstab, it would just revert back to it's old self on reboot, unless I'm mistaken.

yes, fstab should be modified in boot partition or vendor partition. from init.d script nothing works

@alecxs Yes, the fstab I found is in the vendor partition.. Hmm, I didn't realize that being in the vendor partition allows me to edit it. Wow that could simplify this drastically. I'll try that asap. Thanks!!


text:
How can I find and remove the source of "full screen" ads when I can't locate it in any of my apps?
There is a site/app that takes up my whole screen (LG V30 Pie) several times a day. The top part, in the blue area, is always the same. The rest can be scrolled.

None of my apps allow "draw over". The AdLock app does not catch them. I have no idea whether it's just an annoyance or dangerous.
Short of resetting my phone and having to reload all my apps etc., can someone please help me find and get rid of this annoyance?
NEW INFO:
I have looked at the suggestions. Thanks. Andrew T. provided an idea but it uses functions that I don't know how to do, notably, the adb shell commands. Is there somewhere I can look to see how these are used, please?
CANCEL:
For some unknown reason, this problem has gone away. I'm not aware of what I might have done ... it just suddenly stopped a few days ago.

Possible duplicate of Determine which app is drawing on top of other apps?

Welcome to the Q&A site Android Enthusiasts Stack Exchange. In addition to Robert's suggestion, I think there is a possibility that this is actually an Android "activity", thus it's not shown as "draw over other apps". Perhaps Recent activities log might also help.

source: Stack Exchange

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

sort: votes


text:
Can my employer read my notes if I use their Wifi?
I have "Colornote" app in my android device and I'm using that app for many years. I write my passwords and many other personal things. My workplace has wifi and I use it regularly. Often my notes gets synced when I use that wifi.  Can my employer read my notes? Colornote says they use AES encryption.  I don't understand what it means. Many times, I use public wifi too. When I use public wifi, can they read my passwords and personal notes? Also can they read other word and google doc app documents that I have saved in phone and get synced when I'm online?
And if answers of the above questions are yes, will installing and using Norton360 VPN app secure my notes? Thanks.

If encrypted they won't be able to read it but any network admin worth her or his salt can know exactly what and when any network connected device does.

@ChanganAuto As far as they can't read it, I don't have any problem if they know what I'm doing on my device.

Most Wifi by default is encrypted and if your documents are encrypted on top, it will be impossible for anyone to look at them casually.
Wifi traffic is encrypted using WPA (before it was WEP).

Types of wireless security protocols
Most wireless APs come with the ability to enable one of four wireless encryption standards:

Wired Equivalent Privacy (WEP)
Wi-Fi Protected Access (WPA)
WPA2
WPA3

From Wireless security: WEP, WPA, WPA2 and WPA3 differences
If the documents were being stored on the server, then there could be a possibility of them being hacked.

But they are not even stored on your works server.
They are encrypted
They are going from your phone to ColourNote directly as multiple IP packets, NOT as a file.

Talking about Wifi's encryption is of no use here. OP already mentioned that they use their device at places where the Wifi is out of their control (workplace, public wifi), therefore one must assume that administrator of the wifi has means to decrypt wifi traffic. The question therefore comes down to "verifying" Colornote developer's claim that the traffic originating from their app is always encrypted with the scheme they have mentioned. This part is missing in your answer.

@Firelord thanks. After reading this answer,  I thought phone must be doing something like encryption when we use Wifi. Now I understood.

@Firelord is there any way to verify Colornote's claim that their app is encrypted?

@ramanujan search for how to sniff traffic originating from Android device. There, the content of the network packets of ColorNote app should be undecipherable because of encryption. If they are in plain-text/readable then they are not encrypted.

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


text:
Stuck in EDL mode after flashing
Solved:

I bricked my Redmi Note 4 (mido, Snapdragon) 4 years ago and couldn't
fix it back then. As far as I remember it showed no sign of life (not
even red led) But yesterday I thought of giving it a go and found that
it was being detected by the PC.
Condition:

When I connect it to PC (with battery) red led blinks once per second
When i disconnect the battery pin it stops blinking and gets detected in the MiFlash Tool (which wasn't the case with battery
plugged)
It gets detected on PC as QUSB_HUB in both the above cases
When I tried Flashing the latest as well as an old fastboot stock rom (Global) with the MiFlash tool I am getting this error:

/c:"^product: *MSM8953"   || fastboot -s 28ca11bb getvar product
2>&1  | findstr /r /c:"^product: *mido"   || echo Missmatching image
and device ```

PS. It doesn't has a recovery i think. I bricked it while Unlocking
the bootloader (I don't remember exactly but that's the condition I
think)

UPDATE: I can flash now but it doesn't seem to boot up. Every time I plug it to PC it just keeps showing EDL mode. I tried vol up + power 20 sec. and pressing the power button for 30 to 60 sec. but it doesn't come out of EDL.
Any reply would be highly appreciated.

flash in EDL mode

Hi alecxs I've heard a lot of you on other threads! I tried putting it in EDL mode by shorting the pins but when I checked devices it's showing Diagnostics 900E.

I saw there are videos where people are just unchecking the "Show compatible hardware" and selecting the 9008 driver from the list. But is that safe?

disconnect battery and usb, short-circuit test points and connect usb to enter 9008 edl mode https://i.stack.imgur.com/780Kr.jpg

@alecxs Hi, I managed to flash an os successfully but there seem to be another problem. I can't get it to boot up. On connecting to pc it shows Diagnostic 900E. I tried pressing vol up + power for 20 sec. It disconnected from the PC an then again refreshed and showed Diagnostic 900E. Does this mean I'm stuck in EDL mode?

I flashed it multiple time and different versions of stock rom but nothing. I am still stuck in the EDL mode and the phone doesn't have any effect on pressing power button for howsoever long.

I have similar problem with poco M3 sometimes. this trick work for me. https://forum.xda-developers.com/posts/88260165

@alecxs This seems to work perfectly! The only problem is that I'm getting Library.sahara - bytearray index out of range error while executing any EDL command. Will see how to fix this. Thanks!


text:
Cannot set my APK MainActivity as the Home Activity via ADB
I am using one these AndroidTV 11.0 S905W2 boxes from Amazon and I could not make my APK the Home Activity via ADB.exe
I am using the following adb command via WiFi as connecting via a USB cable to my PC does not reveal this box.
adb -s 192.168.1.40:5555 shell cmd package set-home-activity "org.mumti.MUMTIG3/org.mumti.MUMTIG3.MainActivity"

Response is "Error: Failed to set default home."
Regarding my APK "MainActivity" aapt.exe output reveals there is a launchable-activity: name='org.mumti.MUMTIG3.MainActivity' so I don't know why adb does not succeed.
The reason adb fails setting my APK MainAcitivity may have to do with a post I read relating to the possibility that my APK is made of Java classes that are spread across more than one DEX file (Dalvik EXecutable) this is a bit of chinese to me and I am not sure if it applies.  I don't have direct control over the building of my APK as it is developed with a hybrid framework (JavaScipt/HTML/ionic/angular/cordova) and an Android/JAVA wrapper is put around it in the build process of an APK.  Perhaps there is a way to tweak the gradle build process and make adb succeed, I don't know.
I tried to increase minSDK to 22 from 21 in my config.xml but I get same error.
        <preference name="android-minSdkVersion" value="22" />
        <preference name="android-targetSdkVersion" value="30" />

Here is the output from aapt.exe
 $AAPT_EXE dump badging "S:/_W/ARP/UPS.ion/SRC/UPS.ion.3/platforms/android/app/build/outputs/apk/release/app-release.apk"
package: name='org.mumti.MUMTIG3' versionCode='29' versionName='0.0.29' platformBuildVersionName='11' platformBuildVersionCode='30' compileSdkVersion='30' compileSdkVersionCodename='11'
sdkVersion:'22'
targetSdkVersion:'30'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.REQUEST_INSTALL_PACKAGES'
application-label:'MUMTIG3'
application-label-af:'MUMTIG3'
application-label-am:'MUMTIG3'
application-label-ar:'MUMTIG3'
application-label-as:'MUMTIG3'
application-label-az:'MUMTIG3'
application-label-be:'MUMTIG3'
application-label-bg:'MUMTIG3'
application-label-bn:'MUMTIG3'
application-label-bs:'MUMTIG3'
application-label-ca:'MUMTIG3'
application-label-cs:'MUMTIG3'
application-label-da:'MUMTIG3'
application-label-de:'MUMTIG3'
application-label-el:'MUMTIG3'
application-label-en-AU:'MUMTIG3'
application-label-en-CA:'MUMTIG3'
application-label-en-GB:'MUMTIG3'
application-label-en-IN:'MUMTIG3'
application-label-en-XC:'MUMTIG3'
application-label-es:'MUMTIG3'
application-label-es-US:'MUMTIG3'
application-label-et:'MUMTIG3'
application-label-eu:'MUMTIG3'
application-label-fa:'MUMTIG3'
application-label-fi:'MUMTIG3'
application-label-fr:'MUMTIG3'
application-label-fr-CA:'MUMTIG3'
application-label-gl:'MUMTIG3'
application-label-gu:'MUMTIG3'
application-label-hi:'MUMTIG3'
application-label-hr:'MUMTIG3'
application-label-hu:'MUMTIG3'
application-label-hy:'MUMTIG3'
application-label-in:'MUMTIG3'
application-label-is:'MUMTIG3'
application-label-it:'MUMTIG3'
application-label-iw:'MUMTIG3'
application-label-ja:'MUMTIG3'
application-label-ka:'MUMTIG3'
application-label-kk:'MUMTIG3'
application-label-km:'MUMTIG3'
application-label-kn:'MUMTIG3'
application-label-ko:'MUMTIG3'
application-label-ky:'MUMTIG3'
application-label-lo:'MUMTIG3'
application-label-lt:'MUMTIG3'
application-label-lv:'MUMTIG3'
application-label-mk:'MUMTIG3'
application-label-ml:'MUMTIG3'
application-label-mn:'MUMTIG3'
application-label-mr:'MUMTIG3'
application-label-ms:'MUMTIG3'
application-label-my:'MUMTIG3'
application-label-nb:'MUMTIG3'
application-label-ne:'MUMTIG3'
application-label-nl:'MUMTIG3'
application-label-or:'MUMTIG3'
application-label-pa:'MUMTIG3'
application-label-pl:'MUMTIG3'
application-label-pt:'MUMTIG3'
application-label-pt-BR:'MUMTIG3'
application-label-pt-PT:'MUMTIG3'
application-label-ro:'MUMTIG3'
application-label-ru:'MUMTIG3'
application-label-si:'MUMTIG3'
application-label-sk:'MUMTIG3'
application-label-sl:'MUMTIG3'
application-label-sq:'MUMTIG3'
application-label-sr:'MUMTIG3'
application-label-sr-Latn:'MUMTIG3'
application-label-sv:'MUMTIG3'
application-label-sw:'MUMTIG3'
application-label-ta:'MUMTIG3'
application-label-te:'MUMTIG3'
application-label-th:'MUMTIG3'
application-label-tl:'MUMTIG3'
application-label-tr:'MUMTIG3'
application-label-uk:'MUMTIG3'
application-label-ur:'MUMTIG3'
application-label-uz:'MUMTIG3'
application-label-vi:'MUMTIG3'
application-label-zh-CN:'MUMTIG3'
application-label-zh-HK:'MUMTIG3'
application-label-zh-TW:'MUMTIG3'
application-label-zu:'MUMTIG3'
application-icon-120:'res/8X.png'
application-icon-160:'res/u3.png'
application-icon-240:'res/SD.png'
application-icon-320:'res/jy.png'
application-icon-480:'res/D2.png'
application-icon-640:'res/CG.png'
application: label='MUMTIG3' icon='res/u3.png'
launchable-activity: name='org.mumti.MUMTIG3.MainActivity'  label='MUMTIG3' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.faketouch'
  uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
  uses-feature: name='android.hardware.wifi'
  uses-implied-feature: name='android.hardware.wifi' reason='requested android.permission.ACCESS_WIFI_STATE permission'
provides-component:'device-admin'
main
other-receivers
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--' 'af' 'am' 'ar' 'as' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en-AU' 'en-CA' 'en-GB' 'en-IN' 'en-XC' 'es' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'or' 'pa' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 'sr' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '120' '160' '240' '320' '480' '640'
native-code: 'arm64-v8a' 'armeabi-v7a' 'x86' 'x86_64'

Addendum1: I learned about logcat and posting the tail here with
"$ADBW logcat -d -v time > logcat.txt"
I put a pair of ===BEGIN ===END around the lines that I think pertain to failure of set-home-activity.
04-05 12:29:08.014 E/WifiVendorHal(  583): getWifiLinkLayerStats_1_3_Internal(l.973) failed {.code = ERROR_UNKNOWN, .description = unknown error}
04-05 12:29:09.116 I/chromium(27522): [INFO:CONSOLE(236)] "12:29    UserActivityTracker.Start. >>D---  this.MinutesOfInnactivity 7", source: https://localhost/build/main.js (236)
04-05 12:29:09.688 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:11.025 E/WifiVendorHal(  583): getWifiLinkLayerStats_1_3_Internal(l.973) failed {.code = ERROR_UNKNOWN, .description = unknown error}
04-05 12:29:11.688 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:13.688 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:14.032 E/WifiVendorHal(  583): getWifiLinkLayerStats_1_3_Internal(l.973) failed {.code = ERROR_UNKNOWN, .description = unknown error}
04-05 12:29:15.688 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:17.040 E/WifiVendorHal(  583): getWifiLinkLayerStats_1_3_Internal(l.973) failed {.code = ERROR_UNKNOWN, .description = unknown error}
04-05 12:29:17.689 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:19.689 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:20.050 E/WifiVendorHal(  583): getWifiLinkLayerStats_1_3_Internal(l.973) failed {.code = ERROR_UNKNOWN, .description = unknown error}
04-05 12:29:21.053 I/Finsky  ( 5139): [8519] fyo.run(10): Stats for Executor: BlockingExecutor iar@5bd16ca[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 25]
04-05 12:29:21.054 I/Finsky  ( 5139): [8519] fyo.run(10): Stats for Executor: LightweightExecutor iar@8b0703b[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 84]
04-05 12:29:21.689 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:21.823 I/Finsky  ( 5139): [8519] fyo.run(10): Stats for Executor: bgExecutor iar@df3f358[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 284]
04-05 12:29:23.059 E/WifiVendorHal(  583): getWifiLinkLayerStats_1_3_Internal(l.973) failed {.code = ERROR_UNKNOWN, .description = unknown error}
04-05 12:29:23.690 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:24.386 D/CompatibilityChangeReporter(  583): Compat change id reported: 135634846; UID 10055; state: DISABLED
04-05 12:29:24.386 D/CompatibilityChangeReporter(  583): Compat change id reported: 143937733; UID 10055; state: DISABLED
04-05 12:29:24.404 D/Zygote  (  297): Forked child process 6940
04-05 12:29:24.408 I/ActivityManager(  583): Start proc 6940:com.android.permissioncontroller/u0a55 for service {com.android.permissioncontroller/com.android.permissioncontroller.role.service.RoleControllerServiceImpl}
04-05 12:29:24.409 I/Zygote  ( 6940): seccomp disabled by setenforce 0
04-05 12:29:24.428 I/adbd    (28115): jdwp connection from 6940
04-05 12:29:24.470 D/ApplicationLoaders( 6940): Returning zygote-cached class loader: /system/framework/android.test.base.jar
04-05 12:29:24.558 D/NetworkSecurityConfig( 6940): No Network Security Config specified, using platform default
04-05 12:29:24.559 D/NetworkSecurityConfig( 6940): No Network Security Config specified, using platform default
===BEGIN
04-05 12:29:24.589 I/CarUiInstaller( 6940): CarUiInstaller started for com.android.permissioncontroller
04-05 12:29:24.618 W/Role    ( 6940): Cannot get ApplicationInfo for default holder: com.android.messaging
04-05 12:29:24.633 W/Role    ( 6940): org.mumti.MUMTIG3 not qualified for android.app.role.HOME due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.intent.action.MAIN', mCategories='[android.intent.category.HOME]', mDataScheme='null', mDataType='null'}, mPermission='null'}
04-05 12:29:24.633 E/RoleControllerServiceImpl( 6940): Package does not qualify for the role, package: org.mumti.MUMTIG3, role: android.app.role.HOME
04-05 12:29:25.690 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
===END
04-05 12:29:26.070 E/WifiVendorHal(  583): getWifiLinkLayerStats_1_3_Internal(l.973) failed {.code = ERROR_UNKNOWN, .description = unknown error}
04-05 12:29:27.690 E/ocessService0:(27600): failed to create Unix domain socket: Operation not permitted
04-05 12:29:29.082 E/WifiVendorHal(  583): getWifiLinkLayerStats_1_3_Internal(l.973) failed {.code = ERROR_UNKNOWN, .description = unknown error}

Have you checked adb logcat if it displays more details why the command fails?

I'd assume Android TV expects Leanback support, though I don't have any experience with it either.

@Robert I looked up "logcat" command and updated the post thank you.

Your app is not built to use Roles. To be set as home activity (technically a home launcher) by that cmd package command this app has to have HOME role provisions coded in. It is failing that test (see error at 04-05 12:29:24.633 and later). See HOME role in Android Roles if you are a developer keen on fixing this problem (don't know how). Failure occurs here

@Firelord I browsed the folder platforms\android\app\src\main and found AndroidManifest.xml (probably auto generated by this ionic hybrid framework to target Android) I could post as I don't know how to correctly add to it this ROLE and leanback support requirements.  Alternatively could you point me to a "skeleton sample" Kotlin project that I could tackle to be the main launcher and in turn launches my APK?  Thank you so much.

Just a 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 the 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 [so].

Like Andrew said you'd have to ask about this at [so]. I don't know how to fix this problem either.


text:
WhatsApp view once video - what is the file location in Android file system?
WhatsApp has this feature of sending videos in messages which can only be viewed once by the recipient. It auto destructs after its viewed.
Where does WhatsApp store this video file temporarily? Is it possible to copy this file from this location while the video is playing? Need to know the location both in case of rooted and non-rooted phones.
PS: The other question Where do Android apps store data? mentions general paths used by android specific apps. However, whatsapp storage location on android for some of their features are more obscure (Like - one time viewable videos). The locations mentioned in the previous answer do not contain the data for this use case.

If you could access the file(s) without root permissions that would be a big and severe mistake. If I had to implement something like this feature I would allow only direct streaming of the data while playing so the data is never completely available in RAM and never on disk.

Based on experiments, at the very least, the media file is received temporarily on Internal storage\Android\media\com.whatsapp\WhatsApp\.Shared, but then it is deleted quickly, presumably after it's processed and stored elsewhere.

I found it, it is supposed to be at

data/data/com.whatsapp/files/ViewOnce

Note that this needs root access.

Yes, i forgot to say that

As @brunoman4006 answered almost a year ago (sorry for my late response) it is also possible to retrieve the images without root installed on the device, although you would need to have your bootloader unlocked and a recovery capable of decription of your data (ex, TWRP compatible with your android version) you can go directly to the location of the images that was mentioned before and copy them werever you may want them, tho before retrieven the folder you can not let whatsapp task be terminated so you have to hard shutdown your phone (usually volume- and power button for a set amount of time) otherwise the opened files will be deleted. There may be a way to change the location itself but haven't go that far without rooting (banking and payment apps are a real pain to deal with when you have root nowadays)
Sorry for the long answer, but I really hope to shed some light into this matter

Some light is not an answer. Please make a list of the steps, so someone can follow them.

Whatsapp stores its normal videos in
\Internal storage\Android\media\com.whatsapp\WhatsApp\Media\WhatsApp Video
It has two subfolders Private and Sent.  If Whatsapp is storing these videos while playing, I would expect them here.
However, if they are storing it, I would expect it to be encrypted.  Otherwise, the feature would be useless.

While the encryption is highly possible, I have checked the folders and it's not there.


text:
Why does my phone occasionally prompt a new RSA key fingerprint for my computer?
I use ADB on my Linux PC to do stuff, but sometimes when I connect my phone, it reports an RSA key for my computer to be verified, despite I check the "remember this computer..." every time it had popped up.
I have no idea why this is happening but as far as I know, I had nothing changed regarding it, no updates on my PC, neither on my phone, so this looks very suspicious to me.
Can someone please shed a light on it? This happens roughly once a week or month I had several sessions in this period.
Additional details:
This is happening on my phone running android 9.0.0.
I ran the stat command against private and public key files. The birth date for both was more than one year ago, access date and time for the private key was when I got the prompt on the phone. So I suspect that the phone forgets the trusted devices.
There is no timeout option available per this answer  (it applies to 11+ anyway? ). There is though a "Revoke USB debugging authorizations" available but it doesn't show any list or a useful trace.

it's a security feature you can disable in developer options

@alecxs ty, but then if it has the option to trust and remember the computer why does it ask again when connected to the same computer? Is this also a separate feature?

Possible dupe: "Allow USB debugging" keeps on popping up

How often does the ADB authorization popup occur? Daily, weekly monthly? Which Android version is installed o the phone?

@Robert 7 days I guess :) https://android.stackexchange.com/a/226669

@Robert Updated the question with more details IMHO I'm not sure if it's random or not (the vendor is Samsung) but I don't have this problem with my older Sony which runs Android 8.0.0.

search your PC for multiple adb binaries 'find ${PATH//:/ } $HOME -type f -perm /111 -name adb 2> /dev/null'

@alecxs There was only one binary, not in the path, (in /lib/android...) and a symlink to that (found with -type l). did even a broader search find / -type f -name adb 2>/dev/null and only one adb binary was found.

do a backup of ~/.android and compare adbkey.pub next time it happened


text:
How do I find the origin of downloaded files?
I downloaded a file from Chrome. It shows the download URL in Chrome downloads

mv-downloads.s3.eu-west-1.…

However, this is only the domain and I'd like to see the full URL.
Samsung Files shows a different URL:

From: app.themetavoice.xyz

Are there logs or some way to see the full URL? Both of these apps give me only the domain :(

I think it's not possible. If you got root you can grep -r -l FILENAME /data/data/com.android.chrome.


text:
Redmi 9a Android 11 to 10 Bricked
A friend of mine has a Redmi 9a. He attempted to fastboot from version 11 to 10 to increase performance on on 2gb of RAM. He got to fastboot before attempting a flash of Android 10. When it claimed it was finished, he restarted after Flash Successful screen. It now no longer responds, but is picked up on his computer. He also tried spflash, but it gave these three error codes:
0xC0010001
0xC0070004
0xC0050005

It crashes immediately on start mostly with 0001 and 0005, and gets some way on 0004 before once again crashing.
Attached is the image of the phone. I can't see an obvious problem, but I am no phone expert, I mainly deal with PC hardware and low level code (C and the like).
Any help would be greatly appreciated!
.

The last time I know, there is a bootloader downgrade protection on some Android devices that will prevent flashing lower Android versions, not sure if this is the case or not...


text:
Native Messaging in Webextension on Firefox Android is supported but how?
Firefox Android is my favorite mobile browser, due to the support of webextensions.
According to this MDN documentation Native Messaging in Firefox Android > 68 is supported.
That's great, and even  greater if it could talk to Termux, but I can't find an example or any instructions how to make it work: where to put the manifest file or how to link to a native application.
Does anybody knows how Native Messaging should be done on Firefox Android?
Or is it not really supported, but only to allow the extension to install on Android, which IMHO did fail before.

If I got it right this issue documents how native messaging was developed for Firefox Android. It seems what the developers had in mind... Seems like the recipient has to be an app implementing a special interface.

Sending message to Android app (native) is the problem. Ask at Firefox support or at Reddit (/r/firefox) to provide some sort of sample. Firefox devs visit these places so one of them might notice this. Besides, regular Firefox for Android is useless for this anyway because of addons restrictions. You'd have to use Nightly.

As a workaround, you can host a local webserver (preferably in Python) on Termux and send instructions to it from your Firefox Nightly. Of course, you'd have to write a webextension for this as well. But the communication would at least take place compared to native messaging. The webserver can invoke whatever you want Termux to do with the message.

If I understand correctly, the native app should implement something like this.

There is no need to use Firefox Nightly, extensions are supported in F-Droid Firefox version


text:
Disable NFC package on Android 12
From the forum, I got lots of information about package disabling on Android. But none of this works for me. I try block the NFC package on boot:

pm disable com.android.nfc
svc nfc disable
service call nfc 8

But these commands don't work and NFC still loads and works.
What else can I do?

Does your Settings app not allow NFC to be turned off? Or is there an app which is able to (ab)use NFC without your permission, hence you are trying to get rid of NFC altogether? By the way, what errors were reported for the above commands?

Since manufacturers can and do customize their Android, could you mention the device model?

Firelord , I have 6 to 4 tunnel in myphone with two new interfaces: ipv6tnl0 and sit0. And this tunnel turn on bluetooth and NFC without my permission. I don't know  how to delete this tunnel from OS, that's why I try to block bluetooth and NFC from boot and restrict tunnel virus activity on my phone. I could disable bluetooth but NFC not. Commands does not reported any errors at all.

Andrew T. my smartphone SM-A510F (A5 2016) with custom Android 12.

I tried pm disable com.android.bluetooth and pm disable com.android.nfc again. I can't turn on bluetooth. But NFC I can turn on from Connection preferenced panel of my smartphone. Both commands shows the same result: Package com.android.bluetooth new state:disabled and Package com.android.nfc new state:disabled.


text:
How do you download an internet radio stream given by URL?
I tried by downloading using Chrome when I see a link in a Web page, but I don't see the file anywhere and if I choose cancel, it apparently removes any recording.

There is a problem with internet radio streams: they have no end, so browser will continue downloading until an error occurs. Therefore from browser perspective the download will never complete. What happens with the data if you cancel depends on the used web browser. You should better search for an app that is specialized on audio stream download and may be saves them in certain (e.g. hourly) chunks.

In Cloud Radio you can add new channel by URL and schedule at most 23 h 59 min continuous recording, and you can set the recording repeat on given weekdays.

The application doesn't seem to be very reliable though.


text:
is there a command I can run to disable the “Work” profile?
I want to disable the Work profile on a schedule using Easer. I know Digital Wellbeing already provides this feature but it doesn't work for me, the app always crashes right when the Work profile is scheduled to turn off.

I have a quick setting in my Android 10 that toggles Work Profile? Do you not have such a quick setting? Try editing quick settings and see if Work Profile toggle shows up among available tiles.

@Firelord I also have that tile, unfortunately it doesn't work properly: I can use it to enable Work profile, but not to disable it. Also, what I need is a command I can run with Termux (for instance), because scripting a user-interface action is not as simple as running a command.

To disable you can do am stop-user -f WORK_PROFILE_USER_ID. It works but does not work cleanly -- the work profile apps gets disabled but the app icons don't look greyed out.

Thank you, guess I can settle for the Work tile for now :3


text:
How to recover data when only fastboot mode?
I have oneplus 6, it stuck on QUALCOMM CRASHDUMP MODE. I'm able to load into fastboot and recovery mode. The device is not rooted (locked).
I tried to change slot using fastboot cli, but it say that I need to unlock it.
I don't want to loose that data. How can I recover the data without wiping it?

Regular Fastboot implementation only have commands for writing data and stock recovery also misses functions for reading data. The only way would be to reflash the original system firmware via recover if it provides the function adb sideload.

won't it erase the data on my phone? how can I know what is the original system firmware?

If the firmware to be installed has the same signature as the installed firmware this should be possible without factory reset. The procedure is the same as if you would receive an OTA update. Note that this is only possible via adb sideload (or a different manufacturer specific installation system) but not via fastboot.

ok, how can I get the installation file (image) with the same signature?

That depends on the manufacturer and the concrete phone model.

ok, how do I check all of those? how do I get the version?

Typically smartphone users know the manufacturer and phone type they use. And the version should be the latest available for your country.


text:
I saw "StarHub Hybrid ..." media notification on my Android phone
I saw a notification on my phone with media buttons (pause, forward, backward, etc...) that said "StarHub Hybrid ..." and some other stuff. I accidentally swiped the notification away immediately.
Does this mean that someone managed to connect a smart TV or something else to my Android phone, without me doing anything? I don't even use that Android phone as my primary phone, it's connected to my Mac all day, just sitting on the table, I'm using it to debug my Android app.

If I remember correctly from my personal experience living in a share house, this could happen when both an Android device and an Android TV are connected to the same WiFi. The Android device will show the media control even if the Android device is not casting anything, but acting only as a remote control.

Smart TVs or TV "boxes" don't connect to Android phones, it's the other way around.
StarHub indeed has one of those devices. They typically can be controlled or cast to from smartphones but they don't actively seek devices in the network for that purpose.
Considering you mentioned "media buttons" then it's reasonable to assume your phone is casting to a Starthub device. Knowing that such situation never happens without user intervention then we must conclude that either you or someone else with access to your (unlocked) phone must have started the cast. It can happen as easily as tapping the Youtube's cast icon and then the TV or StarHub receiver.
Another possibility is what @AndrewT. mentioned in a comment:

The Android device will show the media control even if the Android
device is not casting anything, but acting only as a remote control.


text:
Why can't I add weather widgets on Samsung Galaxy S10?
I want to add a 2x2 dynamic weather widget to the home screen of my Samsung Galaxy S10 running Android 12.
When I select the widget, it opens the settings screen and asks me to select a location. When I attempt to make a selection, the widget window disappears.
I've had this widget on my phone for months and it worked fine before I deleted it. Weather widgets are the only widgets that won't install on my phone. Please help.

When the "widget window disappears" this could be because the app the widget belongs to crashes. You can try to clear app data of the app and check the reviews on Google Play Store if this is a common problem.


text:
Export accounts from Microsoft Authenticator
I have Google Authenticator and Microsoft Authenticator. I want to move both off my main phone and onto two backup phones, mainly in case my main phone is ever lost or stolen. Walking around with all my security and bank accounts on my main phone makes me feel vulnerable to a 5-dollar wrench attack.
Google Authenticator seems fairly painless. You export the sites you want to export.
I can't see how you can do it with Microsoft Authenticator. I tried installing it on another phone and restoring it, but then the first phone ended up being blocked for about 15 minutes.
How can I do this with Microsoft Authenticator?

Related/possible dupe for a rooted device: Is it possible to restore the data of Microsoft Authenticator from a TWRP backup?

Unfortunately, it can't be done, at least not through regular means. MS Authenticator doesn't let you see the secret or export it. But, it gives you the chance to recover them on a new device (if backup was already set up on the old one). Moreover, one wrong step while recovering and the whole backup could be overwritten.

That seems to be my impression as well. I'm thinking of migrating everything to Google authenticator


text:
Why does my phone show 2 connected devices when I use the hotspot on my Android phone?
My Xiaomi Redmi Note 8 Pro show 2 connected devices when I use the hotspot on my Android phone. One is my own laptop, and the other is 192.168.43.1. I know that this is the default gateway for most wireless routers, but how is it possible for my phone to connect to the network that it's creating and sharing by itself?
I tried searching for the answer on the web, but couldn't find it. Could you please help me and explain why is that the case?


text:
Share Genymotion's Network with its host
Due to my peculiar circumstances in Iran with very restricted Internet access, I manage to find a way to connect to real Internet on my Android phone.
Now I want to run the solution on a Genymotion's instance and share the VPN-ed Network within Genymotion to the host and then share the host with my home network.
I know how to do the latter part, but I want to know is there anyway to share the internet (VPN Connection) within Genymotion via an interface to the host (Linux).
I do not mind if there is another emulator that fits better for my problem (the more lightweight the better, but also simple enough for me to be able to configure it). Furthermore, I'd appreciate your suggestions.


text:
Problems getting rid of Google Mail Archive entries on Outlook for Android
I have my Google Mail account set up in Outlook on both Android and Windows.
On Android there is an Archive folder, on Windows there is not; the Android one appears to be local (though it is not in any way labelled as such).
I have created an ArchivedItems folder in my Google Mail account, and I select all items in the Google Mail Archive from time to time, move them into ArchivedItems, and they then pop up on Outlook for Windows where I can move them to my main Archive folder which lives in another email account.
All well and good, except that the items have a tendency to reappear at some later point in the Google Mail Archive folder on Outlook for Android - not every time, this seems completely unpredictable.
I can see no reference to this problem anywhere on the web.

One thing you can do is sign out and sign back in and the archived items should update within the app. Another you can do is re-archive the items on a device that you are able to archive (by un-archiving and rearchiving) and then sign out and back in on the troubled device.

Thanks but not clear why this would help, given the Archive folder in Outlook for Android is local (or certainly unavailable from Outlook for Windows). And are you saying I would need to  sign out/in every time I moved my Archive items out? Happy to try it but I won't know immediately whether it's worked or not so would be good to understand the logic behind the suggestion.

You would archive or unarchive everything and then sign out and sign back in, it should work.

Ok, I don't understand why that would work where normal sync does not, but have just tried it (assume you mean the 'reset account' option since there seems to be no mechanism in Outlook for Android for signing the Google account out, I guess because it's the main identity of the 'phone (?)). I will check tomorrow whether it has 'stuck'.

It appears to have worked, although I really would like to understand the logic here.

The problem recurred and I have now realised that Google handles this completely differently, via labels, and that effectively the Android Outlook app is unable to process the Archive button sensibly on a Google Mail message. Hence answer un-accepted and Google Mail removed from my Android Outlook (using Gmail app instead, though that's not great either).

The thing is that you can’t move mail from one archive to another. Also I still need to be aware of what device you’re using. A computer or tablet with outlook? You can archive it with gmail or outlook but the main thing you’ll want to know is when you archive mail it hides it and the only way to find it is to open your tab that says “All mail” it’s always going to be in there if you have your mail synced. I’m sorry if I didn’t help you but I still don’t understand what you’re trying to do. You want to sync with outlook or Gmail on a computer, why do you want to archive them? Can I know why?

You created an archive folder, that’s not how the archive works, you have to archive it in gmail or outlook, moving it to the archive folder you made by hand won’t automatically archive it. If you want to archive it automatically what you can do is set a filter with gmail. https://support.google.com/mail/answer/6579?hl=en I hope this helps

Thanks, apologies for not answering sooner. 1) 'you can’t move mail from one archive to another.' I do so in Outlook on Windows all the time between e.g. Hotmail and my own IMAP email. 2) The problem is local to the Outlook Android app, which I am using on my 'phone. 3) I wanted to be able to archive my incoming Gmail items via the Outlook on Android 'Archive' button and then (later) to move the results to my IMAP Archive folder via Outlook on Windows. This does not work because Gmail's archiving mechanism is quite different from everyone else's (doesn't use an Archive folder).

I tried setting a filter rule on has:nouserlabels in the Gmail browser interface but it only works if I run it manually since Gmail seems incapable of running filter rules automatically on anything other than mail arriving in the Inbox. 5) Don't worry, it would be nice if Outlook for Android didn't pretend to the uninitiated that the 'Archive' button worked the same for Gmail as for every other email system I have ever seen, but there we are. I'm grateful to you for pointing me in the right direction.

Outlook for Android is a horrible app in many other ways anyway.

I’m sorry I wasn’t able to help much but I’m glad I helped a little. If there’s anything else you need you’re welcome to ask. Hopefully someone who is able to help finds this.


text:
Can websites access photos on device if Chrome has access?
If the Google Chrome app on Android has access to media/files/photos, can any website access photos on the device since the permission is granted to chrome, or would the photo picker (before the ability to grant specific photos to certain apps) have to be enacted to browse then upload after the chrome app called it?
Thank you!

AFAIK, the files can only be accessed when the user chooses them explicitly. Otherwise, this is a big security issue that should have been covered by news outlets many years ago. Also, websites can only interact with API provided by the browser.


text:
Andriod encryption/decryption
My Android phone is dead, but I want to recover my data. I removed eMMC using chip-off and acquired the image/dump file (userdata.bin) using Easy JTAG. The phone had Andriod 9, which uses Full Disk Encryption. I had a passcode on the phone. I tried to recover data from the dump file using crytpsetup command but failed. I know Andriod 9 uses AES. Can I use cryptsetup command to decrypt, as I have the passcode to the phone, and recover my data from the image/dump file (userdata.bin)

welcome - have you seen this doco? https://source.android.com/docs/security/features/encryption/full-disk , see the section titled "storing the encrypted key" which mentions a HBK "hardware-bound private key" - no specific experience with this, but from what i can tell you need this to decrypt the DEK .. i don't know if you can extract the HBK from a dead phone, more https://www.wired.com/story/smartphone-encryption-law-enforcement-tools/ LHNewman'21

Yes, thank you for the resources. I referred to these resources and others also. We can not decrypt the encrypted partition of Android outside of the phone because of the HBK. Moreover, I have not been able to extract the crypto footer containing the DEK, salt, and other encryption parameters necessary for decryption. I am still trying to work it out. Fingers crossed! I will welcome any comments and assistance.


text:
How to disable localhost:9000 in mobile?
I downloaded an application on my Android, and when I tried to open, the only thing that happened was Chrome trying to open a page called localhost:9000.
I've tried deleting the app, but my browser still keeps trying to open the localhost page, the number is already at 9008.
I'm a newbie in software so I don't know how to fix this issue.

Clear data of Chrome app and then see if the issue resolves.

Welcome to the Q&A site Android Enthusiasts Stack Exchange. Could you mention/link the downloaded app just in case it may help the potential answerers? Also, try to close all the tabs, then check the Chrome settings for the current homepage.

It's me the guest who posted this question, so I discovered that even after closing all tabs it doesnt help, by the way I remember downloading from a mp4 site, it was supposed to be a normal video, but then the name of the app was: 1836229.apk.mp4 after trying to open this started to happen. And I guess you mean deleting the data itself from the app instead of the history?

If that's the case, then your device is possibly infected by malware. Sorry, I can't provide assistance in troubleshooting the malware, other than trying a factory reset.


text:
Any way to trigger QCOM Mass storage mode in TWRP?
The phone has a Qualcomm MSM8996 SoC (Snapdragon 820) and a eMMC 5.1
QFIL Says something like this:
"download fail:sahara fail:qsaharaserver fail:process fail"
I have a TWRP image for my phone, will the mass storage script from Surface Duo work?
On this phone (With W10M) it could be possible by placing the x.efi file to specific location, and selecting USB Mass Storage Mode in boot menu.

Why do you think a script for installing ARM Windows would work on an Android phone? The "lower layers" (bootloader and so on) are totally different from a regular PC.

It's not a windows install script. Here's the code:
#!/sbin/bash echo 0xEF > /config/usb_gadget/g1/bDeviceClass; echo 0x02 > /config/usb_gadget/g1/bDeviceSubClass; echo 0x01 > /config/usb_gadget/g1/bDeviceProtocol ln -s /config/usb_gadget/g1/functions/mass_storage.0/ /config/usb_gadget/g1/configs/b.1/ echo /dev/block/sda > /config/usb_gadget/g1/configs/b.1/mass_storage.0/lun.0/file echo 0 > /config/usb_gadget/g1/configs/b.1/mass_storage.0/lun.0/removable sh -c 'echo > /config/usb_gadget/g1/UDC; echo a600000.dwc3 > /config/usb_gadget/g1/UDC' &
There's nothing related to Windows.

The script title is Reinstall Windows on Surface Duo 1 thus it is a script for installing Windows and this means the hardware is a PC, not an Android device. The CPU is irrelevant for an install script, the system environment makes the computer not the CPU.


text:
Chromecast with Google TV: No HDMI-CEC entries in Logcat
Trying to get as much control as it's possible from the TV's (LG LF630V) remote for the connected Chromecast with Google TV.
The HDMI-CEC definitely works on Chromecast, as e.g., → ← ↓ ↑ [OK] [Back] buttons are received from the TV remote. The problem is that I need even more (e.g. [Home] button is not implemented), so I've tried to intercept HDMI-CEC commands from Logcat entry, using Tasker. But absolutely no [HdmiCecControl] entries do appear in Logcat, unless (rare) CEC errors.
What I'm doing wrong? Should I explicitly enable HDMI-CEC entries in Logcat? If so, how sould I enable it? Or there is a missing permission here? Any help would be welcomed.

Android TC contains an HDME CEC service. I assume the log messages you see are from this service. I don't think it is configurable what is logged and what not. Thus the only way would be to change the service or to try to access the HDMI-CEC service using the app API which requires to develop an own app respectively Tasker plugin. But that seem to require a bit reverse engineering as the HDMI-CEC API doesn't seem to be documented. See e.g. https://stackoverflow.com/q/47892639/150978

So, as I understand there are low chances to make HDMI CEC logging more verbose. Reverse engineering is out of question, as there are smart remotes (IR + BT) as low as €50 (SofaBaton U1) for controlling both the CC and the TV. I hoped there was an easy workaround. Thanks!


text:
how to produce smaller files of photos of documents
I'm on a Huawei P30 Lite.  The camera resolutions are 15, 18, and 24 megapixel. I don't take a lot of photos but I've noticed a typical photo of a document of text is often more than 4 megabytes.  This is way more than I need.  Problem 1... This takes longer than I would like to upload via Bluetooth.  Problem 2.... I have to run an application on my computer to make the files smaller.  I am trying to avoid these 2 problems.
Skype on the same phone takes photos of text documents with the resulting file often less than 100 kilobytes.  This is surprising because I thought Skype would use the camera application on the phone.  I Skype the photo to my alternate Skype account and Skype uses WiFi which is much faster than Bluetooth.
How can I set up my phone to take photos that result in a smaller file size.  You can assume my needs are grey scale and text only.

This depends on whether you're okay with installing 3rd-party camera apps or not since the built-in camera app may not have enough settings to reduce the file size.


text:
NoxPlayer Android Emulator sometimes opens Google Play Store but sometimes the only option is a game store
NoxPlayer Android Emulator sometimes opens Google Play Store but sometimes the only option is a game store.
For example, a lot of the time I get this appeared.

The options like the little Google Play icon at the top of this window or the search bar aren't bringing up the actual Google Play Store.

From time to time, the Google Play Store has come up, but I'm not sure what I've clicked to bring it up.
How can I ensure it opens the actual Google Play Store, not the games store?

looks to me like you have to double click the nox assist icon on the desktop, rather than the nox icon , that will open up a different executable.. and the google play there is normal

NoxAsst is a shortcut to "C:\Program Files (x86)\Nox\bin\MultiPlayerManager.exe" -shortCut
Nox is a shortcut to "C:\Program Files (x86)\Nox\bin\Nox.exe"
By clicking NoxAssist, then you get the NoxAsst window

And the google play icon there (in the NoxAsst window) works


text:
How do I disable the huge rounded corners on the bar splitting apps on Android 12?
If I split the screen to see two apps, the splitting bar has huge rounded corners covering the apps. Below is a screenshot showing that. There, the bar covers parts of the video and parts of the search box. How do I disable the rounded corners?
I have Poco F2 Pro with LineageOS 19.


text:
Building AOSP kernel with debug filesystem
As mentioned in android documention,  Android 12 should not use debug filesystem in user mode.
I want to build AOSP 12.1 for some device, but building in user mode results to error below:
files are incompatible: Runtime info and framework compatibility matrix are incompatible: No compatible kernel requirement found (kernel FCM version = 5)
for kernel requirement at matrix level 5, for config CONFIG_DEBUG_FS, value=y but required n
This config (CONFIG_DEBUG_FS) isn't my defconfig. I also added CONFIG_DEBUG_FS=n config to defconfig, but no change. result kernel config (obj/KERNEL_OBJ/.config) after build is same (CONFIG_DEBUG_FS=y)
It seems that Android build system uses a base config from host os  OR  there are some depencencies to this config such that this config is ignored.
How to disable this config in android build system?
UPDATE
I tried "make KCONFIG_CONFIG=arch/arm64/config/vendor/my_defconf menuconfig" so my defconf was input to menuconfig.
I disabled CONFIG_DEBUG_FS by disabling PAGE_OWNER option. because there was a rule that if 3 specific config was set, this config will set automatically.
These caonfigs were PAGE_OWNER  && DEBUG_KERNEL && STACKTRACE_SUPPORT.
if all sets then debugfs will set. so I disabled PAGE_OWNER because two others were Mandatory or useful. Then I saved defconfig. such that so many configs changed. and I start to build kernel but too many errors was in result.

As I mentioned in question, for aosp 12.1 and above, you should unset "CONFIG_PAGE_OWNER" config in kernel config file to build in user mode. unsetting this option will unset CONFIG_DEBUG_FS


text:
Can Alexa control Kindle Fire's Wifi switch?
My Kindle Fire has a habit of losing the connection to our wifi. Sometimes it shuts off; other times it just gets "weak". (Our other devices don't have this problem, so I know its not the wifi.)
This is my real problem; if you know a solution, please tell me.
Meanwhile, I notice that turning the wifi switch off and then on will reconnect it to our network. I tried to set up an Alexa Routine to do this every morning. The only Action that seemed to apply was "Custom", so I used that and tried these phrases:
Alexa, turn on wifi --> "Sorry, what device?"  (If I answer "Shawn's Fire" it does a web search.)
Alexa, turn on wifi on this device --> "Hmm. I don't know that."
Alexa, turn on wifi on Shawn's Fire --> "Sorry, I'm not sure about that"
Is there a way to get Alexa to turn the wifi off or on?
EDIT: @ChanganAuto pointed that Alexa can't do anything unless the Wifi is already connected. (Also, I thought the routines themselves were saved offline.)
So let me ask this: is there an app (or other method) that can turn the wifi on or off on a timed schedule, and do so while offline? (My phone has an app that can do that.)

How exactly are you expecting it to turn on a network device when said device isn't in the network?

I want the Fire to turn on its own Wifi switch, just like it can raise or lower its own volume. It should be able to do that while offline, and once the switch is on, it would connect to the network.

No, it shouldn't and it can't. Alexa doesn't work by telepathy, the device to be controlled has to be network connected already. This is what I tried to hint at in the first comment.

You're saying that routines aren't stored in the device, the way timers and alarms are? That's very disappointing. After all, my Android phone can do this.

No, it can't. To be clear: ANY form of remote control must rely on a physical or wireless connection to the device being controlled. Wireless are typically WiFi, Bluetooth, NFC or other form of (proprietary) RF Tx/Rx. In modern Android phones the first 2 are ubiquitous, NFC not so much, and that it. So, it is possible at least theoretically ton communicate through one technology and command it to switch on/off the others. Also in modern Android devices radios off / airplane mode actually switches off WiFi and/or Bluetooh and that's what we want. (...)

So, although it's conceivable a device being commanded to turn on WiFi via an alternative network connection - it actually isn't doable due to blatantly obvious security concerns but technically possible to program such action - the fact remains the controlled device must be on the network because Alexa works by connecting to networked devices, period. If your device isn't in the same network of the Alexa's device it can't be controlled and thatb is the end of the story. (...)

For sure, a WiFi can be just "listening", i.e., not connected to a given AP ergo not in an network and something communicate with it to do stuff including adding it to a known AP but that obviously implies the WiFi is already on so sending a command to turn it on is nonsensical. This illustrates the absurdity of what you want to do.


text:
Disable notifications or sound on apps with DND permissions enabled
I have some apps installed that demand that I grant them permissions to send me notifications even if DND is enabled. If I don't grant them these permissions, they will not operate. I need these apps in particular to perform my job, so I cannot choose to use an alternative app. Aside from cutting the wires to the phone's speaker, how else could I silence these needy apps?

I think you answered your own question.


text:
Stop Android from creating folders on a media player external USB drive
I have an X96 media player running Android 11. Whenever I attach an external USB drive or SD card, Android will create a bunch of directories, an "Android" one (this I know about), but also "Movies", "Music", and "Photo" folders.
Is there any way of stopping this from happening? This is not a phone card but a media player, and the extra folders are completely unnecessary...
In the meantime, I'm using CX File Manager and deleting them, but they're created automatically every time I reboot.

Welcome to Android Enthusiasts. Looks like this is a possible duplicate of Is there a way to stop Android from creating folders on the SD card such as "Android" and "Download"?. Please check the answer there and let us know.


text:
How to get rid of Chrome's 'Continue browsing' link without visiting it?
There is no sensible way to get rid of Android Chrome's 'Continue browsing' link when it appears, if one does not wish to visit the site in question again. Are there any workarounds?

(In our above example image we show Wikimedia's Upload Wizard site page as the site that we don't want to visit again.)

Go offline. Now, yes, tap the 'Continue browsing' link to  "visit the site" (safely offline). You will get a choice where you can finally cancel the pending future visit.


text:
How can I use LINE on a second cell phone?
Is there a way to use the same LINE account on an additional Android cellphone?

Yes. Install e.g., the Kiwi browser, within which you can install the LINE  Extension from the Chrome Web Store, just like on Desktop.
Sure, it's not like the full-fledged LINE app, but it's better than nothing.


text:
Will Samsung's auto-restarts feature disable your alarm?
I'm using the Samsung Galaxy A32 5G on Android 13. It has a feature to auto-restart the device.
I noticed auto-restarts close all background apps on the restart and was wondering if this affects your basic clock alarm app wake-up sound. Will it disable it?

Wouldn't this just be worthy of a self-conducted experiment? You can self-reply to your post, for the benefit of all.

@wbogacz That's a good point, I'll see if an alarm goes off after a restart.

In my experience, when my phone restarts in the night, the "Sleep as Android" app doesn't restore properly, but I am woken at the correct time by a default alarm app that I believe comes from the Android OS. YMMV though, so I recommend enabling auto-restart on a rest day first.

Thank you! I'll check if the alarm still works after a manual restart.


text:
App/website blocker for S23 Ultra that cannot be removed
I am using blocking apps to try and put as many barriers in place as possible to prevent me accessing gambling websites/Apps.
I have a Samsung galaxy S23 Ultra running Android 13. I haven't been able to find an app without a workaround.
"AppBlock" is the best - until I discovered yesterday it can simply be uninstalled by entering safe mode. Is there a non-root way of disabling safe mode or making the app a system app so it can't be disabled/uninstalled in safe mode?
With "strict mode" activated AppBlock is great - I couldn't circumvent it. But booting into safe mode allows the changing of permissions subsequently allowing me to uninstall the app .
I tried a downloadable play store app to turn it into a system app but that didn't work.
Edit: at this point if it's possible to achieve this by rooting my device I will happily do so.
Thank you in advance!

Everything you can put in place you can also remove, there's no way around it. You need professional help for the issue, not a technical "hack".

@ChanganAuto yes I agree. I have just been diagnosed with ADHD, and working with a therapist to curb my impulsive behaviour. But adding additional measures like blocks is, I've been advised, a great accompaniment to the professional help I'm now receiving. For example on my Mac I use cold turkey, to amazing effect. I just wish there was something similar for android. Thanks


text:
How to backup an android phone with a broken screen (using linux)
I have dropped my android phone and the screen broke. In the meantime the battery has died. I would like to use adb to make a backup (I run Ubuntu).
adb devices

shows the device. However it is shown as unauthorized.
Can I somehow use adb to backup the phone nonetheless?
PS1: This is a Oneplus 7T on Android 12.
PS2: I have managed to connect the phone to an external display via a USB type-c hub (It shows a screensaver-like screen with the time) as suggested in a Oneplus forum. However, the keyboard and mouse signals are ignored by the phone).

adb access is impossible unless you authorize in the shown dialog on the phone. The only way to do so with a broken touch screen would be a bluetooth keyboard. But as the device ran out of power it will now require you to unlock the lock screen. Unless this is done all user data remain encrypted.

@Robert would somehow connecting an external display work?

Some phones support certain USB-C alt modes for external displays, other don't. Usually such details can not be found in hardware spec, so I would ask in a OnePlus or model specific forum. There is he biggest chance to get the information if it works at all and if yes what adapter you need. But the there is the problem that the USB port is blocked...


text:
Cannot cast Xiaomi Poco X3 to my Windows 10 and Windows 11
I tried casting Xiaomi Poco X3 to my Windows 10 and Windows 11 but it doesn't work. When I try to do that, I got this message.

Other smartphones can do that just fine. I tried the solution mentioned on Reddit thread but not helping.
I wonder what I should do.
Note: I ended up using Airdroid and some alternatives. It's working fine. So I wonder why something that worked fine with Airdroid doesn't work with official companies.
Note: I tried again with another software called Miracast 4k the result is the same

Other phones work just fine


text:
How to turn on modem diagnostic mode on Samsung Galaxy Nexus
I am trying run xgoldmon utility with my old Samsung Galaxy Nexus. I follow instructions provided in README file.

The Galaxy Nexus has to be rooted first to activate diag mode! Then:

In the adb shell, as root, enter:   echo MODEM > /sys/devices/tuna_otg/usb_sel
Connect to the first of the serial devices (e.g. /dev/ttyACM0) with   a terminal emulator and enter   AT+TRACE=1

I tryied with several factory images for Samsung Galaxy Nexus ("yakju" for Galaxy Nexus "maguro" (GSM/HSPA+)) from the Google site. I flashed Android 4.0.4 (IMM76I), rooted phone via TWRP installng SuperSU, connected to the phone via running adb shell and run
echo MODEM > /sys/devices/tuna_otg/usb_sel
Phone became disconnected and I did not see ttyACM* devices in /dev directory to enter AT commands. Also I could not connect with the adb tool.
When I did
echo NONE > /sys/devices/tuna_otg/usb_sel
I could connect to my phone with adb tool.
I tried the same things with  4.3 (JWR66Y) and got the same result.
There are several hardware versions of Samsung Galaxy Nexus, I suppose, but not sure, that I have a version that did not allow to work with modem diagnostic mode.
Can somebody say what I am doing wrong? And is there any solution to my problem?


text:
Google calendar events missing seemingly at random
Some events I've created show up and some don't on the same calendar across different accounts.
I've tried checking and unchecking them.
I've tried turning them off and on in the Android settings.
I've tried the Sync now button.
They show up in my Google Calendar web view and in Fantastical on my Mac.
It's only on my phone that they seem to not show up it's very inconsistent which do or don't show. I can see some events appear and others don't show up at all, then mysteriously show up sometimes way past the event.
This also happens with groups. I was recently invited to a group. It took several days for it to even show up on the side bar and when it finally did show, none of the events became visible on my Android calendar but did everywhere else. The group is checked as visible in the sidebar.
This is causing me to miss invites and now I have to regularly check the web copy just to make sure I'm not missing something.
How can I fix this?
Using a Samsung Galaxy S22 with Android version 13 build #TP1A.220624.014.S908U1UES2CWCC.

If all data is OK just not on your phone a local problem is very likely. May be the used database that is synchronized with the cloud is corrupt. The only way that comes to may mind is cleaning some app data (but I am not sure which apps may be appropriate in your case) and remove and re-add your Google account.

Was concerned I'd have to do that. I have a lot of accounts, so removing and recreating them could cause issues. Hoping to find an alternative solution.

@Robert I tried removing a test account, but when I added it back, it doesn't show up in the Calendar app at all. Going to "Manage Accounts" in Calendar shows it is missing. The Google account settings show that calendar syncing is turned on.


text:
Fingerprint recognition not working with new screen guard on OnePlus 9R
I have a OnePlus 9R Android phone and the screen guard cracked when the phone fell.
I tried to buy a replacement screen guard from one plus but the official site shows it as out of stock for the last three months.
I fitted my phone with a non-oneplus screen protector but now the fingerprint recognition won't work.
I even tried deleting the prints and adding new ones but no luck.
Any ideas or workarounds? Should I just try another brand for the screen guard?

this vid shows how to increase sensitivity with screen protectors. https://youtu.be/NsYVu9lmYk4


text:
Can't stop family link supervision on Xiaomi
I followed the stop supervision from this

On parent device in Family link the advice is:

On your parent device, open Family Link . Select the child who will no
longer be supervised. Tap Manage Settings  Account Info  Stop
supervision.

but there is no stop supervision there. Just "delete account and data"

On child's device the suggestion is:

On your child's device, open Settings . On Android versions 8.1 (O)
and later, tap Digital Wellbeing & parental controls. On other Android
versions, tap Google  Parental controls. At the top right, tap More
Stop supervision.

it waits for 5 minutes, then says "Unexpected error occurred"
Also I changed his birth year from 2005 to 2015 not knowing I won't be able to undo it. My other son however was able to remove his supervision from his phone, there was no error and anything.

The Device: Xiaomi Redmi Note 10
Android Version: 12
MIUI Version: 14


text:
Cannnot turn on "control device permission" in Anydesk on Android
I use Anydesk software on my devices and recently I've faced a problem with controlling my Android device with my Windows machine. Once I try to connect to the Android phone through Windows, I can see the phone's screen but I can't control it. I noticed that on my phone, "control device's mouse and keyboard" permission is off and I can't turn it on.
.
I've already installed the AD plugin.
How can I resolve this issue?

The AnyDesk plugin ad1 has also to be installed - activated and accepted.
Furthermore, you have to manually turn it on in Settings - Accessibility of Android - Locate 'Anydesk Control service' - turn it on.
Then you can choose full control and you will be able to access the mouse and cursor.

how to unlock (use) the control my device option in any desk for Android phones?

install (ADControl AD1) from play store.
go to settings and search for (Accessibility).
find your installed services and click on (AnyDesk Control services AD1).
then you have to manually turn it on.

you are good to go now ^_^

On Googling, it is not obvious which app you mean.   What I am finding i scalled Anydesk plugin AD1, not ADControl AD1. Please provide a link to its home page, in your answer.


text:
Setting up Catalan on Google TTS engine
I'm using Xiaomi Redmi Note 12 Pro (MIUI Global 14.0.6). I'm not able to set up the Catalan language in the Google TTS engine. Basically, it does not accept any language which is not linked to a country (like Croatian or Serbian for example).
My phone system language is set to Catalan. Any other language linked to a country works. By languages not linked to a country, I mean those appearing on the list of languages which do not have the country next to the language e.g. English (United Kingdom). For Catalan, it appears as is in the list with no country next to the name. I guess if it would be listed as Catalan (Spain), it would work. Any support would be highly appreciated.
I can't use another TTS engine as I'm using a Samsung 5 Pro smartwatch and the Samsung Galaxy watch manager app only supports 2 TTS engines: native Samsung TTS and Google. Unfortunately, Catalan is not supported by Samsung TTS (at least I was not able to find it). Thanks!

Welcome to Android Enthusiasts. Looking at the language list of Google TTS (Speech Services by Google), looks like it doesn't support Catalan and a few other languages. I'm not sure the user can do anything about it since it depends on Google's development.

Catalan is supported, https://cloud.google.com/text-to-speech/docs/voices

The link you provided belongs to Wikipedia!

I deliberately linked to Wikipedia because the language support for the Google Cloud TTS API (for developers) is different from the Speech Services Android app (for end-users), while both were developed by Google and thus depend on Google's own internal development/policy/etc.

Thanks for clarification.

The weird thing is that 2 weeks ago I managed to set up catalan and now it is no longer possible but I do not know the reason for that. Maybe some app was updated, still looking for a solution. Thx


text:
VLC Android Crash Accessing Server, VLC Windows Accesses Same Server Successfully - New Server NIC
I have a network machine running Windows 10 Pro with a folder shared public. This server has been accessed by both VLC Android & VLC Windows on this network without issues for years.
I upgraded the network card to a TrendNET 10gbit TEG-10GECTX v3. Windows still accesses it fine, as does VLC for Windows(v3.0.18), however all Android VLC devices - Firestick(v3.5.4) & Android Phone(v3.5.4) - crash now when trying to access that server from the network.
I tried upgrading the NIC driver to latest Marvell AQTion driver v 3.1.7. I've tried turning on CIFS on the Windows machine and setting the share to full public (not require logonid/pw) and I've also force-stopped the VLC Android apps, cleared all data, uninstalled/reinstalled VLC and tried turning off the PREFER SMB 1 setting. The Windows share security is set to Everyone - Full Access. All of this has been done to no avail - crashes the VLC Android versions every single time.
Anyone have any other suggestions? As a last resort I will try a XG-C100C 10gbit NIC by Asus.

On Android side: Have you checked adb logcat for errors or more details what is going wrong?


text:
Fastboot flash Pixel 4a device corruption
I tried out lineage on my pixel 4a and it went south
Right now I'm trying to flash with ADB the original sunfish IMG but now there is no recovery image. It just says the device is corrupt
The boot loader and OEM are both unlocked
Is there a for sure method to flashing the stock images back to the phone?

Boot into bootloader and use fastboot for flashing. The original flash scripts provided by Google AFAIR use fastboot.

@Robert that's the one I used. I used the flash-all script and now I can't get into recovery nor boot

@Robert https://developers.google.com/android/images


text:
WhatsApp giving error message "unable to back up" (Google Drive)
My WhatsApp has been giving me trouble for a long time regarding backups. It started a couple of months ago when I pressed back up now and I received an error message saying "unable to back up". A little while later, my WhatsApp suddenly crashed and when I tried opening it, I received an additional error message saying

Something went wrong with your chat history, don't worry you can restore your chat history from backup. If you don't restore now you won't be able to restore later.

After pressing "backup now", it responds with "unable to retrieve old backup from Google drive."
I tried looking up different solutions and I did everything including, resetting the cache, disconnecting and reconnecting my Google account, turning off my phone, and playing around with every possible setting. I have plenty of storage on my device and Google Drive account and a great internet connection, so I had no idea where the problem was. The only solution that helped was when I switched my WhatsApp number to a different number. After that, I was able to back up to Google Drive normally as it should be. Unfortunately, I  had to reset my WhatsApp from new and start again which was really irritating, on the bright side I was able to do backups moving forward.
My WhatsApp has been working fine ever since yesterday when it gave me the same "unable to back up" error message I'm all too familiar with. Not surprisingly, the next day my WhatsApp crashed and the situation that happened a couple of months ago repeated itself.

Please help me understand what's wrong with my WhatsApp and if there are any solutions or fixes I can do. I've scoured the internet and I haven't found any solutions that have worked.
The problem now being when I press backup now I get an error message "unable to backup " in response. Any idea of what could be wrong/if some file is corrupt how to fix it?

Is your chats on the device now? I mean did you synced all the chats and media (that 2.5GB) on the phone offine? If so, make sure drive is updated. Then open Google Drive application, tap the hamburger menu, click Backups. Delete WhatsApp backup by clicking on the Delete backup option, then close the Google Drive app. Preferably reboot. And head to whatsapp and create a new backup. This will consume 2.5 cellular data if on mobile network.

Ahh, one of the gut-wrenching WhatsApp problems. Try below after you have tried all other options.

Change backup frequency to "never", under 'Back up to Google Drive".

Force stop WhatsApp.

Clear cache.

Remove Photos and Videos permission for WhatsApp.

Give said permission back to WhatsApp.

Open WhatsApp and change the backup frequency to whichever you prefer
under "Back up to Google Drive" (I set it to "daily").

Tap "Back up".

I believe this would definitely work. It did for me and many of my friends.

This worked perfectly, thank you.

You are a lifesaver, thank you.

Normally when WhatsApp makes a backup, it makes a local backup too. You can find the local backup on your phone's memory or sd card under the WhatsApp folder. You should probably backup the backup so it doesn't get overwritten by a new backup, then you can turn off Google Drive backup and see if you can do "Backup now". It should then only make a local backup.
If that doesn't work you should try putting the local backup back. I am not sure what the cause could be, I would assume either your phone isn't authenticating with Google Drive properly or your Drive is full. Try logging off from Google and logging back in. There may be an issue with the data of WhatsApp itself. Sometimes clearing the cache helps but I can't guarantee what'll work and what not.
It looks like it managed to create a backup 16 days ago, so if nothing works you should still have a proper copy of your messages from everything before that date. Reinstalling WhatsApp should then give you the option to recover from Google Drive, but you will lose 16 days of chat history unless if you use the local backup.

I've disconnected my Google drive account from Whatsapp and tried doing just the internal backup again with no success. The error "unable to backup messages" still pops up. After taking a closer look at the files themselves I find that the media and backups folders actually do get backed up every time I press back up now, but not the database file. Is there any explanation for that and or a fix to the problem itself?

@Ktclmymlrk I would assume there is an error reading the database then, you may be able to try to rename the WhatsApp folder so it creates it from scratch. Otherwise something deeper you may want to try to restore from a working backup. It could be possible you can use adb logcat to see what errors it shows, that would give us a more detailed overview of what WhatsApp tries before it fails.

I'm not familiar with adb logcat, can you elaborate or explain how to do this. Also are there any third party apps/softwares I can use to backup Whatsapp. I've pretty much given up on trying to fix whatsapp, since I have no idea on how to even diagnose the problem.

@Ktclmymlrk Sorry for the late reply. I don't think there is any third party software that can backup WhatsApp since the data is in the app's private storage. You should try a file manager app and see if there is a WhatsApp folder on your internal storage or sd card. If there is, you should try to delete WhatsApp's data, but remember there might be a small chance that your messages can't be recovered. Normally when logging back in using the same phone number you can recover the chats from the local backup.

I did everything you said and it still gives me the "unable to back up messages" error whenever I press back up now. The issue isn't with my Google drive account because it doesn't even let me run an internal backup either. Is there any fix to this or a way to even debug the problem?

Well, I think the last resort would be to clear the cache or WhatsApps data. I suggest trying another method of backing up the app data. Samsung has things like smart switch, or Huawei has a built in backup app. If you have a backup already and are very sure it contains all the data you want you may try to clear the app data. If you really don't want to mess with your WhatsApp it may also be possible to modify the WhatsApp apk's app id and install a second clone of the app, or a third party WhatsApp client to try and see if you can restore your data, or leave WhatsApp and use the other client.

I don't have a Samsung or a Huawei so Is there another backup method I can try. The last resort would be to restart my WhatsApp again from scratch but I really don't want to lose the years of chats and messages I have, and who's to say the same error that happened to me won't happen again. Is there anyone who knows what's going on and can help me?


text:
Remove device admin
I am using a Xiaomi Redmi Note 10. My little brother tried to install Minecraft for free from google and now I have a device administrator app which cannot be uninstalled. When tried to remove admin privileges it says "Blocked by your IT admin"
I unsuccessfully tried removing admin privileges using ADB I tried to boot in safe mode, but it is just booting normally. I know I can boot in safe mode because I have done it before and saw the "Boot Mode" indicator, but now there is no indicator. I tried rooting the phone, but in developer settings the OEM unlocking option is also disabled by my admin so I don't know what to do now.
The app really slows my phone down. I can see that even though it's not opened it drained half my battery in one hour. I really need some serious help here. I will try everything you suggest.


text:
How to enable the light sensor with ADB while the screen is off?
how to enable the light sensor with ADB while the screen is off?
I want to check the values of /sys/class/sensors/light_sensor/lux, but it changes only when the screen is on.
What I have tried, but did not work:

https://stackoverflow.com/a/39215746/21702461
There is no file called "enable" in that directory.

Tried to find a light sensor service, while the screen is on. But it seems there is none.

dumpsys activity services | grep light
service list | grep light
My phone:
Samsung Galaxy S4 with LineageOS and root enabled.


text:
how can i recovery my files from internal storage
I have samsung s20 fe g780g/ds, android 13. all my files in image gallery are lost or deleted. I would like to recovery but i cant access internal storage for recovery software. my phone is also not rooted. There are many topic like this but they are piece by piece, not fully explain. I have to  root my phone or is there any another way to recovery?

Welcome to the Q&A site Android Enthusiasts Stack Exchange. Looks like this question is a duplicate of an existing question. Please have a look.

the linked answer applies for FDE encryption with ext4 file system only. your device is FBE encryption with f2fs file system = unrecoverable


text:
Is there a way to manually bring up the keyboard?
I am trying to play a Pico-8 game in my browser that requires keyboard Inputs but my keyboard does not appear. Is there a way to manually bring up the keyboard or have it on permanently?

Keyboard can be brought forward manually, but I think the keyboard has to have a screen pinning or overlay-like functionality to continue to be up and resist being brought down. Try asking at [softwarerecs.se]. See if somebody there knows a keyboard with this feature.


text:
Galaxy A71 stops charging
My A71 will after sometime stop charging. Rebooting it fixes the issue for awhile. Anyone else experienced this and found a solution?

Could be a thermal problem if the battery is going too hot while charging. By rebooting you give the battery a minute or two to cool down below the critical temperature. Try a different charger with less power (e.g. only 1.0 or 1.5A at 5V) and place the phone vertically on a hard surface to optimize cooling of the phone.

@Robert I don't think it's a thermal problem. I usually notice it when I go to plug it in at night that it won't charge until I reboot it. Once rebooted it will charge to 100%.

When you say "stop charging" does that mean the icon changes like no power supply is connected or is just the battery percentage not increasing as it would be expected?

@Robert The icon changes like no power supply is connected. Reconnecting it and even different power supplies and cables don't help. A reboot is the only fix I've found.

It sounds like a software issue, I wouldn't know what else would change the state from rebooting. Did it always do that or randomly started after an update? It may be stopping as a safety measure but it could also be a defect temperature sensor or thermal fuse or some other protection mechanism that's overreacting.

@Foxyz It's been doing it for a couple of months.  Not sure if it started after an update. Its been a good phone otherwise.

I've seen this issue before. For him it was the battery. Use a Battery Health Checker app to see what the issue is. Replace the battery everything should be just fine
Oh and before buying a battery maybe try using a different adapter and try cleaning the charging port. Just for the safe side

I downloaded Accubattey. We'll see what it comes up with.

Battery health is down to 82%. New battery seems cheap enough and easy enough to replace.


text:
How to Set Up Kodi to Enable Touch Gestures to Control Playback?
I am using the current latest Kodi version, which is official website
But I don't know how to enable touch gestures to control playback, and I didn't find the relevant user manual on the official website.
I only found this, but it doesn't seem to help me.
The device I'm using is an Android tablet, not a TV. What I want is simple, like other players:

Double tap to control pause/play
Drag left/right to control playback progress.
Double tap left/right to go forward/backward for 10 seconds.
etc.

How should I set it up?

The touch should be working right off the box. Did you download it from play store?

@44yu5h I download it from apkpure


text:
Trying to buy an app on a degoogled device. Why is the app "not compatible with your device"?
I have a degoogled lineageos phone. I'd like to be able to play "A dance of fire and ice" and "cytus" on this device.
If I have previously purchased these apps, I think I should be able to install them through the aurora store (Or worst case, extract an apk from another device and install it). The only problem is that I don't actually own any android devices with gapps to purchase these apps on, and the play store web interface doesn't let me purchase an app if I am not logged in on any eligible devices.
Therefore I decided to set up a waydroid install with gapps, to try and get this stuff to work. However, after having done this, and navigating to the store page I see: "This app won't work for your device", and when I go to the web interface, I see the following:

Of course android is being its usual opaque self, and not actually telling me why it "won't work on my device".
I think I might be able to fix this by setting up waydroid in such a way that the playstore thinks that my device is in fact compatible with this app, just that I have no idea what it wants me to do for it to accept this app. Is the screen resolution wrong? Wrong android version? Something else entirely?
I already purchased a play store gift card which I can't return anymore. Therefore there is no use in giving up because something might not work. I was willing to take the gamble when I bought that card in the first place anyways

The app is not paid, but uses in-app purchases. In-app purchases require Google services to work. Not sure what happens if the app tries to access Google services to check the license and your in-app purchases and it does not exists. A crash is very likely.

A dance of fire and ice is paid, also, I should have said cytus II instead of cytus, cytus is indeed not paid but has in app purchases.

For third party apps you should better directly link to the PlayStore entry. Your screen shot shows that it has in-app purchases (and it is additionally a paid app). Note that Google recommends for paid apps to perform a license check at start-up to avoid illegal distribution of paid APK files. This license check is similar to an in-app purchase check and for both AFAIK Google services are needed. https://developer.android.com/google/play/licensing

The link to the playstore entry:
https://play.google.com/store/search?q=a+dance+of+fire+and+ice&c=apps
Also, I know very well that the resulting apk might not work. I just want to try it, I already purchased the gift card anyways.

You can try to install Android Emulator from Android SDK. Google provides emulator images with built-in Google services and Play store. Buying apps in the emulator should be possible. It would be at least worth a try if the app you want is available in that environment or not.

Based on the screenshot, it seems Waydroid is using an x86 image which is very rare nowadays, and rarely supported on games that depend on native libraries. Consider trying an ARM image instead.

I guess it makes sense that x86 would cause compatibility issues, started a pixel 2 through android studio, which seemed to let me purchase the app. The aurora store let me install the app on my main device, and I am now successfully playing a dance of fire and ice on my degoogled phone.

Robert's comment seems to have fixed it (I used the emulator built into android studio, which I happened to have already installed, with a device that has the play store installed). I guess the reason waydroid didn't work is because it was on an x86_64 device, like Andrew T. mentioned.
Either way, I managed to couple that emulated device to my phone, and I was then able to purchase a dance of fire and ice through the google play web interface. After doing this, I could just install the app through aurora, on which I am logged in with my google account. This works, and I am now happily playing a dance of fire and ice on my degoogled device. Though I wouldn't be surprised if not all apps allow you to just run them like that without gapps.
update:
tried cytus II as well, this one didn't work.


text:
How to hide system message white transparent popup on Android screen
Some app generate an error and phone shows transparent popup, which looks like system popup because it is persisted across all apps and even hide system buttons or keyboard.
Example of messages in the box:

Resource has been exhausted (e.g. check quota)

Is there a system setting to move notifications to notification area instead? Or complete hide it...

That looks like a toast. Related: How to get rid of grey error/alert message popup (toast). There's a command to try on the comment thread, though not yet posted as an answer.

With the help of Andrew I launched the command:
adb shell "pm list packages -f"

to get the list of packages and then scanned for their properties (Bash script):
list='com.google.android.youtube com.viber.voip'
mkdir -p dump
for i in $list; do
  adb.exe shell appops get $i |& tee -a dump/$i.txt
done

Then I searched for the keyword TOAST_WINDOW. for Youtube app it was:
Uid mode: COARSE_LOCATION: ignore
LEGACY_STORAGE: allow
VIBRATE: allow; time=+7h31m46s232ms ago; duration=+27ms
TAKE_AUDIO_FOCUS: allow; time=+28m45s847ms ago
WAKE_LOCK: allow; time=+1h13m24s504ms ago; duration=+9s138ms
TOAST_WINDOW: allow; time=+1h12m25s632ms ago; duration=-24855d3h14m7s312ms
START_FOREGROUND: allow; time=+82d1h9m54s814ms ago; duration=+2m34s513ms
USE_BIOMETRIC: allow; time=+40d0h55m4s406ms ago

The line:
WAKE_LOCK: allow; time=+1h13m24s504ms ago; duration=+9s138ms

probably tells that last toast was 1h ago with duration of 9s. It looks like what we experienced!
So I disabled the privilege:
# adb shell appops set com.google.android.youtube TOAST_WINDOW deny

# adb shell appops get com.google.android.youtube
...
TOAST_WINDOW: deny; time=+1h23m2s506ms ago; duration=-24855d3h14m7s312ms

I hope this solves the problem. IDK if an app upgrade resets user settings...
UPDATE this UI element is called Toast.
Seems the duration of a toast is hard-coded in Android sources:

https://stackoverflow.com/questions/7965135/what-is-the-duration-of-a-toast-length-long-and-length-short
https://stackoverflow.com/questions/2220560/can-an-android-toast-be-longer-than-toast-length-long/


text:
Network question regarding data and wifi
I wanted to ask whether on Android phones it is normal to access another phone who only uses data and no wifi from a phone that only uses wifi and no data, using an app such as WhatsApp to place a call.
I am trying to debug in a phone setting where one or both phones may have network problems, and was thinking about whether anyone can help me with this.
Both phones are running Android 12 and 11.
Thanks.

What network problems exactly? Indeed what you mention is normal and unrelated to any specific software, it's just using WiFi tethering in one phone and connecting to an AP given by another which happens to have only mobile data, a very common setup. What exactly are the problem you've been experiencing?

Access how? Your question doesn't actually specify tethering, it specifies two internet connected devices, one via wifi and one via cellular.


text:
How to configure Android to act as server in the local network?
I have two devices (an Android phone and an Orange Pi) connected to the same Wi-Fi network via the notebook's hotspot. I do have a server running on the Android device which I want to make accessible to the Orange Pi. How do I do that?
As far as I know Android doesn't have a firewall or anything like that. Accessing the server via IP opens the server OK, but on the Orange Pi, I get that "cannot find host" error and can't ping the Android's IP address. What am I missing? How do I fix that?

What kind of server is running on the android device? SMTP? FTP? HTTP? Minecraft?

@Gantendo http using KSWEB app

When you say "accessing the server via IP" is that from the Android phone ir another device on the LAN?

I don't know quite enough about Android to know precisely how they handle firewalling but they REQUIRE a firewall to work because iptables/equivalent (ie Linux/android firewall) are required to implement NAT so hotspot clients can share the WAN address.  Its also entirely plausible that your hotspot is implementing network isolation depending on the vendor [more firewalling but done at a lower level - this can be implemented in hostapd - the program typically used to create a hotspot/ap ]. Also, I think this question belongs on android.stackexchange.

You should add your make, model and Android version to your question.

What OS is running on the notebook and thus providing the hotspot?


text:
Android on a stretched display (1920x480)?
I'm trying to run the unofficial android os on Raspberry Pi on a screen similar to this one.
Before buying I wanted to know that if the android (in tablet mode) will adapt to the screen ratios? And if not, will there be anything that I will be able to do by editing the os?
I'm familiar with the screen dpi but that's not what I'm asking

From: https://konstakang.com/devices/rpi4/LineageOS19

Working
Touchscreen/multi-touch (official 7” touchscreen, USB touchscreens, Waveshare SPI touchscreens)

Q: My display is not working. I can only see the rainbow screen but no Android boot animation. What should I do?
A: This build only supports HDMI displays that report supported resolutions using EDID. 1920x1080 resolution is used by default with this build. You can change value in /boot/resolution.txt to use a different resolution that your display supports. Removing /boot/resolution.txt will use the preferred resolution of your display.

The link to the similar display does mention

If the monitor has a touch function, the USB cable needs to be directly connected to the USB interface with data transmission function of the Windows system host. At this time, the USB cable transmits power and touch signals.

And there is a section in the display link for Raspberry Pi operation:

Connect to Raspberry Pi:
When used on Raspberry Pi, you need to modify the "config.txt"
Add the following code to the config.txt file:
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_timings=400 0 100 10 140 1280 10 20 20 2 0 0 0 60 0 43000000 3
Note: If it is Raspberry Pi 4, you also need to comment out dtoverlay=vc4-fkms-V3D.

There may be different settings for different displays. The ROM link indicates that you can make changes to /boot/config.txt


text:
How do I switch the app on top while I'm in split screen mode?
For example, I wanted to open the game app on the bottom screen while I switch apps on the top screen. The problem is when I open the first app on top screen, it does not allow me to switch apps. It only allows me to resize the screen  Is there any way i can make the first app on top to switch to other apps?

Can you enlist your phone's model and android version? Personally, I don't think you can do anything but to go to home screen and start the split screen again.


text:
Secure phone against a custom firmware being flashed remotely

My phone restarted extra long for no reason and now the firmware is different. It shows up as generic android device not moto g pure. Can I encrypt the hardware to prevent this in the future?

Is it possible that you accidentally installed an GSI image?

The image I posted comes from the star code menu. I think the girl who had my phone took a screenshot and when I got home someone ran possibly remote fastboot. I'm not sure but it happened to 2 other phones too. I have not flashed anything since the days of snow breeze redsnow and ultra snow and greenpoison and that was all ipod touch

We can't tell without knowing how this happened, so if you had for example some kind of virus, removing that would solve this.
If you haven't rooted your phone, secure boot should prevent anything like this though, have you rooted yours?
Unless this is an actual update from Motorola that auto installed.
TLDR you need to work out what caused it before you can start to find a solution.

I don't know if this was a deliberate question or you are just confused on what you did.
Entering *#*#4636#*#* in the Phone app brings you to this Testing page where you can check all sorts of info regarding your phone like Wifi, NFC, Usage, Phone info, etc.

Here are some other codes you can try

Phone information
##4636##

IMEI Info
*#06#

Calendar
##225##

FCM Diagnostics
##426##

Engineering Mode
##2486##

Regulatory information
*#07#

Source