text:
My phone loses connection after sending 150-200 sms
I'm sms spamming to my business number (because of a campaign from my provider). But after sending 150-200 sms from my personal number to any number my phone loses connection. I called the service provider of my personal phone that I use to send sms. They said it shouldn't happen. I'm using an application for sms spamming and it is sending 1 sms per second. Samsung Galaxy S7 Edge 32GB Android 7.0 rooted.

I don't think that automated sending of SMS is covered by your cell phone plan. Most likely they throttle the incoming SMS messages and your phone baseband is crashing because of blocking messages. Mass SMS messages are usually sent via backend systems directly via Internet, not over the air from a cell phone.

Which phone loses connection – the sender or the receiver? There's a limit to how many SMS you can send per hour (or was it per half-hour, I don't remember). That limit can be configured. Ah, there it is: Change the SMS Limit on Android so you can Send More Messages

@Robert I talked with my provider and they said it shouldn't happening because they have no limit about sending sms as they said.

@Izzy sender phone loses connection. It say not registered on network after sending 150-200 sms. When I restart the phone I'm able to send sms again. And I did what it says on the guide but it's still the same.

@BaranGündüzYILDIRIM It does not matter if or if not your provider has a limit. If the setting that Izzy linked to has no effect then your phone baseband seem to crash because of bulk sending SMS. Therefore you have two choices: reduce the number of sent SMS per minute or use different phone (or try to install a different ROM).

i don't think that your provider is aware of the specific hardware of cell towers around your location. even if your contract has no restrictictions, the company who owns that cell towers may restrict spamming. but thats guesswork

@alecxs How can I reduce the number of sent SMS per minute? Btw I tried to use different phones with my sim card. They were all the same. I tried on 3 different model of samsung phones.


text:
In AFWall+, how do you block everything by default?
I want the default to be blocked unless I specifically allow that app. I understand you can tick all what you want blocked or not. But, what I want is for any app that gets installed to be automatically, completely, blocked from the git go - unless I get in AFWall+ and allow it. So if an app called X is installed, it wouldn't have any access to network without me having to block it. Appreciate any pointers.

As it might prove helpful in addition, here's a video tutorial for AFWall+. And again, for German speakers the recommendation of Mike Kuketz' security blog series "Take back control": AFWall+.

Use it in "Allow selected" mode.

And yes, good idea to allow AdAway (first entry in that list) access :D Just mention that effective ad blocker for the benefit of the OP so Kaftee can check that box on the question list (@Kaftee: you know what I mean: the "other" part. AdAway requires root, too, and effectively blocks requests to "bad domains").

source: Stack Exchange

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

sort: votes


text:
Voice activated / HF inputs: how can you escape special function phrases?
For example, say I have a sentence that I want to end with a period then have returned to a new line, but the contents of that sentence itself include period and new line as literals.  Is it possible to use voice-only commands to write such a message?

I tested the sentences below. They should have been separated by a new line.
The first period is about to start.
He crossed a new line on the sand.
This is the end of a period.

In my case, period was handled correctly the majority of the time whether I wanted the word period or a dot for the first sentence. The 3rd sentence was hit and miss. For a sentence that as both the word period and the punctuation mark period, you can make it easy for the phone by saying full stop so it can differentiate between the two. But for the third sentence, the differentiation did not work.
To go to a new line, I had to pause 1-2 seconds before saying new line. Only then, was it recognized as starting a new line and not the literal new line.
In both cases, while dictating my sentences in one go, the literals were considered. Pausing would insert the punctuation marks. This is not a scientifically proven experiment. You will have to test on your side and reach a conclusion.

I found saying "new line" is very hit-or-miss[1], but "carriage return" seems to work more consistently. I haven't actually found this documented anywhere. AFAICT the "Text Editing" section of the online Voice Access commands reference makes no mention of punctuation, including "new line" or "carriage return", while the command reference on the phone (via Voice Access settings => Voice Access commands or saying "what can I say") lists "new line", but not "carriage return"
[1]: Very occasionally it actually inserts a new line, but it seems to far more often get mis-recognized and inserted as "New life" "Do line" etc. (seems to be mis-recognized far more often than any other phrase for some reason. Maybe because I'm often saying it in isolation, out of the context of a full sentence?)

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


text:
Wipe personal data from android mobile without rooting
I apologize If placing a already answered questions. But I am novice and have tried finding answers to no avail.
I got a Moto G3 (2015) from a friend and I want to erase all his personal data to the extent of unrecoverable to ensure protection of his privacy.
I can root it using TWRP, Supersu, Magisk as I found on many websites/ forums. But I have following question/ agitation in my mind.

Rooting will left me not able to run some app like bank apps as they do not run on rooted mobile.
Will I be able to factory reset my mobile after rooting mobile using custom recovery image i.e.  TWRP, Supersu, Magisk .
Will these files be safe.

So to get rid of all these problems I do not want to root my device at all.
4. can I wipe/ erase all personal data securely with multi pass using a an open source app/ adb from internal memory.
5. does Android store log files and temp files as in Linux in /var/log/. How can I erase them without rooting.
6. If I am wrong and I can root my device without any problem. Please advice me.
The answer to question suggested by Irfan is not specific to my question. Through it is a good post for common knowledge but did not tell How to to a novice.
Thank You.

Does this answer your question? How to make a complete factory reset, without anyone being able to retrieve my data?

you can do factory reset from phone settings. but take care of FRP lock, remove all google play accounts or enable OEM unlocking in developer settings before

Thank You Irfan It is a whole chapter. I had unlocked boot-loader officially(just for information). I put big movie files and encrypted the mobile and then ran factory reset. Was it enough. I am not talking of ordinary recovery. I want it completely unrecoverable.

a simple factory reset from android settings is enough. reason: the encryption keys wiped on factory reset. without the keys everything is just unrecoverable garbage, no need to overwrite userdata multi pass. even with recovered encryption keys it is not possible to decrypt without proper lockscreen password. not even bruteforce is possible for 6+ digit pin, because android has bruteforce protections, timeouts, auto-wipe etc (and offline-bruteforcing is not possible too, encryption is hardware-bound)

for some old qualcomm devices there was once a crack into keymaster which could leak the hardware keys and made offline bruteforce possible. but that is long fixed
https://www.theregister.com/2016/07/01/turns_out_breaking_android_fulldisk_encryption_is_easy_with_the_right_code
https://www.synacktiv.com/en/publications/kinibi-tee-trusted-application-exploitation.html


text:
Where is the license information for an Android app displayed?
I assume that all Android apps are licensed. However I can not find the  license information anywhere. I thought it would be available when the app is viewed using Google Play Store so you could decide whether or not you were happy with the license before downloading the app. I can not find it on the Play Store or anywhere else. Where is it please?

Whilst I'm inclined to agree this is off-topic, Google's view seems to be that licensing is not a salient for Play Store users, who primarily care about the cost of an app.  If licensing is important to you (good for you!), consider using the f-droid repository and associated tool, where licensing is a salient, and the information is displayed alongside every listed app.

You can get license information from Apache.
These websites contain open-source code. For example:
https://android.googlesource.com


text:
Data gone after adding a new SD card and formatting as internal storage
I've just added a Samsung EVO 128GB MicroSD card to a Fairphone3 and formatted it to "internal storage"
After that WhatsApp is not able to find media any more and pictures located in "DCIM" seem to be vanished.
However when I inspect the storage devices in the Android settings it looks like a lot of the space of the SD card - as well as the internal storage are in use.
Stragely Android reports the SD card to be 256GB instead of 128 - while gparted tells me the correct size.
Is there any way to find out where my data has gone?

https://android.stackexchange.com/q/214233

Have you tested the sd-card before using it if it is a fake (shows higher capacity that actual flash chip)?

It looks like Android just displays 130GB as 256GB - on adb shell, the correct size is being reported and I just made a dd-rescue of the whole sd-card without any errors. So it looks like transferring data to the 'internal storage' killed data.

WhatsApp files are still there in /data/media/0 but /sdcard is no longer targeting it. you can move files from internal storage into adoptable storage /mnt/expand which is accessable via /sdcard now. use the Migrate Data option. see linked question


text:
Download location of pdf files saved in the of Academia app
Using Academia free app and downloading papers: where are these papers downloaded on the system? I don't see a specific setting for that in the app, at least not in the free version.
I want to open the downloaded pdf in a pdf viewer, not in the app (although I know I can download the same pdf in the browser etc).
For now, what I do is open the PDF in the app and use the "share  file" option.

Thus, I can get the pdf file with the app to which it is shared (whatsapp, gmail, sms etc).
But I would prefer to know the download path  - if there is one.

Android usage Linux based kernel and security, so every app runs in its own sandbox. Although storing app specific files depends on the developer most of them store in app specific folders which again can either be accessible by user or not. If you can't find any app specific folder created on your sdCard(external storage) look for /Android/data/yourAppSpecificPackageFolder [in your case /Android/data/com.academia.academia] in internal storage, you can look for folders within this. It can be stored as it is(.pdf) or some other format which default applications might not understand(so you can't open it).
If you don't find here then it might be in  /data/data/yourAppSpecificPackageFolder for which you need to have rooted device.

The packageName of the app is known, hence you can at least provide the complete path for that app, instead of posting a generic path. Additionally on Linux /Android means the folder Android in the root folder, hence I assume you mean /sdcard/Android....

The only item called "academia" is indeed /storage/emulated/0/Android/data/com.academia.academia, but no pdfs there. My only clue that the pdfs are really on the device (by contrast to just being virtually put in a library) is the fact that by sharing the file to gmail, Whatsapp, etc I can get the pdf. By the way, the device is NOT rooted.

@cipricus it will be mostly on device(as you can share it through whtsApp etc this will be better option for developer to do). if you can't find even on internal storage folder then it must be in /data/data which will require root access.


text:
How to restore TWRP backup when in boot loop?
Problem
My phone is stuck in boot loop after suffering water damage. It only reaches the boot loop when I'm charging, otherwise it does not react at all. Edit: I took the battery out and let it and the phone air dry for several days, I don't think there is any moisture left.
Device Info
My phone is a Galaxy S5 Plus/kccat6/SM-G901F and runs lineageos. TWRP is installed. Edit: I have a more or less recent backup saved on my desktop computer.
Backup Info
As per the comments, here are the names of my backup files:
total 4.2G
-rwxr----- 1 nonthevisor nonthevisor   13M Feb 11  2020 boot.emmc.win
-rwxr----- 1 nonthevisor nonthevisor    80 Feb 11  2020 boot.emmc.win.sha2
-rwxr----- 1 nonthevisor nonthevisor  1.6G Feb 11  2020 data.ext4.win000
-rwxr----- 1 nonthevisor nonthevisor    83 Feb 11  2020 data.ext4.win000.sha2
-rwxr----- 1 nonthevisor nonthevisor  909M Feb 11  2020 data.ext4.win001
-rwxr----- 1 nonthevisor nonthevisor    83 Feb 11  2020 data.ext4.win001.sha2
-rwxr----- 1 nonthevisor nonthevisor    66 Feb 11  2020 data.info
-rwxr----- 1 nonthevisor nonthevisor  711M Feb 11  2020 external_sd.f2fs.win
-rwxr----- 1 nonthevisor nonthevisor    64 Feb 11  2020 external_sd.info
-rwxr----- 1 nonthevisor nonthevisor   15M Feb 11  2020 recovery.emmc.win
-rwxr----- 1 nonthevisor nonthevisor    84 Feb 11  2020 recovery.emmc.win.sha2
-rwxr----- 1 nonthevisor nonthevisor  4.1M Feb 11  2020 recovery.log
-rwxr----- 1 nonthevisor nonthevisor 1014M Feb 11  2020 system.ext4.win
-rwxr----- 1 nonthevisor nonthevisor    82 Feb 11  2020 system.ext4.win.sha2
-rwxr----- 1 nonthevisor nonthevisor    65 Feb 11  2020 system.info

What I tried
Here are the things I tried, in the order I tried them. After each attempt, I tried to reboot, the error is still there.
Restore backup from device

boot to recovery mode
select restore
notice that there are no backup files found on the device

Restore backup from pc

boot to recovery mode
connect to pc
try to mount USB-OTP
"unable to mount"

Flash new lineageos image via heimdall

confirm heimdall is running by typing heimdall version
boot phone to download mode
type heimdal print-pit to check if device is found
ERROR: Failed to detect compatible download-mode device.

Install lineageos from recovery via adb

boot phone to recovery mode
select sideload
on host, type adb sideload lineage-16.0-20201022-nightly-kccat6-signed.zip
error: no devices/emulators found

I've read this thread, but since I'm stuck in boot loop I cannot enable USB debugging on the device.
Factory reset

recovery mode
select wipe
wipe
reboot
still boot loop

However, it doesn't ask me for my decryption pattern anymore, so the reset must have been at least partly successful.

In your first sentence you already mentioned that your phone has been damaged by water. Why do you think that installing a new firmware would "heal" this damage?

just dry the short-circuited buttons

@Robert the reason is that clearly the hardware is still functioning to some degree, seeing as it can boot into recovery or download mode. I just included the information about water damage because 1) it was the event that caused the problem and 2) maybe someone had a similar problem and thus knows the solution

@alecxs I forgot to mention it in my question, but I already let the phone dry for several days. I edited that in, thank you for pointing it out

@alecxs I do have a backup, and luckily also copied it to my desktop computer

we will help you restore that backup. what are the file names? please update your question with that info

@alecxs thank you, I have updated the question accordingly

adb is working in TWRP (not sideload)? boot.emmc.win can be flashed directly, system.ext4.win data.ext4.win can be extracted with gnu tar. from cmd line check the partitions with ls -d $(find /dev/block -name by-name)/*

format the data partition with mke2fs -t ext4 /dev/block/*/userdata

get a working gnu tar binary and copy to ram via adb push tar /tmp/tar

mount the /data partition and extract both files for each own: gzip -cd data.ext4.win000 | /tmp/tar --selinux --xattrs -vxpC /data (repeat for data.ext4.win001) finally check if /data/system/packages.xml exist (correct path)

(if MicroSD Card not working you can adb push the files into fresh formatted /data partition before extracting, and delete them after successful extract)

(if the path is doubled like /data/data/system/packages.xml start from beginning but instead with that command gzip -cd data.ext4.win000 | /tmp/tar --selinux --xattrs -vxpP

I will try tomorrow and give feedback then, thank you already for your answer. one problem I expect to encounter though: I might not be able to flash boot.emmc.win, since adb gave me the "no devices/emulators found" error

you can flash from TWRP (adb shell or terminal) cmd line: cat boot.emmc.win > /dev/block/platform/msm_sdcc.1/by-name/boot (or adb push boot.emmc.win /dev/block/platform/msm_sdcc.1/by-name/boot)

you can do the same for lineageos if you decompress system.new.dat.br with brotli and convert with sdat2img.py (or just place the zip file somewhere at /data and install from gui)

maybe it's already sufficient only format userdata with mke2fs. after reboot recovery /data should be mountable. then it should be possible to adb push twrp backup to /sdcard and restore it from twrp menu as usual. i will write this as answer after you confirmed solution


text:
Best adb command and system tweaks for non rooted phone to get closer to rooted experience
As I always owned rooted phones I find frustrating living with all the limitations of non-rooted phones.
I would like to list here all the adb commands you can issue and system settings you can tweak to get your non-rooted phone experience closer to a rooted one. In a way decreasing "security" when connected to a PC.
Especially targeting Android 10+
Of course we all know everything starts enabling Developer Options and USB Debug
I can execute some pm disable package or pm uninstall package to get rid of some bloat system apps.
Then I can do some setting put global parameter n to tweak some system settings.
I.E. setting put global dropbox_max_files 9 limits the number of files in /data/system/dropbox directory (unaccessible) to 9 instead of hundreds (if not thousands).
Dropbox app not installed, but there is log activity in /data/system/dropbox
Finally there's pm grant com.package.name android.permission.WRITE_SECURE_SETTINGS to play with...

content query

/data/local/tmp/busybox

Our adb tag wiki links to several good resources. "Get closer to root experience" is a bit vague; if you could include what especially you want to achieve, it would be easier to answer. "list here all the adb commands…" ahem: List questions are no good fit for Q&A sites… But well, good luck!


text:
Rooting android device without internet connection
I need to root my Samsung s10 with android 10, but without internet connection to the device. I can download all necessary files to my PC and connect the device to the PC (use ADB \ Odin), but the device itself doesn't have an internet connection.
I know the best tool to root android is Magisk, but from what I understood it must have internet connectionn. Does anyone know how can I do that? maybe use Magisk in some other way?...
Thanks

Does this answer your question? How to root Samsung Galaxy S10/S10e/S10+

rooting involves several steps, but no step requires internet connection. instead it requires a lot of research, reading, understanding, reading again. especially S10 has some pitfalls you will end up bricked. read careful 1, 2, 3, 4

@alecxs Rooting with Magisk indeed requires internet connection. There was an issue report about this: https://github.com/topjohnwu/Magisk/issues/3172 . “No Install button” was fixed, but the ability to root without an internet connection was not restored by that fix. I confirm it on my device.

@alecxs I disabled "Check Updates" in the settings of Magisk Manager. Nothing changed. Or which auto-update are you talking about?

@alecxs Setting the update channel to the empty URL and disabling checking updates changes nothing. I can't locate that JSON file. Is it in /Android/data in the internal memory?

@beroal just tried with 8.0.7 does not work. you are left with 4.

You don't need an internet access to root a devices as far as i know... This might help.. https://www.thecustomdroid.com/samsung-galaxy-s10-twrp-magisk-root-guide/
Don't modify any commands or steps given here.. if things aren't going as described DON'T PROCEED I myself have bricked 2 smartphone so i'd suggest you not to root it if you don't have enough knowledge about rooting!

Thanks for the answer.
However in the link you sent there is a need for internet connection - in Step 1.5, in the Magisk manager app, there is no menu and "install Magisk" options without internet connection. Do you know of a way to install Magisk without Magisk Manager feature?
It actually shows something like this: https://user-images.githubusercontent.com/10022598/92601691-6cfceb00-f2ad-11ea-9de2-bec0caa599bd.png

@terry1990 Did it solve your issue?

No, see above edited answer

@terry1990 I searched the web but didn't get any relevant answer. Can you tell what's the issue with your phone? wifi problem?  If you have internet in your pc why don't you just do a reverse tethering and share pc's internet to your phone and you're good to go. You just have to install an app for reverse tethering. Download the apk and transfer it to your phone. Windows 10 has this feature built-in.  You can try this... https://play.google.com/store/apps/details?id=com.floriandraschbacher.reversetethering.free&hl=en&gl=US


text:
Interact with notification action from ADB Shell
I have an Android(7) phone [also fine if you can provide a solution for Android 10] and a Linux pc. By enabling USB debugging and using the terminal of my pc, I am able to read the notifications of my phone using the command: adb shell dumpsys notification --noredact
Now, there are some notifications in android in which we can interact with the app directly from the notification. For example, in a Whatsapp notification, there are usually two buttons: Reply & Mark as read. In YouTube, there are options like Play, Turn off, Watch later. In the output of the above command, these options are visible in the following form:
actions={
        [0] "Reply" -> PendingIntent{6becf48: PendingIntentRecord{87b8050 com.whatsapp startService (whitelist: +30s0ms)}}
        [1] "Mark as read" -> PendingIntent{c1661e1: PendingIntentRecord{b8e3249 com.whatsapp startService (whitelist: +30s0ms)}}
      }

I have two questions:

Can we interact with these options from adb shell? For example, is there any command like adb shell <SOME COMMAND> 'Message to be sent in whatsapp with reply option' which will send the text as a reply in whatsapp without opening the app?

Is it possible to swipe the notifications using any adb command? (Not the adb shell input swipe x0 y0 x1 y1, it requires to unlock the phone each time)

Thank you in advance!
Edit:
Here is what I found that may be relevant to this question.
I think that I have to somehow launch the specific intent linked to the mentioned PendingIntent id (in this case 6becf48 or 87b8050)
Using tthe command adb shell dumpsys activity intents > output.txt and then searching for 87b8050 in output.txt, I found the name of the intent. It was as follows:
  * PendingIntentRecord{87b8050 com.whatsapp startService (whitelist: +30s0ms)}
    uid=10104 packageName=com.whatsapp type=startService flags=0x0
    requestIntent=act=com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE dat=content://com.whatsapp.provider.contact/contacts/2256 cmp=com.whatsapp/.notification.DirectReplyService (has extras)
    whitelistDuration=+30s0ms

Now I think that it may be possible to launch the intent com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE using adb shell am command, and passing the intent id and message as some parameters.
(Just like we can launch Whatsapp from adb with am command, it should be possible to launch the pendingIntent also.)
Edit 2:
Using this command:
adb shell am startservice -a com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE -d content://com.whatsapp.provider.contact/contacts/2256 -n com.whatsapp/.notification.DirectReplyService --es 'com.whatsapp.Intent.EXTRA_TEXT' 'Hi. Okay.'

The output was following:
Starting service: Intent { act=com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE dat=content://com.whatsapp.provider.contact/contacts/2256 cmp=com.whatsapp/.notification.DirectReplyService (has extras) }
Error: Requires permission not exported from uid 10104

I too am interested in this question.. I currently use "Automate" app for automatically interacting with my notifications(if that helps)

Thanks for the information, I shall check this out. But as it seems, the app requires a lot of permissions. It'd be nice if we can do it from our adb terminal.

No, it doesn't. That's what i like about this app. Just deny all the permissions at the start and then afterwards it will ask for one or two necessary permissions. I too am too paranoid about my privacy. This app lists all the permissions it has and you can anytime revoke permissions you don't want anymore. Disable the internet access for additional security. I'll search about the adb thing too tho.. BTW why dont you try scrcpy(just for fun). I just love scrcpy and use it very often with adb over wifi. https://github.com/Genymobile/scrcpy

Scrcpy is a very nice thing. I had not heard of it before. Thanks a lot!

You're most welcome. Btw i searched the web and came to a conclusion that there isn't a way yet to do what you want.. I searched for all adb and notification related stuffs and found that you can only list(dumpsys) and clear(requires root) notifications NOT interact sadly. Hope you can do it with scrcpy graphically.. P.S. See scrcpy's command list.

I understand that this has not been mentioned explicitly anywhere. But I still believe this is doable. Please see my recent edit to the question.

Let us continue this discussion in chat.

I found a way.. it's a little long but possible.. Remember automate app i mentioned? it can interact with notifications.. So.. by dumpsys you can know what notifications came and then you can send notification of message you want to reply from adb to your device. The automate app will then pick the notification you sent from adb and forward it to whatsapp(as it can interact with notifications)

Hello. It would be nice if you mention why must you interact with the Android's notifications with ADB alone? Would it not be acceptable if a solution emerges wherein you instruct a third-party app (through ADB) to do the job for you. That is, read the notification and show it to your Linux PC, and send the reply message from your ADB to the target app.

Also, there is this KDEConnect app (see Reply to Whatsapp and others subheading) which seems to promise replying to WhatsApp from your PC. I know it can sync notifications but I never tried its reply feature. You can give it a try.

Third, if you don't want an automate app and scrcpy solution is not acceptable either, I can offer a bounty on your question so that your question receives more attention. Let me know if you are interested.

@Firelord , it would be okay if it is necessary to implement through an external app. But given the versatile collection of ADB commands (and lack of broad description/tutorials :-) ), I have an impression that this can be done with a few line of commands. In that case, I would obviously prefer the 'ADB only solution' over any third party app. Automate, scrcpy and KDEConnect are nice alternatives. I have aready tried scrcpy, it is very useful. But it would be better if this can be achieved with ADB only. I would be very grateful if you please offer a bounty on this question.


text:
Is it possible to somehow understand from the logs what happened to the phone a month ago? Are there such logs?
I didn’t have access to my phone for a month, I’m afraid that I could have installed any software or hardware spyware. Is it possible to check it somehow by logs? Does the Android system keep logs for all operations in the system?

Here is some ADB commands that can help:
Dump each app and it data usage
for package in $(pm list packages | cut -f2 -d":"); do echo $package; pm dump $package | grep  "Mobile network"; done;

Monitor Application
for package in $(dumpsys package | grep "Package \[" | cut -d "\[" -f2 | cut -d "\]" -f1); do
    echo $package $(dumpsys package $package | grep firstInstallTime)
done;

That will list install date of all the applications on the device.
You can replace "firstInstallTime" with "lastUpdateTime" to get last update time.
Some applications monitor and store the phone state in a database or a log file, you can also backup the apps in the device and try to find some useful information in these backups.
Hope it can help!

Unfortunately Android does not maintain any persistent long-term log files by default.
There are some log buffers available that can be read via adb logcat. However the logs logcat can display to you are written to a fixed size log buffer (usually between 64k and 256k). If the buffer is full the first entries are overwritten.
Depending on the log traffic per minute this buffer usually last about some minutes up to may be some hours on a device that does not log very much (some devices really do create many log entries).
Some apps my do so, but if the logs are saved in the app private directory you need a rooted device to access them Also check the sdcard/Android folder and sub-folders for logs, but don't expect too much.
Therefore in your case all you can do is to perform a factory reset and if possibly try to re-install the device from a firmware image from your device manufacturer (if the manufacturer provides them).
Then it is up to you if you trust your device or not.

No.
It's not possible to use native Android logging to definitively say that your phone was not compromised when it was out of your physical control for a month.
If a device is out of your physical control for that long, you pretty much have to assume that anyone determined enough could have tampered with anything on it, including tampering with the logs to make it look like the phone was not tampered with. If you include hardware tampering, then really the sky is the limit.
On top of that, the native system logs aren't really designed to record tampering anyway, but just to help developers with debugging.
That said, you do have to weigh the threat level here. It's one thing if you have a normal life and your phone was left with a friend for a month vs. if you are in a spy film and your phone was captured by the villain.


text:
How to log requests to Google play services
Sometimes my battery usage gives me a very high percentage  (e.g. 45%) for Google Play Services.  Is there a way to log the name of the app that may be causing this problem.  Please note that I am not looking for a way to clear the play services heavy usage - I just want to know which app may be causing the problem.
Android version: 9
Google Play services version: 20.39.15
Thank you.

Have you checked adb logcat? As Play Services are an own process all apps have to use inter-process communication for sending/receiving something via PS. Such calls may be visible as Intent call in logcat.

Will using adb logcat require the phone to be always connected to the computer? If I use system tracing in developer options can I build a large trace file over a couple of hours?

Sorry, but I don't have an Android 10 device, hence I can not answer your question about system tracing as it is a new feature of Android 10.

Thank you. I have System Tracing in my developer options on an Android 9 device.
The System Tracing app is an Android tool that saves device activity to a trace file. On a device running Android 10 (API level 29) or later, trace files are saved in Perfetto format . On a device running an earlier version of Android, trace files are saved in the Systrace format.


text:
Where can I find the list of networks considered not roaming?
Some time ago, back in the days of CyanogenMod, I stumbled across a list of network combinations which were not considered roaming.
Usually, Android looks at the MCC and MNC of the SIM card and compares them to those of the current network. If they do not match, Android considers itself to be roaming. The status bar icon will report this, and options such as disabling data while roaming take effect.
The list overrides this behavior by specifying combinations of MCC/MNC pairs which are not considered roaming. For example, O2 Germany (262-07) acquired rival E-Plus (262-03) a few years back. Initially, cell towers still used the MCC/MNC of the original operator, but customers could roam between both networks at no extra charge. For cases like these, the list would have had a rule like “if the SIM card has 262-07, consider network 262-03 to be the home network, not a roaming network” (and another one for the opposite case of an E-Plus card being used on an O2 tower).
This list sits somewhere in the source code and is not exposed through settings. Unfortunately, I do not know where to find it (and if it ever was part of AOSP, or added by Cyanogenmod).
Does anyone know where this list is located?

An interesting question. Are you sure that the descicion if a network is considered as roaming or not is not made by the SIM card? From my knowledge this would be the point where I would expect such a functionality.

Like Robert I'd rather expect it either with the SIM configuration – or as a "feedback signal" from the cell tower (picking up your example: if you had a 262-03 and book into a 262-07 tower, the tower would not set the "roaming flag" in its response). How do I get that idea? Well, I still have 262-03s in some of my devices. I didn't make an upgrade to the system when the merge took place. I could book into 262-07 and don't remember having seen an R. But old man that I am, I might just have forgotten, of course :D

@Robert I am quite sure that there was something related to roaming networks in the Cyanogenmod change logs at some point. I doubt the decision is made by the SIM card alone: how would an old SIM (say, issued around 2000) know about a merger that happened a decade and a half later?

The decision if a SIM is connected to a roaming network (a network of another country, for example) is done by the framework with the information obtained on this network.
First, we need to know that there are two types:

Domestic Roaming -> A network of the same country (same MCC) as the SIM but that it is of other operator (different MNC).
International Roaming -> A network of another country (different MCC)

A lot of OEMs (BQ, Samsung, Xiaomi...) treat Domestic Roaming as not roaming because, for example, all the MVNO use Domestic Roaming.
By default, AOSP has a way to add networks so they will always be considered roaming (as well as adding networks that will never be considered roaming)
For AOSP, it works like this:

In ServiceStateTracker.java of framework/opt/telephony:
/**
 * Do not set roaming state in case of oprators considered non-roaming.
 *
 * Can use mcc or mcc+mnc as item of
 * {@link CarrierConfigManager#KEY_NON_ROAMING_OPERATOR_STRING_ARRAY}.
 * For example, 302 or 21407. If mcc or mcc+mnc match with operator,
 * don't set roaming state.
 *
 * @param s ServiceState hold current ons
 * @return false for roaming state set
 */
private boolean isOperatorConsideredNonRoaming(ServiceState s) {
    String operatorNumeric = s.getOperatorNumeric();
    PersistableBundle config = getCarrierConfig();
    String[] numericArray = config.getStringArray(
            CarrierConfigManager.KEY_NON_ROAMING_OPERATOR_STRING_ARRAY);
    if (ArrayUtils.isEmpty(numericArray) || operatorNumeric == null) {
        return false;
    }
    for (String numeric : numericArray) {
        if (!TextUtils.isEmpty(numeric) && operatorNumeric.startsWith(numeric)) {
            return true;
        }
    }
    return false;
}

and at the same way:
private boolean isOperatorConsideredRoaming(ServiceState s) {
    String operatorNumeric = s.getOperatorNumeric();
    PersistableBundle config = getCarrierConfig();
    String[] numericArray = config.getStringArray(
            CarrierConfigManager.KEY_ROAMING_OPERATOR_STRING_ARRAY);
    if (ArrayUtils.isEmpty(numericArray) || operatorNumeric == null) {
        return false;
    }
    for (String numeric : numericArray) {
        if (!TextUtils.isEmpty(numeric) && operatorNumeric.startsWith(numeric)) {
            return true;
        }
    }
    return false;
}

If we search information about KEY_ROAMING_OPERATOR_STRING_ARRAY and KEY_NON_ROAMING_OPERATOR_STRING_ARRAY in Android Developers we found that

So you could add in carrier_config_21407 (Movistar Spain) a list of roaming and not roaming list:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<carrier_config_list>
  <carrier_config>
    <string-array name="gsm_nonroaming_networks_string_array" num="1">
      <item value="26804" /> //for example, LycaMobile Portugal
    </string-array>
  </carrier_config>
</carrier_config_list>

The carrier config files are found in platform/packages/apps/CarrierConfig. There are two possible formats:

For a carrier that has been assigned a carrier ID in https://android.googlesource.com/platform/packages/providers/TelephonyProvider/+/master/assets/latest_carrier_id/carrier_list.textpb, the config file is named carrier_config_carrierid_42_Vodkafone.xml, the last two elements being the carrier ID and its name. This is the preferred form, as it supports a single config file for carriers using multiple MCC/MNC pairs.
Otherwise, the file name is something like carrier_config_mccmnc_55501.xml, where the last element is the MCC followed by the MNC.

Thanks, this is exactly what I was looking for! Do you happen to know anything about the implications of adding a network to the “not roaming” lists? See https://android.stackexchange.com/questions/231290/side-effects-of-android-carrierconfig-reporting-a-foreign-network-as-not-roamin

Let me check @user149408


text:
Is it possible to install Android Go Edition in Xiaomi Redmi 2 pro?
I have an old Xiaomi Redmi 2 pro from 2015.

This phone has Android 5.1.1 installed, 16MB capacity and even with a fresh install there's only about 2GB left. I read Android Go is lighter and leaves more space available.
How to install this in this phone? any suggestions?
Thanks a lot.

Based on my understanding, you need to modify the build.prop to add ro.config.low_ram=true (need to be rooted). However, AFAIK Android GO is more about RAM, not storage. I think you may consider flashing a more lightweight custom ROM instead...

Redmi 2 pro/Redmi 2 have same chipset, try ROMs for 16GB variant https://forum.xda-developers.com/showthread.php?t=3307136

I'm new to this, and this flashing and stuff seems confusing :( all those files and ROMS.
Is there an easier way, just to connect the phone to the computer and flash Android Go or another ROM that's light and takes less space than 5.1.1?

android go not available. select custom ROM, check it's status is stable, follow install instructions. be aware builds are specific for device model. you will always lose all data


text:
How can I make my rooted Android 7 phone as secure as possible for financial transactions?
The latest security update patches for my phone was in 2017. My phone is rooted. What steps can I take to make it as secure as possible to be able to safely use financial apps where I'd be transacting money?
These apps need Google services to work, so custom roms are not an option (or are they?).

For background/context, OP's previous question: Is a rooted phone safe for phone banking?

if your device is Mediatek Chipset there is a risk for malware, therefore i recommend not to use banking apps at all https://www.xda-developers.com/mediatek-su-rootkit-exploit

Yes you can always install the google services in a custom rom. And why are you asking same question again and again?  https://android.stackexchange.com/questions/230442/is-a-rooted-phone-safe-for-phone-banking/230507#230507

First of all install a stock rom of your mobile after that you can just do the banking transactions... Then go to google play store > setting > play protect certification > certified.
if the device is certified you can do any financial transactions!

I thought about that but I really need the phone rooted because I have some apps (like Titanum bu) that requires boot. What about dual boot?

The question was less "how can I use it for financial transactions" – but "how can I make it as safe as possible for financial transactions". Problem with "stock ROM" is, as the question pointed out, that the last security fix was 2017. Though providers of financial/banking apps do not care about that, it's not considered safe by security experts – while making it safe by installing a custom ROM is considered "unsafe" by most of those software vendors, so their apps refuse to run.

@Izzy the ones I got don't have a problem running on my rooted phone. There's also Magick hide as an open for those that do.


text:
How to keep running Android tablet with dead battery
I‘m using Android Galaxy View tablet as photo-frame, integrated in the wall with AC adapter connected constantly 24/7. The problem is the battery inside tabled dies each year. And when the battery is broken the tablet switches off automatically, regardless of AC adaptor connected.
I tried to replace the battery last 4 years. Replaced 4 batteries already. But currently I cannot find any batteries for this device anymore. The tablet is not in production for many years already.
My question: is there way to avoid switching tablet off while it connected to AC with broken battery?
I‘m able to switch tablet on with power button. But it works this way - just several hours. Then it unexpectedly switching off. Looks like Android monitors the battery and shut downs the system if battery is 0%?. Can I disable this monitoring somehow?
Another question: can I change shutdown to reboot? The point is power button is hidden under glass frame covered the tablet. And it is not easy to press it when i need to switch the device on.

Hopefully helps, but becareful: Using Android phone without battery

If the tablet is rooted you can disable charging, this should also prevent the battery from dying, see e.g. https://android.stackexchange.com/q/54902/2241


text:
How can I export audio recording files with bookmarks from Samsung Voice Recorder app?
I have a Samsung Galaxy S8+ phone. I use the Voice Recorder app a lot and I also add several bookmarks to each file. Now, my phone is out of storage space and I need to back up my old recorded files to a computer. Although I know how to find the m4a files in my phone storage, I cannot find the corresponding bookmarks for each file.
So, my question is:

Where can I find these bookmarks in my phone storage? If it is embedded in m4a files, how can I see them on my Windows PC?

If it is only seeable in the same app, does it mean that if I move the files to my computer, I can access the file and its bookmarks whenever I move a copy of it to the recorder app on my phone?

adb backup -f voicerec.ab -apk com.sec.android.app.voicenote

Based on a possibly related question How does Samsung's Voice Recorder's Speech-to-text function store the text and sync it with the audio?, perhaps the bookmarks are also embedded inside the file (answering the 2nd point). Not sure how to see decoded them if they're stored as serialized Java blobs.


text:
Is it possible to do in-app purchase via play.google.com using my desktop browser?
I can buy applications for my devices in play.google.com using my desktop browser, then those app automatically installed on my device.
Now I would like to buy the professional version of Car Scanner (which named Car Scanner Pro).
The app offers in-app purchase, but I would prefer to use my desktop browser. There is no such app in the play.google.com Car Scanner Pro.
Question
Is there any way to accomplish the in app purchase via play.google.com using my desktop browser?

Possible update: How to make in-game purchase items tab, appear directly on the play store page?

As far as I know there is no web-based interface for performing in-app purchases.
In-app purchases are only triggered by the app.
The only chance to purchase an in-app item on your computer would be to use an Android emulator with PlayStore installed (Google provides images with PlayStore) assuming that the app you want to purchase items in is available for x86 devices (the emulator is not an ARM device).
In this case you could set-up the emulator with your Google account, download the app, start the app and purchase what you want from inside the app.


text:
Changing the emailid associated with your android account
My android phone is LG W10 Alpha LMX210LMW running Android 9. I have a particular email account associated with the phone say emailid1@gmail.com - I don't use that email id at all - it's solely for the phone. I wish to delete this emailid permanently. But then it would be a problem for my phone.
I tried this to change the id - but like it says it's not usually allowed for gmail ids.
So is there a way I can backup the phone related info (like phone contacts, apps installed & other stuff) & delete the account & reconfigure it with a new gmail id - say emaild2@gmail.com
Is there a simple way to do this?

You can copy all contacts using the web UI: https://support.google.com/contacts/answer/1069522?co=GENIE.Platform%3DDesktop&hl=en open section From a Gmail account

contacts backup sync with PC MyPhoneExplorer remove google account wikihow.com

What do you see in Settings>Accounts and Settings>Google

@Aayush - I see my emaild

First of all make sure you have two or more accounts already logged in. Go to Settings>Accounts>Google>(click on your email id)>tap on three dots on top right corner>tap on remove account

@Aayush - but if all the data (like contacts, apps installed, settings etc) is stored in the first account, then won't all that data be erased when I remove the first acct?

Take a look at this... https://gadgets.ndtv.com/internet/features/new-gmail-account-switch-migrate-1682770 and tell if it works for you. I'll post the answer

@Aayush - this link seems to be about how to move your emails & email contacts to another email acct. What I want is move all phone related stuff into the new acct.

Okay so after an hour, i have answers. https://www.vaultme.com/articles/how-to-change-gmail-address The option 3 is you i guess. I searched and found that there is no way to transfer your app purchases to another phone except for Google Play’s new Family Library

Is your phone rooted?

@Sruly - no, it's not.


text:
Ship android device with pre installed app from Google Play
We develop an Android app that is meant to run on tablets in restaurant environments. We use standard Samsung Galaxy tablets that we ship to our customers with some custom settings:

Pre-install our app
Change background image

To install the app from Google Play, we have to create a Google Account for them. This process is today very manual and requires us to go through the Google Account signup process for each device. We often get rate-limited and Google keep blocking our mobile phone numbers for account activation. So this is a big issue for us.
How can we solve this? To retain a good user experience, we have to install the app on the tablet before shipping it. Changing the background image is something we could live without. We are developers and can definitely do whatever we need.

You want to solve issue of Google blocking your mobile phone numbers? Or something else?

No, I want to find the best sollution on how we can pre install the app before shipping it. Installing it manually works if we can solve the blocking of phone numbers issue. By ideally we could do something better. I'm looking for something similar to the device management you can do i gsuite for your employees.

This question is probably better suited to the Android Stack Exchange. They'll be able to walk you through loading an app outside of the Google Play.

For enterprise device there is the Zero touch enrollment however it requires specially prepared devices.

you can install apk without google play. btw it's suspicious to ship devices with pre-bounded google account to customers (with regard to the Find My Device tracking and remote administration capability)


text:
How can I access the usb of my device from inside a Lil'Debi chroot?
I am attempting to run adb from a Lil'Debi chroot enviroment. Unfortunately, I keep getting no devices in attached device list. The enviroment created by Lil'Debi links some system folders but does not    link /dev; I expect because Android /dev and Linux /dev are not fully compatible. I'm not even sure if this is a requirement for accessing the usb but I have read that since Lil'Debi chroot runs with full root priveleges that I am supposed to be able to access all the devices.

I have recursively bind mounted /dev/bus to /debian/dev/bus and can now get a read out from lsusb but adb still reports no device attached.

adbd uses Android/Linux kernel's USB gadget/device mode to expose itself to a USB host like a PC connected at the other end of USB. You are trying to access USB device from within USB device, not a host. It won't work simply. Better use ADB over network.

@Irfan Latif - Honestly, the goal is not to be able to adb from Lil'Debi chroot, that was just to try to test the connectivity of the usb device. The ultimate goal is to be able to use Rockchip usb tools from one android device to another. Unfortunately, the Rockchip usb tools are proprietary and only compiled to run in a Linux or Windows enviroment thus the need of the Linux enviroment created by Lil'Debi. Thanks for your reply.

https://github.com/guardianproject/lildebi/issues/41

@Aayush - after reading that I modified Lil'Debis' start up scripts to include 'mount -t devtmpfs devtmpfs $mnt/dev' and now have the following when issuing mount command with no args - devtmpfs on /dev type devtmpfs (rw,relatime,size=458172k,nr_inodes=114543,mode=755)

@Aayush - however still have same problem, I can connect a device and it will be identified when issuing lsusb command but adb still sees no device. I have noticed, both when using the bind mount as well as after having made the devtmpfs mount, that when issuing lsusb command it first says - libudev: udev_has_devtmpfs: name_to_handle_at on /dev: Function not implemented - before reporting the usb devices on the bus.


text:
How can an Android user know which Project Mainline modules their device supports?
Project Mainline (officially "Modular System Components") introduced a set of OS components that Google can update via Google Play system updates.
Some of these modules are mandatory for OEMs to support depending on the version of Android that the phone ships with, but some of these modules are optional. OEMs can choose to add support for more modules when updating to a new version of Android, as well.
As the title states, how can an Android user determine which of these modular system components their phone actually supports?

Modules mounted in /apex/ (from /system or /vendor) are currently supported modules. OEMs can add any new modules with new OTAs or through GMS. Btw this is not something an end user should be concerned with (or at least it's of no use). It relates to ROM developers and particularly OEMs.

@IrfanLatif If you would like to rewrite this comment as a full answer, I will accept it as the solution. This worked for me - my OnePlus 7 Pro (launched on Android 9) has 7 modules in /system/apex/.

Note: user IrfanLatif answered this question in a comment under the original post.
Each "Modular System Component" is stored as a single .apex file in system/apex/ or vendor/apex. The name of each file in this directory indicates which module it is. For instance, system/apex/com.google.android.tzdata.apex is the time zone data module (https://source.android.com/devices/architecture/modular-system/timezone).
I was able to see these files using a file explorer app, no root access necessary.

You can run /system/bin/pm get-moduleinfo --installed to list all installed modules with their package name and package label. Running /system/bin/pm get-moduleinfo --all lists all available modules (possibly some that are not installed) currently known for that Android release

Try this app of mine: Mainline Module Info/Updater
Screenshot of the app:


text:
full storage: internal storage counts external images
Android claims storage space is running out. Settings > Storage shows that Photos & videos take up 2 GB. See screenshot:

However, I moved almost all camera photos to an external sd card. When I click on the last item, I get the message: couldn't find item, as shown in the screenshot.
It seems that the storage calculator counts the images moved to the external drive.
How can I fix this?
This is a Moto G5 with Android 8.1.0.

Th reason is similar to this case. The used space is not directly calculated but summarized based on the media database. And updating this database can take some time. To force an update reboot the phone and wait for ~30 minutes.

Does this answer your question? How disk space is used on Android device?

@Robert: no, the problem persists after rebooting + waiting


text:
Sending video to Android Camera
I'm testing an app that will require users to verify their identity with front facing id, back facing id and a selfie. It's really tedious to do the tests by hand one by one, i'd like to have a few people make videos in different lighting conditions, then I can send those videos to the camera feed of a real android phone and see how the app fares.
I know it's possible to do something like this on PC with ManyCam, where you can send a video to the camera api, I was wondering if there's a similar app or method to achieve the same thing on androids.

For testing, depending on your app you have a few choices:
If the the app just needs camera and is configurable either:
a) use the Android emulator on PC which can take a USB webcam as input and use that to inject the images/video feed.
b) Android devices starting with Android 9 can accept external USB Camera and use the standard API or need custom libraries for earlier version of Android. This would require the app to support such alternate inputs.
If you are testing biometric, there is a way to test with fingerprint using emulator but on physical hardware per the documentation secure camera hardware is required to prevent injection attacks on face authentication.

I'm about to deepdive, thank you for the neat answer! I'll report back with my findings.


text:
How can I remove vibration when the phone is turned off on my Samsung Galaxy S9 (non-rooted Android 9, One UI 1.0)?
How can I remove vibration when the phone is turned off on my Samsung Galaxy S9 (non-rooted Android 9, One UI 1.0)?
I don't have any option item Settings app > Accessibility > Vibration.

I don't understand this part "when the phone is turned off". If it is off, how will you change any setting?

@ReddyLutonadio I meant: when I turn off the phone, it vibrates right when the shut down is complete. I can change settings when the phone is on.

This is option is not for user’s control. It’s default for all smartphones.
The main purpose is to alert the user when their phone shuts down otherwise there is a chance that users may not know whether their phone is off or on.
So OEM provides this feature as default and cannot be controlled until the phone is rooted. Rooting a phone will give you a full control over the phone. But this is helpful. If you feel to remove this option, root your device but that is difficult fix to this. Mainly it is not a bug.
Hope it helps!


text:
suggestion for a stable Chromecasting app?
as above.
I'm using a Galaxy S9+ running Android 10 with a recent security patch.

I have some videos (h.265 AMD VCE encoded using handbrake) that I can cast with no issues when using VLC on the desktop (Windows 10/macOS). The laptops are around 10-15 feet away with wooden walls in-between itself and the router.
I tried casting (6-7 feet away from the router with no walls in-between) with these 3 apps and it's very unstable (video freeze, completely stops and other random issues)

MX Player Pro
VLC
Google Photos
Thank you.

You should list out the codec parameters used for your videos. My guess is that the desktop is doing the necessary transcoding/downsampling if you aren't using a Chromecast Ultra which has documented support for h.265. See supported codecs: https://developers.google.com/cast/docs/media#mp4_video_only If everything looks fine, you should state your Chromecast device and network (a/g/b/n/ac) as well.

I'm using the chromecast device built-in on the TV. I only selected AMD VCE on handbrake and selected "main" as profile. nothing else can be change on the video tab.

Unless your TV is 4K with Chromecast branding, I'm leaning toward the TV only supporting h.264. However if your TV is 4K with Google branding then honestly I'm not sure. h.265 AMD VCE is GPU hardware encoding, you may want to try CPU encoding or a different format (like VP9).

@MorrisonChang but I can cast fine from my desktop using the same h.265 video...

Point taken. At this point I'm not sure if the problem is with the TV or Android. One test to try the same video file with a different phone to see if the same issues show up. I still recommend updating your post with make/model of TV and what the codec worked/didn't work as shown in VLC (Media Info).


text:
How can I get the arrow keys back in the centre of the SwiftKey keyboard?
Until yesterday my SwiftKey keyboard showed arrow keys in the middle of the keyboard. I had switched on the thumb layout and the arrow keys for a compact yet functional layout.
Since yesterday (October 26, 2020) the arrow keys can only appear at the bottom, increasing the keyboard height with one full row.
The thumb layout still exists, but now just leaves an empty gap in the middle where the arrow keys were before.
How can I get the arrow keys back in the centre of the keyboard?

You can reinstall an older version, try one of the following sites to download.

APKMirror
APK4Fun
APKPure

Swiftkey version 7.6.5.7 seems to be the latest version that has the arrow key + thumb keyboard functionality available.
You can download and install the linked .apk file.
After that you need to configure the Google Play store to not auto-update Swiftkey by following these steps:

Open Google Play store
Navigate to the Swiftkey app
Click the three dots in the upper right
Uncheck the box Enable auto-update ⬜.

Disclaimer: I take no responsibility for the apk's on these site.


text:
Is there any way to save data i.e. Screenshot/ photo to external storage by default
I am using Moto G. It is Android 6.0. Internal storage 16Gb.
Now I want to store all screenshot and photo/ video taken using default camera app and whatsapp/ other social media data to external storage.
What is problem:
As I came to know the option to select "save to external memory" or selecting external memory as default is removed from android 6 and above.
I know there is no short of internal memory but I want to keep/ preserve these data on external card even if I remove/ swap the external card. say for legal purposes.
Now the problem is if I format external SD card as portable it there is no option to select this as default storage. If I format external SD card as internal storage I can not remove it without loosing data.
So Is there any way to make apps to save all data to external storage by default.
I don't mind where apps are installed. Only I care about screenshots/ camera photo/ audio recording/ video recording/ whatsapp data etc.
Thank You all

Try this solution:
https://android.stackexchange.com/a/217936/218526
The Directory Binder option in Lucky Patcher might work as well. Haven't tried it out myself though, so no promises.


text:
OnePlus 8T battery capacity
Using the AccuBattery app I'm told that the design capacity of the battery is 4500 mAh, but after 3 significant charging sessions the current capacity is 2095 and has never reached 50% of the design capacity. I've tried contacting AccuBattery and OnePlus to see if I should be trying to exchange this brand new phone given this report. I haven't gotten an answer yet. Does anyone else have any info about OnePlus 8T actual battery capacity or how to deal with this?

This is the answer from AccuBattery support (OnePlus 8T has a dual battery apparently):

Unfortunately there's no solution for this at the moment as the system
isn't reporting the values in the correct manner. It looks like more
devices with dual batteries have this issue but we currently don't
have these devices to test with so we can't figure out the exact
underlying problem and build a workaround for it, but the most
apparent issue is that the device reports half of the charge current.
The health estimate can still be calculated if you do a manual
benchmark like this:
https://accubattery.zendesk.com/hc/en-us/articles/213575425-How-to-manually-benchmark-your-battery-health
but the maximum you will get is half the design capacity so you will
need to multiply the mAh estimate by 2 (or change the design capacity
so it's half the original value) and make the assumption that the two
batteries are used at the same rate; which is probably not what's
actually happening (one battery might be used to charged the other for
example).

you can mark this as an answer, while there is not better solution


text:
“OEM Unlock” unlockable
I've a very dramatic problem. I don't know how it could happen but sice a week the internal storage of my Cubot X20 Pro with android 9 is in "read only" mode. That's mean that I couldn't reset (anytime I tried, after restart, I found all like a week ago) or do something else. I spending last week looking and searching on web for a solution. I tried every guide. But nothing. The problem is that I can't switch on OEM unlock.

Without this all command on fastboot or adb will fail because the system is read only. Is a snake that eat his tail. So the question: there's a saint thatknow a program or procedure that surely work toescape that enpasse? Please I'm desperade, the phone has only 2 months of life and I can't take it on a assistance cause i've bank app and all accounts visible.

Have you tried to perform a factory reset?

if factory reset not working, try to flash empty userdata partition from SP Flash Tool. If no reset is possible sounds like data partition read-only which indicates emmc wear-out (btw unlocking bootloader will trigger factory reset)

I found this problem doing  factory reset. At the end of procedure nothing happen and that alarmed me. I also tried to flash the phone with stock rom from official site but tought flash tool say that all gone well, at restart I found the same screen of one week ago. https://www.cubot.net/platform/Support/detail/id/141/cid/10.html

did you flash userdata.img?

I don't know what you mean. I followed the instruction of link above. I also tried usi magisk app and flashing boot_patched.img created with it. It's like you try to modify an old cd-rom

in SP Flash Tool you have a scatter file with list of partitions to flash. one of the partitions is named userdata

some devices run in emergency mode where the whole userdata partition is mounted read-only - that mean any changes will revert on reboot (even factory reset) i first heard about such thing 4 years ago https://forum.xda-developers.com/showthread.php?t=3472891&page=2


text:
Unable to Login to or Forget a Network
My Android tablet worked fine up until a couple of months ago.  Now I cannot use internet on it.  It is not possible to forget a WiFi network.  It will not allow me to add a new network (5GHz for example).  If I enter the password for the valid network it 'sees' it comes back with 'authentication problem'.  The password is correct.  All other devices in the house fine including iPads, iPhones, Windows computers.
Do I bin the Android crap?

Try to turn on airplane mode and then open WiFi

Did you try a Network Settings Reset? It is usually a separate option under the Reset section of settings (location could very, search in settings for reset).

I did the network settings reset but that didn't help.

I only use the tablet in an airplane and I am usually the pilot at the time.  I tried the quick access menu to locate airplane mode but never found it so moved on to the next suggestion.  Eventually a factory reset worked. 谢谢

Factory Reset apparently is the answer.  Came up straight away.  Having to blast the tablet every time you want to use the internet is not convenient.


text:
Open Outlook links in Chrome
Using Outlook version 4.2041.3 on my Samsung Galaxy A30s with Android 10.
If I receive an email with links in it

And then click in the link

it opens up in a weird browser.
I would like for it to open in Chrome instead. How can that be done?
Already contacted support.

According to Support

This is a new Edge webview experience with the Bing search
capabilities which is expected. There is no way to disable this at the moment. However, if you want to open a link in the default browser,
you will need to click the link, then tap on the overflow menu at the
bottom and choose "Open in Browser".


text:
Change keyboard laylout for Android on VMWare
I have successfully installed Android 7.1 on my VMWare Workstation Player 15 but I want to change the keyboard layout to a german layout. Does anyone know which config file needs to be changed to achieve this? Is there a way to to this while the OS is running or does one have to do it over the console in a debug mode?
Best regards

What sort of Android system did you install? Android-x86 or some other emulator image?

My host system has a german keyboard layout. When I changed the android keyboard layout to english the keyboard input of my guest system became german. I hope this helps someone.
Best regards

I am sorry but this answer does not make sense. I think you made a mistake.

I'm sorry for that inconvenient answer. I changed some words so I hope it makes more sense now. In other words : The keyboard input which was german on my host system but was translated into english keyboard inputs by either the VMWare Workstation Player or the OS itself changed to german input on the guest system aswell after adjusting the  guest system as explained in the answer.


text:
Update.zip signing- different sha for the same file
I am trying to flash a customized update.zip on a pre-Kitkat device.
In the zip there are 2 files with SHA1 signatures of other files in the update. But they have different signatures for the same files.
Example:
META-INF/MANIFEST.MF:
Name: system/lib/libcustom_jni.so
SHA1-Digest: +PhV5XphkQTNTyM2TSRTeiaDlCA=

META-INF/CERT.SF:
Name: system/lib/libcustom_jni.so
SHA1-Digest: 7ooFhqk1oYWF5pmVuSAhF2pFVNw=

I can get the first one using:
sha1sum system/lib/libcustom_jni.so | cut -d\  -f1 | xxd -p -r | base64
+PhV5XphkQTNTyM2TSRTeiaDlCA=

How is the second one computed? The second file has a hash of the first file, so maybe the other hashes are salted with the first file or something?
From what i found in java doc the SHAs should be identical, except all SHAs are the version 1 in the original update.zip.
It seems hat the certificate used to sign the update was the android test one so it should work, but aborts instead.

This answers my question if it is true, need to test it: https://stackoverflow.com/a/9384919/1333247

it seems you have more knowledge than me, kindly check my answer and feel free to correct (or post own answer) https://android.stackexchange.com/q/222262

@alecxs Thanks, but i only really played with a single Android 4.2 device so far. That question is about Android 9, i think too many things have changed between them for me to be able to help.

Answered here as i wrote in the comment. The second hash is a SHA1 of the 3 lines in the manifest file.
I can obtain the second hash by running:
echo 'Name: system/lib/libcustom_jni.so\r\nSHA1-Digest: +PhV5XphkQTNTyM2TSRTeiaDlCA=\r\n\r' | sha1sum | cut -d\  -f1 | xxd -p -r | base64
7ooFhqk1oYWF5pmVuSAhF2pFVNw=

The echo command adds the final \n so it must be removed from the command to not be duplicated.
Edit for posteriority:
The update.zip is then signed by SignApk using the -w argument, which makes it generate a ZIP comment, without which the installation fails.
The comment consists of signed by SignApk string followed by a signature block. Code at Android SignApk source
This was the last piece of the puzzle that allowed me to create a custom update.zip for my Prestigio tablet.


text:
Titanium freezers (hangs) on app restore
When I restore my apps with Titanium, it gets stuck on certain apps and just sits there and does nothing. The only thing I can do is go to Titanium's app info and force close it.
I have tried changing the options in preference for app processing, but this didn't help. The option for indirect install has exactly the same problem. The interactive option helps that it doesn't freeze but it still doesn't install the app. I don't want to use the interactive mode since then I will need to interact for each install.
Does someone know how to fix this? Or at least a way to make that if it can't install an app it should skip it.
Here is a list of some of the apps that Titanium freezes on.
(these are the package names)

all.in.one.calculator
cn.wps.moffice_eng
com.adobe.reader
com.awiserk.kundalias.rootboot
com.discoverfinancial.mobile
com.kts.draw
com.microblink.photomath
com.music.star.startag
org.connectbot
org.geometerplus.zlibrary.ui.android
oyw.tnc

I just ran into this problem again. It seems to me that when the app isn't installed and I try to restore it  then it hangs. But if I try to restore when the app is installed it works fine.

You should update to the latest version of Titanium Backup. I had the same problem but haven't had this since I updated to the latest version.
I'm on version 8.4.0.2

I'm surprised that my Titanium backup didn't update automatically. Thanks.


text:
How to exclude an app from Force Dark Mode?
So Basically I want to exclude only one app (Ratio launcher if it matters) and found no apparent way to do it easily. Closest I got while searching, I came across DarQ. It allows to apply dark mode to specific apps. But the problems with this are as:

I do not want to include app as there are 250+ apps on my phone
(don't ask me what do I do with them cause even I don't know ha!) so
just ticking all of them does not seem feasible as I want it all
over the place and not on specific app only. There is no way to
backup app list as well so not just a one time hussle.

It needs to plug in my phone to PC and run their script everytime I
restart my phone.

Even when I do not restart my phone but leave it alone for a while
on battery saver mode and open an app, dark mode is gone again. Open
DarQ only to find out it needs me to run that script again.

Installing a new app does not add it to the list automatically so I
have to start all over everytime I install a new app or uninstall
and reinstall an existing app.

So obviously far from ideal. But even if it did work flawlessly, it would be a more feasible solution for me to have exclude dark mode functionality then include dark mode one. Would be so much better if it were just builtin to the system's Force Dark mode.
P.S. My phone isn't rooted. Any suggestion which might better situation even a bit might be good as well.

I don't think it's possible in any straightforward manner. All apps which set MODE_NIGHT_FOLLOW_SYSTEM are turned to dark theme when OS switches. All other apps which set e.g. MODE_NIGHT_YES or MODE_NIGHT_NO aren't affected. So it depends on the app developers.


text:
How much security does Android encryption provide for turned on devices?
In case my device is stolen it probably will be turned on. How secure are my data when this happens with Android 10 and file based encryption (https://source.android.com/security/encryption/file-based?hl=en)?

That depends on the protection you have selected (pattern/PIN/password). If the pattern or PIN can be guessed easily (e.g. by smudge of your fingers on the display) any protection measures won't help.

very secure. your device is protected against bruteforce https://source.android.com/security/authentication/gatekeeper


text:
Where can I change the timezone in Microsoft Outlook for Android?
Where can I change the timezone in Microsoft Outlook for Android?

Unfortunately up to the writing of this answer, there is no option or setting on the Outlook app for Android to change the timezone directly from the app. To change the timezone, you must do it from Outlook on the web. There are threads such as provide instructions on how to change the time zone in this application and Time Zone Support for Calendar from Uservoice opened in 2018 and 2015 repectively, but the Outlook team has not provided the options yet.


text:
How can I transfer the numbers from my old Android phone onto my new iPhone if I lost the old Android phone?
I lost my old android phone. Decided to try out an iphone just to get literate. I'm wondering what the process is for transferring my contacts from my old android phone (which i don't have access to) to my new iphone.
I'm using Verizon as a provider, so might be able to leverage their cloud, though I am not sure if that's an option. I'm wondering if anyone else has done this before, and / or knows of a standard way to go about it.

Does this answer your question? How to transfer Android contacts to iPhone?

If you lost your phone then everything that was on it is lost the only way to recover things from it would be if they were saved to the cloud so check in Google contacts if your contacts were saved there and then move them to your iPhone

@ReddyLutonadio good recommendation! unfortunately that one doesn't solve my problem, because it requires you to have possession of the old android device

I was able to accomplish this on my iphone through google.

I went into the Settings App of my iphone
Went into the Passwords & Accounts section, and hit the Add Account button which allowed me to add my google account,
A screen popped up which let me choose what to pull over (mail, contacts, calendars). Via this method, i was able to update my phone with all my old contacts.

I was able to do this because android had either auto-backed up my contacts through one of my google apps, or because i had initiated that process manually in the past (don't remember which).

Glad to be of help

If you were syncing contacts with your Google account you can login to your google.com account. In the top-right corner, just left of your photo there is a menu, where you choose "Contacts". You can browse your contacts there and even export them in CSV format.
You can than import these contacts to your Apple Accounts and voilà, sync iPhone with the account.
Please note that CSV import in Apple Account is limited to few contacts at a time, so without programming the procedure is practical only for relatively small number of contacts.
I wonder if there is an iPhone app that would sync directly with Google Account - good candidates are Outlook Client and some other e-mail clients that can use gmail. If you find something like that please post another answer to help others.


text:
kindle not connecting to wi-fi
Whenever I am trying to connect my kindle to wi-fi it shows no internet found. Once my kindle got discharged to 0. So is that the reason why my kindle is not able to find any internet. If no, then why my kindle is not able to find any internet? And if yes, then what should I do so that it finds wi-fi again.

Please focus on one device only. In the title and the first part of your question you are talking about your Kindle. Later suddenly you are talking about your tablet/tab. In any way you please edit your question and include more details about your Wifi (settings) and your devices. Does the Wifi work without problems on other devices?

@Robert actually with tablet i meant kindle only but since u suggested i have edited tablet to kindle

So you are actually talking about an Amazon Fire HD tablet, not about a Kindle (these are the e-book reader with e-paper display)? Therefore to make it clear please include the full product name of the device you are talking about.

@Robert, I am talking about kindle not tablet and this is the final. It is kindle not a Amazon Fire HD tablet.

This site focuses on Android device, but a Kindle does not run on Android. Hence your question is unfortunately off-topic here.

@Robert then can u please tell where can I ask kindle related issues?

Sorry but I don't know any Amazon related forum or Stackexchange site.


text:
Wifi works only on safe mode on pixel 3XL
I'm an happy owner of the Google Pixel 3XL. It's been working like a charm for ages, but since a few weeks, the WiFi & Bluetooth started to fail after a few hours for system uptime.
I first thought about an hardware issue, but both the WiFi & Bluetooth works in Safe mode. Is there anything I can do to fix this without making a full reset of the device?

Based on your description you Wifi does not work if you reboot the device, but it works if you reboot the device to safe mode is this correct?

@Robert it works sometimes on reboot, and always on safe mode

Have you tried doing a Network Reset from the resets menu?

@acejavelin yes, but it ain't getting better

At this point the next step should be a full factory reset. Is it completely stock? If not, I would factory default and reflash the stock firmware... If it is, then I would suspect a hardware failure likely related to heat micro-cracking. In Safe Mode the processor is kept throttled in addition to preventing some software from loading.


text:
Is there a way to change the lockscreen message/owner's info using ADB?
My Realme 7 Pro doesn't support lockscreen messages for some reason but I was wondering if I could change my lockscreen message because when I first got my phone I backed it up immediately (Google Backup I think...) and my old cringey quote was on the lockscreen (it was horrible) and I couldn't remove it. Does anyone know what ADB command I need to type to replace my old quote? If you know other ways to replace it without root I will gladly accept it.


text:
Is it possible to "mirror" my smartphone SIM into my smartwatch eSIM?
I am wondering whether, with eSIM technology, I would be able to mirror my smartphone physical SIM to my smartwatch eSIM (as if I had cloned my phone, like in the movies).
Telling you my final goal could explain better what I am trying to achieve.
Basically I am trying to understand if I could leave my smartphone at home (SIM included), then going out with my smartwatch (e.g. running/cycling/etc) and still receive my smartphone's notifications, texts, etc from the 3G/4G network (essentially I'll be out of bluetooth range).

AFAIK eSIM profiles can't be created by you just like you can't create SIM cards that work in your common network. Ask your mobile network provider if you can get a second SIM as eSIM for your mobile plan.

After some research (thanks Robert for your input), I've found that:
No, you can't tweak your own eSIM to have the same number as other SIMs or eSIMs of yours.
However, it is possible to have the same number on multiple devices if your provider supports it (you will most likely have to pay the extra cost of such feature).
For example, in the UK, where I live, as of today (30th October 2020), only two operators offer that:

EE (Smart Number --only Apple devices supported)
Vodafone (One Number --only Apple and Samsung devices supported)

EDIT: Also O2 appears to offer this feature, although it doesn't seem to have a branded name and I've only found a related section on their website about Samsung.


text:
Will joining notification be send to my contact number if he doesn't have it?
Suppose I have synchronised my contact but the person in my contact do not have my contact number, will he receive my joining notification in telegram app?

No. Only those who have your contact will see that you joined even if you don't have their comtact. So someone who doesn't have your contact number will not get notified.

No. He will only receive notifications of those people who are in his contact list.
Imagine a famous person getting 100s of notifications per day of people joining telegram he doesn't even know. LOL


text:
How to enable/start "Android Debug Bridge" (adb) from a shell?
I have a root shell, on an Android device's UART.
There is no screen, only a serial console.
How can I enable/start "Android Debug Bridge", so that I can use adb?
(Neither of the answers on: https://stackoverflow.com/questions/47510232/is-there-any-adb-command-to-enable-developer-options work for me.)

Thanks, but /system is not a separate filesystem, just part of the RO root, which cannot be remounted RW.

Have you tried to simply start adbd?

if adbd is running you can mirror display with scrcpy

@Robert I'm talking about adb access.  I've only previously got adb access using Android Setting's "Developer Mode", hence my confusion.

i don't know about UART without display. is android system_server even running? am start -n com.android.settings/.DevelopmentSettings + (11x) input keyevent KEYCODE_DPAD_DOWN and finally if reached the proper row KEYCODE_SPACE + KEYCODE_DPAD_RIGHT + KEYCODE_SPACE should enable usb-debugging


text:
Can I prevent notifications from being forwarded to my watch during Do Not Disturb?
I have a Pixel 3 phone running Android 11, paired with a Garmin Venu watch. The Pixel can forward notifications to my watch via Bluetooth, with per-app notification controls specified in the Garmin connect app. I've noticed that whenever I set my phone on Do Not Disturb, I still get notifications forwarded to my watch. Is there a way on the phone to prevent notifications from being forwarded to my watch while in DND?

you can freeze the app or remove the notification access of the app while in dnd mode. Will that be a problem in anyway?

@Aayush, I'd prefer to do it globally for all apps.

No i mean there will be an app of Smart watch installed on your phone right?(that connect app maybe.. Is that it?) Which has notification access and it send the notifications to your smartwatch.

I was saying that you can just freeze the "Garmin connect app" while in dnd mode and unfreeze it when dnd is off

@Aayush, oh yes, that should work. Freezing the Garmin Connect App.Thanks!

So.. should i post an answer or.. you can do it yourself?

@Aayush, go for it.


text:
How can I remove the default wallpaper of a custom ROM?
Each time in my AOSP custom ROM, I change the default wallpaper for home and lock screen into another one, they get reset after a reboot. How can I remove these wallpapers from the system, so they can't come back?

Here is my ROM info:

The current wallpaper files should be located here: /data/system/users/0/wallpaper* Not sure what partition this directory belongs to or when it is written.

@Robert https://prnt.sc/v8ucfo / https://prnt.sc/v8udw0  I didn't find them.

The default wallpaper is normally found in the frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.png, but can be overwritten by OEM overlays found in device/vendor.

@Aayush tried hard but didn't find the path you've referred.


text:
Hexedit libmmcamera2_isp_modules.so to fix camera daemon crash
I'm trying to get the camera working for the LG G4 (msm8992) in Android 10 (for almost a year now.
Can someone help me hexediting the camera blob (system/vendor/lib/libmmcamera2_isp_modules.so).
This blob seems to be a common cause of camera crashes:
https://github.com/search?q=%22libmmcamera2_isp_modules.so%22&type=Commits
I dont know what to look for to modify in the blob. I would like some guidance on what to look for once hexediting and debugging to find why the lib is causing the camera to fail..
Here is my log of the crashes during the startup of the camera app: https://github.com/aoleary/g4_issues/blob/main/Camera%20startup%20error
And the two tombstones :
https://github.com/aoleary/g4_issues/blob/main/tombstone_00
https://github.com/aoleary/g4_issues/blob/main/tombstone_01
These are the device trees :
https://github.com/aoleary/device_lge_g4-common/commits/q_cam
https://github.com/Suicide-Squirrel/Titan-Kernel-LG-G4/tree/staging/android-10.0
https://github.com/Suicide-Squirrel/proprietary_vendor_lge/tree/android-10.0

Modifying a binary via hex editor is possible but very very complicated. The common way to reverse engineer a binary is to decompile it to assembler using a tool like Ghidra or IDA and then modify it. But this requires still a lot of knowledge and if you don't know exactly what is going wrong it is even more complicated. In any way for modifying binaries I would recommend to post your question on https://reverseengineering.stackexchange.com


text:
Snapdragon or Exynos?
I have Samsung Galaxy S7 and I want to check if I have a Snapdragon or Exynos chipset. I need this info because I plan to install Android Pie or 10 and I need to know exactly which chipset the phone has. My baseband is G930SKU3ETG1, Build number R16NWG930SKSU3ETG2, yet back casing SM-G930P. SNAPDROGON or EXYNOS? It has already been rooted with android 8.0.0.
Can anyone help please?

Why don't you just install an system or cpu info app that checks the CPU and shows the results?

Install AIDA64 from the Play Store, which is free (with advertising). The CPU tab will show you exactly what SoC you have, and what the cores are. For example, my Samsung Galaxy S8 shows:
SoC Model  Samsung Eyxnos 9 Octa (8895)
Core Architecture 4x ARM Cortex-A53 @ 1690 MHz 4x Samsung Exymos M2 @ 2314 MHz


text:
Replacing headphone jack in Motorola Moto Z2 Play
I'd like to know, if it is possible to replace malfunctioning (actually: dead) headphone jack in Motorola Moto Z2 Play? I would like to do this in an repair shop (not myself), if this is possible at all.
I mean "possible" in terms of hardware. If it isn't for example an irreplaceable part of mainboard or if something else does not make such repair impossible or too expensive.
If this isn't possible or would be too expensive, what other options do I have? Is purchasing and using any microUSB-to-jack adapter the only option?
The only, of course, next to replacing the whole phone. But since audio-jack is the only problem in otherwise working and useful phone then I'd like to avoid this option as much as possible.

Just watch the repair tutorial yourself: https://www.ifixit.com/Guide/Motorola+Moto+Z2+Play+Audio+Jack+Replacement/103357

make sure it's actually a hardware failure and not just permission issue in settings. i think it's not worth it to open the phone just for headphone jack if there is a risk to damage display. bluetooth headphones is another alternative

@Robert Thanks for pointing this out. I'd say that your comment is a valid answer. You could write something like "Yes, this is certainly possible, not only in repair shop, you can do this yourself" + link. Due to my limited skills, I'd like to do this in a repair shop, but for some reason I'm getting responses that such replacement is not possible, so it may turn over that I will be forced to do this myself. Thank you.

@alecxs Thanks for pointing this out. However I am more than certain that this is a hardware problem, since I started to hear only on one of the ear phones and soon for none as I was doing nothing (just listening, screen turned off). And then it turned out that jack is simply very very loose. I can move my cable around and at some weird position I can again hear on one earphone and and some other position -- at second one.


text:
Is there an alternative to Bouncer- Temporary app permissions?
I'm really paranoid about my privacy idk why. Recently I installed Whatsapp Aero which is super cool but unfortunately its developer is expert in making spyware apps too. I found this Bouncer app which provides permissions temporarily. But this app is paid and not open source again. I tried shelter app to isolate it but due to the dual app feature in my phone i can't a add work profile. Can anyone suggest me how can i monitor what the app does in background OR make an script which grants and revokes permissions through adb OR any alternative to Bouncer? I'm gonna buy the bounce app if i'm outta options. The developer deserves it :)
P.S.  My device is not rooted.

Hi, take note that questions directly asking for app recommendations are off-topic. Instead, we prefer the asker to just state the underlying problem that they want to solve and not putting any restriction for apps-only, so we'd appreciate it if you could [edit] the question, add some details and/or remove the restriction. Otherwise, you might be interested in our sister site, Software Recommendations Stack Exchange instead.

@AndrewT. Oh okay

I suggest using  Android Mobile Device Hardening which:

list installed apps and their dangerous permissions
revoke dangerous permissions for all Apps
list applications that are device admin

Thanks for your answer. As it's mentioned it lists all the permissions and i will have to manually revoke it. I use whatsapp very often and can't always grant and revoke permissions it so tedious. So it's potentially useless for me.

Most of the benefits are avaialble with a modified device (Custom ROM Flashed). Your phone is faster and better without Google Apps. Root acceess gives you the added benefits of apps like App Ops and Storage Isolation. These are precisely the apps that you are looking for.

Yeah that's true indeed but it's a new phone and i can't take the risk of bricking it.


text:
Cannot root Acer Iconia A500 running on Android 4.0.3
I have an Acer Iconia A500 here that is supposed to be rootable. But I tried and tried. But nothing made the job.
I tried using ADB and Fastboot, but it said to me that it can't run the command because it's locked. Then I tried to use
fastboot oem unlock

but then it said (cmd):
... OKAY [0.166s] finished. total time: 0.167s

then I reboot into bootloader again and then (cmd):
sending 'recovery' (5360 KB)...
FAILED (remote: (00000002))
finished. total time: 0.176s

and then in the tablet:
Bootloader v0.03.12-ICS: Starting Fastboot USB download protocol
Fastboot: Not support the command in Lock mode
Failed to process command download:0053c000 error(0x2)

even though I already unlocked the device
Does somebody know what's happening here? The third thing I tried was ICS_rooting, with no success. I'm running Android 4.0.3 if that helps any.
PS: I also tried to use GingerBreak, but GingerBreak is for Ginger, and I have Ice Cream Sandwich, as this is one of the last ones that Acer sold.

https://forum.xda-developers.com/showthread.php?t=4039271

Yeah I'm having the same problem, and gingerbreak will load forever
But another method do work : https://forum.xda-developers.com/t/full-root-for-a50x-ics-4-0-3-leak-simple-method.1546593/


text:
Any way to transfer file >4GB from PC to android tablet?
I'm trying to get a very large file (97 GB-Wikipedia for Kiwix) from my PC onto a Micro SD card in my Android 10/Go edition tablet.
The problem is that the tablet doesn't seem to recognize an Exfat card; when I put it in, it wants to format it. If I format it for Portable Storage, it formats it as Fat32, so I can't transfer larger files.
I've seen some indications online that formatting it for Adaptive Storage allows bigger files, but the problem with that is that the adaptive SD doesn't show up in Windows file explorer, only the smaller internal storage.
I've tried downloading the file straight to the tablet, but android is again trying to download it to the smaller internal storage, so it gets stuck. When trying to change the download folder, chrome again only sees the small internal storage.
Any other ideas how I can get this file onto my 256GB adaptive storage sd?
Thanks in advance!

So.. I am just guessing at this but you might be able to do ext3 or ext4 on the SSD and get a driver/tool for that working in Windows.  If you try, make sure ext3 has a block size of 4k or you will have the same problem you have now.  Do you have console access to your tablet?  If so, you might be able to split the file and re-assemble on the android side?

As long as the microSD card is formatted as FAT32 a file of more than 4GB is impossible. You can try if Android Go supports exFAT file system on the microSD card, in such a case it should be possible to you such a large file via USB onto your tablet, not sure which app allows to download directly to external storage.

Does this answer your question? How to read ext4 filesystem without mounting on a non-rooted device?

As Señor CMasMas has mentioned you need to format the SD card as ext4 and you will need root to be able to mount it on the android. You can access the ext4 partition on Windows with "Linux File Systems for Windows by Paragon Software" This program lets you mount the partition in windows and use it as a regular drive.
Here is how this can be done.

Format your SD card as ext4. You can partition it into 2 partitions and only format the 2nd one as ext4. This way you can still use the first partition normally on your device. I used Mini Tool Partition Wizard.
On your Android device, you need to mount the partition. I use Termux (terminal) to do this. You need root to be able to mount it.

Make a folder in your termux home folder where you will mount the partition. (eg. mkdir ext4).
Mount the partition to this folder. You need to find the device name. I have found in all my devices that it was /dev/block/mmcblk1p2 for my 2nd partition. (eg. mount /dev/block/mmcblk1p2 /data/data/com.termux/files/home/ext4-fs).

Once its mounted you can access it with Total Commander (and probably other file explorers as well) on the Android.
I have done this and am able to copy large files onto it.

How do you access it? Where did you find it?

If you are using Termux then if you used the example folder you will find it here. /data/data/com.termux/files/home/ext4 (This is the mountpoint).

Thanks this really works great.


text:
Accessing NFS share
I'm trying to develop a very basic NFS Android client. I don't need to actually mount the NFS share, just list, read, and write files.
I can't seem to find any NFS-related APIs in the Android API reference, nor any Android-compatible Java-based NFS libraries.
What's the easiest way to access NFS shares programmatically in Android?

NFS is complex, won't work without kernel support: How to mount NFS on Android with correct permissions?

That doesn't pass the basic smell test as my Kodi application on my Nvidia Shield reads media files on the local network over NFS


text:
vcast media manager huge log files: safe to delete?
Device Info

Phone: Samsung Galaxy S7
Carrier: Verizon Wireless

My issue
My phone is low on available space, so I wanted to delete some things. I noticed that the path Android/data/com.vcast.mediamanager/files/instabug/logs is taking up 1.47 GiB of just .txt log files! What is generating these, and is it safe to delete them?

Instabug is an app component for bug- crash- and app performance-monitoring.
Therefore it should be safe to delete this file.
I would also send a bug report to Verizon as com.vcast.mediamanager is their
Verizon Cloud app. May be they forgot to decrease the logging verboseness which leads to such a big log file.


text:
How do I translate an application that is protected and cannot be translated by AllTrans Xposed Module?
I've been trying to translate this application using AllTrans, yet I don't know how to do it by extracting and recompiling the APK?

Try Google Lens.. it can translate text directly from your screen. Pretty awesome.
Hope it helps


text:
On Firefox on Android, how to disable DNS over HTTPS and do normal DNS lookups via port 53?
I want Firefox on Android to be able to browse to local domain names on my LAN: http://koffiezetapparaat.lan should resolve to http://192.168.1.120 for instance.
This works on desktop Firefox, but doesn't work on Firefox on Android. I suspect that this is because of DNS over HTTPS.
What I tried:
I installed Firefox Beta on Android, went to about:config and set network.trr.mode to 5 as described here. Then, I removed all DNS cache present in Firefox on Android itself.
Then, I 'hard reloaded' http://koffiezetapparaat.lan by long pressing the reload button.
I still get a 404.
Network traffic analysis with tcpdump on my OpenWrt router showed no port 53 traffic, but a lot of port 443 traffic.
Please bear in mind that navigating to http://koffiezetapparaat on Chrome on Android works as it should, it resolves to http://192.168.1.120.
I supect that Firefox on Android still uses DNS over HTTPS and want to know a definitive way of disabling that.

Disable Private DNS (DoT) on Android 9+. It sends encrypted DNS traffic over port 853.