Question and Answer about Android from Stack Exchange network.


I'm working together with the local authorities to try to identify where a phone was during the last few days. Some pictures were taken but GPS was turned off. Is there any clue that we could get from the local logs about the location of such images, like available networks? If so, where should we look at?

Device using: Android 8.0

Looking for a way to collect resource usage (processor, at least) on unrooted OS for running apps over time. This last part is crucial, since there are numerous apps presenting current usage for running applications, but i’m yet to find one which can generate statistics, collected by running in the background, for used apps over a period of time. Basically my question is a duplicate of this one, but it was last active in 2012 and also never really got an answer for realtime statistics collection.

I am not a developer and I have an application that I need to run on my Samsung 10+ which uses a plugin developed for the app to receive sensor data from a separate android device via Bluetooth connection. The Samsung 10+ is typically connected to the sensor via the Bluetooth MAC address. As the sensor data is received it is displayed on a map overlay on the Samsung. I don't have the actual sensor, as I don't need it for my purposes, but I have a script which can be run which is supposed to output representative data so that when I connect the two devices I should see the data displayed. What I need help with is identifying how you actually run a script on an android if you are not a superuser. Thanks for any assistance.

How can I download a torrent to the SD card using BitTorrent?

I tried to go to Settings -> Default Download Folder, but I can't see to be allowed to browse to the SD storage location (see error below when I click on the back arrow):

enter image description here

enter image description here

I use BitTorrent.

When I forward an email with Mutt from my laptop, Mutt adds the forwarded email as an attachment with MIME type "message/rfc822".

Unfortunately, Android's stock email client "com.android.email" version 8.1.0 displays the received email like this:

Email app screenshot saying "Couldn't download. Touch to retry"

Two things are wrong with that:

  • It doesn't show the forwarded email's content.
  • It doesn't show the content of the non-forwarded email, the body of the email I wrote in Mutt.

The email displays properly when using K-9 Mail.

Is there a way to make the email app show the email and its attachment?


I'm on a Samsung Galaxy J5 running LineageOS.

I now have my phone(Xiaomi Redmi 4), but it's locked from Google's "find my device". Everyone keeps talking about a password option in find my device, but nothing like that exists! How do I unlock my phone without erasing the data. Here's all I see on googles find my device:

Text

I am driving with Google Maps, while Bluetooth on. I cannot hear any Google Maps sounds if Bluetooth is on, my car stereo system is not playing them, while listening radio (I know you could change the input source but I do not want that). So I turn Bluetooth off because then the sounds of Google Maps come from the phone.

How can you force all sounds from Google Maps to come from the phone, although you have Bluetooth on and connected to car stereo?

Can I use android sdk to flash a system image to a device? If yes, how to do?

Device: Samsung galaxy note3

Model:SM-N9000

Can I install an Android generic system image?.

Does anyone know where I can find the source code of Xiaomi. I don't mean only the kernel code like this here, but the whole code for their OS just like I can get it from here for Android in general.

I came across the following when I was reading up about fully drained batteries in phones:

If the phone is OFF for a month, then it is probable that the battery has gone down to a point that the BMS has shut it down. The BMS won't allow you to charge the battery because, in its own assessment, the battery is dead. Best way to test this case is to have another same phone with a good battery (or just a new battery altogether), detach the cable from that and test on yours.

Referring to the above, do Android phones have their BMS as part of their bootloader or kernel? Or is it a part of the Power IC itself?

Are there any safety mechanisms related to booting up a device with fully drained batteries? If so, why?
(Came across something similar)

I've had difficulties with phones in the past after batteries have fully discharged - eg the Moto G5 had some battery protection "feature" that stopped it starting up if it thought the battery was fully discharged - it was a bit over sensitive so would sometimes assume the phone was fully discharged when it wasn't. Try leaving it on charge for 24 hours or so then holding down the power button for for at least 20 seconds with it still on charge.

Someone told me we can't install Google apps after installing LineageOS and it doesn't support Google Play.

What is the truth behind this? Can I access Google Play in LineageOS?

I'm trying to get a simple accessibility service, like Google's Voice Access or Button Mapper to work on an LG Exalt LTE, running a stripped down version of Marshmellow. The stock is missing many UI components, including system Accessibility Settings, which are normally used for turning accessibility services on or off. I would like to know if it is possible to compensate for lack of UI with ADB. I've tried the following: Install the app (Take Button Mapper for example), Its manifest declares a few permissions, that i've granted, say:

<uses-permission name="android.permission.WRITE_SECURE_SETTINGS" />

was granted adb shell pm grant package.name.here android.permission.WRITE_SECURE_SETTINGS

I even gave it android.permission.WRITE_SECURE_SETTINGS

even though its not declared in the permissions list in the top of the manifest. I get this error: Operation not allowed: java.lang.SecurityException: Package package.name.here has not requested permission android.permission.BIND_ACCESSIBILITY_SERVICE

However, It is declared in the manifest here though:

<service name="a.i" permission="android.permission.BIND_ACCESSIBILITY_SERVICE" stopWithTask="true">
  <meta-data name="android.accessibilityservice" resource="res/xml/accessibility.xml" />
  <intent-filter>
    <action name="android.accessibilityservice.AccessibilityService" />
  </intent-filter>
</service>

and thats where the problem is. this is the service itself, and it requires a non-package-wide permission, BIND_ACCESSIBILITY_SERVICE.

if I start it with ADB like this adb shell am startservice -n package.name.here/a.i

I get and error Error: Requires permission android.permission.BIND_ACCESSIBILITY_SERVICE

even though I already granted the permission to the package.

I've even tried adb shell settings put secure enabled_accessibility_services package.name.here/.a.i, but still get the same error.

Bottom line:

How do I start a service and grant permissions to that service with ADB? To be clear. I already know that I can use adb shell pm grant to grant a permission to the whole package, but in this case it is a permission not required by the whole package it is declared in a specific component and I am at loss as to how to launch the component with the permissions it requires through ADB.

I have a Samsung phone. I don't know anything about installing Android and about Android Studio.

Can I install Android on it using Android Studio?

My goal is that I want to customise my own Android phone to automatically forward text messages from user defined phone numbers onto other user defined phone numbers. I tried updating a very simple app to do this:

https://github.com/EnixCoda/SMS-Forward

However I found that once I had updated to newer Android versions, the app started up and allowed me to set a forwarding number, but did not actually forward the SMS (I used my phone in USB debugger mode). The SMSReceiver class did not get the message that an SMS had arrived I found when I debugged it. I read more, and it seems that only the default SMS app is allowed to have anything to do with text messages. So now, I want to start from the source code of the stock/default SMS app that comes with Android so that I can add the features I am interested in to it.

I'm open to different approaches, but I don't want to download a crapware app with ads or pay nagging.

Doing a little more research, I found that Signal can handle SMS messages, but it seems like quite a big and complicated app.

Any advice appreciated!

Here https://source.android.com/devices/tech/connect/wifi-mac-randomization is the MAC Randomization described and stated

Note: Randomized MAC addresses are generated per SSID and are persistent.

I can confirm, deleting the SSID, rebooting and connecting again there is the same random MAC as before. However if you reset the device to factory defaults and connecting to the same SSID, the device connects with another random MAC address. So how can you trigger this behaviour without doing a factory reset?

I wanted to root my redmi y2 device. I have unlocked my bootloader and successfully flashed Twrp recovery from adb however it's touch screen is not working, probably because my device doesn't supports touch screen in recovery mode as it also uses volume keys to navigate in it's stock recovery.

Is there any other custom recovery which uses volume and power keys to navigate or can I give command from adb or anything else to flash magisk in recovery mode with my pc only or just any other method to root my phone.

I have already wasted hours and hours serching on the web to resolve the issue, also I have tried different versions of Twrp but again no luck. Please help me out, thanking you in advance.

I have a Moto G3 (Android 6.0) with a microSD of 2GB that I configured to use as internal storage. It's been working fine for years, but I want to upgrade to a larger and faster card. So, I'm first trying to safely remove this microSD. When I try to migrate data from the microSD card to my phone's internal storage, it fails with the following message:

Couldn't move data

Data left at original location

However, I thought I cleaned up enough space, as described in this answer. I removed several apps, cleaned data and cache. The microSD reports zero apps and cached data used. Here's the current disk usage:

  • Android OS: 4.19GB
  • Internal storage: 7.68GB of 11.81GB
  • SanDisk SD card: 1.78GB used of 1.80GB

I checked this answer, but it seems different because there the microSD is used as portable storage, instead of internal. This answer seems closer, Droidriven says the /data partition might be the culprit:

Droidriven (reply #13):

You probably have too many apps to move everything to internal, you have plenty of storage but your /data partition probably isn't big enough.

You'll have to backup the apps and data, and store it on PC, then uninstall the apps. Then migrate what is left. Then go from there. You can put the apps and data back after you get done if you have enough space or another sdcard.

Using adb, it seems /data partition has space, though:

$ df
Filesystem               Size     Used     Free   Blksize
/dev                   439.2M    88.0K   439.1M   4096
/sys/fs/cgroup         439.2M    12.0K   439.2M   4096
/mnt                   439.2M     0.0K   439.2M   4096
/system                  2.2G     1.7G   511.2M   4096
/data                   11.8G     7.6G     4.2G   4096
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/cache                 248.0M   242.8M     5.1M   4096
/persist                 3.9M   192.0K     3.7M   4096
/firmware               35.2M    31.5M     3.7M   4096
/fsg                     2.1M     2.1M     1.0K   1024
/storage               439.2M     0.0K   439.2M   4096
/mnt/expand/6318ae65-dd0e-47fb-be4d-522416bf8877     1.8G     1.8G    16.0M   4096
/mnt/runtime/default/emulated: Permission denied
/storage/emulated       11.8G     7.6G     4.2G   4096
/mnt/runtime/read/emulated: Permission denied
/mnt/runtime/write/emulated: Permission denied

I think this is the right track, though, it looks like something related to a partition that doesn't fit.

Where can I look for more info? Can I use adb to perform this migration? Maybe the error messages will be more detailed.

EDIT: One thing I noticed after talking to someone at AndroidQuestions' Discord is that, since before I started cleaning up space, the SanDisk SD Card always showed 0.00 bytes allocated for Apps and Cache and 1.78GB used of 1.80GB. Even after I cleaned up around 4GB of storage, it still showed the same numbers. Is it possible that the SD card used as internal storage will always show these stats because it has been allocated by the OS? Thus, it is actually already empty and I can try to eject it without data loss.

I'll give it a try and post an update later.

How to allow a call recorder app access to call logs?

Since Android 9 (pie) Google Play has forbidden apps that are not the primary telephony app to access the call logs. The other problem seem to be that the phone recording call quality especially of the party on the other end has seemed to be severely degraded since the prior Android version.

For context, read Google Play Store Changes SMS and Call Log Policy.

Related post: Access the call-log to complement what has been banned by policy

When you turn on GPS and some app subscribes for GPS notifications, GPS status info shows up with "SAT", "SIG" and "TTF" info (the last one I know, Time To Fix) but what is the meaning of the first two and what is the meaning of the numbers/symbols (like infinity) shown up next to them?

Update: example of the Android GPS status:

SAT 0/2 | SIG 19/∞ | TTF 27s

The last one means "it took 27s (so far) to acquire GPS signal". I don't know about the first two ones and all those numbers.

I have subscribed for YouTube Premium and have downloaded some tutorial videos I want to keep. However, the channel owner will be deleting his entire channel soon.

Research online is difficult and I'm seeing mixed results, where some say the downloaded videos are kept when this occurs, and others saying they are deleted as well when the channel is deleted.

Will the YouTube app save these videos? If not, how can I hang onto them?

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