text:
Install TWRP in Essential Phone(PH-1): No such partition
I have unlocked bootloader, and in bootloader, I follow the instructions on TWRP site:

But I failed with No such partition.
Here is my log:
➜  platform-tools ./adb shell getprop ro.boot.slot_suffix
_b
➜  platform-tools ./fastboot flash boot ~/Downloads/twrp-3.2.3-0-mata.img
Sending 'boot__b' (48712 KB)                       OKAY [  2.086s]
Writing 'boot__b'                                  FAILED (remote: 'No such partition.')
fastboot: error: Command failed
➜  platform-tools ./fastboot --set-active=_a
Slot _a does not exist. supported slots are:
a
b
➜  platform-tools ./fastboot --set-active=a
Setting current slot to 'a'                        OKAY [  0.162s]
Finished. Total time: 0.162s
➜  platform-tools ./fastboot flash boot ~/Downloads/twrp-3.2.3-0-mata.img
Sending 'boot__a' (48712 KB)                       OKAY [  1.145s]
Writing 'boot__a'                                  FAILED (remote: 'No such partition.')
fastboot: error: Command failed

Could anyone please give me some hints about that problem?

fastboot flash boot_a ~/Downloads/twrp-3.2.3-0-mata.img

If you're flashing to partition a, use boot_a. This worked for me on my Essential PH-1.
fastboot flash:raw boot_a


text:
Kinzie - Modify custom rom to enable VOLTE support
I'm a newbie to Android and Custom ROM in general. I was able to flash a workable custom rom (Android 7.0) on my Moto X Force by following steps from xda-developer.
So basically the device Moto X Force (release under the codename Kinzie, XT1580) in India does not support VOLTE. The same phone released in US (droid turbo 2, XT1585) supports VOLTE in contract with Verizon. I performed lot of search on google if there is a custom ROM which can enable the VOLTE support on this phone but couldn't find any.
What I have tried so far:

I managed to install various custom and stock ROMs on my phone.
Flashed Verizon stock ROM on my device but it did not detect the SIM card at all. I tried updating the radio from other custom ROMs but no luck.

Can someone please confirm if enablement of VOLTE is possible by software ? Looks like the phone has the required hardware to support VOLTE. If yes, then please point me in the right direction of achieving it.

source: Stack Exchange

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

sort: votes


text:
What is this device administrator called screen lock service?
I was looking at the device administrators of my phone in the settings and saw a device administrator called "screen lock service". It's description is "Activating this administrator will allow the app Google play services to perform the following operations: set password rules". I have looked at my device administrators before and this particular one was never there before. It just appeared out of nowhere. Can anyone tell me what this is and if I should be doing something about it?

Are you using a Motorola device? Some moto device users seems to have come across this new device admin as well. See https://www.google.com/search?q=%22screen+lock+service%22+&oe=utf-8

A bunch of other people have had this administrator pop up and they asked on forums but no one knew why it suddenly popped up. I was hoping someone here would know

Can you setup [tag:adb] in your PC and then provide the output of this command: adb shell dumpsys package  resolvers | sed -n '/android.app.action.DEVICE_ADMIN_ENABLED/,/:/p' // Use a paste code service such as pastebin.com to provide the dump/output.

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


text:
Unable to send a text containing ".xyz"
I discovered this while trying to send friends URLs ending in .xyz. The texts appeared to be sent, but no one was receiving them. At first I assumed it was because the link was blacklisted somewhere along the line, but further experimenting showed that I cannot send a text containing the string ".xyz" anywhere in the message.
I am able to receive such texts though.
The phone is a moto g(7) power running Android 10. A friend has a Samsung Galaxy S10E and also can't send .xyz.
Sending other tlds such as ".com" etc works fine. Any guesses about what's going on?

.xyz domains are often used for distributing malware. May be your mobile network provider therefore filters out such messages as a form of "anti-virus service"?


text:
WhatsApp groups on new phone
I upgraded to a new Android phone and plan to use WhatsApp on this phone with my old number. For the purposes of this question, I do not have my old phone with me, and do not have a chat backup (actually, my backup got corrupted somehow, long story, but let's assume I don't have access to any backup/history).
Now, this whatsapp account was part of several groups.

Is there any way I can send a message to those groups? Since my number didn't change, I should be still part of the groups but I don't see any.
If someone sends a message on that group, will I receive it on my new phone? (The same way I'd receive a DM from a single person who still has my old number)
Some of these groups required admin permission to send messages, which I previously had. Would I need to ask for that permission again?

backup got corrupted somehow dont worry
you just have to install whatsapp in your new phone and login with that old number you will get your old groups as it is dont worry just install whatsapp (its happen with me many times :)

Yes, but I'm not seeing groups in my chat section; and the messages others are sending on the group are also not being received by my new phone.


text:
Sleeping Cat, Mint Room, and Giraffe. Anyone know what these files are?
In trying to make room in storage on my LG phone, I ran across 3 "apps" or files that I have never downloaded nor heard of and I have no idea how to find out what they are. Sleeping Cat, Mint Room, and Giraffe are their names, my question is if anyone knows what they could be and if I can delete them safely.

Please check their package name by following this question

I don't know the location of this files and also the filetype, but you can try to rename the files and reboot and see what happend, if you face any problems by using an app you can rename it to the original filename.


text:
Will changing app shapes be affected by themes?
I have just desovered 'developer mode' and there is an option to change the app shape. But I have a theme installed on my phone and I don't know if me having a theme will not let the shape change or will make my theme disable so the app shape can change? Basically can I have a theme enabled and still change my app shape?

Icon Shapes
Home screen icon shape changing is the feature by android. It was first introduced in Android 8.0 Oreo. Later, in Android 9.0 Pie and Android 10 Q, more shapes are added. Shapes include Square, circle(default),squircle,teardrop etc.
Themes
Theme is a feature provided by some manufacturers(Samsung, Xiaomi, Oneplus, Realme etc). Theme changes complete look and feel of devices by its color,icon styles, positioning etc.
Note: I am using stock android, I don't know whether manufacturers provide icon shape changing on their theme app.

(Sorry for the off) Welcome in the 2k club! Please review more - I think the site strongly needs more VLQ + suggested edit reviewers.


text:
Generate whatsapp stickers from PC without any app
I am newbie when it comes to whatsapp stickers, and I don't know about how stickers work.
But I am using a linux desktop where I have written a basic ruby script that could convert svg to webp, multithreaded. In a loop, it reads certain folders with svgs.
I have have 30 svgs in 4 folders, total 120 stickers. I want myself and people to add possibly a thousand more over time.
Currently I am used to copy the directory containing webp files to my android phone, use sticker.ly to manually select and generate stickers. That's too much work.
I want my script to have the sticker generator code in the loop, where it will generate stickers from svgs, I can take the packs to my phone and add them to whatsapp. That way I will be saving a lot of time.
Is it possible?


text:
Where did my downloaded music on sd card go?
I downloaded all of my amazon music to my SD card to switch to a new device. So I take the SD card with all of the downloaded music put it in my new phone then sign into my Amazon music account and it says I have no fricken music downloaded. I seriously need a solution to this problem before I go ballistic because after waiting for all my stupid music to download just for it to not show up on the new phone I am frickin livid. Keep in mind it shows up in offline music on my sd card on the old device. I NEED TO KNOW

downloaded songs are stored in internal storage in encrypted form

I'm not very experienced with Amazon Music, but on other sources, when you download music to an SD card, it stays on the SD card. So most likely, your music will not appear in Amazon Music because Amazon Music doesn't know to look in your SD card for the music. If you use a file explorer, you should be able to find your music on the SD card.
If your phone doesn't come preinstalled with a file browser, ASTRO File Browser works pretty well for me. There are a lot of file browser apps out there.
There might also be an option on Amazon Music to import or show music on the device/SD card.

Amazon music hides its downloaded files. I cant find them even when trying to view them in the folders.


text:
Can magisk replace files outside of /data/system?
I need to replace a file in /data/data/... Is it possible with magisk? And if so, how?
I've read the developer guide multiple times, and it seems that it's possible using an overlay system - which I absolutely fail to understand.
Another way of replacing the file could theoretically be using shell during the module's installation process, but that gives me "operation not permitted" (+ it's not an "overlay" because we're directly modifying the file).

yes the main purpose of Magisk is to have read-write access to /data. the concept of overlay concerns /system (not /data)

How would you replace /data/data/file.txt then? I tried creating a directory in the module's installer with the same structure as the file I am trying to replace (data/data/file.txt) and then in customize.sh created a variable REPLACE="/data/data/file.txt", but that doesn't seem to work.

I'm not experienced in writing Magisk modules (what your actual concern is), but writing to /data is not a problem once you have root access. E.g. you can run a script on boot, or execute commands manually from commandline, or perform operations from a GUI root-enabled app and read/write/delete whatever you want in whole /data partition. systemless, overlay and bind-mount things are for read-only OS partitions i.e. /system, /vendor etc. /data has ever been writable. That's where the Android OS itself stores data. And that's where users store data.


text:
Different device compatibility depending on account
I am using the google play store website (play.google.com) on my Android device.  I have 2 accounts.
With one account, the app says "This app is compatible with your device".
But, when I switch accounts and go to the app page again, I get the error "You don't have any devices".
Device compatibility should not dependent on the account, right?  What is going on here, and how do I fix it?

Check on https://play.google.com/settings to see which devices are registered on each account. Device compatibility can be either related to the device spec (e.g. Android version, CPU architecture, etc.) and non-device spec (e.g. current country based on registered payment methods).

Is the second Google account registered on your device and usable in PlayStore app on the device? A lot of apps are only available for certain devices, a certain carrier or a certain country.


text:
Samsung Galaxy A70 stuck in boot loop
I have a Samsung Galaxy A70 (A705FN) which worked fine until i decided to update to Android 10. I downloaded the update and everything was fine until the phone restarted and got stuck in a boot loop. I did some research and everyone suggested that Wipe Cache would do the trick.
But the problem is i can't access recovery menu. When hold down power and volume up buttons a blue screen pops up and says Installing Updates ... and goes 0 to 100% and then restarts and i'm stuck in the loop again. No matter how many times it doesn't do anything.
I tried to use third party recovery modes like TWRP but i did not enable usb debbuging or unlocked bootloader so this is not an option for me.
So ... how do i fix this? Thanks

flash empty cache partition from ODIN


text:
Xiaomi Mi A3 - not booting - fastboot erase userdata
I’m a noob.
I follow a guide in the forum xda-developers to root my Xiaomi Mi A3
I executed the command:
fastboot erase userdata

After executing the command, I realized that I had deleted the partition.
Now the Device is only booting in to Fastboot.
How can i fix this?

Please edit your question and include the link to the guide you were using.

Sorry, cannot finde the trade anymore. fastboot erase userdata is the only command i executed except the command to unlock the bootloader.

But you wrote I realized that I had deleted the partition. so when did you delete it (note erasing just means deleting data not deleting the partition)?

fastboot erase will erase the whole partition, you must recreate file system with fastboot format:ext4 userdata (or f2fs)

use latest standalone platform-tools (no need for full sdk)

Thanks for the answers.

btw don't use flash_all.bat that will probably re-lock bootloader. download fastboot variant for your ROM version and flash only necessary partitions http://xiaomifirmwareupdater.com/archive/miui/laurel

Hello Teso. Unlike forums, our site allows the post author to edit their post to make changes - whether for removing content or adding one. Therefore, you don't have to make additional posts below. And so, please use "post your answer" button below only when you have an answer to post. :)


text:
How to mount a tmpfs directory that would be allowed to be read and written to by any app? (root available)
I am trying to create some volatile (tmpfs) storage for my Android, to avoid clutter.
I am trying to follow the previous questions:
making manually mounted partition folders write accessible to all apps
and
How to bind mount a folder inside /sdcard with correct permissions?
The way I am doing is by adding an "init script" into a magisk "service.d" directory:
# cat /sbin/.magisk/img/.core/service.d/001-tmpfs.sh

#!/system/bin/sh
while [ "$(getprop sys.boot_completed)" != 1 ];
do
  sleep 1
done

su -mm -c mount -v none -t tmpfs -o size=4g,nosuid,nodev,noexec,noatime,context=u:object_r:sdcardfs:s0,uid=0,gid=9997,mode=0777 /mnt/runtime/write/emulated/0/Download/tmpfs-cleared-on-reboot

Seems plain and simple, only doesn't work in the sense that the folder is mounted successfully, and files disappear after a reboot, if copied there by root. But an ordinary app cannot copy anything there. FX Explorer, for example, says "Access was denied."
It does work though if I set setenforce 0, which seems to indicate that there is a SELinux problem.
The only relevant error in dmesg looks the following:
[ 3181.763111] [20200731_13:36:57.002188]@1 type=1400 audit(1596173815.897:12245): avc: denied { create } for pid=5870 comm="Thread-139" name=233339202D5370656E63657220477265656E62657267206F6E20696E7472696E7369632076732E20696E737472756D656E74616C2076616C7565732C206F766572636F6E666964656E63652C20616E6420686F7720746F2061637475616C6C79207570646174652062656C6965667320696D70726F76656420617564696F2E6D7033 scontext=u:r:untrusted_app:s0:c104,c256,c512,c768 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0

It appears if I try to copy some file into this directory.
ls -lahZ /mnt/runtime/write/emulated/0/Download/ gives
drwxrwxrwx   2 root everybody u:object_r:sdcardfs:s0   40 2020-07-31 13:25 tmpfs-cleared-on-reboot

ls -larhtZ /storage/emulated/0/Download/
drwxrwxrwx   2 root everybody u:object_r:sdcardfs:s0   40 2020-07-31 13:25 tmpfs-cleared-on-reboot

Which is strange, because the other files in the directory have permissions like this:
drwxrwx--x   2 root sdcard_rw u:object_r:sdcardfs:s0 4.0K 2020-07-30 20:04 pdfs-scientific_papers-toread

the group is different. I am not sure whether this is related or not.
But anyway, I cannot copy anything into this directory as a normal app.
I can copy stuff there as root, and it disappears on reboot, as expected. But where is the permissions problem?
This is Android 9 on OnePlus 5t.

Great! How do I make it appear as a subfolder under Download?

That is exactly the story I am asking in this question. Moreover, the "bind mount WhatsApp" question is even linked to as "prior research" within the first three lines of this question.

what happen when you mount it uid=0,gid=1015,mode=0771 instead?

Then the group is changed into sdcard_rw, but it does not help. After this change, other apps are not just not able to write anything into this directory, but also not allowed to cd into it.

maybe the permissions on underlaying tmpfs needs also to adjusted. i recommend to try with fat32 sdcard partition first. once you figured out working permissions you can adapt to tmpfs

Why can't WhatsApp write to bind mounts? some more links Mounting portable SD card folder to internal folder (WhatsApp)


text:
Can i root my Sm-G970u1? (snapdragon)
I recently bought a unlocked S10e g970u1 thinking I would be able to root. All info I have seen says this can't be done if has snapdragon, which mine is. I have AT&T now but as I understand it the carrier is not the issue in this case so changing the Sim card wouldn't make a difference. I'm no expert here and appreciate the help.

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

Note that by rooting as far as I know you will permanently disable the Knox security feature for this device and hence all apps that rely on Knox will no longer work.


text:
Information about transactional SMS
*this is not a coding query, rather a how stuff works question *
I am working on a project for which I will 'receive' a huge number(say 1000/day or more) of transactional SMS (transactional SMS means those that have OTP etc, ones that are sent because I asked for it, unlike promotional SMS which comes unasked!). I want to receive them on my android mobile itself. Please answer these if you know:
1.If I keep deleting the SMSes and never let the memory get full, then, can I receive any number of those SMSes per day? By the way, what is the max number of messages that can be stored at once in a mobile inbox?
2.what if the queue has become of say 1000 pending SMS, what will happen, will senders server get terminate the queue/get hanged or send them one by one? I read such queued SMSes will be sent in bunches, like 10 at a time, then an interval, then next 10 and a longer interval and so on; if so, how long is that interval then?
3.Lastly, what about the transactional messages that are failed to be received? Will the sms server resend it at some later time? Or it's gone!
Answer as much as you can, these are very bad ques I know! Thanks for your time! :)

Did you try to find information yourself? And please edit your question - 2 and 3 are not Android specifica dn hove nothing to do with android.

i have had huge performance problems with stock sms app (the way how database is read) until i found a (payed) sms app which can handle 100.000 sms smooth

I mentioned by @Άνδρας the questions 2 and 3 are not related to Android.
For the first question, I suggest two methods:

Android App:

you can use an Android App that use Alarm Manager which will be executed once a day or every hour to clean up the SMS database using Content Provider.

ADB solutions:

content delete --uri content://sms --where "date>EPOCH_TIME"

where: EPOCH_TIME is 13 digit epoch time (milliseconds)
The command will delete all messages received after EPOCH_TIME


text:
Why is it possible to backup the rom images from mediatek devices using third party (open source) tools such as SP flash tool unlike Google Pixel?
When running Linux i am able to use SP flash tool to do a readback from my mediatek device and do a full backup of the rom images while the device is in preloader mode, without the use of any additional USB drivers.
Yet this is not possible with Google Pixel.
Is this perhaps due to Mediatek going out of their way and adding support for their devices during the development of the mainline linux kernel and Google dont?

Mediatek is very strong in the market of custom Android based devices for non-smartphones (Android on IoT and other embedded devices). I would assume that the possibility to read and write images from "outside" of the device is a convenience method added by Mediatek for simply device development as it reduces the possibility to brick your device.

But why does why does Linux not need additional USB drivers to do this, whereas in windows we need Mediatek's VCOM drivers?

On Windows you always need (USB) drivers for a device even if windows already contains the driver binaries (INF file maps USB-ID to driver). Linux contains alreayd a large number of generic drivers. But such questions are off-topic here as it does not have anything to do with Android.

Cross posting: https://unix.stackexchange.com/q/605563/262728

it is simply not true that linux does not need drivers. linux is just smarter than windows and handles it's drivers itself. linux just doesn't ask for drivers, but it use drivers anyway
new mediatek devices are accessable from preloader only with proper secure boot download agent (DA_SWSEC.bin) and authentification file (auth_sv5.auth). that files are vendor and device specific. even with proper files SP Flash Tool is not able to read back whole EMMC, there are forbidden partitions which can't be accessed. Lenovo devices are a good example
for qualcomm devices it is quite same, there we have EDL mode available instead where we can read raw partitions from device only with proper factory loader (firehose programmer). again that files are vendor and device specific
the fact that you can't read data from google pixel is that HTC hasn't released/leaked firehose programmer for google devices
while google may have that file internally, it seems they are not interested in unbricking, the official install method rely on fastboot only. once a device becomes bricked, it is not possible to unbrick (on locked bootloader). so the official solution for bricked google devices is a replacement device. that's why i personally recommend every google device should be bootloader unlocked on initial setup (my opinion)

How does i find out if a device has secure boot enabled as i have tried to check for this when starting the device in recovery mode but it doesnt mention anything regarding secure boot?

fastboot getvar secure returns if the bootloader is locked/unlocked, is that right? I thought a device specific DA file is required to flash images onto the device regardless if the bootloader is locked or unlocked.

yes secure boot is independent from bootloader status. but you can flash from fastboot mode without DA on unlocked bootloader, secure boot DA concerns SP Flash Tool in preloader mode only. fastboot getvar unlocked returns the bootloader status. fastboot getvar secure returns the secure boot status. fastboot getvar all returns all information

https://blog.hovatek.com/so-whats-all-this-talk-about-meditek-secure-boot-and-da-files

Does using a universal download agent allow the user to readback parts of the eMMC and just not the forbidden partitions, or would the user completely not be able to do a readback of anything ?

Regarding the firehose programmer, is there a reason why HTC would leak as oppose to releasing it officially?

I would have thought when a multinational corporation like HTC (which would typically have rigorous security systems in place) leaks something like a firehose programmer, it would be fully intentional to make lives for the users of their devices easier when they use it to unbrick them?

but their economic strategy is planned obsolescence and they are not interested in making lives easier

fastboot getvar sec_boot

If secure boot is disabled on a mediatek device, does a DA file or an Authentication file serve any purpose or only the scatter file is used to read and write from and to the device using SP Flash tool?


text:
Moto G8 plus - Android 9 - no support for sms message restore from Google backup - how do I manually access these messages?
I need to restore a Moto G8 plus running Android 9, turns out according to the carrier the crucial messages app does not support restoring SMS. Can I debug and manually access these messages? If so how?

MyPhoneExplorer

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

You can try the app mentioned here to backup and see on PC. To restore you can use one of many SMS apps that are available


text:
Which files does `adb backup -apk -shared -all -f <filename> back up?
I wanted to back up everything on my phone: call logs, messages, whatsapp texts, photos, videos, screenshots, screen video captures, recordings, app data... and everything else, before selling my phone. So, basically, data-wise, I wan't to create a clone of the (entire) current state of my phone. I don't necessarily wan't to restore all of it on my new phone, but I want to be able to access the stuff that I backed-up on my computer later, when needed...I saw a few answers on this site, but they don't answer my questions fully.

Is the command line adb backup -apk -shared -all -f <filename> well-suited to my purpose?
My phone has 32G capacity, but the backup file generated is only 5.3G. How do I know that the backup completed properly and contains all the data I wanted?
Are there ways to do the backup over a network (WAN) using ADB, instead of having to depend on the USB debugging mode.

Does this answer your question? How to fully backup non-rooted devices?

Does this answer your question? Transfer Android app with offline data to NEW PHONE without ROOT

Answers:

No,  adb backup will only backup the applications that has Backup option enabled.
It depends on which data
Yes, you use can connect to ADB over TCP (https://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp).

Details

List applications that probably can be backed up:

adb shell
for package in $(pm list packages -3 | cut -f2 -d":"); do
dumpsys package $package | grep "ALLOW_BACKUP" > /dev/null  && echo $package;
done

Probably: WhatsApp has ALLOW_BACKUP flag but cannot be backed up with ADB.

Verify the backup:

To verify the application has been backed up successfully, you can use the Android backup extractor tool.

Storage backup:

adb pull /storage

Backup SMS:

adb pull content query --uri content://sms

Backup contacts:

adb shell content query --uri content://com.android.contacts/data

Note that adb is not encrypted or protected at all (security equivalent to telnet). Therefore using it over a WAN connection is not recommended. I would recommend to only use it within a private WPA2/3 secured Wifi network.

Note that -shared includes shared storage (SD card contents), so your point 1 is a bit incomplete. But you're correct: apps can opt-out of backup and thus would not be included.


text:
How to restore a particular app's data from Google Drive backup?
I have hard reset my android phone and I have restored it from a backup in Google drive which was taken 2 days ago. Some of the apps are installed.
There are however some system apps whose data is not restored.
I can see from the Backup that there was about 750KB of data for system app which can be restored. But it is not restored.
The app has no option to restore data from Google drive backup  also.
I have also tried Google Takeout (for Google Drive) bit it did not give me the Android backup data.
Question
How to restore a particular app's data from Google drive?
Also, is it possible to download the Google drive backup data on PC or to some storage and try to extract it?
Can I restore it on any emulator like Genymotion to get the data?

The applications that was not restored does not allow backup (android:allowBackup="false"). Which mean that your backup will not contain these applications even after restoring in another device.
You can check that by following these steps:

Install one of the concerned Apps in your new device
Enable USB Debugging
Run this command (using ADB):

adb shell dumpsys package concerend.app.package | grep flags

Where concerend.app.package is the package name of the installed App.
If ALLOW_BACKUP exist in the command's result then probably the application can be backed up. Else, the application cannot be backed up and it will explain why it was not restored.


text:
Install driver in android os
I recently bought a wifi adapter(Astrum NA150) which is not supported by linux out-of-the-box. But in the cd there are drivers for win,mac,linux and android. They also have makefile. But as i know make is not supported by android.How can i install them.
Link to the drivers:
http://astrumworld.com/Downloads/drivers/NA150_driver.zip

This is about Ethernet detection. But I am trying to install driver.

See the second point in my answer: kernel configuration. There's no concept of Windows-like driver installation on Linux, and hence Android.

Ok. I am just a novice programer. Can you link me to a detailed guide on kernel building and driver. (Beginer friendly)

Seeing all that codes making me dizzy!!!

Kernel building is the smaller problem. The bigger one is the availability of kernel source code for your Android device. Deal with that first. // Btw, development related questions are off-topic here.

It's android x86 on pc.

Shouldn't code be universal for pc.

I want to add drivers to phoenix os or prime os


text:
How can I reset my Misfit Vapor X when it won't even boot after an automatic update?
Okay, so I bought a Misfit Vapor X.  It was brand new, and worked for about an hour when it updated itself.  Now, it won't boot and goes into a boot loop when I try.
It will buzz, then show the Misfit logo for about ten seconds, and repeat the process.
I pressed the main button and the bottom button and got the watch to go into the recovery screen.
From there, I can choose:

START
Shipping Mode
Restart bootloader
Recovery mode
Power Off

START goes into the boot loop
Shipping Mode gives me a screen of red letters that show this:
SHIPPING MODE
PPG Fail or Timeout!
LED1 3216, LED2 3832
IR 9003
Recovery Mode goes back into the boot loop
Power Off doesn't, and instead goes to the boot loop.
I googled the above cryptic message without any useful result.
I can't get ADB to see the watch (I'm not an expert, so I may not be doing that right...)

I would simply get the non-working watch back to the shop where you bought it.

@Robert -- Yeah, that's probably the only option.


text:
Why does my mobile data work only on hotspot?
I own a Samsung Galaxy A71 and I'm on Reliance Jio network.
When I had bought this phone and put a new Jio SIM on it, my mobile data worked fine, but the hotspot didn't. My laptop browser said 'DNS not found' or something along those lines. I solved it by updating APN settings.
Fast forward to eight months.
Right now it's the exact opposite. My mobile data works very rarely. I get maybe a bar of signal at best. On 4G network I get 20-30 Kbps. A WhatsApp message goes through after 10 min. But if I connect my laptop through the hotspot, suddenly the data works seamlessly without any problems. A YouTube video on the laptop at 720p can load without any buffers, the same cannot be said on the app in my phone.
Any idea why this would happen? Something to do with the APN? Or something with the network?
Also, the JIO tower is right next to my house. Why would I get only a bar of signal?


text:
Can't load certain sites on phone over Wi-Fi
When my phone is connected to Wi-Fi, certain sites won't load, especially https://www.nytimes.com/; Chrome's progress indicator shows a little bit of progress, but never gets past that. Other sites are fine.
Various notes:

If I turn off Wi-Fi while it's in this state, I get ERR_CONNECTION_ABORTED ("This site can't be reached"). So my assumption is that the progress indicator's little bit of progress is just because of successful DNS lookup, not because it's actually managed to connect to the site.
This issue is specific to phone + Wi-Fi:

This issue does not occur when I disconnect from Wi-Fi and let my phone use mobile data.
This issue does not occur on my laptop (which uses the same Wi-Fi network).
This issue occurs on both my own Wi-Fi network and my sister's; but we both have the same ISP, so that may not be a fully independent test.
This issue occurs in both Chrome and Firefox, and seems to affect other apps that connect to those sites.

But, interestingly:

In the case of NYTimes.com, it seems to bear some relation to cookies, in that it works in incognito mode until I log in. But logging out does not fix it (perhaps because it leaves other cookies?).
Twitter (https://mobile.twitter.com/) sometimes loads successfully (albeit slowly), sometimes not. Twitter has a lot of local storage stuff (it shows some of its page boilerplate even when I have no Internet at all), so I'm guessing that this has to do with dynamically choosing different backends, some of which I can connect to and some not? (But that's just a guess.)

This is pretty consistently the case. The only exception I can remember is that the first time I tried loading NYTimes.com in incognito mode, it worked immediately afterward outside incognito mode as well.
This has been the case for about a day and a half.
I tried changing DNS settings (first to use Google Private DNS, then to use Cloudflare); no effect.
I'm running Android version 9, moto x4, google_fi.

To anyone who might be coming across this question in the future with the same issue: I still don't know what the issue was, but it suddenly resolved itself yesterday (about four days after it started). All the affected sites are OK again now.

Addendum: the issue recurred from 2020-09-30 to 2020-10-09, with the same symptoms as before. So, although the issue eventually resolved itself both times, I'm still seeking understanding and a solution.


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

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

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

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

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


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

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

Putin works with tar.md5 files

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

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

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

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

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

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


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

Deinstall the app?

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

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


text:
Is there a safety system to prevent overheating?
Is there currently a system in place that prevents overheating. I have recently been having issues with my mobile hotspot and I noticed that the issues I have seem to be when the phone is above 90 degrees F. (Using a battery temperature app).
When the phone is room temperature everything seems to work fine and when it is above 90 I seem to have issues. I thought maybe the wifi chip was having issues, so I manually tethered with USB and continued to have issues. To rule out my laptop, I connected the phone to my router and hardwired in my laptop. I then bought another cell phone which had the same issues. Specifically the issue I was having was full 20 Mbps and then 0 and then 20 and then 0. (Tested with speedtest.net multiple times.) So it appears to be the actual chip that connects to the cell towers. (On both phones it was doing this.)
Is there a safety mechanism in place in the android system that detects that your phone is heating up and begins cycling chips on and off to prevent overheating? I can see how for most activities a normal person wouldn't notice unless you're streaming something live with no buffer (ie: remote desktop over hotspot). Actually if it does this it would be almost genius because it wouldn't need to completely power off. It could just cycle between normal power and lower power which wouldn't be an issue for 95% of the things you do, it would increase battery life and decrease phone temperature. However, I also would be doing the 5% of the tasks were it is annoying as all get out watching the mouse cursor skip across my screen and watching windows minimize robotically with jerking updates.

i can't answer your question but i got the feeling that app might be helpful to figure out (there is also a temperature watchdog for qualcomm chipset, not sure if related)

CPUs have usually a built in thermal throttling system that reduces the frequency and the used voltage if the CPU gets too hot.


text:
Voice over Ethernet without WiFi in airplane mode
Is it possible to make calls with an active Ethernet connection only (with an Ethernet adapter) without a mobile & WiFi connection? Effectively Ethernet-Calling, like WiFi-calling.

Theoretically yes, as long as the Wifi calling is not limited to a certain Wifi (e.g. special Wifi from mobile network provider). For Wifi calling you just need a network connection. However Ethernet via USB adapters is not very common on Android therefore I don't think that somebody will test this when developing the system firmware. Therefore it might work or not depending if you are lucky or not.

It does work using services like Google Voice (free phone number), Hushed, or iPlum on my 2 phones (Moto G4, G7) Android 7-10.
Plugable makes a Micro-USB ethernet adapter ($14) that works with Android devices or a plain USB ethernet adapter that can be used with USB-C devices with an OTG converter ($5) to make many Android tablets and phones work. They maintain a list of tested devices on their site. Device Compatability Chart: AX88772 Compatibility List USB2-OTGE100 : USB2-OTGE100
The issue is you must use a third-party app like those mentioned, not the phone app that comes with the phone. That means you must have a second number associated with the app to call. If you don't care about letting Google listen to your calls, Google Voice is free. True ethernet calling may be coming in Android 11. WiFi calling is available on some phones now and this may allow true ethernet calling from the native phone app—it depends on your carrier. I am testing this option using RedPocket soon.

Do you have any source for the claim that Ethernet calling may be coming with Android 11?


text:
Help trouble shoot audio driver
So my audio stopped working after the upgrade to android 10.
And I can not roll back to Android 9.
Phone Samsung Note 9.
Android 10.
Need help understanding the start-up process in android. Which file detects the chips, tells it which driver to load, and then logs the results after loading each driver.
Which log should I look in for failures i.e. If I run Sound Recorder and hit record? The app just hangs.
I cant click on stop. And can only kill it in notifications.
Like in Windows I can go to devise manager and see the list of drivers loaded and the status of each component. And if its failed it will say failed to load driver xyz.
If I have this info I can pinpoint which chip is acting up. I know the phone has one amp chip 98512 and one Audio Codec Chip. I want to know which IC is acting up or if its just a corrupted driver file.
I did Odin the factory Image onto the phone. Just to be sure.
Funny thing is Audio works in Blue Tooth but over the mic / speaker / ear phone jack all dead.

Have you considered that the mentioned app does not work because of new restrictions in Android 10? Especially apps like call recorders no longer work on Android 10+ therefore your recording app may also be affected. Make sure you are using a recorder app that is known to work on Android 10.

Yes, I have but when I say my audio is dead its dead. Can't get the speaker to work even in the diagnostic screen/safe mode / DND is off. The phone will not even ring. Playing movies with no audio. But if I cast or use Bluetooth I get audio. etc.

I found this info its a start.
https://android.stackexchange.com/tags/logging/info

You could check kernel log via dmesg command. Drivers are in Linux usually located in the kernel and via dmesg you can see the kernel log.


text:
How to clear cache for all apps at once?
I want to clear all app caches mainly to reduce the size of and speed up backups. This feature has been supported in Android 4, but appears to have been removed a long time ago.
A root-only method is fine.

With root: for cache in /data/user*/*/*/cache/*; do rm -rf "$cache"; done. For other possible locations see https://android.stackexchange.com/a/218507/218526

@alecxs https://f-droid.org/packages/theredspy15.ltecleanerfoss/ - "Android API 23+ (Marshmallow) no longer allows apps to clean other app’s caches, thus the claim of cleaners clearing them is completely false."

...from the Google Play page: "✔ Clear all apps cache at once (1-tap cache cleaner without being root)"

@alecxs: Root methods are accepted, yes, I was only confused how the app clears caches without root since that doesn't be supported by Android anymore?

Link2SD requires root permissions for clear cache widget

This app let's you add an widget to clean cache. I have a paid version of app, not sure if it is available in free version or by the same developer, try this one (developer has all features built in in the first linked app and smaller apps separately)

I'm considering deleting this question due to potential risks and questionable benefits. Neo Backup (formerly OAndBackupX) has an option to exclude app caches.


text:
As a non-developer, how do I download logs so I can help diagnose why an app is crashing?
I am not an Android developer, but one of the apps I use is now saying "Unfortunately ... has stopped."
I would like to look at the system logs to help figure out why, but all I can find is references to logcat and it would be a lot more convenient if I didn't have to download Android Studio just to do this one thing.
Is there a way to get the logs without using Android Studio?

Read the tag wiki of the tag you used for more

No need to use Android Studio, just need ADB command-line tool.


text:
how can installing a custom recovery such as TWRP lead to a device going into a bootloop
I see a large number of posts stating that users ended up with their device going into a bootloop after flashing TWRP.
If TWRP is flashed to the /recovery/ partition, how is it possible for the device to go into a bootlop during a normal start up?

when altered a partition, that fails to pass the dm-verity sanity check

what relation does dm-verity have with android verified boot?

dm-verity is verified boot (at runtime) while AVB is verification of partitions (during flash or boot)

is there any relation between unlocking the bootloader and dm-verity or AVB?

that are three different pieces in the chain of trust, but it all goes hand in hand

so dm-verify needs to be disabled via adb first prior to installing a custom recovery or else the device will boot loop?

you can flash custom recovery and install disable_dm-verity.zip or no-verity-opt-encrypt.zip or magisk.zip to disable dm-verity. if AVB is problem for custom recovery, you can flash empty vbmeta.img to disable AVB

Does this answer your question? What creating bootloop when flashing TWRP?


text:
import pem file containing multiple CA certs
Using Samsung S4, Android 5.0.1, not rooted.
Recently I have found at least two websites that the Chrome browser on Android 5.0.1 reports https is not secure. This is because the phone does not have the root CA cert required installed. I know how to load individual CA certificate pem files into the user list using the Security menu and "Install from device storage". I wanted to load all the current ones. I had to get "SectigoRSADVBundle.pem" from Sectigo.com as this CA is used by one of the local government websites which must be newer than Oreo release but and the other pem I found in the Oreo pem files
I tried concatenating more than one pem file but it only loads the first entry in file. I tried making a pem file using the Oreo pem files so it had this layout:
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

but only the first pem is loaded. I most likely do not need all of them but I have no idea which files are newer than my Android built in system list.
Is there a list of new CA created since Android 5.0.1 (or a way to build the list) if I have to load them individually?
There are 137 pem files is there a way to load all CA certs using just one file?
Whenever you put a cert in User Certificates section when the phone reboots the is a warning message, so my next task will be investigating moving it to system list

Have you considered to just install LineageOS? The S4 is still supported and you would get a recent Android version with CA certs preinstalled. You can install e.g. stable LineageOS 16 https://download.lineageos.org/jfltexx

@Robert maybe when I sort some other unrelated issues. I was just reading the installation instructions I found no mention of how to restore system back if LineageOS is missing a feature I need (eg sms scheduling).

Doesn't seem like the UI allows it; I think the best bet would to split the certificate list into separate .pem files and then use adb to import them one by one (but in an automated way) as described here: https://stackoverflow.com/a/58292316/1928235


text:
How to create image of internal storage to attempt data recovery?
I accidentally deleted an entire folder of photos a few days ago on my Galaxy Note 4. My PC was also down because of a failed hard drive, so I was unable to back up my phone prior to this accident.
At that time, I didn't even know what "adb" meant; now I have droid explorer and Android SDK on my PC, and have worked out how to get my PC to detect my phone. Now I want to make an image of the internal storage; there are lots and lots of other threads about this, but none of them explain the commands people are using. I have been very careful not to use my phone for much of anything (it has been set to airplane mode to reduce the chances of things writing to the drive), but I can't keep that up for long.
Can somebody please explain what commands I need to use in order to get an image of the internal storage? I keep seeing information about "booting in recovery mode" and bootloaders but I have also seen people discussing dumps of internal storage without these things.
I just need to check if my photos are still there. It's pretty frustrating to figure this stuff out with very little knowledge of coding and zero knowledge of Android software, so if somebody could help me figure out what to do next and be thorough with explanations, that would be excellent.

check your hardware Qualcomm (trltexx) or Exynos (treltexx)? root your device with cf-auto-root, get image of userdata partition via adb, recover files with extundelete (see above)

Would I need to root my phone in order to get an image of the userdata partition? It is unrooted, and I am not necessarily opposed to rooting it, but I have read posts on other websites about people bricking their devices. The last thing I need right now are more technology problems. Also, what is ~$ in adb? Irfan linked a thread I was just reading, and there's a long post in that thread with the command  ~$ adb pull /dev/block/bootdevice/by-name/userdata data.img. I'm trying to make sure that I understand what I am doing before I try something.

adb pull requires adb root

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


text:
Force Galaxy S8+ to authorize my hp
Sorry for the long, difficult problem. Anyways...
Hello, I recently dropped my phone in the pool. I wasn't too concerned because I was about to get a new phone anyway, but it turns out at some point about 2 years ago I had accidentally turned off auto-sync on everything and I lost a bunch of contacts, photos, memos, texts, etc. The display and touchscreen are both not working, but I know its on because it still vibrates for social media notifications at the same time my new phone does. I took it in to UBreakIFix and they said they tried to replace the screen and battery but that it didn't help. Something they did must've revoked USB debugging for my laptop which is my problem. Beforehand I could plug my phone in no problem and do whatever I wanted. Now I have to click "Allow USB debugging" which I obviously cannot do because I can't see the display and the touchscreen is broken. Does anyone know a way to force my phone (Galaxy S8+) to authorize my laptop? I'm trying to use Vysor to control my phone with my laptop and then I'll just SmartSwitch everything I need to my new phone. Any ideas would be greatly appreciated and any other ideas to get my data off my phone would be appreciated, too.
Thanks.

if the dialog doesn't disappear, you can connect keyboard with usb-otg adapter, unlock screen and confirm Allow USB debugging

I can't connect to my laptop and usb-otg at the same time and the dialog does disappear I tried with my new phone.


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

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

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


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


text:
Samsung galaxy a7 2018 hangs after update android 10
Recently I updated my device from android 9(one UI 1)to android 10(one UI 2)
After updating to android 10 it freezes again and again,not the whole phone freeze, only display hangs but background working properly, when i push power button and lock device, and after unlock by power button it works normal, but after sometime it freezes again. I repeat this task again for unfreezing.
I checked device logs for hangs reason, where I found
EGLNativeWindowType 0x79466cd890 disconnect failed

It looks like openGL problem, is some driver corrupt or missing in new update,
Samsung block downgrade from bootloader,So I have no choice,
Note:*I updated with latest ota update,there is no new update from Samsung,
*Device was working well with android 9 one ui1(means there is no hardware fault)

Model: samsung sma750f

Bro Downgrade by Odin.
Then it'll work nicely.
I've face same issue and after Downgrade it's working nicely.

Could you please describe how to do that? Not everyone is familiar with Odin (or knows what it is – some might turn to Heimdall (wow, cool, that exists indeed) or Asgard (huh?) in search ;)


text:
How can I identify apps that trigger events in MacroDroid
MacroDroid can be triggered for a broad set of events. In particular it can detect and log when GPS location is enabled or disabled. This is useful but I would like to understand which app made the request.
I would like to find a way to identify the app that made the request associated with the event i.e. which app is requesting GPS location be turned on. Does MacroDroid have the capability to identify the app triggering the event? Alternatively if this is not possible could MacroDroid capture the app that were running at the time GPS location was enabled?
For completeness phone is a Galaxy Note 8 (SM-N950F) running Android 8.0.0

If the app that is triggering GPS change is in foreground, you could add [fg_app_name]:[fg_app_package] to the event and have an notification display that as well. I am not sure but I think an app needs to be in foreground to trigger location change

You can add those by tapping action and use configure option to select those and any other parameters like time etc from the blue box with dots on right

Re : the first comment. I don't think apps by themselves can switch on or off the GPS. Such apps like MacroDroid need system permissions. It's most likely in your case (guessing) that your OS is triggering and in which case the event log should show system

@beeshyams I'll keep an eye on this over the next few days to see what happens. The reason I am trying to get to the bottom of this is the GPS is being switched on without my explicit consent (that I know of). Additionally in some cases GPS is toggled on and off immediately so it wouldn't be noticeable if one wasn't capturing events. I am trying to find out why this is.

Cool. If my guess is right you will see this in event or something similar having system in it - System UI:com.android.systemui.  If that is the case and you are satisfied, please self answer and flag my comments for deletions. Thank you


text:
Find APNSourceService
I have a TicWatch Pro 4G. As some may know, the watch only supports Vodafone. But from what I have seen, that's mostly down to the fact of the correct APN for other networks not being available. After looking in the usual places like /system/etc/apns-conf.xml, I found most APNs to be present there. However, the menu to choose the APN is always empty. After a lot of digging, I found this thread on here:
Where apn configs are saved in Android?
In there, it is mentioned that there is such a thing called "ApnSourceService". However, there is basically no information available on this except that thread and some mentions in the source code, one of them being in the TelephonyProvider.
In that thread, it was said, that one can disable such a Service using Magisk. However, I found no information on which service that might be, or where to find any clues. Also I looked into system-apks to find any mention, but I didn't find something useful.
I also tried listing running services, but at least I didn't find something useful in there.
Also I'm not really a professional, it might well be I'm completely on the wrong path with the "ApnSourceService".
Thanks for any help


text:
Encrypt Tablet function in Android x86. Android 6 in Oracle Virtual Box
I am currently running Android x86 version 6 in Oracle Virtual Box.
My intention is to run some software my company creates and to test it without the need for a physical tablet.
The software i install requires the tablet to be encrypted using the Settings -> Security -> Encrypt Tablet feature in Android.
However all i get is the OS reboots and no encryption happens.
So i have two questions:

Can i get encryption to work?
Is there a way to fool the software into thinking that encryption has worked and not actually encrypt it?

The reason the software wants an encrypted device is that in the real world the device will store customer and financial data. In my test system its all fake data so i dont care about encryption.

Android x86 is IMHO not a good platform for testing software as it is a simple community project. I strongly recommend to use the Android emulator with Google provided images instead, or best a real physical tablet. Otherwise your test results are not very realistic and reliable.

@Robert Do you have a link where i can get the recommended Google images and Android emulator? I require Android 6.0

Install Android SDK or Android Studio. Use the AVD manager and select and Android 6 image.

@Robert None of the ARM images will run from Android Studio. They all hang on the Android starting logo. Any ideas?

Do not use ARM images in an emulator, only use x86 images. Also make sure your CPU supports virtualization and install the appropriate virtualization helper tools (Intel HAXM/AMD Hypervisor driver). Both are available via Android SDK maanger.


text:
Tethering issues on OnePlus 6T (not operator related)
My 6T (unrooted) Android 10.3.5, won't tether - not by USB, not by Wifi nor by Bluetooth.
Not a carrier issue - I can tether with my wife's phone.
Weird behaviour - occasionally the tethered device (PC) will have internet, but not the phone, sometimes the phone will have internet and not the tethered device.
I have AdGuard and NordVPN installed, but I turn them both off before trying to tether.
I have disabled Private DNS before trying to tether.
Doesn't work in Safe mode either. Shows connected device to hotspot on phone.
If I connect the phone to Wifi then the PC has internet and the phone does also - not very helpful.
It used to tether months ago.
Any ideas please?

See routing table (using ip) and firewall (using iptables) when tethering turned on. The simple way to troubleshoot networking issues. Latter requires root.

Out of curiosity, do you happen to have any battery optimizations enabled, or any installed apps that purport to make your battery life more efficient?

No battery optimization apps - OnePlus is aggressive enough without help and offers good controls.  FYI - I found the answer below - thanks for your interest @czarmatt

@IrfanLatif  Thanks, I made a note of that tool for the future

Editing the APN didn't help.
Recreating a new APN from scratch resolved the issue - even though they look identical to me on the screen.
Leaving here for others to hopefully benefit.


text:
System Update Failure on Rooted Device
I have a Lenovo Tab M8 tablet (FHD FB-8705F) that's rooted. There is a System Update available. When I download this update I get a pop up screen to install. When I click on this the phone restarts and i see the Android Bot. On this screen it says Error and after a few moments it restart. After the restart I get a message "Failed to install ota package"
Is there a way to install the package on a rooted device without having to revert to the stock boot.img?

FlashFire or Magisk

After downloading the ota file to my tablet, where do I find it?

@alecxs From what I can see both options require to revert to stock boot image. I'm looking for a way to upgrade without reverting to stock.

it is done automatically, if that makes a difference for you

FlashFire is reporting that it doesn't support 20.4 Magisk. Is there a way around this? Or can I install an older version that will let it work.


text:
I want to restore my contacts from a broken and black screen android device
I have a Samsung galaxy s5. Its screen has gotten smashed and now it displays nothing (black).
I can turn on the phone, and also I can enter recovery mode (by pressing home+power+volume up).
I have ADB installed on my laptop. But ADB can not access my phone and it shows it is unauthorized after typing adb devices, because it needs debugging mode to be enabled on the phone and I can not do that because the screen is smashed and black.
I have read that after entering recovery mode in your phone you can access it with ADB without USB debugging being enabled. So I entered recovery mode in my S5 then I connected it to my laptop, in my laptop I typed adb devices but nothing was shown. Does somebody know how to do it?
Is there any better solution?

You need a custom recovery already installed/flashed to access your data through recovery mode. If you did not do it earlier (before the event that smashed your screen) or if you don't understand what I am saying, than it means that recovery mode technique is a dead end now. Did you not use a Google account in your device and synced your data (including contacts) with your Google account? If you did, you can try finding them at contacts.google.com

Actually I did not install custom recovery before my screen got smashed. But I have 2 questions please, first how can install/flash a custom recovery in order to access my data through recovery mode? If the recovery mode technique is a dead end now, what can I do else?

Like I said, try the Google contacts route if you had sync enabled or at least a Google account added into your device. As for flashing a custom recovery, you can try searching for that on the web, but I wouldn't suggest going down that path. Not only do you have a broken screen which would frustrate the hell out of you when following tedious instructions, flashing recovery often require unlocking bootloader which would DELETE your data altogether, so proceed with the instructions elsewhere with extreme caution.

Is trying to unlock the screen code a good idea? (since when the screen is unlocked, you can access phone data on the laptop)

Does this answer your question? Enable ADB and/or change USB connection mode on Galaxy S7 w/ broken screen


text:
Broken recovery on Huawei Mate SE
So a while back I was trying to flash an unofficial TWRP recovery, and I ran into a bit of an issue. The process involved fastboot flashing a recovery partition that is unique to Huawei phones (something like recovery_ramdisk). Anyways, I essentially flashed an incomplete recovery that gets stuck in a boot loop whenever it tries to boot. To further complicate things, the phone will always try to boot to recovery after forcing it to power off. It always boots to this broken recovery regardless of other button combos or ADB commands (i.e. I can't get into download mode). The only way it boots to the system is when the battery drains to zero. It's as if a flag is reset when the phone drains to zero. It remembers to boot to recovery if I try to restart however.
My question is, is there a way to repair the recovery? Why does it forget to boot to recovery after it's battery expires, but then remembers after it powers on? Can I somehow get it into download mode? It's also running lineage 14 which I guess I flashed properly before TWRP.

on zero battery keep holding Volume Down and connect charger, that should bring you fastboot mode


text:
Cannot install ip webcam app on Nexus 6p
I'm trying to re-purpose my Nexus 6p as a webcam. I wanted to install ip webcam on it, but the app store is is telling me that my device is not compatible. On the play store the ip webcam app listing states that Android 4.0 and up is the minimum required (https://play.google.com/store/apps/details?id=com.pas.webcam&hl=en). My Nexus 6p is running Android 8.1.0. It seems like it should be compatible and should be able to install ip webcam, but still it does not let me.
Any ideas why this might be and suggestions to try?

Try clearing space on your mobile by deleting big files or apps. Less free space can prevent installation // Is this isn't the case try sideloading

One thing I forgot to mention was this phone was stuck in a drawer for over a year. Ended up I had to update all of the apps in the play store and I guess some system app was also updated along the way. after that it installed fine.


text:
Find out a list of all previously installed packages
I'd like to know if it's possible to find out what packages were installed on an Android device using ADB, for when the simple "My Apps" library in Google Play doesn't list everything I'm looking for.
If possible, a generic answer would be appreciated for future reference. In this specific case I'm looking to figure out which asset flip mobile game (out of thousands of similar clones) was accidentally deleted on an Android 8.1 phone.

If installed from Play Store see: How to export a list as Text of all Play Store Apps that I have ever installed

Use pm. pm command is a package manager which allows you to list, install, uninstal and disable your device packages.
adb shell pm list packages

should do the job.

Hello. OP wants to know about a package that is no longer installed in the system. PM commands don't give that information.

Then I have no idea is that even possible. System app apks are stored somewhere in /system even when you uninstall them from system, same with stock apps.  When you uninstall third party app by pm you can use -k switch and all data and cache of app won't be deleted. But as I said Android doesn't have any kind of "app history".


text:
How can I change pdf page color on Android?
I downloaded a few ebooks in pdf and I want to change the white pages to a color easier on my eyes. Adobe Acrobat's accessibility options seem to be missing on Android and I don't like inverted/night mode. Which apps let you change page color when reading pdf on your phone?


text:
Is it possible to use virtual camera on android phone?
Well i know it's possible via Emulators or vm , but my question is about  an actual android phone
is it possible to do something like manycam on windows ?
i've been searching internet for almost two days and can't find any useful information even either if it's possible or not

This question seems similar to: How to stream an image into camera source trough ADB?

The question is not clear.. I am assuming that you want to use your 1st phone's camera in 2nd phone(correct me if I'm wrong). For this you can use 1st phone as ip camera and with the 2nd phone you can recieve the footage sent by the 1st camera

@Aayush no buddy , i want to use a video as a camera input

the screenshots and description here looks convincing..  https://play.google.com/store/apps/details?id=com.visicommedia.manycam&hl=en   It seems to be a little complex to use

I only could do that on android emulator running on Windows system


text:
Turn off frp after reset
I have an Aspera Jazz 7.0 which had frp  turned on. Because of weird network issue, I had to reset it. But I forgot my account password and the phone number. I can go with a new account, but I can't turn off the frp . I tried fastboot. But can't hard reset it. How can I turn it off?

You can't... That is the point of Factory Reset Protection and there is a "duplicate" question about this very topic posted regularly. Marking as duplicate and noting answer.

Does this answer your question? How to bypass "Verify your account" (Factory Reset Protection)


text:
Recover phone data with a broken screen
Is it possible to recover data from my Xperia X whose screen is shattered(completely black). It's running Android Oreo and USB debugging is OFF. Unfortunately screen replacement is not available in my region for Sony Mobiles anymore :(

Is a pattern/PIN/password/fingerprint is set? Have you checked our broken-screen tag Wiki?

@Robert Ya, I have a pin set up

A PIN can be easily bypassed using an connected keyboard. As far as I remember the combination is RETURN  RETURN.

Yes. I am able to unlock the phone. But when I connect it with my PC, the default mode is "charging only". I have to change it to media transfer mode. How do I do it?

See Android key combinations and talk back mode https://support.google.com/accessibility/android/answer/6110948?hl=en

I tried this. I am able to unlock the screen. But nothing after that. Do we need to enable talkback ? On using those shortcuts, I hear nothing from the phone


text:
ADB Wifi loses connection when device's screen turns off - Realme 7 - Android 10
I work on Android Studio while using actual device for ADB using ADB over tcp/ip through command prompt (no additional software). But, this new device gets offline the moment screen turns off. I've tried turning off everything related to Battery Optimization or Wifi. Although, there's no such specific setting to let the Wifi awake after device sleeps like my old phone Huawei.
I'd also posted this over the official forum of Realme about a week ago but no one has replied so far. Link - Wifi gets turned off after screen lock - ADB issues.
So, Device's status in ADB devices goes to offline the very moment screen locks and then I've to do the process of ADB Wifi all over again and I don't want to use cable all the time because it affects battery through that 0.5/0.9 mA slow charging through motherboard. It is already slow enough that battery gets discharged even after continuous charging. I use ADB Wifi for more than 14 hours per day hence I need a stable solution.
So, my question is how to keep the device's Wifi on even after screen lock? I know it's device specific because of the custom changes to the ROM but I really need something.

adb disconnection might be related to a lock screen (adb disabled for security reasons). Alternatively is your device rooted? If yes you can disable charging on most devices so you could connect your device via USB without charging.

I have a windows batch file that just calls adb and touches the top left pixel of the screen once every 2 seconds. Leave that running in another command prompt window and your device will never sleep. One could do this with wakelocks and proper code and all that, but this method works (as long as there's not an active UI element at position 1,1, which there isn't usually. One could send a mouse-motion or something I guess but this works and is v.simple.
@echo off
:start
adb shell input tap 1 1
powershell -nop -c "& {sleep 2}"
echo | set /p="."
goto :start

I run the device farm in our company based on ADB wifi and I had similar problem.
I ended up with creating an app to keep wake-lock all the time to prevent device sleep (it has to have foreground service, otherwise it gets killed too, and it has to have turned off battery optimization for the same reason).
Now I am online nearly all the time.

Have you published your app or its source code?

Sorry, I cannot do this, as it was made during my work hours and hence it's property of the company I am employed in. But the app is pretty simple and shouldn't be hard for android developer to make his own.

It's a bug in the rom in some kinds of android devices, apparently.
This fixed it for me:
Link: https://github.com/Genymobile/scrcpy/issues/1382
Here's what you have to do:
Go to Usb preferences in developer options, and change it from "data transfer" or anything else to "no data transfer". Tell me if this fixed it for you! Sending this here for any onlooker.


text:
how to take android browser offline when my external ip changes?
My ISP only provides ipv4 ips dynamically. I have tracked them using a termux script and found that i can get back ips after reconnecting a couple of times.
Now what I want is to restrict my browser to a certain format of ips.
My idea:
Running a local simple proxy in termux and browsing through that. Whenever the connection gets lost, a script will shut the proxy and check the new external ip. will only restart the proxy when the format matches.
Now I am trying to figure out how to run a script whenever my data connection is lost ?
Please help me with your ideas regarding this or anything related to my main question. Thanks

Run a background service that executes curl checkip.amazonaws.com every few seconds.

but how do i pause a proxy. Can it be done using tinyproxy on android ?


text:
How to know that a installed app is 32bit or 64bit?
How to know that a installed application on my android is 32bit or 64bit version.

First of all, originally Android apps were multi-platform, hence all libraries were included for all supported platforms. Nowadays if the developer publishes the app as app-bundle Google only sends those partial APK to your device that match your device platform. Hence if you see an APK file named "armv8" it is 64bit, in case of an armv7[e] it is 32bit.

Possible dupe of How to tell what architecture an APK is intended for?

A pure Java app is neither 32bit nor 64bit. If it includes some pre-built native libraries, those are certainly. Extract the libraries from lib directory inside APK and use file command to check if it's 32bit or 64bit.

Lets take an example of pubg if I install it from playstore on android 10+ then 64-bit version get installed but if I install it on android 9 then 32 bit get installed. Now if i download it from official site which provide only one apk then how to know which version get installed on my android 10 since both 32 and 64 bit can be installed on android 10.


text:
How to (re)mount an FUSE partition and set (or change) its options, especially permission-wise?
Note: If you don't mind reading all these, jump to "The Questions" section.
The Actual Problem
I have write permissions problems with both my external (i.e. external SD card) and internal storages on my rooted Android box (i.e. it's ViperOS ROM, if it helps) (mounted at /storage), especially the external one. The behavior on terminal and GUI is, strangely, different.
(External storage  problem only) Using either Termux or internal Terminal app, when I try to do any write operations from a non-root user (e.g. create a directory, remove a file), I get "Permission denied" error (From a non-root ADB user, however, I never get errors). Storage permission is not a problem here, as it's granted.
Using GUI, the only problematic operation is removing directories (whether empty or not), and as a result, moving directories also (i.e. actually, they get copied, but the source is not removed). Even renaming directories is possible. All file operations are possible, too.
However, there's a different between where the problematic operation is done: from the laptop with phone connected to it, the operation fails; but from an app (e.g. default Files app) inside the phone (without any root permissions), it gets done, but it shows it failed (!).
What I Tried
These are all permissions problems (oh, really?!). To make things easier, I'll focus on external storage (i.e. external SD card) only. It is located (i.e. mounted) on /storage/9B6C-CF9F/.
Note: Because the results of ADB and internal terminal are somehow different, and it seems the results of internals are more reliable, so I'll post them instead. Also, keep in mind, # means the command is being run as root. Unrelated stuff is replaced with ....
Initially, I ran stat:
# stat /storage/9B6C-CF9F/
  File: `/storage/9B6C-CF9F/'
  Size: 8192     Blocks: 16  IO Blocks: 512 directory
Device: 19h/25d  Inode: 0    Links: 4
Access: (755/drwxr-xr-x)    Uid: (    0/    root)   Gid: ( 9997/everybody)
...

And immediately I realized that only root have write permissions on /storage/9B6C-CF9F/ (i.e. my external storage). Tried chmod. No errors. Worked? No. stat is the same as before, meaning no permissions was changed. Why?! I tried to figure it out:
# mount | grep /storage/9B6C-CF9F
/dev/fuse on /storage/9B6C-CF9F type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)

The problem is here: The mount point is of FUSE type, and I know little about it. So:
The Questions

How to (mount or) remount an FUSE partition, possibly with one or more specified options, especially permission-wise options (like rootmode), using mount command (on Android)?

How to find the location of the actual device behind that FUSE filesystem, in /dev/ directory (Is there any underlying device at all)?

Other questions:

(If you've read the past two sections,) Is there an alternative way to fix the mentioned permissions problem?

If root has only write permissions to my external storage, then how applications write data to it?

Notes

While I was reading the man-page of fuse on Fedora, I found that there are some FUSE mount options regarding permissions, like rootmode and umask. However, the problem is, I don't know how to mount it with these options, and how /dev/fuse knows where to find my external storage (or even internal).

There is a discussion on where Android's fstab is located. I have found it on my device, however, there is no line pointing to fuse type. The only related lines I could find are:
# cat /fstab.sc8830
...
# VOLD : fstab_dt_otg.sc8830
/devices/sdio_sd/mmc_host/mmc1*           auto         auto defaults                            voldmanaged=sdcard1:auto,encryptable=userdata
/devices/20200000.usb/usb*            auto         auto defaults                            voldmanaged=usb:auto
...

What does these mean? Are they related or not? I don't really know. Also, no file named fstab_dt_otg.sc8830 exists there (i.e. on /).

The external sd-card can only be modified by using Android's Java API. On Linux file level the external sd-card is read-only without root permissions.

To understand the role and functioning of FUSE in Android, read my answer to What is /storage/emulated/0/?. For external SD card part see How to save files to external SD card on a non-rooted Android? and Android's Storage Journey.

how about trying to chang the mask setting?
mount -t vfat -o umask=0000 /dev/block/mmcblk1p1 /storage/9B6C-CF9F

remember to change device block reference to your external sdcard

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