yashsingh1/xdaforums huggingface dataset:
[Android Software Development] pscheven:
Hello.

We develop an application which is used for outdoor activities (hiking, bicycle, mountain bike, ...) and one of the main features of the application is to record the track of the user thanks to the GPS of the smartphone / tablet in the background in order to save it on the user account.

In order to do that, we start a foreground service with wake locks and a persistent notification during the recording.

This feature is optimized to use the battery as few as possible.

However, when battery optimizations are enabled on the device, the record of the track doesn't work properly in the background, which leads to straight lines in the track, which becomes unusable.

We have managed to detect that battery optimizations are enabled via isIgnoringBatteryOptimizations() method of PowerManager and redirecting the user to the appropriate procedure to disable battery optimizations manually.

However, it is not very user-friendly.

Our application uses the Android standard location provider and not the Fused Location provider in order to allow using the GPS even in airplane mode. It doesn't request the ACCESS_BACKGROUND_LOCATION permission because it is not recommended and requires a manual review by Google.

We have some questions :

Is it normal for a location based app which records a track in the background not to work properly when battery optimizations are enabled? Or is there something else to take into account / enable in our code / configuration?

Would the problem occur less often if we use

the Fused Location Provider

activity recognition feature (with ACTIVITY_RECOGNITION permission)

In our use case, is it really forbidden and subject to ban of the application on the Play Store to present to the user the popup to request to ignore battery optimization (with permission REQUEST_IGNORE_BATTERY_OPTIMIZATIONS)?

If it is forbidden, is it normal that some competitor apps which have the same feature display this popup and are still published on the Play Store?

Is it allowed to present this popup if we enable a live-tracking feature in the application to allow the location of the user to be followed by other people for safety reasons (in that case, the application may be allowed for exception "Safety app - Apps that keep their users and their families safe." listed here : https://developer.android.com/training/monitoring-device-state/doze-standby.html#exemption-cases)

Thanks in advance for your help.

Best regards.
[Redmi Note 10 Pro] gakker360:
Hi Gurus,

I have been banging my head over a problem i cant seem to figure out. I have a redmi note 10 pro Global version (sweet), The problem is that the phones works fine with ADB, the device shows up fine. I boot it into fastboot mode and it doesnt get detected. tried different wires, different laptops, tried another Mi Phone with the same setup and it worked fine on ADB as well as fastboot.

This one just doesnt connect at all in fastboot. If someone has a faced a similar problem and got over it, any leads you might have for me to fix this, i would love to try.

P.S. theres no issue of drivers, the device doesnt do a beep at all in the first place, the same drivers work fine for other Mi Devices.
[Redmi Note 10 Pro] Lycox:
Having the same situation. Too bad. Hopefully, someone has a solution.
[Redmi Note 10 Pro] ivarundave:
Are you using Win 10 for the Adb fastboot detection? I've read some issues with OS and limited adb commands. Are you able to detect your phone in fastboot via MiFlash?
[Redmi Note 10 Pro] RAMBO29:
I had an older phone with same issue years ago. Turns out it had two fastboot modes. Resolved it by specifying fastboot mode(A, I think from Abd command) with a command.
[Samsung Galaxy S22 Ultra] droidDHD:
I have Pixel 6 pro and have S22 Ultra, when I do photos side by side, S22 Ultra can't make so good photos. Colours are washed out, details are missing. Even same zoom level photos with pixel have more detail and for example, you can read letters of object you take photo (carbord box with black letters) and on S22 ultra you just get blurry black line.

Expert Raw gives better output, but still can't match Pixel 6 Pro.

So what I see hardware is there and sometimes S22 Ultra comes close, but just point and shoot not satisfied with such camera for price of phone.

Only hope is that Android 13 and software update might get things right. Please share if you know.
[Samsung Galaxy S22 Ultra] pjaysnowden:
Your s22 Ultra is faulty then. My phone taste fantastic photos...Full of crisp detail. Colour is a bit lacking....admittedly.
[Samsung Galaxy S22 Ultra] droidDHD:
I am not saying that there are crappy photos, but mi 11 ultra and Pixel 6 Pro are making better ones. And in all reviews there are this a bit of better detail with Snapdragon version.

So I just looking for ways to get S22 pictures to be natural colour and looking at least like Pixel 6 Pro.

But on paper S22 Ultra should be making better pictures because of all camera modules etc.
[Samsung Galaxy S22 Ultra] pjaysnowden:
I still reckon you have a dodgy phone. I replaced my mi11 with a S22 Ultra. The photos are waaaaay better.
[Samsung Galaxy S22 Ultra] droidDHD:
Just small crop from S22 and Pixel 6 pro, this is what I am talking about.... 1st Pixel, 2ns S22 Ultra
[Samsung Galaxy S22 Ultra] pjaysnowden:
The top one is the better....
[Samsung Galaxy S22 Ultra] droidDHD:
2.9 MB or 2.4 MB file?
[Samsung Galaxy S22 Ultra] pjaysnowden:
2.9mb
[Samsung Galaxy S22 Ultra] droidDHD:
yes that's from cheaper pixel 6 pro and it's better 🥺
[Samsung Galaxy S22 Ultra] _GRIZZLY_:
Pixel series from years had and still have very good algorytmics, software and all this make very good work.

Maybe in paper PIxels cameras don't look like other devices but in real this devieces from Google can make very good photos (not always movies) even after updates, and presentation next models (read aging device like samsung can do it)

Samsung do not focuses to do possibility maximum good software like Google in PIxel for cameras because easier and more profits is show new device for samsung.
[Samsung Galaxy S22 Ultra] Frau Son:
Pixels have always been the best camera phones simply just for their pre- and post-processing, especially now with Tensor.

I saw reports about the camera quality being worse for the Exynos variant compared to Snapdragon on the S22 Ultra though, so for sure this is a factor as well. Europe just always gets screwed over.

There's not much you can do; did you try using the optimizing feature from the S22 Ultra's gallery/photo editing app? Heard it's pretty good. Otherwise you're probably stuck with either "blurry" photos (still good ones though!) or you need to tweak 'em manually.
[Samsung Galaxy S22 Ultra] droidDHD:
Expert Raw+ good light can do something close but still, it's 400 EUR more expensive and I need to make photos look better 🥺🥺🥺.

Yes they aren't garbage but even far from Mi 11 Ultra.
[General Topics] corepda:
Hi guyz I got a new O2 atom life but I didn't come across with any specific thread here in XDA for this phone. Can anybody enlighten me as to which place I should go for all the things I have mentioned in the title. I would like to know what all support XDA has to offer for Atom Life users. I wish if we can have a dedicated thread for this marvelous phone. Looking for some advice from Our seniors over here.:)
[General Topics] hdubli:
katyal bhai...please look into Atom section, u will find lots of them and enjoy :)
[General Topics] corepda:
Thanx hdubli bhai,

I am glad to find an Indian fellow in the seniors list. Thanx for the information. I did search but to no avail so I tried to open this thread just to make it a nice information source for the support of O2 Atom Life. Good you replied & Bahut badiya lage raho :)

Regards

Sak
[LG G6 Questions and Answers] tracid1987:
Hello

I have seen a lot of posts here about antirollback function while downgrading and its not clear to me. They are mentioning some rollback counter but i cant find any.

I have an european version H870

in the service menu it says:

SW version info: H87030b-EUR-XX

Factory version: LGH870AT-00-V30b-EUR-XX-NOV-05-2019

Anti-rollback version: APPSBL(LK):0 ,SBL1:0, TZ:0, RPM:0 (displayed in red colour)

Other data in the attached screenshots.

At the moment i am on Android 9 and i want to downgrade to Android 8 to check if it will solve the lagging issue.

My question is: can i downgrade to Android 8 without being afraid of bricking my phone? How do i know if the anti rollback function is active or not? The text is in red colour but i dont know what does that mean.

I cant find any "ARB00" or such data anywhere.

My phone is not rooted and the bootloader is locked so if i brick it i am not sure i can repair it.

If anybody can serve me useful information i would really appreciate it.

Thank you a lot
[Xiaomi Mi Mix 3 5g Questions & Answers] Romulator:
I really appreciate the work of Inkypen and others for continuously supporting our Mix 3 5G, e.g. with up to date Pixel Experience ROMS!

What bothers me about Pixel Experience, through, are the built-in Google Play services.

So I wanted to use Inkypen's sources from Github to build my own LineageOS 19.1

These were my two custom .repo/local_manifests/andromeda.xml files:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="Inkypen79/kernel_xiaomi_andromeda" path="kernel/xiaomi/andromeda" revision="upstream" remote="github" />
<project name="Inkypen79/device_xiaomi_andromeda" path="device/xiaomi/andromeda" revision="lineage-19.1" remote="github" />
<project name="Inkypen79/vendor_xiaomi_andromeda" path="vendor/xiaomi/andromeda" revision="lineage-19.1" remote="github" />
</manifest>

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="PixelExperience-Devices/kernel_xiaomi_andromeda" path="kernel/xiaomi/andromeda" revision="twelve" remote="github" />
<project name="PixelExperience-Devices/device_xiaomi_andromeda" path="device/xiaomi/andromeda" revision="twelve" remote="github" />
<project name="Inkypen79/vendor_xiaomi_andromeda" path="vendor/xiaomi/andromeda" revision="lineage-19.1" remote="github" />
</manifest>

No other changes to default LineageOS 19.1.

The ROMs built well but didn't boot on my Mix 3 5G.

Can anyone help me build a working GMS-free ROM?
[OPPO Find X5 Pro Questions & Answers] GUARDIANBD:
Hi all!

Got an Find X5,and the vibration seems to be low.

The bar is set to maximum bit still low vibration..

Any way to fix this?
[Google Pixel 7 Pro] roirraW "edor" ehT:
Spoiler content hidden.

Trend Micro says both of these sites are malicious.

Full story - I recently changed router brands. Our new routers have the ability to block malicious sites that are trying to be accessed. Thankfully, this isn't happening on my rooted phone - it's happening on my wife's Pixel 7 Pro which is unlockable but is locked. The same was the case a week and a half ago with her Pixel 6 Pro. Problem is, that my wife has no idea which of her apps - I'm guessing a game, but who knows - would be accessing those. I've tried to pin them down according to what time the router blocked access, but it hasn't helped.

The router has blocked access to those sites from her phone(s) a total of seven times between October 5th and the 19th:

10/5 - vu

10/9 - vu

10/12 - vaicore

10/14 - vu

10/15 - vu

10/16 - vu

10/19 - vu

So it's not every day, and not repeatedly on the same day. I've let her know each time the router notifies me, but nothing has come to mind for her, so I don't know if it's happening in the background or when she's actively using an app.

I've tried some simple Google-fu for this question, or specifically regarding these sites without any promising help.

Does anyone have any suggestions for how to find out what apps are accessing them? I'm aware of solutions like NetGuard - no-root firewall to whitelist/blacklist internet access - however, my wife is non-technical - I don't root her phones anymore as she's not interested in the benefits and it's less work for me, and no chance for me to mess up her configuration. Also, we both suspect that it's one of her games that is trying to access those sites, and those games might already require internet access for them to work, so I'm more interested in tracking down which without a process of elimination. She's also not methodical like I am, at least for technical things.

I could probably dump a list of her apps to at least get some ideas. All her apps came from the Play Store and were just restored from there during our recent transition to the Pixel 7 Pro, so whatever it is, Google hasn't caught it yet. She doesn't use any special web browsers, just Chrome, and she doesn't do anything techie or hacky.

Also trying to avoid both a factory reset and not using Google's cloud backup. She forgets her passwords constantly so fresh setups always cause high anxiety for her, and therefore for me too. :D
[Google Pixel 7 Pro] blackhawk:
After you install an app block all updates. A common ploy is the app is clean but after it is installed it will download it's malicious payload.

Keep all social media and shopping apps off the phone. They are malware.

If an app doesn't need internet access to function it should be firewall blocked. Few app need internet access. Find the malware or factory reset and reset passwords. I give myself 2 hours before I nuke it. That should be enough time to find/fix minor malware issues.

Full scan with Malwarebytes. Pay close attention to the download folder and any apps that run at startup. Scan suspects with online Virustotal.

Try in safe mode, see if it stops.

It maybe a false alert... otherwise uninstall or package block installed apps one by one until you nail it. If it's a virus or rootkit that won't stop it though. Hopefully it's just a rogue app that didn't download a rootkit payload...
[Google Pixel 7 Pro] EtherealRemnant:
I've never once had a problem with any of this stuff... I think the malware problem is hugely overblown. I just don't download random obscure apps and never had an issue.
[Google Pixel 7 Pro] EtherealRemnant:
Trend Micro is often overzealous. I have disabled that crap on my ASUS router.

They both seem to be marketing and tracking sites. The vaicore one apparently was even being triggered by the Audible app at one point.

https://www.reddit.com/r/audible/comments/ttakhs

You could try DuckDuckGo's tracking protection to figure out which app is doing it.

Introducing DuckDuckGo App Tracking Protection for Android

Join the waitlist to try App Tracking Protection for Android today!

spreadprivacy.com
[Google Pixel 7 Pro] roirraW "edor" ehT:
Since this is my wife's phone, not mine, I'm not willing to micro-manage to try to find the culprit. It would only cause her stress and because of that, ultimately more stress for me. :)

I'll certainly keep an eye on what it reports, but since so far it's only reported things from my wife's phone and not my own or any of our computers, I'm going to keep being curious about what exactly is triggering it.

Thanks for that information! In this case, she doesn't have the Audible app.

Ah, I forgot about DuckDuckGo app's advertised capability. I'll take a look into it. Thanks!
[Google Pixel 7 Pro] Lughnasadh:
Words of wisdom for maintaining a happy marriage 🙃
[Google Pixel 7 Pro] roirraW "edor" ehT:
New movie: "Honey, I disabled half of your apps!"
[Google Pixel 7 Pro] blackhawk:
I rarely sample apps. All my apps are vetted and most have been used by me for years. Playstore is a mess. I keep installable copies of all my apps on my data drive (SD card) master backup for easy reloads if I need to factory reset. I occasionally side load, these are always first scanned with Virustotal. If they even look a little twitchy they aren't loaded. I firewall block all apps that implicitly don't need internet access. I also watch what is accessing the internet, when and why.

Apps are never upgraded unless it would provide a substantial benefit. There's no need to as I already have a stable platform. I don't upgrade or update the firmware, ever. This 3 yo N10+ is still running snappy fast and rock solid stable on Pie. Any problem is easy to stop as the platform is very predictable; malware stands out like a sore thumb. The current load is over 2yo and it runs day after day like a bat out of hell with minimal maintenance. I also watch the download folder like a hawk; everything is vetted before it is moved into the database, apps, mp4's, jpegs etc. At the very least I open the file in the download folder to look for abnormal behavior especially in that folder.

I've had malware jpegs on Android, once you open it, it would damage any files not in a folder in the download folder. Some were repairable some not and best deleted. Deleting the jpeg ends it's rain of terror. If it gets into the database in a folder with a large number of files it would rain hell down on you. It may not be detectable at all as malware meaning you would need to find it the hard way.

There are scripted jpegs, pngs that target both PC and Android. They pop up from time to time and Outlook can be a vector. Keel all email in the cloud ie Gmail. Be very cautious of downloading anything from emails, the oldest trick in the book. Lol, you've been warned🤣

Also saw a trojan preloader slip past Samsung browser without permission. I tagged it in the download folder before it could download it's payload. KIA🤣 Police the download folder daily, delete any unknown files without opening them.

Vet everything.

Almost all malware is loaded or downloaded by the user, one way or another. Pie and above are secure unless you do stupid things.

┤Mod Edit├┤Unneeded remark removed├
[Google Pixel 7 Pro] Lughnasadh:
Sequel: "Why I now sleep on the couch" 😁
[Google Pixel 7 Pro] blackhawk:
Translation: "Honey half your apps were spyware, can we still be friends after the divorce?"🤣
[Google Pixel 7 Pro] roirraW "edor" ehT:
"...and use the cat's litterbox..."
[Google Pixel 7 Pro] blackhawk:
Try scanning with Malwarebytes. Virustotal is the gold standard as it gives a broad overview to what's there and how it behaves.

Brave browser is near bulletproof.

Always try to back out of a bad site by closing that window if necessary or close the browser. Occasionally I needed to clear the cache as well. Never needed to clear the data but have seen some really persistent bad sites. No breach though save that one trojan preloader.

Abnormal behavior should be promptly investigated and the cause found.

Never ignore it... and teach her new tricks.
[Google Pixel 7 Pro] EtherealRemnant:
I mean I use FairEmail and have it set to only download images when I tell it to but other than that, I don't use much more than common sense for my security platform. I don't dabble a lot in random apps (sometimes I will grab a game from a new dev after I see some positive reviews for it somewhere but those F2P apps end up earning the devs more money in microtransactions than they would get from malware anyway so the risk is low here, especially since I only go for visually appealing games with some depth to them), I don't use a firewall, don't use AV... It's never been a problem going all the way back to Cupcake on my HTC Hero.

I do, however, take all updates within a few weeks of them being available (system updates I will do as soon as I get a prompt that they are available, app updates I manually do), and while that potentially exposes me to a zero day if one of my apps goes rogue, lots of pre-existing loopholes get closed by these same updates as well.

For that matter, going back to my first computer when I was 8 or 9 years old running DOS, I've only ever gotten one bug that was nasty enough for me to have to reinstall everything, a trojan, and I got it from some software I grabbed from a BBS IIRC. I don't run more than Windows Defender these days and I continue to just use common sense on the internet. Most of my important stuff is backed up to my Google Drive anyway so my desktop can get nuked and I'll just have to saturate the gigabit connection for a few hours to download all my apps and games again. *shrug*

I do use Bitwarden for passwords and Authy for 2FA (as well as having YubiKey for a few things like Google, Microsoft, and Bitwarden) as I feel that those are common sense in the world we live in but I just don't see the point otherwise.

I do use VirusTotal from time to time if I'm not sure about something as well.
[Google Pixel 7 Pro] roirraW "edor" ehT:
Absolutely. I got her to install it - later when we're both not working, I'll work with her to have it do its thing. I meant to mention in my earlier reply, to thank you for that advice.

I use Brave for select things, but to try to move her completely or even partly from Chrome to Brave would ultimately not be an effort well spent. I'm getting anxious just knowing how things would go. :D

My wife's habits are firmly planted. Mine are probably just a tiny bit less than hers, but obviously, I can't be objective.

Ugh, that reminds me of the time just about 20 years ago that back in my Norton AntiVirus days, there was a trojan that wasn't detected for weeks - I forget which one, but Symantec was not picking it up, and I had kept on reinstalling Windows XP on both my wife's and my desktops I built but ultimately they both would act crazy in some way. What a pain. Then when Symantec finally recognized what was going on and their definitions found the culprit, what a relief.

That was the only time I know that any of my devices were infected and rampant.

Same here.

I've "lost everything" (digital) so many times over the last 38 years, but my most important potentially life-altering things are backed up in the cloud, too, although using my own encryption for the most sensitive things.
[Google Pixel 7 Pro] EtherealRemnant:
Yeah this was definitely in the early Norton days. That computer was running Windows 3.1. lol.

I have been incredibly lucky. I have never even had a hard drive fail to the point of any significant loss. I actually still have the 320GB Seagate that was in my grandfather's old Gateway P3 from the early 2000s and it still works fine.

But my stupid self has definitely done the "let's get drunk and mess with Linux" thing... Which has absolutely resulted in some loss lol, especially back in the LILO days when the installers could easily wipe out your Windows partition when they bugged out and also sometimes when I just messed up the partitioning myself.

Fortunately, there's not much that I absolutely have to have, so even if I lost absolutely everything, the biggest headache would be recovering my bank/credit union accounts (of which I have like 23 credit cards alone right now) and online accounts like XDA and reddit. Social media I could just start over. Or not start back up at all for that matter.

Also, I tried Brave... Can't do it. It's Chrome or nothing for me. It was hard enough to switch from Firefox to Chrome (I had been using Firefox since it was in alpha as Phoenix) but I'm just too set in my ways to switch to anything else now.
[Google Pixel 7 Pro] roirraW "edor" ehT:
I forgot - I guess I don't count my pre-XP days as far as viruses and trojans. Definitely had some on probably almost every Apple/Amiga/Windows OS I ever ran before XP. Security? What security!?

That is lucky. I'm not on the opposite spectrum of hard drive experience, but I definitely have run the wheels off of many hard drives.

A few months ago I largely switched back to Firefox, but I still use Chrome for certain things, and I do use Brave for a very few things. A couple of years ago, I was liking Microsoft's Chromium-based Edge just fine, but then they changed just one little thing - which made it many more clicks than in Chrome or other browsers if you wanted to potentially change your download save location for each and every download.

There were a ton of complaints to Microsoft but they wouldn't reinstate the original way. I'd have no problem if they at least let users opt to use the way they used to, but fell on deaf ears. I switched back to Chrome after that - Edge was just too much of a pain for micro-managed downloads.