text:
Lengthy sleep command not working in script
I've written a su.d script to periodically (every 4 hours) back up data from an app using a looped sleep command:
#!/system/bin/sh

(
  # Wait for boot to complete
  until [ "$(getprop sys.boot_completed)" ]
  do
    sleep 300
  done

  while true
  do
    (
      new_dir="/storage/emulated/0/temp/AppData/$(date '+%Y%m%d-%H%M')"
      mkdir -p $new_dir
      cp /data/data/com.example.app/files/*.json $new_dir

      echo "$(date '+%F %T') | app data backup OK!" >> /storage/emulated/0/su.d.log
    ) &

    sleep 14400 # 4 hours
  done
) &

In practice, the script backs up the data only after boot—not every 4 hours.
However, if I enter a remote shell via adb and leave it alone, then the data does get backed up every 4 hours.
How can I force the periodic backup without being permanently connected to a PC? (And why isn't it working as expected?)

EDITS

@Irfan Latif's comment gave me the idea of trying a different interpreter (busybox ash - #!/system/xbin/sh), but the result was the same. I'll try @mirabilos's daemonise suggestion (sh -T- -c '...') next.
Tried @mirabilos's daemonise suggestion with the same result: backs up data only after boot.
Tried nohup:
nohup /system/bin/sh -T- -c '...' >/dev/null 2>&1 &

Same result.

I can't recall exactly but I had figured that out once. I think the problem was with /system/bin/sh (korn shell). It behaves unexpectedly when not connected to a terminal and forks a shell in background. For commandline, you can go for busybox cron to schedule tasks. For UI, use an app like Tasker.

You can go for cron daemon by simply creating a crontabs file. This seems a more appropriate solution for repeated tasks rather than using shell in background. All you need to run on boot is: busybox crond -c /path/to/crontabs. If you want to stick with shell thing, use set -x and exec &> to take logs of su.d script with timestamps to find when and why shell execution fails.

Man You can use alternatives, see here: https://unix.stackexchange.com/questions/482725/shell-is-it-possible-to-delay-a-command-without-using-sleep

Having no success with sleep, I ended up going the crond route, as suggested by @Irfan Latif:

/system/su.d/99crond  (-rwx------ root root)
#!/system/bin/sh

# File: 99crond
# Desc: Start cron daemon

(
  # Wait for boot to complete
  until [ "$(getprop sys.boot_completed)" ]
  do
    sleep 2
  done

  # Symlink default cron dir to /data/local/crontabs
  mount -o remount,rw /
  mkdir -p /var/spool/cron
  ln -s /data/local/crontabs /var/spool/cron/crontabs
  mount -o remount,ro /

  crond -b

  echo "$(date '+%F %T') | su.d/99crond OK!" >> /storage/emulated/0/su.d.log
) &

/data/local/crontabs/root  (-rw------- root root)
# /data/local/crontabs/root: Android root user crontab

SHELL=/system/bin/sh
PATH=/sbin:/system/bin:/system/xbin:/data/local/bin

#.--------------------------- Minute (M) (0--59)
#|    .---------------------- Hour (H) (0--23, 0 = midnight)
#|    |     .---------------- Day of Month (DoM) (1--31)
#|    |     |     .---------- Month (MON) (1--12) OR jan,feb,mar, ...
#|    |     |     |     .---- Day of Week (DoW) (0--6, Sunday = 0 or 7) OR sun,mon,tue, ...
#|    |     |     |     |
#M    H     DoM   MON   DoW   COMMAND
0     */4   *     *     *     /data/local/bin/cron_backup.sh
#

FURTHER READING

CronHowto
What is the correct syntax to run cron every 4 hours?
crontab(5) - Linux man page

/data/local/bin/cron_backup.sh  (-rwxr-xr-x root shell)
#!/system/bin/sh

# File: cron_backup.sh
# Desc: Back up app data (periodically with crond)

new_dir="/storage/emulated/0/temp/AppData/$(date '+%Y%m%d-%H%M')"
mkdir -p "$new_dir"
cp /data/data/com.example.app/files/*.json "$new_dir"

echo "$(date '+%F %T') | cron_backup.sh OK!" >> /storage/emulated/0/crond.log

As pointed out by @Ramast here, these three files alone were not quite sufficient to get crond working: /system/etc/passwd is also required for user root to be recognised, so...
mount -o remount,rw /system
echo "root:x:0:0:root:/data:/system/bin/sh" >> /system/etc/passwd
chmod 644 /system/etc/passwd
mount -o remount,ro /system

After all that is done the data gets backed up periodically as desired.

If it’s the terminal thing @IrfanLatif wrote, try this:
#!/system/bin/sh
# run a command block in the background, detached from all terminals
/system/bin/sh -T- -c '
    # Wait for boot to complete
    until [ "$(getprop sys.boot_completed)" ]; do
        sleep 300
    done

    while true; do
        (
            new_dir="/storage/emulated/0/temp/AppData/$(date '\''+%Y%m%d-%H%M'\'')"
            mkdir -p "$new_dir"
            cp /data/data/com.example.app/files/*.json "$new_dir"

            echo "$(date '\''+%F %T'\'') | app data backup OK!" >>/storage/emulated/0/su.d.log
        ) &

        sleep 14400 # 4 hours
    done
'

The -T- option tells the shell to daemon()ise, that is, replace stdin, stdout, stderr with /dev/null and double-fork the command into the background. Perhaps this helps.
I don’t have an off-hand idea why this would otherwise not work. Full disclosure: I’m the mksh developer.

My comment does not work too. I have understood, sleep does not work then screen is off.
You should perhaps keep the system awaked for sleep command to be working.


text:
How to transfer video from a smartphone (with microUSB port) to an external portable mini-DISPLAY (AV, HDMI, VGA inputs)?
I'm looking for the best way to transfer the video from a smartphone to an external monitor (used in cars, garages) to get a bigger picture.

I find this useful for dash cameras, and for entertainment with bigger display.

May I accomplish this with a OTG cable?
Your help is welcome.

If you are looking to mirror the display only and don't need touch inputs, I used something like this before to achieve the same via microUSB: Rocketfish MHL HDTV Adapter.  Likely you can find either an HDMI to miniDISPLAY adapter, or maybe a different cable that fits your needs (the one I've linked is the one I purchased and used myself so I can at least vouch for it's functionality; at that time, I believe I used it with a Samsung Note 4 - Android 4.4).
Additionally, I have seen wireless dongles that act as a receiver, but I have not personally tried these before.

I wonder if that MHL cable can work when the smartphone has not such feature in its specs.

@Michael Angelo Just out of curiosity, I did another search.  As your OP did not indicate the device's OS version -- assuming that's a determinant factor for compatibility -- I was surprised I didn't come across an explicit answer to that (example).  There is mention of a power supply adapter for the display end in event of incompatibility though.  Update: before I finished this post, I did managed to find a list of compatible devices on MHL's official site.

source: Stack Exchange

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

sort: votes


text:
REMOVE LOCK SCREEN SAMSUNG Android 8.0
Hello my friends I open the system.img by HXD and remove the locksettings.db but with Android 8.0 the phone hang on the Samsung logo Is it a solution to bypass the lock please

Who told you to remove settings.db ?

I don't think this method works on Oreo and higher because android has new security checks mechanisms that's why the phone hang on booting logo

My friend i trying on more than method and deleting system ui but I have a problem ,, the device standing on the Samsung logo and not turning on
I want the method to bypass or deleting lock screen without wiping data on the Oreo version thank you

At this point, your only option is to flash the device and this will reset the device to the  factory settings

Thank you again I do not want to wipe the data but I want to bypass the pattern only and I'll let you know that the solution is available but I'm looking for it

I'll appreciate it. Please share with us once you found a working solution.

Any modifications to your system will cause a boot loop... What you are seeing "logo"  ...
You need to flash that stock system.img without the modifications and then you need to log in to the account associated with the device..
If you've forgotten the account details, Use a computer to do the recovery process.. And then use the new details to log in.

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


text:
T9 TV box missing android features
The T9 TV box with android 8.1.0 came with a TV box focus. It has issues with a USB mouse and keyboard. The device came rooted.
installed Null Keyboard to kill virtual keyboard
installed Simple Control to provide a nav bar
no long touch for mouse left click
cannot see notifications, even with Simple Control mapping
cannot see status bar, but can do without
installed Tincore, but cannot see configuration icon because no notifications view
If I can get this box to work I'll order several more to replace existent android boxes. Not having issues with many previous android boxes, I purchased all the boxes I need at one time, from the same vendor, so they would all be the same. Because of issues I sent them all back. The vendor asked me to please remove the bad review. I said I would do that if a free box would be sent for experimentation. After changing the review to say it works excellent as a TV box, which it does, I did receive a free box. So I want to make this work and buy the others I need. I use the boxes as Windows thin clients and TV streaming.

Too much is wanted from the design of the box. More research must be done to find a box having correct firmware. The fact android is highly configurable does not mean deficiency in firmware, or purpose the box was designed, can be circumvented.


text:
Phone send MANY packages
I'm desperate here.
Earlier, I accessed my modem to check out the IPs in my network. The network was configured with DHCP (with a considerable time to expire), and I didn't recognize 3 or 4 IPs: most of them were smartphones.
So, I disabled DHCP and configure to allow just the devices that I known using MAC address. Feeling more secure, I saw the wifi clients, and I founded this:

(The language in the print is portuguese.
Pacote = packet (or package, i don't know)
Taxa = rate Economia de energia = energy saving
Tempo expirado = I don't know how to translate this because I don't know what it is.)
I will explain: the indicated points are my android smartphone, and others are another devices that I recognized. On first row, my smartphone it's not used. On second row, I have send some messages. On third row, I have just NAVIGATE on Play Store, without download anything. On fourth row, I received just a few messages and I was not using the smartphone. Meanwhile, my parents were using their phones, and you can see the discrepancy of how many traffic their phones received and sent and how many traffic my phone received and sent.
I don't know if this traffic have been always like this, but I noticed it just now. There is no root in my android, I download apps only in Play Store and I don't see any suspicious content when I'm using my phone. The only odd thing that I noticed in my phone is that often I have to click more than one time to the click be registered.
And a VERY important detail: all of this traffic on screenshot have occurred AFTER a factory reset on my android (actually this is the reason why I did the factory reset).
UPDATE
I used Packet Capture and I noticed that some captures are listed, but without data in log. This make sense with the fact that my android is sending a lot of packets (like the print in this post) even when I use simple functions of the phone, like receive (receive, not sending) messages. Well, what it can be? Remembering that I have reset this phone. I should use another program to scan it? I didn't root my android and I don't want to do this.
UPDATE 2
The question is still unsolved, the smartphone keeps receiving and sending a lot of packets. Any recommendations?

Tempo expirado should mean Time to Live (TTL)

Why ask the same question in 2 StackExchange sites? https://security.stackexchange.com/questions/203715/phone-sending-many-packets

@ReddyLutonadio I didn't know what is the best site to post, so I posted in both


text:
How to set up LAN Printer with IP address
On a Moto G (5) Plus running Android 8.1.0, API 27, I have Default Print Service under Settings > Connected devices > Printing.
When I click on Default Print Service it starts searching for printers, which doesn't return anything, even though my printer and phone are on 192.168.3.x (my home LAN).  I can click the 3 dot menu and  click Add printer, then under Add manual printer, I type the IP address of the printer, but the result is immediate:

Printer not supported

The printer is connected to the LAN through a JetDirect 300X (yes, very old technology).  But the printer works fine when configured to receive output from Windows machines.  On Windows, I put in the IP address, Port Number 9100, protocol Raw.  The driver is HP LaserJet5, which comes with Windows.
Beyond the default print service, I also tried and HP Print Service that I found on GooglePlay, but I could not find a way to manually add a printer using that.
Is there a way to get my phone to print to this LAN connected printer?

I'm having a similar issue with a Moto X4, also running Android 8.1.0 (LineageOS). My printer is a Brother laser model that definitely supports both IPP on the default port 631 and JetDirect on port 9100. The two most bog-standard network printing technologies… and yet Android doesn't recognize it at all.
Has anyone ever gotten Android's “Default Print Service” to work? ♂

I have been through a similar struggle, but a Brother HL-2250DN networked printer and Android Pie. Printer is not showing up when searching in Default Print Service.
I can see the Brother printer on the network using Fing, and can ping it by its IP address so it isn't a network problem.
The Brother supports Internet Protocol Printing (IPP) which is apparently supported by Android, but I'm not convinced Brother's implementation is good. It also supports other protocols supported by Android, but enabling them all doesn't make the printer show up.
I discovered if I shared the printer from my Mac, it did then show up in Default Print Service, and I can print from my Android. Unfortunately, sharing from Windows doesn't seem to work in this way.
It would be nice not to need another client powered on in order to print, but that probably requires a printer natively supporting Google Cloud Print or properly implementing an Android supported promoting protocol.

I too have a Brother HL-series laser printer, as I commented on the question. It also supports IPP on port 631 and JetDirect on port 9100, and yet Android can't connect to it at all. As far as I can tell, Brother's implementation of both of these is absolutely bog-standard. Is there any documentation on what/how Android's Default Printing Services actually supports?

There's an app that I got to work called Let's Print Droid.

This app did find my Brother HL-2250DN and I was able to print a test page by selecting Raw. However, printers added to the app don't appear in the Android print system on Android 10 so can't be used to print from apps. Frustrating as it seemed close! The app seems very old, without any development since 2017.  I guess since then Android has changed the way printer plugins work.

Hp Epson all offer apps for print from smartphone. Download those app and connect to printer.
Even you can use usb cable to connect to printer. Otherwise use Wi-Fi or Bluetooth connection.
Use google drive to print a document.
Or on chrome browser go to setting  /advance / printing / manage cloud print / add printer.


text:
How to loop a song in youtube?
I used to listen to some favourite song in youtube (Android). I would like to loop so it plays all time till I stop. Previously I have tried using Chrome web browser. It work to loop, but no sound. So, I forget it.
the my question is, is any way how to do it? In the case of Chrome, is any specific version I have to use to make it work?

Chrome latest on Play Store 72.0.3626. 105
Open Chrome in Desktop mode (Settings→Desktop site) , paste YouTube  link and click on the video to reveal menu as shown. Select "Loop"

I check my chrome version, it is exactly the same with yours. I did exactly as you mentioned, but no sound. It loop, but no sound.

I can't say why. It works fine for me and this is something that has been working for nearly two years for me. Check your earphone, volume, uninstall and install Chrome

Thats quite confusing. The missing sound is only of the youtube being playing in the chrome browser. The other sounds are mormal.

IDK. I tried with three videos. Try a different video. This is the link in answer https://youtu.be/c3O0PhhD6B4

Now you know the reason. KitKat doesn't support this Chrome version

What is that mean "kitkat doesn't support this chrome version?"

Let us continue this discussion in chat.


text:
No sound playing in Chrome web browser
I would like to loop a song of YouTube, so I need to play it in Chrome browser rather than in the YouTube mobile application. The loop itself is working fine, but unfortunately there is no sound playing. I am using Chrome 72.0.3626.105 which is running in Android 4.4.4 KitKat.
What is probably the problem? Sound other than in Chrome is working fine. So, it is clear that the problem is with the browser, not other part.

Chrome which you are using is targeting minsdk 24 which corresponds to Nougat and you are on KitKat so you shouldn't be surprised if it doesn't work properly (you can check the manifest using many apps available to determine sdk level- just search for manifest on Play Store )
You can search Chrome version that is compatible and download from third party sources of your choice. Related Install Google Chrome for old tablet / phone

As mentioned in the other answer it works fine for me on Pie


text:
ADB backup and restore app data between device and emulator?
** = Edited on 03/31/2018
* = Edited on 03/25/2018
I have an application for which I'd like to transfer the app data from my physical device to an emulator on my PC.  *The data consists of a single .sol file which is saved at:
\data\data\package.name\files\file.sol

I'm not proficient with ADB / Linux / Bash, so I'd appreciate any efforts spared to elaborate with more verbose guidance (I'm not afraid to read through essays, I'm afraid of the one-line answers).  The device has to be kept stock (rootless).  Here are the specs:
Device (Source):
Samsung SM-N950U Stock (T-MO)
Android 8.0
*Bootloader Version: N950USQS5CRL1
Emulator (Destination):
Runtime Environment: 6.0.6 Good
Device Model: Samsung Galaxy Note 8 Android 5.1.1 (US)
After quite a bit of digging around, I finally got ADB backup to work do something (after an OTA update, it kept producing a 1KB file with no error echoed back).  I'm not 100% sure the backup is now fully functional, but it now produces a 17KB .ab file (I am using the -noapk argument, and the contents of the backup should decompress into a .sol file so it wouldn't be a huge file or anything).    Here's the syntax I used:
adb -d backup com.example.example "-noapk -obb -shared" -f examplebackup.ab

When using ADB restore to the emulator, everything goes smoothly and no error message is produced (unlock dialogue prompt comes up so I know it's going to the correct device).  However, opening the application it acts like I've just opened it for the first time, so no save data was transferred over.  For reference, this is the syntax I used:
adb -s 127.0.0.1:21513 restore examplebackup.ab

I know there are several similar threads, but none addressed this type of cross platform transfer that I saw, and none of the potential workarounds or solutions seemed to work (although one of them did help me figure out the 1KB backup issue).  Hoping to get some help with this, and my apologies if this was addressed somewhere but I just couldn't understand it.
Thanks in advance for any assistance!

**UPDATE
While testing ADB backup on other applications (thank you @Robert for the helpful suggestion), I managed to figure out that ADB backup was working the entire time -- it was ADB restore that wasn't working.  So the 17KB .sol output was the correct one (it's obfuscated when directly opened so I couldn't tell the difference directly).  So, lesson learned: if the manifest includes the backup flag as "enabled", then ADB backup should work regardless of root; and if the output .ab/.adb file is >1KB with -noapk, it's a good sign that it was successful.
Now, I just need to switch gears and figure out what's going on with ADB restore.  Any ideas on this?  I'm no longer in a precarious situation since I at least know the backup part is working and I can manually transfer the .sol file as needed, but it'd still be great if I can use ADB (via .bat) for the process.

*UPDATE
In the past weeks, I've pieced together more information from here and there, and I've decided to come back and update this post for any others who might be struggling with the same issue.  At this time, I believe it will not be possible to accomplish my objective of retrieving my data, but it's not necessarily true for others.  Below, I'll explain my attempts and the setbacks I encountered from a layman's perspective, but if anyone more knowledgeable on the subject feels inclined to clarify anything I'm unaware of or misunderstood, it'd be greatly appreciated.

I have spoken with technicians at Google, Samsung, the mobile carrier, the community members from all of the above, and obviously here on Android Stack Exchange (with zero answers).  All of the "official" sources where I was able to get a response from have told me it isn't possible, and unexpectedly proceeded to push the blame onto the developer and/or each other.  These "tech support" reps were all completely clueless, unbelievable.
From my understanding, in order for the ADB backup method to fully function as I want it to, I would either need root access, or the application needs to be debuggable.  I have checked the app manifest and have seen that it isn't (but backup is enabled, by the way).  **For the record, this flag being enabled means ADB backup will work regardless of root; I incorrectly interpreted this as whether it allows the "official" backup methods -- such as the device OEM's backup through the device menu -- to backup the app data.

Another method through ADB I had read was to invoke run-as, essentially "borrowing" the application's identity and therefore inheriting its own permissions, and then pulling the data thereafter.  Unfortunately, it seems this command has either been deprecated or broken since Marshmallow 6.0+ (I'm not sure if that's universal to the OS or just Samsung, either way it doesn't help my situation).
I also wasn't sure whether a rootless BusyBox installation would make it possible to at least grant me access permissions to read the .sol file, if not copy the contents.  I wasn't able to completely comprehend the XDA thread contents, but from what I could discern from the comments it still wouldn't have the required permissions to access \data\data.. (there seems to be some mention of a potential workaround by installing BusyBox into the same directory(?) but there wasn't any further explicit guidance or example that I could find).

I believe the device-to-device backup methods (such as Google Backup or Samsung Smart Switch) might possibly work, since they should have the proper permissions(?); however, as I can only restore onto a device with same or higher OS version among other factors, I have no way of verifying whether or not it works other than by deleting my local data and trying to restore it (obviously, I'd be shooting myself in the foot if it didn't actually work).

As the Google Backup method states it needs to be restored onto a device of equivalent OS version or higher, one option I had thought of was restoring onto an emulator running Oreo 8.0, and from there enabling root to extract the data I needed.  However, the only one I could find was the default provided through AVD from the Android SDK; an 8.0 emulator was available with Play services enabled and preloaded, but for whatever reason it shows the application is incompatible, so that was a dead-end.
Smart Switch does offer a backup "to external storage" option, but even though I have encryption disabled on both my device as well as the Smart Switch backup settings the backup still results in an .enc container, which I've not been able to find a way to decompress or extract from (see below for further on this).

Unfortunately, I was stupid enough to install the latest OTA update before checking, but there doesn't seem to be a method for root at this time on the newer bootloader/firmware versions.  So for the time being, I'm just stuck with no way to retrieve my own data.

Things I'd still like to find out:

I am inferring that invoking adb backup with the correct syntax and -noapk argument outputs a non-zero / -single kb file because it is properly backing up all the application-related data except what's stored in \data\data.. ?  Or is the inclusion of the enabled backup flag in manifest supposed to make ADB backup work regardless of root?  If the latter is true, what am I doing wrong?  **Latter was true, it was just ADB restore that wasn't working correctly.
I'm wondering if I can somehow create a virtual "external storage" in an emulator and use Smart Switch to restore the .enc file; the emulator I use does offer shared storage between VM and desktop, but they are not recognized in Smart Switch as mounted "external storage", therefore leaving no way to point to the file).  Otherwise, it'd be great to be able to directly access the .enc container somehow, I just don't understand the point of letting the user choose unencrypted if it's going to be encrypted anyway.  **Still want an answer to this, as unlikely as it is for me to get one.
Although I have a (likely biased) feeling it shouldn't have to come to this, I do have the means to contact the app's developer.  If I do go that route, what would be the more appropriate "means" to ask for in order to achieve the desired result?  E.g., "can you please make your app debuggable?" vs "can you change the directory for this particular file to save in a non-system directory?", etc.  **Embarrassingly enough, I did end up reaching out to the dev, only to figure out it works a few days later.
I'm curious if there's anything I can do via SetEdit (after elevating permissions as instructed) that might help me with this problem?
**Figure out what's going wrong with ADB restore.

Usually if an app does not disallow backup you should get an non-zero sized backup via adb backup. However I already encountered stock devices with defect backup command. Have you managed to create a backup of any app on your device via adb? Test backup via adb shell bu help.

@Robert I will test with a different app when I get home as you've suggested.  I was able to get ADB to output a 17KB .ab file before, which I decompressed and found a .sol (not the one I needed, which was confusing).

@Robert is the syntax from shell different from what's used directly from ADB?  I've tried using the same arguments but with the "bu" command, but it simply echoes back the help message.  Entering "bu" alone -- to see what it does -- echoes back "Killed", no further details.

bu does work a little different form regular command-line programs. It's messages are printed only to logcat and the backup file is always passed to stdout. I managed to get some output via bu backup <packagename> or via adb: adb exec-out bu backup <packagename> > test1.ab

Okay, after a bunch of testing, I actually figured out the issue doesn't seem to be the backup, it's the restore portion!  It was foolish of me to automatically jump to the conclusion that the backup wasn't working correctly, the possibility simply hadn't occurred to me (that's why a correct .sol file did appear when I decompressed the 17KB .ab file, I thought it was incorrect because it wouldn't restore properly to the same app).  I tested this on a game app and transferred  the save file out to a rooted emulator instance, and instead of using restore (also didn't work) I used a file...

...manager with a root viewer X-plore and manually copied over the save file to the root directory and it worked that way.  Doing it through ADB restore resulted in nothing happening, no errors echoed back or any indication it failed.  @Robert


text:
Properly play H.264 media on VLC Player
I installed VLC Player on my Galaxy S7 to try playback from an external hard disk shared via BeagleBone Black. The storage contains both x264 and h264 media. VLC plays x264 smoothly but very slowly on H.264, it keeps buffering the video and the images gets distorted. I thought the bottleneck is in the BBB so I tried running the same file from PC works perfectly. Is H.264 playback well supported on android? VLC Player is the only app with proper local network share discovery, other apps like MX Player, KMPlayer, etc. either does not support local network or setting it up is a mess.

Try changing the settings. Start with hardware decoding, if no changes, try changing "Deblocking filter settings" and/or "Enable frame skip".

None of that works. But what I found is that I played a 2.5H movie (5GB in size and H.264 encoded) that I have and it played well and it barely gives any buffering or distorted image. At first I was testing a series all episodes in H.264 so I test other episodes and it gives me same behavior. Seems like I will have to test the rest of the media on the storage because I am starting to suspect that the media itself is corrupted. Although it plays well on my PC from the storage.

Also I noticed - encoding wise - the difference between the movie and any episode is that the movie's audio is encoded in AC3 while the episodes in E-AC, so I converted the episode's audio to AC3 but it still not playing smoothly.

Tried different content, still the problem with H.264 content not a specific file.

https://wiki.videolan.org/AndroidFAQ/ Check the question & answer on HD videos. Or try the forum: https://forum.videolan.org/viewforum.php?f=35&sid=c31492f68a22bbaeb1c663a74b1dfe00

It appears to be a hardware issue, when I play anything a bit far away from the board it becomes slow and distorted. I believe a better hardware would do the trick


text:
Notification if battery drains faster than N% per hour?
Is there any app or other tool to trigger a notification if the phone's battery drains faster than a certain amount per hour?
Note that I am not looking for notifications about apps using too much CPU. I don't want a CPU measurement, I really want a battery measurement: I'm specifically only looking for a way to get a notification when the drain is too fast over some period of time (e.g. say 10% over 1 hour), especially when the phone is idle, regardless of what the phone is doing or not doing.

You can use [tag:automation] to easily do this

@beeshyams: I actually started doing this via Tasker, but it seems to me that doing it robustly is not so easy.

Ok. I am not familiar with Tasker. Please [edit] to add what you tried in Tasker and tasker experts can help you. Also add the relevant tags to your question

@beeshyams: I haven't "tried" yet, I merely started writing the code... not sure what tags you'd like me to add either.

If you are gong to ask for Tasker help, then Tasker and automation. If not, it's fine. BTW, you can try MacroDroid app. You have a template section within the app. You will find some useful templates that are close to what you want to do and may need just a little tweaking (search in top rated templates)

There is no straightforward way to measure power usage for single app, you need samples and then some simple AI for power usage calculation based on hw usage (cpu, ram, wifi, gyro, led, gpu, ...) and then you can estimate power requirements for app.

@SampoSarrala: Where did I ask for measuring power usage for a single app?

@mehrdad well, theres hudreds apps that does exactly what you're asking and therefore I thought maybe you want something more. You also noted that you might be building custom solution and thought that this might be helpful reminder, maybe it was not that useful for you. You can flag my comment as not needed if you think it wont be useful for anyone.


text:
How to find why call is not connecting
My mobile phone is not able to make calls. All calls are ending after 4-5 seconds. All the settings seem to be fine. Is there any log file where sim provider logs some reason? Or any other way to find the reason for the issue?

Which Android phone and Android version are you using? Which network provider is it? Did you try using an another SIM and using your SIM in an another phone?

My first thought would be along Firelord's lines as well, assuming you have rebooted, and performed rudimentary troubleshooting. The next step is to find a friend or go to the carrier store and try a SIM swap, put your SIM in a known working phone and a known working SIM in yours. If the problem stays with the SIM, get a new one, If the problems continue, it is time to get the carrier involved to check your account configuration. If the problem stays with the phone perform a Network Settings Reset (if your device is new enough), otherwise perform a factory reset.


text:
Disabling Download Manager notifications
I have a Pixel 3 XL with Android P, and for the last 3 days, my phone started vibrating almost every hour, at exactly hh:10m, but without showing any notifications.
After much time, I found some sites indicating how to find the origin of the notification: adding a Settings widget to my Home screen, with a Notification log (otherwise I couldn't find the entire log anywhere else). This revealed the cause is Download Manager, informing me at 3:10 AM that I downloaded a file 3 days ago.
Now, I don't remember if I tried uninstalling it from the phone, but the fact is that there is no such app in the Settings -> Apps & notifications menu, so I cannot change its notification settings.
I tried going to the Files app (as some sites mentioned), which states "Notifications: on", but when I select it, the Categories part is empty, so there is nothing to disable.
So, which app is actually emitting the Download Manager notifications, and how can I disable them?

When searching for Download Manager under Settings -> Apps & Notifications you missed listing out the system apps. List them by tapping on the three dots line in the upper right corner and choosing show system apps. Download Manager is a system app and you would find it apps list.
To disable the notifications from that app, tap on that app in the list, then Notifications, and choose an option there that fits your needs.

Are silent notifications possible for the Download Manager? I want to know the status without broadcasting it to the room.

@rickhg12hs if you are using Android 8 or above you can change the priority of the notifications. Changing to lowest would still show up in the notification tray but would not disturb you. See https://i.stack.imgur.com/2glJt.jpg

That's how I did it on Android 8, but I can't seem to find it on Android 9.  I've recently upgraded. Where can I find this control?

I haven't upgraded to Pie yet, so try this perhaps: https://www.androidcentral.com/how-control-notifications-android-pie. If that doesn't work too,  than I suggest you ask a new question.

Just wanted to add an answer for this that I found on Reddit, in case it disappears.
This issue seemed to be fixed for a few people by doing the following:
Go to settings -> Apps and Notifications -> see all apps -> three dot menu -> show system. Scroll to Download Manager. Clear cache, clear storage, force stop, disable, enable.
Of course, your download history will be cleared if you do this, but it's up to you to decide if that's worth it :)


text:
does a newer version of andriod has better RAM management?
i have a rather old device with only 1 GB of RAM and currently runs a very barebone android 4.4.4 which lacks a lot of features. I am thinking of installing a newer version of android in it... is it a good idea? or i would better stick to kitkat? im afraid installing a newer version of android would just slow my device down even more (it is already quite slow in its current state). im sorry for my bad english..
device: Polytron Zap 5 4G 450
processor: qualcomm snapdragon 410, quad core 1.2GHz
graphics: adreno 306
RAM : 1 GB

If a newer version is available for your device, the answer is maybe. Some newer versions have better RAM management, but this all depends on how the OEM implemented it. I would install the newest version you can and perform a factory reset, then only install essential applications. When significantly changing Android versions a factory reset is recommended, meaning 4.4 to 5.0 should perform a factory reset, 4.4.3 to 4.4.4 it is not necessary. This is not a common device that I am aware of, so I can't really give you an answer besides this comment.

All that said, 1GB or RAM is 1GB of RAM, that is barely usable by today's standards and no change to the OS is going to significantly impact it's usage. 2GB is considered the bare minimum, with 3+GB recommended. I haven't recommended a device, even a "budget" one, with less 4GB for well over a year.

According to some tests I read memory consumption and app speed can improve upgrading from Android 4.4 to a newer Android version that uses ART (used by Android 5 and 6). Therefore updating may improve your situation, however I don't think that you will realize a big difference.

It may be beneficial to upgrade the device, however you might find custom ROMs that have the features you want..  I've found that 1GB Ram is good enough for a Phone.. If you are using it as a gaming machine, then obviously not... It's all about fine tuning your performance, Sometimes a few build.prop tweaks can drastically increase performance ( sometimes triple ) ... Using well thought out memory designation can also significantly increase performance... You may be able to lock your CPU profile on Performance mode and harness the full power.. Or do some over clocking ..


text:
How to locate app which installed a potentially malicious certificate?
On my S8 (Oreo) today, I got the notification: There is a certificate installed that may or not monitor your internet traffic.
Did spyware install itself? Or is this normal?
I updated from 7.0 to 8.0 a week ago but this notification only showed up today, so I assume it's not a good thing and not part of the update.
Which app is monitoring me?

Depending on the device model, there should be credential storage that can be accessed on the Settings - Security (or similar), then check any suspicious user's installed certificates. Note that some apps need to install a custom certificate to work (e.g. decrypting SSL content by MitM technique), but usually they will request for user's permission explicitly to install the certificate.

@AndrewT. How do I know which one is monitoring me?  Got tons of installed certificates.


text:
why does my pixel 3 still have the old gmail app?
Recently I got a pixel 3. A very nice phone and it is nice to know you are always among the firsts to receive a new version of android and the google apps. So I am confused why the gmail app still looks like the old gmail, where gmail on my one plus has the new interface.

What is the version of  the  gmail app?

8.12.30.230564275. Release

Is this a brand new phone? Have you opened/logged in on the Play Store to allow updates on existing apps? Or, to make it to the point: did you mean there's no update for Gmail on Play Store?

@AndrewT. This literally happened to me 2 days ago. Brand new 3, old gmail. Play Store did not find an update for it. I manually re-installed it from apkmirror. Must have something to do with the way Google updates apps.

Just like @SiXandSeven8ths says, the phone is brand new, andoid is new, but gmail is old.

Oh joy, this morning Google decided to make the update available for my phone!


text:
Wifi but no internet - Samsung Galaxy S3
I have a Samsung Galaxy S3 with Octos and Android 7.1.2.  I have been able to connect to the internet in the past, but currently when it connects to the wifi it does not connect to the internet.
I have tried:

rebooting the router
turning wifi on/off on the phone
turning wifi on/off on the router (this works for the Samsung S3 using Android 4)
resetting network settings on the phone
using a manual IP address on the phone

I'm considering installing a new Octos firmware.
I have the same problem with a Samsung Galaxy S3 running Android 4.

I have the same problem with my new Moto G6 phone running the latest Android.  I can only get internet if I switch from the 2.4 ghz to 5 ghz network (and back again) on an approximately daily basis.


text:
Can we diagnose and stop spying and tracking activities of android apps?
Recently I read a link
https://telecom.economictimes.indiatimes.com/news/android-apps-caught-tracking-users-even-after-they-say-stop/68010363
Almost all android apps require permissions.
Can we diagnose and stop spying and tracking activities of android apps?

Yeah, not use the app. But permissions don't automatically mean spying and tracking. Be careful with the permissions you allow, the apps you install, and if in doubt, don't even download it or at least do some googling about the app.

Exodus Privacy allows you to scan all non-paid apps availabe at Playstore. Appbrain lists libraries for both, paid and free apps. My app listings point out invasive trackers for apps having them (based on the two afore mentioned sites). That way you can check if an app comes with trackers, and avoid it. Using my lists it shouldn't be too hard to find a replacement that doesn't track you – as that fact is pointed out as well.
And don't forget: Avoid Playstore altogether, and use F-Droid instead. F-Droid only ships free and open source apps without any proprietary components – which means, trackers are left out.


text:
Floating Ads Popping Up On Screen
As of a couple of days ago, I've been noticing a particular floating ad on my screen. It keeps popping up occasionally.
I've googled it and have removed the apps I've installed in the last couple of days as per the instructions, but it's still present.
Please find a screenshot below.

Any idea how to fix this?
Thanks in advance!

Try to hunt the cause using AppWatch

@beeshyams I'm using that right now but it's not working.

Look at what each app can do, permissions wise. Look for the ones that have permission to display things above other apps. This will narrow your search down. Then you just have to do a process of elimination to determine which app is the culprit. That is how I would go about it, anyway. You can block all the apps from doing that, then allow one app at a time to have that permission back, run it for a while, then allow the next.


text:
Is there a way to pass keyboard or joystick input to a phone through a computer?
I use my phone to emulate old games, but using the touch screen for input hurts my fingers and gives me cramps.
Is there a way for me to connect my phone to a computer then pass input from a keyboard or a joystick attached to the computer as if I had connected them directly to the phone?

Why can't you just plug them in... You could also just use a Bluetooth keyboard and mouse, or Bluetooth controller.

Yes.
This app is open source (but old and limited in features), provides a web interface to use in your computer browser over the same (W)LAN: https://play.google.com/store/apps/details?id=com.marcosdiez.keyboard.latin
There's other apps to remote control your phone that are more capable (but not all are open source);
https://play.google.com/store/apps/details?id=com.sand.airdroid


text:
Application update localy via wifi
Is there a way through which I can connect two devices (via Wi-Fi or Bluetooth ) and check applications' updates from each other?
I used to use SHAREit for this purpose but after update, it does not notify application updates and its older versions do not work on Android 8!

F-Droid is an open source app repository, meant for downloading and updating other open source apps.
F-Droid's app also has the ability to share and retrieve apps via local networks, not just across the internet. Instructions linked below:
https://f-droid.org/en/tutorials/swap/
Quoting instructions from the page;

Open F-Droid. Tap 'Nearby' from the menu at the bottom of your screen.
Tap 'Find people near me' to search for compatible devices.
Once people nearby are found, both you and the contact must select each other.
Once connected, choose the apps you wish to share with your contact.
Tap the '—>' button.
One person will be prompted to confirm the request to connect.
Tap the 'Install' button next to the apps you want to install.
Tap 'Install' once more. Then, follow the Android prompts to complete the installation process.

That's the procedure for sharing APK:s locally and installing them. (There are two more steps related to management of installed apps, which isn't related to the question.)
The person who has the most recent version can use this to share the updated apk. Unfortunately it does not automatically compare version numbers. You can however see and compare this manually to select what apps to share.


text:
Strange characters in logcat
I'm by no means an android developer, so excuse me if that's a stupid question.
I'm trying to debug an app from my (Austrian) bank, which doesn't let me access my NFC-SIM - some problems with the OpenMobile API.
While viewing a logcat of the app, I discovered some strange characters (one Arabic ٻ and one supposedly Canadian ᒲ) and wondered if this is just some mistakes of the app/log or if this universally stands for something in android logs. I didn't find anything regarding these characters, so I thought I'm just gonna ask here. What are these strange characters in the logcat?
Here are two lines:
02-19 16:29:30.597 14595 14595 E ٻ      :       at o.ﺕ$ˊ.onSecureElementNotAvailable(SourceFile:123)

02-19 16:29:30.597 14595 14595 W ᒲ     :      at o.ت$ˊ.onSecureElementNotAvailable(SourceFile:123)

If this does matter somehow, I have a OnePlus 6T.

Certainly not universal. Based on Android Developers Official Site, the format should be date time PID-TID/package priority/tag: message. The one with the strange characters are after the priority (E: Error, W: Warning) and should be followed by a forward slash character ("/"). Might be a Unicode jumbled-up, though I don't know why...

They can be ignored imo


text:
Samsung Galaxy S5 deletes email from server
Just recently I have noticed that emails downloaded on my Galaxy S5 are being deleted from my server so I cannot view them on my laptop.  How do I change this?

Don't use POP email protocol with configuration to delete when fetched. IMAP is better if supported, and usually isn't default configured to delete after fetching.

The most probable answer is that you have your tablet configured to use POP3 for email instead of using IMAP.  You can check this in the account section of your email app.
Using POP3 to retrieve your emails deletes them from the server whenever they are downloaded to your tablet.  Using IMAP synchronizes your email app with the server, so that the emails are in both places.
If this is correct, the simplest solution is to delete your your email account from the app and then set it up again correctly, using IMAP instead of POP3.  Your email app may be able to simply edit the settings of the account to use IMAP instead: however, depending on what app you are using, this may be the equivalent of deleting an account and adding a different one, I.E., you might still lose your already-downloaded emails.
Please note that you should back up all your emails on the tablet first, as this solution may delete them from the tablet.  (And, since you are apparently using POP3, they will already be missing from the server.)


text:
Gmail suddenly not showing recipient names in "Sent" folder
The Sent folders in Gmail on both my Galaxy phone and my Nexus tablet are suddenly showing only "me" as the sender.
I want to quickly see who I sent them to without having to open every one to look at the details.
Is it a bug? Otherwise, is it possible to fix/workaround this?

Just a curiosity check, is it still an issue? I just checked my Gmail app (v.2022.01.09) on Pixel 3a and it's showing "To:" in the Sent folder.

It is a known issue. You can use the app feedback to send a report to Google. To my knowledge, there is no fix. You will just have to live with it until they fix it, which considering the post date on some of the places that others have complained, it might not get fixed anytime soon.
Other places this issue has been posted at:
Sent folder showing sender instead of recipient - 9/12/18
Sent Items Show Sender Not Recipient In Sent Folder - 3/17/17
Showing recipient name in the sent label/folder in Gmail on Android - 2/4/14

Do you know what the version of Gmail you were using before it stopped?

All I can do it point out what other people are experiencing, which is the same problem as you, dating back to at least 2014, maybe even further. Yes, it is a dumb design that should be fixed, but Google is Google, and they will not get to it fast.

To my knowledge there is no fix. If you find one, then please post it here, as I am sure everyone else who has asked will want to know the answer. Otherwise, you will just have to live with it and send feedback, or revert back to the old build of Gmail that had that feature, and send feedback.

Hey, CodeMonkey, I'm intrigued to see/hear your reference to the "old build".
Any idea what version/year that was?

I have no idea. That is why I was asking you, who had the version that apparently had the feature.

Very annoying problem. I noticed it recently. Until Google fix it, one solution is to use another mailbox company who isn't plagued by this problem (Yahoo, for instance) and switch your gmail account there. Not perfect but if enough people do it, maybe Google will start working on it.

Please don't suggest Yahoo, a company known to have exposed BILLIONS of records through security lapses, as a substitute.

I thought I read somewhere...recently, like in Jan/Feb 2020-ish, that there IS a cure and that it had something to do with going into Gmail settings and making all associated accounts "aliases"....(or NOT making them aliases!?!?)
Call me crazy, but has anyone else seen that reference?


text:
Dalvik/2.1.0 in Android's version more than 5
I installed Packet Capture on my android and did some scans because this topic. So, I saw Dalvik/2.1.0 in a log of WhatsApp on port 80. Since Dalvik/2.1.0 should be prior that Android 5, is it normal I saw this on my LG X Power that has Android 6.0.1?

I wouldn't worry about the Dalvik version number
Searching on Dalvik/2.1.0 leads to http://www.webapps-online.com/online-tools/user-agent-strings/dv/plugin294709/dalvik which lists the user agent string used by older Android devices.
Note that the numbering went up from Dalvik/1.6.0 on Android 4.4.4 to Dalvik/2.1.0 on Android 5.0 and up. Another posting at https://github.com/allinurl/goaccess/issues/667 indicates that at least through Android 7.1.1 still used the 2.1.0 version.
From this StackOverflow post on Browser sending “Dalvik” as user agent it looks like the VM is sending the user agent string.
Most likely, the version number changed at Android 5.0 Lollipop when ART became the default runtime.


text:
Watching feeds from multiple endoscope OTG cameras simultaneously
I bought a 10m cable long Android and PC Endoscope camera with LED light, and I would like to buy more endoscope cameras to watch twin or quad live video on Android tablet.
In theory this encoscope camera is supported in PC but fails to work on Windows XP (32-bit) (file nusb3hub.sys is missing)
There is a large number of encoscope camera apps available on Google Play, but I need to install 2 or 4 encoscope usb cameras via OTG hub to work in parallel
I am aware of USB 2.0 limitations, since under Windows XP (32-bit)  I can, in theory, connect up to 8 cameras to my PC, 2 cameras for every usb interface card and watch 8 video streams in HTML.
So what can I do to watch feeds from supported 2 or 4 encoscope usb cameras?
Note: http://www.kkmoom.com/pc.rar
is a link to download PC driver for PC endoscope usb camera
(file nusb3hub.sys is missing in case of my old PC mainboard).

I imagine that nusb3hub stands for USB 3.0 Driver & port... Try to find a USB 3.0 driver for XP ? ... .. You might be able to use wireless cameras, if that's any help.... This developer has built support for 2 cameras simultaneously https://play.google.com/store/apps/details?id=infinitegra.app.usbcamera

Thank you. In the meantime I have installed my camera since missing  nusb3hub standing for USB 3.0 Driver & port has been installed earlier with my USB 3.0 extension card, placed into another directory.
I hope to buy 4 endoscope cameras this week for tests.
Good point since endoscope camera is not described as USB 3.0 device in manual (none available), so I need to use USB 3.0 slot in  my PC.
I need to check which smartphones support USB 3.0 OTG port to run more tests to get HD resolution as claimed by a manufacturer.
The issue is 10m  long cable is not supported  by USB standard


text:
How to fix a device not detected through USB in Android, TWRP and Fastboot mode?
My Android tablet Nexus 9 is not recognized by my laptop. It can be charged, but not be listed by lsusb command even in fastboot mode and TWRP. I suppose I accidentally disabled the USB connection through some command as root user.  Is there anyway to check the status of the USB device of Android?

Have you tried with other USB cables and connecting to other USB ports of PC?

Yes, and the cable I'm using is no problem with my other android devices.

You need to remember what command caused the issue, it would be like pulling the needle out of the hay stack for us   .  ... .. It could be caused by missing driver's on your laptop, however other devices work so probably not... ... it could be caused by deleting the files responsible for USB connections.... It could be caused by deleting ADB from system/bin/adb .... It could be caused by many things.... Maybe you've rejected the computer connection via ADB on your device ( You'd need to revolk all connections and start ADB again, developer options ) ....  Please try to localize the problem.

It was physically broken. I replaced usb board, then the problem was fixed.


text:
Problems in Local Terminal in Android's Developer Menu
I am currently having a problem in my Android 9's local terminal from the developer menu, where keys such as $ are turned into their counterpart in the QWERTY keyboard without pressing shift (for example a $ is turned into 4). The actual numbers are not affected, just the other characters (I was trying to print an environment variable, and the $ sign turned into 4). Anyone have experienced this problem before?

You can use any terminal app. Termux is a good one.

I know Termux app, but I want to try the local one. It used to run fine on previous Android versions, but this one somehow not detecting the special characters.


text:
Is it possible that your password remains as it was earlier after going to the service center for unlocking
I have doubt that my phone has been unlocked by someone from its service center but when I saw my phone and I found the same lock which was earlier so I want to ask that is it possible that people at service center can recover the password after unlocking it?

It is a poor practice to hand over a device even for a minor repair without securing or erasing personal data.

No it's not like that. It depends like if you are having an hardware problem ,they might wipe out your data and if are having an internal problem then they will wipe your data and then they will go through their procedures.

What kind of service is performed? Many types of service can be done without unlocking the device, so they simply don't need to unlock. Most hardware repairs wouldn't require any unlocking, usually unlocking is only necessary for final testing (if there's any), which they might ask customer to unlock.
If unlocking is necessary during a particular repair and it requires multiple days to fix, usually the technician will ask customer to create a guest account or to remove the password before you hand the device over to them.


text:
Commands run on terminal but throw errors in shell script
I created a .sh script which sets app permissions on Android devices.
If I push the script on /sdcard and run it through adb shell with command sh ./test.sh, the following error occurs on each permission:
Bad argument: java.lang.IllegalArgumentException: Unknown permission: android.permission.WRITE_EXTERNAL_STORAGE

Here is my Script:
#!/bin/bash
pm grant com.android.camera2 android.permission.RECORD_AUDIO
pm grant com.android.camera2 android.permission.CAMERA
pm grant com.android.camera2 android.permission.ACCESS_FINE_LOCATION
pm grant com.android.camera2 android.permission.WRITE_EXTERNAL_STORAGE
pm grant com.android.camera2 android.permission.READ_EXTERNAL_STORAGE

pm grant com.android.chrome android.permission.CAMERA
pm grant com.android.chrome android.permission.ACCESS_FINE_LOCATION
pm grant com.android.chrome android.permission.WRITE_EXTERNAL_STORAGE
pm grant com.android.chrome android.permission.READ_EXTERNAL_STORAGE
pm grant com.android.chrome android.permission.RECORD_AUDIO

So every time the same command for different permissions and different apps. If I'm using these commands manually on adb shell it works.
I don't have root permissions and the device OS is Android 8.1.0

Apparently there seems no reason for this, except the possible problem with line endings which often happens. On *NIX operating systems (including Android), lines end with Line Feed (LF; \n or 0x0A) while on DOS/Windows with Carriage Return + Line Feed (CRLF; \r\n or 0x0D0x0A). On Mac, only CR is the end-of-line marker. So some text editors may encode wrong line breaks in shell scripts:
~$ cat -v /sdcard/test.sh
#!/bin/bash^M
^M
pm grant com.termux android.permission.WRITE_EXTERNAL_STORAGE^M

Here ^M is the visual representation of CR, which can be fixed with dos2unix, sed or tr utility:
~$ dos2unix /sdcard/test.sh
~$ cat -v /sdcard/test.sh
#!/bin/bash

pm grant com.termux android.permission.WRITE_EXTERNAL_STORAGE

Now the problem should be resolved.


text:
"Cannot add/update network before store is read!" when trying to save a WiFi network on Android 9
I cannot connect to WiFi on Android 9.
This is the error log
D/WifiService( 1941): recentFailure: Association Rejection code: 0
D/WifiService( 1941): uid=1000 name=android.uid.system:1000
WifiConfigManager( 1941): Cannot add/update network before store is read!

Based on the source code, the error message was caused by a pending store read, which will happen on user unlocking/switch, after the user updates from Android N to O while WiFi is disabled... (I'm still not sure for the solution)

how solve .....

I had this issue after an updating of an Android 9 Pie custom ROM.
When trying to configure my wlan, I had error messages:

Failed to Save Network/ Wlan Netzwerk kann nicht gespeichert werden
Failed to connect to Network / Netzwerkverbindung konnte nicht hergestellt werden

Reset of network / WiFi / Bluetooth functions did not help.
Toggling static and dynamic IP address configuration did not help. WiFi manager did simply not accept and store entered WLAN configuration including password, etc.
Logcat brought up:
E WifiConfigManager: Cannot add/update network before store is read!

Further research brought up, that since Android 8 Oreo configuration of WiFi is, passwords, SSID, etc of known or configured networks are stored in /data/misc/wifi/WifiConfigStore.xml (previously wpa_supplicant.conf).
Owner is system:system with chmod 0600 privileges.
Checking this file with vi brought up garbage as contents in my case.
If the WifiConfigStore.xml file is damaged, the described error ensues, that the WifiConfigManager cannot read and update configuration.
Deletion of the file in this case recovers the situation, and Android spawns a new xml template. After a reboot I could enter wireless configuration data and connect.
Note that the config file may also be located in folder /data/misc_XX/wifi/ on some systems, with XX being some combination of two letters.

This helps understand the issue a little better, but I don't have this WifiConfigStore.xml file in any misc[_xx]/wifi/ directories. Is there anywhere else this file might possibly be?


text:
WhatApp Profile Pictures from Contacts
I have a Samsung Galaxy S8+. I have a few contacts who have not set a profile picture within WhatsApp. Previously, it would automatically substitute their lack of profile picture with whatever picture I had set for them in my Samsung Contacts app.
Yesterday, I have wiped my device and upgraded to the latest Android 9.0 Pie Beta (build ZSAI) and I've noticed in WhatsApp, this no longer happens.
Despite the contact having a picture in my Contacts app, WhatsApp just shows a white person on a grey background.
I've looked through the settings and permissions. I can't see anything obvious, but I expect I'm missing something silly.
Any suggestions?

Samsung Galaxy S8+
SM-G955F
Android 9.0
Build number PPR1.180610.011.G995FXXU4ZSAI
WhatsApp version 2.19.34

Thanks!

WhatsApp really does that? I mean it can substitute the user profile with the one in the contact app? I think you don't see profile pictures of contacts who don't have you in there contact list (if enable in their settings)

These are definitely contacts that have me in their contacts list (mostly my Mum and girlfriend :) )
It definitely used to do it before. It would only do it if the user did not have their own profile picture within WhatsApp... so it used to be WhatsApp profile -> Contacts profile -> Blank image, in that order.
Maybe it's an old feature that doesn't exist any more, but it was definitely working before

WhatsApp has removed that feature for some time now (i.e using the photo from phone contact). When you upgraded Android, you must have also downloaded the latest version of WhatsApp.


text:
How to disable speed camera notifications in maps?
Google maps has recently introduced speed camera notifications, and I had the misfortune of experiencing these for the first time yesterday.
Personally I find the audio "speed camera ahead" very annoying and distracting, and would like to disable it. I don't mind the little beep or the icon on the map, but I'm also quite happy to lose them if it means getting rid of the spoken announcement.
However much I search, I can't find an option to remove this, or any information on the internet about disabling this. Is it possible?

No they seem to have implemented it woth no option to turn it iff. Keep complaining on the feedback. I think it's distracting and dangerous (since it doesnt tell you the limit)


text:
ADB Shell command not applied - "am set-standby-bucket" - Android 9
Currently trying to observe the behaviour of my app in different adaptive battery buckets on Android Pie. I was testing it with the command :
adb shell am set-standby-bucket <packagename> <active|working_set|frequent|rare>

(documented here : https://developer.android.com/about/versions/pie/power)
The problem is that the command appear to be ignored by the device as you will see in the actual behavior snippet.
Notice that only one device is plugged during the process.
Actual behaviour :
$ > adb shell dumpsys battery unplug
$ > adb shell am get-standby-bucket <package-name>
> 10
$ > adb shell am set-standby-bucket <package-name> rare
$ > adb shell am get-standby-bucket <package-name>
> 10

or
$ > sudo adb shell
$ > su
# > dumpsys battery unplug
# > am get-standby-bucket <package-name>
> 10
# > am set-standby-bucket <package-name> rare
# > am get-standby-bucket <package-name>
> 10

Expected behaviour :
$ > adb shell dumpsys battery unplug
$ > adb shell am get-standby-bucket <package-name>
> 10
$ > adb shell am set-standby-bucket <package-name> rare
$ > adb shell am get-standby-bucket <package-name>
> 40

or
$ > sudo adb shell
$ > su
# > dumpsys battery unplug
# > am get-standby-bucket <package-name>
> 10
# > am set-standby-bucket <package-name> rare
# > am get-standby-bucket <package-name>
> 40

Here is my configuration :
Android Studio 3.3.1
Build #AI-182.5107.16.33.5264788, built on January 29, 2019
JRE: 1.8.0_152-release-1248-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
MacBook Pro - MacOS Mojave 10.14.3
Here is the device configuration I am using :

Type : Emulator
Name: Pixel_API_28
CPU/ABI: Google APIs Intel Atom    (x86_64)
Path: ..../.android/avd/Pixel_API_28_1.avd
Target:    google_apis [Google APIs] (API level 28)
image.androidVersion.api: 28
tag.id: google_apis

Thank you in advance !

I see the same thing with the Android P emulator.
However, this works for me on a Pixel 2 device with P.
Btw I think you need to use the integer representation when setting:
adb shell am set-standby-bucket <package-name> 40

Not
adb shell am set-standby-bucket <package-name> rare


text:
Moving app from "/data/app" to "/system/priv-app" leads to reboot (Magisk, Android 8.1)
I have a rooted device Samsung SM-T590 (Galaxy Tab A, 2018, 10.5, Android 8.1.0)
I have Root Explorer app installed
When I try to move some app from "/data/app" to "/system/priv-app" (using Root Explorer) the device reboots and nothing is being saved at "/system/priv-app"
I want to make my app a system one
This method works ok on many other devices
But something wrong with this device
Any ideas how to solve this problem?
I think system apps Device Security and Device Maintenance prevent me to do it.
I tried to delete them using Titanium Backup but phone reboots and they are installed again
Also there is Samsung Knox security technology
It's not a duplicate because this question is about Magisk and not SuperSu

This is because of systemless root, which is needed on all versions of Android from Nougat and higher (and some Marshmallow builds). It does not allow you to move apps to the /system folders. I will mark as a duplicate with a link to a question with an answer for the method to do that, as you must do it with TWRP, hope it helps. Note one of the options is to convert to traditional root, I don't think that is possible with Android 8.1

@user924 have you tried the answer that acejavelin suggested? If it's not a duplicate, then please [edit] to make it clear why the question is not a duplicate, or why any of the answers don't work for you.

I have added an alternative answer here: Convert installed app to system app. If even that doesn't help, than let me know. I would reopen your question.

@acejavelin before we continue I have to say that I use Magisk when that question talks about SuperSU https://android.stackexchange.com/a/171298/243385

@acejavelin there is no difference if you do it with TWRP or Root Explorer. Both leads to reboot, they both just try to move apk to system folder

@acejavelin Magisk works fine on Xiaomi Mi A1 8.1 and I can do there anything I want

@AndrewT. no, it didn't help. But Firelord's answer helped


text:
Accidentally uninstalled play store from rooted phone
I have rooted my LG E610 (Optimus L5) recently. Accidentally my play store apk is uninstalled and deleted. What should I do ??
Android version: 4.0.3

You can try to replace the deleted apk withthe one from https://opengapps.org/ or you delete all Google apps and install the complete Open GApps package (e.g. nano, micro or what you want).

I've had some previous experience using this device and if I remember correctly,
You have 2 options
1 - Reinstall just the 4.0.3 Google play store application
system/app/phonesky.apk

2 - Install a fresh firmware
LG E610 L5 Firmware's
The fresh Firmware installation WILL be an upgrade to android 4.3, This will change your kernel and a downgrade is very difficult after that.
I'm fairly sure I ran KitKat via CyanogenMod 11..
The cyanogen build is stable for my every day usage and the benefit of KitKat goes without saying.
firmware I used - I think... it's been a while.
You should already have a Custom Recovery !
Never gain root access on any device, without a way to make a backup... You need to have backup and restore capability with any rooted device.
So mainly, Grab a gapps package for 4.0.3 ( or just the phonesky.apk and phonesky.odex files )
Or firmware upgrade.....  I just firmware upgraded ... I think KitKat comes with the HotSpot settings and few others that help out :)


text:
Determining which app keeps asking me to choose a SIM card
I have a dual-SIM version of Sony Xperia XZ Premium (G8142) running Android 9. In my "Dual SIM" settings I have explicitly asked the phone to use one of the two SIM cards for "Cellular Data", "Calls" and "SMS messages"

However, every time I reboot this phone, Android suddenly starts popping up a white box in the center of the launcher screen, listing both of my SIMs and asking me to select a SIM card for SMS.

Regardless of what I select, the box disappears for a few minutes, but then pops up again. And again... This happens a couple of times after each reboot, until eventually it stops. From that moment on everything behaves normally.
I would like to determine what is triggering this. I suspect that this is some background app installed on my phone that causes this to happen for some [indirect] reason after each reboot. Is there any Android software tool that would tell me what app (if any) is responsible for popping up such dialog boxes on the screen? The issue is 100% reproducible, meaning I'll have no trouble causing this box to appear.

I don't know if this would work but I would consider these three steps in series (require [tag:adb]): 1) when that dialog appears, run adb shell dumpsys activity recents > recents.txt. 2) After that, run adb shell dumpsys window windows > windows.txt. 3) Finally, I would reboot the device and also run adb logcat -v long > logcat.txt until you unlock the device and get to see the dialog. One of these logs might be able to show what is calling that dialog.


text:
Android apps for "armeabi-v7a" and "x86" architecture: SoC vs. Processor vs. ABI
While downloading Android apps, sometimes I have seen apps for armeabi-v7a and x86 architecture.
I read some references for armeabi-v7a and x86 architecture. However, at the end, I couldn't finalize which mobile processors and architectures belong to armeabi-v7a and which belong to x86.
As per my knowledge, mobile processors commonly used in Android devices are Snapdragon (by Qualcomm), MediaTek, Exynos (by Samsung) and Kirin (by Huawei). Almost all brands explain specifications of a smartphone and almost all specifications say mobile processor is 64-bit or not. Should I conclude that 64-bit of mobile processors (Snapdragon, MediaTek, Exynos or Kirin) belong to ARM architecture?
EDIT:
To understand which SoC supports armeabi-v7a Android apk and which SoC supports x86 Android apk, I have gone through the specifications of MediaTek Helio X30 and Snapdragon 855. The specification of Helio X30 says, it supports dual-core ARM Cortex-A73 and quad-core ARM Cortex-A53 but ARM is not mentioned anywhere in the specification of Snapdragon 855. So should I conclude that Helio X30 will support armeabi-v7a Android apps and Snapdragon 855 will not support armeabi-v7a apps?
Please clarify my confusions.

Here are my incomplete summarized notes on the subject, but enough to answer your question.
INSTRUCTION SET:
Processors are made of semiconductor dies, usually electronic-grade mono-crystalline silicon. They don't know English or any other human language, they understand only 0 and 1. So the designer of processor tells us in what sequence of zero's and one's we can instruct that specific processor. This numerical language of instructions is standardized as Machine Language and the set of machine instructions is called Instruction Set. A processor can act upon only specific type(s) of instruction set.
Instruction sets can be 8/16/32/64-bit (defines how many instructions a processor can process at a time), last 2 being the common one these days.
LOW LEVEL LANGUAGES:
But writing program code (instructions) directly in machine language (the executable file) is near to impossible because it will take years to write and debug a reasonably larger program (that we can write in a few hours these days). So to put programmers at ease, Assembly Language was developed, still a processor-specific language but relatively easy to understand. Code written in Assembly Language is converted into machine code by Assembler - a program written in Machine language. Both of these are called Low Level languages.
HIGH LEVEL LANGUAGES:
To further reduce human effort in communicating with hardware, high level languages were developed which are not bound to a specific instruction set (denoting a specific architecture). These are identical to human languages, hence easy to write, understand, debug and apply to multiple architectures. Code written in high level language is converted into low level language by Compiler - a program written in low level language. One of the most commonly used high level languages is C. But sometimes code is not pre-compiled to machine code, instead directly executed (or compiled during execution) by Interpreter. Java is one of such "write once, run anywhere" (WORA) languages which is compiled to byte-code and then interpreted by Virtual Machine - again a compiled program.
APPLICATION BINARY INTERFACE (ABI):
Since an architecture-independent program (code) can be converted to architecture-dependent code for any processor, it's the duty of compiler to take care of all the requirements of a specific architecture. That's what Application Binary Interface (ABI) defines. In simple terms, an ABI represents one or more specific architectures. Further details on Embedded ABIs require an insight into stages of Assembling and Compiling; object code, Executable and Linkable Format (ELF), static (archiving) and dynamic linking of libraries etc.
Now coming to your question:
WHAT ARE x86 AND ARM?
x86 is a family of instruction sets, mainly developed and manufactured by Intel and AMD. ARM is another family, designed by a single entity ARM Holdings and being licensed to many embedded solution manufacturers including Qualcomm, Mediatek, Samsung and Huawei. Snapdragon, Exynos and Kirin are their brand names. They are not processor manufacturers but they have licenses to include ARM processors with their own System on Chip (SoC) circuits.
WHAT IS SoC?
A System on Chip (SoC) is a small circuit that includes processors along with other components such as GPU, RAM, Flash/eMMC (equivalent of HDD or SSD), WiFi and bluetooth module, USB connectivity, UART (serial ports), JTAG (a very lower level serial communication protocol), GPS, modems (for cellular connectivity) and possibly others.
ARM ABIs:
Though the major part of Android apps is written in Java, one can program in native languages like C and C++, which needs to be compiled. Android provides its own Native Development Kit (NDK) including (libraries, header files and) a compiler that can compile code for multiple ABIs including armeabi-v7a (armhf in Linux community) and x86.
Android (Java) app itself isn't specific to an architecture. During app build process Android SDK converts Java source to bytecode (.class files) and then compiles it to Dalvik EXecutable (.dex) file which is packed with .apk files. This Dalvik bytecode is interpreted and run in a separate instance of Dalvik Virtual Machine/ART for every app by a process named Zygote. Or it can be permanently compiled to native machine code (.odex or .oat) according to the architecture of the device during installation of app (or later). But if the apk (zip) file additionally contains ELF binaries/libraries, those are architecture-specific. Developers usually include native libraries for multiple architectures in their apps.
Native applications/programs/binaries/executable/libraries built with compiler suites targeting ARM Embedded ABI v7a (armeabi-v7a) can be run on Application profile of 7th version of ARM processors (Armv7-A).
Code compiled with toolchains provided by other vendors, targeting same architecture (though with different ABI names) should also run on Android devices.
32-BIT VS. 64-BIT:
ARM processor can be 32-bit or 64-bit. It depends on SoC manufacturers what they want to build with their embedded system e.g. Snapdragon can be 32-bit or 64-bit. 32-bit ARM processors were improved for performance and new capabilities were added from version 2 to version 7. 64-bit support was introduced in ARMv8.
To find out if a device is 32-bit or 64-bit, you need to check the specifications of its SoC and then of its processor. For instance SoC in Redmi Note 4 is Qualcomm Snapdragon 625 (MSM 8953), which contains processor Cortex-A53. It's evident from technical specifications of Cortex-53 that it's based on ARMv8 architecture, which can process 2 types of Instruction Sets: aarch64 (which Android's arm64-v8a ABI uses) and aarch32 (which Android's armeabi-v7a ABI uses i.e. backward compatible with ARMv7).
So it can run binaries/libraries compiled for both of these ABIs, but not for x86 or armeabi (called armel in Linux community; which targeted architecture ARMv5/v6, and was removed in NDK r17).

RELATED: Could a 64-bit hardware device run a 32-bit Android version?

Side note: for 32-bit ARM and 64-bit ARM support - Google mandates 32-bit ARM support on 64-bit ARM as part of the Android Compatibility Definition Document since Android 6.0 Curiously the CDD for Android 9.0 mentions armeabi for backward support only.

Since Android 9, 32-bit ARM support on 64-bit devices has been optional. So far, they've provided it, but that will change as new cores cease to support Aarch32.

The number of hardware devices that use x86 was never very high. Some years ago Intel had some x86 processors (Intel Atom) that were used in some Android tablets (e.g. Samsung Galaxy Tab 10.3).
However those tablets never reached a high volume on the market. And I am not sure if there is any x86 Smartphone or tablet on the market that still use an x86 CPU.
However there is one very common use case where you encounter an "x86 Android device": Android Emulators like the one contained in Android SDK or other emulators like Genymotion, BlueStacks, ...
As the PC running the emulator typically uses a x86 CPU emulators that run an x86 image (instead of an ARMv7 or ARMv8/ARM64 based image) can make use of the CPU integrated virtualization techniques which result in a much higher speed.

Thank you for explaining in detail. I would like to take an example. If I am right, be it a processor or a SoC, the term x86 is co-related with Intel and AMD. I would like to take an example.

I have gone through the link https://www.apkmirror.com/apk/mozilla/firefox/firefox-65-0-1-release/ for downloading Firefox android apk. I have seen two variants there; Firefox android apk for armeabi-v7a architecture and Firefox android apk for x86 architecture. My confusion started from there.

SoC of well-known android devices are Snapdragon, MediaTek, Exynos, Kirin etc. Therefore, I believe, I need to download android apk for ARM. Am I right?

@user741975 At the moment if you choose armeabi-v7a it will run with a chance larger than 99%. If you have a current mid-class or high-end device also arm64-v8a may be an option. Anyway you can just download it and try to install it. If the architecture is wrong installation will just fail.

A shorter answer
All the current Android devices on the market use ARM-compatible processors.

ARM Holdings designs the basic architectures, and example processors. The modern examples all have names like Cortex-A78, Cortex-A720 or Cortex-X2.
Chip manufacturers, such as Qualcomm, MediaTek, Huawei and Samsung license the ARM architectures. They design SoCs, made up of ARM processors, memory, GPUs, digital radio systems and other electronics. Some of those companies manufacture SoCs themselves, others sub-contact the manufacturing, to TSMC, SMIC, or other "chip foundries."
The chip manufacturers all have brand names for their SoCs: Qualcomm = Snapdragon; MediaTek = Helios; Samsung = Exynos and Huawei = Kirin. Their marketing material tends to leave out ARM because they want to look as if their products are uniquely their own and vastly superior to the competition.
Some chip manufacturers enhance the ARM designs in various ways, and a few have designs that are genuinely their own. Apple are the notable example, but their chips are not used for Android devices. Qualcomm are planning to introduce designs of their own under the "Oryon" brand name, likely in late 2024.
ARM-compatible processors have existed in many, many variations. Android has set a few different minimum standards, to make software compatibility easier to manage. Those are called "ABIs". armeabi-v7a is the modern 32-bit ABI; arm64-v8a is the modern 64-bit ABI. Making ARM-based SoCs for the Android market that weren't compatible with the ABIs would be silly, and nobody does it.
When this question was first asked, armeabi-v7a was universally available on modern devices with arm64-v8a becoming widely available. As of mid-2023, arm64-v8a is just about universal, and armeabi-v7a is starting to be dropped.

There were a few Android devices that supported the x86 ABI, but they were never widely used. They are just about extinct now. The x86_64 ABI is used for emulators, but not on devices. Intel and AMD, who make x86 and x86-64 processors, have never managed to achieve power usage to performance ratios that compete with ARM, and are unlikely ever to do so, because of the complexity of the x86 architecture. They make processors that are faster than almost any ARM chips, but they use much more power, which makes them unsuitable for battery-powered devices.


text:
My search results open in samsung browers rather than chrome browers
How can I change it to chrome rather than Samsung on my samsung s3 tablet?
 I do not know how to change it

Please do a search for "android change default browser"

Go inside your Samsung S3 tablet settings. After that select Apps. When you select apps you will see every installed app in your tablet. Now press the three dots on the upper right corner and select Default Apps option. The next page will show you a variety of options including Browser App and in there you can select chrome.
Alternatively as soon as you enter settings do a search for Default Apps and it will take you directly to the default apps page.


text:
Can I Download (Dump) kernel image (and full ROM) on Intel device?
I need to download the ROM from an Intel device, and I can't unlock the bootloader.
I know that there are tools to do so on Meditek devices, that let you access the device before it boots to the bootloader. An example is the Wwr_MTK Tool together with SP Flash Tool. (See my post at Backup/dump kernel image (and full ROM) without root for Mediatek Devices).
I'm looking for a similar thing for Intel devices. This should let me download the ROM without having to use Fastboot.
P.S. If you have any other suggestions on being able to download the ROM I would appreciate it.

The reason that it's possible on MTK device's is because of a bootloader before the bootloader... You can access the CPU firmware via the USB port, this gives you unrestricted access to storage regions and allows you to create an image of the partitions or entire regions. Intel does have the same bootloader before the bootloader, however getting a driver that works seems to be a nightmare unless you have a highly popular device globally... More people are working on the same thing..

Can you please refer me to someplace I can find some more info on this. I have been googling this for a while but without success.

Based on information from Intel Flash Tool & Other similar programs... https://www.needrom.com/download/intel-phone-flash-tool/  ...

Thanks for your reply. As far as I can tell this tool only flashes TO the device I'm looking for a tool that can download FROM the device.

Have you considered manually pulling the firmware through ADB, Root access or a custom recovery... If you can manage to install a custom recovery, then you can just try to find a stock recovery to complete the backup... You can convert the backup's made by custom recoveries into compatible ones..

@Zillinium I don't have root (That the reason I want to pull the ROM from the device - to get root). I haven't found a custom recovery for this device that works. Would you know where I can find one? =Can I pull the the files with ADB without root?


text:
Huawei Ascend Y530 will not boot
I have a huge problem with my Huawei Y530 cell phone.
Today I received a phone call, but instead of actually ringing, it just vibrated once, and an error message popped up saying something along the lines of "the com. android. phone process has stopped".
No matter how many times I tapped on the OK, it wouldn't go away.
I naturally held the Power on/off button to reset it, but to no avail.
Since that moment, it's been stuck on the logo.
I tried to do a factory reset, but I am afraid it didn't do much.
It was stuck on a generic "android" logo for over 10 minutes.
Tried again removing the battery, doing the Power on/off and Volume up to get the system menu and reboot, but nothing.
It charges normally when I plug it in, if it means anything.
I tried the factory reset through the Power on/off and Volume up many times, and now it is stuck on the generic Android logo (just the word android, no robot anywhere).
I know it's an old phone, but I don't have money for a new one, so I am hoping that there maybe is something to be done so it can work.
Many thanks in advance to all who read and comment!!!

Tell me about it, I've got a bricked one in my top drawer.

You need to pull the battery out, place it back in... Then boot to recovery, Hold volume Up + Power buttons to turn it on, kepp holding all the buttons until the recovery program starts, you then need to navigate to Factory Reset or Wipe Data + Cache ..  Then reboot the device after the wipe is complete ... It may take literally 10 to 20 minutes for some device's to complete a First Boot... Then After the initial Data partition is initialized, it will boot faster.... Expect that 10 minutes wait...

Thank you so very much for your answer!
It is just now doing the Factory reset, and it's "Formatting /data...".
I am hoping this will work, I truly am.
Thank you once more!

No worries, if you do ever go down the custom firmware path, I think if I remember correctly, the Cyanogen Mod Kernel allows over clock speeds of 800mhz to 1.2Ghz.. It was the best performance enhancement I managed to find, along with the usual tweaks.

You may need to do a full factory reset.
This guide is a combination of the Recovery boot guide here, hardset.info/.../recovery-mode/

After booting recovery,

Navigate to Wipe Data/Factory Reset
Select it ....
Reboot device
Wait 20 minutes maximum
If the device still hasn't booted
You have a bricked device, you need to look up how to unbrick a huawei y530...
The usual process is...
Install Stock Firmware
Install Custom Firmware 'I prefer Cyanogen Mod'

...

Unlock bootloader
Flash Custom Recovery
Boot Custom Recovery
Flash ROM - Stock or Custom  ( with Recovery )
Wipe Data/Cache/Dalvik Cache & Reboot

All if not most methods will wipe everything on your Data partition, therefore the emulated internal SD Card ... So make sure everything is backed up... However you've already tried a factory reset " I imagine you used the option in settings, not this method "
The recovery program is far more successful at doing a factory reset, I never use the option settings as it always fails.


text:
Bought eBay Galaxy Tab 4, Has SureMDM Nix Installed, Won't let me wipe
So I purchased a Galaxy Tab 4 off eBay, and it has SureMDM Nix installed, and will not allow me to do anything with the device. I do not have access to the home page, google search, airplane mode, nothing to bypass this MDM.
I can't even plug the device into my computer as USB Debug Mode isn't enabled and I can't use the ADB commands either. I'm at a loss.
Is there anyway to get around this?

If you connect it to a hotspot which needs a captive portal, will it open a browser?

Are you able to enter download mode: https://www.hardreset.info/devices/samsung/samsung-t230-galaxy-tab-4-70/download-mode/


text:
How do I get rid of com.android.Pet.mediaproxy?
I found this on my phone on my Files after I woke up. I accidentally fell asleep and I have a housemate who likes messing with my things and decided to put something on my phone that is actually a malware that can be found in Chinese brand phones. Now, no matter what I do, it keeps returning even when I resetted it and the only solution I found is to flash a new rom or replace the rom/phone. Is there any way I could find it in the system and remove it? I can't find it in the "Apps" or "System" only apps.
One thing that I also want to know is, what exactly is this? I suspect that this is an old malware, just changed its name so that there wouldn't be much information about it (I suspect its old name is "com.android.snap" since it shows up in the search result). My phone is rather unknown in other countries but its legit enough aside from a occasional adware.
EDIT: What I meant by "resetted", I meant that I did a factory reset on my phone but the file keeps coming back. It's not an app for me since I can't find it anywhere in the Apps. Even if I turned off the WIFI, when I delete it, it keeps coming back on its own.

Even if your phone's brand is not well known, still edit your post and add it. If as you said it keeps coming back, then it means it's a system app & you can only remove it if your phone is rooted. If your phone is not rooted, did your friend root it?

It is best if you recreate your account or ask Stack Exchange to help regain access to this post (use Contact link at the bottom of this page). Anonymous edits can't be a substitute for exchange of comments.


text:
How to bypass "Always on VPN" demand for numeric IP and use a domain instead?
I know that it is not required but still I want to use a domain name for VPN server address and be able to tick to "Always On VPN" on Android.
I am open to any Idea with advantage to idea that can be use also on unrooted machine?
The reason is that I want to connect to my home network that has a PPTP VPN server (on Asus router). I dont have fixed IP at home (its very expensive in my country), so I am using Asus dynamic DNS service configured on my router. I want my Android phone to be connected to the internet only via this VPN.
I don't mind using a 3rd party vpn client app (that has "Always on VPN" mode) as long as I can connect to MY own VPN server, not to another party server. Also, if there is a web browser that can be configured to browse the web only via custom VPN settings, it will also be good.
Any Idea will be appreciated!

You can use any third party VPN app that supports PPTP and domain name, and then enable "Always-on VPN" for that app in Settings.

I didnt find any 3rd party app that let you enter your own vpn server derails. Can you name one?

I'm not sure about PPTP because it's not that much secure and getting obsolete (don't know why it's integrated in Android). But there are Android clients for other protocols like OpenVPN, SSTP etc. Personally I run an OpenVPN server with DDNS and I use VPN Client app by colucci-web, combined with shapeshifter (obfs4) commandline tool.


text:
Stock Phone app doesn't work in split-window mode on Android Nougat
I have Wiko U Pulse Lite running on Android 7.0 Nougat. I would like to use Google Keep or Google Drive in split-window mode with the Phone application. This is because every time I perform a banking operation, I need to copy numbers and passwords from one window to the other, otherwise I need to recur to open and paper to use as my buffer for storing these data.
Is there a reason why the Phone application with its dialer keypad won't work in split-window mode? Is this fixed in later version of Google's Android OS?

It works in Oreo in OnePlus 6, but the implementation of stock phone app can vary. https://i.stack.imgur.com/IR6fw.jpg // In which Android phone did you have that issue with split screen mode with phone app?

I have a Wiko U PULSE Lite.

A possible workaround is to try 3rd-party dialer (try Google's own app?) and check if this also happens on all Phone apps (which I somehow doubt), or only on Wiko's stock Phone app.

Thanks but I get an error message saying my device is not compatible with this app when I open the page in the play store. Thanks.

For an app to be allowed to work in split-window mode, there is a certain parameter android:resizeableActivity=["true" | "false"] that has to be set to true.
Since Android 7.0, this is true by default, but it's still possible to be set to false if the developer thinks the app will not behave correctly in split-window.
As @Andrew T. suggested in a comment, all you can do as a user is to find another phone app that allows split-window.

If Developer options is enable, you can set "Force activities to be resizable" to On.
Settings -> Developers options -> Force activities to be resizable
Then, restarts the phone.
It has worked for me when there were apps not developed to use split screen by default.


text:
Reasoning behind built in songs made by the android device manufacturer
I noticed my Huawei device comes with a built in song called "Dream It Possible".
Quick search revealed the song was made by the company itself. Didn't  look into it, but pretty sure other companies did and do the same.
What is the reasoning behind this? The song isn't an advertisement to the company. What benefit does it give them?

Just a counter evidence, but at least Nexus 4 & 5 (by Google) don't have built-in songs.

@AndrewT. thanks, so maybe only some "external" vendors, not Google itself. Also a chance Huawei is unique in this, in which case the given answer is all that we'll get. :)

"Dream It Possible" is the official Huawei Consumer Brand Song.
Therefore it can be considered as Huawei advertisement even if the song itself is not directly related to Huawei.

Oh, well had no idea it's their Consumer Brand Song. Thanks.


text:
Locking the Android UI
I'm running Android Nougat. I would like to know whether there is a way to lock the device while watching a YouTube video or doing some other critical operation so that you don't accidentally kick yourself or of the application or page your viewing in the process.
Ideally a slider button with a lock would be ideal here.
What about newer versions of Android?
Thanks

You can use Screen pinning. That way only YouTube (or any app) pinned on the screen will be visible, and you won't by mistake start another app.
Settings -> Security -> Screen pinning. Set it to On.


text:
How to Turn on mobile data on all apps when each is set to off
I somehow  individually turned off mobile data on 250 apps. How do I turn all of them on. I don't remember how I did it. I am on a poco F1 android 9 miui 10.

Did you any app to switch mobile data off? Please update the question with your device models and Android version.

I can't find it through the settings but finally I found a popup view window titled restrict data that appeared when an app requested mobiledata permission, selected to restrict all and then clicked a second time to unrestrict all. It's an option at the top of the list of apps. It is different from the restrict data in the settings


text:
How to block spamming SMS
I am using a MOTO-G6 and it runs on Android-8.0.0. the default SMS app is Google-Messages.
I am getting tons of annoying spam SMS from contacts with no numbers.
It just shows a name for example:
VKHLTCHK
HPFAMDOC
HPYESBNK
...
...

I can block these contacts, But I still do receive sms from these over and over again.
Has anyone have this kind of problem. How do you solve this? I am  willing to buy a paid app if it exists.

Does the content of the spam SMS varies or remains more or less same? If there are certain keywords which exist in all of those messages, you can setup a filter  in MacroDroid app to detect such spam messages and remove the notification immediately before you are notified. It doesn't remove the sms though, so it would be visible when you open your SMS app.

Please enable spam protection in messages app. Open messages, settings, advanced, spam protection and enable it. And when a spam message arrives, report it. Such messages won't show further. If you can't see such settings, update messages app to the latest.

@Firelord Nope. The content is always same.

@RahulGopi : I am talking about SMS app https://play.google.com/store/apps/details?id=com.google.android.apps.messaging&hl=en it does not have spam protection feature

I am also using the same messages(version 4.0.054) app on my moto x4(android pie). I think the features are OS version independent, that means features are same on every android versions.

Try replacing your stock SMS app with Textra (free). It has a simple & effective blacklist feature. Just long press on the offending text message, tap Blacklist, done.