Question and Answer about Android from Stack Exchange network.


I am running an AVD through Genymotion. Also, I have installed Kali Linux VM in my windows laptop. I am trying to connect to the android through the terminal

adb connect 192.168.104.103

and it connects successfully. Then I have tried to install an application with

adb install test.apk

and it is also installed successfully.

BUT, when I am trying to execute the command pull I am getting the error:

adb: error: failed to get feature set: no devices/emulators found

adb connect 192.168.104.103
already connected to 192.168.104.103:5555
adb devices
List of devices attached
device
192.168.104.103:5555
./adb pull /data/data/com.android/providers.userdictionary/databases/user_dict.db
adb server version (39) doesn't match this client (41); killing ...
* daemon started successfully
adb: error: failed to get feature set: no devices/ emulators found
adb devices
List of devices attached
adb server version (41) doesn't match this client (39); killing ...
* daemon started successfully
adb devices
List of devices attached
adb connect 192.168.104.103
connected to 192.168.104.103:5555
adb devices
List of devices attached
device
192.168.104.103:5555
./adb pull /data/data/com.android/providers.userdictionary/databases/user_dict.db
adb server version (39) doesn't match this client (41); killing ...
* daemon started successfully
adb: error: failed to get feature set: no devices/ emulators found

enter image description here

I see this Does rooting erase anything? about making an ab backup file.

how can I mount an ab backup file from windows? And would I be able to run an undelete program on it or on the image?

I see this question How do I open a .ab file on my computer but it doesn't answer what i'm asking because he is asking and was understood to be asking specifically about some firefox tabs.

I have a Lenovo A7000 with Android 6.0 installed. How to change the download location so that videos downloaded on the YouTube app are saved in the SD card?

I don't have the "Use SD card option in the download section on YouTube."

I recently got a new phone, a Xiaomi Mi A3 that runs android one (10). The default DPI is "too big", so I changed the DPI from the developer settings from the default one (380 IIRC) to 411 image. But now, I'm having an issue. When I lock my phone, and unlock it, after pressing the power button, or the volume button, the icons will be too big, just like on the screenshot above. Sometimes, the battery indicators font changes too, and becomes very big. I found a forum post on XDA and Reddit, and they have the same issue with me. Is this a bug/issue with the phone, or android 10? Is there anything I can do? Any solution? Maybe ADB can fix this issue?

I want to block an app from using mobile data even when that app is in foreground. How can I do that? I can find an option to disable mobile data when in background and an option to disable WiFi for an app but I want to disable mobile data for a specific app completely. I am using a Galaxy A71 phone with Android 10.

I am seeking ways to disable installing apps with APK, i.e. make the setting "Allow apps from unknown sources" password-protected or disable completely for user. Is there a way? Maybe it's possible from adb shell?

I am running LinageOS 13 on Lenovo Vibe A Plus and can flash 14.1 if needed.

At the quick settings dropdown are some items that have no icon and just a label . They cannot be re-arranged and are obviously useless. Please have a look at the Screenshot

screenshot.

I would like to know how I can find the apps or files that are responsible for those and/or a way how to get rid of them.

It is an Android Oreo with some EMUI on top.

I have an ASUS ZenFone Max Pro (X00T/X00TD)

It is/was discharged and powered off. When i plug it in for charging, it is cycling in start of chaging:

  1. vibration
  2. the icon of empty battery
  3. The bootloader is unlocked... text
  4. the icon of empty battery
  5. empty screen
  6. and then starts again from vibration

I tried to clean the phone's connector, even wiped and stracthed the connector a littlebit, and changed cable, charging source. (One cable is in the 1A charger, another cable is connected to PC.) It doesn't get better.

I tried to leave it in the cycling, i hoped it gets some power.

Does the phone charge always when connected to power, or it just start the charging process after it shows the charging animation (which i don't reach)?

I tried to step in Fastboot mode. It stays in this mode, no cycling.

Does the phone charge in fastboot mode?

I tried to step in Recovery mode.

  1. vibration
  2. powered by android
  3. The bootloader is unlocked... text
  4. powered by android
  5. empty screen and turns off

In fastboot mode i tried to flash stock recovery, and also TWRP and RedWolf recovery. The flashing process works, but i still cannot get in recovery mode, to see something more, maybe about battery or i dont know.

Of course the phone does not turn on. The same as when i try to get in recovery mode.

  1. vibration
  2. powered by android
  3. The bootloader is unlocked... text
  4. powered by android
  5. empty screen and turns off

I did not do anything special nowadays with the phone. Bootloader unlocking and rooting was years ago, nor i did upgrade, so nothing special. I just used the phone, it discharged, and i'm in this state.

What can i do? Is it something with charging, or it has enough power after connected in fastboot mode, but the problem is something with the software?

One more thing: maybe i "pressed" the buttons randomly in my pocket.

Is it possible that in an unlucky situation i got into the recovery mode and pressed something away in recovery menu?

Please help.

edit #1:

Is it possible to turn off the charging screen, charging vibration, screen turning on from fastboot mode? Maybe flash something on or similar? Because then it won't use the slowly charging power.

edit #2:

So the sumary now:

  1. My phone is fully charged.
  2. It does not boot into normal.
  3. It does not boot into recovery, nor by hardware keys, nor by command from fastboot. I tried to flash TWRP, RedWolf and the original recovery too.
  4. Fastboot mode works normally.

Parameters:

D:\Mobil>fastboot getvar all
(bootloader) CPU:SDM636
(bootloader) platform:sdm636
(bootloader) secret-key-opt:*censored*
(bootloader) build-type:user
(bootloader) unlocked:yes
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:4286
(bootloader) version-baseband:       *this is empty, i didn't delete it*
(bootloader) version-bootloader:ZB601KL-0x01-20181019151150
(bootloader) variant:SDM EMMC
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x15E00000
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xCEB7FBE00
(bootloader) partition-type:system:ext4
(bootloader) partition-size:system: 0x100000000
(bootloader) secure:yes
(bootloader) serialno:*censored*
(bootloader) product:QC_Reference_Phone
(bootloader) max-download-size:536870912
(bootloader) kernel:uefi
all:
finished. total time: 0.031s

D:\Mobil>fastboot oem device-info
...
(bootloader) Verity mode: true
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: true
(bootloader) Bootloader version: ZB601KL-0x01-20181019151150
OKAY [  0.016s]
finished. total time: 0.016s

But:

D:\Mobil>fastboot boot stock_recovery.img
downloading 'boot.img'...
OKAY [  1.859s]
booting...
FAILED (remote: unknown command)
finished. total time: 1.859s

So booting failed. But i don't know why.

I'm looking for phones with stock Android. I was able to find articles on the internet, but they mention mostly new phones, and I'm more interested in older (cheaper) versions.

I have Google Pixel (one) and from what I read, it's the one with "vanilla" Android. But there are some preinstalled apps on it - like Google Play Music, Google Play Movies, which I cannot uninstall (without rooting). I neither need nor use them and consider them bloatware.

Is it possible to find a phone from a manufacturer which does not have even such Google apps? Or they just must be there?

My /system/priv-app/DocumentsUI is empty obviously. Putting any 3rd party DocumentsUI.apk in it results in bootloop. I have a custom rom (Aosp extended).

Flashing the /system again would fix the problem I think. Just want to make sure if this will make the condition worse or im going alright?

I am unable to copy a certain file. At first I tried using a cloud share app, then USB file transfer, then ADB, then local file browsing apps, finally a terminal emulator. All fail. I can see the file and the app that created it can partially interact with it, but I cannot copy the file, permission denied. Phone is rooted. This is a large file created by TitaniumBackup. It's large because the backed up app has a lot of data, about 4 GB worth. I can copy all the small files that Titanium creates during its backup process, including the apk and properties files. And I can rename the big file, even delete it, just not copy. Even Titanium itself can delete and restore backups but not upload to the cloud using the built-in function to Sync to Google Drive. I am thoroughly confused.

I don't think it matters but this is a rooted Pixel 5 with stock ROM.

-EDIT- responding to alecxs

adb: error: failed to copy '/sdcard/TitaniumBackup/ws.clockthevault-20201202-212154.tar.gz' to 'vaultcopy.gz': remote open failed: Permission denied
ls -lZ
-rw------- 1 media_rw media_rw u:object_r:fuse:s0

Before chmod: -rw------- 1 u0_a256
After chmod: -rwxrwxrwx 1 u0_a256
But pull still fails: 
adb pull /data/media/0/TitaniumBackup/ws.clockthevault-20201130-045341.tar.gz vaultcopy.tar.gz
adb: error: failed to stat remote object '/data/media/0/TitaniumBackup/ws.clockthevault-20201130-045341.tar.gz': Permission denied

Does Android have a built-in FTP client? Even a basic one, like ones that are built into PC browsers and file managers? I know there are good free apps with FTP clients (like Ghost Commander), but I'd like to know if there's a way that doesn't require app installation. I'm excluding chrome's FTP support, since that is being deprecated, and not all android phones have chrome built-in.

I have an init service that is not starting in user build. When running a userdebug build it works fine but not in user build. Can't seem to figure out why it's not running. I don't see any errors about it in logcat either.

on property:myprop=1
    start mysvc

service mysvc /system/bin/mybinary myargs
    user system
    group system
    oneshot

My app sets this property when I want the service to start.

Any help here is appreciated.

When I export my Android phone's contacts via a VCF file, it seems the contact groups are not indicated in the VCF (and are thus lost if I only import that file).

I see a lot of apps for exporting and importing contacts, but none whose name suggests it will export my contact groups as well.

My questions:

  • Is there a way for me to export my contacts together with the contact groups?
  • Is there a way for me to export just my contact groups (i.e. which contact belongs to which group)?
  • Can I import just-contact-groups "onto" a set of contacts without contact groups (the result of a previous import-export without contact groups)?

Notes:

  • I don't have a Google account (and won't get one).
  • In case it matters - the phone from which I'm exporting is a Xiaomi RedMi 3S (Android 6.0.1, MIUI 10).
  • This question is related, but I don't care about exporting to a VCF specifically; and Android has changed over the years; and the answer there regards a Google account.

Some push notification from some apps (some games actually, I wasn't aware about other apps) suddenly no longer appeared. When I first bought this phone, they all worked fine, but then I updated MIUI to 11 and 12, and since then notification from games wouldn't appear. They would only appear when:

  1. I opened the said games
  2. In battery-saving mode (on low battery, when I activated this mode, notifs will immediately popped up)

I have turned on notification in Settings for those apps, doesn't help.

Anyone encountered the same problem? Any solution?

My device: Redmi Note 8 Pro, Android 10 (Q), MIUI Global 12.0.2 Stable

I'm not really sure when this started but I've discovered that I have some type of data. My parents haven't included data in my line yet I'm able to receive notifications from discord, youtube, google feeds etc. I can even do google searches or search for apps on the play store. But I cant actually go on a website or install an app. I cant watch youtube videos or read my discord messages. I cant play online games like brawl stars because it wont connect to the server. I can also use google maps and read reviews. My service provider is tmobile btw. Why does my mobile data work for certain things but not others?

How can one change the timezone of Gmail (Android application)?

My phone can't be rooted but I want to MITM my own traffic. Is there any downside to enrolling my device as a managed enterprise device and installing a certificate through the program? It seems possible, but I have not come across this solution anywhere on the internet so I was wondering if there is a downside.

In the preferences for the ad-blocker Adaway, it has option to "Install self-signed certificate". What exactly does this do and what are the risks involved?

I can access the Huawei P9 on Win10 with adb, and shell into it, but that is with the phone booted into OS. I want to run a filesystem scan (e2fsck), but need un-mounted partitions for that.

I read a thread where someone was running e2fsck from recovery on his phone using adb shell.

If I boot the phone into recovery using adb, I get Reboot / Factory reset / Wipe Cache on menu, but phone is inaccessible on PC (adb or fastboot). Booting phone into bootloader via adb or directly on phone, also inaccessible via adb or fastboot. Shell seems only to be accessible when Android is booted.

Any ideas?

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes