问:
Remote connect adb to android device
How can I use adb shell for an android device wireless and remotely? With ssh, wifi, or bluetooth. For example can I connect to my mobile from laptop with bluetooth and use adb shell in laptop for my mobile?</p>

Title: Remote connect adb to android device


问:
My problem is that it crashes and after I do a hard reset in the Chinese Wipe MMC menu, instead of the standard 32 applications, I get 57?
I have a smartphone brand Motorola C Plus, Android 7.0.,

My problem is that it crashes and after I do a hard reset in the Chinese Wipe MMC menu, instead of the standard 32 applications, I get 57 ?*!

After testing in the English menu I saw that there are log files that the system does not remove? Does the problem come from a launcher update or another program, or is there hacker intervention? After turning off the internet card, Bluetooth and wifi, the ordinary hacker could hardly enter? How to do system cleaning manually with USB cable commands from a personal computer when connected to it?

I activated ADB commands, but I could not see where I install the new 25 applications for music, video and others to destroy their installation archives.

ContentLicense: CC BY-SA 4.0


问:
How to view Facebook 360 degree photos using a simple non-electronic VR glass?
I would like to view Facebook 360 degree photos on an Android mobile using a simple non-electronic VR glass. Is it possible?

Thank you for your time

Edit: A "simple non-electronic VR glass" means a VR glass which doesn't integrate with mobile through bluetooth. So, the mobile doesn't automatically know that I am viewing it through a VR glass.


问:
Android ADB delete /data/data but keep files in /storage/emulated/0/Android/data/<app name>
I am inquiring on if it is possible to Re-Install a apk using adb and either before launching or while installing delete the files in /data/data but keep the files stored in /storage/emulated/0/Android/data

Edit:
some context
there is this app for the oculus quest called QuestCraft which is VR minecraft standalone on the quest. the script I am writing is to fix a bug where after restarting a .so file is deleted from /data/data (which I cant just adb push) but I found the file could be replaced by re-installing the app. but by reinstalling with the -r flag it wont re-unpack the libraries and if I dont specify -r all my worlds and servers are deleted from within minecraft.


问:
How to read gfxinfo
I'm using Apache TVM do benchmark DL models - this is long story, but I want to preview GPU usage of TVM. On Android device I have runing APK, which spawn 1-2 processes, which use GPU. I have turned on "GPU Profiling", and I dumped logs via adb shell dumpsys gfxinfo. But I'm not sure how to properly read it? Example of TVM process is below.
My questions:

do you know any tutorial/instruction for reading and understanding following stats? how to interpret it?

I do not care about jank frames, I need information about GPU usage, GPU memory usage

```<code>** Graphics info for pid 14811 [org.apache.tvm.tvmrpc:RPCProcess] **

Stats since: 5644930627488ns
Total frames rendered: 1
Janky frames: 1 (100.00%)
50th percentile: 97ms
90th percentile: 97ms
95th percentile: 97ms
99th percentile: 97ms
Number Missed Vsync: 0
Number High input latency: 0
Number Slow UI thread: 1
Number Slow bitmap uploads: 0
Number Slow issue draw commands: 1
Number Frame deadline missed: 1
HISTOGRAM: 5ms=0 6ms=0 7ms=0 8ms=0 9ms=0 10ms=0 11ms=0 12ms=0 13ms=0 14ms=0 15ms=0 16ms=0 17ms=0 18ms=0 19ms=0 20ms=0 21ms=0 22ms=0 23ms=0 24ms=0 25ms=0 26ms=0 27ms=0 28ms=0 29ms=0 30ms=0 31ms=0 32ms=0 34ms=0 36ms=0 38ms=0 40ms=0 42ms=0 44ms=0 46ms=0 48ms=0 53ms=0 57ms=0 61ms=0 65ms=0 69ms=0 73ms=0 77ms=0 81ms=0 85ms=0 89ms=0 93ms=0 97ms=1 101ms=0 105ms=0 109ms=0 113ms=0 117ms=0 121ms=0 125ms=0 129ms=0 133ms=0 150ms=0 200ms=0 250ms=0 300ms=0 350ms=0 400ms=0 450ms=0 500ms=0 550ms=0 600ms=0 650ms=0 700ms=0 750ms=0 800ms=0 850ms=0 900ms=0 950ms=0 1000ms=0 1050ms=0 1100ms=0 1150ms=0 1200ms=0 1250ms=0 1300ms=0 1350ms=0 1400ms=0 1450ms=0 1500ms=0 1550ms=0 1600ms=0 1650ms=0 1700ms=0 1750ms=0 1800ms=0 1850ms=0 1900ms=0 1950ms=0 2000ms=0 2050ms=0 2100ms=0 2150ms=0 2200ms=0 2250ms=0 2300ms=0 2350ms=0 2400ms=0 2450ms=0 2500ms=0 2550ms=0 2600ms=0 2650ms=0 2700ms=0 2750ms=0 2800ms=0 2850ms=0 2900ms=0 2950ms=0 3000ms=0 3050ms=0 3100ms=0 3150ms=0 3200ms=0 3250ms=0 3300ms=0 3350ms=0 3400ms=0 3450ms=0 3500ms=0 3550ms=0 3600ms=0 3650ms=0 3700ms=0 3750ms=0 3800ms=0 3850ms=0 3900ms=0 3950ms=0 4000ms=0 4050ms=0 4100ms=0 4150ms=0 4200ms=0 4250ms=0 4300ms=0 4350ms=0 4400ms=0 4450ms=0 4500ms=0 4550ms=0 4600ms=0 4650ms=0 4700ms=0 4750ms=0 4800ms=0 4850ms=0 4900ms=0 4950ms=0
50th gpu percentile: 4950ms
90th gpu percentile: 4950ms
95th gpu percentile: 4950ms
99th gpu percentile: 4950ms
GPU HISTOGRAM: 1ms=0 2ms=0 3ms=0 4ms=0 5ms=0 6ms=0 7ms=0 8ms=0 9ms=0 10ms=0 11ms=0 12ms=0 13ms=0 14ms=0 15ms=0 16ms=0 17ms=0 18ms=0 19ms=0 20ms=0 21ms=0 22ms=0 23ms=0 24ms=0 25ms=0 4950ms=0
Font Cache (CPU):
  Size: 2.66 kB
  Glyph Count: 2
CPU Caches:
GPU Caches:
  Other:
    Other: 988.00 bytes (1 entry)
  Shadow Gaussian Falloff:
    Texture: 128.00 bytes (1 entry)
  Scratch:
    Buffer Object: 48.00 KB (1 entry)
    Texture: 2.00 MB (1 entry)
Other Caches:
                         Current / Maximum
  Layers Total           0.00 KB (numLayers = 0)
Total GPU memory usage:
  2147420 bytes, 2.05 MB (128.00 bytes is purgeable)

Pipeline=Skia (OpenGL)
Profile data in ms:

    org.apache.tvm.tvmrpc/org.apache.tvm.tvmrpc.RPCActivity/android.view.ViewRootImpl@a9f6eba (visibility=0)
    Draw    Prepare Process Execute

Window: org.apache.tvm.tvmrpc/org.apache.tvm.tvmrpc.RPCActivity
Stats since: 5644998711873ns
Total frames rendered: 1
Janky frames: 1 (100.00%)
50th percentile: 97ms
90th percentile: 97ms
95th percentile: 97ms
99th percentile: 97ms
Number Missed Vsync: 0
Number High input latency: 0
Number Slow UI thread: 1
Number Slow bitmap uploads: 0
Number Slow issue draw commands: 1
Number Frame deadline missed: 1
HISTOGRAM: 5ms=0 6ms=0 7ms=0 8ms=0 9ms=0 10ms=0 11ms=0 12ms=0 13ms=0 14ms=0 15ms=0 16ms=0 17ms=0 18ms=0 19ms=0 20ms=0 21ms=0 22ms=0 23ms=0 24ms=0 25ms=0 26ms=0 27ms=0 28ms=0 29ms=0 30ms=0 31ms=0 32ms=0 34ms=0 36ms=0 38ms=0 40ms=0 42ms=0 44ms=0 46ms=0 48ms=0 53ms=0 57ms=0 61ms=0 65ms=0 69ms=0 73ms=0 77ms=0 81ms=0 85ms=0 89ms=0 93ms=0 97ms=1 101ms=0 105ms=0 109ms=0 113ms=0 117ms=0 121ms=0 125ms=0 129ms=0 133ms=0 150ms=0 200ms=0 250ms=0 300ms=0 350ms=0 400ms=0 450ms=0 500ms=0 550ms=0 600ms=0 650ms=0 700ms=0 750ms=0 800ms=0 850ms=0 900ms=0 950ms=0 1000ms=0 1050ms=0 1100ms=0 1150ms=0 1200ms=0 1250ms=0 1300ms=0 1350ms=0 1400ms=0 1450ms=0 1500ms=0 1550ms=0 1600ms=0 1650ms=0 1700ms=0 1750ms=0 1800ms=0 1850ms=0 1900ms=0 1950ms=0 2000ms=0 2050ms=0 2100ms=0 2150ms=0 2200ms=0 2250ms=0 2300ms=0 2350ms=0 2400ms=0 2450ms=0 2500ms=0 2550ms=0 2600ms=0 2650ms=0 2700ms=0 2750ms=0 2800ms=0 2850ms=0 2900ms=0 2950ms=0 3000ms=0 3050ms=0 3100ms=0 3150ms=0 3200ms=0 3250ms=0 3300ms=0 3350ms=0 3400ms=0 3450ms=0 3500ms=0 3550ms=0 3600ms=0 3650ms=0 3700ms=0 3750ms=0 3800ms=0 3850ms=0 3900ms=0 3950ms=0 4000ms=0 4050ms=0 4100ms=0 4150ms=0 4200ms=0 4250ms=0 4300ms=0 4350ms=0 4400ms=0 4450ms=0 4500ms=0 4550ms=0 4600ms=0 4650ms=0 4700ms=0 4750ms=0 4800ms=0 4850ms=0 4900ms=0 4950ms=0
50th gpu percentile: 4950ms
90th gpu percentile: 4950ms
95th gpu percentile: 4950ms
99th gpu percentile: 4950ms
GPU HISTOGRAM: 1ms=0 2ms=0 3ms=0 4ms=0 5ms=0 6ms=0 7ms=0 8ms=0 9ms=0 10ms=0 11ms=0 12ms=0 13ms=0 14ms=0 15ms=0 16ms=0 17ms=0 18ms=0 19ms=0 20ms=0 21ms=0 22ms=0 23ms=0 24ms=0 25ms=0 4950ms=0

---PROFILEDATA---
Flags,IntendedVsync,Vsync,OldestInputEvent,NewestInputEvent,HandleInputStart,AnimationStart,PerformTraversalsStart,DrawStart,SyncQueued,SyncStart,IssueDrawCommandsStart,SwapBuffers,FrameCompleted,DequeueBufferDuration,QueueBufferDuration,GpuCompleted,
1,5645013569772,5645013569772,9223372036854775807,0,5645014148949,5645014150180,5645014151103,5645081986026,5645084159488,5645092585719,5645092703796,5645118001873,5645120370719,0,1326769,0,
8,5645030205523,5645113538858,9223372036854775807,0,5645125786949,5645125790103,5645125954565,5645126136103,5645126148565,5645126504257,0,0,0,0,0,0,
---PROFILEDATA---

View hierarchy:

  org.apache.tvm.tvmrpc/org.apache.tvm.tvmrpc.RPCActivity/android.view.ViewRootImpl@a9f6eba
  14 views, 26.56 kB of render nodes

Total ViewRootImpl   : 1
Total attached Views : 14
Total RenderNode     : 26.56 kB (used) / 97.82 kB (capacity)
</code>```

And this is log only for Apk:

```<code>Applications Graphics Acceleration Info:
Uptime: 6901736 Realtime: 6901736

** Graphics info for pid 12574 [org.apache.tvm.tvmrpc] **

Stats since: 500523944950ns
Total frames rendered: 439
Janky frames: 23 (5.24%)
50th percentile: 6ms
90th percentile: 10ms
95th percentile: 19ms
99th percentile: 61ms
Number Missed Vsync: 1
Number High input latency: 69
Number Slow UI thread: 12
Number Slow bitmap uploads: 0
Number Slow issue draw commands: 5
Number Frame deadline missed: 13
HISTOGRAM: 5ms=199 6ms=39 7ms=45 8ms=72 9ms=21 10ms=20 11ms=7 12ms=5 13ms=1 14ms=3 15ms=4 16ms=0 17ms=1 18ms=0 19ms=1 20ms=0 21ms=0 22ms=0 23ms=0 24ms=3 25ms=1 26ms=0 27ms=1 28ms=1 29ms=3 30ms=0 31ms=1 32ms=3 34ms=0 36ms=0 38ms=0 40ms=1 42ms=2 44ms=0 46ms=0 48ms=0 53ms=0 57ms=0 61ms=1 65ms=0 69ms=0 73ms=1 77ms=0 81ms=0 85ms=1 89ms=0 93ms=0 97ms=0 101ms=0 105ms=0 109ms=0 113ms=0 117ms=0 121ms=0 125ms=0 129ms=0 133ms=0 150ms=0 200ms=1 250ms=1 300ms=0 350ms=0 400ms=0 450ms=0 500ms=0 550ms=0 600ms=0 650ms=0 700ms=0 750ms=0 800ms=0 850ms=0 900ms=0 950ms=0 1000ms=0 1050ms=0 1100ms=0 1150ms=0 1200ms=0 1250ms=0 1300ms=0 1350ms=0 1400ms=0 1450ms=0 1500ms=0 1550ms=0 1600ms=0 1650ms=0 1700ms=0 1750ms=0 1800ms=0 1850ms=0 1900ms=0 1950ms=0 2000ms=0 2050ms=0 2100ms=0 2150ms=0 2200ms=0 2250ms=0 2300ms=0 2350ms=0 2400ms=0 2450ms=0 2500ms=0 2550ms=0 2600ms=0 2650ms=0 2700ms=0 2750ms=0 2800ms=0 2850ms=0 2900ms=0 2950ms=0 3000ms=0 3050ms=0 3100ms=0 3150ms=0 3200ms=0 3250ms=0 3300ms=0 3350ms=0 3400ms=0 3450ms=0 3500ms=0 3550ms=0 3600ms=0 3650ms=0 3700ms=0 3750ms=0 3800ms=0 3850ms=0 3900ms=0 3950ms=0 4000ms=0 4050ms=0 4100ms=0 4150ms=0 4200ms=0 4250ms=0 4300ms=0 4350ms=0 4400ms=0 4450ms=0 4500ms=0 4550ms=0 4600ms=0 4650ms=0 4700ms=0 4750ms=0 4800ms=0 4850ms=0 4900ms=0 4950ms=0
50th gpu percentile: 3ms
90th gpu percentile: 6ms
95th gpu percentile: 11ms
99th gpu percentile: 24ms
GPU HISTOGRAM: 1ms=0 2ms=56 3ms=192 4ms=100 5ms=16 6ms=17 7ms=6 8ms=0 9ms=1 10ms=2 11ms=10 12ms=6 13ms=4 14ms=1 15ms=0 16ms=0 17ms=0 18ms=0 19ms=0 20ms=0 21ms=1 22ms=0 23ms=2 24ms=5 25ms=0 4950ms=0
Font Cache (CPU):
  Size: 17.38 kB
  Glyph Count: 5
CPU Caches:
GPU Caches:
  Other:
    Other: 0.00 bytes (1 entry)
  Shadow Gaussian Falloff:
    Texture: 128.00 bytes (1 entry)
  Image:
    Texture: 54.45 KB (3 entries)
  Scratch:
    Buffer Object: 48.00 KB (1 entry)
    Texture: 2.00 MB (1 entry)
Other Caches:
                         Current / Maximum
  Layers Total           0.00 KB (numLayers = 0)
Total GPU memory usage:
  2202192 bytes, 2.10 MB (54.58 KB is purgeable)

Pipeline=Skia (OpenGL)
Profile data in ms:

    org.apache.tvm.tvmrpc/org.apache.tvm.tvmrpc.MainActivity/android.view.ViewRootImpl@1038509 (visibility=8)
    Draw    Prepare Process Execute

View hierarchy:

  org.apache.tvm.tvmrpc/org.apache.tvm.tvmrpc.MainActivity/android.view.ViewRootImpl@1038509
  27 views, 38.25 kB of render nodes

Total ViewRootImpl   : 1
Total attached Views : 27
Total RenderNode     : 38.25 kB (used) / 38.25 kB (capacity)
</code>```

My thoughts about it:

```<code>Total frames rendered - Number of frames created to render
Janky Frames - Number of dropped frames
50th percentile: 6ms - 50% of frames was rendered in or under 6ms
90th percentile: 10ms - 90% of frames was rendered in or under 10ms
95th percentile: 19ms - 95% of frames was rendered in or under 19ms
99th percentile: 61ms - 99% of frames was rendered in or under 61ms
Number Missed Vsync - vsync is complex mechnism for syncronizing frames from GPU and frames displayed
Number High input latency - Input latency or lag refers to the amount of time it takes from when it receives a signal (when you press a button on your controller or move your mouse) to when that action occurs on the screen.
Number Slow UI thread: ???
Number Slow bitmap uploads: ???
Number Slow issue draw commands: ???
Number Frame deadline missed: ???
HISTOGRAM - histogram of what? ms is time from this moment?
GPU HISTOGRAM - histogram of GPU usage? in what units?
</code>```

--edit--

I was trying to look for gfxinfo and dumpsys in AOSP, but I haven't found anything interesting. There is parser of gfxinfo written in java, just parses few things. In dumpsys I cannot find reference to gfxinfo service (https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/dumpsys/dumpsys.cpp)

Title: How to read gfxinfo


问:
How to raise a KEYEVENT_ENTER?
NOTE: I am not writing an android program, I am using someone else's program.

It seems that the enter-looking-button on my virtual keyboard isn't raising the enter key event on some websites that I go to.  I'm not entering text - I know that the website is listening for an enter keypress event in order to initiate some behavior.  How can I raise the enter key event with my virtual keyboard?

Title: How to raise a KEYEVENT_ENTER?


问:
Mulitple user accounts on Samsung A20e
I have a Samsung Galaxy A20e, apparently Android lets you have multiple user accounts... but I dont see this listed anywhere in the settings for my phone?</p>

Title: Mulitple user accounts on Samsung A20e


问:
What controls the Google Maps traffic widget updating "time to arrive"?
I have the Google Maps traffic widget on my Galaxy Nexus.  The widget will show the traffic lights, but the times don't seem to update unless I log into maps by tapping the widget such that Maps loads.  Is there a way to "force" the travel time for Google Maps widgets to always display, from the current location?</p>

ContentLicense: CC BY-SA 3.0


问:
Keep showing unread mail notification in Gmail
Apparently, I'm one of the few people who use his mailbox as a to-do list, but since I got a new phone with Android 11, I lose my icon badge as soon as I clear the notification.

In the past, I could mark an email as unread, and then it would show an icon badge with how many unread emails I had. That way I could read as email and keep it unread as a to-do list. Marking another mail as unread would add a 1 to the icon.

Is there a setting I'm missing which would allow this? The only thing I find is people saying they get a notification even though they don't have mail.


问:
Detect the Incoming TCP Packets
I am developing a feature in my application for screen mirroring for which I need to open a wide range of ports (approx. 10000 number of ports) in my android system. It is a risk to open all these ports all the time.

I need to know if there is any mechanism to anticipate exactly which port will be used by the Screen Mirroring Server to send these TCP packets, is there any API or listener in AOSP which will be able to listen to the requests from the Server to open a particular port

Title: Detect the Incoming TCP Packets


问:
ffmpeg closes with "Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted" in android
I am running FFmpeg in my app and specifically in "Android 11" I am getting this error from several users

I have researched a lot but no solution found.

I thought there is something wrong with the codec parameter that is being passed since it is saying  "incorrect codec parameters" but most of the parameters looks good.

also verified if all the required file permission are granted and those are good too

now I m unable to find the problem,

please help, thanks

```<code>Command:
/data/app/~~hyrHVcslcfdQcguX0rauRA==/<AppPackage>-QbDCul7FXU4tVniSDeP1Sg==/lib/arm64/libffmpeg.so -i /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video/VID-20220414-WA0010.mp4 -c:v libx264 -crf 23 -map 0:V -map 0:a? -map 0:s? -c:s mov_text -segment_time 26 -g 26 -sc_threshold 0 -force_key_frames expr:gte(t,n_forced*26) -reset_timestamps 1 -f segment -preset ultrafast /storage/emulated/0/Movies/splitVideoFolder/split_video%03d.mp4

Error:
ffmpeg version v4.4-dev-416 Copyright (c) 2000-2020 the FFmpeg developers
  built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
  configuration: --cross-prefix=aarch64-linux-android- --sysroot=/Users/admin/AndroidStudioProjects/android-ndk-r21d/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/admin/AndroidStudioProjects/Tanner/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/local/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang++ --extra-libs='-L/Users/admin/AndroidStudioProjects/Tanner/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-shared --disable-ffplay --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --enable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libass --enable-iconv --enable-libx264 --enable-gpl --disable-sdl2 --enable-zlib --enable-mediacodec
  libavutil      56. 55.100 / 56. 55.100
  libavcodec     58. 96.100 / 58. 96.100
  libavformat    58. 48.100 / 58. 48.100
  libavdevice    58. 11.101 / 58. 11.101
  libavfilter     7. 87.100 /  7. 87.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Video/VID-20220414-WA0010.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
  Duration: 00:01:30.53, start: 0.000000, bitrate: 671 kb/s
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m), 576x1024 [SAR 1:1 DAR 9:16], 539 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0xb400007727c64800] using SAR=1/1
[libx264 @ 0xb400007727c64800] using cpu capabilities: ARMv8 NEON
[libx264 @ 0xb400007727c64800] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
[libx264 @ 0xb400007727c64800] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=26 keyint_min=2 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
[segment @ 0xb400007727c28800] Opening '/storage/emulated/0/Movies/splitVideoFolder/split_video000.mp4' for writing
[segment @ 0xb400007727c28800] Failed to open segment '/storage/emulated/0/Movies/splitVideoFolder/split_video000.mp4'
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
Error initializing output stream 0:0 --
[aac @ 0xb400007727c65700] Qavg: 18220.703
[aac @ 0xb400007727c65700] 2 frames left in the queue on closing
Conversion failed!
</code>```

OwnerDisplayName: Tani Nagpal


问:
BRATA (Brazilian RAT Android) - is there any action and treatment from it?
As far as is known, with this virus, the attacker, in addition to stopping antivirus programs, can also block the system menu while working with it by the user. The virus copies system data and then stops whatever it wants?


问:
Does Google Nexus6 support 64bit android apps?
I have a 64bit android application with "minSdkVersion=20" (means it can be installed on Android 4.4 above).

My question is:

can this application be installed on Google Nexus6 with android 6 ( Marshmallow)??

Does Google Nexus 6 support 64bit apps at all??

Thanks.


问:
How to completely discharge a mobile device?
In case of laptops we should remove battery, then turn it off and hold power button for 15 seconds to completely discharge the motherboard. Whats the procedure in case of a smartphone or a tablet with non removable battery?</p>


问:
Are these random UID applications spywares?
It's been a year since I am ignoring all these Applications using my data and battery. At first, I thought they could be apps that I uninstalled a while ago. But, no, every third day they were showing up in logs with the exact same UID, and if I restricted their data, then the next day they still showed up with another UID but used the same data and battery. No doubt these are spyware.

If they're, then how should I get rid of these without a factory reset?


问:
how to stop Mobile shutting down on apps using as Battery dropping from 70% to 0% in Android 6.0.1
Question:- how to stop Mobile shutting down  on apps using as  Battery dropping from 70% to 0% in  Android 6.0.1.

I have formatted my External micro sd card as internal and  automatically while  installing apps it moves to external  sd card even Facebook and many common apps installed on micro sd card. but still many are on  internal memory.

i googled and founded that its may be battery calibration problem i tried to fully discharge battery  to 0% by restating  then again recharged it to  100% and i tried accu-battery app and many other apps for battery calibration but  problem  persisted of shutting down of phone at 70%- to 75%  while using if its kept  on standby  ie. not used it  sometimes dont shut down till 35%

From last 2-3 days  my android 6.0.1 OS mobile phone is restating even charging to 100% as its heavily used or many apps opened it just show low battery sound  in main OS window to 0% and immediately shuts down. After shutting down if i charge it on black screen it  shows 50%-75% battery remaining on keeping the charger on mobile  when i keep the charger connected  it  then never gets shut down... but the mobile back panel gets heated up drastically and on seeing in accubattery app the temperature of internal   sensor shows  battery temp  in red sign from 47 degree to 50 degree many times.

I have tried in safe mode its still shutting down ...i tried in maintenance or in boot menu mode its not shut down .... now i am confused

is due to  os android 6.0.1 crashing  :- (formatted -2-3 times still occurs)

is it due to apps moved or installed in external micro sd card crashing ( as in safe mode it works fine dont shutdown  in 36% of but apps moved installed in external card not showing in safe mode)

is it due to overheating of chips  or circuits

or its due to some particular app crashing ( i tried
is it due to some internal or external memory card sectors became bad due to formatting 3-5 times in this week )

is battery life is finished is battery failing ( but its working fine in safe mode on common system apps)

solution i think:

I think to format external sd card to zero level or low level formatting so that it become  fresh and clear which   can be done through mini partition tool

I think to format internal memory sd card through adb shell fstim  or dd if
dd if=/dev/zero of=/sdcard/filler but it doesn't make much sense on flash storage. Running fstrim  to clear unused space so that it gets refreshed and any junk saved can be freshen up

Any suggestions opinion are welcomed  kindly  give your technical  expert advice for solving the issues....

Thank you in advance for  reading answering and giving your precious time  and  precious technical advice or opinion


问:
How to prevent network connectivity after a phone restart before the NetGuard firewall starts blocking apps' traffic?
There seems to be a major vulnerability in Android: even when using firewalls these aren't active immediately after a restart.

The seconds before the firewall (NetGuard) starts can be used by apps that auto-start to send (exfiltrate) all kinds of data.

For example:

There apps that are installed by-default that can't be deinstalled even though I'd like to deinstall them and they are running by default and autostart which also can't be prevented (and I can see that these apps try to send data in the NetGuard protocols)

the keyboard "Gboard" could for example send everything one has ever typed on the phone including passwords within seconds, it also tries to "update your typing experience" from time to time even though it shouldn't and is blocked by NetGuard

How can this be prevented?

One way could be to always deactivate Internet before turning the phone off but that may not always work (for example when updating) and sometimes the phone could get turned off accidentally or because the battery goes empty.


问:
'adb pm hide' returns permission exception
Trying to hide security app since its deletion causes a softbrick.

'pm hide package.name' returns:

Exception occurred while executing 'hide':
java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS.

And some following lines of java errors.
Tried also: 'pm hide --user 0'
Tested the 'hide' command on several packages.
The phone is not rooted yet but perhaps su would do? I mean 'su pm hide'. This is MIUI global 12.5.5 on Redmi 9.

I want to hide security app to prevent kids from accessing Second Space.

Thanks!


问:
Why can't I get similar performance degradation with Monkey in different experiments?
I have configured experiments to test which among 10 launched apps impacts performance the most. But I can't make an objective comparison, because if I launch the experiment twice with the same configuration, I get very different performance degradation, in terms of memory occupied and launch times. This is a piece of code from one of the workload scripts. I set the seed to always generate the same events, I wipe the cache at the end of each experiment and clean up the apps before starting another, yet in two experiments with the same settings I get a memory occupancy that grows up to three times faster in one than in the other.

```<code>while true; do

adb shell monkey -p com.android.chrome -s 1 --pct-appswitch 100 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --monitor-native-crashes -v -v 1

sleep 1
adb shell monkey -p com.facebook.katana -s 1 --pct-appswitch 100 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --monitor-native-crashes -v -v 1

sleep 1
adb shell monkey -p com.google.android.apps.maps -s 1 --pct-appswitch 100 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --monitor-native-crashes -v -v 1

done
</code>```

Is there a way to get similar performance degradation in two experiments? Is it just me doing something wrong or is this something that can't be achieved because there are too many random factors at play?


问:
Can I run .odex file on dalvikvm?
As I can run a Dex file on dalvikvm through a terminal emulator (I'm using termux or adb shell
/system/bin/dalvikvm -cp /path/to/classes.dex classname

Which runs successfully and I noticed it generated a directory oat which contains oat/arm64/classes.odex and classes.vdex file.  odex is faster than Dex so can I run it directly every time without recompiling dex to odex?

Title: Can I run .odex file on dalvikvm?


问:
How to use only part of the screen?
I am working on a blackberry-style keyboard attachment for any Android phone (https://github.com/Dakkaron/Fairberry).

For the next revision, I'd like the keyboard to be able to slide over the screen, so that it is roughly in the same location that the virtual keyboard would usually cover. I want to do that to get a more comfortable typing position.

But since the keyboard covers the screen, Android shouldn't use the screen area below the keyboard.

Before Android 11 I could just call wm overscan from some automation tool like Automate or Tasker. But in Android 11, they removed that.

Is there any way to achieve that?

Constraints

Should work on Android 11+, or at least 12+

Would be better if it doesn't require root

Should not require a reboot, since the keyboard can slide out to reveal the whole screen

Nav bar doesn't have to be accessible, since I can remap the functions to the phyiscal keyboard.

Things that I looked into so far:

Keeping the virtual keyboard open even when no input is selected. I couldn't find a way to do that.

Enlarging the navbar, so that it covers the area below the keyboard. I only found a solution that requires root and a reboot every time the navbar size changes.

Keep split screen open. But since only the bottom app is swappable, that means, you are stuck on one app. Also doesn't work for the launcher and causes issues with many apps.

Title: How to use only part of the screen?


问:
adb logcat - monitor hardware accesses
Is there a way to show hardware messages (low level, in particular, I’m interested to see messages related to audio, camera, and microphone) using adb logcat?

In my experiment regarding the microphone, I developed an app that records audio for Pixel 3a with Android 8. So I run the recording, and once terminated execute this command: adb logcat -d -v uid -b all. My expectation is to find some message that indicates access to the hardware, in this case to the microphone.

Title: adb logcat - monitor hardware accesses


问:
adb command to connect phone to known bluetooth device(my headphones. using it's name or MAC e.g)?
I'm going to automate the reconnection of the headphones between my computer and phone based on events on the phone and computer.
how can i tell my phone (using adb) to connect to the known headphones ?
now i can connect/disconnect it to my pc. and on phone i can on/off bluetooth and get list of bonded devices..

i know its mac if needed..
now i can [dis]connect my phones from pc using:

bluetoothctl connect [MAC] and bluetoothctl disconnect [MAC]

and line in bash script if [[ $(bluetoothctl info [MAC] | grep "Connected: no") == "" ]]; to get state.

i'm using adb shell settings put global bluetooth_disabled_profiles 1 to turn phone bt on and "0" at the end to turn off(to disconnect from headphones e.g.).  using the

adb shell "dumpsys bluetooth_manager | sed -n '/Bonded devices:/,/^$/p'"

command i'm getting bt devices list with mac, supported bt profiles and some other info that i cant identify. will it help me to write a command to connect headphones to phone?..


问:
How can I see the numpad option(s) I typed when on a call, after I made the call?
Some customer service phone numbers ask the users for type some option (e.g., "press 1 for making an appointment").  How can I see the numpad option(s) I typed when on a call, after I made the call?

I don't see it on the phone history of the built-in phone app:

I use a Google Pixel 6 with Android 11.


问:
Set alarm for every other day?
In the default Android clock app, you can set an alarm for specific days of the week, but not a more flexible schedule such as repeating every other day or only the third Thursday of the month.

Is there a better alarm app that offers that flexibility? Using the calendar allows more sophisticated repetition but only notification, not alarm functionality.

Title: Set alarm for every other day?


问:
How to get the Wifi password from a previously connected network?
I have a Xiomi 10T Pro running Android 11. There is a WiFi whose password I want to know. My device is registered with that WiFi so I have no problem connecting to it BTW.

I am aware that I can choose to share my Wifi credentials from Settings. They are shared in the form of a QR code. That said, in my device I can share credentials for only those Wifi networks to which my device is connected to in real time.

This would not have been a problem except that the Wifi whose password I want to extract is hosted on a router that is located in an another country. So getting access to that real time Wifi is no longer feasible. My device is not rooted either.

So what can I do get the credentials for that Wifi without connecting to it?


问:
Weird case, only internet working, calls and messages are stopped
My mobile is Moto G4 Play and has a Jio Reliance SIM in it. I am receiving full mobile networks and I am able to browse internet. But, I cannot receive any calls and messages. I cannot make any call and send any messages. I have a custom ROM installed. My mobile was working fine 2 days ago. But, when I remove the SIM and inserted it again, the problem starts as I mentioned above.

My settings are mobile data enabled, roaming enabled, VoLTE enabled (enhanced 4G LTE mode), network automatic select network, and jionet APN.

I inserted this SIM into another device and was working fine. I also did a factory reset but didn't work. And when I make a call, my mobile networks are lost and come back again. I also installed Jio 4g Voice app but am still not able able to make calls. If someone tries to call me, my mobile is called as switched off. I also changed the SIM slot but nothing was solved. I don't know what's going on.


问:
How to enable both "diag" and "rndis" port of Android?
I have One Plus Nord device which is rooted using Magisk. I am able to enable the usb tethering(rndis) and capturing modem logs(diag) separately using the libusb program. But the requirement is to capture the diag logs when the phone is connected with laptop and usb tethering is enabled. Following are the commands used to enable the ports:

To enable "Usb Tethering"

adb shell su -c "setprop sys.usb.config rndis,none,adb"

To enable the "Diag"

 adb shell su -c "setprop sys.usb.config diag,adb"

I have tried to enable both using different set of commands like

 adb shell su -c "setprop sys.usb.config rndis,diag,adb"

 adb shell su -c "setprop sys.usb.config rndis,none,diag,adb"

 adb shell su -c "setprop sys.usb.config diag,rndis,adb"

etc.. bot none is working.

Does anyone have knowledge of how to use both together or any hint which can help in achieving the goal?


问:
Do I need both Xiaomi's official unlock app and vbmeta.img for installing an AOSP GSI?
I have a Xiaomi Redmi Note 11 phone, and I am planning to install an AOSP GSI from treble_experimentations.

The documentation for this device in treble_experimentations states that these are the steps required to install the GSI ROM:

```<code>fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot reboot fastboot
fastboot flash system your_gsi_rom_of_choice.img
fastboot -w
</code>```

I am guessing, for the vbmeta.img, I am supposed to generate an empty vbmeta.img file. And I understand that is required for the system to boot the GSI ROM that I will be installing (otherwise verification will fail).

Looking up on the internet, though, I can see many posts/references about Xiaomi's official unlock tool (which unfortunately only runs on Windows).

My question is: do I need both steps? (i.e.: first unlock with Xiaomi's tool, then flash the empty vbmeta.img) or are they exclusive? (i.e.: I could flash the empty vbmeta.img without unlocking with Xiaomi's tool and I should be able to flash the GSI).

Also, if they are not exclusive, what does Xiaomi's tool do or why is it required? If flashing an empty vbmeta.img is enough, why do people seem to recommend Xiaomi's app in many forums?


问:
I can't get boot screen on proscan tablet without visible volume keys
I watched tutorial on youtube however it didn't cover this model proscan PLT1074 that has no volume rockers. It does not turn on as the video. It will turn on when only the power is held down. Once the reset is pressed at the same time it doesn't.resulting in not getting to the proscan start up screen and then to the next screen with the android symbol in the center and followed by the screen that has the wipe/erase all data option. Then the  restore factory settings.option. So we have no password (locked out)   and we need to restart the tablet from fresh (factory reset) by no volume keys  ( I mean there are NO VISIBLE VOLUME BUTTONS ON THE EXTERIOR OF THIS MODEL)  I am unable to progress to the recovery flash mode and can,t boot either.</p>


问:
Samsung Galaxy J7 Core non responsive to back button and menu button
I am using Samsung Galaxy J5 Core. I accidentally clicked on an advertisement on a site, which caused the back and menu buttons to not respond.
I've tried using two Security Antivirus and scanning shows no viruses either. What is the cause of this problem?</p>


问:
Privacy of in-app purchases: how much user data does the app developer get?
When a you do an in-app purchase like buying a feature or subscription the the app and the developer is getting data on your purchase.

I searched a bit the Google documentation but I wasn't able to determine what user-data from the used Google-account used by the purchase is made accessible to the app and it's developer.

Technically it should be possible to implement this whole process in a way that the app and it's developer does not get access to any user-related data like Google account e-mail, user name or similar data. The app and it's developer should only get the data what item/subscription you have bought and may be a random user-id only Google can relate to your account.

Is there any official documentation available about the privacy of in-app purchases like what user-related data is shared with the app and it's developer?


问:
How is "rooted debugging" allowed on a non-rooted phone?
I just installed Lineage 18.1 (Android 11) on an old phone.

Per the Lineage website, "Lineage is not rooted by default."

However, I am surprised to see the option "rooted debugging" is available in developer options and I can switch it on.

So my question is, how is it possible for me to allow rooted debugging if the phone is in fact not rooted.

What am I not getting?

Thanks!


问:
Xiaomi Redmi Note 4 mido userdata partition type / data recovery
I am doing data recovery on a Xaomi Redmi Note 4(x?) [mido] and I have finally gotten a flash dump ( the screen is scuffed and no perms have been set ( no adb,oem unlock, storage access ))
Only way to recover the data would've been to dump the userdata, loopback mount it and copy the files. simple enough, done a few.

except no. the tool I used to get the partition table and flash dump says

```<code>userdata: Offset 0x0000000148082000, Length 0x0000000d47779e00, Flags 0x0000000000000000, UUID 0f772dd9-b55d-1184-ecf9-bb352eb97272, Type 0x1b81e7e6, Active False
</code>```

The 'Type' part is what confuses me most, it's twice as long to be a gdisk partition-id-thing and far too short to be a GUID
This wouldn't matter if I could mount it to begin with, but thing is, binwalk reports that at offset 0xDCDB29 there is a 'VMware4 disk image'.

I try to mount this via qemu-nbd but no ext filesystem ( or others for that matter ) is found

does the mido do FDE even without a passcode? the phone doesn't have one I forgot to mention...

And if that's the case, how do I even decrypt the data?
I've asked on a couple other forums for help already, nothing yet.

Honestly any method / guide to broken screen recovery on a full stock android is much apreciated!


问:
Why is a vendor blob needed to build an Android ROM?
Why do we need a vendor blob in order to make our custom Android ROM from the AOSP project?

As far as I know, the vendor blob contains the required proprietary drivers.
But these drivers we could have used as modules in the kernel itself, then why do we use vendor blob as a separate partition?


问:
Where is the path to to the Google Chrome sqlite database on Android?
It seems like the known methods for copying open tabs out of Android Chrome no longer work (a debug interface was removed) and I'd like to see if I can squeeze the open tabs from the sqlite database.

Does anyone know where in the Android filesystem Google Chrome stores its database?


问:
Dropbox camera upload wrong file name
I often take pictures with a mobile phone A and send them via Bluetooth to mobile phone B. On mobile phone B, I move the pictures to the album gallery, such that these pictures are uploaded to my dropbox automatically with dropbox camera upload.

Sometimes, when I do this, the file names of the pictures in my dropbox are incorrect. For example, if I take a picture on 08.05.2022, 11.01.08, then the file name on both devices is IMG_20220508_110108. I sent the file via Bluetooth on 09.05.2022, 10.49.33 and the filename of the picture in my dropbox is 2022-05-09 10.49.33, i.e., the date when the file was sent via Bluetooth. Also, on mobile B in the photo app, the respective picture does appear at 08.05., but at the end, i.e., not sorted correctly. How does this happen and how can I avoid this?

Title: Dropbox camera upload wrong file name


问:
How to recover data from an erased android SD Card
Last week when my phone(Galaxy Note 10+) was stolen, I logged into my Google account from my laptop and chose the option to erase the device. The cops managed to catch the guy and retrieve my phone but by that time I had lost all the important stuff on my phone and my SD card. I tried to recover the data from my card by connecting it to my laptop (Windows 10) and using software like EaseUS, Recuva but both didn't find anything to recover. I don't care about anything but family pictures on my phone/SD card which were not synced to any cloud. I would really appreciate it if someone could help me with some suggestions on how to recover the erased SD card. I am also new to this forum so please forgive me if I am not following the best guidelines for asking a question and please let me know if there is any other information I should add</p>


问:
this isn't a supported file type - Images, movies, pdf files, voice messages cannot be opened after a while
A friend has a Nokia 7.2 (updated to Android 11) which has a problem opening images, movies, pdf files. When she makes or receives a photo or movie, she can open it normally, but after a while she gets the following message: this isn't a supported file type. So it looks like an app scans the system for media, then does something to it so it can't be viewed again.

She did a factory reset, but the problem persists.

Do you have any ideas how this works? Is this a virus? Did it infect the factory-image? How can this be fixed?


问:
Grant shell user permissions to apps
Using adb, one has a lot of additional permissions, that apps running locally on the phone have.

Specifically, I am interested in the wm size command.

Is there a good way to allow apps access to those permissions?

The only way I know of, is to use adb tcpip, so that apps can connect to the adb server running on the phone. But afaik, thata wouldn't survive a reboot.

Title: Grant shell user permissions to apps


问:
Android Profiler does not show processes on rooted device
I try to create a memory profile for a specific app using a rooted device:

The app is not debuggable

The device is rooted and connected via USB

USB debugging is enabled

The device is shown in the android profiler menu

I use Android Studio 2021.1.1 Patch 1

My problem: My app is not listed in the attachable processes. In fact, the only process listed is, for some reason, Google Maps.
I tried to follow this tutorial, where it says that "The Android Profiler lists all running processes, even if they aren’t debuggable if you’re using the Android Emulator or a rooted device."


问:
Tweak rooted Android 12 to access SD card files from normal apps
I recently bought a Samsung Galaxy S20 FE with Android 12, and I quickly noticed that many applications were unable to access files on the SD card. For instance, I used to access local HTML/MP3 files from different browsers or music players. On my new system, these applications can see folders and navigate through them, but can not open or even list any regular file. There is a few exceptions, e.g. Total Commander or AIMP.

Note that the phone is rooted with Magisk.

From what I understood, this is a policy change from Google which appeared on Android 11 (API/SDK 30): https://www.xda-developers.com/android-11-all-files-access-permission-form/

I tried a few solutions I could find online, for instance:

pm grant com.XXX.YYY android.permission.MANAGE_EXTERNAL_STORAGE

appops set --uid com.XXX.YYY android:legacy_storage allow

This is not working because, probably, the application (i tried with Opera) is not requesting this permission during the installation. Also, most of the solutions I could find are related to apps under development, not apps installed from the store. E.g. https://stackoverflow.com/questions/62782648/android-11-scoped-storage-permissions

A workaround I could find is to move all the files in /storage/SD_CARD_ID/Android/data/com.XXX.YYY/files, however, this means that I have to copy these files each time I install a new app and for each app I use, which is quite stupid if I have GB's of MP3 or other media. This is also quite tedious to enter the full path in the URL bar as it is not possible to navigate to or open this folder easily.

I am therefore trying to find a way to enable the permission by default for all apps, or at least find a simple way to do it via the GUI. For instance, I tried to tweak /etc/permissions/platforms.xml with some more or less random tries as I could not find any documentation about the syntax of this file, but nothing worked.


问:
Interaction Audioserver and application
There is a way in order to understand who is interacting with audioserver?For instance if there is an application that uses microphone, is there a way to understand if an interaction between audioserver and application is occurred? And in particular what kind of interaction should be (socket , pipe , shared memory, etc….)?</p>

Title: Interaction Audioserver and application


问:
Stuck on ,,Phone is starting" Screen after rm /data/system/locksettings.db
I got a phone with custom rom and root and usb debugging activated.
I forgot the pin so I tried this idea from @Max : Reset PIN from adb shell

adb reboot recovery

(wait for reboot)

adb shell rm /data/system/locksettings.db

and reboot into normal mode with :

adb reboot

I followed the commands and yes the lockscreen is now gone,
but the "Phone is starting" screen won`t go away, normally it stays for max. 5 seconds.

If the phone really needs to be factory reseted it´s okay, I just found out that I still have access to all the files via computer.

I want to ask is there any command/solution to solve this problem?

best reagards bam


问:
cyclic bluetooth issues using a Samsung Galaxy Tab Active 3
Anybody any idea what is the reason for cyclic bluetooth issues using a Samsung Galaxy Tab Active 3? The connection shortly breaks/drops/becomes very slow after 3 seconds before recovering after 1 second. So I get:

exactly 3 seconds of flawless Bluetooth

exactly 1 second of broken Bluetooth

exactly 3 seconds of flawless Bluetooth

exactly 1 second of broken Bluetooth

...

Background:  We developed an Android App for the Samsung Galaxy Tab Active. It connects to a self-made Bluetooth sensor and communicates with that sensor non-stop at maximum bandwith. Now we are migrating to newer hardware and everything is looking good except for this one major issue. Some component interferes with bluetooth every 3 seconds. It probably does not matter too much for most users, but when streaming data at maximum bandwith it is a dealbreaker.

We tried many things:

Does not help:

disable Wi-Fi

disable "improve location accuracy" using Wi-Fi and Bluetooth

disable Covid scanning

disable nearby device scanning

no bluetooth "app" to reset

Helps:

Fully disable location

Do you have any idea what is going on here and how to work around this issue?


问:
Google Pay country not supported
My Google Play country used to be France. I changed it to USA, and can use Google Play myself, but I can't set up Google Play Family Library: "Country not supported. Confirm the country associated with your account in Google payments > Settings."

I have two payment methods, but one is expired. The expired card might belong to a relative in France, but I can't find a way to delete the expired card, only update its expiration date.

Note: my address under Payments Profile is a U.S. address.

Note: I see a link to "Close payments profile". If I do that, can I keep my gmail account and open a new payment profile associated with it?

Title: Google Pay country not supported


问:
Is there a way to make the share menu suggestions more useful?
For instance: wanted to share a reddit link. So I hit the share button in Relay (reddit client). The first four suggestions:

Signal, a friend that I just texted a few minutes ago

Telegram, my kid

Telegram, a person I've texted exactly once and it was 2 months ago

Telegram, a person who I've texted 4 or 5 times but haven't used Telegram to message them in 5 months

Meanwhile there's a person I message on Telegram about 20 times a day and they are not in the suggestion list.

Same results sharing from Spotify so I think it's a system menu, not an app-specific menu.

Is there some way to reset these suggestions? They seem worthless/broken. It was the same way in Android 11. Surely there's some system process that's updating these values.


问:
Firefox "Open links in apps" blacklist?
I'm generally OK with urls opening dedicated apps, but there's 2 exceptions:

```<code>youtu.be
youtube.com
</code>```

i don't want these 2 urls to open in the dedicated youtube app. is there some way to blacklist these 2 urls from "Open links in apps" ?

in case you wonder, i have 2 issues with the YouTube app,

#1: there's lots of ads, and because i'm banned from YouTube (since 2018, but seems its a lifetime ban) i am not allowed to buy Youtube Premium even if i wanted to. Firefox supports uBlock Origin, the youtube app does not.

#2: the YouTube app does not support playing in the background/pure audio, while Firefox does.

Title: Firefox "Open links in apps" blacklist?


问:
How to fix tecno spark 7 PR651 struck at boot animation?
I was trying an experiment on bypassing factory reset protection(FRP) on my Tecno Spark 7 F6317 PR651 Android 11. I bypassed the setup screen enter chrome and download Google Account Manager(GAM) and FRP bypass apk and install them, opened frp bypass apk and enter the bypass google account after that I try to go back to the setup screen like we normally do on Android 10 but unfortunate for me the phone rebooted by itself and get stuck at the boot animation.

And badly it refuses to enter recovery mode. I have tried if not all but most boot series:

Volume Up + Power Key

Volume Down + Power Key

Volume Down + Power Key then release Power Key

Volume Up + Power Key then release Power Key

Note: It is running on Unisoc(SoC) Processor


问:
How to override (or a least view) the RDNSS ipv6 DNS? (root)
As far as ipv4 DNS is concerned, Android (at least version 9) can override default DNS settings fairly well.

Firstly, it is possible to set net.dns* to the desired value.

Secondly, iptables -t nat works, and lets the user redirect the packets to port 53 anywhere required.

With ipv6 however, things are not that easy. Android 9 (at least mine) does not support  ip6tables -t nat. Moreover, Android sets some internal DNS-related setting when obtaining the DNS address from SLAAC/RDNSS, which is not reflected in getprop, and insists on using it, regardless of what is in net.dns*.

The only tool I am aware of, that might be somehow useful, is ip6tables -t mangle, but it still seems quite limited.

How can I override (or at least view) the default DNS address obtained from RDNSS?


问:
Take front/selfie photo if wrong password is input on the lock screen
Operating systems like iOS include the system that when another person tries to unlock your phone without your permission, it takes a photo of that person and warns you.

Is it possible to have this on Android?


问:
Why notifications sound is controlled by media sound settings?
I have a Samsung Galaxy S9+ with Android 10 and I have the following problem - in the sound settings, I have media and ringtone set to halfway, but notification and system sound set to 0. But I can still hear notification sounds, and they are as loud as I set the media sounds settings. Why are notification sounds controlled by the "media" and not the "notification" setting? How can I fix this, to have silent notifications, but still hear music?</p>


问:
Restore data from Pixel 3a to Galaxy S22
I am trying to restore data from a Pixel 3a cloud backup to a Galaxy S22. Both are running Android 12 with the May security update. When I go to restore, it says, "This backup is from a device with a newer version of Android. Some data may not restore to your new device." Is there any way around this?</p>


问:
Do Google & OEMs always have backdoors in Android devices?
In a helpful comment on this Android Stackexchange question, prominent contributor alecxs states:

google and OEMs will always have own backdoors in propritary [sic] blobs for baseband/modem etc - you are already hacked at moment of using smartphone

I have much respect for alecxs, and they have provided helpful answers to my questions in the past.  So when alecxs writes something I don't already know, I pay close attention and try to learn form it.

Is it accurate that Google and OEMs always have backdoors in Android, and therefore one should consider any Android smartphone to be already hacked?

If so, why does the baseband/modem require such a backdoor?


问:
Is there a way to unlock my son's Galaxy Tab A (SM-T580) with Family Link?
My son has not used his Galaxy Tab A (SM-T580) for months and he has forgotten his 3x3 unlock pattern/password.  The tablet is linked to Family Link on my Samsung phone.  How do we access his device?</p>


问:
Is it possible to allow Private Number or Hidden Number calls past DND?
Background: My wife and I are foster parents, and our sponsoring agency uses its on-call phone system to call foster parents for emergency placements. The system has a single inbound number that forwards calls to the cell phone of the case worker who's on call that week, but for whatever reason* outbound calls placed from that case worker's cell come across with CID hidden. (I've seen both Private Number and Hidden Number, which I assume are carrier-specific variants.)

*I'm aware of the personal privacy and work/life balance reasoning behind the decision. I just don't know why, instead of hiding the CID, they don't set the CID to the inbound number.

Context: I've got a OnePlus 9 Pro 5G that was recently updated to Android 12. During the workday (8A-5P) I have Do Not Disturb enabled, with calls from Starred Contacts allowed. I also have the "2 calls within 15 minutes" rule enabled, but I don't know how that works with non-CID calls.

Question: Is there any way to allow non-CID calls past the DND feature?


问:
Disable auto-rotate does not work in certain apps
In android 11 I disabled auto-rotate of the screen by setting to "off" Settings > Display > Auto Rotate.

however in certain apps that doesn't seem to make any difference and the screen is still rotated when I move the phone orientation

I assume that's because the app developer has decided to override the android auto-rotate setting, or would there be any other reason for this behavior?

Alternatively is there a way to set the gyroscope manually so I can set the orientation of the phone without it being automatically detected


问:
Using a Partitioned drive on an Android TV
I've got a partitioned drive - A USB drive, where i've got 2 of the partitions formatted ext3, one of the partitions as a FAT32, and the last one as FAT12. I wanted to access the FAT32 partition using an Android TV, however, the TV gives an error message "Unrecognised USB". Is there a way I could access individual partitions using the TV?

(PS: It is a MI TV)


问:
Can somebody reset my phone without opening screen lock?
Suppose somebody took my phone and reset the phone ( all files will be deleted like factory reset ) without knowing my screen lock password or even opening my phone.
Is that possible? if possible then how can i prevent that technically?


问:
Enable ScreenCast from ADB - TV
I would need to be able to remotely control and monitor a TV running Android 9.0. In order to do so, I have been using WebKey without major issues...
One problem is happening with one TV model is that it says that screencast is not enabled and therefore, WebKey is not able to get video from the screen.

Is it possible to enable this option from ADB (eg. modifying some configuration file)?

I have been looking around the filesystem and trying with "getprop", "settings" but could not find a possible solution or workaround. I have also tried using scrcpy and it works fine using ADB over Ethernet in the same LAN (both video and control works ok).

Title: Enable ScreenCast from ADB - TV


问:
Taking screenshot inside Android TV apps or while watching TV channels
I can take screenshots of the screen of my Android TV (Philips device, Android 9) with an external keyboard using the PrintScreen key, and also with a button remapping app. It works just like on an Android phone: a white frame appears on the screen border, it fades away and a PNG file is saved in the Screenshots folder.

But as opposed to phones, on Android TV it only works on the home screen and on the Android menus. But when any app is open or when a standard TV channel is being reproduced, it doesn't work (no white frame, no click sound and no PNG file)

Is this by design or can it be configured to behave like on Android phones?


问:
How to create OTA zip and update OTA zip file into target device (android11)
I am working on Android 11.

Cloned & compiled source code , all images are generated.

Now I am trying to generate OTA zip file and update into target device.

Can you please help me to generate OTA zip(Major & Minor) file and update procedure or steps for Android 11.

Thank you.


问:
How did my work profile get on my phone?
This is a personal device.  Its never been tied to any employer. I've only had it around 6 months, purchased through carrier website, outright/ unlocked. I'm absolutely lost and I cannot uninstall. It just tells me I can't preform that and to contact my admim.</p>


问:
Samsung Galaxy J3 2017 SM-J330FN nandroid backup
I installed: Samsung_USB_Driver_v1.7.23.0, opened: odin3_v3.14.4 and started Odin 3. In AP I uploaded the file: twrp3.1.1-1_J330. I booted my Samsung Galaxy J3 2017 SM-J330FN in download mode; I connected it to the PC via the data cable and clicked START in Odin 3. The smartphone restarted in mode: TWRP. I tried to backup the system to SD card with TWRP, but every now and then it gave me errors and in the end it appeared: Backup Failed. Where is the mistake? Can someone help me?
Thanks</p>


问:
Why can't I move anything to my adopted storage SD card?
I have a Samsung Galaxy Tab S6 Lite WiFi (gta4xlwifi) running Lineage OS 19, rooted with Magisk. I have just inserted a brand new 256GB SD Card and formatted it as adoptable storage. The SD card is nearly empty (i.e. lack of free space is not an issue). When I set it up, it showed me the following screen that was supposed to allow me to copy all my files to the SD card, which is exactly what I wanted to do:

So, I tapped the "Move content" button, and... nothing happened. The button flashed a bit, indicating that my tap was registered, but the device just remained at this screen and as far as I can tell, no files were moved. Similarly, I went into the app list in Settings and tried to change the storage location  of one of my apps, which took me to a screen similar to the one above with a "Move" button. Again, tapping this button registered the tap but did nothing and simply remained on the screen.

Notably, I actually can forcibly move apps to the adopted storage using Titanium Backup's "Move to Adopted storage" option under special features. However, Titanium Backup doesn't have any way for me to move my non-app-associated files (i.e. the 39.44 GB in the above screenshot), so this doesn't get me what I want.

So, it seems like my tablet has allowed me to set up adopted storage and then staunchly refused to move anything onto it (except via Titanium Backup). Am I missing something? Is there something I have to do to make the "Move content" button actually work? How can I convince Android to let me actually use my SD card to store files?


问:
Ethernet Calling on Android
We've been using iPhones for as long as they've been out, but they've recently began blocking features that we use.  We're looking for a change.  Can you make calls and/or text via ethernet connection on an Android?</p>

Title: Ethernet Calling on Android


问:
How to sign in with google on an app under a restricted user on a tablet
We have a tablet for our four year old. We created a restricted user for him to limit his access but are running into an issue. We downloaded Duolingo ABC and I granted access to the restricted user. When we open the app it asks us to sign in with our Google account. This works fine for a non-restricted user, but when we try on his restricted account it errors out. Is there anyway to log into an app via Google from a restricted account on a tablet?</p>


问:
How to transfer files from semibricked android via adb
I have a OnePlus Nord and recently updated to android 12 after a few days my phone screen became suddenly black and phone is vibrating on its own. I tried restarting it but it turns on but shows black screen and is still vibrating. I do not wish to format it as it contains many important data and I forgot to take backup while updating. But due to luck and software bug it has adb enabled and it doesn't require confirmation even though I had never enabled developer options. So I tried copying files from storage/emulated/0/ but it is empty so I switched to /data and when I type ls it shows permission denied is there a way to access it without formatting the device and safely copying all the data to pc</p>


问:
Can't unlock my Acer B3-A30 tablet's bootloader
So I have an Acer Acer B3-A30 tablet, which is stuck on the Acer logo.
I'm trying to unlock it's bootloader (with fastboot mode), so I can reflash it (with a stock rom), but it just shows an error saying "Failed to unlock bootloader."
I've checked both of the commands fastboot oem unlock and fastboot flashing unlock, but they just don't want to work. I haven't installed root or any system modifications, this is my first time ever doing so.
It would be even better, if someone told me how to fix it without bootloader unlocking and these other stuff.


问:
Is there a way to transfer many files at once to my SD card through an USB port?
I've been having some trouble transferring files to my SD card on my phone through my USB cable because they start getting corrupted after some point.

After some research, it seems like USB doesn't deal well with many files transferring at once. Since I have way too many files (about 7000) to transfer, it is unviable for me to copy them in small batches.

So I am looking for a way to transfer them all through my cable in one go without corrupting them.

Is there any way to do this? Maybe a program that transfers the files one by one automatically for me?


问:
Restore deleted Calendar Storage app
The Calendar Storage app is missing and it's preventing me from using the stock calendar app or any custom calendar app. I've tried re-installing the stock calendar from apkmirror.com, but it immediatly closes when I try to open it. When I try to open Business Calendar for the first time, it asks for permission to access my calendar and then says:

"Calendar Storage disable
Your calendars and events can't be displayed because Calenda storage has been disabled on your device.
Turn Calendar storage back on in Settings to use this app."

There is an "Enable in Settings" button which takes me to an App Info page for Calendar Storage. However, the Permissions section is grayed out and it claims to not be disabled. Also, Calendar Storage isn't listed in Settings > Apps like it is on my other Android phone.

I probably accidently deleted it while de-bloating the phone with the "Uninstall System Apps" app. I intended to remove the stock calendar since I wanted to use business calendar instead. I'm running Lineage OS 19 (Android version 12) and am rooted. I'm hoping to avoid re-installing to fix this issue. I realize the calendar data is probably unrecoverable, but that isn't important.

I've tried finding APKs for Calendar Storage and installing them, but haven't found one that worked yet:

https://www.apkmirror.com/apk/lineageos/calendar-storage-2/calendar-storage-2-11-release/calendar-storage-11-2-android-apk-download/download/
This one is labeled for Android 11+, but fails to install with, "App not installed as package appears to be invalid".
When I try to install it with APK Mirror Installer, it fails with "The new package has an older version code than the currently installed package".

I've also tried using Titanium Backup to backup an older phone's (Lineage OS, Android 9) Calendar Storage app and restore it on the new phone, but the restore process hangs indefinitely.

Besides the question of how to fix this problem, I'm wondering if anyone with Lineage OS 19 could send the current version of the Calendar Storage APK, as I can't seem to find a copy online.

Phone Information: Google Pixel 3a XL

ROM:Lineage 19.1 2022-05-07 Bonito.
Installed using lineage-19.1-20220507-recovery-bonito.img (source)

Android 12.1

Title: Restore deleted Calendar Storage app


问:
Is my processor really what it should be?
So I was wondering, I just got Iqoo (a Vivo brand) phone and it is supposed to have processor Snapdragon 778g. And now when I go to Settings>About Phone, I see the correct processor name. Ok? But the issue is that when I check my hardware info through any other third party app (and believe me, I have tried multiple apps) then name of the processor that I see is completely different..... Is this normal? For phones to have a different processor?? I need some guidance, so please help. Also check the attached images......
The info on GPU is as follows-
Vendor:
Qualcomm
Renderer:
Adreno (TM) 642L
Maximum Frequency:
550 MHz

Gracias


问:
Does Android Lolipop 5.1 get encrypted by itself upon first boot?
My doubts are,

Would an android device shipped with Lollipop 5.0 get encrypted itself upon first boot? I saw a lot of blogs saying Lolipop does not come with default encryption but in the official link it says that devices get encrypted by default upon first boot — too many confusing blog articles. What is the difference between default encryption and encryption on first boot?

Most blogs say we have to manually encrypt the Device but I don't understand — if it's already encrypted upon first boot, then why encrypt again manually? What is the advantage?


问:
How to create a 6Ghz hotspot on a rooted Android?
Newer phones now have WiFi 6E, so is it possible to create a 6Ghz hotspot?

I have a rooted Pixel 6 and a laptop, they both have WiFi 6E, so is there any way to create a 6Ghz hotspot?


问:
Regarding a data recovery app from a play store
I used one of the free data recovery app from the play store named Photo recovery app by HappyAppsFree on my old Samsung Galaxy S3 which I used after 2 years. I am worried as the privacy policies mentioned were not clear enough to figure out if my recovered data is also saved somewhere on the server side where developer can access it? I also tried to contact the developer on the given email address but no response. It's almost one year now that developer also updated the app but never responded to such questions.

My question is are such apps allowed to save the user's sensitive data we stored using their apps? The images recovered were of very poor quality.

Phone used was Samsung galaxy s3(most probably the old android version)

App used : https://play.google.com/store/apps/details?id=com.photo.recovery.deleted.video.recovery.recoverdeleted.photo


问:
Spotify can't be restarted from Bluetooth
I'm listening to Spotify with a BT headset, and once I remove the headset from my ears, it pauses the playback automatically. After a couple of hours, Spotify disappears from available players, and if I put the headphones back, it can't restart the playback.

When Spotify goes inactive, I got this in logcat:

```<code>AvrcpMediaPlayerList: onActiveSessionsChanged: number of controllers: 1
</code>```

Note: I have another player so in case there is also Spotify, it should be 2.

I have to unlock the phone and start the playback manually.

Is this a bug? Has anyone found any solution?


问:
How to create 5Ghz hotspot on a rooted Android that doesn't give built in 5Ghz option?
My Galaxy S8 did have a 5Ghz option on the stock rom, but Lineage OS 19.1 based on Android 12 doesn't have the option to host a 5Ghz hotspot.</p>


问:
What to do if malware not gone after complete factory reset?
I have a virus in my Samsung galaxy s21a, and even after a complete factory reset phone doesn't recover. What would be other solutions to fix it?</p>


问:
Problems booting into recovery magisk (Android 12)
I rooted my Samsung Note 10 running Android 12/One UI 4.1 using Magisk in recovery mode a few weeks ago, however since then I have only managed to successfully boot with Magisk once. I have tried many different timings of holding the power button and volume up button simultaneously to no avail.

What I've been told is that the timing is to wait for the last warning splash screen and then let go, so I tried that a few times and it didn't work.

The one time it did work I held the buttons until the SAMSUNG logo splash screen (after the warnings) when the phone vibrates, then it shows something along the lines of

```<code>[PDP]
back-up: fail
setup-wizard: success
</code>```

but when I go to the Magisk app it shows N/A in the installed field and the su command in terminal doesn't work.

I'm trying to find out if there's a way to reliably boot into Magisk or if there's anything I'm doing wrong.
Thank you for your help <3


问:
Media Storage app taking too much space
I have been using Vivo Iqoo Z6 Pro with 8GB base RAM and 128GB storage for about a week now. This app called Media Storage used to take up almost no space on my phone. And just four days ago, I noticed that the app had taken about 5GB of space. I wasn't so sure then, so I waited a bit more. And today, the same system app has taken up more than 10GB of my space. I don't know what to do. I can't even reset it.

 .

I connected my phone to my laptop and cleared the media module folder through ADB (adb shell pm clear com.google.android.providers.media.module), but still, the app shows no signs of taking less storage.

How do I clear the app data? Please help. Btw my media files and photos take up different storage, they have nothing to do with this.

Title: Media Storage app taking too much space


问:
Boot into recovery without Volume Key
My Android 9 Phone is stuck in bootloop. It is rooted.
My phone Vol Down Key is broken.

Is there a way to boot into recovery without using vol button.
(similar questions only had device specific queries or working phones to use adb or apps)

Title: Boot into recovery without Volume Key


问:
Remotely Enable USB Debugging on my Samsung S8+ when the screen is dead
My Samsung S8+ recently had its screen die. I am trying to use Vysor to mirror the screen onto my laptop, but I cannot turn on USB Debugging due to the dead screen.

Is there a way to remotely enable USB Debugging? Or is there a way to bypass the requirement altogether?


问:
Converting Long Scroll Screenshot to PDF on Android without white background
I know there are lots of android apps that are able to convert images to PDF, but the problem is all of them, mostly, include the white background. I've tried the online version as well, but still the same. Suppose I have long scroll screenshot that I took with a phone, and when I convert it using those apps, it looks like the screenshot is just put on the regular size white background page as you can see below.

Do you know if there's an app that could do that or another way, so it's just the screenshot being the page, no white background included? I know this is possible, because I used an app called Xodo, it only converts the first image without background, but the page from 2 to the end have white background around it.


问:
How can I disable remote wipe, in a way that can't be remotely re-enabled?
I don't want my Android phone to be remotely wipeable. I have this setting disabled on my phone, and the device administrator for Find My Device is disabled. However, https://android.com/find has an "Enable lock and erase" button that will remotely change these settings back, which seems to defeat the purpose of having them in the first place. How can I actually turn these off in a way that can't be remotely turned back on?</p>


问:
Android 8.0.0: can not enable developer options for USB debugging?
Android 8.0.0: can not enable developer options for USB debugging?

When I tap the "Developer Options", says:

```<code>Turn on Developer options first.
</code>```

About Phone > Software Information >  Build number.

Tap the build number, says:

```<code>Developer mode has already been turned on.
</code>```

Samsung Galaxy S7.

OwnerDisplayName: eastwater


问:
What are the technical differences between bootloader, recovery, kernel and ROM?

Possible Duplicate:

  What is the difference between: Rooting, Jailbreak, ROM, Mod, etc.?

I'd love a reference (or an explanation if anyone has the time) on what characterizes these different concepts, in what order they start and what role they play. I think I'm fairly certain of kernel and ROM, but the lines are a bit blurry when it comes to the bootloader and the recovery. Basically I have about ten questions related to this, but I think it would be best if there's just some pedagogical article somewhere that lays it all out :)

All the results I've found on Google basically explain it as "when you choose boot into recovery it boots into CWM if that's installed" and that doesn't really help me to understand the purpose of the different parts and how they work.

Thanks in advance!

edit Some questions I feel wasn't answered in the linked thread:

1) The difference between bootloader and recovery

2) CM states that improper ROM flashing can brick a device, how? Shouldn't recovery be left intact?

3) Can you install a custom recovery (CWM) without unlocking bootloader on any device?

4) Is fastboot the same as recovery?

5) What component is "responsible" for the SIM lock? Why doesn't it go away completely if that part is removed?

Thanks in advance for your patience :)


问:
Manually decrypt data from recovery-mode?
AFAICT, Android builds upon Linux' standard fscrypt as implemented in ext4 and f2fs.

I know my pattern and have access to a shell with any Linux program in it.

How can I decrypt /data manually, without the Android OS running? (i.e. from Lineage Recovery)

If that's not feasible, why?


问:
How do I make my headset button resume podcast player instead of music player?
I am using Samsung Galaxy A10e on Android 11. I have AIMP music player and Free Offline Podcast Player FM installed. I am also using the Groove "onn. Wireless Neckband" headset.

I have just installed Bluetooth connect & Play, but it does not do this. I even force-stopped the music player in the apps menu, but no change.

How do I make my headset button resume the podcast player instead of the music player?


问:
Backing up a partition to desktop with adb and pv
I had once found a fast method to backup device partitions to a computer using adb and pv (provided by a TWRP temporary boot image). pv ran on the Android device and was called using adb, specifically, I think, using adb exec-out. cat might have been involved. dd was not used, I'm 85% sure of that, because I need/needed to see the copy progress.

I am unable to find it now. What was it?


问:
Recover deleted file on phone using FBE
Suppose we have a phone that:

Runs Android 10.

Uses file-based encryption.

Suppose one of the files is deleted, but the phone is immediately turned off so as to prevent the deleted file from being overwritten. Can the file be recovered and decrypted? What if the phone runs on Android 9?

Title: Recover deleted file on phone using FBE


问:
Why are Android ELF files different?
When I try to run a x64 ELF file which was build for Android on my desktop PC I get a "file not found" error.

I think that's normal because Android ELF files aren't compatible to normal ELF files.

What is the reason behind this?

Title: Why are Android ELF files different?


问:
Disable vibration per app/Globally No Root
I would like to disable vibration for specific app or Globally. There is app for sound "App Volume Control Pro" that can do it for sound without root. Is there any app that can do that for vibration?</p>


问:
Legacy Android 4.0 CA-Certificates Update
I have two legacy Android 4.0 Garmin Monterra devices.

It's not possible anymore to open the google play store or some websites.

When I open most of the websites with chrome I receive a SSL error 107. Some websites with HTTPS or HTTP are possible to open.

I'm guessing that there is an issue with the ca certificates. Is there any solution to update expired certificates? I found this solution (Update trusted SSL root certs in AOSP) but it's not possible to copy the certificates to the devices. I tried the ADB-Shell but without any success (permission issue). Is it possible to convert the ca-certificates from the .0 file format to any other possible format and to import over the SD certificate import from Android 4.0?

I'm happy about every hint! Many thanks in advance for your support.


问:
How to remotely access full file system on Android for backup?
I have always used SFTP servers on my Android devices, with sync scripts run on my server daily to perform backups. I also transfer files to and from the devices this way.

With each version of Android, it becomes increasingly challenging. I now have a Samsung Tab7 FE with Android 11. I have spent hours buying and trying FTP servers, and none are working. Some only allow access to /storage/emulated/0, and the physical (external) sd-card is completely unavailable. After reading about Storage Access Framework (SAF), I found the Primitive ftpd from F-droid says it supports SAF, but it can only access new folders created by the Primitive sftpd app, and not the full file system.

What are workable approaches to provide filesystem access on Android over Wi-Fi, to enable unattended automatic backup and file transfer?

Edit - I am aware of ADB approaches, but as far as I know they are not unattended and automatic. I want to leave the tablet idle, connected to Wi-Fi, and have my script backup the tablet unattended at 2am.


问:
How to make file executable and belong to my user on Android (rooted phone)
I've put an executable into my /sdcard folder, and here it is:

```<code>-rw-rw---- 1 root everybody   4128608 2022-05-28 18:46 hello_world
</code>```

it belongs to root. I tried

```<code>citrus:/sdcard $ chown citrus:citrus hello_world
chown: bad user 'citrus'
</code>```

su and then chmod +x hello_world but nothing changes.

How can I make this executable and belong to a normal user, whoever this mioght be.

Android 11 Poco M3


问:
How to connect keyboard and mouse on AndroidTV so that it works with Cast (Screen Mirroring) on my phone
Recently, I have been looking for ways to cast my phone screen to AndroidTV. I found a way with Android's built-in thing for screen casting and all worked well.

Now, since I'm not a fan of the idea of looking for Bluetooth keyboard and mouse, I am interested to know if it's possible to attach a mouse and a keyboard to the AndroidTV (where the screen is being casted from the phone) and for it to work on my phone.

Cause the AndroidTV has USB ports, I want my phone screen shown on the TV but it doesn't make much sense if I have to look at my phone for everything.


问:
Need some help with fastboot to install twrp on moto g pure
I am trying to root the phone, by following the instructions here. I did unlock OEM and am able to see my device. But can not flash to recovery. So I tried booting twrp first but that does not work for me either. I did see this link and the comment about using the stock boot image. I have not tried that yet since my issue is slightly different. Thanks in advance for any advice. I am doing all this on Fedora platform.</p>
```<code>sudo ./fastboot devices
[sudo] password for ****:
####### Motorola Fastboot Interface

sudo ./fastboot boot recovery.img
[sudo] password for *****:
Sending 'boot.img' (42408 KB)                      OKAY [  1.581s]
Booting                                            (bootloader) Command is not support
FAILED (remote: '')
fastboot: error: Command failed
sudo ./fastboot flash /recovery recovery.img
Sending '/recovery' (42408 KB)                     OKAY [  1.676s]
Writing '/recovery'                                (bootloader) Invalid partition name /recovery
FAILED (remote: '')
fastboot: error: Command failed
</code>```


问:
How can I convert an android rom from 32bit to 64bit?
My phone (Samsung Galaxy A10s) is a little unknown phone and it has few custom roms for it, I want one that is 64bits, arm64 and android 10 or 9, I didn't find any, so I wanted to make one myself, I read a lot and I know how to do most of what I want, but I don't know how to transform the rom into 64bits, my cell phone supports 64bits but it is in 32bits mode, and even though there is no 64bit rom for it, does anyone know a way for me to transform it in 64bit?</p>


问:
Does Android Always-on-Display enable deep sleep or doze mode?
It seems to me as waste of resources if CPU still needs to be turned on while only the display is active for Always-on-display. Or do the new phones have any special provisions for AOD that only GPU is active?</p>


问:
Where and how to get pop3 emails off Samsung Phone?
I recently did a backup of my email account using Samsung Email App on my mobile phone (Galaxy A31 model SM-A315F), as it was setup as a pop3 account, then I changed it to an imap account, but all the pop3 emails did not backup and restore. Is it still anywhere on the phone? Where and how can I retrieve it?

Thank you in advance for any advice.


问:
How to change my install directory on Android 10?
I have an Alcatel phone that has Android 10 on it. I want to change the installation directory from phone memory to SD memory but it doesn't have such an option in it's settings. So I want to know should I root the phone to get such an access or there is another way doing that?

Also like to know if it is safe doing that using Magisk or there is something better? Because I also do have my bank application, Amazon, etc. installed on my phone!


问:
How to find app permissions in the new Google Play Store web version?
In the new updates, the Google Play Store web does not show the permissions of apps.

If I want to check the permission of an app before downloading it, how can I do it now?

In the picture, missing permissions section in Google Play:


问:
Tried downgrading from 5.1.1 to 4.4.4 nexus 7, and it is bricked
As the title says, I rooted my Nexus 7, and it was working fine on 5.1.1 - albeit very very slowly - I got tired of the lag, and tried to downgrade to 4.4.4 following this link. The tablet went into bootloader(fastboot) mode, and stayed there for a long time. At this time I could cycle thru START, RESTART BOOTLOADER, POWER OFF, AND RECOVERY MODE options but NONE of them work except OFF. So I switched it off, and now, it does not boot up at all, not even in the recovery mode. It is just blank, I see no sign of life at all.
I cannot get it to start, so there is no way I can use ADB or Fastboot for this.
Is there any way I can solve this?
I already have adb/fastboot setup on my pc, but it does not recognize the tablet.
thanks for any help.
I did go thru the similar questions here - link1 - link2. but they did not help.</p>


问:
Failing to flash custom (Magisk-patched) boot.img to Samsung S20 FE (4G) with Heimdall
I am attempting to flash a Magisk-patched boot.img from Linux onto my unlocked SM-G780G. I have so far tried doing that using fastboot flash ... to which the device responded that it doesn't know the command.

The device is a Samsung Galaxy S20 FE (SM-G780G).

I then tried Heimdall v1.4.2 (on Ubuntu 20.4) and got this:

```<code>$ sudo heimdall download-pit --output bla.pit --verbose --stdout-errors
Heimdall v1.4.2

Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
      Manufacturer: "Samsung"
           Product: "SM8250"

            length: 18
      device class: 2
               S/N: 0
           VID:PID: 04E8:685D
         bcdDevice: 0100
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

interface[0].altsetting[0]: num endpoints = 1
   Class.SubClass.Protocol: 02.02.01
       endpoint[0].address: 82
           max packet size: 0010
          polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0A.00.00
       endpoint[0].address: 01
           max packet size: 0400
          polling interval: 00
       endpoint[1].address: 81
           max packet size: 0400
          polling interval: 00
Claiming interface...
Setting up interface...

Initialising protocol...
ERROR: libusb error -7 whilst sending bulk transfer.ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
 Retrying...
ERROR: libusb error -7 whilst sending bulk transfer.ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
 Retrying...
ERROR: libusb error -7 whilst sending bulk transfer.ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
 Retrying...
ERROR: libusb error -7 whilst sending bulk transfer.ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
 Retrying...
ERROR: libusb error -7 whilst sending bulk transfer.ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
 Retrying...
ERROR: libusb error -7 whilst sending bulk transfer.ERROR: libusb error -7 whilst sending bulk transfer.

ERROR: Failed to send handshake!ERROR: Failed to send handshake!ERROR: Failed to receive handshake response. Result: -7
ERROR: Failed to receive handshake response. Result: -7
ERROR: Protocol initialisation failed!

ERROR: Protocol initialisation failed!

Releasing device interface...
</code>```

I've tried both with and without superuser context (sudo) and the result is always the same. I am also unable to retrieve the PIT file from the phone.

However, the boot loader is successfully unlocked as I can see in the freshly initialized (due to the data wipe) Android, while running, and also during boot (shows a warning regarding the unlocked state, which has to be dismissed before the boot continues).

I am successful in entering ODIN/download mode (holding both Volume keys while the phone restarts, followed by Volume+), but still nothing seems to work when attempting to communicate with the phone.

I also tried using JOdin3, which detects the device and all, but already fails to retrieve the PIT file as well. I suppose it must be using Heimdall under the hood (?) ...

What part am I missing? Has the procedure somehow changed for newer Samsung phone models?

NB: in order to get fastboot mode to work (which I had tried before), I had to disconnect a Yubikey that I was using on the system. After that fastboot devices properly showed the phone, but using fastboot flash ... was equally unsuccessful (I tried fastboot flash boot <file> and fastboot flash boot_a <file> to no avail). Prior to unplugging it (although connected to a different root hub), it failed to detect the phone in fastboot mode.


问:
Reading incoming SMS from a computer through an API over WiFi or internet
I want to read incoming SMS'es from my computer, through an API, preferably in Python but I can write the Python code myself if the API is plain HTTP or JSON.

The phone uses the same WiFi as the computer, but the phone is not rooted and is not cable-connected to the computer. Is there a way to do so?


问:
How to get lyrics for currently playing song on spotify app?
I would like to learn lyrics of songs playing on spotify but not every author gives them permission to publish it I guess.

I'd like to read the currently playing song and get the lyrics from some service.

Do I need some library from their documentation or is there just some available intent?

If there is already some nice app, you can point me in comments ;D


问:
How to know if it's hard bricked or a hardware problem?
Phone:

Moto C Plus, rooted.

How it started:

I was on F-Droid, downloaded Bromite (a browser). While installing it, the phone froze/hang. I went to the kitchen, came back, and i see the recovery TWRP logo screen. It was just frozen on that logo screen.

What I did:

I took out the battery, put it back in, tried to turn it on...nothing. Plug it to the charger...nothing. The computer...nothing.

Took it to a shop. They hooked it up to a power supply...

The reading was 0.7, too low. They said that means it's the AC. I don't know, is a reading of 0.7 not consistent with a hard bricked phone? Or is it a case of replacing or reballing the AC like they said?

I'm willing to do whatever it takes to revive this thing because I need what's in it.

Where do I start?


问:
Using vysor for remote adb debugging
Hi I have a computer X connected to Android phone A at my home via USB, I would like to give a remote computer Y outside my home network ability to view the phone and do remote debugging(via adb). I thought Vysor Enterprise was able to do this. But Although I can view and control A on Y using the Vysor App I am unable to see anything on adb devices on Y. Ultimately I want to install apps from Y onto it in Android Studio. Both the computers are Macbooks with Monterey and the Android phone has Android 11 or later.

I have raised this question on github https://github.com/koush/vysor.io/issues/1079 but I think the Vysor's author's response was not clear. Has someone faced and solved this issue? Any alternatives to Vysor?

Title: Using vysor for remote adb debugging


问:
Encryption and deleted data
I have a galaxy S8 using "default password" meaning no startup password or secure start up.
The device is still encrypted by default so all data should not be recoverable after a factory reset as the old encryption key is deleted and a new one is generated on reboot. This is to my limited understanding. Is this right?

Now what about data that was "deleted" before the factory reset like photos or unwanted files that were "deleted" and then the device was reset? Is any of that info recoverable?

Title: Encryption and deleted data


问:
Locking a notification
How can I lock a notification so that I don't close it by accident?

Some notifications are locked by the app and some action needs to be done to close it - I cannot simply swipe to the side.
Can I do the same for any notification?

Title: Locking a notification


问:
How to remove the "SecurityPlugin" device admin app?
I don't know how I installed the below application to my phone and now I can't remove it or uninstall it. The app is called "SecurityPlugin".

Anyone can help?


问:
How to configure sync and auto-opening of browser tabs
I'm looking for a way to get all open tabs on my PC to be open on android also. Not really need real-time sync just open automatically or with a button. Also, it would be great if it can be done with tab groups. Any browser you know that can be configured like this?

Another option is probably to do an adb script. Or maybe something Samsung DeX-like?


问:
How to fix the error in Samsung Shop saying "Your mobile no. is already linked with another user_id"?
I recently logged in to my Samsung Shop and put in my number. I received the OTP and when I typed in the OTP it showed an error saying that my mobile number is already linked with another user id and my phone number did not get registered. How do I fix this error?


问:
pstore/ramoops won't work on Poco M3, rooted
I'm trying to use pstore logs on my Poco M3. I tried everything. PSTORE configs are activated on the kernel, pstore module is loaded on the phone, phone is rooted, /sys/fs/pstore is mounted automatically but never contains anything.

```<code>130|citrus:/ # dmesg | grep pstore
[    0.094327] console [pstore-1] enabled
[    0.094468] pstore: Registered ramoops as persistent store backend
[    1.065975] pstore: Using compression: deflate
[   98.052156] type=1400 audit(1654268897.690:3752): avc: denied { read } for comm="ls" name="/" dev="pstore" ino=1197 scontext=u:r:shell:s0 tcontext=u:object_r:pstorefs:s0 tclass=dir permissive=1
[   98.052450] type=1400 audit(1654268897.690:3753): avc: denied { open } for comm="ls" path="/sys/fs/pstore" dev="pstore" ino=1197 scontext=u:r:shell:s0 tcontext=u:object_r:pstorefs:s0 tclass=dir permissive=1
</code>```

it looks like selinux is blocking ls on /sys/fs/pstore. Is there a way to make it always allow ls on /sys/fs/pstore, even after reboot?

I already added androidboot.selinux=permissive to my boot command line and it's recognized on the phone:

```<code>130|citrus:/ # getenforce
Permissive
</code>```

Of course, doing

```<code>citrus:/ # ls /sys/fs/pstore
citrus:/ #
</code>```

shows nothing

UPDATE: I just learned that permissive means just logging without blocking, so this is not blocking, my pstore is indeed empty. Am I right?