text:
My LG X Charge phone dropped in water, and I had some trouble after fishing it out! Help?
OK, so I accidentally dropped my LG X Charge (Android) smartphone in water, & I fished it out, but I had some trouble & fumbling & rigamarole to go through afterwards:

I had trouble getting the phone cover & case off, & I struggled for about a minute to remove them
The phone was turned on when it fell in the water, & after I fished it out, the home screen turned on like normal, & I could access what I had been doing for a few seconds, until the screen turned black with little gray stripes; this happened a couple of times, until the screen didn't turn on at all (but the phone still made noises & things like nothing had happened)
I then remembered that I should have kept the phone powered down as soon as it had been retrieved from the water, & I pressed the power button for a few seconds to turn it off
3B. However, my phone buttons are very sensitive, & even when I just barely grazed the power button without meaning to touch it, the phone would power back up, & I'd have to turn it off again; this happened a few more times (but not all consecutively) until I finally managed to get it in a Ziploc bag full of rice (see below)
I gently shook the phone to get the water out, per the instructions that one website provided; I managed to get some of the water out, but not all of it, I fear
My smartphone is one of those that doesn't have a removable battery cover, so I was unable to remove that to get rid of any water that might be trapped underneath it
I know the LG G6 smartphone is waterproof, but I don't think the LG X Charge is...
I wasted valuable minutes calling my daddy on the phone, & telling him what happened
With the help of my grandma, I put the phone in a bowl full of rice...but I initially forgot to put it all in a Ziploc bag, & I had to go back & fix that!
Not only that, but at least one website I saw, said that your phone should be facing screen up at all times...& I realized too late that I occasionally had my phone facing downwards while I was tending to it post-retrieval!  Not to mention, it had been facing downward in the bowl of rice before I transferred it all into the Ziploc bag!

All in all, from the time I fished my phone out of the water at approximately 8:50 A.M., it took 17 minutes for me to go through nearly all of the above issues...with the phone & rice finally transferred from the bowl to the Ziploc bag no later than 9:40 A.M.
Tell me the truth, folks: What are the chances that my phone will make it out all right when I check on it at 9:30 A.M. on Monday morning? I'm really worried... :-(


text:
Nox player sound not working?
I just installed Nox Player with Android 4.4.2 and at first, its sound was working. I played some games, but after some hours as I closed it and restarted it, since then at starting the sound first played, and then in 2 to 3 mins it goes off. To listen to the sound again, I have to restart the player, and then again in 2 to 3 mins, it does the same.
Any solutions?

Community bump prevention: this question was closed because the question seems to have been abandoned (OP hasn't joined the site after the question was migrated, and no answers have score above 0). If anyone can evaluate the existing answers, feel free to vote accordingly and reopen the question (or mod-flag the question requesting for reopening). For anyone else having the same issue, please post a new question and refer to this question as additional context.

Just go to properties of nox.exe and then compatibility mode and Uncheck "Run this program in compatibility mode for windows 8" and Check "Run this program as an Administrator"
this work for me hope work for you also

source: Stack Exchange

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

sort: votes


text:
How to prevent vibration of calls from one contact?
I have a contact who calls me regularly on Wednesday evenings.
I already set her ring tone to "nothing", but cannot find any method to prevent the vibration.
Using regularly silent-mode, but I cannot keep on when working so it is not an option.
Wanted result: mute and turn-off for calls of one contact
Phones: OnePlus 3T and Samsung Galaxy S8
OS: Oreo

You can't do it without third party apps. You can try apps like "Good Vibration"

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


text:
How to spawn "sign-in to network" page for a captive portal?
How do I execute captive portal?
On a Z828 from ZTE, Android version 5.1.1, I'm trying to get something like:

While Starbucks generally works for me, all too often, other networks, when using public Wi-Fi, simply give a notice along the lines of:

See also:
Can I get a notification of failed WiFi connection for secured network?
Notify when connected to working Wi-Fi point
Only connect to certain Wi-Fi networks
Nearby wifi networks causing notification
How to disable the "sign in to wifi network" page?
Although nothing is quite on point, leaving me at:

Still can't connect?
If you still can't connect, please contact your Internet Service
  Provider, router manufacturer, or network administrator.

Which, simply isn't an option for most public Wi-Fi hotspots.  Perhaps, there's simply no solution.
Incidentally, my Kindle connects to the Wi-Fi hotspot, then, of its own volition, brings me to the captive portal through datavalet.  Seems specific to Android that I must first try to browse to a random website, which, sometimes, will then bring me to a captive portal.  Maybe.

no solution, but probably the same problem here:  My android can't log in to Wifi networks with Captive Portals

It depends upon the firewall vendor and how they implement it. If you're using a Cisco, such as one of the Meraki devices- the captive portal spawns best under Firefox versus Chrome/ium or Opera. And also another way to catch it, is to

Disconnect from the access point
Clear any saved credentials
Re-log in

Take care to notice the notifications you're likely to get a prompt. Follow the prompts. If your AP is as I have mine set up, it is likely a click through the walled garden, these pages include a check box radio form entry field, You need to fill in the check, then click 'continue'.

If you can not get the splash screen to appear, this will bring the login page to your browser: http://httpforever.com

Explanation: Android needs to intercept the connection, but it's impossible if the site is HTTPS. Thus, any HTTP-only sites might help.


text:
"Error: failed to write, posix_fallocate failed: ENOTSUP (Operation not supported on transport endpoint)" when installing APK on Android-x86
So, I've been wanting to play PUBG for a while now, but my PC is pretty awful, then Mobile came out, and TGB didn't work properly. I've been trying out several different Android OS, but all of them need a processor that supports SSE4.2+.
So, I checked out this Android-x86 OS, the 32-bit version (the first one that booted, I'm pretty sure that the game wouldn't really work anyway since the version is 32 bits, but I wanted to give it a shot anyway), and well, I can't download anything from the Play Store or install any APK.
I figured out a way to install APK from the terminal, and there I discovered this error:
130|x86:/sdcard/Download # pm install
1535771455810.jpg                         Pixel Dungeon_v.1.9.2a_apkpure.com.apk    RAR_v5.60.build63_apkpure.com.apk
130|x86:/sdcard/Download # pm install Pixel\ Dungeon_v.1.9.2a_apkpure.com.apk
Error: failed to write, posix_fallocate failed: ENOTSUP (Operation not supported on transport endpoint)
130|x86:/sdcard/Download #

Original screenshot
Why can't I install any apps on Android x86?

It would seem that the cause is the ext3 partition.
https://github.com/anbox/anbox/issues/108
The problem with this OS is that if you install it on a FAT32/ext4 partition, the grub doesn't work to dual boot with Windows, and if you install in NTFS, it dual boots but you boot without any free space on the OS
So yeah, rip lol


text:
Wi-fi not working on Android at home
My wifi is not working on my Android 4.4 tablet, but the tablet says it is  connected (although the icon is red rather than the usual white) and the router says the tablet is connected. The tablet gets an IP of 192.168.1.5
1|root@rk3026:/ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: sit0: <NOARP> mtu 1480 qdisc noop state DOWN
    link/sit 0.0.0.0 brd 0.0.0.0
3: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN
    link/tunnel6 :: brd ::
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether ac:a2:13:33:de:96 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.5/24 brd 192.168.1.255 scope global wlan0
    inet6 fe80::aea2:13ff:fe33:de96/64 scope link
       valid_lft forever preferred_lft forever
5: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DORMANT qlen 1000
    link/ether ae:a2:13:33:de:96 brd ff:ff:ff:ff:ff:ff
root@rk3026:/ # ip r
default via 192.168.1.1 dev wlan0
default via 192.168.1.1 dev wlan0  metric 304
192.168.1.0/24 dev wlan0  scope link
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.5  metric 304
192.168.1.1 dev wlan0  scope link

The router has IP 192.168.1.1. For some reason the router identifies two connected devices with IP 192.168.1.5 and 192.168.1.2, but changing the IP of the tablet manually to 192.168.1.2 does not help.
For comparison my laptop works in the network through wired ethernet
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 5c:26:0a:15:4a:f8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.4/24 brd 192.168.1.255 scope global dynamic noprefixroute em1
       valid_lft 594523sec preferred_lft 594523sec
    inet6 fe80::c497:8044:af6c:4a3d/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 26:13:0b:8f:90:41 brd ff:ff:ff:ff:ff:ff
$ ip r
default via 192.168.1.1 dev em1 proto dhcp metric 100
192.168.1.0/24 dev em1 proto kernel scope link src 192.168.1.4 metric 100

The table can ping itself at 192.168.1.5, and the laptop can ping itself at 192.168.1.4 and the router at 192.168.1.1; but the tablet cannot ping anything else, and the laptop cannot ping the tablet. When I turn everything off and on several times, it sometimes work.


text:
Stuck in LineageOS boot logo when installing on Xiaomi Redmi Note 5 global
I booted TWRP 3.2.3-0 using fastboot, then followed #5 unlocking fastboot to install it permanently on my Xiaomi Redmi Note 5 cause of the problematic anti-rollback from Xiaomi. Next, I installed the LineageOS zip. It shows the LineageOS boot animation but then nothing happens. Even after waiting more than 1h it doesn't boot.
Things I tried yet without success:

20181016, 20181003 and 20180926 LineageOS builds
Factory reset using TWRP
Advanced TWRP wipe with data, system, cache and dalvik cache
Disabled the installing of TWRP app after flashing
Deleted dalvin cache after flashing before rebooting
Flashing using adb sideload
Install LineageOS together with corresponding OpenGAPS Zip
Waiting ~20min in boot animation, force shutdown and start manually

What worked

MoKee booted shortly after the first try without google apps

Preparation for flashing
Before flashing, I used AIDA64 with the stock MUI ROM to make sure that the codename match:

So the whyred image is correct, which matches the information I read before buying that the global version is equal to Pro, where official LineageOS builds can be installed.


text:
LG V30 - Flash ROM using download mode?
My V30 is soft-bricked because of power-loss during a system update.
Verizon would charge me a deductible for fixing it under warranty.
I can:
- Access recovery
- Access factory reset mode
- Access download / firmware update mode
I can not:
- Boot the device (shows a security warning, see my other question)
- Go into fastboot (I hold vol- while plugging in the cable, does the above thing)
I tried:
- Factory data reset (from recovery)
- Factory reset (from factory reset mode)
- Asking verizon nicely to help a broke guy under full warranty out
These all failed.
I am very familiar with adb and quite familiar with fastboot. I unlocked bootloaders before, installed custom recoveries, rooted phones, etc. - But the only time I used download mode was in combination with ODIN many years ago.
I found this ROM for my model (VS996) online, but is there any way for me to flash it without a custom recovery or fastboot?
The phone is brand new. I've never used it. It's not unlocked or tampered with or anything like that.
My direct question:
How can I flash a stock ROM on my V30 using Linux when nothing but stock recovery and download mode works? I found this but apart from it looking kinda sketchy, I need something that runs on Linux.

unfortunately I got into the same situation. Did you ever find a way? I had my V35 and V30 bricked. The V35 is under warranty by LG so they fixed it but the V30 isn't. I found a guy on eBay who can do it remotely, recommended to me by many others who were in the same boat. Was just wondering if you found a fix. Thanks.

@KennyNg I was able to get the phone into download mode but that's it. It sounds so close to a solution but I don't know anything about download mode. I'm on Linux and lsusb detects the phone in download mode, but not sure how to interact with it.

For linux use this link it's a tool called SALT. If you're good with Linux there are tools to use with Python such as ESPTools or LGLAF.
For Windows  look up FWUL, it's "Forget Windows Use Linux", it's a variant of Linux build for this purpose but they were built for the older models.

The easiest is to use LG Bridge or LG Mobile Support tool if windows or linux recognizes the phone when you plug it in as an LGE Android Net USB Serial device with a com port.  Below is the option for more tech savvy people.
If you can get your hands on windows try LGUP.  You can google it or go the link  to download LGUP installation files (you can find them on the same forum) .  It consists of 3 MSI the LGUP Store version 1.4, the LGUP Frame and DLL.

If you need the stock rom for your phone go to lg-firmware.com
Once it's installed, download  this patched dev version from this
XDA post.

It has 2 files LGUP.exe and LGUPCommon.dll. Replace the LGUPcommon.dll and overwrite the one on your C:\program files X86\LG Electronics\LGUP\model\common\ (if common folder doesn't exist create it).  Then put the LGUP.exe 2 level up from the Common folder.
Basically, put your phone in download mode first then launch LGUP.exe.  This will give you a few options to flash.
1.Refurbished will flash then wipe your data meaning pictures and personal files will be gone.

Upgrade option will upgrade and keep files.If you want to flash different variant/carrier chose the DL Partitions and select all do this with extreme caution because it will brick your phone.
If you want to cross flash to unlock go on the forum you found LGFLashtool, XDADeveloper, and search for Frankenstein that's the method to root and unlock your phone.

Oh and if you chose the Refurbish or DL Parition you might lose your IMEI and serial number so either back it up first or write it down to do it later.

This is a question-and-answer site, not a forum. Please  consolidate your answers into a single answer, which I did now 2. Format your answer for better readability ( I did it to the extent I could understand your answer, feel free to improve :-) 3. This is a Question-and-answer site not Question-and-mail site, deleting your mail ID. +1 for your effort.

Thank you very much for this great answer. I will try in a couple days and give feedback!


text:
android termux busybox do not let me run commands
Anyone knows why when I try to run a command on termux like nc busybox try to run the command instead netcat the same happens when i try to run tar busybox gets in the way ?

Because Termux installs BusyBox in its bootstrap package, to avoid bloating too much.
Full-functional utilies like Core Utilities or netcat can be installed with the bundled package manager apt. For example
apt install coreutils inetutils netcat tar gzip #(and many more ...)

But ive imstalled netcat already same happens i can only run netcat with netcat vommand and not with the nc command cause busybox gets in the way, i tjink its metasploit i recently installed that ruined my termux


text:
Problem in opening applications
When i restart my mobile Samsung j5 2016  Or  shutdown so when i switch on my mobile. It start like from begning like when we by new phone . All that app doesnt work before restarting or before switching off i have. Please help me

Install the Android SDK on your computer, connect your phone to the computer, enable ADB and execute adb logcat while opening the app that crashes. Usually you will see the internal error message on the logcat output. With that error message there is at least a chance to understand what is going wrong.

Such an error can occur because of several different reasons and all these reasons come into existence due to one reason:
System or CPU failed to handle that app properly.
Messenger is a heavy application that will use a huge portion of your RAM and CPU while running and sometimes, to run system apps, the phone has to abandon these processes. That is why your apps keeps stopping (also, you are using a Samsung phone, so the UI uses more memory then the standard Android UI).
For a better experience, you have to keep your device clean by installing a cleaner app. You then have to remove cache and data of such apps regularly to have a smooth experience.


text:
Overheating device with random apps spiking CPU usage
Few days ago my phone has started overheating and burning through the battery like crazy. I don't use it too much, and it used to last 1.5-2 days, now it's dead in 6 hours.
I've installed System monitor lite and it's showing that several of my cores are constantly at extremely high usage (over 80%), and various regular applications like Gmail and LinkedIn are shown spiking the CPU up to 20% each. I expected a single app to be doing something stupid, and after seeing which one it is, it would be simple to just remove it, but that's not the case. It turns out that a bunch of regular apps that I haven't opened in days are going crazy.
Here are some screenshots:

So, any suggestions besides doing factory reset?
The phone in question is Xiaomi Redmi Note 4 running original MIUI without root.

A couple of things:

Applications that show running processes are only able to show the user processes (meaning no kernel processes)
Android gives more priority to the application in the foreground (the one you are currently seeing). When you open the the task manager, the other processes are being capped. The measuring you are trying to do influences the results.

If you can provide more details by measuring externally with one of these:

Try installing Android Studio:
Post the Log Cat results:
Or use the Android Debug Bridge (adb) with adb logcat – you can view your Android device’s log.

With one of these you can actually profile your running Android phone over a USB connection.
I don't think anyone can give you a complete direct answer without some more information, except if maybe they had the exact same model number and issue.

looking like you are on Chinese variant of RN4 with mediatek deca-core processor
If you feel like your phone is using too much cpu power than it is not the case image showing cpu usage of asus zenfone max pro m1]1
here you can give a look at my device cpu usage. all 8 cores are working on a high frequency but still i am getting  a great battery backup. so definitely it is not looking like a issue in cpu.
u can try resetting your device or can take help from a xiaomi care.

I have 2 of these exact same phones, and as you can see from the second one, it's running cold compared to the first one: https://imgur.com/a/59u13EG. 7/10 cores are offline, and others are running fairly low, no app is using more than 2%-3% of CPU.

did you updated your phone recently looking like a software issue and pls check cpu usages with another apps too and check whether results are same or different.

here in my case both apps are showing different results


text:
What kind of encryption is required for LineageOS on Xiaomi Redmi Note 5 (whyred) to boot?
Having my Redmi Note 5 stuck at the LineageOS logo, I tried different ROMs like Resurrection Remix OS. They work well. After some reserach, I found a hint to some kind of encryption in the LineageOS release thread on xda-developers. So I re-flashed the stock MIUI ROM (without firmware cause of Xiaomi's devious anti roll-back mechanism) and LineageOS could be installed without problems.
I want to understand this topic:

What are those keys?
Why LineageOS needs them?
Has this anything to do with device encryption?
Is this a Xiaomi specific topic or does it apply to other manufactures as well?

Currently, I know very little about those encryption keys:

It seems that they're generated by the stock MIUI on first boot
They got deleted by formatting in TWRP, not on simply wiping
We don't get any usefull error message, only a endless booting LineageOS animation
Encryption can be bypassed using a zip from here. But without OTA updates and the zip for bypassing must be flashed on each LineageOS update
Other ROMs like MoKee or Resurrection Remix OS don't care

Really interesting question, something which confusing me too. Would be nice if some experienced user or developer could bring light into the dark of this topic.

Format data using TWRP, unmount the data partition, then resize the partition with adb shell :
resize2fs /dev/block/mmcblk0p50 51G
(my original size of filesystem /dev/block/mmcblk0p50 was 52.1G (you can find it with the command "df -h /dev/block/mmcblk0p50")
The encryption process need to take some place at the end of the partition or it will fail - this thread has helped me : github.com/CyanogenMod/android_device_motorola_xt907/issues/3
You can debug also the problem with the adb logcat command.


text:
Paste YYYYMMDDHHMMSS timestamp anywhere (hotkey shortcut)
YYYYMMDDHHMMSS or YmdHis in PHP is the timestamp format used by Wayback Machine URL and the %A_Now variable in AutoHotKey.
It looks like this: 20171223145921.
How can I paste the timestamp of the current time anywhere?
Is there anything like AutoHotKey that can do the job?

I'm not sure if there is anything like AutoHotKey in Android but it is possible to get the timestamp in that format for the current time on demand.
You'd need Tasker or any other app which can run a command.
Setup a task with these actions:

Code → Run Shell:

Command: date "+%Y%m%d%H%M%S"
Store Output In: %date

System → Set Clipboard → Text: %date
Now, exit the Tasker, go back to Home Screen, long press your home screen to add a widget and choose Task Shortcut → pick your newly created Task → assign an icon at the bottom. That's it.

Whenever you would press that icon on your home screen, the current date-time would be copied in your clipboard automatically in the supplied format. You just have to copy paste it wherever you want it. There can be other methods to run a Tasker task less disruptively, such as through quick settings, as mentioned here by Grayox96 on Reddit.


text:
How do I play a video in the YouTube app at zero volume while simultaneously playing music in an MP3 player app?
Sometimes, I love to play music at a high volume while watching text YouTube videos and muting YouTube, like what I do on PC.
I have a Huawei phone running Android 5.0 (Lollipop).

Find an app that works similar to multiscreen on Samsung devices. I use a Samsung and it comes preloaded with multiscreen. You may find an alternative on the play store.

nah i didn't find one on Huawei


text:
How to automatically copy contents from the connected phone
I'm looking for an approach (for Windows) to copy certain phone contents (say Downloads/ dir) automatically to a certain PC directory, after setting the USB mode to "File transfer".
Theoretically it sounds not complicated - list the directories on a connected device (detect a drive) --> pick the relevant one --> copy into the predefined dir.
Did someone alredy implement any similar task?

This is better automated using ADB shell commands because MTP sucks (it's not a drive letter).

So i achieved the desired via old good Linux.
Steps:
Use Mobaxterm, Cygwin or any other Linux-to-Windows framework that restructures Windows tree to a Linux one.
Once the phone is connected and it's drive set to act as USB (i.e. a drive letter is assigned, say E:), it can be defined for $DIR variable for future usage.
Then this part of Bash code can run on a platform that transfers Linux bash input to the language readable by any PC. From here Linux makes all the trick.
The code:
#!/bin/bash

DIR="/drives/"$1"/"     # SRC DIRECTORY
DEST="/drives/d/DEST/"  # DEST DIRECTORY

find "$DIR" -type f \( -iname "*.pat1" -o -iname "*.pat2" \) -exec cp '{}' "$DEST" \;  #SEARCH SRC DIR AND COPY TO DEST FILES OF MULTIPLE PATTERNS

Syntax:
./SCRIPTname.sh e       # "E" stands for the drive letter assigned to the Android device

To monitor a phone connection automatically once a 3 seconds  and have timings statistics use:
watch -n 3 time ./SCRIPTname.sh e


text:
How to read (or restore) files on encrypted SD card after update to Android Oreo?
My situation
I have been using the encryption of my Android phone’s external SD Card on a Samsung Galaxy J3 (2017) Duos (SM-J330F) ever since I got it. I have recently updated my OS to Android 8.0 (Oreo).
Upon restart a notification was displayed that the encrypted SD card could not be decrypted because it was encrypted on a different device (which is no true; I have been using the same device, but the OS might not be able to recognize this). It is my understanding that decryption of the SD card is not possible on any other device.
This might not be the first case where Android fails to decrypt SD card after update to Oreo.
What have I tried?
I have shutdown my device, removed the (micro) SD card, and plugged it in to my notebook. All (?) files are visible, the filenames look okay, but content is not readable. I have then created an image by running
dd if=/dev/mmcblk0p1 of=~/SANDISKSDHC.img status=progress
I have reformatted the SD card with my Android device. I have then written back the IMG file to the SD card by running
dd if=~/SANDISKSDHC.img of=/dev/mmcblk0p1 status=progress
I have loaded the SD card into my Android device and started it. Again a notification was displayed that the encrypted SD card could not be decrypted because it was encrypted on a different device...
My resources

How do I decrypt files on my SD card that I encrypted using the Settings? (doesn't seem to apply to my situation)
Encrypted SD card failed after S5 restart (different situation, but references the next)
How to decrypt a microSD card after a factory reset of the device used to encrypt it? (tried this, did not solve my problem)
Cannot open Airwatch encrypted files on SD card after Android update (no answer)
How to Read marshmallow encrypted memory card? (different situation, and I did not understand the procedure linked in the answer)
How to restore files on SD Card that was protected by Vault app? (different situation)


text:
How to export the activity of my phone in the last 8 hours?
Is it possible to download or export the activity or logs of my phone in the last 8 hours?
My phone has been stolen but was found shortly after and I would like to know what apps were started and what exactly happened throughout that time. Is this possible?

Specific applications should show history, like the dialer or text messaging app, although those could have been cleared out. You can try pulling a logcat, but that won't show everything, especially activity inside apps. So the real answer is probably no, depending on what your looking for.

Some apps keep their own history, however there is no general log on Android that records user actions. On system level there is only logcat which is implemented as ring buffer of usually about 64kb. If the buffer is full it overwrites the older entries.
How much time the logcat covers depends on the usage intensity and the device itself. I have seen devices that create even in idle mode so much messages by the mobile network and Wifi components that the logcat only covers a few minutes.
Regarding the apps with own history you should check the following:

Browser history
Dialer history
Messaging and SMS apps

Besides the on-device data you get more information by asking the cloud/online services which actions had been performed in the time your devices was lost.
If you are a resident of the EU you have the right to demand a complete data log from every online service you use (because of the GDPR). This may be a large set of data and not only the data you are searching for, however if the online service records your actions it will contain the data you are looking for.


text:
I used "FIND MY DEVICE" feature. Now phone wont start
I went to Google Dashboard - Find My Device and tried the PLAY SOUND.
The phone got into non-responsive state.
I tried to reboot the phone, but now my phone doesn't boot.
Device is XIAOMI REDMI NOTE 4
Please let me know what should I do!

What do you mean by non responsive? Is it not restarting or powering off?

@Weezy it is not going beyond splash screen. Does the phone get bricked by this feature of android ?


text:
How do I control how many processes run in the background on Android Marshmellow 6.0?
My tablet has a tendency to run kind of slow, and I think it's because there's too much running in the background.  How do I control how many things get started at one time?

Do you have root?

@IrfanLatif No, it isn't jail broken.

Then you are left with Running Services in Developer Options. But that's not as helpful as rooted device can be.

@IrfanLatif I found 3 ES File Explorers running in background services!  Thanks!

Yes ES Explorer is a battery hog sometimes. Use Solid Explorer or MiXplorer.

@IrfanLatif You mean Memory Hog?

Yeah. A piece of software consuming one source heavily usually consumes others as well


text:
Will 'Erase SD card' fully format it?
My Android 4.2 phone only has an option Erase SD card under System Settings, but not an option to format.
My card has read errors on some files I want to fully format it to check if it's just a case of logical disk errors (those would go away) or if it's hardware and I should replace it.
I did try this (what's to lose?) and it said Checking SD card and was done in a few seconds; that's what makes me ask the question.
Would plugging it into my Windows computer and formatting it there be better? Or running chkdsk?
I know that there is not really an old-fashioned formatting going on on SSD devices, but I want all card logical sectors to be scanned (read) for errors. Will 'erase' do that?

Erasing the SD Card will format it. If you doubt it, then it would be better to use a card reader and format it via PC.

but I want all card logical sectors to be scanned (read) for errors. Will 'erase' do that?

Refer this to do that https://www.avrfreaks.net/forum/sd-card-sector-reading @JanDoggen


text:
Recover corrupted photos from sd card
I copied all my photos on a fake sd card I bought on the internet. Now my photos are almost all greyed out. Is it possible to recover them or at leat recover the thumbnails since they are not greyed out?

If you didn't use Cut or Move to put the images on your SD card: format it and get a refund, if you can.

Unfortunately, no.
Many fake SD cards on the Internet are usually a low-capacity card (for example, 8GB) with modified firmware to say something much higher (like 512GB). When it reaches the actual storage capacity, it always overwrites old data (by repeatedly writing to the last few MB of actual capacity) or stops recording new data.
Because of that, when you exceed the real capacity of the SD card, you risk losing data unrecoverably - even recovery programs like PhotoRec can't recover them.
You can still see the thumbnails correctly because your computer or phone cached the thumbnails before you copied the images.
If you only copied the images (didn't move or cut them), your photos are fine. If you moved (or cut) the images, try:

Moving all the images that aren't corrupt off of the SD card.
Take screenshots of the thumbnails of the ones that became corrupt (it is a very long and tedious process (and the resulting images will have a much lower resolution compared to the originals) but can recover the images.

Hope my edit doesn't conflict!


text:
How do you view battery usage on Android Pie?
In old Android versions, I would commonly go to view my battery percentage in the options to make sure that none of the apps running in the background were burning out the battery. In Android Pie, however, this is gone from the battery screen in settings. It used to be at the bottom of the settings screen, but it is no longer there.
Has this moved somewhere else in Android Pie? I can't find it.

Follow this. https://android.gadgethacks.com/how-to/unlock-developer-options-your-pixel-android-9-0-pie-0183349/

Then this: https://android.gadgethacks.com/how-to/get-oreos-battery-menu-back-android-pie-0183346/

I posted this question because I had a hard time tracking it down on the internet before finding it myself.
A lot of sites will recommend using the developer settings to enable v8 battery monitoring. This is unnecessary though. All you have to do is tap on the three dots in the top right corner to access the battery usage. You can also just search for "battery usage" in the top search bar for the android settings.
Hopefully, the existence of this post eases some people's android woes... or perhaps I'm just very simple for not having been able to figure this out sooner. Either way, if your sitting and reading this post, I hope your day is going well! =)
P.S. If your standing and reading this post and wondering if my well-wishing applies to you, it does not.

Android's advanced battery stats are actually still present in Pie; you just have to know where to look to find 'em.
First, go to the main Battery page of the system settings, just like normal. See the three-dot overflow menu icon in the upper-right corner? Tap it.
source : https://www.computerworld.com/article/3305756/android/android-9-pie-battery-stats.html

Have you tried this ?
3C Battery Monitor on GooglePlay
In my experience, it's pretty good on battery monitoring.


text:
Enable Dark Screen on Samsung
I'd like to try out the dark screen mode on my Galaxy J7 max but the option has been greyed out and I was wondering why. Any clues? This option is found under Accessibility>Vision

Make sure that your device is updated to at least Android 10.
Slide down the notification and settings shade.
Depending on how you've organized your system settings in the pulldown menu, you may need to swipe over a screen to see the dark mode setting (it has a moon icon).

If you turn on the talk back feature, dark screen will work but if you turn talk back off, dark screen stops working. I think this is because it was only made for the purpose of privacy for people who have bad vision and need talk back.


text:
LG Phoenix 3 stuck on firmware update
My LG phoenix 3 is stuck on firmware update when it was being unlocked from the network and it is showing: "do not unplug until the process is complete".
What should i do?

See https://android.stackexchange.com/questions/148733/lg-phone-seemingly-stuck-on-firmware-update


text:
Can airplane mode be maintained during a system update?
When traveling internationally, it's often a good idea to put the phone in Airplane Mode before departure, activate wi-fi as needed, and leave the phone in Airplane Mode until returning to one's home country where calls/messages/data are charged at reasonable rates.
When on wifi, the phone can still receive notice that a system update must be performed, soon, with no user choice in the matter.  It can even download and install this update over wifi.  However, as part of the update process, the phone apparently disables Airplane Mode, connecting to a local tower to receive messages and whatever else might have been pending, potentially racking up a big bill in the process, which the user did not agree to or want.
Leaving the phone in a Faraday cage during the update, which might block transmissions to cell towers, would cause the update to fail until it is taken out, because wifi is required for downloading the update.
Why does the phone exit airplane mode during forced updates, and is there any way to avoid that?

Edit, responding to criticism that trying to maintain Airplane Mode during a system update is not a sufficiently clear or concrete objective:
There are multiple reasons why one might want to keep a phone in airplane mode.  In addition to the cost factor noted above, if a destination does not have compatible cellular signals, a phone out of Airplane Mode may quickly drain its battery searching for towers, especially if the user doesn't know that the phone takes itself out of airplane mode without notice.  In some zones, there are also restrictions on cellular transmissions (example) which do not necessarily apply to low-power wi-fi connectivity, such as on-board some commercial aircraft.
There are multiple different reasons why a person might be in a setting where it's important to maintain Airplane Mode but still wish to use the device for offline and/or Wi-Fi capabilities.  This question is about how to do that even when the phone maker is pushing a system update.
I would expect "How do I do this for reason X?" "How do I do that for reason Y?" and "How do I do the same thing for reason Z?" to all be closed as duplicates of this same question.

If you want to block communication with your mobile network provider there is a second option: You just have to make sure the MNO can not identify your devices.
You can easily achieve that by removing the SIM card from your device.
This does not work of course in case you have a phone with eSIM and you use the eSIM (as the eSIM can't be removed physically from your device).

Thanks!  I'll hold off on marking Accepted to see if another answer also provides an explanation as to why the issue happens.

Turn off your Data and turn on "Flight Mode", now if Flight Mode gets reset you still have Data turned off (and Update won't reset that, because there would be a flood of complaints).
I have always done my updates over Wi-Fi using the settings to select that option. Using the Towers to Update would be expensive (for me).

I updated Android recently. No Data usage, and a big savings by only using Wi-Fi. Only turn on Data if you must use it. Of course it depends on where you are and how much open Wi-Fi is available.
Rather than "activate Wi-Fi as needed" you need to get into the habit of "active Data as infrequently as possible" and leave Wi-Fi on (so when you hit an open Network you'll be pinged that you have something).
Remember not to use your passwords on strange unknown Networks, Google has single-use passwords if you are desperate and double authentication to ensure that it is you on your phone and not someone else, elsewhere. More about that is a different question, almost certainly a dupe.

This presents a useful strategy if data usage is the sole concern.  However, the question presents the cost issue of receiving pending messages (e.g. SMS) etc. as a secondary effect of airplane mode being disabled even when the update is done over wifi.  Disabling mobile data won't address that.  Thanks for the post anyway!

Note: The answer is still helpful because it will stop incoming messages that use the data channel.  Thanks again!

@WBTI receive SMS for free, sending is where I'm charged (and my cheap plan includes 1000's of messages). Same if someone phones me, it's not long distance for me, only airtime. Most travelers either purchase a SIM for their travel or make arrangements with their current provider to get roaming cheap for a month. By stating in your question exactly what you want to achieve rather than saying what you are doing (or want to do) is most likely to get a better answer. See "XY Problem" on main Meta. Arguably you could turn the phone off. It's been 8 months and you don't like either answer?

Do you receive calls and SMS for free when you are traveling in another country (with compatible network signals)?  When traveling for a few days or weeks, it might not be worth it to figure out arrangements for a local SIM or roaming package, when the device has plenty of utility when connected to Wi-Fi and that's enough to satisfy anticipated needs.  I think the question is clear and concrete about trying to prevent the phone from exiting Airplane/Flight mode even when the software is updated. The answers helpfully address tangential points but do not answer the question directly.

@WBT Depending upon which country you live in (answers here are generally geared for North American readers, unless you ask for a country specific answer) most foreign cellular providers are cheaper and there are ways to roam for free. Thanks for editing your question, that ought to benefit you by providing more exposure and ensuring future readers are even more clear about your objectives. A poor answer is: If your phone is rooted you can use Tasker w/plugin or NFC.

Regardless of origin, the time cost of figuring out a cost-effective way to work with a foreign provider is non-negligible, especially when details (e.g. "two-year contract with huge cancellation fees, extra charges automatically apply if customer is non-resident or non-citizen") are all officially in a foreign language.  For a relatively short trip, especially where Wi-Fi is anticipated to be plentiful relative to connectivity needs, the traveler may intentionally choose to not go through the process of signing up with a foreign carrier.

@WBT The top voted answer says it is cheaper to deal with the foreign carrier. Another consideration not mentioned here or there is to use their phone, that saves you from the non-negligible trouble of having Customs demand your phone and passwords upon your return and search your phone. And ..., if Wi-Fi is to be plentiful (as mentioned in your last comment) then my answer of turning off Data is good. Ideally an Update ought not to change your settings, I understand that's not your experience. Just dismiss the Notification and do it later.

From a Travel.SE perspective, if one needs foreign cellular service (a premise of that question), working with a foreign carrier may be a cheaper, better option than alternatives. However, that premise does not always hold. In cases where "no carrier" is an option, there may not be a perceived need to go through all the time, effort, cost, & trouble of figuring out how to sign up with a foreign carrier. Roaming charge avoidance is also not the only reason why "airplane mode" (or "flight mode") might be needed; the reason's not strictly relevant to answering this question.

Also, it's not always possible to delay doing an update until after entering a place where it's OK for the phone to take itself out of airplane mode.  The question sought a simpler way to just disable that "feature" and keep the phone in airplane mode during the update process.  Can that objective please be acceptable as a focus for answers?


text:
Mounting remote folder from my linux machine to my android device?
How can i mount folder from my linux machine as local folder to my android device using terminal emulator on my android device? I am using android 4.4.2 and my android device is rooted.

As you're on Kitkat with a rooted device, there's a question (with answers) on SO matching your need: How Can I Mount A Network Folder Into An Android Internal Folder? The exact answer requires your Linux machine providing the resource via Samba:
mount -o username=<user>,password=<pwd>,file_mode=0777,dir_mode=0777 -t cifs //<NAS IP Addr>/<share name> <mount point dir>

E.g.
mount -o username=guest,password=guest,file_mode=0777,dir_mode=0777 -t cifs //192.168.1.254/public /storage/nas/public

But it would certainly also be possible with other protocols, such as NFS, if your device supports it. If that's too complicated for you, you could use an app named EasySSHFS, which is available from the Google Play Store as well as via my F-Droid repo. That way you'd need neither Samba nor NFS, as an SSH daemon usually comes with your Linux distro by default (if not, you can easily install it from its default repos). EasySSHFS is compatible with Android 4.0 and up.

I tried the command but i get: mount: No such device

And you're sure you've put the correct resource (IP address, Samba share and credentials – not the ones from the example, but the ones from your environment), and the Samba share referenced does exist and is accessible?

Yes, the credentials and the ip are correct. Maybe my android device can't mount cifs file systems.

That's a possibility: it might be lacking the required modules. In that case, maybe you give the app a try to mount using SSHFS?


text:
How do I install the OWASP ZAP certificate as a trusted system CA on Bluestacks?
I have a rooted Bluestacks Android. I would like to use ZAP to monitor its SSL traffic.
I exported ZAP's SSL certificate as a .cer file
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

Now I wish to import this certificate into Bluestacks.
The way I found was using an APK called "Root Certificate Manager". However, when I try to import the .cer file, I get an error response saying the ".cer" extension isn't supported.
I guess I need to convert it but I can't find the right format to convert to.

So, I found the solution and it's a little dumb/a little funny. It seems that "Root Certificate Manager" is able to import the same .cer file if it is placed in the device's storage. I guess they have a bug in their "import from Windows" functionality.


text:
Some games keeps crashing on LG Rebel 2
I have LG Rebel 2. It has started to crash and go right back to my home screen when I play 1 or 2 of my games, like SimCity BuildIt crashes on loading screens even though I'll only have one app running at a time.
What is causing this?

how much ram do you have?

@HEWhoDoesn'tKnow I looked it up, it is 1GB RAM.

This device only has 1GB of RAM, it is barely enough to function for basic phone use, much less game... You might want to consider that you just didn't purchase the right phone for your usage.

Base off of your description, it appears to be a RAM issue.
While 1GB RAM is usable for some games (from personal experience), some games will crash on the loading screen due to too little memory (I've experienced it with other games as well).
The best way to stop this is to lower the quality settings, if possible. Try Low or Very Low to use less RAM.
If that fails, try an app hibernating app like Greenify. (This app works on non-rooted phones, but needs root in order to be more efficent). This will reduce the amount of background apps, freeing up more RAM.
If the above fails, try getting a better phone. There are a lot of phones on the market with 2GB RAM or more at the moment.

To answer the question, an application in an android phone crashes due to low RAM (random-access memory) which holds the processes of the certain app. If it runs low, then it forces the app/game to close to preserve other processes (the important ones especially the system processes).

So basicly, if I uninstall other apps it would free up more ram and in theory run smooth

Yes. Certainly, it would

@BrianHathaway Uninstalling apps will not increase your available RAM, well not significantly, it would increase your storage space available through just like deleting a file from the hard drive of your computer. You cannot really increase your RAM, that is based on the hardware inside the device and it is not upgradable. The reality is you have a device that has a very limited scope of abilities due to it's hardware, and it seems to be insufficient for your needs.

according to your description, there may be several reasons:

Your Android phone has too much cache, and when the phone is too cached, the app will run slower and crash.
There are too many running programs in the background of your Android phone. The closed app just exits the desktop and is still running in the background.
The application is not compatible with the system. A low version of the app is not compatible with the phone's system, or the phone system version is too low that cannot play the game, which will cause a crash.
Missing data package. Crash is also caused by the lack of data packets when running the game. This can happen if the packet .obb file is deleted by mistake. Like most game of Gamaloft, if you lost .obb file, it will crash.

If you don't plan to change a mobile phone, you need to clean your phone often:

Navigate to Settings on your phone. Setting>>Apps>>Choose the app you don’t like>> uninstall or force stop.
Navigate to Settings on your phone. Setting>>Storage>>Cached Data.
Use Agile File Manager to free up your storage. It can simply delete cached files, along with miscellaneous files that are larger than 10 MB. The Boost option can closes apps you’re not using that are still running in the background.
The last thing to say is that for Android phones, restarting the phone can solve more than half of the problems. When your device has been running for a long time, and if it is a low-end phone. Rebooting the phone will erase all blocked apps and fix freezes and crashes on apps on Android devices.

I have deleted and fully uninstalled a few apps I don't really use. I clear all my cache data every night and any app I'm not using I have forced stopped them. Since deleting the apps it s÷ma to be running a lot better. Thanks all for tour advice.


text:
Android battery monitoring method
Android phones powered by a constant 4v DC external supply (no battery) still show battery charge diminishing to low battery warning. Switching the mains off and then back on and restarting the phone restores the battery meter to 70% which then starts depleting again.
How does Android do this without sensing the actual "battery" voltage?
How does Android decide that this non-existent 4 volt battery is flat and needs recharging?

Usually there is a special battery controller chip (IC) in your phone which is always active even if the phone is switched off. This chip does the calculation on whatever base.
Android running on the main CPU just queries this special controller, retrieves and displays the values.
For a more detailed answer see How does charging a phone battery work?.


text:
How to enable multilingual typing in Google Keyboard (GBoard) app?
Until recently I had multilingual typing enabled on my keyboard. It was possible to swipe in German and English at the same keyboard without changing languages. The spacebar had "English - German" written on it.
Somehow it got accidentally turned off. Maybe by some gesture on the spacebar?
Now I can't figure out how to turn that feature on again.
The toggle used to turn it on in the keyboard settings is disabled and can't be turned on.

The hint says that multiple languages have to be enabled. But where can that be done?
On the languages screen there are already two languages. Unfortunately they are also separate keyboards and I always have to switch with the globe button.

I had the same issue with German (Austria) but it worked with German (Germany)!!

This seems to be an incompatibility or bug in newer versions of Gboard. The issue was solved for me by uninstalling all updates for Gboard.
Go to system preferences -> "apps and notifications" -> "all apps" -> "Gboard". Choose the 3 dot icon on top right and select "uninstall all updates".
This downgraded Gboard to version 7.5.12.211120321-release where it works. It doesn't work for me in the current
Gboard stable release (version 7.6.13.215505041-release) nor in the current beta release (version 7.7.5.218156409-beta).

Likely reason is that the second language you want is not installed in language preferences

To do that go to System → Language and input →
language  →
preference  → add  language (the one you want to be displayed on keyboard).  If it is already there, remove and add ( You can tap and hold a language to change the order or remove language from the 3 dots menu on top right)
Now check as in first screenshot (of your question ) to see if multi lingual option is shown ( it should be). Enable the option and tick the language.
Long press or slide on space key to reveal option as shown and select the bilingual switch ( it is Telugu in first snapshot and TE in second ). Your keyboard should show as desired both languages. If it doesn't reboot and check

(Tap to enlarge)
Edit This didn't work for OP. Maybe the Gboard settings has Show Language switch key disabled (Language & input →Virtual keyboard →Gboard → Preferences →Show language switch key) . Enable that. Also see in this connection https://android.stackexchange.com/a/165509
Edit2 OP found the setting to be enabled but problem continues so -  1. Update Gboard if available 2. If not, go to settings and from app info of Gboard clear cache and see if that helps; next, clear data of app ;also disable and enable app

Unfortunately even though both languages are enabled in language preferences the option for enabling multilingual typing stays disabled. Removed the language, rebooted, re-added rebooted again always still the same. Any more ideas? Don't want to do a factory reset.

Your answer provides a lot of good tips that could resolve similar issues and you tried very hard so I feel the bounty is justified.

I fixed this option by disabling Show emoji-switch key under Settings app > Languages & input > Virtual keyboard > GBoard > Preferences. Turn this off and the language icon will show up.

Turn this off - which key??

Based on the answer provided here gboard disable multilingual typing, do the following:
Go to Settings> Languages & input> Virtual keyboard> Gboard> Languages. Select a language for example English, then enable Multilingual typing. Also select the other language you want to appear on the keyboard (in my case French)

I see @beeshyams has already posted the answer few minutes earlier than me

Unfortunately this option is grayed out and I can't enable it.

I tried switching to "German (Germany)" from "German (Austria)" in "Settings > System > Languages & Input > Virtual keyboard > Gboard > Languages" and it worked! Gboard version 7.8.7.


text:
mac address randomization on NON-rooted Android 8.1 phone for both wifi and mobile data
I am trying to force my box to
(up to date as of posting, NOT rooted Xiomi Redmi Note 5 with Android 8.1.0 OPM1.17 with security patch 2018-09-01., kernel 4.4.78perf+, gui is MIUI v10.0.2.)
randomize mac address by default before connecting to any network on both wifi/wlan and "mobile data" connection.
How do I achieve this, please?

autistic, on the following site they mention random MAC for Android 8 very shortly https://source.android.com/devices/tech/connect/wifi-mac-randomization I have no Andoird 8 anymore so I can not test it, but you can look under developer options.
Source: https://support.google.com/fi/thread/4601390/how-can-i-turn-off-mac-randomization-in-android-8-1-generic-tablet?hl=en I hope it helps.

I do not know whether that would work on v8.1, but the following works with v11: https://android.stackexchange.com/questions/58507/how-can-i-randomize-my-mac-address-every-time-my-wifi-is-turned-on/241760#241760


text:
How to measure memory (RAM) bandwidth in Android?
I am looking for a way (preferably a tool) to measure the speed of RAM. There are tools which shows how much ram is occupied at a given point of time, but I couldn't find any tool which shows the speed (bandwidth) of RAM at any given point of time.
In windows 10, one can see CPU bandwidth (like 1.5ghz or 2.6ghz) in Task Manager. So how do I monitor RAM in Android like Task Manager does?

ru.andr7e.deviceinfohw shows generation of RAM used (like LPDDR3). It gives a close idea of what you are asking. https://en.m.wikipedia.org/wiki/Mobile_DDR#Bus_width. But it's a specification, not the value at any time when running.

I got the information here
One option to check RAM usage is to enable Developer Options.

So, just follow the steps and get your thing done. Just go to Settings > About Phone and tap the Build Number repeatedly until the notification pops up and says “you’re just 1 click away to become the developer,” or if it pops up “you’re now a developer,” this means you have successfully done the first step.
Now, go back to Settings where you’ll find a new option “Developer Options.” If you’re using an older version of Android, then you may see “Process Stats” option that will tell you the average and maximum RAM usage. This option also shows the list of currently running processes.
But, if you’re like me, running Android Oreo (or maybe Nougat), then you may not find the Process Stats option. This may be available as “Running Services” under the Developer Options.
Clicking a particular app will open a new window just as we saw in the first method in older versions of Android. Here, you’ll be able to check which app is eating how much RAM.

Also, the same site suggest a third party app. I didn't test it, but it seems to be good according to the reviewers...
However, if you are looking for strictly benchmark, these are some options:

AnTuTu Benchmark: Contains CPU, RAM, GPU and IO performance
Geekbench: This one is also multi-core aware
3DMark - The Gamer's Benchmark: Focus on device comparison of gaming performance
Neocore: Graphics performance benchmark (measures FPS, for old versions of Android only)

I'm not completely sure how acurate these apps are, since it is pretty hard to be sure. I would look into the user's comments to choose the best one (I've found other apps also, but checking the comments made me believe they were fake benchmarks).
I hope it helps you...

this is what I have mentioned in the question... there were tools which shows how much ram is occupied at a given point of time, but I couldn't find any tool which shows the speed(bandwidth) of ram at any given point of time.  So I didnt want a tool to show ram usage. I want a tool to show ram speed.

I've added some apps there. I hope it answers your question now...

thank you for the time man.. I have used those... but none of them have the one thing which I require! the ram speed... I too installed saw those fake apps :-) But I'm in need of a real app.. Thanks for your time and answer man...


text:
What is it like to call/text on 2 of 5 bands of 4G
The phone I want (Xiaomi Pocophone F1) is only compatible with 1 Verizon band. I was wondering what it's like to call/text like this? Even if it's low quality, but I could still understand the person and speak to them and they understand me, that's all I need. EDIT/ANSWER: If a phone is only compatible with a certain network with not all the bands, you can look at a cellular map to see what bands of that provider are emitting from the towers in your area, for me, the bands that did work with my provider and my phone DID NOT work in my area, so it depends on area, and if you travel very big chance you won't have any service unless it is the most popular band used by the provider.

I would expect that the coverage area of that band would be important as well. Perhaps not all Verizon towers utilize that particular band and you could be without service in an area that is covered by Verizon on another band(s).

Oh I will check on that. Do you know how it would be if the band was in my area?

If your area's Verizon uses the band that's present on the phone, then it should work just fine. Else the phone should drop down to 3G or 2G for service.

Ok thank you I will look into this more and see if I can use this phone in my area.

Oh thanks for the help but the Huawei Honor Play and Pocophone F1 won't work in my area, you know of any other flapship killer type phones about ~$300?

We don't do phone recommendations here, only factual questions, but now that you've worked out the answer to your question, could you post an answer to help out other visitors please?

Will do. I am going to write an answer now.


text:
WiFi hotspot keeps shutting off automatically on vivo V7
The WiFi hotspot on vivo V7 turns off on its own. I can't even see any additional settings.
How do I resolve this issue?

Tap on Hotspot Configuration and check whether there's any option to set timeout or time limit or connection time. Timeout have many options like 10 mins, 30 minutes, 1 hour, unlimited etc. If you set unlimited, WiFi will continue until you turn off hotspot.

All you can do is to keep a device connected. The device turns off the Hotspot when it sees no device using it for over 2 minutes.
This is certainly a very strict timeframe. Anyhow, the setting to automatically close Hotspot is baked into the system and as such, it will not be possible to override it.


text:
Android App for split screen pdf note taking (for tablets)
Does anybody know of an app which lets you have a split screen of pdf(left) and note taking blank page(right) setting, so that you can make notes for every individual page? When you revisit it would show the pdf page and its corresponding note. I know of the Boox Note e-ink reader being able to do this and some iOS apps such as Easy-annotate or Flexcil. Is there also perhaps an app like these for android?
Thanks.


text:
Change week day names on specific locale
Where Android stores strings like week day names, months, etc for each locale?
I dug into SettingsUI, framework-res, but didn't find anything related into res/values/arrays.xml or strings.xml. Could it be into the linked odex file?
I'm using a modified by me LG stock Rom KK 4.4 on a G2

Found /system/usr/icu/icudt51l.dat
http://site.icu-project.org
Need to tamper with that file

followed this guide, profit https://code.google.com/archive/p/khmeriphone/wikis/How_to_Modify_ICU_dat.wiki


text:
Restoring /system but not /data within TWRP
I want to restore a TWRP backup on my Samsung Galaxy S6 (SM-G920F), to get back from a custom ROM (9.0) to Stock (7.0).
Restoring /system goes fine, but TWRP throws an error when it comes to restore /data : "extractTarFork() process ended with ERROR: 255
My question is : can I restore only /system and boot my original ROM ? If that doesn't work, how can I fix this error ? (I don't have a sdcard)

Don't you get an option to select which partitions to restore? And that error seems to be related to tar utility. You can try unpacking backup file manually using updated tar.

While restore, it shows checkboxes under each partition name. Like /boot, /system, /data. You can uncheck /data. But, I recommend, restore all partitions. It will restore to your device to stock ROM, and then you can perform a reset to delete user data.

@Irfan Latif : sure, I can choose what to restore, my question was : if I only restore /system (after wiping system, data, and cache of course), will my phone be able to boot on the stock ROM ? For the error, I googled a bit and it could be related to missing space on the phone, or just because /data is mounted (and I cannot unmount it because my backup is in internal storage), that's why I was asking if restoring only system would let me boot

Definitely, device will boot with clean /data partition. Complete Android OS lives in /system and /boot. But without /data, you will lose your personal apps, apps data, settings etc.

If you are unable to restore /data due to space limitation and you don't have sdcard as well, then restore /system and /boot first and then delete those files from backup (make sure those are correctly restored). It will spare space on internal memory and then you can restore /data. If still there is shortage of space, you can put your backup file on a PC and extract the backup to /data partition after mounting /data through USB Mass Storage. It needs a PC with Linux or a phone with USB OTG support may also work. Ask if further help required.

[Can] I restore only /system and boot my original ROM ?

It depends upon what lies in the backup. If you took the backup of your stock ROM and you're referring to the same backup, then yes, restoring /system using that particular backup would restore stock ROM. But you would need to restore /boot as well since that is part of stock ROM too.
However, if you must restore a different ROM, even if it is a stock ROM, it is a good practice to do a clean flash or atleast overwrite existing /data and /cache files with the ones in the backup to avoid conflict between various versions of files/apps which can cause bootloop or battery drain or whatnot.
In your case, since you cannot restore /data from the backup, I advise you to take a complete backup of your current ROM (including userdata), then reset /data (except /data/media) and /cache, and then restore /system and /boot from stock ROM backup. In this way, you would end up with a pristine stock ROM and can always restore /data when you manage to fix that error you mentioned. This is the path of least problems.

Thank you so much ! I just have one more question : When I made my backup, TWRP didn't offered me the option to backup /boot (only /system,/data,cache,modem,etc...). Is /boot included in /system backup ? If not, I'll be facing a big problem...

It is strange that TWRP didn't offer boot to be backed up. No, it has to be backed up specifically and is not included in /system. You can get the boot image if you search the stock ROM for your device on the internet. Normally, custom kernels including that of custom ROMs for a device works with stock ROM too. In an extreme case, all that would happen is that you might end up getting stuck in a boot loop or on Android boot logo or on OEM logo, or your OS might start crashing apps or the OS for no good reason.

To avoid that, I think I'll just flash the stock ROM with Odin. I'll lose my apps and settings, but I have some SmartSwitch backups that I'll be able to restore afterwards. Could you tell me where to look for my stock ROM file and how to flash it with Odin ? I'm a bit lost where it comes to choose between BL,AP and so on

Sorry, I have no idea where to look for stock files for Samsung devices as I do not own one. I believe XDA forums can help in that regard. Good luck. :-)


text:
Change "Note to self" email address
When I ask my phone to "take a note" or say "note to self" from Google Now or Google Maps, it asks me what the note is, and then it emails me the note at a specific email address that I designated a long time ago. This is a non-Google email address, by the way.
It works fine, but I now want to change the email address that the note is sent to. For the life of me, I can't remember where I set the destination email address years ago, and I can't find where to change it now.
Where is this setting found?
I do NOT have Google Keep installed, so I assume that this feature is associated with Gmail, but I'm not 100% sure.  Where do I go to see/change which which app is associated with "take a note" / "note to self"?

Ok, I finally found the answer. The option was a lot more buried than I thought it would be.

Open the Google app on your phone.
Press the More (hamburger) menu button, then choose "Settings".
Under "Google Assistant", tap "Settings".
Switch to the "Assistant" tab, then tap "Routines".
Scroll through the list and find "Take a Note" or whatever your command is and tap on it.
Under "My assistant should...", you should see, "email ". Tap on the gear next to it and edit the email address.
Tap then back arrow, then tap the check mark to save the change.


text:
Bootloader unlock HTC Desire 12+
I am trying to unlock the bootloader of my HTC Desire 12+. I tried several tutorials but they all failed.
Here is what I did so far:

I boot the phone into recovery mode
Start the bootloader
After the phone started the bootloeader I try to find it with fastboot devices form my desktop computer (connected to the phone via USB)

PS C:\ADB> fastboot devices 5)
  d126ce6c        fastboot

I try to get the OEM identifier token

C:\ADB> fastboot oem get_identifier_token
  FAILED (remote: unknown command) Finished. Total time: 0.000s

Here I am stuck.
I read online that for some HTC devices I need to enter the recovery/download mode. However, I do not even find my HTC device (via fastboot devices) in recovery mode nor do I know what the "download mode" is.
Any ideas how to fix this?
Thanks!

I had the wrong fasstboot.exe file. It worked when I choose the one provided in the section "All Other Supported Models" on https://www.htcdev.com/


text:
How to edit the list of reserved ports (under 1024) on Android?
Is it possible to edit list of reserved ports on Android (0 - 1023) to move lower port (under 1024) to higher port (equal or above 1024).
My mobile phone is rooted and I want to use lower port.
One option can be to reboot device so that to kill the process using some specific lower port.
Does Android provide any file in system files with table of reserved ports for edit?

Ports are not reserved by Android (or by any other OS) but are assigned by IANA for specific use. If a port is free i.e. no process is connected to or listening on that, you may use that with your program. But this may break the app's functionality for which the port is reserved. Otherwise you'll have to modify the source code and rebuild all the programs that are using a fixed port. It doesn't seem logical and practically possible.
For instance UDP port 68 is reserved for DHCP clients and the same is on Android:
# ss -up
Recv-Q  Send-Q   Local Address:Port   Peer Address:Port
0       0         192.168.1.11:68      192.168.1.1:67      users:(("system_server",pid=4521,fd=249))

So if you want to use this port for your program, your will have to modify Android source code to replace all instances of port 68 with some other unused port and then rebuild the ROM.
However you are free to use it when device is not connected to some network through WiFi or mobile data which obviously doesn't make much sense. Or you can configure static IP, Gateway and DNS so that DHCP is no more  needed and the port gets free for other usage.
Further reading:

Why are the first 1024 ports restricted to the root user only?
How do I reserve ports for my application?
Reserved TCP/IP ports


text:
How to unblock a blocked contact's outgoing call on Samsung Galaxy Note 9
Somehow I blocked one number on outgoing calls on Samsung Galaxy Note 9 and I can't seem to unblock it. That number can phone me, we can text, and we can make WhatsApp calls both ways.
I had my service provider have a look on the line, but no issue there. When I placed my SIM card on a different phone and I was able to phone the number. The 'block' is therefore not on the sim or at the service provider, but somewhere on the phone.
How to unblock them?

Open “Phone”
Tap “Menu”
Go to “Settings” > “Blocked numbers”
Tap the “-“ symbol associated with the contact/phone number you want to unblock
Read more: https://cellphoneforums.net/samsung-galaxy/t457967-samsung-galaxy-note-9-block-unblock-calls-messages-manage-call-forwarding.html#ixzz5UzkMJN00

First, you have to save their number then see their details on that phone you have blocked him/her. And in detail, you can find the block option. From there, unblock them. Alternatively, download TrueCaller, and after registering, open the app, find that contact you have blocked, open that contact in the app, and see in their profile. If they are blocked, then unblock them. Else, it's blocked from the main contact app.
Otherwise, steps to block or unblock a phone number on your Samsung Galaxy S series

From the home screen, tap Phone.
Tap MORE.
Tap Settings.
Tap Call blocking.
Tap Block list.

There are three methods for adding a phone number to the block list.

Enter the phone number manually.

Enter the phone number.
Tap the green + icon.

Select a phone number from the call log.

Tap LOG.
Tap the phone number.
Tap the green + icon.

Select a phone number from the contact list.

Tap CONTACTS.
Tap the phone number.
Tap the green + icon.

this blocklist works only for incoming calls


text:
Oreo: associating an app with all files with a given extension?
NOTE: my question is indeed similar to the question above. However, there is a slight difference, which I explain below in my ADDENDUM section.
Original question ...
I am creating lots of text files on my Oreo-based Android device with various file extensions besides simply .txt. For example, I have files with .xyz extensions, .abc extensions, and others, and I want all files with these particular suffixes to be seen as text files by my chosen text editor app. This way, whenever I select such a file, the system will choose that text editor to open them.
I have not found any way to do this, especially given that there is no default file association for text files that is offered in Android. But even if such a default text-file association were to exist, I don't know how to cause ad hoc filename suffixes to be associated with text files.
Furthermore, intents seem to operate on mime types, and I don't know how to associate these extra suffixes with text/plain under Android.
Is there any way in Android (Oreo) for me to accomplish what I want?
Thank you in advance.
ADDENDUM: The post referenced above talks about how mime types are managed on an application-specific basis in Android, and that there is no official way to manage mime types on a system-wide basis.
I understand this, but I am asking something slightly different. Suppose an application is already configured in its manifest to respond to text-plain items. My question is this: where in Android is the .txt suffix defined as corresponding to text-plain, and is there any way to add more suffixes (such as .abc and .xyz, as I describe above) on a system-wide basis to also be mapped to text-plain?
I have a rooted device that makes use of Xposed and Magisk, and so even if there is no official way in Android to implement these kinds of mappings, I'm wondering if there might be any unofficial Xposed or Magisk modules that will enable this. I couldn't find any such Xposed or Magisk modules, but perhaps I'm overlooking something.
Also, since my device is rooted (and I also am able to change my selinux settings to permissive), I could manually edit system configuration files anywhere on the device to add more filename suffixes to the text-plain mapping, assuming that this mapping is indeed managed in some sort of system configuration file.
I also run Tasker, and if such a mime configuration file exists, I could make sure that Tasker always copies a special version of that file in place during boot-up. In addition, I run other utitilies which allow ad hoc scripts to be run at startup via init.d.
Any thoughts? ...

Use a different file manager (e.g. Solid Explorer), it lets you choose from different apps to open those kind of file extension

Thank you, but I want to associate plain/text with these items even if they are opened outside of a file manager ... i.e., via an arbitrary app. Is that not possible?

Possible duplicate of How to assign default app to unlisted file type

It's not a dubplicate, because that post talks about how to configure the manifest file of a given app that is being developed so that it can recognize "unlisted" file types. What I want is to map an ad hoc suffix (for example, ".abc") to always be considered to be text/plain for all apps that I will ever run on my device.

The following looks like a promising answer ...
The file /system/lib/content-types.properties contains the following info. It looks like I can add abc=text/plain and xyz=text/plain to this file in order to get my desired behavior. I'll test this and report back.
# If you want to support more recognized mimetypes in libcore.net.MimeUtils, add them here

docm=application/vnd.ms-word.document.macroenabled.12
xlsb=application/vnd.ms-excel.sheet.binary.macroenabled.12
xlsm=application/vnd.ms-excel.sheet.macroenabled.12
ppsm=application/vnd.ms-powerpoint.slideshow.macroenabled.12
ppsx=application/vnd.openxmlformats-officedocument.presentationml.slideshow
pptm=application/vnd.ms-powerpoint.presentation.macroenabled.12

asm=text/x-asm
cc=text/x-c
conf=text/plain
cpp=text/x-c
css=text/css
c=text/x-c
cxx=text/x-c
def=text/plain
dic=text/x-c
f77=text/x-fortran
f90=text/x-fortran
for=text/x-fortran
f=text/x-fortran
hh=text/x-c
hpp=text/x-c
h=text/x-c
ics=text/calendar
ifb=text/calendar
in=text/plain
jad=text/vnd.sun.j2me.app-descriptor
java=text/x-java-source
ksh=text/plain
list=text/plain
log=text/plain
pas=text/x-pascal
pl=text/plain
properties=|
prop=text/plain
p=text/x-pascal
py=text/x-python
rc=text/plain
sgml=text/sgml
sgm=text/sgml
s=text/x-asm
vcs=text/x-vcalendar

Sadly, when I put entries such as abc=text/plain into this file, their existence seems to be ignored, even after I reboot the device. So ... back to the drawing board ...


text:
fastboot set_active command does not exist
I am trying to root my Xiaom mi a2 phone. But i am stuck on changing the active partition. When i enter "fastboot set_active b" it doesnt execute the command. Instead i get a list off all available commands which doesnt contain an option to change the active partition.
Console-Output

I am following this tutorial: Tutorial

Please copy-and-paste the fastboot output instead of the screenshot. Screenshots aren't searchable, so they don't let people find your question.

First you need the actual fastboot, e.g. 1.4.3 (from link in the other answer).
Then the correct command is:
fastboot --set-active=a

or:
fastboot --set-active=b

In the help (fastboot help) you can read in fastboot version 28.0.3:
--slot <slot>                          Specify slot name to be used if the
                                       device supports slots. All operations
                                       on partitions that support slots will
                                       be done on the slot specified.
                                       'all' can be given to refer to all
                                       slots.'other' can be given to refer to
                                       a non-current slot. If this flag is not
                                       used, slotted partitions will default
                                       to the current active slot.

-a, --set-active[=<slot>]              Sets the active slot. If no slot is
                                       provided, this will default to the
                                       value given by --slot. If slots are
                                       not supported, this does nothing.
                                       This will run after all non-reboot
                                       commands.

I tried a lot of things, nothing worked until i came across this:
minimal-adb-and-fastboot-tool-for-windows
Now i was able to set the active partition and install the root. I got no errors and everything seemed fine but i still had no root access. I found this tutorial: guide-how-to-root-xiaomi-mi-a2-magisk and it worked for me.

Well, the fastboot you are using is outdated.
You need to install the latest platform-tools from Android SDK which has the latest fastboot binaries.
This link will always give you the latest ADB & fastboot for Windows.
For more information, here is how to install ADB and fastboot on Windows.


text:
Gmail Contacts on Android refusing to sync 1 specific contact. What could be the reasons?
In my android device, I have set my contacts to be sync to my gmail account. I just add contacts under my email address instead of the phone and just assumed that everything will be synced. But now I found 1 contact that just would not sync. No clue why. Contacts created after that and just now before posting all synced, except that one. When I view all email account contacts in android, its 293 while my gmail contacts web-client has just 292. My backup phone which is also synced to Gmail Contacts has 292.
I have no clue why this contact would not sync. What is different about it? But the main question that I wonder is, how many contacts have I lost due to these non-syncing issue and never realised till date.
How do I understand the problem?


text:
Touchscreen dead zone - intermittent problem
I have a deadzone in the touchscreen and I don't know what to do. This zone corresponds exactly to the dictionary suggestion zone.
This problem is not permanent, but intermittent.
My phone is a Sony Xperia Z3

If problem is not permanent you should try to find the cause - e.g. certain software, temperature. If nothing helps you have to perform a factory reset and see if the problem reoccurs.

I tried without success. I changed the keyboard app and resized the keyboard, and it restored dictionary functionality

A hack, not a solution:

I changed the keyboard app, for an app on which keyboard resizing works (impossible to resize the default Android keyboard, because the resizing arrow stands precisely on the dead touchscreen zone). Swiftkey app worked.
I chose the large keyboard size.

Functionality is restored, although the 'handicap' remains.


text:
How to disable Amazon Single Sign-on in Kindle Fire tablet
I've two Amazon Kindle Fire tablets and i've an Amazon Prime Subscription.
I don't want to use the same Amazon Prime account in Fire tablet. Because my Contacts, Preferences, Calendar everything gets synced between. I don't want that.
I want to use separate Amazon accounts in each Fire tab and use a Complete Amazon Prime Subscription for Prime Video, Music and Kindle Apps in Fire. How can i make it possible ?
1. Amazon Account 3 - Has Prime Subscription

Amazon Fire HD 10 ( Amazon Account 1 with No Prime Subscription )
Use Amazon Account 3 for Fire Apps - Prime Video, Music and Kindle

Amazon Fire HD 7 ( Amazon Account 2 with No Prime Subscription )
Use Amazon Account 3 for Fire Apps - Prime Video, Music and Kindle

I've tried ADB, to uninstall Amazon's own Prime Video app - com.amazon.avod and tried to install APK from the Google Play Store - com.amazon.avod.thirdpartyclient, so that i can configure the Prime Video with a different account. But the app is not getting uninstalled and if i try to install com.amazon.avod.thirdpartyclient, i'm getting PROVIDER CONFLICT error.
    pm uninstall --user 0 com.amazon.avod
    Success
    pm install /storage/emulated/0/Download/com.amazon.avod.thirdpartyclient_2018-10-19.apk
    Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]

I can think of

Installing Stock Android in the Fire tabs, which will make things easy and better.
Disabling Single Sign on in Amazon Kindle Fire tab - which i have no idea how to.

Please can somebody shed some light on this.


text:
How to enable USB mass storage feature on newer android phones
As a Linux user , it sometimes gets to tedious to get MTP working.So I want back  the USB mass storage feature. The main reason is that my TV doesn't support MTP. I used to watch movies and videos from my old android device via USB mass storage on my TV but can't do that with MTP anymore. I am also ready to root my phone or install a custom rom.

Are you fixed on UMS – or would you also be open to other solutions to the issue behind? I never use MTP (unless I cannot avoid it), but using ADB it is possible to "mount" the Android device's storage into the local file system. No root needed, but ADB and command-line. Once mounted, you can of course also access it via graphical tools like file managers. Would that be acceptable? Then I'd provide an answer with more details.

@Izzy I don't know about the OP, but I would love to know how to do that.

@acejavelin doesn't fully answer the question as it currently stands – but take a look at adbfs-rootless (ADB file system in user-space). Using it for some years now and am quite happy with it.

@lzzy I am open to other solutions too.

@Izzy This is amazing, but I doubt you could get that to work on your average smart TV.

@confetti There's that, I cannot try as I have no such. But then, why not? There are ADB clients on Android as well. But then, before it's clear whether it works I rather do not put this as an answer. voldemort: could you take a look at it and see if it works for you?

@lzzy  adbfs-rootless isn't working on my TV

Related: Why can't I see Android storage as a partition on PC?

AFAIK this is not possible, but maybe some custom ROMs allow it through some hacky stuff, so correct me on that if I'm wrong, but....
There's an app called DriveDroid - It's primarily used to boot your PC from an Image-/ISO-File that's stored on your android, but you can also use it for what you're after. It needs root.
Once you open the app, hit the menu button and go to Create blank image.

This is from their page about a tutorial on how to make a bootable partition, you can choose any name here and any size you want your removable media to have. Leave MBR unchecked.
Once you created the image, you can tap on it in the app's main screen and choose the first option to make the image mountable as a writable USB drive. After that, plug the phone onto your PC, it will detect an unformatted drive.
On Windows, you can simply hit "Format" in the popup it should show, asking if you want to format the drive. FAT32 will work fine as partition type.
On Linux, find out the drive letter using the lsblk command and then run mkfs.fat -F 32 /dev/sdX1 (replacing sdX1 with the drive letter and partition number of your drivedroid image) to format it. (Or use GParted for example as GUI application)
After that you can copy/move/whatever files on there as you wish, as if it was a normal USB drive, and your TV should detect it just like that.


text:
Flashing Nexus 5 factory image fails on writing userdata
Recently, I purchased a used Nexus 5. I would like perform a full reset, so I’m trying to flash the factory image using Google’s official instructions.
However, I keep getting the message FAILED (remote: 'Bogus size sparse and chunk header') for the Writing 'userdata' step.
Am I doing something wrong, or is something wrong with the instructions or image from Google?
(Possibly) relevant info:

I'm running macOS Mojave 10.14 (18A391) on my computer.
I'm using fastboot from the Android SDK Platform-Tools version 28.0.1, installed using Android Studio 3.2.1.
I tried the two most recent images of Android version 6.0.1 (M4B30X and M4B30Z), both give the same issue.

The full output of the flashing process can be seen here:
$ ./flash-all.sh
Sending 'bootloader' (3124 KB)                     OKAY [  0.310s]
Writing 'bootloader'                               OKAY [  0.516s]
Finished. Total time: 0.923s
rebooting into bootloader                          OKAY [  0.108s]
Finished. Total time: 0.108s
Sending 'radio' (45489 KB)                         OKAY [  1.640s]
Writing 'radio'                                    OKAY [  3.130s]
Finished. Total time: 4.867s
rebooting into bootloader                          OKAY [  0.104s]
Finished. Total time: 0.104s
extracting android-info.txt (0 MB) to RAM...
--------------------------------------------
Bootloader Version...: HHZ20h
Baseband Version.....: M8974A-2.0.50.2.30
Serial Number........: ***redacted***
--------------------------------------------
Checking product                                   OKAY [  0.100s]
Checking version-bootloader                        OKAY [  0.100s]
Checking version-baseband                          OKAY [  0.100s]
extracting boot.img (8 MB) to disk... took 0.037s
archive does not contain 'boot.sig'
archive does not contain 'dtbo.img'
archive does not contain 'dt.img'
archive does not contain 'odm.img'
archive does not contain 'product.img'
archive does not contain 'product-services.img'
extracting recovery.img (9 MB) to disk... took 0.033s
archive does not contain 'recovery.sig'
archive does not contain 'super.img'
extracting system.img (996 MB) to disk... took 7.816s
archive does not contain 'system.sig'
archive does not contain 'vbmeta.img'
archive does not contain 'vendor.img'
mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 7137786 4k blocks and 1785856 inodes
Filesystem UUID: aab8dc10-d114-48a0-b9dc-c7ebdd24c79d
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 179200 4k blocks and 44832 inodes
Filesystem UUID: 2d2b45ab-678b-43ba-8b3c-83827764dbc8
Superblock backups stored on blocks:
    32768, 98304, 163840

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'boot' (9154 KB)                           OKAY [  0.510s]
Writing 'boot'                                     OKAY [  0.776s]
Sending 'recovery' (10012 KB)                      OKAY [  0.564s]
Writing 'recovery'                                 OKAY [  0.832s]
Sending 'system' (1020665 KB)                      OKAY [ 36.364s]
Writing 'system'                                   OKAY [ 69.147s]
Erasing 'userdata'                                 OKAY [ 14.079s]
Sending 'userdata' (4272 KB)                       OKAY [  0.360s]
Writing 'userdata'                                 FAILED (remote: 'Bogus size sparse and chunk header')
Finished. Total time: 133.541s

I encounter the same problem today :)
flash-all script failed when writing userdata
I have managed to solve this issue by manually continue the flashing process:
1) extract image-hammerhead-m4b30z.zip

2) cd to the extracted folder

3) run the following commands (one by one)
fastboot erase userdata
fastboot flash userdata userdata.img
fastboot erase cache
fastboot flash cache cache.img
fastboot reboot

it's too late for this post, but I'm answering for anyone else finding this post
refer to this link http://www.gandalfk7.it/2019/03/24/fastboot-too-old-and-error-cannot-generate-image-for-userdata/
 you must update your os platform tools and execute sh flash-all.sh after updating the platform set the PATH in your directory as this reference says
do these steps and like the link said and you will make it!
-  download the newer platform-tools from https://developer.android.com/studio/releases/platform-tools.
-  Decompress them with #unzip platform-tools_r28.0.2-linux.zip
a new platform-tools folder will be created
then in your folder where you have unzipped the factory default
-  edit flash-all.sh and add this line on top:

export PATH=/home/YOURUSER/Downloads/platform-tools:$PATH

-  in this way the script will search for executables in that folder, using the newer ones.

Heads up to anyone that finds this happening on a Nexus 7. Same problem except there's a secondary problem after explicitly specifying platform tools. Force flashing userdata doesn't allocate all the remaining space for userdata. Solution is to resize it afterward before first boot. If you try to resize after first boot you will get stuck in a boot loop and have to reflash everything.

please move your answer to this question https://android.stackexchange.com/q/230412


text:
Wifi hotspot without internet
With newer versions of Android and for certain manufacturers they always tries to make sure your WiFi has internet. I guess this is an OK feature if multiple known Wifi AP is available.
However the issue is that we have a product that creates a WiFi hotspot much like dashcams do.
The question is, is there a way to tell Android (via our App),that you know you are connecting to a WiFi network without internet so Android should stop controlling the WiFi "smartly" to try to get Internet regardless?

Since you're apparently programming an app, you might want to check out [so], the programmers there will be much more familiar with writing Android apps.


text:
Flash OS firmware on an OS corrupted device via TWRP
I have a big issue: I got 2 units of the Android TV device called "Stream+" sold by Channel Master, manifactured by Technicolor (https://www.channelmaster.com/Stream_OTA_DVR_p/cm-7600.htm)
One is perfectly working.
The other one has the OS files completely corrupted and does not even allow me to complete a factory reset successfully (and that's out of warrancy as well, so I have to fix by myself).
All it does when is switched on is showing a welcome logo, then attempts to load the OS but stays stuck forever, freezed in a black screen.
The following is the menu with the options shown when I load it on recovery mode: https://images2.imgbox.com/c9/0e/E947NI4Z_o.jpg
What I want to ask is...
Can I use TWRP to flash a copy of the OS Firmware from the device 1 (the fully working one) and then flash the defective one with it?
Defective one, as said, DOES NOT load the OS, all I can do is using one of the options shown in the above pic.
Have I got any chances to solve this through TWRP? (Or anything else)

First question is: Does a TWRP build for your device exist? If not, the answer is a clear no for TWRP of course. You could flash a ROM via that recovery (at least the official one, if the manufacturer offers the images) via ADB or USB. You could even perform a factory reset from there ("Wipe data"). I'd at least try first whether "wipe cache" helps; sometimes a broken file in cache has the strangest effects.

No idea if a TWRP build for my device exists, i doubt it does. That's why i asked if i can create one from my working device. As for your advice regarding factory reset wipe data and wipe cache, tried already but it still doesnt solve my problem, system boots, shows logo, then gets freezed on black screen forever (after goes in freeze status, even all buttons like reset etc get freezed, forcing me to unplug the device from AC).

There is a "TWRP builder" somewhere. I've never tried it, so I can neither tell what is needed to use it nor how it works. AFAIR it analyses your stock recovery and builds based on that.

I've just found its own firmware. It's a .tlayer file tho. Never saw such extension before. Any idea how to flash it to the device? Put the .tlayer file in a usb external drive doesn't work. Does probably require to be inserted in a folder renamed 'update'? Or maybe other files are missing...no idea...

Me neither. Should be some info where you found that image, or in the manufacturers forums.

https://www.androidcentral.com/10-basic-terminal-commands-you-should-know
this is a starting point to flash twrp or a custom rom using the Android Debug Bridge  ADB
Look for a utube how to install ADB and fastboot for your pc . Then when u have adb command window open connect usb to device & use
 1. The adb devices command  which is    "adb devices"
do this first before down loading any of the sdk package as you need to know if your pc can recognize your device.
you could also use somthing like this for the type of device you have this only works for samsung but there are others for different manufactures
https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=2ahUKEwjz65GBkaneAhWlhKYKHaTHBuQQwqsBMAN6BAgDEAQ&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJv538rOL5p0&usg=AOvVaw3bIUhWGgbgikQiD3eBUfG1
hope this points you in right direction

Thanks a lot for your precious reply, but it lacks the first needed part: how am I supposed to create an exact image of my working device, and then, how can I flash the defective device which can't be booted so I cant grant usb debug access nor install TWRP?


text:
Doing the equivalent of "adb pull", but initiated from the Android device, not via adb
I have a rooted Oreo Android device, and I can use "adb pull" from my linux machine to retrieve copies of files and directories from my device.
However, I want to get a full copy of each and every file and directory on my device, starting from the root filesystem. I know I have to do "adb root" in order to allow this to happen, but when I do so, I get the following error ...
adbd cannot run as root in production builds

So what I'd like to do, if possible, is to get this data onto my linux machine in the opposite manner: i.e., to be su'ed on my android device, and from that device, to cause a complete recursive copy of everything from root on down to somehow be sent out to my linux machine.
Any ideas of how I can do this?
Thank you in advance.

Do you have an SD card with enough free space to hold all those data? Then the much easier approach would be to copy (or tar cf) the files on-device to the SD card, and then pull them from there. Or, if you have a custom recovery like TWRP installed, simply perform a backup with it (also results in tar files).

I do have a large sd card and tried the tar cf approach, but I ran into permissions problems even though I set selinux to "permissive". It got about 10 percent into the copy and failed with a permission error. But the TWRP backup idea worked for me. I didn't realize that the files in the backup directory  are tar files. So that's the answer.

Yupp – sometimes the easiest things are the hardest to find :) Thanks for self-answering!

Thanks to izzy, above, I realized that I can copy the TWRP backup directory to my linux machine and de-tar the files contained in the backup. I didn't realize that they were tar files.
This is the solution.