问:
Creating a log entry in logcat via adb?
Does anybody knows a possibility to add a log entry into the logcat main log?

I need to inject an log line with custom text into this log on arbitrary devices.

The main problem is that I can't just install an own app that does inject the log entries.
I need to create the log entry directly on adb.

Title: Creating a log entry in logcat via adb?


问:
Revert contact ringtone to default
After selecting a non-default ringtone for a contact I apparently cannot revert it to the default ringtone anymore. Of course I can select the same ringtone but when changing the default ringtone that contact will still have the old one.

Is there a way to remove the custom ringtone from the contact and make it use the global default ringtone again? In case it matters, the phone is a HTC One V

ContentLicense: CC BY-SA 3.0

Title: Revert contact ringtone to default


问:
Rog Phone wont connect to internet with data but wifi, calls, and texts work fine
my phone is not able to use the internet on data, but wifi works fine. I can still send and recieve texts, and phone calls work too but it's just the data. My sim works fine because I've tested it on another phone. My phone is an Asus Rog phone (1, 512GB, Android Pie) and is not locked to any carrier.
Please inform of any possible fixes

Thanks

ContentLicense: CC BY-SA 4.0


问:
Android System storage usage blew from 7GB to 40GB overnight,Magisk problems?
I have LineageOS 17.1 with Magisk on my phone and this night system storage usage blew from 7GB to 40 GB</p>
```<code>dreamlte:/ # df -h
Filesystem                      Size  Used Avail Use% Mounted on
tmpfs                           1.6G  492K  1.6G   1% /dev
tmpfs                           1.6G     0  1.6G   0% /mnt
tmpfs                           1.6G     0  1.6G   0% /apex
/dev/block/sda3                  16M  2.5M   13M  17% /efs
tmpfs                           1.6G  4.9M  1.6G   1% /sbin
/sbin/.magisk/block/system_root 4.1G  2.0G  2.1G  49% /sbin/.magisk/mirror/system_root
/dev/block/sda18                484M  704K  484M   1% /cache
/dev/block/loop2                 95M   95M   36K 100% /apex/com.android.runtime@1
/dev/block/loop3                5.5M  5.5M   28K 100% /apex/com.android.media@290000000
/dev/block/loop4                232K   36K  196K  16% /apex/com.android.apex.cts.shim@1
/dev/block/loop5                 24M   24M   28K 100% /apex/com.android.media.swcodec@290000000
/dev/block/loop6                840K  812K   28K  97% /apex/com.android.tzdata@290000000
/dev/block/loop7                1.6M  1.6M   28K  99% /apex/com.android.resolv@290000000
/dev/block/loop8                5.0M  5.0M   28K 100% /apex/com.android.conscrypt@299900000
/sbin/.magisk/block/data         54G   49G  4.1G  93% /sbin/.magisk/mirror/data
tmpfs                           1.7G     0  1.7G   0% /system/etc/permissions
tmpfs                           1.7G     0  1.7G   0% /system/priv-app
tmpfs                           1.7G     0  1.7G   0% /system/lib
tmpfs                           1.7G     0  1.7G   0% /system/lib64
tmpfs                           1.7G     0  1.7G   0% /system/framework
/data/media                      54G   49G  4.1G  93% /mnt/runtime/default/emulated
/dev/block/vold/public:179,1     29G  7.6G   22G  27% /mnt/media_rw/B351-0D99
/mnt/media_rw/B351-0D99          29G  7.6G   22G  27% /mnt/runtime/default/B351-0D99
</code>```


问:
Are "USSD" engineering codes should work on ANY smartphone?
I personaly have Xiaomi Mi 9 SE. My family members have different smartphones but htey are all manufactured by Xiaomi: Mi Note 9 and Mi A3.

I'm trying to execute engineering code to display Bluetooth MAC-address. *#*#232337#*#* code should be able to do so. But all 3 smartphones fails: after I touch the last '*' button - the code dissapeares and nothing happens.

However some codes are working: *#06# and *#*#4636#*#*

What I'm doing wrong?


问:
Xiaomi Redmi5 Cannot Connect to Phaser 3020 Printer
I am trying to connect Xiaomi Redmi5 with a Phaser 3020 via Wi-Fi Direct. My iOS devices connect just fine.  Xerox Printer Services cannot discover the printer. Tried it with the IP of the printer. Did not help. With the Default Printer Service (in Xiaomi called "System printing services" ->Find Wi-Fi Direct printers I reach the point whereby the printer is found judging by the message "add DIRECT-Nv Phaser 3020". Tapping on it invokes a message Connecting to DIRECT-Nv Phaser 3020 and the printer seems to start crunching for a sec. After that a message appears saying You may need to approve this connection on your printer's front panel, but the printer has no panel except of 2 buttons (powerOff and WPS button) .Then followed by "Could not connect to DIRECT-Nv Phaser 3020". Apparently, the approval by the printer failed but I have no clue how to grant that approval. Tried pressing the two buttons in various combinations to no avail. Is there a way to connect this printer with the Redmi5 or they are intrinsically incompatible?

OwnerDisplayName: milanHrabos


问:
Recovering deleted files from unrooted Android device requires factory data reset
I would like to create a copy of the internal drive (not SD) of my Android device (Motorola E3) to recover some deleted files, but it requires rooting of the device. Rooting itself requires bootloader unlocking. During bootloader unlocking one has to wipe the internal drive (text taken from the "Unlock bootloader" menu):

To prevent unauthoritzed access to your personal data, unlocking the bootloader will also delete all personal data from your phone (a "factory data reset").

It sounds a bit contradictory to me. Is there no way to restore deleted files even after rooting the device?

Note: These answers (and many others on the internet) were not helpful:

Moto G -- recovering files after bootloader unlock (wipe)?

Recovering deleted files from unrooted Galaxy Nexus

How Recover deleted data from internal memory of non rooted Moto G device?

Advices like "download <fancy-tool-xy.exe> and root the device" without explaining what that tool exactly does (apart from this that fancy tool would probably contain some malware)


问:
How do I disable all vibrations on a Samsung A51 running One UI 2.1?
I've got a Samsung A51 running Android 10 / One UI 2.1 and updated to latest available security patch (1st September 2020).

Other users report being able to globally turn vibrations off, and this appears to have been available in stock Android since 2018 (although it was available on Windows Phones in 2016...). I don't have the same options in my Accessibility menu - have Samsung moved this, or have they disabled the functionality completely?


问:
Duplicate app names in battery optimization list
While troubleshooting a problem with the stock Android Phone app, I was thinking to let the phone app bypass battery optimization and see if that made any difference.  I notice that in the battery optimization list there are two listings for "Phone" with similar blue handset icons in the battery optimization list (as well as one with a green robot icon, and a "Phone Services" and "Phone and Messaging Storage" and "Call Management" all with similar blue handset icons).

Why do I have the apparent duplicate Phone app (with similar, not identical, icons) and how do I find out what the other, phone-related apps do?

I have UNrooted Android 7.0 Nougat on a Motorola Droid Turbo 2.

FWIW, I also see duplicate entries (including identical icons) for "Motorola Settings", "Photos" (with Google Photos icon), and "Setup Wizard".

Thanks,

Rebeccah


问:
"No SIM Card" after flashing custom ROM (Oneplus 7 Pro)
I have an unlocked Oneplus 7 Pro that I just installed Havoc OS on, which stopped the SIM card from being recognized. This SIM card works on both other phones (stock Pixel 2) and this phone with a stock ROM. The phone still has its two IMEI numbers. I've looked at quite a few options to fix this, such as:

Rebooting the phone multiple times

Clearing Dalvik/Cache

Resetting all network settings in Settings > System > Reset options

Reflashing the ROM and TWRP multiple times to make sure they are in both slots

Trying dial codes *#*#72786#*#* and *#*#4636#*#* (both cleared the input but nothing happened afterwards, no menus or popups)

Taking out the sim, putting it in airplane mode, putting the sim back in, powering off, waiting a minute, and putting it back in

The device was sim unlocked before flashing the ROM


问:
How does Android Chrome send newline from soft keyboard?
I am attempting to access an ESP32 microcontroller running MicroPython over a web interface using the following page WebREPL which within my local network using Chrome on my PC is all fine.

The problem arises when I use the same page from my Android using Chrome and attempt to input the password, followed by the 'enter' key which is promptly rejected as the wrong password - the password I have configured uses only upper and lowercase with no symbols so the only way I can see things getting FUBAR is with the line ending being sent.

Can anybody shed some knowledge on what ascii or whatever code the keyboard would be sending back through the connection, or if there is any possibility there is a space being appended first (the web page does not echo the password keys being entered) - also are there any apps or hacks to give more transparency to what the keyboard is sending in general for non alphanumeric characters?


问:
Oppo mobile blocks button clicks with hyperlink
I have developed an android app, which has a button that opens a website link on click. The function works in Motorola, Samsung, some Redmi phones.But, the function doesn't works on oppo phones. Button click to load new activity(pages/app window)works well. What may be the reason? Its not development related question. How to solve this issue?</p>


问:
How to monitor SMS being sent by apps?
I just found from my mobile bill that SMS is being sent out to some 4 digit number (permium number) from my mobile. I could not find the message in my SMS app - "Messages".

I checked with the telecom company and confirmed that it's not some service I subscribed to.

I did see the same issue on an acquaintance phone which was by Huawei sending this SMS every week.

Mine phone is from LG and I have being using it for over 3 years and this is the first time. I don't remember installing any new app. Not sure what changed in the phone.

I am assuming that one of the apps on my phone is sending some kind of log. I don't remember any app asking for permission.

How can I find out what was the content of the message sent? Not sure which app is sending it.

What is this type of SMS that the apps are sending? Anyway to block it?

In the setting: app permission>SMS permissions: (apps with SMS permission)

Contacts

Google

Google Play services

Google Play Store

Messages (Google app that I am using)

Messaging (LG default SMS app)

Title: How to monitor SMS being sent by apps?


问:
Does hotspot connect directly to proxy or through the computer from the connection being shared?
Let's say I have connected my phone to the internet through the hotspot from my Laptop. In order to access the internet, i have to configure proxy in both laptop and android.
Now on the server side would the traffic come from my laptop or it would be shown as different i.e coming from the android?</p>


问:
I am not able to write to the directory Android/data or /Android/obb in android 11?
I was trying to add some obb data files to the obb directory in Android folder but every time I made a try it pops an error message, first I thought that this may be because of some fault in File Manager. Than I tried some external File Managers like Solid Explorer and Files by google , but for my surprise I was not even able to access the Android folder in any another external file manager (Android folder was empty no data, no obb was there), than I searched on internet and found this is because of scoped storage (introduced in android 10)

I didn't understood much about scoped storage but only that this limits access of apps to the Storage, I want to understand more about scoped storage and want to know how this is helpful to us and how I can access those data and obb folders


问:
How to use Smart Lock using Chrome browser?
Based on the following text, it seems Chrome browser can log in to a compatible mobile app with Smart Lock. Could someone help me learn how to do it by giving an example (maybe...)? Does that mean Chrome browser can unlock my smartphone as well? Sorry, I am not tech savvy. Thank you in advance !

"For Chrome and apps -
Skip the password guessing game. Smart Lock remembers your passwords within your Chrome browser and select mobile apps."


问:
Add D-Pad Support To App
Nowadays, flip phones run android. You are able to install any app, as long as it supports the framework. But, the one problem is that there is no touchscreen on flip phones. Is there a way to add "D-Pad" functionality to a common android app, much like the way you use the remote to navigate on AndroidTV?</p>

Title: Add D-Pad Support To App


问:
Edit host file - Nvidia shield pro
I am trying to edit my host file in nvidia shield pro device. Its not rooted and I get read only error when I try to update the host file using adb push. I am a newbie in this. I need to do some url redirecting.

I am not trying to block anything. I have a local Apache server set up and want to redirect the traffic from the shield to my local server for some custom urls.

Title: Edit host file - Nvidia shield pro


问:
ICS Bluetooth Losing Connectivity
I have a Galaxy S2 Skyrocket on AT&T that is currently running Nexus ICS Zero Build 2 Rev.12.

I've been trying to pair the phone with my car. It will initially connect, but when I try to either use the phone or a music player, the bluetooth disconnects quickly. I've read about this happening to many people using ICS, but haven't found a solution.

Is there another ICS ROM that would work better for Bluetooth? Am I better off going back to GB?

Let me know if you need more info.

Title: ICS Bluetooth Losing Connectivity


问:
how to add a location tracking script on android?
How can I add a custom script that retrieves the current location and also fetches current sim's cellphone number?

I want to root my phone and add a script that notifies me of its location and user every 10 minutes. So that even if the person resets my phone and manages to bypass frp I can still rely on the root script running in the backend.

I'm aware that they can just install a new rom though to get rid of the script


问:
Samsung Galaxy Tab E SM-T560 bricked
Recently, I tried to root my Samsung Galaxy Tab E T-560 and I was unsuccessful. This is the first device I tried to root so I do not have much knowledge about this topic. I decided to root the tablet because the tablet stuck on Android 4.4 and I cannot launch many apps from the Play store.

I followed one tutorial which was specifically for this tablet. First I installed USB Drivers on my notebook, installed software Odin3 v3.14.4, and downloaded Samsung Auto-Root pack and unpacked files.

On the tablet, I opened Settings, enabled Developer settings, and turned on OEM LOCK. Then I opened the Odin software and with the AP button, I selected a file with .md5 extension (CF-Auto-Root-s5neolte-s5neoltex-smg903f.tar.md5). Next, I turned my tablet into download mode and connect it to my notebook with a USB cable. Last, I pressed the Start button, and after some time rooting failed.

Now my device is bricked and it stuck on the screen with the message:

"Firmware upgrade encountered an issue. Please select recovery mode in
Kies & try again."

Can someone please tell me if I can unbrick my device and what I did wrong? I suppose that I chose the wrong .md5 file but unfortunately, I believed what the tutorial says.

Title: Samsung Galaxy Tab E SM-T560 bricked


问:
Suddenly getting "Gmail won't run without google play services, which are not supported by your device"
Samsung Galaxy J7 running Android 8.1.0. Totally vanilla, not rooted or anything like that.

A few days ago suddenly gmail and other google apps stopped working, showing messages like "Gmail won't run without google play services, which are not supported by your device". Have had the phone for years & been using all the usual google apps all the time and this has never happened before.

Looking in settings->apps, Google Play Services is in there, but the Google Play Store is not.

What I have tried:

Reset app preferences.

Went into google play services under settings->apps and tried to uninstall updates, but it said something like "failed to uninstall updates".

Attempted to remove my Google account from the device (thinking I'd add it again afterwards which might reset something) but it asks for my Google password and does not accept the password (which is definitely correct, I can see it and compare directly with the one that works on my computer).

I have not tried a factory reset because I am concerned that if google play services still don't work after the reset, I won't be able to install whatsapp and other apps that I rely on.

Any ideas?

thanks

EDIT: I followed advice in the comments and installed google play services from apkpure. Now, the phone doesn't work at all. I keep getting the message 'com.google.process.gapps keeps stopping' and it prevents me from doing anything at all on the phone.


问:
See what apps I have installed with the facebook SDK
Is there a way to check on my rooted phone what apps use the Facebook (or just any) SDK?</p>


问:
Turn on display for new notifications?
Is there a way to turn on the display for new notifications arriving?

Use case: I enjoy having my display turned off but don't want to manually turn it on to check for new notifications on my lock screen.

Is there a native way to do that with Android 8?

I am using a Samsung Galaxy a3 (2017).

Title: Turn on display for new notifications?


问:
Is it possible to virtualize Android on an X86 machine?
Following this question, I had a little bit of success installing an X86 port of Android (i.e., BlissOS) on macOS with QEMU. Now I am wondering if I can virtualize a "normal" Android (preferably LineageOS) on any of the conventional FLOSS hypervisors such as VirtualBox, QEMU... (preferably something portable on Windows).

There are qemu-system-arm and qemu-system-aarch64 versions of QEMU that I expect to do the job. Over here, Alex Bennée is doing some magic with the so-called "ranchu kernel" that I can't really understand and trust. Meanwhile, on this post it's being said that the upstream QEMU hasn't inherited the graphic acceleration back from Google's Android Studio Emulator.

Now my questions are:

what is that "ranchu kernel"? and how much it can be trusted?

Can I virtualize LineageOS or any other well-known FLOSS Android? How?


问:
Can't make and receive calls with good signal
Sometimes my smartphone can't make or receive calls (haven't tried SMS) despite signal being good. I can connect to LTE internet though. Turning airplane mode on and off solves the problem however it's not a proper solution because that problem can happen again and I won't know it.

Anyone can advise?
Thanks.

Samsung Galaxy A71

Android 10, One UI 2.1


问:
Google Calendar always loads all data each time app is opened
I have a "branded" tablet with an OS derived from Android 9 (Pie). To skip the brand-related stuff like registration, I skipped the setup wizard. The device is not rooted. Debugging (via adb) is enabled, and I could customize the launcher and other settings. Everything works - all apps, all buttons - it's almost perfect. Only the Google Calendar starts with no dates and slowly downloads my entire calendar each time the app is opened. This takes a while and only works on WiFi, obviously.

I have tried clearing the storage of the Google Calendar, the in-built calendar app, and the Calendar Storage. I would like to avoid a factory reset.

Googling revealed practically nothing except for one tiny hint in Home Screen and Recent Apps buttons don't work: "Caution: Backup/sync everything before starting the setup wizard, because it might reset various things (e.g. the calendar storage (if syncing stopped before) or wifi passwords)." This mentions the calendar storage explicitly, and I did what was mentioned in the thread to skip the wizard as stated above. I believe that's when the problem started. Here is what I did back then:

```<code>adb shell settings put global setup_wizard_has_run 1
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1
</code>```

Any ideas on how I can make my Google Calendar data remain on the tablet?

Edit:
I tried "adb logcat" and it seems the calendar data wiping/reloading coincides with a crash of the app. It's the latest version and I have been observing this for a long time; any idea how to fix/mitigate this?

```10-30 12:00:24.071 11845 11845 E AndroidRuntime: FATAL EXCEPTION: main
10-30 12:00:24.071 11845 11845 E AndroidRuntime: Process: com.google.android.calendar, PID: 11845
10-30 12:00:24.071 11845 11845 E AndroidRuntime: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.mvu.b(PG:18)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.ioz.a(Unknown Source:6)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.das.a(Unknown Source:128)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.eji.run(Unknown Source:30)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.drs.a(PG:2)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.dax.l(PG:6)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.dax.k(PG:5)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.ddv.a(PG:65)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.diq.y(PG:71)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at cal.diq.a(PG:2)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at com.google.android.apps.calendar.timeline.alternate.view.impl.layout.LayoutManagerImpl.e(PG:3)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.support.v7.widget.RecyclerView.ah(PG:5)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.support.v7.widget.RecyclerView.x(PG:10)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.support.v7.widget.RecyclerView.onLayout(PG:2)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at androidx.drawerlayout.widget.DrawerLayout.onLayout(PG:29)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at com.android.internal.policy.DecorView.onLayout(DecorView.java:763)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.View.layout(View.java:20672)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2802)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2329)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1467)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7202)
10-30 12:00:24.071 11845 11845 E AndroidRuntime:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:961)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at android.view.Choreographer.doCallbacks(Choreographer.java:772)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at android.view.Choreographer.doFrame(Choreographer.java:706)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:947)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:873)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:193)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6740)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
10-30 12:00:24.072 11845 11845 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at cal.jmm.call(Unknown Source:46)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at cal.zly.c(PG:1)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at cal.zla.run(PG:4)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at cal.zlz.run(PG:1)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at cal.ead.run(Unknown Source:4)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at cal.eac.run(Unknown Source:75)
10-30 12:00:24.072 11845 11845 E AndroidRuntime:        at java.lang.Thread.run(Thread.java:764)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti: Uncaught Android Crash on thread main with tid 2
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.mvu.b(PG:18)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.ioz.a(Unknown Source:6)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.das.a(Unknown Source:128)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.eji.run(Unknown Source:30)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.drs.a(PG:2)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.dax.l(PG:6)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.dax.k(PG:5)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.ddv.a(PG:65)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.diq.y(PG:71)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.diq.a(PG:2)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at com.google.android.apps.calendar.timeline.alternate.view.impl.layout.LayoutManagerImpl.e(PG:3)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.support.v7.widget.RecyclerView.ah(PG:5)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.support.v7.widget.RecyclerView.x(PG:10)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.support.v7.widget.RecyclerView.onLayout(PG:2)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at androidx.drawerlayout.widget.DrawerLayout.onLayout(PG:29)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at com.android.internal.policy.DecorView.onLayout(DecorView.java:763)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.View.layout(View.java:20672)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewGroup.layout(ViewGroup.java:6194)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2802)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2329)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1467)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7202)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:961)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.Choreographer.doCallbacks(Choreographer.java:772)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.Choreographer.doFrame(Choreographer.java:706)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:947)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.os.Handler.handleCallback(Handler.java:873)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.os.Handler.dispatchMessage(Handler.java:99)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.os.Looper.loop(Looper.java:193)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at android.app.ActivityThread.main(ActivityThread.java:6740)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at java.lang.reflect.Method.invoke(Native Method)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.jmm.call(Unknown Source:46)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.zly.c(PG:1)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.zla.run(PG:4)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.zlz.run(PG:1)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.ead.run(Unknown Source:4)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at cal.eac.run(Unknown Source:75)
10-30 12:00:24.072 11845 11845 E CalendarUncaughtExcepti:       at java.lang.Thread.run(Thread.java:764)
```


问:
Google Play Problem with my wifi
Google Play Store not working with my wifi. When I try to update or install apps stuck "Waiting for download". On another wifi working perfectly. And on my wifi with VPN working too, but too slow.
This problem exist on all android device with on my wifi.</p>

Title: Google Play Problem with my wifi


问:
How can I tweak my kernel to use all CPUs in my rooted device?
I have Huawei ALE-L21 alice (2015) Magisk-rooted Bootloader-Unlocked Xposed-Installed but it's somehow slower and I decided to tweak my CPU but here is what ES Kernel Manager shows:

Also, I can't actually use the governor

This is my ROM info:


问:
Is it possible to see when a bluetooth device was last connected?
I misplaced my bluetooth headphones, does anyone know whether it is possible to get a history when they were last connected on my Android 11 google Pixel 3A? Thanks in advance.</p>

OwnerDisplayName: Max Mustermann


问:
Send a text message on Instagram app using URI
WhatsApp allows users to send a message using URI with the format whatsapp://send?text=<message>.

Is there a similar way to send messages on the Instagram app?


问:
Razer Phone 2 showing wrong size for the SD card and performance of the card is not ok
I have the following setup:

Razer Phone 2 (Android Phone)

Samsung EVO 128 GB SD card SDXC class 10 (Yellow one)

SD Card formatted as internal storage from the Razer phone

After using the phone for couple of months the performance of the phone started to get effected. The I checked and found that the SD card was sowing 256 GB but the card is actually 128 GB.

I have double checked the card physically and it is a 128 GB card.

Now how do I reformat the SD card so that it is corrected (found a video on how to do that) and then copy my data back to the card so that it works as before. The card is encrypted so the copied data will not make sense. But as long as it works after I copy back that will do.

I do not have another card where I can clone this card. I plan to copy to my windows machine, format and then copy-back the content of the card.

Any suggestion on the steps/measures I have to take to have the card corrected and retain the data?

OwnerDisplayName: Rahatur


问:
New Android version for Acer DA220HQL
I have got the following android model (Acer DA220HQL) with  Android Ice Cream installed (Android 4.0.4). Unfortunately this version is quite outdated nowadays and all android apps  do not work. I would like to know, if there is any new official Android version or even a custom android rom that would be compatible with this specific model (image attached for better assistance) and which one.

That would help me a lot!

Regards

Title: New Android version for Acer DA220HQL


问:
Help with Nexus 6P bootloop: Couldn't parse partition size '0x' when trying to flash new image
I need help with my Nexus 6P.

Because of a bootloop, I was trying to flash a new boot image. I went to the Google download page for factory images and tried using the "flash-all.bat" file. I don't know how to exactly explain this but, here is the full command prompt line from the flash-all batch file.

Note: It also says my device is corrupt while trying to go into recovery mode.

I don't know how to fix, please help :(

```<code>Sending 'bootloader' (3544 KB)                     OKAY [  0.136s]
Writing 'bootloader'                               OKAY [  0.215s]
Finished. Total time: 0.405s
Rebooting into bootloader                          OKAY [  0.108s]
Finished. Total time: 0.113s
Sending 'radio' (48728 KB)                         OKAY [  1.511s]
Writing 'radio'                                    OKAY [  2.174s]
Finished. Total time: 3.741s
Rebooting into bootloader                          OKAY [  0.007s]
Finished. Total time: 0.009s
--------------------------------------------
Bootloader Version...: angler-03.68
Baseband Version.....: angler-03.81
Serial Number........: 84B7N16109000032
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product'                                 OKAY [  0.018s]
Checking 'version-bootloader'                      OKAY [  0.018s]
Checking 'version-baseband'                        OKAY [  0.018s]
extracting boot.img (12 MB) to disk... took 0.033s
archive does not contain 'boot.sig'
fastboot: error: Couldn't parse partition size '0x'.
Press any key to exit...
</code>```

Flashing vendor, system, and recovery individually works but boot doesn't. When flashing boot image on its own, it also says the same thing.

```<code>fastboot: error: Couldn't parse partition size '0x'.
</code>```


问:
How to select photos by file-name when opening from inside an app?
I am converting hundreds of A4 pages of handwritten text into computer text with the amazing Pen to Script app on my Android 10 phone. I got many more to process and I go crazy on one detail:

Here is my problem: Every time I start a new page, I have to select its photo from a very full folder. But every time I get offered some useless (for this purpose) "app switcher" (I am not sure that is its correct name) where I see recent photos and a choice of several apps to select photos.

Problem is also that at thumbnail-size on a phone, all pages of handwritten text look the same.

In my app switcher I found an icon that looks like six tiny white rectangles on a small grey rectangle. This gives me the view I need: file names rather than thumb-nails.

Update: The view which give me the file-names in the app switcher is called "list view"; found that on long-tap on its icon. So please, how can I set "list view" as my default to come up each time I have to select a photo?

I would have preferred to have Total Commander come up, whenever I have to select a photo. But if a user can show me how to make the file-name-view sticky in my app switcher, that would be a solution for this present project.

OwnerDisplayName: Martin Zaske


问:
Does my hidden files (in android phone) get deleted if there is no enough space to restore them?
I tried to restore my hidden files on my android phone. I had less than 20% available space while the hidden files size was more than 30%. It gave me a warning of out of space memory. A box appeared where I quickly clicked the cancel button with reflex without reading what was written. I thought that my files were still there in the hidden folder but they were not. They were deleted completely. My free space also increased by that much. Does it happen like this?</p>

OwnerDisplayName: Tea is life


问:
Settings get global mobile_data always returns 0
On a rooted mediatek 6580 phone running Android 5.1.1, if data is enabled using svc data enable or even pulling down the notification bar, the command settings get global mobile_data shows an output of 0 instead of 1. As a result if running from a script, such like;

```<code>while true; do
sleep 10
if [ `settings get global mobile_data` == "0" ]; then
svc data enable
else
svc data disable
fi
done
</code>```

This script turns on data successfully, but couldn't turn data off after 10 seconds, since settings get global mobile_data always returns 0. Where as, I did the same with wifi as in replaced mobile_data with wifi and svc wifi enable/disable Wifi seemed to do the job as expected. Turned on after 10 seconds, and after 10 seconds turned itself off and repeat. I wonder why it isn't the same with mobile data. Manually running svc data disable turns off data, but running from a script seems to be a problem in this case.


问:
How can you enable "Use secure credentials" from the shell
On the ICS ROM I'm using, the option to enable the secure credentials is missing from the menu, but the sub system seems to be there since Keystore Locker can communicate with it.

So does anybody know how I can enable/initialize secure credential storage from an adb shell?


问:
Recovering LINE account chat history after a delete and reinstall
I deleted and reinstalled my LINE messaging app since it kept notifying me to do so the past few days (which I found odd because it was on the latest version). I'm guessing it might have had something to do with me playing around with Lucky Patcher to install a modded version of Google Playstore, which ultimately failed so I had to flash GAPPS to get the playstore back after LP uninstalled it.

Anyways, I backed up my LINE app using Titanium Backup before deleting and reinstalling. After the reinstall, I opened LINE, logged in, and saw that all my chat history has been deleted so I ran TB to restore the data (restore app + data didn't let me install LINE so I installed it through the PlayStore and just restored the data using TB).

However, when I opened LINE again, I saw everything restored briefly until I got notified that my account is being used on another device and I was forced to delete everything.

I looked through the questions and answers in StackExchange, Reddit, and XDA but most of their problems involved transferring their LINE app to a different phone, or a different ROM (but the same phone). All I did was to delete and reinstall so my android id should not have changed so it doesn't make sense why LINE is giving me that notice.

Does anyone have ideas on how to fix this?

Phone: OnePlus 6, Android 9, rooted.

Thanks!


问:
Fastboot not working with new Teclast P80H
I am developing an in-car product and app.  Previously, I had a Teclast P80H tablet with a micro-USB connector and running Android 7.0.  I was able to enter fastboot mode and from Windows cmd window, issue the Android SDK command "fastboot oem off-mode-charge 0".  This successfully reconfigured that older tablet so that, if the tablet was fully shut down and turned off, connecting 5V to the micro-USB jack would cause the tablet to boot up and run.  This was great for my in-car product and app.

Now that old tablet is no longer available, so I'm trying a newer version of the Teclast P80H.  This one has a USB-C connector and runs Android 10.0.  It takes a slightly different method to get into fastboot mode, but I think I've figured it out.  However, when I issue the command "fastboot oem off-mode-charge 0" I get a message "FAILED (remote: 'unknown cmd.')".

In order to make sure I really do have the tablet in fastboot mode, I've tried a couple things.  First, issuing "fastboot reboot" does indeed reboot the new tablet like it did with the old tablet.  Even better, the command "fastboot oem get_identifier_token" seems to work, telling me "(bootloader) Identifier token:" and on the next line "(bootloader) ******************".  Well, I've omitted the actual identifier for security purposes, of course, I guess.  But this seems to prove to me that I have the tablet in the right mode to receive the "fastboot oem off-mode-charge 0" command.

But it seems like maybe this version of the tablet's oem commands doesn't include "off-mode-charge".  Perhaps the name or syntax has changed.  But I don't know how to find out.  While "fastboot help" works, it seems that 'fastboot oem help" doesn't.  I don't know how to figure out how to configure this new tablet.

Again, my objective is for the tablet to boot up from full shutdown, whenever 5V is applied through the USB-C connector.  BTW, I'm using the USB-C to USB-A cable that came with the tablet, plugging the USB-A end into my Windows 10 computer.

I did re-install the latest Android Studio.  I also updated the SDK to Android 10.  (It was Android 9.)  However, the fastboot.exe program remains with an 11/14/2019 file date, perhaps the original date I installed it.

Any suggestions?  Thanks!


问:
Nexus 6P Bootlooping, can't go to recovery mode, tried multiple flashes, used Nexus Root Toolkit. Is my device gone forever?
As you guys may know, the Nexus 6P has a notorious bootlooping issue. After trying multiple flashes, and even going to WugFresh's Nexus Root Toolkit, I had no avail for any signs that my device was fixed. I can't go to recovery mode either because it bootloops there too. My question is that is my device gone forever? Can I no longer fix it? Thanks in advance.</p>


问:
Screen on when charging on powered off phone

The issue

My phone's screen is always on when I charge it while it is turned off.
It displays this image:

And the screen cannot be turned off. I believe it is not charging either, but I can boot it normally. It charges normally when on.

Specification

Image installed: lineage-17.1-20201012-UNOFFICIAL-treble_a64_bvS

Build number: treble_a64_bvS-userdebug 10 QQ3A.200805.001 eng.crossg.20201012.051017 test-keys

Phone: Blackview BV 5500 Pro

Similar issues

I believe the issues posted at

https://forum.xda-developers.com/galaxy-s5/help/power-off-charging-lineage-os-14-1-t3694182

https://forum.xda-developers.com/lineage/help/charging-screen-misbehaving-phone-off-t3611714

are fairly similar, but do no have a solution, as far as I can tell.

What I've tried

Originally, I had the message

Orange State

Your device has been unlocked and can't be trusted..Your device will boot in 5 seconds

Displayed along the picture of the battery. The phone would not boot (unless I've pushed the on button, that is), but the message would continually be displayed.

I've followed the tutorial at https://forum.hovatek.com/thread-31664.html and removed the 5 seconds boot delay time in Orange State: I don't see that warning when I turn off my phone or when it is turned off and charging, but the screen still stays on when I'm charging the phone turned off.


问:
How to backup Signal app on sd card instead of internal storage?
I want to backup the signal app on my Android phone at the sd card for my new phone. In the app there is no option to choose the pathway, it is automatically saved in the internal storage. However, the app now has 4,7 GB and my storage is only 16 GB big and nearly full. With the storage needed for the system I'd basically had to remove everything else to make it work. So the backup always starts but stops at some point and no backup is created.

I tried

deleting other apps and media even though I calculated it would still not be enough space and it wasn't.

removing the /signal/backups folder manually several times before or while the backup was creating but the folder at the sd card still remained empty and was recreated in the internal storage

finding an option to move the entire app to the sd card as possible with other apps but this has to be in a forced way if possible

making the used space by signal smaller by deleting saved pictures by signal in the internal storage and by deleting chats but the space remained the same size ...

google. But what I found in the internet was not much and I did not understand what to do. Like using tasker or osmand somehow?

Do you know a creative or clever way of forcing Android and Signal to backup on the sd card?


问:
List of all actions protected by given permission
I am supposed to perform static analysis of an APK that has a lot of permissions requested in the Manifest.

I would like to find out whether all the permissions requested are really needed by the app to perform some action.

When I read documentation for a specific permission, it hardly mentions what actions (API calls, object initiations, broadcasts etc.) are specifically protected by that permission.

For example: When I read the docs of READ_PHONE_STATE here, it never mentions the actual API calls protected by the permission. I need to google and find that the user needs this permission to call some methods of TelephonyManager, which is something that I can try to find in the Smali code of my APK to verify that the permission is really needed.

So my question is: Is there some documentation, website or list, where I could easily find all assets protected by various Android permissions? The documentation usually contains all permission needed by a specific call, but it does not contain all calls protected by a specific permission.


问:
does someone have a solution for "encryption unsuccessful" on redmi go?

operating system ONLY working - stock

TWRP doesn't decrypt /data/

this solution doesn't work : http://www.electricbreadcrumbs.com/2012/07/guide-to-fixing-encryption-unsuccessful.html

deleting cache and data does NOTHING

doing factory reset only reboots

all ideas allowed (by me ;) )

maybe provide a link to really working system? as i saw most are having problems with hardware...

... or a way ( with root ) to fully delete gApps - all apps and file managers can't do it...


问:
Updating Android make it to user more data transfer, now there is no way to block data by default
I have accidentally updated my Android One phone to v10 of 2020-05-01 and now each time I switch-on the phone data transfer is also on.

How can I disable data transfer by default so I need to manually enable it whenever I want.

Previously once I switched-off the data, by sliding a drawer from top of the screen and tapping data transfer triangle, it was off until I really made it on. It also stayed up when I rebooted the system.


问:
Can I run AOSPExtended Android 10 ROM in a 16gb storage phone?
I have a Micromax canvas Q417 modeled phone whose last officially received system update was of Android 5.1 Lollipop and they too about 5 years ago. So I decided to install a custom ROM. After searching and researching, I found AOSPExtended Android 10 ROM perfect for me (here is the link). It is an old Motorola model ROM but the device specifications for this model and my model are the same except for one thing ie this phone comes in two variants, one with 16gb internal storage and another with 32. I have 16gb internal storage and after rains some parts on Reddit and Quora, I found that Android 10 updates take a lot of space probably miss than 16gb. The ROM download size in this link is about 400mb which so will I be able to install it on my phone and have some space left for other things (at least 5gb of available space should work)? If not then which ones among Pie and Oreo will be suitable for my phone and I didn't want to get lower than Android 8. I know that this question may be down voted or even closed but before doing so please answer my question. Thanks for reading.</p>


问:
Is there a way to connect an external microphone to android, while using internal speakers and charging the phone?
I want to improve the microphone sound quality while using internal speakers. I also want to be able to charge phone while on the call. Is there a way to do it?

So far I only saw solutions that would require headphones to also be connected to the device.


问:
How Auto start apps are able to start after reboot?
Many OEMs have restrictions which do not allow an application to run after boot complete. For this, we need to give autostart permission to that app. Then how does apps like Autostart, startup manager are able to run right after boot without having any permissions? Autostart is developed by a small team and is not as popular as whatsapp, facebook and others that it can be whitelisted by the OEM. Any inputs will be helpful.

Edit1: I am aware of broadcast receiver but even after using them user needs to manually set autostart permission for my application to be able to run the application in background after BOOT_COMPLETE. However this is not the case for autostart apps.

Thanks.


问:
Using Here Documents in Termux
I'm trying to run commands in a script that needs to be run as superuser. I tried doing this with here documents but wasn't successful. ( I used to be able to use it with tsu in Termux).

Does anyone know a reason why it shouldn't work or a way to get it to work.

Here is the code that used to work but doesn't work anymore.

```<code>#!/data/data/com.termux/files/usr/bin/bash
... begining of script Just some regular commands

sudo touch s
tsu << EOF
    echo "Test" > s
    exit
EOF

echo after here doc
</code>```

The results currently from this script is

```<code>echo "Test" > s
exit
after here doc
</code>```

The 2 first lines should not appear at all and they should be in the file s. But the file s is empty.

I have also tried the following code but with the same results.

```<code>sudo touch s
sudo -s << EOF
    echo "Test" > s
    exit
EOF

echo after here doc
</code>```

I have also googled this and haven't found anything to help me. All suggestion work in regular linux but not in Termux. Here is one example of what I have tried.

Any suggestion or help will be appreciated.

Title: Using Here Documents in Termux


问:
How to properly propagate unmounting of USB OTG storage to all mount namespaces (rooted device)
This is a (spiritual) follow-up to the previously answered question How to bind mount a folder inside /sdcard with correct permissions?.

Device: Samsung Galaxy Tab S2 8.0

ROM: LineageOS 16.0 (Android 9) with Magisk

Other things to note: SELinux set to permissive

This in-car tablet with OTG storage via permanently-mounted USB hub. When the car is powered on, the tablet, USB hub, and any peripherals receive power, the tablet switches into OTG mode, and all USB devices are enumerated correctly (confirmed via lsusb in a root shell).

If I reboot the tablet while it is powered, then use the instructions in the above-linked answer, everything seems to work as intended. In summary, after booting, I can mount my USB device to its mount-point as follows

```<code>$ su -mm (switch to a global namespace root shell)
# mkdir /data/media/0/usb1 (create the mount point)
# mount -t exfat -o <options string> /dev/block/sdb1 /mnt/runtime/write/emulated/0/usb1
</code>```

which results in the following mounts:

```<code># mount
...
/dev/block/sdb1 on /mnt/runtime/default/emulated/0/usb1 <options>
/dev/block/sdb1 on /mnt/runtime/read/emulated/0/usb1 <options>
/dev/block/sdb1 on /mnt/runtime/write/emulated/0/usb1 <options>
/dev/block/sdb1 on /storage/emulated/0/usb1 <options>
/dev/block/sdb1 on /storage/emulated/0/usb1 <options>
</code>```

Just to be clear, the final mount to /storage/emulated/0/usb1 does in fact appear twice. In any case, at this point, everything work as expected as long as the tablet remains powered; all apps can access the data on the USB OTG storage with no issue.

When powered-off and back on, the OTG storage needs to be unmounted and then remounted, since the device gets re-probed (e.g. the USB-OTG storage partition /dev/block/sdb1 will disappear on loss of power, and then when power is applied, it will appear again as /dev/block/sdc1). I've narrowed the issue down to the fact that running umount in a global namespace root shell doesn't seem to propagate to all other mount namespaces. In a root shell, everything works just fine.

umount called on these mounts returns no errors and running mount in a root shell confirms that the drive is no longer mounted. However, even after this, it seems that all of the non-global mount namespaces still retain the mount. There are two things that indicate this:

It's impossible to delete the mount point directory, in any shell (including a root shell):

```<code>$ su -mm
# rmdir /data/media/0/usb1
rm: cannot remove /data/media/0/usb1 : Device or resource busy
</code>```

I've tried running lsof in a root shell, but don't see anything holding a handle open to the mount point directory. I haven't built or downloaded an nsenter binary to switch into the mount namespace of different apps to check, but I suspect the mount is still held open in other namespaces. I say this because...

Apps can still access the USB-OTG storage, even after it's been unmounted in a root shell. The access remains until the tablet loses power, at which point the mount point directory appears empty to all applications. Upon power restoration, if I mount the new partition in /dev/block to the same mount point as before, root shells have no issue accessing the data, however all other apps just see it as an empty directory.

I've tried using a bind mount as follows...

```<code># mount -t exfat /dev/block/sdb1 /mnt/media_rw/usb1
# mount -t sdcardfs /mnt/media_rw/usb1 /mnt/runtime/write/emulated/0/usb1
</code>```

...but this just pushes the problem to the "base" mount point. On power loss and restore, remounting the exFAT mount and then the bind sdcardfs mount to /sdcard just results in an "empty" folder for apps, but the root shell works properly (both in the /mnt/media_rw_usb1 directory as well as the mount point in /sdcard/usb1). In this case, it becomes impossible to delete the /mnt/media_rw_usb1 directory with the same Device or resource busy error.

I'm thoroughly stumped on how to handle this. I've gotten by in the past by using a Tasker script to use nsenter to enter into the mount namespace of the apps I need to access the drive, and run loops to unmount the directory in question until an error returns, at which point I run a separate task to mount the OTG storage again. I'd like to avoid this approach, though, since it's really kludgy and it's actually quite slow.

I think I've given enough information. Thanks in advance.


问:
How to debug when the USB is set to "CHARGING ONLY" mode

Device: Nokia 2.2

Carrier: Airtel

Android version: 10

Root status: Never rooted

I've set a PIN lock to my phone and forgot the password.. luckily I've turned on the USB debugging mode earlier but I didn't set the USB behaviour to PTP or MTP, It's still in the charging only mode. The phone's not allowing to change the USB behaviour to PTP unless I unlock my phone which I literally cannot do.

Is there anyway to change the USB behaviour to PTP, so that I can use ADB to recover call lists and app data from my phone?


问:
ADB content query - Browser
I am having some slight issue using the query

adb shell content query --uri content://browser/bookmarks" & "adb shell content query --uri content://browser/searches

I have played around with the browser and added some bookmarks, but I am receiving nothing in return. Does anyone have encounter any issue using the queries?

Title: ADB content query - Browser


问:
Android 8 encrypt phone vs SD card
I have Android 8.1 on my phone.
It states under Settings->Security->Encryption&cred = Phone Encrypted.

I am using microSD on my phone. This microSD is not encrypted as I am able to remove it and read it.

Does Android 8.1 have capability to encrypt microSD card?
If so, where would I find this option? Do all phone manufactures implement this option?

Title: Android 8 encrypt phone vs SD card


问:
Stop news from trying to put me in a political echo chamber?
I like to tell google to "play the news" for me during long road trips.  However, I noticed it's giving me news which has a clear lean towards one side of the political spectrum.  While I admittedly do lean slightly towards that side I want to hear unbiased news which makes strong arguments for both sides' political views so I can make well informed decisions, not sit in an an echo chamber that says one side is always right and I shouldn't bother considering the other side's views.

I've manually blocked the 3 major networks that have a clear political lean, and I'm trying to block other news providers when I hear reporting with a clear bias, but since I'm usually in the middle of a long drive when it happens I can't block the provider right then, and by the time I've stopped and could block someone I usually no longer know who it was I wanted to block.

Is there some easier way to keep google from trying to give me politically biased news other then trying to manually block every single biased news provider, which I suspect would take forever?  Failing that is there at least a way I can block the current news provider, if I've decided their reporting is too biased, via voice commands while driving?


问:
Is it possible to keep the user data with a smartphone that boots to the data wipe menu?
My smartphone turns on without passing the OS loading screen, then loads the recovery menu (Redmi-Recovery 3.0). I can't turn off the device, I tried waiting for the battery to run off, charge it and turn it on again, it still can't boot properly. In fact, it won't stay turned off even when the charger is first inserted after the battery has been depleted.

The phone is a Xiaomi Redmi Note 9, OS is MIUI (not sure which version), the menu items are: system reboot (reboots and gets back to this screen), connect to PC with the Mi Assistant (I tried to use the Mi PC Suite, but the device isn't detected, I guess because USB debugging is off on the device), wipe memory (I guess this wipes the system partition along with all the files).

I think my only option is is to wipe everything and hope that it will then boot properly. I was wondering if there is a way to only "restore" the operating system, without touching the user's data (I think I've seen something of this sort both on Linux ans Windows before).

I am also concerned about the phone not staying turned off (I am a bit scared the battery controller is gone for some reason).

Since I have a backup phone that I can use I'm planning of waiting on this question for a week or so and see of something comes up.


问:
Wipe personal data from android mobile without rooting
I apologize If placing a already answered questions. But I am novice and have tried finding answers to no avail.

I got a Moto G3 (2015) from a friend and I want to erase all his personal data to the extent of unrecoverable to ensure protection of his privacy.

I can root it using TWRP, Supersu, Magisk as I found on many websites/ forums. But I have following question/ agitation in my mind.

Rooting will left me not able to run some app like bank apps as they do not run on rooted mobile.

Will I be able to factory reset my mobile after rooting mobile using custom recovery image i.e.  TWRP, Supersu, Magisk .

Will these files be safe.

So to get rid of all these problems I do not want to root my device at all.
4. can I wipe/ erase all personal data securely with multi pass using a an open source app/ adb from internal memory.
5. does Android store log files and temp files as in Linux in /var/log/. How can I erase them without rooting.
6. If I am wrong and I can root my device without any problem. Please advice me.

The answer to question suggested by Irfan is not specific to my question. Through it is a good post for common knowledge but did not tell How to to a novice.

Thank You.


问:
Data gone after adding a new SD card and formatting as internal storage
I've just added a Samsung EVO 128GB MicroSD card to a Fairphone3 and formatted it to "internal storage"

After that WhatsApp is not able to find media any more and pictures located in "DCIM" seem to be vanished.

However when I inspect the storage devices in the Android settings it looks like a lot of the space of the SD card - as well as the internal storage are in use.

Stragely Android reports the SD card to be 256GB instead of 128 - while gparted tells me the correct size.

Is there any way to find out where my data has gone?


问:
How to restore TWRP backup when in boot loop?

Problem

My phone is stuck in boot loop after suffering water damage. It only reaches the boot loop when I'm charging, otherwise it does not react at all. Edit: I took the battery out and let it and the phone air dry for several days, I don't think there is any moisture left.

Device Info

My phone is a Galaxy S5 Plus/kccat6/SM-G901F and runs lineageos. TWRP is installed. Edit: I have a more or less recent backup saved on my desktop computer.

Backup Info

As per the comments, here are the names of my backup files:

```<code>total 4.2G
-rwxr----- 1 nonthevisor nonthevisor   13M Feb 11  2020 boot.emmc.win
-rwxr----- 1 nonthevisor nonthevisor    80 Feb 11  2020 boot.emmc.win.sha2
-rwxr----- 1 nonthevisor nonthevisor  1.6G Feb 11  2020 data.ext4.win000
-rwxr----- 1 nonthevisor nonthevisor    83 Feb 11  2020 data.ext4.win000.sha2
-rwxr----- 1 nonthevisor nonthevisor  909M Feb 11  2020 data.ext4.win001
-rwxr----- 1 nonthevisor nonthevisor    83 Feb 11  2020 data.ext4.win001.sha2
-rwxr----- 1 nonthevisor nonthevisor    66 Feb 11  2020 data.info
-rwxr----- 1 nonthevisor nonthevisor  711M Feb 11  2020 external_sd.f2fs.win
-rwxr----- 1 nonthevisor nonthevisor    64 Feb 11  2020 external_sd.info
-rwxr----- 1 nonthevisor nonthevisor   15M Feb 11  2020 recovery.emmc.win
-rwxr----- 1 nonthevisor nonthevisor    84 Feb 11  2020 recovery.emmc.win.sha2
-rwxr----- 1 nonthevisor nonthevisor  4.1M Feb 11  2020 recovery.log
-rwxr----- 1 nonthevisor nonthevisor 1014M Feb 11  2020 system.ext4.win
-rwxr----- 1 nonthevisor nonthevisor    82 Feb 11  2020 system.ext4.win.sha2
-rwxr----- 1 nonthevisor nonthevisor    65 Feb 11  2020 system.info
</code>```

What I tried

Here are the things I tried, in the order I tried them. After each attempt, I tried to reboot, the error is still there.

Restore backup from device

boot to recovery mode

select restore

notice that there are no backup files found on the device

Restore backup from pc

boot to recovery mode

connect to pc

try to mount USB-OTP

"unable to mount"

Flash new lineageos image via heimdall

confirm heimdall is running by typing heimdall version

boot phone to download mode

type heimdal print-pit to check if device is found

ERROR: Failed to detect compatible download-mode device.

Install lineageos from recovery via adb

boot phone to recovery mode

select sideload

on host, type adb sideload lineage-16.0-20201022-nightly-kccat6-signed.zip

error: no devices/emulators found

I've read this thread, but since I'm stuck in boot loop I cannot enable USB debugging on the device.

Factory reset

recovery mode

select wipe

wipe

reboot

still boot loop

However, it doesn't ask me for my decryption pattern anymore, so the reset must have been at least partly successful.


问:
Best adb command and system tweaks for non rooted phone to get closer to rooted experience
As I always owned rooted phones I find frustrating living with all the limitations of non-rooted phones.

I would like to list here all the adb commands you can issue and system settings you can tweak to get your non-rooted phone experience closer to a rooted one. In a way decreasing "security" when connected to a PC.

Especially targeting Android 10+

Of course we all know everything starts enabling Developer Options and USB Debug

I can execute some pm disable package or pm uninstall package to get rid of some bloat system apps.

Then I can do some setting put global parameter n to tweak some system settings.
I.E. setting put global dropbox_max_files 9 limits the number of files in /data/system/dropbox directory (unaccessible) to 9 instead of hundreds (if not thousands).
Dropbox app not installed, but there is log activity in /data/system/dropbox

Finally there's pm grant com.package.name android.permission.WRITE_SECURE_SETTINGS to play with...


问:
Interact with notification action from ADB Shell
I have an Android(7) phone [also fine if you can provide a solution for Android 10] and a Linux pc. By enabling USB debugging and using the terminal of my pc, I am able to read the notifications of my phone using the command: adb shell dumpsys notification --noredact

Now, there are some notifications in android in which we can interact with the app directly from the notification. For example, in a Whatsapp notification, there are usually two buttons: Reply & Mark as read. In YouTube, there are options like Play, Turn off, Watch later. In the output of the above command, these options are visible in the following form:

```<code>actions={
        [0] "Reply" -> PendingIntent{6becf48: PendingIntentRecord{87b8050 com.whatsapp startService (whitelist: +30s0ms)}}
        [1] "Mark as read" -> PendingIntent{c1661e1: PendingIntentRecord{b8e3249 com.whatsapp startService (whitelist: +30s0ms)}}
      }
</code>```

I have two questions:

Can we interact with these options from adb shell? For example, is there any command like adb shell <SOME COMMAND> 'Message to be sent in whatsapp with reply option' which will send the text as a reply in whatsapp without opening the app?

Is it possible to swipe the notifications using any adb command? (Not the adb shell input swipe x0 y0 x1 y1, it requires to unlock the phone each time)

Thank you in advance!

Edit:

Here is what I found that may be relevant to this question.

I think that I have to somehow launch the specific intent linked to the mentioned PendingIntent id (in this case 6becf48 or 87b8050)

Using tthe command adb shell dumpsys activity intents > output.txt and then searching for 87b8050 in output.txt, I found the name of the intent. It was as follows:

```<code>  * PendingIntentRecord{87b8050 com.whatsapp startService (whitelist: +30s0ms)}
    uid=10104 packageName=com.whatsapp type=startService flags=0x0
    requestIntent=act=com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE dat=content://com.whatsapp.provider.contact/contacts/2256 cmp=com.whatsapp/.notification.DirectReplyService (has extras)
    whitelistDuration=+30s0ms
</code>```

Now I think that it may be possible to launch the intent com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE using adb shell am command, and passing the intent id and message as some parameters.

(Just like we can launch Whatsapp from adb with am command, it should be possible to launch the pendingIntent also.)

Edit 2:

Using this command:

```<code>adb shell am startservice -a com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE -d content://com.whatsapp.provider.contact/contacts/2256 -n com.whatsapp/.notification.DirectReplyService --es 'com.whatsapp.Intent.EXTRA_TEXT' 'Hi. Okay.'
</code>```

The output was following:

```<code>Starting service: Intent { act=com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE dat=content://com.whatsapp.provider.contact/contacts/2256 cmp=com.whatsapp/.notification.DirectReplyService (has extras) }
Error: Requires permission not exported from uid 10104

</code>```


问:
How to log requests to Google play services
Sometimes my battery usage gives me a very high percentage  (e.g. 45%) for Google Play Services.  Is there a way to log the name of the app that may be causing this problem.  Please note that I am not looking for a way to clear the play services heavy usage - I just want to know which app may be causing the problem.

Android version: 9

Google Play services version: 20.39.15

Thank you.


问:
Is it possible to install Android Go Edition in Xiaomi Redmi 2 pro?
I have an old Xiaomi Redmi 2 pro from 2015.

This phone has Android 5.1.1 installed, 16MB capacity and even with a fresh install there's only about 2GB left. I read Android Go is lighter and leaves more space available.

How to install this in this phone? any suggestions?

Thanks a lot.


问:
How to keep running Android tablet with dead battery
I‘m using Android Galaxy View tablet as photo-frame, integrated in the wall with AC adapter connected constantly 24/7. The problem is the battery inside tabled dies each year. And when the battery is broken the tablet switches off automatically, regardless of AC adaptor connected.
I tried to replace the battery last 4 years. Replaced 4 batteries already. But currently I cannot find any batteries for this device anymore. The tablet is not in production for many years already.
My question: is there way to avoid switching tablet off while it connected to AC with broken battery?
I‘m able to switch tablet on with power button. But it works this way - just several hours. Then it unexpectedly switching off. Looks like Android monitors the battery and shut downs the system if battery is 0%?. Can I disable this monitoring somehow?
Another question: can I change shutdown to reboot? The point is power button is hidden under glass frame covered the tablet. And it is not easy to press it when i need to switch the device on.</p>


问:
How can I export audio recording files with bookmarks from samsung voice recorder app?
I have a Samsung S8+ phone. I use the voice recorder app a lot and I also add several bookmarks to each file. Now, my phone is out of storage space and I need to backup my old recorded files to a computer. Although I know how to find the m4a files in my phone storage, I cannot find the corresponding bookmarks for each file.

So, my question is:

where can I find these bookmarks in my phone storage? If it is embedded in m4a files, how can I see them on my windows PC?

if it is only seeable in the same app, does it mean that if I move the files into my computer, I can access the file and its bookmarks whenever I move a copy of it to the recorder app to my phone?


问:
Changing the emailid associated with your android account
My android phone is LG W10 Alpha LMX210LMW running Android 9. I have a particular email account associated with the phone say emailid1@gmail.com - I don't use that email id at all - it's solely for the phone. I wish to delete this emailid permanently. But then it would be a problem for my phone.

I tried this to change the id - but like it says it's not usually allowed for gmail ids.

So is there a way I can backup the phone related info (like phone contacts, apps installed & other stuff) & delete the account & reconfigure it with a new gmail id - say emaild2@gmail.com

Is there a simple way to do this?


问:
Ship android device with pre installed app from Google Play
We develop an Android app that is meant to run on tablets in restaurant environments. We use standard Samsung Galaxy tablets that we ship to our customers with some custom settings:

Pre-install our app

Change background image

To install the app from Google Play, we have to create a Google Account for them. This process is today very manual and requires us to go through the Google Account signup process for each device. We often get rate-limited and Google keep blocking our mobile phone numbers for account activation. So this is a big issue for us.

How can we solve this? To retain a good user experience, we have to install the app on the tablet before shipping it. Changing the background image is something we could live without. We are developers and can definitely do whatever we need.

OwnerDisplayName: AlexanderNajafi


问:
How can I access the usb of my device from inside a Lil'Debi chroot?
I am attempting to run adb from a Lil'Debi chroot enviroment. Unfortunately, I keep getting no devices in attached device list. The enviroment created by Lil'Debi links some system folders but does not    link /dev; I expect because Android /dev and Linux /dev are not fully compatible. I'm not even sure if this is a requirement for accessing the usb but I have read that since Lil'Debi chroot runs with full root priveleges that I am supposed to be able to access all the devices.</p>


问:
full storage: internal storage counts external images
Android claims storage space is running out. Settings > Storage shows that Photos & videos take up 2 GB. See screenshot:

However, I moved almost all camera photos to an external sd card. When I click on the last item, I get the message: couldn't find item, as shown in the screenshot.
It seems that the storage calculator counts the images moved to the external drive.
How can I fix this?

This is a Moto G5 with Android 8.1.0.


问:
suggestion for a stable Chromecasting app?
as above.

I'm using a Galaxy S9+ running Android 10 with a recent security patch.

I have some videos (h.265 AMD VCE encoded using handbrake) that I can cast with no issues when using VLC on the desktop (Windows 10/macOS). The laptops are around 10-15 feet away with wooden walls in-between itself and the router.

I tried casting (6-7 feet away from the router with no walls in-between) with these 3 apps and it's very unstable (video freeze, completely stops and other random issues)

MX Player Pro

VLC

Google Photos
Thank you.


问:
“OEM Unlock” unlockable
I've a very dramatic problem. I don't know how it could happen but sice a week the internal storage of my Cubot X20 Pro with android 9 is in "read only" mode. That's mean that I couldn't reset (anytime I tried, after restart, I found all like a week ago) or do something else. I spending last week looking and searching on web for a solution. I tried every guide. But nothing. The problem is that I can't switch on OEM unlock.

Without this all command on fastboot or adb will fail because the system is read only. Is a snake that eat his tail. So the question: there's a saint thatknow a program or procedure that surely work toescape that enpasse? Please I'm desperade, the phone has only 2 months of life and I can't take it on a assistance cause i've bank app and all accounts visible.

Title: “OEM Unlock” unlockable


问:
How to exclude an app from Force Dark Mode?
So Basically I want to exclude only one app (Ratio launcher if it matters) and found no apparent way to do it easily. Closest I got while searching, I came across DarQ. It allows to apply dark mode to specific apps. But the problems with this are as:

I do not want to include app as there are 250+ apps on my phone
(don't ask me what do I do with them cause even I don't know ha!) so
just ticking all of them does not seem feasible as I want it all
over the place and not on specific app only. There is no way to
backup app list as well so not just a one time hussle.

It needs to plug in my phone to PC and run their script everytime I
restart my phone.

Even when I do not restart my phone but leave it alone for a while
on battery saver mode and open an app, dark mode is gone again. Open
DarQ only to find out it needs me to run that script again.

Installing a new app does not add it to the list automatically so I
have to start all over everytime I install a new app or uninstall
and reinstall an existing app.

So obviously far from ideal. But even if it did work flawlessly, it would be a more feasible solution for me to have exclude dark mode functionality then include dark mode one. Would be so much better if it were just builtin to the system's Force Dark mode.

P.S. My phone isn't rooted. Any suggestion which might better situation even a bit might be good as well.


问:
How much security does Android encryption provide for turned on devices?
In case my device is stolen it probably will be turned on. How secure are my data when this happens with Android 10 and file based encryption (https://source.android.com/security/encryption/file-based?hl=en)?</p>


问:
kindle not connecting to wi-fi
Whenever I am trying to connect my kindle to wi-fi it shows no internet found. Once my kindle got discharged to 0. So is that the reason why my kindle is not able to find any internet. If no, then why my kindle is not able to find any internet? And if yes, then what should I do so that it finds wi-fi again.</p>

Title: kindle not connecting to wi-fi


问:
Wifi works only on safe mode on pixel 3XL
I'm an happy owner of the Google Pixel 3XL. It's been working like a charm for ages, but since a few weeks, the WiFi & Bluetooth started to fail after a few hours for system uptime.

I first thought about an hardware issue, but both the WiFi & Bluetooth works in Safe mode. Is there anything I can do to fix this without making a full reset of the device?


问:
Is there a way to change the lockscreen message/owner's info using ADB?
My Realme 7 Pro doesn't support lockscreen messages for some reason but I was wondering if I could change my lockscreen message because when I first got my phone I backed it up immediately (Google Backup I think...) and my old cringey quote was on the lockscreen (it was horrible) and I couldn't remove it. Does anyone know what ADB command I need to type to replace my old quote? If you know other ways to replace it without root I will gladly accept it.


问:
How to enable/start "Android Debug Bridge" (adb) from a shell?
I have a root shell, on an Android device's UART.

There is no screen, only a serial console.

How can I enable/start "Android Debug Bridge", so that I can use adb?

(Neither of the answers on: https://stackoverflow.com/questions/47510232/is-there-any-adb-command-to-enable-developer-options work for me.)


问:
Can I prevent notifications from being forwarded to my watch during Do Not Disturb?
I have a Pixel 3 phone running Android 11, paired with a Garmin Venu watch. The Pixel can forward notifications to my watch via Bluetooth, with per-app notification controls specified in the Garmin connect app. I've noticed that whenever I set my phone on Do Not Disturb, I still get notifications forwarded to my watch. Is there a way on the phone to prevent notifications from being forwarded to my watch while in DND?</p>


问:
How can I remove the default wallpaper of a custom ROM?
Each time in my AOSP custom ROM, I change the default wallpaper for home and lock screen into another one, they get reset after a reboot. How can I remove these wallpapers from the system, so they can't come back?

Here is my ROM info:


问:
Hexedit libmmcamera2_isp_modules.so to fix camera daemon crash
I'm trying to get the camera working for the LG G4 (msm8992) in Android 10 (for almost a year now.

Can someone help me hexediting the camera blob (system/vendor/lib/libmmcamera2_isp_modules.so).
This blob seems to be a common cause of camera crashes:
https://github.com/search?q=%22libmmcamera2_isp_modules.so%22&type=Commits

I dont know what to look for to modify in the blob. I would like some guidance on what to look for once hexediting and debugging to find why the lib is causing the camera to fail..

Here is my log of the crashes during the startup of the camera app: https://github.com/aoleary/g4_issues/blob/main/Camera%20startup%20error

And the two tombstones :
https://github.com/aoleary/g4_issues/blob/main/tombstone_00
https://github.com/aoleary/g4_issues/blob/main/tombstone_01

These are the device trees :
https://github.com/aoleary/device_lge_g4-common/commits/q_cam
https://github.com/Suicide-Squirrel/Titan-Kernel-LG-G4/tree/staging/android-10.0
https://github.com/Suicide-Squirrel/proprietary_vendor_lge/tree/android-10.0


问:
Replacing headphone jack in Motorola Moto Z2 Play
I'd like to know, if it is possible to replace malfunctioning (actually: dead) headphone jack in Motorola Moto Z2 Play? I would like to do this in an repair shop (not myself), if this is possible at all.

I mean "possible" in terms of hardware. If it isn't for example an irreplaceable part of mainboard or if something else does not make such repair impossible or too expensive.

If this isn't possible or would be too expensive, what other options do I have? Is purchasing and using any microUSB-to-jack adapter the only option?

The only, of course, next to replacing the whole phone. But since audio-jack is the only problem in otherwise working and useful phone then I'd like to avoid this option as much as possible.


问:
Cannot root Acer Iconia A500 running on Android 4.0.3
I have an Acer Iconia A500 here that is supposed to be rootable. But I tried and tried. But nothing made the job.

I tried using ADB and Fastboot, but it said to me that it can't run the command because it's locked. Then I tried to use

```<code>fastboot oem unlock
</code>```

but then it said (cmd):

```<code>... OKAY [0.166s] finished. total time: 0.167s
</code>```

then I reboot into bootloader again and then (cmd):

```<code>sending 'recovery' (5360 KB)...
FAILED (remote: (00000002))
finished. total time: 0.176s
</code>```

and then in the tablet:

```<code>Bootloader v0.03.12-ICS: Starting Fastboot USB download protocol
Fastboot: Not support the command in Lock mode
Failed to process command download:0053c000 error(0x2)
</code>```

even though I already unlocked the device

Does somebody know what's happening here? The third thing I tried was ICS_rooting, with no success. I'm running Android 4.0.3 if that helps any.

PS: I also tried to use GingerBreak, but GingerBreak is for Ginger, and I have Ice Cream Sandwich, as this is one of the last ones that Acer sold.

OwnerDisplayName: Aarón García Egea


问:
Accessing NFS share
I'm trying to develop a very basic NFS Android client. I don't need to actually mount the NFS share, just list, read, and write files.

I can't seem to find any NFS-related APIs in the Android API reference, nor any Android-compatible Java-based NFS libraries.

What's the easiest way to access NFS shares programmatically in Android?

Title: Accessing NFS share


问:
On Firefox on Android, how to disable DNS over HTTPS and do normal DNS lookups via port 53?
I want Firefox on Android to be able to browse to local domain names on my LAN: http://koffiezetapparaat.lan should resolve to http://192.168.1.120 for instance.

This works on desktop Firefox, but doesn't work on Firefox on Android. I suspect that this is because of DNS over HTTPS.

What I tried:
I installed Firefox Beta on Android, went to about:config and set network.trr.mode to 5 as described here. Then, I removed all DNS cache present in Firefox on Android itself.

Then, I 'hard reloaded' http://koffiezetapparaat.lan by long pressing the reload button.

I still get a 404.

Network traffic analysis with tcpdump on my OpenWrt router showed no port 53 traffic, but a lot of port 443 traffic.

Please bear in mind that navigating to http://koffiezetapparaat on Chrome on Android works as it should, it resolves to http://192.168.1.120.

I supect that Firefox on Android still uses DNS over HTTPS and want to know a definitive way of disabling that.

OwnerDisplayName: Exeleration-G


问:
Why can't I browse to my desktop using its .local hostname?
I have a PC whose name is "mypc". It's accessible on the local network.

https://mypc.local correctly displays its website when browsed from Mac, iOS, and itself.

However, using my Pixel 3 with Android 11, browsing to https://mypc.local says “This site can’t be reached”. ERR_NAME_NOT_RESOLVED.

Interestingly, if I remove the ".local" and try browsing just to https://mypc, the browser finds the host correctly. It says "Your connection is not private" and ERR_CERT_AUTHORITY_INVALID (which just means my self-signed certificate isn't configured to expect "mypc" because it expects "mypc.local").

I've tried Brave Private, DuckDuckGo, and Chrome.

How can I fix my Android devices to correctly use the .local hostname?

P.S. I've seen the following questions, but those answers don't apply to my case since my network router is correctly mapping mypc.local to the specific IP of that PC. Additionally, even Android is aware of how to resolve "mypc" to the correct IP, so I'm curious how to get it to treat "mypc.local" the same way.

Accessing local computer using hostname

How to ping a local network host by hostname?

P.P.S. I also just tried from an old Nexus 7 with Android 5.1.1. The results are basically the same as with Android 11. https://mypc.local/ does not work and says DNS_PROBE_FINISHED_NXDOMAIN. https://mypc finds the host correctly but says NET:ERR_CERT_AUTHORITY_INVALID.


问:
Audio files not deleting?
Apologies if this has been answered, I attempted to search for answers and found nothing for my specific issue.

I've got several music files I'm trying to delete from my device (motorola e5 cruise, if this helps any) and while they stay deleted for around a day or so, they always come back fully. I can't get rid of them, and they take up a lot of space.

It's worth noting this device has given me grief as far as deletions before; it automatically deletes images after a day if I move them to a different folder, and I didn't notice until I would look for something important and find it gone. It's extremely frustrating, and I would appreciate any help I can get for these issues, but primarily the music files if you can. Thank you very much!

Title: Audio files not deleting?