Question and Answer about Android from Stack Exchange network.
The screen appears after booting into TWRP and trying to format memory:
I was trying to flash a custom ROM using TWRP recovery but it's showing Unable to mount storage & Failed to mount '/data' (Invalid argument).
I tried several methods like formatting memory but it's also not happening. It's showing Unable to format to remove encryption. Also tried to change the file format but nothing helped me. Now whenever I switch my phone on it automatically boot up into TWRP recovery mode. I tried this method and almost every method possible but nothing helped.
I'm using Moto E4 Plus (nicklaus).
Having looked around hither and thither now for a night as to how to factory reset a Nokia 2.2, I am still a bit confused and unable to do it.
Holding volume-down + power on brings me to a boot screen saying "=> FASTBOOT mode", but no buttons are having effect after that. Apparently the next step is to connect it via usb cable to a Windows computer with some specific tool or another installed on it?
I've seen people in youtube videos apparently using a Windows tool called 'InfinityBox AST' , and I have tried running that in a Windows VM, but for some (in my opinion) suspect reason, 'InfinityBox' decides to detect that's it's being ran under VirtualBox, and instantly refusing to launch with a message specifically stating that it wont run on a Virtual Machine.
(This 'vm detector' behavior is enough of a reason to me being quite reluctant and suspicious to even having attempted to run the utility trough Wine/Proton)
- Is there really no way to factory reset a Nokia 2.2 TA-1188 cellphone without requiring an actual physical (Windows) PC in addition to some shady unofficial utility made by neither Google nor Nokia?
- If not possible without a PC, is there some Linux software solution able to perform the task?
How can one remove the animation when searching for a string in a web page in Google Chrome for Android?
For example searching for "law" with the "Find in page" Chrome feature on https://en.m.wikipedia.org/wiki/United_States takes more than three second of scrolling down animation before showing the first occurrence of "law" in the page:
I have a Pixel 4 with Android 10. I am new to Android.
I use both English and Spanish. I want to be able hold down the Spacebar to enter the mode where I can move the cursor around.
But when I do so, I get a pop-up asking me to switch languages. Since I can accomplish the same thing with the globe button, how can I disable this? Thanks
Xiaomi MIUI10Global8.12.20/Redmi Note4
While trying to find a way to set an alarm as a full charge notification,this search result popped up(manually set the alarm).
Since this a frequently required feature, is there an app or something to automatically achieve this?
I would like to send an automatic reply sms to a specific text. Is there an app or way this could be done? I am using the default Android sms app. I have searched for auto-reply apps but most don't allow selection of a specific contact. Also I would like something simple and don't need things for Whatsapp, Facebook messenger etc.
Every time I add a bookmark in Chrome, it saves it to "Mobile bookmarks". I now have to press "Edit" and change the folder to "Bookmarks bar". I'm sure that Chrome previously saved to the last folder that was saved to. Is there a way to default to Bookmarks bar?
Is it possible that the published app is not signed by its developer andd if yes, How can we find out who is the app developer?
On a fairly old non-rooted Galaxy Tab A-tablet I wanted to uninstall all the Samsung and Microsoft apps and most of the Google packages to make it faster. Using adb shell pm uninstall -k user 0
I uninstalled 106 packages but after com.sec.android.app.music
I suddenly can't uninstall packages anymore. Instead, I get a DeadObjectException
and the tablet reboots:
$ adb shell pm uninstall -k user 0 flipboard.boxer.app
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:628)
at android.os.BinderProxy.shellCommand(Binder.java:675)
at com.android.commands.pm.Pm.runShellCommand(Pm.java:299)
at com.android.commands.pm.Pm.runUninstall(Pm.java:674)
at com.android.commands.pm.Pm.run(Pm.java:170)
at com.android.commands.pm.Pm.main(Pm.java:103)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:315)
It looks to me like pm needs something that isn't there, so I might have uninstalled something that it needs. My question is, how do I find out what it was, and, assuming it wasn't the Samsung music app, why did it function correctly until after I installed that?
In an attempt to start over I have reset the tablet to factory settings and all the apps are there again, including the music app, but even now I get the same error when attempting to uninstall any of them.
TL;DR:
On-device, we can navigate to Settings › Apps, and for each app separately can call up details on storage used: by the app itself, by its data, by its cache. Is it possible to obtain those details from the command line, ideally via ADB – and without having root access?
In detail:
I've already searched the web, but found no information on this. I've already tried walking the package list (pm list packages
), obtaining the path to the APK file (adb shell pm path $pkgname | awk -F':' '{print $2}'
), and getting the file size of that (adb shell stat $path | grep Size
) – but that has a series of disadvantages:
- it only gives me the size of the APK (for updated system apps, only of the latest update)
- even if scripted, it takes ~2s per app to obtain even that. As today's devices already ship with far more than 100 system apps, it would take "ages" even if only a few user apps were installed (almost 6 minutes on an almost virgin Wiko Sunny 3 where I just tried that)
- details on data and cache are completely missing
Ideally, Android has already somewhere collected those details; it doesn't take that long via the GUI. Maybe there's some database one could query without having root privileges – or some XML to parse, or some shell command I missed?
PS: if you know about a root-only solution, that'd be "better than nothing". Please indicate that in a comment then so I can come back and ask you to make that an answer if there are no non-root solutions.
In this question I am asking about how to stop my WiFi from disconnecting.
If I won't find an answer to that, the next best thing is to get my phone to re-connect automatically. The disconnect reason is: "Class 3 frame received from nonassociated STA"
I am on a rooted device running cyanogen mod on Android 5.
I'm using AFWall+ and OpenVPN, if that is relevant. OpenVPN is set to re-connect automatically already, which works.
Due to AFWall+ blocking non-vpn traffic, whenever I connect to WiFi it says "There is no Internet connectivity, do you still want to connect? [Yes/No]", ticking the "Don't ask again" box has no effect.
This might be relevant and if the phone does automatically reconnect, I obviously don't want this pop-up to prevent an automated re-connect.
You may note the almost duplicate title from this question. It keeps coming up when trying to solve my current issue.
I created a little web app to help at work. Just some html and javascript, and before Android started enforcing the Scoped Storage I had no issues using it. Now when I try to load the URL (ie: file:///storage/emulated/0/__MyDocs/SignInTracker.html) I get an access denied error.
I could use FireFox but it seems to be because it's not yet using the Scoped Storage standard, which if I understand correctly, will be a requirement in the next Android version, so that means I cannot rely on it working in the future. Also, FireFox just doesn't run as nicely as Chrome.
Is there a proper way for a non-Android-developer to use a local web app like this? Is there perhaps a location on the phone where I can place my .html and .js files that will allow Chrome to access them without issues? At work I'm not online or connected to anything, so loading from another server/computer is not an option.
For reference: My Chrome version is 79.0.3945.116, my FireFox version is 68.4.1, and my phone OS is Android 10; Pixel Build/QP1A.191005.007.A1.
I use ES File Explorer to modify /system/priv-app
in the past with root permission given via magisk.
After upgrading to Android 10, ES File Explorer can no longer modify the /system/priv-app
giving me an error message saying "operation failed."
What alternatives do I have if I like to modify /system/priv-app
?
The output of running set -x; exec >>/sdcard/mount.log 2>&1; id; mount -o rw,remount /system; mount | grep 'on /system '; touch /system/test_file; cat /sys/block/dm-*/dm/name
:
uid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0
mount: '/system' not in /proc/mounts
touch: '/system/test_file': Read-only file system
vendor-verity
It turns out:
On some system-as-root (SAR) devices you can no longer mount the system partition as read-write and doing systemless modifications through Magisk is the only way. If you do want to do actual edits of the system, and if it is even possible (from Android 10 it's actually impossible on some devices), you need to mount the root directory, /, as rw and not /system. You can also try editing the partition mirrors that Magisk keeps in /sbin/.magisk/mirror.
So all I needed to do is to:
mount -o rw,remount /
I start tv, select input source, set default sink for pulse audio(pacmd set-default-sink 0
) and start some playback in mplayer. For some reason, there is like 3-5s delay between command being executed and sound actually coming out from tv(sony). After that, I can immediately turn off mplayer, and if I rerun, there won't be any delay/audio missing. However if I wait for like 30s, it will start over again.
I really don't know what is causing this issue. Is it pulseaudio, android tv, gpu, or it's a some feature of sound over hdmi? Is it somehow fixable? I mean for initial first connection — not ideal, but OK, but then I'd like to 'hear' all executions of all potentialy launched apps start playing immediately.
I know I can flash the image and boot it. But what are the zips used for? I'm asking this because I noticed that images are often accompanied/listed with corresponding zip files - not just for TWRP. And I'd like to understand how they relate and how those zips are applied and when.
For example: https://dl.twrp.me/enchilada/
I am searching for a list of permissions that can be set with adb.
I could just iterate through all permissions and ignore the failed ones but i'd rather filter out the ones that i know can't be set before hand.
I'm using Android 9
on my device, there are many times when I'm away from my phone and it is charging in a different room or someone else is using it, is there was a way to send over the battery percentage say bp over to my PC at regular intervals via the internet.
There maybe apps that can do this but I'm interested more in a script or terminal based approach
Ideas I'm thinking of are:
- using a script manager on my phone like https://play.google.com/store/apps/details?id=org.androidideas.scriptlauncher
crontab
with a script that sends out bp to a copy pasta and my PC can have it's own script reading that- using
cat /sys/class/power_supply/battery/capacity
ordumpsys battery | grep "level:" | awk '{ print $2 }'
once my device is rooted as mentioned here : How to get battery status in terminal? and doing that every N minutes usingcron
I have Termux
installed and my device is not rooted yet how do I proceed.
When using adb install something.apk
, does the Android Package Manager verify the signature of the APK? adb install
seems to bring up nothing up on the phone's screen, so it's hard for me to know if it does.
I like the idea of using APK mirror websites to download APK files with a phone that does not have Google Play Services, but because I can't trust any of those APK mirror websites, I want to make sure that the app's data is not at risk if using adb install
when upgrading to a new APK version.
A couple of questions:
- If
adb install
does do signature verification, what does it do if the signature does not match? Does it fail the install, pop up a question on the phone's screen, or automatically erase the app's existing data? - What if using the
-r
option withadb install
? - If I use
adb uninstall -k
before installing the app upgrade, does signature verification occur from the previous installation before the old app data will be shared with the new install? - Bonus: We have the option
adb install -l
, where-l
stands for "forward-lock the app". What does this "forward-lock" mean, and does it have anything to do with signature verification and app data access?
I have a standard plan with Revolut, which means I can do up to 6kEUR of currency exchange without any transaction each month.
Where can I see in the Revolut Android application on which day of the month my amount of currency exchange is reset to 0?
I use Samsung Galaxy S9 with Android S9.
(Disclaimer: this is not a hidden advertisement for Revolut. On the contrary I advise against using Revolut as overall the user experience is really bad with them)
the BLU Dash X2, Android 6.0, has a known adware app shown as Preinstall Data2
in the Settings | Apps
list, and I finally figured out this is the same as com.android.packages.oseasapps
shown in pm list packages -d
by disabling and reenabling it. the problem I'm having is that recently killing it with Force stop
and Disable
no longer seems to do anything. it's still injecting ads into other apps which I can see happening using adb logcat
, and still is shown in the process list using adb shell ps
.
how can I kill it for real without having to root the phone?
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