text:
Samsung Galaxy tab S3 not receiving power from otg y-cable
Sorry to be a noob, but im not skilled enough to see if this question has already been answered.
Ive watched Youtube videos on how to connect an external HDD to my galaxy tab s3 using an otg y-cable.  The y-cable I bought from amazon for $6, it has a usb 3.0 female splitting to one micro usb male and one micro usb female.
The hard drive is recognized but no power is being supplied to my tablet via the y-cable.
i plug my samsung power cable into the micro usb female.  the HDD plugs into the 3.0 female and im using a micro usb to usb c adapter for the micro usb male end of the y-cable, as shown in videos.
can anyone provide advice or recommendations?
Thank you.

charging will not work. it is of the nature when switching between host or peripheral mode, the charge is for power the peripherals, not the host


text:
How to remove a system app from the Play Store updates list
I wonder how I can remove SwiftKey Keyboard form the updates list.

Notes

It's a system app.
Its Disable button is grayed out.

Disable automatic update in Google Play settings, the apps won't automatically update

@esQmo_: Then I'll have to manually get updates for each app separately, right?

Indeed. That's the only way as far as I know

source: Stack Exchange

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

sort: votes


text:
Can I install GNU/Linux in text mode on android?
I want to use my old smartphone (Moto 3G) like Rassbery Pi to make some low level things with just terminal. I  want to install GNU/Linux in text mode, get access to it with SSH, get connection to Internet and have possibility to type in installed system with onscreen keyboard like in android.
Important thing is that, I want to FULLY remove android and install GNU/Linux in this place. I don't care about SMS, Phone calls etc. ( But things like camera handling, and way to see battery status, playing/recording sounds, or changing screen brightness of the screen are nice to have).
Is there any distribution that can satisfy me? And how can I install chosen system instead of android?
EDIT:
I am seraching for way to install TEXT ONLY operating system. This question Dual booting linux on android galaxy note 10.1 doesn't help me because I am trying to just make Rassbery Pi clone from my old phone.

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

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


text:
How to automatically lock the screen or something when the Wi-fi disconnects?
I think this would be useful if you're entering data into a form, but you don't want to accidentally press "submit" when there's no Internet, causing you to have to re-enter everything.
Also, it would be nice for macros. Say you have a macro doing something on an app that requires Internet. When the Internet fails, the macro goes haywire by clicking on random stuff it's not supposed to click. It would be best to lock the screen in that case.
I have Android 4.4.2. I do not have cellular data on this phone.

Tasker / MacroDroid should be able to do this.

Define wifi cut off. Wifi enabled but not connected or Wifi disabled?

I assume you really meant "checking if the device is connected to the internet" since there's also a possibility to use mobile data when the WiFi fails, or the device is still connected to the WiFi but not connected to the internet.

@ReddyLutonadio Yes I mean when Internet cuts off in general, but the phone has no data, so just Wi-Fi disconnected

Just out of curiosity, does anyone know if there's any comparable method similar to this but for Android (i.e., examining browser header/POST data)?  It would also resolve the OP's problem, while also circumventing potentially annoying scenarios, e.g., experiencing intermittent connection loss while trying to use their phone.

On a separate note, would enabling this setting help mitigate OP's issue?  Or the "Keep Mobile data turned on" setting also found in developer options?

Using Macrodroid:

From the drawer, select variable and create a global variable of type boolean. Set it to false and save.
Create a macro. On the Triggers tab, on the Connectivity section, select Wifi Enable.
On the Actions tab, on the Conditions/Loops section, select Repeat actions, then "While condition repeat". On the Condition, go to the Connectivity section, select Wifi State, then Wifi is connected to, finally select Any network.
On the Actions tab, on the Macrodroid specific section, select "Wait Before Next Action", set a time (I set it at 1mn).
On the Actions tab, on the Connectivity section, select Connectivity check. Enter a website that the macro will keep checking if there is an internet connection to it or not. Set the timeout. Click the + and add a variable.
On the Actions tab, on the Conditions/Loops section, select "If clause", under Macrodroid specific, select Macrodroid variable and choose the variable created on the previous section. Set its value to False.
On the Actions tab, on the Screen section, select "Screen On/Off", choose Screen Off.
On the Constraints tab, under the Screen and Speaker section, select "Screen On/Off", choose Screen On.
Give the macro a name and save it.

The macro will look like the image below. Click the up and down arrows on the Actions section, to be able to move the actions up or down.
Click the 3-dot on the top right and select Test Macro.

Explanation: When the macro starts, it checks if Wifi enabled and the device is connected to any network. It waits for a certain time before checking if there is a connection to the website enter in step 5. If after the set timeout in step 5 there is no connection, the screen will be switched off.
The delay in step 4 also serves as a fail-safe mechanism when you switch the screen on again to allow for example to disable the macro.
Note: To see the Conditions/Loops section under the Actions tab, the macro must be saved. Then when opened for an edit, the section will be visible.

This is awesome! I haven't gotten it to run yet because I can't find the "conditions/loops" section. There doesn't seem to be one. I tried looking for similar words but no luck. Trying to find it. Is it on the full version only maybe?

@CreativiTimothy Save the macro, then edit it. The Conditions/Loops section will appear under the Actions tab

Nevermind, I found it. You have to save the macro first, and then you can add conditionals to it, or maybe I just suck at using the interface. Testing now and got it worked. You're a life savior!

I was thinking of a suggestion. If we add the 1 min delay outside of the while/do loop, would it be better since it will be checking WiFi connected as fast as possible? I think the 1 min delay would act as a fail-safe mechanism when your Internet turns back on and off super fast.

I have not tested it with the delay outside the loop. But I did without the delay and it was too fast for my liking that is why I introduced a delay. Test your suggestion about the delay outside the loop. Also try increasing/decreasing the timeout of the website.


text:
How to convert mmssms.db from android to ios database
My generell task was to transfer all my sms & mms from my old windows phone to my new iphone.
I found some solution but I'm stuck half way now. It's workaround via android as there seems to be no solution for direct transfer between windows and ios.
What I already got to manage by now using a virtual android device:
transferring all sms and mms via "contacts and message backup" from the windows phone and "sms backup & restore" to the virtual android device.
But now I'd like to transfer the messages from the virtual android to my iphone.
I wanted to use "backuptrans" to do this, but therefor the virtual android has to be plugged to my mac as a usb device. Somehow this seems to be intricate and I didn't manage to do this.
To bypass this problem I tried to copy the mmssms.db or the backup-xml (from sms backup & restore) from the virtual android to my computer and tried to use this as database-file for "backuptrans" directly but this also doesnt seam to work.
My questions:

Is there any workaround to make my virtual android device connect to my mac and appear as a working device so that "backuptrans" can use it?
Is there a way to transfer the copied mmssms.db-file or the xml-file to a fileformat either backuptrans or my iphone can read as a database file?

I'm using VMware Fusion in macos 10.8 for the virtualization, Android 4.4 in the vm, macos 10.8 or 10.12 for accessing the iphone.


text:
Is it safe to delete logcat.txt files or the whole psysinfo folder to make more space on my Android phone?
I have an android phone and the space on the sdcard is getting scarce...
(I don't understand how android functions - just a simple user.)
In the following directory: mnt > sdcard
There is a psysinfo folder, which is 3.02 GB ...
And in this folder there are subfolders like log6, log5
and so on.
In these subfolders, there are a few logcat.txt files and three of them are like 1GB large.
Will my android phone function OK if I just delete these files and free some space (3.02 GB)?
I view the folders with 'ES File Explorer' and am thinking of deleting these files using the same app. This app says the above folder and logcat.txt files are the largest in my phone. My Android version is 4.1.2.
I searched online to find what the [ ...> psysinfo ] folder in Android is, but I couldn't find any info about it and then searched about deleting logcat.txt files but the info available seems to be for folks like developers. I couldn't really understand it.
THANK YOU!

It shouldn't be a problem to delete them if there are only .txt or .log files. If you are not sure, delete a few files with smaller to medium sizes. Restart your phone, and check if all apps are working normally. If they are, then proceed with deleting the others.
Log files are used mainly for debugging purposes. Deleting them should not bring chaos onto your phone.


text:
How can I know if fstrim was run when I put my phone on charging over night?
Is there any logging where I can confirm if fstrim was run when I put my phone on charging over night?

A charging, idle device over night is not the only way to run fstrim, there are other ways, too.
Quoting from this old article about scheduled fstrim on Android:

The Android framework will send out a “start idle maintenance window” event that the MountService listens for, and then invokes vold to fstrim filesystems when a few conditions have been met – the device hasn’t been touched for over an hour, no idle maintenance window event has been sent in 24 hours, and the device is either off-charger with 80% battery or on-charger with 30% battery.

But IdleMaintenanceService was removed in Lollipop, things have changed. On Pie, scheduled fstrim is triggered from StorageManagerService (1) to MountService (2):

if the device is alive at midnight + idle, fstrim gets run at the next available charging + idle time

* (3)
Mount service calls StorageManager which in turn calls Vold to do fstrim.
If the schedule is being missed because the conditions aren't met and fstrim has not run for the last 3 days (4), it will be forced during device startup if the device is restarted. SystemServer (5), PackageManager (6), StorageManager (7) and Vold (8) are involved.
In each case, the file /data/system/last-fstrim (9) (since Lollipop) gets updated (10), so you can check its timestamp (requires root) to find out when fstrim was last run.
If you want to do TRIM manually, use Android's commandline tool sm fstrim (requires root or adb shell). Previously this was vdc fstrim dotrim but added to Storage Manager in Oreo (11) and removed from vold in Pie (12).
In order to send FITRIM ioctl to selected filesystem(s) only, use the fstrim tool (requires root); a BusyBox applet.

What if you don't have root?
And you suspect that the scheduled fstrim is being missed for 3+ days, restart the device, fstrim will be forced (since Lollipop 5.1 (13)). Simple.
Apps can't TRIM without root; see this answer.

PS: HOW OFTEN TRIM SHOULD BE RUN?
Flash memory (including SSDs, eMMCs, SD Cards, USB sticks etc.) has a limited number of Program/Erase (P/E) cycles before it dies. But unlike HDDs, data can't be just overwritten on flash memory, it has to be erased first, which is achieved through garbage collection (GC).
Now if we do too much fstrim, this will cause frequent GC in the background consuming precious P/E cycles and hence reducing life. If we don't do fstrim at all, there could be unnecessary GC (of already deleted data), plus the write operations will get too slow with time because erasure will have to be performed before overwriting data, which has significantly higher latency compared to the program operation.
So we need a balance between both.
Also there are other factors e.g. whether eMMC controller supports over provisioning, how effective it is in background GC scheduling, wear-leveling and managing write amplification etc.
So unless you have the data sheet of your phone's eMMC and you are sure what you are doing, it's better to leave the fstrim to the OS. On PCs (14):

Running fstrim frequently, or even using mount -o discard, might negatively affect the lifetime of poor-quality SSD devices.  For most desktop and server systems a sufficient trimming frequency is once a week.

But this may vary depending on the situation.
RELATED:

Coding for SSDs
Why is TRIM not supported on encrypted “/data” partition?

I have a question. I understand that I shouldn't run trim too often but can "sm trim" work without root through adb?

Yes, because shell has MOUNT_UNMOUNT_FILESYSTEMS privileged permission granted by default, so must work without root. But there could possibly be other issues like a bad SELinux policy may not allow this. Also TRIM on encrypted /data partition is tricky.

Is there a way for non-root users to find out when TRIM was last run? I'm on a Pixel 6 Pro running GrapheneOS, if that makes things easier.

@MatthiasBraun you may find traces in logcat, dumpsys, dropbox etc. I've never tried though.


text:
How to access VNC server running in an android phone in another computer?
I have installed Ubuntu in my Android phone and I can access its GUI in my phone by connecting a VNC viewer to localhost:1. The VNC server is running inside Android.
Is it possible to access this in a computer connected to the wifi hotspot of the phone?
I connected to computer to the phone's hotspot and tried to access locahost:1 in Real VNC Viewer, but it says "The connection was refused by the remote computer".
Please note that I am not trying to access vnc server running in another computer in my phone but the opposite.

How are you running this VNC server on Android?

Yes, I updated the question

Go to Setting > About Phone and note down the ip address of your mobile phone.
Now connect to the Wifi hotspot of your mobile phone. In the VNC viewer, connect to the address ip-address-of-mobile-phone:1, to access the localhost:1 of the mobile phone.


text:
Notifications arrive when the app is opened, but not in the background
I don't know if it's the right place to ask my question, if not, sorry.
1st, I was using Sony Xperia Z5 premium for the last three years, never faced any issues but few days ago, I switched to Samsung galaxy s10+ and the problem I'm facing is, I'm not getting notifications from WhatsApp or some other apps when they're not opened.
When I open them, I got couple of notifications.
If I don't open that app for whole day, and at night when I open it, I get notifications of all day.
Please guide which settings or options I should see?

Check battery optimization, battery saver, battery manager, aggressive battery, background data restriction, power saving mode or any other performance boosting settings. Uninstall RAM boosters, cleaners, background app killers and anti-virus tools (if any). Try clearing cache of affected apps and of Google Play Services / Framework for push notifications fix. See Play Services (and possibly your required app) in the list of Running Services from Developer Options. Or at extreme try disabling doze mode: dumpsys deviceidle disable all.

First of all, thank you for the reply. I've tried battery optimization but nothing helped. Battery saver is also not on. I use wifi so background data doesn't effect. I've no performance boosting apps or ram cleaners etc. I'm getting notifications on other apps so push services is also working.

And you don's have Battery Manager / Adaptive Battery feature either? https://www.androidcentral.com/android-p-features-we-love-adaptive-battery-support

No sir, that's what I'm tired of, I've tried everything that came in my mind.


text:
Honor 8 bricked after batter replacement
I replaced the battery myself.
After finished, I trun on the phone, it vibrates once and the screen light up a little (hardly see it) but cannot boot. When I press and hold the power button, it turns off but on again automatically with the same phenomenon. What did I do wrong? I can charge the battery (the LED changed from yellow to green).

i guess you have damaged screen when opened the case


text:
"Security update required" on Exchange account on Android 10 Beta
I am on Android 10/Q Beta on Pixel 2 and my exchange email account stopped working and is constantly asking for security update. It doesn't lead me to anything when I click on it and hence stuck with no mail access. I've had Android 10 Beta for a few days now and the exchange account was working fine until now. Any pointers on this?

I've experienced the same (Pixel 2 XL Q/Beta4) but there seems to be a workaround which works for me:

delete your Exchange account from Settings -> Accounts
delete the latest update from Gmail in Play Store
open Gmail and add your Exchange account
update your security settings when promted (should work here)
update gmail to the latest version

works perfectly, thanks. I have 3 Pixel 2 in family and all of them have the same problem with Android 10 and this solution works every time.


text:
Local website unreachable from Android phone
I have a local media player running on a raspberry pi that that provides a web interface via WiFi. This interface is sometimes unreachable (via hostname or IP) from my Android phone while it is still accessible from my laptop and from an iPhone in the same network.
I am posting this here since I suspect a routing problem. The WiFi network consists of 3 access points and a home router that also provides DHCP etc.
How do I analyze this? Any ideas on the issue?

Did you try ping to router and the website host?

Ping and traceroute from the Android device both fail with a timeout. All other devices on the network are reachable, though. What's even more strange is that sometimes it works, sometimes it does not.


text:
SP Flash Tool does not recognize the firmware scatter file
I have a neffos X1 Lite and it seems that it boots only in the twrp recovery console.
Anyway I am trying to restore my official recovery console (i have no backup) using the official firmware http://www.neffos.com/en/support/download/X1-Lite
Inside this zipped file, there is a file scatter.txt that contains the following content.
preloader 0x0
pgpt 0x0
recovery 0x8000
para 0x1008000
expdb 0x1088000
frp 0x1a88000
ppl 0x1b88000
nvdata 0x1bc8000
metadata 0x3bc8000
protect1 0x5bc8000
protect2 0x63c8000
seccfg 0x7000000
proinfo 0x7040000
oemkeystore 0x7800000
md1img 0x8000000
md1dsp 0x9800000
md1arm7 0x9c00000
md3img 0x9f00000
nvram 0xa400000
lk 0xa900000
lk2 0xaa00000
boot 0xab00000
logo 0xbb00000
tee1 0xc300000
tee2 0xc800000
secro 0xcd00000
keystore 0xd300000
system 0xe000000
cache 0xeb800000
userdata 0x106800000
flashinfo 0xFFFF0080
sgpt 0xFFFF0000

Now, using SP_Flash_Tool-5.1916_Win to load this scatter file I get an error "Invalid format". So, how am I supposed to un-brick my phone? I still have access to ADB, Fastboot and no matter what I can not boot to OS.

Yes I have unlocked bootloader and the fastboot it works but as I said the TWRP seem to work but I can not boot to the OS.... Everytime I boot I go to the recovery console. So, I thought I could flash the official firmware to return back to official recovery.

@alecxs Please explain what do you mean "already stock"

you have right but I am desperate and I thought to get full restoration to make it work.

The ROM you provided does not contain a valid scatter file or recovery.img so you can not use SP Flash Tool.
I recommend you to make a backup of boot, copy the boot.emmc.win to PC, then to another phone and patch it with Magisk Manager apk
After successful patching, copy the patched file back to PC
Reboot the phone to bootloader, and flash the magisk_patched.img from fastboot
fastboot flash boot "C:\adb\magisk_patched.img"

If for whatever reason you are not allowed to flash from fastboot, you can flash it from TWRP
When phone is working, just install Magisk Manager apk
Note: The /system partition and /data partition are encrypted, thats why you can not install Magisk.zip from TWRP
Patching the boot.img with Magisk Manager will remove the "verify" flag and patch against dm-verity, which will allow you to boot with modified recovery partition
Edit:
If you have a working similar phone, you can perform a "Read Back" of the recovery partition. based on your question, i have created a scatter file for the recovery partition
for the read back, select Region EMMC_USER and use the start address and size from this:
############################################################################################################
#
#  General Setting
#
############################################################################################################
- general: MTK_PLATFORM_CFG
  info:
    - config_version: V1.1.2
      platform: MT6755
      project: TP904A
      storage: EMMC
      boot_channel: MSDC_0
      block_size: 0x20000
############################################################################################################
#
#  Layout Setting
#
############################################################################################################
- partition_index: SYS2
  partition_name: recovery
  file_name: recovery.img
  is_download: true
  type: NORMAL_ROM
  linear_start_addr: 0x8000
  physical_start_addr: 0x8000
  partition_size: 0x1000000
  region: EMMC_USER
  storage: HW_STORAGE_EMMC
  boundary_check: true
  is_reserved: false
  operation_type: UPDATE
  is_upgradable: true
  reserve: 0x00

Edit 2:
based on your output of /proc/partitions from twrp here is the complete scatter file (use carefully, no warranty it works)
MT6755_Android_scatter_TP904A.txt

ok, i will try right now. I have two similar phones (one of them has the problem, but the other is running official firmware without any modifications)

To run Magisk Manager  apk should I have a rooted phone?

Magisk Manager is up to date and just above Magisk is not installed. Should I install it ? Does this affect or root my other phone ?

I have also copied to my sdcard the Magisk-v19.2.zip and the SR5-SuperSU-v2.82-SR5-20171001224502.zip and when installed them under twrp I see no difference in the booting procedure.

Yes, I just wanted to mention that I tried to install magisk.zip or SuperSu.zip without success. So, Magisk Manager apk will root my working phone? Because without Installing I can not find any patching option inside the app, am i wrong ?

thanks, i am doing this right now.

Let us continue this discussion in chat.

Excellent programmer & human. He helped me so much with direct support that I have no words to thank him. Alecxs, If you ever visit Greece, you are very welcome to stay at my home. Thank you is too little for the help you gave me.

in the excel scatter computation file you gave me, there is an inconsistent after the oemkeystore section in comparison the official firmware scatter.txt I attached in my question.  Your computations are correct so why these inconsistent exists? Which of them are the correct values? Check the edited excel file https://drive.google.com/file/d/1-EKOYEsjXiqzA32RYbP3rH2C0ZAHsjJk/view?usp=sharing and the Text Tab

Alecxs great news! After "ReadBack" from an identical phone, I finally restored the original recovery image and now the phone it works as it should be. I will never accomplish that without your precious help. I learned a lot, but the best part? Don't touch anything you don't know how to handle it. I spent 24 hours almost continuously (with 4 hours sleep between them) to make it work, I lost my time with this thing and I feel very very tired. I will spend a little time with my children now! Thank you again what else can I say?


text:
I have android 7 but i cant locate factory reset protection(FRP)
I have android 7 on my device but i am cant find how i can enable FRP.
I was thinking that all devices above 5 have FRP protection app as the settings ought to have cloud and accounts menu that i can find the FRP support.
Is this to be expected?.

The Factory Reset Protection (FRP) is invisible and if it is present always active.
You only have to add one Google Account into the Android account list to "bind" your device to this account.
If the factory reset protection works or not you will only see if you perform a factory reset of such a device. If after the factory reset it asks for the password of that Google account it is active.

Most chinese made devices i have tested with have not this feature. You can pretty much factory reset even if you have 10 accounts attached to the device.


text:
How to change random filesystem label on USB OTG?
I am without PC right now, but I need to Format USB Drive (to FAT32 or Ext4) with Samsung S8 (Android 9) and change label. But I can't find any app that can do this. I can format USB drive in Storage Menu, but without any options, it just gives it Random number name (I can see it in Total commander) and I think it's Ext4, but again no options. Is there any option to rename the Label?
I found they there is Aparted app (port of gparted) but it needs ROOT and also it gives random label.
I also tried to rename drive in Total commander, but it says it's ranamed, but in reality it has old label. Thanks for any help :).

Renaming of volumes usually requires root permission. As Android does not allow to set a label when formatting the volume any other app without root permission will not be able to change the label.

It's not possible to create filesystem or set label without root access. Block devices in /dev/block/ are created with ownership 0:0, mode 0600. Also apps aren't allowed to access SELinux context device or block_device set on /dev and /dev/block. You can use a rooted device or custom recovery like TWRP. Or use a PC (if available). On Linux and Android command-line is same.

I need to Format USB Drive (to FAT32 or Ext4)

Use mkfs.fat -F32 -n <LABEL> or mkfs.ext4 -L <LABEL> to create filesystem with required label. Or later use fatlabel/mlabel or e2label/tune2fs to change label of an already created filesystem.

I can format USB drive in Storage Menu, but without any options, it just gives it Random number name

The random number is not name (or label), it's filesystem UUID (32-digits long string on Linux filesystems like ext2/3/4) or Volume ID (8-digits long string on Windows filesystems like NTFS/FAT32/exFAT). Similarly GUID partitions have a PARTUUID and PARTLABEL (as reported by blkid).
USB OTG and external SD card is mounted by Volume Daemon (vold) on Android. Since Android 6 by default vold uses filesystem UUID or VolumeID to create a mount path (which is not an actual path in case of USB OTG) like /storage/[UUID]:

"Developers may continue to build paths dynamically or statically depending on their use case. Including the UUID in the path identifies each card to make location clearer for developers. (For example, /storage/ABCD-1234/report.txt is clearly a different file than /storage/DCBA-4321/report.txt.)"

So even if you set label, whatever filesystem you choose, you will see the random number in path. However, like label, you can also set UUID/VolumeID of your choice (in case you want to retain same file path after formatting). Some file explorers, though, show filesystem label as storage name along with path.


text:
How to spot folder of some application on Android (Galaxy Note 5)?
I intend to reset my phone to get rid of bad applications. I will reinstall all applications wanted, but there is the notes application I use that I want to get the data of (no option to back up notes)... how do I get the data?
the application is called Notes by programmer "Office"

Please always include the Play Store link to the app you are talking about.

The application, Notes by Microsoft, stores your entries on OneDrive, they are not stored locally on your mobile device. This also means that your notes are always backed up.
If you remove the Notes application from your mobile device, you will have to log back into it when after you reinstall.

I don't think it's related to MS? I'm talking about an Android app, called Notes, (by "Office" ... an android developer)

https://play.google.com/store/apps/details?id=com.edi.masaki.mymemoapp

I am trying to spot the folder of the App.. I think it's the only way to get it's data (to move it to another device)

If you are able to access the following folder /data/data/com.edi.masaki.mymemoapp, open it. Then do the following:

Open the databases folder. Copy the following files:

myapp.db
myapp.db-journal

The first files contains the memos. You can open it and view the memos with apps that are capable to open sqlite database (search Play Store for sqlite apps, I use SQLPrime).

After installing/reinstalling, open then close Notes (close it also from the Recent apps). Go to /data/data/com.edi.masaki.mymemoapp/databases, delete the files found there, and paste the files from step 1.
Open Notes, you will find your files.

Access to `/data/data´ is limited to rooted devices. The question doe snot say anything about rooting.

@Robert I did not write anything about rooting, only how to access the app's data.

Hence your information if worthless unless the device is rooted.

@Robert Maybe, maybe not

I can access Android > data > where there are lots of apps folders; but I can't find "com.edi.masaki.mymemoapp"

there is folder (somewhere, I moved it).. it's called inappad. it has shared3.0.db, and shared3.0.db-journal... journal doesn't open, .db opens with only two cells, which isn't even a text (some random numbers)

@w4j3d The folder is /data/data/com.edi.masaki.mymemoapp. Then under /data/data/com.edi.masaki.mymemoapp/databases. you will find the files I wrote about.


text:
Android Accessibility: Click When Pointer Stops On Websites
I have a disability that requires me to use the Interaction And Dexterity: Click When Pointer Stops accessibility setting on my Samsung Galaxy S9+. Unfortunately, this setting (in combination with the Assistant Menu) does not allow me to click on hyperlinks. While you can use Assistant Menu: Cursor to move a second pointer that does click links, it is virtually impossible to do this with any degree of accuracy.
Is there any way of using the same pointer for navigating the UI and navigating web pages? I have tried using the Samsung Internet and Google Chrome apps without success.
See: Assistant Menu

Firefox for Android allows you to use Accessibility: Interaction And Dexterity: Click When Pointer Stops to click on hyperlinks. Having tested a number of browser apps, I have found the following browsers do not allow this:

Samsung Internet
Google Chrome
Firefox Focus
Opera / Opera Touch
Microsoft Edge

I noticed that this accessibility feature does not work when the pointer is displayed as a hand.

Maybe there is some way of forcing the same pointer across the entire android UI?


text:
Create an unprivilleged user in android
I want to create an account for android that cannot create another user or remove apps installed by the device owner.
I have looked at creating other accounts or logging as guest and that gives the user an opportunity to install and remove apps.
Does android enable one to have a none admin like account where a user cannot install or remove apps and cannot create accounts?

The answer below by Reddy is accurate however, Android does support "dedicated devices" by way of APIs that let developers restrict how devices work through device policy controller (DPC) protocols.  Often called "kiosk mode" - these are typically custom launchers where the device must be fully managed which allows for the support of Ephemeral Users.  An example of this is Samsung's "kids mode" launcher app.

Does android enable one to have a none admin like account where a user cannot install or remove apps and cannot create accounts?

No. Secondary users can install and remove apps and create accounts.
From Supporting Multiple Users:

Account. Accounts are contained within a user but are not defined by a user, nor is a user defined by or linked to any given account. Users and profiles contain their own unique accounts but are not required to have accounts to be functional. The list of accounts differs by user.

And:

When employing multiple users on an Android device, keep the following behavior in mind:

Notifications appear for all accounts of a single user at once.
Notifications for other users do not appear until active.
Each user gets a workspace to install and place apps.
No user has access to the app data of another user.
Any user can affect the installed apps for all users.
The primary user can remove apps or even the entire workspace established by secondary users.


text:
Huawei stream S can't send or receive text messages
I have a Huawei stream S which is a Japanese version of Huawei p6 . I cannot send or receive text messages . I did factory reset . Help me to fix my problem

First of all, is the SIM card detected? Does the phone receive the signal? Is your current location considered "roaming"?

Yeah all of the things work


text:
What is correct way to calibrate battery?
I've watched videos and referred some random sites.
But I'm not sure if these steps are correct.
I used battery calibration app but that doesn't help.
I'm using Asus Zenfone Max Pro M2.
Running on stable pie.
So how to calibrate battery accurately?

May I ask you to elaborate on what you imagine "calibrating" your phone battery means.

Even customer care told me to calibrate that about battery cycle. 0 to 100 and 100 to 0  that's battery cycle.

Okay; then what do you hope to accomplish?  "I used battery calibration app but that doesn't help."  Help with what?

With battery calibration.

I get that - let me be a little more clear.  "Battery calibration" is an overloaded phrase and most often does not mean anything.  The electrochemistry variability in lithium-ion batteries means you can't definitively say the battery is 100% charged to capacity when your phone reports the percentage as such.  So, you "calibrate" your battery with an app... again, meaningless... then what?  What's your goal by this mythical calibration?

So is it myth? I don't know that if it is myth.

And they also have mentioned that batterystat.bin file will be updated after calibration and then battery draining issue will be fixed.

https://www.xda-developers.com/google-engineer-debunks-myth-wiping-battery-stats-does-not-improve-battery-life/

Thank you. So I should get my phone checked than wasting time to this myth. Thanks again.


text:
Is it possible to recover purchased apps removed from Google Play?
I recently discovered that on my new phone (the old one died suddenly because of eMMC failure) some purchased apps are no longer on Google Play. They are not incompatible with device; they are not listed at all.
I have some old backups by Helium Backup, but I am 100% sure that newer versions were released.
Is it somehow possible to download these apps? Most of them I purchased, but I can't find them even in "Library". I contacted their respective developers, but got no answer at all...

Welcome to Android Enthusiasts! Check What are the alternative Android app markets?. Maybe some of them still have newer version of your apps.

Thank you!
I am specifically asking about purchased apps. There seems to be some sort of connection  between 3rd party Android Stores and Google Play, all of them have my apps marked as "Unpublished" and I can no longer pay them again or download....

Unfortunately, the answer is no, nothing can be done.
Apps that are paid for via Google Play can only be installed and have the purchase validated by the Play Store. Even if you get the app from a third party, it will not be able to authenticate that you paid for it via the Play Store. If an app is removed from the Play Store, it will continue to be authenticated on your device as long as it is installed, but if the application is removed for any reason, it will no longer be available from the Play Store, and the purchase information is lost.

Is it somehow possible to download these apps? Most of them I purchased, but I can't find them even in "Library". I contacted their respective developers, but got no answer at all...

The app is not really the issue, although a variety of different methods are used, the most common one is that app is the same for the paid or free version, but when you pay for it, an authentication token is issued for the app on your device. When you remove the app, the token is removed as well. If the app has been removed from the Play Store, a new token will not be issued.
In most cases, the developer can do nothing anyway, a sympathetic dev MIGHT give you an alternative to use the paid version, but I do not believe they have a way to validate that you purchased it from the Play Store anyway.

You can try to find the app on a site such as apkmirror.com or apkpure.com. Download the .apk file for the app, and install it using adb. This is called "sideloading," and you can find instructions for it here or here.

This works for free apps. I am asking about legally purchased apps that were unpublished. It seems that I have to download pirated version and sideload it ...


text:
Broke my Nexus 4 screen, is there a plug & play keyboard so I can unlock it?
I broke the screen on my Nexus 4 and it has a passcode for the lock screen.
Is there any way I can unlock it without fixing the screen, e.g. buying some sort plug & play keyboard for the micro-USB port?

not for nexus 4. but you can enter fastboot and boot into twrp from where you have full adb access (if bootloader was previously unlocked already)

Any way to get access to the data I have saved on the phone without fixing the screen?

with locked bootloader, maybe you can inject modified ROM (only system partition) with LG Flash Tool or LGUP, where adb root is enabled in /system/build.prop

Please also check LG Bridge software, it has backup option. Maybe you can restore backup after unlocking bootloader


text:
Where does WhatsApp store Images/Videos when Media Visibility is disabled?
WhatsApp has a Media Visibility feature which if disabled, hides the media files from the phone gallery. It is claimed that "apparently" it reduces file storage.

But WhatsApp still has to store media in some location, otherwise, how would it show in chats? I am able to access the media while scrolling through a WhatsApp chat, even while offline, so the media is definitely getting stored somewhere on my phone. Can I access this location? I have to access many media files that WhatsApp must have downloaded somewhere on my phone.
I am using parallel WhatsApp on my One Plus 5 Android phone. It creates a "999" directory under emulated.

The Android operating system uses empty .nomedia files to tell smartphone apps not to display or include the contents of the folder. (1).

And,

Treat all files as non-media in directories that contain a .nomedia file (2).

So all that Media Visibility feature of WhatsApp does when disabled, is to put the newly downloaded media in a subdirectory of main media type directory, named Private which contains a .nomedia file e.g. /sdcard/WhatsApp/Media/WhatsApp Video/Private/. Therefore the media files are not visible in gallery apps. But you can access that using any file explorer.
Parallel WhatsApp is a different thing, which makes use of Android Multiple Users/Profiles feature to isolate whole /sdcard as well as other contents. But the media is still visible in gallery app installed within that profile. See this answer for details.

In most devices, I have used WhatsApp creates a folder in internal storage. The folder for media files is /internal storage/WhatsApp/Media. It contains subfolders for images, videos, etc.
/internal storage/WhatsApp/Media/WhatsApp Images
/internal storage/WhatsApp/Media/WhatsApp Video
/internal storage/WhatsApp/Media/WhatsApp Animated Gifs
.
.
.

When "Media Visibility" is disabled, the media files DO NOT get stored in WhatsApp/Media directory.

@jerrymouse they do, for sure, in Private subdirectory.

Use the 'My Files' app icon - Internal Storage -
Android - media - com.whatsapp - WhatsApp - Media - WhatsApp Images

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


text:
Any way to get phone statusbar (battery, wifi, notifications) showing on Harry Potter: Wizards Unite?
Question is pretty self-explanatory, I got a Nokia 8 with Android 9 (not rooted), started playing HP: Wizards Unite and am very irritated that the upper status bar of the phone which shows battery, notifications, clock, wifi etc is no longer visible unless I swipe on it, but then it again dissapears. I tried searching from the phone settings as well as the games settings, but to no avail. I'm looking for a way to get the upper phone status bar to be permanently visible while playing the game, so I can monitor my battery life easily.
Ps. if this is not the right forum for this question, feel free to vote on migrating it to the right one, just thought some android guru might be able to help.
If anyone has a solution to this, I would be very grateful.

Sounds like the app is running in full-screen mode. If there is not settings in the HP app to disable this ask the developers to add such a feature.

hmm yes it could be that it is by default (and not yet possible to change) on full-screen mode. Funny thing is, that the same developer has made Pokemon Go, which shows the statusbar by default on the same phone in question. As HP has been built on Pokemon, I don't know why it doesn't show the status bar. Could be a feature not yet implemented in the game, but if there is a workaround that someone knows, I'd love to hear it.


text:
How do I root huawei mobile phone?
This specific huawei mobile I have is known to be very hard to root or not able to be rooted at all. I will add the specs below in this description if needed.
Huawei Y538 - Android 5.1
API5.1 (22)
FLASH_SIZE8 GB

Since Huawei no longer offers bootloader unlock codes this is nearly impossible... I would suggest using Kingroot per this thread on XDA https://forum.xda-developers.com/android/help/huawei-union-y538-root-t3299120 but be very careful what you do after rooting... Remember that there is no bootloader unlock for this device and it has secure boot, so if you mess with the system partition (such as removing or adding applications) you may make the device unbootable and unrecoverable.

kingroot itself does modify system partition, so this is bad idea. however, you can buy unlock codes for some devices, or try fastboot oem unlock UUUUUUUUUUUUUUUU WARNING: FACTORY RESET


text:
Android Auto not working with Samsung Galaxy S10
I've a Samsung Galaxy S10e smartphone with Android Pie as OS. When I connect it using an USB cable to my car (Audi A1) and start Android Auto from the car display, it doesn't work.
I can't say what the problem is because I don't see any error message.
What's wrong with it? I'm using Android Auto from Belgium (Europe).

I've found the problem. To solve it I've installed the Android Auto from APKMirror app on my smartphone. This I've done because Android Auto is not yet supported in my country (Belgium) and The Netherlands.


text:
Block game download from ads
How do I keep a senior citizen from downloading and installing every game from ads that pop up from games that are installed?  He has a few games he likes and ads pop up and he cannot be told about the X in the corner to keep from installing them.  His memory is a factor.  I need a block of some sort.  Every day that he plays, he has five more new games installed.  I need ad-free solitaire, mahjong, and pyramid solitaire, and he likes Bejeweled.  Does anyone get any ideas? And YES.. we have shown and told him not to.  It is forgotten.

One option would be to minimize the displayed ads using an app like Blokada (not available on Play Store). This app filters out ads and app trackers using filter lists that clock certain requests. This usually reduces the number of ads.
A second option would be to use the multi-user system on Android (if it is available on your device). Additionally to the primary user, you can create a second user who is not able to install any app.
The third option would be the Google parental control system which is AFAIK able to block certain app installations. Just switch "parent" and "child" while reading ;)

thank you Robert.  It's worth giving anything a shot at this point.  The multi-user might be the answer, since I have to help them "FIX" the phone constantly.  He is happy with the 6 or 7 games he has and doesn't even realize he has downloaded around 3 to 4 every other day.


text:
how can i get the http sends requests from chrome just like from the network tab?

just like that .
pls do not mention network monitoring tools like wireshark

You can't do it from the mobile Chrome directly; you need to connect your device to the PC: Remote Debugging

Possible duplicate of View network traffic requested by app

There are two possibilities:
On-device solutions
Use an app like

tPacketCapture (capture traffic like Wireshark)
NetCapture  (on-device Proxy with HTTPS decryption capabilities)
Packet capture - similar to NetCapture
HTTP Canary

PC based solutions:
Use a proxy on your PC and redirecty all traffic through that proxy. There are a large number of Proxy that can be used like

Burp Suite (Java)
Fiddler (Windows/.Net)
Charles Proxy (Java)
mitmproxy

thanks for your  Great answer i think the PC based solutions doesn't fit for me ...
and how do you think i can get these requests in HTTP Canary  ? what filter should i use ?

@mina I would start with the HTTP Canary user manual

i am facing this now
https://android.stackexchange.com/questions/214143/why-i-couldnt-monitor-traffic-from-this-page


text:
How to change the default hotspot DHCP IP address range on Android?
As the title says I look for a way to permanently change the default IP address range form 192.168.43.xxx to 192.168.1.xxx.
Reason: On my router some of my devices get a static IP trough DHCP, in the 192.168.1.xxx range. Using the hotspot on the road I would like to have the same setup.
I have tried to change the range following this steps, but it did not work out on both of my devices. They are rooted and Lineage OS is installed. The last answer suggest an easy way to do this, but it is not possible in Lineage OS.
Also this post from anroidpolice.com suggests that it is possible by an app, I look for a solution to do this with adb. I have no access to Google Play, and do not want it.

Does this answer your question? How configure the DHCP settings of WIFI Tethering (Hotspot) on Android?

NOTE: Root is required.

Default DHCP IP address range is hard-coded (1), you can't change it without rebuilding ROM with modified source code. Or use a little hack.
When you switch on tethering, what happens (at least):

hostapd -  the daemon which manages access points - is started.
Network interfaces are set up, IP address is added to Wi-Fi interface (hard-coded before Android Pie (2, 3), randomized afterwards (4)), and routing table is added (5) for local network.
dnsmasq - the DHCP/DNS server (up to Pie) - is started with hard-coded commandline arguments (6) (which can be set through /etc/dnsmasq.conf (7) otherwise).

So we can replace /system/bin/dnsmasq with a custom shell script, taking control of the process in between. Rename the original binary to something else:
~# mv /system/bin/dnsmasq /system/bin/dnsmasq.bin

Create script /system/bin/dnsmasq:
#!/system/bin/sh

OLD_SUBNET='192.168.43'
NEW_SUBNET='192.168.1'
WIFI_INTERFACE='wlan0'
LOCAL_TABLE=$(awk '$2=="local_network" {print $1}' /data/misc/net/rt_tables)

export PATH=/system/bin

# delete old route, add new
ip route del ${OLD_SUBNET}.0/24 dev ${WIFI_INTERFACE} table $LOCAL_TABLE
ip route add ${NEW_SUBNET}.0/24 dev ${WIFI_INTERFACE} table $LOCAL_TABLE

# set new IP address on Wi-Fi interface
ip address add ${NEW_SUBNET}.1/24 dev $WIFI_INTERFACE

# inject new subnet in hard-coded arguments received from netd
set -- $(printf '%s' "$*" | sed 's/'"${OLD_SUBNET}"'/'"${NEW_SUBNET}"'/g')
unset OLD_SUBNET NEW_SUBNET WIFI_INTERFACE LOCAL_TABLE

# execute original binary with new arguments
exec dnsmasq.bin $*

Confirm the name of your Wi-Fi interface (wlan0 usually). Check with ip link or ls /sys/class/net/ or iw:
WIFI_INTERFACE=$(iw dev | grep -E 'ssid |Interface ' | grep -B1 ssid | awk '$1=="Interface" {print $2}')

Also confirm your local_network (8, 9) routing table (97) is being used for hotspot. Android's routing is a mess, getting more complex with every new release. So I'm not sure if this has been persistent or not. Also before making any changes, check your routing policies and tables to figure out what you should put in your script:
~# RULES="$(ip rule | grep -vE 'unreachable|local')"
~# echo "$RULES"
~# for t in $(echo "$RULES" | awk '{print $NF}' | uniq); do ip r s table $t; done

SELinux rules also need to be defined if (all or some) not already defined and if status is enforcing. Use Magisk's suploicy or some other similar tool like sepolicy-inject:
# execute binaries from /system/bin
allow netd system_file dir { read open getattr search }
allow netd system_file file { read gettattr open execute execute_no_trans }

# execute /system/bin/sh
allow netd shell_exec file { read getattr open execute execute_no_trans }

# execute /system/bin/toolbox and its applets
allow netd toolbox_exec file { read gettattr open execute execute_no_trans }

# configure RPDB rules / routing tables
allow netd netd capability { sys_admin }

* Rules are not persistent across reboots, use some init.d script or replace /sepolicy in ramdisk
Set permissions on files:
~# chown 0.0 /system/bin/dnsmasq*; chmod 0755 /system/bin/dnsmasq*
~# chcon u:object_r:system_file:s0 /system/bin/dnsmasq
~# chcon u:object_r:dnsmasq_exec:s0 /system/bin/dnsmasq.bin

Enjoy!
Another options is to modify the value of config_tether_dhcp_range (10) in Android framework as explained in this answer, but I haven't tested this.
Or you can setup complete tethering from commandline, running your own processes. This answer includes the instructions, though the question is different.

RELATED:

How can I permanently assign a static IP address to Wi-Fi or USB tether clients?
How can I permanently change my hotspot tethering IP address?

@Irfan Latif this does not work anymore on LineageOS 17.1 aka android 10. Could you please help to set it up there.

@kocj yes already mentioned: "dnsmasq - the DHCP/DNS server (up to Pie) ". I haven't tried anything on Android 10+ so far. They use Java implementation of DHCP server which isn't as easy to alter as a commandline tool is. Possibly the only way would be to patch some system file, or recompile the whole ROM after patching source code.

@IrfanLatif Thank you for your quick repaly. LineageOS 17.1 still has the DNSmasq executable. When when i switch on the tethering i am unable to find the dnsmasq.leases file. So there have been some changes. I will open a new question for android 10

@kocj dnsmasq is being used as DNS server but DHCP server is moved to Java. Some related details here in comments: https://android.stackexchange.com/questions/232041/hosting-a-hotspot-without-signaling-metered-connection#comment305627_232041

@IrfanLatif your answer here https://android.stackexchange.com/questions/201024/how-to-use-wi-fi-and-hotspot-at-the-same-time-on-android/202335#202335 might be the way to go. The thing is that the lshw command does not work for me. Do you think that i will work on android 11 too?

@IrfanLatif i have added a new question for the topic. https://android.stackexchange.com/questions/233453/how-can-i-permanently-assign-a-static-ip-address-to-wi-fi-clients-lineage-os-1. I have also tried to reach out at the LinageOS folks. So far no answer.

@kocj lshw should work on any Linux based system, be it Android or something else. It just reads device info from /dev, /sys, /proc etc. which you can do manually too, except the syscalls and communication over netlink sockets. Btw if you want to create hotspot from commandline here's the starting point: How to create a wifi hotspot from the terminal?


text:
How can I see the thermal data of my CPU?
I have a Samsung Galaxy Note 8 with Exynos 9 CPU and use the app CPU-Z. I can see all data, but if I want to see the thermal data, there it is: "no thermal data"
Why is this? Is it because I haven't rooted my phone or is there an other reason? How can I fix this?

Thermal zones are accessible without root. Try some other app like Device Info HW. Or directly from Termux: cat /sys/devices/virtual/thermal/thermal_zone*/{type,temp}

Is your device a one with Exynos CPU? Samsung usually ships these devices in two versions with totally different CPU.

Yes, its one with an exynos chip

Aida 64, it has thermal section in it.

authors: Једноруки Крстивоје


text:
How to power off when charger is removed?
Device: LG G4
Android version: 6.0
Status: rooted
What can I do to power off the device (with a 20 sec delay) when I remove the charger.
I tried with AutomateIt app, but after first cycle of power off / power on, it doesn't work if I don't open the app again, to run in the background.
I want to use my old phone in a old car, as a GPS device. I make it power on automatically as is described here: https://forum.xda-developers.com/att-lg-g3/general/lg-d3-d850-autoboot-t3714070

Using Macrodroid:

On the Triggers tab, under Battery/Power section select "Power Connected/Disconnected", then choose "Power Disconnected".
On the Actions tab, under Macrodroid Specific, select "Wait Before Next Action", then set the delay period to 20 seconds.
On the Actions tab, under Device Actions, select Reboot/PowerOff, then choose "Power Off". If "Power Off" does not work on your device, choose "Power Off (Alternative)".
Save the macro and give it a name.

When completed, the macro will look like the image below. Use the 3-dot to test the macro.
Note: Powering off requires the device be rooted.

Update:
The way the macro is programmed above does not allow to stop the device from being power off if the charger is connected again before the 20 seconds delay expires. To stop the trigger, a condition to check the state of the device after the delay expires but before the action to power it off.
Edit the macro. Add a new action. Under the Actions, on the Conditions/Loops section, select "If clause". Add a condition. Select "Power Connected" under the Battery/Power section and choose "Power Disconnected", then OK. Click the up and down arrows button on the Actions box, move the "Power Off" action inside the "If...End If". Save the macro. The macro will look like the image below.

Run the following shell script from init.d or /data/adb/*.d/ in case of Magisk. Or run directly from init's .rc file. See How to run an executable on boot and keep it running?
#!/system/bin/sh

is_charging()
{
    [ $(cat /sys/class/power_supply/battery/status) = Charging ] || return 1
}

# keep waiting
while is_charging; do sleep 1; done

# charger is disconnected, countdown
sleep 20

# again start waiting if charger is connected
is_charging && exec $(realpath $0)

# else, shutdown
/system/bin/reboot -p charger_disconnected ||
/system/bin/setprop sys.powerctl shutdown,charger_disconnected

Try Automate (free):

Power source plugged block
Delay block; 20s
Device shutdown block (rooted device required)


text:
How to set MMS subject with the official Google Messages app?
On many apps, they have an "Add subject" menu:

(source: tapatalk.com)
This allows setting the message's subject, a feature of the MMS protocol.
But how to do the same with the official Google app?

You need to long-press the MMS button on the bottom right. Only then will you be able to add the subject.

Over time, I believe this has been updated to exhibit the "Send later" feature for SMS and MMS.

The newest version of Google Messages (as of this answer) has moved the subject to the "three dot" menu in the upper-right of the application when composing a message. Simply tap the three-dot menu, choose "Show subject field" and you're there! This is possible without the message being an MMS beforehand, but will convert it into an MMS (instead of SMS) when used. See the screenshots below:

I dont have `more conversation options on my language in the menu you write about.

The "More conversation options" isn't a menu item, but a title of the three-dot menu at the top corner. Tapping that three-dot button should reveal the menu items that include "Show subject field"

Whatever, it doesn t appear when I tap what it is highlighted by your screenshots.

What version of the Messages app are you using?

The latest beta.

Interesting! Might you be able to add a screenshot of your app within a message so we can see more detail about your situation? Also, I didn't think it should matter with the Messages app, but you may want to add your model of phone to your question as well, in case that impacts the solution.


text:
Android-x86 stuck at black screen and a static underscore _
I have a very similar problem to e.g. here.
I installed Android-x86 on a partition on my Acer Aspire Switch 10E next to Windows.
I added Grub as trusted boot option in the UEFI and let Secure Boot enabled.
Using this I can completely boot and reboot into e.g. Android x86 version 8.1-R2
But the problem is: in this version my Realtek RTL8723BS is not supported -> No WiFi/Bluetooth!

So I worked my way back to older versions (I need at least Android 6.0). Using CM 14.1-R2 and Androidx86 7.1-R2 I have a strange behavior:
Right after the installation if I select "Run Android" everything works fine, it boots normal, WiFi/Bluetooth everything fine!
But I am not able in any way getting it to run again after a reboot. It is forever stuck on a black screen with only displaying a fix (not blinking)
_

I already searched for two days and tried a lot of parameters and settings in the Grub entry like nomodeset, xforcevesa etc ... nothing worked so far.
I also tried both 32bit and 64bit versions (the device is 64bit) but it made no difference.
I don't understand what I am doing wrong or why it boots all fine the first time if not going for the reboot but directly to the Run Android option. So I guess it can not be due to unsupported hardware since the system basically works ... I just can not boot into it anymore after shutting down / reboot.

Does anyone have a solution for that?

Note: I am not speaking about a Virtual Machine here!

I found disabling 3D acceleration and setting the graphic controller to VBoxVGA solves the issue.

As I mentioned back then .. it wasn't a virtual machine! It is Android flashed to an actual tablet hardware device ;)

When you see the selection, press E on the keyboard (for editing). [ You will see a line after it ]

Replace quiet with nomodeset xforcevesa. [ Then press B for boot ]

Your Android will boot correctly only one time. [ Android will start running ]

Now press Alt + F1 to launch console.

Type: mkdir /mnt/sda

Type: mount /dev/block/sda1 /mnt/sda

Type: vi /mnt/sda/grub/menu.lst [ You can search use of vi on Google ]

Replace quiet with nomodeset xforcevesa.

Press Esc, and :wq

Type reboot. [ Your Android will work fine ]

When you change the internal frame where the UEFI firmware settings to the EFI framework setting, change the boot order.
You have to make a small partition for grub, go back, and change it back. Otherwise, it won't boot the second time.

Sorry I fear I didn't fully understand what you mean. Could you explain step by step what I have to do?


text:
Backup WhatsApp from NANDROID
Hi guys: refering to this:
Restore Whatsapp
Get the same issue.
I just reset all my phone after an OTA bricked.
I made an nandroid backup, but, i dunno how to acces - on my phone - the "data/data/com.whatsapp" file to read owner and group.
I think for the nandroid its going to be ok.
Cheers

Hint: Linux Shell: Use the Tab key to autocomplete long names of directories and files while in the command line (you can also use * as wildcard)

install WhatsApp, then boot in TWRP and look from adb shell

show the folder attributes with the ls command
ls -dln /data/data/com.whatsapp

example output:
mint@debian ~ $ adb shell
/ # ls -dln /data/data/com.whatsapp
drwx------   13 10104    10104         4096 Jan 15 04:15 /data/data/com.whatsapp

next, restore the backup (or part of it)

download open-gapps-pico.zip for your platform (ARM) to PC
extract the tar binary (tar-arm for ARM) and push it to phone (in TWRP)
adb push C:\adb\tar-arm /tmp/

open adb shell and make the binary executable (TWRP)
chmod 0750 /tmp/tar-arm

example output:
mint@debian ~/Downloads $ adb push tar-arm /tmp/
387 KB/s (427448 bytes in 1.075s)
mint@debian ~/Downloads $ adb shell
/ # chmod 0750 /tmp/tar-arm

in TWRP look for the location where your (internal/external) sdcard is mounted
df

example output:
/ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                  1010636        44   1010592   0% /dev
tmpfs                  1010636        28   1010608   0% /tmp
/dev/block/mmcblk0p19   253920      2380    246300   1% /cache
/dev/block/mmcblk0p20 11608792   9847780   1728244  85% /data
/dev/block/mmcblk0p20 11608792   9847780   1728244  85% /sdcard
/dev/block/mmcblk1p1  31150720  22588512   8562208  73% /external_sd

find the backup folder with the ls and cd commands

example output for cd change directory:
/ # cd /external_sd
/external_sd # cd TWRP
/external_sd/TWRP # cd BACKUPS/CUBOT_KING_KONG

example output for ls list files and folders:
/external_sd/TWRP/BACKUPS/CUBOT_KING_KONG # ls
2019-03-20--03-44-24_CUBOT_KING_KONG_7081C_V16_20180517
2019-04-16--08-03-32_CUBOT_KING_KONG_7081C_V16_20180517
2019-04-21--07-15-28_CUBOT_KING_KONG_7081C_V22_20181228
2019-06-18--20-30-44_CUBOT_KING_KONG_7081C_V16_20180517
2019-06-23--05-37-30_CUBOT_KING_KONG_7081C_V16_20180517
2019-06-26--08-30-17_du_s3ve3g-userdebug_712_NZH54D_engroot20180

enter the latest backup folder (you can also use * as wildcard)
/external_sd/TWRP/BACKUPS/CUBOT_KING_KONG # cd 2019-06-26*

list ls the backup file names inside. the interesting is the data.ext4.win* backup
/external_sd/TWRP/BACKUPS/CUBOT_KING_KONG/2019-06-26--08-30-17_du_s3ve3g-userdebug_712_NZH54D_engroot20180 # ls
boot.emmc.win          data.ext4.win002       recovery.emmc.win.md5
boot.emmc.win.md5      data.ext4.win002.md5   recovery.log
data.ext4.win000       data.ext4.win003       system.ext4.win
data.ext4.win000.md5   data.ext4.win003.md5   system.ext4.win.md5
data.ext4.win001       data.info              system.info
data.ext4.win001.md5   recovery.emmc.win

Before unpacking, find the required file name(s) which contains your whatsapp files. use the tar-arm binary with parameters -t (test) and look into each file -f data.ext4.win*, while the error output is filtered out with 2> /dev/null and the the file list is filtered for folder name /data/data/com.whatsapp with the grep command
/tmp/tar-arm -tf data.ext4.win000 2> /dev/null | grep /data/data/com.whatsapp

example output: (no result for data.ext4.win000 data.ext4.win001 data.ext4.win002)
/external_sd/TWRP/BACKUPS/CUBOT_KING_KONG/2019-06-26--08-30-17_du_s3ve3g-userdebug_712_NZH54D_engroot20180 # /tmp/tar-arm -tf data.ext4.win000 2> /dev/null | grep /data/data/com.whatsapp
/external_sd/TWRP/BACKUPS/CUBOT_KING_KONG/2019-06-26--08-30-17_du_s3ve3g-userdebug_712_NZH54D_engroot20180 # /tmp/tar-arm -tf data.ext4.win001 2> /dev/null | grep /data/data/com.whatsapp
/external_sd/TWRP/BACKUPS/CUBOT_KING_KONG/2019-06-26--08-30-17_du_s3ve3g-userdebug_712_NZH54D_engroot20180 # /tmp/tar-arm -tf data.ext4.win002 2> /dev/null | grep /data/data/com.whatsapp
/external_sd/TWRP/BACKUPS/CUBOT_KING_KONG/2019-06-26--08-30-17_du_s3ve3g-userdebug_712_NZH54D_engroot20180 # /tmp/tar-arm -tf data.ext4.win003 2> /dev/null | grep /data/data/com.whatsapp
/data/data/com.whatsapp/
/data/data/com.whatsapp/cache/
/data/data/com.whatsapp/code_cache/
/data/data/com.whatsapp/lib
/data/data/com.whatsapp/app_minidumps/
^C

now you can extract the folder /data/data/com.whatsapp (as last argument) from the file(s) -f data.ext4.win003 with the tar-arm binary with -x and additional parameters --selinux --xattrs -p for file attributes, while -P will keep the leading / which will restore everything to /data and -v make the whole thing more visible for you. handle each data.ext4.win* file for its own:
/tmp/tar-arm --selinux --xattrs -vxpPf data.ext4.win003 /data/data/com.whatsapp

example output:
/external_sd/TWRP/BACKUPS/CUBOT_KING_KONG/2019-06-26--08-30-17_du_s3ve3g-userdebug_712_NZH54D_engroot20180 # /tmp/tar-arm --selinux --xattrs -vxpPf data.ext4.win003 /data/data/com.whatsapp
/data/data/com.whatsapp/
/data/data/com.whatsapp/cache/
/data/data/com.whatsapp/code_cache/
/data/data/com.whatsapp/lib
/data/data/com.whatsapp/app_minidumps/
^C

finally, change the owner and group
/ # chown -Rh 10104.10104 /data/data/com.whatsapp

Hum... So, as a Windows user: - reinstall Whatsapp - reboot on TWRP - on computer, go in my ADB Folder, open a CMD, and go for a -> adb shell - check with -> ls -dln /data/data/com.whatsapp - take a note on group number and owner number
Next: how to restore my data/data/com.whatsapp ?
Then: - go back on my ADB shell, and change group and owner - reboot phone
Am i right ?

so your question is, how to extract a single app from nandroid backup - i will update my answer in a few hours

hi @alecxs and thx for your help. That's huge. Unfortunately, after the chown -Rh 10238.10238 /data/data/com.whatsapp, i reboot to android, and when i try to launch WhatsApp, i have a really quick message (have to take a video screen and look at it slowly): WhatsApp immediately stopped. Any idea ?

maybe the secontext must also changed, or folder permissions. try chmod 0775 /data/data/com.whatsapp or chcon -Rh u:object_r:app_data_file:s0 /data/data/com.whatsapp

My GOD: LOVE YOU SO HARD BRO !!! Works perfectly with a 0775 <3<3

Let just get my MMS back, and i'm full ok after that. And for sure, i'm going to check about all my cloud backups seriously now xD

try just one single file /data/data/com.android.providers.telephony/databases/smsmms.db

Yeah. Ive extract this one and made a backup. But no attachments


text:
How to get my phone to access WIFI channel 13?
My phone can't see Wifi 2.4 Channel 13. Why? How can I fix it?
I have an android phone (Moto E4, Android 7.1.1, Not rooted) that was purchased in the US about 12 months ago. Just after purchase,I came to China for a few months, and it worked perfectly on the Wifi here in my home. I had a Chinese sim card. I don't know what channel my home Wifi was working on last year.
In September, I returned to the US and swapped out the sim card for a US carrier. It continued to work perfectly.
I have just now returned to China, and my phone no longer can see the wifi signal in my home. When I look on my PC, it shows that the Wifi is transmitting on channel 13. When I look in my android app "Wifi Analyzer" it shows a blank space for channel 13. (Also, I forgot my Chinese sim card in the US)
Is this a hardware or a software issue? How to fix this?

The available channels are a pure software issue. The only question is if it is a configuration issue (e.g. auto detection of the country you are in e.g. via used SIM card) or a driver issue (kernel driver only supports channel 1-11).

@Robert In the event it is a driver issue, can that be updated?

That would require to root the device and install a different ROM that uses a different driver.

My phone can now detect ch 13 on 2.4 GHz wifi.
Here's how I did it. I borrowed a local sim card. As soon as the phone booted up, if was able to see the wifi signal. I confirmed that it indeed was on ch 13 with both wifi analyzer and on my pc.
I have since removed the borrowed sim card, and the phone continues to see channel 13. So indeed, as suggested in the comments by @Robert,

auto detection of the country you are in e.g. via used SIM card

Is the correct answer.

WiFi Channels are a regionally/country regulatory issue.
In the United States the 2.4 GHz bands are 1 through 11.
You can either:

Change your router's 2.4 GHz band to fit the U.S. firmware/ROM limitations.
Switch to using a router on the 5 GHz band as there is overlap with China and the United States.
Risk bricking your phone with a Custom ROM. Note that the Moto E4 appears to have only U.S. and European versions, and each version is using a different CPU manufacturer so trying put International ROM on a U.S. phone would not work and may brick the device.


text:
Prevent user to uninstall application from android phone
I have Moto G5 Plus Android phone. I don't want to allow someone to uninstall the application from my android phone. The android phone allows to press on the application and drag it to delete icon and allow uninstallation.
I want if someone does the same operation in my phone then before uninstall it ask password or pattern lock.
Thanks.

When a user tries to uninstall an app through the home launcher, Settings app, or through any third-party app, the system app Package Installer is invoked and user is asked to confirm the uninstallation. So the solution for you is to either disable that Package Installer app (or at least its component which is invoked for user confirmation) or find an app locker which can lock this system app.
I tried some app locker apps and found that AppLock - Fingerprint can lock down Package Installer app. It even recommends it. From then on, anyone trying to uninstall an app would need to authenticate  with your preferred choice of authentication before proceeding to uninstall. At the risk of redundancy, this does take care  of uninstallation via Settings app too, as I explained the reason for it in the beginning.
Note: app locker apps alike many privacy protector apps are notorious for floundering a user's privacy and shoving ads down the user's throat.

For one phone, this is likely the best answer... but I don't understand why this would be an issue (children perhaps?) If this is in a corporate/enterprise environment than it is a textbook case for the use of an MDM like Airwatch, Codeproof, InTune,  or Meraki to manage security and package management.

@Firelord, Thanks to its working fine for Moto G5 Plus.

That is not possible. The other way to uninstall app is going to Settings and under usually Applications where you can uninstall the apps easily.
What you can do instead is move your app as a System app, but it needs your phone to be rooted. System apps cannot be uninstalled easily without the person having the knowledge how to uninstall it. Systems apps are like your Messaging, Dialer, Gallery Apps, if you'll notice there is no uninstall option but disable option only.

While converting 3rd party apps to system app could prevent uninstall, its not a solution if the user does not want to root their phone. However the answer by @Firelord is totally possible and viable

@Beveloper yes, if only the user does not want to. But OP's post has no indication that he is not accepting rooted suggestions nor saying only non-root method.


text:
How to root Android with Samsung Odin
How to root A Samsung mobile phone or tablet using Samsung Odin?

Android rooting is not an uncommon term using tech nerds anymore. It is very common and everybody at least heard the term. So why we do this? As my opinion, we already have enough control over our device. Don't you think? that's how the less than half of the population of the Android community keep their devices without unstable it. But the other half sees the situation completely different. They root their devices to flash new ROMs, gain more control by customizing download unauthorized apps and modifying default functions in the system. So to do this you have o download rooting tool that most suitable for your device. For a Samsung user, it is not any software other than Samsung Odin. So let's talk about how to root with Odin.

What is Samsung Odin
It is a free utility that serving a wide range of devices and specially created for the Samsung devices by Samsung itself. With the time the software is updated so you can see there are several versions for the same tool. Select the best one for your device is your responsibility. This one-click rooting method is not like traditional root tools available out there. The flow starts with flashes the root package and then root it through the computer. And do not waste your time for searching direct rooting methods for Samsung Odin, because there isn't.
Compatible list
As I mentioned earlier there are different versions of Odin for the different operating system. So check the list below and select the suitable version for your device.

v. 1.85 - GingerBread and Ice Cream Sandwich
v. 3.09 -  Jellybean and KitKat
v. 3.10.7 - Lollipop
v. 3.11.1 - Marshmallows
v. 3.13.1 - more latest versions

Android rooting with Samsung Odin
Preparation

Samsung Odin is only compatible with windows. So install necessary
drivers to the PC and make it ready.
It's not hurt be ready to whatever happens. So backup all of the
mobile phone for more security.
Enable USB debugging on the device. (Settings --> about --> Build
number --> Tap 5 times --> You are a developer now --> USB debugging
--> enable)
The process could not be continued. So keep a sufficient battery
power.

Let's start the process of Android rooting

Go to this site and download the suitable root package. Check your device name, model number, Android version, and build number beforehand.
Now extract the downloaded package in a new folder.
Power off the device and boot it into download mode. To do this press and hold  Power Key, Home Key, and Volume Down Key simultaneously.
Open the Odin file in the extracted folder.
Connect the mobile device with the PC using a USB cable.
The software will automatically detect the device you will see "Added" in the lower left panel
Click the "AP/PDA" button and select the extracted file.
Then click "Start" button
Now the rooting will start. After it completes you will see the message "PASS"
The device will be rebooted for one last time. There will be SuperSu installed already on the device if the root was a success.

**Wrap up*
Odin is an application specifically created for Samsung smartphones and tablets. But it does not say it limited to that brand. It can serve various brands like HTC, LG, etc.*


text:
itel phone unable to switch on
I bought a new itel phone yesterday. I charged it a bit then added apps and photos and music. I played some music during the night. I tried rebooting does not go on, it vibrates but screen is blank.

According to what you said,

played some music during the night

Its most probable that your phone is out of battery juice, given that it must have been drained overnight. That's why you're only able to get a vibration and a quick blink on the screen and nothing more.
So charge your phone mate, and you're good to go


text:
How to access GBoard clipboard manager without turning on 'Show suggestion strip'?
Is there anyway to access clipboard manager in google keyboard without enabling suggestion strip? It seems I can't find a shortcut or way to access it. I'm using the latest version from Playstore

For the time being, the only way to access the clipboard manager is when the suggestion strip is enabled in Gboard settings. There are no shortcuts on the keyboard nor is there an option for it in the settings.


text:
How to check if an Android device supports eSIM?
I'm using Asus Zenfone Max Pro M2. I found there's Mobile Plan in Network & Internet settings. But I'm not sure it is for eSIM.
When I tap on it, it says: "Network has no known provisioning website"
How to check if an Android device supports eSIM?

Having gone through it myself,  a few weeks ago, you actually need to ask your provider if they support esim on that phone.

If the esim is for the phone, then the options will become enabled and visible if you are connected to a provider that supports esim on that phone.  They may also only become available after you have purchased that option from your provider.

If the esim is for the watch, then those options only become available after you have paired a compatible watch to your phone.  Prior to that they are either disabled or not visible.

The options may have different names on different phones.

To post Rahul's comment as an answer:

eSim depends upon carrier and mobile manufacturer. Top end devices like Pixel, Apple, nuu and top  smart watches support esim. In India Airtel and reliance jio support esim. I think Asus doesn't have such feature even if it is pure android from Google.

To see if it supports that, check manufacturer specifications. If those aren't available in detail, GSMArena.com is a great resource.

Website you mentioned doesn't provide true information.

@Swapnil it's not 100% accurate no. That's why I suggested before you check there, check with your manufacturer

Yeah thanks I will ask to the customer care


text:
Redmi Note 7 factory reset via PC
I was just trying to flash Lineage OS on my new Redmi Note 7, since MIUI kinda sucks, and it didn't really seem to work. So after a few tries and restarts, my phone started requesting the password for an email address I entered into my lock screen when I first got the phone, in case I'd ever lose it and someone would find the person could message me. But as it turns out, the m in my email address' .com is missing and the phone keeps asking for the email's password to start Android instead of the usual PIN code.
I figured I should just try wiping it completely, but after a lot of wasted time and energy, I still haven't found a method to factory reset it. Please help, I know this is a very specific issue, but maybe there is someone here who could just help me out.

https://www.getdroidtips.com/xiaomi-redmi-note-7-stock-firmware

If you're on Stock Recovery,
Reboot into recovery and choose Wipe Data(Factory Reset).
If you're on TWRP Recovery,
Reboot into recovery and select Wipe -> Swipe to Factory Reset.
EDIT: The FRP lock usually gets nuked when flashed under EDL mode, refer to your device forums about booting your phone to EDL mode, usually this will require jumping contacts in the motherboard while connecting phone to the PC, be careful with that.

the problem is the FRP lock (factory reset protection) so this answer is partially helpful (depending on TWRP's fstab it may possible to wipe FRP)

even more worse it has 2x FRP (Mi account + google account) https://gsmrakesh.blogspot.com/2019/05/redmi-note-7-frp-and-mi-account-unlock.html


text:
How to quickly extract archives on android?
After spending a few hours on annoying file management apps and the various archival apps. I can't find a quick way to do this. Most of these are built like users are supposed to use them for the PC. The quick PC extraction of Right Click "Extract All / Here" is pipe dream on android.
How can i go about to do this?
Can I find or force an application to extract everything it finds at a certain location and extract it where it is.
I looked for some solution that automatically extracts archives upon download, but thats convoluted even on PC (but at least doable - do a command line and if you want trigger it by a folder monitor change). Couldn't make any headway on android for sure.
How would you go about easing your time with archives on android. Dumping them all in one place is fine by me so long as I don't have to go through annoying managers for every single archive i get.

You didn't mention which archive formats you are talking about. Give MiXplorer a try, very handy. Supports 7z, zip, tar and may be others too, with or without encryption and compression.

Try ZArchiver, if you haven't tried it yet. I guess it comes with the features you need.


text:
Restored "App+Data" with Titanium Backup for com.android.providers.telephony and now Messaging is crashing
I have a Moto G 4th Edition (harpia) running LineageOS 14.1 nightly. I was trying to debug some issues with its MMS and I used Titanium Backup to take a backup of the APN settings because I was about to follow some tutorials and I wanted to know I could certainly undo them if I needed to. I wasn't able to fix the problem, so I tried to restore using Titanium Backup. When I was restoring the settings, it asked me if I wanted to restore App, Data, or App+Data. Without thinking too much about it, I clicked "App+Data". Then, I went back to the APN settings page to see if the APN settings I had were restored. When I clicked on an APN, it crashed. I think the exception in question is:
06-27 18:44:22.454  2067  3374 E DatabaseUtils: java.lang.SecurityException: Permission Denial: reading com.android.providers.telephony.TelephonyProvider uri content://telephony/carriers/1265 from pid=4901, uid=1000 requires the provider be exported, or grantUriPermission()
06-27 18:44:22.454  2067  3374 E DatabaseUtils:     at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:608)
06-27 18:44:22.454  2067  3374 E DatabaseUtils:     at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:483)
06-27 18:44:22.454  2067  3374 E DatabaseUtils:     at android.content.ContentProvider$Transport.query(ContentProvider.java:212)
06-27 18:44:22.454  2067  3374 E DatabaseUtils:     at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
06-27 18:44:22.454  2067  3374 E DatabaseUtils:     at android.os.Binder.execTransact(Binder.java:565)

(But another suspicious-looking message I see is 06-27 18:44:20.760  2067  5631 W ContextImpl: Failed to ensure /data/user_de/0/com.android.settings/databases: mkdir failed: EACCES (Permission denied).) I reached out to Titanium Track via their "Contact Us" page but haven't gotten a response so far (it's only been about 36 hours). In the meantime, I noticed that I also can't even use the Messaging app on my phone. When I try to enter an SMS conversation, it crashes. I think the exception for that is:
06-27 18:43:54.101  1141  2774 W ActivityManager: Permission Denial: opening provider com.android.providers.telephony.SmsProvider from ProcessRecord{890eeb3 3530:com.android.messaging/u0a73} (pid=3530, uid=10073) that is not exported from uid 1001
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel: wtf
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel: SyncMessagesAction: unexpected failure in scan
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.telephony.SmsProvider from ProcessRecord{890eeb3 3530:com.android.messaging/u0a73} (pid=3530, uid=10073) that is not exported from uid 1001
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.os.Parcel.readException(Parcel.java:1684)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.os.Parcel.readException(Parcel.java:1637)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:4199)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.app.ActivityThread.acquireProvider(ActivityThread.java:5534)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2239)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1520)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.content.ContentResolver.query(ContentResolver.java:518)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.content.ContentResolver.query(ContentResolver.java:475)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.mmslib.a.VL(SourceFile:40)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.sms.i.ahs(SourceFile:1498)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.sms.DatabaseMessages$SmsMessage.getProjection(SourceFile:120)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.datamodel.action.q.<init>(SourceFile:450)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.datamodel.action.m.Lg(SourceFile:131)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.datamodel.action.SyncMessagesAction.Jf(SourceFile:293)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.datamodel.action.SyncMessagesAction.IU(SourceFile:244)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.datamodel.action.BackgroundWorkerService.Kk(SourceFile:146)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at com.android.messaging.datamodel.action.BackgroundWorkerService.onHandleIntent(SourceFile:123)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.os.Handler.dispatchMessage(Handler.java:102)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.os.Looper.loop(Looper.java:154)
06-27 18:43:54.103  3530  3843 F MessagingAppDataModel:     at android.os.HandlerThread.run(HandlerThread.java:61)
06-27 18:43:54.103  3530  3843 E MessagingAppDataModel: SyncMessagesAction: unexpected failure in scan

Based on these two exceptions, I'm guessing that I shouldn't have restored the app but just the data, and some important metadata of the app got lost or wasn't restored correctly. However I'm not sure where I would find that metadata or what it should be.

I tried TWRP "Restore Contexts".
Someone on the /r/Android Discourse suggested I dirty load the same ROM. Unfortunately support for LineageOS on my handset is discontinued and there's no images to download. I tried re-using the latest update from /data/lineageos_updates, but that didn't fix my problem.
I took a backup of my phone in its current (semi-working) state and I've tried wiping data for the messaging app, the telephony provider, the settings app, but I still have the same crashes.

Has anyone seen these exceptions before? What are these providers? Where are they kept on a normal Android system? What creates them, and is there a way to manually cause them to be created?

Looks like for some reason the permissions (here: ownership) of the app got messed up. You could try figuring out where (what file; most likely the APK) and fix that – or simply perform a "dirty flash" of the very same ROM, which should fix it implicitly ("dirty" means w/o factory reset etc, so all your apps, configurations and such are not touched). And yes, with system apps, usually only restore data ;)

I've tried doing a "dirty flash" several times (wipe the system partition, sideload the last available Lineage 14.1 for my device, sideload a gapps package with wiping cache and Dalvik cache). It doesn't solve the problem. (Not only that, but when I do it, I start getting "Calendar has stopped" errors.)

OK, so I figured it out. For posterity, here's the process I went through.

I took a complete backup using TWRP before I made anything any worse.
I was fortunate in that I had a pretty clear idea what I had done to make everything go wrong (restore "App+Data"). That meant I could do it again and try to get a sense of what the app had done. I used find on the device to get a list of all the files that got changed when I did the bad restore. (busybox find doesn't have -mmin so I did touch somefile; [do the bad thing]; find . -newer somefile.) This gave me a list of "suspect" files: some stuff in the data partition /data/data, some stuff in /data/misc/profiles that I couldn't figure out; some stuff in /data/app incl. an APK and ODEX stuff; and a handful of files in /data/system: users/0/runtime-permissions.xml, users/0/package-restrictions.xml, packages.xml, packages.list, and a few others.
In Titanium Backup, the thing that was being restored ("Phone and Messaging") seems actually to be an alias for com.android.providers.telephony -- when you click "Open system details", that is the "App" that comes up. This sorta matches the errors from the logs.
I found https://github.com/TilesOrganization/support/wiki/How-to-use-ADB-to-grant-permissions and https://gist.github.com/Arinerron/1bcaadc7b1cbeae77de0263f4e15156f which were interesting. When I tried to adb pm dump the com.android.providers.telephony package, I saw that it had WRITE_APN_SETTINGS: granted=true. This increased my confidence that the permissions weren't really the issue.
I also looked through the /data/data for the com.android.providers.telephony package. Everything was owned by system rather than by an app-specific account, but maybe that was OK. restorecon didn't do anything on any of those files either.
Among the things that I tried in order to get stuff working again was to flash LineageOS 15.1 from a random post on XDA-Developers. That led to other problems but at least my messaging app didn't crash any more. This gave me a "known good" state. From this I adb pulled a bunch of stuff from /data: system, misc, app, user_de, data.
I grepped through all the files looking for telephony since I was pretty sure that was the thing that had been restored wrong. Nothing in runtime-permissions.xml had telephony in it (and I didn't really suspect permissions anyhow because of the WRITE_APN_SETTINGS thing, above). package-restrictions.xml seemed OK -- there was only one entry that referenced the providers package and there was nothing in it except stopped="true". (telephony occurred in some other entries for other packages, but always under enabled-components, so that seemed OK to me.) telephony did show up in packages.xml but I didn't understand enough of the data format to know what it was saying. (Attributes present include ft, it, ut, and isOrphaned.)
By comparing the packages.xml from the "broken" 14.1 install and the one from the "working" 15.1 install, I made some progress. From the 14.1 version:

    <package name="com.android.providers.telephony" codePath="/data/app/com.android.providers.telephony-2" nativeLibraryPath="/data/app/com.android.providers.telephony-2/lib" publicFlags="1007402629" privateFlags="8" ft="16b952851c0" it="11e8f7d4c00" ut="16b95285980" version="25" sharedUserId="1001" installer="com.android.vending" isOrphaned="true">
        <sigs count="1">
            <cert index="1" />
        </sigs>
        <perms>
        <!-- Some stuff that I disregarded because again I didn't think this was a permissions issue -->
        </perms>
        <proper-signing-keyset identifier="1" />
    </package>
<!-- much later... -->
    <updated-package name="com.android.providers.telephony" codePath="/system/priv-app/TelephonyProvider" ft="11e8f7d4c00" it="11e8f7d4c00" ut="11e8f7d4c00" version="25" nativeLibraryPath="/system/priv-app/TelephonyProvider/lib" sharedUserId="1001" />

From the 15.1 "working" version:
    <package name="com.android.providers.telephony" codePath="/system/priv-app/TelephonyProvider" nativeLibraryPath="/system/priv-app/TelephonyProvider/lib" publicFlags="1007402501" privateFlags="8" ft="11e8e4f2c40" it="11e8e4f2c40" ut="11e8e4f2c40" version="27" sharedUserId="1001" isOrphaned="true">
        <sigs count="1">
            <cert index="1" />
        </sigs>
        <perms>
        <!-- snip -->
        </perms>
        <proper-signing-keyset identifier="97" />
    </package>

OK! It seems like the codePath and nativeLibraryPath are screwed up. Possibly the ft, it, and ut fields too. I still don't really know what those are for, but they correspond to fields in other apps in the packages.xml file. Maybe they represent some kind of cross-application sharing. Anyhow, I used vim on the device to make some changes -- first removing stopped from package-restrictions.xml, and (when that didn't work) editing packages.xml to merge the two entries into one <package> entry with the codePath, nativeLibraryPath, ft, it, and ut fields from the <updated-package> element (and then deleting <updated-package>). I restarted the phone after each change to see if it worked. I can edit APNs/read SMS messages again so that's nice.
I was able to find https://dzone.com/articles/depth-android-package-manager which says that the ft, it, and ut fields represent timestamps so probably they don't correspond to anything in particular. Probably the paths were the essential change.
Overall I would say that I think Android could one day become as approachable and user-friendly as Linux, given enough effort. I don't even think it would require anything difficult -- just more effort documenting how things work from the user/system administrator's perspective (to balance out all the extant documentation about how things work from the app developer's perspective). A good example would be "What is the package.xml file and what do ft, it, and ut stand for". Also it would be great if the source of truth for Android distributions wasn't an ad-encrusted forum like XDA, but hey, one step at a time.

Looks like TiBu restored the APK as user app and then messed up the XML consider it being a user app – thus ignoring the "system status". Apart from the fact we both know by now one shouldn't restore "app + data" on a system app, as TiBu offers this option it shouldn't mess it up. Glad to see you've solved it finally; but it would certainly be a good idea reporting this to Joël (the TiBu dev) so he can fix it. Thanks for sharing your evaluation and solution!!!

Today, I made the same mistake (restoring the whole 'Phone and SMS Storage' app with Titanium Backup) and solved it by

uninstalling it from within TitaniumBackup (a warning appeared, but it was safe to ignore for me and uninstalling the update is not possible via the normal Android app settings)
and restoring my SMS from an XML file afterward (Titanium Backup -> Menu Button -> Restore Data from XML...).