text:
Is it safe for the battery to turn on the mobile data all the time?
I usually turn on my cellphone Mobile Data & WIFI all the time because I don't want to miss SMS and Emails. I'm afraid the battery could lose capacity over time if I keep turning on the Mobile Data/WiFi all the time or something might happen to my mobile. However, I believe modern electronics should be able to handle this kind of scenario. Does this apply to modern Android phones? Or do I need to continue disconnecting and connect only when needed?
Note: I have an unlimited mobile pack.

It all depends on your usage requirements

If you can't afford to miss mails or messages your wifi /data will be on and that will certainly lead to battery degradation. See Battery capacity wear-down, and its relationship to charging practices, specifically the graph and it's explanation.

Turning wifi /mobile data on/off isn't harmful. You can do that if you can live with missing messages or mails.

If your device is rooted you can prevent battery degradation by making the device run from mains as explained here Don't charge the battery but use connected power to run the phone or at least keep the battery charged and discharged within safe limits as explained here Ideal charging / discharging percentage for maximum battery life?

If you don't want to root your battery, your battery will lose its life quickly and you would end up changing the battery or the device. Unfortunately, that's true.


text:
Recovering from a boot loop (Samsung S9 Plus) ... which CSC?
I am currently stuck in a boot loop with my Samsung S9 Plus. The phone in question can be booted into recovery and download mode, but that's about it.
I found that I should be able to use Frija or SamFirm to download the latest update, but it prompts me for the CSC. Now I understand what the CSC is supposed to be, but how do I find the appropriate one?
In my case the phone was bought in Germany, but initially it showed stuff in Italian when turning it on. So which CSC should I use? Or does it actually not matter at all?
Would it be okay to go with DBT (Germany, unbranded) as per this list?
I didn't by the phone from the carrier, but on the free market.
NB: since the system is in a boot loop it's too late to look up the proper CSC.

@alecxs thanks. But what are these supposed to mean? I know Frija (mentioned it in my question) and Odin. But that doesn't tell me which CSC I should give if I have no way to retrieve the current value during a boot loop ...

@alecxs I tried flashing TWRP and that failed, no matter whether it was a patched or pristine ODIN. And on the download mode screen I don't see a model number. Besides, the model number is not what my question is about, my question is about the appropriate CSC. I went with DBT in the end ... so far it's working.

source: Stack Exchange

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

sort: votes


text:
How to access OneNote android app content on PC by connecting to PC?
Is it possible to use OneNote completely offline and transfer/read it's content on PC manually by connecting mobile device to PC? I don't want to use sync, I want it to be used completely offline and private.

you should ask Microsoft support. transfer data is possible with adb. read content is another story no one can help you

AFAIK OneNote is designed to sync only via MS Cloud. Only some old Desktop version(s) can sync using a shared folder on a Windows share.

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


text:
Unable to connect phone to pc. Phone charges only
My phone model is Huawei G7-L11. Android version is 6.0
Hey there, I want to connect my phone to PC to be able to unlock its bootloader. When I connect to PC, It charges only and that's it.
What I did:
1: I tried to connect to pc using Huawei HiSuit but that didn't worked. It does not show anything to PC or mobile as well, just charges the phone. I tried to connect another Huawei phone and that succeeded to connect to PC, But my Huawei G7 is not connecting to pc... Yes of course I turned on the USB debugging as well as allow hdb thing, I also disabled it and re-enabled it but that also didn't worked.
2: I tried to use adb to detect my phone... I typed adb devices as well as fastboot devices but that also didn't shown my devices.
Note: yes I know about MTP and other options, But my device is not connecting at all to PC.. It is not showing any option either. Just charges. I Installed the Huawei G7 drivers as well as snapdragon driver + universal ad drivers. I am 100% sure my USB cable is fine and I am not using any USB hub.
Please Help me... I want to unlock bootloader... Help me connect my device to PC.

replace the usb connector with spare part from aliexpress

First of all, start with easy-to-solve debugging:

Have you unlocked your phone while trying to connect to PC or did you connect with the screensaver showing?
After unlocking, you have a tab (in most of the phones its on top) that you can show by sliding down. There, you have a notification about the connection. Have you clicked it and set it to file transfer instead of just charging?
Try changing the USB cable.

Note: I know this could be answered by commenting the question but I haven't got enough reputation in this website.

first of all thnk u for your answer.. yes I know about the usb transfer thing but it does not show notification.. it does nothing else then charging..

And have you tried a different USB cable and a different USB port (on the PC)?


text:
How to run my Play Games with its correct game progress after it runs another Play Games account of the same game app?
I have this problem as a game user. I have contacted the game developer and they told me that's an issue of google instead of their game.
I have an old phone A with a Play Games account A that saved my game progress A. I have another old phone B with a Play Games account B that saved progress B.
I now have a new phone C that signed in both Google accounts A and B. When I opened the game, it loaded my game progress A, but actually, I wanted to load progress B.
Therefore I signed out my Play Games account A in the game settings inside my game, and signed in my account B. Restarted the game, but it still didn't load progress B.
So I cleared the cache and data for both Play Games, Play Store, and my game app. I uninstalled my game app. Then I switched to my account B in Play Games and installed the game app again. However, it still only ran progress A.
So I gave up to play progress B in my new phone C, and opened my game in my old phone B. Turns out my old phone B, even it only logins to Google Play account B, runs the game with progress A. None of my phone seems able to load progress B anymore now.
Does that mean my Google account A overwrite game progress A onto B? How is this even possible and how can I fix it? Ideally, I want to run progress B in my new phone C. Or, at least my old phone B runs my game progress B back again.

Do you also had account A on phone B? Because overwriting is a rare case.

I do not have account A on phone B. It only has account B on that phone.

Looks like the problem is finally found out. I guess it is because when my new phone downloading .dat files from the cloud, I immediately signed in account B. It was saved at the same location in my new phone as account A. The data then sent back up to the cloud. Therefore when I opened my phone B, it downloads the data back from the cloud to my account B.
Lucky enough, I have backups of the .dat files somewhere else very long time ago to restore it.


text:
Xiaomi Redmi 5 Whyred turns itself off
My Xiaomi Redmi 5 Whyred started shutting down randomly - rarely enough to make is hard to reproduce. So far happened once during a day and every 2nd night.

I am using a Havoc-OS 2.9 (Based on Android 9) and had no problems with the system until last week, made no major changes to the system, dont even think I installed anything new.
So far I have tried freeing up some space, because I was tight on that, made sure phone is charged and no night-only-features are on.
Shaking phone to see if battery is not connecting somewhere gave no results - also phone turns off when on a flat surface and not moved, so I do not think that is the issue.
Installed accubattery to see battery health but it did not provide estimate yet.
Below I have attached a screenshot of battery usage, as you can see it is not a case of sudden battery drain.

If someone provide me with some clues about what to look for I would be greatful.

Why would it happen after a year of problem-free usage without any recent update happening that could trigger the bug?

If it is a crash you may find some kernel logs. Besides that devices that suddenly go off are often have a dying battery.


text:
Not able to reach recovery or TWRP on Redmi 4A Only blank screen
One week back I successfully unlocked,rooted,put TWRP and flashed LineageOS 17.1. Today morning i read [GUIDE] How to Create Custom Splash Screen (… | Xiaomi Mi 5. After following the link now the device is not recognised by ADB,Fastboot on attachment with usb cable or no System boot. Stuck on black blank screen. Long pressing of power key or any other combination of keys give a flash of a static screen. Googled to get disapointment.
P.S. After opening of device and googling some more now device is visible in  Windows Device Manager as Qualcomm HS-USB Diagnostics 900E. It is still not visible to adb or fastboot by adb devices or fastboot devices which was responding to same commands previously.

Now I try EDL Mode but stuck with tools and lockdown.

you guys should help each other https://android.stackexchange.com/q/226838

900E mode won't let you be even in EDL mode, rather thinking about fastboot. There have been different tricks used on different devices to get rid of 900E and enter in EDL mode. Most of the times completely discharging the battery does the trick and device enters into EDL mode when both volume buttons are pressed before connecting to PC. You can flash factory firmware in EDL mode. But completely discharged battery might not start charging again. So better is to open the device and disconnect battery from board for a minute or so. Some other devices might require shortening some points on board


text:
Huawei G7 No network-No service problem
Hy there, I am facing an issue, My Sim card automatically disconnects after some time... And reconnects automatically without doing anything...without even physically bothering the phone. And when it works, it gives full 3G signals. And when it works, I can also make calls and use my data... What could be the problem? It says no network-No service... Ofcourse My network provider service is pretty nice in my area.. Issue is with phone, I just need an idea what could be wrong with my phone? Plz help

even if not caused by move it may be loosen or dirty contacts in sim tray, or sim card is not well positioned


text:
Why can my phone only play ringtones from my SD Card now?
I have a Samsung Galaxy S8 running Android 9 (at least currently - I don't know when that update took place, so I don't know if it is responsible for this issue). I have always had my ringtones (in mp3 format) in a folder on my internal storage, and my music (also mostly mp3) on my SD card. Sometime in the past year, an update caused my ringtones to stop working. They would not play at all, even when trying to preview them in the ringtone selector. Instead, the default ringtone would always play.
After some trial and error, I discovered that I could only get my ringtones to work if I put them on my external SD card.
Has anyone else seen this issue? Is there a way to fix it? It's very annoying, and messes up my file organization and management.


text:
Trying and failing to use phone mobile data as proxy
I tried following this: https://android.stackexchange.com/a/196779/327770

I connected my android phone, a Samsung 8 with Roger's sim card to my computer
Bridged with adb
Port forwarded 6400 on my computer to 8080 on the phone
Started a proxy server with servers ultimate
Visited 127.0.0.1:6400, it works! I was excited!
But then I try to use 127.0.0.1:6400 as a proxy gateway, it doesn't work, I don't know why, or what else to do.

Any help?

What proxy do you use on the phone and how is the proxy started? Is there a reason why you don't use the standard USB tethering?

Have you tried setting proxy settings with a different browser Ex: try Firefox if you already have tried Chrome and vice versa.

@Robert I'm not using a proxy on my phone, I'm using the mobile data, I'd like a different application to use the IP resulting from my mobile data, that's why I don't just do standard USB tethering or hotspot.

@M.Abdelhafid Yes, I tried it on both Chrome and Firefox, I get ERR_NO_SUPPORTED_PROXIES, but when I visit the port on my browser, I'm able to access the files on the device, so I think the portforwarding works fine, but trying to send data out isn't working, I think.

In your question you wrote that you are using a proxy on your phone that runs on port 8080 - and now you say you don't use a proxy. And regarding the IP: It does not matter you you use a proxy on the phone or USB tethering (which uses NAT), you only get one IP address from your network provider, hence all request end up using the same IP address: The one from your phone.

@Robert Sorry if I wasn't clear, I started a proxy server on port 8080, my goal is to send traffic from port 6400 on my computer, through port 8080 on my phone, to the internet. I have a wifi connection on my computer, it has a different IP from the mobile connection on my phone, i'd like to use the mobile connection on my phone - on my computer. I hope that clarifies some things.

If you want to use your mobile connection on your PC just use USB tethering. If you don't believe me do it and open the page https://www.whatsmyip.org/ on both mobile and PC. They will show the same IP address.


text:
How to fix a bricked K20 Pro?
I did something incorrectly to my Xiaomi Redmi K20 Pro, and it's now not turning ON, no bootloader or recovery mode. I found something on XDA developers forum and my phone is currently in EDL mode. It is detected only on COM-port 10. I don't know how to recover it.
How do I fix my phone?

no worry, just flash official ROM/firmware with MiFlash or QPST

1 year ago I also faced the same problem on my Redmi 3S Prime. It wasn't even detected by MiFlash. After lots of research and 3-4 months I thought to take to a repairing shop. The man at repairing shop just removed back panel and touched at a point on motherboard with screwdriver and inserted the usb cable in the mobile. The computer detected the phone. I don't know what the software he used to flash the device this can help you in your further research.

that is called test point to get device in EDL mode (where you can flash with MiFlash or QPST)

But now they came one more step, they now added new one, which is only work authorized person. Now they called it like FRP. i didn't find a way

When we are connecting display port we can access EDL(Emergency Download Mode). Now MI Flash tool also need authorized person login to flash. i tried edl flash also


text:
Hardware factory-reset for Philips TV (PFH5500)
I'm trying to boot a Philips TV (model 48PFH5500/88) into recovery mode. The television is stuck in the Philips logo splash screen and is essentially bricked. The front LED is pulsing every 1 sec, which I've read is an indication of an issue.
Tried the following:

Connecting to it via adb to boot into recovery - the device is not seen.
Hardware reboot by holding the joystick in the back on the "down" position when plugging in the TV and keeping it there for several minutes.
Unplugging for 1 to 10 minutes and re-connecting.
Entering support codes via the remote (per support manual) to enter service default mode (SDM) or factory mode.

All of these did not yield any response.
I'm looking for a hardware based reset/factory-reset method. Is there any trick I could try to force the device to start anew?
Thanks.


text:
Automatically copy calling phone number in realtime?
I was looking for an app or an API to copy currently calling phone number to the clipboard where I could paste them to PC directly.
For instance, I'm getting a phone call from (xxx-xxxx-xx) on my android phone and having an app called pigeon that automatically sends any clipboard copied content to PC.
Let's say I want the current calling phone number to be copied and sent to the connected pc to paste in a database searching for said client.
is there a way to achieve that efficiently?

Have you checked the different adb logcat and it's different buffers like main event system if it contains information on incoming calls? https://developer.android.com/studio/command-line/logcat#alternativeBuffers

@Robert It seems too complicated for the required task

It is possible with Tasker.

First, Create a profile that triggers this task.
Then set, State > Call Incoming.
Next set, Task  > clipboard to %CNUM (caller number)

I'm linking a Reddit post which has the exact project and an additional getting started with Tasker guide for your reference.


text:
SIM popup messages keep the screen on indefinitely (Samsung A30s)
A little background: In my country, carriers keep sending those annoying pop-up messages (I think they're called class-0 messages?). This has been the case for a couple of years and they won't stop no matter what you do. Anyway, it wasn't a big deal with my previous phones; I just learned to ignore them.
However, with my A30s (which I've had for a few months), I'm facing a critical issue where the screen will turn on for the message and never turn off unless I close the pop-up or manually turn it off by pressing the power button. There are basically two types of those messages:

Ones that show up after a call is ended (very annoying but avoidable if I remember to close the message after ending the call):

Ones that show up randomly (sometimes at night while I'm asleep. Screen stays on overnight and drains the battery):

I couldn't even tell which app is responsible for displaying those messages. Here's what I've tried:

Checked the permissions for the Messages app and the Phone app to see if there's something that controls this.

Disabled the "draw over other apps" permission for the Messages app.

Installed Google's Messages app and set it as default (since I can't uninstall or disable the main one).

I also checked the permissions for the "SIM toolkit" app but there were none. I tried disabling the notifications but the option was grayed out.

None of the above helped.
Does anyone know how to get rid of these messages?
Note: I want to avoid rooting the device or installing a custom rom.
I tried reporting this to Samsung but they weren't very helpful.

One simple workaround would be to activate Airplane mode at night. It has the advantage of less battery consumption and no one can disturb you when you are sleeping.

@Robert Thanks for the suggestion! However, it doesn't only happen at night. It happens during the day as well and I might not notice it for hours if I'm not using the phone. Also, I don't prefer turning off the phone at night, in case of an urgent/emergency call or something.

Download Automate app and make a flow like this..

Allow the permissions And then configure it like this. Notice the option "When UI element appear".

Then click on record. Now, make a call and end/hang up it so that you get the dialog-box. Click on Cancel in the dialog box, see the details and try to understand if the interaction has been recorded. If yes, then click OK.
What it does is that it automatically clicks the Cancel button as soon as it appears on the screen.
I haven't received any dialog box for years so I don't know if that's gonna work. If it doesn't, just see the options from + icon and try to do something else. There are like a hundred options. If that too doesn't work then let me know.

Okay, this did help (+1). It does close the dialog but unfortunately it closes every dialog with input field and a cancel button (for example the ones you interact with using codes like *xxx#. I tried to create a condition based on the dialog text but the interactions that I recorded doesn't have anything that includes the text of that UI element. Do you have any suggestions?

Change the action in the interact block(it probably will be select or click) change it to inspect then add another block of delay 10 seconds and then copy the first block and paste it and connect it after the delay. So that the order is (Interact1 > Delay > Interact2). In interact2 change the action to click or select the cancel button. What is does is checks if the cancel button is present. if yes then it waits for user to cancel it (in 10sec) if user doesn't cancel it then it will automatically do so.

Actually that's exactly what I did :-D (I used 30 sec. delay though to allow for typing and sending if required). I was just hoping there would be a better way that depends on the text and doesn't rely on a delay. I think that's good enough though. Will accept your answer soon because it did help me. Thanks again :)

And if in cast you want to cancel the specific money remaining and all dialog box then try this experiment. Start record interaction and when the dialog box pops up click on the text it will get recorded. In automate select the interaction and in "ui element text" remove the variable things (like the amount which changes everytime). This does rely on text as you wanted and is the most efficient way i guess. Thanks to you! I too didn't know there's so much in automate yet. I just used it for simple automations.

I just want to know did the automate app auto close the random promotions pop up you were also getting from your carrier, or just the after call pop ups? Thanks,

@Suliemans You can set that if the pop-up contains some specific text then cancel it else not.


text:
Does Android TV remote always have a back button?
Does Android TV remote always have a back button, or do some manufacturers do not include it? The reason I as is I am developing an app for it and want to decide to include a back button in UI or not.

AFAIK, if there is no back button on the remote, the TV should have an on-screen back button, much like phones.

@Puspam On the contrary, Android Phone have a guaranteed back button, on which developers rely on.

Two major Android TV boxes I know of are Nvidia Shield TV (which I use) and Xiaomi Mi Box. By checking the remote control of my Nvidia Shield there is a back button. Looking at images of the remotes of other Android TV boxes such as Ematic Jetstream, these also have an independent back button on the remote control.

It appears most if not all Android TV box manufacturers include a back button on their remote controls.


text:
Android Outlook over IMAP is logging in from Microsoft servers
Using Microsoft Outlook app for Android I could not add an Outlook-IMAP account on some Android tablet for some customer. However, it was no problem to add the same IMAP account to the GMail App, or some other mail Clients on the same tablet. Or to Thunderbird on Windows, even Outlook on Windows worked fine...
I wondered what the heck is going on. updated outlook on android, no change. So i setup an Test-Mail-Server and sniffed the network traffic. Turns out that my device was not talking to the Mail-Server but some Microsoft servers where... what?? got logins to my IMAP from 52.125.138.21 and 52.125.139.100. WHOIS... 52.125.0.0 - 52.127.255.255 -> Microsoft Corporation (MSFT)...
Why are they logging in to my IMAP Server with user and password... why is Andorid-Outlook telling my SECRET password to some servers @ Microsoft... and... do i have to assume they pass my credentials and all mails so some 3Letter agency? It's just stupid to transport all IMAP communication to MS and from there to the tablet.
So the question is: Is there any way to force Outlook on a Android tablet to directly communicate with the IMAP-Server? I set imap.myserver.ch:993 in the advanced settings... but this also leads to MS logging in and get all mails... still no traffic from tablet to IMAP-Server.
I'm useing Oultook Version 4.2025.3 (42025807) on a Galaxy Tab S6 Android Version 10

Looks like you have not read the the small print before using the
Microsoft Outlook app for Android.
Yes, what you have detected is the way the Outlook Android app works. Outlook is not an IMAP client, instead username and password are transmitted to a cloud server (named "Exchange Online") that saves these info and then logs into your mailbox, does what ever it is supposed to do in background and also allows your Outlook app to access your mailbox as well. See also the official documentation by Microsoft on that topic.
I assume access to IMAP folders is only for backward compatibility. The real target of Outlook app is accessing Outlook.com and cloud based Exchange servers. In this scenario the password is not stored on the Microsoft server, instead a generated token is used for user authentication towards the Exchange server. However all your mail, calendar and contact data still passes the Microsoft cloud servers.
BTW: This app and it's backend has not been developed by Microsoft. Instead Microsoft bought a company named "Acompli" and they are the creator of this system.

Hi Robert, thanks a lot for your detailed answer... and no, i didn't read the small print :/

Extremely interesting thank you

The link does not mention IMAP at all. It is clear they are mostly focused on O365; can't really see why they would bother to push IMAP traffic hither and yon, tbh. It's not as if other apps don't manage to handle it direct on Android (and better).

@MandyShaw IMAP is not explicitly mentioned, but it belongs implicitly to the methods that do not allow "modern hybrid authentication". And the system was designed by Acompli as it is, may be the primary goal was to built their own cloud based groupware system and access to external mail boxes was originally just planned as some sort of transition period? Who knows - the system is now as it is.


text:
Mysterious vibrations from "System Interface"
For some time my Samsung Galaxy Note 9 vibrates for no apparent reason. It's a very short vibration with no notification of any kind so at first I thought I'm imagining things. But I noticed it's really there so I tried to find out which app is to be blamed - using Nice Catch I got a Vibration history for my phone (please excuse polish language on the screenshots):

Here comes the issue: these irregular vibrations come from Interf. sys. which I presume stands for System Interface. But as you can imagine googling "Android System Interface" wasn't very successful. Logo is just an Android Q logo so that doesn't help either.
I found this app among system applications, but it's Notifications settings are all locked (except for Screenshots and App icon notifications):

So now I'm kinda stuck and have no idea how to proceed. Any ideas on what I can do to disable those irritating vibrations?

Does this happen only when you are using the phone (screen on) or while not using the phone?

@Puspam screen off only.

It's System UI app (package name com.android.systemui) which is the core platform app to manage user interface including lock screen, wallpaper, status bar and notification panel.

This sounds like an OS corruption issue. You might need to try a factory reset, sadly.


text:
Zoom In And Zoom Out In Clash Of Clans Running On Android X86
Hey guys am running Android x86 9.0 r2 on my pc and its running great, i am playing clash of clans on it and it works great but i can't zoom out as we do on phone as pinch like with two fingers, I don't have touch screen am looking for a way to do this as bases are wide its hard to move through mouse so looking for zoom as second of time waste to move in base with mouse ruin my raids following are things i tried :-

I tried a app called assertive touch still no success.
I tried all shortcut keys found on Google search like double click then hold and move up mouse or move down.

but none of work if anyone knows something let me know and be safe.

Have you read this topic and the answers? https://stackoverflow.com/questions/10023554/not-able-to-pinch-zoom-on-emulator

Ya i have tried that mentioned in second point that keys referred in your attached thread

That shortcut keys only work to zoom in and out on pictures not in application like game


text:
Making the front camera the main one, or disabling the main (back) camera
My device's rear (main) camera is broken.
WhatsApp Web pairing uses the main camera in order to scan a QR code and can't be switched to the front (selfie) one.
Is there any ADB command that can switch the roles of Main and Front cameras? this way, the front will be activated by WhatsApp and I'll be able to scan the QR code.
Alternatively is there an ADB command that disables the main camera altogether? since that might also do the trick.
I'm with Android 10 with latest security updates (Android One).

The only way to do so is to use the advantage that Android kernels are open source and you can remove the drivers from the kernel itself then recompile to disable it.

@TipzTeam I guess buying a brand new phone would be cheaper than going down that path


text:
How to blacklist some cell base station on Android 9
As far as I know, one of approaches for disabling of mobile data traffic during public protests is use a  fake cell base station with strong signal at local area.
I did some research, but I did not find any ways to blacklist some base stations, only tools to monitor them (like Network Cell Info, etc).
Is it any way to block some base station with some tool/programmatically with Android API?

Fake cell towers aka., IMSI catchers are AFAIK only possible for 2G/3G (as long as the mobile network provider does not cooperate). Therefore if you disable 2G and 3G in your phone and only use 4G/LTE and 5G you should be safe.

@robert interesting comment. I've googled a bit, and it appears this does help, but it is not a panacea as some attacks can at least partially thwart it.

thanks, we have no any 5G, will try with LTE


text:
Screen Timeout not Working
My Pixel 2 running stock android 10 seems to not respect the screen timeout setting. I have it set to ten minutes, and sometimes after putting the phone down with the screen on when it is fully charged and picking it up a few hours later it would be dead.

Have you at least checked the device after 15 minutes? A not working screen timeout is just one potential reason. Therefore you should check if it is really the reason. BTW: The Pixel2 has an AMOLED display, setting a screen timeout to 10 minutes has a high risk that you will face the OLED burn-in effect very soon.

Oh yeah sorry I have checked the phone between leaving it on and it dying, I've had the phone on and taken a 30 minute nap and it was still on when I got back to it. Also, does that mean that 10 minutes is too high for a screen timeout?

Probably some aggressive wakelocks, perhaps you can refer to this question: How to deal with (orphaned) WakeLocks?


text:
What is this circle icon for?
What for is this circle icon in taskbar?

Related question: How to determine which app is creating a notification

That's the icon of SHAREit. Check if it is among your apps.


text:
Changing the input language of physical keyboard on Android TV box
I have an Android box TV with Android 9.0, and I would like to add a physical keyboard, but there's no option for that. When I press the "manage keyboard" option, it shows what's in the picture.

I have a Microsoft keyboard connected with a USB adapter WiFi to the box. When I want to write in Portuguese, the physical keyboard it's in another language, but the on-screen keyboard is in Portuguese.

Have you checked similar questions here on SO like this?

I had a similar problem, my Android TV screen did not show the characters I typed on an external Genius Spanish Keyboard.
I wrote to the manufacturer asking for a driver but the answer was they do not provide support for Android OS.
After a trial and error research I found that
Logitech Keyboard Plus 1.3.0 (565k)
com.logitech.keyboard.look_ten
was the solution.
This apk is a Bluetooth driver but worked with my USB wired keyboard, I only had to set the keyboard language data.


text:
How to force Firefox Nightly to install an addon?
Firefox Nightly refuses to install addons unless Mozilla "recommends" them. That's an artificial restriction.[1] How to bypass it?
[1] https://support.mozilla.org/en-US/kb/add-compatibility-firefox-preview#w_extension-compatibility-for-firefox-preview

Did you find: https://extensionworkshop.com/documentation/develop/developing-extensions-for-firefox-for-android/

@Morrison Chang doesn't work, "Firefox Nightly can't download this file type". Opening it from a file manager doesn't work either. xpinstall.signatures.required is disabled although I didn't expect that to help.

See a hack here: https://old.reddit.com/r/firefox/comments/i8igam/androidrequires_root_install_any_addon_from_amo/


text:
Rooted Android Emulator
I want to install avd with google play and work with it as a root, is it possible?
if not there any chance to install google play on rooted  android emulator , because I have an app the I can't install not via the google play store.
Thanks

You don't need to root a device to install an APK not available in Google PlayStore. Just install it via adb install (requires Android SDK/ADB minimal installed on the PC and adb enabled on the device which is by default enabled on emulators).

I need the root for the next steps (reverse engineering ) and I need that app installed.the problem is that I can't find that apk on the web, so the solution is to install it with google play but then I don't have rooted device ...

If the app itself does not need Google Play Services I would not use an emulator with Google Play installed. APK files can be extracted from non-rooted devices as well. Several file explorer apps have this functionality and via adb you can do it yourself. Also Web services like apkpure.com can download the APK file for you or you use a local download tool like https://raccoon.onyxbits.de BTW: If you are non-commercial you can simply use Genymotion emulators, they are already rooted and free for private use.

I have tried all those methods but nothing works, in apkpure I found XAPK and I cant install it...:(

Install XAPK: https://apkpure.com/xapk.html

Thanks , it doesn't work also, this is arm64 app , any other idea ? I don't know what its so complicated .

Let us continue this discussion in chat.

try this: https://stackoverflow.com/a/44473415/191761


text:
Can I get more RAM in emulator while still having a Google Play image?
I know how to make a new system image, by cloning an existing one...
But, I can't alter the amount of RAM in a Google Play-enabled image, without the clone being non-Google Play.
Is there a way to give more RAM to the image while keeping it Google Play-able, instead of the default 1.5GB?

The UI does not allow to change the RAM size neither when creating a new virtual device nor later when editing the virtual device.
However on file level you can simply open the configuration file of the AVD and change the RAM size.
Use an text editor and open ~/.android/avd/<avd name>.avd/config.ini.
Search for the line
hw.ramSize = 1536

and change the amount of RAM, for example to
hw.ramSize = 4096

Then boot the virtual device and you will have 4096 MB RAM as shown in this screenshot:


text:
Galaxy S4 Not Showing in ADB
I want to root a Galaxy S4, yea I know it's an old phone, but perfect for what I want to do. Problem is, once I do adb restart bootloader, the device is no longer on the adb devices list, so I cannot unlock the bootloader.
Any suggestions? I am somewhat new at this so I don't know exactly what to do. Step by step would be nice.

When you are in the bootloader mode, the device no longer communicates via adb, if you want to now unlock your bootloader, you have to use fastboot.
Also, the Samsung Galaxy S4 (except for AT&T and Verizon versions) don't have a locked bootloader, all you have to do is flash a custom recovery via Odin, then you are all good to go.
TWRP is a good option for custom recoveries these days, you can go to their website and download the .tar version of their recovery, then put the .tar file into Odin's "AP" slot and hit "Start", your device should now be loaded with a custom recovery.
Here's the link to all the information required: https://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/recovery-twrp-3-2-1-0-t3742880


text:
What makes a 64-bit Android, except the kernel?
I have a phone (Samsung Galaxy A320F (AKA "A3 (2017)") with the stock ROM that contains a 64-bit armv8l kernel (Linux 3.18.14) and 32-bit userspace with 32-bit Android 8.0.0 platform. Some Android applications provide only 64-bit NDK-based libraries, which makes them incompatible with this setup.
I've tried transferring a few ELF64 binaries to the phone, like gdb, strace, gphoto2 along with libc.so.6, ld-linux-aarch64.so.1 and other parts of glibc. They run fine, so I'm confident in the kernel's ability to handle such binaries.
Now I'd like to try and make the Android platform 64-bit capable. In particular, I'm interested in making the 64-bit-only APK able to communicate with the display, touchscreen and a USB device attached to the phone. I have root access (via Magisk), so in principle, I can hack the system however I like.
My question is now: what components actually make the Android platform 32- or 64-bit? Is it just the VM, or maybe some additional libraries? Or does there have to also be a 64-bit part of the HAL? How many of these components could be taken from e.g. Lineage OS without actually installing the complete Lineage OS? Has anyone even tried to do a similar mod?

In my opinion it may be easier to join the development of a 64bit based custom ROM for your device at xda-developers.com. I would assume that this is far easier that trying alone to modify an existing Android version you don't have the sources for a large number of components/binaries.

See my detailed answer to Could a 64-bit hardware device run a 32-bit Android version?

@IrfanLatif although interesting, it doesn't address this question at all. From that answer I've mostly learned that a real 64-bit Android OS can have lots of 32-bit processes (provided there's CPU and kernel support for compatibility mode), but nothing about which components enable platform compatibility with 64-bit-NDK APKs.

Well I thought the answer to your question would be evident after reading my answer. What components make the Android OS 64 bit? Simply it's the set of libraries (other than kernel) shipped with the ROM including VMs/zygote (the app_process binary), linker and libc. Daemon executables (AOSP's and vendor HALs) including init and other tools in /bin directories are also 64 bit. But some daemons and HALs might still be 32-bit even on a 64-bit ROM (I quoted an example in my answer). So 64-bit ROMs include both sets of libraries (in /lib and /lib64) though this may change in future.

Addressing your situation in particular, armv8l means your kernel is 64b but the userspace process querying the architecture is running in 32b personality. So what you need to run 64b-only apps (as Google is pushing developers towards 64b) is to recompile your ROM for 64b. That's not impossible but would be challenging. As I said, some core platform components were not ready for 64b and Google developers left them 32b to be ported in future (not sure about latest situation in 10 and 11). Until zygote is not running in 64b mode, it won't be possible to run apps built only with 64b libraries

For Android to be 64-bit you need several things:

64-bit-capable hardware, which you have.
64-bit kernel, which you have.
64-bit Android Runtime ("ART"). This is what you're missing.

The 32-bit ART you have will compile Dalvik bytecode into 32-bit machine code. 32-bit machine code can't make straightforward calls to 64-bit machine code, which is what's in 64-bit NDK libraries. That's why you can't install apps that use 64-bit NDK libraries.
Android isn't really designed for putting custom OSes together from binaries intended for assorted devices. Lineage OS supports the A5 (2017) and A7 (2017) models, but not your A3 (2017).
At this point in time, buying a more modern device is the easiest solution.

For a 64-bit Android, all the partitions should be 64-bit.
In your case, the system partition is 32-bit, the same case with Samsung Galaxy J8.

What does it mean for a partition to be 32- or 64-bit? The filesystem should be the same, regardless of kernel or userspace bitness.

A register makes a system 32-bit or 64-bit. 8 bits = 1 Byte, 32 bits = 4 Bytes, and 64 bits = 8 Bytes.
So it means 32-bit registers can store 4 Bytes of information per register and 64-bit registers can store 8 Bytes of information per register.

No register makes it. The system described in the OP has 64-bit kernel on a 64-bit CPU, but it's still 32-bit Android.


text:
Is there a safe way to install Ubuntu on my Android phone?
I have a Xiaomi Pocophone F1 with decent specs: Snapdragon 845, 6 GB RAM, and enough storage. I was wondering if there is a tried-and-tested way to install some Linux Distro on it (preferably Ubuntu) for some specific reasons. I've seen some YouTube clips, but their instructions are not fully clear, so I wanted to ask here. Can anybody here give me a walkthrough or point me to a resource I can follow? Any help would be appreciated. Thanks.

There are two major problems for installing Linux on a smartphone: 1. the boot process is not "standardized" like on a PC (no BIOS/(U)EFI, ..). 2. The standard Linux kernel lacks support for a lot of components that can be found in typical Android smartphones because the manufacturer don't integrate their drivers and modifications in the standard kernel and instead providing customized kernels. Even for a common system like Raspberry standard Linux distributions do still not run perfectly on it (and Raspberrys are there for years, sold millions of times).

See the second part (How to boot Ubuntu on Android device?) of my answer to How to boot Ubuntu persistent live USB on Android?

More details: IS IT POSSIBLE TO INSTALL WINDOWS, iOS OR LINUX ON ANDROID DEVICE?

Also see: Linux on Android and HW support as Termux/Andronix may give you the Linux-like (but not exactly) environment on your phone.

what is your usage case for this ubuntu? do you still want to use it as mobile phone with apps? what apps do you expect to run on this? or do you just need a linux shell for doing cmd line stuff?

https://devices.ubuntu-touch.io http://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy

UserLAnd is another Termux-like app for running some Linux distros on mobile. It can also be used to run some specific apps, like Firefox or GIMP. It seems to be a more-complete Ubuntu by default as it has sudo and most other standard commands, unlike Termux. Personally I like the ability to have multiple installations and keep one as a daily driver and playing around in the other and destroying it when it goes bad.


text:
How to list system packages uninstalled (for a user) via ADB?
I want to research the bloatware that I disabled using pm uninstall -k –user 0 <package> and I just realized that I don't know how to make a list of those specific apps. I can list the file names stored in /system/app but it would be very tedious to find which ones are disabled and also to figure out their package names. pm list has a -d option to display disabled apps, but it only works for apps disabled from within the android menu.
If it helps, the phone in mind is not rooted and it is running Android 6.0.1.

pm list packages -u

This lists all such 'uninstalled' packages in the system.

Note that pm list packages -u also includes installed packages (help says "also include uninstalled packages", so you need to diff it against pm list packages without the -u). Further, somewhere around Android 7, pm list packages was replaced by cmd package list.

Like @Izzy said you need to diff both commands: diff <(adb shell pm list packages) <(adb shell pm list packages -u)

Right, thanks for the diff command.

This should be put on the  answer area.


text:
Mobile data only works when tethering is active
Issue is exactly as described in the title, works when used as hotspot and connected with computer, but not on the phone directly(regardless the hotspot setting).
Moreover I have to add:
I am abroad in Italy.
This is vodafone "data only sim".
Bought two days ago and last time it worked was yesterday evening.
I have two sims and my native-roaming enabled sim works fine.
I tried swapping slots, having one sim, removing/changing/restoring apns, changing dns, restarting phone multiple times.
When I try changing apns it goes back to the default one automatically.
I cannot call customer service as they do not speak English.

After two hours, I have solved the issue.
The problem was, there were two default APNs.
One for tethering, one for mobile phone network connection.
The solution was to add "defult" apn type to the tethering apn and remove the mobile phone one.


text:
LG V40 completely unresponsive.. Won't charge after I was playing with the partitions and 9008 mode.. Any options?
I have an LG V40 through sprint.. Its won't respond to any button combos or cords /cables.. Anyone think they could help me out


text:
Contact cards in WhatsApp
I have long back deleted a number from my contacts list. Today I received a message from that number. On checking, WhatsApp shows this message Found one contact card for this number .
Can someone please tell me where does it find this contact? It's not yet saved in my contact list.

Sounds like WhatsApp is maintaining an internal list of contacts separate from your device contact list.

Where could such a list be stored?

That depends on WhatsApp - it will either be saved to external or internal app storage on your device, and perhaps even your account is synced with WhatsApp servers over the network.  The point is, WhatsApp is maintaining data.  I recommend investigating WhatsApp's settings and/or reaching out to them for support.

WhatsApp can collect contact information if it is shared in chats (or groups). I solved my problem by deleting all the contacts cards sent to various people/groups via WhatsApp.


text:
How can I see the history log of system updates?
I need to know the history log of system updates (ROM / OTA updates). Is there any file on the device that contains this information?

My Sony phone has a "update history" which lists every installed OTA update version number + date, but this seems to be a modification by Sony. My Lenovo tablet has no such update history. Hence it depends on your phone. You should edit your question and add details about your phone like manufacturer and model name.

Most OEM doesn't keep a log of that on your device, but the recovery (a place for installing OTA updates) does keep a log of what you installed, when you wiped data, etc. That log should be in /cache/recovery/last_log


text:
Repair SD card removed from phone without unmounting?
I have a Xiaomi phone and I'm using a microSD card to store photos and other data. I wanted to copy photos to PC so, with the phone turned on I just removed the sd card from the phone.
Putting the card into PC doesn't work, it asks me to format it and putting it back on the phone it seems it's not recognized and when I click 'install SD' it just gives me an error.
I ran Easeus Data recovery and all data seems to kinda be there so it probably just needs to run like a 'chkdsk' for android SD cards :)
How can I repair this card so I can read the files normally on Windows and/or works again in Android without formatting and losing data?

See my answer to Check and fix SD card errors within Android itself?

tesdisk can probably also fix this (it detects the partition also) but I ended up using DiskGenius to fix the partition table and save it, all data come up and it's working 100%. Easeus Partition Magic wasn't able to recover the partition in case anyone gets into the same trouble.
On DiskGenius:

First insert your SD card into your PC and run DiskGenius;
Click on Partition Recovery, Whole Disk and start the scan, it can take a few minutes to run;
While scanning, select Reserve for all partitions that appear;
Hopefully DiskGenius can find your missing partition that will appear in Green on the left Tree menu under your SD card;
If you are happy with the partitions found, just hit Save All and changes will be saved to the SD card

I was able to follow these steps and recover 100% functionality of the SD Card without formatting or losing any data. Be aware that DiskGenius is a paid app. I can guess the free testdisk can also achieve this but I was afraid to do it with the more 'manual' steps required by testdisk.


text:
Can't decrypt adopted storage
Last night, I messed up my LineageOS 16 install on my Galaxy S5 and had to reinstall it, starting essentially from scratch. I wanted to see if there was any way I could decrypt the 128 GB microSD card I used as adopted storage and found this tutorial. I got the key from a backup made using TWRP and tried it on Linux Mint 20 MATE (booting from USB), but it didn't work. The following command gave me an error:
dmsetup create crypt1 --table "0 `blockdev --getsize /media/mint/4B2E-1F13` crypt aes-cbc-essiv:sha256 [16-BYTE HEX KEY] 0 /media/mint/4B2E-1F13 0"

blockdev: ioctl error on BLKGETSIZE: Inappropriate ioctl for device
/dev/mapper/control: open failed: Permission denied
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.167 (2019-11-30) and kernel driver (unknown version).

Doing it with sudo gave me this error:
blockdev: ioctl error on BLKGETSIZE: Inappropriate ioctl for device
Invalid format on line 1 of table.
Command failed.

I couldn't even mount the SD card with Termux when after putting it back into my phone. Is my data unrecoverable? Do I have the wrong key? Thanks.

/media/mint/4B2E-1F13 must be a directory. You need to provide the block device path to dmsetup. It must be something like /dev/sdb or /dev/sdc. Use df to see available block devices. Or see kernel log using dmesg when connecting SD card to PC. // Btw your question is about Linux, not Android.

Duplicate of https://stackoverflow.com/q/16701326/9165920

@IrfanLatif I changed /media/mint/4B2E-1F13 to /dev/mmcblk0p1 (my SD card according to df -h) and the error messages were the same except the BLKGETSIZE lines were replaced with blockdev: cannot open /dev/mmcblk0p1: Permission denied. The same thing happens when inputting /dev/mmcblk0 instead.

no need to nest blockdev in backticks just type value of partition size directly and use proper path to block device

@Pete block devices cannot be read without root. Run from a root shell or use sudo with dmsetup as well as blockdev (both are separate commands). Or write partition size directly as alecxs said to avoid using blockdev in subshell. Provide encrypted partition (mmcblk0p1), not whole SD card (mmcblk0).

@IrfanLatif My memory card actually appears to have 2 partitions. mmcblk0p1 is ~17 MB and gets mounted automatically upon insertion at /media/mint/4B2E-1F13. The file browser shows it as empty with ~127 GB free. There's an unmounted 2nd partition (~119 GB) called mmcblk0p2 and I don't know if I can mount this (or if I even should). I think I'll try the command again, but with ````sudobeforeblockdevas well asdmsetupand use/dev/mmcblk0p1instead of/dev/mmcblk0``` and see what happens.

Then the encrypted partition is /dev/mmcblk0p2. You need to decrypt it before you can mount it. There is no visible filesystem on it until it's encrypted.

https://unix.stackexchange.com/q/599682

Good news: trying the following command successfully decrypted my SD card without any errors:
sudo dmsetup create crypt1 --table "0 `sudo blockdev --getsize /dev/mmcblk0p2` crypt aes-cbc-essiv:sha256 [16-BYTE HEX KEY] 0 /dev/mmcblk0p2 0"

A couple of minor issues:

sudo mount -t /dev/mmcblk0p2/crypt1 /media/mint/sd returned the error mount: /media/mint/sd: can't find in /etc/fstab. I can view the content of the SD card in the file browser running as admin, however.
Copying the files over to my laptop's Windows 10 SSD, some files and directories didn't get copied due to the presence of invalid characters in their names (mainly asterisks and colons in file names and a period in a folder name). Not sure how to deal with these...

Thanks for all your help.

-t expects a filesystem type. Learning by trials is a good thing but having a brief look at manuals and existing web resources saves a lot of hassle: https://www.man7.org/linux/man-pages/man8/mount.8.html

Oh yeah, I forgot about the ext4 part in poqdavid's answer in the question I linked lol. Thanks for the catch. I'm still not sure how to deal with files and directories with invalid filenames for Windows. It seems like only ext file systems can support those filenames, and Windows can only read that with 3rd-party programs. The other filesystems that Windows can use (exFAT and FAT32) don't support those filenames, so I don't think I can copy those files to flash drives formatted as either of those.

No way to force filesystems change their behavior. Such limitations are deep rooted in their design. For backup/restore purpose archive such files using tar, zip etc. Or batch rename such files if possible using sed, mv etc.

you can use tar --transform to convert file names during extraction to fat32 file system based on whitelist charset

transform="--transform='s/[^][A-Za-z0-9 !#$%&'$'\047''()+,./;=@'$'\136''\`{}~'$'\177''-]//g'"; tar -c /media/mint/sd | tar $transform -vxC /media/mint/targetdrive

... still might overwrite case insensitive duplicates (like File.txt with file.txt) but this kind of copy will never fail


text:
Use a phone without a screen
I have a very peculiar situation/question. Below is my mom's phone, OPPO F5 to be precise. It had a broken screen a long time ago. I removed the broken screen, as it posed threat to my siblings, as it could injure them without us knowing. Then, i decided to buy a new screen from OPPO service centre to fix this problem myself. As it is now a lock down period, most/all service centres are not available. I could wait till the lock down is over, but my question is, can you use the phone, like have the screen displayed/ported to a laptop, by wired means(i have no access to the phone's applications or any other forms, as there is no touch screen to control them), to use the phone, till the lock down is over? The phone functions normally by all means, as you can see from the picture, that there is the notification light is still on. Hey Google is also working partially, as when i say it, there is vibration, but no response by the assistant. Any help will be greatly appreciated.
EDIT: When i connect that phone to my laptop, it is charging but isnt detected by my laptop as a device.

Please check the wiki for the tag broken-screen for possible options.

https://www.xda-developers.com/scrcpy-control-android-on-pc

@alecxs Scrcpy cant work in my situation, as the phone isn't detected by the computer. Moreover, i cannot control the phone to enable adb connection.

... then you know the answer

@alecxs Dead end.

except for USB-OTG operating blind (with earphones you might hear click noises, but chance you get adb authorized is low) https://android.stackexchange.com/q/159551

What you could try doing is flashing a custom recovery onto your phone, then get USB debugging permission using the custom recovery, to then launch a screen control software to control your phone.
Every phone have a different way of installing a custom recovery, I remember Oppo phones need edl to install one, you can search up "oppo f5 recovery custom recovery" to find the custom recovery and install method.
After that, get adb, start adb by adb start-server. Next, reboot into recovery mode, it can be done by doing a button combination.
You can then push a key file in your .android folder when your device is detected as in recovery, if you are on Ubuntu, it is in ~/.android. Push the adb_keys in the folder to /data/misc/adb/adb_keys, use adb push ~/.android/adbkey.pub /data/misc/adb/adb_keys
After that, run all these commands to finish our work:
su
mount -o remount,rw /system
cd /
echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop

After that, type reboot to reboot to system, you should now be able to use scrcpy to control your screen.

won't work on locked bootloader because of AVB. btw it's a Mediatek device you probably meant preloader mode (EDL mode is for Qualcomm)

@alecxs I don't know it is a mediatek, but this device HAVE recovery available online

might work if TWRP is AVBv1 signed (which you can do with AIK) but will fail for AVBv2. readback from SP Flash Tool would be option to get a full dump of userdata partition (should be restoreable after unlocking bootloader) another option some user claimed security vulnerability in ColorOS Recovery if that is true one could create a flashable zip which does the necessary modifications and set ro.adb.secure=0 (only userdebug/eng builds) instead of placing adb_keys

If you can actually get a full dump of the data partition then modify it to then send it back, that would be awesome

unfortunately dump is encrypted and can only decrypted on this origin unique device itself (dump userdata + metadata to be exactly) and (unsigned) modified system would not boot


text:
Installing rsync on Android to transfer files from Android to OSX
I am trying to use rsync to transfer some files from my Android phone (Samsung Galaxy S10+ / Android V10) to my local machine (OSX / Mojave).
I did the following:

Installed SSH/SFTP server on my Android device and started the server

Verified that I am able to ssh into the phone (although it logs me in as user u0_a312 and not my_user?)

$ ssh my_user@192.168.0.16 -p 2222

The authenticity of host '[192.168.0.16]:2222 ([192.168.0.16]:2222)' can't be established.
RSA key fingerprint is SHA256:3mNL574rJyHCOGm1e7Upx4NHXMg/YnJJzq+jXhdQQxI.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[192.168.0.16]:2222' (RSA) to the list of known hosts.
Password authentication
Password:
:/ $ whoami
u0_a312

Attempted to run rsync from my local OSX machine to copy remote Android files to my laptop

rsync -avzhP -e "ssh -p 2222" my_user@192.168.0.16:/storage/6632-6330/DCIM/Camera/* .

Password authentication
Password:
exec request failed on channel 0
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52.200.1/rsync/io.c(453) [receiver=2.6.9]

As you can see, I ran into an error on step 3. From some basic snooping on forums, it seems like rsync needs to be installed on the Android remote device.
(That's also backed up by the fact that which rsync returns nothing when executed from the Android shell)
However:

How do I go about installing rsync on the phone? Is this even the right solution here?
I never needed to do this on my previous phone (Galaxy S7), the above rsync process "just worked". Did something change with the standard installation of Android with regards to rsync ?

I've never tried that, but maybe Syncopoli could help. It describes itself as "An rsync client that works", so it hopefully, erm, works.

Obviously you need rsync binary on Android side for syncing to work. rsync has never been a part of standard Android installation. // You can use Termux for both sshd and rsync. Simple. Or put rsync binary somewhere on your $PATH. // Another idea is to use rclone on both sides with sftp built-in server. // Why you log in as user u0_a312 (the app's UID) and not my_user, the concept of users and login in Android: https://android.stackexchange.com/questions/209918

Answer here well help on how to install

Answer here may be of some interest https://android.stackexchange.com/a/179899/131553

Hi @user2490003 everything you are doing is right and the reason its not working is SSH/SFTP server does not support rsync. Just use the app called SimpleSSHD from playstore and it will work with your existing commands..Only pain is there's a little extra work to do and that is you need to copy the id_rsa.pub file to the apps authorised_keys folder for passwordless authentication.

First on Android each app has an own user-id/account, hence u0_a312is the user of the app that runs the ssh server. Regular Linux user accounts like myuser don't exist on Android.
Based on the path /storage/6632-6330/ I would assume that you are trying to access the external sd-card.
On a non-rooted device write access to ext-sd is not possible on Android using standard Linux/Unix file programs (this is only possible via Android Java API). Only if the ssh/ftp server + rsync was specially adopted to use this API it can work.
On Android 10/11 the situation is even getting worse because of the new "Scoped storage" system. Not sure if it is still possible to get full access to all files on the external ad-card.


text:
How to use ODIN with more than a dozen of mbn, bin, img, ext4 files?
I'd like to flash my SM-T813 because it's in a boot loop. I downloaded supposedly the latest firmware. I think it was a tar.md5 file, I peek into this tar file and it's a whole bunch of files:

ODIN has these slots: BL, AP, CP, CSC, USERDATA. I possibly want to lash the bootloader as well. How do I continue from here, which file is which? I see what are the slots here What do the terms "BL", "AP", "CP", and "CSC" mean in Odin?, but not sure which files is which. I guess .mbn means some boot record (?). System.img is the largest, but the other img files are probably important too (actually probably most files).

Putin works with tar.md5 files

@alecxs thanks. My main machine is Linux, I can only put the tablet into download mode and I was not able to get Putin recognize it. I'll try it again. I also double check that this was a tar.md5. Any software takes tar? I tried Kies as well but SM-T813 cannot be factory resetted by it.

i meant ODIN will flash tar.md5 (through AP slot) Sorry, was written from mobile.. what's Putin? :D

@alecxs I was thinking about Heimdall https://glassechidna.com.au/heimdall/

once heimdall works you can use JOdin its a frontend in Odin style https://forum.xda-developers.com/showthread.php?t=2598203

@alecxs Heimdall vs Putin: both are powerful figures - one is in the Nordic mythology and Marvel universes, the other is as boss of Russia. I only tried Heimdall a month ago, but I don't know how I let Putin go - they don't even sound the same :D

i can far remember putin is a canadian culinary (fries + cheese)? some couchsurfers from quebec told me ;)


text:
An app keeps sending me to a website i dont want to be sent on
When i installed an app after a few days it started opening chrome on random time intervals that keep sending me to baovendt.org
How to fix it?

Deinstall the app?

The best way is to uninstall the app, here's how:

Open Settings
Find "Apps and notifications"
Select "See all (how many apps you have) apps"
Locate the app and tap on it
Tap on "Uninstall"
A dialogue will pop-up, now press "OK" to finish the uninstallation.


text:
How do IDE apps on Android build APK?
Apps like AIDE, SketchWare, and AppBuilder can build APK files directly on Android devices.
How do those apps do it?

Sorry for the mistake, I'll post somewhere else. The documentation doesn't cover this topic btw

Sorry, I misread the title as "Android Studio" and reopened the question to give a chance to clarify. Note that since this community focuses on end-users instead of developers, we could probably provide an overview of what those apps do to generate an APK. However, if you want the detail on how to do it on your own app, take note that development-related questions are off-topic.

Yes, thanks a lot. This would be just enough

The tools for compiling and building an Android APK are open source. Therefore you can compile them for e.g. arm and build an Android development environment on-device. It looks like AIDE works this way. I have seen tools like aapt and aidl in the AIDE apk file and it contains a lot of sample Android apps in source code form (Gradle project). Using e.g Termux app it should also be possible to compile Android projects  via gradle on command-line.

Fantastic explanation, Robert. Now I got it. Can you, please and kindly, provide some tutorial or documentation about this?

@Robert nevermind, found this: https://stackoverflow.com/a/9731518/13217410

The linked interview is totally outdated as it talks about the no more used Android development plugins for Eclipse.

Yes, but the rest of the toolchain is almost the same, if I understood well

There are still programs that do more or less the same job, but nearly every tool in the Android build chain has been replaced in the last years. This schema diagram is a bit newer: http://tools.android.com/tech-docs/new-build-system/build-workflow

I see. Thanks for telling


text:
Routing to Google Map services issue
I'm developing an Android application on a tablet that must use both Ethernet (trough USB adapter) and internal LTE carrier (or WiFi) to access Google Map services.
When I connect the USB/Ethernet adapter the application becomes unable to authenticate on Google Map services and therefore map is not populated at all, when USB is unplugged the application works correctly and Google Map component correctly shows its content up to the maximum level of detail.
May this depend on a routing issue? How can I fix this?
BTW the Ethernet port on this device is used only to access other devices located on a private LAN whose network is known.
PS The device is a Samsung Galaxy Tab S2 8.0 t719 running Android 7.0.
-- UPDATE --
I'm not certain of the missing authentication since USB port is busy and I cannot see app logcat dump in realtime but the behaviour is the same I can observe if Google Map authentication fails for some other reason (i.e. WiFi turned off while debugging, invalid Google Map API key etc).

Is the device rooted?

@Robert Nope. But if needed I can try to root it.


text:
Dropped phone into water and shut down automatically after the logo is displayed
I dropped my phone(Asus Zenfone max pro m1) into water then I took the phone out from the water and turned off and cleaned the phone surface with a dry cloth. Then kept my phone in a pouch with uncooked rice for 4 days. Now I try to turn on it shows the logo and shutdowns automatically. Even I tried to enter into the recovery mode but got failed. But I can enter into the fastboot mode. When I try to charge, the charging indicator fluctuates. Can anyone tell me what is the issue?

The issue is that it's malfunctioning because you dropped it in water. Unfortunately hardware issues cannot be fixed remotely. You need to get it fixed by some technician.

Relevant iFixIt Q+A.

I gave to technician and now its fixed. No worries

firstly did you completely sink your phone into rice? if at all you did then no wonder your mother board is damaged! like some kind of short circuit might have happened... well you can replace same model mother board or you upgrade to some good affordable motherboard because they cost nearly same price as new phone, you got 2 options buy new phone or buy new motherboard(costs less than new phone).


text:
Forgotten Swipe Pattern lock for Nexus 6P (but fingerprint works!)
I have a Google Nexus 6P with Copperhead OS installed on it. I forgot the pattern to unlock the screen. Is there any way I can recover (a part) of the data on my phone? I am pretty sure that the answer is going to be "no way", but I just want to ask to make sure, before I wipe the phone.
I DO have a fingerprint in the phone, which works. Unfortunately - for some security reason - it wants the pattern as well.
Maybe I can add, that I kind of remember the swipe pattern. I am sure about a middle part, but not about the beginning and the end. Unfortutely I have tried so many combinations by now (even keeping a book), that I have to wait 240 seconds now until I am allowed to enter the next try. (First I had to wait 20, then 30, 60, 120 seconds, now 240.) I had about 55 tries by now.

What you can do since you have such an open phone is unlock the bootloader temporarily and flash a custom recovery to remove the password related files. Here's how:

Unlock your bootloader - 1
Install a custom recovery - 1
Use the custom recovery's "File Manager" feature to remove the following files - 2:

/data/system/password.key
/data/system/pattern.key
/data/system/locksettings.db
/data/system/locksettings.db-shm
/data/system/locksettings.db-wal

Reboot your device
It should now have no password/pattern, enjoy your device
Reinstall stock recovery (should be automatically reinstalled when you reboot) and relocking bootloader - 3 (Optional)

"This will erase all user data from the device!" have you read the instructions you shared?

He have Copperhead OS, he have his bootloader unlocked.

main purpose of CopperheadOS is Security therefore the last step in official install instructions is locking bootloader

even on unlocked bootloader this method would cause data loss (for FBE file-based encryption in general) but in this case even for FDE full disk encryption, because CopperheadOS generates separate disk encryption keys for each user profile based on login credentials which get unrecoverable on deleted locksettings.db (besides this TWRP might not work on fingerprint but asking for pattern instead)


text:
SIM card not detected on Lineage OS
I installed LineageOS on my OnePlus One (bacon) a few months ago. With Covid-19 lockdown it was weeks before I noticed that the SIM card isn't being detected. I thought it might be damaged, but EE sent me a replacement, and inserting it changed nothing.
Could it be an absent LineageOS driver? Is that likely? If so, where would I get it from? Perhaps there is a problem with the SIM connectors? As there is the "NO SIM card" message, I assume that no other diagnostic software can communicate with the SIM when it is in such a state.

If it is a general Lineage OS problem with the OnePlus One there should be more people complaining about. Check xdadev and the LineageOS bug tracker. The only way to test it would be to reset your device back to Stock ROM, if it then does not detect your SIM the SIM slot may be detect.

I think I found a solution to this. In my case, the SIM stops working every time I place the SIM into another device and back into my Oneplus One (Lineage OS). It works perfectly until I remove the SIM card, put it into another device, and then back.
I have tried factory data reset, different custom OS, stock OS, Ubuntu Touch, nothing worked. After having tried hundreds of different variations, here's the recipe:

Flash Lineage OS recovery
Install Lineage OS (all with SIM inserted)
After install, boot into the system. SIM won't be detected at this point
Go back to the recovery mode (Vol. Down + Power for several minutes)
Format cache data ONLY
Boot back into the OS. Sometimes the SIM will start working even at this point but if not, just do a factory data reset now (initiated from the OS settings) and the SIM will be working perfectly

I don't know if anyone else will find this useful or maybe it's just pure luck and it is indeed totally random whether it works or not, but I have done this a few times after having succeeded to test stability, and so far this method works every time.

I won't get a chance to try now for some time, but I'm happy to go for a green tick for now.

I still don't get my SIM card working in Google Pixel 2 :-( I worked exactly on your list except step 1. (I used TWRP as bootloader).

I got it fixed by creating the APN manually.
Mobile network > Advanced > Access Point Names. Here I created a new one using only the information posted online by the provider (leaving everything else untouched). Comparing the newly made one with the old one, there were some differences, like the newly made one didn't specify a port or a password.

The Access Point Name? Could you explain a little more?

Mobile network > Advanced > Access Point Names. Here I created a new one using only the information posted online by the provider (leaving everything else untouched). Comparing the newly made one with the old one, there were some differences, like the newly made one didn't specified a port or a password

The advanced menu isn't accessible with the error "No SIM Card"

It may help to remove the screen lock / password fully and reboot. There's some bug that prevents the SIM card from working if you have a screen lock. Afterwards, you can set the screen lock back.


text:
How to know what are the supported char sets in my android device
In my android device, I want to know what are the supported character sets?
Is there any way to know the list of character sets supported  by adb command?


text:
Cant move a single app to SD card on Samsung A21s
I got an A21s yesterday and a new SD card but when I try to move apps over to it, it shows no option to change storage. This is for every single app, even ones I know should be able to move over. Had Samsung phones for years so know how to do it, it just won't let me. In which case the phone is useless if I can only use my SD card for photos.
I've formatted it, unmounted it, formatted it, turned phone off, turned phone on, looked at every single setting, even downloaded apps2sd, still impossible

https://android.stackexchange.com/tags/adoptable-storage/info

http://play.google.com/store/apps/details?id=com.gmail.heagoo.sdcardmovable


text:
Reviving my phone after a small part of it (eg the processor) overheated
I tried to compress my 1.6GB video in the Media Converter app by exporting it to mp4(h264,aac) on my OnePlus 3 as per https://www.quora.com/How-do-I-reduce-video-size-on-Android. However, approximately 75% of the way through the conversion (after about 30 minutes) my phone overheated and turned off (with the screen going black immediately and no shut-down procedure). I tried to turn it on in the normal way, but it would not turn on. After leaving it to cool for 5 minutes, I plugged it back into the charger and it immediately turned on automatically (displaying battery at 30%).
I tried to compress the video a second time, this time putting my phone on an ice-pack to keep it cool and leaving it on charge. I touched and checked the front and back of the phone regularly to ensure it was remaining dry, was not cooling too much because of the ice pack, and was not overheating (it remained at something like 20 degrees C, approximately the same as the top of the ice pack, through most of the process - although the bottom of the ice pack remained cold). This time it turned off after 45 minutes, 1 minute before the conversion was due to complete. Immediately after it turned off I noticed a very small area near the speaker (I assume near the processor) was overly warm (though not hot). I assume the heat could not escape fast enough from the hot processor into the body of the phone. Maybe the internal thermometer was closer to the ice-pack than the processor and 'tricked' into thinking the processor was cool. Now my phone is not turning on, displaying anything on the screen, or vibrating, even after plugging it into the charger and unplugging it many times over the past 12 hours. What can I do to try and revive my phone?

If you manage to revive your phone and still want to do cpu-intensive jobs, make sure to root it, than set a kernel profile which would auto cut the power to the CPU once a set temperature reaches (many runtime kernel tweaks apps are available in the market). Make sure the temperate is way below your SoC can handle. Also, try running your commands with limited processors. taskset command should help in this case.

The only thing you can do is get it to a repair shop. Smartphones are not designed so that a user can do anything. May it would be possible to replace a certain part of the phone but it requires experience and testing tools to identify the defect part and disassembling/reassembling is not that easy (see OnePlus3 teardown).

@Robert I bought the phone second-hand from CeX, and am 18 months into a 24-month warranty. Should I tell CeX what happened first to see if they would replace it, in case taking it to a repair shop would void the warranty? Or would running the phone on an ice-pack have already voided the warranty? (Just to re-emphasise the phone as a whole was not at a lower-than-normal temperature when it went unconscious, but I probably introduced a steeper-than-normal temperature gradient from the processor to the internal thermometer(s).)

I managed to turn my phone on by myself. Hopefully it will continue working.
I warmed up 2 plates in the oven to 80 Degrees C, took them out, and put a third (cool) plate with the phone on top of them. Once they had cooled enough to hold my finger on them, I stacked them into a warm plate-phone-warm plate sandwich, with the top plate upsides down. This warmed the phone up quite a lot, and was meant to allow any moisture to escape. Maybe it also affected the battery. In any case it turned on after 30 minutes of warming.
I would have put my phone on the radiator, but the weather is too warm to turn the radiator on right now.


text:
Samsung galaxy s7 submerged in water. How serious can I expect it to be?
I dropped my Samsung galaxy s7 in water. It was submerged for less than 10 seconds, I turned it off within 30-60 seconds after that. It was working properly when I pulled it out of the water and while I was wiping it's surface dry, and I also managed to shut it down cleanly. I've wiped the audio jack opening and the USB port with a thin piece of tissue paper and also dried out any openings with a hair dryer. On hindsight probably shouldn't have done that, but it's already done. I've pulled out the sim card, and at least the sim card slot looked completely dry inside. It's since been turned off and is completely covered by dry rice.
How much damage am I looking at? This is the first time I have had water problems with a phone with an unremovable battery, and it doesn't look like I can do much else with it at home. Should I take it to a repair shop anyway and have it opened and dried? I don't know how much it would cost, and since it is an old phone anyway I don't know if it'll be worth it if they ask too much. Since the phone seems to be pretty water resistant I am wondering if I can just brush this off.
How much damage can I expect? If the phone turns on, charges and works normally is it safe to continue using it as usual? I am okay with keeping it under rice for 24 hours or more if that's necessary. When is the earliest I can turn it on again?

The Galaxy S7 is IP68 certified - dust/water resistant up to 1.5m for 30 mins. The one question is how much pressure was created by the splash when it fell into the water as this could result is a pressure equivalent to a much higher water depth. And the other question is what water was it (tap water, salt water, chlorined, other chemicals)? Salt and chlorine can cause corrosion after a while.

for non IP68 devices i recommend to immediately disassemble and disconnect battery. you can heat device with open case in oven (not a microwave!) at very low temperature (50° degree celsius) but make sure there is no display foil and place it on a saucer with glass side (as less contact points as possible)

@alecxs what's non IP68? Given what Robert said above, I'm guessing it doesn't apply to my phone?

@Robert it was just a bowl of tap water in the kitchen, may be a bit soapy with dishwater liquid. The phone slipped and fell in, but submerged completely

i mean any other non waterprotected device. IP68 is just classification of kind of protection, don't take me literally

@alexcs how long do you think I should leave it in the rice? Do you have any ideas? Would it be any helpful given I've dried it a bit with the hair dryer?

i don't believe in rice, hair dryer is definitely worth a try. 24 hours in the sun is enough

is your phone back to life? :)

@alecxs nope. thinking of getting it dried first at a repair centre after the weekend. still not sure how much it would cost though

why do you think it is wet inside? (IP68 dust/water resistant up to 1.5m for 30 mins) i think repair center will harm more than repair according to this video i won't be the one who say just switch on but your device is most likely fine

@alexcs I took your advice and saved me a trip to the repair shop. Seems to be working fine.


text:
Android fastboot restoration points
Does Android have restore points that can be accessed via fastboot?
In Windows7 (support ended February 2020) restore points are created so the OS can revert back to last known state should anything go wrong. This revision includes settings, software, browser history, etc. This handy feature has helped me several times. Does Android have such a utility/feature where by any means (fastboot or adb) it can be rolled back to last known state? Kindly read more to understand the full situation.
My phone is stuck in fastboot. I have been doing research on how to get it out of this. The phone runs Android Go. Usually the OS updates and completes without any issues, but this time during an update the battery died and upon power up it got stuck in Fastboot mode. I understand both Fastboot and ADB have commands of their own that can be used to interact with Android OS via USB connection. I have a question that my research has NOT answered. Before I run any commands in this mode (fastboot) I want to know, is there a way to restore the device to its last stable state (ie before the failed OS update)?

Does this answer your question? A/B (Seamless) update device questions

@alecxs Thanks for the input.
In many ways this information helps. Now another question is how do I get out of Fastboot into the partition that had the older (working) version? According to the link if the update is 'borked' it should rollback to working build. But now it is stuck in Fastboot. How do I tell it to come out of Fastboot into the working build. Thanks in advance.
PS: Is there any pdf tutorial you can recommend to learn fastboot, adb commands?

fastboot or adb just some google results (haven't read)

thanks for the help @alecxs. Since I don't know what slot was active/inactive, I will go over the commands to know which one can retrieve the slot with a clean installation of the OS, then Fastboot into it (the other slot should be the one that failed). Sounds like a plan. I will endeavour to post results so others can learn as well

flash official ROM

I ran the command fastboot getvar all and the current-slot was NOT in the list output. I can see partition-size and partition-type listed for diff partitions though. My guess is the device does NOT support seamless system updates for dual slots. I tried rebooting into recovery but it takes me back to Fastboot mode. I can see recovery in the output but cannot boot into it. I can really use some useful suggestions thanks.

@alecxs I had to delete and repost an edit to my last comment (kindly take a look). Will I be able to keep my files/data if I flash the official ROM? I am keeping that as a last resort until I am sure I have exhausted ALL options. fastboot continue does NOT work for me

@alecxs I have asked another question with more details.
https://android.stackexchange.com/questions/228396/cant-access-recovery-partition-android-8-1-go-edition

you can try
fastboot --set-active=a

or
fastboot --set-active=b

ane one of them should work if your other slot is not corrupted

please add fastboot continue (or fastboot reboot) to your answer as well

I will NOT be able to use this since I recently found out my device does NOT support Seamless System Update.

@thinkhjj what is your phone model

@theggputest55 I have asked another question that has phone details and commands I have tried:
https://android.stackexchange.com/questions/228396/cant-access-recovery-partition-android-8-1-go-edition


text:
Help diagnosing constant CPU usage of phone during sleep (Battery Historian Chart)
I saw a great Battery Historian guide and decided to try it out. I noticed that last night while my phone was unplugged, the "CPU Running" bar was active the whole time when I was asleep. This should only be intermittent, not a constant black bar.
Here's the whole battery historian chart, CPU running stats at the top.

Hovering over the CPU Running bar, I can see what's causing the CPU to run:

A lot of "abort" wakelocks whatever they are.

Abort: Pending Wakup Sources: dwc3-otg

Abort: Pending Wakup Sources: usb_notify

There's also something called "Unknown".

I have a Galaxy S20 (exynos). I have not used any package disabler app or rooting etc.
Googling the above wakelocks brings back nothing. Just some random github code.
Compared to this other S20 user's battery historian chart, my CPU running bar should be intermittent only. https://preview.redd.it/edegbwhq1sq41.png?width=1701&format=png&auto=webp&s=b8d53673d3ca754feac8ded9da6ca408592f655c
Any android expert have an idea how to diagnose this?
edit: there's also constant "BLE Scanning" on the screenshot which is "bluetooth low energy". I have bluetooth off, nearby devices off, improve accuracy via bluetooth off.

Wakelock tag wiki may help

Thanks. Do you know of anywhere else I can ask this question? There's no discussion of these wakelocks on the entire internet. Do you think I'd get banned from android developer stack overflow if I asked there?

I am not conversant with [So] but as far as I know you won't get banned! Try asking that related to programming. //To really get to the root of the problem, you would need to root your device and identify source of your problem, whether it's an app Wakelock or kernel wale lock

These two wake locks are related to the OS
and android doesn't give any control over the system wake lock without root
Some times the OS gets buggy and it will not release the wake lock.
your best bet is to reboot the phone and wait about 5 hours to see if the battery drainage is the same after the reboot. if that did not fix it then it is an OS bug that only Samsung can fix. not that I think that they will


text:
Is there STB emulator for STB developers which runs on PC?
We develop an STB app, we run it on actual STB boxes for testing, the boxes are slow and the development experience is so bad.
Many options on the STB are only accessible through a remote control. We use windows 10. We tried many Android emulators and bluestacks and whatnot, all of them boot the app but they boot it in phone layout, we're looking for

Free STB emulator that can be used for development and run on windows
The STB should open the app in STB layout, as if we're using an
actual STB BOX
The STB should map some keyboard keys as if they were TV remote control keys, such that everything we can do on an STB, can be done on the emulator

The emulator form Android SDK has two Android TV emulator device profiles, have you tried them?

@Robert I'm not the android developer, I asked him to test that, he said he did and didn't work, not sure if I should take his word, will test that myself in few days and let you know


text:
How to edit the Android context menu?
I've encountered an app which adds itself to the global Android context menu. The entry has even overtaken native Firefox options in the past and currently slows down my workflow in every app where the context menu is relevant.
I may also want to remove some other options such as 'cut' (for text).

Suggesting to uninstall this specific app isn't an answer. Using ADB is fine. I'm rooted if that's a necessity.

I wasn't able to think of hugely relevant tags. I'm indeed running an AOSP ROM.

From Ian Lake
's Medium article, Intent.ACTION_PROCESS_TEXT should be the culprit. However, I haven't researched if it's possible to block/disable it as an end-user.

How to set which options appear on the text selection toolbar?

Still applies to the 8.4.52 version (Android 11).


text:
Making Skype calls over Amazon Fire TV Stick
Making Skype calls through Amazon Fire TV Stick
I have a Samsung Smart TV which does not use Android; I thought all smart TVs were Android and the return date had passed. To get around this, what I propose is to use an Amazon Fire TV Stick. Amazon Fire TV Stick has a power USB port which I link to something like this where a USB hub could be used to add a camera and microphone.
I was wondering if this system would work to make video calls with Skype on Fire TV Stick.
I understand that even if my TV was an Android TV, Skype has discontinued its services on smart TVs. However, I really want to know if this system would work because then I could also use it on other conferencing software like Zoom.


text:
Sailfish (pixel 1) phone with stock android stuck in boot loop: help installing lineage
I have successfully installed lineage os on a nexus 6 that worked perfectly with stock android. That is the extent of my experience with non-stock android.
I have a google pixel (sailfish) device that a long time ago stopped working. I could boot into android, but the CPU seems to race, as it gets extremely hot, and then freezes and eventually reboots, shows a google splash screen for a few seconds, reboots again, and is stuck in a constant state of rebooting. I let it cool off, rebooted into android, quickly (I usually only have a minute or two before it overheats) enabled developer options, enabled oem unlocking, enabled usb debugging, and then rebooted into fastboot. The phone is stable in fastboot (does not get hot, does not freeze or reboot), which suggests to me that the problem I am having is not necessarily hardware.
In addition to serial numbers and memory amounts, the fastboot screen indicates the following:

Product/Variant: sailfish-US-PVT
Boot-slot: a
Console: DISABLED
Secure Boot: PRODUCTION
Device is UNLOCKED

I tried booting into twrp:
$ fastboot boot twrp-3.4.0-0-sailfish.img
downloading 'boot.img'...
OKAY [  1.190s]
booting...
OKAY [  0.956s]
finished. total time: 2.146s
$

But the phone reboots into the google splash screen, and is stuck in the same infinite boot loop as before.
I have tried many different twrp versions, including twrp-3.2.3-1-sailfish.img which the maruos website suggests, all with the same result. I also admit that I have done various other things out of desperation, like erasing partitions and attempting fastboot format commands, most of which gave errors and did not complete. I also tried booting into recovery mode from fastboot screen, but that takes me to the same google spash/loop.
Can anyone help and provide suggestions for what to try next?

fastboot boot is not working on all devices. try fastboot -c "lge.kcal=0|0|0|x" boot

Thanks. fastboot -c "lge.kcal=0|0|0|x" boot twrp-3.2.3-1-sailfish.img takes me to the same google splash screen / boot loop

ask in TWRP support thread for someone sharing a working twrp boot.img you can flash straight without installer


text:
Native phone app and Hangouts both answering calls
I have a Samsung Galaxy 7 running Android 8.0.0 using Ting on the Sprint network. I use Google Voice and Google Hangouts. When I get an incoming call on the Google Voice number, both the native phone app and Hangouts both prompt me to answer and seem to be fighting with each other. How can I get the native phone app to stay out of this and just let Hangouts answer the call?
[I am fine with a setup where the native phone app never answers, even for calls to the native phone number of the phone, and I never use or give out that number. If I get a call on that number, I know it is SPAM.]

Since Android 6.0, there should be a setting for default apps. As for Samsung devices, try following the Samsung's official support?

There is no default app setting for answering calls, at least not where the article you linked to sends me. This isn't a hardware issue, so I doubt Samsung support will have any interest in assisting with this issue.


text:
Is it possible to change the userID of something like Fused Location Provider?
I have a bunch of apps bundled under userID on my stock rom, including Fused Location Provider. Since I'm using AFWall+ to block said userID to block said apps - it also breaks my location detection for Osmand.
Is there any way for me to change the userID  it runs under? I have root available to me.

No. Fused Location always runs under system UID (1000).

So there is absolutely no way to change that? What launches it?

No. Android framework.

Okay, so nothing I can edit on live system even with root access? Hmm, what about system image editing offline and then installing that?


text:
Looking for a way to prevent my phone from installing a specific app?
As the title says, I'm wondering if there is a way to prevent your phone from installing an app. The method would have to be irreversible, or nearly irreversible (i.e takes significant time), not something simple (i.e parental controls). If you have any ideas please let me know, no matter how technical. For reference, the most technical android thing I've done is use adb debugging for some task on an automation app. Your help is greatly appreciated.

I assume by "download" you mean installing. Downloading an app just creates some Internet traffic and consumes some flash memory on your device. Additionally it is way more complicated to prevent downloading an app file than preventing to install it because there are hundreds of ways to download an app, but for installing you always need the package manager.

Yes sir, I mean installing.

Unfortunately no irreversible way to block anything as the block would be implemented in software and software can always be changed back. The only chance I see would be to use a custom ROM and to manipulate the package manger to block certain apps based on their package.name. But as I said if you are able to install a custom ROM anybody else can also do the same and therefore replace the adapted package manager back to an unlimited one.

ok, thank you for your comment. Do you know if I could block certain apps in package manager like you said, without a custom ROM? Also, for context, this is for me only. I'm trying to block an app for self-control purposes, so I'm not worried about other users on the phone or anything like that


text:
Emulator 'redir' command unavailable... (?)
I am trying to configure my emulator to connect to my WiFi as per these instructions, however, I find that the "redir" command is not available. My emulator is for API version 29, and its image was generated from the AVD manager supplied with version 4.0.1 of Android Studio.
What gives?

The console has to be authenticated first to unlock more commands on the emulator console, including redir.

After connecting through telnet, it will prompt something like this:
Android Console: Authentication required
Android Console: type 'auth <auth_token>' to authenticate
Android Console: you can find your <auth_token> in
'C:\Users\<user_name>\.emulator_console_auth_token'
OK

Browse/open the said file, and note/copy the 16-characters authorization token

Then, enter auth <auth_token>

Afterward, redir and more commands will be unlocked (typing help will show the available commands)

That worked. I wasn't expecting the console to need further information, and hence it may have helped if the instructions were given in the guide I was following. Thanks for your help.


text:
"Translate" Screen up using adb commands
The lower 30% of my samsung S10+ Screen is broken and constantly emits blinding white light, making it unusable at night and cutting down battery life drastically. I have tried to use adb commands to overscan the resolution 300 pixels upwards, but it tends to break most apps even after adjusting the density, and doesn't prevent the blinding light. If i change the image res it will shrink to the middle, but create black bars on the top and bottom. If I could do this, then translate the entire screen upwards to just have the black bar on the lower part of my screen that doesnt work, that would be perfect. Is there a command for this? This is essentially a duplicate of this question, but it seems it ended as a dead end. Any help is appreciated.


text:
Font Rendering Broken When It Comes To Small Slanted Fonts
I was using Discord on my AOKP 7.1 GM7102 and there was a message that looked like this.

I copy-pasted one of the text in a text program -Xplore Text Editor- in the phone and the same boxes appear when I copy to the notes app. I sent the file to the PC and this is how it looks like.

When opening in Word. Out of major encodings, apparently only UTF-8 worked rest were messed up and weirdly when I selected the text it was half the length of the selection box.
So how do I fix that? I once changed Roboto-Regular with Lucida Console.ttf but I don't think it's related. Changing to the online Roboto-Regular download didn't help either.
This is probably an app-based problem but I want to know if it has something to do with Android in general.
Here is direct copy-paste from the Discord browser.

If you are considering leaving the squadron please DM me and you will be dismissed accordingly also please provide a reason for  leaving and the name of the squadron you are transferring to (if that is applicable)
REDACTED
Please fill out the following in #apply-here if you are interested, or DM me if you have problems!
1)   - ?
2)   - ?
3)      ?
4)          ?
5)Are you able to participate in Squadron Realistic Battles?
6)        ?    ?
7)       =Redacted= - ?
8)What is your age?
REDACTED27.07.2020
Please respect the chain of command and understand what roles do what.
Deputy/colonel has equal permissions as commander.
Officers can accept your ingame application and is an admin on the discord.
Sergeants are moderators on the discord and can only control WWM ingame.
The purpose of this message is to prevent things like this happening again

Tbh I think this is more of an OS issue, fixable only by an upgrade or possibly by root. Is the text visible in any other app?

@SSS all apps show the same rectangles. AOKP is rooted