问:
Read input from stdin when using `pm install`
I would like to install an application using pm install but not provide the APK path and rather provide application data using stdin as shown in the documentation below:

```<code>install [-rtfdgw] [-i PACKAGE] [--user USER_ID|all|current]
       [-p INHERIT_PACKAGE] [--install-location 0/1/2]
       [--install-reason 0/1/2/3/4] [--originating-uri URI]
       [--referrer URI] [--abi ABI_NAME] [--force-sdk]
       [--preload] [--instant] [--full] [--dont-kill]
       [--enable-rollback]
       [--force-uuid internal|UUID] [--pkg PACKAGE] [-S BYTES]
       [--apex] [--wait TIMEOUT]
       [PATH [SPLIT...]|-]
    Install an application.  Must provide the apk data to install, either as
    file path(s) or '-' to read from stdin.  Options are:
      -R: disallow replacement of existing application
      -t: allow test packages
      -i: specify package name of installer owning the app
      -f: install application on internal flash
      -d: allow version code downgrade (debuggable packages only)
      -p: partial application install (new split on top of existing pkg)
      -g: grant all runtime permissions
      -S: size in bytes of package, required for stdin
      --user: install under the given user.
      --dont-kill: installing a new feature split, don't kill running app
      --restrict-permissions: don't whitelist restricted permissions at install
      --originating-uri: set URI where app was downloaded from
      --referrer: set URI that instigated the install of the app
      --pkg: specify expected package name of app being installed
      --abi: override the default ABI of the platform
      --instant: cause the app to be installed as an ephemeral install app
      --full: cause the app to be installed as a non-ephemeral full app
      --install-location: force the install location:
          0=auto, 1=internal only, 2=prefer external
      --install-reason: indicates why the app is being installed:
          0=unknown, 1=admin policy, 2=device restore,
          3=device setup, 4=user request
      --force-uuid: force install on to disk volume with given UUID
      --apex: install an .apex file, not an .apk
      --wait: when performing staged install, wait TIMEOUT milliseconds
          for pre-reboot verification to complete. If TIMEOUT is not
          specified it will wait for 60000 milliseconds.
</code>```

However, I did not understand how to exactly provide an option to use stdin. I have tried:

pm install -

pm install '-'

pm install "-"

However, it does not prompt me for input using stdin but instead gives this error:

```<code>java.lang.IllegalArgumentException: Unknown option -
        at com.android.server.pm.PackageManagerShellCommand.makeInstallParams(PackageManagerShellCommand.java:2921)
        at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1258)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:194)
        at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
        at android.os.ShellCommand.exec(ShellCommand.java:44)
        at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:26636)
        at android.os.Binder.shellCommand(Binder.java:965)
        at android.os.Binder.onTransact(Binder.java:839)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5206)
        at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:5281)
        at android.os.Binder.execTransactInternal(Binder.java:1195)
        at android.os.Binder.execTransact(Binder.java:1159)
</code>```

What am I doing wrong?


问:
Is possible to see battery status of a bluetooth audio device if is not used for calls?
I have bluetooth audio receiver which shows its battery level in Bluetooth settings. But when I disable Phone calls for this device, can't see battery level anymore.

It's even possible to see it without using the device for calls?

ContentLicense: CC BY-SA 4.0


问:
How can I download a file with the Google Drive program directly to my phone's SD card?
I use Samsung Galaxy S9 with Android 10. How can I download a file with the Google Drive program directly to my phone's SD card? By default files are downloaded to my phone's internal storage.</p>


问:
A515F Global version in Bootloop
Anyone, please help, I charge the phone overnight at normal, wake up in the morning the phone is in bootloop Forever! (It's Samsung A51 Global version, A515F with the 5/18 firmware stock ROM, NO rooting, No custom ROM)
I even try Reiboot's repair function multiple times and it didn't work.
It did re-apply the latest Firmware to the phone for me but still cannot boot to android.

The phone is able to boot to recovery mode only, I cleaned up the dust of the internal also as it has no warranty at all. I am not attempting to fix the phone, I just wanna pull all the files of the internal memory back before I can factory reset it in Recovery mode.

I have the USB debugging activated. Any questions or details please ask, I can replace it with a new phone, but at least I can pull the data out, or better yet, able to boot it to the android system, I tried the safe mode method NOT working.

Title: A515F Global version in Bootloop


问:
Why fastboot isn't accepting unlocking code I received from Sony?
I'm following this https://www.getdroidtips.com/android-10-q-sony-xperia-x guide about changing ROM of my phone to Android 10. My Xperia X is stuck on Android 8
and isn't getting any further upgrades. It gets only security patches. But that will end soon too.

I got unlocking code from Sony but I got a pushback from fastboot:

running fastboot -i [received code here]
resulted in error: invalid vendor id '[received code here]'

Edit:
I already toggled on OEM unlocking in the system's settings. After running fastboot flash recovery twrp.img I got:

```<code>sending 'recovery' (21824 KB)...
OKAY [  0.697s]
writing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: 0.699s
</code>```

which hinted me that I needed the unlocking code from Sony.

How should I proceed ?


问:
Xiaomi Mi A2 + Lineage OS 11 = no mobile network internet
I have an Xiaomi Mi A2 with Lineage OS 11 installed.

Calls, texts and wifi work fine but switching off wifi or moving out of range of router results in loss of internet, i.e. my mobile network does not kick in.

I have tried reinserting sim and toggling aeroplane mode with no results.

Putting the sim back in my old phone and the internet works fine,

Any ideas?

Thanks

update

I am been revisited the instructions on  https://lineageosroms.com/jasmine_sprout/#installation and tried the below builds:

lineage-17.1-20210327-nightly-jasmine_sprout-signed.zip

lineage-17.1-20210320-nightly-jasmine_sprout-signed.zip

lineage-18.1-20210626-nightly-jasmine_sprout-signed.zip

Still no mobile internet.


问:
What does it mean when a file is owned by the user “system” and the group “system”? in android file system
I just trying to understand What does it mean when a file is owned by the user “system” and the group “system”? in the android file system.

In the android device file system

```<code>root@xyz:/ # ls -l cache/
drwxrwxr-x system   system            1969-12-31 17:00 SH_DIR
drwx------ system   system            2021-06-02 23:26 backup
drwxrwx--- root     root              2021-06-02 23:17 lost+found
drwxrwxrwx root     root              2021-06-08 02:12 test
drwxrwx--- system   cache             2021-06-07 05:40 recovery
</code>```

For SH_DIR and backup have owned by the user “system” and the group “system”.

Thanks in advance.


问:
Xperia X F5121 won't boot past splash screen
I'd appreciated any feedback on the below.

I followed this https://forum.xda-developers.com/t/rom-10-0-aosp-suzu-sonyxperiadev-q-builds.3969967/ thread about upgrading Xperia X F5121 from Android 8 to 10.

After going through the steps my phone is stuck on the splash screen with SONY logo. Won't boot further.

I used TWRP to wipe data, system, Darwik and cache, then flashed custom ROM, then I used fastboot to flash oem binaries, then flashed Gapps and rebooted.

Where did I probably go wrong ?


问:
Why isn't the unlock pattern working anymore?
A few days ago my unlock pattern was not recognized anymore. I'm guessing the cause is memory corruption or some bug.

I haven't restarted the device yet, hoping to "find" the new pattern or somehow bypass the screen lock.

The device is not rooted and "require PIN when device powers on" is disabled. Firmware is G950FXXS5DSJ1 build date Sep 30 2019.

It is encrypted:

```<code>> adb shell getprop | find "crypto"

[ro.crypto.fde_algorithm]: [AES-256-XTS-DISK]
[ro.crypto.fs_crypto_blkdev]: [/dev/block/dm-1]
[ro.crypto.fuse_sdcard]: [true]
[ro.crypto.state]: [encrypted]
[ro.crypto.type]: [block]
</code>```

What I've tried

Google device manager - can only reset the device for non-enterprise accounts.

Samsung FindMyDevice - can change the PIN if enabled in the settings - disabled it for security reasons.

"Guessing" the PIN - I've tried feeding all the possible combinations to

```<code>adb.exe shell locksettings verify --old xxxxxx
</code>```

The response is always "Old password 'xxxxxx' didn't match". Strangely, it's not throttling (tested the same method with an Android 10 device and immediately got "Request throttled"). Might be related to missing files (more below).

Looking at logs  - since ADB is working, I've tried looking at adb.exe logcat -b system, but have no idea what to look for.

Some  suspicious messages:

```<code>LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system_de/0/spblob/xxxxxxxxxxxx.weaver: open failed: ENOENT (No such file or directory)
</code>```

I understand /data/system_de/0/spblob/xxxxxxxxxxxx.weaver is used in the password verification.

Looking at /data/system/ some files might be missing (I've read that unlock data is stored in gatekeeper* files which I can't find, maybe because of insufficient permissions):

```<code>1|dreamlte:/ $ ls /data/system/
ls: /data/system//hdcp2_5386: Permission denied
ls: /data/system//users: Permission denied
ls: /data/system//container: Permission denied
ls: /data/system//ndebugsocket: Permission denied
ls: /data/system//secure_storage: Permission denied
ls: /data/system//.aasa: Permission denied
ls: /data/system//heapdump: Permission denied
HWParamTime.bin                 dropbox                       locksettings.db-shm         screen_on_time
SimCard.dat                     enterprise                    locksettings.db-wal         sensor_big_data.txt
WifiHistory.db                  enterprise.conf               log-files.xml               sensor_big_data_usage.txt
WifiHistory.db-journal          enterprise.db                 mobeam_big_data_usage.txt   sensor_service
analytics.db                    enterprise.db-journal         netpolicy.xml               shared_prefs
analytics.db-journal            enterprise.db-shm             netstats                    shortcut_service.xml
appops.xml                      enterprise.db-wal             notification_log.db         slice
audioservice_sec.db             enterprise_cacerts.bks        notification_log.db-journal slocation.db
audioservice_sec.db-journal     enterprise_nativecerts.bks    notification_policy.xml     slocation.db-journal
battery-saver                   enterprise_untrustedcerts.bks overlays.xml                slocation.db-se
batterystats-checkin.bin        enterprise_usercerts.bks      package-cstats.list         sound_model.db
batterystats-daily.xml          entropy.dat                   package-dex-usage.list      sound_model.db-journal
batterystats.bin                friends                       package-usage.list          startingwindow
big_data_sensor_usage_pkg.txt   gamemanager.db                package_cache               storage.xml
big_data_usage_call_gesture.txt gamemanager.db-journal        packages-warnings.xml       sync
cachequota.xml                  graphicsstats                 packages.list               timezone
clipboardimage.db               harmony_third_party_apps.xml  packages.xml                ucm_ca_cert
clipboardimage.db-journal       hcm_info                      packages.xml.mbak           uiderrors.txt
conventionalmode                hcm_info-journal              pda.db                      urigrants.xml
device_policies.xml             ifw                           pda.db-journal              usagestats
deviceidle.xml                  inputmethod                   pre_boot_csc.dat            watchlist_report.db
diskstats_cache.json            install_sessions              procstats                   watchlist_report.db-journal
display-manager-state.xml       install_sessions.xml          recoverablekeystore         watchlist_settings.xml
displaysolution.db              job                           recoverablekeystore.db      wifigeofence.db
displaysolution.db-journal      last-fstrim                   recoverablekeystore.db-shm  wifigeofence.db-journal
dmappmgr.db                     last-header.txt               recoverablekeystore.db-wal
dmappmgr.db-journal             locksettings.db               registered_ucm_services
</code>```

What can I do to understand what happened?

Will restarting restore the pattern or cause even more problems?


问:
How to find PID of test runner
I have my app and my tests saved as following:

```<code>App package name: com.my.app
Test runner: com.my.app.test
</code>```

When I run the app by itself, I can use adb to see the pid of my app: adb shell ps | grep com.my.app

```<code>u0_a839      14710  1044 41927360 714352 0                  0 S com.my.app
</code>```

When I run my app with automation, I tried calling the same adb command while the tests were running: adb shell ps | grep com.my.app.test
But nothing shows up.

Title: How to find PID of test runner


问:
Is it possible to install Android Gingerbread on a Galaxy Nexus?
I have an old Samsung Galaxy Nexus from years ago and I was wondering whether it's possible to flash an older Android version like Gingerbread on it using a custom ROM. Since it was originally launched with ICS, I'm not sure if there are any Gingerbread ROMs for it and whether it's even capable of running Gingerbread.</p>


问:
Boot image header fields are invalid
I want to install TWRP on Redmi 5 (Rosy), during installation everything works normally. But when I want to boot into TWRP,

```<code>fastboot boot TWRP.img
</code>```

a failure message appears on the ADB command line.

```<code>FAILED (remote: bootimage header fields are invalid)
</code>```

Previously I was on the EU MIUI Custom ROM. All happened after I tried to flash the MIUI 11 Global firmware

Title: Boot image header fields are invalid


问:
Why are battery optimization options getting reset all the time and how to prevent this?
They aren't just reset after every restart / upgrade but even without running any update or restarting.

One problem that results from this beyond having to change the settings after update is that firewall apps can get disabled.

After every update the NetGuard firewall was disabled which may be caused by this or be a separate issue.

Additionally, nonessential things/apps like "Facebook Services" can't be set to "Optimize".

For example, "Analytics" is constantly set back to "Don't Optimize", simply overriding my decision to disable it.

How to persist the battery optimization settings?


问:
Why is impossible to remove system apps and preinstalled apps like 'Facebook' (with Android OS & without rooting) and can they be suppressed?
What is the explanation offered by manufacturers and vendors for why this is the case?

Have there been legal challenges to this practice?

For instance, I can't remove the apps 'Facebook' (not OS-related), 'Analytics' and some non-essential apps by the phone's manufacturer.

Using the network protocol feature of the NetGuard firewall I can see that very frequently data is (attempted to) being sent via these apps. I have not investigated the content of the data being sent but maybe somebody else will do so for common system-apps and phone models until new Android alternatives exist.

Furthermore, is there a way to disable such apps in a way that has similar results on phone performance, security and privacy as uninstalling them (like sandboxing the app) without rooting the device and using default Android OS on the hardware?


问:
Resuming multiple downloads in Chrome
Many sites give all their files the same name. When downloading multiple files like this, Chrome helpfully adds a (1), (2), etc. to the filename. However, if something interrupts the download, such as a full memory or a connection reset, I find that Chrome often refuses to resume the download, on the grounds that "file already exists." Typically these are incomplete files and are useless if the download can not be resumed.

The problem here is not that Chrome is unable to resume the download per se. If you go to downloads you get the option of resuming. The problem is that Chrome refuses to resume a download if a file of that name exists, where 8f it were a new file it would just be renumbered.

Is there any way to get Chrome to finish the downloads in these circumstances?

Title: Resuming multiple downloads in Chrome


问:
Is the "Cast" functionality Miracast or Chromecast?
When I go to Settings -> Display -> Cast, check "Enable wireless display" (no idea why I have to do that) and connect to a display, will it use Chromecast protocol (over Wifi) or will it use Miracast protocol (separate direct Wifi connection)?

Or does it support both and chooses depending on the receiver? Then let's assume the receiver is a Chromecast.


问:
what kind of apps can cause high I/O?
The problem is high IO, mainly read 50 to 150 MB/s (shows always as 100% tho), for about one minute of despair, lowering the quality of the android realm user experience.

The only way to know for sure, would be https://www.xda-developers.com/check-io-usage-iotop-android/amp/

So, i would need root and a specially compiled kernel (rom?).

But, if you could hint me, mainly if yours have an iotop like app, it could be enough.

Android 6.0.1

I tried stopping gallery, i thought it was scanning media, didnt help.

During high IO, i saw zygote, /system/bin/installd, system_server  use a bit cpu but on top of the list, but that is a proccess, not an app (that we could stop).

I use simple system monitor app.

And i need to know HINTs of the app/proccess, not the overall IO neither what specific proccess here is causing trouble (as hints may suffice), so I can try stopping them by chance.

Thats why my question differs from: View disk utilization / activity (also the accepted answer there doesnt answer about showing specific proccess IO, that is in the body of the question, therefore the accepted is just a partial answer).

Title: what kind of apps can cause high I/O?


问:
I Can't Get Root Back After Trying To Modify The Hosts File
I have a Motorola Edge (regular not +) running LineageOS 17.1 (20210528). I had it rooted and decided I wanted to use the hosts file for ad blocking. I couldn't figure out how to get the OS to allow me to modify the host file. While I was doing so, I somehow corrupted to OS and couldn't boot into it. That was easily fixed by flashing the the OS, but now I can't get root back. When I reboot after I flash the Magisk patched boot.img (to both partitions), I get "Can't load Android system. Your data maybe corrupt..." (This happens when I try to boot into both partitions). Before I see the error message, it goes into a bootloop for a few minutes.

Thanks


问:
How do I create a shortcut on the home screen to change the time zone?
I want to be able to just tap a shortcut icon on the home screen and it would change the time to a predetermined time zone...instead of having to go to...Settings > Date & Time > Disable "Automatic date & time" > Disable "Automatic time zone" > Select "Select time zone > Scroll for the time zone I'm looking for > Select it.

Android 7 | Rooted


问:
Force light mode for specific app
I use my phone on dark mode, but there is a specific badly done app that uses black text on dark background when using dark mode. So, I want to use light mode only for that app.

How do I do that? I'd like something that isn't an app constantly running in the background, so something like an XPosed module would have the best performance. However, I'm open to non-root solutions, especially for anyone who's reading this question and doesn't have root.

Title: Force light mode for specific app


问:
Accidental Whatsapp privacy breach
I exported my chat history with my friend, JJ, to my Google drive. Somehow a chat history between JJ and someone else (Meg) was exported. I have no idea who Meg is and i have no record of her in Whatsapp or anywhere on my phone.
I tried again and my chat with JJ was exported and saved. However,it did export Meg's a few more times as well.
It seems very wrong that i have a stranger's chat history with my friend saved on my drive.
Any ideas how this happened? I'm on Samsung Note 8.</p>

Title: Accidental Whatsapp privacy breach


问:
How to fix Hard disk unmount error
I tried to format a hard disk which was already formatted and i am getting this below unmounted error . Please tell me how to fix this error</p>
```<code>sm list-volumes|grep public
public:8,1 unmounted 91da13ff-87b5-41bf-bf84-6300daae0cad
</code>```

Title: How to fix Hard disk unmount error


问:
Why no storage error showing with my space empty?
Im having more than 12GB free space

And when i try to install app or update app im getting no storage error. I have clear cache also still showing same issue. Any suggestion. Thanks


问:
Android internal storage files recovery method that still work in android 10
I have a realme 5 phone running Android 10 and realmeUI 1.0. I accidently deleted whole folder containing pictures and a few videos. Is there any method that still works in android 10 since the methods I have read on this platform as well as on other websites are from 2015-16.

Deleted from: internal storage

NO ROOT and bootloader is NOT unlocked.
Although I'm ready to root if that could help recover all my data. If data recovery is possible without root that would be better but if not I'm ready to root.

Also since the phone is secured by passcode (the data must have been encrypted(?)) and if I root it directly without doing away with passcode will the data (images and videos) be readable by data recovery software. Or I should do away with passcode (which will decrypt data) and then root so that the decrypted data can be read by data recovery software.

Any help would be appreciated


问:
Why FlashTool isn't detecting firmware?
I'm trying to flash stock Android 8 onto my Xperia X F5121.
Please see screenshots below:

What did I miss ?

Title: Why FlashTool isn't detecting firmware?


问:
Boot custom kernel via phone
I can currently boot a custom kernel (without flashing it) for test purposes by using fastboot on my computer via:

```<code>cmd> fastboot boot customkernel.img
</code>```

Which works great. I've found great kernels that do different things but have trade offs such as an overclocked gpu but the battery life takes a hit or an undervolted kernel but performance takes a hit.

So the kernels are great for different situations. But it would be great to use them for different situations without needing my computer. So if I wanted to use an game emulator I could boot into the gpu overclock or if I need battery life I could boot undervolted kernel.

Is there a way to boot custom kernels via fastboot on the phone without needing an external computer to run cmd commands?

Fastboot is defined as holding both volume up and volume down plus the power key. Not just holding volume up and power.

ContentLicense: CC BY-SA 3.0

Title: Boot custom kernel via phone


问:
Loud notification(?) sound happens at random on LG Stylo 6
This was my mom's phone, she got a new one and I inherited this nearly brand new stylo. I factory reset the phone (mainly to get rid of her dozens of unwanted apps), and found that when I unplugged the phone, it would make this really annoying loud sound:

Low-pitched tone for .5 sec, high-pitched tone for .5 sec, then a long slide from low register to high register. Reminiscent of a car alarm, kind of.

I have used Macrodroid on my old Stylo 3 for various utilities, so I downloaded it and made a Macro that detects unplugging of phone, turns on "Do Not Disturb," waits 2 seconds, then turns off "Do Not Disturb." This fixed the beep when I unplug my phone, but...

Now, this nasty, loud beepy thing happens at random. I'll be at the store, or in my garage, or it's sitting on my desk charging, etc. etc, and BAM! low beep, high beep, low to high swoop. My brother just now was two rooms over and came in to ask me, "So, was that your phone making that crazy sound again?" I told him "Yes, it just happens randomly now."

WTF?!? Any ideas on what could be causing this? I went through my notification sounds, and can't find one that sounds like that, I made sure that my NFC was turned off (I read that sometimes that can pick up a signal and do weird things).


问:
How to successfully and safely install a free app, using android (not a PC), from Play Store but without using the Play Store app?
I log in on Google with Firefox, access the Play Store site, click "Install" for the chosen app (only clickable after I remove &gl=US from the URL). It says it will be installed soon. 30 nonsense minutes later, nothing happened, and the site says "installed". So, it simply doesn't work.

How to make it work?

I don't want Play Store app endless restarting, bloating my 1.4GB RAM, and making good games, on my old phone, lag, or even crash. I already disabled or uninstalled many other bloatware apps, this one I enable and disable all the time, so messy is my Android realm user experience. I found no .apk link thru Chrome's view-source: at the Play Store site.

Any other way to get a safe APK from the Play Store site without the Play Store app, can work as an answer too!

Someone suggested: How can I download an APK file from the Play Store?

by what i read, i could directly download from play store, but i would need a PC and java, and use my credentials on it, what i could do but would require a PC, so i edit my question.
I could also download from other sites mirroring apks, but my goal was directly from play store.

In truth... if the play store app could stop auto restarting (after i force stop it), using RAM, making the phone lag and messing when i try to play heavy games (that use a lot of RAM), it would work too. But they insist in preventing us from controlling when an app will auto restart, and that just makes me feel like i am using windows 95 again (as i use linux on pc since long time ago) where we can control almost nothing right? so i created this: where is configured how an app will auto restart?

stuck with Android 6.0.1 (samsung wont uodate it) on a sm-j700m


问:
Why whatsapp always makes notifications at the same time of everyday but there is no message?
Whatsapp always makes notifications at 13:15 of everyday, but when I check, there is no message at all. So when it's about to 13:15, I keep looking at my phone, whatsapp pops up a notification but it disappears immediately. This happens at 13:15 of everyday. I don't understand what is wrong. My phone is Android 9.

Thank you.

OwnerDisplayName: Ryan


问:
Clear app default actions in Android 10
Mi App has silently taken over everything related to documents in my Gmail and printing in general in my phone. Whenever I do any action that is "an inch close to printing) then Mi App appears.

I cannot change it in the usual way because my Motorola Moto One / Android 10 (One) claims that Mi App has no defaults defined and so there is nothing to clear:

This is super-duper annoying because right now I am even not able to preview a .docx or .pdf attachment sent alongside some email, because each such tap instead of showing document preview, opens up Mi App claiming that there is no printer added.

How it is possible that some app is making some "silent" takeover of some action, without clearly showing this fact in Android's or app's configuration? Even more important -- how to get rid of this and bring the default action (of documents previews) to my Gmail?

EDIT: Since this is Android on board Motorola device, it should be very close to stack Android without any significant changes from Motorola side.

Title: Clear app default actions in Android 10


问:
How do I disable data on my ics xoom LTE?
I have a xoom LTE from Verizon but do not currently have a data plan.

After getting the ics update I went into settings and unchecked mobile data.

I have no reason to believe that I am using Verizon's network, but I am surprised that there is a network strength icon in my notification area that is constantly updated.

Is there a way to turn off signal strength checking for the phone network since I do not even have a contract with Verizon? Will it just always be there now that I have ics on the xoom?


问:
AFwall+ sometimes can't apply rules and doesn't get root
Sometimes AFwall+ has an error. It says it can't apply the iptable rules and that it failed to get root. I look in Magisk and there is no entry for it. Rebooting the phone fixes the problem. I'm just wondering if there's a more permanent solution?</p>


问:
Turning on "show pointer" breaks mirrored screen. How to turn off without phone screen
I am trying to help a friend who's screen broke on their Huawei P30. The screen is dead-dead. No touch, no light, nothing.

So I tried to connect an external screen to it, an voila, I have a screen. I even have a mouse and keyboard working. However, I want to copy the contents of the phone onto the computer, and nothing is showing up on the computer when I plug it in. So I tried to get ADB to help me.

ADB is not trusted, or something along those lines. So I go back to the screen, and turn on developer mode, and try to change settings to hopefully bypass the notification asking to give permission. Nothing works, I keep trying new settings.

This is where I mess up. Apparently there is a bug or something, because when you turn on (and I have no idea why I did this) "Show Pointer" the external display goes black with a grey bar at the top theoretically showing the pointer X and Y coordinates, etc.

If I reboot the device I see the home screen for 0.5 to 3 seconds before it reverts back to the black screen. If in this time, I click on the settings icon, it immediately goes to black.

Question: Is there a way, without access to the screen of a device to:

get ADB to work without it been an authorized device (I'm guessing not), or

turn off pointer location somehow using ADB or similar method, or

navigate the menus of the phone with a keyboard only, no mouse, no clicking, just keystrokes, so I can disable this blind (using another phone or video to know how many times to press down, for example)?

Any advice at all would be great. Since they already have a new phone, I don't want to have to pay to replace the screen, but that is last resort (which I hope would work).


问:
"File as" not working for Contacts
Many contact management tools (such as Google Contacts or Microsoft People) have a field called "File As", which allows to save a contact using a nickname, while keeping the first and last names hidden, just in case you forget who they really are.

It would be really useful, but it doesn't work at all on Android. While the contacts are displayed correctly on the web app, Android applications like WhatsApp still display my contacts by first and last name.

Is this a Google/Microsoft problem or is it caused by android/WhatsApp itself? Is there any workaround to make it work (at least for WhatsApp)?

It's ok for me if it involves coding or installing an unofficial version of any application, but it would mean a lot to me if I could fix this issue for me.

Looking inside the Android Developers reference I couldn't even find any information about the "File As" field, so I wouldn't know where to start!

OwnerDisplayName: Pellegatta Simone

Title: "File as" not working for Contacts


问:
Is it possible to feed sound from bluetooth source through phone to bluetooth headset?
We use 2 way radios for communication at work. It's often difficult to hear the radio over background noise, so I ordered a bluetooth adapter to plug into the radio to go to an earpiece so I can hear the radio better. I already often wear a bluetooth headset connected to my phone to make phone calls or listen to music when appropriate. What I want to know is would it be possible to link the radio adapter to my phone, and then route the radio sound to the headset linked to the phone, so that I could both make phone calls and talk on the radio with the same headset?
I have an S21 ultra, and the two bluetooth headsets I have are an aftershockz trek air or an axil gs extreme if that makes any difference.</p>


问:
What is the Root app in Android and why is it connecting to the Internet?
The Root app is showing up in ProtectStar Firewall, but not the Settings app list with System Apps visible. It tried to connect to 99.86.100.101, an AWS (Amazon Web Services) IP address according to that app's log. What is it doing?</p>


问:
How to spoof NMEA sentences on physical Android 8.1 phone for apps like WeChat?
The problem. Location spoofing is fairly simple for most Android apps. It's done either by using Xposed modules such as XPricyLua or by using a location spoofing app such as Fake GPS Location or even both. But few sophisticated apps such as WeChat or GPS Info & NMEA Logging will anyway detect your real location even if you use an Xposed module or a FakeGPS app or even both. It happens because they utilize hardware level SDK (e.g. BaiduLocationSDK) and will relay on NMEA sentences rather than LocationManager and FusedLocationProvider APIs. There's a related post on stackoverflow that haven't been resolved.

Spoofing methods I have tried and they haven't worked (even on rooted Android):

Xposed Modules such as XPrivacyLua and LocationInjector (apps see NMEA sentences from real location)

Anything using Developer options, mock location app (Fake GPS location, MockGeoFix, Bluetooth GPS Provider)

Fused location provider spoofing with apps using both mock location and Xposed module (Mock Locations (fake GPS path))

IP geolocation spoofing (VPN)

GPS provider spoofing & IP geolocation spoofing

geo nmea and geo fix commands (worked on emulator, MockGeoFix doesn't show NMEA sentences)

Ideas. Some GPS-over-bluetooth/network/serial apps such as GNSSTool or GPS Connector almost do the work. They are able to receive NMEA sentences from other hardware devices (e.g. Android phone) or even replay them from nmea-files BUT but WeChat and GPS Info & NMEA Logging doesn't see satellites and NMEA sentences anyway (as mock location app selected).

The question. Are there any other applications, modules (Xposed, Magisk), methods or ideas to spoof location in apps relaying on NMEA sentences on a physical Android 8.1 phone?


问:
How can I connect Redmi K20 Pro back to my PC?
It was all fine before I removed windows 10 old folder from my system due to space problems from my c drive, I can connect easly my redmi phone through USB and it will show in explorer like a charm.  But now I cant connect my redmi phone through USB. Its not showing as drives as earlier. I can see it in device manger with driver error (yellow exclamation). I have been trying to get the driver back by searching google for the last two days and I failed and ended up in a mess. my phone are redmi Note 4, Redmi 4A, Redmi Note 7 Pro and Redmi K20 Pro. Can anyone help me with the correct driver to get  back my phones connected to PC. My PC is Lenova G50 with windows 10 Build 19041.vb_release.191206-1406. 64 bit os.

I am getting this while I try installing a pack which I recieved from web


问:
android firefox 68.0 weird background colour
The firefox browser on my Samsung tablet appears to have a pink background on the bookmark list panel and "back button" history list pane. On the history panel, there's a pink stripe under the 'recently closed and 'synced devices' section (behind where it states the number of tabs or devices, and stretches across the screen) all the other backgrounds are the default whitish colour. Anybody know what's going on and how to sort it? I couldn't find anything in config, and I have another tablet with the same version of firefox which does not have this issue.
Cheers!pg)


问:
Android 10 system taking up too much hard drive space
I have a Nokia 5.3 running Android 10. Of the 64GB hard drive space, the system file is currently taking up 52GB.

Couple of days back, it was taking up 48GB and my phone was complaining of running out of hard drive space, so I removed some old apps and files to free up some room, and now it looks like the system file has just expanded to take up the available free space, and again it's complaining about running out of hard drive space.

How do I go about reclaiming some of the space taken by the system folder(s), as I can't believe that it's needed to write 4GB worth of data in a few days, nor that the OS really needs 52GB of hard drive space, when my old phone only had a 32GB hard drive for the same OS.

(apologies, I'm not entirely sure what tags to use for this)


问:
What kind of storage is IPSM?
I am working with a mobile device running Android.  In addition to the common Internal shared storage, it also has an IPSM card.  Does anyone know what IPSM stands for in this context?</p>

Title: What kind of storage is IPSM?


问:
ODIN : Binary size is too large
Device Name : gt5note10lte/SM-P555/Samsung Galaxy Tab A
TWRP Source : https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni
Android version : 10

I am trying to build TWRP for my device. The stock ROM is running on Android 7.1.1.
When I am trying to flash the recovery.img file using ODIN, the error "ODIN: Binary size is too large : recovery" is displayed in Download mode. Anyone faced this issue ?

From the description, I understand that the recovery partition is small. What is the best way to move forward ? Any help is much appreciated.

Title: ODIN : Binary size is too large


问:
Why do my recent sms show elapsed time instead of time sent or received? Pixel 3 android 11
Why do my recent sms show elapsed time instead of time sent or received? ie:"10 min ago" instead of 10:27pm.
Pixel 3 android 11</p>


问:
Touchscreen gets disabled when I put the palm on screen
Actually I wanted to write some notes on my 'Android' tablet

Name: Lenovo Yoga Smart Tab

Model: Lenovo YT-X705X

Model no. - ZA540019IN

Android version: 10

But I found that whenever I rest my palm in the screen, the screen becomes unresponsive.

So, I did some touch testing and found that the screen isn't registering any touch when I keep the palm rested on the screen.

So basically, when I keep the palm very lightly on the screen, it detects as one giant touch point, but if I keep the palm just like I keep on paper, then the entire screen becomes non-functional.

Please tell me a solution. Is there some option in setting that is turned on or is it not possible to fix this?


问:
How do I block the Tethering and Hotspot Active notification from showing?
The device is Samsung Galaxy M31. I have searched for a method but couldn't find out. Can anybody help me out?</p>


问:
There is no way for me to boot recovery mode on my tablet
So, I recently thought about rooting my Lenovo Tab M10 (according to the TWRP site, TB-X605F), so I flashed the latest version of TWRP to my tablet from fastboot, and realised: "Oh. I can't boot recovery on this." Holding power+volume down brings me to fastboot again, as expected. Power+volume up shows a weird "FFBM Mode" message in what looks to be the Arial font, centred on screen, on a grey background. Holding power and both volume buttons boots as if i was just holding power. I have no idea what to do. None of the fastboot boot commands exist on my tablet, nor do some of the fastboot oem commands. I am running Android 9.0 Pie on my tablet, and Linux Mint on my PC, using the adb and fastboot packages if that would help.

UPDATE: I managed to (accidentally) find out that if I boot to android, then hold power, volume up, and volume down at the same time until it turns off, then release power as the Lenovo logo appears, I can boot the stock recovery. However, I need to flash TWRP, and then boot it before booting android so it doesn't get overwritten. I still have no answers, but at least I know I can actually boot recovery mode.


问:
Installing SuperSU with Twrp to root android
I am having trouble installing SuperSU from Twrp Recovery. The steps I used are as follows:

Boot into bootloader: adb reboot bootloader

Flash recovery to twrp image file: fastboot flash recovery twrp-3.5.2_9-0-ali.img

Open recovery mode, opens twrp

Twrp asks for decryption password, I don't know what to do so I
press cancel

Twrp asks if I want to keep system read only

I swipe to allow modifications

I click install

I find /external_sd

I click UPDATE-SuperSU-v1.80.zip

I swipe to confirm flash

It says successful, but also says unable to mount storage unable to mount /data/media/TWRP/.twrps

I click wipe cache/dalvik

I swipe to wipe

I click reboot system

I input my password to start device

I look for the SuperSU app, I don't find it.

So something messed up and SuperSU didn't install. Any ideas?


问:
How to counteract USB Rubber Ducky (or other bad USB) on Android devices?
I've read somewhere that it's possible to use mouse and keyboard on Android devices. Because that's possible, it's also possible to use devices like USB Rubber Ducky to automate key presses to hack into an Android device.

So, how would I counteract that?


问:
Prevent app auto-install when accidentally clicking an ad
I have Samsung Galaxy S20. When I get an ad on something like a game or whatever, I'm obviously going to click the X (close button) in the corner.

The problem is, sometimes I miss it because they make it so small, and when I miss and click any part of any ad, it will automatically start installing it even tho I never gave it permission.

It used to just open the app store, which was annoying but I'd prefer it to this nonsense breach of my privacy. All ads do it, not just weird ones. It did it for Candy Crush once.

I know it's not the setting "ask before download" because I've tried that.

Is there a setting or something I can do to stop it from automatically installing these apps from the ads?


问:
open failed: EACCES (Permission denied)
I am trying to copy the file from /storage/emulated/0/test.txt to /cache/SH_DIR/ via android user application ,

getting error like below :

```<code>java.io.FileNotFoundException: /cache/SH_DIR/test.txt: open failed: EACCES (Permission denied)
</code>```

When I have created as system application like , Included Application code as past of AOSP then able to copy the file to /cache/SH_DIR/ location.

May I need to add anything in the SEpolicy to copy file to /cacahe/SH_DIR/ from user application.

Can you please help me , Thanks in advance.

Title: open failed: EACCES (Permission denied)


问:
Securely Sideloading In-House Apps
I am working in a secure environment where we do not have wireless communication of any kind, so the only way of installing an app on our Android devices is to sideload it - the original sideloading, over a MTP USB connection.  I would like to mitigate the inherent risks associated with sideloading by only installing apps whose signatures are verified using our public key.  I am working with Android 8.1+, so I get the relatively safer opt-in per app setup.  Is there any way of letting Android know to (only) install apps that my organization has signed?</p>

Title: Securely Sideloading In-House Apps


问:
Prevent Screen Wake / Activity from Android Timer
I've got an android timer running through the base clock in android 11 (oneplus 7t).

EDIT: It appears I'm wrong. This is the oneplus clock, not the base android clock. Why they would bother replacing that is an entirely different question of stupidity.

Every few minutes it lights up the screen to let me know the progress of the timer. This is the most useless and dumb features I've seen in a long time. I cannot find any way to turn it off.

To reproduce, go into clock > timer > set one for say thirty minutes. Lock screen. Watch screen illuminate and wake in a process of infinite stupid.

Please help, this is annoying as all hell. I need to have my screen visible in case I receive an important message etc, but I don't want this thing stealing my attention every few minutes.


问:
Tried to ungoogle my android device, but accidentally removed a vital package, and neither it or google play store reinstalls through adb or apk's
I've got Coolpad Porto S, which is running Android 5.1. The apps I have been trying to reinstall were com.android.vending and com.google.android.webview (I don't have concrete evidence but after uninstalling it I am unable to access any browser application like duckduckgo or even steam) by using "pm uninstall -k --user 0 APP".

I've been trying to install those back using apks I got from apkmirror, but if I do through my phone or through adb they appear in the app list as "Downloaded", however they're also "Not installed for this user". I tried installing them through using "adb install -r app.apk" command, then going into "adb shell" mode and using "pm install -r --user 0 app.apk", but still same result. If I don't use the -r option, it just gives me INSTALL_FAILED_ALREADY_EXISTS error.

If it helps, upon doing "pm enable --user 0 com.android.vending" it gives me "Error: java.lang.SecurityException: Permission Denial: attempt to change component state from pid=4418, uid=2000, package uid=10015" error.

My phone is not rooted. Anyone got any ideas?

Edit: After tinkering about for a bit, I am still having a ton of issues with doing that. If it helps, I found the base apk location for the webview app. It didn't work trying to "pm install -r --user 0 directory", because INSTALL_FAILED_DEXOPT, but I managed to get the crash in logcat.

```<code>E/installd(  263): DexInv: --- END '/data/app/com.google.android.webview-1/base.apk' --- status=0x0100, process failed
I/PackageManager(  777): Dexopt done on: com.google.android.webview
W/PackageManager(  777): Package couldn't be installed in /data/app/com.google.android.webview-1
W/PackageManager(  777): com.android.server.pm.PackageManagerException: scanPackageLI
W/PackageManager(  777):        at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(PackageManagerService.java:6343)
W/PackageManager(  777):        at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:5635)
W/PackageManager(  777):        at com.android.server.pm.PackageManagerService.replaceSystemPackageLI(PackageManagerService.java:11107)
W/PackageManager(  777):        at com.android.server.pm.PackageManagerService.replacePackageLI(PackageManagerService.java:10917)
W/PackageManager(  777):        at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:11432)
W/PackageManager(  777):        at com.android.server.pm.PackageManagerService.access$2800(PackageManagerService.java:248)
W/PackageManager(  777):        at com.android.server.pm.PackageManagerService$6.run(PackageManagerService.java:9278)
W/PackageManager(  777):        at android.os.Handler.handleCallback(Handler.java:815)
W/PackageManager(  777):        at android.os.Handler.dispatchMessage(Handler.java:104)
W/PackageManager(  777):        at android.os.Looper.loop(Looper.java:194)
W/PackageManager(  777):        at android.os.HandlerThread.run(HandlerThread.java:61)
W/PackageManager(  777):        at com.android.server.ServiceThread.run(ServiceThread.java:46)
D/PackageParser(  777): isGmoROM() return false
I/PackageManager(  777): Linking native library dir for /system/app/WebViewGoogle
I/PackageManager(  777): Perform pre-dex opt for package: com.google.android.webview
I/PackageManager(  777): Installation done for package: null
V/PackageManager(  777): + starting restore round-trip 20
V/PackageManager(  777): No restore - queue post-install for 20
V/PackageManager(  777): Handling post-install for 20
I/art     (  777): Explicit concurrent mark sweep GC freed 28070(2MB) AllocSpace objects, 23(1188KB) LOS objects, 14% free, 22MB/26MB, paused 1.836ms total 161.529ms
I/art     ( 9195): System.exit called, status: 1
I/AndroidRuntime( 9195): VM exiting with result code 1.
</code>```

Not sure if it helps, but here it is.


问:
where is configured how an app will auto restart?
For ex, i know several apps that i have stopped will auto restart exactly at 00:00h everyday, making it lag horribly or even crash any game i am playing, what severily degrades my android realm user experience.

Others will instantly restart like the nosy weather app.

Others start when wifi connects, when the screen still locked wakes up, like watzap and gmail.

but Others i cant guess, like the useless email server (as i use gmail app), or chrome, and a few others. I could still try to uninstall a few of these, but others are really useful and i dont want to.

If there could have a way to tweak this auto-android-messing feature, so that it could be suspended while i play games, my android realm user experience could greately improve and i would be happier again.

Any tips?

Android 6.0.1
sm-j700m


问:
Crash when installing application leading to weird "No such app found" entry in drawer and forced reboot
A few days ago I installed a app from an .apk file. Unfortunately, my phone decided to die during the installation process. Since then I have a weird entry in my drawer looking like this:

If I click on it, I get a toast saying "No such app found". This alone wouldn't bother me but since then my phone also crashes after about two minutes after it started.

I've tried investigating this problem but I couldn't find anything really helpful. The only thing I found is a post from StackOverflow describing what happens when you install an application. Based on this I think there went something wrong with the intent registration, corrupting a intent register or something like that.

What I've tried so far is cleaning the cache and installing and uninstalling the app again. When the app is installed again, the weird entry in the launcher disappears and even after the app is uninstalled, it doesn't reappear. However, my phone still keeps crashing and after a reboot it reappears.

Does anyone have a idea what is going on here and how to fix this? I would be very thankful for any help :).

Additional information:

Device: Samsung Galaxy S7 (herolte)

ROM: LineageOS 15.1 (Android 8.1.0)

Rooted: Yes

EDIT:
I've also already tried getting the logcat output before the crash but unfortunately it shows nothing really interesting and I think the reason for the crash is not included because it crashes before a write to the logcat takes place.

Also, for clarification, I would like to avoid a factory reset.

EDIT 2:
I've now tried rebooting into safe mode. The drawer entry persists, but the system doesn't crash here. Also, when long pressing on the app and selecting "App info", the launcher crashes with the following entry in logcat:

```<code>06-17 18:16:00.960  4599  6669 I ActivityManager: START u0 {act=android.intent.action.VIEW dat=market://details?id=<redacted>} from uid 10026
06-17 18:16:00.960  6727  6727 D AndroidRuntime: Shutting down VM
06-17 18:16:00.961  6727  6727 E AndroidRuntime: FATAL EXCEPTION: main
06-17 18:16:00.961  6727  6727 E AndroidRuntime: Process: org.lineageos.trebuchet, PID: 6727
06-17 18:16:00.961  6727  6727 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=<redacted> }
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1937)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.app.Instrumentation.execStartActivity(Instrumentation.java:1616)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.app.Activity.startActivityForResult(Activity.java:4487)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at com.android.launcher3.Launcher.startActivityForResult(Launcher.java:1916)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.app.Activity.startActivityForResult(Activity.java:4445)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.app.Activity.startActivity(Activity.java:4806)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.app.Activity.startActivity(Activity.java:4774)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at com.android.launcher3.InfoDropTarget.startDetailsActivityForInfo(InfoDropTarget.java:70)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at com.android.launcher3.popup.SystemShortcut$AppInfo$1.onClick(SystemShortcut.java:97)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.view.View.performClick(View.java:6294)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.view.View$PerformClick.run(View.java:24770)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:790)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:164)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6494)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
06-17 18:16:00.961  6727  6727 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
06-17 18:16:00.965  4599  6669 W ActivityManager:   Force finishing activity org.lineageos.trebuchet/com.android.launcher3.searchlauncher.SearchLauncher
06-17 18:16:00.970  4599  6781 W DropBoxManagerService: Dropping: system_app_crash (1567 > 0 bytes)
06-17 18:16:00.971  4599  4614 I ActivityManager: Showing crash dialog for package org.lineageos.trebuchet u0
</code>```


问:
Android Chrome cookies all suddenly disappeared
This morning all the cookies seem to have disappeared from Chrome on my 'phone. When I log in again they stay, so it's not a bug or settings problem I think. They definitely have not all expired at the same time. History is fine, it's just the cookies. Can't find any references to this particular issue elsewhere.</p>


问:
Rooting a phone that doesn't have stock rom download on the internet
I've posted here here earlier about me needing help to restore a system application that I uninstalled using adb. After trying for the entire day with no solution I've decided to download Bromite as webview, however since I have an unrooted android 5.1, I can't change the default webviewer to Bromite (I had uninstalled the google webviewer). I've got two choices left now, which is rooting my phone and hard resetting, and I would rather risk it rooting my phone since I got a ton of important 2fa on it.

As reference, my android version is 5.1

My phone model is Coolpad porto S E570,  in numbers - CP8722_U00

I've looked up a couple of guides on how to root the device but most of the legit rooting methods require having a stock ROM of your device that is going to patched, and later, installed. However, after searching the web for a while I just can't seem to find any stock ROMs that are for CP8722_U00, only for CP8722_S00 which I assume is probably incompatible.

The less legit looking guides said to use tools like Kingoroot, however the public reception on them is mixed to say the least, some outright saying that it's malware.

So my question is this: Are there any other ways to root, maybe obtain stock ROM for my device without root? Or do I have to sell my soul to those one click root applications?

Thank you in advance.


问:
Programming an Android application to switch default SIM for mobile Data
I am working on a project in which I have to switch the default SIM for data automatically, and without the need for user intervention. I read some posts on internet and got to know a method in which we can switch off one of the sim and Data will automatically be switched to secondary sim.
https://stackoverflow.com/questions/48696898/turning-off-second-sim-via-adb-shell-tasker-using-activities-intents

This needs Android debug bridge. But, I am not able to find any function responsible for switching default data sim.


问:
Enable Package Installer
I have rooted OnePlus 5t, I used Lucky Pacher to disable Package Installer and when I reboot my device I got boot loop... Is there something I can do beside factory rest? is there an option to enable it via recovery or fastboot mode?

I have OrangeFox recovery mode

This is the XML file package-restrictions.xml:
https://drive.google.com/file/d/1FThuUEt4pII_FBVpSUl7sjWoXLiq_zcG/view?usp=sharing
https://pastebin.com/XXE455pJ

Title: Enable Package Installer


问:
How to format the internal memory of a Huawei Mate 20 Lite?
I have a Huawei Mate 20 lite I need to format its internal memory.

I don't mean to reset it to factory defaults.

I mean I have to format it, that is, I have to overwrite the internal memory with 0s (or with random data and then with 0s).

How to do that?

I have a Linux desktop.


问:
Auto-correct highlighting instead of bolding
Running Android version 11, this change happened very recently with a new patch.  Now instead of autocorrect bolding the center word it will correct mine to, it highlights it. This is extremely distracting, as now I have a teal/blue box flashing, flashing, flashing in my peripheral vision as I'm typing. How can I make it stop highlighting and go back to its previous behavior?

Edit: I seem to be running gboard.


问:
How to flash AOSP 11 on to Redmi 6A?
I've successfully compiled aosp_arm64 and now I'd like to know how to flash it on to my device.

I couldn't do it with command fastboot flashall -w as it outputs this:

```<code>--------------------------------------------
Bootloader Version...: cactus-0deb5cf-20191022185025-20200508231234
Baseband Version.....: MOLY.LR12A.R2.MP.V66.P18
Serial Number........: 0f70e4b47d2b
--------------------------------------------
Checking 'product'                                 FAILED

Device product is 'cactus'.
Update requires ''.

fastboot: error: requirements not met!
</code>```

I'm guessing I need to flash images individually, but I'm really unsure what to do.

Title: How to flash AOSP 11 on to Redmi 6A?


问:
CIFS mount SMB into a folder results in "no such device" error on Android 10 Lineageos 17.1 and stock Google Pixel
I've tried these commands with root access

```<code>mount -t fifs //192.168.62.118/xyz -o username=user,password=pw /mnt/sdcard/xyz

mount -t cifs //192.168.62.118/xyz -o username=user,password=pw /mnt/sdcard/xyz

mount iocharset=utf8 -t cifs -o username=user,password=pw,rw,noperm,iocharset=utf8 //192.168.62.118/xyz /mnt/sdcard/xyz

mount -o username=user,password=pw,nodfs,rw,iocharset=utf8,noperm,dir_mode=0777,file_mode=0777 -t cifs //192.168.62.118/xyz /storage/self/primary/xyz
</code>```

all of them results in "no such device". Googling around, it seems its due to the kernel not supporting CIFS. But this also happen in LineageOS 17.1 where other people reports able to mount cifs, albeit on a different device.

WHat I could do to get cifs smb mount working?


问:
Why won't my SGS2 allow me to perform device encryption?
I upgraded my Samsung Galaxy SII with the new 4.0 OS. The option to encrypt my device is enabled, but whenever I try to encrypt it asks me to plug the device in to have at 80% battery charge. I tried that, and waited until it was 100% charged, but it still didn't allow me to encrypt it. I changed the password to a stronger one, restarted the device, and tried again but that didn't seem to help. I was thinking of performing a factory reset, but I'd like to avoid doing that if possible. Does anyone know how I can get the encryption to work?</p>


问:
Can't upload files to Google Drive from ES File Explorer
I opened the Google Drive app and tried to upload files using ES File Explorer, but it said upload fails. It gave two options, upload in the normal Android way, and file way (if above fails). I tried both, but it failed.

Some of the files having the same types did upload, but some exact same PDF didn't.

The system and apps are up to date.

Device - POCO X3 PRO(india)
Android version 11
MIUI - 12.0.5(Global)


问:
pm Disable activity
Have been asked many times, how to block the installation of applications from an apk file, how to block the package installer ... The common answer is that it is impossible because even if you will disable the package installer the device will not boot and will remain stuck in a bootloop.

Fixing the bot loop is very simple but does not matter at the moment. I found a way to block an activity of the package installer so that the device could start normally: pm disable com.android.packageinstaller/.InstallInsalling

It works great and blocks application installation and the device works without any issues. I know it is still possible to bypass it and install apps through ADB but it still helped me a lot.

Now I'm looking for the name of the activity that will disable the developer options. Mybe block the "about phone", or the clicks on "Buiild Numbe" or only the "Usb debugging" options - through pm disable activity, or maybe through permissions, does anyone have an idea or can help me find the names of the activity?

The activity name of the developer options is com.android.settings/com.android.settings.SubSettings but it's related to almost every part of the settings... is there anything more specific?

Title: pm Disable activity


问:
Flashing without a firmware
I received a second handed tablet recently, but it came with a custom formware that had some problems.

I proceeded to remove it and flashed the stock one but came across two problems. If I try with adb sideload it's telling me that the signature failed and won't install.

If i try with the .zip file it says Failed to mount "/aboot" and won't install it.
I tried with different firmwares for all the different versions of the model but without success

The tablet is a Mediacom SmartPad i10 3G, sadly I don't have access to further informations about it since I can't boot. Also, the tablet won't recharge and actually lose battery when plugged even if it was turned off before plugging it and now is at 2%.

How do I fix this situation?

Title: Flashing without a firmware


问:
When I take pictures of text with my android the text is too blurry to read
I have tried this with two separate Android phones.

When I take a picture of text, say a letter posted on a window or a serial number on a device, etc., the text is out of focus and too blurry to read in the picture.

Often the text goes into focus in the camera for a split second but then immediately goes out of focus so that I am not able to take a picture of text where it is readable.

What is the solution to make text clear when I take pictures of it with my Android cam?


问:
Internet doesn't work over Wifi hotspot
I am using OnePlus 3T with 4G. Internet works fine on the phone but when I connect a laptop or other phone to the phone using Wifi hotspot internet doesn't work at all. It used to work fine earlier.
I have tried the following:

Change the name, password and AP Bands between 2.4 GHz & 5 GHz in the hotspot settings.

Deleted the saved info from connected devices and re-enter.

Contacted my TSP. According to them its outside their scope. Later tried with a different network service provider but still didn't work. So issue is definitely with the phone.

Bluetooth Tethering works.

From the other phone, Wifi hotspot works fine on the laptop. the other phone is an iPhone if it's relevant.

Wifi on the phone works fine.

I can't think of any other way to troubleshoot. I don't want to format or factory reset my phone. What's the solution here?

Additional info: Android Version 9, OxygenOS version 9.0.6

Title: Internet doesn't work over Wifi hotspot


问:
Logcat analysis Android
I am analysing the logs of an app and I found this message after the app has been successfully lanuched

```<code>ActivityTaskManager: The Process packagename Already Exists in BG. So sending its PID: 14389
W/ActivityTaskManager( ): Activity top resumed state loss timeout for ActivityRecord{28ecd14 u0 packageName/full_path_toActivity}
W/ActivityTaskManager( 1566): Activity pause timeout for ActivityRecord
</code>```

When I am running the same app multiple times (under the same environment, like running the app for the same amount of time, without manual intervention, clearing the logcat before launching of the app), then also the number of times, the particular tag is shown on the logcat is  different (I am filtering the logs using package name and the pid of the app). I want to know why the frequency of the tags are coming different even though I have not modified the apk.

Is it like there are few tags whose frequency should be same and there are ones for which it may be different?

I want to know the meaning of various tags which are coming from the Android SDK side like ActivityTaskManager, ActivityManager, etc in the logcat, (i.e the tags which are not being written by the developer of the app). Would you like to recommend to read any document so that I will be more comfortables understaing these Tags in the logcat?

Thanks in Advance

Title: Logcat analysis Android


问:
Repetitive "Google failed" popup
I have a Nokia 3.4 (Android 10) for over a month now. This morning this repetitive error window keeps popping up. It opens and closes so fast that I don't have the time to select anything - in fact, it's so fast that the video capture is not able to capture all cases!

This is a static capture of one of those error windows:

Things I have already tried without success:

Shutdown and reboot

"Clean cache" and "clean data" of the Google app

Block notifications for the Google app

The only way I was able to "fix" this was by disabling the Google app. But I would rather not...

Should I just do a factory reset?

Title: Repetitive "Google failed" popup


问:
Messenger keeps removing itself from list of distracting apps
I use Digital Wellbeing's focus mode frequently and set up a list of distracting apps that includes Facebook Messenger. However, regularly, while focus mode is enabled, I get Messenger chat notifications and when I check the list of distracting apps, Messenger is no longer there.
Is there a way to force it to remain in the list?</p>


问:
Click on link in main profile and automatically open in browser in work profile
I use TrackerControl and Nebulo with nearly all my apps in my main profile. I use Shelter which leverages the “Work Profile” feature of Android to provide an isolated space. In that isolated space I have my browsers and a VPN. Is there a way to automatically open links from apps in my main profile in my browser in the work profile? I can manually copy the link and open it in the browser but it's tedious. I already tried apps like "Open Links With" but it didn't work.

Example current behavior: Someone sends me a link to a website over a messenger (which is installed in my main profile), I click on it and it opens in the browser in my main profile.

Example wanted behavior: Someone sends me a link to a website over a messenger (which is installed in my main profile), I click on it and it automatically opens in the browser in my isolated work profile.

Thanks!


问:
Disable swiping right on the home screen to Google news
I have a Samsung device running on Android 11. Swiping right on the home screen showing me some Google news propaganda. It is truly awful. It is just a bunch of hair-brained clickbait and lies.

I managed to disable it in settings.

Now, how can I prevent the swipe-right screen, or how can I replace it with a better app?


问:
Pass extra data into `am start` command
Nougat Android (7.1.2)

What I use actually (it works), the app starts with the last know location:

```<code>am start com.location.provider
</code>```

What I'm looking for like:

```<code>am start com.location.provider -e longitude 28 -e latitude 77
</code>```

or

```<code>am start com.location.provider -d gps://13,678173-2,033719
</code>```

Is it possible?

Title: Pass extra data into `am start` command


问:
Data connection works without a data plan
I am trying to control my screen time by disabling internet access. I have filtered my mac address so the wifi does not work.

So I turned off WiFi and a 4G LTE symbol is shown in the notification bar. When I went to test out the internet, the only websites that worked were ones with google.com as the domain (mind you WiFi is off).

How is it possible that a website can work despite the fact that there is no data plan or WiFi connection? Is there a way I can turn this feature off? I know I can go to settings and turn mobile data off, but I want a "permanent" and less accessible solution.

Ps: I have tried app blockers, they are not an ideal solution for me.


问:
How to work with contacts in device only
I wanted to test custom VCF file. So I imported it in my phone to Device account, where was 0 contacts before (all of my contact comes from other accounts).

But When I selected show contact from device only in contacts to display, it shows me contact information merged from all other accounts and field Connected via shows all of these account where is this contact available.

How can I view only data stored in Device (to check if import is fully successful) and  be able to delete this data from device afterwards (but keep them in all other accounts)?

I'm using stock contact app on Asus ZenFone 6 (1.5.1.15_201105) which seems to be Android default.

//Update:

I created Test Contact in Device account with phone number 123456.

Then I created Test Contact in another account with two phone numbers 123456 and 666666

And get this:

Contact display settings

Contact results (there is only one contact visible)

Contact detail

(notice threre is nubmer 666666 which is not part of the contact in Device account)

What I see when tap to edit icon

This app is unintuitive mess...


问:
Replicant in QEMU virtual machine
I need an Android virtual machine to run an app I don't want to install in my device. I managed to install Android-x86 in QEMU, but I'd like to use Replicant instead. So, the question is: is it possible to install Replicant in a virtual machine with QEMU?

Please consider that I have nearly no experience in virtualizing Android and I have never used Replicant before.

Title: Replicant in QEMU virtual machine


问:
Run oneliner shell command in Tasker does not work
When using Tasker as a clipboard manager I made a shell script which reads the last clipping (also successfully captured by Tasker, in /storage/emulated/0/clipper/clip.txt). This I append to a file with all clippings with a maximum of 300 lines.
I use the oneliner command:

( tail -n 300  /storage/emulated/0/clipper/clipall.txt ; echo ______$(date +"%Y-%m-%d %T")_______ ; cat /storage/emulated/0/clipper/clip.txt ) > /storage/emulated/0/clipper/clipall.txt

to add the last clipping on the bottom and each clipping separated by the current timestamp surrounded by underscores.
Running this oneliner in a Termux shell is successful, but not as a Tasker => Run Shell command, so now I use the Termux plugin for Tasker and it can be run from Tasker. But without the 'help' of Termux it cannot run.

It is rather standard shell script, because the same script (with another directory obviously) runs on my Mac as well.

There is no root involved.
Does Tasker have limited shell capabilities ?


问:
How to debug GPS problems on Android 11
I recently bought a Realme 8 Pro Phone with Android 11. To track my running course, I am using the app “Caynax Sports Tracker”. It did work for about 2 weeks without problem, receiving the GPS position. But after a while, the GPS signal was lost for more and more times. The last run lasted about 30 minutes, and GPS reception did work maybe for 2 minutes! On the same evening, no GPS signal was found whatsoever.

To fix this problem, I tried to use the following apps:

GPS Aid - Fix GPS Problems (TechRCS)

GPS Reset COM - GPS Repair, Navigation & GPS info (DS Software)

GPS Status & Toolbox (MobiWIA Kft.)

These apps seem to reset the GPS, clear GPS data, download GPS data, etc. Yesterday evening I tried for an hour to fix the GPS problems, also restarted the device, but I was not able to get a single GPS fix.

On the next morning, without any change, it seemed to have worked again.

Is there a way I can see where the problem is? Is it a hardware problem, software problem, a realme problem or a problem with android? Maybe there is an app which can debug a bit more?

Title: How to debug GPS problems on Android 11


问:
how can i mirror phone screen with a brocken black screen?
my phone fell a few times and alas the screen is now unfunctional. there is a line straight down the middle, on one side it is black and on the other, it is purple/white/green, my point, that I cant use it for anything.

now, how can I mirror my screen onto another device so that I can backup everything I have on my device and be able to transfer it (and also still be able to use my old device until/)when I get a new device.

USB debugging is already activated on my phone but whenever I try to adb, I am told that I need to grant permission on my phone (which of course is impossible, being that I have no access to my screen).

now, I understand that I can purchase an external screen and connect it to my device via usb c and I don't need to go through this whole hocus pocus of usb debugging and screen mirroring, rather it can connect automatically, but that requires me to purchase a screen, etc.

is there any way I can do that exact same thing with a screen that I already have at how, for example, my laptop screen, or maybe I just got this whole thing wrong?

If you cant help me with the above, then please help me with this, how can I back up my data. i downloaded dr.fone, but the doctor broke the news to me that he can't help my phone if i don't permit him to do so, which will require me to grant permission on my phone.

or any other option for me to acquire my data thank you!!

p.s. i am running windows 10 20h2 and Linux mint.

OwnerDisplayName: Zjamkeh


问:
How to disable automatic reboot on kernel panic?
Since my device was unproperly shut down because the battery stopped functioning (the battery is getting completely discharged at a level higher than 1%), it is rebooting in loops even in safe mode (more exactly it reboots about 3 to 5 seconds after finishing booting).

So it means a file or permission wasn’t properly written in /data.

But in my case, the /data partition is on the sd card thanks to Magisk root, so I have full access to it.

Using a computer, I tried to put an additional Magisk startup script which is executed at boot in order to stream kernel log to a file, but the result isn’t useful as the last line of the log file looks something like this :

```<code>[   72.480828] Ke
</code>```

So which is the command to execute or file to write in /proc or /sys in order to disable automatic reboot after a kernel panic so the kernel finish to flush the log file ?


问:
Why is it possible to re-lock the bootloader after installing a custom ROM (on some devices)?
As I understand it, if an Android device’s bootloader is locked (fastboot oem lock), it should check the installed system on boot to verify that it’s signed with some (the manufacturer’s?) signing keys. I’ve seen several warnings not to lock the bootloader again after installing a custom ROM like LineageOS because the bootloader would complain about the modified system image and refuse to boot.

However, I have two Android devices on which I have installed custom ROMs:

The Fairphone 3 (FP3), where I installed /e/ OS

The OnePlus One (bacon), where I installed LineageOS 18.1 (with microG)

I’ve subsequently re-locked the bootloader on both devices and, surprisingly, not experienced any issues so far. For the Fairphone 3, I originally assumed that this works because /e/ OS is officially supported by the manufacturer, so I thought that the /e/ OS images are probably signed with some official keys. However, I don’t think there is any such support in the case of the OnePlus One (which is also long out of manufacturer support by now). Another hint is this forum post on the Fairphone forums, which reports the following:

I relocked the bootloader (fastboot flashing lock), it automatically
wiped my user data, and booted successfully! Also, after restoring my
data, I was able to upgrade from last-week’s release to the new
release of today - all without problems.

Now, this does raise a lot of security questions though. I did not
realize that LineageOS, /e/ and even Fairphone where all signing their
builds with google test keys - essentially rendering the OS build
integrity checks meaningless… I guess in fact that means that it
doesnt really matter which keys are being used, as they are simply not
checked? Any key would be accepted?

So, my question is: Why does running /e/ OS or LineageOS with a locked bootloader work in these cases? What is the significance of the Google test keys here – do the bootloaders just always accept them?


问:
How to block a specific URL phonewide
My first thought was blocking them using AdAway or AFWall, but ironically, an adblock and a firewall are useless

Most of the URLs are pictures. I can easily get their URL

I ask to block it phonewide because my browser doesn't support custom adblocking

Didn't even try adding some lines to the phone Hosts, because my adblock overwrites it.

A replacement for the AdAway is very well on the table (if not VPN-based), but for the AfWall, only if it's as lightweight, as well organized, free, and again, not VPN-based

My browser is Opera. Not changing that.

In case AdAway can be used:  If the URL needs to be a line of a host source,  how should it be formatted ?

Thank you ahead

Title: How to block a specific URL phonewide


问:
Blocking Reddit on android
I have a habit of using reddit app and I want to kick out this habit. I have tried the following ways to block reddit.

Blacklisted this website on a blocker and now cannot access it in any browser. ( BlockerX).

Tried blocking many other apps like Boost, Reddit for android, Sync which provide access to reddit.

Now, the issue is that there are so many other apps available on Play Store to provide access to reddit. It is ineffective and inefficient to block every Reddit app available on Play store.

So, Is there any other way to totally block access to reddit and it's third party apps ?

May be something technical like editing hosts file or build.prop file.

Title: Blocking Reddit on android


问:
Remap Chromecast device button via ADB
I got a Chromecast with Google TV. It has the ability to emit certain infrared signals when a button on the remote is pressed, allowing the user to control both Chromecast and TV with one single remote.

However, my TV is not supported in the predefined mapping profiles, so I would like to be able to configure the remote to trigger custom infrared signals.

How can I do that via ADB? Something like adb shell settings blah.

Updates:

When running logcat, I notice these lines: Axel.IrRemote: Uploading IR Profile '||1000024' to 60:98:66:D2:BF:E6. So in the end it's basically just upload data via Bluetooth, so with the right information I guess it shall be possible to get the job done.

Title: Remap Chromecast device button via ADB


问:
Redmi Note 5 Pro - unable to flash TWRP
I am trying to flash the LineageOS on my Redmi Note 5 Pro (whyred). Initially, I used Windows 10 for the Xiaomi Unlock Tool. However, the Xiaomi Unlock Tool did not detect my device. So, I used this tool https://www.xiaomitool.com/V2/ to unlock my bootloader and it unlocked instantly.
Now, I am using Ubuntu 21.04 (I am more comfortable using the command line here) (with android-tools-adb and android-tools-fastboot packages installed) to try to flash TWRP first.

When I connect my device, adb devices can recognise it. Then I use adb reboot bootloader to enter into fastboot. Now, fastboot devices can recognise it too. The screen of the phone shows the fastboot icon.

But, the problem comes here. I use fastboot flash recovery twrp.img and I get this error

FAILED (Write to device failed (No such device))

Now, when I use fastboot devices again. I don't see my device. Another change I see is press any key to shutdown written on the top left corner of the screen of my phone.

USB debugging, USB debugging security, OEM debugging are all enabled. Bootloader is unlocked (as I see in the settings). The phone is updated to latest MIUI version supported officially. And I used the same laptop and method to flash TWRP in a Redmi 3S (land) some time back.

Title: Redmi Note 5 Pro - unable to flash TWRP


问:
Block domain for a specific app
Is it possible to Block domain for a specific app, like to edit host file or via firewall app (have root) to block domain but just to 1 or 2 app?</p>

Title: Block domain for a specific app


问:
how do i make phone default to transfer files when plugged in to computer usb?
i have developer options set to transfer files but every time i plug it in it only charges.

i have a motorola e5 play running OS 8.


问:
.nomedia + SD Card - just can't create the file, no matter what
I have an ASUS Zenfone 7 Pro phone running Android 11. This phone comes with an SD card slot and so I wanted to make use of it. It stored the files great, I can read the files all good. But I cannot make my Gallery/Android System ignore any folder on the MicroSD card.

For example, I have a folder with album previews. These all show up as folders in Gallery - needlessly.

So why I can't make the file? I don't know.
If I open Solid Explorer and try to create a new empty file as .nomedia anywhere on the SD card, it will just time out and will fail at the task. I can only force close the app when this happens. Other apps just gave me an error, but nothing specific.

How do I overcome this limitation? Maybe it's because the SD card is formatted FAT32? But I remember using MicroSD in my old Note 4 and other phones, and they handled .nomedia just fine. What changed? Something Android 11 related?


问:
What can I do with an open source phone/kernel?
So this is my very first attempt in any kind of android development. I have here my phone's official kernel source. I was wondering if I can build this to boot or if it's ready for building.

Also this phone is bootloader locked and there's no official or unofficial way to unlock it. So what can I do with the source or the boot image ?


问:
Cant disable wifi multicast and constant arriving of data packets on rooted Android
Problem :

I'm using public wifi in my college. (They won't allow alternatives). At least 40,000 students are using it regularly.

I keep receiving data packets from the moment I turn on wifi even though my device is idle and no other apps are using the wifi. You can see it here :

http://imgur.com/a/yxM0KtR

This has been giving me nightmares lately. My active drain per hour was 6-7% and CPU usage was below 40% while browsing social media or stream videos.

After this problem, my active battery drain is 20-25% per hour, and CPU usage is always around 70%+ which leads to phone heating up and very poor screen on time.

Solution :

• Tried blocking qcom_rx_wakelock from the kernel (doesn't block data packets)

• Tried editing WCNSS_qcom_cfg.ini from system/vendor/etc/wifi and added offloading features e.g. arpOffload and nsOffload. The guide can be found here -

See here

This works for the majority of the phones (my friends tried it and it worked) but sadly not for me.

What I need -

I have root and I'm looking for a way to block the packets from coming to my phone. I could disable wifi multicast from the router if it was my wifi. But it's not.

Is there anything I can do? Thanks for reading
Note : The problem disappears if I e different wifi which proves college wifi the culprit


问:
Battery usage for "mobile network standby" even without SIM-card
I have a phone reserved for development, which has never seen a SIM-card (to avoid accidental use of expensive amounts of data transfer).

Now, when checking battery usage, I see 4% accounted to "mobile network standby".

So what's wrong here?

No SIM-card == no mobile network, right?

I've seen this Android data usage shows significant usage even without SIM card but it talks about data usage, not mobile network."

Edit:

@Robert sugested:

"If you want to disable cellular activate Air-plane mode and then reactivate Wifi+Bluetooth if needed (phone will still be in Air-plane mode)."

And it looks as if this is working. I Still have 4% battery loss (over the time of 2-3 days), but the phone does no longer attribute it to "mobile network standby", so hopefully it is really only internal battery discharge.


问:
Why would Android list some files that are not accessible (I/O error)?
For background, trying to resolve a problem with a Android 4.x tablet Denver TAC-97032 (Tablet battery replacement and alloc_device_open fail?).

The device cannot boot fully, but I can connect to it via adb.

After finding Android boot-up messages for debugging?, first I tried ./adb pull //proc/kmsg (doubled slash due to MSYS2 bash); and there I could see:

```<code><3>[    9.696137] init: cannot find '/system/bin/bootanimation', disabling 'bootanim'
<7>[   12.967235] WRN:L1364(drivers/usb/sun4i_usb/udc/sw_udc.c):handle_ep0: ep0 setup end
<7>[   92.223978] battery vol change: 59->60
</code>```

Hmm... so I thought to check:

```<code>root@android:/ # ls /system/bin/bootanimation
ls /system/bin/bootanimation
/system/bin/bootanimation: I/O error
</code>```

Weird - so I thought to check the listing of /system/bin as plain, vs listing with -la; and you can see the result of this compare in meld (note, I manually removed timestamps from the -la output for easier comparison):

So, there is a whole bunch of files (thankfully, all grouped together, so all of them are shown on the screenshot), that plain ls lists - but ls -la doesn't!

What is the explanation for this behavior? How could Android possibly get those filenames to begin with, if they are not accessible? And is there anything I could do, to make the inaccessible files accessible?


问:
Sim card manager - Mobile Data sim card assignment not persistent
I am using Samsung A50, which is dual sim. In the Sim card manager I set my SIM 1 to be the one for Mobile Data, but every time I reboot the device, the setting gets reset back to SIM 2, and so I need to make sure to revisit and adjust it. (I have just received an OS update so I had it all reproduced quite clearly.)

Not sure:

why it is resetting, in the first place. Isn't that setting supposed to be persistent across reboots?

what causes SIM 2 to prevail? Is it that because it is the first sim card that manages to establish data connection? Programmatically speaking, I would assume that SIM 1 would prevail as the one with 0 index.

Is there any other setting that could mess with all that? Can I somehow mitigate this problem?


问:
How to change phone model for not get recognizing over apps like instagram
Where phone model props save on device?
When you login with another IP , apps like Instagram send an email which this email contain IP, Phone Model which had access to login.
How can i change phone model in Android?
I got root access.</p>


问:
one tap wifi widget similar to power control widget?
I recently bought a new phone and was surprised that the power control widget is no longer a thing. I tried many other widget and they're either just shortcuts to the settings or they straight up don't work. Do you know a similar widget to activate wifi/ data/ bluetooth in just one tap?</p>


问:
How do I stop the Google app from automatically updating?
On my Samsung Galaxy A10E, Android 10 the Google app will update, taking up 300 Mb of unnecessary data, despite these things I tried:

Disabling the app (It re-enables itself after updating)

Disabling all permissions

Disabling Google Play Services permissions

Disabling auto updates in Google Play Store

I don't really need those 300 Mb, but I hate that this app is acting outside of its permissions. Can this be stopped?


问:
Is there anything I can do to securely erase my phone's data before sale?
I've had a Samsung Galaxy filled with thousands of sensitive financial documents, which I've been using as a pocket computer pretty much, in order to reference them each time I need to throughout the day.

It's heavily debloated, de-Googled, I've had the Secure Startup device encryption enabled in case I'd lose it and a firewall (NetGuard) installed to prevent data leak for when it had to connect to the internet.

I wish to sell this phone now (or rather, give it away for free to someone who might). So, that means decrypt it and hard reset it.

Is there anything I can do programmatically (e.g., via ADB) to further wipe data? Something we would do to a computer hard drive, for instance, like secure wipe/zero out its data?


问:
How can I make an APK stop checking for updates? It's not downloaded from Google play
There's this music app (Fildo 4.2.9) that for a certain reason I don't want to use the latest version of, is there a possible way i can stop it from checking for updates? i literally can't use it because it displays a box that won't go unless it's updated.</p>


问:
No Zoom and Google Meet on Android 7/8 TV
I have Sony TV X82E 2017 model. Today MiTV Webcam got launched. It says in the specs that the webcam supports Android 8 and above which I think my TV has.

But when I tried to install Google Meet and Zoom from the Google Play TV store, it said that this was not available for this device. So there's no Google Meet and Zoom for my Android TV, then there is no point in buying this webcam.

Is there any way to get Google Meet and Zoom on my Android TV?


问:
Break or trivialize recovery mode
Is it possible to have either a broken recovery mode (without bricking other modes) or a trivial recovery mode (e.g. no menu and automatically shutdown)? Where can I find existing ones or instructions to build my own one?

One naive "solution" I thought about is to flash 0 into /recovery, but I do not know if there may be unexpected consequences.

Title: Break or trivialize recovery mode


问:
Can I use Whatsapp / take backup on phone A while having associated SIM card inserted in Phone B?
Problem Statement

Phone A (Nexus 6P) cannot detect mobile networks due to some issue and hence cannot receive WhatsApp verification SMS. This makes WhatsApp on Phone A unusable. Phone B (Samsung J7 Prime) is OK in all aspects.

Proposed Idea

Use SIM of Phone A in Phone B

Log in to WhatsApp on phone A. Receives verification SMS on Phone B and access WhatsApp on Phone A using that verification SMS

Take a WhatsApp backup on Phone A and send it to Google Drive

Then log in to WhatsApp on Phone B and restore the backup on Phone B

Finally, start using WhatsApp on Phone B

Will the proposed idea work? Will it destroy my WhatsApp chat history?


问:
Downloaded files consistently disappearing from Internal Storage
I have a Moto G Power running Android 11.

I like to listen to audiobooks, so I routinely download files from OneDrive, using the OneDrive app, to folders in my internal storage.

When I open the "My Files" app, I can go directly to Internal Storage. When I open Internal Storage it actually takes me to the folder "/storage/emulated/0/" I cannot go up to a higher folder. So I created a folder there called "Audiobooks" I create subfolders for each audiobook and I use an app (Smart Audiobook Reader) to read them.

When I download files, I go to OneDrive, find the audiobook mp3 files I'm looking for, select "Download" and then save it in the appropriate Audiobook subfolder. Also sometimes I download jpg files that serve at the "book covers" in the app.

All of this works well. I download new files every few days, 2 or 3 at a time.

However, over time, files in these folders start disappearing seemingly at random. Only the mp3 files, and it happens without me even know it so I'm not sure when the files are disappearing. I vaguely think it might have something to do with how long ago the file was downloaded and whether or not I accessed it recently, but in general, files start disappearing within 2 weeks or them being downloaded. It's only the MP3 files, and not the jpg files which leads me to believe a size issue too.

I've searched for solutions to this but no dice. This is what I've ruled out:

It's not the audiobook app reader. I deleted it, installed a different one, and the problem continued to happen.

It's not the Storage Manager under the Storage system settings. That feature is turned off.

Files aren't hidden. I've selected to show hidden files in My files.

I feel like I've exhausted all of the usual suspects. So I'm wondering if anyone has any thoughts.


问:
Automating android: stop all system/app related interference that prevents 100% reliability?
A team of us at work are trying to use Pixel 4a phones to take pictures every 30sec of a remote process from 6a - 6p each day, uploading the pictures to our AWS storage container.

My colleague wrote an app which uses the CameraX driver, however our uploads keep stopping but we are not sure how to find out why. As an alternative path, I have been exploring using something "off the shelf" like Framelapse coupled with Tasker and AutoInput to open Framelapse each day.

One challenge is that Android does unexpected things that thwart the ability to run this phone more like an industrial process computer. For example, I thought I'd successfully gotten Framelapse to auto-start via Tasker, and out of the blue (as in, it hadn't happened during many other attempts) I got a popup asking me if I want to rate the app. As a result, AutoInput couldn't find the button to start the recording as a result.

My questions:

is it possible to entirely silence any behavior other than what the user has specifically done?

if so, is there a comprehensive list of these settings?

if not, given our goal of taking pictures every day for months without interruption, is there an alternative approach you would suggest (that uses Android phones; I realize we could start from scratch on other hardware)?

Many thanks.


问:
How to determine exact package/application which cause undetected traffic consumption (only UID are known)

The situation

Some time ago I am started to locate data traffic leakage by the some packages, which listed in traffic listings as a numeric UID (five digits long). In both selection - by the cellular data and wifi.
Device is unrooted, and can not be rooted: Sharp R2 Compact

I ask'd on web forum (4pda), about this situation, and I am was instructed to try to inspect Package Manager via ADB, but as I expects - nothing is located there with investigated UID numbers. For example, the larger consumer (about a half of gigabyte) is UID=10366 and it was in april.

```<code>Android/sdk/platform-tools% adb shell "cmd package list packages -U | grep 10366"
Android/sdk/platform-tools%
</code>```

These days some different UID numbers is still present in traffic consuming lists.

Questions:

Is there a way to catch which package cause "unnamed" traffic consume on unrootable phone?

Is this a malware activity or an ordinary system activity may cause the same (traffic leak tie to unnamed UID instead to exactly package/application)?

May be somwhere exist a guide to learn more how traffic is counted in system provided listings?

As a PS:
I am Android developer and can write couple lines of code to run, but I needs to be pointed to where I'll should to start from


问:
How to Remove in Bulk Specific Website from Chrome's History?
I want to remove specific website mentions from Chrome's history on Android but doing it one by one will take a lot of time.

For example on Chrome for desktop, you can remove specific website mentions from history using bulk action.

I haven't found a way to do that on Chrome for Android. I though maybe I can access history of my smartphone on desktop and do removals but I can't find a way.


问:
Hide the ETA screen in Waze when starting a new navigation
When starting new navigation in Waze, I want to drive right away: I don't want to have to click on Go or wait ~ 13 seconds to remove this screen:

(Click the image to see its larger variant)

Is there any way to automatically bypass / hide / remove that ETA screen?


问:
Which Apps can be deleted from an Android?
Are there any pre-loaded apps that can be deleted without affecting the operation of the phone, or of other apps? The purpose is for ease of use, and to save space.

Hi, thank you. I have a Wiko 2 phone, an Android version 9, U307AS with 16 GB for data. I have 64 apps.  76% of memory is already used. There are apps I never use, and apps where I have two for the same purpose. I rather have just the ones I need and use including some new ones. Please let me know if you need more information.  Thank you.


问:
How to use FDE in Android 10 (Full Disk Encryption)
How can I setup Full Disk Encryption in Android 10?

According to the ASOP documentation, it is no longer possible to use FDE and the user is forced to use File-Based Encryption

Note: Devices running Android 7.0–9 support full-disk encryption. New devices running Android 10 and higher must use file-based encryption.

Though I understand the argument for convenience (morning alarms, updates, etc), there are several strong use-cases where it's better to have a FDE with a very long passphrase -- consider journalists, activists, political prisoners, etc crossing borders with oppressive governments. It's better to just turn the device off and rely on FDE to protect absolutely everything in these situations.

So the question is: how do at-risk folks use FDE in Android 10?

Note: creative answers that involve root, custom ROMS, apps, etc are welcome. I'm asking how this can be done on an Android 10 device. I'm not asking if Google "permits" it to be done.


问:
Google Photos using up too much data and at the same time hangs on uploads even when on wifi
Two problems related to the Google Photos App:

It often hangs on uploading saying "waiting for wifi" even though the phone is connected to wifi

According to "Mobile data usage" in settings, Photos is using a lot of mobile data

To me it almost seems like 1. and 2. contradict each other. I use an always on VPN.