Question and Answer about Android from Stack Exchange network.


How do I use the 'find' command on ADB to search the entire android file tree on a rooted device, including sub directories, for any filenames containing the word 'prop' ?

If I go to the Play Store, and pull up Firefox, I notice that its version 88.0.0-beta.3. I searched some more and found another version that is 87.0.0-rc.1

I dont want a beta version or rc version, I want the most recent stable version. How would I go about installing that?

Edit in case comment is removed: this site was helpful to me (aarch64):

https://archive.mozilla.org/pub/mobile/releases/

I download Android Emulator M1 Initial Preview from https://github.com/google/android-emulator-m1-preview/releases

Inside the .app file I found api30-gphone-arm64-v8a/system.img which isn't a yaffs2 nor sparse file:

./unyaffs2 /tmp/android-wip/system.img /tmp/android-wip/system-img/
unyaffs2-0.2.8: image extracting tool for YAFFS2
image size (3232759808) is NOT a mutiple of 2048 + 64

operation incomplete
files contents may be broken
simg2img system.img.ext4 system.img
Invalid sparse file format at header magic
Failed to read sparse file

So what is the format of such file?

Updates: Based on the direction from @Robert, I can see that the file is an fdisk image:

$ fdisk -lu system.img
Disk system.img: 3,1 GiB, 3232759808 bytes, 6313984 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 41F73643-DBCB-41A1-A27E-9FDB53578618

Device      Start     End Sectors Size Type
system.img1  2048    4095    2048   1M Linux filesystem
system.img2  4096 6311935 6307840   3G Linux filesystem

Now, it's unclear what format of the partition inside, because mount it as a regular linux partition fails:

$ sudo mount -o loop,offset=1048576 system.img /mnt/android-1
mount: /mnt/android-1: wrong fs type, bad option, bad superblock on /dev/loop17, missing codepage or helper program, or other error.

gparted also doesn't understand the partition:

enter image description here

What is the Android 11 Easter Egg? If so how do you find it? Does Android 11 even have a Easter Egg?

https://support.microsoft.com/en-us/office/change-your-background-for-a-teams-meeting-f77a2381-443a-499d-825e-509a140f4780 mentions:

Note: If you don't see this option in the menu, the feature might not be available on your device yet.

What are the requirements to have the change your background feature enabled in Microsoft Teams on Android? I have a Samsung Galaxy S9 with Android and I don't see the feature.

I have contacts from years ago (college friends, old colleagues, etc.) that I don't want to delete, but I also don't want to accidentally butt-dial at 3 am. How do I archive those old numbers for future use, but hide them from my phone app?

I've been told that I can put them all in a different gmail account, or under a different label, and then hide those from display in my contacts app, but that only works for when I'm using my contacts app. All those old phone numbers are still listed in my text and phone apps.

I've tried 4 different phone apps (Google Voice, Google Phone, Android Phone, and Should I Answer) and none of them appear to allow me to hide contacts or only view contacts from specific gmail accounts. Same issue with text apps (WhatsApp, Android Messages, Google Message, MySMS, etc.).

It really should not be this difficult to tell Android "I just want to see a list of numbers I created, not every single phone number I have ever saved in my entire life."

I am using Ubuntu 18.04. From Android Studio with the following code I am getting file directory

Context ctx = getApplicationContext();
final File filesDir = ctx.getFilesDir();

which is /data/user/0/com.example.ipfs/files/. I am running my app on Android Emulator. How do I go to the /data/user/0/com.example.ipfs/files/ folder from my PC?

I'm not able to access play store and maps with my google account, but it remains accessible with another google account. I'm at a loss how to resolve this. Would anyone have any solution?

image of Google requiring authentication for unknown reasons

Many sites show buttons to accept/reject the cookie policy at the bottom of the screen. But on my phone (Xiaomi Note 7, Android 10) this puts them under the on-screen-buttons:

It seems that everything under the faint/thin line at the bottom is out of reach, either nothing happens or the on-screen buttons take precedence (on sites with thicker buttons, I can tap the button above the line)

Is there a way to avoid or mitigate this?

I'm using Xioami MI 9 SE. Over the past day or two, I've started experiencing mysterious crashes on startup with several applications, including a Radio receiver app (local to Israel); Opera occasionally, APKPure; and one or two others.

Now, I noticed other people experiences something similar on their Samsung phones, and also a few new items about a multi-app-crash issue:

Are your Android apps crashing? You’re not alone.

so I thought my situation may be related. However, the workaround suggested at the link doesn't work for me, since MIUI doesn't even show an "Android System Webview" app.

So, could it be the same issue? ANd - how do I restore my system to working order?

Note: Downloading and installating the latest APKPure version does not seem to resolve the crash.

Dear developers,

I have an issue with my script switching from Android 9 to 10 (devices from a Umidigi S3 Pro to a Umidigi F2).

I have installed Bosybox App on the first and Busybox Magisk module on the latter.

Now the script does not work because the command:

list=(`busybox find "$dirs" -type f -name *.$ext`)

returns an empty array.

This is the complete script:

#!/system/bin/sh
echo
if test "$1" = ""; then
     echo "Randomfile script by Uranya <@uranya7x> v1.4 01.01.2021"
     echo "Usage:"
     echo "sh randomfile.sh <sourcedir> <extension> <destdir>"
     exit 1
fi
dirs=$1
ext=$2
dird=$3'/'
dest=$dird'random'
delim1=""
delim2=""
last='last.txt'
# create filename's array
IFS=$'\n'

list=(`busybox find "$dirs" -type f -name *.$ext`)

# count number of files
num=${#list[@]}
# generate random number in range 1-NUM
let "ran=(${RANDOM} % ${num})+ 1"
echo Random from $num files is $ran
sour=${list[ran]}
sourn=${sour#$dirs}
sourn=${sourn:1:${#sourn}}
date=$(date +"%Y.%m.%d %H:%M")
day=$(date +"%d")
hour=$(date +"%H")
minute=$(date +"%M")
message='---------------------------------------\n'$date' - '$num' >>> '$ran'\n'$delim1$sourn$delim2
if ([ "$day" = "01" ] && [[ "$minute" < "29" ]]) || [ ! -f $dird$last ]; then
    echo >$dird$last $message
else
    sed -i '1i'$message $dird$last
fi
echo $delim1$sourn$delim2
# rename the old file
cp $dest.$ext $dest'_back.'$ext
# copy the file
cat "$sour" >$dest.$ext
echo File copied as $delim1$dest.$ext$delim2

Can you please help me to understand why this happens, and how to fix it? Thank you very much for your attention!

I would like to have my home screen as clean as possible. Is there a way to remove the "Bing" icon from Microsoft Launcher (bottom right corner)? I've deleted the search widget, fixed the dock in place - nothing helps.

I have:
Android 10.
King Kong Mini 2

enter image description here

I want to know which devices I have already connected to my computer with my ADB or know which computers I have connected to my phone previously. Either way works for me.

adb devices -l does not show anything important, because it only displays currently attached.

I would prefer a way without root (on phone), but will accept any help.

Recently, apps that are fine an hour ago now crash when I open them. The crash report message seems to be caused by a null pointer exception (NPE) in com.google.android.trichromelibrary.

Apps affected for me:

  • Gmail
  • Dashlane

Is it just me, or is there actually something wrong with the library? How can I fix these affected apps?

Crash report:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Xiaomi/polaris/polaris:10/QKQ1.190828.002/20.9.4:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: ...
pid: ..., tid: ..., name: com.dashlane >>> com.dashlane <<<
uid: ...
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    
    ...

backtrace:
    #00 pc 00000000038621f0 /data/app/
com.google.android.trichromelibrary 438909034-YaxP9ttrIDcQBfleP5vm7Q==/base.apk!
libmonochrome_64.so (offset 0x646000) (BuildId: ... )

(click here for the screenshot of the bug report)

Galaxy S9: All day, most apps that I open will stop and immediately close. Apps running i the background repeatedly give the message "(app) keeps stopping".

I've removed the SD card, and started it in Safe Mode. I also wiped the cache partition and cleared the Chrome cache.

I'm using 57.1 GB out of 74, and memory shows 2.3 GB out of 4 used.

Can we toggle between light and dark theme in Maps?

Maps has shown a message after a new update asking to choose between dark and light theme. After selection (dark, which was illegibly dark under daylight and especially sunlight, or maybe it's my presbyopia) the way to switch out of that without changing the whole system theme was to uninstall (downgrade) the app, update it and then chose the light theme when aforementioned message popped up again. My system theme is dark, and I want it that way, but I don't want dark for Maps, except maybe when it's really dark outside.

Maps 10.62.1 Android 10

I run a PC which controls my astronomical telescope equipment, it works off batteries as there is no mains power at the site. There is mobile service at the site and I've successfully tethered my phone to the windows 10 PC via a USB cable tether, so I can get internet access using a browser on the PC.

I would like to use my PC at home to control the remote PC via its phone tether and I usually use Microsoft's Remote Desktop software to do this when connecting to PCs on a LAN or over the internet, but I can't seem to find the tethered PC's connection credentials. I'm probably missing something I guess.

I've searched for solutions on the internet such as ' how to rdp to a phone tethered PC', but not had any luck with that.

Could anyone explain how to use the remote desktop client to login to my tethered PC?

Many thanks for help.

I have a Samsung Galaxy S10 5G. Is it important for the charger and cable to have certain specifications to utilize the 25W charging capability?

I have enabled Android 11 easter egg by dialing 3 times and unlocking "11" now I have cat controls enabled when I slide down settings shortcut menu on my Poco F2 Pro (MIUI 12 - 12.2.4), and I do not know how to disable this. I honestly don't mind having these controls there, but my UI became very laggy since I've done this (there were no POCO launcher updates or any updates for that matter hence, "cats" are the main suspect). Anyone knows how to disable them?

I accidently erased /system partition and now have my Gionee S10C phone bricked.

I downloaded original firmware, but I can see series of system image files.(This firmware is to be used by Qualcomm Flash Image Loader)

system_1.img, system_2.img, ..., system_53.img

When I'm trying to install the original firmware using QFIL by putting the phone in EDL mode, I get sahara fail error. (Same error in here and I tried most of the fixes I can find, but nothing works)

Now, is there any way to use the above 53 system images to restore my phone using fastboot flash command?

I'm sure only system partition is needed to be restored to get my phone working again, because I haven't modified any other partitions.

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