text:
ssh into android over usb: macOS
I have a Meizu M8 phone running android with Termux. I had set up ssh access to Termux over WiFi, but I want to be able to do that over USB because of possibly lower latency and higher speed. If I connect the phone to my macbook using USB, I can use adb to get shell or transfer files, so I think ssh over USB is possible. How can I achieve this?

SSH isn't aware of if you are connected over WiFi or USB. It just needs a IP/TCP network to work. Use the phone's new IP address assigned over USB tethering.

You can set-up a TCP port forwarding using adb (forward device port to a port on your mac). Then the SSH port would be tunneled through the adb (USB) connection. In the end you could connect via ssh to a port on localhost and end up on the device.

@Robert How would I do that?

@JoyJin if you are suing adb over USB, simply use adb pull and adb push or adbfs for data transfer. No need to use SSH. In my previous comment I though you are using USB tethering. // Port forwarding is explained here: https://android.stackexchange.com/a/207342/218526


text:
Where does Swiftkey store its data?
Does anyone know where Swiftkey stores its data for:
1.) the heatmap
2.) user custom word dictionary
Or even better, how would one go about finding this out (on a non-rooted device)?

Does this answer your question? Where Android apps store data?

@Robert isn't Swiftkey a Microsoft Product? I doubt data is only stored locally (at least, idk)

As Swiftkey is a keyboard application and therefore comes in contact with very sensitive user data (credentials, everything you type).
Therefore if you could access such data like heatmap or user custom word dictionary for a different app this would be a vulnerability of Swiftkey. Hence you should not be able to access any data of Swiftkey on a non-rooted device.
Also backup is disallowed for Swiftkey, hence you can't use adb backup to export the app data.
Therefore accessing such data is only possible from within the Swiftkey app itself. For example the Heatmap can be viewed and saved within Swiftkey (Keyboard -> three dots -> Settings -> Input -> Input Statistics -> Input heatmap).

source: Stack Exchange

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

sort: votes


text:
Max USB Webcam Resolution and Frame rate
What are the maximum resolutions and frame rates for USB camera that a Android device supports. I read that the standard is called as UVC (Universal Video Class).
Is this support dependant on the Android version? Would the type of connector make a difference USB-C vs micro USB?
The best resource I found was External USB Cameras
On that page its mentioned,

With support for webcams, devices can be used in lightweight use cases
such as video chatting and photo kiosks. This feature doesn't replace
typical internal camera HALs on Android phones and isn't designed to
support performance-intensive, complex tasks involving high-resolution
and high-speed streaming, AR, and manual ISP/sensor/lens control.

Also a list is given at the end of the articles regarding frame rates and resolutions as if they were extracted from some code so I'm not sure what they are and whether to consider them as definitive.
<!-- List of maximum fps for various output sizes -->
<!-- Any image size smaller than the size listed in Limit row will report
    fps (as minimum frame duration) up to the fpsBound value. -->
<FpsList>
    <!-- width/height must be increasing, fpsBound must be decreasing-->
    <Limit width="640" height="480" fpsBound="30.0"/>
    <Limit width="1280" height="720" fpsBound="15.0"/>
    <Limit width="1920" height="1080" fpsBound="10.0"/>
    <!-- image size larger than the last entry will not be supported-->
</FpsList>

ok,, thanks for pointing that out, I'm specifically looking for max limits though, for instance would a 1080p webcam successfully stream full frame video to a Android device? If so at what frame rate? Also what about camera resolutions larger than 1080p, eg. a 5MP camera.

It depends on the external camera provider specs.

From External USB Cameras  |  Android Open Source Project

The USB camera HAL process is part of the external camera provider that listens to USB device availability and enumerates external camera devices accordingly.

Webcams generally support USB video class (UVC)
drivers and on Linux, the standard Video4Linux (V4L)
driver is used to control UVC cameras.

Probably, what's quoted is typical or frequently found values but if you want specific information you would need to dig into the code of the device + camera provider.
As asked in the comments maximum limits can be gleaned from

the camera specs and codes

format used  (for example UVC format itself has multiple variations - see linked wiki above)

but whether the device uses full capability or not is the important point.
You would find tons of rooted means and Magisk modules that improve the camera performance with the same device and camera - it's only possible because ROM didn't build in those features.

Would this mean that I can connect a FHD (1080p) camera to a non-rooted android phone USB port and get video at 30fps?
Is there mechanism that the low level API's provide to get data from the USB port. Wouldn't there be upper limit for the USB 2.0 speed itself since it maxes out theoretically at 480 Mbps.

Sorry, I can't answer that - beyond my knowledge

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


text:
FitBit Charge 3 not connecting in new android Phone after previously synced with iPhone
I previously used FitBit Charge 3 on my IPhone 6S, After it was totally broken and damaged I bought a new Samsung Galaxy M30S Android Phone.
While setting up new device I can see the message tracker found, but the Connecting is not working and buffering forever.
I tried several options like turning off Bluetooth and on, reboot fitbit device and other mentioned in forum but no luck.
I contacted customer support and they say that since you already sync with iPhone first you need to unpair from iPhone which I cannot do as it is damaged.
They suggested restarting fitbit for pressing 8 seconds which also did not work.
They said sorry and could not replace the product as warranty expired.
Does anyone have any suggestions ?

Is there a Bluetooth Classic setting on the device? The bit about unpairing first is BS. Also, take a look on here https://community.fitbit.com/t5/Charge-3/bd-p/charge3 for threads of similar issues. There might be a solution within.

@spikey_richie I don't know about FitBit, but I know a device (Bluetooth card reader) which I use that can only be paired to a single device, so if it's already paired to a phone, other devices cannot pair to that device until it's unpaired.


text:
Auto update not working
I have Samsung Galaxy S9 with Android 10 up to date.
In my Play store I have enabled auto update feature and it's allowed to update through wifi.
I spend a lot time on wifi so I think it should work, but when I check updates in Play store there is always cca 20 application to update. I looks like it does not work. I always update manually and it takes lot of time because there are too many apps. What could be the problem?

Since it is well-documented that you cannot schedule Google Play Updates, WiFi needs to be enabled at all times, including when the screen is off, when most devices drop the connection. Look for settings to keep WiFi enabled when device is locked or sleeping. Be especially conscious that WiFi is also not shut down by battery or performance enhancer apps. Read through some of the questions in the tag 'application-autoupdate' you added to your question. Click the tag to drill through to them.

It sounds like you aren't giving Google Play services ample time to do its job.  :)
Auto-update is probably working fine.  Google Play is configured to update apps when your device enters a standby or doze state.  In other words, I bet your device will update apps if you plugged it in while connected to WiFi and left it alone for a little while.


text:
Why does my phone burn out USB cables when plugging them into my car?
I have an Oppo A73 phone, and over the last week it has started burning out USB cables (puff of smoke, cable no longer charges) when plugging it into my car (2015 Suburu Outback).
It had never done this previously, but I've lost 3 cables to it now. If the phone is plugged in before I turn on the car, it's fine, but if there's power in the cable when plugging it in... zap!
I'm assuming it's short circuiting against the phone's jack, but I don't know how to stop it happening. How do I stop it doing this? (And if you can suggest why it has suddenly started, that would be awesome too).

My wife's phone works just fine in the same car :(

Then it's best taken to a service center to fix. One can only guess why like you did

be prepared to lose your data

try keeping a lower voltage charging adapter and be careful, if the phone is creating smoke then there are chances that it may melt the steel charging pin


text:
Wi-Fi hotspot and internet connection
I bought a few days ago a Hauwei P30 lite, which comes with Android 9.
In my case, I often connect to the Internet via the mobile network. When I configure the smartphone as a Wi-Fi hotspot (tethering), the smartphone apps are not allowed any more to the Internet (while the external devices exploiting that same hotspot for Internet connection are). In other words, If I use the smartphone as a mobile 4G+ modem, then no Android app has Internet connection.
For example, after enabling the hotspot, my laptop connects flawlessly to the Internet through the smartphone hotspot, so I can open for example WhatsApp web, but I cannot use it because the WhatsApp app on the smartphone is not allowed to the Internet. I find that rather silly.
My old 3G smartphone with Android 4.2.1 provides a hotspot while at the same time allowing Internet navigation from the smartphone, so that the WhatsApp scenario described above works flawlessly.
The new smartphone with a 4G+ modem does not allow that. ????
For the record, I am settled in Italy.

it may caused by provider not allowing you to share mobile data which is controlled by APN settings in your Huawei device https://www.groovypost.com/howto/hide-data-usage-get-truly-unlimited-tethering-tmobile-one

Well, one of the system updates has upgraded my smartphone OS from Android 9 to 10.
And that has fixed the problem.
Now my smartphone can work flawlessly at the same time as a Wi-Fi hotspot for external devices while maintaining Internet connection for itself.
Well done! I hope some of the next system updates will not revert the situation. :-)

from reddit user PiGeek_314

Go into Settings > Wireless & Networks > Mobile Network > Access Point Name > and Delete the "Hotspot APN"

or this for AT&T

Enable developer mode (Go to Settings -> System -> About phone, and click on the build number until the developer mode is enabled).

Enable USB debugging under Settings -> System -> Developer options

Connect the device with a USB cable to a computer with the Android SDK platform tools installed

Start an adb shell
In the adb shell, type the following:
adb shell
settings put global tether_dun_required 0
settings put global tether_dun_apn "APNDUN,n.ispsn,,,,,,http://mmsc.mobile.att.net,proxy.mobile.att.net,80,310,410,,default,dun,mms,supl,hipri,fota,xcap"

another method is to edit build.prop
net.tethering.noprovisioning=true

Note: you need a rooted device for this
I am not sure how this solves your problem with losing internet connection. i have just copy & pasted this. other Huawei users claim this works. basically reason could be that different APNs exist and device (or just the app) is choosing the wrong entry

Interesting answer, however it does not solve my problem.
I do not have a tethering data limit problem.
My problem is that I cannot use my smartphone to navigate in the Internet while tethering is active.

yes i understood that issue, that's what other Huawei users claim too. some say slight different (some apps have access while most others don't have connection) and the above solution should fix some routing issue in AOSP build is translating the hotspot APN properly but not sending device data to phone APN. of course it depends on carrier. i have just googled this with keywords "Huawei+tethering+no+connection" maybe you should do your own research


text:
Run 32-bit ARM ELF executable on 64-bit Android
For various testing reasons, I need to run my own 32-bit ARM ELF executables on various real ARM Android devices (I can't use emulators). Because it is not easy to buy an ARMv7 device nowadays, I'd like to run the executables on 64-bit Android devices. However, all the 64-bit devices from various vendors I have access to refuse to run the executables with this message:

not executable: 32-bit ELF file

This means that the system can't run 32-bit ELF files, or it can run them but it is configured to refuse them. Is there any trick to make the 64-bit OS running 32-bit executables, just like 64-bit Windows or 64-bit Linux can run 32-bit executables?
I use the following steps to push and execute the file:
adb push printf /data/local/tmp/
adb shell chmod 555 /data/local/tmp/printf
adb shell /data/local/tmp/printf

This returns:

/system/bin/sh: /data/local/tmp/printf: not executable: 32-bit ELF file

the error message is misleading, it's another reason. download busybox and try busybox printf

@alecxs Can you be more specific please? When I rename my printf executable to printfx and run ./busybox-armv8l printfx from /data/local/tmp/, it says "printfx: applet not found" because it expects the parameter to be one of the functions supported by busybox.

Mostly ARM64 devices (processors) support 32-bit execution. But the opposite is not impossible either. Mostly 64-bit Linux/Android kernels are built to support 32-bit compatibility mode, but the opposite isn't impossible either. Details here: Could a 64-bit hardware device run a 32-bit Android version?. But try with some pre-built binaries to make sure that the problem is not with your static (or dynamic) linking, environment, permissions etc. What does ls -lZ /data/local/tmp/printf; file /data/local/tmp/printf return? Root? SELinux?

@alecxs Why do you think my executable is broken? It runs just fine on an armv7 device. Perhaps you misunderstand my question, I'm not interested in printf functionality. I named my executable "printf" just because it prints something to stdout.

@IrfanLatif On Nokia 8, no root, it returns "-r-xr-xr-x 1 shell shell u:object_r:shell_data_file:s0 138 2020-04-30 22:50 /data/local/tmp/printf" for the first command and "/data/local/tmp/printf: ELF executable, 32-bit LSB arm, static, stripped" for the second one.

idk, does busybox 32-bit run? then you need to recompile your binary with proper flags (maybe -fPIE and -pie)? or other instructionset also for dynamically linked the android API level does matter (which afaik can't set in other toolchains than NDK)

@MazeGen ARMv8 processors are backward compatible only with ARMv7. Your binary must be ARM v5/v6. Rebuild it for at least armeabi-v7a. See details here: https://android.stackexchange.com/a/208132/218526

@IrfanLatif Wow you're right, I don't understand how I could overlook it. Can you repost your reply as an answer?

This question was viewed many times and it deserves an answer:

ARMv8 processors are backward compatible only with ARMv7. Your binary
must be ARM v5/v6. Rebuild it for at least armeabi-v7a.

As correctly answered by Irfan Latif in the comments.


text:
Linux Deploy Ubuntu share folder
I wasn't sure if I had to ask this question on a Linux Exchange or on the Android one, but since folder sharing is working fine on the Linux that are running on my computer, I thought that it is an Android side issue.
I am trying to share a folder between two Linux Deploy environments. I have tried to install nfs-kernel-server however I am having an error showing that the kernel does not support nfs. When I am using uname -a the kernel that Ubuntu prints is the Android's one so I guess that the Android kernel does not support the nfs module.
I have, also, tried using Samba. The server side was set up successfully. When I am trying to mount the shared folder using mount -t cifs //192.168.1.5/mirror /mirror, I am facing a mount error cifs filesystem not supported by the system. After some googling I found out that using modprobe cifs could resolve the issue however the module cifs does not exist on the Android kernel. It seems that the issue in both cases the issue seems to be the Android kernel, is there any way to add nfs or cifs support to the Android kernel? If that's not possible how could I share a folder between two Linux Deploy environments?

isn't ssh an option to you?

For NFS client support build your kernel with confirmation options CONFIG_NFS_V[2|3|4|4_1|4_2]. For server support build with CONFIG_NFSD[_V[3|4]]. For CIFS build with CONFIG_CIFS[_SMB2]. If rebuilding kernel is not an option for you, use SAMBA simply like FTP, without mounting CIFS. Or go with rclone or SSHFS. Both rely on FUSE. rsync also works over SSH with better performance. SFTP and FTP are also considerable options. Occasionally I use all of them on Android devices.

@alecxs The issue with ssh is that it would be hard to set it up for more devices if that is required later on and that it is hard to make it realtime

@IrfanLatif is there any tutorial I could follow on how to build my android kernel with NFS support?


text:
how to fix extreme slowness of android 8.1.0 on "twist mini s431" hardware?
I have a twist mini s431 (512MB RAM, MediaTek MT6580 1.3GHz Quadcore) running Android 8.1. It seems this model is only sold on Brazil.
I was extremely unsatisfied because of it's slowness.
I read a lot of complaints about it but no solution.
I found a generic way that I will answer here.
Pt-br Keywords to help ppl here find this post: lento, trava, demora muito (other suggestions?)

(I must say that this below is not a perfect solution yet, as one or more of the disabled apps below made "goggle play store" stop working but I still have no idea which ones, therefore I ended unable to update apps... and had to reset them all... I will re-do disable slower to know what needs to remain enabled)
The answer is: you have to disable as many bundled applications as possible, including system applications.
This can be done by any user but WITH CAUTION!
As I understand it, you cant disable system applications related to the hardware like managing the sdcard, or related to the carrier, or things like bluetooth or wifi etc. I don't know tho if there are other special system applications that should be kept enabled (even if it is allowed to disable them). If you can give some more advisement about this, I appreciate it.
If anyone is interested on what I disabled, I will try to connect on it with adb shell to list all disabled applications, or at least specify what you shall never disable.
So my "twist mini s431" is not fast, but is finally usable now!
PS.: I would like to write all this also in portuguese and paste here as alternative reading, but I think it is not allowed, so use google translator if needed!

The list of packages I disabled (adb shell command), but I haven't booted it yet (I can't boot it w/o being sure it won't fail), so I am not sure this list is boot safe:
$ pm list packages -d
package:com.android.providers.calendar
package:com.google.android.onetimeinitializer
package:com.google.android.apps.mapslite
package:com.android.protips
package:com.android.htmlviewer
package:br.com.positivo.appstore
package:com.netflix.partner.activation
package:com.mediatek.omacp
package:com.android.vending
package:com.google.android.marvin.talkback
package:com.android.statementservice
package:com.vantera.cbwidget
package:com.google.android.apps.tachyon
package:com.google.android.apps.searchlite
package:com.google.android.apps.nbu.files
package:com.android.musicfx
package:com.android.chrome
package:com.google.android.gsf
package:com.google.android.ims
package:com.google.android.tts
package:com.android.calllogbackup
package:com.google.android.partnersetup
package:com.netflix.mediaclient
package:com.google.android.feedback
package:com.google.android.printservice.recommendation
package:com.google.android.apps.photos
package:com.google.android.calendar
package:com.mediatek.calendarimporter
package:com.mediatek.webview
package:com.google.android.apps.speechservices
package:com.google.android.apps.photosgo
package:com.google.android.apps.assistant
package:com.android.providers.userdictionary
package:com.google.android.apps.youtube.mango
package:com.google.android.inputmethod.latin

to see memory usage: adb shell dumpsys meminfo

The main reason for the slowness is the small RAM size. Therefore you have to reduce the number of apps active in background. Disabling apps only helps if this app starts automatically in background (at boot or a different condition). Apps that don't start automatically does not have to be disabled. In any way if you want to create a really helpful answer you should post the list of packagenames of pre-installed apps you have disabled without negative effect.

@Robert, thx, also the DeveloperOptions has RunningServices but it won't show all apps running as DeviceMemory:System=207,Apps=174,Free=92MB won't be the sum of shown list of apps. I wonder if there is some other way to correctly list everything bloating that small RAM? I will look on adb shell commands for it.


text:
Repartitioning Nexus 7 2012 (grouper) parted unrecognized disk label
I need to repartition my 2012 Nexus 7 (grouper) to create a bigger system partition so that I can install Lineage OS.
Here is the current partition table.

Unfortunately parted can't print the partition table because

unrecognized disk label

C:\Android\Nexus7_grouper>adb.exe shell
~ # ./parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Error: /dev/block/mmcblk0: unrecognised disk label
(parted) q
q
~ # ./parted /dev/block/mmcblk0p1
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Error: /dev/block/mmcblk0p1: unrecognised disk label
(parted) q
q
~ # ./parted /dev/block/mmcblk0p2
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p2
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Error: /dev/block/mmcblk0p2: unrecognised disk label
(parted) q
q
~ # ./parted /dev/block/mmcblk0p3
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p3
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p3: 682MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  682MB  682MB  ext4

(parted) q
q
~ # ./parted /dev/block/mmcblk0p4
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p4
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p4: 465MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End    Size   File system  Flags
 1      0.00B  465MB  465MB  ext4

(parted) q
q
~ # ./parted /dev/block/mmcblk0p5
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p5
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Error: /dev/block/mmcblk0p5: unrecognised disk label
(parted) q
q
~ # ./parted /dev/block/mmcblk0p6
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p6
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Error: /dev/block/mmcblk0p6: unrecognised disk label
(parted) q
q
~ # ./parted /dev/block/mmcblk0p7
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p7
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p7: 5243kB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End  Size  Type  File system  Flags

(parted) q
q
~ # ./parted /dev/block/mmcblk0p8
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p8
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Error: /dev/block/mmcblk0p8: unrecognised disk label
(parted) q
q
~ # ./parted /dev/block/mmcblk0p9
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p9
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
Model: Unknown (unknown)
Disk /dev/block/mmcblk0p9: 30.1GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  30.1GB  30.1GB  ext4

(parted) q
q
~ #

No success with fdisk either:
~ # /sbin/fdisk /dev/block/mmcblk0
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.

The number of cylinders for this disk is set to 954368.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/block/mmcblk0: 31.2 GB, 31272730624 bytes
4 heads, 16 sectors/track, 954368 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

              Device Boot      Start         End      Blocks  Id System

Command (m for help):

So: what can I do?!
Is this a known problem? Is there a solution? Or is there a workaround?
Update
Found some more disc tools: https://github.com/wangdaning/Static-Disk-Tools
~ # ./fdisk /dev/block/mmcblk0
Welcome to fdisk (util-linux 2.22).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

WARNING: GPT (GUID Partition Table) detected on '/dev/block/mmcblk0'! The util fdisk doesn't support GPT. Use GNU Parted.

Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0xa27bac20.

Command (m for help): q

~ # ./gdisk /dev/block/mmcblk0
GPT fdisk (gdisk) version 0.8.4

Unsupported GPT version in backup header; read 0x00000000, should be
0x00010000
Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.

Command (? for help): q
~ # ./sfdisk /dev/block/mmcblk0
Checking that no-one is using this disk right now ...
BLKRRPART: Device or resource busy
sfdisk:
This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.

sfdisk: Use the --force flag to overrule all checks.

~ # ./sfdisk -l /dev/block/mmcblk0

WARNING: GPT (GUID Partition Table) detected on '/dev/block/mmcblk0'! The util sfdisk doesn't support GPT. Use GNU Parted.

Disk /dev/block/mmcblk0: 954368 cylinders, 4 heads, 16 sectors/track
~ # ./gdisk -l /dev/block/mmcblk0
GPT fdisk (gdisk) version 0.8.4

Unsupported GPT version in backup header; read 0x00000000, should be
0x00010000
Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/block/mmcblk0: 61079552 sectors, 29.1 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 5DF0FD01-EBB2-48B7-A362-76A6CD811B21
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 61079518
Partitions will be aligned on 2048-sector boundaries
Total free space is 61079485 sectors (29.1 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
~ #

And this seems relevant, but I don't understand it.
https://github.com/Lanchon/REPIT/issues/79
Update: newer parted
From Irfan Latif's suggestion
~ # ./parted
GNU Parted 3.3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: /dev/block/mmcblk0: unrecognised disk label
Model: MMC HBG4e (sd/mmc)
Disk /dev/block/mmcblk0: 31.3GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
(parted) q
~ # ./partprobe -s
Error: Partition(s) 4, 9 on /dev/block/mmcblk0 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use.  As a result, the old partition(s) will remain in use.  You should reboot now before making further changes.
/dev/block/mmcblk0boot1: msdos partitions
/dev/block/mmcblk0boot0: msdos partitions
~ #

Try with new parted binary: https://forum.xda-developers.com/showpost.php?p=82737939&postcount=233 or gdisk: https://forum.xda-developers.com/android/help/how-to-boot-sd-card-qmobile-z8-bricked-t3712171

How did you end up resizing the System partition of your Nexus 7? I'm unable to do https://www.8bitmammoth.com/asus-google-nexus-7-custom-rom-android-7-1-2-2012-grouper-wifi-model-me370t/#comment-38227 until I figure it out. Thanks!

I haven't been able to re-partition; this question us still open.


text:
Android doesn't ask USB usage when connecting to Windows, works on Linux
Just out of the blue, my phone suddenly stopped asking permission to access storage. It worked yesterday. When I connect the phone with the same cable to Linux PC it works but Windows keeps telling USB device not recognized and I don't get a popup in Android asking for USB permission. There is also nothing in the notifications on Android.
I tried to disable always ask but it still won't show up. How can I make my phone always answering as a mass storage?

If it works with Linux and does not work with Windows, then the cause is most likely not on Android side. Check the Windows device manager if the Android MTP device is recognized at all and without exclamation mark.

It says "unknown device, try reconnecting the device if windows still doesn't recognize replace the device"....

Try uninstall USB drivers, re-install, reboot windows with device disconnected - usually this seems to help

I never installed any USB drivers..?

You haven't mentioned the device model, but Windows usually need OEM USB drivers to recognize the device. Further reading: https://developer.android.com/studio/run/oem-usb


text:
Data recover with broken screen
yesterday my beloved OnePlus 3T fell and the screen cracked :(
At first half of it was still usable and visible, shame on me for not recovering the data I needed at that time. now the upper half is still usable but completely black, also the battery died without me noticing so it turned off.
Now I'm stuck with the following situation: phone is turned on, but the pin is preventing me from logging in (I can't type the pin blindly as the bottom half of the screen doesn't get touch inputs), the pc doesn't recognize the phone beyond the driver "disk", so sending commands via adb it's not an option.
I tried booting in recovery mode with volume down+power and I think it got booted in recovery, but I don't remember If I can use the buttons to navigate it. I pressed volume down 3 times to move to english, pressed power to select english, pressed power to select "install from adb", pressed power to select "Ok". at this point I expected the phone to be visible (assuming everything is set up correctly on the pc) when running "adb devices" on cmd, but it doesn't. can anyone confirm that these steps are correct?
I'll later try an otg cable and connect mouse/keyboard as a last resort.
I'm running out of ideas, so if anyone has any idea on how to recover files (don't care about contacts and stuff) from the phone is more than welcome.

If your device is protected by a PIN/password, then the USB OTG keyboard is the way to go. After authentication via PIN adb should be usable again. Additionally you can check out or broken-screen tag wiki.

if you still can see something try to enable usb-debugging with OTG Keyboard. once you authorized adb you can use scrcpy to get full control

@alecxs unfortunately I can't see anything anymore

you need second device to figure out key sequence. first test on working device. then you can do it blind https://android.stackexchange.com/q/159551

@alecxs will try

turns out otg doesn't even work... I guess that's really the end :(


text:
How can I receive 2 video streams from 2 Android phones over USB tethering using IP Webcam?
For a Live DJ streaming setup (on a budget), I would like to be able to receive two or more video streams from two or more Android phones via USB tethering using the IP Webcam android application. It works with one phone, but when I try to add a second phone, I can't connect to it.
Both phones start a server on the same IP at port 8080. I can't change the IP address directly in the app, but I can change the port. I tried changing the port on one of the phones, but the connection is still not possible.
I can't seem to find if receiving data from 2 USB tethering sources, at the same time, is possible or not. So my first question would be the following: is it possible? And if yes, how could I start to solve this problem?
Thank you.

USB tethering is not necessary, just use adb port forwarding. It allows you to connect to  multiple devices via USB. On the PC you need Android Debug Bridge from Android SDK installed. On OSX the simplest way should be using brew and install android-platform-tools.
And on all Android device the development menu has to be enabled and the Debug Bridge mode has to be activated.
First get a list of connected devices via to get the device ID of each device.
adb devices

Example output with the two devices HABY39RL and DARY42EE:
List of devices attached
HABY39RL        device
DARY42EE        device

Next establish a port forwarding for each device:
adb -s <device ID 1> forward tcp:8080 tcp:8080
adb -s <device ID 2> forward tcp:8081 tcp:8080

Afterwards you can connect to the web cam app on the first device on the PC using the address localhost:8080 and on the second device using localhost:8081.

Thank you! It works perfectly!


text:
USB not working in Lineage OS 15
Nexus 7 2012 (grouper).
Was running stock ROM (4.4.4), could connect via USB (e.g., as MTP for file transfer) and use adb).
Installed Lineage OS 15 (8/O). (Couldn't install any GApps at all because the system partition is too small.)
fastboot works as it should when booted into the bootloader.
abd works when it's booted into recover.
However, adb does not work when the tablet is started up and running LineageOS.
Nor does it appear as a disc drive.
In fact it doesn't even appear in Device Manager.
Windows doesn't make its noise when the device is plugged in (it does make its noise when connecting it in the bootloader and in recovery).
Developer options enabled:

Android debugging is on,
Root access is ADB only,
Select USB Configuration is MTP.

It has to be something to do with LineageOS.
Any ideas?

Just to make sure, (re)install Google USB Driver? The GApps shouldn't be the issue though.

AndroidStudio says version 12 already installed.Removed and installed again and no change.

I have same problem when I install Lineage 14 try tablet on another fresh windows pc that this tablet never connected before if tablet worked in MTP. Then try this steps:

Go to Windows Device Manager
Check View hidden devices from view
Find installed drivers from tablet and uninstall them all.

This is demonstration gif:

Just installed Lineage 14 (N/7) and it's working normally, so it must be a problem with LineageOS 15 (lineage-15.1-20200522-UNOFFICIAL-grouper.zip to be precise).

Why voted down?


text:
App is obscuring a permission request settings can't verify your response, can't turn off Overlay
I need to use DroidCam in my phone and PC, it's an app that lets you use your phone cam as a webcam in your PC. Other programs don't work. Since my internet connection is really slow I have to use it via USB. Since my phone screen is mostly not responsive I have installed a pointer type overlay that "draw over other apps".
Because I have that app running, when I try to run DroidCam, it gives me the error message: "Because an app is obscuring a permissions request, Settings cannot verify your response".
But I can't disable my overlay, my mouse pointer, because then I wouldn't be able to use my phone or run that app.
Anyone comes up with a solution?

If you have connected your phone via USB and have ADB enabled you can control the phone using scrcpy

Thank you. This will help me out a lot. Please keep the solutions coming.

In your device's app settings, there should be a Permissions section.  Can you toggle the permission manually and then start the app?

Can't Matt because the screen is unresponsive, but thanks for the tip.

Community bump prevention: this question was closed because the question seems to have been abandoned (the OP hasn't visited Stack Exchange for more than 2 years and there's no comment/vote on existing answers). 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.

I tried all the straightforward options like turning off the ability for other apps to override, but none worked. Finally got around the problem by using the super power saving feature on my tablet that shut off all apps other than those selected. I selected the app I was trying to get the permissions to work for to be the only app running. Opened it, and was finally allowed to enable it without getting this message. Turned off the power saving mode so all other apps were available again, and my new app now seems to be working fine. Would love to know what app was causing the issue but just glad to have it solved.


text:
How to install new font on Android 10 and set it as default monospaced?
I'd like to change the default monospaced font on my rooted Android phone. This is because of things like this, where characters don't render correctly:

The rectangle is supposed to be the "ɒ" character. I know that it works with Deja Vu Sans Mono, so I'd like to change the monospaced font to that.
I've seen methods that change the system default font, but not specifically the default monospaced one.
Some more information:

Android 10, rooted
Oneplus 7


text:
How can I see which applications is reading the clipboard?
Upon reading TikTok says it will stop accessing clipboard content on iOS devices, I wonder: How can I see which applications is reading the clipboard?

If your device is rooted, and you use Xposed: XPrivacyLua shows such things (if an app has tried to access, and if so how often and what time last).

Use AppOps to get status of operation READ_CLIPBOARD like this: https://android.stackexchange.com/a/215658/218526

We can do some scripting with AppOps.
Create /sdcard/clipboard_history.sh:
for pkg in $( pm list packages | sed 's/package://' )
do
    ( appops get $pkg READ_CLIPBOARD; appops get $pkg WRITE_CLIPBOARD ) |
    grep -i time= |
    while read -r line
    do
        echo $line | grep ' allow; ' | sed 's/time=+//'
        echo $line | grep -v ' allow; ' | sed 's/time=+[^ ]*//; s/rejectTime=+//'
    done |
    sed 's/[0-9]*ms//; s/[:;]//g; s/_CLIPBOARD//; s/ago//g; s/$/& '"$pkg"'/'
done |
awk '{printf "%-10s%-14s%-20s%s\n",$1,$2,$3,$4}'

Run:
~$ adb shell sh /sdcard/clipboard_history.sh
WRITE     allow         19h48m7s            org.shadowice.flocke.andotp
READ      allow         2d1h46m12s          dev.ukanth.ufirewall
READ      ignore        26m16s              com.dv.adm.old
READ      deny          7h39m16s            com.google.android.gms
READ      foreground-R  1d2h43m6s           org.blackmart.market
WRITE     allow         6m48s               com.termux
READ      foreground    16s                 com.google.android.inputmethod.latin
READ      allow         1m17s               com.stackexchange.marvin
WRITE     allow         1m14s               com.stackexchange.marvin

Similar answer here: Is there a way to log calls to device vibrator?

Prior to Android 10, all apps could access clipboard by default without even asking for permission.
Apps actually need a permission (that is automatically granted) to read the clipboard: READ_CLIPBOARD (from XDA Developers) - thanks to Andrew in comment

In Android 10, See Privacy changes in Android 10,
access to clipboard is limited to OEM apps only that have READ_CLIPBOARD_IN_BACKGROUND permission, which are keyboards and "apps in focus" (not sure what latter means)

Unless your app is the default input method editor (IME) or is the app that currently has focus, your app cannot access clipboard data on Android 10 or higher

TikTok would need to ask and be granted the same signature as OS since this permission is Signature permission

The system grants these app permissions at install time, but only when the app that attempts to use a permission is signed by the same certificate as the app that defines the permission.

In this kind of context "app in focus" should mean the app that's actively in use and displayed on the screen. Classically in OS jargon & programming "in focus" is referring to whatever is currently capturing user input.

@l3l_aze My confusion is more with the question - does any app that has focus gain access to clipboard? Answer according to me is yes but not sure

Ohh, I think I'm with you now. Signature Permissions (Ctrl + f data sharing through permissions) says: it allows apps to share code & data provided they're both signed with the same public key certificate (which is generated by devs). These are attached to apps by apksigner, so I don't believe the signatures could be OEM to the OS and the app wouldn't be given the special BACKGROUND permission except maybe if it's pre-installed (but IDK personally). Any app with focus will have access by default, based on your quote above.


text:
Possible to recover app data from .asec file (SD card in Samsung) and move to new device (OnePlus)?
I have been using an Android app since 2014. Recently, I switched to a new device (OnePlus) and realized that the data backup was only till 2018. It was narrowed down to the data being stored in the old device's (Samsung) SD card. That is a challenge as the new device doesn't have an SD card slot. Now, I got a memory card reader, connected with my laptop, and transferred all the data but this.
New challenge:

There is no ".pc" file (default extension for the backup file) in the SD card's folder. This folder is empty and I couldn't identify any hidden files - \Android\data\com.popularapp.appName.
In .android_secure folder, we have this ".asec" file, which may or may not be useful.

Here are my questions:

W.r.t. #1 above, am I missing something? Should I look for the backup/data somewhere else ?
W.r.t. #2 above, since it is .asec file and the app needs .pc file for the backup (otherwise it throws error code 2116), is there a way to use this file to get the data for the missing time period ?

The app name is Period Tracker (https://play.google.com/store/apps/details?id=com.popularapp.periodcalendar)
If this is not the correct platform to ask the question, please direct me to the right one.
Any help would be appreciated. Let me know if further information is required. Thanks!

.pc file is not known android backup. asec containers are just apps, no backup

How do you know that the backup has been written to the external sdcard? Unfortunately for historical reasons the internal section also have an directory called sdcard but that is located in device flash chip.

@alecxs, all the backup files for this app have an extension .pc.

If the old device still works, and that app allows it, you could utilize adb backup and adb restore to transfer the app including its data. For use on-device, there's an app called Helium Backup using that mechanism, no root needed. Check our backup tag wiki for details.

only .pc files i know are pkgconfig_files if you ask for a specific app you should edit your question

@Robert, here is the scenario, let me know if you could tell me a way out - My old device's screen broke and I can't see anything. It switches on and off but I believe the USB debugging is not on so I can't access what's in there. At one point in time, the device was running out of the memory and I moved the app to the SD card. The bug and feedback team suggested that the backup could be in the SD card.

@Izzy, does it require USB debugging to be on? I tried adb along with Vysor (I guess). That requires USB debugging to be on. Plus, I cannot see anything on the screen. Doesn't even unlock.

there is no backup in asec container, its just the apk itself but not the app data https://android.stackexchange.com/q/221453

the files you are looking for are stored at folder PeriodCalendar/Backup on /sdcard

@alecxs, is that in Internal storage? If yes, is there a way to access that ( considering I can't see anything on the screen) ?

yes it is possible to flash modified system with adb enabled and init.d script which does copy RSA-key

update your question with phone model number and android version, maybe i can tell you solution then

@Namandeep_Kaur yes, it makes use of that. And you even need it once initially to activate the app if the device isn't rooted.

@Izzy fully hands-off method exist for old samsung devices, i have done this on SM-T113 with broken display (see Place your adb keys, configure USB debugging)

That looks interesting @alecxs – but sems no longer maintained (last release 2016, though last commit 2019). And not clear what devices are supported. But yes, if it works, no USB needed initially as the config can be flashed via recovery, if I understood correctly.

@Izzy limited to devices supported by cf-auto-root


text:
Is there a way to save this tablet from bootloop?
I have several generic tablets running Jelly Bean 4.2.2. Recently one of them started bootlooping out of the blue. Unfortunately, the tablets have proprietary, stripped versions of android and recovery. There are no options to data reset in recovery and adb recovery --wipe_data or adb --wipe_data do not work. The tablet in loop can be accessed by adb but services such as activity manager or package manager are not running. Following is the top of logcat for both an operating tablet as well as the looper.
Bootlooper
--------- beginning of /dev/log/system
I/RegionTag(  106): ----------------running drmservice---------------
I/RegionTag(  106): ----------serianno =X2QU82WEPG
I/RegionTag(  106): auto generate serialno,serialno = X2QU82WEPG
I/RegionTag(  106): detect keybox enabled
I/Vold    (   97): Vold 2.1 (the revenge) firing up
D/Vold    (   97): Volume flash state changing -1 (Initializing) -> 0 (No-Media)
E/Vold    (   97): ---------get mtd_name is user---
E/Vold    (   97): ------------find mtd name is user, num is 9----
E/Vold    (   97): ---------get mtd_name is user---
E/Vold    (   97): ------------find mtd name is user, num is 9----
I/Vold    (   97): Call notifyStateKernel No.1 in the file of VOlume.cpp
D/Vold    (   97): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold    (   97): Volume udisk state changing -1 (Initializing) -> 0 (No-Media)
E/Vold    (   97): Start Misc devices Manager...
D/Vold    (   97): Volume flash state changing 0 (No-Media) -> 1 (Idle-Unmounted)
I/SystemServer(  360): Entered the Android system server!
I/SystemServer(  360): Enabled StrictMode logging for UI Looper
I/SystemServer(  360): Waiting for installd to be ready.
I/SystemServer(  360): Enabled StrictMode logging for WM Looper
I/Installer(  360): connecting...
I/SystemServer(  360): Entropy Mixer
I/SystemServer(  360): Power Manager
I/SystemServer(  360): Activity Manager
I/ActivityManager(  360): Memory class: 64
I/UsageStats(  360): Deleting usage file : usage-20110101
--------- beginning of /dev/log/main
D/dalvikvm(  360): GC_CONCURRENT freed 404K, 11% free 4277K/4776K, paused 2ms+2ms, total 12ms
D/dalvikvm(  360): GC_CONCURRENT freed 404K, 11% free 4277K/4776K, paused 1ms+1ms, total 9ms
D/dalvikvm(  360): GC_CONCURRENT freed 404K, 11% free 4277K/4776K, paused 2ms+2ms, total 12ms
D/dalvikvm(  360): GC_CONCURRENT freed 404K, 11% free 4277K/4776K, paused 2ms+2ms, total 12ms
D/dalvikvm(  360): GC_CONCURRENT freed 404K, 11% free 4277K/4776K, paused 2ms+2ms, total 12ms
D/dalvikvm(  360): GC_CONCURRENT freed 404K, 11% free 4277K/4776K, paused 2ms+2ms, total 11ms
D/dalvikvm(  360): GC_CONCURRENT freed 404K, 11% free 4277K/4776K, paused 2ms+2ms, total 12ms

Working tablet
--------- beginning of /dev/log/system
I/RegionTag(  106): ----------------running drmservice---------------
I/RegionTag(  106): ----------serianno =J1VQXV9RYH
I/RegionTag(  106): auto generate serialno,serialno = J1VQXV9RYH
I/RegionTag(  106): detect keybox enabled
I/Vold    (   96): Vold 2.1 (the revenge) firing up
D/Vold    (   96): Volume flash state changing -1 (Initializing) -> 0 (No-Media)
E/Vold    (   96): ---------get mtd_name is user---
E/Vold    (   96): ------------find mtd name is user, num is 9----
E/Vold    (   96): ---------get mtd_name is user---
E/Vold    (   96): ------------find mtd name is user, num is 9----
I/Vold    (   96): Call notifyStateKernel No.1 in the file of VOlume.cpp
D/Vold    (   96): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold    (   96): Volume udisk state changing -1 (Initializing) -> 0 (No-Media)
E/Vold    (   96): Start Misc devices Manager...
D/Vold    (   96): Volume flash state changing 0 (No-Media) -> 1 (Idle-Unmounted)
I/SystemServer(  370): Entered the Android system server!
I/SystemServer(  370): Waiting for installd to be ready.
I/SystemServer(  370): Enabled StrictMode logging for UI Looper
I/SystemServer(  370): Enabled StrictMode logging for WM Looper
I/Installer(  370): connecting...
I/SystemServer(  370): Entropy Mixer
I/SystemServer(  370): Power Manager
I/SystemServer(  370): Activity Manager
I/ActivityManager(  370): Memory class: 64
I/SystemServer(  370): Display Manager
I/ActivityManager(  370): Enabled StrictMode logging for AThread's Looper
I/SystemServer(  370): Telephony Registry
I/SystemServer(  370): Scheduling Policy
I/DisplayManagerService(  370): Display device added: DisplayDeviceInfo{"Built-in Screen": 600 x 1024, 57.727 fps, density 160, 177.2093 x 168.89351 dpi, touch INTERNAL, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, rotation 0, type BUILT_IN, address null}
I/SystemServer(  370): Package Manager
I/PackageManager(  370): Need to read from backup settings file
W/PackageManager(  370): Cleaning up settings file /data/system/packages.xml

what about fastboot mode? is bootloader locked?

reboot bootloader = black screen no input reboot recovery = one option press power to reboot but you can use adb

adb in recovery? you can cat /proc/partitions and format biggest one (should be userdata) mke2fs -t ext4 /dev/block/mmcblk0p99

Unfortunately, the tablet does not have root access only shell, the native mke2fs is in sbin directory and access to it can only be done by root. So, I tried moving a copy of the binary to /data/local/tmp and running it from there but I get what I expect is the same problem with using wipe, that being, no permissions for the /data partition. Anyway this was the actual error when I tried:
shell@android:/data/local/tmp $ ./mke2fs -t ext4 /dev/block/mtdblock6
mke2fs 1.41.14 (22-Dec-2010)
mke2fs: Permission denied while trying to determine filesystem size


text:
High battery usage (no wifi no apps no wireless)?
I've noticed that I lose about 20% battery each hour while my phone is unattended and offline.  I check the battery settings and find that no apps are running.
The phone is rooted, and I'm wondering what kind of cleanup I can do in terms of searching for viruses and botnets and doing some kind of deeper inspection of battery usage?
Samsung galaxy s10+
--UPDATE--
I'd like to start looking for botnet that would survive a successful re-rom: any methods of doing so would be greatly appreciated.  I've been receiving "unauthorized network" errors while in airplane mode.  This is an intermittent issue.  I am trying to find a forum or a community where issues like this can be discussed.  I've taken comprehensive logs at various suspicious cross periods.  One of four nights I receive these issues, for example.  I vigilantly reproduce steps to be sure that each night the conditions of the phone are the same: turn all apps off, restart the phone, put it into airplane mode, turn the screen off, leave it unplugged.

You can install Better Battery Statistics and check for app /Wakelock/alarms causing the drain. That could be the first step. Also check for Wakelocks

This answer has more details

Thank you.  Some progress: "island" wasn't working properly and it seems turning apps on and off was causing a lot of rapid battery drain.  I'm concerned about spyware that would survive a re-rom, primarily, still.  And I still get intermittent rapid battery drain, although removing the island app temporarily has helped.  Not able to get island working properly, unfortunately.  Wondering how I would check to see if a hidden network is attached to my phone?


text:
Call someone automatically after receiving an app notification
I'm fairly new to android, I just want to know if it is possible to implement a feature on an app that when you would receive a push notification it will call a specific number or send a sms.
Ive been searching through this site and what I found most similar to this it involves clicking on the notification so that it makes the call afterwards but not right away automatically as soon as you receive notification.
So the objective would be something like this: a cellphone or tablet is awaiting for a push notification from an app at night when it  receives push notification it sends a sms or call to another cellphone which could be mine or someone else, is ti something doable that call intents can do this automatically without you having to interact with the device that will receive the push notification?

Possible by [tag:automation]. Try with MacroDroid. Set up a macro like this, test and revert

To understand how MacroDroid works , see  answer here

Hi and welcome, note that app development is off-topic since Android Enthusiasts focuses on end-users or power-users (but not necessarily developers) solving their issues, so we will only provide solution from end-users' point of view, e.g. using automation apps or specialized 3rd-party apps.

Did you try automation?


text:
What is this bunny icon, next to my internet usage speed?
A weird bunny logo has been appearing next to my internet speed lately, and I have no clue what it is.
Also, I don't use any kind of VPN.
I have tried googeling, but there isn't anything like that.
I own a Xiaomi redmi note 8 pro

Bumpidy Bump, need to get this up

Hello Rasmus. Can you give us the full high quality screenshot instead of a cropped one? That icon is already very small and zooming on it kind of pixelates it. If some of us would want to crop the icon (as it is in the current image) further for reverse image search the accuracy of the results would probably suffer a lot. Also, do tell us which Android version  and MiUI version you are using.

don't be scared


text:
Whatsapp backup and restore not working (Tested both local and google drive) - Bluestacks
How to do a whatsapp local backup and how to restore whatsapp using local backup.
I followed the steps mentioned in https://www.business-standard.com/article/technology/how-to-back-up-restore-whatsapp-chat-history-using-google-drive-storage-119072500591_1.html#:~:text=To%20find%20the%20local%20backup,folder%20inside%20the%20WhatsApp%20folder.
How to restore WhatsApp backup using microSD card

If you remove WhatsApp for any reason and install it again on the same device, the instant messenger notifies about the existing local backup and takes your permission to restore messages from it. Follow the steps below in case you switch to a new device and seek to restore WhatsApp chat history from local backup:

Step 1: Insert a microSD card in your old phone, if it has a slot

Step 2: Go to the phone’s file manager

Step 3: In the file manager, locate WhatsApp folder in root

Step 4: Copy the WhatsApp folder and transfer it to the microSD card

Step 5: Eject the microSD card safely and insert it in your new phone, if there is a slot

Step 6: Download and install WhatsApp on a new phone. Set it up and then uninstall it

Step 7: Replace the WhatsApp folder in your phone’s internal storage with the one saved in the microSD card

Step 8: In the file manager, navigate to sdcard/WhatsApp/Databases

Step 9: Rename the backup file you want to restore from msgstore-YYYY-MM-DD.1.db.crypt12 to msgstore.db.crypt12. It is possible that an earlier backup may be on an earlier protocol, such as crypt9 or crypt10. Don't change the number of the crypt extension

Step 10: Download and install WhatsApp again and select the option to restore the whatsapp data from "Google drive". But this time it will identify your local backup and notify if you would like to restore from it instead of visiting Google drive.

In case the old phone or the new phone does not have a microSD card slot, copy the WhatsApp folder from your phone’s internal storage on a desktop. Perform the step 6 mentioned above before transferring the folder in the new phone’s internal storage. Once you transfer the folder, perform Step 8 and onwards.

I have an Android device (actually I am using Bluestacks Android emulator but I expect the process to be the same). I have setup WhatsApp on this device. Now I want to move to another device. So I did a whatsapp local backup using WhatsApp -> settings -> Chat backup -> Backup
Now I manually copied the WhatsApp folder in the Andoid file system which has the folders Backups, Databases, Media
Now I manually transferred these folders and then installed Whatsapp on new Android device using the same phone number. But when I open Whatsapp in this new device, then I only see the option to restore from Google drive backup but not from local backup. So I clicked Skip but then I dont see my chats
What is the process to successfully backup and restore whatsapp data locally using Android emulator?
Edit:
I think there is an issue with the Whatsapp backup I am using. For example, the Whatsapp folder that was restored from Google drive is detected properly by whatsapp when I copied it to local storage. But the Whatsapp backup that I copied from Bluestacks is not detected I dont know why
Edit2:
I have opened whatsapp from my old Bluestacks device and backed up all whatsapp data to Google drive. Now in the new Bluestacks device I selected the Google drive account to restore the backup. But whatsapp is still not able to restore my chats etc. So this is probably a Bluestacks issue where I am not able to move the whatsapp backup from one device to another if I am using whatsapp on Bluestacks
So it looks like the whatsapp backup taken from an Android phone can be imported into Bluestacks. But the whatsapp backup taken from Bluestacks is not detected anywhere so I will loose the chat history, but atleast media is available in the whatsapp folders which I copied from my old Bluestacks device's Android file explorer.

Yes, I tested both local manual transfer and Google drive and found that the whatsapp data backedup from Bluestacks is not working for restore
But atleast I found that nox(used the version 3.0.3.0) app player Android emulator works fine. I tested the whatsapp backup and restore using Google drive and local manual transfer and both work fine
Additionally if one wants to know how to
Transfer files from nox Android emulator to MAC and vice versa,
Enable Root access in nox app player by selecting settings icon at top right corner of the nox app -> Switch ON the root. Then there is a common share folder which is accessible from both MAC and also nox Android emulator,

In nox the common share folder is at:- Open the Amaze File Manager (Tools folder on nox app player Android emulator home screen -> Amaze) and go to /root/mnt/shared

In MAC the common share folder is at:- Go to /Users/Username/Library/Application Support/NoxAppPlayer/Nox_share

Now to transfer files from nox to MAC:-
From Phone(/Storage or /emulated/storage/0) folder if we want to copy something to /root folder(Accessible to both Phone and MAC) then we can only copy files (or zip files as well) and not folders so zip the whatsapp folder (using AstroFileExplorer+Winzip software because somehow winzip is not detected in Amaze File Manager) and copy the zip file from /Storage to /root/mnt/shared using Amaze File Manager

Then in MAC we will have the files already at the common share folder location

P.S:
The issue I have with nox Android emulator is that it does not detect the MAC touchpad scrolling. I need to click on screen using mouse cursor and then scroll the screen like a touch screen. https://www.reddit.com/r/noxappplayer/comments/g1qp7b/touchpad_on_macbook_pro_with_nox/
Also nox app player is not able to access the camera. So I cannot open web whatsapp for example because I need to scan a photo of the barcode using whatsapp app with a camera
https://www.reddit.com/r/noxappplayer/comments/bmv8pl/problem_cant_connect_to_camera/


text:
Android control battery charge programmatically
I'am using a Linage Android image (rooted) to control the battery charge and discharge with the commands:
Charge:
echo 0 > /sys/class/power_supply/battery/batt_slate_mode

Stop charging:
echo 1 > /sys/class/power_supply/battery/batt_slate_mode

The problem that after sending the command to charge, the charge type changes from "AC charge" to "USB Charge" and the current level drop to less than 500mA. I am connected AC power outlet.
If I disconnect and connect again the power outlet the current goes to 1A.
Reading the following article bellow some devices are a file to change the voltage (/sys/class/power_supply/battery/voltage_max), but mine doesn't have.
https://www.androidpit.com/forum/770904/root-battery-life-improve-battery-life-by-reducing-the-charge-termination-voltage
The picture show the files that I have on the folder:

Samsung Tab E 7.0 SM-T113NU
Android 7.0.1 - Linage 14.1
App and ADB rooted
Best regards,

I would suggest you to try the Magisk module mentioned in answer here, it's far easier than trying to figure it out yourself. Slate_mode is messy in the sense it doesn't seem to work as expected always//If you are keen to do it your way only, this answer may help

Hi,
I'm using the ACC Magisk as recommeded. The problem persist. Even i connect to the power outlet it appears "USB Powered" with slow charge. I've tried change the current and voltage but doesn't work either.
dumpsys battery
AC powered: false
USB powered: true
Wireless powered: false
Max charging current: 0
Max charging voltage: 0
Charge counter: 0
status: 2
health: 2
present: true
level: 86
scale: 100
voltage: 4100
temperature: 320
technology: Li-ion

Go to ACC app forum on XDA and search for the Telegram group. Post your details in Telegram to get a quicker reply from developer. Samsung does some funny stuff and he can answer best


text:
How to get drivers for Android support of USB webcameras for Streaming Apps?
I know there are applications that allow you to do videos through applications, for instance USB Camera - Connect EasyCap or USB WebCam, but it does not allow you to use the USB camera in Streaming applications such as Google Meet.
It is known since 2017 that standard Android API does not support them: the thread How to open usb camera in android using android.hardware.camera.external's answer:

There's currently (as of Android O) no common USB camera support on
Android devices via the standard camera API.
Some Android manufacturers do have their own support for USB cameras,
but it's hard to know what devices do and what don't.

So I think the only way to have USB camera in all streaming applications is to have driver support for USB cameras in Android.
I need the feature because of Corona pandemia, and have a need to stream while driving etc, and there is no phone that can have sufficient streaming video quality.
I know the project External USB Cameras, but it seams that you need to root your phone to do it, which I have not done.
I have not seen any attempt for the implementation of USB cameras in Linux kernel. I think the Linux should first have the support before android API will get it. Debian's Webcam article here, Package libv4l-0.
Phone: OnePlus 6T.
Android: 10, newest.
USB camera: Logitech C922 Pro HD Stream Webcam.


text:
APN Settings: What Does Each Setting Do?
An Access Point Name, APN, is a gateway between mobile networks and the public Internet.
I've done research, and there's not much online about what the individual settings are or do.
This is what I've managed to figure out so far, listed in the order they appear on an Android phone.
Settings in bold I do not have a good answer for. Please tell me the setting's "full name" and what it does. If you know of a site that lists these out and describes them please share it. Thank you!

Name: User given label that doesn't actually affect anything. It can be anything.
APN: Stands for Access Point Name I guess? Usually, this is a short single word and ALL CAPS for some reason. No idea what this does.
Proxy: Is this for using a regular proxy server or something mobile specific?
Port: Port for the proxy? 80 by default?
Username: Credentials to use the carrier.
Password: Credentials to use the carrier.
Server: Found out this is for a WAP Gateway Server - kind of like a proxy except that it also translates/decodes web pages.
MMSC: A URL to send MMS messages to? What does MMSC stand for?
MMS proxy: Why does there need to be a proxy? Why not just send it to the MMSC directly?
MMS port: Why is this here, won't it always be 80?
MCC: Mobile Country Code - I believe this specifies to the cell phone towers which network to default to. Why would they need to know this?
MNC: Mobile Network Code - tells the towers what carrier is being used?
Authentication type: Port to send the Username & Password over?
APN type: So instead of IP port numbers mobile networks use "port names" to specify the data type. So if you put "default,mms" then those communication protocols will be used. Correct me if I'm wrong, please.
APN protocol: Whether to use IPv4 or IPv6.
APN roaming protocol: Roaming is using another carrier company's service. This specifies what IP type to use when doing so.
APN enable/disable: For when multiple APN's are on the phone. Allows one to pick a certain configuration.
Bearer: What does this do?
MVNO type: Mobile Virtual Network Operator - a reseller carrier that uses one of the larger (AT&T, Sprint, T-Mobile) carriers. This option can be either None, SPN, IMSI, GID, or ICCID. Tells the major carrier what the reseller is I think.
MVNO value: The number given to the reseller?

Interesting question but I don't think it's explicitly about Android. May be https://networkengineering.stackexchange.com is a more appropriate place for this.

First post, I'll look into how to move it. Thank you!

Found this as part of a search that lead me here:
Name (APN)
A user-chosen name to apply to this APN configuration. This name has no effect at all on the connection, and is only used as a label.
APN
Specifies the Access Point Name (APN) your device should quote when communicating with your carrier. The APN is a short string of text.
Proxy / Port
Optional fields for specifying an HTTP proxy to use for all web traffic over this connection. No longer usually required for most carriers.
Username / Password
In rare cases your carrier may require a username and password in order to access data. Usually left blank.
Server
WAP Gateway Server, a feature not usually used in modern smartphones and devices. This field should usually be left blank.
MMSC
Details of the Multimedia Messaging Service Center to use for sending and receiving of MMS messages.
MMS proxy / MMS port
HTTP proxy details to be used only for communicating with the MMSC to send and receive MMS messages.
MMS Protocol
Specifies the protocol that your device should use for sending and receiving MMS messages. Usually does not need to be modified.
MCC / MNC
Specifies the carrier network that the APN configuration should be used for. Stands for Mobile Country Code and Mobile Network Code.
Authentication type
Method used to supply your name and password to the server for your data connection. Usually not used.
APN type
Specifies which types of data communication should use this APN configuration. Different types of communication may use different configurations.
APN protocol / APN roaming protocol
For devices that support IPv6 networking, this specifies whether to enable IPv4, IPv6 or both. This can be set independently for home and roaming networks.
APN enable/disable
When having multiple general purpose APN configurations, allows you to choose which one is currently enabled.
Bearer
An optional field allowing you to exclude this APN configuration based on the communication technology (eg LTE, eHRPD) currently being used.
Mobile virtual network operator type / value
Restrict use of this APN to certain MVNOs (mobile network resellers) or subscriber accounts.
Mobile virtual network operator type / value
Restrict use of this APN to certain MVNOs (mobile network resellers) or subscriber accounts.

Most of the major configuration is hard programmed into the sim. The only difference apn info makes I'd for reseller ultility that least thier service from another utility and thus have special apn settings for the tower.


text:
Fastboot commands doesn't work on Amazon Fire tablet
I've got an Amazon Fire 5th Generation tablet that I want to boot TWRP on, but when I do fastboot boot n:/twrp.img, I get this:
Sending 'boot.img' (7946 KB)
OKAY [  0.265s]
Booting
FAILED (remote: 'the command you input is restricted on locked hw')
fastboot : error: Command failed

Might be because I need to unlock the bootloader? If it is, how?

I'm getting the same error on an Amazon Fire HD 8 8th gen when trying to unlock the bootloader, so unlocking the bootloader isn't a way around it.


text:
Unbrick Unlocked Huawei P10 - SOLVED

I messed around with my phone (Huawei P10 VTR-L29) and unfortunately bricked it.
what happened
To give you the whole story, I tried to root it, but during the root process I found out that the device is encrypted so I had to "rollback". That worked fine and my phone was working ok with one issue - I wasn't able to update firmware via regular system updates. I saw the update, but wasn't able to download and install - it always ended up with some error.
That made me decide to reinstall the firmware from scratch. I followed general steps but yeah, I messed up.
current status
The only thing I can see now is

When I click on download latest version and recovery

But after a while it fails:

And I am stuck :( I can't get any further .. I tried to connect via ADB (but since I cannot get in the phone to enable USB Debugging (which might be the problem) I am unable to connect (nor ADB neither FASTBOOT can see the device).
I tried to create this file:
/etc/udev/rules.d/51-android.rules

But when I run
sudo adb kill-server
sudo adb start-server
adb devices

It's still empty ... I can't even get to the "FACTORY RESET" by pressing and holding POWER + VOL:DOWN for some time; it always brings me back to the Huawei eRecovery
Do you guys have any idea how to fix this?
Or is that phone dead for good?
I don't care about the data inside.. I would only love to make it work again
EDIT
with the help of alecxs I made it to the fastboot&rescue mode

however this
sudo fastboot boot [img]

ends up with
downloading 'boot.img'...
OKAY [  1.052s]
booting...
FAILED (remote: Command not allowed)
finished. total time: 1.056s

similar for
sudo fastboot flash recovery [img]

ends up with
target reported max download size of 471859200 bytes
sending 'recovery' (32040 KB)...
OKAY [  0.995s]
writing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: 1.001s

EDIT2:
I asked as well one of my friends and we moved on a bit more ...
I tried to unlock the bootloader
sudo fastboot oem unlock [unlock_code]

Then I got this screen:

I went with the option (2) and that brought me to the first screen mentioned in this article "Huawei eRecovery"
but when I repeated  the VOL:DOWN + USB:CABLE:PLUG trick :) I got this

I tried a different TWRP (for P10 specifically) from this link: XDA Devs - P10 TWRP
Flashing worked fine:
sudo fastboot flash recovery_ramdisk twrp_p10_0.1.img

I got:
target reported max download size of 471859200 bytes
sending 'recovery_ramdisk' (24954 KB)...
OKAY [  0.771s]
writing 'recovery_ramdisk'...
OKAY [  0.232s]
finished. total time: 1.003s

after
sudo fastboot reboot

right after this command, I need to unplug the USB cable and hold VOLUME:UP to be able to get to TWRP (swipe.d to allow modifications) ... am there already

now I am looking for any ROM for my P10 to flash it. I want to try this one: TheUpgradeGuide.com - Pixel Experience
I downloaded the gApps and ROM ... uploaded it to the "Internal Storage" of the phone (there was a folder TWRP so I put it next to it)
.
..
/TWRP
rom.7z
gapps.zip

Went on wiping -> WIPE -> ADVANCED -> checked these

Dalvik Cache
System
Cache
Data

swiped to wipe (uplugged USB) .. but got this error:
Updating partition details ...
Failed to mount '/odm' (Invalid argument)
...done
Failed to unmount '/system' (Device or resource busy)
Full SELinux support is present
MTP Enabled
Failed to unmount '/system' (Device or resource busy)
Wiping Dalvik Cache Directories...
--Dalvik Cache Directories Wipe Complete!
Formatting Cache using make-ext4fs...
Wiping data without wiping /data/media ...
Done.
Failed to unmount '/system' (Device or resource busy)
Unable to wipe /system.
Updating partition details...
Failed to mount '/odm' (Invalid argument)
...done

EDIT 3
in the  adb shell
~ # mount
rootfs on / type rootfs (rw,seclabel,size=1457112k,nr_inodes=364278)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
none on /config type configfs (rw,relatime)
/dev/block/bootdevice/by-name/secure_storage on /sec_storage type ext4 (rw,context=u:object_r:teecd_data_file:s0,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
hdb on /dev/usb-ffs/hdb type functionfs (rw,relatime)
/dev/block/bootdevice/by-name/system on /system type ext4 (ro,seclabel,relatime,data=ordered)
/dev/block/bootdevice/by-name/vendor on /vendor type ext4 (ro,seclabel,relatime,data=ordered)
tmpfs on /storage type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
/dev/block/sdd46 on /data type f2fs (rw,seclabel,relatime,background_gc=on,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,verify_encrypt,active_logs=6)
/dev/block/sdd46 on /sdcard type f2fs (rw,seclabel,relatime,background_gc=on,user_xattr,inline_xattr,acl,inline_data,inline_dentry,extent_cache,mode=adaptive,verify_encrypt,active_logs=6)
/dev/block/sdd13 on /cache type ext4 (rw,seclabel,relatime,data=ordered)

plus the ls output
~ # ls -ld $(find /dev/block -name by-name)/*
drwxr-xr-x    2 root         root              1020 Jan  4 18:02 /dev/block/bootdevice/by-name
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/boot_a -> /dev/block/sdd32
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/bootfail_info -> /dev/block/sdd14
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/cache -> /dev/block/sdd13
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/cust_a -> /dev/block/sdd43
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/dfx -> /dev/block/sdd19
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/dts_a -> /dev/block/sdd34
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/fastboot_a -> /dev/block/sdd24
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/frp -> /dev/block/sdc1
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/fw_hifi_a -> /dev/block/sdd28
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/fw_lpm3_a -> /dev/block/sdd21
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/hisee_fs -> /dev/block/sdd18
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/hisee_img_a -> /dev/block/sdd23
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/isp_boot_a -> /dev/block/sdd26
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/isp_firmware_a -> /dev/block/sdd27
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/misc -> /dev/block/sdd15
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/modem_fw_a -> /dev/block/sdd36
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/modem_om -> /dev/block/sdd7
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/modem_secure -> /dev/block/sdd3
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/modemnvm_backup -> /dev/block/sdd9
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/modemnvm_factory -> /dev/block/sdd8
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/modemnvm_img -> /dev/block/sdd10
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/modemnvm_system -> /dev/block/sdd11
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/modemnvm_update_a -> /dev/block/sdd38
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/nvme -> /dev/block/sdd4
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/oeminfo -> /dev/block/sdd5
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/patch_a -> /dev/block/sdd39
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/persist -> /dev/block/sdc2
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/product_a -> /dev/block/sdd42
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/recovery2_a -> /dev/block/sdd30
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/recovery_a -> /dev/block/sdd33
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/reserved1 -> /dev/block/sdc3
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/reserved10 -> /dev/block/sdd17
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/reserved2 -> /dev/block/sdd16
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/reserved3_a -> /dev/block/sdd22
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/reserved4_a -> /dev/block/sdd37
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/reserved5 -> /dev/block/sdd45
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/rrecord -> /dev/block/sdd20
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/secure_storage -> /dev/block/sdd6
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/sensorhub_a -> /dev/block/sdd31
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/splash2 -> /dev/block/sdd12
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/system_a -> /dev/block/sdd44
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/teeos_a -> /dev/block/sdd29
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/trustfirmware_a -> /dev/block/sdd35
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/userdata -> /dev/block/sdd46
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/vector_a -> /dev/block/sdd25
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/vendor_a -> /dev/block/sdd41
lrwxrwxrwx    1 root         root                16 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/version_a -> /dev/block/sdd40
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/vrl -> /dev/block/sdd1
lrwxrwxrwx    1 root         root                15 Jan  4 18:02 /dev/block/platform/ff3b0000.ufs/by-name/vrl_backup -> /dev/block/sdd2

Ok, with the help of alecxs I managed to get a bit further (see the chat) but it seems like the TWRP is faulty (the one from the link above -> XDA).. nonetheless, any other TWRP is not working at all and I am landing on this screen instead :(

EDIT 4:
output of fastboot getvar all is here:
getvar:all FAILED (remote: Command not allowed)

EDIT 5:
see the output of the fastboot commands requested in the chat
#sudo fastboot oem get-bootinfo
...
(bootloader)  unlocked
OKAY [  0.006s]
finished. total time: 0.006s

$ sudo fastboot getvar vendorcountry
vendorcountry: hw/eu
finished. total time: 0.007s

$ sudo fastboot oem get-build-number
...
(bootloader) :VTR-L29C432B151
OKAY [  0.007s]
finished. total time: 0.007s

$ sudo fastboot oem oeminforead-SYSTEM_VERSION
...
(bootloader) :VTR-L29C432B151
OKAY [  0.008s]
finished. total time: 0.008s

SOLVED
Finally, I made it and the phone is up and running :)
I downloaded Huru Updated (v0.3)
and these files
https://huaweidl.com/download/huawei-p10/vtr-l29/b151/
Followed these steps:
https://www.getdroidtips.com/hurupdater-tool/
and yaaaay, it works :) after months of playing around ... big thx to alecxs for his immense help !!! this guys is a genius !!!
the only question now is to get from Android 7 (the stock I flashed) to 9.1 (the most updated one provided to p10) ... bec the native system update does not offer me an update :D but that's minor ..
EDIT:
ok, following this manual xda-developers - Jannomag I was able to upgrade to 8.0 (with a little hiccup - just had to manually restart it multiple times) and then to 9.0 (no problem at all this time) and right after 9.0 it offered me (via system update) automatically the newest 9.1.0.263

Let us continue this discussion in chat.

SOLUTION
Here is what I have done to make it work ...
I downloaded HuRu Updater (v0.3) and these files https://huaweidl.com/download/huawei-p10/vtr-l29/b151/
Followed these steps: https://www.getdroidtips.com/hurupdater-tool/
and yaaaay, it works :) after months of playing around ... big thx to alecxs for his immense help !!! this guy is a genius !!!
the only question was to get from Android 7 / EMUI 5.1 (the stock I flashed) to 9.1 (the most updated one provided to p10) ... bec the native system update did not offer me an update
but by following this manual xda-developers - Jannomag I was able to upgrade to 8.0 (with a little hiccup - just had to manually restart it multiple times because the phone was not rebooting as expected and somehow got "stock") and then to 9.0 (no problem at all this time; smooth) and right after 9.0 it offered me (via system update) automatically the newest 9.1.0.263
The only thing left is that I have an unlocked bootloader and cannot seem to be able to lock it again with
fastboot oem lock [unlock_code]
FAILED (remote: Command not allowed)

fastboot oem relock [unlock_code]
FAILED (remote: root type is risk)

but that's minor ... I will try to look for a way to do that .. and if successful, I will update this answer with the final steps to get back to "stock"

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

yes - that one :) thx

i recommend to keep bootloader unlocked for emergency purposes, this way you can still boot twrp from fastboot

that's right...it's just the annoying screen while booting hehe ... as I said, it's a minor and I won't probably bother with that...


text:
SELiunix Change in Knox enabled phone
Hello every one I have problem to change my Phone SE from "Enforcing" mode to "Permisive" to use my USB Joystick on my phone, my phone is A72018(Rooted) but with Knox security. I used an app called "SELunix changer" it apears Permisive mode enabled but when I use USB/BT Joystick its says it is still on enforcing mode
Is there any app recomnded to change to Permisive mode or any recomnded app to use USB joystick with Enforcing mode?
Thank You

You will need to flash a Kernel that supports SELinux permissive

if your device is rooted with Magisk in addition to the enforcing samsung kernel please note permissive mode is deprecated. instead magisk module developers must add custom sepolicy rules


text:
Why applications doesn't show up in "open with" list?
Let's say, if I download image file from mobile browser, opening it leads to the "open with" window where i see all of the installed gallery apps to choose from.
however, there are other apps (i.e. upwork messenger) from where if i download the image file, while opening it, there doesn't show up any image editor/gallery aps, instead quite unrelated apps (i.e. ms word or pdf viewer shows up) so i just can't open images...
what could be the reason for that and how to force apps (i.e. image apps) everywhere to be shown up when opening the image files.

Android 10 bought about an important change regarding apps accessing data, which is a good thing for privacy. Quoting from answer

Before Android 10, any app could read or write any files to external storage (the place where apps store their data), if they requested the READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions. Starting from Android 10,apps can only access data created by them and not other app's data or common data like images, downloads etc.

This means access to external storage apps need to access it using Storage Access Framework (SAF) . SAF isn't new, it's been around since Android 5.0 but many developers didn't want to use it since it was not developer-friendly

The messenger app you are using isn't seeking  permissions through SAF, so it can't show "open with" options.

Install Local Storage app to overcome this limitation. From app description

Local Storage uses the new Storage Access Framework to allow other applications to read or write any file in your primary storage and read from secondary external storage devices.


text:
After mounting / instead of /system now phone not booting system
I used mount -o rw,remount,rw / command instead of mount -o rw,remount,rw /system now system not booting, please help. Every time restart and boot into fastboot but now system. TWRP working.
Infinix hot 8 android 10
i was trying to copy certificate file to ssytem/etc/security/cacerts so run remount command.

https://android.stackexchange.com/search?q=ext4+dedup


text:
Microphone goes mute on Pocophone F1 when opening any game while in a phone call
Using Xiaomi Pocophone F1 (MIUI 11.0.8 Global). I abruptly go into mute when I boot up any games while in a normal phone call. This doesn't happen in other apps.
I tried denying microphone permissions for the game (Phone permission wasn't required in there). Experienced this issue in Call of Duty Mobile, Head Ball 2, etc.
Does Game Turbo have anything to do with this issue? I can still hear them while gaming, whereas I'm muted until I exit the app.

Yes, I too have that problem. I disabled Game Turbo and calls are working fine.


text:
How to get my Note 9 to read aloud incoming email ONLY from one specific Gmail account?
Any way to do this? Tried various apps but they read out all email accounts. Want to setup my phone to read incoming emails out loud from one specific user too if possible.

@beeshyams with my eyes. need way to listen to incoming email from one of my gmail accounts. waiting for important email but can't have phone stuck to me 24 hrs a day. need the subject line & body read aloud.

FairEmail
since version 1.1254 released on 17 Jul 20, allows you to read out aloud  mails from selected sender(s).
A big shout out to Marcel, the developer who accepted this feature request and implemented it. I have tested it thoroughly over the last few days (I had a test version much prior to the formal release) and it works faultlessly for me.
Here is how you do that :
Create a rule:
Go to the inbox of your primary account, long press → Edit rules and tap on the + icon to create a new rule.

Set order to 1 (lower the order, higher the processing priority). Make sure the rule is enabled.

In the Sender Contains  enter email address of the sender.

In the Recipient Contains enter email address of the recipient.

Type and not copy-paste email addresses (at times copy-paste has invisible blanks which can break the expected behavior)

Leave Subject Contains blank.

Select Action as Text to Speech

Press Check setup. If it says OK, you are set up, else install voice data(TTS engine).

automation approach had mixed results. You can read about them in previous version of the answer
Notes

You need the paid version of FairEmail.

The rule should be created in inbox folder of the recipient account.

At the cost of repetition, leave the subject on the rule blank

This is for one sender. If you want this action for more senders, you need to create more rules as explained. You need to create one rule per sender (tip: you can long press a rule to copy and edit, instead of starting all over again) .

The mail text that is read out is limited to the text that is contained in the notification text, that is 500 characters (Android limitation of notification text size). IMO, this is more than enough to get the message in full most of the times (unless it's a very long mail).

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


text:
Android lock screen bug after system files deleted
I accidentally deleted some system files ( I was on adb connection) .
And lock screen stopped working right after.
The issue is that,
I have a lock pin/pattern/password, but system says, it's not correct password.
I changed my password with removing password files from system, and set a new password. But the error was same, incorrect password.
I tried to flash ROM, but it didn't help.After flashing ROM , abd and TWRP broke too, because of the password issue.
Also I can't add custom ssl certificates, because the password problem .
Samsung Galaxy s7, Android 9 with Hyper ROM (Galaxy Note port).
What should I do to repair my system files?

If you have access to the /data/system folder you should delete

password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal

all of them who existing.

I removed them to cancel lock screen, but I have to set a password for adding custom ssl certificates. So, I need that.

if you delete this files you can go to settings and set a new password

Dear friend, I already know my password. The issue about password checking mechanism.

After I set a new password, it throwing same error; incorrect password.

Did you try a dirty flash?, or if you know which files you deleted on hyper rom you can try to extract them from the flashable zip and replace them.

I tried dirty flash, it wasn't worked. I don't know the missing files. Also I have 31 gb backup on my device...

Then try something like that: make Data Backup with twrp then make a clean flash and try to restore Data Backup, if this also breaks the mechanism then try with the migrate App from XDA

can you suggest mtp hackup tool from pc? because i haven't enough space in my phone. and windows mtp file transfer also throwing error with big size folders.

you can try it with something like this adb backup -all or holo backup i think this can backup apps too, but no warranty.

i cant use adb too, i think it because authentication problem. I'll try holo backup

try it with this, this should solve your adb problem temporarily how-to-solve-adb-device-unauthorized-in-android-adb-host-device

I tried all steps twice but i'm still getting adb: device unauthorized.

Seems /data/ encrypted, in twrp.


text:
Can't see Android Emulator when apparently it already is running
I am trying to start learning how to develop Android apps, and I tried to make a new project and navigate through Android Studio. I tried using the Emulator by creating a new virtual device and running my new test project with it, but no matter what i seem to do it never actually does anything once I click the "Run" button on both the AVD Manager and the main one you see on the top right area of Android Studio.

I keep seeing this after i try to click the Run button again after not seeing anything happen. and i can't seem to delete any of the files this is pointing to since Windows keeps complaining its being used by another application even after I close Android Studio and terminate adb.exe
I've been looking around for an answer and i've found things like "Uncheck Enable ADB Integration", or "Changing the Emulated Performance Graphics to Hardware/Software", but a lot of these answers are from threads that are 3+ years old so I don't think these are applicable anymore. can someone provide some insight to how to get this working? I am using Android Studio 3.6.3
PS: I want to make it clear that even after i restart my pc and delete these so called "*.lock" files, this changes absolutely nothing
EDIT: As requested here are some screenshots that hopefully answers some questions I was being asked.
My PC specs:

Android Virtual devices i have set up so far:

my installed SDK Tools:

As for the BIOS Virtualization question, if "Intel Virtualization Technology" is the same thing then yes it seems to be enabled for me

Please edit your question and add more details e.g. what emulator image you have chosen,what CPU your system has, have you enabled Virtualization in your BIOS, have you installed Intel Haxm or the "Hypervisor driver for AMD" package provided by Android SDK Tools? If you are a non-commercial user you can try Genymotion emulator. It works very well and is simple to use.

Am i not limited to Android Studio's emulator? Is it possible to use Android Studio purely for writing/compiling reasons and an external emulator like this so called "Genymotion" an, option? Never the less I will update my question to contain answers to your questions

For Android Studio it does not make any difference if it is a real device, an emulated device from SDK emulator or a Genymotion emulator. They all are just ADB devices.

following Robert's advice I opted to install a copy of Genymotion Personal Edition and linked it to Android Studio via the Genymotion Plugin that was available to install.
see here for installing: https://www.techbeamers.com/genymotion-emulator/
If you do not see an additional icon pop up like described in the page then you will want to (in the case of versions around 3.6.3) enable the Toolbar via View>Appearance>Toolbar
This seems to at least link up fine for me with Android Studio, but overall does not really answer the question as to why the emulator via AVD does not function.
If no one seems to be able to share that knowledge, then I suppose will pick this one as the best answer.
Thanks to Robert again for mentioning Genymotion.


text:
Can Doogee Y9 Plus run AR apps?
I have recently bought a Doogee Y9 Plus. As I found out, the phone does not have a compass or gyroscope.
I wanted to ask if the phone could still use AR apps. The phone isn't rooted, but I might even do it.

According to this it has the following sensors: Proximity, Light, Accelerometer, Gyroscope, Fingerprint

Well it doesn't work on the phone itself. Here is a photo: link


text:
Is it possible to use Recent Apps to close all open apps less the one I want to stay open?
I have a scenario, or many, where I end up opening a ton of apps, and later on want to close them all at once, but keep 1 or 2 open. As an example, I use WhatsApp at home, and as we all know you cannot use the web portal without the app on your phone being on. So ideally I would have wanted to be able to use the Recent Apps feature of Android to close all apps, less say those selected as 'keep on.' And then if I really wanted to close them, I could then go into Recent Apps and manually close them.
Is there perhaps an app would allow me to script such a task, or any other solution?
I'm running Android 10 on a Galaxy A71 5G
Thanks in advance.

From the recent apps panel, select the app you want to lock, for example Chrome.

Press the 3 dots menu (above the Chrome panel) to show the lock option. Lock it.

and the small lock symbol shows up.

Now the app is locked and cannot be swiped away to dismiss the app. To unlock follow similar steps. You can clear unwanted apps by manually swiping away.
Alternatively, you can use apps such as Kill Apps, which allow you to customize the list of apps to be killed. Such apps are not usually recommended as Android manages memory space efficiently and such task killers can cause more harm by abruptly killing running apps.
See Recents Screen-Android Developers for more information.