Question and Answer about Android from Stack Exchange network.
pretext: as gmail no longer allows me to send zip files, i have been looking into other ways to get my java source directories from android to laptop and back again, depending whether I'm at home or not (folder hierarchy must be preserved). I have been trying to set up git on my android phone and have been using termux as the command shell to do this.
the problem: I am unable to create a directory for which BOTH termux and the java ide have read write access. I have setup storage permissions in termux. If the IDE can write termux can't, and in another location termux can write but the IDE can't.
What I need is a folder location that both apps have full read write permissions. (I am not too bothered if these permissions extent to other folders)
I do not want to root my device.
Nokia 7.2 Android 10
I wish to install TWRP, LineageOS and Magisk on a Redmi 4X I have to replace the stock ROM.
I installed ArrowOS on a Lenovo Vibe K5 Plus very recently and it went very smoothly.
However searching around online, unlocking Redmi phones seem to be a real pain.
While this link tells how to root it and install TWRP(the easy part) it doesn't talk about the part of unlocking the phone's bootloader in the first place. This link leads nowhere.
This link is pretty irrelevant because I don't have a Windows PC. Any tips to do this with Arch Linux??
I couldn't really make sense of this rather long and intimidating thread though it seems to be the most promising one.
I couldn't make any sense of the other google results and they lead me nowhere.
I'm still quite a noob with Android and so would appreciate any help I get.
I have heard about intensive apps causing frame stutters on Android, but this isn't apparently. I'm using a Huawei P10 Lite with Android EMUI 8 (Oreo), and the stutters in this case only happen when I touch/swipe on the screen. For example, if I swipe fast and then release my finger, the screen momentum effect on android just works fine, as it is 60fps, but when I physically touch the screen, doesn't matter the number of fingers I have on it, it just stutters, like if the framerate dropped to about 20 or 30 fps idk. However, I tried installing one of those control center dropdown menus for android, specifically the "Mi Control Center: Notifications and Quick Actions" by Treydev Inc; I did it because the dropdown menu was the first thing where I noticed the issue. It didn't work, and it seemed to drain my battery a bit, so I just removed it, and weird enough so did the stutter issue. For a while it seemed to be gone, and I tried rebooting the phone to make it sure, but after booting it back, the problem returned. I don't think it's any of the apps I have installed, as I only use duolingo, termux, duckduckgo and like. The phone isn't rooted, and no launchers or 'customization' apps are being used. If it's a video, android scroll momentum or anything, it just works fine, only when the screen is touched. Thanks in advance.
I'm running a custom ROM (MIUI xiaomi.eu 12.0.2/Android 10QKQ1.90910.002) and my phone is rooted. I want to encrypt my old deleted data (photos and videos) so that they can't ever be recovered after selling my phone because right now I can recover them using apps like diskdigger.
I have an Android 10 phone (OnePlus 5) and I want to change the Android ID (I think this is what apps use to identify you sometimes). I read that either I can do a factory reset or root my phone, both of which probably involve wiping the data clean which I want to avoid, and rooting looks complicated.
But I read that it's possible to change the Android ID by just using some command line tools, is it possible?
So recently a favorite app of mine has been taken down from Google Play Store. But even though the app is no longer available on Play Store, it is still on my phone and tablet (both from Samsung company) and works perfectly fine on both of my devices. Also, when I go to 'My Apps and Games', I still see the app on 'Library' and 'Installed' options.
I'm aware that in order for my favorite app to function properly, I must ignore software updates on my devices. Hence, I've been ignoring software update notifications ever since.
But what I really want to know is that, will I be able to install the app from 'Library' on a new device from Samsung or any other company even when it is no longer in Play Store? Or doing so will cause the app to malfunction across all my devices? Will the app still be safe on my old devices?
The comments in Does “How will you use this SD card?†wipe data? indicate that the second option in the dialog "Issue with SD card - Tap to fix", which is "Use for portable storage", will also format the external SD card.
My external SD card works without issue from the recovery and I can also mount it after boot from the terminal, but the system does not make it visible e.g. to the file manager app.
I have reinstalled lineageOS recently and until the fourth or so reboot the SD card was working flawlessly and I already used it with the apps that now no longer see it. At the moment, the phone takes long to start with the external SD inserted, and often crashes after unlocking.
How can I avoid reformatting it but still get a behaviour where it works normally and there is no such "issue with SD card" notification?
I have had this issue in the past as well, on different devices, running a different version of (stock) android, with a different SD card. Oftentimes, a reboot or a reinsert of the card would fix it temporarily. But what is going on and how do I actually fix, or at least circumvent, it?
I have a strange problem on my Samsung J2 Android phone. Although apps like WhatsApp and some games which require Internet work, none of the Google Apps like Google, Chrome, YouTube and Play Store are working. Whenever I open the Google apps, it shows "Check your internet connection" although my mobile data is on. But, on connecting my phone to a Wi-Fi network, these apps work. How can I fix this?
P.S. One more important thing: When I open Chrome, I get a message saying ERR_PROXY_CONNECTION_FAILED.
There is a notification almost every time after boot saying "Issue with SD card" "Tap to Fix".
What happens when I then choose "Use as portable storage"?
I don't want any formatting to happen and it is not clear if it will format or not. ( My SD card works fine from recovery and I can mount and view it in the terminal without problem. Not sure what the notification is about. )
I am new to Trusty TEE OS. Is there any way to find out if an Android Device uses such an OS without rooting the device ?
AFAIK there, DRM (Digital Rights Management) is the most widely used application of Trusty OS. Some examples for DRM frameworks are Widevine/PlayReady/ClearKey.
Does it mean that if any of these frameworks are present in the Android device, it is safe to assume that there is an underlying Trusty TEE OS in use ?
Thanks
I am currently trying to run a simple shell script via MacroDroid. devices are Huawei and Samsung (Oreo not rooted).
in MacroDroid tried following locations:
/data/local/tmp/script.sh
/storage/emulated/0/MacroDroid/script.sh
/storage/emulated/0/Android/data/com.arlosoft.macrodroid/files/script.sh
MacroDroid reports permission denied:
/system/bin/sh: <stdin>[4]: /data/local/tmp/script.sh: can't execute: Permission denied
/system/bin/sh: <stdin>[4]: /storage/emulated/0/MacroDroid/script.sh: can't execute: Permission denied
/system/bin/sh: <stdin>[4]: /storage/emulated/0/Android/data/com.arlosoft.macrodroid/files/script.sh: can't execute: Permission denied
the script itself is working when running from adb shell:
adb shell
$ cd /data/local/tmp
$ chmod 0755 script.sh
$ ls -nZ script.sh
-rwxr-xr-x 1 2000 2000 u:object_r:shell_data_file:s0 ...
$ ./script.sh
In Terminal Emulator the script is readable (and passing as argument to sh
works):
$ /data/local/tmp/script.sh
/system/bin/sh: /data/local/tmp/script.sh: not found
$ sh /data/local/tmp/script.sh
$ sh /storage/emulated/0/MacroDroid/script.sh
$ sh /storage/emulated/0/Android/data/com.arlosoft.macrodroid/files/script.sh
MacroDroid got all permissions granted in settings. Macros can create own log files in /storage/emulated/0
What is the proper location for shell scripts on non-rooted device?
For Android rooting these days, it appears that Magisk is dominant, though there are some alternatives mostly for older versions of Android, e.g., CF-Auto-Root.
However, in iOS, there appear to be more options, e.g., checkra1n, unc0ver, and Chimera for iOS 12 and up (with specific exclusions), and a number of other jailbreaks for older versions of iOS.
Am wondering why this is the case? It seems that Android rooting is more narrowly focused on providing admin privileges, whereas iOS jailbreaks also bypass locked bootloader (Android phones typically just allow users to unlock the bootloader), and sideload apps, besides the admin privileges. So, one might expect there to be more alternatives for Android?
Or is it because Magisk is so good, that there is less need for alternatives?
APKmirror provides many modern apps as split apk tar files. For example, if I want to install the android webview apk, I can download it from here, and un-tar the .apkm
file to produce the following split apk:
├── APKM_installer.url
├── META-INF
├── base.apk
├── icon.png
├── info.json
├── split_config.en.apk
├── split_config.es.apk
├── split_config.fi.apk
├── split_config.fr.apk
├── split_config.iw.apk
├── split_config.ja.apk
├── split_config.pt.apk
├── split_config.ru.apk
├── split_config.sv.apk
├── split_config.th.apk
└── split_config.zh.apk
This split apk can be installed with:
adb install-multiple -r -g -t <directory>/*.apk
However, for APKmirror's google play services found here, when I untar I get this:
├── AndroidManifest.xml
├── META-INF
├── assets
├── build-data.properties
├── classes.dex
├── classes2.dex
├── classes3.dex
├── classes4.dex
├── classes5.dex
├── classes6.dex
├── classes7.dex
├── com
├── googledata
├── lib
├── org
├── res
├── resources.arsc
└── stamp-cert-sha256
This looks more like an .aab
file, however it is missing the required BundleConfig.pb
file.
What type of app format it this, and how can I turn it into a split apk that can be installed easily?
If Android says it's connected to a WiFi network, does that mean it's not using any mobile data? Could it ever happen that somehow an apps insists on using mobile data despite having a WiFi connection? In other words, is the only way to guarantee not to be using mobile data is to disable it?
For context, I noticed Google Photos doesn't sync even though it is set to. If I disable "only sync over WiFi" then it works, even if I am connected to WiFi and have mobile data off. Is it necessary to turn off mobile data to make sure it's not used?
As in title: How can I turn off an Android phone in the same Ethernet remotely using a Windows computer?
They are in the same Local Area Network and connected to the same router, the Android phone is connected to the router via WiFi and the Windows computer is connected to the router via a cable.
I have tried numerous times to get a solution using Google search with different keywords, and objectively Google isn't very competent in understanding complex sentences and I can't get what I am looking for, see for yourself what the results Google gave: Google: How can I turn off an Android phone in the same Ethernet remotely using a Windows computer?, most of the results are exactly the opposite of what I intended to achieve.
I want to connect to the phone wirelessly and send commands through WiFi.
I figure I need to use either Telnet or SSH to do this, log into the Android device remotely and use Android terminal commands to shutdown the phone.
Unfortunately I have tried telnet and here is the result:
C:\Windows\System32>telnet 192.168.1.3
Connecting To 192.168.1.3...Could not open connection to the host, on port 23: Connect failed
I know what this means, this is because telnet port is not open and the telnet server isn't online on the Android phone by default.
So naturally I need to install some application on the Android phone that runs the telnet/SSH server and opens the telnet/SSH port, and setup a login and password, so I can connect to the phone remotely and it has to somehow execute the commands.
The phone isn't rooted, but I have Android Studio and the phone does have USB Debugging, what tweaks do I need to make in order to enable remote logging?
And I don't know how to use Android terminal, is there even a command line interface shell on Android? I don't have any experience with this, however from what I have learned Android is based on Linux and I have some experience in Ubuntu 20.04 LTS WSL, I know I can use these commands:
sudo power off
shutdown -h now
Android must use something similar.
How can I achieve this?
The suggested duplicate: How can I shutdown my Android phone using an adb command? doesn't answer my question because it shuts down the phone through USB while I have explicitly stated in my question that I want to shutdown the phone wirelessly through WiFi connection.
I'm owning a Xiaomi Mi TV 4A that runs Android TV 9. I would like to play games on it with the SNES -aka Super Famicom- Nintendo Switch Bluetooth controller.
Connecting the controller works but there is a big delay after pressing a button and there are random other issues like multiple steps instead of one after pressing the D-Pad in a direction.
Is this an issue with the controller or are there settings I'm missing?
I updated the OS, tried reconnecting the Gamepad and rebooting the TV without success.
I removed some apps from my non-rooted Redmi 4X device with 'adb shell' because it was becoming very slow and unresponsive even for basic tasks. The packages I removed following this tutorial are:
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.glgm
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.music
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.videos
Success
santoni:/ $ pm uninstall -k --user 0 com.android.email
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.account
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.mi_connect_service
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.payment
Success
santoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.id
Success
santoni:/ $ pm uninstall -k --user 0 com.mipay.wallet.in
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.mirecycle
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.videoplayer
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.cloudsync
Failure [not installed for 0]
santoni:/ $ pm uninstall -k --user 0 com.miui.player
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.micloudsync
Success
santoni:/ $ pm uninstall -k --user 0 com.google.android.apps.photos
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.hybrid
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.screenrecorder
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.scanner
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.securitycenter
Success
santoni:/ $ pm uninstall -k --user 0 com.xiaomi.midrop
Success
santoni:/ $ pm uninstall -k --user 0 com.android.thememanager
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.weather2
Success
santoni:/ $ pm uninstall -k --user 0 com.miui.yellowpage
Success
santoni:/ $
After I try to reboot, it is now stuck in a boot loop. How do I rectify this? I use Arch Linux so please don't suggest any Windows-only tools that are not available for Linux.
This phone is close to 4 years old and its battery is quite swollen, hence the screen too has come loose. Other forum threads suggest that it might be a battery issue however I would like to first try out anything I can do to revive this phone.
This is my first question on any stack exchange site so please forgive any errors and give me suggestions on how I can improve.
I am using Windows 10 20H2, 64-bit, with CPU virtualization enabled.
I have enabled Virtual Machine Platform because I use Windows Subsystem for Linux. But I had not enabled Hyper-V when I installed BlueStacks.
I installed BlueStacks 4.0 via this executable: BlueStacksInstaller_4.260.0.1032_native_4176a437bc759281d8303dbcf40bdb72.exe,it automatically detects the settings of my computer and downloads the appropriate edition of BlueStacks.
After installation I started BlueStacks, and it starts fairly fast.
But I found the edition of BlueStacks I have installed is BlueStacks (Hyper-V), however I had not enabled it.
So I enabled Hyper-V in OptionalFeatures.exe, and restarted, and then I found out that it just won't finish starting up, it just stuck at displaying Starting BlueStacks Hyper-V, please wait.
The progress bar is very close to finish point, but it just refuses to go any further, like this:
Finally it said: Could not start the Engine.
I restarted the Engine multiple times and always succeeded in recreating the problem.
I then disabled Hyper-V and rebooted my computer, and I can use BlueStacks again.
However I also want to use Oracle VirtualBox, which requires Hyper-V.
So I uninstalled BlueStacks and downloaded the non-Hyper-V edition, tried to install it while Hyper-V is disabled, and it failed with error:
But Hyper-V is disabled:
PS C:\Windows\System32> Get-WindowsOptionalFeature -Online | where {$_.FeatureName -match "Hyper-V"}
FeatureName : Microsoft-Hyper-V-All
State : Disabled
FeatureName : Microsoft-Hyper-V
State : Disabled
FeatureName : Microsoft-Hyper-V-Tools-All
State : Disabled
FeatureName : Microsoft-Hyper-V-Management-PowerShell
State : Disabled
FeatureName : Microsoft-Hyper-V-Hypervisor
State : Disabled
FeatureName : Microsoft-Hyper-V-Services
State : Disabled
FeatureName : Microsoft-Hyper-V-Management-Clients
State : Disabled
I have disabled Windows Defender and I am not using any anti-virus software, my computer has 12 GiB RAM and its CPU is Intel Core i5 4430 @ 3.00GHz;
How can I use BlueStacks with Hyper-V enabled?
I get a lot of annoying spam calls and texts. I want my phone to only give me a sound notification when someone from my contacts list calls or texts me. So I turned on the Do Not Disturb mode, and selected the priories, so that I only get notifications from my contacts.
The problem with this, is that now none of my apps give me notifications. I still want to get notifications from certain apps, like Skype for instance. So I clicked on the app notifications, to select the apps that I want to override the do not disturb. But I am only given a few odd app choices, not all of my apps. (See photo) But if I turn off do not disturb, I get spam calls and texts all day, which is pretty annoying.
Can anyone help me figure out how I can get sound notifications from my contacts only (Call and Text), but still get other app notifications?
I appreciate anyone's help. Thanks!
Is there a good way for shredding my Android's free space to ensure data cannot be recovered? I want to permanently shred my deleted files in free space. I have heard of secure eraser and ishredder.
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