text:
Three semicircles on top os screen Android pie?
Everytime i open my menu on my asus zenfone max m2 stock android these three semicircles appear on the top at random does anyone has a clue what are these?

Looks like overlay from some app. You should check the apps for which you have granted the "Draw over other apps" permission.

Just figured it out pal t'was actually a bug in my phone these are icons of the dock which appear at the top

@TheGalagaGuy looks like you found the solution to your question by yourself, which is great! Feel free to post it as a proper answer since self-answering is not only allowed but also encouraged!.


text:
Wifi router disappearing after disconnecting rom VPN In Android
Every time I use a VPN and disconnect from it my Wi-Fi router disappears from the Wi-Fi network list.
This happens on my Android Pie phone and tablet.
I can see all other routers but not the router I was using. After I do forget the Wi-Fi and manually enter SSID and password it doesn't bring up the router. It comes back after a long time on its own.
This is not a problem with my Wi-Fi router because I can connect to it in my Windows 10 laptop and Ipad
Please help.

Does it reappear after turning WiFi On/Off on the Android device?  The issue is definitely the mobile device, but if WiFi On/Off does not resolve, it would be more beneficial to seek help on the XDA Developer Forum due to the fragmentation of Android caused by OEMs and carriers.

No it doesn't reappear after turning Wi-Fi on/off.

source: Stack Exchange

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

sort: votes


text:
OnePlus 6t bootloop
My OnePlus starts with its normal android animation of the two dots revolving around the red dot but however the two dots freeze and after some time restarts again.
I downloaded the stock rom version 9.0.16 and tried to flash it using fastboot update /path/to/mystockfile.zip but it says
--------------------------------------------
Bootloader Version...:
Baseband Version.....:
Serial Number........: 1f1887f2
--------------------------------------------
archive does not contain 'android-info.txt'
fastboot: error: could not read android-info.txt

That must be a recovery flashable zip, not meant to be flashed through fastboot.

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


text:
Access Apps without unlocking
I have many different apps that require security, so I obviously do not want to leave my phone unlocked.  However, when using Map My Run or other apps, it is incredibly difficult to unlock the phone when I have to access the app (especially after running 5 miles and winded).
Is there a way to make some apps accessible without having to unlock the phone?

An app only can mark itself to be shown on top of the lock screen. In detail there is the flag FLAG_SHOW_WHEN_LOCKED respectively the method setShowWhenLocked that allows to mark a certain activity/screen to be shown on top of the lock screen.
This allows to use the screen without having to unlock the device. However this has to be done by the app itself. External apps can't enable this.
If your favorite apps does not support this feature you can ans the app developers if they add this feature.
And also the Android system does not allow to mark apps to shown above the lock screen. May be because this would cause a serious problem: With the app shown on top you can't unlock the device and therefore can't change back the "app on top" setting so that your device reverts to the regular state.
Alternatively there are ways to temporarily disable the automatic device lock (Google calls it "automatic unlock"). This can be achieved e.g by defining a trusted Bluetooth device that acts as a "key". If the key is next to the phone it does not lock.
See more details here: https://support.google.com/android/answer/9075927?hl=en

You can certainly unlock the phone while an app is running (like Google Maps works while the phone is locked). Using the fingerprint reader to unlock the phone will show a small popup when trying to unlock on my S9+ and will unlock the app switcher for example.

Camera app can work on the locked android phone and displays icon in bottom corner! Not sure how to add more apps like that!


text:
Bluetooth media buttons don't work when phone is locked
I have bluetooth headphones (Anker) which include a play/pause button. This button only works when the phone (Nokia 3.1) is unlocked.
How can I enable bluetooth media buttons to work when the screen is locked?

Is this behaviour noticed for a particular app you are using to play music? Maybe that app is getting dozed - try removing that app from battery optimization

How? I can't see per-app stuff in the battery section of the settings

I am on Android 10. You need to locate battery optimization in settings -  similar to this https://www.techrepublic.com/article/how-to-remove-android-apps-from-the-battery-optimization-list/

This is better - https://dontkillmyapp.com/

Also if you are using any battery saving apps, disable or uninstall them


text:
Is it possible to extract App Reviews from the google play store by countries?
Is it possible to extract app reviews from the google play store by countries? I know that this is possible for the apple app store but haven't seen any possibility for the google play store yet. Maybe someone knows how to find a way to see the country of origin for specific reviews and not only the language.
Thank you!


text:
How to disable the OTG (USB) on Android 9?
I want to disable the OTG (USB) on Android 9. I coud control it on Android 6 by disabling a permission on the file android.hardware.usb.host.xml located in /system/etc/permission but it is not working anymore on Android 9.
Any idea?

Duplicate of: How to disable USB OTG on Android 8.1?

Follow the steps below:

Open the Android settings, touch the menu button and select Settings or Android     Settings from the menu that appears.
Then on the Settings screen, you will show many different settings broken down under different categories. Scroll down the list of all the settings and touch Storage when you find it.
In the Storage settings, you will find the option to Unmount USB storage near the bottom of the screen – then select this option to start the unmounting of OTG (USB) storage devices connected to your phone via OTG or USB cable.
You will be shown a confirmation screen -  if you really want to unmount the USB storage. Touch OK to continue and unmount the OTG storage.
After the OTG storage has been successfully unmounted in Android, you can remove the OTG cable from your Android device without worrying about any data loss.

Question is about disabling, not temporarily turning off.


text:
How to find if the processor has hardfloat
My mobile got MSM8953, App, Droid info says:
Instruction Sets: armeabi-v7a, aremeabi
CPU Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm aes pmull sha1 sha2 sha3 crc32

How to say it got hardfloat or not?

vfp, vfpv3, vfpv4, vfpd32 all say it has hardware support for floating-point: https://developer.arm.com/architectures/instruction-sets/floating-point. Btw, MSM8953 has 64-bit CPU architecture (ARMv8-A), not 32-bit (ARMv7-A): https://www.qualcomm.com/products/snapdragon-625-mobile-platform

So the tuple that describes the processor build system should be armv7a-unknown-linux-musleabi or armv7a-unknown-linux-musleabihf?

Firstly, that question cannot be answered without getting further information. Secondly, development related questions are dealt at https://stackoverflow.com/. This site is meant for end users.

OK, I'll ask at stackoverflow.com


text:
How to turn off CPU cores on Samsung Galaxy A8?
I need to turn off CPU cores in order to make energy measurements of sets of cpu cores in isolation (meaning that I want to run an application on a set of cpu cores and turn off the cpu cores that are not in the set). I looked at the documentation on the android linux kernel source and it says the following:

Q: How do i logically offline a CPU?
  A: Do the following.
#echo 0 > /sys/devices/system/cpu/cpuX/online
  Once the logical offline is successful, check
#cat /proc/interrupts
  You should now not see the CPU that you removed. Also online file will report
  the state as 0 when a cpu if offline and 1 when its online.
      #To display the current cpu state.
#cat /sys/devices/system/cpu/cpuX/online

But when I write 0 to the online file, it still reports the CPU as being online even with superuser permissions and marking the file as writable (chmod +w).
I imagine that the kernel is enabling the cpu again after I disabled it. Also I did not try to turn off CPU 0 because in the same documentation it says that it's not removable in some architectures, this behavior is happening on other CPUs.
Do I need to rebuild the kernel in order to enable the cpu hotplug or is this an architecture specific problem? Maybe my cpu doesn't support hotplugs.
What I've tried by now

Writing to /sys/devices/system/cpu/cpuN/online with a rooted device. (echo "0" > ./sys/device/...../online)
Changing the kernel to a custom one and trying the step above again. (Kernel installed was Quantum Kernel)
Using kernel adiutor to turn off the CPUs on the CPU tab (this turns off the CPU for a while then it turns back on again)
Using su on adb shell to change file permissions on sysfs (chmod 664 /sys/devices/...../online) and then trying to write to it.

Device Information
Model: Samsung Galaxy A8 (SM-A530F)
Android Version: Android Pie (9)
Kernel: Quantum Kernel V4
Kernel version: 4.4.111-Quantum_pie.V4.0-A530F
Processor: Samsung Exynos Octa 7885
Architecture: aarch64
EDIT: Forgot to mention that my device is rooted.

This helps on Galaxy-S7:
echo 0 > /sys/devices/system/cpu/cpuhotplug/enabled
echo 0 > /sys/devices/system/cpu/cpu0/online


text:
Android-x86 8.1 in VMWare Workstation doesn't show GUI
I installed android-x86-8.1-r2.iso 64 bit version in VMWare Workstation 15.5.0 under Win10x64 1903.
It starts into the linux command line prompt, and I tried Alt+Fx, there is no GUI. I tried all four boot menu(normal/debug/debug nomodeset/debug VIDEO=LVDS...), all the same.

The solution is like @xavier_fakerat's answer in https://android.stackexchange.com/questions/171562/android-6-0-x86-64-bit-boot-stuck-at-rootx86-64-on-windows-hyper-v

To switch to GUI, please ensure that you have 3D acceleration turned on in VMWare Machine Settings.
If you still cannot see the GUI, try Alt+F7

Now the command line promt will continue to become a black screen with a non-flashing cursor, Alt+Fx has no response. What possiblly next?

Have you ensured that your virtual machine has been allotted adequate  graphics memory?

4GB RAM with 1GB GMEM for the VM, not working. Set the VDisplay to 1024*768 not working too. 4K60 monitor driven by NV1650 GPU.

Try running 'startx' in terminal.

It turns out that it not the GPU problem, it is still the menu.lst problem which I used before for Andorid-x86 4.2

I have also encountered this problem but managed to solve it by selecting the graphics card manually in VMWare mahcine settings.


text:
How can apps tell that they are running on a rooted phone?
I've heard that some of them refuse to run on rooted devices.
One might think that a rooted device would be able to present itself as a non-rooted one. Is that not so?

Most of them use SafetyNet. See https://android.stackexchange.com/a/161454/96277

@Firelord detecting su binary is more straightforward. Though SafetyNet provides additional integrity checks in one place, like bootloader unlock status, CTS certification, custom ROM etc. So is more preferable for developers.

There's a competition going on between both parties. Rooting solutions (particularly Magisk) have gone too far to make sure AMAP to hide root existence from apps which don't like it. It involves hiding modifications during boot, watching zygote & manipulating apps' mount namesapces. OTOH Google built a standalone service in Play Services (gms.unstable / SafetyNet) which does its best to detect root presence. So far the first party seems to be dominant but in fact it's very hard (or impossible) to hide root presence at least from native Android processes which are themselves running as root


text:
Is it possible to use 5Ghz OTG WiFi adapters on Android?
My phone is Xiaomi Redmi 6A. I cannot detect 5Ghz WiFi on my phone. Is there a way to use an external 5Ghz WiFi adapter(connected via OTG) to add 5Ghz WiFi capability? My phone is rooted, and I am ok to make modifications/ install drivers to support the adapter.

There are several videos on youtube showing how to do this with other products. Basically you need to be root to manually create the network interfaces, a prerequisite you have already, and then you would need the ARM source code for the device to make a kernel module (essentially the driver) which would be a but tougher. Even with that, other questions here, all unanswered, seem to show this is a much more complex task then it appears. Here is one example: https://android.stackexchange.com/questions/214579

Thanks. I cannot seem to find any videos on YouTube though, could you show me one?

https://lmgtfy.com/?q=USB+OTG+wifi+android&s=g


text:
Phone still stuck in a bootloop after flashing official firmware with Odin!
I successfully flashed a stock ROM on my Galaxy Note 4 using Odin 3.13.1 but, unfortunatelly, the bootloop is not gone.
Device info:

SM-N910C
unrooted
Android 6.0.1 Marshmallow

Bootloop sequence: Samsung boot screen —> Android is starting... Optimising Apps 2 of 2. —> Android is starting... Starting apps. —> LOOP
What are my options to restore my personal data from now on?

Hoping that you have not wiped your data while flashing firmware using Odin, the process of data retrieval can be variably difficult. The best way I can think of is to flash a custom recovery on your device then mount desired partitions.
PS I have no information whether your phone is rooted or not, so just providing the most workable way.

Wouldn't flashing anything other than the stock ROM wipe out the data anyway? Or custom recovery is something different?

Custom recoveries, when flashed correctly, only overwrite the recovery partition.

I see. Do you have any recommendations?

@Rayhunter Recommendations regarding recovery? TWRP.

Will unlocking the bootloader wipe out my personal data? I was left under the impression that it actually did. If so, is there a way to install TWRP without unlocking the BL?


text:
My Google account was deleted, how do I sign into phone with that account
I am giving away one of my older android phones that was signed into one of my older Google accounts. The thing is that that account was deleted and I can't sign back into the phone, does anyone know how to fix this/bypass this?

Google says you may still be able to reopen the account:
https://support.google.com/accounts/answer/6236295?hl=en


text:
Do I have to repair a cracked AMOLED screen?
My phone recently (a couple weeks ago maybe?) slipped out of my hand when I was trying to pick it up off a table and flew across the room.  Despite having armor, the corner of the screen was smashed and there is some cracking around the smashed bit. The smashed part is around 0.4" wide and 0.3" high and is actually in the bezel, not the screen itself, but there are three cracks that cross the screen. two join together and extend across the screen 1.7" wide and 0.25" high, and the third joins one of the other cracks around midway and extends to the edge of the screen 0.7" from the bottom. Very little if any glass detached from the smashed area, and I put a screen protector over the whole thing to protect my finger which covers all but about 0.05" around the edge, although it is clear that it doesn't completely seal around the cracks (it has the shade of a bubble along the cracks edges closest to the smashed part.)
Everything still works perfectly,and as the cracks are not terribly noticeable I was planning to just keep using the phone until its end of life, as the cost to repair the device starts at nearly $300 and I still am paying for the phone.  However, in researching what it would take to repair it myself to save a couple hundred bucks (which by the way after reading I feel like I am not mechanically skilled enough to not risk damaging it and wasting a whole day trying) I found this note:

OLEDs cease to work when exposed to oxygen or moisture, and are thus sealed in an airtight encapsulation (this is also why OLED panels turn black underneath a screen crack). There is no way to replace the front glass alone— the OLED layers are laminated to the glass.

Currently there is no screen blackening under any of the cracks (it looks darker when viewing the cracks head on but it's the crack itself, at an angle I can see the pixels are all white underneath).  But I am concerned whether the screen will start turning black at some point.  If so, how long will it take before it first appears, and at what rate will it blacken?  How much of the screen will it affect?  From what I have read, since a new OLED comes with a replacement screen it won't have any bearing on the repair, but I would like to decide now whether or not to keep the phone - if it will have to repaired in the near future it might be better to just sell it now while it still has some value, as currently it would (inexplicably!) actually be cheaper just to pay off the phone and sell it with a broken screen than to try to repair it, while in the future the repair price will remain the same but the value of the phone will only go down.

You have my vote for the efforts you have put here, but please know that the question is Android independent, hence, off-topic here. Perhaps, Reddit and XDA would prove to be a better place for this question. :)


text:
Android Pie keep reinstalling Google Chrome even disabled
I've got Brave as my primary browser for my LG V30 (H93230d) running on Android Pie several months ago with Chrome disabled in my settings.
However recently I started to see Chrome appearing in my app drawer with latest version installed even it was previously disabled with Don't auto-update apps preference in Play Store.
I tried to disable it and force stop but the issue returns after several days. Any idea how to prevent Chrome to update/install automatically?

On a lot of devices Google Chrome provides the WebView implementation, which means that every app that displays HTML pages using the Android WebView system uses Chrome. Nowadays Google again prefers the
Android System WebView app to provide the WebView implementation but that is device specific and can be changed in the Developer settings.


text:
Is it possible to clone phone to anohter phone with same model using TWRP?
I have Samsung S7 and I have made whole backup of it to my sdcard - system, data, chache, etc. One day that phone broke and I am going to buy new one with same model. Will it work if I restore backup from sdcard to a new phone? I don't know if the new phone have same ROM, but if it needed then I can install it because I still have it on my computer.

It should work as long as both phones have identical OS versions. Two points 1. Take care not to restore EFS and other partitions that are device specific 2. Restoring data should be enough. I had done a similar thing with two note 2 devices way back. I won't make this an answer because I am not aware of latest Samsung things but in principle, no problem

If the backup of the user data partition in decrypted or encrypted format? As the device encryption usually uses hardware based encryption cloning the user data partition in encrypted form should not work. If it is decrypted and you restore it the system may be confused as it expects an encrypted partition. But those are just theoretical thoughts, I don't have any practical experience with closing partitions.

@Robert very valid point. Didn't consider that

Disk dump of encrypted partition is problematic but TWRP backs up decrypted userdata partition using tar (or we can do from commandline if TWRP is able to decrypt FDE/FBE). But the hardware-specific things are more trouble e.g. the databases which contain IMEI or other identifiers need to be updated. Similarly things dependent on TEE cannot be backed up e.g. fingerprint. Better is to just back up the selective things like settings, apps data, personal data etc.

just prepare your current phone to be ready creating a fresh backup via adb shell for the day the screen will be broken


text:
Which Android spin-off can I use for the possible maximum privacy?
Complete mobile phone privacy is a near impossible feat, but I would like to have as much privacy as one can have.
Which smartphone OS or version can get me close enough, while allowing for dependable functionality?

You can check out GrapheneOS (successor of Copperhead OS). However it does not support a lot of devices.

Thanks, going to check it out.

samsung knox is a good mainstream alternative


text:
Is there a way to Modify Recovery Menu Options?
Hi guys I am setting up an android system for a company, one of the requirements is that "employees can't factory reset/ wipe out data of a device". I have already done the proper implementations on the OS itself. however I was looking throught the recovery.img and boot.img files to see if I could modify any xml file or anything to hide or set password auth for the factory reset and wipe options from the recovery. I know a guy with knowledge would be able to activate it back, however the average employee barely knows what recovery is, so it's really unlikely.
It does not matter what type of recovery is needed to achieve this whether its an stock recovery or a twrp or cwm one. any ideas?

for custom recovery you probably have to unlock bootloader - which will open a backdoor for boot/flash/format/erase partitions from fastboot. better stay at stock recovery, enable FRP, enable cloud

it's possible to place a file in /cache partition which does factory reset, maybe you can place a command --just_exit which may disable recovery completely https://android.googlesource.com/platform/bootable/recovery/+/master/recovery.cpp

Oh thanks, Ok so, as I can tell, each function requested by the user such a "factory reset" creates a file with a command on the cache/recovery/command folder, however how should I store the file there as a just_exit entry? what file extension does it have? are those commands in a c# stuff as well?

so by removing the recovery partition the user won't be able to even access the menu right?

You can flash boot.img to recovery partition so that device always boots to normal OS. But all that it takes to boot into recovery mode is fastboot boot recovery.img if the user knows even the basics. An advanced way could be to modify bootloader so that it never boots from recovery partition. But it requires hacking closed-source bootloader binary and is very device-specific. Another idea is to define an init service which creates /cache/recovery/command file (as @alecxs mentioned) on every boot/shutdown. But I never tried this and it's also not hard to bypass with some knowledge.

flashing boot into recovery is worth a try, maybe there is a little chance the bootchain will detect it as (signed) stock image and allows to continue booting with (re-)locked bootloader


text:
Android 9 Pie says 'encrypted', but phone can receive calls after reboot (before entering screen lock password)?
I have a new Optus branded ZTE phone (Android 9 Pie). I added a screen lock password. Apparently it is now automatically encrypted -
Settings / Security & location / Advanced / Encryption & credentials / Encrypt phone = "encrypted"
When I reboot the phone, I had expected for the phone to request my password before it got to my home screen (my older phone did this). However, to my surprise, upon reboot... the phone boots to the home screen. How can it know what my home screen looks like before I even enter the password?
In addition, it can receive calls? Further, if I swipe down and click 'Screenshot'... it will perform the screenshot and add it to Local / Phone / Pictures / Screenshots
What am I missing?

That's how File Based Encryption (FBE) works. What you are expecting is Full Disk Encryption (FDE), being replaced with FBE by most of the OEMs.

To further add to what @IrfanLatif said, see this https://stackoverflow.com/q/38632977

Also see this https://android.stackexchange.com/q/195713/131553

@ajjwjajatt please use comments or edit your question to add further details. // Does your screenshot persist after you unlock the screen? If so, your OEM encrypted the internal SD card directory (/data/media) as Device Encrypted (DE), not Credential Encrypted (CE), though that doesn't make much sense. You need a rooted phone to fully explore the details of encryption.

+1 for making your own thoughs about


text:
Make second user also a device owner
I recently bought Samsung Galaxy tab s5e , and configured my account for it. Afterwards I created account (using android multiuser feature ) for my wife.
Hovewer the second account is very limited due to android security features . It lacks some serttings, Samsung DeX, and access to SD card. I do know the security reasoning for it ,and I don't care about them.
Is there some ADB command, tweak or some other way( for example after rooting device) to make the second account also a device owner (administrator ), grant access to sd cards and stuff , otherwise the security feature is kind of usseles if you realy want to have multi user experience on tablet

Same issue with Tab S6 Lite and secondary users I created for my kids - no SD card access.


text:
USB Debugging on a soft brick?
How do you enable USB Debugging on a bootloop-ed device?
Or, at least, how do you determine if a bootloop-ed device has the USB Debugging option turned on?

Hello. What are you trying to achieve though USB Debugging? This seems like an XY problem as of now. If you are trying to recover data out of a soft-bricked device, it is best to mention the Android device name, Android version  name, and whether the bootloader is unlocked and the device rooted?

SM-N910C, Samsung Note 4 — unrooted — I haven't ever touched the bootloader so I guess it's locked — Android 6.0.1. By the way, I just managed to SUCCESSFULLY flash with Odin the official firmware, but the phone continues in a bootloop!!! Amazing! And yes, I'm trying to recover my data by any means. I was so close after all this time and research ... but in the end nothing...


text:
How to port forward minecraft PE Server on android
I have set up a minecraft bedrock edition server on my android phone by setting up nukkit in an ubuntu for ARM being emulated in termux terminal emulator for android and it runs pretty well and I can connect to it from my own device. But now I want to port forward it so that it is accessible from anywhere in the world, but guides online say that you need your router ip...blah,blah,blah but I dont have a router, I am using the 4g network provided by jio. How can I get my server running online?

On 4G network you don't get a public IP (mostly) from your MNO. So your phone won't be accessible from internet. Related: How to connect to Android through SSH over 3G/4G public IP?.
However if your device is accessible from internet, you don't need to do port forwarding. It's required only when you are behind NAT (router), but you are directly connected to internet. In case you create hotspot on Android and run server on some connected host, then you can forward port this way: How to port-forward internet using android Hotspot?


text:
Fastboot stuck on sending system
I feel my old mobile with android 2 or 3 got bricked as it get stuck on boot logo each time but I can easily got into fastboot mode but in fastboot mode I can complete following commands like:
fastboot devices
fastboot flash recovery recovery.img
fastboot flash splash splash.img
fastboot flash userdata userdata.img

But each time I run the following command
fastboot flash system system.img

The fastboot command stuck on

Sending 'system' (124183 KB)

I can easily erase the system but cannot flash it.

Have you updated adb to latest version on your laptop. Older versions cannot handle big files

Yes to the latest released version i.eAndroid Debug Bridge version 1.0.41
Version 29.0.5-5949299
Installed as /usr/bin/adb

Boot in recovery and write system.img using dd.

Can you elaborate

@jkp https://duckduckgo.com/?q=%22dd%22+%22system.img%22

no /system mounted how to do so

boot in recovery from fastboot, once in twrp enter adb shell, or use -> Advanced -> Terminal
fastboot boot recovery.img
adb shell

be careful with dd especially double check partition name and partition size.
in your /etc/recovery.fstab there might be just a symlink but no worry you can use it dd will targeting the real partition.
cat /etc/recovery.fstab
ls -l /dev/block/bootdevice/by-name/system
dd if=/external_sd/system.img of=/dev/block/mmcblk0p99

 if the file size is bigger than partition size it is strongly recommended to add parameters block size and count to limit the write process to maximum partition size, otherwise your cache and userdata partition may be destroyed.

beware files bigger than 4 GiB can not copied to MicroSD Card, so instead adb push
adb push system.img /dev/block/mmcblk0p99

How can I view the Android internal partition table?
if you are not sure about your system.img is sparsed image or LZ compressed, you can check the header for file system type / partition magic
ext4: 0xEF53 at offset 0x438
f2fs: 0xF2F52010 at offset 0x400
hexdump -C -n1088 system.img | grep 53.ef
hexdump -C -n1032 system.img | grep 10.20.f5.f2

if one of these magic is found the image can be loop mounted for testing, otherwise you need to convert file with simg2img or sdat2img first

Using 1024 bytes as block size is a bad choice for flash storage. The internal size of flash chips is usually larger (in the range of 4-8K). Writing with a lower block size can result in flash blocks that need to be written multiple times. Therefore a block size of 8192 and a reduced count will preserve flash and also may increase writing speed.

thx, didn't know that. i was just always using 1k because it is easy to compare with output block size of /proc/partitions and df

Are you sure about this: otherwise your cache and userdata partition may be destroyed?

never tried, but once i dumped a 200 MiB "recovery.img" because dd was not detecting end of partition (lucky it was just copy not writing) i believe there are factores like dd version/build partition table layout or something that have influence. same for adb push, be careful

Storage devices and partitions are exposed by Linux kernel as block devices. One can't jump to adjacent block device by crossing boundary when writing to one block device - either in filesystem or as raw. That's the whole purpose of partitioning. // Btw system partition isn't necessarily always adjacent to cache and userdata partitions, there could be others.

By the way device is not recognized by adb only by fastboot

twrp recovery has adb


text:
How do I bypass the RSA authentication dialog box to enable controlling phone from adb?
My phone is Samsung Galaxy S4 SHV-E330S with a broken screen (cannot see or touch anything)
For more context please see my old questions here and here.
I have already tried these:
Can I enable USB debugging using adb?
https://stackoverflow.com/questions/26213954/how-to-solve-adb-device-unauthorized-in-android-adb-host-device
Nothing seems to work. I have pushed the adbkey.pub file in .android folder in the PC to /data/misc/adb/adb_keys in the phone while in recovery. On rebooting to android it was still unauthorized. I am pretty sure that before the screen c\broke AI had developer mode and USB debugging enabled on this phone. regardless, I executed the commands shown here
adb shell mount /system
abd shell

echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop

since I found out that the above lines of text were not in the original default.prop and /system/build.prop (even though I am pretty sure I had enabled USB debugging before the screen broke). Even after adding these lines, the phone is still unauthorized when I reboot to android. Since then I have recovered the original default.prop and /system/build.prop into the phone.
What else can I try now to bypass the RSA authentication dialog box? I have another rooted android phone (different model and OS version) which I have full access to through adb, but it does not even have an adb_keys folder inside /data/misc/adb/adb_keys, so I can't just copy over from that phone to this phone either.
What else can I do to bypass the RSA authentication dialog box on this phone?

This was solved using clues from this post

If you only need to authorize one computer:
   Simply copy the adbkey.pub
  onto the device location:
    /data/misc/adb/ and rename it from
  adbkey.pub to adb_keys
   chmod 0644 and then reboot.

I forgot to do the chmod but still works.

So you passed the RSA Authentication this way, not bypassed.

more safe method is 'adb push adbkey.pub /data/local/tmp; adb shell cat /data/local/tmp/adbkey.pub >> /data/misc/adb/adb_keys' that won't erase existing RSA keys or change file permissions

The question is how to bypass this prompt for all devices. Just connect without authorization at all.


text:
File copy from external sdcard fails sometimes
I recently bought an sd card reader that can be connected via USB-C to a phone.
My phone recognized the SDCard inside that card reader and I can copy files - usually. However, it seems like when I try to copy more than 5 files it will definetly fail and I have to remove the reader, wait a few seconds and connect it again and try again.
I tried two filebrowsers. One came pre-installed with my phone ('Files') and Cx Fileexplorer. The latter seems to have less chance of failing but it will still fail eventually.
Neither of them will give me a proper error message aside from the list of files it couldn't copy.
The copied files were .jpg(5mb on average) and .CR2 ( Canon RAW files which are 22mb on average in size in my case).
Smartphone: Moto Z play, android 8.0.0 stock, not rooted. The SD card is 32 GB in size while my internal microSD is 64gb in size with 40gb free space.
Question would be: How to fix this?

Does the reader using the same card work without problems on a PC?

@Robert unknown as the usb-c cable is not detachable. I also haven't tried it on a different smartphone.

An SD-card reader with fixed USB-C cable? Can you please edit your question and add the details on the reader (brand, model)? Anyway PCs have USB-C ports, too. I strongly recommend you to test the reader somewhere else and try to use different SD-cards.

@Robert as I'm currently unable to test the reader on something else I tried a different card - same result - and another file explorer - Total Commander - which seems to work. I copied 200 files at 2.6 GB which worked without issues.

@Robert so, I copied files from the SD card via a SD Card reader connected to my computer which worked fine. I also tried a different SD Card with the reader connected to my phone, which resulted in the same problems: The default explorer and the Cx Fileexplorer abort after 4 to 8 files each time, while Total Commander works fine.

@Robert just as a follow up: I have tried the card and reader with different smartphones from friends (Android 8 and 8.1) and it worked flawlessly on each of  them. Meanwhile on my device it is no longer being recognized at all. As in the phone doesn't event recognize anymore that the reader was connected to the USB-C port.


text:
WIFI disappears until reboot
Ok so I've encountered this on multiple devices across multiple networks so I'm 90% sure it's an issue with the core OS but it's been happening for over a year and hasn't been fixed at all.
About once a day my device will drop its wifi connection and when I open the wifi settings page it cannot scan/locate any nearby networks for me to join. It just kinda hangs saying that it's searching for nearby networks but it never shows me anything (even though I know there should be about a dozen nearby since I live in an apartment style building). Toggling wifi on/off does not help, nor does toggling airplane mode. The wifi settings page remains empty no matter what. The only solution I have been able to find is to do a full device reboot then everything works fine for another day or two.
I've encountered this on both the google pixel slate (worst purchase ever, returned it) and a OnePlus 7pro. The behaviour has been identical across both devices.
I've read some old articles saying to disable ipv6 support but I don't even have that option on the OnePlus phone (and honestly I wouldn't be happy if that was the solution).
I'm a senior software engineer at a major tech company and I can't figure this out and I can't get any legitimate help from the companies behind these devices. What can I even do?
I am open to troubleshooting suggestions or if someone can help me gather debug information to submit a more official report that would be great. Right now I have no way to get official support, the people at oneplus are just giving me the usual runaround of doing a factory reset etc without even examining the issue... and google has worse customer support than comcast.

If it happens with two devices from different manufacturer you may encounter a bug in the used Wifi subsystem which is AFAIK at large parts identical to whyt current Linux distributions use. Therefore it would be interesting if you also encounter this problem on a regular Linux-System (if it also happens there debugging will be easier and the [community] support of Linux distros is usually very good). May be someone has set-up a Wifi next to you that causes this error.

I use Linux on all my home laptops and they don't have an issue. Also annoyingly I have other android devices that don't have an issue. My guess is it could be a hardware choice in the devices that are having issues where the hardware is not playing nice with the OS


text:
How To Enable Debug Mode From ADB Shell or ADB Via Terminal In Linux
so far I have put my android device in ftm mode
i have tried from adb sideload
now i am trying with busybox ash
I'm able to run  ls
but anything else says permission denied or error:closed.
/ $ ls
acct
cache
charger
config
d
data
default.prop
dev
etc
file_contexts
firmware
fstab.qcom
icon_ftm.png
init
init.class_main.sh
init.environ.rc
init.ftm.rc
init.mdm.sh
init.offcharge.rc
init.qcom.bms.sh
init.qcom.class_core.sh
init.qcom.early_boot.sh
init.qcom.factory.rc
init.qcom.ftm.rc
init.qcom.rc
init.qcom.sh
init.qcom.syspart_fixup.sh
init.qcom.usb.rc
init.qcom.usb.sh
init.rc
init.target.ftm.rc
init.target.rc
init.trace.rc
init.usb.rc
init.vendor.rc
init.zygote32.rc
mnt
persist
proc
property_contexts
res
root
sbin
sdcard
seapp_contexts
selinux_version
sepolicy
service_contexts
storage
sys
system
tombstones
ueventd.qcom.rc
ueventd.rc
vendor
verity_key

I want to chmod on root folder

and also unlock the bootloader and root the phone

Insufficient information. Not clear what you are asking. By Debug Mode do you mean USB Debugging? What is anything else which gives permission denied?

Further: of course you get a permission denied. Line 1 of your quote shows the reason. Hint: $ is not #. And indeed the question sounds like chicken-and-egg: "enable debugging from ADB" is like "switching on the lights of a burning lamp". So you need to be clearer on what you're asking.

@antoinepl514 never chmod or chown anything, android is not like linux it will crash if something unexpected. for unlocking/rooting you don't need adb or (root) shell running on device. for unlocking use fastboot (not adb). rooting usually can be done offline, patch your boot/recovery and flash it back

https://topjohnwu.github.io/Magisk/install.html#boot-image-patching

alright,  I will try that , thank you!

You can't make use of ADB without turning on the Debugging mode. There is one way to access partitions via ADB even if you don't have ADB turned on. If you want to run ls on restricted partitions, like cd data, you need to boot (not flash) into a custom recovery. Asssuming that you have an unlocked device, run fastboot boot <recovery.img>.
Now that you have successfully booted into a custom recovery, mount relevant partitions and run adb commands.

OP says: “I want to chmod on root folder and also unlock the bootloader and root the phone”.

We don't usually perform chmod on Android. As @alecxs has mentioned, chmod may have unexpected behaviour on an Android. Try running adb remount followed by adb root.

OP says: “I want to chmod on root folder and also unlock the bootloader and root the phone”. And you suggest: “Asssuming that you have an unlocked device...”. And I do chmod scores of times on my device in a day, the point is you should know what you are doing.

Yes, because you can't perform these operations on a production build. You need to have root permissions for which you need to run adb root. And for that you need to have a custom recovery or root privileges, and for that you need an unlocked bootloader.

it seems that I cannot find the custom recovery or custom rom files nowhere for the ZTE Avid Plus Z828

Yes, I was looking for resources for ZTE Avid Plus Z828 and I barely found anything at all.  Only if you can manage rooting your phone manually, you should be able to workaround other problems.


text:
What would be necessary to use a Rasperry pi zero W as a wifi to usb-C gateway for Android Auto?
As many new infotainment systems in cars support Android Auto, but not wireless. I was wondering if I could program something that would allow to use a cheap Raspberry Pi as a gateway. Effectively emulating a phone on the usb side, but recieving the real data from a real phone through wifi. I'm a programmer, but I don't understand the inner workings of Android's USB system to know if it's possible or not (with or without root).
If I know where to start, I can create an open source project on github. I have experience in both a little Android programming as a few languages like .net core or python to make it work on the raspberries side.
android phone <--wifi--> raspberry pi <--usb--> car system

Like for example Renault easy link that is in my Renault Twingo (2019).

Dont runs Android on the raspberry, just use Raspbian and use it to provide a Wifi access point plus forward the traffic the car system (however the car system works). On the raspberry you just need dnsmasq and hostapd to provide the Wifi access point (there are dozens of tutorials on the net.

Yes I was looking for forwarding the data itself as if the phone was connected by usb

I don't think that this is possible without having to build a totally new Android system. Especially the part "connecting an Android phone via Wifi to whatever but the device (and all apps) thinks it is connected via USB".

Small update: there are now a few devices that do exactly as I described. I'm glad I bought one for €120 instead of spending months and probably more money than that to make an inferior version myself.


text:
Bluetooth headphones occasionally disconnect and immediately reconnect
I use a Huawei MediaPad X2 (GEM-701L with Android 4.3) and a couple of different Bluetooth headphones (the latest are Sony WF-1000XM3). I listen to music through the headphones and they occasionally disconnect and reconnect (maybe once every 15 minutes on average, but I cannot detect any regularity). Sometimes they go silent for a few seconds, then they say "BT disconnected", then immediately "BT connected", and the music is back; the whole episode takes maybe 10-15 seconds. Sometimes they disconnect while playing and immediately reconnect with a pause in the music of perhaps only 2-3 seconds. I read whatever I could find on the web about power settings, etc. but I believe this has nothing to do with that--again, it is completely irregular, not after a specific time. Somehow the problem must be on the Android side, for it manifests very similarly with both sets of headphones. I believe it is not a wireless signal issue, for it happens in very different settings, including sitting at the desk with less than a meter between the devices involved.
I know nothing to Bluetooth, but I tried to capture Bluetoot HCI packets in btsnoop_hci.log, waited for one such event, and I inspected the log with Wireshark. Here is, I believe, the relevant part of the log:

I believe the event in questionstarts at 1104.784603 and ends at 1104.895574, for the rest before and after looks a perfectly regular transmission. It is odd, though, because the event looks a tad too short and I do not see any sign of connection reestablished at the end of the event.
Anyway, alas, I understand nothing of the protocol. Does anyone have an idea of what might be going on or how to investigate further?
p.s.: I could not find problem descriptions on the web truly matching the problem I have. Except perhaps this one, fairly old and never answered: Bluetooth earpiece spontaneously disconnects and reconnects while talking.

I get this happening also. I get it alot between the car and the house, and house to yard. I'm attributing this to my WiFi attempts of the phone to re/dis-connect to its known node. Since I also leave on Bluetooth scanning, I believe even in a closely passing vehicle, some handshaking occurs enough to cause disruption. It's the world we live in, and I've come to accept it as a minor distraction at worst.

I am not sure what is the potential connection to WiFi, but (looking to the Bluetooth log) it does not seem to me that there is any evidence of any handshaking with any other device (and it would be surprising when I am simply sitting at home).

Nothing on a device happens "simultaneously". Every action is an interruption to all other actions. Small, unobtrusive interruptions make the device feel to the user like a lot of things happen simultaneously; all should cooperate to make a seamless experience. Depending on privilege and scope, that interruption can be small and unfelt or longer and noticeable to the user. In my case, communication interruptions are the most felt, especially background communications interrupting foreground ones.


text:
I want to use my bluetooth headset (Sennheiser MB660 UC MS) with an app that doesn't support bluetooth
I work as a freelance consultant using a platform that aggregates my clients who buy hours from me in blocks. Billing is done per minute when a client makes a voice/video call. Voice clarity and noise cancellation is of the utmost importance. Clients are able to leave reviews after a call.
The problem is that the platform (two versions exist: Android and iOS) was built by a small startup who haven't invested in Bluetooth support (yet). As a result, headsets have to be plugged in to the the headphone jack of the device.
I invested in the rather expensive Sennheiser MB 660 since I was looking for the ultimate purpose built headset for knowledge workers. The trouble: I had assumed that all of its built-in noise cancelling microphones will continue to work even if I had a wired connection, and could live with that until the app added Bluetooth support.
HOWEVER, I belatedly discovered the MB 660's are designed such that Bluetooth AND the noise cancelling mics are switched off as soon as a wire is plugged in (some German engineering choices I find perplexing), and the only active microphone is then the one on the audio cable itself (not noise cancelling). Which beats the purpose of having such a sophisticated headset in possession.
Now that I have this headset anyway, and love it otherwise, I want to find a way to indirectly connect it to my Android device in a way that I am able to use it without connecting the wire. The only way to do that seems to be to plug something (henceforth, SOMETHING) in to my Android device's 3.5mm headphone jack. That SOMETHING will be a two-way Bluetooth contraption of some sort that can send and receive audio and able to pair with my headset too.
Does this SOMETHING already exist in the market, or will I have to make one? If I must make one, what components do I need and how to do I put them together?
Thank you so much!

I only know Bluetooth Transceiver that sends the audio to the headphone, but they usually have no reverse channel for the microphone.

The MB 660 can be used in 3 different ways
Bluetooth: Here we are powered by ourself and handle NC using 3 microphones build in to the right earcup
USB: Here we offer the same performance as Bluetooth and could be used as an alternative for the customer smartphone
Analogue: Here we force OFF the Bluetooth and only drive the ANC circuitry for the speakers. Only the in-line omni dir microphone on the cable can be used for communications


text:
Wifi connect but no internet access
This is a strange thing that started happening with the wifi network at my work. Android devices connected to the network say "Connected, no internet access " however the internet works perfectly well.This has happened to devices running Qualcomm 8909 android 8.1.0 but the issue is only can’t download any app through playstore so please require urgent help if can solve the issue.

I have had that same issue and that was because my IPv6 was turned off and so the other device that was using my hotspot was unable to access the internet. So check your settings and if they will check theirs.


text:
How to get the battery status from an Android phone with Python connected to a PC via Bluetooth?
Is there a way to interrogate an Android phone with Python on a PC and/or Linux to get battery status while connected via Bluetooth?

Not sure if this is possible via Bluetooth, but with ADB over Wifi you could call dumpsys batteryproperties respectively dumpsys battery for Android before Oreo/8.

Can you tell me where I can find ADB documentation, so I can figure out how to connect to an android phone and issue the calls you mentioned?

Use your favorite search engine and search for adb wifi android.


text:
How to find Google Assistant in Settings=>Apps in order to clear its storage/cache?
Since How to stop Google Assistant from freezing Xiaomi Mi Box S 4K's remote control? received no replies, I'd like to ask a more general question - how to clear Google Assistant's settings?
Or to put it more simply, how do I find Google Assistant in my list of apps in order to reset it there?
It's supposed to be play.google.com/store/apps/details?id=com.google.android.apps.googleassistant, but - in the Settings=>Apps of at least 2 different devices (a phone and a TV - both have Google Assistant in the general settings) - I find neither the aforementioned app ID nor Assistant nor Google Assistant, not even when system apps are included in my view.

Google assistant is not a separate app it's bundled with the Google App. So to clear the data for the Google Assistant you need to do it with the Google App

Just the system app called "Google", not any of the countless namesless apps called com.google.something?

'com.google.android.apps.googleassistant' is used to launch Assistant. It is not a system app and its tiny in size. The Assistant which we used is bundled in Google App (com.google.android.googlequicksearchbox) so you have to clear data of it in order to clear data of Google Assistant

FYI, I simply see neither com.google.android.googlequicksearchbox nor com.google.android.apps.googleassistant, not even any com.google.android.apps. I guess the only option according to you is clearing the main Google app itself.

Yes that's what I was trying to say


text:
how to get battery percentage back in status bar, Android 7.1.1
I have a Samsung Galaxy J2 Pro running Android 7.1.1, and Samsung Experience version 8.5.
How do I get the battery percentage into the status bar? I am sure it was there until yesterday (unless I am going crazy) and now it has disappeared. Yes I have tried turning it off and on :)

OK, I found it myself when I had time to read through all the Settings in the manual:

tap "Settings"
tap "Display"
tap "Status Bar"
turn on "Show battery percentage"

Step 1: Tap on the Settings from the Home Screen.
Step 2: Select Smart manager
Step 3: Select Battery
Step 4: Now, you should see the option that can help you show the battery percentage.
Step 4: Turn Battery Percentage on.
Source:
https://phoneradar.com/samsung-galaxy-j2-pro-tips-tricks-faqs-options/#f

Thanks, but there is no Battery icon under Settings. Battery does appear under Settings -> Device Maintenance, but that has no "Show Battery Percentage" option.

Haha...funny how even the same android versions have different locations. Try the edited version. It should be in smart manager.

Thank you again, but I had no "Smart Manager" selection either. It was under "Display" then "Status Bar" (see my answer).


text:
S7 data recovery with broken screen
I have a galaxy S7 (SM-G930F) with a broken screen. It can receive calls and texts and connect to wifi. I can access it via https://findmymobile.samsung.com/ to unlock it. That site also has options to back up data but they seem to hang without doing anything.
If I connect it to the computer via usb it is recognised but shows no files present to copy.
The phone has access to my wifi.
I have tried downloading several supposedly different programs for data recovery.
One thing that is really confusing me is that most of them seem to be variations of the exact same program dr. fone but with different product names. What is going on there?
For instance isky toolbox = dr. fone
Some of them don't support S7 (even despite being the same programs as each other). They threaten to risk bricking the phone if the wrong model is selected.
I do not have usb debugging enabled (at least I don't recall enabling it, though I possibly install some apps that might have such as a Linux terminal program I don't remember and can no longer check)
I'm am also trying up the contents of the SDcard. I'm not sure what's it and isn't on there. ie. in the Android directory. Windows refuses to transfer the files itself (if I select all of them it copies nothing). It also suggested it would take >1 day to backup a subset of the media files (~9Gb). so I need to use a different copy tool. I am currently trying AOMEI Backupper. This has not yet completed even counting the files to copy.
What are my options for recovering files such as photos or other data like app settings, game progress, whatsapp messages or whatever?
I'm not sure what's on the SD card versus the internal storage.
I have the option to use either Linux, PC or even iPad for this.
Replacing the screen or some other hardware repair is not an option.
I have since moved my sim card to a new phone (different model) but could move it back if that would make any difference.
airdroid looks like a good way to get around this kind of problem except that I have to have installed it before I broke my phone.
Some of the backup/recovery programs look like they work by pushing an app onto the phone somehow. Being able to push one of them or something like airdroid would be great.
Similar questions:

Access files or ADB on locked Galaxy S7 with broken screen
Enable ADB and/or change USB connection mode on Galaxy S7 w/ broken screen

They don't quite help me though.

Basically...the new phones have a choice for USB modes. It's probably stuck in USB charging mode by default. You need to switch it to MTP. If your touchscreen seems to still work, you can try to unlock it then go at it blindly. Use this video to approximate where to press on the screen. https://youtu.be/pZzIU5ErC4I?t=80  Once in MTP mode, windows will be able to access the files.

I would have previously set it to MTP mode, so it should still be in it, unless something can reset it.

MTP is not working on lock screen. enter your pin or password (see the "not helpful" duplicates). besides this, depending on build.prop for some devices you have to select MTP in developer options each time after connect (don't know if this is a bug or feature)


text:
Recover a phone number a dialed with no signal
At the bar last night I got a number from an amazing girl that I dialed in the bar. I had no signal when I dialed the number (the bar was deep underground) and I don't see the number in my call history.
How can I recover this number?

you could check the notification history but i am afraid if it never reached entry in call logs it will not be in any log. this becomes the day where you truly hate android

next time send sms instead or save in contacts amazing-girl :)

Afraid you're out of luck here, see: Android - Call log/ history : Retrieve a dialed number when there was no network coverage.


text:
Can't generate keys for ADB
I'm trying to use ADB on an ARM device running Ubuntu 18.
The Ubuntu machine communicates with the android phone and can access its files. However, listing the devices on ADB produces an error relating to generating the adbkeys in the .android directory.
Command:
adb devices -l

Error:
List of devices attached
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /tmp/adb.1000.log
Server had pid: 8409
--- adb starting (pid 8409) ---
adb I 02-04 01:26:21  8409  8409 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 02-04 01:26:21  8409  8409 main.cpp:57] Version 1:8.1.0+r23-5~18.04
adb I 02-04 01:26:21  8409  8409 main.cpp:57] Installed as /usr/lib/android-sdk/platform-tools/adb
adb I 02-04 01:26:21  8409  8409 main.cpp:57]
adb I 02-04 01:26:21  8409  8409 adb_auth_host.cpp:416] adb_auth_init...
adb I 02-04 01:26:21  8409  8409 adb_auth_host.cpp:262] User key '/home/odroid/.android/adbkey' does not exist...
adb I 02-04 01:26:21  8409  8409 adb_auth_host.cpp:109] generate_key(/home/odroid/.android/adbkey)...

* failed to start daemon
error: cannot connect to daemon

Manually restarting the service with kill-service and start-service and using sudo yield the same result. The .android directory remains empty. ADB worked fine on a Windows 10 machine with the same android phone, so I copied the adbkey files from the Windows 10 machine to the Ubuntu machine in the hope of getting lucky (I don't know what they do). That produced a different error with the same command:
List of devices attached
* daemon not running; starting now at tcp:5037
ADB server didn't ACK
Full server startup log: /tmp/adb.0.log
Server had pid: 8699
--- adb starting (pid 8699) ---
adb I 02-04 01:31:38  8699  8699 main.cpp:57] Android Debug Bridge version 1.0.39
adb I 02-04 01:31:38  8699  8699 main.cpp:57] Version 1:8.1.0+r23-5~18.04
adb I 02-04 01:31:38  8699  8699 main.cpp:57] Installed as /usr/lib/android-sdk/platform-tools/adb
adb I 02-04 01:31:38  8699  8699 main.cpp:57]
adb I 02-04 01:31:38  8699  8699 adb_auth_host.cpp:416] adb_auth_init...
adb I 02-04 01:31:38  8699  8699 adb_auth_host.cpp:174] read_key_file '/home/odroid/.android/adbkey'...
adb I 02-04 01:31:38  8699  8699 adb_auth_host.cpp:391] adb_auth_inotify_init...
adb I 02-04 01:31:38  8699  8699 adb_auth_host.cpp:467] Calling send_auth_response

* failed to start daemon
error: cannot connect to daemon

Does anyone know how to solve this?

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


text:
Accessing local computer using hostname
From my tablet running Android 9 I would like to access a web site on my local server using its hostname (server). This works fine from my laptop computer running Debian 10. However, on my tablet I get the error message "This site can't be reached" when I enter the address http://server.local in a web browser. Any clues?

What is your intended DNS resolver in this case? Does your computer know how to resolve on its own? Do you expect the phone to know it or to query it?

@wbogacz The server and my laptop runs Avahi. Can I install Avahi on Android or should I install something else?

Does this answer your question? How to ping a local network host by hostname?

@IrfanLatif If I login on my router (192.168.0.1) I can see that my server correctly presents itself with the name server. The question is, what should I do on my Android device to make it aware of the local hostnames?

Duplicate of: How to ping a local network host by hostname?
I order to access a local computer from Android using hostname. You have two options:

Add the IP address vs. hostname mapping of the local computer to /system/etc/hosts file on your Android device. See How to edit 'etc/hosts' file? and How to edit '/etc/hosts' file on non-rooted phone?

OR

Run a DNS server on local network. Usually a WiFi router is already hosting a DHCP+DNS server.

Make sure that DNS server is aware of the hostname of the local computer e.g. communicated through DHCP or some other mechanism.
Make sure that DNS queries from Android device goes to local DNS server and not on internet. See How to configure DNS properly?

Turn Private DNS off on Android 9+, and
Add static DHCP/DNS from settings, or
Add DNS using ndc resolver setnetdns command-line, or
Use VPN based app mentioned above to force DNS server, or
On rooted phone use iptables DNAT for port 53 to force DNS server

RELATED:

How does Android OS do DNS name resolution?


text:
Android asks me for USB debugging permission on one computer, but not another
I have two Ubuntu machines, a laptop and a tower. ADB works on the tower but not on the laptop. I'm using the same Android device on each, with the same adbkey and adbkey.pub. On my tower, ADB works - I can access the shell, etc. However, the moment I plug the device into my laptop, I get the "Allow USB debugging?" popup on the Android device. This is a problem because this device is non standard hardware with no touchscreen, so I have no way of clicking Yes. How can I troubleshoot this and get ADB working on my laptop?
The device is running Android 5.1.1.

This was due to missing udev rules on my laptop which I'd forgotten I'd set up on my tower. You can find information on setting up udev rules elsewhere, but I'll post the exact steps I took here (which I got from my company's internal help wiki - remember we use weird hardware, so I can't guarantee this will work in all cases).
Create a file at /etc/udev/rules.d/51-android.rules with the following contents:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1bbb", MODE="0666"

Then run:
sudo chmod 644 /etc/udev/rules.d/51-android.rules
sudo chown root. /etc/udev/rules.d/51-android.rules
sudo service udev restart
sudo killall adb

Disconnect and reconnect the device physically, then start using adb.


text:
How to recover deleted .zip files through TWRP?
I deleted internal storage and forgot that my .zip backups was there. I have no OS installed, only access via TWRP. How can I restore my .zip files?

make a (decrypted) partition dump and inspect the image with linux tools on pc

Thanks, found month older backup before you commented. Didn't think that it's so difficult. Just noticed that softwares on Windows doesn't detect my device.


text:
What is an easy way to quickly transfer content (text, image, small files) between my galaxy note 10 and windows 10?
Very often I'd like to quickly transfer a bit of text that I have in the clipboard of my pc (windows10) or an image to my phone (galaxy note 10). Is there a way to do this in a convenient way - wirelessly?
PS: currently I use the windows telegram app with an extra second telegram account for my pc to transfer such little temporary data from my pc to my cellphone and the other way around.

Partially answered here:https://android.stackexchange.com/q/73005/96277

On my rooted phone I have setup SSH server which runs as a service with WiFi. Whenever my phone and PC (Windows/Linux) are connected to same WiFi network (even if IPs are assigned dynamically), /sdcard is mounted as (SSHFS) drive on PC. Not even a single tap needed on both sides, except if connection hangs sometimes.

There are some apps, but i personally prefer to use Opera on pc and Opera touch in smartphone. With "My Flow" you can paste things there between phone/pc. Just scan the qr code once and your phone will sync with pc.


text:
How do I disable the app switcher on Pixel 3?
I'd like to disable fast app switching on pixel 3. My device is not rooted and I use nova launched.
I've looked through the settings and I've looked at the gestures folder and the nova launcher settings and I haven't found a feature that appears to do the trick.
Can you help me understand how I can get rid of the fast app switcher in pixel 3?
There are two things that I'm trying to stop
1- When you swipe up from the bottom of the screen and you see apps and can switch between them
2- When you swipe horizontally on the dock bar and it takes you to the most recent app

Um, don't use the Android 9/10 gestures? You should be able to revert to the classic nav keys from Settings - System - Gestures.

That seems a bit brute force

The app switcher is part of the Pixel Launcher, however since Android 10 if you disable it you'll get no app switcher at all. There is a separate build target (SystemUiWithLegacyRecents) that brings back the "card" recents, but that's only accessible to whoever building their own images, and seems to disable gestures altogether.


text:
Send a notification (or just vibrate) to phone via ADB/shell
I would like to be able to send some kind of notification to my android using a remote shell script (SimpleSSHD running as root, so basically the same as an adb shell).
On an iOS device I can use the commands cvibrate to make the device vibrate and sbalert to display a notification via SSH. I would like to do the same, but on android.
It would be great if it could be an actual notification like any other app would invoke, but a way to just vibrate it would suffice aswell if both isn't possible on android.
This seems like a very simple task, but I've not been able to find a solution...

For Termux there is the Termux-vibrate and the Termux-notification package. Not sure how make those calls available in a stand-alone sshd. Also relevant: https://android.stackexchange.com/questions/207411

@Robert Looking at the source code of NotificationAPI.java and VibrateAPI.java - This is an app-based solution (that I'd like to avoid) that only works with Termux, using the Termux API app to control notifications/vibration/etc.

@Robert - HOWEVER: I've tried echo 200 > /sys/class/timed_output/vibrator/enable from the comments of the Q you linked: And it worked! I'd like to keep the qusetion open because I'd prefer notifications or some sort of alert/pop-up on the screen aswell, but if nothing else is possible without the Termux app + API that would be good enough of an answer for me. (Note for others: That command requires root (at least over SSH), which for me is not an issue though.)

Also see Notify4Scripts

Use cmd notification:
cmd notification post [flags] <tag> <text>

If you are root notification will not be displayed:
su -lp 2000 -c "cmd notification post -S bigtext -t 'Title' 'Tag' 'Multiline text'"

Nice. I was able to post notification with root. It still showed as being posted from Shell though. Android 10 on a OnePlus 6 using Termux.

What is even more annoying for me: I found no way to send without triggering the notification sound

Which Android versions does/should this work on?

@confetti Android 10: https://android.googlesource.com/platform/frameworks/base/+/7647f1d1b8189a6d7ab321ce67f60d115cb3598b

Simple example: adb shell cmd notification post -S bigtext -t 'Title' 'Tag' 'Multiline text'

You can setup a Task in Tasker which you can invoke from command-line. The task can be setup with actions of your liking in combination, such as show a notification and vibrate with XYZ pattern. When setting up a task in Tasker, setup the action like this: Alert → Notify
Fill up the fields as you like. Make sure to enable Allow External Access setting under Preferences →  Misc, accessible from three-dots line on the right edge of top bar in Tasker's homescreen.
As for invoking the task from command line, run:
su -c am broadcast -a net.dinglisch.android.taskerm.ACTION_TASK --es "task_name" "YOUR_TASK"

Replace YOUR_TASK with your task's name.
Tip: you can setup Tasker to show text of your liking in your notification  by a bit more tricks. Setup a task to watch for a file for changes and assign an action to change the value of a tasker variable to the contents of that file. In your aforesaid vibration/notification task, when filling up the field for "text", assign that local variable instead. So next time, when invoking the task, change the contents of the file for a custom text notification before sending that command.
Tip2: it is also possible that send variable directly to a task using command-line, but I don't have much experience with it so you've got to ask uncle web.

Thank you for the answer, +1 especially for the tips. I would much prefer a solution that doesn't require an external application. Seems not possible though, but I'll probably go with notify4scripts since it seems more lightweight and easier to customize.

@confetti every notification is sent by an app, so there isn't a way to create otherwise. System apps don't provide a method to send notification from commandline, so a 3rd party app is needed. I once tried to create some surfaces/windows directly dealing with SurfaceFlinger, but due to lack of knowledge couldn't figure out where to proceed. I don't think creating notifications natively without involving Android's Java framework would be a feasible solution (if possible at all). There is a mishmash of APIs and IPCs, at lower level closed source as well.

@IrfanLatif Thanks for the input. I guess I'll just stick with the vibrate-only solution then as it's the most simple and sufficient for my alert system. Maybe you want to add that to your answer so I can accept it? I'm sure the app-based solution will be helpful to others aswell.

@confetti yes the app based solution is helpful, I have been using it since long to send notifications from Linux environment. Notify4Scripts has a wiki page: https://github.com/halnovemila/Notify4Scripts/wiki and mentioned in an answer already: https://android.stackexchange.com/questions/155338/how-to-send-notifications-to-an-android-device-from-a-pc-via-usb/173562#173562. So I don't think it needs any further input. You may please self answer your question if you want to.

@IrfanLatif Oh, thank you, I was talking to Firelord though asking to add the echo 200 > /sys/class/timed_output/vibrator/enable command to the answer because both solutions are great and would be ideal for different scenarios and people so I feel like both deserve to be the accepted answer.


text:
adb devices not working in Hyper-V
I connected Motorola android device on my host machine. I can not view the connected device from Hyper-V VM (Windows 10)
I can not see connected android devices (adb) from VM, but i can very well see it on host.

Device on developer mode
SDK installed in both VM and Host

Evaluative suggestions: Does your VM have the proper driver? Clearly the host machine does, if it recognizes the device. Does the VM use pass-thru for host recognized devices?

after lot of try i managed to see devices in VM (from host machine USB) using redirector software, because Hyper-V does not have the capabilities. Yes, all drivers were up-to-date. But, i dont want to use redirector software to see devices in VM (Hyper-V), if any alternative solution possible, it would be great.


text:
Can I edit the hosts file on my android without root access?
I'd like to block access to websites on my Pixel 3 android device. The parental settings leave much to be desired and apps like BlockSite don't work across all browsers. (In this case - it doesn't work in firefox)
Here's what I tried so far
adb pull /system/etc/hosts ~/Documents/android/hosts

I edited the hosts file and got it ready to be transferred back.
adb push ~/Documents/android/hosts /system/hosts

This gave me error message: adb: error: failed to copy '/Users/[username]/Documents/android/hosts' to '/system/hosts': remote couldn't create file: Read-only file system
Per this post and this post, I tried a few other options.
I tried to use these commands
adb root
adb disable-verity
adb reboot
adb root
adb remount

This gave me error message: adbd cannot run as root in production builds and when I tried adb disable-verity it said: verity cannot be disabled/enabled - USER build.
I tried to use this command
adp remount

This gave me error: Not running as root. Try "adb root" first.
I downloaded an emulator and tried this command on my device
mount -o rw,remount /system
mount -o ro,remount /system

Similarly, this was unsuccessful

https://www.xda-developers.com/google-pixel-3-unlock-bootloader-root-magisk

https://adaway.org (for systemless hosts)

Can I update the hosts file without rooting the device?

Cauder, I saw https://www.modmy.com/how-modify-hosts-file-your-android-device and was about to try it but then saw your post here and got discouraged. Did you ever get it working without rooting? Thanks.


text:
Possible to change an apps SSAID aka Android_ID without rebooting? Which service handles this? Fast rebooting with Zygote kills my shell script
This may seem like an odd question, and I apologize for that. I am currently debugging an application and I am having trouble getting new Android_ID's to stick without rebooting.
To be specific these are the new app specific android ID's introduced in 8.0. The location for these ID's are in the following file: /data/system/users/0/settings_ssaid.xml
I am able to change the app specific ID just fine but it doesn't actually change unless I reboot the device.
Is there a certain service or process that I can force-restart to make the new ID to take effect? Or possibly some type of cache that needs cleared?
I am mainly using adb shell commands. So far the best method is to run the following command:
adb shell setprop ctl.restart zygote
This does a 'soft' reboot, so it's much faster but unfortunately it completely kills my shell script that is debugging as well and it's a pain to keep restarting everything.
Is there a way to see what services or processes are being restarted when restarting 'zygote'?
Much appreciate the help in advance.

Almost everything related to apps settings is cached in system_server which is the Android framework and a core component of Zygote. So the only way to clear cache is to kill the process. There are hundreds of services running inside system_server and many of those are accessible through commandline tools. But I have never come across a method to clear cache. Some time ago I was looking for a way to clear SQLite cache. // Keeping shell script running when Zygote is killed is possible with root access.

I do have root access, how would it be possible to keep the script running? Just run as super user? Thanks for the reply.


text:
Android device can't boot
I have this device Samsung A5 2016 which has not booted for a while, wanting to repair it, I went into recovery mode however no option seemed to work, recurring error which appeared: "can't find misc/", I tried to make a bootable SD card then to execute it from recovery mode, error "can't find sdcard/".
I also tried to go through Odin mode, however the device does not have USB debugging active it is not in the list of devices connected to adb, so I can do nothing on this side there.
What do you recommend ?

flash tools doesn't rely on usb-debugging, enter download mode with proper key combo and install drivers

@alecxs Can you please expand on what you said?

sorry maybe my english is not the best. Odin3 requires usb drivers installed while phone connected in download mode. but requires no adb/usb-debugging at all. download mode can be activated with combination of power + home + vol down buttons


text:
I installed some other phones flash file into my phone and my phone is not booting neither detected by pc, help me
Just for experiment I installed some other phones flash file into my phone using sp flash tool, flashing that file succeeded, SP flash tool successfully flashed that file into my device...
But when I started to turn on the phone, phone is not turning on neither even screen starts up.. I do not know what happened to my phone..
My phone model is Rivo RX45 and it is made by Rivo company.. My phone processor is mediatek mt6572. Flash file that I installed was from the following page: http://fixfirmwares.com/gowin-f7-firmware-mt6572/
Now when I tried to format my device from sp flash tool, device is not detected by the pc. Help me please

you probably flashed wrong preloader now your device is hard bricked. btw the linked ROM does not even match your device specifications

what is solution sir?

preloader is required. check if preloader is visible in device manager 1st second when connected, like this. if you remove battery it should loop every 5 seconds. if you can't hear or see it, there is no hope https://youtu.be/O2XWTAYmNUo

http://www.mediafire.com/file/d1s7x6sc1x2w2qk/Rivo_RX45_MIRA.zip


text:
I'm trying to disable hotspot but I can't find hostapd on android 9
I'm trying to permanently disable hotspot on my phone. I saw this answer here
How do I disable the Mobile Hotspot feature?
I've connected my phone (ulefone armor 6e) to adb  but I can't find hostapd in system/bin/ does anyone know where it is in Android 9? ( I can find it easily in an android 7 phone)
   or another file to delete that will do job without damaging anything else?
I've not yet rooted my phone and I know I will have to try to do this to delete system files.  But i would like to at least find the file i need to delete first.
Or is there an easier way?:D

In /vendor/bin/. Or /odm/bin/. Since Android 8 hardware-specific vendor code is isolated from generic AOSP code in separate partition(s).

Thanks for the reply.   It doesn't seem to be in vendor/bin.  I when i change directory to odm it lists bin as being there but when I type 'cd bin' I get  '/system/bin/sh: cd:  /odm/bin: No such file or directory'

It can be in some subdirectory e.g. /vendor/bin/hw/hostapd. You can run adb shell find /system /vendor /odm /product -name hostapd 2>/dev/null. Or adb shell grep -I hostapd /*/etc/init/*.rc. Or adb shell ps -A -o cmdline | grep hostapd. And so on. If you still cannot find the binary then SELinux might not be allowing adb to access vendor stuff. But hostapd is definitely there. Just root your phone and you'll have access to everything. And sorry but your query is about basic usage of shell, not Android.


text:
How to hide installed app from other app?
If app has storage access, how to hide other installed app from it? App consists of files in different locations. Maybe somehow I can make them unaccessible for other app? If I didn't give root right for detecting app, the only location should be in "Android" folder?

scroll down to APPS SPACE USAGE every line with  may exist for your app, so every app with root access can look at this locations

Ok, thanks. Now I'm interested in way, how can I hide app from other app which doesn't have root access.

If app has storage access, how to hide other installed app from it?

Without root access and without any permission (including Storage), any app can getInstalledApplications for current user/profile. You need a mod like XPrivacyLua to hide apps from other apps. Or isolate apps in user profiles (see Are multiple-users protected from each other differently than apps?).

App consists of files in different locations. Maybe somehow I can make them inaccessible for other app? If I didn't give root right for detecting app, the only location should be in "Android" folder?

If I understand correctly you mean that apps private files are already inaccessible to other apps. With Storage permission granted apps can only see files created by other apps in shared storage (/sdcard and physically external SD card). So if an app creates it's private directory in /sdcard/Android/, it does indicate its presence on device. But hiding the private directory won't be helpful as explained earlier. You have to stop the app from using getInstalledApplications first.
After that, if you have to grant Storage permission because the app refuses to start otherwise, you can disable Storage access using appops:
~$ appops set <pkg> READ_EXTERNAL_STORAGE ignore
~$ appops set <pkg> WRITE_EXTERNAL_STORAGE ignore

If that doesn't work you have to go for a root solution like XPrivacyLua's BlockGuardOs.open hook or Storage Redirect (it's paid app). I've no affiliation with either. Also Scoped Storage on Android 10+ provides better storage isolation.


text:
How to launch a pdf from a terminal?
I gain precious time by launching pdf from the terminal in Linux
evince ~/mypdf.pdf

What is the exact command that allows me to do that on android?
This post gives the following template:
am start -a android.intent.action.MAIN -n my.domain.myApp/my.domain.myApp.myClass

*How to modify this command to launch a pdf**

I am not sure if you can starting an intent with a relative file name. Better use the absolute file name and use am start to view the file:
am start -a android.intent.action.VIEW -d file:///storage/emulated/0/mypdf.pdf -t application/pdf


text:
Adb restoration stopped on Zenfone 3
My goal is to backup save data of two games from my older phone, which I succeeded, and to restore them to my new phone where I have Lineage 16.0 installed.
I used the command : adb backup -apk nameoftheapp.com and then adb restore backup.ab
But as soon as I type the second command and enter the backup password on the new telephone a dialog appears with "Restoration ended".
Is there a workaround/a way to troubleshoot the issue?
Thanks a lot!!

leave the password empty on creating and restoring (this will disable backup encryption and reduce possible reasons for the fail). please read other questions in the Related section


text:
Language on SOME sites is stuck on marathi
If this belongs in another stackexchange, please move it, I couldn't find a better one.

Some websites I visit, such an Instagram and Twitter show some of their text in Marathi.
I can't read Marathi, and don't know how to change the language back.
This issue is not website related, as it happens on some sites I never even visited before.
It doesn't happen on facebook or google for example.
It only happens on my phone.
It also happened on my previous phone, and keeps haunting me on this one.
I tried all sorts of language changes, and this persists. I don't know what setting to change to get my English back.
I do need Hebrew on my phone as well.

What browser is this? (If stock browser, please also mention the phone model) Also, have you tried other browsers?

@Andrew.T happens on chrome, and the browser which opens when clicking links in whatsapp or telegram. Does not happen on firefox.

WhatsApp and Telegram might use Chrome's Custom Tab, so this might be from Chrome's settings instead: Wrong language in a new Chrome private window and in integrated data

It looks more like those apps deciding on a language based on your location/IP address. I face it all the time on mobile version of Facebook.

@andrew.T that was it!.finally it is fixed


text:
Data removal from android

If I log onto whats app using a new device and then delete the app ... will it remove the app , all its data , back ups and pictures from the old device and also remove it from google drive ?

Also would this still work if the device is switched off  or offline

If I wish to remote wipe the device would that be possible if I have already disconnected the device from google drive ( for safety reasons ) but it is still active on the find the device ( but won't locate - due to phone possibly running out of battery or offline ?

So if it is offline can it still receive a signal to be remote wiped ?


text:
How to make a notification vibrate and sound once, and then ideally be muted afterward?
What I am looking to do is, get a notification as normal with vibration and sound, and then any further notifications from that app I want to not vibrate. For context, it would be the most helpful for a messaging app, where I would like to be informed when I receive a message, but I don't want my phone vibrating over and over if they are to send more than one message before I can reply. Just once is enough to let me know I have a message, I don't need 27 vibrations in my pocket. This sort of dynamic reaction to a notification would be extremely helpful for me, with the notification acting normally at first, and then if it is already present in the notification "bar" or "tab" (Im not sure what its called exactly), then it wouldn't do something like vibrate or sound my phone. I am not sure if any apps can control notifications like this, so I am here to ask for help. I am willing to root my phone if I need in order to get this functionality, so lets me know about any method you got, Thanks!
Additionally if anyone can think of a good method of receiving the notification you can let me know, I might not need my phone to vibrate or sound at all if there is a good alternative, but those are the only ways that I can think to inform me hands-free and from my pocket, and something like my phone notification led, while less intrusive, wouldn't really work.


text:
What is the best way to get my Samsung Note 3 SM-N900V to at least Nougat 7.0?
The step by step examples have holes in their solution for one reason or another.
I need to:
a. USB debug (easy)
b. Root w/o KNOX violation
c. Install TWRP
d. Flash a ROM like Apply a custom ROM like RR-N-v5.8.2
Has anyone done this in 2020? It seems like links for these solutions vanish for some reason. This like  ArabicTools and Root_de_la_Vega-SM-N900V.7z seemed to have vanished.

never heard about b. but still learning..

found a non corrupt Root_de_la_Vega-SM-N900V.7z here:
http://rootjunkysdl.com/files/?dir=Galaxy%20Note%203/MI9%20build%20root
http://rootjunkysdl.com/files/Galaxy%20Note%203/MI9%20build%20root/Root_de_la_Vega-SM-N900V.7z
I am about to give it a go myself.


text:
Why FM radio app is limited to FM 108
I just discovered I can listen to FM radio with my phone and a jack cable but I was wondering why is it limited to FM108? I tried another app and it still limited to FM108. The reason I'm asking this is that I would like to receive the international space station SSTV signal but the frequency is FM 145.8 or something like that. My device is an LG G6.

The radio is supposed to use the headphones as an antenna. Have you tried with any other headphones? It is possible the ones you have are giving a signal that is only picking up the strongest station.

The FM frequencies go from 88 to 108 MHz that's why your apps are limited to 108 MHz.

Is there any app that allows using higher frequency or its just the FM chip on the phone?

I think this is more a legal limitation. AFAIK the frequencies beyond the standard FM range are/were used in some countries by Police and other security relevant public services. Therefore access to those frequencies is disabled by default.

To confirm Reddy's comment, standard FM radio broadcasting is between 87.5-108 MHz. It's also kind of similar for "why don't radio tuner on cars also cover that range". Perhaps there are apps that allow arbitrary frequency, but I don't have any clue. You might be interested in our sister site, Software Recommendations for specialized SE on this specific purpose.


text:
How can i relock bootloader of infinix smart 2 with or without data loss?
How can i relock bootloader of infinix smart 2 with or without data loss? i haven't install twrp and root device.

If you are sure that you have not made any modifications to the device, then the usual oem lock command should be all that you need to do:
fastboot oem lock-go

After that confirm the lock on the phone and you will be good to go.

You should not lose any Data Re-locking the bootloader of an uncompromised system. It is only when the bootloader is Un-locked does the data loss occurr. A little insight into bootloaders is that it is an actual security function of the bootloaders to eject the possible compromised files if checks fail.
The bootloader will verify that everything is good to go if not then the bootloader has the option to essentially factory reset your device by Un-locking to dispose of what it believes to be non-native binaries or files. The  bootloader Re-locks and starts to verify and attempt to boot again.


text:
System Application was uninstalled and could not be recovered in android
I have rooted my device. I have installed crDroid-7.1.2-20171202-j5nlte-v3.8.3 and android 7.1.2
I am using j5nlte model of samsung.
I have accidentally uninstalled contact and contact storage applications since my device was already rooted.
After the uninstall process, I have installed simple contacts application from f-Droid
When I am willing to create a new contact I could not create the contact and the system says
No app from this device

As I think, the problem was "contact storage application was uninstalled".
I have downloaded below application to install the contact storage application. I could not installed and the error was
The package conflicts with an existing package by the same name

I can restore the device to get my system apps but I can't restore since I have some other issues.
Is there any way to get my system apps back. Do I have any method to save contacts without contact storage apk?

Afraid you need to re-install your ROM. Until you can do that, you can e.g. use OpenContacts from F-Droid. This is an addressbook/dialer that comes with its own contacts storage no other app has access to (privacy-focused), so it should work in your current situation.

Open contact app was installed but could not open. It always says "keep stopping"

Sad to read that – but I don't know why that happens. Maybe ask the dev in the app's issue tracker? Ah, here's the issue, someone else experienced this as well. Maybe join in there, as the original reporter didn't respond anymore? The app is actively maintained and the author seems very "responsive".

thanks, @lzzy for the help


text:
transfer android data from nandroid or twrp backup to new phone
My old phone has broken screen and I managed to get Userdata as TWRP and Nandroid Backup.
I Need to extract from either backup (below are the priorities from up to down)

Contacts
Call logs
Messages
Whatsapp data
Viber data
Skype data
Telegram data
Game data for one or two games

Old phone with broken is Nexus 5(hammerhead) with marshmallow
New phone is Nexus 5x (bullhead) with LineageOS ROM (Oreo)
Unfortunately I can't find programs or instructions how to extract and transfer to a new phone. Could you provide an instruction how to do it manually?

https://android.stackexchange.com/q/214065 https://forum.xda-developers.com/showthread.php?t=3259492

as I understand whatsapp instructions will work for others too?

yes, basically the chown is important. there is a text file /data/system/packages.list containing all uids

maybe easier way.. from twrp adb shell modify build.prop to enable usb-debugging. you need persist.service.adb.enable=1 and ro.adb.secure=0 then you can run scrcpy and install Migrate

where do I set ro.adb.secure=0?

i am not sure if it works in build.prop or only default.prop but i have linked all necessary information (including other method placing RSA key into /data/misc/adb)


text:
SHELL Command works fine as a standalone command, but fails when put into a shell script?
Android 8.1 PIXEL 2 with root access.
I have seen this asked here once before but the only solution didn't help me at all. I am going to try and make this as simple as I can for the example.
If I run the following command in terminal emulator or adb shell:
am force-stop com.myapp.frustrated

It will quit the app just fine. But when I run it in this shell script:
#!/bin/sh
am force-stop com.myapp.frustrated

Nothing happens. It is odd to me that I can do many other commands just fine in a script, but a handful of them do not work.
Any suggestions you have are much appreciated.

Make sure that shell exists at path /bin/sh or use /system/bin/sh. Also take care of line endings in script: Commands run on terminal but throw errors in shell script

Are you running the script from within a adb shell or just from the command prompt with adb?

Removing #!/bin/sh fixed my issue. Thanks

Replacing it by /system/bin/sh would most likely have worked as well. Background: That line specifies the binary ("interpreter") to run this script with. As there is no /bin/sh on Android, the specified interpreter wasn't found and thus the script not run. Could you please verify that – and then integrate these facts with your answer? When done please ping me, so I can remove my comment again.

As a side note: on recent Android versions /bin is a symlink to /system/bin.


text:
Bypass Samsung Knox factory reset protection
I have an Android device supplied by my government for students and secured by Samsung Knox. However & unfortunately, I forgot the security pattern of the device and I want to hard reset it to access it again. But Knox prevents factory reset by all the ways :/
I have tried entering the pattern in a wrong way 20+ times but it still refuses to achieve a factory reset. I have also tried booting into Android recovery but the factory reset option says MDM disallows factory reset.
Also Google's Find My Device can't even detect the device so I can't reset it using Google's Find My Device.
And developer options are disabled by Knox too so I can't do it using adb
I know that I have made it complex but its the truth and I was wondering if someone knows any way or PC tool to hard reset without USB debugging, or a PC tool that can enable USB debugging.
I don't want to flash ROMs because they will erase Knox which I shouldn't erase :/

you misunderstand what factory reset protection does. even after successful factory reset or flashing (official) rom you won't be able to by-pass factory reset protection. bootloader is locked and device is bonded to samsung account and it's the only (official) way to use Find My Mobile

@alecxs I don't need to hack my device and I want it to continue entering the Knox organization. But I just want to hard reset because I forgot the pattern

you need to remember your samsung account and login to https://findmymobile.samsung.com there you can set temporary screen lock pattern or factory reset


text:
Corrupt weird files in Android Folder of SD Card after data transfer to PC
I had a 32GB microSD card and I transferred a few files to my computer using the SD card reader, but when I inserted it in my Samsung Galaxy Tab 4 SMT230_NU a separate folder named "Drive" was created with all my folders, all files were working fine except that the Android folder, instead of containing the data and obb folders, contained files without any format, the folder is still taking as much space as it took before but I cannot access anything

All my downloads were very important and they were in the Android folder, is there any way to recover my files?

two possible reasons: folder is encrypted, or file system is corrupt. it's not recommended to use this folder anyway. there is a Download folder by default

This has happened to me before in two different scenarios. 1: Cheap µSD cardreader corrupted the card. 2: Virus. Recovery anything you can from the card (See my tutorial here) and completely re-format it (preferably wiping it clean first). Run a few tests to see if it still works properly and if not, replace it. Scenario 1 damaged my card permanently, scenario 2 it was able to recover from.