text:
How to connect to Android through SSH over 3G/4G public IP?
I am having an Android device and I want to connect in via 3G/4G and I am getting connection refused.
Any ideas how to do that?

Are you sure your device has a public IP address? The number of MNOs providing a public IPv4 per device is very very small and often limited to certain business or IoT contracts. Therefore most likely your device is behind a NAT gateway - therefore incoming connections are not possible.

Yes, it is behind NAT and I was hoping If there is a way to do this via reserve tunnel. Thanks Robert.

Duplicate: https://android.stackexchange.com/q/89019/218526

If you have a working SSH server running on Android device, you can connect to it on local/private network without any issues (after proper authentication setup obviously). Same may hold true for public network (internet) if your phone has a true public IP address (I don't think that happens on earth). However, when you need to cross networks i.e. traversing gateways and routers, there is Network Address Translation involved. You won't be able to access your device from internet if your SSH server can't be exposed to a public IP address.

WHAT IS NAT AND PAT?
In simple words, NAT is the translation of source IP from private address to public - routable; what they call it - address when an IP packet is leaving the router, so that packet could be sent back with identifiable IP address. Inverse happens when response for same packet is received back at router. It would mean mapping private IP of every host (phone, PC etc.) on local network to a unique public IP. But in usual cases, we just have one public IP assigned by ISP. So Port Address Translation comes in action. PAT translates every local IP address to same public IP address but with a unique port.
WHAT IS CGNAT?
To address the problem of IP Address Shortage, Internet Service Providers also perform NAT, called Carrier Grade NAT. It means that IP address assigned by ISP to you isn't either a public but private IP address. This is a definite situation with Mobile Data i.e. on 3G/4G but less common with DSL connections.
If the IP assigned to your phone by ISP (you can check by ip address | grep inet command) is different from the one shown here, you are behind a CGNAT. Similarly for Wi-Fi router, IP address appearing under PPP Connection Settings should match with the public IP.
DYNAMIC IP ADDRESS:
In order to maximum utilize the available pool of IP addresses, ISP's mostly assign dynamic IP address even when there is no CGNAT. So the public IP keeps on changing on daily, weekly, monthly or randomly basis, depending on the ISP's policy.

IPv6 is the upcoming protocol which won't need NAT and every network host on earth would be able to have a unique IP address.

SOLUTION:
Now coming to your question:

If there is no CGNAT, we can tackle the problem of DSL/3G/4G router's NAT by setting up Port Forwarding. But this option doesn't work if:

There is more than one hosts on local network that listen on same port (22 in case of ssh).
ISP firewalls don't allow you to receive incoming connections.
ISP locks you out of your router's Port Forwarding section or a 3G/4G router doesn't have a Port Forwarding settings at all.

Problem of Dynamic IP can be worked around by signing up a DDNS service. It assigns you a domain name that always resolves to your current public IP. DynuDNS is a free service that works perfect for me. You will have to install their software on your phone or PC to keep them updated of your public IP.
As far as CGNAT is concerned:

You can opt to buy a static public IP if your ISP provides this service but the price isn't "hearing friendly" in most cases.
Sign up for a service that lets you configure Port Forwarding on public VPN. There are free (for one port forwarding) solutions like portmap.io as well if you are not afraid of your traffic being sniffed :) Another specialized solution is ngrok that uses HTTP, TLS and TCP tunnels.
Setup a SSH (slower) or VPN (faster) tunnel from your phone to a personal server.

For best security and privacy, setup a self-owned server. You may use your broadband connection (if that has a public IP) for this purpose or may ask some friend to offer you this service.
Buy some trustworthy cloud VPS solution like AWS to host your personal SSH/VPN server. Setup is a bit technical but guides (1, 2) are available.

If you go with last option (setup a personal SSH or VPN server with public/static/dedicated IP address), follow the steps below to forward a specific port from SSH/VPN server to your phone:

SSH:
With an SSH server setup, you can create Reverse Port Forwarding tunnel from your phone. Note that you can't forward remote server's (default SSH) port 22 to your phone's port 22 if you are connecting to the server on same port.
Make sure GatewayPorts yes and AllowTcpForwarding yes are set in sshd_config on server, so that sshd allows port forwarding and accepts connections from public. Now on your phone create a reverse tunnel:
~$ ssh -NTR 2222:localhost:22 <server_user>@<server_ip>

You can make ssh tunnel persistent using autossh or some app like ConnectBot if you want.
For further options see this answer.
VPN:
From your phone connect to the VPN server using a VPN app. When on a Virtual Private Network (VPN), both server and phone become part of a local network, so just apply iptables DNAT to forward the specific port to your phone's IP:
~# iptables -t nat -I PREROUTING -p tcp --dport 2222 -j DNAT --to <phone_ip>:22

IP Forwarding is also required on server, which has probably been already set up during VPN server configuration:
~# echo 1 >/proc/sys/net/ipv4/ip_forward
~# iptables -I FORWARD -d <phone_ip> -j ACCEPT
~# iptables -I FORWARD -s <phone_ip> -j ACCEPT

Now you can ssh from any host on internet to your phone:
~$ ssh <phone_user>@<server_ip> -p 2222

You'll be logged in to your phone after authentication.

I explained here the SSH example. In the same way you can run any other server on your phone and forward its port from SSH/VPN server (with public IP) to your phone (with no public IP) so that your server becomes accessible from internet.

RELATED:

How to run SSH/SFTP server for multiple user logins with password authentication on Android?
How to connect two phones via SSH?

Just an addendum to the "VPN" section: Only the phone, the server is running on, have to use a VPN connection if the used VPN provides a public IP to the phone (often called static or dedicated IP). In such a case the client could use to the public IP offered by the VPN and reach the offered ssh service. There are public VPN providers offering such a VPN service.

@Robert sorry couldn't get the point. Can you elaborate?

You don't need two VPN connections. You wrote that they should be located in the same local network. But it doesn't have to be a local network, the Internet itself is also fine. If the serving device is located with a public IP in the Internet the second device don't needs a VPN connection.

@Robert got it. I couldn't explain it well I think. What I meant was that when two hosts are connected through VPN, they become part of a local network. E.g. if server's TUN interface has IP 10.8.0.1, the client would have something like 10.8.0.2. So their routing/firewall has to be handled like if they are on a local network. // SSH and VPN servers both make sense only if they have a dedicated/public/static IP. Otherwise they won't be accessible to phone.

I know this is an old topic, but I have a new follow-up. I run my own DNS as well as the firewall on a server that I also totally control. I can easily configure a domain which is dynamically updated to always point to my device's public address. However, I believe that my cell provider does not provide incoming IP-based connectivity to their devices. So, is there some way I could run a proxy somehow between my Android device and the host that I control whereby I can make some sort of rsync connection to some address, and have it access data on my device via normal rsync conventions?

@HippoMan couldn't understand how many hosts are involved; "server", "Android device", "some address", "my device". The "server" has a public IP address, right? And from which host you want to make an rsync connection to which host? And would this rsync access be through SSH? What are "normal rsync conventions"? "DNS" and "firewall" have to do something with rsync?


text:
OnePlus 3 repair issue
The screen on my OnePlus 3 phone was beginning to peel away from the bezel.  There was already a noticeable separation all the way along the top, and the problem was spreading downward along the sides.  Other than a touch-screen test I had to perform every time I activated the smartphone, it worked fine.  (It must have sensed something was weird with the screen, and made me touch four randomly placed circles before it would activate.)
I brought it to a local, independent smartphone repair shop about 12 days ago. They told me the battery was bloating, which is what was causing the screen to be pushed away from the bezel.  Since I don't have experience with this sort of thing, I just took their word for it, and let them order another battery.  Now I'm suspicious; battery life was fine.  I could use the phone (YouTube, games, phone) for 8 or more hours without needing a charge.  The phone would not be hot nor have a hot spot.
Ten days later (yesterday) they phoned me late afternoon, letting me know the battery had come in, and said I could bring it in today.  Their Saturday hours are 11 to 3, and the person on the phone was confident it could be completed same-day if I brought it in around 11.  I did.
The tech told me he could have it ready in a little over an hour.  I gave him 2 hours and went back.  The tech told me they must have gotten the wrong battery.  It fit, the connector was correct, and the phone came on, but it told him it had the wrong battery. He showed the original to me.  I could not see swelling, but the black paper backing was wrinkled as if perhaps it had maybe bloated and remained stretched out after the battery went back to normal size due to no load.  At least that is what the tech said.  He showed me three round holes on the back which he said had been caused by the failing battery.  He told me it would be a very bad idea to put the original battery back. He wanted to glue the screen in place over the new battery and see what the phone's status would be then.  So I'm doing that, and have another 40 minutes before I go back to check.  (I can't call; he has my only phone...)
Am I getting the run-around from a clueless, perhaps dishonest shop?
Unfortunately I prepaid for the battery and screen repair. If it is not working when I get back, I am not going to wait 10 days for another, possibly wrong, battery.  If they can't resolve the problem by the end of the day Monday, what are my reasonable options?

What is the update from repair guy? Curious

@beeshyams Just got back from shop. They had ordered another battery Saturday and expect it to get in b4 Thanksgiving. I remembered I still had my previous smartphone a Motorola/Google one.  Transferred SIM to it.  She explained that battery damage  (not round holes; I mispoke) resulted from them having to pry the old one out. I know your suggestion was to just accept the loss and go to authorized repair, but I don't totally distrust them and hate to waste the $128 already paid. If worse comes to worse, I'll buy a new one.  The OnePlus 6 is current and mine is a OnePlus 3.

Fine. All the best and hope you get it soon without issues

@beeshyams On Tuesday I picked up the phone, and it is working fine with the new battery,  including Dash Charging.  The screen was glued down and is longer trying to peal itself away.

Your repair guy is either ignorant /or taking you for a ride or both
Bad battery story by the repair guy is flimsy.

You had good battery life - 8 hours is actually pretty decent
Batteries are not balloons - if they are swollen, they stay swollen and don't regain original shape (on no load as you mention). See picture of  badly swollen battery

Swollen battery spin test is one way of making sure it is bad. For details, see this nice answer with embedded video
3) Batteries don't make round holes if defective. They puncture, or explode at worst
You are being taken for a ride, sorry for that, but there is no polite way of saying that.
The only sensible option I see is take your phone to an authorized or reputed repair agency and forget this guy and the money lost

source: Stack Exchange

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

sort: votes


text:
Not receiving SMS from short numbers on Xiaomi Mi Max 3 (MIUI)
Phone doesn't receive 2fa messages, bank codes, etc.
This is chinese Xiaomi Mi Max 3 with unlocked bootloader which came with global 10.0.1.0 miui (Android 8.1).
What I've tried:

checking sms center number
disabling MIUI optimizations
changing settings of messaging app (disabling block list, enabling miui sms)
disabling volte
installing alternative sms apps
changing sim slots
reflashing global 10.0.2.0 miui via fastboot with full wipe

I was able to fix this on another Mi Max 3 with chinese 8.8.9 ROM by disabling MIUI optimizations if I remember correctly, but it doesn't work on this one...
Any idea how to fix this?

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


text:
Moto Z2 Play shows much smaller icons in Nova Launcher
tl;dr: I have switched from Moto E4 (1080p) to Moto Z2 (1920p) and on second phone Nova Launcher draws icons and icons' captions very small, barely noticeable. Even though settings are quite similar / the same. What can I do to prevent this?

I've been using Nova Launcher (Prime) for years. Recently on a number of Motorola Moto devices, including E3, G4 and E4. All was fine up until now, because all these devices had 720x1080 screen resolution. Yesterday I have purchased Moto Z2 with 1080x1920 resolution and problems started.
I can clearly see that while icon sizes are quite similar, icon captions are minimal, barely noticeable:

Settings for both phones are nearly the same:

I had to increase icons' size from 125% to 145%, because with 125% they were not acceptably small. But I have noticed that using 125% on Moto Z2, while reducing icons' size doesn't actually increasing captions' size so this doesn't seem to be a problem.
I also had to change font type from Normal to Medium, because using E4's settings (Normal) on Z2 resolution caused me to have problems with reading captions' sizes.
Z2 is my fifth Motorola Moto device with Nova Launcher and the first one where icon's preview section in settings (upper part of screen on second screenshot) doesn't actually match real icons' and captions' sizes. As you can see, preview suggests that everything will be fine (2nd screenshot) while closing settings
reveals (1st screenshot) that icons and their captions looks much different.
Is there anything I can do about it? Any hidden Nova's or system settings that controls how launcher draws its contents on higher resolution etc.?

Nova >look and feel >adaptive icons > toggle the legacy icons. See if that helps

No, this is completely something else, that controls shape of icons, not size of icons' labels.


text:
How to know what is causing a weird lock screen with ads to show up?

I have a Samsung Galaxy J7 that just started displaying this as the lock screen. Sometimes, it displays my regular lock screen, but if I let my phone sit long enough, it will display this screen. It always pops up, not just when my phone is charging.
I don't know what it is, and the other questions I've found have suggested apps could be the culprit, but I don't have any of the problematic apps. I just want this thing gone, as it blocks my notifications.

You are welcome to self answer the question once you are sure. It may help someone else

Do you have es file like any application?

Could be a duplicate of this: https://android.stackexchange.com/q/143330/96277

Before downloading any third party app, do check if there is adds placed by devs.
Check if you installed any new app for lock your screen or for new wallpapers, these usually gives adds.

Most important: If you didn't find any of above case, then this is an internal app update which must be placed by company itself. Now you have to check every app by going to "Apps" section then "System apps" and look for any new app or apps related to wallpaper or lock screen and disable it.
Enjoy! It will surely work.

Going by that suggestion,  most of the apps in the list mentioned here cannot be unearthed. Furthermore, OP had a game installed which showed that lock screen. I suggest you reconsider your advice. :-)

Per Maddie Field who answered it in the question itself here:

It seems to have been caused by the game Cube Escape: The Lake. I deleted the app and so far so good.


text:
Nexcom VTC 6200 installing Android 4.2 or higher
I've got a Nexcom VTC 6200-NI-DK box wich is a bit obsolete but nevertheless I'd like to install Android on it. As far as I understand its spec is far from being top notch:

CPU - Intel Atom D510 Dual Core 1.66GHz
GPU - N/A
RAM - 2Gb

I've tried different images of Android-x86 from Android 8.1 Oreo down to Android 4.2 JellyBean but I could only run them in VESA 800x600 mode or lower and their performance was inacceptable (I tried to switch off animation and optimize Android from inside, didn't work).
My question, is it possible at all to achieve good-enough performance of Android OS on this piece of hardware? Would it make sense to research into making a custom build, possibly with custom drivers or dropping some unnecessary parts of Android, e.g. media services? This box is going to be used very specifically, pretty much for calculations using some Android software, but interaction with UI should be smooth.

Have you tried the CM builds (CynogenMod or LineageOS)?

@Zackary As I know, CM only supports ARM architecture. I've read some info on LineageOS as it supports x86 but I didn't try it. Do you think its performance may be for some reason better than Android-x86?

I used to own a PC with that same CPU. It ran Windows 10 so-so, that is well enough and not too terribly slow. It should run Linux acceptably fast. Android should run as fast as Linux. I'm not sure why your Android experience with it hasn't been positive since Android is simply a different OS on a Linux kernel. You might try running a Linux distribution on it to see if your hardware will run acceptably. If you are still set on running Android instead of Linux, you can continue your efforts if you found your hardware could handle Linux.

I tried to run Ubuntu 16.04 from USB drive (same as I did with Android-x86) and performance sucked too. Did your PC have discrete/on-board GPU ? Cuz I have suspicion that actually not having one at all makes the difference.

I had the small Intel mother board with the large heat sink, no fan. I was also running 2 GB RAM. The Intel system chip had on board graphics, but back then it was nothing to speak of - buying a video card was pretty much mandatory for anything other than casual computing. Maybe your system has one of the older slow disk I/O chips that is a throughput choke point for the system. I had an old Acer laptop that was like that. It originally came with Win XP. I had it upgraded to Win10. It was okay with CPU functions (Celeron single core), but anything to do with disk I/O, I had to wait and wait.

I'm not sure the I/O is guilty in my case as what I do is just simply loading Android into memory from USB-memory stick. Of course, I/O is a bit slow and loading takes 5-7min but then it shouldn't massively rely on disk. Also, I see hiccups during very simple operations like button clicks and changing radio-button selection which in most of scenatios should not perform disk reads/writes. Thanks for your help, btw.

I don't know if the USB controller is independent of the I/O controller or not. You're right though. Lag with clicks is a CPU issue - not likely the fault of the Atom processor, but rather the x86 Android implementation.


text:
How to flashing bootloop Samsung Grand Prime SM-G530H with USB debugging Mode is disabled
i need your help..
my device bootloop.
Stuck in Odin mode.
Product Name: SM-G530H/DS
Current Binary : Samsung Official
System Status: Custom
here'e some information about the device and the tools:

debugging mode : disabled
root status : Unroot
Firmware : Official KitKat 4.4.4. G530HDCU1AOF1 (Indonesia)
Windows 7 SP1 32-bit
Samsung-USB-Driver-v1.5.63.0
Odin 3.04, Odin 3.07, Odin 3.1, Odin 3.2, And Odin 3.3 patched.
Root file for Sm-G530
Official firmware file SM-G530 all version and Indonesian version.
TWRP file for SM-G530

And then I try to :

wipe data/ cahe in recovery mode(Press power+volume up+home), the result is none...
root device via Odin, failed.
Install TWRP via Odin, failed
Flash via odin with some firmware ( HDC, HXX, HXC) the result also failed..

When i try to root or install TWRP or flashing with stock rom Odin displayed same error log:
=======================
 File analysis..
 SetupConnection..
 Initialzation..
 Get PIT for mapping..
 Firmware update start..
 SingleDownload.
 aboot.mbn
 sbl1.mbn
 rpm.mbn
 tz.mbn
 hyp.mbn
 NON-HLOS.bin
 sec.dat
 boot.img
 FAIL! (Erase)

 Complete(Write) operation failed.
 All threads completed. (succeed 0 / failed 1)
=========
Now, after i repeate to Flashing with root file, flashing with stock rom official then i cant access to recovery mode (Press vol up+home+power) anymore, just stuck in Odin Mode like as i just switch on the device..always displayed "Firmware Upgrade ecountered an issue. Please select recovery mode in Kies & try again."
If the USB debugging mode is the problem for this case, so what can i do to fix it?
I found this and i trying, but im still fail to follow the instruction.
https://www.isrgrajan.com/how-to-enable-usb-debugging-in-android-using-recovery-mode.html
Anybody can help me to fix my case?
Here's some Error pictures..

![flash official rom all version]
Flashing Official firmware with 4 files All country
(https://i.stack.imgur.com/MrOkU.png)

Flashing Official firmware with single file Indonesian version
(https://i.stack.imgur.com/2v6vC.png)

Installing TWRP

(https://i.stack.imgur.com/usJSu.png)
Rooting

Comments are not for extended discussion; this conversation has been moved to chat.


text:
Pervasive Kingroot app avoids uninstall
I managed to root my Verizon Samsung Galaxy Note 10.1 tablet with Kingroot, but I'd like to remove it and switch to using SuperSU (because of KingRoot's aggressive practices and somewhat shady reputation). Even after uninstalling it and deleting everything labelled kingroot or superuser in /system, I still get Binary Occupied from the SuperSU app.
I believe there is a hidden process somewhere monitoring attempts to delete it and replacing the binary. For example, in system/usr there is a directory called iku (kinguser?) which replaces itself immediately after being deleted. Similarly, in system/xbin there is ku.sud and start_kusud.sh, which I can delete but instantly reappear.
This may be a quirk of the Samsung system, or some kind of hidden or inaccessible process. I've followed numerous online tutorials, and tried to run the Replace_Kingroot_With_SuperSU.zip method, but to no avail. Anybody know of a workaround?
Edit: here is part of the stdout form a script I ran. Note where it says operation not permitted:
rm failed for /system/xbin/ku.sud, Operation not permitted
rm failed for /data/data/com.kingroot.RushRoot, No such file or directory
rm failed for /data/data-lib/com.kingroot.RushRoot, No such file or directory
rm failed for /data/data/com.kingroot.kinguser, Directory not empty
rm failed for /data/data/com.kingroot.master, No such file or directory
rm failed for /system/bin/.usr/.ku, Operation not permitted
rm failed for /system/bin/rt.sh, No such file or directory
rm failed for /system/bin/ddexe, Operation not permitted

you may need busybox for files and folder that persist to get romoved. also rm alone can't delete a folder that isn't empty

Do you have stock/custom ROM for your device? Is unlocking bootloader possible for your device?

I don't think so, it's a pretty tough device to root.

I believe it is showing operation not permitted because of immutable bit set on those files (protects the files from modification and deletion). You can remove that immutable bit but it requires busybox binary. The command is busybox chattr -i FILE_PATH. You can also try logcat command to see if anything shows up when you successfully delete those files (just to know what might be reinstalling them). // Also, you need to do rm -rf, not just rm if the target is in a directory and you're not running the command within that directory.

You did it wrong I guess. There's a "safe" uninstall feature within Kingoroot app. This removes completely the app and the binaries from your device.

Open the app
Click the three dots upper right, find settings menu.
Click "Remove Root".

Your device will be rebooted and root should be removed.

Thanks. This does completely remove root, however this way I'm unable to replace it with the SuperSU binary. Is there any way to insert the superuser binary before removing root, so I can still have root access after removing Kingroot?

SCH-I925 Samsung Galaxy Note 10.1 (Verizon 4G LTE), Android 4.1.2

I think u should just re-root by other means than kingoroot


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

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

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

Try troubleshooting using logcat.


text:
How a boot loop prevents access to TWRP?
I found an old Samsung Note 4 of mine which I flashed a few years ago (Lineage OS if memory serves me right) and which I wanted to reuse for my son.
It is unfortunately stuck in a boot loop:

If booted normally, it goes though the "Samsung Galaxy Note 4" initial screen (black and white and then after some time there is a vibration and it reboots (in a loop)
If booted with HomePowerVolume-Up, a blue `RECOVERY BOOTING...." appears together with the Samsung Note 4 screen above, then it reboots (in a loop)
If booted with HomePowerVolume-Down it goes into Download Mode

I tried to flashed the latest TWRP  (3.2.3) via Odin - no changes
What is the reason of such a boot loop? Is there a bootloader missing? (I found a bootlader and flashed it, the flash was successful but the problem is still the same)
My main goal is to boot into TWRP in order to wipe and reinstall a new Lineage OS
Note: Following up on the comments and answer, I wanted to clarify a few things:

the Note worked fine with Lineage OS installed
it was then left aside
it was then (not sure here) probably wiped via TWRP (the only thing sure is that at most the wipe functionality of TWRP was used, to do a factory reset). This is new information obtained after the one who had the phone in hands told exactly what she has done.
and then the problems started

This is to make it clear that it used to have a functional TWRP and a functional Lineage OS, then a wipe in TWRP occured, and then it cannot boot to TWRP (or Lineage)

It's highly possible that whatever method you used to install Lineage OS, not only triggered KNOX but has also overwritten the recovery with one designed for Lineage.... https://en.m.wikipedia.org/wiki/Samsung_Knox

Which variant of note 4 do you have? Looking through the official TWRP devices page there are a lot of note 4 variants. I do not mean this in a bad way but did you choose the correct TWRP file for your devices variant? Also did you: "Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery?"

@BoLawson: yes, I am aware of the various versions and chose the one specifically for my Note 4. I also clarified my question with a note at the end to specifically state that the phone worked under that configuration

@Zillinium: Please see my update,a note at the end to specifically state that the phone worked under that configuration

Which bootloader out that big list of bootloaders did you flash. It is important to know because the possible key to getting your device back is to flash Samsung factory firmware for your device. After that you can start to customize again. However, back to the bootloader version Samsung has a security feature call roll back protection fuse. That prevents flashing older firmware. The only thing the bootloader will allow to flash is firmware equal to or greater than what was on the device.

A boot loop can be caused by several reasons.
• Incompatible Boot and Recovery Image's.
• System Modifications
• File Permission Errors
• File Owner Errors
• Incorrect Formatting Of Files
• Knox
And the last one i can think of is incorrect settings ( build.prop edits etc.. )
Yours seems to be the first one, or the last, Incompatible Recovery and Knox
Obviously you have had a working TWRP on that device before, so maybe you still have it from flashing the device years ago.
Custom firmware like Lineage OS can also require it's own recovery image, that is dependent on the corresponding Kernel version.
If your Lineage OS installation was for an UPGRADED Android version like 4.4 to 5.1, then a new kernel for 5.1 will have overwritten your 4.4 kernel, and now that possible working TWRP is useless... This became a huge problem with people trying to downgrade device's, as it requires a factory level flash. Odin may have the ability the downgrade the devices boot image ( kernel ). and TWRP will work again, but Knox will stay triggered.


text:
Export sleep data from S-Health
I am using a Samsung Galaxy Note 9 and a Galaxy watch to record sleep with the S-Health app.
Is there a way to export the data? I notice I can easily export heart rate data, however the sleep section doesn't offer the option.
I found the following question from a few years ago:
Is it possible to export the S-Health data from a Samsung S6 into a usable data format?
However is there a way to get the sleep data without resorting to developer type solutions as above? Perhaps a 3rd party app the can connect to S-Health?

It's not so convenient to do on a daily basis but you can export all your data from Samsung galaxy health.

In the top right corner click on the three dots
Choose settings
In the "Data" section choose "Download Personal data"
Click "Download" at the bottom of the screen
Verify your Samsung account password

It will download a bunch of csv files to My Files > Internal Storage > Samsung Health > Download > Samsunghealth_[your username]_[download date and time stamp].
One of them will be "com.samsung.health.sleep.[download date and time stamp].csv
Some of the information is useful, some is not.

Did they remove this option? I don't see the 3 dots.

They moved it.

On the home screen click on the 3 horizontal lines on the top left
On the screen that slides out from the left side, click on the settings wheel (looks like a cog or gear wheel) on the top right.

Follow the above answer starting from step 3.

On my device, they went inside "Internal memory > Android > data > com.sec.android.app.shealth"


text:
Deleted Email on Samsung Device
On Samsung phone I meant to click on an email message but instead I swiped it and it disappeared.  How can I undo this?  It didn't go into the Bin/Trash or Spam.

Did you check archive?

Click on All Mail on the left. When you see the message, open it, and choose the Move to Inbox option to "un-archive" it.
Just to add, the 'All Mail' system label on the left is not visible by default. To show it, click on the cog button on the top right > Settings > Labels > Show (next to the All Mail system label).
Alternatively, you can use the search feature to locate the message (the search box should be towards the top of the Gmail page).


text:
Error retrieving information from server [DF-DFERH-01]
Error retrieving information from server. [DF-DFERH-01]
I have a Sony Xperia XZ Premium running android 8.0.0. I have a problem when trying to go to the play store app and selecting the music tab. I get this error 'Error retrieving information from server. [DF-DFERH-01]'. I have seen errors like this on other android versions where you can fix it by clearing cache, deleting, and re-adding the play store app but it does not seem to work here.
Please assist. Here is a screen shot of it.

I have tried these solutions with no luck

Google Play error "Error while retrieving information from server [DF-DFERH-01]"
Play store - Wishlist server error DF-DFERH-01 - ZTE Blade III

Please note that I am asking about Android 8.0.0 and have not found solutions for that. Solutions for Ice cream sandwich and lollipop have not worked.

Our google-play-store tag-wiki has a list of those error messages. And for your case, it links to Keep getting message error retrieving information from server DF-DFERH-01 from the play store – have you checked that already?

@Izzy yes I have tried that exact solution with no luck, that solution is for Android 5.0. I think this may be a Sony Xperia XZ Premium specific issue on Oreo 8.0.0 because I tried on another device Sony Xperia XZ Premium with the same result.


text:
Huawei P20 lite double grey circle in screen?
I had my phone (Huawei P20 lite) in ultra battery saving mode and manually set the light to lowest possible (went hiking for 2 days and tried to save as much battery as possible) and when I tried to use it during the day, everything was so dark I didn't knew what I was pressing.
Since then, I have additional grey "button" on screen, which does...something weird. If I just put finger on it, I can drag it across the screen and leave it wherever I want. But, if I hold my finger on it for ~2 seconds, then it acts like a cursor and if I move it left/right/up/down, it just does same thing as I would press the most right button on the bottom of the phone (square).
How can I disable this "action" or how it is even called? I would take a print screen of the desktop, but the circle isn't shown on it. But here's a drawing, how it looks like.

It is the navigation dock which can be disabled from Settings → System → navigation system
Source - Reddit


text:
Music app overlay with control on volume level change
I'm newbie in android world (recently switched from windows phone).
And I really miss the music overlay that comes into place when you press volume level button.
In desktop windows it looks like this, something like that on the phone.

I really miss this overlay hence it allowed to pause music fast and fluid. I can't do it now on my phone. Only option I offered is lock screen widget but it's not handy - I use my fingerpring to unlock phone and actually never see lockscreen. And while using phone I have to go into music app and switch track or use its widget. That's pretty annoing. Is there any options to have similiar with windows functionality here?

Does your music app not show a persistent notification with media playback controls? Or is it not handy too? :-)

On pressing volume key? No, it's not.

Would it be an acceptable solution if you press a volume button and the notification bar drop down on its own automatically, giving access to media controls?

That can be an option, I need to see how it works

Have a look at this app https://play.google.com/store/apps/details?id=de.hinterhofapps.sliderwidget

Thanks, I saw it. It's screen widget and it is not what I was looking for. I need overlay on volume button press

Anton, what Firelord meant by "persistent notification" is in the notification area – i.e. when music is playing, draw down the notification bar and look whether its in there. I'm not aware there's something like that to act on the volume rockers, so the persistent notification is possible as close as you can get.

Thanks now I got it. Yes, I do have widget in notification area but it still not what I want to. I know that it can be impossible, so I just asking if there any chance to get this overlay

I have tried a number of media players and I don't think such a feature is offered by any of them. However, as a workaround, I offer this solution:
Whenever you would press a volume button, provided a music is playing, the status bar would automatically drop down, giving access to persistent notification of your music player along with its media controls.
Follow these instructions:

Install MacroDroid.
Go to Accessibility settings in your Settings app and enable both the accessibility services of MacroDroid.
Launch MacroDroid → Add Macro:

Trigger: Volume Button Pressed → Use Accessibility Service → Volume Up → Update Volume
Action: Expand/Collapse Status Bar → Expand Status Bar
Condition: Music Active → Music Playing

Make an another macro with same action, same condition, same action but choose Volume Down, instead of Volume Up.
Play a song, and test the volume buttons.


text:
How can I automatically connect to my company's wifi?
My Samsung Galaxy S6 with Android 7.0 automatically connects to my home wifi when in range. However, in my company, it only shows me a notification that I can click on to connect to the company's wifi (which then makes me accept terms by clicking on a button every single time.)
Is there any way to make this at least partially automatic, i.e. opening the page with the button automatically instead of just showing a notification? Or even saving my answer to this wifi page and using it during the next connection attempts?

So you are connecting to your companies guest WiFi which uses a captive portal, meaning you have to acknowledge T&C before use? This functionality is part of the WiFi network, not your device, it's authentication is typically only a few hours or a day or so, then must be redone. The only way around this would be to get your IT dept to whitelist your device's MAC address so it doesn't have to accept T&C, similar to how you would whitelist a gaming console at a hotel.

Thanks for telling me what they are called, that makes googling for solutions easier! I still don't see what prevents my device from doing this automatically. Even if it means doing e.g. a GET or POST request, I can't believe there's no software that automates this.

It would kind of defeat the entire purpose of a captured portal to have software to automate bypassing it. Each captive portal uses it's own unique way to authenticate you and to purposely defeat bypass attempts, each individual system would have to have a bypass mechanism build, there is no generic one. The right way to do this would be to either get your IT dept to whitelist your device, or use a different corporate network that does NOT require you to accept T&C, but honestly that would probably be against your organizations security policy. Sorry I don't really have an answer, just info

Oh, but those defeating apps do indeed exist, @acejavelin – and I've succesfully used at least one in the past (on vacation, to connect to the hotel WiFi, which used a captive portal).

@Izzy Never said they didn't... I just won't recommend any. :)

@acejavelin that would be a task for SoftwareRec.SE, sure :) I've not used any of them for quite a while, so I'd know none to recommend. But for a network you trust, why not?

Didn't know that site existed! Finally :)

This and the duplicates do not help?

It can be completely automated.
First, you need to know how button click data is submitted to the server: GET (less likely) or POST
If data is submitted to server using GET, just record the URL after submission. If data is submitted using POST, intercept the HTTP header when you click the button (there are lots of softwares for that; for example this Chrome plugin can log everything).
Now, install Tasker in your Android device.

Set Trigger as State ~> Net ~> Wi-Fi Connected and enter SSID of company Wi-Fi.
Set Action as Net ~> HTTP GET or Browse URL if button click data is submitted using GET. Otherwise, set Action as Net ~> HTTP POST or HTTP Head and enter the intercepted HTTP head data.

You can give a try to the app WIFI Web Auth. It can simulate clicking a button or filling out input fields.

Hello. What is your affiliation with the app WiFi Web Auth? The app has mere 34 reviews and just 1000+ installs. Furthermore, you tried to add this app as a recommendation in this edit too which is no less than a spam. I urge you to read our policy on  promotion. It is one thing to find an app useful and recommend it, but it is another thing to suggest it as if only promoting it.

I'm not the author of this app. My intention was not to promote it. (Perhaps i should do, because it's really good.) I was just searching for a tool that can automate the login process, and it turned out for me, there are not that many tool, that really can do this. So i just thought it could be maybe useful for others as well...


text:
Open Engineer Mode and run other hidden codes on Moto G 3rd generation device?
I'm running LineageOS ROM on my Moto G 3rd generation smartphone and recently I wanted to run some hidden codes of Android like *#06# for IMEI and so on.
However, none of this ones works correctly on my phone:

Phone information
*#*#4636#*#*
IMEI Info
*#06#
Calendar
*#*#225#*#*
Debug info for Google Play Service
*#*#426#*#*
Access Google Partner Setup
*#*#759#*#*
Engineering Mode
*#*#2486#*#*

The IMEI closes the dealer/phone app, while the engineer/service mode codes (the one in which I'm more interested) don't activate anything. Let's say that the dealer interprets correctly the code but doesn't run this tasks.
So knowing this, I would like to know if there is a way of looking if the relative services are on my phone? If it isn't the case, how I can add them or run from PC with USB maybe? Are the secret codes dependent on the ROM like I imagine or not?
Notes:
I tried hidden codes of other manufacturers like Samsung, HTC, ... too but no result obviously.

These dialer codes all vary by OEM in their stock ROM's... the codes for stock firmware are often easily accessible via searching the Internet or via apps available from various sources. However, how custom ROM makers handle these codes, if they implement them at all, is an entirely different thing again.
There are some standard-ish codes, like *#06#, but even this is not consistent across all devices in all cases. There isn't really a standard for other codes nor is there any incentive for OEMs or ROM developers to even implement many of them.
Many dialer codes are also passed to the carrier, for things like Call Forwarding, checking your balance of money or minutes, blocking Caller ID, activating Call Waiting, etc... although there are some standards, actually commonality more than a standard, between some carriers, these are entirely carrier dependent as well on how and if they implement them.
To answer your questions specifically, well, as specifically as possible...

I would like to know if there is a way of looking if the relative
  services are on my phone? If it isn't the case, how I can add them or
  run from PC with USB maybe?

Unfortunately, no... these are device and ROM dependent. I would suggest posting in the official support thread for your device and specific ROM to see if they have implemented in any way or there are alternatives that are specific to your ROM, device, and use case.

Are the secret codes dependent on the ROM like I imagine or not?

Yes, they absolutely are...
Source: Years of being an Android enthusiast, ROM developer, and XDA Recognized Contributor. :)

If you're rooted and have busybox and aapt installed on your device, then this little script might help reveal a lot of the ROM built-in codes.
To be run at root shell prompt on the device. All one single line.
busybox find /system/ -name '*.apk' -exec aapt dump xmltree {} AndroidManifest.xml \; | busybox awk '/android_secret_code/{getline;sub(/^.*="/,"");sub(/".*$/,"");print}'


text:
How to enable/disable apps using ADB (Android 8.x)?
I cannot get apps enabled or disabled using ADB.

Android: 8.0.0
Device: Samsung Galaxy A520 (SM-A520F)

I don't have root access to my device.
To get the list of the disabled packages I use:
$ adb shell pm list packages -d
package:com.samsung.android.game.gamehome
package:com.microsoft.skydrive
package:com.google.android.webview
package:com.google.android.videos
package:flipboard.boxer.app
package:com.samsung.android.ststub
package:com.sec.android.emergencylauncher
package:com.samsung.android.dlp.service
package:com.samsung.upsmtheme

Q1: Oddly, this list doesn't seem to include the apps I really disabled in the Apps section:

Briefing
Google Play Movies & TV

Why is that?
Then I run through the list and enable every package, e.g.:
$ adb shell pm enable com.google.android.webview
Package com.google.android.webview new state: enabled

Q2: Despite some packages are reported as "enabled" they are still in the disabled list:
$ adb shell pm list packages -d | grep com.google.android.webview
package:com.google.android.webview

Why is that?
Q3: How can I get the list of packages that I myself disabled in the Apps section and how can I manage this list using ADB?

Welcome to Android Enthusiasts! Our site has a nice search field. I've put the corresponding terms in, so you might wish to check these posts. About the reported failure: could it have to do with permissions? Some disable commands, in my experience, require root power.

Q1: Oddly, this list doesn't seem to include the apps I really disabled in the Apps section:

Briefing
Google Play Movies & TV

Why is that?

Your output already listed the two apps. com.google.android.videos for Google Play Movies and flipboard.boxer.app for Briefing app.
Optional: see my answer to know how to find an app's package name easily.
For your other issue:
This seems to be a problem in your ROM per se. My experiences with stock Android ROMs on Nexus 6 device and a near stock Android ROM on OnePlus 6 (Android 8.1.0) tell me this shouldn't happen.
Normally, the apps disabled using shell user are not listed in Settings app, but any app disabled by any means are listed in pm list packages -d or cmd package list packages -d.
Disabling and enabling an app without root access is simple. Run:
adb shell pm disable-user PACKAGE_NAME  # disables the app for the current user
adb shell pm enable PACKAGE_NAME        # enables the app for the user, regardless of how the app was disabled.

Thank you very much. Yes, you were right about the identity of those 2 packages. (I personally find it confusing that on the one hand you cannot see a package's class in the UI and from another - there is no shell command to establish package title by its class.) As for the command pm disable-user <package_name> - it perfectly did its job, yeah. Now I can enable/disable packages from command line!


text:
Package installation in Termux
I'm reading this guide that describes how to install the statistical language R on Termux. My installation journey is briefly outlined below.

I need to determine why nothing happens at Step #2 below. Anybody have an idea?

Step 1: Add the its-pointless package repository
I copy/paste the following text to Termux, hit enter, and the console spits confirmation text, and it appears everything works fine.
pkg install curl gnupg
mkdir -p "$PREFIX/etc/apt/sources.list.d/"
echo "deb https://its-pointless.github.io/files/ termux extras" > "$PREFIX/etc/apt/sources.list.d/pointless.list"
curl "https://its-pointless.github.io/pointless.gpg" | apt-key add

Step 2: Install required .deb packages
I then copy/paste the following code block to Termux, hit Enter on the keyboard, and nothing is output to the console. It appears nothing has happened. I try to copy/paste each line individually, pkg install r-base then pkg install make, etc., but nothing is output to the console and nothing happens.
pkg install r-base \
            make \
            clang \
            gcc-7 \
            libgfortran \
            openssl-dev \
            libcurl-dev \
            libicu-dev \
            libxml2-dev

Step 3: Configure your compiler with its-pointless script
If I can make it this far I'll simply copy/paste the following directly into Termux.
setupclang-gfort-8

Step 4-6: ...see the rest of the guide if you wish

So yeah, I need to figure why nothing happens at step #2 and I can't proceed any further with the install. Maybe I need to change directories at some point? Funny enough, even when I did a basic command such as ls nothing was printed to my console. Is there some permissions I need to change?

Are you sure are connected to internet (use ping)? Did you try "apt install" or "apt update" or reinstalling Termux?

I was using a demo unit at BestBuy. Now that I think about it, the demo software probably prevents this type of thing??? Although I was able to install Termux from the play store. It surprised me I was able to install stuff on a demo unit.

Sorry I have no experience with demo package or whatever language you are trying to install. I know about general usage problems of Termux or Linux package managers.


text:
How to mount (or auto mount) a USB stick formatted with ext4 and be visible or working with apps on Android 5 Marshmallow and later versions?
The question appears in variant forms1 just to say it is ridiculous on Android that ext4 is the default file system that doesn't recognize USB pen drive formatted with ext4 (but Android 4.4 recognizes it without any problem). As a Linux user, this is a big regression, and I still have not found a way for a USB to be detected as a USB, like pens with FAT32 or NTFS. I have root on my device.

1 Related questions:

Mounting a ext4 formatted sdcard on Android Marshmallow
Why partition gets unmounted automatically after some time?
External Ext4 card mounted only for root (!) on Android 5.1 64 bits
How to use an ext4 formatted sd card as external storage with working app permissions?

There is a paid app I used, there may be free ones too, since this search was done quite some time back
That said, I find it easier to use a custom kernel that allows this without needing an app. That's how I overcome the limitation and could be one option

We still need root. First I need to make a dir in /data/media/0/ (/sdcard)
mkdir /data/media/0/usb1/

which means USB is not detected as USB ever, but I can read data from apps that it is what I want.
After I made a script with:
su -mm -c "mount -t ext4 /dev/block/sda1 /data/media/0/usb1/";
su -mm -c "mount -t ext4 /dev/block/sda1 /storage/emulated/0/usb1/"

and using Script Manager - SManager, I made a favorite script and with the add-on to create a launcher, I made an icon on the home screen (I preferred shortcut instead of the widget), and on clicking it, it mount my ext4 USB pens.


text:
Where can I get more information on the sm tool (command) used in the Terminal
I have seen the sm tool used a few places for example here.
The way I understand it, it is a storage management tool but I haven't been successful in finding any more info about it.
Where can I find more information on this tool?

See if you can understand the source code here:  https://android.googlesource.com/platform/frameworks/base/+/master/cmds/sm/src/com/android/commands/sm/Sm.java

I'm not much familiar with code is there anything else available? Does Google/Android have info anywhere?

@Firelord I started looking into the code link you gave. I'm looking to figure out how to use the command sm forget UUID I'm not sure what the UUID is. When I do sm forget all I do accomplish what I'm looking for but I'm not sure what other devices its forgetting in the process. The source shows that its import android.os.storage.IStorageManager but I can't seem to find the code for this IStorageManager anywhere.

UUID is the identifier of a a storage device. http://go2linux.garron.me/linux/2010/09/uuid-linux-fstab-file-766/

@Firelord OK I took a look there but what I'm facing is that when I run blkid I get for my external SD card the same number that identifies the card under /storage. When I tried using this number in sm forget UUID it didn't work. From what I read from the link you provided it seems this isn't the actual UUID. How can I get the UUID? The options given on that link didn't help me. As I mentioned blkid gives me just the ID not the UUID and there is no /dev/disk/by-uuid/ for me to run ls -l on.

I'm sorry. I'm busy in some other work, so I cannot provide assistance for a while.

The sm tool is not an Android tool, it's a linux shell command.  Android devices have some shell commands located in /system/bin - the variety of these usually vary by version, OEM, and platform.
You can issue this adb command to see what tools are available:
adb shell ls system/bin

You can ask for help on each tool - for example, with sm:
$ adb shell sm -help
usage: sm list-disks [adoptable]
       sm list-volumes [public|private|emulated|all]
       sm has-adoptable
       sm get-primary-storage-uuid
       sm set-force-adoptable [true|false]
       sm set-virtual-disk [true|false]

       sm partition DISK [public|private|mixed] [ratio]
       sm mount VOLUME
       sm unmount VOLUME
       sm format VOLUME
       sm benchmark VOLUME
       sm fstrim

       sm forget [UUID|all]

       sm set-emulate-fbe [true|false]

Thanks for your answer. What I'm looking for is a little more info on the options for this command. I have already done the help but I'm still no clear on what all the options do, or how they work.


text:
Why using ADB command 'settings put global preferred_network_mode' doesn't reflect the changes in Test Settings?
I've been trying to search about changing network mode programmatically which was already answered, but I noticed that when using:
settings put global preferred_network_mode x
settings put global preferred_network_modex x

Changes doesn't reflect to the Test settings, which can be access through *#*#4636#*#*, and some device doesn't get the change in their phone signal literally after the command.
So question:

Why using ADB command 'settings put global preferred_network_mode' doesn't
  reflect the changes in Test Settings but manually changing the
  network preference under Settings or the opposite changing from Test
  settings using UI will reflect the change to each other.


text:
Advice to recover a bootlooped One plus One
Tldr: I now have a phone that works when it is plugged in but continuously reboots when it is not, shows the Oneplus logo and then reboots again. I am able to boot into TWRP or fastboot. I tried a wipe clean and flash Lineage 15.1 but still the same issue. Occasionally it gets a few seconds into the OS boot process, I start to see the lineage OS boot sequence and then it crashes again.
I had Lineage 15.1 on the phone, which I believe was flashed over 14.1 without a wipe (i dont remember). It was quite unstable, it used to crash and reboot couple times a day. And this particular time, it rebooted, then crashed again, and started the bootloop that it is in now. It was getting faster.. Initially it used to reboot to the lock screen, then crash in a second or 2. Then it used to come to the boot animation and then crash, and soon after just looping at the manufacturing logo. I did not flash or do any such tinkering recently. Yesterday, before I wiped, It was stable as long as it was plugged in to power, and then when I remove the power cable the boot loop would start. Now after I tried the wipe there is no such thing any more. It reboots whether it is connected or not. The only thing I did differently was use a cheap aliexpress cable that i bought recently and a old powerbank for a few minutes the day earlier, and given the behavior with it bootlooping on battery but not on AC, i was wondering if the battery pack or the cable fried my battery in some way.
Edit: Even after flashing a new rom I have the same behavior, works if it is plugged in, bootloop on battery.


text:
Connected to Turbo VPN - 10.13.0.42/30. Tap to manage the network
When I use a VPN app on my smartphone, the following notification message is shown

Connected to Turbo VPN - 10.13.0.42/30. Tap to manage the network

Why is it connected to 10.*.*.*? Isn't it a private network?
I'm using Turbo VPN 2.6.3

Yes VPN is a Private Network, not public. And 10...* is from private IP pool just like 192.168.. we usually have with routers. https://en.m.wikipedia.org/wiki/Private_network


text:
Listen music from OneDrive
I've a Samsung Galaxy A8 phone (android 8.0.0) and it's connected to my OneDrive accounts (both personal and business) where I store music.
I've tried downloading music to my phone, but I could only make the files available off-line, no proper download.
I've Google Play Music and Samsung Music installed, neither can browse OneDrive off-line files. I can play them with a very basic player (probably skin of one of before mentioned players?), but that's not a solution for me.
How can I listen to music from OneDrive?

I've tried downloading music to my phone, but I could only make the files available off-line, no proper download

To download music from Onedrive follow the steps below:

Click on the 3-dots next to the music file.

A menu with options appears. Select Save.

You will be taken to the folder where the file will be downloaded. As seen on the picture below, the default folder is Download. You can select another folder by clicking the arrow on the left. Click Save on the top right to start the download.

How can I listen to music from OneDrive?

To listen directly from OneDrive, click on your music file, then ►. The music file will be streamed online.

Thanks for the answer! It works for small number of files as I've "save" option for files only, but not for folders. Is there a way to save folders too?

Only "Keep offline" is available for Folders as far as I know, and you must have the "Premium" license(?) to use the option.

@MátéJuhász Use FolderSync to sync  or download the folder..

@AndroidQuesito thanks for the tip! I wouldn't think I need another app for that... You might add it as an answer as it solved my problem.

This does not work on Microsoft Android Surface Duo.
One drive advertising for Premium blocks Save feature.

Try out the OneSync app from the google store. It allows you to create a sync for your local (phone) folder with the onedrive's cloud location and keep the files locally in sync.

Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

There are a bunch of apps available for this, I wrote up a few here: https://www.blisshq.com/music-library-management-blog/2021/02/10/comparison-best-cloud-music-players/
Disclaimer alert: I can comment on Astiga as I operate that service. We made available a free, no-install OneDrive music player: https://asti.ga/onedrive-music-player .

Go to the page and Connect to OneDrive:

Sign in on Microsoft's site:

Once you've signed in, the music player's page will reload and show your folders:

Find your music and play!

It only allows browsing of your folders, playback of files, shuffling, repeats etc. To get the full "music library" experience you need to sign up. Let me know if you have any questions!


text:
How to Copy Link from android app?

Hello sir/mam how can i copy a link from any android app that has link inside pages
I have some whatsapp group joining link inside app
Every pages has a link of Whatsapp group i want to copy that link can u help me....
Your help is highly appreciated...
App link is
https://play.google.com/store/apps/details?id=com.whatsappgroupinvite

How To Create WhatsApp Group Invitation Link
Only Group Admin can create Invitation link to let join other people using this. Other participants of the Group cannot see this link until this link is shared by the Group Admin. You can create WhatsApp Group LinkTo create WhatsApp Group Invite Link, just follow the simple steps given below:
Step 1:
 Open your WhatsApp Group –> Tap the subject of the Group,    here just scroll down and you will get the list of participants with two more options: ‘Add Participants‘ and ‘Invite via link‘.
Step 2:
 Tap on ‘Invite via link‘ and on the next screen, you will    get ‘Join Link’ for your WhatsApp Group. Now you have to share this link with anyone to join it.
For sharing the link, you will get a direct option to share from this screen ‘send link via WhatsApp’ or you may also use ‘Copy Link’ & ‘Share Link’ options as well.
In case if you want to cancel/revoke this link, just tap on ‘Revoke Link’ option. The old invite link will not be working anymore. You can again create a new invitation link for the same WhatsApp Group.
That’s It.
This feature is widely used where you want to add a number of people in your Group. Instead of manually adding one by one manually, just a share will work for you.
REFERENCES
create-whatsapp-group-invitation-link-join - mashnol.org

I think this doesn't really answer the question. OP is asking how they can "copy" links that are included in apps

"Every pages has a link of Whatsapp group i want to copy that link can u help me..."    i think that the question is not verry straight forward, however the fact that the question included "I want to copy that Link" means that they aren't interested in other apps..

They need a way to copy those links, I assume those links are included in every row (see the screenshot). Or may be I may have misunderstood?

I'm not sure what the desired anwer is, but as far as i can tell, the only links in the screenshot are links to groups on WhatsApp  so the answer would be Step 1:
 Open your WhatsApp Group –> Tap the subject of the Group, here just scroll down and you will get the list of participants with two more options: ‘Add Participants‘ and ‘Invite via link‘.   ... however if the questioners desired answer includes hard coded links, it's not possible.. this is because it's probably not hard coded at all, it downloads a list from the WhatsApp server ( user based ) and shows the list in a ListView..

I guess you need to decompile the app APK file. Assuming the links are hard-coded, you could be able to get them in the source code.

search google play for open with and pick an app from the list and install it
I assume you will have notepad app or office app on your android
from open with app choose the notepad app to open links
now go to your app and click the links you want
copy links from the notepad app


text:
Disable or change audio ducking (lowering)?
The audio ducking feature seems to let apps decide to lower its volume or pause playback while a notification from another app is playing.
Even though this feature is turned on by default, I am unable to find a way to change the amount by which the volume is lowered (similar to how this could be done on any decent OS for PC). Or to just disable this feature.
Most answers to this question on the internet have been utilizing the fallacy that you should mute the notifications if you don't want them to interrupt your playback (of let's say, music).
Obviously I do not need this accessibility feature. I can separate sound sources just fine. Last time I checked this is one of the basic cognitive skills that most humans possess, but maybe I have superpowers after all.
I think it is clear what I want to achieve. No messing with the audio levels unless I say so. A user that is in control, is a happy user. I want to be happy too :(
There is probably no setting to do this. Since I am a developer myself, I wonder if there is some hackish way to modify the default audio ducking volume to simply 100%? Or just using something similar to 'about:config' / windows regedit for Android?

There is a method here (not tried by me) https://www.xda-developers.com/pokemon-go-audio-focus/

On Android MIUI 12.5.4 I found the option at:
Sound & Vibration > Sound Assistant -> Multiple Audio Sources (don't adjust media volume during incoming notifications or while audio from other source is played)
This made notifications play at normal volume when I was listening to music, and more importantly, no audio ducking.

Not sure on Android 8.1, but on Android 5.1, it's the following:

Sound & Notification Settings > Interruptions

Disable Interruptions on specific apps or all together

Does this actually do what I want? I just want notification to play during music playback, with the given volumes. Btw, this never happened on my previous Android, I think there might have been a setting to change this on that. The awful thing is that this happened after an upgrade that Android said cannot be undone due to policy updates.

Looks like "Interruptions" is another name for "Do Not Disturb"? AFAIK, it blocks the notifications completely, not lowering the notification volume only.

I fixed it by turning do not disturb on and off again to be honest- Android 11


text:
How to fix incorrect GPS time in Summer time (Daylight saving time)?
I live in the south of Brazil. At this time of year is in daylight saving time, where the time zone goes from -03 GMT to -02 GMT. The hour of my MOTO C PLUS (Android 7.0) has changed automatically to the right time without any problem, but the GPS time continues in -03 GMT Time zone.
I use an application that uses GPS time and errors are generated because of this difference. This problem is not in the application, as other users use the same version of the app without any problems and I also checked with app support.
I used GPS Status app to check that difference. I already tried do reset cached A-GPS data, but without any success.
Is there any way to change the timezone of the GPS clock?

Uninstalling and re-installing applications does not help. This affects all applications tested below:

Strava
GPS Time
GPS Status - screenshot above

@beeshyams, thank you for the tips! I deactivated automatic time zone and changed to Recife time, but that also change the hour of my phone. But when I change to South Georgia Time, which is -02GMT, the gps time got to the right time. this will serve as a temporary but not definitive solution to my problem. By the links that you passed me, this seems to be an old problem that happens with several android users ...

This is a workaround not a permanent solution
(OP is looking for a permanent solution as mentioned in comment but I am posting this workaround that may possibly benefit future visitors)
This problem appears to be a persistent issue as OP saw with multiple apps they tried and also reported in the Strava app forum Incorrect Activity Time with daylight savings and unsolved for last two years. Reasons for this are unknown but I guess it is an OS issue since multiple apps have faced this. Surprisingly, it has not been reported on Google Product Forums AFAIK.
There are two solutions mentioned in the support forum, both are temporary:

Changing the phone time zone to non-DST zone.
Modifying the .gpx file of the app to force it report correct time.

I have not attempted second solution.
Changing the phone time zone to non-DST zone
Daylight Savings Time (DST) seems to be related or in some way causing this. As a solution, one is required to change the time zone of phone to a time zone with the same time as yours but that doesn't use Daylight Savings Time.
How: Andrew T has provided an excellent answer here (How do I disable Daylight Saving Time (DST)?. It shows how a corresponding time zone can be chosen without DST while maintaining the correct time both with GPS and local time.
Based on that answer, following time zones were suggested - Cayenne /America, Recife, Montevideo (Interestingly, only some portions of OP's country Brazil follow DST , while Recife doesn't follow DST and hence included). None of these helped but OP tried South Georgia Time which doesn't follow DST and the GPS time was synced with local time
This spadework may help as a temporary fix (till DST changes are revoked) or in providing a permanent solution.

The GPS Status application has a setting to use UTC time.
Settings->Units & Formatting->Show UTC time
From a development point of view, it's usually simplest to using UTC time to perform all calculations, then you adjust to local time when displaying.
It's difficult for me to understand exactly how you are using this time reading, for example, whether you are automatically or manually checking.

Unfortunately changing this setting in GPS STATUS only changes the view only in the application itself, in the other applications continue with the same problem. I discovered the problem in the application strava, which uses this data to record location data during a physical activity (cycling in my case) and allows comparing the data with other users who made the same route at the same time. With the bug quoted, I can not make this comparison, because strava considers that I did the activity an hour earlier than I actually did.


text:
Can a android device really connects to Satellite using when LocationMethod set to "Phone Only"?
All these years I was thinking like to get device location, android phones connects to nearby cellular towers or wifi. But recently I found another option in Settings > LocationMethod > "Phone only". Once I set LocationMethod as "Phone Only", I turned on the "Flight Mode"(No wifi and No network. Then I turned ON the Location Services & Opened Google maps and its able to find my current location when I'm outside the building.
I did the same thing inside my home and it couldn't show my current location. So is my android device really connects to satellite to get my location? If yes, how can a small & low power device send and receive signals to a satellite which orbit above 100km high, when it struggles to get a signal from a cell tower which are few kms away?

Many smartphones have a built-in Global Positioning Satellite (GPS) receiver.
This receiver picks up signals from GPS satellites orbiting about 12,500 miles above the earth's surface.  If it receives simultaneous information from four or more satellites, it can calculate the position of the receiver on (or above) the earth.
There is no transmission from the receiver to the satellite.
The transmission rate from the satellite is extremely slow, 50 bits per second.  This allows a single signal to be transmitted at low power from 12500+ miles away.
The cell tower must transmit a different, high data rate signal to each device using it.  Thus the problems with sending many complicated signals even a short distance...


text:
How do I make the Google Assistant notify me when I get email from a specific person using my S8?
I have a Google Mini & the IFTTT app but I can't figure out how to make Google mini make a voice notification when email from a specific user arrives. Is there a way to do this?
I use Gmail & have an S8.


text:
Remotely disable Factory Reset Protection (FRP) for a damaged phone
I have a brand new Samsung J6, worked without problems for a few days and suddenly got stuck on the Samsung logo when powering on. Managed to enter the recovery menu and delete the cache partition, after which the phone started, but the touchscreen wasn't working. I tried restarting in Safe Mode, but the problem persisted. After that, I went back to the recovery menu and did a factory reset. Touchscreen still not responding to any input.
I contacted my carrier to send the phone for service, but they require the phone to be unlinked from a Google account (basically, Factory Reset Protection). As far as I know, FRP won't trigger if you perform the factory reset from the settings app on the phone, but that's not an option due to the non functional touchscreen.
I've been looking at what the Google console offers, but there doesn't seem to be a way to decouple the phone from the account, it's mostly to deal with lost or stolen devices. I tried the remote wipe feature on another phone, but that still triggers FRP.
Linked account is part of G Suite, though I don't think there's any special phone management system in use.
Is there a page where I can tell Google to stop associating that particular phone to my account?
I've found nothing of the sort in the following pages:
https://myaccount.google.com/device-activity
https://myaccount.google.com/find-your-phone
https://www.google.com/android/find

old question, but simplest workaround is using external keyboard and mouse connected via usb-otg adapter

You can log in to Gmail from other system. Go to Manage my account. Under security option you will find devices Activity. You can select your mobile and choose forget devices. This will remove your mobile from Gmail.
If you can use other working screen. Start mobile and use find my device to remove account.

I don't think this suggestion would help, but it can be a step to achieve something else. See this answer: https://android.stackexchange.com/a/199824

You are supposed to remove your Google account from the phone before performing the reset. Now that you have reset the phone, your carrier service technician won't be able to get back into the phone without your Google login credentials. The only way I was able to overcome this was to reflash the stock ROM. Then when the phone boots up, it will be seen as a new device. That worked on my phone. Samsung may have defeated this method on the J6.

Reflashing stock ROM would not always disable FRP. In my case, overwriting FRP partition or  using a custom ROM worked.

Sadly, due to the non functional touchscreen, it wasn't possible to interact with the phone to remove the account.

I had assumed FRP works by checking the phone's IMEI against a Google database, but Firelord's comment implies it's done locally. In that case, not much chance to be able to unlink the phone from the account from the web, but it would allow someone to overwrite the FRP info if they have physical access to the phone (which, IMHO, defeats the purpose of theft protection).


text:
Add new account to Twitter app on Samsung Tablet
I am on Samsung Galaxy Tab S2, Model SM-T715Y, running Android Version 7.71.1-release.15,
 trying to follow the instructions from
https://help.twitter.com/en/managing-your-account/managing-multiple-twitter-accounts
to add a new account to my Twitter app.
However I cannot find the "Add existing account" option as described.
The top menu shows:
"Share", "Drafts", "View Lists", "View Moments", "QR code"

but nothing about accounts. There is no "down arrow" icon.
The profile menu shows:
"Profile", "Lists", "Bookmarks", "Moments", "Twitter Ads", "Settings and privacy", "Help Center".

Clicking on "Settings and privacy" shows under my account:
"Account", "Privacy and safety", "Notifications", "Content preferences"

and under "General":
"Display and sound", "Data usage", "Accessibility", "Proxy", "About Twitter".

I don't see where else I could find that option.

is your app updated?

Swipe from left to right in the Twitter App
Then Click the arrow pointing down near your name

There is an option for Create New Account and **Add an Existing Account"

Reference link.

happy to help..


text:
Why do I have enter all my logins on every app on a new Android phone?
I've just got a new OnePlus 6. It's installed my apps from my old phone but every one is asking for my login.I have loads and remembering the logins will take ages.
On websites Chrome remembers this, does it not in apps? It doesn't stores all this stuff in the cloud as part of backup?

Chrome "remembers" your credentials because you specifically allowed it and it's a feature of that app. Android is not Chrome, and part of it's security is that credentials like this are NOT stored in backups that are done by Android. If your applications can use your Google credentials (or other accounts stored as accounts on the device, not individual credentials) than you can enter the information once and allow the application to access those stored credentials. I would suggest that you look at some type of universal password manager, such as Enpass or Lastpass or something similar.

Google passwords isn't a chrome feature... It just seems so backward apps can't access saved passwords (iOS) supports it now we move from websites to apps.

Anyway my question is to be certain this isn't supported, done way I didn't realise... Seems it's a feature of Android right?


text:
How to stop checking for mail and asking for backups?
My mom is using Android 6.0.1. The problem she was having last week was that her phone was checking and downloading her email, and she did not want that. So I signed her out of her Google account, which fixed the email problem but created a new one. Now the phone is spawning messages that her phone is not being backed up (presumably because she is now signed out of her Google account). She does not like those messages either.
What is the best solution to this problem? I.e. stop the emails without disabling other phone features. Thanks.
Galaxy J3 Luna Pro

Disabling the email app solved my problem without introducing new problems.


text:
Error in Galaxy tab a: 'Unable to restart your device. Verification failed' after supersu
I own a Galaxy tab a 10.1 with s pen (2016). I flashed via odin, twrp 3.1.1.0 and the system booted fine. Then I flashed the last version of SuperSU and since then the system doesn't turn on and I get the famous
Verification failed. Unable to restart your device. The integrity verification has failed. You need to restart your device to factory default settings. This will erase your data.
As I can't access my data in twrp, I tried to flash no-verity-opt-encrypt (6.0) but it doesn't help and I still can't access my data on the internal storage from twrp. Before I do a factory reset, I'd like to backup my data. Do you know if it's possible or how can I fix this error?
Will flashing the stock firmware help?

Do a backup of whatever you have left of your ROM. Move to computer. Use Odin and flash stock ROM, then flash the AOF8 non Knox kernel from XDA. Flash Magisk 17.1 or lower. Boot. Check to make sure you have the proper TWRP for your device! Go to Lineage or AOSP and find your ROM for your device. Flash it. Flash Magisk 17.3.

so my data is lost ? Do you have any idea how to save it without wiping the data partition?

by the way I couldn't find AOF8 non-knox kernel for this device in xda. can you please send a link?

If you didn't erace data partition, it's still there somewhere, but the path is corrupt. Make sure you install BusyBox, you can find a flashable static BusyBox on XDA. But like I said, flash just your system partition first which may restore the path to your data, but you might loose root which is probably a good thing. Magisk my friend.

Uhh, ok. If you're able to boot to TWRP, click mount and put a check mark in each box. Go back to TWRP file manager and poooof you shout see what you're looking for. Backup all partitions, then do a factory wipe.  Go to restore and only check "data". I suggest you root with Magisk (system-less) and find yourself a sweet custom ROM like AEX.

Thanks but I can't mount data. I have omb in my internal storage under twrp.


text:
S7 Edge possible hardware issue
I have this Samsung S7 Edge. Phone worked fine. Then I placed it in box. After 4 months I decided to use it again. Of course battery was empty. I charged it a bit, and it would not go past the Samsung logo screen.
I have tried all things that I found on internet, like resetting it, and clearing cache but it did not fix the problem.
I took it to service, and after couple of days I got reply that the flashing did not fix the issue. Service man said that one of the chip is bad, and that is the reason it does not boot up. Also he said it is known problem with S7 phones. Fixing it is more expensive then to get another S7.
I do know hardware failure can prevent the boot, and many other things. I am wondering at the statement 'It is known problem to S7 phones'. If he is not telling the truth, I would rather try with another repair shop, before throwing the phone away.

Hardware failure surely can prevent successful boot. Whether this guy is being factual or not is something only you can decide. Probably trying another guy wouldn't hurt, especially if it OEM /authorized center

I rephrased the question. Certainly hardware can do all kinds of things, but it is a known issue with S7 series?

Hardware failure will indeed cause a phone from completing the boot sequence without a doubt. If you own the device outright, I would suggest flashing a custom ROM such as AEX. Runs flawlessly for me.

Download ODIN flash tool on your PC.
Go to the site Download Centre|Aosp Extended, find your device and download.
Find  a TWRP image.tar for your device.
Download Magisk 17.1 from the XDA site.
Plug phone into PC and open ODIN. If ODIN finds your device, you'll see "COM3" (or whatever) at the top right.
Put a check mark in the "AP" option.
Put the TWRP.img.tar in there.
Click start.
Boot back to recovery and click wipe and swipe.
Move the ROM you downloaded from PC to SD card.
Reboot to recovery.
Click install.
Find the ROM, click and swipe.
Boot to system. If it boots (takes about 3-5 mins) you're good.
Optional: boot back to recovery and install Magisk.

Now you have a great ROM and is rooted. Once you're happy with the device, boot back to recovery and make "Backup". By the way, you will not and cannot backup and restore unless you get a perfect image and all partitions into some sort of 0755 folder with a blocker file in front on your PC. Then, you need to decompile, and recompile into a flashable zip. Not very applicable.


text:
What android icon app is this?pls help

Please help me identify the icon encircled in my attached photo..thank you.

Apparently it has something to do with you messenger app. Long press it and choose info. If it gives you an option to uninstall, it's a user app, uninstall it. If it doesn't, it's a system app. Force stop, and see if your messenger still works. Myself, I'd just uninstall the app if it's causing problems. If not, hide it.


text:
Automatically change wifi and bluetooth MAC address
I recently learned that it's quite easy to track people with their wifi MAC address and Bluetooth address in stores, etc. I was wondering if there are any drawbacks of changing these addresses regularly (eg daily) to prevent such tracking? I was also looking for apps that would do this but couldn't find any.
Is it impossible or problematic or conscious people just turn them on/off all the time and the rest doesn't care?

Changing / spoofing Bluetooth and WiFI Mac addresses are a concern to those who value their privacy , especially to prevent your location being tracked . Mac address of your WiFi router is a dead give away of your location and since most apps ask for "full network access" they can be used to track your physical location.
Changing these is a good idea if you want to prevent that. Unfortunately, this requires root (AFAIK). If your device is rooted and has xposed-framework installed, Xposed modules Xprivacy Lua for Android 6.0 and above (not Pie) or Xprivacy for earlier versions (both by same developer) are well recommended. There are other Xposed modules too that claim to do this.
Except for a small minority most don't care IMO


text:
How to set default Home screen on Nougat/7.1.1?
It's driving me crazy.
On a Moto G5s Plus (with Android 7.1.1) how do I set the screen I want as the default one, so that is shown when I press the Home button?
At the moment the left-most screen (of 3 screens) is the default. I wan to set the middle one as default one.

I already disabled Google Feed.
I already tried to long press one screen, get the setup view (change order, remove, Widgets, etc) but there is no icon (usually a "Home") at the top of the screen to be pressed for setting the default screen. I find this method everywhere but doesn't behave like that
I already tried to pinch-in with 3 fingers; nothing happens

Did you try this. I vaguely recall doing something similar on this device (currently not with me to test)

I know that method but doesn't fit my need. And I read that "The left panel is the default Home panel". No way to change behaviour? Why such opinionated limit?

Long press on screen, then hold and drag wanted screen to left (first) position


text:
Can video recording be auto activated when camera app is started?
In Nougat, the camera app can be started by double pressing the physical middle button on the phone. Many times I forget to press the video recording button and keep holding the phone up, thinking video recording is going on and much later realize it wasnt started.
Is there a way to start the video recording without having to explicitly press the record button? Ideally, I'd want to take my phone out of my pocket, press just one button and that should be enough to start the video recording. I shouldn't have to spend time typing my pin to unlock the screen or searching for the brightness slider when running from an indoor location to an outdoor location and then start the camera app and press the record button.
If it would be possible to program a patch for it, I should be able to do so, but I need to know what would be an efficient way to get the one-button-press-video-record functionality.

The solution might prove to be app specific, so it would help if you mention your camera app's name. If you're using stock Camera app, mention the device name, Android version and Android build number (under Settings -> About). Thanks!

I'm using the stock camera on 7.1.1. Build: NMF26X.J250FXWS2ARC2.

A custom widget ( start recording ) on your homescreen would work, but you still need to enter the PIN...
Maybe a custom lock screen with a record video button and unlock button, or maybe use the stock lock screen shortcuts to open the camera, manually switch to video and start ( no PIN entry )
The best way to do what you want might be to use key overrides and designate a volume key to camera key...
Your main limitation is the lock screen PIN, you could hypothetically use a shortcut to the record video intent, placed on a custom lockscreen, but not sure.

Since the stock camera can be started by double pressing the physical button and without having to enter the pin, I may need to only apply a patch that auto-starts video recording when this action is triggered. Or perhaps build my own camera app that gets triggered and auto-closes the stock camera app before running. Tried Google searching but couldn't find helpful pointers.


text:
Lg v35 SLO mo videos playback on PC
So i captured a couple of SLO mo videos with my LG V35 Camera and they play fine on the phone (showing the SLO motion), but when I copied them to my Windows PC and used Adobe Premiere and VLC to play them back they played at reguly speed, how do I see them in SLO motion.
I suspect the 240fps is encoded but how can I just get the SLO mo video without having to re-render it?

You have to export the video. This reddit answer is for the V20, but should be similar to the V35.

After shooting the slow mo video, open that video up, hit the edit button(pen) then use the sliders to choose what you want saved in 1/8 or 1/4 or 1/2 or 1x speed then hit save.


text:
What to do when "Stop Supervision" does not stop supervision in Google Family Link
I was using the "Google Family Link" parental-control software to supervise a device.  I wanted to stop supervising the device.  So, in the Family Link parent app, I tapped "stop supervision".
Google sent an email saying that I'd stopped supervision.  But Family Link continued to show a notification on the device saying that it was under supervision, and it still continued to forbid certain actions on the device.
Even rebooting the device didn't help.
What's the solution?

Hi! I have shortened the title. I have added a tag for the software instead of mentioning it upfront in title (can still be searched equally in search engines and here). And thank you for self-answering here. :-)

Hi :) No problem.

I've edited the title and tags more.  If we leave the name of the software in the title — even if it's only at the very end of the title — this will make it more obvious to Google searchers that the question is about Family Link.  So this would be a good thing.  Right?

It turns out that the solution was simply to wait for several hours.
Within three hours, the notification disappeared, and it became possible to easily and successfully uninstall Google Family Link from the "child" device.
Edit
I'm not 100% sure, but it seems to me that, on the latest version of Family Link, it's unnecessary to wait even for a few minutes.  Instead, I think it may be enough to simply open the Family Link app on the "child device".  The app should do some checking and immediately realize that supervision has been stopped.


text:
Can I anyone tell me what these circle icons are?

Can anyone tell me what these circle icons are

Assuming the grey circles with lower half circle, it is the Upday news app.


text:
Xiaomi Swipe up brings Browser, how to change behavior?
After updating to the new MIUI 10, swiping up from the home screen now brings the stock browser rather than the former default (Google search).. and there is no option to change that behavior.. how would you restore the original search app??

after lots of research... I have come to realize that you should remove the stock browser completely in order to restore Google search app as the default...
removing the browser requires a computer and an app called "Xiaomi ADB/Fastboot Tools by Saki_EU" that can be found here:
https://www.reddit.com/r/Xiaomi/wiki/tools


text:
Can I remove FRP with Heimdall/Odin?
I have a Samsung Galaxy S7 with FRP-locked, USB Debug is off and I am trying to disable FRP and enable USB Debug. Is there any way to do this with Odin or Heimdall?
I also have the stock ROMs for the phone, and no, the previous owner does not remember the gmail account she used for the phone. The Model number is G930P, and the carrier is Boost Mobile (Sprint, USA).

Welcome to Android Enthusiasts! Have you already checked with out factory-reset tag-wiki (watch out for FRP there)?

The answer to your question is no.
Without a Samsung Engineering firmware load that has adb and USB debugging enabled in the setup wizard this is not possible, and I have never seen one leaked out for any Snapdragon based S7, so the answer is simply no.
Remember, FRP is DESIGNED not to be able to be bypassed or defeated, every time a exploit comes out, it get's patched, and this device just got another security update this month.


text:
Boot loop, random crashes, flashing won't help [Galaxy S4 VE GT-I9515]
I'm in dire straits. I have been using an unofficial LineageOS port for almost 2 years. I was going to give the phone away to my buddy as a Christmas gift, he only has an S3 mini with a shattered glass. Literally minutes after I paid for my new (used) phone, my S4 screen went completely pink at the same moment I received a message. The vibration from the message notification turned into a loop while the pink screen stayed on. I used to get the pink screen every now and then, but usually only for a fraction of a second. After that I only had to lock and unlock the screen to continue operation. Several other users have reported this minor bug.
After removing the battery, the phone would go into a boot loop. I re-started several times and it did boot up again once after several minutes of a black screen, but before I could do anything, like save my current day's data, it went pink again. The worst part is I couldn't even enter recovery for whatever reason, it would just re-boot but never go beyond the Samsung splash screen. Download mode did work in the beginning so I used the chance to flash several other TWRP ROMs, and did manage to boot to recovery once, again only seconds before the screen went pink again.
After these experiences, it behaved like the battery would be drained rapidly. The amount of time that the splash screen would show up decreased from the full time to only a fraction of a second. Likewise when I plugged in the charger, it would only flash the charging logo before going off again. After several re-tries, it wouldn't even vibrate anymore when connecting the charger.
I thought my S4 had died on me, and that I had watched it fade away slowly and painfully, until after several hours of charging, it turned on all of a sudden, but only for the Samsung splash screen. After that it seemed completely dead again. Pretty random behavior, but at least a little sign of life.
I already tried my older battery, which let me power it on for a while, before eventually reproducing the same behavior until it also wouldn't turn on again. Luckily, I have now gotten a third battery (all three original Samsung), and with that it would immediately power on again, and go into a boot loop after the Samsung splash screen. However this time I could enter recovery on the first try, so I tried:

Wipe Cache/Dalvik
Flash latest LOS from first post
Wipe System/Cache/Dalvik
Flash latest LOS from first post

In that order. The first options resulted in the same boot loop as before, while the last options finally showed the LOS boot screen for a couple of seconds, until the screen turned pink again. I had to remove the battery to start over.
So I finally gave up on LOS and tried flashing Stock with Odin, as long as it would let me enter download mode. All went normal, but now after the Samsung splash screen it simply stays black. Tried again, now the screen only stays black a couple of seconds until it reboots. How can that be after a Stock ROM flash?
So I let the battery fully charge. For the first time since the start of the problems, the LED would turn on, first red then green. I pressed the power button and lo and behold, the Samsung boot animation (after the splash screen) showed up. I was hopeful for several minutes (normal after Stock flash) until it went back to boot loop.
I couldn't even factory reset because the stock recovery Android icon would only show up for a couple of seconds before the boot loop resumed. So I flashed latest TWRP again, and started flashing LOS when the after several seconds the screen turned pink again. Tried flashing stock with Odin once more, phone shut off midway through. I have just completed my third stock flash, and it went straight to boot loop. However this time it would let me enter stock recovery and I did a complete factory reset + wiped the cache partition. Still stuck at boot loop.
I'm at my wit's end.
Edit: Tried it with a stock ROM from a different carrier, same result.