问:
Connect PC with USB modem to device on WiFi hotspot
I am trying to connect my Oculus Quest 2, which is connected to my phone's WiFi hotspot, to a PC, which is connected to the same phone using USB tethering (USB modem). What I found out was that they get assigned different subnetworks, the one on the WiFi hotspot gets 192.168.43.x, while PC gets 192.168.42.x. They also get different gateways and DNS servers.

Now, I've found this answer right here (Packet forwarding between USB Tethering and Wifi on Android), which shares similar problem to mine, except the device is rooted. I am really not sure if this is the dealbreaker, so I'm asking general directions. Is there a way to do it without root?


问:
Background ble scan in one plus
We are trying to build an app which scan nearby Bluetooth devices and shows on the UI, we also have event listener which detects whenever location or bluetooth state is changed and accordingly we start the Bluetooth scan, we also make sure no more then 5 bleScan happens within 30 seconds.

Now heres the problem,
This app works fine for phones like Nokia, Asus etc, but for one plus what we have noticed is, whenever we are in background, and we disabled and enabled bluetooth, it dosent start the scan(in the code it reaching but no errors are been thrown) nor it throws error in onScanFailed callback, we didnt see this behavior in other phone

so it dosnet work if the setting is the following

but if we make the location "Allow all the time" , then it works perfectly

My question is who is doing it properly one plus or other phones? Am i missing some additional settings for one plus. please help

ContentLicense: CC BY-SA 4.0

Title: Background ble scan in one plus


问:
when i enter my android into download mode, it restarts like after 5 seconds. is this normal?
Brand: Oppo A92
Model: CPH2059
I tried installing a USB driver and it didn't work.
I hope you can help me with this, thanks


问:
USB ethernet goes to sleep, has to be reconnected to restore
I have an old Nexus 7 tablet running LineageOS that still works but has poor battery life. I've set it up in a fixed location with AC power instead. Its location has poor wifi so I've added a UGreen micro-USB 100Mb ethernet adapter, which also provides power. It does work correctly when first plugged in, so the device is supported by Android - it gets an IP address and communicates without wifi.

Shortly after the screen goes to sleep, the NIC goes down. I assume this is some sort of power-saving mode. However, it doesn't come back up when the tablet is woken. It has to be unplugged and plugged back in to work. Is there a setting I can change that will leave the NIC enabled at all times? Or at least resume the ethernet connection when it wakes up.

Android version: 7.1.2

LineageOS version: 14.1


问:
Unlocking device without virtual keyboard?
I have just uninstalled Gboard from my device, using adb shell. However, unfortunately it seems my device cannot use OpenBoard, the virtual keyboard which I installed from F-Droid, from the lockscreen, and thus I cannot enter my passhphrase in order to unlock my device.

I already have USB debugging enabled and I can see my device connected. However, it seems that in its current state, being locked, it has either 'insufficient permissions' or if I run adb start-server as root then it's 'unauthorized' and thus I am unable to enter adb shell and interact with the device.

Is there anyway to get around this issue, i.e, by getting access to the device via adb, or by somehow bypassing the lockscreen temporarily; or perhaps by somehow sideloading another virtual keyboard, such as AOSP keyboard, in order to use the virtual keyboard from the lockscreen and enter the passphrase as normal?

Any help is much appreciated.

P.S I am trying to avoid having to wipe/format my device clean!

Edit: If anyone knows how to unlock the bootloader, without having to manually enable it through the developer options, then I could install TWRP custom recovery and, in theory, delete the .key files pertaining to passwords, pins, etc.


问:
stuck on Bootloop twrp not installing
HI guys my phone is stuck on fastboot,
its showing the current image(boot/recovery) have been destroyed and can not boot
pressing volume + power put it into fastboot and it shows in adb "fastboot devices" i tried to install custom recovery with "fastboot boot recovery.img" and its not working picture attached and i tried to boot img but same error shows FAILD(remote: unknow command)

Title: stuck on Bootloop twrp not installing


问:
How to remove or find details about malicious "unknown" app that causes suspicious DNS requests
Using RethinkDNS firewall, I observe suspicious requests for the router IP 192.168.2.1 that is labelled by RethinkDNS as comming from an "Unknown" app (whereas RethinkDNS displays the proper app for all other non-suspicious requests).

After blocking requests by the "Unknown" app, this app massively tries to connect to various IPs.

Is it correct to assume from this observations, that there is malware on my phone? If no, what else could I do to become sure about it? If yes, how to remove it?

Please excuse, that this question is possibly broad, I am egaer to learn, but I found no systematic information on how to do tackle this problem.

I am on a Google-Service free LineAgeOS with an old Android version 7.1.2 (due to their drop of support for my device Xiaomi Redmi Note 3). I am very picky about apps, and so far I have only installed OSS apps from FDroid-Repositories, but if there is a good recommendation I would also use Google store apps to solve this problem.


问:
Chrome app returns after restart
I have a rooted OnePlus 5t, I'm trying to remove the Chrome app (same problem with Google Duo), using a system app remover, or through Total Commander delete it from its folder. As soon as I do that the app stops working, and after rebooting it always goes back to the folder: system \ product \ app \ Chrome \ Chrome.apk

If I'm typing in adb: pm uninstall -k --user 0 com.android.chrome and delete the Chrome.apk with Total Commander - the app is removed from my device even after reboot! but the installation apk still coming back after the reboot!!!!
When I'm installing the app from the Chrome.apk the apk path know is: \data\app\com.android.chorme-zqnclvqlfjlosvpkkista==\base.apk

I googled and found no answer

Title: Chrome app returns after restart


问:
Stuck entering Recovery mode plus Power and Home Button not working
My phone is Samsung Galaxy J Max Tab (SM-T285YD). My phone's power and home buttons are not working. Now somehow i entered into recovery mode. But while entering it got stuck. What should i do now. It is stuck in this stage.


问:
How is the gmail sync interval determined on Android?
Today I stopped getting notifications for gmail messages received on Android. This has happened before and always seems to fix itself after a day or two, but I want to find out why. So I looked under

```<code>(Main phone settings) > Cloud and accounts > Accounts > Google
</code>```

and indeed I see all the Google apps like this

```<code>Sync Calendar (On) / Last synced on 4/27/21 07:50  [8 hours ago]
Sync Chrome (Off) / Sync turned off
...
Sync Drive (On) / Last synced on 4/25/21 10:36  [2 days ago]
Sync Gmail (On) / Last synced on 4/27/21 07:50  [8 hours ago]  <-- this must be the problem
...
</code>```

In the past, Sync Gmail would show that it last synced just a minute ago. Why did this change? How can I set it back? The only setting I can find is to turn sync off entirely, and then turn it back on. Ok, this syncs once when I do it but doesn't continue to sync. I want it to sync automatically every few minutes like it normally does.


问:
How to use different audio device for different apps?
I want to play the sound of one app through integrated phone speaker and the sound of another app through bluetooth earspeakers.

Is it possible to set different audio output devices for different apps?


问:
Show remote android emulator window in local
Hi I've configured Android development environment in a remote dedicated server running Ubuntu 20.04 with the help of the tutorial https://proandroiddev.com/how-to-setup-android-sdk-without-android-studio-6d60d0f2812a.

Installed related tools by sdkmanager --install platform-tools emulator "build-tools;30.0.3" "platforms;android-30" "extras;android;m2repository" "extras;google;m2repository" "system-images;android-30;google_apis;x86_64" "system-images;android-30;google_apis_playstore;x86_64" "patcher;v4"

Created the avd by avdmanager --verbose create avd --force --name "generic_30" --package "system-images;android-30;google_apis;x86_64" --tag "google_apis" --abi "x86_64"

I had to install apt-get install libgl1-mesa-dev libglu1-mesa-dev to run the Android Emulator.

Ran the emulator with emulator -avd generic_30 -noaudio -no-window -no-boot-anim -gpu off -screen touch and it ran with desired output.

```<code>emulator: Android emulator version 30.5.5.0 (build_id 7285888) (CL:N/A)
emulator: ERROR: FeatureControlImpl.cpp:269: Feature control already exists in create() call
handleCpuAcceleration: feature check for hvf
emulator: feeding guest with passive gps data, in headless mode
emulator: WARNING: Your AVD has been configured with an in-guest renderer, but the system image does not support guest rendering.Falling back to 'swiftshader_indirect' mode.
cannot add library /home/arnab/.android/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
added library /home/arnab/.android/emulator/lib64/vulkan/libvulkan.so
cannot add library /home/arnab/.android/emulator/lib64/vulkan/libvulkan.so.1: full
emulator: INFO: GrpcServices.cpp:301: Started GRPC server at 127.0.0.1:8554, security: Local
Your emulator is out of date, please update by launching Android Studio:
 - Start Android Studio
 - Select menu "Tools > Android > SDK Manager"
 - Click "SDK Tools" tab
 - Check "Android Emulator" checkbox
 - Click "OK"

emulator: INFO: boot completed
emulator: INFO: boot time 24232 ms
emulator: Increasing screen off timeout, logcat buffer size to 2M.
emulator: Revoking microphone permissions for Google App.
</code>```

From my Windows 10 machine created SSH tunnel with the command ssh -NL 5554:localhost:5554 -L 5555:localhost:5555 user@xx.xx.xx.xx and connected adb with adb connect 127.0.0.1:5555.

With the command I could see that the device is also connected.

```<code>Connected devices & emulators
Searching for devices...
┌───┬─────────────────────────┬──────────┬───────────────────┬────────┬───────────┬─────────────────┐
│ # │ Device Name             │ Platform │ Device Identifier │ Type   │ Status    │ Connection Type │
│ 1 │ sdk_gphone_x86_64_arm64 │ Android  │ 127.0.0.1:5555    │ Device │ Connected │ USB             │
└───┴─────────────────────────┴──────────┴───────────────────┴────────┴───────────┴─────────────────┘
</code>```

Until this everything has worked as expected (or I think so).

Now my question is how to show the emulator window in my local Windows machine? It's possible I think. At-least this is how SauceLabs or other online mobile test suites may be working. Do you know any solutions as such for this?


问:
Cannot use LDAC for my Sony headphones
I have a Sony WH-1000XM4 headphone.

On my Android phone I have installed the Sony Headphones application.

On the upper bar of the application I see the audio is sent over to my headphones using AAC.

How can I have it send LDAC?

I have a 2018 smartphone, a Huawei Mate 20 Lite, with Android 10.

Maybe my smartphone is too old for LDAC?

Title: Cannot use LDAC for my Sony headphones


问:
Automatic app opening + power, home button not working J Max [SM-T285YD]
My device is Samsung J Max (SM-T285YD). I can go onto download mode, recovery mode. Even after restart power button also working. But after sometimes suddenly it opens chrome, google automatically. Even when i am starting an application it is coming back to home automatically. I am not touching anything. During this time power and home buttons are not working. Even after factory reset the problem remains same. I wiped all files even the os and installed the firmware in the morning. The whole day it was fine. Now at night it is showing the same problem. What should i do ?


问:
Bluetooth headphone volume buttons make big steps
When I change music volume using the volume buttons on my bluetooth headphones, each click moves the volume 2 or 3 volume steps (compared to when I change volume using the volume buttons on my phone itself). This often means that it jumps right from too loud to too quiet, so I have to dig out my phone to get the volume to a comfortable level.

I've already tried Developer Options > Disable absolute volume, which didn't seem to make any difference. I'm using a Pixel 2 (stock Android 11) with Soundcore Life Q20 headphones.


问:
Opening docx files in Google Drive viewer when other apps capture intent
I'd like to open docx files directly into Google Drive viewer.

When another application like Epson iPrint or Termux is installed, I don't have other choice than those apps. When they're not installed, it opens in Google Drive viewer like a charm.

I think it is related with intent-filters.

When examining manifest files :

Termux has a VIEW intent-fiter on application/*.

Epson iPrint has a VIEW intent-fiter on application/vnd.openxmlformats-officedocument.wordprocessingml.document (and others) which is the mime type of docx document.

Google Drive has a VIEW intent-filter on */* so should be able to open anything.

Is there a workaround for this problem ? (appart from uninstalling other apps of course)

Is this a bug or on purpose (thanks in advance to android devs here) ?

I already tried "Open with" type apps with no chances...


问:
Why can I receive a 7mb video text but it is too large to forward?
Problem: I have an A51 Samsung. I can't forward a text video that was attached and text to me from another A51 (my wife's).

What I tried: I tried saving smaller since I cannot trim it.

It just doesn't make sense to me that my wife can attach and text me a 7 MB video but I can't do the same, having the same identical phone.


问:
Cannot Set Up Samsung Default Email and Add CenturyLink.net Account
Samsung Galaxy S9 phone

Until recently I could send/receive emails on my phone with the Samsung default email app with an email address at centurylink.net.

I had a problem with my centurylink.net email and a Samsung support person told me to go into the Mail app and Delete Data, and then I would just have to log in again.  However, I have not been able to Set Up Email and Add Account.

I get “Couldn’t verify account
The username or password is incorrect or POP3/IMAP access isn’t turned on for this account.  Check your email account setting on the web, then try again.”

I have confirmed that I have entered my full email address and password correctly (Show password).  I can log onto centurylink.net with them on my phone with a browser.

Samsung support says talk to my email provider and Centurylink support says to talk to Samsung.  I have gone through this loop 3 times, but still have the problem.

I have also searched online for a solution, but found none.

I am using these parameters, as Centurylink says to use at
https://www.centurylink.com/home/help/internet/email/setup-email-on-android-device.html

Domains centurylink.net

Incoming Server (choose one)    POP: pop.centurylink.net, Port: 995, Security: SSL

Outgoing Server SMTP: smtp.centurylink.net, Port 587 TLS

Username    Full Email Address


问:
mount multiple ext4 partitions manually
I have rooted android phone running android 10. I have one ext4 partition created using :

```<code>  #  dd if=/dev/zero of=/sdcard/ext1.img bs=1M count=1024
  #  mkfs.ext4 -F /sdcard/ext1.img
</code>```

which I mount using below commands:

```<code>  #  mknod    /dev/block/loop52  b 7 0
  #  losetup  /dev/block/loop52  /sdcard/ext1.img
  #  mkdir /mnt/ext
  #  mount -t ext4 -o rw,noatime  /dev/block/loop52  /mnt/ext
</code>```

ext1.img file gets mounted successfully but when I create another ext4 file and try to mount in /mnt/ext2 using following commands. It gets mounted but the contents of ext1.img are shown in /mnt/ext2.

```<code>  #  mknod    /dev/block/loop62  b 7 0
  #  losetup  /dev/block/loop62  /sdcard/ext2.img
  #  mkdir /mnt/ext2
  #  mount -t ext4 -o rw,noatime  /dev/block/loop62  /mnt/ext2
</code>```

What changes do I need to make to mount multiple ext4 files in android ?

Title: mount multiple ext4 partitions manually


问:
Meomo's path data
My phone has problem and I get the following error for many programs:

Now, I want to refactor my Android, But I need to save my Memo's information.

 Where are my Memo's information?

UPDATE:

I think my data exists on my disk, Because when I open my memos, I see the following data:

I found ShareMemo directory, But it doesn't contain of my information.

Title: Meomo's path data


问:
Can't verify SHA256 fingerprint using apksigner
Just wondering if anyone can help me with the apksigner command line tool. I have just installed 'android-sdk-build-tools r30.0.3-4' on my linux machine and have subsequently tried to run the command 'apksigner verify <appname.apk>' as demonstrated on the following page, under the examples section, https://developer.android.com/studio/command-line/apksigner#usage-verify.

However, when doing so, I get the following output:

/usr/bin/apksigner: line 97: exec: java: not found

Am I missing a specific java package or something? I already have js78 and nodejs installed and updated.

Any help much appreciated :)


问:
GPT repair on EDL Mode deleted all partitions and bricked the phone
How could I repair broken GPT on bricked Android?

GPT eMMC disk is not detected by the computer. In other words, the GPT disk is not detected normally because all its partitions have been deleted.

How to detect emmc-utils in EDL Mode? How do I fix GPT disk in EDL Mode?


问:
MTP unlocked by default - How to lock it?
I have a Samsung j730f and currently I am using a custom ROM and if I plug my phone into a computer (even with the screen locked), I can access to my data.

Please help me: how can I lock the MTP?


问:
Looking for Android 7 stock ROM Moto G5S plus XT1804
I want to flash the official stock ROM that came with my Moto G5S plus phone XT1804 i.e. India build. I searched but so far could only find the Android 8 ROM.

Why am I looking for this? I updated my phone to Android 8.1 December 2018 update. After that VoLTE stopped working. I can access the internet, send SMSes but can't make or receive calls. The VoLTE provisioned option in Phone Information is greyed out. I think that if I downgrade to nougat I may be able to get back my VoLTE. I have flashed other roms, including custom roms, too but no luck so far.


问:
Root Android with no apps
I want to root my Android 11 on Samsung A72 without using any third part app. Is their a way?

I cannot find anything on google on duckduckgo that mentions a terminal or a manual root.

OwnerDisplayName: Omar Shawky

Title: Root Android with no apps


问:
How to kill Whatsapp process without it resurrecting after a time?
On my Xiaomi Mi A1 if I go to Apps & notifications > WhatsApp and tap "force stop", the app seems to stop. But hours later, WhatsApp is strangely on again and I start receiving messages.

If there is a way to safely kill the process associated with WhatsApp so the app does not start again, what is it?


问:
Which "app" is responsible for "open with"
Which (app / piece of software) that is responsible for this function?

The dialogue box that asks for which app to use.

    - complete action using:

    - choose an app:

    - open with:

Is it a package?
Can I disable it?

I know there is "open by default" and "app preferences"
Where you can set the default app to open automatically for some files, links, etc.

But sometimes the dialogue doesn't show up for certain actions. Like trying to upload a file on a specific browser doesn't prompt the dialogue but instead goes automatically to camera. Which is super weird.

Would appreciate any thread of info.

Edit:

Screenshot

"uploading file to Microsoft form using Google Chrome"


问:
Redmi 4 just switched off
I have redmi 4 which was working fine. But it is now switched off. When tried to switch on it shows mi logo then android logo and again switch off. It is bootloader is locked, non rooted and usb debugging not enabled. So not able to connect via adb to computer. But only able to reach fastboot and recovery. And when conneted to computer via usb and fastboot via command prompt detects and shows the serial number. I'm tring to do something in short. Otherwise flashing twrp and then os again is long route; tried but in vain. As well as tried some YouTube,Google,Chinese Mi software too. Any help is appreciated.</p>

Title: Redmi 4 just switched off


问:
Battery drain while doze, CPU abort wakeups
I'm running Android 11, in a Moto G30.

I've noticed battery drains from 100% to 80% from 1am to 9am when I wake up. I decided to get a bugreport.zip using ADB and load it in Battery Historian.

Seems like at some point in the night, JobScheduler runs and finishes in a minute, but CPU stays on forever (even on full doze state). Reasons seem to be several Abort:Pending Wakeup Sources related to networking. At these point, battery discharge rate is ~2.5% per hour, whereas "normal" screen-off / doze rate is ~1.5%.

These are some screenshots, and here's the bugreport.zip

Here's the CPU wakeup sources list,

And here's a previous time when JobScheduler runs and CPU behaved well,


问:
Huawei Media Pad T5 AGS-W19, usb tethering missing, please help!
As per manual, there is usb tethering under settings. Followed exact instructions, but the option of "usb tethering" doesn't exist even when searched. The only option is "USB" which is currently in MTP, tried PTP, Charge only, Midi, all does not give me "usb tethering".

Developer options, turned on USB debugging, "usb tethering" still missing.

Tried restarting, factory reset, changed usb cable, changed usb ports, changed computers, updated drivers on pc, all of which did nothing to give me "usb tethering" on my tablet. I have an exact LTE version of the tablet, it has "usb tethering". The wifi version as per wifi version manual indicates there is usb tethering.

Please help?


问:
Certain apps lose all internet connectivity until reboot
I have put off asking the question for some time because I know it is vague and terrible to debug so I welcome your help refining the question as well as potential solutions.

A range of certain apps will report no internet connectivity and get stuck in that state no matter how good my WiFi and/or mobile data connection or if I force stop and/or clear their cache. So far:

facebook

instagram

onedrive

toktok

aliexpress

whatsapp (i get the clock symbol)

viber

Normally only one of these at a time, sometimes two. Never all! (so not just general connectivity issues). I ignore them for a day or two and they never recover connectivity. Chrome is never affected (yet) and I still get push notifications for said apps.

I am technical and have pondered dodgy dns but apps get in this state on and off Wi-Fi which should mean different dns servers, not just a quirk on my home network. I don't use a mobile VPN. I do have a work profile. My phone is a standard build Samsung S10 that behaved normally for over a year until recently.

Drives me mad because all advice out there is for fixing general/global connectivity as people always complain about that and turn it off and on again is a good solution for any single app getting into a funky state but this feels dumb, like the OS is caching/blocking/blacklisting something and I kinda wanna blame samsung or put on a tin hat and blame the government... yeah I am mocking myself now :)

So, any suggestions?

Ahhh! I just had two messaging apps go quitely into this offline mode. Toggle wifi, nothing. Toggle flight mode, nothing. I restart and instantly these send and retrieve messages. If i cannot relay on my phone to communicate it is useless!


问:
Emdoor EM TS809 Dead Boot - KCOLO point wanted to revive
Flashing with a bad firmware to this tablet became completely unresponsive and does not switch on. M/B marks report that is created from Emdoor and its model is EM TS809.

https://www.globalsources.com/Voice-activated-speaker/MT8167-EM-TS809_R70-1173578814p.htm#1173578814

I tried to revive it, by shorting GND and KCOLO joints and reflashing with SP Tools. Unfortunately, joints do not have descriptions so I tried every joint without voltage. None of them worked. Does anyone know if this M/B has KCOLO or just COLO/KOLO joint?


问:
Can I tweak an app's storage permission and allow it to write on the phone but deny read?
The example I'll use is with an internet browser app — let's say Opera. If I allow its storage permission, I can download files on my phone (write) but the app can read its storage as well (I verified this by hitting file:///storage/emulated/0/ in the pathbar and I could freely browse all files on my phone).

If I deny its storage permission, it can no longer access 0/ but it also cannot download files.

If the download directory is pre-determined by the user, can we force it to only write and not read, thus being able to download files, without risking leaking data from our files to the app? I'm guessing maybe through ADB or something?


问:
Htc desire 628 bootloop in recovery mode after flashing TWRP
I flashed my phone with twrp, tried to enter recovery mode through the bootloader, but now it's on endless boot, how can I fix that?

In download mode:

```<code>hTC download mode

*** UNLOCKED ***
htc_v36bml_uhl PVT S-ON
LK-1.01.0000
RADIO-UNKNOWN
OpenDSP-UNKNOWN
OS-1.16.401.1
Aug  2 2016, 19:11:15(788931)

[options here]

Detecting smart card...
Reboot to ftm mode failed due to NOT_FIND_SMART_IO
</code>```

In bootloader:

```<code>*** Software status: Modified ***
*** Unlocked ***
HTC_V36BML 128 SHIP S-ON

CID-HTC__A07
LK-1.01.0000
OS-1.16.401.1
</code>```

When i select to boot to recovery mode, appears message, which says 'This build is for development purposes only', after that's boot freezes. OEM and bootloader unlocked, USB debugging enabled


问:
Locked out of S-Color K60 Android
I recently purchased an Android phone that i sent to my mom. But my little brother put some gesture password and forgot it! My mother dont know the gesture, kid is unable to recall and starts weeping whenever asked about it. As far as i remember USB Debugging was never enabled. Below are the options i have given a try to.

Now when connected to my laptop, i am unable to detect the phone as it is in locked state (Detected but not accessible).

Tried the wipe data/factory reset option through Android system recovery <3e> menu and once rebooted, it again asks for the gesture key.

In Recovery mode, it shows apply update from ADB but unable to find TWRP recovery zip file for my device (S-Color K60)!

In Recovery mode, it shows apply update from sdcard, i tried sideloading Pattern-Password-disable.zip from xda, but it said Installing System Updates, then it said Error and later showed Installation aborted.

Tried calling from other number and click back button multiple times to get back to the same lock screen!

Tried going to Emergency call dial pad and click numbers randomly with no luck.

When connected to my laptop and run adb devices command, it shows List of devices attached but the list is Blank, however when i got to apply update from ADB on phone and try to list the devices connected, it gives a sideload menu on phone with a serial number followed by sideload on my cmd screen.

So after too much internet search i could succeed in unlocking the phone yet. Are there any other ways to unlock my phone?
Device Details:
S-Color K60 (Something i got at a cheap price tag, link below for reference only)
https://www.wins4.com/s-color?product_id=15718&page=2

Title: Locked out of S-Color K60 Android


问:
How can I create a list of files in a folder with adb, including time stamps?
I'm a new adb user and am trying to build some automation with images from my Android. I've been able to connect, 'ls' and push/pull files. What I want to do is determine the most recent file(s) in the Camera folder on the phone and pull that one. Is there a way to do this?

My command in Win 10 is "adb ls /path-to/Camera", which produces a list with some numbers preceding the filenames, e.g.

```<code>000081f9 005145e2 607f4c6e 20210420_144934.jpg
000081f9 004430cb 607f4c7c 20210420_144949.jpg
000081f9 0031701e 6080d67e 20210421_185054.jpg
000081f9 003847b0 6080e058 20210421_193256.jpg
</code>```

If I add 'shell' to that ("adb shell ls /path-to/Camera") I just get the filenames, though they're in 3 columns:

```<code>20201121_144842_HDR.jpg 20210311_155639.jpg     20210421_185054.jpg
20201121_144902.jpg     20210312_225720.jpg     20210421_193256.jpg
20201121_144911.jpg     20210312_230021.jpg     20210422_065438.jpg
</code>```

Can I save the list to an array or hash with timestamps? Or figure a way to determine the most recent files?

Thanks, Scott


问:
How to reduce the size of thumnails folder in Android?
How can I reduce/get rid of the thumbnails folder in Android that is created under DCIM>Camera. I'm aware of the fact that thumbnails are auto-generated and will be generated again even if I delete them. But the point is my device has 6 GiB worth of the thumbnails folder, I keep almost no images or videos, still, it takes up a significant chunk, I know it is to optimize the loading of images in some apps, still 6 GiB in a device which has 32 GiB storage? And the worst thing is it keeps growing, never comes down. Is there a realistic way to bring down that 6 GiB to under 2 GiB. I'm ready to repeat this process every week or so if needed, I just need some space on my device.</p>


问:
Deleted all SMS! - unrooted Android 8.0.0 - Recovery Options?
I was deleting 2 SMS messages, I did long press on the 1st until the blue tick appeared then selected the 2nd SMS. I then quickly went to the top 3 dots to select 'Delete' and the next thing I saw is blue ticks by every SMS and 'Deleting' message on the screen.
The screen refreshed and it was blank - all SMS messages deleted :-(

What are my options to recover them?
I have looked at apps like Fonedog & Dr Fone but after they connect they state root is required.

My phone details;
Model: Mi 5
Android version: 8.0.0 OPR1.170623.032
Android Security patch level: 2018-10-01
MIUI version: MIUI Global 10.2 Stable 10.2.2.0(0AAMIXM)

In Developer options:
OEM unlocking is greyed out but it says "Bootloader is already unlocked" underneath (see screenshot below)
Mi Unlock status says "Unlocked"

Phone has been left turned off.

If the bootloader is already unlocked - could I try to root the device (with low risk of data loss) then try Fonedog & Dr Fone recovery again?
When I first got the phone I tried Kingo-root and similar apps but they failed to root the device. I didn't take it any further at the time.

OR is there a way I can dump the internal memory flash (NAND?) to pc and use data recovery to find & restore my SMS?

Your help and suggestions greatly appreciated - I had some sentimental messages I would definitely like to recover. I have removed the SIM, turned off Wifi, turned on aircraft mode and phone is turned off unused.

Thank You.

Mark


问:
Samsung Galaxy S6 not connecting to Windows 10 - not even detecting the device
Can some one help me to identify the root cause of this issue? I tried almost every available solution online and nothing work around.

Installed smart switch

change 2 cables

Put on USB debugging mode change to MTP settings doesn't works

Cables only charging my phone.

Laptop: Nitro 7 (I use port 2.0 for connection that doesn't works too)


问:
Which Google service is responsible for emergency notifications?
I have an app that blocks notifications. I want to let emergency warnings through (like tornado warnings).

The services that have google in their name are:

"Files by Google" - com.google.android.apps.nbu.files

"Goggles" - com.google.android.apps.unveil

"Hangouts" - com.google.android.talk

"Home" - com.google.android.apps.chromecast.app

"Maps" - com.google.android.apps.maps

"News & Weather" com.google.andoird.apps.genie.geniewidget - Maybe this is it?

"Personal Safety" com.google.android.apps.safetyhub

"Google" - com.google.android.googlequicksearchbox

"Google Go" - com.google.android.apps.searchlite

"Google News" - com.google.android.apps.magazines

"Google Play" - com.google.android.apps.walletnfcrel

"Google Play Games" - com.google.android.play.games

"Google Play Music" - com.google.android.music

"Google Play Store" - come.android.vending

"Google TV" - com.google.android.videos

I'm using a pixel xl 2.

Also, how do I test if I have the settings correct? Is there a way to fake an emergency broadcast to myself?


问:
Mass setup of Android devices
I want to setup the same account on 300+ devices. I did that for 4 devices and I am tired.

Setting up new device includes:

manually doing all ok/next/skip choices

connecting to WiFi + installing updates

manually typing GMail + password

MOST PROBLEMATIC confirming new device by tapping two-digit number on the first device where this account was added.

Questions:

Is there some automated solution?

Is it possible to at least turn off confirmation of new device completely?

Title: Mass setup of Android devices


问:
Smasung Galaxy A51 stuck in bootloop, recognized by adb, not responding to adb commands
I have a Samsung Galaxy A51 that is stuck in a Boot-loop. Phone was originally water damaged, but worked until my Dad tried to charge it. I replaced the inside part of the phone with the USB port. When I run ADB (I have drivers) my phone shows up under ADB devices. But it does not respond to ANY ADB commands, I can't root, or push files. I also tried ODIN but I get "Odin Protocol version ERROR".
MAIN PROBLEM: phone shows up under ADB devices but does not respond to any ADB commands.
Any advice would be appreciated, thank you.</p>


问:
Slow touch/swipe response on Lenovo Tablet P11
I recently purchased Lenovo Tablet P11 and I must say it's a great tablet with one exception. The scrolling and swiping in it is not so sensitive. I noticed I need to drag my finger for one centimeter until it registers the swipe.

I tried animation settings in dev options and I turned on pointer location so I know that screen actually sees all the touches pretty well. That makes me think that it's software issue.

I was curious if anyone encountered such problem on P11 or other devices? Maybe someone knows how to improve it.

Thank you!


问:
Why are Google authentication consent screen buttons disabled on an Android 2.3 phone?
I want to use an old Galaxy Ace which runs Android 2.3 as a camera. I installed the Alfred camera app on it which requires Google login in order to connect the camera and the viewer device securely.

I can log in successfully with the Alfred app to Google, but then there is a consent screen to allow the app to access my account data and both buttons are disabled like here on this picture taken from the net.

Why is it that loggging in works, but I cannot proceed from the consent screen? How can this be fixed?


问:
I tried oneplus 8 pro with ubuntu: no lsusb/adb output
I have oneplus 8 pro connected to my ubuntu 20.04 box and installed:

vendor driver

android sdk

adb/fastboot

But different USB cables show no output in

lsusb

adb devices

fastboot devices

I have already reset usb-debugging and according authorization! I faintly remember having struggled with debugging authentication before...

What can I try next?


问:
Xiaomi Redmi 4 Malfunctioning
I have been using my Xiaomi Redmi 4(running on miui global 11.0.2, android 7.1.2) for almost 2 years now and never have I experienced such strange issues. Here's a list of some:

1)Play store: Cannot download any apps from play store. It says the app could not be downloaded, please troubleshoot. So I read the solutions, cleared cache and data from play store. I even uninstalled updates. When I tried to download or update any app, firstly the download did not start(it said downloading and never downloaded anything). Then I closed the app, cleared cache and data and opened it again(keep in mind this is the old version of play store as I uninstalled updates). This time the download started, but it reached around 13.60 mb/30mb and stopped. Then it said downloading again and restarted the download from 0 mb, reached 14.74 mb and stopped again. It kept looping like this 3 or 4 times and then I closed the app. I tried again, this time it download the whole 30 mb but gave me the error -506.

Chrome: I figured if I could not download apps from play store I would just download the APKs from chrome, but this didn't work either. When I clicked the download button chrome said "1 download pending" and waiting for network when I had a full strength connection. I tried again, cleared app cache and data, restarted the phone but again it showed download pending(I assure you it is not a connection problem). However browsing on the chrome app is completely fine, its just that I cannot download any files.

YouTube(app) keeps signing me out for no reason. It gives me an error and tells me to remove my account and sign in again. I go to settings and try to remove my Google account the remove account button is broken. I have tried to open the app again after rebooting,   but instead of giving me the error the app crashes and it says YouTube has Stopped(and keeps stopping). I have cleared cache, cleared data and rebooted but none of that works. Whenever I clear data or reboot and try to open the app, it crashed and says the app has stopped. I have tried to update the app but I cant- both my play store and chrome are broken.

When I reboot the phone the system tells me "android.acore.process" has stopped. I looked up this error on the internet, it said to clear the contacts data and cache. Did it. But this didnt fix the first 3 problems. I have no clue what acore process does.

I tried to play the "among us" video game(i had installed it before all these bugs started coming up) but whenever I open the game it says "insufficient space to download resources". I have tons of space left and this has never happened earlier.

WiFi not working: I click the WiFi button by scrolling the menu from the top of the screen but it doesn't turn on. I go to the WiFi settings and it says "turning WiFi on" but it never turns on. I rebooted my phone and by luck, somehow, the WiFi turned on and I haven't dared to turn it off since.

7)Settings search has stopped: I've been getting this error for quite some months now, and I don't think this is what's causing all the above problems. But I could be wrong, I have no idea

Never before seen strange system issues: I had a game APK saved from before. I tried to install it, it said "problem parsing the package"(I had installed the game from this same APK earlier) . Then I cleared the cache and data of package installer and tried installing, this time it said "insufficient storage space available" when I had plenty left. Please, why is every app malfunctioning? These are my storage stats btw: oh never mind, I tried to click a screenshot, it said "could not capture screenshot". Wow. Anyway, I have 2.39 GB free out of 16gb on internal storage and 25 GB free on my SD card.

I also have McAfee Antivirus Plus(the paid version) on my phone. I scanned and found no viruses. I also scanned with the Xiaomi built in security centre and found no issues.

The only real cause I can figure is that I might have deleted some system files. A few days ago I was on the drives app to clear the "other files" which are a huge mess on Xiaomi, and I deleted a couple of them. Is it possible I might have deleted an important file?

However I saw YouTube tutorials before deleting the "other files", they said it is alright to delete the other files as long as they're not named obb or backup files. Or is this a system bug? I have been on the miui 11.0.2 for about an year and I've never seen this happen before.

I've already posted this question on the Xiaomi forums as well but they have no clue what's going on. They told me to factory reset the phone but I don't want to lose my data. They also said that if the system has been corrupted, factory reset will do no good but they told me try it anyway.

Can someone please tell me what the hell is going on? Maybe some computer experts or software developers know which file I might've
deleted by mistake, or is it some other bug. Please help. My phone is a nightmare!

Title: Xiaomi Redmi 4 Malfunctioning


问:
Upgrade Android on a really old tablet (SM-T210)
I've recently been given a free tablet, a Samsung Galaxy Tab 3 7.0 (SM-T210) and I want to experiment with custom ROMs and related stuff on it.

Since there is no official support for it and it still runs Android 4.4 I decided to do a search on xda and found no non-4.4 ROMs for it. Therefore, and because I heard it is possible to compile Android specifically for my device, I reached out to you for some help...

What information I have available:

Custom Kernel

I was able to flash TWRP 3.0.0.0 via Odin

The 7 inch variant has a Marvell PXA988 SoC (I heard it's more difficult to develop for?)

Stock ROMs readily available all around the web (multiple regions).

What knowledge I have:

Experience with flashing Custom ROMs and Recoveries in multiple devices and brands though I have never built my own.

Know my way around Linux and more specifically Ubuntu.

I really hope that somebody out there is able to help me and tell me if it is possible to create a custom ROM for it. Why noone has compiled a newer version of Android and all custom ROMs out there have 4.2/4.4 as a base?

Thank you so much in advance!


问:
Is it possible to corrupt the bootloader from within the System / ROM?
I had a previously working Pixel 3XL, running Dirty Unicorns (flashed in December).  I hadn't touched the bootloader / fastboot since then, but just a couple of days ago, I rebooted the phone and it refused to boot after that.

The issue is that fastboot cannot determine the locked status of the phone (Device-State: error!), and therefore behaves as if it's locked (and therefore cannot continue with AVB).

I was curious if something in the system / boot / userspace was able to corrupt the bootloader, or if it was simply a failing battery / emmc.  It seems that other people have been struck with this issue, some of them with stock ROM.  (I've tried the battery method.  It didn't work for me)

(More details in the XDA post linked above.  Also any data recovery help would be nice)


问:
Is there any way to call the share menu in a termux script?
I made a bash script for termux and at the end of it i want to  call the share menu to send a file made by my script by whatsapp for example

I really don't have any idea about how to do this.

Any help is appreciated :)


问:
How to identify google account based on "internal shared storage"
I soft bricked my grandma's (soft-broken (play-services kept crashing)) phone [Samsung A3] by performing a factory reset not knowing about Samsung/Google's factory reset protection and thinking she'd find her google account credentials on her password paper. Since she uses a limited set of passwords there is substantial chance to recover her google account (and with it her phone) once we know her google account name. (She has proof of ownership but service points are closed & they charge to remove frp & this would not restore the google account)

I backed up her "internal shared storage" before the wipe and am now wondering if there is chance to find her google account name somewhere there among the data, Downloads, DCMI, WhatsApp, etc. folders. Do you have an idea where it might be saved in plain text?


问:
How to resolve a bug where documets and media files are not indexed to MediaStorage
I have encountered a problem with several file managers which I have failed to resolve.

Files in my device are not properly indexed and hence are not recognised by the file managers at least to my understanding.

Instead of choosing a desired category in the file manager e.g documents or video etc, it shows as empty yet  have several files of that type. I have to manually dig through the internal Storage to find the specific file see image:

I understand in some devices running MIUI, the culprit apps usually are Downloads and MediaStorage so I have wiped their data and even uninstalled updates yet the problem still persists. Funny the problem does not in second space (multi user space), anything that I am missing.

Android 9, MIUI 11 Xiaomi Redmi Note 4 (mido)


问:
If both Android and Chrome OS are based on Linux, why is it not possible to install Chrome OS on an Android device?
I've been searching online for a way to install Chrome OS on an Android tablet and every single answer I've come across so far is "No".

Why is it not a possibility? Both operating systems are based on Linux so (to my very basic knowledge and understanding) it seems like it should be possible.


问:
ANDROID apps installed on my phone without my permission- i think my flatmate is controlling my phone?
Can someone you live with install android permissions to your apps on your phone and control your phone. Strange things are happening on my phone and I can't change permissions on apps and other apps are installed and and I never installed them and I can't uninstall them.
It's making me paranoid and I just want proof who installed them- can anyone help?
I have a Samsung s21 ultra and a Google account which sometimes I get logged out of and password changed. I did factory settings but the same thing happened again. I'm really stressed. Wifi and Bluetooth get turned on and data is being used. Once wifi calling was on when I switched my phone on and sim 2 was in use- I don't have a sim 2! Help me please.</p>


问:
Is there a way to access the wide-angle camera in xiaomi redmi 9 from the computer?
I'm currently trying to access the wide angle camera that xiaomi redmi 9 has. My end-goal is to be able to stream frames from the camera in a python script (using openCV). But knowing how to access this camera from the computer will be enough.

So far, I've tried to do this by using Droidcam, iVcam and IP Webcam. They work great with the main camera, but I'm unable to use the wide-angle one.

I've found a similar question here, but I believe that my question may be different as it's more specific.

PS: I'm completely new here so I'm not sure if this is the correct stack exchange to ask this. I'm sorry if it's not.


问:
How to install a certificate on Android TV?
I've installed certificates (especially the FiddlerRootCA) on several android devices already, since it has a security section in the menus.

On Android TV on the other hand, I was not able to find anything in the settings, altough I went through them? I would like to install the certificate here on my Android TV stick, on which I have adb root access to.

How can I install a certificate on my Android TV?


问:
What is this S icon inside white square?
Anybody who knows about this app please reply.
Phone is Vivo


问:
how can i boot Oppo a12 into fastboot mode
I am not able to boot my oppo a12 into fast mode. Because i want to root my oppo a12 withot going fastbbot mode it is not possible .so please help me</p>


问:
I no longer receive sms from services (bank, google otp, confirmation throught sms, ...)
I found myself in a really strange problem, I have not received text messages from services for several months, while I continue to receive any other type of text message (e.g. if a friend of mine sends me a text message I receive it and I can also reply, but if I register somewhere and I receive a confirmation SMS, or if I have to make a payment with my credit card and receive the OTP from my bank, and other such messages are not received).
I use the google messaging app as an SMS app, I disabled spam protection for the test but nothing seems to have changed.
In the advanced section of the settings of the "Google messages" app I have:

receive service messages: enabled

the entry "phone number" is filled in with my phone number

the "Custom SMSC" item is filled in with the SMSC provided by my telephone operator

I tried to:

reset the network settings and restart

turn off and on again (removing the sim)

delete all SMS

Boot in safe mode

insert the SIM on another mobile phone (it works)

know that android StackExchange is my last hope, I spent 2 days talking to my telephone operator who did nothing but give me solutions such as: switch off and on, buy a new phone, or "we don't take care of it, call your device manufacturer "
I then call Huawei (I have a Huawei P20 Pro) and I am told that the problem is not theirs as "Huawei is just one of many brands and they do not add particular SMS blocks to their devices other than those of any other mobile", and then to call my telephone operator again.

I hope to find a solution here at least, thanks in advance to those who want to help me.

```<code>Huawei P20 Pro (CLT-L09), EMUI 10.0.0, Android 10
</code>```


问:
Is it possible to unbrick an Allwinner Android tablet?
A few months ago I got my hands on a cheap Allwinner tablet. I wanted to experiment with running Linux on it, but in the process of my experimentation I (stupidly) deleted/overwrote both the /boot and the (I think) /recovery directories.

Surprise surprise, now it won't boot. Won't event display the logo on the screen. Neither adb devices nor fastboot devices detect it. It only has 2 buttons, the power button and another tiny button on the side of the motherboard. I discovered that if I held both those buttons down while plugging in the usb cable into my computer, lsusb detects it:

```<code>Bus 002 Device 041: ID 1f3a:efe8 Allwinner Technology sunxi SoC OTG connector in FEL/flashing mode
</code>```

dmesg also detects it:

```<code>[145566.567458] usb 2-3: new full-speed USB device number 41 using xhci_hcd
[145566.708277] usb 2-3: New USB device found, idVendor=1f3a, idProduct=efe8, bcdDevice= 2.b3
[145566.708292] usb 2-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
</code>```

Is it possible to get the tablet back to a working state? If so, any pointers to instructions on how to do so are very welcome.

I'm running Arch Linux. Running adb/fastboot as root doesn't seem to make a difference.


问:
What files on Android phone allow remote access to the device?
I was wondering what files/apps on Android phone allow remote access to the device.  For instance I had a problem with my phone and had to speak with my provider and they asked permission to access the phone remotley.  Which files/programs allow for that type of access?</p>


问:
Manual screen rotate via terminal isn't working
I want to fix the custom ROM (android 7.1.1 Resurrection Remix) issue on my tab TB2-X30L (portrait orientation instead of landscape on startup), but when I write the command content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1, the screen doesn't rotate (on my phone with android 9, sm-j600f, this command is working).

Autorotation is working. Root access and TWRP are present.

Any way to rotate the screen via terminal?


问:
contacts app makes calls with a voip app instead of normal phone app
I installed a voip app, Talkatone, and now Contacts always use Talkatone instead of making normal phone call. Any workaround? Sometimes I would like to place normal call, because Talkatone is not making call to some numbers. Android Go Edition.

Curiosly, Fongo app, another voip, allows one use Contacts within app, but does make call itself, not through Talkaton, like regular Phone app. Regretfully Fongo sms messages are not free.


问:
What are the adb commands for Wipe>Swipe right to Factory Reset>yes in TWRP?

Question

What are the adb commands to perform the following action sequence in TWRP:
First click Wipe, then Swipe to Factory Reset, enter yes?

TWRP documentation

The interface shows the wipe>Swipe to Factory Reset>yes however, the TWRP documentation does not seem to show/discuss this option.

Note

I am aware of the adb commands for the set of actions that select Wipe the Advanced Wipe and selecting

```<code>Dalvik ART Cache
System
Cache
Data
Internal Storage
</code>```

however they seem to be a different set of actions than the Wipe>Swipe to Factory Reset>yes. Similarly, the set of Wipe>Format Data>yes actions is also different than the Wipe, then Swipe to Factory Reset, enter yes sequence.


问:
No Google Play Store on Xiaomi 11 Lite 5G
I got a Xiaomi 11 Lite 5G, and it had Google Play Store and I used it to install Pokemon Go and used its Dual app mode.

And then I had two Pokemon Go running, but then I tried installing Plants vs Zombies, and Angry Birds 2, but it stopped somewhere during the game start up.

And then now, Pokemon Go cannot log in, and I tried Google Play Store and it could not go in.

I then followed the instructions on the Mi Community but the methods do not work, and since I got the phone on eBay, I thought it may be good to do a factory reset just in case the phone has something installed by the third party that I am not aware of.

After the factory reset, there is no Google Play Store, and when I go to Settings -> Account, there is no way to add any Google account either.

I can go to apkmirror.com to install Google Play Store, but it'd run and then flash and then quit.  I also installed Pokemon Go from apkmirror.com, but then there is no Google account to use either and it doesn't allow to go on. (which is what I used to log in, using my previous phones).

So what can be done that can get back the Google Play Store?


问:
If I buy a software and change smartphone, should I buy it... AGAIN?

Possible Duplicate:

  Reinstalling purchased apps on a new phone?

I've just tweaked my Google Play application to believe I have an HTC Desire S so I can buy all the games that I can't buy with my Acer Liquid Metal.
No problem with that...
Then I saw that all my old purchased software was not purchased.

Now two solutions are there:

I just made an happy mess --> no problem.

If you buy any app for your phone and then buy a new one you should buy that app... AGAIN?!?!

ContentLicense: CC BY-SA 3.0


问:
How can I find the oldest SMS that is stored on my phone?
How can I find the oldest SMS that is stored on my phone?

Since SMSs are threaded I can't just scroll all the way down to find my oldest message.

The reason I want to do this is that I use a backup solution for SMS that, for unknown reasons, has failed to copy some messages from my current phone. I therefore want to startover and make a full backup of my current phine. At the same time I have a decade worth of history backed up in this solution and I just want to cull the messages that is on my current phone.

Basically, in my backup solution I have messages 1 to 1200. 1 to 1000 are old, from old phones, while 1001 to 1200 are on my current phone. I want to find 1001 and then delete all messages newer than that from the backup. Finally I will backup 1001 and newer again.

Android 10 on a Oneplus 6T


问:
Are the IMG files in the AVD data directory really encrypted?
If I enable phone encryption with password or PIN on my Android Virtual Device, will that actually make the raw NAND images (*.img / *.qcow2) encrypted?  Does it render the data in those files inaccessible?

If the *.img and *.qcow2 files are really sector-level-encrypted, is there a script or program to decrypt them outside of the AVD?

I'm not referring to the sdcard img and qcow2 files, but rather the userdata-qemu img and qcow2 files.

Reference:

https://developer.android.com/studio/run/emulator-commandline#data-filedir


问:
How google check the apps submitted for publication in playstore?
I knew playstore authority ( None other than google)  take some time to analyze the app and then gives permission.Am I right? What do they do to analyze the app?

and how they check all assets( image or audio or video) are used without infringing copyright ?


问:
Unlocking bootloader for samsung A10 only
Is there any possible way to unlock bootloader on samsung A10..I've tried fastboot I've tried everything..LXDE?..I'm dying here..</p>


问:
Output audio from mic on bluetooth headset to phone speaker
I want to get audio from the mic on a bluetooth headset, send it to the connected phone, and play it on the phone speakers. I'm aware there are different profiles and protocols to be used, but I'm unsure on how to start. What method can I use to achieve this with minimum delay?

Context: A friend of mine works in healthcare and is shouting themself hoarse while speaking to others through the PPE. If possible, I'd like to provide them with an app that lets them use their phone speakers as a megaphone to amplify their voice  - If such an app already exists, please let me know.

Thanks in advance.


问:
How to change color of an app?
I don't know programming,but I know that we can change color of an app by going to res>>values>>color and editing it there with the app
"apk editor".

But this app is not working now.
when i click "build" it shows this error message:

invalid resource directory name: /data/user/0/com.gmail.heagoo.apkeditor/files/decoded/res navigation
invalid resource directory name: /data/user/0/com.gmail.heagoo.apkeditor/files/decoded/res font>

Notice that this error message shows up even if i don't make any changes. Even if I just open an apk and press build, this error message pops up.

So, is this a problem with the application?
What should i do?
How can i change color of an app?

Title: How to change color of an app?


问:
Realme C2 phone bricked, bootloader locked, can't access fastboot or recovery mode, not getting connected to PC
My Realme C2 phone has been bricked, it had bootloader locked, and I can't go to fastboot or recovery mode, it is not getting connected to PC.

After booting the phone, it shows this screen and not doing anything next.

The current image(boot/recovery) have been destroyed and can not boot.

Please flash the correct image or contact customer service to fix it.

I want to flash stock ROM but not able to do it because it's not connecting to the PC.


问:
How to set dark mode except for text?
I like dark mode but the problem is that it is difficult to read text on a black background so that when I read in dark mode, my eyes become watery.
So, is there a way to exclude texts from darkmode, such that there is a white box behind texts..?</p>

Title: How to set dark mode except for text?


问:
New firmware (with bug fixes) is available on the official website of the manufacturer - do I need to update via PC?
I have Cubot KingKong Mini 2 (Android 10 smartphone) and the new version of the firmware is available on the official website of the manufacturer: https://cubot.net/Support/id/60/cid/16.html#hh

It contains "minor bug fixes". They also gave instructions on how to update firmware: via PC, using SP Flash Tool.

My question is: does the "standard" update from Android app settings (System > Advanced > System update) also include the same bug-fixes? If so, then I don't have to do anything via PC & SP Flash Tool.

I tried to find the answer by searching on Google, and on some sites it says that "firmware update = Android update" (which means that I don't have to do anything via PC?), while on others it says that it is not (which means that I would have to update firmware via PC/SP Flash Tool?).


问:
How to "adb push" files from linux to android without the non-permissive symlinks
I want to push over 120K small files including symlinks using "adb" but without those links if they fail in "remote symlink failed: Permission denied" to Android device.</p>


问:
ADB requires drivers that are installed, not fastboot though, what drivers are required for fastboot?
I want to use ADB to backup everything on my phone so I can use CFAutoroot and restore root permissions, without erasing my entire phone, or deleting an app. I've had issues with this phone, I still have root access, but my Superuser or root control app is fucked up, to where it freezes or says binary reserved. I don't know how to fix this, so I want to back up my phone with ADB.

So I have used ADB and it restarts my phone adb restart bootloader, but when I use fastboot to flash it waits for devices, and nobody is providing sufficient answers, so I need the help or you guys. I'm trying to flash TWRP to my Samsung Galaxy S4 IGH-I337. It doesn't work.


问:
/data - Error: Failed to open the device
Device (Nook HD+) will not boot.

It was running LOS 14.1 with TWRP recovery, to which I can still boot up, but any attempts to wipe, or format the /data partition fail.

I also can access the shell (BusyBox) on the device through 'adb'. From there: mkfs.f2fs /data fails with Error: failed to open the device. I can format the underlying block device, but when I try to mount it, I get ...failed: no such file or directory.

And, that's all I know, and could use any and all pointers/advise if there's a way to recover from, what looks to me like, a corrupt storage. Is there a way?

Thanks

Edit: including terminal output:
#=========================

```<code>~ # ls
boot                       init.rc                    selinux_version
bootdata                   init.recovery.hlthchrg.rc  sepolicy
cache                      init.recovery.ovation.rc   service_contexts
charger                    init.recovery.service.rc   sideload
data                       init.recovery.usb.rc       supersu
default.prop               license                    sys
dev                        proc                       system
emmc                       property_contexts          tmp
etc                        recovery                   twres
external_sd                res                        ueventd.ovation.rc
file_contexts              root                       ueventd.rc
fstab.ovation              sbin
init                       seapp_contexts
~ # ls -la /data
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x   22 root     root             0 May 11 21:47 ..
~ # mkfs.f2fs /data

        F2FS-tools: mkfs.f2fs Ver: 1.4.0 (2014-10-18) [modified by Motorola to reserve space]

Info: Debug level = 0
Info: Label =
Info: Segments per section = 1
Info: Sections per zone = 1
Info: Trim is enabled
        Error: Failed to open the device!
~ # mkfs.f2fs
        Error: Device not specified

Usage: mkfs.f2fs [options] device [sectors]
[options]:
  -a heap-based allocation [default:1]
  -d debug level [default:0]
  -e [extension list] e.g. "mp3,gif,mov"
  -l label
  -o overprovision ratio [default:5]
  -O set feature
  -q quiet mode
  -s # of segments per section [default:1]
  -z # of sections per zone [default:1]
  -t 0: nodiscard, 1: discard [default:1]
  -r reserved_bytes [default:0]
     (use only device_size-reserved_bytes for filesystem)
sectors: number of sectors. [default: determined by device size]
~ # cat /fstab.ovation
# Android fstab file for emmc-based device
#<src>                                                  <mnt_point> <type> <mnt_flags and options>                                  <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/platform/omap/omap_hsmmc.1/by-name/system    /system     ext4   ro,errors=panic                                          wait
/dev/block/platform/omap/omap_hsmmc.1/by-name/userdata  /data       f2fs   rw,discard,nosuid,nodev,noatime,nodiratime,inline_xattr  wait,nonremovable,check,encryptable=footer,length=-16384
/dev/block/platform/omap/omap_hsmmc.1/by-name/userdata  /data       ext4   rw,discard,nosuid,nodev,noatime,errors=panic             wait,check,encryptable=footer,length=-16384
/dev/block/platform/omap/omap_hsmmc.1/by-name/cache     /cache      ext4   rw,discard,nosuid,nodev,noatime,errors=panic             wait,check
/dev/block/platform/omap/omap_hsmmc.1/by-name/rom       /rom        vfat   rw,noatime,nodiratime,uid=1000,gid=1000,fmask=117,dmask=007  defaults
/devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1       auto        auto   defaults                                                 voldmanaged=sdcard1:auto
/dev/block/mmcblk0p4                                    /boot       emmc   defaults                                                 defaults
/dev/block/mmcblk0p3                                    /recovery   emmc   defaults                                                 defaults
/dev/block/mmcblk0p6                                    /bootdata   vfat   rw,noatime,nodiratime,uid=1000,gid=1000,fmask=117,dmask=007  defaults
/devices/platform/omap/musb-omap2430/musb-hdrc/usb1/1-1 auto        auto   defaults                                                 voldmanaged=usb0:auto
/dev/block/zram0                                        none        swap   defaults                                                 zramsize=67108864
~ # ls /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
/dev/block/platform/omap/omap_hsmmc.1/by-name/userdata
~ # ls /dev/block/platform/omap/omap_hsmmc.1/by-name/
boot        bootloader  factory     rom         userdata
bootdata    cache       recovery    system      xloader
~ # mkfs.f2fs /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata

        F2FS-tools: mkfs.f2fs Ver: 1.4.0 (2014-10-18) [modified by Motorola to reserve space]

Info: Debug level = 0
Info: Label =
Info: Segments per section = 1
Info: Sections per zone = 1
Info: Trim is enabled
Info: sector size = 512
Info: total sectors = 27000832 (13184 MB)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
  "Linux version 3.0.31-ovation-green+ (green@fatbox1.localnet) (gcc version 4.4.3 (GCC) ) #2 SMP PREEMPT Mon Jun 17 01:18:23 EDT 2013"
Info: Discarding device: 3199798464 sectors
Info: Overprovision ratio = 2%
Info: Overprovision segments = 236 (GC reserved = 108)
Info: format successful
~ # mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/block/mmcblk1p1 on /external_sd type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/block/mmcblk0p9 on /cache type ext4 (rw,relatime,barrier=1,data=ordered)
~ # mount -h
mount: invalid option -- h
BusyBox v1.22.1 bionic (2017-12-10 05:05 +0000) multi-call binary.

Usage: mount [OPTIONS] [-o OPTS] DEVICE NODE

Mount a filesystem. Filesystem autodetection requires /proc.

        -a              Mount all filesystems in fstab
        -f              Dry run
        -v              Verbose
        -r              Read-only mount
        -w              Read-write mount (default)
        -t FSTYPE[,...] Filesystem type(s)
        -O OPT          Mount only filesystems with option OPT (-a only)
-o OPT:
        loop            Ignored (loop devices are autodetected)
        [a]sync         Writes are [a]synchronous
        [no]atime       Disable/enable updates to inode access times
        [no]diratime    Disable/enable atime updates to directories
        [no]relatime    Disable/enable atime updates relative to modification time
        [no]dev         (Dis)allow use of special device files
        [no]exec        (Dis)allow use of executable files
        [no]suid        (Dis)allow set-user-id-root programs
        [r]shared       Convert [recursively] to a shared subtree
        [r]slave        Convert [recursively] to a slave subtree
        [r]private      Convert [recursively] to a private subtree
        [un]bindable    Make mount point [un]able to be bind mounted
        [r]bind         Bind a file or directory [recursively] to another location
        move            Relocate an existing mount point
        remount         Remount a mounted filesystem, changing flags
        ro/rw           Same as -r/-w

There are filesystem-specific -o flags.

~ # mount -av
mount: mounting /dev/block/mmcblk0p10 on /data failed: No such device
mount: according to /proc/mounts, /dev/block/mmcblk0p9 is already mounted on /cache
mount: mounting /dev/block/mmcblk0p8 on /system failed: No such device
mount: according to /proc/mounts, /dev/block/mmcblk1p1 is already mounted on /external_sd
~ # ls -l /dev/block/mmcblk0p10
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
brw-------    1 root     root      259,   2 May 11 22:09 /dev/block/mmcblk0p10
~ # cat /etc/fstab
/dev/block/mmcblk0p10 /data f2fs rw 0 0
/dev/block/mmcblk0p9 /cache ext4 rw 0 0
/dev/block/mmcblk0p8 /system ext4 rw 0 0
/dev/block/mmcblk1p1 /external_sd vfat rw 0 0
~ # mount /dev/block/platform/omap/omap_hsmmc.1/by-name/system    /system
~ # ls -l /system
drwxr-xr-x    2 root     root          4096 May 11 17:45 addon.d
drwxr-xr-x   38 root     root          4096 May 11 17:45 app
drwxr-xr-x    2 root     shell         8192 May 11 17:45 bin
-rw-r--r--    1 root     root          3955 Jan  1  2009 build.prop
drwxr-xr-x   16 root     root          4096 May 11 17:45 etc
drwxr-xr-x    2 root     root          4096 May 11 17:45 fake-libs
drwxr-xr-x    2 root     root          8192 May 11 17:45 fonts
drwxr-xr-x    2 root     root          4096 May 11 17:46 framework
drwxr-xr-x    6 root     root          8192 May 11 17:46 lib
drwxrwx---    2 root     root          4096 May 11 17:45 lost+found
drwxr-xr-x    3 root     root          4096 May 11 17:46 media
drwxr-xr-x   46 root     root          4096 May 11 17:46 priv-app
-rw-r--r--    1 root     root       1436220 Jan  1  2009 recovery-from-boot.bak
drwxr-xr-x    3 root     root          4096 May 11 17:46 tts
drwxr-xr-x    8 root     root          4096 May 11 17:46 usr
drwxr-xr-x    4 root     shell         4096 May 11 17:46 vendor
drwxr-xr-x    2 root     shell         8192 May 11 17:46 xbin
~ # mount -fv /dev/block/platform/omap/omap_hsmmc.1/by-name/userdata  /data
~ # ls -l  /data
~ # mkfs.f2fs /data

        F2FS-tools: mkfs.f2fs Ver: 1.4.0 (2014-10-18) [modified by Motorola to reserve space]

Info: Debug level = 0
Info: Label =
Info: Segments per section = 1
Info: Sections per zone = 1
Info: Trim is enabled
        Error: Failed to open the device!
~ #
C:\Users\MarS\Downloads\-Save-\Nook\try\First-200325>adb devices
List of devices attached
3024360011144302        recovery
C:\Users\MarS\Downloads\-Save-\Nook\try\First-200325>adb shell
~ # cat /etc/fstab
/dev/block/mmcblk0p10 /data f2fs rw 0 0
/dev/block/mmcblk0p9 /cache ext4 rw 0 0
/dev/block/mmcblk0p8 /system ext4 rw 0 0
 /external_sd vfat rw 0 0
~ # mkfs.f2fs /dev/block/mmcblk0p10

        F2FS-tools: mkfs.f2fs Ver: 1.4.0 (2014-10-18) [modified by Motorola to reserve space]

Info: Debug level = 0
Info: Label =
Info: Segments per section = 1
Info: Sections per zone = 1
Info: Trim is enabled
Info: sector size = 512
Info: total sectors = 27000832 (13184 MB)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
  "Linux version 3.0.31-ovation-green+ (green@fatbox1.localnet) (gcc version 4.4.3 (GCC) ) #2 SMP PREEMPT Mon Jun 17 01:18:23 EDT 2013"
Info: Discarding device: 3203800288 sectors
Info: Overprovision ratio = 2%
Info: Overprovision segments = 236 (GC reserved = 108)
Info: format successful
~ # mount /dev/block/mmcblk0p10 /data
mount: mounting /dev/block/mmcblk0p10 on /data failed: Invalid argument
~ #
C:\Users\MarS\Downloads\-Save-\Nook\try\First-200325>
</code>```


问:
ADB does not install any APK
This is an old phone LG L90 with Android 5.0.2 Lollipop (it does not support any newer version).

ADB does not install any APK, like literally any, old or new, any app, downloaded from anywhere on the internet. E.g. Google Play will fail installing Google Drive latest version assuming they dropped support for Lollipop.

So e.g. you can download older versions from APKMirror (versions tthat support Android 5+ and I tried most of them).

E.g. you can still install many apps via Google Play successfully, but if you download that same APK file with same version and try to install it via ADB it fails?

Command used is adb install filename.apk

Error Invalid APK file

Debugging via USB is enabled

Play Protect disabled

Device is not rooted

Title: ADB does not install any APK


问:
using adb command for Samung Galaxty A51
I have a samsung galaxy A51 i already had the developer mode on my phone but i forgot to allow usb debugging on it before my screen broke. The phone still works but the screen wont light up & wont come on. I download the android debugging bridge. I dont even know how to work the commands. Can anyone please help. I am trying to get everything off the phone & save it to my comouter. I am currently running a Windows 10 program. I habve the acer spin 3 computer</p>


问:
Rooting my phone and installing CyanogenMod. Can I ever go back?

Possible Duplicate:

  Is it possible to unroot a device?

  Where can I find stock or custom ROMs for my Android device?

I have a HTC Desire HD with HTC Sense and I was thinking of rooting my phone, and installing CyanogenMod but I wonder... If I regret it later on, is there a possibility for me to go back to HTC Sense?


问:
Reducing Tx_Power for mobile hotspot - hostapd.conf
I am using rooted Samsung J2 pro with Marshmallow 6.0.1. My mobile hotspot uses a lot of battery. And this battery usage is reported by Android OS process by Smart Manager.

I have reduced the tx_power manually from 4 to 1 in hostapd.conf located under /data/misc/wifi/hostapd.conf but it gets overwritten whenever I switch on the hotspot.

How can I make it permanent or is there a way to change tx_power through adb?


问:
Is there a reliable way to know which is the home dir of the phone?
I'm making a program for termux and i need to access to the home directory(where are the Downloads, Android, DCIM, etc directories).

The problem is that i know that not all the phones have the '/storage/emulated/0', for example an old phone of mine had '/sdcard' instead

Any help is appreciated :)


问:
How to track the source for an non-notification daily alarm?
Pixel 4, Android 11.

Every day on 12PM an alarm sets off, but no notification.

Only restart can turn it off. How can I track it cause?


问:
Is it possible to build an Android conformant calendar app which stores its data as shareable file?
Or is there already one?

I don't know Androids calendar infrastructure so maybe my question sounds a bit fuzzy.

I dislike (non self hosted) cloud services but I like the ability to share my calendar among devices (and even people). Since I'm not alone I wonder whether someone already built a calendar app which stores it's data (encrypted) in a way which can be shared via Syncthing, Sparkleshare, Dropbox, ...
This app would have to 'monitor' changes on this file in order to update itself, notify the user about changes and not overwrite changes 'from outside'.

So my question is actually two questions: is (are) there such apps already (and how are they called, so I can search myself) or is this possible in the first place (or why not?).


问:
How to hide Youtube homepage and sidebar?
I want to remove Suggestions in YouTube homepage and sidebar as it is distracting. In PC, there are extensions to remove this(like "YouTube rabbit hole" and "DF YouTube"). But how to do this in YouTube mobile app?</p>


问:
Completely broken (unviewing-untouchable) android screen - (known) patternlock - no google account
After my mobile screen fell I was asking if there was someway to draw my android lock pattern, I precise, pattern, NOT PIN, by using a keyboard, maybe typing corresponding numbers on the numpad...

Up to 80% and more of my android screen is completely black and full of cracks, with big regions of it completely unresponsive, which is far enough to cancel the pattern immission out while using the few responsive parts in touchscreen. I tried to blindly input the pattern with a usb mouse connected via OTG, but this is really really impractical, up to the point the mobile has started a very annoying song everytime I input an incorrect pattern and every few seconds the screen would dim cancelling out what am doing.

Google account was disconnected, as well as usb debugging mode which was deactivated.

I noticed keys like enter, spacebar, shift, and other buttons are operative on the screen when I use a keyboard, which would be perfect for my case. PS: Maybe there is a way to mirror the screen to a tv AND use the mouse at the same time? Or even some external mousePAD with a pen that I can use to PRECISELY draw the pattern and unlock the screen?

Thank you everybody,
Have a good day.


问:
Is there a way to root a locked Motorola phone?
Someone gave me their locked phone and I want to install a custom rom on it but it's not rooted and developer options aren't enabled. The phone model is Motorola Moto G6 Play.</p>


问:
What folders on Android besides /sdcard, com.android.. telephony and contacts should be backed up to preserve common data?
I want to wipe my phone but backup as much data as possible that is stored on the phone itself. I can restore applications but things such as photos, SMS text messages, and some contacts are store on the phone and not synced with Google.

I am using ADB to backup to copy the folders /sdcard, /data/user_de/0/com.android.providers.telephony, /data/user_de/0/com.android.providers.contacts.

Am I missing any Android or Google data that might be stored exclusively on the phone (excluding anything from the Google Play Store).

com.android.providers.telephony contains SMS text messages and com.android.providers.contacts contains any contacts that are on the phone that are not synced with Google.

I am using Lineage OS 14 (Android 7.1.2).


问:
How to receive email when missing or receiving call or sms?
I have a couple of phones with their own sim cards and provider (for many different reasons) and so, given I don't want to:

Hear different ringtones

Hear the same ringtones but multiplied

Monitor all of those different sim cards/phone

etc

I thought of knowing how to get/receive alerts through email when receiving or/and missing phone calls and (if possible) SMS...

Is there an application existing for this? or some sort of setup? I'm well aware of the reverse existing (eg: sending phone calls/SMS for email) but after searching for a while, I didn't find much if anything that would do the above.

Any advice/answer/feedback is welcome. I'm on the latest android (but I don't mind using the older version).


问:
DNS name resolution for local hostnames does not work anymore after android 9 > 10 change
I use my android phone(s) as a wifi hotspot, clients get IPs from the 192.168.43.0/24 network.
Previously, when the phone was running android 9, internal name resolution for those clients worked fine, as those were configured to:

```<code>[root@laptop1 username]# cat /etc/dhclient.conf
send host-name = gethostname();
</code>```

and nslookup laptop1 yielded 192.168.43.xxx on laptop2.

Now, after the change to android 10 (new phone), this no longer works.

It seems like it is because dnsmasq was replaced with something else in A10 (Hotspot mobile network tethering and DNS). How do I get the original behavior back? Thanks.

Rooting is not an option, unfortunately.


问:
Sony Xperia stuck in boot loop due to no free space
My partner has a Sony Xperia Z3 compact that has been complaining of low space (~16 MB free) for weeks before now finally refusing to boot and it has become stuck in a boot loop. I have tried a number of key combinations to try and get it into recovery mode but none have worked and I have read that Sony Xperias do not have this enabled. The phone is not rooted.

Is there anything I can do to get either free up some space to try and get it to boot or to get the data off the device or should I consult a specialist data recovery company?

Many thanks


问:
Samsung mini data recovery
I'm trying to do a data recovery on a Samsung mini that was dropped in water (I think). The phone won't boot past splash screen and developer access isn't enabled. The best idea I've come up with so far is to do a hard resent and then try to some data recovery software on the phone after it's reset.

I just wanted to try and double-check before I did something stupid?

Many thanks,
Niall

Title: Samsung mini data recovery


问:
Should SELinux be Permissive to access /dev/diag
I am trying to set the SELinux to permissive on Android with no luck.

I tried the command su 0 setenforce 0 it returns OK while still being Enforcing if checking immediately using getenforce command.

I even tried to change the prop.build: this file did not exist instead a prop.build.bak did so i copied it modified the SELinux to 0 instead of 1 and pushed it without the .bak extension. Even i checked with external applications that modify the prop.build where the SELinux is set to 0 but when checking with the getenforce command it is still returning Enforcing.

My goal is to get access to the /dev/diag which I believe is being denied due to SELinux using Android JNI as:

```<code> fd = open("/dev/diag", O_RDWR | O_LARGEFILE | O_NONBLOCK);
</code>```

What shall i do?

Update:

When using the command ls -l /dev/diag it returns crw-rw-rw- system   qcom_diag 244,   0 2015-01-14 01:47 diag.

Here is some dmesg extract

```<code>here is the extract of the dmesg:

[18177.676603]  [0: servicemanager:  743] avc:  received setenforce notice   (enforcing=1)
[18182.768070]  [1: servicemanager:  743] avc:  received setenforce notice (enforcing=1)
[18183.231867]  [0:           init:    1] avc:  received setenforce notice (enforcing=1)
[18183.232006]  [0:           init:    1] avc:  received setenforce notice (enforcing=1)
</code>```

And tried to follow https://stackoverflow.com/questions/36005670/why-cant-my-android-app-has-root-privilege-access-dev-input to use the open server class with no luck: returning Server thread forced to quit by error

As for the ROM I am using the J5-J500H (J500HXXU1AOG4_OXE1AOG4_J500HXXU1AOG4) and Android 6.0.1 as follow: https://forum.xda-developers.com/t/how-to-root-twrp-samsung-galaxy-j5-2015-2016-prime-variant-marshmallow-6-0-1.3502292/

Hint: I don't think the ROM is the problem because I am using other applications that are being able to access the /dev/diag


问:
Android System shows toast message of "password may be incorrect"
Recently I noticed there is a toast message popping up saying "password may be incorrect". With the help of toast source, I able to identify the source of the toast message which is Android System. What happen to my phone?

Oneplus 7T, Android 11


问:
Is there a Chrome / Chromium extension to, by default, open links in a new, background tab?
I am running, on an Android tablet, the Kiwi browser  (which can install Chrome / Chromium  extensions) and want to, when browsing a news website, have every time  I click a link of a headline, have that page open up in the background in a new tab, so I may read it in the background later at my leisure.  Is there an extension which can accomplish this? I have tried installing both the Open in new tab and Force background tab extensions, but to the two do not work well together.  (I am aware that many sites may have javascript etc. which breaks any solution, but I simply need a mix of extensions/solutions that changes the default for "normal" browsing)


问:
how to improve performance for games?
When touch responsiveness is really important (other than urgent moments, actually that would be a more important context).

I have a sm-j700, android 6.0.1, 1.34GB RAM (low RAM is the biggest problem).

To play games like pubg mobil elite, or AnimA ARPG, I have to:

clean google play services app bloatful data (seems to cause generic overall slowdown, why they dont fix it?)

disable OS animations in developer mode

disable the weather forecast widget and set its update interval to none, that app is really problematic

Edit: disable or uninstall (adb shell remove) most apps that insist on using RAM, was what really worked here. Use simple system monitor to track'em. Use system safe app remover for hints on what you can uninstall.

And I always have to:

developer mode: stop all services using too much memory >= 10MB (least google play services and anything else you think is important like a firewall), and weather forecast app if it ever believes I need it running and causing trouble (sometimes I have to do this again while playing the game). And the only way to stop "samsung push service" from auto restarting is going to it's info and force stop it.

quickly start the game after that to grant it will use RAM before the annoying bloatful services have a chance to mess it up

If I don't do that, suddenly touches are ignored, the game freezes for many seconds, touches freezes and the game keeps playing like we are holding the touch, and worst of all, the OS may crash and reboot...

But all that is quite a lot of micromanagement lowering the quality of the android realm user experience making people everywere complaint, when it is actually easily fixable.

Are there other tips I am missing?

Could all that be automatic on a non rooted phone? Like a generic game launcher that grants all is perfect before running the game?

But if it could work only on rooted, I would consider doing that.

Should I split this making an answer? Did it work on your phone model and android version?

Title: how to improve performance for games?


问:
What's the "debuglogger" directory?
What is the directory "debuglogger" (/storage/emulated/0/debuglogger) for and how to completely remove it? In a week it uses almost 5% of my phone's memory. I have to delete it manually to free space, but it creates itself again in seconds.

I have a Nokia 2.3 phone with Android 11, could anyone help me to stop this?

Title: What's the "debuglogger" directory?


问:
Authorize ADB connection from another connection
Let's say that I have access to the phone via serial port (edit: FTDI USB Serial Device converter). I want to install apk, so I need to have working adb connection. But I don't have an access to the touchscreen, to accept authorization dialog. Phone is also connected to the same WiFi networks as my computer. Is there a command in phone shell to accept incomming adb connection?

--edit--

It looks like I don't have enable "Developer options", and what is worse there is no possibilities to activate. Is this blocker issue for authorizae adb connection?

--edit2--

After @Rober suggestions from comments, I have issued activity manager from shell to show developer options am start -a com.android.settings.APPLICATION_DEVELOPMENT_SETTINGS, but I'm getting message that it is not available: Error: Activity not started, unable to resolve Intent


问:
Deny access to fastboot
I'm searching a way to deny access to fastboot mode... I don't care if it will be deleted, just want to deny access but still be able to use the device.

I rooted my phone but I didn't find any files that called fastboot or something like that. Where the files are hidden?

I have an idea to use this command :
fastboot flash bootloader.
And flash a img that will show only a black screen, or maybe flash the boot.img, I don't know... Will it help? Someone have a better idea? Is it totally impossible?

I heard about people who had bugs in there fastboot... That exactly what I want!

I don't have a sumsung device, I have a rooted oneplus 5t and I don't care to damage it completely while trying to learn new stuff!

Some one ask my question too:
https://forum.xda-developers.com/t/is-it-possible-to-relock-bootloader-while-using-custom-rom-and-recovery.4072955/

Title: Deny access to fastboot


问:
Start button broke, USB debugging NOT enabled, need to start phone!
Basically I have a Moto X4 without USB debugging enabled and the start button doesn't work.  I can boot up to AP Fastboot (the screen with the little droid in the background), but I don't have USB enabled, so when I connect the phone via USB cord to my laptop, ADB won't recognize it (so I can't reboot using ADB).

Is there anything I can do!?  I don't want to do anything "security sketchy" here: just start it up to get to the point where I can enter my password/use fingerprint ID.

Would an OTG adaptor work!?


问:
Is there a Boot ROM within other SoCs?
I was researching on methods to try and recover my data and I learned something interesting, a user 'kuruczgyurci' posted:

This does not exactly answer the original question, but since I managed to brick my bootloader in the meantime, this is what I ended up doing, and it might be useful for someone else in the future:

Allwinner SOCs have a built in Boot ROM, and it supports various modes, so these devices are virtually unbrickable. In particular, it supports a so called FEL mode (http://linux-sunxi.org/FEL) which can be used to boot the device over USB. I nice open-source tool has been written that can communicate with the device in this special mode (http://linux-sunxi.org/Sunxi-tools#sunxi-fel). Using this, you can boot your own bootloader. (And with that, you can boot your own kernel, etc.) The linux-sunxi.org website has very  detailed instructions regarding Allwinner SoC devices, so I recommend that you check out their other articles as well.

I found this quite interesting and so my noggin started to think: could this potentially apply to Snapdragon COCs? Could they potentially contain a built-in Boot ROM?

It would be logically possible considering that if perhaps someone completely ruined important partitions, to the point the boot-loader doesn't even load, and it's completely bricked, that Motorola can fix it.

I'm pretty sure I recall talking to a Moto Rep a long time ago and they said that it is possible to fix a phone that you messed up all the way up to the bootloader.

I would assume 'Yes' they do.

So, is it possible?

Title: Is there a Boot ROM within other SoCs?


问:
Why doesn't dictation work on GBoard in incognito mode?
My impression was that GBoard dictation works completely locally.

https://ai.googleblog.com/2019/03/an-all-neural-on-device-speech.html

If that's the case, how come it does not work when I go incognito on Chrome? It crosses out the microphone icon in the top right of the keyboard. Did they just forget to disable that feature after they made it work offline?


问:
How do I make Line Pay app functional on Blue Stacks
I assume I have to do some control mapping but I can't see what and how to do that. I used the custom controls to make game work but I don't see what is needed for this map. What custom controls are needed for Line Pay App?</p>


问:
Lost text recovery
I have 3 months of lost text messages from 2019 , they were not deleted by me , how can I recover them ? I have a new phone , but the new phone has text from 5-5-2019 to 5-10-2019 then 8-2-2019 to final text 1-10-2021</p>

Title: Lost text recovery


问:
Is it expected to have your contacts flooded with emails when synced to google account?
I have only one google account which I use for email and syncing my phone contacts.

I do send a lot of mails.

I noticed that if I open my contacts every email address I've sent to appears as a contact on my phone. I feel flooded with contacts.

Is this expected? And how do I go about it?

I can unsync google but this will unsync gmail as well.


问:
Ringtone volume keeps turning off
Using Samsung Galaxy A41 on Android 10, my ringtone volume is automatically resetting to 0 all the time - which means that I'm missing phone calls. I don't have any apps installed that should be doing this automatically.

What could be the cause and how can I debug this?

Title: Ringtone volume keeps turning off


问:
Command line to remontly shutdown the display and power on
I'm using a digital signage CMS and app to control an Android tablet with root access. I can "reboot" it with this simple command, but I haven't found a command line to put the display to sleep(shut down / on).
I'm thinking it's possible also to set shutdown hours and start up?</p>


问:
I need to play audio file when microphone detects noise
I have some pretty rare use case.
I've recorded audio file and I want to play it automatically
anytime when microphone detects any noise.

I assume it can be done using smartphone with Android with some app(s).

What's the best way to do it?

Just for the sake of example. Imagine I've recorded "Go away, we are home!" and put smartphone in dining room. The mic is working all the time, listening to noises and if someone breaks glass and gets inside a house, my record will automatically play and scare the thieves.

Thank you!


问:
How to access Night Light settings on Samsung
I just upgraded my Pixel 2 to a Samsung Fold 2. My Pixel was using Night Light and it was set to go on at 8pm and off at 6am. The Samsung Smart Switch app helpfully copied these settings over; however, Samsung doesn't use Night Light. Samsung has their own software called "Eye Comfort Shield" (disabled). So, now at 8pm, my phone simply goes dark. Completely black and unusable until 6am.

I can probably factory reset the Samsung and recopy from the old phone, but that seems excessive. Is there a way to add Night Light or just wipe those Night Light settings?


问:
How google home app works?
I am developing a new iot project to monitor air quality in the environment. the device, ESP8266, needs a wi-fi connection, which we usually put fixed in the code that the microcontroller will run, which is not legal, because if I need to change the network for some reason, I will have to change the source code.

Other IOT devices have the same situation, and manufacturers like Google, are able to configure the wifi on the device via the android phone or iphone. Like?

Apparently the device creates an access point and the cell phone, through the google home app, connects to this network and makes the configuration. The most intriguing thing for me is that he doesn't use a password.

I can access an access point from my device, make a POST call to a service and set the SSID and password credentials, but I need to enter that password. The Google Home app doesn't need this, as long as I'm connected to the same network.

Ex: my home local network is 2.4_2906. I bought a new google home mini and I want to connect it to this wi-fi network in my house. My Android device is connected to the 5.0_2906 network on the same router as the 2.4_2906. When trying to connect google home on the 2.4_2906 network, google says I'm not connected to it and asks me to connect, so I logged in there and I try to configure google home to use it too, and I can do it without saying it google home the network password.

How can I implement this for my device?

Title: How google home app works?


问:
Facebook app missing 3D photo button on LG Velvet 5G
I bought the LG Velvet 5G because it has a 5MP depth camera, whuch sounds good for taking 3D photos. All the guides I can find suggest that the 3D photo option should appear in the menu below. But I have looked carefully and I cannot find it.


问:
How can I turn on notifications on phone speakers when earphones are plugged in?
Phone: Redmi Note 8 Pro, MIUI Global 12.0.7.0 Stable (QGGMIXM), Android 10QP1A.190711.020

I can't seem to find a way to get notification sounds through my speakers if I have my earphones plugged in. Ringtones seem to be the only thing to work.

Apparently there's a petition going around for Android 9.

And there's mention of an option for audio routing on Android 10, which is the one I was able to update to, but I don't seem to find the option.

Is there a way to do this natively?
And if not, could I use ADB to solve this?
Assuming it's an Android property.


问:
How to root the LGLS676? Is the idea I have about how to go about it the most efficient method?
I want to root my LGLS676, because I want to install the gnu coreutils on my android phone. The only way I can imagine doing this is making the phone think it's not a phone, because I can't use adb because all my laptops are running Debian 11 Gnu/Linux, and LG doesn't seem to provide Linux USB drivers. The only way I can think of to make my phone think it's not a phone is to take out its hard drive, RAM, and/or cpu and then write the gnu coreutils and su onto the phone's hard drive. Is this the right way to go about rooting the LGLS676 in my circumstances? If not, what should I do to root the phone? I don't know at the moment what version of android it's running, but I think it's Android Marshmallow. Going into recovery mode and trying to boot into the boot loader from there just boots into the normal login screen instead.


问:
Samsung Galaxy S3 stuck at Samsung Logo after custom rom
I had this Samsung Galaxy S3 with Android 4.3. Since Youtube didn't open as it required an update but the play store said it is up to date(i usually use it to watch youtube), I planned to install Resurrection Remix ROM(Android 7.1). I installed TWRP and installed the rom. It was successful, but it didn't boot. It was stuck on 'Samsung Galaxy S3 GT-I9300' boot and it didn't go from there. I tried many things like reflashing the rom, wiping cache but nothing worked. Can anyone help me, please?

Thank You.

EDIT: I just found that that the rom is unable to write-in /data but it is writable(i tried open gapps micro package and it wrote it


问:
How to create a big panic button on the home screen that, when touched, makes a phone call to a specific person?
As an elderly is going to use the smartphone, and has difficulty using technology, I would like to create a big panic button on the home screen for her, in order that she can immediately make a phone call to a specific person when touch it, without doing any more thing, only touching the panic button.

It is desirable that, when the smartphone is seemingly off (I don't know the proper name. Is it "standby"?), if the user presses the power button once, the panic button will appear and can be used, without the necessity to unlock the smartphone.