问:
Prevent background execution in Android 9
Is there a way to choose what apps are allowed or denied to run background services in Android 9? I know that I can kill them in Settings > Apps & notifications > 〈 app 〉 > Force stop, but I need that

the service is never started until I open the app;

it is run when I open the app;

it is killed when I close the app.

Let me make an example with WhatsApp (which is not an app I'm having problems with but makes it easier to explain what I need):

when I boot the phone it shouldn't check for new messages

when I open WhatsApp it should download them

once I closed the app new messages shouldn't check for new messages until I open it again

If possible I would prefer a non-root solution.

Update

That's not a duplicate of Disable autostart on boot: I need not only to prevent autostart at boot, but also to kill all the background processes of the app when I close it.


问:
How is it possible that I run android apps with the right user rights
I learned for every app I installed on my Android, a new user is created. And the data for this app is stored in /data/data/app folder with the only access permission to the user that is created for the app. Then how can I access the data when I run the app as me (another user) . I want to be able to replicate the same behavior when I install apps on my Linux machine.</p>

ContentLicense: CC BY-SA 4.0


问:
Pin-Locked Samsung with no debugging mode enabled (need data recovery)
I do have two phones (both samsungs - first A40 (SM-A405FN to be precise) and the second - Galaxy S7 (SM-G930F)).

Both of those phones are PIN-locked by a PIN number I do not know. (The first one has 4-digit pin, the second one had 5-digit pin).

On both of those phones there is no debugging mode enabled. Both are not linked to samsung account (tho I know their google accounts credentials and I can log in to those if that matters).
And on both of those phones there is a data (photos mostly, but also some sentimental talks via SMS/WhatsApp).

I could skip recovering data from A40 (even tho recovering data from it would be neat), but I really need data from Galaxy S7.

I wondered if there is a way to access this data - once again, without debugging mode? Or is there any way I can enable debbuging mode (if it's enabled, I can easily do the remaining part).

I read about ADB and tried few things, but adb devices shows empty (unless in recovery mode I point "ADB Update", but even then I don't know how to proceed).


问:
Magisk how to hide completely Magisk Manager and Unhide Magisk
I configuring  mobile for my Mom, how do I hide Magisk Manager completely. I don't wanna see this app. All I need is to unhide it from ssh session or from adb.</p>


问:
Data recovery for Pin-Locked Samsung with no debugging mode enabled
I do have phone Galaxy S7 (SM-G930F).

This phone is 5-digit PIN locked; which is lost.
There is no debugging mode enabled and it's not linked to samsung account (tho I know google accounts credentials and I can log in to those if that matters). And most crucial thing - on the phone (not on CARD) there is data (photos mostly, but also some sentimental talks via SMS/WhatsApp).

I wondered if there is a way to access this data - once again, without debugging mode? Or is there any way I can enable debbuging mode (if it's enabled, I can easily do the remaining part).

I read about ADB and tried few things, but adb devices shows empty (unless in recovery mode I point "ADB Update", but even then I don't know how to proceed).


问:
Detect adb connection from the phone side
I want to know if the phone is currently connected to a host that can run adb commands from within the phone, no matter if it's using an app, a shell command constantly running, or any other method that doesn't require the host or an external server.

From the host, I can just run adb devices. Ideally, I would like to have something equivalent inside the phone, say adbdaemon host-info that let's my phone know that there is an existing adb connection with a computer.


问:
How can I disable notifications in the pulldown but keep status bar icons, for a specific app?
I have an app that gives me the current date in a non-Gregorian calendar. It has a permanent notification (I can't swipe it away to dismiss it) that I see in the pulldown notification area and an icon in the status bar. I only want to see the status bar icon. How can I do that?</p>


问:
HTTP/HTTPS Transparent Proxy on Android
So on linux, I use transparent mode of mitmdump (mitmproxy without interaction) to build a websites filter and I run it as root on startup so that it cannot be killed if the user does not have sudo permission.

So I want to setup a similar thing for smartphone. It should be standalone rather than say, connect to Internet through PC and let PC does all the work. I am new to Android so forgive me if I am asking stupid questions. My questions are

Many apps like Orbot seem to have HTTP/HTTPS transparent mode (Please recommend if you know something more similar to mitmproxy). But they are GUI based. How do I convert them (or if there exists already) to a silent background service like mitmdump?

Do any of them allow me to add codes like https://docs.mitmproxy.org/stable/addons-scripting/ either directly in the source code or as an automatically called add-on? (Basically, each time a request/response arrive, my function should be triggered to decide whether or not to replace/block it)

If there is no apps similar to mitmproxy, what tools do I need to create such an environment (assuming that I only want to deal requests/responses at HTTP/HTTPS level)?

I do not need to assume any particular Android versions. I just need to make things work first on some version. Please point me to the correct background materials if you feel that they take too long to explain.

Thank you.

Title: HTTP/HTTPS Transparent Proxy on Android


问:
How can I force Android to connect to the network of current country?
I live in country A and work in country B. I have a mobile phone contract from country A. A and B are both in the EU so there are no roaming fees at all.

During the day I have no network problem, the phone uses the network of the country it's currently in and everything is fine.

Problems arises when I cross the border: it seems to me that the phone tries to stay connected to the network it was previously connected to. So for 10 minutes or so after I cross the border, the network signal is weaker and weaker until previous country is too far away.

How can I force the phone to connect to a country's mobile phone network as soon as it enters in said country?

NB: situation is exactly the same when traveling from A to B or from B to A.

What I tried: switching to plane mode just after crossing the border, waiting 5 seconds and switching back. It doesn't work.


问:
How can I prevent a recording from being inadvertently stopped?
After I hit Record on my Android for video or audio recordings, the Stop button is too easily triggered accidentally, e.g. by the wind or physical matter (dust, paper) that manages to touch the phone screen. How can I force the phone to require more than a touch (e.g. a password) to stop or pause a recording? </p>


问:
How can I enable USB debugging using ADB? My phone is recognized only in sideload mode
I am trying to unlock a USB debugging disabled device from ADB.

The device is recognized by ADB only when it is connected through USB in recovery mode (when the device is turned on, it is not recognized as USB debugging is off). ./adb devices is returning the device serial and identifying that it is in sideload mode.

Any further command like ./adb shell is returning "error:closed".

What can I do in this sideload mode? Any way to enable USB debugging while the device is recognized to be in sideload status?

I have tried some commands to unlock a different USB debugging enabled device I have at home and the commands work on that device.

So for now my first roadblock is enabling USB debugging in this locked device or something to that effect. Please give me some advice in this regard.

Any other advice on unlocking the device without losing data would be very helpful too.

Thank you.

More details: I am trying to unlock an Android phone that has stopped taking the correct password after a auto-restart. I know the PIN, I have not changed it in a long while. The phone stopped accepting the PIN after the sudden auto-restart so I am just clueless what may work. Hard reset is not an option for this device without backing up the data so willing to try anything that may help.


问:
Adopt storage on Samsung Tab S6 - do migrate step from terminal
I tried using my sd card as internal storage on my Samsung Galaxy Tab S6 using this guide. But in the gui there is no option to "Migrate data", so I cannot do the last step.

It still worked in the sense that I can move apps to the SD card and they work. When I go to the Anroid system settings I get 150GB of 640GB used (i.e. total on both) and if I select the SD card I get the option to format as portable storage, so it's definitely recognized as adopted storage.

But the Samsung file manager now doesn't work anymore (keeps crashing immediately after launch, never displays) and the shared storage is still only the internal storage, i.e.

```<code>$ df -h
Filesystem                             Size  Used Avail Use% Mounted on
/dev/root                              5.8G  4.7G  1.1G  82% /
tmpfs                                  2.4G  1.5M  2.4G   1% /dev
tmpfs                                  2.4G     0  2.4G   0% /mnt
tmpfs                                  2.4G     0  2.4G   0% /mnt/secure
/dev/block/dm-3                        477G  4.1G  473G   1% /mnt/expand/64d7c406-5e2c-40e8-9cb9-b96d10aff34a
/dev/block/dm-1                        969M  855M  113M  89% /product
/dev/block/dm-2                        1.2G  1.0G  206M  84% /vendor
/dev/block/bootdevice/by-name/dsp       59M   28M   31M  48% /vendor/dsp
/dev/block/bootdevice/by-name/cache    390M  8.7M  381M   3% /cache
/dev/block/bootdevice/by-name/sec_efs   16M  1.0M   15M   7% /efs
/dev/block/bootdevice/by-name/userdata 110G   94G   16G  86% /data
/data/media                            110G   94G   16G  86% /storage/emulated
</code>```

And I can't access /mnt/expand/*, permission denied.

Any ideas how to fix, i.e. probably run the migrate step from terminal somehow?


问:
How can I lock device on a particular network frequency using android kernel sources?
Motivation
My goal is to select or lock LTE frequency bands on mobile devices with Qualcomm chipset. On some devices like Samsung Galaxy S5, we can access hidden menu: *#2263# to select the radio bands, but this secret code is not available for other devices from other vendors, so a more generic way to do this task is needed. Using Qualcomm proprietary tool (QXDM) is another choice but it requires connecting your device to a PC. I want an in-device solution.

I am referring diag_qcdm for achieving the goal but this source is out of date and not working. I have a rooted device whose kernel sources are available.

Is there anyone who has experience in capturing the communication between the Qualcomm chipset and the ril daemon that are responsible for network selection.

I want to lock a device on a particular

RAT

Band

PCI

EARFCN

for testing their strength in the field.

Please suggest the ways to do it..


问:
Is it possible to crack the password.key or any other .key file from /data/system/?
I am a newbie...
So this question came in my mind when I removed my screen lock using adb by deleting the .key file from the /data/system/ folder....
For removing we delete the .key file, but what if we copy the .key file to our local PC using adb command and then try to brute force the encryption of the .key file using hashcat (like what we do when cracking the .cap file to get the WiFi password). Also we can use a wordlist.
If we can do this then we can easily brute force PIN screen lock because it has the limited range of possible number combinations.
I don't know what kind of encryption method is used for encrypting the plain password/pin for android screen lock so please answer this.
So please let me know if this is possible....
Also I don't if this is discussed before....</p>


问:
Can't change stock bootanimation to something else on my Samsung Galaxy S7 Edge
So I rooted my device and I downloaded this app called "Boot Animations" https://play.google.com/store/apps/details?id=com.jrummy.apps.boot.animations&hl=en
I found one I liked and installed it. From what I've seen the bootanimation.zip is in system/media. Which is where mine got installed so I placed the right permissions for it and rebooted my phone but my provider's animation keeps playing. So I don't know if I'm doing something wrong or if it is located somewhere else? My phone model is SMG935.</p>


问:
How to install ROM and Gapps through Adb & Fastboot without TWRP support?
I have a Motorola One Macro, I leave the firmaware for you to see what it is,

https://mirrors.lolinet.com/firmware/moto/lima/official/

I want to install a ROM according to this site: https://www.getdroidtips.com/android-10-motorola-one-macro/

However, there is no TWRP for this version of Smartphone.

The question is how to install ROM and Gapps through Adb & Fastboot?


问:
How to re-format or re-flash a TWRP install?
I was stuck in a bootloop earlier with Team Win, having just gotten an older phone.

Now I'm seeing a menu like:

```<code>*** Tampered ***
*** Unlocked ***
...
FASTBOOT
RECOVERY
FACTORY RESET
...
</code>```

Selecting FACTORY RESET seems to get me to a stock-looking Android 4.4.3 with an HTC Sense version 6.0.

From the Android menu, selecting factory reset  gets me back to Team WIN scripts, and then back to Android well enough.  However, I previously stuck in a loop of Team WIN:

This phone came with Team WIN, which is fine.  My inclination is to format and re-install as it was installed by another.  What's the general procedure?  Is it any simpler as Team WIN is already installed?


问:
How to make spotify play all songs in the search results
On the Windows desktop version of Spotify, when you search and start playing one song in the search results, Spotify will play all the subsequent songs in the search results when the song ends. It even shuffles the results if you have shuffle turned on. The Android app used to have this function as well, but it appears it was removed because it annoyed people sometime in 2018 (really, if you just want the one song, add it to the queue and skip once; it's not hard). Is there a workaround to still have this feature? Someone on the Spotify forums claimed that Spotify now creates a playlist based on search results:

The overhaul follows Spotify’s recent update to song search; now when you search for a song with a common name, Spotify will create a playlist, an actual list, based around the song instead of playing every version of that searched song in order.
  You can learn more by reading this blog post and this article of what's new with Spotify Premium.

The blog post in question was vauge and had no instances of the word "playlist" on the page, and the article concerned something about the artists radio, so I'm going to assume that person has no idea what they're talking about, but it's my only lead so I posted it in case someone can clarify this feature

The main question is: Is it possible, in any way, to make the Spotify android app play all the songs in the search results?


问:
Can F-Spot be installed by a non-Admin user on a multi-user LineageOS phone?
I'm running LineageOS. F-Spot works fine for my main primary user which is an administrator (the default).

However, I can't get F-Spot to install on secondary users.

It fails and says, only "App not installed."


问:
Android box - soft bricked, but can boot Linux
Introduction

First of all I have quite old android box - Ferguson 3 TV. It's hardware based on platform very similar to MXQ/HD18Q with s805 processor. Stock rom based on Android 4.4 (not Android-TV). I was able to run LibreELEC Linux for this box in dual bot, or even from internal, so it is somehow compatible.

Now what happend...

I soft bricked it when trying to flash android custom rom from MXQ. The TWRP flashed just fine, and I flashed rom zip from this. After this procedure, neither system, not TWRP is not booting. After few tries I was able to flash LibrELEC to internal storage. I also booted Armbian (linux) from SD card. But recovery is still not bootable.

What I want to do

Is there any way to flash stock firmware from linux to unbrick the device? Or any other way? When I connect box to Windows PC, nothing happens, like Windows doesn't see it. So I think this booted linux is the only way I can modify the internal memory. I have stock firmware zip, from the Ferguson page. It is recovery zip, but contain inside boot.img and bootloader.img. The/system is just a folder. There are also /recovery folder which only contains some scripts to extract recovery from boot.

Any ideas how to save this box?

OwnerDisplayName: Karls


问:
Inside Facebook app, how to set YouTube links to be opened on YouTube app?
How to set YouTube links to be opened on YouTube app on Android in Facebook app?

I saw some videos how to do it but they're too old.


问:
How can I use my Android Phones to remember more than 200 Paired Bluetooth devices?

My In house app communicates with Bluetooth device (In house) via an Android Phone;

I require a device (Android) to store pairing information for more than 200 devices (Bluetooth);

Currently, I am losing the pairing information in my devices (Android) after more than 100 devices are paired;

The paired device name is not lost, but it asks for re-pairing;

If I cancel the pairing request, the Bluetooth device un–pairs with Android (device);

I have conducted the same test with various Android devices and the same issue happens;

I have googled various forums and observed that there is practically no limit for Bluetooth devices to be paired;

I need your help to solve the issue so that my device can remember pairing information for more than 200 devices;

Currently used phones are Xiaomi Redmi 7 (Pie) and Samsung A7 (Oreo).


问:
Gallery app crashes at startup
Currently, I am facing a very weird problem with the default gallery app in my Android 7.0 OS. My device's model is Micromax Bharat 3 Q437. The crash is occurring randomly-- before a day it was working absolutely fine. I did no special task on my phone which can cause the problem. The package name of the app is com.android.gallery3d.

Here is the output of adb logcat *:E -e "gallery" command:

```<code>03-06 14:13:24.096 29467 29482 E AndroidRuntime: FATAL EXCEPTION: Thread-3
03-06 14:13:24.096 29467 29482 E AndroidRuntime: Process: com.android.gallery3d, PID: 29467
03-06 14:13:24.096 29467 29482 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.mediatek.galleryfeature.gif.GifMember.isMatching(GifMember.java:30)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.mediatek.galleryframework.base.MediaCenter.getMember(MediaCenter.java:109)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.mediatek.galleryframework.base.MediaCenter.getItem(MediaCenter.java:27)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.data.LocalImage.updateMediaData(LocalImage.java:592)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.data.LocalImage.<init>(LocalImage.java:163)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.data.LocalAlbum.loadOrUpdateItem(LocalAlbum.java:196)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.data.LocalAlbum.getMediaItem(LocalAlbum.java:168)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.data.LocalMergeAlbum$FetchCache.getItem(LocalMergeAlbum.java:285)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.data.LocalMergeAlbum.getMediaItem(LocalMergeAlbum.java:168)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.data.MediaSet.getCoverMediaItem(MediaSet.java:85)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.data.LocalMergeAlbum.getCoverMediaItem(LocalMergeAlbum.java:334)
03-06 14:13:24.096 29467 29482 E AndroidRuntime:    at com.android.gallery3d.app.AlbumSetDataLoader$ReloadTask.run(AlbumSetDataLoader.java:449)
</code>```

What can be the possible cause for this and how to get rid of this issue?

Title: Gallery app crashes at startup


问:
How to have Google Discover language different than the General Settings language?
My initial language was French but I wanted to parameter my Android smartphone (Android 8) to English. So I went to

Settings > General Management > Language and Input > Language > English

So far so good, my phone is in English. But it automatically changed my Google Discover articles in English too (language and sources) and I can't find a way to keep it in French.

I went through Google App options:

More > Settings > Search language : French and Search region : French

The results are still English based. And General settings don't offer to choose Discover languages.

Is there a way I can keep Google Discover in French while having my phone in English?


问:
all google product app isn’t loading or working. what to do?
Google services like Youtube, Gmail, assistant, Docs, google app etc are not loading or working. The loading bar appears but nothing happens. Play store loads everything but when i click install it shows waiting for download and then nothing happens. The browser versions of all those products are working perfectly but those app versions are not working. I am currently running Oreo. Is there any possibility i can fix this? Here is a google assistant "something went wrong" screenshot


问:
Page loading stops and cannot be resumed when changing tabs in Android Tor Browser
I'm trying out the Tor browser on Android 9.0 (device is not rooted). When I open a page and change tabs before the new page is fully loaded, the loading process is interrupted and cannot be resumed. Changing back to the "inactivated" tab and reloading does not work, the tab has to be closed and the page needs to be loaded from a new tab.

As usual, the Tor browser comes bundled with NoScript and HTTPS Everywhere, I'm also using the uBlock Origin extension (any opinion on this?). Background data is disabled for all apps except messengers and the max. number of background processes (developer options) is set to zero. I have tried changing the security settings as well as disabling uBO, but the problem persists... Now that I think of it, I encountered the same issue using the Brave browser on Android.

Can anyone reproduce this behaviour and tell me what's causing it? This is extremely annoying, as using Tor increases loading time with some pages, I therefore want to be able to switch to a different tab while waiting.


问:
Issue after updating Facebook and Facebook gets update automatically
I have Realme Pro 2 (ColorOS 6 and Android 9). I updated Facebook from Play Store.

After update, the new version is Facebook 260

And the issue is:

Even I don’t this see option:

Then, I uninstalled and reinstalled Facebook and issue not resolved.

I downloaded previous version (250) and installed.

It’s okay and easy to use. Facebook 250 is working fine and I don’t want to update it. Auto-update is also OFF from Play Store. However, it gets updated automatically.

Pls let me know,
how to resolve issue with new version or how to stop it to get updates automatically?

Thank is advance.

Regards
FewL


问:
Bulk Delete Apps
On my phone (LG V30+, Android 9) I've noticed when I drag an app from my home screen into the trash, it doesn't delete the app but simply disables it. If I go into settings and find the app, I can fully remove it by pressing uninstall.

(I'm talking about apps I've downloaded, not pre-installed).

When I'm passing through airport security, I have several apps I need to actually delete completely, I can do this by going into settings for each app and choosing uninstall, but this is even more tedious than deleting from the home screen.

Is there any way to bulk delete apps that are disabled.

(ideally without installing a tool to do it, but I'm guessing no such feature exists natively)

Title: Bulk Delete Apps


问:
Huawei P30 Pro I can't set sleep mode to never
I just got my new Huawei P30 Pro and I am not able to set sleep mode to never. Maximum option available is 10 minutes. My battery mode is correct and it is set to "highest performance" so without any battery saving. I want to see my timer whole the time counting 1h and I am not able to do such an easy thing what is extremely annoying. I tried Automate or Caffeine apps but they don't work for me. My EMUI version is 10.

Please for help.


问:
Unable to root Motorola G7 Power XT1955-4
I am trying to follow this tutorial https://aiomobilestuff.com/motorola-moto-g7-power-xt-1955-root-twrp-unlock-bootloader/

The command

```<code>fastboot flash recovery twrp.img
</code>```

(I renamed my twrp.img to recovery.img)
gives me this error

and the command

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

boots my phone into twrp and it freezes it.
I am able to work again with my phone only after restart.
Is there a way so that I could root my phone?
Thanks in advance!


问:
Will flashing "ADB enable" trigger Knox warranty bit?
I have ghost touch and I am unable to unlock my phone anymore, so I want to flash a file to enable ADB using Odin and then perform a factory reset using ADB... Will it change the KNOX fuse?

File is here: https://zfirmware.com/download-all-samsung-adb-enable-files-removing-security-frp/

Thanks.


问:
Two-factor ID and Find My Phone app
After enabling two-factor identification on my google account, I lost my android (Samsung 9) phone, so I tried to use the Find My Phone app on a friend's phone. Of course, the two-factor ID correctly prevented me from being able to use that app to find my phone.

I found my phone this time, but in the futue I would like to be able to use Find My Phone app on another device, authenticating myself with two-factor ID still enabled. I'm sure there is a way to do this, perhaps by pre-authenticating myself on Google Authenticator on my PC or a friend's phone, so in the future I can Find My Phone but others cannot. Please help! Thanks.

Siirandler

Title: Two-factor ID and Find My Phone app


问:
Where can I setup a persistent directory on my Android phone with a symlink-compatible filesystem?
I want to setup a directory on an Android phone which provides a similar experience to a traditional Linux command line.

Normally I would work from my home directory but HOME in this case resolves /sdcard and is mounted as sdcardfs which is an emulated filesystem that does not support traditional features such as symbolic links:

Now /sdcard is not a real but emulated storage which represents a
  FAT/vFAT/FAT32 filesystem (for backward compatibility and permission
  management) which doesn't support symlinks (and other things including
  *NIX permissions and ioctls like FS_IOC_FIEMAP). So the Option 1 and 3 of yours won't work whether you create symlink directly on emulated
  storage or try to emulate the symlink already created on ext4.

Source: https://android.stackexchange.com/a/203989

If I can't use /sdcard as a traditional filesystem then where else can I go for safe and persistent storage where I can use *NIX features that I am used to such as symbolic links, hard links, ioctls, ACLs, etc.?

Please note that I am not looking for alternatives for these features such as using mount as a replacement for links. The issue I have is that I don't know what is considered safe and persistent for storage on this device.

As an example of the problem I am facing, I tried creating a directory in /mnt, which provided the necessary features, but this directory was not persistent after the device was rebooted.

My phone is rooted and I am using aftermarket firmware.

OwnerDisplayName: Zhro


问:
Using USB NFC reader as native from Android Emulator
I'm testing an Android app that uses NFC. However, my actual testing phone does not have NFC capabilities built-in. What I do have is a USB NFC reader for Windows. Is there a way I can open my app on Android Emulator and link the emulated NFC to my USB NFC reader?</p>


问:
Is there a way to reset my Android Google sync data?
I've been using Android since the days of Froyo (Android 2.2). My data would get synced normally using Android's Google sync feature.

I am not sure whether there has been of fundamental change in the way Google sync in Android since those days.  But I notice that my sync doesn't work properly.

Specifically:

Contact sync:  restores only half of my contacts whenever I change phones. If I manually export/import contacts then it deletes half of my list on the next sync.  It just refuses to update the existing contact list present on the cloud.

Application data doesn't get transferred. I've seen other people changing their phones and I've seen that Google sync essentially restores their installed apps and then restores the data contained within them. In my case it restores apps that I used to have on my Froyo phone. And it doesn't restore any app data.

Is there a way I could reset all the data on my cloud sync so that Google sync can start doing a fresh start?


问:
how to remove pattern lock in a rooted android phone?
My Xperia is Running on RR-16 OS I have added 6x6 pattern unlock, it's been months I touched it so I forgot the password

is there any way to remove the pattern lock through ADB, I also have TWRP recovery installed in it so, is it possible to delete the file containing the passwords data

Thanks in advance


问:
OneDrive app says spreadsheet is corrupted
I have a spreadsheet in my OneDrive storage. Using the OneDrive app on a Samsung TabA tablet I can see the file, but if I try to open it it says the file is corrupted.

However, if I open OneDrive in a browser on the tablet I can look at the spreadsheet normally, so there's nothing wrong with the file on OneDrive.

Does anyone know if the OneDrive app has issues with certain Office documents? This particular spreadsheet has 168 worksheets - could that be a problem for the app?


问:
Update external installed app from Play Store
Some days ago, I installed an app downloading it directly from the enterprise server. Today, an update was uploaded to the Play Store, but there, I can not see the update button to automatically update the app, I just can open it or uninstall it.

The app is signed with the same certificate and has a newer version code. It is programmed with ionic but I do not thing that matters.

I need a solution to install an app from outside Play Store, while keeping Play Store updating it.

Thanks in advance.


问:
Can I root Android by booting from an SD card?
Digging for that, I found various resources on the net to boot Android from SD cards. Doing that would make possible many things that are generally unavailable on phones.

For example, it would be possible to dump the whole content of the flash or get to root without the need to reformat some partitions. Effectively, it would be like unlocking PCs by a boot pen drive.

Is it possible? Can I simply burn a firmware image into an SD card and then boot my Android phone with it?

This question already gives some insight into repairing a specific model with SD card booting, but it has little to say about SD card booting in general. It does not answer my question.


问:
How does Google Tasks open an email in the Gmail app?
There is another question that asks How to open gmail message links in Gmail Android app?.  I don't know how to how to answer the question, but I know of an app that can do this: Google Tasks.

These steps show how to open an email in the Gmail app from Google Tasks.

Open an email in Gmail

Select "Add to Tasks"

Open Google Tasks in Android

Locate the task that was created in step 2

Locate the button on that task with a picture of an envelope

Tap that button

Observe that the corresponding email is opened in the Gmail app

How does Google Tasks open an email in the Gmail app?  Is it possible to do this in custom app (as the linked question asks) or is Google achieving this behavior in Google Tasks using a private API?


问:
save bricked xt1527 with disabled usb debugging
I have a surnia xt1527 which was bricked because of some mistakes I made when trying to make a factory reset (I don't remember what I did because it was a while ago). The device has usb debugging disabled and hence I can't use adb tools. I also can't flash the stock firmware or a custom recovery from an sd card because the recovery won't let me access the sd card. Is there anything I can do to save the phone even though usb debugging is disabled? thanks</p>


问:
Can a user create a "work profile" for an enterprise account?
So I added a work related Google for enterprise account but it's now showing up along side my personal accounts. I know there is a way that the enterprise admin (which is not me) can force the account to be separated from my personal accounts (different gmail/calendar/drive apps, separate file spaces, restrictions on transferring data, etc.), but they seemed to have not elected to do that.

Is there any way I can cause that to happen without having to involve them?

Note: I've found the option for adding multiple users, but that's not what I'm looking for as that seems to be a only-one-is-logged-in-at-a-time thing where as the thing I've used before has only one session just with duplication and isolation of the apps.


问:
How to monitor device with excessive wifi usage
My younger sister has an Amazon Kindle Fire 10", and according to xfinity it uses more data than the entire rest of the household combined. This morning I opened the xfi app, and found that this trend is continuing with 7 hours of network activity by noon, however, her tablet "freetime" doesn't allow her to use the tablet till four in the afternoon!

What I am wondering is, what is the best way to scan/monitor/check for, foul play or a malfunctioning app? If Xfinity is to be believed, this "glitch" has used over 400 GB of network data in 10 days! (I am a power-user and am ready to use-and-abuse all my developer rights to figure this out)


问:
How to sync times of two devices with Android NTP?
We have 2 android devices running same application that users see their GUI. Time synchronization is curicial for us. To make them have same time we have the settings as below.

Use these commands in boot and after every 5 minutes but it seems after 8 9 hours of uptime two android devices have different times with respect to their seconds. ex:

busybox watch -n 1 date

```<code>DEVICE 1: (Android 6 Marshmallow) 2020-03-10 09:16:33
DEVICE 2: (Android 6 Marshmallow) 2020-03-10 09:16:38

settings put global ntp_server pool.ntp.org
settings put global auto_time 0
settings put global auto_time 1
</code>```

After that we also tried below commands but not worked

```<code>settings put global ntp_polling_interval 10
settings put global ntp_pollinginterval 10
settings put global ntppollinginterval 10
</code>```

Any suggestions?


问:
Connect/Disconnect To Specific USB Device With One Button
I have multiple speakers I connect to via USB and the one I use the most never shows on the "Previous" list no matter what I name it. So it's always multiple steps to connect.

Is there any app where I can create a single button to Connect/Disconnect To Specific USB Device?

Pixel 2XL


问:
How to factory reset a SAMSUNG tablet using Odin without tripping KNOX
Almost all of the questions I've asked here are related to the same topic, which is: I've forgot my unlock screen pattern and I am unable to factory reset my tablet to gain access to the tablet again (I don't need the data, I just need to access my tablet).

Here was my first question: Bypass Samsung Knox factory reset protection - and there I've mentioned that SAMSUNG Knox prevents factory resetting the device by all the ways possible (also it disables USB debugging by all the ways possible).

So another idea came to my mind, that idea is to flash an ADB enable file on the tablet so I can perform a factory reset through adb, but I was worried if this would trip the KNOX 0x0 counter to 0x1 or no, so I've asked about it here Will flashing "ADB enable" trigger Knox warranty bit? and it was answered that it would trip KNOX :/

So I was wondering if its possible to perform a factory reset using ODIN without modifying the boot.img as this will trip KNOX I guess.

I am a student and I received this tablet from my school and I shouldn't trip KNOX because they manage it through the KNOX products, also I shouldn't lose the warranty of it.

The nearest Samsung service center to me is very far (really far).

I wish there could be a way to achieve a factory reset :/

Any help would be appreciated.
Thanks!

EDIT: The guys on Reddit say that flashing the official ROM shouldn't trip the KNOX counter here:

https://www.reddit.com/r/samsung/comments/69mxbj/can_i_flash_a_official_samsung_firmware_via_odin/

https://www.reddit.com/r/GalaxyS9/comments/997utz/flash_an_official_rom_with_odin_without_tripping/

and on SamMobile.com forums:

https://www.sammobile.com/forum/threads/28285-Does-flashing-stock-firmware-to-a-different-region-trip-Knox?p=125996&viewfull=1#post125996

https://www.sammobile.com/forum/threads/44838-S8-does-flashing-different-CSC-trip-knox?p=218882&viewfull=1#post218882

https://www.sammobile.com/forum/threads/38344-Tripped-Knox-using-stock-firmware-what-did-i-do-wrong?p=191518&viewfull=1#post191518

can someone experienced confirm this? I would be in a serious trouble if I tripped the KNOX counter and I will have to pay a high fine.

EDIT: Also, if flashing the official ROM from SamMobile.com doesn't trip KNOX and I flashed it, will it remove the auto enrollment setup by my school (Knox Mobile Enrollment)?


问:
Advise for migrating from Android 6.0?
I have an old Lenovo T3-850F that has fallen out of support; and I thought that maybe I should migrate it to a new device with a higher version.

What do I need to do to do this properly and not loose the things I've bought from the Google Play Store / Amazon Kindle, etc?

Title: Advise for migrating from Android 6.0?


问:
how do i flash gapps onto aosp android 10 without custom rom, and how do i fix my ussd and call function not working?
i recently managed to flash gsi using fastboot instruction:

fastboot flash system system-quack-arm-aonly-vanilla.img

from
https://github.com/phhusson/treble_experimentations/releases/tag/v213

they don't have twrp for my device so i had to use fastboot.

i wanted to know

how do i flash the gapps img. file (or how can i get gapps?)

and how do i fix ussd and phone calling function which does not work?

everything else works perfectly


问:
How to add a simple file on /system without actually modifying it but with using kernel sources?
From the time system-as-root came, developers have rooted different devices by patching the Magisk su binaries in the kernel. I want to understand how exactly they have done this so to start from basics, I want to test creating a file on the /system but with kernel sources.

I have already built a permissive kernel. I am not able to figure out where to start doing what?

Anyone can guide me in this?


问:
How can I restore app data from file folder?
I'm using a Samsung Galaxy S6, not rooted.

I used adb backup before factory reset as well as copying all the files afterwards just in case. I am trying to restore my memos as well as data for a game and adb restore did nothing; I used android backup extractor to take a look inside the .tar and didn't see either folder. I tried copying them through file transfer but that didn't do anything. How can I make them readable by the system?


问:
Colors "too warm" with P30 pictures
I bought a P30 a month ago and I'm experiencing colors issues with the camera.

The colors are way too warm, if I would take a picture of a white / light yellow potatoe, I would get an intense yellow potatoe picture.

After some research on internet it seems that it was a common problem that has been fixed last year, so is there anything I can do to fix that ?

Title: Colors "too warm" with P30 pictures


问:
How can I root my Lenovo Tab 4 10 (TB—X304L)?
I've been trying to root my Lenovo Tablet for past few weeks and I've got no success.

I found out an article in XDA showing how to root it but when I tried I got stuck in the third step which was unlocking the bootloader.

When I typed fastboot oem unlock-go in my laptop and hit enter the adb and fastboot software just kept displaying "waiting for device" and nothing happened.

I have been searching whole internet to find a reliable tutorial because I am a newbie in this rooting thing.

Even One Click Root doesn't have any solution.

And I don't want to have any spywares in my device therefore I don't want to root it through any one click root services (like One click root, King Root, etc)

I apologize if I am missing something.

Any help would be highly appreciated.

Edit:— It seems like the OP of this post faced the same problem. Can anyone tell me how to use the sudo code?

I will try to install the drivers (as pointed out by an answer) and then edit here.


问:
Connecting to own proxy with self-made CA certificate not (properly) working
I have a Squid proxy installed with HTTPS/SSL support. When I install the generated CA certificate in Firefox and set the proxy, everything looks good -- that is, I can see all the HTTP(S) requests the Squid log files. It also works fine when I install the CA certificate in my emulator (Android 9) and set the proxy. Again, see all the requests in the Squid log files, i.e., the requests made by the browser or the apps that use the proxy settings.

However, when I do the exact same steps on a real device (Samsung A30s with Android 9), I have problems. Well, I still see all the requests made by the browser, but not the ones made by apps (and thus they yield connection errors). OK, I still can see the CONNECT request in the logs but no other requests (e.g., GET, POST). So the apps are definitely using the proxy settings. (I know that some apps like Facebook ingore the proxy settings and connect directly to their server; they still work fine, of course).

The odd thing is that everything was working on an old Android 6 phone. Here the same apps where working perfectly fine using the proxy and relying on HTTPS requests. Now I have a newer Android 9.0 phone and all apps so far fail. The apps obviously use the proxy (seeing the CONNECT entries in the logs) but seem to not not use/acknowledge the installed certificate.

Can the newer Android version be an issue? Maybe permissions? Can it be that the newer Samsung phone has some bloatware that requires additional settings or something (the old phone was a OnePlus with an almost stock Android version as far as I know)?


问:
Files deleted via mtp still consume space
When I delete a few large files (part of music collection, ~20GB of flac files) during mtp connection (on computer), it disappeared from Android FS, but, according to FS analysis, still consume space.

How to free this space?

FS analysis shows consumed space as "other".
None of visible folders has such big size.

Phone: Samsung Galaxy S10e

MTP driver: gvfs-mtp


问:
How does android send files over bluetooth (using "share")?
I'm working on a system that expects to receive a file over bluetooth from an android phone. Of course, I could write an app on the file host and devise my own protocol, but (at least for now) I'd like to use the built-in "share" functionality where one can share to a bluetooth device.

Is there some sort of "start", "this is a file" etc. protocol that android uses before sending a file? I'd like to know if anyone has already gone through this before I just go ahead and dump the binary data to figure out what it's saying (and if I need to acknowledge packets somehow).


问:
Finding the location of a lost android device
I've lost a huawei p30 device.let's say somebody took it and formatted it and started using it with other accounts.

Is there any way to track it and find its location?

i have tried the find my phone of google and although it seemed to be somewhere nearby suddenly i lost it and the battery seemed to be around 50%


问:
Montoring network traffic on Android phone (for research user study)
For context: We would like to analyze user mobile online (browsing) behavior in a user study. The study has been approved by our university's IRB, participants will have to give informed consent and will receive remuneration. Of course, monitoring network traffic is very intrusive, but we're sincerely not trying to be the bad guys here. For example, we would like to know if people get there information from social media, news sites (and from which one).

Over the last to weeks, I've explored some potential approaches. While I have some basic experiences with Android development, I'm far from an expert. Here is what I've tried and considered -- I would appreciate any feedback to see what I got wrong and/or what I'm missing:

Side note: we cannot expect study participants to root their phones :)

Mock-up browser (simple app with a WebView and rudimentary browser features) or a modified fork of Chrome. Here, on the one hand, I cannot really estimate the required effort for both ideas. And a big issue is that most mobile online use is done through apps that often have their on WebView.

Proxy. I set up a proxy with SSL support, so if the participants change their proxy setting and install our CA certificate, we would see their traffic. However, apps (e.g., Facebook) are not required to use the proxy settings, and since Android 7 (API 24) apps by default do not recognize user-installed certificates. It worked pretty well with an older Android 6.0 phone, but now it's only a limited option. We could still see, for example, that a request to facebook.com was made, but no longer the exact URL.

App Activity Monitoring. Since some apps wouldn't have used the proxy anyway, I tried to at least estimate which app was in the foreground. To do this, I wrote a simple app that periodically checked which app had the highest usage in the last, say, 10 seconds using the UsageStatsManager. This seemed to work reasonably well.

Local on-device VPN. Lastly, I've tried using a local VPN using the VpnService; I found and used example code I found here. On the plus side, even apps that ignore the proxy have to go through that local VPN. However, I face two big problems. Firstly, while it seems to work it's very unstable. Some websites won't load properly and after that, even sites that worked before fail. And secondly, there's no SLL support so I wouldn't be able to see the traffic. I lack the expertise right now to address both issues or even to say if they can be solved.

This is where we currently stand. All opinions are more than welcome.


问:
How to migrate call logs of 2 phones into a dual sim phone
I have a galaxy note 3 and galaxy note 5, both are single sim devices. I'm now switching to galaxy note 10 plus, a dual sim device. I used smart switch to migrate all data from the old phones, however the messages and call logs always restore to sim 1 in the new phone. That is, the call logs and messages made from sim 2 is restored as sim 1 in the new phone. Is there any way to properly restore the call logs and messages of 2 separate devices onto the new dual sim device</p>


问:
Recover backed-up linked email account after factory reset
I had previously linked a office 365 account to my gmail app. Due to reasons, this office account got blocked and I no longer have access to it, but I still could see all the emails that had been synced to my phone.

Today I decided to do a factory reset as I had some problems with the phone. I have checked the settings of this office account in the gmail app, and it stated that it was backed up. So I proceeded to do the factory reset. Now I have re-linked my phone to my gmail account, all apps have been reinstalled, but the office 365 account that was supposed to be backed up is no-where to be found.

Is there any way to recover the emails or sync this office account from the backups?


问:
Phone shows foreign phone numbers as domestic
I have a Samsung S9+. Sometimes, my phone does show foreign numbers as being calls from abroad (i.e. there's a plus-sign with the country code before the phone number). However, it has happened multiple times that a phone number seems domestic, but is actually international (and, if I call back, I reach somebody entirely different than the one I just talked to).

It seems like the phone has a hard time distinguishing between foreign and some domestic phone numbers.  Sometimes it's kinda obvious (e.g. the phone number has the wrong number of digits). However, other times, there's no way for me to tell that the phone call is actually an international one.

A lot of these international calls are spam calls. Is there a way to work around this issue so that I can always tell if a phone number is a domestic or foreign? I mean, there are certain countries from where there's no reason for anybody there to call me.


问:
Rooting/unrooting my device under warranty
A couple of weeks ago I bought one of those indestructible type of phone, from a manufacturer that also produces excavators and whose name starts with a C and ends with AT.

In the terms and conditions of their "Limited warranty" I read that it is not allowed to root the device, or else the warranty will no longer be valid. Nothing new to me in general. However the way they described it leaves room for debate when it comes down to it.

They state that the terms and conditions do not apply when the defect is caused by:

Performance issues or incompatibilities caused by editing of the
  registry settings, modifications of the operating software including
  but not limited to rooting the device or 3rd party application
  downloads.

So I contacted their support. This is what I wrote the manufacturer about:

I have a question about the terms of warranty on the C^A^T S52. I read
  that rooting the phone could be a reason for C4T to terminate the
  warranty.

Is this the case under all circumstances, or only when the phone would
  defect as a result of the rooting?

And if I read everything in literal terms, does it more or less say
  that everything that has not been mentioned is allowed? In other
  words, if I root the phone, and perhaps) have to claim warranty, can I
  just unroot before sending it to you in order for the warranty to
  remain valid?

The manufacturer responded with:

Yes, rooting the device will void the warranty under all
  circumstances. The Repair Centre will know if you rooted the device or
  not even if you unroot it before sending in for repair/claim the
  warranty.

Does anyone have knowledge of how the repair centre can determine whether a device has been rooted/unrooted and if there's a way that I can bypass it? Additionally, I would like to know if anyone has had any experience with repairing a unit under warranty, despite the fact that the unit was rooted?


问:
Android system keeps resetting default USB configuration upon PC connection
Whenever I'm connecting my Samsung Galaxy A40 running Android 9.0 to a laptop or PC, I'm getting an annoying prompt to allow data transfer, and the following setting which I had set to "Charging phone only" gets reset to "Transferring files":

However, I only want to charge the phone and absolutely never allow data transfer for security reasons as I frequently have to connect my phone to public or workplace PCs for charging. The service which throws the notification/prompt is called Android System and the icon looks a bit like this (only with filled font):

I activated developer options and explicitly configured the USB connection settings to not allow data transfer. Why does Android System keep changing my settings and prompting for data transfer? Is this normal behaviour? Is there a way to regain control without having to root the device?


问:
Unfortunately Google Play Services stopped won't go away
A pop-up that says 'Unfortunately, Google Play services stopped' won't go away on my phone. Everything I've read says to go to settings and then apps but I physically can't, the pop up doesn't go away when I tap the Ok button, it just flickers a little. When I go into settings I can't do anything because the pop up basically shuts down the whole screen and I can't open anything. Is there anything at all I can do to fix this, or is my phone just permanently broken because of this?</p>


问:
Forcing Android To Update
I have a Samsung J7 smartphone. It's currently running version 8.1 and I want to improve it to Android version 10. By clicking "update" in settings, it says "the latest version has already been installed". What would be the risks associated with installing manual updates?</p>

Title: Forcing Android To Update


问:
Chrome shortcuts on long press
I added a shortcut to my home screen through Chrome by selecting the "Add to Home screen option", but unfortunately added a few that do not work (they come up with "page expired" when I tap the shortcut). I deleted those shortcuts, but now I noticed when I long press the Chrome icon on my home screen, those shortcuts all still show up in the app shortcuts list. Is there a way I can delete those? I cannot seem to find a way to manage those long press shortcuts.</p>

Title: Chrome shortcuts on long press


问:
How to indicate that certain contacts or phone numbers should never be sent outgoing text messages (SMS or MMS)?
Is there any way in Android or the Samsung Messaging app to mark some contacts or phone numbers as "Do not ever send SMS/MMS to this contact or number"?

I see incoming block functionality, but nothing for outgoing.

Ideally, I would like certain contacts or phone numbers to simply not be available when selecting recipients from the Messaging app.

(Note that unlike for this outdated question, it doesn't matter to me whether or not I can receive incoming text messages / MMS from the contacts in question.)


问:
How to search entries in the dialer contacts by both first name and last name?
I have Android 10 on my Nokia phone which uses AndroidOne program, i.e. it has the standard Google dialer app installed.

The display settings in the app are set to "Sort by Last Name" and "Display first name first".

I have the following issue: When I search for a contact in the dialer app and type a last name of the contact in the search field, the correct contact is not found. Only if I type the first name in the search field, does the contact get found.

If I search for contacts in the Contacts app (also by Google), the contacts are correctly found regardless of which part of the contact I type in.

Why is there this difference? I'd expect the dialer app to also find contacts by any part. The dialer app has the access permission to contacts on the phone.

Thank you for any hints!


问:
Storage Shows Two SD Cards?
Nokia 1
Android 9
Storage shows one SD card in use and a second SD card not inserted.
There is only one SD card in the phone...
Please see image.

Title: Storage Shows Two SD Cards?


问:
Samsung keyboard won't respect my input language choice in web browsers
I just got a new Samsung S20 and am working on getting it configured properly. The system language is English because I like all my technical things in English, but the input language I want is Swedish since I live in Sweden and that gives me some extra Swedish characters that I often need.

So for Samsung keyboard I've only installed Swedish as input language, and that works as expected for most places although it's still forcing me to use English as the primary input language when I'm using a web browser like the built-in or Chrome.

How can I make Samsung Keyboard respect my input language choice even in web browsers?


问:
How to get contacts from Titanium Backup on Windows PC - without restoring on a phone?
I made a backup of my phone using Titanium Backup, including the contacts.

How can i open this contacts backup on a Windows PC so I can see all contacts data?
I would like to restore them manually (or add the missing info to existing contacts).

I would like to avoid restoring this backup on a mobile phone.


问:
Android 5.1.1 (CyanogenMod CM12.1) - problem Multimedia - pls HELP
I have an Alcatel One Touch Pop C7 (7041X) that is still a phone, but with too old software - Android 4.0.2, which not allow install of most the apps who I have interested.
I decided to upgrade it to the above level.
My goal was to achieve optimum functionality of device and durability of the battery.
I tried a lot of variants. Тhe most appealing to me stayed the version CyanogenMod CM12.1_StableEdition_V2.

This customROM (Android 5.1.1 (LolliPop)) is perfect in every way except the Multimedia. In my opinion the problem comes from the used decoders and encoders ... or more precisely in their settings ...I read on the Internet and maked a lot of experiments ... but alas with no result ...!
Now will be glad if I eliminate this problem with your help ...!
One quick word about the problem or at least what the most annoys me.
The problem appears when I try to watch TV online with the Da Player app (play streaming video in format *.m3u8). The application itself installs normally, loading the playlist also works, but when playing whoever it is channel, it previews the following (see attachment screen ) without sound.

I want to emphasize that on the same phone, but installed Android 4.4.2 (KitKat) - this effect is not observed - the app (Da Player) works fine.

The phone is rotatable and has an MT6582 processor.

I would be really glad if anybody would cooperate ...

Thanks in advance !


问:
Microphone stops working when video is enabled in a Signal/WhatsApp call?
I use Android 10 on an Essential Phone, updated to the last platform build of Android (QQ1A.200105.032). When I make a call in Signal or WhatsApp, my microphone works properly and the other person can hear me. As soon as I enable video, the other party can see me but can no longer hear me. I downloaded a microphone test app, and it shows three options for the microphone: Default, MIC, and Camcorder. It picks up audio for all of these.

What's also strange is that if I record a video in Signal or WhatsApp, it records both audio and video correctly. It's only on calls that the audio doesn't work with the video. Both apps have all the correct permissions (microphone and camera), and I've cleared the cache in both applications and reinstall both.

What could be causing this? How else can I debug this?


问:
How to block an app from accessing my speaker?
How do I prevent an app from playing audio on an Android?</p>


问:
How to get the information about my USB bus, version on Android 9
On my Android 5 the app Device Info HW shows what version of USB I have and whatnot, on my Android 9 the info is blank, why?

Is there any other way to check it somehow?


问:
Troubleshoot VPN issues on Android
I'm using the Always-on VPN feature of Android to ensure a VPN connection. Whether I'm using OpenVPN or Strongswan as a client I always have connection issues on Android if the network node changes. Either I have to wait for a random time (1min - 30min) until it works by itself or I have to reconnect manually.

Strongswan is worse than OpenVPN because it literally happens every single time the node changes. Sometimes the client even reconnects by itself, as I can see on the elapsed time being reset, but I still have to reconnect manually afterwards to use the network. This is really annoying but I have no idea how to troubleshoot this problem. I tried searching CatLog for VPN entries but I didn't found any warnings or errors.

How could I troubleshoot issues like that?

OwnerDisplayName: dun

Title: Troubleshoot VPN issues on Android


问:
How do I access the files on my broken Huawei phone without HiSuite?
I accidentally threw my phone onto the road today and now the screen is completely unusable - fully cracked all over, fully black, light still shines from the back light but there is nothing on screen at all. I want to save my music and photos, but when I connect my phone to my computer I have to use HiSuite to get to my files. As I can't go into my phone and give HiSuite the permission to go through my files, I'm stuck. Is there really no alternative way to get my files back on my Huawei device?

I've done some research and apparently you have to download HiSuite's drivers but not the program - unfortunately I'm not tech savvy enough to understand exactly what that entails. I'm sure there's a simple solution to my problem that I'm missing and I hope you can help me out!


问:
How to enable optical/LED notifications on Android 9/Fairphone 3?
I'm used to the LED indicator light on the front for unseen notifications from Moto G2014/LineageOS 14. I searched for 10 minutes for a setting and I think I revisited all of them. There is however a LED in the front which indicates the charging progress. I assume it can be used for notifications as well.

There're a few forum post which claim to explain how to enable it, but don't.

The Fairphone has Android 9, updated yesterday.


问:
How to adopt ꜱᴅ card as Internal storage on Android pie and above on devices without the option in the menu?
A well‑known workaround in such case is this (and as you can see with those command this didn’t worked for me) :

```<code>C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
gts3llte:/ $ sm set-force-adoptable on
gts3llte:/ $ sm list-disks adoptable
disk:179,64
gts3llte:/ $ sm partition disk:179,64 mixed 50
gts3llte:/ $ sm mount private:179,67
gts3llte:/ $ sm list-volumes all
private:179,67 unmountable
private mounted null
public:179,65 mounted 3531-1DC7
emulated mounted null
gts3llte:/ $ reboot

C:\Program Files (x86)\Minimal ADB and Fastboot>
</code>```

But starting with Android Pie, those commands were moved from vold to Binder and as sm only affects vold some of the commands above are now dummy..

This also affects the way to do it with root. Though in my case, now that I did this, going to storage settings systematically crash the settings app.

So how to use sd card as internal storage with newer versions of android ?


问:
How to dump full device settings on recent Samsung from Linux?
In my case, I would really be annoyed to no longer have phone/lte working because of the detection of a non Samsung firmware.

So I’d like to root the device (or boot from the sd card) by modifying the current firmware (especially since an official Samsung update changed the bootloader along with the kernel last month).

I want to dump full storage including the apps stored on /data. But so far, all I found doesn’t work on the latest Samsung or is for Windows only.


问:
My pixel XL 1 keeps asking to sign in to my wife router
My phone keeps asking me to sign into my WiFi router. Almost every morning same goes for my wife's pixel XL 1. Is this a phone issue or router issue. Forgetting the network doesn't help.  https://imgur.com/a/UU6XpSa</p>


问:
Apps Not Downloading/Updating After Factory Reset
I have a problem with my Pixel 3.  I was having an issue with Google Play not updating any of my apps over the past couple days.  After trying several things, including:

Clearing Cache and Data

Force Stopping Google Play

Disabling Google Play Updates

None of those solutions worked.  I decided to do a factory reset on my phone.  However, once the phone restarted, the play store got stuck in "Completing Setup."  It was trying to install an app, but it said "Waiting for Wi-Fi." However, the phone was definitely connected to my Wi-Fi, and I have a strong and stable connection.  I decided to just cancel all the pending downloads and updates, but that didn't seem to help, as I still can't install or update any apps if I try it one by one.  I either get a "Waiting for Wi-Fi" or "Downloading..." message for the app, and nothing else happens.  I have no idea what to do next.  Does anyone know of any possible solutions?  My phone is not rooted, and I would prefer solutions that don't require that if at all possible.


问:
Infinite boot on stock Galaxy J5 2016
I want to recover user data still on device memory on a Samsung Galaxy J5 2016 that won't start.

When i try to normally boot up the phone it goes to the model screen and then switches to a screen animating the samsung logo once and then continues with pulsing brightness.
It stays like this seemingly forever while the battery is running hot.
During some research i stumbled across the wording "boot loop" but i'm unsure if this is appropriate, since it is not shutting down and restarting.
I'm able to access the recovery menu and tried the "wipe cache" option and tried restarting without sim/sd card which both did not help.

To clearify my intentions: i want to recover left over user data left on the phones memory (not on sd card). The hardware itself will be dumped afterwards, so resetting to factory state would not help in my case since it would delete user data. (Or am i wrong at this point?)

If, for example, a desktop crashes, you could still reboot from an other drive and access the harddrive with the faulty system. So might it be possible to boot something else up on the device without touching the existing system.
Notably the device is unmodded. It has never ever seen the development settings, no USB-Debugging, no OEM-unlock. So flashing will not be possible from what i've read. Funny (or frustrating) enough that samsung devices softbrick on their own.

Whilst writing this question this thread popped up in the suggestions with astonishing similar symptoms though in that case, as in all other articles i read, the problems were caused during tinkering on the device so that the oem-unlock already happened and a new recovery was already flashed on, which, as mentioned previously, is not the case here.

Title: Infinite boot on stock Galaxy J5 2016


问:
Is there any way how to reactivate email notifications for new messages on Facebook's Messenger?
I was getting email notifications for new messages on Facebook's Messenger. Then I installed Messenger Android app. Then I removed Android app. I would like to use Facebook and Messenger on web only. I would like to reactivate email notifications for new messages on Messenger, but in the Messenger's settings, there is only a setting for Desktop Notifications, which don't work for me. Is there any way how to activate email notifications?

On the main Facebook app there are many other notification settings, but not for new messages.

OwnerDisplayName: Robert Zelník


问:
Music stops when the screen is off
After selecting a music file to open in file explorer in a floating mode, the music stops as soon as the phone is locked. I whitelisted both the player and explorer in battery saver settings but no luck. Playing music in the music player itself isn't creating this problem, though.

(Click to enlarge)

Edit: The device is Redmi 5 plus but it's on a custom rom (Havoc OS 3.3, Android Q). The music player is Hash Music Player

Title: Music stops when the screen is off


问:
Frequent audio dropouts on bluetooth, is it possibe to increase BT emission levels
I have a Xiaomi Note 7 and AKG Y500 headphones. I experience very frequent audio drop-outs unless I keep the phone close to the headphones (in my shirt pocket...).  The same headphones work flawlessy with my PC. Experimentally, checking at home how far I can go before getting drop-outs I have a lot more range with the PC (at least 8 metres) than with the phone (3 meters tops), so I conclude that the emission level of the headphones could be insufficient (the other hypothesis is that the phone isn't sensitive enough to get the return signals from the headphones).

Is there any way to increase the BT emission level of the phone?

Running Android Pie.


问:
Can't use/format SD card formatted as internal storage
I have a SanDisk Ultra 16 GB SD Card and formatted it as internal storage in my Nokia 2.1 (Android 9 - Not rooted).

I can't use or format the sd card on my phone.

When I choose to format it as internal storage, I get the following toast:

Attempt to invoke virtual method 'java.lang.String android.os.storage.VolumeInfo.getId()' on a null object reference.

When I choose the other option - formatting as removable media - the format process finished but nothing happens and my SD card is still unknown to my phone.

So I decided to format it with my computer. This is what gparted shows:

When I delete these two partitions, the operation completes, but I still have those partitons!

When I try to delete those partitions and create a new FAT32 partition using GParted, I get the following error:

```<code>
create empty partition  00:00:04    ( SUCCESS )

path: /dev/sdb3 (partition)
start: 2048
end: 31115263
size: 31113216 (14.84 GiB)
libparted messages    ( INFO )

Can't have overlapping partitions.
Partition(s) 3 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
</code>```

So I tried writing zero to the entire disc, using dd:

```<code>[dsm@dsm-pc ~]$ sudo dd if=/dev/zero of=/dev/sdb status=progress
[sudo] password for dsm:
15928488448 bytes (16 GB, 15 GiB) copied, 3894 s, 4.1 MB/s
dd: writing to '/dev/sdb': No space left on device
31116289+0 records in
31116288+0 records out
15931539456 bytes (16 GB, 15 GiB) copied, 3922.32 s, 4.1 MB/s
</code>```

Nothing happened after that, I still have those partitions!

I don't need my data, is there a way to format this SD Card? I checked many similar questions here and in other websites, but none of them helped.


问:
Android: Change file-contents under /system/etc with Magisk
I would like to change a configuration file under /system/etc or /etc. Neither of those locations are writeable and I can't make them writeable with a rw remount. The device is "rooted" with Magisk.
How can this be done? </p>


问:
Can I install TWRP with stock recovery via apply update from sd card if I change the file to update. Zip? I'm on zte trek 2
Can I install TWRP using stock recovery and sd card?</p>


问:
Share clipboard data between users on multi-user (secondary space) Android?
Leaving security concerns aside, is there a reliable way to communicate data via clipboard between users on a single device without using network methods? For example just to copy a link in the primary space  and  then access it later via clipboard in the secondary space. App suggestions are welcome.

NB: There is already an option to import/export files,photos etc (but not clipboard sharing)

Running MIUI 9, Android 7


问:
Can I use an old SIM from a locked phone in my Redmi?
I've never had a Smartphone that I used as an actual phone with a SIM before. I have a Redmi 6 I bought overseas (Android 9, MIUI 11) that's only been used with Wi-Fi. I just cut short a long overseas trip due to the COVID crisis. I can't go out to buy a SIM. I can't get one delivered.

I need a phone number to do government stuff online. The online stuff won't work with my sister's phone as a phone number can only be used for one account. My nephew has an old phone with SIM that fits in my phone. The SIM is or was registered to him but has not been used for six to twelve months. The phone was surely locked as is usual for cheap phone packages in Australia. I have no clue whether SIMs are locked to certain phones, or just phones are locked to certain SIMs or certain carriers.

Putting his SIM in my phone, it recognizes the SIM, but not the carrier, phone number, or anything else. I couldn't send a text or receive a text. It does say I can make emergency calls only.

Is it even possible to use a secondhand SIM in my phone? Are my problems due to this not being possible, due to phone settings, or to do with the SIM or the phone service provider (Telstra)?

I can't find anything on the phone about setting up a new SIM. Perhaps some SIMs can only be registered once and are locked to the phone they were packaged with?

Because I'm so totally clueless and my situation has more than a few unique characterists I haven't had any luck Googling a solution yet.


问:
Is there any command to launch directory of file manager in android phone using adb?
I want to open Download folder in my android phone using adb. I have example command for different terminal:start . /path/to/that/folder command for command-prompt and nautilus /path/to/that/folder for ubuntu terminal. Please help me to find the adb shell command..


问:
adb KEYCODE ENTER or 66 is not working in huwaei/Vivo phone to toggle the Airplane Mode
Using ADB Keyevent i am trying to enable and disable the Airplane Mode toggle option from UI, but its not happening...can anyone help me on this.

I tried with adb KEYCODE ENTER and 66 as well, but nothing works in my devices.


问:
Other person's audio cuts out when I speak
When I'm using WhatsApp or Duo or any other VoIP calling app I've found so far, the phone (OnePlus 5T) seems to apply some automatic "echo cancellation" where it cuts out the other person's call if they're on speaker, every time I speak so I can't hear myself.

This persists even for a second or two after I stop speaking, and can make me miss some of what the other party is trying to say as they are effectively "muted".

I've tried turning off noise cancellation in the caller app without any change, and I can't find an option in WhatsApp or Duo. I've also only been able to test with the other person on an iPhone, so it may be on their end but if so is there a solution to disable it from their side?

I don't mind being able to hear myself - I use earphones. Is there a way to disable this "echo-cancellation" feature? I am rooted if necessary.


问:
is it possible to delete a file from system folder without being root?
I found this file: /system/recovery-from-boot.p and I've read this is preventing me from entering in the recovery mode, but as I'm not root, I can't find a way to delete it or rename it...any suggestion, please?</p>


问:
Windows can access the phone's internal storage over USB, but not it's Micro sD card
My Samsung Galaxy A8+ (A730F), running Android Pie, had a faulty USB connector due to water damage and for a very long time, it wouldn't connect over USB. Nevertheless, everything else worked just fine.

Recently I had this piece replaced by a technician and it seems to be working alright, but I just noticed that on Windows, my 128GB micro SD card is shown next to my Internal Storage as empty and with a size of 128MB.

I can interact normally with the Internal Storage and when I put the micro SD card in a card adapter and plug it on my PC, everything works fine.

I'm using and original USB cable, my micro SD card is legitimate (confirmed it on SanDisk's website) and there aren't any other issues. Also, I have root access.

I tried clearing cache/data on Media Storage and External Storage, but had no luck.

I know that if nothing helps, I'll have to contact the technician, but I'd like to discard other possibilities first.

Any tips?

Thank you!


问:
Folders become unknown, undeleteable file type. How to fix and/or delete?
I'm trying to re-organize and replace the music on my phone's ext. SD card, but some of the folders have become some sort of unknown file type. In Windows, the properties window just says it's file type is "File". That's it.

I can't delete, open, or move them (from my PC or in the phone itself); however, I can still listen to the music (only through my music player app) and rename the folders. I've tried deleting them in Windows, in my phone's music player app, and in my phone's file manager but nothing seems to work; on Windows it says,

[Album name] could not be deleted. The device has either stopped responding or has been disconnected.

and on my phone deleting it does nothing and gives no feedback whatsoever.

Is there any way to fix this? I'm okay with deleting the files since I have more copies, but that doesn't seem to be possible either. I would probably be okay with most options except nuking the entire SD card

Thank you in advance.


问:
How do I find out when I will be able to change country in play store again?
I know I can only change once per year, I but I don't remember when I last changed it. I think it was close to a year ago, but I would like to be able to see what date the 1 year will expire so I can set a reminder then to go and change my country.

p.s. why is this once per year restriction in place? is it a legal thing or a commercial thing? Does not make sense to me.


问:
Hard Reset on SAMSUNG TAB 4 SM T230NU not working. What are the alternatives?
I have a SAMSUNG TAB 4 SM T230NU. Don't remember the password. I tried the Hard Reset of

1) Menu(Home) + Power + Volume Up buttons

2)  Power + Volume Up buttons

Each time I try one of the above sequence, I see that the system powers on and I see the initial samsung logo with the model name. After a few seconds, the screen empties and then again, the same samsung logo with the model name. This sequence repeats.

But I never see the RESET Menu.

What did I get wrong ?

Isn't there a way to get a password reset instruction in the email that I've setup ? For example, how do I get to a "Forgot password" screen/button ?

Thank you


问:
How to read my email in a threaded view?
I am subscribed to quite a few newslists for which the flat view is subpar in terms of readability and clarity.

Hence I am looking for a way to read them in a tree view mode like the desktop application Thunderbird does.

I have tried the standard Google Mail reader and K9 Mail unsuccessfully.

How can I achieve this?

ContentLicense: CC BY-SA 3.0


问:
Recompile kernel: no errors but it doesn't work
I'm a beginner, and at the moment I'm trying just to repack original boot image. I've discovered that boot partition is on the "/dev/block/mmcblk0p7", so I pulled it with adb pull /dev/block/mmcblk0p7 original_boot.img
Then with tools from https://forum.xda-developers.com/showthread.php?t=2319018 I've unpacked original boot and then recompiled it. But then my image don't boot. Flashing it with TWRP caused bootloop. Where am I wrong?


问:
Why is the proximity sensor suddenly shining brightly?
Top right is where the "light / proximity sensor" lives, according to the manual. It is clearly visible as white light on this photo - that is expected. What is NOT expected is that it is also clearly visible to the naked eye?! It's a tiny red dot, impossible to photograph as such.

That sensor has never been visible before! Why is it visible now?


问:
Enable background location on Samsung M20?
Is there a way to allow specific apps to access the (coarse) device location when the location service is turned off?

It seems that on Samsung M20 with Android 10, the "location" button in the status bar (GPS location) needs to be active to allow any location access.

On Huawei Honor 7 with Android 5, for example, it was possible for apps with location permission to access the coarse location without GPS enabled, thereby saving a lot of battery when the precise location is not required.

Can this be achieved on Android 10 as well?


问:
Downgrade via stock revovery is it possible and how can I do it with no root or pc
Can I downgrade zte trek 2 hd k88 tablet with stock recovery update from sd card option? I'm trying to use kingroot but it won't root my Android 7.1.1 version. Help! </p>


问:
Recovering Deleted SQLite Records on Disk
I'm trying to access the raw screentime data that Android tracks - located in /data/data/com.google.android.apps.wellbeing/databases/app_usage on my OnePlus 7 Pro.

My problem is that the database only goes back a month's worth of records - presumably old records are deleted regularly to conserve space.

I considered doing a full disk dump and attempting some type of data recovery, but I'm unsure of exactly what to do - given that it isn't full files that are deleted, just SQLite records, I don't know if conventional data recovery tools would easily find anything.

I also tried running undark on a copy of the database to see if I could get anything out of it, but as I suspected nothing new was found.

Are there any known methods or tools for recovering the deleted SQL records (assuming they haven't been overwritten) from disk, preferably without doing a full-disk dump?

I can provide more information if necessary.


问:
How to disable zip verification flag in stock recovery.img?
In stock recovery there is an option to install zip from the sdcard but it doesn't allow installing zips with unknown signature. Twrp can install any zip without concerning about the the zip signature. So my question is simple i.e.

What changes are required to stock recovery for disabling the signature validations provided a rooted adb shell in stock recovery and unlocked bootloader?

Any hex-patch for it or modifying any flag of prop.default file?


问:
Always allow install via USB on Xiaomi
So I'm trying to install my app on the Xiaomi Redmi Note 8Pro but there is a pop-up window that appears at the end of the installation with "allow the access". Is there a way to set "always allow" for this device so I don't have to wait for this window to show up and then click allow?

Thanks

Title: Always allow install via USB on Xiaomi


问:
How can I hide the info panel on YouTube app?
How can I hide the info panels such as the following "WHO covid-19 banner" on YouTube app?

Link to the video: click here

Information about the info panel giving topical context: click here


问:
Is it possible to automatically sync existing (and new) android contacts with office365?
Scenario: After meeting a new acquaintance, we exchange our contact details (phone number, email ..etc). These get saved using the default contact application on an android phone. Later, when logging into my office365 account via a desktop web-browser, the new contact is not present in the address book! Checking the phone shows that it has been saved on the device. The official Outlook app from Microsoft has been installed on the android phone and is capable of sending/receiving email.

Why did the contact not sync up? Is there anything that can be done to make the contact sync happen automatically?

Am open to the idea of switching to a different android email app to get things working, but would ideally prefer to keep using Outlook (or at least a non-Google contacts/calendar/email app!).

If it matters: I have administrative access over the phone as well as the office365 account in question.


问:
how to uninstall beta gcamera app downloaded from unknown installation source for samsung galaxy a50s (SM-A507FN)
I have a new phone. Samsung Galaxy A50s. Model number SM-A507FN
https://www.gsmarena.com/samsung_galaxy_a50s-9806.php

I downloaded Arnova's Beta 6: GCam_5beta6.200105.0445build-7.2.018.apk

for Android 9+ phones from https://www.celsoazevedo.com/files/android/google-camera/dev-suggested/
assuming it will work on my phone. However, the app has been crashing frequently and it does not work.
I have upgraded the software of the phone so it was upgraded to Android 10. Kernel 4.14.62-17887617.

This app was not installed from playstore so I don't know how to uninstall it now.
So please let me know how to uninstall this app.


问:
Mount USB OTG to specific destination folder on Nexus 6
I have an app that looks for videos in a specific folder: “videos”. I'm trying to get my FAT flash drive to mount on the folder videos under /sdcard internal storage.

Nexus 6 (no SD card slot)

LineageOS 16
(Android 9)

Tried:

```<code>~$ su -mm
~# mount -o bind /mnt/sdcard/videos /mnt/media_rw/A064A9EB64A9C3FE
</code>```

Did not work and editing the fstab file does not save after reboot.

Android fstab file:

```<code># The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
#

# NOTE: /system partition is now early-mounted and the fstab entry is specified in device tree (duplicated below for recovery image purposes only):

#<src>                                              <mnt_point>     <type>  <mnt_flags and options>                                         <fs_mgr_flags>
/dev/block/platform/msm_sdcc.1/by-name/system       /system         ext4    ro,barrier=1                                                    wait,recoveryonly
/dev/block/platform/msm_sdcc.1/by-name/userdata     /data           ext4    rw,nosuid,nodev,noatime,noauto_da_alloc,nobarrier               wait,check,formattable,latemount,encryptable=/dev/block/platform/msm_sdcc.1/by-name/metadata,reservedsize=128M
/dev/block/platform/msm_sdcc.1/by-name/userdata     /data           f2fs    rw,nosuid,nodev,noatime,inline_xattr                            wait,formattable,latemount,encryptable=/dev/block/platform/msm_sdcc.1/by-name/metadata,reservedsize=128M
/dev/block/platform/msm_sdcc.1/by-name/cache        /cache          ext4    rw,noatime,nosuid,nodev,barrier=1,data=ordered                  wait,check,formattable
/dev/block/platform/msm_sdcc.1/by-name/cache        /cache          f2fs    rw,nosuid,nodev,noatime,inline_xattr                            wait,check,formattable
/dev/block/platform/msm_sdcc.1/by-name/modem        /firmware       ext4    ro,barrier=1,context=u:object_r:firmware_file:s0                wait
/dev/block/platform/msm_sdcc.1/by-name/persist      /persist        ext4    rw,nosuid,nodev,noatime,barrier=1                               wait,check,notrim
/dev/block/platform/msm_sdcc.1/by-name/boot         /boot           emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/recovery     /recovery       emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/misc         /misc           emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/modem        /modem          emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs1  /mdm1m9kefs1    emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs2  /mdm1m9kefs2    emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs3  /mdm1m9kefs3    emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/sbl1         /sbl1           emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/tz           /tz             emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/rpm          /rpm            emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/sdi          /sdi            emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/aboot        /aboot          emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/versions     /versions       emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/logo         /logo           emmc    defaults                                                        defaults
/dev/block/platform/msm_sdcc.1/by-name/frp          /persistent     emmc    defaults                                                        defaults
/devices/*/xhci-hcd.0.auto/usb*                     auto            auto    defaults                                                        voldmanaged=usb:auto
/dev/block/zram0                                    none            swap    defaults                                                        zramsize=536870912,notrim,max_comp_streams=4
</code>```

Hard to find info on Android mounting system. These are what I have found:

How to bind-mount "data" and "obb" folders from external SD card in "/sdcard/Android"?

How can I make a symlink (or equivalent) inside /storage/emulated/0?

Mount USB OTG to specific destination folder

Let's clear up the confusion regarding storage in Android once and for all, including adoptable storage in Marshmallow.

How the Mount SD Card Android Process works


问:
Changing third-party websites on android device without browser extensions available
I'm searching a way on how to change behavior of some website in mobile browser.

For example:

Remove annoing Ad (specific one)

Change some elements on a website, to make it easier to read on small screen (change some css)

Make site measure how much time I've spent on it, and "block" me from using it more time per day than I've configured.

On desktop browser I'm usually solving this tasks by using extensions like TamperMonkey/GreasyMonkey (which allows me to add custom JavaScript code to page and do what I want on the page), StayFocusd (to limit distractions) and so on.

But most of mobile browsers doesn't have extensions (and it's understandable because they often writen poorly and could eat too much CPU on not-so-powerfull device).

To be honest, Firefox for Android has addons but there are very few. Just adblocking, privacy and some bugfixing extensions. No TamperMonkey/GreasyMonkey analog.

Also, I know, that UCBrowser has it's extension store, but my Chineese is bad, and the store is all on Chinesse :)

I came to the folowing idea:

Setup my own DNS server and configure my Android to use it (now it's possible without root)

Setup my own squid proxy server

Create self-signed SSL-certificate and add it to my Android's certificates storage.

For sites where I want to make some augmentations, my DNS should give IP-address of my squid-proxy (which is using my self-signed cert or generating cerificated for needed sites, signed by my self-created authority certificate)

The proxy should be loading the real site, and patch it's html files, adding my JavaScript file into it.

So I would be able to change parts of the sites, removing ads, measure time spend and so on. Everything is possible!

I have knowledge and skills to make all of the described steps (or it seems so), BUT! I don't have enough free time.

I want to know, maybe there are something like this implemented in a single service?

Or maybe you could direct me to some easier solution of the problem?


问:
How to decrypt a dumped android partition on a pc?
I chose to boot android on the from the sdcard in order to have more storage. So I dumped though dd the internal 32Gb storage to the 256Gb sdcard with the partition table included. By just changing the kernel command line and the ro.boot.bootdevice property, the device now boots from the sd card after loading the kernel from the internal storage.

I then put the sd card in a pc, fixed the partition table size to match the one of the sd and then set up the userdata partition (/data) to fill the remaining space.

Then I wiped the filesystem and performed a factory reset in order to hope it would create a 250Gb filesystem for /data. But while data was mounted from the sd card and that the mapped block device was 250Gb large, it was formated using 25Gb instead of 250GB (the original size on internal storage).

This means I have to grow the /data filesystem using an external computer. Now the question is, what’s the exact dmsetup command in order to create the block device for decrypting it for growing the ext4 filesystem using resize2fs?

Given also I forgot which is the file containing the decryption key.


问:
How to safely upgrade unlocked phone?
I have a Samsung Galaxy S8 from Virgin Mobile that was SIM unlocked and I'm now using Mint. I was prompted for an update by Samsung and it relocked my phone, I had to contact Virgin Mobile to unlock again, which took several days.

I'm now getting prompted for another update. How can I install without having my phone relocked? I also have this permanent Notification saying my phone can't connect to the Sprint OMADM network ("Configuration not completed"), any way to make that go away? Can I just install a new Android image?

Title: How to safely upgrade unlocked phone?


问:
Securely storing keyfiles with authentication and alike
I am using Keepass as my password manager. I am using a keyfile for securing access to my database. However when I want to do the same on my android phone I have to store the keyfile in my phone storage. This is of course bad since technically losing my phone means that someone who finds it can have access to the keyfile and the database. So they only need to guess my master password to get all my passwords.

I am looking for a way to securely store the keyfile. Secured with a password or a fingerprint. Optionally restricting access to the keepass app only. I can encrypt and decrypt the file manually before each unlocking of the database but it is cumbersome to traverse the file system each and every time.

When choosing a file to open from any app there is the option to choose which app to use. Is there any software out there which could show in this dialog as well? In the app I could choose the file I want which would be temporarily decrypted after authentication. The temporary file would then be passed to keepass and used.

Is there any app out there I could use for this sole purpose?


问:
Long term beacon ranging causes Bluetooth failure
We have an Android app that does beacon scanning using altbeacon  This can be with the app in the foreground or background.  After some random time interval (usually hours, but not always) of beacon ranging the Bluetooth will stop working.  At that point no Bluetooth devices, beacons or otherwise, can be detected.  It requires Bluetooth to be turned off and back on before BT works and beacons are detected again.

Other beacon scanner apps from the store also fail to detect any beacons when this issue occurs.

We added BluetoothMedic from altbeacon, but it never detects a problem.  The issue seems to occur on Moto g6 (OS 8) and Moto g7 (OS 9) phones.  Have not seen the issue on a Google Pixel 3 (OS 10) or Samsung S8 (OS 8).

So, the question is, is there a way to detect Bluetooth being on, but failing to detect devices?  If we can do that, we can trigger a Bluetooth power cycle to correct the issue.  Better yet, is there something that can be done to prevent the problem in the first place?  Looking online this type of failure seems to be not uncommon with the solution being a Bluetooth power cycle.

Thanks for any help.

OwnerDisplayName: PNW


问:
"This device has been reset. Sign in to continue with the Google Account that was previously synced on this device."
I have a used Huawei P smart 2019 which has just received a "factory reset". I put that in quotes because during the new configuration it asks for the last used Google account:

Verify account

  Sign in with your Google account.

  This device has been reset. Sign in to continue with the Google Account that was previously synced on this device.

The problem is that the young user has lost his Google account access. There is no recovery phone number, no secondary email address... no way to log into this phone. That's why we're setting up a brand new account. The new account is ready for use but the phone is not.

--> How do I do a real reset on this phone??!

I have done the reset according to the official instructions:

At the beginning you switch off the device.
  Then hold the "Power Button" and "Volume Up" button until the Huawei logo and then the EMUI icon appears.
  Use the volume buttons to select "wipe data / factory reset" and confirm with the power button.
  The recovery mode then appears again. Now select "reboot system now" and the smartphone will be restarted. The device is then reset.

The problem is the last part in bold: it's not completely reset, it still wants a login using the previous account, but there is no way to provide that information.

I've found this 5-year-old answer saying "This is an anti-theft policy" but there has to be some solution for forgetful people that have not been robbed!

Following the trick described in this video starting at 4m09s, I was able to bypass the dreadful screen and continue with the Android setup process, but I eventually reached a dead end where it showed me a completely blank screen and briefly showed the toast message "Unlock device to continue". At this point I could only reboot or power off. That video continues with another trick at 7m20s that does not work on this phone because the popup browser window doesn't offer the "share" function (only "copy" and "select all").


问:
Symlink from /sdcard to /sdcard
I am trying to have Google Markup output its image somewhere other than its default location. I have used different ROMs and versions of those ROMs, and each combination I tried has Google Markup's output location change. Google Markup doesn't look like it has any settings to change its behavior, so I tried to adapt its output to my desired location. The default output on my current setup is at /storage/emulated/0/Android/media/com.google.android.markup/Markups/, but I would like to have it at /storage/emulated/0/Pictures/Screenshots/. I tried the following from Windows ADB:

```<code>RMX1921:/ $ su
RMX1921:/ # ln -s /storage/emulated/0/Android/media/com.google.android.markup/Markups /storage/emulated/0/Pictures/Screenshots/
ln: cannot create symbolic link from '/storage/emulated/0/Android/media/com.google.android.markup/Markup' to '/storage/emulated/0/Pictures/Screenshots//Markup': Operation not permitted
RMX1921:/ #
</code>```

I'm using a Realme XT with DerpFest 10 build 2020-03-29 (Android 10r31) rooted with Magisk v20.4 if it matters. Is there any way I can automatically redirect Google Markup's output to a different location?

Additional things I would like to do:

Markup leaves the original file behind on this system (also one of the inconsistent behaviors of Markup on different ROMs). I would like to get the file name of the original file, and use it to rename the file Markup generates. The format is: Screenshot_YYYYMMDD-hh-mm-ss.png.

After moving the file, delete the original file, which is at /storage/emulated/0/Pictures/Screenshots/.

I'm thinking of a script that constantly runs in the background, doesn't have to be instant, maybe it triggers and checks and processes everything once every 5 seconds. But I feel like I might be overcomplicating a lot of things. Any ideas?

Thank you for your time.

Title: Symlink from /sdcard to /sdcard