text:
How Do I Get the Phone to Automatically Open My Gate for Package Delivery?
The intercom dials my number and the phone needs to press '9' to open the gate (the call disconnects when it does). I want it to do this by itself any time someone uses the intercom (I can't answer when I sleep or am driving or on silent etc.).

As far as I know from my friends and relatives whom live in gated communities. It depends on how old the intercom system is. The older communities have to use the hardwired phone lines to be able to be used with the communities exterior info-com system.
However, the newer communities do have the ability to through the communities network to connect your android device to the communities info-com system.
This though is just through again my families and friends personal experience.

This question has nothing to do with the intercom system. This is a question about a phone.


text:
Connect multiple Phone's hotspot to one PC
I am trying to connect 2 phones to a PC wireless.
The issue is that when I use a router connected to a PC and to the phones using wifi, it will prevent the phones from going to internet with mobile data, and I need 4G connection to internet.
Using only one phone is working properly, since I can do wifi hotspot from the phone, the phone will than go with the 4G and will also be connected with the PC with wifi dongle.
The issue is that any hotspot will have the same ip address - 192.168.43.1, as it is hard coded in code. So connecting 2 phones to same pc will have 2 gateways with same IP.
What is the proper solution ?

There are multiple possibilities if one or both of your phones are rooted. You need 4G on both phones?

@IrfanLatif Hi, I can't root the phone ... I need to go 4G on both phones and connect with PC on ADB with WIFI/BT.

Then create hotspot on PC (if WiFi dongle supports AP mode), connect both phones to that. Since there won't be internet connectivity from PC side, both phones will also keep connected to 4G ( not sure if this behavior has been persistent on previous Android releases).

" ( not sure if this behavior has been persistent on previous Android releases)"
No it will not connect to internet unfortuntly. it will try go from wifi even 4G is working and wifi no.

It works for me on Android 9. Whenever WiFi drop connectivity to internet, 4G automatically starts working. Try setting “Mobile data always active” in Developer options. Otherwise rooting is the only solution.

I use Xiami Go and andorid 8

source: Stack Exchange

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

sort: votes


text:
How to use SD card formatted as internal storage for arbitrary data?
On an LG V30 with 64GB internal memory I wanted to be able to use a 200GB SD card (which strangely gets reported as 256GB) to store larger amount of data like pictures, music and movies.
I learned that with Lineage OS 16 (Android 9 Pie) you cannot use your SD card as before since apps are no more allowed to write data to SD cards (is there an Apple manage working at Google now?!)
I then formatted my SD card as "internal storage" (believing that it now extends my 64GB to 200GB) but there doesn't seem to be a way to move arbitrary date to this new "internal storage".
So my (still very fuzzy) question is: is there a way to use an SD card to store arbitrary (i.e. not owned by one app) data like a Movies, Pictures etc. folder (which might be synced automatically by Syncthing or similar apps)?
(extra question: can formatting an SD card as internal storage be undone?)

Android rounds-off storage size to nearest power of 2. So 200 would be becoming 256. Apps aren't allowed to write directly to external SD card since KitKat at least; they hired Apple managers long time ago ;) That's why SAF was introduced which is extended in 5, 7 and now in 10. You must already be saving arbitrary data to Adopted SD card. Check with df if it's /mnt/expand/[UUID] mounted on /storage/emulated.

I don't know if I really get it.. Can I relocate Pictures, Downloads or Music to the adoptable storage? And is there a way to comfortably access data @ /mnt/expand/[UUID] (i.e. without having to lookup and re-enter this ugly path again and again)?

Possible duplicate of How to free Internal Storage by moving data or using symlink / bind-mount with Adoptable Storage?

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
Preferred Network Type Settings
I am on Miui and the default setting for the Preferred Network Type doesn't want to save. I want to change it but when ever I close it it won't save. Anyone knows how to fix it?

For 4G devices, default will be 4G. If you need 3G, just select it, device will save it, and switches to 3G. I don't know why it's not saving settings. Check whether you've applied right ALN4.

What is ALN4? Also by default it keeps reverting back to LTE/TD-SCDMA/UMTS when I want to have it on LTE/CDMA/UMTS auto (PRL) which gives me much better coverage and will give me 4g more often for some reason.

Sorry it was a typing mistake. I mean APN settings for that service provider.

I have just reset it using a built in feature. I will see if that works.


text:
Fast WRITE speed or fast READ speed?
To move and use apps on its SD Card my droid suggests I use a "fast" SD card. https://www.cameramemoryspeed.com/sd-memory-card-faq/fastest-memory-card/ Ranks SD Cards by WRITE Speed and READ Speed. Interestingly, the same chips seldom appear in both lists.
If I want to use my SD Card to store and run apps, is fast WRITE speed or is fast READ speed the most important quality to look for.

Read speeds are always higher than write speeds because of the overhead involved with writing to flash memory. So use an application grade card with high write speeds.

Camera benchmarks are not relevant if you want to move apps onto the sd-card. For apps random access reading and writing operations per second are more important than bulk read/write speed. If you want a fast sd-card for apps check sd-card with the "Application Performance Class 2" (A2) rating.

You should consider the R/W together. Both make differences. However, for the apps, they usually do read and pull the files into memory (RAM) and make use. Write will only be done where something changes or the app's job is to modify the files. Else there will be very less write happening during app's operations. The write will be more used when installing new apps to the SD card.
So, for most apps, the read will make more difference. Generally, an SD card with higher write speed will also have higher read speeds. In the end, the memory will still be slower than the inbuilt EMMC/UFS in most of the phones. So, some performance drop should still happen.


text:
how apps bypass VPN?
I installed flipkart from apk. And without logging in searched for mobile phones.Then cleared app data and started VPN and then opened the app again but I was getting recommendations of searched phones. How flipkart bypassed VPN? How can we sure that browsers don't really bypass VPN?

Apps use device/OS identifiers to do profiling of you which don't change by using VPN or by clearing apps data.

It didn't bypass the VPN. The apps use your other identifications such as "Advertising ID" identify you. Then this information is used to give you suggestions/recommendations based on your previous browsing or search history.
Most apps will also keep a local cache. So, unless you have cleared data for the app, the app knows everything you previously did.


text:
Android automatically deletes content of my Downloads folder
Previously I had a Nokia 7.1 (Android 9) when I started to notice this issue. Every few time, the older images I had on my Download folder disappeared without I doing nothing. From time to time it happened again. I let this pass. Every time that ocurred, I manually download the images again, because I needed to have those images there.
Today, I have another smartphone (Multilaser MS50X, a brazilian cellphone with Android 8.1) and exactly after a month of started using it, the older images of my Download folder disappeared again!!!
I've checked some apps that I think it could be doing something like that:
* Google Chrome (downloads data to this folder)
* Google Photos (sync and backup images)
* File Manager + (access to data and folders)
* Quickpic (gallery app)
But no one have an option to "automatically delete Download folders content after a while".
I don't have any Clean App, neither use the function "Free up space" of Android. Also none of those cellphones had an option like "storage booster" or "smart storage" like state on this thread: Android phone automatically deletes photos?
Any clue where can I look? It's annoying
Regards
Update: When I open Google Photos, go to 'Photos on device', and select 'Download', I can see all the deleted images (the images that should be on that folder and it doesn't)

https://android.stackexchange.com/search?q=%22Google+photos%22+%22delete%22+%22photos%22

Google photos has a setting for "free up free storage". Check if that's enabled

Also some cloud backup apps have a similar option to free up device space

Check if you have storage manager enabled. It will automatically start deleting backed up photos and videos after they cross the selected timeline.
You can locate it in Settings > Storage > Internal Storage > Storage Manager.


text:
How does Android treat files bigger than free space remaining while recording?
I've spent the entire day trying to solve this issue, it seems paranormal but (sadly) it's true and I didn't find a way to solve it.
Yesterday I recorded a very important video using my Xiaomi and Quick Video Recorder (I used it more than once and everything has always been great), I had something like 3Gb of free space but I didn't check it and I was recording with high quality.
Android told me that was running out of space, so I suddenly stopped recording.
I checked the video and used VLC to replay it and everything seemed to work fine.
After about 30 minutes, the file was missing. I checked everywhere, rooted the phone and tried with recovery applications such as Dr.Fone, but the file is completely disappeared.
To be 100% sure I didn't dream it I also checked on Google Takeout and it confirmed I actually used the camera during that time and suddenly opened VLC to replay it...
How's that possible? Does Android delete an entire video when it's too large? Is there a way to recover even a small portion or to show logs of camera activity to understand where's the file?
I didn't know what to do so I opened adb shell and tried with ls -Rlat | grep '2019-12-18\ 17:' (I was recording around 5pm) and that's the result:
drwxrwx--x   3 u0_a187 sdcard_rw 4096 2019-12-18 17:07 files
drwxrwx--x 3 u0_a187 sdcard_rw 4096 2019-12-18 17:07 .
drwxrwx--x 3 u0_a187 sdcard_rw   4096 2019-12-18 17:07 ..
drwxrwx--x 3 u0_a187 sdcard_rw   4096 2019-12-18 17:07 playlists
drwxrwx--x 3 u0_a187 sdcard_rw 4096 2019-12-18 17:07 .
drwxrwx--x 2 u0_a187 sdcard_rw 4096 2019-12-18 17:07 1576685265
drwxrwx--x 2 u0_a187 sdcard_rw 4096 2019-12-18 17:07 .
drwxrwx--x 3 u0_a187 sdcard_rw 4096 2019-12-18 17:07 ..
-rw-------  1 system system     0 2019-12-18 17:50 event_data@1576687815456.lost
-rw-------  1 system system     0 2019-12-18 17:08 event_data@1576685305699.lost
-rw-------  1 system system     0 2019-12-18 17:08 platform_stats_bookmark@1576685305937.lost
-rw-------  1 system system     0 2019-12-18 17:02 system_server_wtf@1576684937890.lost
drwx------  3 system system 4096 2019-12-18 17:34 org.videolan.vlc
drwx------  3 system system 4096 2019-12-18 17:24 com.kimcy929.secretvideorecorder
drwx------  3 system system 4096 2019-12-18 17:08 com.android.incallui
drwx------  3 system system 4096 2019-12-18 17:02 com.android.contacts
-rw------- 1 system system  897 2019-12-18 17:02 total
drwx------  3 system system 4096 2019-12-18 17:34 .
drwx------  2 system system 4096 2019-12-18 17:34 13020307
drwx------ 2 system system 4096 2019-12-18 17:34 .
drwx------ 3 system system 4096 2019-12-18 17:34 ..
drwx------  3 system system 4096 2019-12-18 17:24 .
drwx------  2 system system 4096 2019-12-18 17:24 245
drwx------ 2 system system 4096 2019-12-18 17:24 .
drwx------ 3 system system 4096 2019-12-18 17:24 ..
drwx------  3 system system 4096 2019-12-18 17:08 .
drwx------  2 system system 4096 2019-12-18 17:08 27
drwx------ 2 system system 4096 2019-12-18 17:08 .
drwx------ 3 system system 4096 2019-12-18 17:08 ..
drwx------  3 system system 4096 2019-12-18 17:02 .
drwx------  2 system system 4096 2019-12-18 17:02 100
drwx------ 2 system system 4096 2019-12-18 17:02 .
drwx------ 3 system system 4096 2019-12-18 17:02 ..
-rw-------  1 u0_a131 u0_a131     0 2019-12-18 17:33 com.facebook.katana_3c8406f3-3e8a-80cd-85cb-0c1211088d8d.v3.txt_anr
-rw-------  1 u0_a131 u0_a131     0 2019-12-18 17:33 com.facebook.katana_3c8406f3-3e8a-80cd-85cb-0c1211088d8d.v3.txt_native
-rw-------  1 u0_a131 u0_a131     0 2019-12-18 17:33 com.facebook.katana_3c8406f3-3e8a-80cd-85cb-0c1211088d8d.v3.txt_wrotedump
-rw-------  1 u0_a131 u0_a131   250 2019-12-18 17:33 com.facebook.katana_3c8406f3-3e8a-80cd-85cb-0c1211088d8d.v3.txt_static
drwx------   3 u0_a87 u0_a87        4096 2019-12-18 17:04 app_webview
drwxrws--x   4 u0_a87 u0_a87_cache  4096 2019-12-18 17:03 cache
drwxrwx--x   2 u0_a87 u0_a87        4096 2019-12-18 17:03 shared_prefs
drwx------  3 u0_a87 u0_a87 4096 2019-12-18 17:04 .
-rw-------  1 u0_a87 u0_a87  270 2019-12-18 17:04 pref_store
-rw-------  1 u0_a87 u0_a87 4885 2019-12-18 17:03 variations_seed_new
drwx------  3 u0_a87 u0_a87 4096 2019-12-18 17:03 Default
-rw-------  1 u0_a87 u0_a87    0 2019-12-18 17:03 variations_stamp
drwx------ 3 u0_a87 u0_a87  4096 2019-12-18 17:04 ..
drwx------ 3 u0_a87 u0_a87  4096 2019-12-18 17:03 .
-rw------- 1 u0_a87 u0_a87 61440 2019-12-18 17:03 Web Data
-rw------- 1 u0_a87 u0_a87     0 2019-12-18 17:03 Web Data-journal
drwx------ 3 u0_a87 u0_a87  4096 2019-12-18 17:03 blob_storage
drwx------ 3 u0_a87 u0_a87 4096 2019-12-18 17:03 .
drwx------ 3 u0_a87 u0_a87 4096 2019-12-18 17:03 ..
drwx------ 2 u0_a87 u0_a87 4096 2019-12-18 17:03 aa41e68b-5b8c-4030-ab9b-9fd7dfb95ee8
drwx------ 2 u0_a87 u0_a87 4096 2019-12-18 17:03 .
drwx------ 3 u0_a87 u0_a87 4096 2019-12-18 17:03 ..
drwxrws--x  6 u0_a87 u0_a87_cache  4096 2019-12-18 17:03 WebView
drwxrws--x  4 u0_a87 u0_a87_cache  4096 2019-12-18 17:03 .
drwxrws--x 6 u0_a87 u0_a87_cache  4096 2019-12-18 17:03 .
-rw------- 1 u0_a87 u0_a87_cache 19900 2019-12-18 17:03 font_unique_name_table.pb
drwxrws--x 4 u0_a87 u0_a87_cache  4096 2019-12-18 17:03 ..
drwx--S--- 3 u0_a87 u0_a87_cache  4096 2019-12-18 17:03 Default
drwxrws--x 6 u0_a87 u0_a87_cache 4096 2019-12-18 17:03 ..
drwx--S--- 3 u0_a87 u0_a87_cache 4096 2019-12-18 17:03 .
drwx--S--- 3 u0_a87 u0_a87_cache 4096 2019-12-18 17:03 ..
drwxrws--x 6 u0_a87 u0_a87_cache 4096 2019-12-18 17:03 ..
drwxrws--x 6 u0_a87 u0_a87_cache 4096 2019-12-18 17:03 ..
drwxrws--x 6 u0_a87 u0_a87_cache 4096 2019-12-18 17:03 ..
-rw------- 1 u0_a87 u0_a87_cache   40 2019-12-18 17:03 settings.dat
drwxrws--x 4 u0_a87 u0_a87_cache    4096 2019-12-18 17:03 ..
drwxrwx--x  2 u0_a87 u0_a87 4096 2019-12-18 17:03 .
-rw-rw----  1 u0_a87 u0_a87  127 2019-12-18 17:03 WebViewChromiumPrefs.xml
drwx--S---  2 u0_a16 u0_a16_cache   4096 2019-12-18 17:50 android_pay_temp_files
drwx--S---  2 u0_a16 u0_a16_cache   4096 2019-12-18 17:50 token_selector_anim
drwx--S---  6 u0_a16 u0_a16_cache   4096 2019-12-18 17:34 WebView
drwx--x--x  3 u0_a16 u0_a16_cache   4096 2019-12-18 17:14 oat
-rw-------  1 u0_a16 u0_a16_cache       0 2019-12-18 17:34 5Pvideo5Nmedia19I637855801993076728-1570660531011
-rw-------  1 u0_a16 u0_a16_cache       0 2019-12-18 17:34 5Pvideo5Nmedia20I4589217858447806657-1570753081747
-rw-------  1 u0_a16 u0_a16_cache       0 2019-12-18 17:34 5Pvideo5Nmedia20I5819926639731977934-1570751273785
drwx--S---  2 u0_a16 u0_a16_cache 4096 2019-12-18 17:50 .
drwx--S---  2 u0_a16 u0_a16_cache  4096 2019-12-18 17:50 .
-rw-------  1 u0_a16 u0_a16_cache 24641 2019-12-18 17:50 07e11acfb6ad0a8825abe06d691f5a7c
drwx--S---  6 u0_a16 u0_a16_cache  4096 2019-12-18 17:34 .
drwx--S---  2 u0_a16 u0_a16_cache  4096 2019-12-18 17:34 Crash Reports
drwx--S---  6 u0_a16 u0_a16_cache  4096 2019-12-18 17:34 Crashpad
drwx--S---  2 u0_a16 u0_a16_cache  4096 2019-12-18 17:34 SafeBrowsing
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 .
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 .
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 attachments
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 completed
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 new
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 pending
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 .
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 .
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 .
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 .
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 2 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 .
drwx--S--- 4 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 HTTP Cache
drwx--S--- 6 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 4 u0_a16 u0_a16_cache   4096 2019-12-18 17:34 .
-rw------- 1 u0_a16 u0_a16_cache 109082 2019-12-18 17:34 d495fa4a78df46ba_0
-rw------- 1 u0_a16 u0_a16_cache   5555 2019-12-18 17:34 dfe6b2497a7513ba_0
-rw------- 1 u0_a16 u0_a16_cache     24 2019-12-18 17:34 index
drwx--S--- 4 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
drwx--S--- 4 u0_a16 u0_a16_cache 4096 2019-12-18 17:34 ..
-rw------- 1 u0_a16 u0_a16_cache  280 2019-12-18 17:34 6aaed60636ee0201_0
-rw------- 1 u0_a16 u0_a16_cache   24 2019-12-18 17:34 index
drwx--x--x  3 u0_a16 u0_a16_cache 4096 2019-12-18 17:14 .
drwx--x--x  2 u0_a16 u0_a16       4096 2019-12-18 17:14 arm64
drwx--x--x 2 u0_a16 u0_a16        4096 2019-12-18 17:14 .
drwx--x--x 3 u0_a16 u0_a16_cache  4096 2019-12-18 17:14 ..
drwx------ 2 u0_a16 u0_a16 4096 2019-12-18 17:34 leveldb
drwx------ 2 u0_a16 u0_a16 4096 2019-12-18 17:34 .
-rw------- 1 u0_a16 u0_a16  322 2019-12-18 17:34 LOG
drwx--S---  2 u0_a305 u0_a305_cache 122880 2019-12-18 17:14 picasso-cache
drwx--S--- 2 u0_a305 u0_a305_cache  122880 2019-12-18 17:14 .
-rw-rw----  1 u0_a190 u0_a190 2511 2019-12-18 17:02 com.google.android.gms.appid.xml
-rw-rw----  1 u0_a190 u0_a190  168 2019-12-18 17:02 io.fabric.sdk.android:fabric:io.fabric.sdk.android.l.xml
-rw------- 1 u0_a190 u0_a190_cache  917285 2019-12-18 17:07 ded7ae5db1953d37df58cda73b06c144b288976c03223f6912a34c6b5180e8a2.0
drwxrws--x  10 u0_a143 u0_a143_cache  4096 2019-12-18 17:14 cache
drwxrws--x 10 u0_a143 u0_a143_cache  4096 2019-12-18 17:14 .
drwx--S---  4 u0_a143 u0_a143_cache 53248 2019-12-18 17:14 org.chromium.android_webview
drwx--S---  2 u0_a143 u0_a143_cache 24576 2019-12-18 17:14 picasso-cache
drwx--S---  3 u0_a143 u0_a143_cache  4096 2019-12-18 17:14 WebView
drwx--S---  4 u0_a143 u0_a143_cache  53248 2019-12-18 17:14 .
drwxrws--x 10 u0_a143 u0_a143_cache   4096 2019-12-18 17:14 ..
drwx--S--- 4 u0_a143 u0_a143_cache 53248 2019-12-18 17:14 ..
drwx--S--- 3 u0_a143 u0_a143_cache  8192 2019-12-18 17:14 js
drwx--S--- 4 u0_a143 u0_a143_cache 53248 2019-12-18 17:14 ..
drwx--S--- 3 u0_a143 u0_a143_cache   8192 2019-12-18 17:14 .
drwx--S--- 3 u0_a143 u0_a143_cache 8192 2019-12-18 17:14 ..
drwx--S---  2 u0_a143 u0_a143_cache 24576 2019-12-18 17:14 .
drwxrws--x 10 u0_a143 u0_a143_cache  4096 2019-12-18 17:14 ..
drwxrws--x 10 u0_a143 u0_a143_cache 4096 2019-12-18 17:14 ..
drwx--S---  3 u0_a143 u0_a143_cache 4096 2019-12-18 17:14 .
drwx--S---  2 u0_a143 u0_a143_cache 4096 2019-12-18 17:14 Crashpad
drwx--S--- 2 u0_a143 u0_a143_cache 4096 2019-12-18 17:14 .
drwx--S--- 3 u0_a143 u0_a143_cache 4096 2019-12-18 17:14 ..
drwxrws--x 10 u0_a143 u0_a143_cache  4096 2019-12-18 17:14 ..
drwxrws--x 10 u0_a143 u0_a143_cache 4096 2019-12-18 17:14 ..
drwxrws--x 10 u0_a143 u0_a143_cache 4096 2019-12-18 17:14 ..
drwxrws--x 10 u0_a143 u0_a143_cache  4096 2019-12-18 17:14 ..
drwxrws--x 10 u0_a143 u0_a143_cache 4096 2019-12-18 17:14 ..
drwxrws--x   7 u0_a118 u0_a118_cache  4096 2019-12-18 17:14 cache
drwx--S---  2 u0_a118 u0_a118_cache 12288 2019-12-18 17:14 fragment
drwx--S---  2 u0_a118 u0_a118_cache  8192 2019-12-18 17:14 header
drwx--S---  2 u0_a118 u0_a118_cache 28672 2019-12-18 17:14 volley
drwx--S---  2 u0_a118 u0_a118_cache 20480 2019-12-18 17:14 downloads
drwxrws--x  7 u0_a118 u0_a118_cache  4096 2019-12-18 17:14 .
drwx--S---  3 u0_a118 u0_a118_cache  4096 2019-12-18 17:14 cronet
drwx--S--- 2 u0_a118 u0_a118_cache   12288 2019-12-18 17:14 .
drwxrws--x 7 u0_a118 u0_a118_cache    4096 2019-12-18 17:14 ..
drwx--S--- 2 u0_a118 u0_a118_cache  8192 2019-12-18 17:14 .
drwxrws--x 7 u0_a118 u0_a118_cache  4096 2019-12-18 17:14 ..
drwx--S--- 2 u0_a118 u0_a118_cache   28672 2019-12-18 17:14 .
drwxrws--x 7 u0_a118 u0_a118_cache    4096 2019-12-18 17:14 ..
drwx--S--- 2 u0_a118 u0_a118_cache  20480 2019-12-18 17:14 .
drwxrws--x 7 u0_a118 u0_a118_cache   4096 2019-12-18 17:14 ..
drwx--S--- 3 u0_a118 u0_a118_cache 4096 2019-12-18 17:14 .
drwxrws--x 7 u0_a118 u0_a118_cache 4096 2019-12-18 17:14 ..
drwx--S--- 3 u0_a118 u0_a118_cache 4096 2019-12-18 17:14 ..
-rw-rw----  1 u0_a139 u0_a139   2513 2019-12-18 17:34 com.google.android.gms.appid.xml
-rw-rw----  1 u0_a139 u0_a139    411 2019-12-18 17:33 FBAdPrefs.xml
-rw-rw----  1 u0_a139 u0_a139    168 2019-12-18 17:33 io.fabric.sdk.android:fabric:io.fabric.sdk.android.l.xml
-rw------- 1 u0_a139 u0_a139_cache   49670 2019-12-18 17:34 20f9fcfcbe9fdb98_0
-rw------- 1 u0_a139 u0_a139_cache  109037 2019-12-18 17:34 f038e94cb33282ab_0
-rw-------  1 u0_a139 u0_a139 4885 2019-12-18 17:34 variations_seed
-rw-------  1 u0_a139 u0_a139    0 2019-12-18 17:34 variations_stamp
-rw------- 1 u0_a139 u0_a139 1467 2019-12-18 17:33 com.crashlytics.settings.json
drwxrwxr-x   3 media_rw u0_a20187 4096 2019-12-18 17:07 files
drwxrwxr-x 3 media_rw u0_a20187 4096 2019-12-18 17:07 .
drwxrwxr-x 3 media_rw u0_a20187   4096 2019-12-18 17:07 ..
drwxrwxr-x 3 media_rw u0_a20187   4096 2019-12-18 17:07 playlists
drwxrwxr-x 3 media_rw u0_a20187 4096 2019-12-18 17:07 .
drwxrwxr-x 2 media_rw u0_a20187 4096 2019-12-18 17:07 1576685265
drwxrwxr-x 2 media_rw u0_a20187 4096 2019-12-18 17:07 .
drwxrwxr-x 3 media_rw u0_a20187 4096 2019-12-18 17:07 ..
drwxrws--x   2 u0_a16 u0_a16_cache  4096 2019-12-18 17:22 cache
drwxrws--x  2 u0_a16 u0_a16_cache 4096 2019-12-18 17:22 .
-rw-------  1 u0_a16 u0_a16_cache    0 2019-12-18 17:22 .lib.lock
drwxrwx--x   3 u0_a187 sdcard_rw 4096 2019-12-18 17:07 files
drwxrwx--x 3 u0_a187 sdcard_rw 4096 2019-12-18 17:07 .
drwxrwx--x 3 u0_a187 sdcard_rw   4096 2019-12-18 17:07 ..
drwxrwx--x 3 u0_a187 sdcard_rw   4096 2019-12-18 17:07 playlists
drwxrwx--x 3 u0_a187 sdcard_rw 4096 2019-12-18 17:07 .
drwxrwx--x 2 u0_a187 sdcard_rw 4096 2019-12-18 17:07 1576685265
drwxrwx--x 2 u0_a187 sdcard_rw 4096 2019-12-18 17:07 .
drwxrwx--x 3 u0_a187 sdcard_rw 4096 2019-12-18 17:07 ..
drwxr-x---   3 u0_a187 everybody 4096 2019-12-18 17:07 files
drwxr-x--- 3 u0_a187 everybody 4096 2019-12-18 17:07 .
drwxr-x--- 3 u0_a187 everybody   4096 2019-12-18 17:07 ..
drwxr-x--- 3 u0_a187 everybody   4096 2019-12-18 17:07 playlists
drwxr-x--- 3 u0_a187 everybody 4096 2019-12-18 17:07 .
drwxr-x--- 2 u0_a187 everybody 4096 2019-12-18 17:07 1576685265
drwxr-x--- 2 u0_a187 everybody 4096 2019-12-18 17:07 .
drwxr-x--- 3 u0_a187 everybody 4096 2019-12-18 17:07 ..
drwxrwx---   3 u0_a187 everybody 4096 2019-12-18 17:07 files
drwxrwx--- 3 u0_a187 everybody 4096 2019-12-18 17:07 .
drwxrwx--- 3 u0_a187 everybody   4096 2019-12-18 17:07 ..
drwxrwx--- 3 u0_a187 everybody   4096 2019-12-18 17:07 playlists
drwxrwx--- 3 u0_a187 everybody 4096 2019-12-18 17:07 .
drwxrwx--- 2 u0_a187 everybody 4096 2019-12-18 17:07 1576685265
drwxrwx--- 2 u0_a187 everybody 4096 2019-12-18 17:07 .
drwxrwx--- 3 u0_a187 everybody 4096 2019-12-18 17:07 ..


text:
Samsung device isn't connecting via USB cable for file transferring
I am using a Samsung Galaxy J8 device . My phone doesn't have any SD card. I was able to browse files of phone from my PC(ubuntu os) , even I could debug my app from android studio.  But suddenly I am not able to do so. When I connect my phone via USB to my PC , it is only charging . What I did so far is following.

Enable developer option and usb debugging , changed default usb configuration to file transfer and image transfer and MIDI .
Restarted my phone.
Restarted my PC .
Change of USB cable and port .
At last factory reset .

After trying all above things , still I can't connect to phone via usb cable .
I think my pc , usb cable , usb port are working fine . Because when I connected another device , it shows me the following dialog .

I used to see the same dialog for my phone, but right now,as I mentioned, my phone doesn't show me such dialog.


text:
start app automatically at reboot
I have an old-ish Google Pixel (gen1) phone that must have a hardware issue, and crashes/reboots every once in a while (every hour or so). It's unusable as a proper  phone but I thought I could reuse it as a single app kiosk-style screen. For example, I could have my Google Photo Albums displayed or I could use it as a stock ticker.
Is there a way to make a specific app start and take over the screen on reboot for Android?

I think my answer can be helpful. Just skip the step about splitting the screen.

Attempting to accomplish with automation. Using Automate to demonstrate how to do it:

Select the Broadcast Receive block. Click on it, in the Action section, select "Boot completed". Click Done.
Select App Start block. Click on it, in the Package section, select the first app you wish to start at boot. Click Done.
Save and give it a name. Link the blocks as seen on the image below.
In the Settings, select "Run on system startup".
Don't forget to give the necessary permissions when asked. Press start.

Every time you reboot your device, after the boot has been completed, the app will be launched.


text:
Fix ERR_PROXY_CONNECTION_FAILED due to a change in global proxy by mobile security framework through adb shell on non rooted phone
The problem in a non rooted Samsung Galaxy S7 smartphone:

ERR_PROXY_CONNECTION_FAILED in Google Chrome
No internet access on cellphone wireless settings
No internet access on cellphone mobile data setting
only working Whatsapp or Google Duo

The cause

I was working with Mobily Security Framework (https://github.com/MobSF/Mobile-Security-Framework-MobSF). It is a set of tools to analyse mobile apps.
In the option of dynamic analysis, my cellphone was connected to the PC through USB. The tool works with genymotion emulators (https://www.genymotion.com/fun-zone/) but if the device is connected, MobSF starts to setup a testing environment in the smartphone.

[INFO] Creating Dynamic Analysis Environment
[ERROR] Error Running ADB Command
[INFO] Android Version identified as 8.0
[INFO] Environment MobSFyed Check
[WARNING] This Android instance is not MobSfyed.
MobSFying the android runtime environment
[INFO] Android Version identified as 8.0
[ERROR] Make sure a Genymotion Android x86instance is running
[INFO] Installing MobSF RootCA
[ERROR] Error Running ADB Command
[INFO] Installing MobSF Clipboard Dumper
[ERROR] Error Running ADB Command
[INFO] MobSFying Completed!
[INFO] Starting HTTPs Proxy on 1337
[INFO] Enabling ADB Reverse TCP on 1337
[INFO] Setting Global Proxy for Android VM
[INFO] Starting Clipboard Monitor
[INFO] Getting screen resolution
[INFO] Testing Environment is Ready!

As non rooted device, MobSF fails ([ERROR] Error Running ADB Command) but it succedded in changing the global proxy setting ([INFO] Setting Global Proxy for Android VM)

The solution

It is explained in How to set Wi-Fi HTTPS proxy, not HTTP, via adb shell? The command is running in adb shell:

adb shell settings put global http_proxy :0

In spite of the wifi configuration or mobile data configuration (through APN) is set to proxy none, this global configuration is onlye change through adb shell


text:
What is actually occupying the internal storage for the apps, and how to get rid of it?
I have a Huawei P8 Lite, but this should not be related to the actual device. For a while, the free space on the internal flash just keeps vanishing without installing any new applications. I am storing the media files on the SD card, which is confirmed in the file manager. The file manager says, that my apps take 9.5GB from the internal storage. When I select all the apps in the Google Play application, those take only half of this - not speaking about the fact that most of them is already moved to the SD card (I got that some portion still remains in the internal storage). It can't be the firmware, as that is shown separately in the file manager.
So selectin all apps from which most part is not even there yields only half of the occupied space. What the heck is the mysterious other half? I can't imagine that cache and application-specific data could be that much, as the application widget in the settings is not confirming that.
Is there any app, that actually shows in a spreadsheet all installed apps, the associated storage capacity occupied on each storage device?

Answered here: How disk space is used on Android device? and here: Where Android apps store data?

@IrfanLatif so you are suggesting, that I either root my phone to see in depth, or save all, make a factory reset, resintall all, and hope for the best?

Yes. Otherwise you have to rely on space usage reported by Android. There is no other way to find out exact space usage details.


text:
Nokia 6.1 stuck in "Download mode"
One day my Nokia 6.1 goes into "Download mode" and rebooting doesn't help.
Flashing TWRP doesn't work:
$ fastboot boot twrp-3.3.1-0-PL2.img
downloading 'boot.img'...
OKAY [  1.235s]
booting...
FAILED (remote: unlock device to use this command)
finished. total time: 1.236s

Unlocking doesn't work:
$ fastboot oem unlock
...
FAILED (remote: Flashing Unlock is not allowed
)
finished. total time: 0.000s
$ fastboot flashing unlock
...
FAILED (remote: Flashing Unlock is not allowed
)
finished. total time: 0.000s

Repeatedly calling fastboot continue just prints a bunch of system info on my phone screen (e.g. DEVICE STATE = locked).
How do I recover the phone?

Factory reset
For some reason, my device was on slot b:
$ fastboot getvar current-slot
current-slot: b
finished. total time: 0.001s

After changing to slot a,
$ fastboot set_active a
Setting current slot to 'a'...
OKAY [  0.009s]
finished. total time: 0.010s
$ fastboot continue
resuming boot...
OKAY [  0.319s]
finished. total time: 0.319s

I got a menu offering a factory reset, after which the phone booted into the OS.

...then download the Nokia Bootloader Unlocker app and follow Nokia's instrucitons to unlock.


text:
How do you fix "adb locksettings not found"?
I have a J3 Eclipse running Android 7.0 plugged into my computer and try to view the locksettings by typing adb shell locksettings. This returns /system/bin/sh: locksettings: not found. How can I fix this?

I tried updating the phone to Android 8.1 and 9.0 and the issue seems to have been solved in both releases. If you're facing this issue try updating the OS and see if the problem still persists.


text:
What's inside the Android A/B-Update payload.bin?
I am using Android 8 for an embedded device, with Android Verified Boot 2.0 secured via HW-keys, and A/B OTA update (no streaming). I want to make sure that the software on the device is tightly secured; however, I'm having a hard time to trace the individual steps the update performs. One hint would be the metadata contained in the update payload.bin.
Unfortunately, there seems to be no documentation on the payload.bin file format and its contents. Is there an official documentation for the file format? Or is there a crisp piece of code (e.g., build tools( that I haven't found out about yet?
The tools for "dumping" payload.bin give me the contained images, but not the metadata.
What I'd like to understand is the following:

Which parts of payload.bin are signed with which key?
Are there parts that are not signed?
Which additional verification elements are contained in payload.bin, and how does the update_engine use them? For example: there are hashes to verify the target partitions following the installation
For a differential update, there must be a means to ensure that the system on the device is exactly the one used as source for the update diff. Where are those hash-values?
How about a full update - can the updater ensure that the update is installed only atop a specific version on the device?

I apologise if I have missed sources that answer these questions. The books about Android system programming I came across are outdated by now. Any pointers to relevant documentation beyond the basic Android docs would be highly appreciated.

What I understand is that Google moved A/B updates infrastructure from their closed-source Chrome OS to AOSP. But they want OEMs use Google's A/B update client (integrated in Play Service) and hence Google's update servers along with cloud hosting. After all it's about business. There is no clear documentation available but for tech-savvy souls the complete code is available in update_engine, enough to understand and implement from scratch. This is more a development related question.

"OEMs not using Google's OTA infrastructure will be able to reuse the AOSP system code but will need to supply their own client." https://source.android.com/devices/tech/ota/ab#overview

build tool for A/B payload.bin is a call chain:
ota_from_target_files.py -> GenerateAbOtaPackage() -> payload.Generate() -> brillo_update_payload.sh -> generate_delta_main.cc

payload file format - system/update_engine/update_engine/update_metadata.proto


text:
IMO Notifications on Home Screen Won't Go Away
I have a Samsung Phone with Android Pie and with IMO messaging app installed.
Every now and then I see a big pop-up notification on lock screen with nothing else. I have to press on the home button then unlock my phone.
I disabled IMO notifications by going to Settings > Apps > IMO > Notifications and turning off the Show Notifications setting.
That did not work, so I disabled the whole lock screen notifications from Settings > Lock Screen > Notifications and I turned it off.
It did not work either.
What should I do? What am I missing?


text:
Can't move or share files in My Files app
just downloaded some mp3 files and needed to move them from downloads to my music folder. not sure if its because of the new system update, but for some reason there is literally no option to move, copy, share - nothing. just move to secure folder. i tried that but all you can do is move the files out of the folder once theyre in so that was worthless. i can select them or select them to edit or select them to share. no options come up except 'move to secure folder' or 'compress'.

went to app settings and cleared the cache for my files app. when i went back to the app i was able to see all of the file options (move, copy, delete, etc) again.


text:
Dalvik vm heap props resetting on reboot
I am running android 9 and I tried changing heapsize prop by the following command
setprop dalvik.vm.heapsize 384m

and then verifying by
getprop | grep heapsize

which returns 384m so it works.
But after a reboot the value returns to its default 768m.I also tried to modify the build.prop file by adding the lines but still the props revert on every boot (the file itself still shows the change).
Any help ?

Did you wipe dalvik and cache after changing?

yes I do, and it works without even wiping on other devices. I guess this is something specific to pie because of added ART stuff. This wasn't happening in marshmallow.


text:
Finding WPS pin without accessing router
So my android phone is not rooted. I have username and password of my friends WPS enabled wifi. So now if I want to view it's WPS pin remotely is it possible without root?
(EDUCATIONAL PURPOSE)

The WPS PIN technology is fundamentally broken and should be disabled in any Wifi. Anyway a simple Google search would have pointed to dozens of posts describing how to hack WPS PIN for example: https://null-byte.wonderhowto.com/how-to/hack-wi-fi-breaking-wps-pin-get-password-with-bully-0158819/

i wonder this is android question

maybe related to your question if you don't care about WPS Pin https://android.stackexchange.com/questions/218514


text:
Install PIT File on Samsung S8 SM-G950F
I try to root my phone but now I get the error Failed to mount '/preload' (Invalid argument) on practially every operation in TWRP, so I read that I should replace the PIT-file with ODIN.
Is this source trustworthy:
https://zfirmware.com/download-samsung-galaxy-s8-g950f-pit-file/

if your device is functional in system mode, i recommend to just ignore this error in recovery mode. preload is not important partition, maybe your device don't have it


text:
How to bind mount libunionfs?
Samsung has introduced a feature in its stock ROM that moves content of social media aps (like WhatsApp) to SD card, and then links the two folders.
I ran the following command in Termux:
$su
#mount | grep -i "whatsapp"

The following output was returned:
libunionfs /mnt/runtime/default/emulated/0/WhatsApp fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
libunionfs /storage/emulated/0/WhatsApp fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
libunionfs /mnt/runtime/read/emulated/0/WhatsApp fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
libunionfs /mnt/runtime/write/emulated/0/WhatsApp fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

I learnt from the net that libunionfs is a virtual file system. How did Samsung create bind mounts to this system? Normal #mount -o bind didn't work.

Okay @Irfan Latif I was reading about UnionFS from here (got it from the link you gave). The problem is, Termux says "no such device" if i use the option none in the mount command. How do i mention my phone as the device where mount should be done?

UnionFS does not bind-mounts, it's an independent in-kernel filesystem itself (though there is also unionfs-fuse). Bind-mount and UnionFS have different uses but can be considered alternative to each other in certain situations. So is OverlayFS and other similar implementations. These are stackable unification filesystems which unify the contents of two different directories. Files in lower directory are overlapped by files of same names in upper directory. All other files in lower directory are visible as normal files. A bind mount on the other hand completely overlays the contents of lower directory. Also see How does UnionFS work?
From your comment:

The problem is, Termux says "no such device" if i use the option none in the mount command. How do i mention my phone as the device where mount should be done?

Yours seems to be FUSE based UnionFS (just the name, not related to actual in-kernel UnionFS). Android's storage framework works by dynamically changing file permissions depending on the privileges of apps accessing the files, which requires a phenomenon like FUSE or sdcardfs to set pseudo permission modes. FUSE mounts don't work by simply using mount command. You need a specific program which communicates to kernel through /dev/fuse and mounts the Filesystem in UserSpacE (FUSE). Mount is tied to that program.
I don't know exactly what's the executable name Samsung is using for FUSE mounts, you can see your running processes to find the executable binary. Then use that specific program by passing the required arguments, ownership, mode, SELinux context, source and destination directories.
However most probably the implementation would only be in a shared library to be accessed from Android framework. In that case you have to use some third party programs like unionfs-fuse. If you only want bind mount with correct permissions bindfs can also be used. For details see How to bind mount a folder inside /sdcard with correct permissions?
If you want real UnionFS, you'll have to rebuild kernel (probably with some patches). OverlayFS is a better choice, it's a part of mainliene Linux kernel (should've been built with CONFIG_OVERLAY_FS). You may ask a question if details required on a specific use case on Android. But that would be far more complicated to set up than a FUSE-based solution.


text:
Adroid phone refuse to connect via WAN interface while all other devices on the LAN or WiFi can connect to internet
In short, my phone cannot connect to the internet via 2 WiFi access points in my house. 4G mobile data works fine. Connecting to other WiFi and hot-spots away from my own WAN works fine.
All other devices, around 14 which includes phones, laptops, PC's, servers, VM's and 2 chromecast devices, all work without any issues.
My mobile phone worked fine until sometime late Friday afternoon. I did not install any new software or fiddled with the settings in days. Phone works well no issues with anything.
Mobile Phone - Doogee N10 - about 1 year old on Android 8.1.0
Router WiFi AP 1 - TP-Link Archer VR1600v IP 192.168.1.1 WAN connection
WiFi AP 2 - Netgear R6020 IP 192.168.1.178 (reserved)
LAN to LAN connection between the TP-Link and the Netgear Routers.
Netgear Router WAN port is disabled.
DHCP runs on the TP-Link Router LAN IP Range via DHCP 192.168.1.100 - 192.168.1.200 /24
Test 1 : 4G mobile data enabled / WiFi disabled - internet access OK from all apps.
Test 2 : Switch WiFi on for AP 1 (TP-Link) - establish link, gets IP does not report internet access problem. - But all apps don't connect to internet, browser times out.
Test 3 : Switch WiFi on for AP 2 (Netgear) - Result same as test 2 - No internet connection.
Test 4 : Get another member of the household to switch on WiFi hotspot on their mobile phone - Connects and internet works fine on all browsers and apps.
Things I have done to check out possible issues:

Assigned a reserved IP of 192.168.1.177 on the DHCP in case of aduplicate IP from another device.
Checked firewalls and black lists and filters on both routers, nothing. I can see the connected Doogee mobile phone in the WiFi connected listings same as all other devices.
Rebooted, powered down and deleted all the WiFi networks settings one by one made no difference.
On the Doogee Android admin menus, there is an option to completely reset all the networking configuration settings to factory. Done, re-entered all the settings and made no difference.

On my PC (Linux), I have 2 terminal sessions open. On the 1st one I ping a random ftp site somewhere on another continent. Ping is stable at about 500ms. This is my confirmation that there are no issues with the WAN connection. On the seconds terminal, I ping the Doogee Mobile phone on the 192.168.1.177 IP.

Phone connected to AP 1, it often stops randomly with no ping
activity, and then just carries on normally after some time.
Phone connected to AP 2 pings seems better without long ping pauses.
Switching between AP 1 and AP 2:
3.1 AP 1 - When switching to AP, it can take up to a minute before the ping responds.
3.2 AP 2 - Ping resumes as soon as a connection to AP 2 is established.
Pinging the Doogee is all over the place. Ping times vary anywhere from 2ms to around 700ms.

I don't have any side loaded apps installed. Everything is from Google Play. I installed Trend Micro mobile AV briefly just to make sure it is not something that the Play store didn't pickup.
I can from the browser on my phone connect to any other server / router on my LAN. I can connect to both the routers management interfaces. I can use my "Fing" app to browse all the devices on the network, port scan them and ping them from my phone. Fing however sometimes reports that I do not have internet access, but not all the time.
It seems like my phone refuses to connect to the internet via my WAN port. All other devices have no issues via the same WAN port. My phone connects to the internet via all other means except the WAN port on my network. No firewall or blacklist preventing it. No duplicate IP's.
I am completely baffled, any ideas or pointer welcome please :)

Installed various tools to analyze the the network and DNS changers. The DNS changers tries to establish some sort of a VPN but none makes an difference to the connection status via WiFi. I did pick up that the network analyzers all report my WiFi DNS as 192.168.1.1 (my gateway IP)  and 0.0.0.0??? I don't think that is right? I tried twice now to reset all network setting, but this does not change or reset the DNS. Last thing I want to do is a factory setup.... So the DNS does not come from the router either, which points to my ISP's default DNS. Now how do I fix the DNS or reset it?

So by editing the advanced setting of each WiFi connection and changing it from DHCP to Static, I can set my static IP the same as the reserved IP of 192.168.1.177 and the the DNS to anything I like. So I tried 8.8.8.8 and 1.1.1.1 and my local ISP's DNS setting, all with the same new outcome. When I use the static settings, the problem reverse. I can now see the interwebs, but my local LAN via WiFi is missing.... I can now browse and ping and traceroute and port scan  any website, but the local LAN including my 2 chromecast devices are missing.

Fing tells me that I don't have a WiFi connection, but I have, minus my local LAN. The IP Tools app now tells me that the DNS is what I set it and not 192.168.1.1.  Aaaargh!!!


text:
Can disabled application influence / modify system and UI
This is somewhat a follow up to my 1,5 year old question (still not answered).
I already know that applications displayed as disabled may still be running in background in certain scenarios (mostly, when Google says they must run). But is it a normal situation that such disabled application is modifying / interfering with the system or user interface?
I have Duo (another Google monster) disabled in my device:

Yet it clearly interfere with my system / user experience and it adds some new items to my contacts:

Is this a normal situation. And if so -- then what is "disabling an application" really mean? It seems to be a total fake, making Android users a pure idiots.

This is most likely the handiwork of your Contacts app working closely with data received from Google services. In my Contacts app the Duo call option appear only for contacts who have registered for that service. If you can, take backup of all of your contacts into a VCF file, remove all the  Google accounts from Settings > Accounts, clear data for Contacts and Contacts Provider/Storage, than add a number manually (not by loading VCF) and see if Duo option still appears (provided it appeared earlier to cross-check). Make sure you do all of this with all internet connectivities turned off.

Thank you for your detailed comment. The thing is that neither me nor any of my friends (and specially not the contact in the screenshot) are using Duo, because it is very unpopular here, where I live (Poland). I have never used it, run it or registered within it on any device. None of my friends are using Duo, as far as I am aware of. Above depicted contact is 99.99% not using Duo as well.


text:
Is it possible to install a Wear OS apk from an Android phone?
I develop Wear OS apps and watchfaces at home with Android Studio, then use adb to install them to a physical watch.
I'm currently on a trip, and connected to my home development machine (via my travel Android tablet and Teamviewer) so I can continue development -- but since I'm not on my home WiFi, I can't use adb to transfer the apk.
Is there any way to do this? I can get the compiled apk onto my phone via gmail or gdrive, but don't know of any way to move it to my watch.
Any ideas?

This question is off-topic on Android Enthusiasts, because it is a development question.


text:
Explanation for a few running services in google play service
Can someone explain what...PlaceDetectionAsyncService is?  I found in developer options, running services,  google play services. I wanted to know if it was just a location provider..etc also
DeviceConnectionWatcher? What are these and what are they used for?

Play Services aren't open source, those are Google's proprietary stuff. They provide developers APIs to achieve certain tasks but how the Play Services achieve those tasks isn't publicly known. Apps use PlayDetection APIs to ask for current location of the device. DeviceConnection APIs are what Google named Nearby Connections.

So if i have locations on I would have the same thing running in my apps?

"Play Services aren't open source" means that Google doesn't wants to let us know which services are meant for which purpose. There are a number of services related to location including network.NetworkLocationService, internal.server.HardwareArProviderService, geofencer.service.GeofenceProviderService, geocode.GeocodeService, fused.FusedLocationService, internal.server.GoogleLocationService and internal.GoogleLocationManagerService. If you ask me what each of these services does, I won't be able to answer. You may try by disabling them one by one to see what happens.


text:
How to disable rotation during zooming in the Google Maps app?
I'm not talking about the feature for navigation where it rotates the map based on the direction you're currently driving. The problem is that when I zoom in and out using two fingers it sometimes happens that I rotate the map accidentally instead. I know I can press the compass icon to turn it back upright, but I would rather want to block the rotation completely. I've looked through all the settings and didn't find one, is there any way I can do this?

Related: Stop Google Maps from spinning the map

If I open the app, and make sure I first make a pinch movement with my fingers, it doesn't rotate the map when I rotate my fingers in the same movement afterwards.
So if you want to only zoom, it is best to first make a little pinch movement, to let the app know you're going to zoom.
If you on the other hand rotate your fingers first, it will start rotating the map.
If you only want to zoom in, you can also use the double tap option. That will not change anything to the rotation. But this is a little more work if you want to zoom in a lot.

So you're saying you know that what I actually want is impossible?

Blocking the rotation completely is indeed not possible at the moment.

@MaxD Do realize that with the double tap method, if you hold the finger down and move up or move down across the screen you can zoom in/out without "twisting". But as "twisting" is a feature of two fingers, I agree on not possible with two fingers.

@MorrisonChang Thanks didn't know that. It's not perfect cause it can only zoom to the current center of the screen but maybe I'll get used to it.


text:
Huawei Y9 Pro camera issues
I've recently got a Huawei Y9 prime and I hope it will have good quality in videos. But unexpectedly there are not very clear as I expected. I mean all of the videos have a wave-like effect on it. Is it a problem with the camera?
Any idea how to fix it?

Dude, it's because of more added grain and smoothing the grain making it look like low textured pic, but if you want to know a temporary fix then download Adobe light room to take pics and edit them just by pressing auto(in the edit menu) and then going to effects or details to increase the texture as per your liking.
I also have a huawei y9 prime 2019 and wasn't expecting that, but by some research (a lot) I was able to get a news that it will be with the help of some upcoming updates...
So we gotta wait until then.
Hope the temporary solution helps


text:
All system audio being transmitted over calls
So I have a Huawei Y9 (2018) running Android 9 with EMUI 9.1. Whenever I'm on a call (I've only observed this with Messenger calls so far), all the audio from my notifications and media (if any) also get transmitted over the call and the other person complains about having to hear them. I don't know what's going on really. Any help?

Check for the secondary microphone on the phone (usually, it is near the back camera or top of the phone). This microphone is used for noise cancellation. Do not block it with your hand while talking on the phone.

My apologies, I forgot to mention. This only happens when I'm using earphones.

Did you try with any other earphones?


text:
Forced Factory Reset on Android TV (reboot loop)
My Android Sony Bravia has the boot-loop problem. It turns on, gets to the Sony logo, reboots, infinitely. Sometimes it gets to the android logo but never further than that.
So I am following the instructions from Sony, after about 20 trials and after reading that you are supposed to press the volume down button lightly I finally managed to see the green light. However after that it restarts and the loops simply continues. What am I doing wrong? Is this an indication, that there is a hardware problem? Can I deduce from this, that the motherboard is working, but that there is perhaps a faulty power cable? Or could this be a software problem?
I also tried to flash the firmware via USB, which didn't work.

Does the TV has an external or internal power converter? If it is external you may be right with the "faulty cable theory".

Its internal I think. Just a cable comes out the tv, which I plug in directly into the power outlet, no box.


text:
App Passwords Sync between devices
On an Android device, if we sign up on any app, the password gets automatically stored on the Google Account. With this, we can use Google Chrome to access the saved password on Desktop too. Can we do this with other browsers too, like Microsoft Edge or Firefox, if we install it on both, the Android device and the Desktop ?

Firefox has it's own sync service with an Google-independent account (Firefox Sync). If you enter your Firefox account credentials on Android and Windows/Linux you can also sync your settings and passwords.

no i meant individual app passwords, like if i log into Instagram, the password somehow gets synced with the Desktop version of Google Chrome. So I'm asking, how to make it work with other browsers too @Robert

You are misinterpreting the functionality. There is no synchronization of apps between your Android and your desktop. Only the web browser Chrome syncs it's data between the two platform because you are logged in in both with the same Google account. The same works for some other web browsers but this is totally independent of Android.


text:
Android Studio Emulator with both the Google Play Store and Root?
https://developer.android.com/studio/run/managing-avds#system-image says

To ensure app security and a consistent experience with physical devices, system images with the Google Play Store included are signed with a release key, which means that you cannot get elevated privileges (root) with these images. If you require elevated privileges (root) to aid with your app troubleshooting, you can use the Android Open Source Project (AOSP) system images that do not include Google apps or services.

But what if I wanted both root AND Google services? how could I do that?
Thanks!

magisk's author topjohnwu says it's doable: https://twitter.com/topjohnwu/status/1070241061010857984 and there is also this file in the magisk's repo: https://github.com/topjohnwu/Magisk/blob/master/scripts/emulator.sh
also see
https://github.com/topjohnwu/Magisk/issues/732#issuecomment-446542064

Both solutions work with Play Store system images: MagiskOnEmulator, Official Magisk AVD scripts

First go here:
https://opengapps.org
I selected this option:

Platform
Android
Variant

x86
6
pico

but newer Android should work as well. Then open Android Studio. On "Select
Hardware" screen, select a device without "Play Store" icon.
With Google APIs
On "System Image" screen, I selected this option:

API Level
ABI
Target

24
x86
Android 7 Google APIs

but newer APIs should work as well. You should only need one file from the Zip
archive:
Core\vending-x86.tar.lz

Inside this will be another file:
vending-x86\nodpi\priv-app\Phonesky\Phonesky.apk

Now, start the device:
emulator -list-avds
emulator -avd Pixel_3a_XL_API_24 -writable-system

Next, install Google Play Store. Note that you cannot use the normal method of
drag APK to device screen, or you will get one of these errors:
The APK failed to install.
 Error: Could not parse error string

The APK failed to install.
 Error: INSTALL_FAILED_UPDATE_INCOMPATIBLE:
Package com.android.vending signatures do not match the previously installed
version; ignoring!

The APK failed to install.
 Error: INSTALL_PARSE_FAILED_NO_CERTIFICATES:
Failed to collect certificates from /data/app/vmdl1047870024.tmp/base.apk:
META-INF/BNDLTOOL.SF indicates /data/app/vmdl1047870024.tmp/base.apk is signed
using APK Signature Scheme v2, but no such signature was found. Signature
stripped?

Install like this:
adb root
adb remount
adb push Phonesky.apk /system/priv-app
adb reboot

After reboot, you should then be able to start Google Play Store as normal.
Without Google APIs
Using the method above with Google APIs image, you still get some apps such as
YouTube. If you want to install different version of one of these apps, use
this method. On "System Image" screen, I selected this option:

API Level
ABI
Target

24
x86
Android 7

but newer APIs should work as well. You need these files from the Zip archive:
Core\gmscore-x86.tar.lz
Core\vending-x86.tar.lz

Then extract these from the above files:
gmscore-x86\nodpi\priv-app\PrebuiltGmsCore\PrebuiltGmsCore.apk
vending-x86\nodpi\priv-app\Phonesky\Phonesky.apk

Use the same method above to install the APKs. After reboot, you should then be
able to install YouTube or whatever app. Note that unlike above, you dont
actually need to run the Google Play setup or even start the Google Play app at
the end.

Does doing this make the emulator rooted? Or in other words, apps that need root access can run on the emulator?

adb root provides root access only to the shell for commandline use, not to the apps. Testing root apps requires rooting the emulator anyways - be it the Play Store image or not.

@Zombo please calm down. And reread Andrew's comment. I don't "disagree" with your answer. It's just a partial solution to the rooting problem. For many users root is required to test apps, not just to issue commands. Your use case seems to be very limited.

I appreciate everyone including your contribution, but at this point, looks like we don't know what the asker's real use case is without clarifying (and I'm afraid they don't seem to visit this site anymore). It just seems that the other answer, Irfan, and I were thinking about having a rooted emulator (i.e. access to su) for testing apps/commands that require root access from the emulator/device directly...

please revise your answer and outline if/how google play services is included that way (only read about vending but gms not mentioned anywhere)

Did not work for me : on Android 11.0 google api image - Emulator gets stuck on boot after installing Phonesky.apk

I think thing the best course of action would be to download and install a third-party Android Emulator. If you are on Windows, I would recommend  Bluestacks. As it can be easily rooted with this tutorial  here. If you need any help, feel free to reply to this message.
Hope this helps you out!
Red Prez

what do you recommend for linux?


text:
Missig remove option
When I list the attached devices on my Google account in the security option and click to expand the device I wish to remove, then click on the 3 dots in the upper right hand corner, there is no option there to remove the device. Any suggestions as to how I can remove the device.
Thanks

Previously it was removing access of the google account from the device and now also its doing the same. To remove account access in a specific device, just click on the 3 dots as mentioned above and click sign out.
You can also view your devices from this link https://mydevices.google.com

That path actually does work, though differently than you intend. It REALLY incentivises you to find the actual path to Google's Security Checkup, of which 'Devices' is a part. Get to Google's Security Checkup here: https://myaccount.google.com/security-checkup


text:
Google assistant found a bill I need to pay from my email but I've lost the notification. Where can I find the full list?
On my pixel there's an app called "google". From there, More -> Settings -> Notifications -> Bills. I can toggle this option on and off but can't find a list of bills it actually found. Is this available somewhere?
The obvious answer is to go trawling through gmail, but I'd like to recover the specific notification and see what google found.

If you open the "Google" app and select "Updates" button(?) at the bottom it will show you the personalization page: weather, appointments, stock prices, etc. Your bill may show up therein.

You can try Nova launcher method - https://www.theandroidsoul.com/recovery-lost-and-cleared-notifications/

Does this answer your question? Notification messages from when I turned on the phone. Where are they?

Useful ideas. Thanks all! @MorrisonChang the updates section sounded promising but all it's showing me is I have an empty calendar.


text:
How can I change the storage location of a contact in Android?
How can I change the storage location of a contact in Android?
I don't see any option when editing a contact:

I use a Samsung Galaxy S9 with Android 9.

Do you mean SIM card?

@beeshyams storage location for contacts can be SIM card, Google account, Samsung account, etc.

For Google, Samsung or any cloud account, you need to sign in and enable sync-you don't "change" the location. For SIM card, if the OEM didn't provide an option, you could use a third party app

@beeshyams thanks, assuming I'm assigned in, which app allows to change the location of a given contact?

Once you are signed in and synced say with Samsung, you can either enable or disable sync, not change the location.. For transfer to SIM cards there are many apps available (search for SIM contacts) picked one at random - https://play.google.com/store/apps/details?id=com.dev.simcontactsmanager

Once you move to SIM you can delete from signed in accounts if that is your aim

@beeshyams thanks in my case I wanted to move between two different Google accounts . I'll give a shot to the application you mentioned

Moving between Google accounts - https://www.howtogeek.com/265006/how-to-transfer-contacts-between-google-accounts/

Login to both Google accounts at the same time and sync both. Then logout from the account you don't need anymore. I haven't tested it recently but it should work.

@IrfanLatif thanks I don't want to sync all contacts, but just move one contact

@FranckDernoncourt right. Then a simple approach can be to directly save to web UI

@IrfanLatif thanks what do you mean by save to web UI?

@FranckDernoncourt login to Google account on a web browser and create a new contact.


text:
Recover photos from S6 Edge+ stuck in boot loop
I have a Galaxy S6 Edge+, Android 7.0 that did something weird.  I restarted it and now it's stuck in a boot loop.  I don't care if it gets wiped, but I want to get the pictures off it first.  It gets to the Samsung logo and hangs there for several minutes and will eventually restart itself.  In the meantime, I can connect via ADB and I would just pull all the files, but the data partition isn't mounted at /mnt/sdcard at this point.  I've tried the obvious, but no luck...

Stock recovery menu accessible
Wiping cache does not help
Cannot boot into safe mode
Firmware download mode accessible
Not rooted
USB debugging enabled
OEM unlock not enabled

I heard that flashing stock firmware would get it working again and not wipe the data partition.  If this is the way to go, is there a reliable source where I can find the image to flash?  I'm aware that the firmware is carrier dependent, so I want to know I have the right one.
I'm also aware of TWRP, but I believe the phone needs to be rooted to be able to recover stuff.  But maybe not for the data partition?  Can I install it without OEM unlock enabled?  This question mentions custom recovery, but I'm not sure how it got there (previously installed, or installed while boot looping).
I'm trying to get a clear idea of what I should do.  What is the best way to go about this?  I hesitate to do anything unless I'm sure it's not just going to wipe or brick the thing.  I rooted another phone before and the first attempt failed and wiped it.  I had backed it up, but that's not possible in this case, so whatever I do has to work.

On a OEM locked device without custom ROM and without ADB access as the system only boot-loops your only chance is flashing a stock firmware. I don't see any other option.

Doing this will keep the data partition intact and accessible afterwards?

Usually yes, but I don't know the Samsung firmware upgrade software in detail.

Well, since you can get adb working can you elevate it to a shell with the command adb shell if yes then try to crawl your way through to get the path to your dcim or dcim/camera location with the ls command. If you can what is the output from the ls command?


text:
Sahara fail while trying to flash a rom into my phone
I tried to flash a custom rom into my phone but it was an unsuccessful try and I decided to update the TWRP recovery in order to increase my chances to flash a rom. But istead of updating TWRP I bricked my phone somehow I even don't understand. The phone is Lenovo ZUK Z2. I tried to flash a stock rom via QFIL previously installing all drivers needed.
But when I actually press the download button it says:
Validating Application Configuration
Load APP Configuration
COM:20
SAHARA:True
SAHARA:C:\ZUI\prog_emmc_firehose_8996_ddr.elf
SEARCHPATH:C:\ZUI
RAWPROGRAM:
rawprogram0.xml
PATCH:
patch0.xml
ACKRAWDATAEVERYNUMPACKETS:False
ACKRAWDATAEVERYNUMPACKETS:100
MAXPAYLOADSIZETOTARGETINBYTES:False
MAXPAYLOADSIZETOTARGETINBYTES:49152
DEVICETYPE:eMMC
PLATFORM:8x26
VALIDATIONMODE:0
RESETAFTERDOWNLOAD:False
MAXDIGESTTABLESIZE:8192
SWITCHTOFIREHOSETIMEOUT:30
RESETTIMEOUT:200
RESETDELAYTIME:2
FLATBUILDPATH:C:\
FLATBUILDFORCEOVERRIDE:True
QCNPATH:C:\Temp\00000000.qcn
QCNAUTOBACKUPRESTORE:False
SPCCODE:000000
ENABLEMULTISIM:False
Load ARG Configuration
Validating Download Configuration
Image Search Path: C:\ZUI
RAWPROGRAM file path: C:\ZUI\rawprogram0.xml
PATCH file path:C:\ZUI\patch0.xml
Programmer Path:C:\ZUI\prog_emmc_firehose_8996_ddr.elf
Process Index:0
Start Download
Program Path:C:\ZUI\prog_emmc_firehose_8996_ddr.elf
Binary build date: May 13 2015 @ 14:41:37
QSAHARASERVER CALLED LIKE THIS: 'C:\Program Files (x86)\Qualcomm\QPST\bin\QSaharaServer.exe -p \\.\COM20 -s 13:C:\ZUI\prog_emmc_firehose_8996_ddr.elf 'Current working dir: C:\Users\vladi\AppData\Roaming\Qualcomm\QFIL
Sahara mappings:
2: amss.mbn
6: apps.mbn
8: dsp1.mbn
10: dbl.mbn
11: osbl.mbn
12: dsp2.mbn
16: efs1.mbn
17: efs2.mbn
20: efs3.mbn
21: sbl1.mbn
22: sbl2.mbn
23: rpm.mbn
25: tz.mbn
28: dsp3.mbn
29: acdb.mbn
30: wdt.mbn
31: mba.mbn
13: C:\ZUI\prog_emmc_firehose_8996_ddr.elf
17:01:24: ERROR: function: sahara_rx_data:194 Unable to read packet header. Only read 0 bytes.
17:01:24: ERROR: function: sahara_main:854 Sahara protocol error
17:01:24: ERROR: function: main:265 Uploading  Image using Sahara protocol failed
Download Fail:Sahara Fail:QSaharaServer Fail:Process fail
Finish Download

Screenshot of QFIL
The phone is in fastboot mode all the time. I tried to follow a dozen of howtos but no of them helped. I also used MiFlash, here are the error and the phone state:
Fastboot
MiFlash screenshot

you need to switch device into EDL mode and install Qualcomm HS-USB QDLoader 9008 driver

@alecxs, I had an "failed to turn into EDL" error before that Sahara issue if it means anything. Thank you, I'll try

@alecxs, haven't I already done this? How do I distinguish normal and EDL modes?

something like fastboot -i 0x2b4c oem reboot-edl you will see 9008 in device manager

https://forum.xda-developers.com/android/software-hacking/guide-how-to-reboot-to-edl-fastboot-t3394292

https://youtu.be/QmT1rHqSINo

@alecxs, thanks for your help. But I already have it as a 9008 port. You can see it on the screenshots I provided. Correct me if i mistaken

i don't own this device but i don't think it can be in fastboot mode and EDL mode same time. sahara_rx_data:194 Unable to read packet header looks like the program did not receive data from phone (if rx mean receive / tx transmit)

is fastboot working or not? fastboot getvar all

according to this thread the issue can be a timeout. click the Download button right after entering EDL mode https://forum.xda-developers.com/showthread.php?t=3624264

See here how I solved this problem. Somehow Windows is blocking the flashing of the device, that's why the sahara error occurs.
https://superuser.com/questions/1538067/cannot-flash-qualcomm-with-stock-image-lenovo-tab-m10-tb-x605l-lte-android-8-o
Sorry for posting it as an answer, I don't have enough reputation yet to comment on questions. But, in fact, it's a working solution for the problem exactly as described, which - I hope - is anyway enough to qualify as an answer.

Error:-
Sahara server is failing : sahara protocal failed.
Ans:-
I have adjusted the cable connection and it work perfectly. ADB Cable was not connected properly.
another fix
just go to fastboot
hold power button as soon as mobile switches off , hold vol up and down button  to go to download state .
Now fastly press download button in QFIL tool it will start programming and download successfully . worked for me

Welcome to Android Enthusiasts! Are you sure your answer is intended for this question? OP didn't state the device was not detected, and the description doesn't suggest a connection issue (as the other answer confirms). If you indeed intended to answer this question, can you please provide a few more details to make that clear?


text:
[Sony Xperia XZ1]Remapping camera button
Hello {darkness my old friend}
I have a Sony Xperia XZ1(G8341) with AOSP GSI
What I would kindly like to ask  how to map the "dead" camera button to any function
Currently the button doesn't work at all presumably because my custom rom didnt hsve plans for it
Tried any root app i could find, msgidk modules and others however i wourld prefer not using xposed as it gives negative results on ctsProfile
Any suggestion is welcome since I have a throughout knowledge and understanding of technology in general ,you can trust me on that{pushes pile of softbricked deviced under bed} but i would prefer being guided to the right direction on how to make s script to accomplish that
Thank you in advance

Tried this app? https://play.google.com/store/apps/details?id=flar2.homebutton

Yes I have, unkown(0) when i try to add the button, on settings both "alternative" settings fail, combination of those settings fail as well.

Try this:
https://play.google.com/store/apps/details?id=com.irishin.buttonsremapper
It works on my Xperia x compact. It's just a workaround. On my phone the problem is with camera button that was deasappeared after the rom unlocking aldo with drm fixed in...


text:
On the Samsung galaxy watch, do I need Spotify premium to be able to access Spotify?
I've recently bought a Samsung gear S3 Frontier and I want to listen to Spotify with it. Do I need to have a Spotify premium account as well as on my android phone to be able you access Spotify on my watch?

Dunno.  Why not try it and see, then answer your own question and tell us what you learn?


text:
Data on 4G only with 3g access without data
My provider has special 4G only bundles at more GB/$ but has no VoLTE support, I was looking for a solution to block mobile data when and after i get a call or for other reasons when I drop to 3G/H+. It opens the taps on my balance when it sits on H+ and i have only one solution for now is to block out my calls which isn't a very  great solution. any help to this is highly appreciated

Welcome to Android Enthusiasts! You can try to automate the process. But root access will be required for the automation app(s).


text:
How to efficiently install same apps on 2 phones?
I have a main phone and a backup phone. Main phone is functional and has a bunch of apps installed. How do I install all the same apps on the second phone while using same Google account?

Back up from first phone apps to Google backup. Factory reset second phone and set it up afresh with same account. It would prompt you to restore apps, accept that and you would have most if not all apps restored. Download missing apps from Play Store. All this is possible if you are talking of Marshmallow and above- please [edit] your question to mention Android versions of both devices (note that data will not be restored in all cases)

If both devices are rooted, most efficient and fool proof way would be to use Titanium Backup to restore apps with data.

Transfer all apk files of apps to backup phone using any transfer app or Bluetooth. And install all that apk files in backup phone.
There is not required any internet data.

While the question doesn't say anything about root, I believe this method requires root access though since APK files are located in internal storage.


text:
wiped android OS accedentely in twrp in sm-j700h/ds
I was trying to do a factory reset from the twrp recovery, but wiped system partition mistakely.. my device has no system now. i can only access the twrp recovery and download mode. However, i tried to install many firmwares using odin but odin gave me a red Failed every single time. help me plz.
model j7(2015) or (sm-j700h/ds)
region Syria

https://www.sammobile.com/samsung/galaxy-j7/firmware/#SM-J700H
you can flash different region from modded odin https://forum.xda-developers.com/showthread.php?t=3762572

Have you tried marking also the NAND ERASE option in Odin? Although marking the nand erase option would wipe the whole phone including the twrp and everything...and then try reflashing by going into download mode on your phone and then to Odin, you'll see a green/blue mark on the ICOM or something like that. If you pass on flashing and it gets stuck on bootloop, don't panic, just restart the phone and boot into recovery mode and wipe/reset user data! That should do it c:
There's also another thing you can do, you can extract the .tar.md5 using this guide
There you can find the system.img file and from there, you can flash the system.img using fastboot, needless to say that you must have your bootloader unlocked!
You could also try Samsung kies/smart switch, whichever suits you c:

thank you guys for your help
really appreciate it .. I solved the problem first by installing a custom ROM using TWRP. the system worked
then i discovered what i was doing wrong .. i was trying to flash a one-file stock OS .. which can only serve as an update
a 4-files stock ROM also worked.


text:
Increase target device Volume to maximum using adb command - Android Pie version
How to increase target device Volume to maximum using adb command on android pie version. I have tried below commands in adb, but volume did not volume got increased.
adb shell service call audio 7 i32 3 i32 0 i32 1

See https://android.stackexchange.com/a/218574/96277

Since Android 8 there is adb sheel media volume available. To get a well-formatted values of volume streams: for s in $(seq 0 100); do media volume --stream $s --get 2>/dev/null | awk -F'[()= ]' '{if($3=="control") printf "%-22s %-3s: ",$7,$5} {if($2=="volume") printf "%-3s %s \n",$4,$7}' | grep ^STREAM || break; done. You will get all stream names/numbers, their current values and possible values.

To set media volume (MUSIC_STREAM) to maximum: media volume --stream 3 --set 25. Where 3 is media volume stream and 25 is its maximum value. It's also possible to use service call as explained in above linked answer. Are you trying to change in-call earpiece volume or some other?


text:
Samsung Galaxy S10+ Will not boot into Recovery mode from Download Mode
for the first time ever i'v tried to root my samsung device
I am running a Samsung Galaxy S10+ SM-G975F
I started by making sure OEM was unlocked + USB debugging put the phone into bootloader mode and unlocked it, then i proceeded to copy the AP firmware file across from my PC to the phone, Then used The Magisk Manager app to create the patched file, Copied this back over to my PC and flashed with ODIN v3.13
After the flash was complete for the root, the video i was watching mentioned you have to boot into recovery mode from download mode,
via
Hold Volume Down + Power button until the device restarts
Quickly Hold Volume Up + Bixby Button + Powerbutton, Until you see the bootloader warning flash then release all buttons except the Volume Up, until you boot into recovery mode.
Now I'v tried absolutely everything possible combination wise
Does anyone here have any solutions that may be of assistance as to me doing something incorrect?
the video i followed was this one. https://www.youtube.com/watch?v=o3a8YnWT3yk
I can enter Download mode still with the Key Combinations, just i'm unable to reach Recovery mode with the combinations that are explained to use
Thank you.

Community bump prevention: this question was closed because the question seems to have been abandoned (OP hasn't visited the site anymore after 2 years and existing answers have no votes). If anyone can evaluate the existing answers, feel free to vote accordingly and reopen the question (or mod-flag the question requesting for reopening). For anyone else having the same issue, please post a new question and refer to this question as additional context.

The problem with the S10 is that you cannot shut it down from "out of the Android OS".
Then you can only boot into the recovery with the (hard-ass) key combination when your phone is completely shut down. So if you miss the tricky key combination one time after shutdown or odin-flash you're stuck in some kind of boot loop between the "bootloader" and the "security warning". The only solution seems to be to let the battery drain so the phone is completely off and then use of one of the following methods:

Booting Into Different Modes
Even though you have rooted your Samsung Galaxy S10, you still have to
keep in mind that both the recovery and the Magisk will be in the same
partition. Which means that you will have to use a different method to
root into the rooted system.
Note: The following steps are to be followed when your phone is
completely powered off.
Unrooted System: Simply hold the power button as you would normally and your phone will boot into an unrooted system.
Rooted System: Hold the Power, Bixby, and Volume Up buttons together, and release them once the Bootloader Warning screen appears
and that will boot your phone into the rooted system.
Stock Recovery: In order to do that, you will have to hold the Power, Bixby, and Volume Up buttons together, and release the Power
and Bixby buttons when the Bootloader Warning screen appears and keep
holding the Volume Up button to boot your device into the stock
recovery.

In your case it will be the last option which is the most tricky key combination ever. I also failed it several times, it needs practice! (I suppose Samsung did this on purpose).
Check this guide, it's the best I found out there:
Root Samsung S10 Guide


text:
Call settings will pop-up when I open a pdf
So dear clever IT friends here is the thing. I am helping a nice old grandma. She has a Huawei tablet, android in it. The silly device asked when she opened a pdf file "which program would you like to use to open it". She is a nice 80 years old granny and thought she has to go with settings. So she went for it. Now when you try open any pdf file the "call settings will" pop-up instead the pdf file itself.
Any idea how I can find the path to add adobe to pdf files?

Easier solution:
Hi, the easiest solution is to uninstall and re-install the PDF viewer app from that tablet. Android starts prompting how to open that file as soon as it notices that there are new apps which can handle that file type.
Since you mentioned Adobe Reader, please uninstall it and then install it again from the Play Store. The prompt to select which app to open the PDF with will return. There you can set Adobe as the default to avoid problems in the future.
Appropriate solution:
I am keeping this as a second choice because the Android version is unknown and different OEMs can have a slightly different settings page and slightly different names for each setting item. Still, here we go:

Open Settings app.
Open Apps and Notifications (Or Apps, or something similar which conveys the same meaning).
Tap on All Apps (Can also be See all apps or not exist at all, just choose the option which takes you to the full list of apps)
Scroll down and locate the Settings app. Tap on it.
Scroll and select Advanced > Open by Default.
Finally tap on the Clear all defaults button.

This will remove the default handler for PDF files and Android should once again start offering the choice.


text:
Reboot USB Port Without Device Reboot
My phone has been slowly going insane over the time I've been using it. This time around, the USB port is throwing tantrums. It won't let the phone connect to a PC. I've tried different USB ports on the PC (KDE Neon 5.17 User Edition), changing wires, and trying a different PC (Windows 10 Pro). All of them didn't help. Rebooting the phone helps, restoring normal access, but after unplugging the phone from the PC, it won't connect again unless I reboot the phone. Regardless of access, the phone does get charged if connected to the PC.
1) Any idea what is going on with my phone? No recent software installs or any weird things. Phone isn't that old (Lenovo P2a42, rooted with Magisk 20.2 and running AEX 6.7).
2) Is there any way to "reset" the USB port without rebooting the entire phone (similar to how it would be on a PC)? Everything on the internet only shows either changing the default USB configuration to MTP instead of the default "charge only" or resetting the USB port on Windows.
Thank you for your time.

@beeshyams the PC doesn't even see the device I assume (i.e. not in adb devices and maybe not even in lsusb – not 100% sure about the latter, might show up there as toaster or whatever). One of my devices does this from time to time – and as the OP describes, only a reboot seems to help. As it works fine after that (for me, not for the OP obviously) and only happes 3..4 times a year, I didn't dig deeper yet. But it got nothing to do with "authorization" (OP didn't even mention ADB – or did you mean something I'm not aware of?)

@Izzy Yeah, I was talking of adb and rightly pointed out by you that he isn't reached that state yet

@beeshyams How would I do that?

@Izzy Yes, it doesn't even show up in lsusb. All the solutions I see online assume it's just an MTP problem, at best they reboot the USB port on the PC.

Sorry, please ignore. As pointed out by Izzy I misread your situation

Does this happen with different PCs (especially PCs that don't run Linux)? may be Linux does something that confuses the phone and forces the USB chip into an invalid state. Usually on Android side I would expect a kernel driver to initialize the USB chip and re-initializing could be done by unloading and reloading the driver module. Unfortunately on Android typically there are no kernel modules one could (un)load.

@Robert I didn't try rebooting the phone and connecting to a Windows PC, but yes, the phone isn't recognized by Windows or Linux after disconnecting from a Linux PC. I do have root access on the phone though, is there anything I can do with it?

@404 I was talking about connecting the phone to Windows when it is fully working to see if Windows also manages to "destroy" the USB communication.

@Robert Ah ok. I'll see if it does when I get the chance to do so.

@404NameNotFound as for details on ADB, please see our adb tag wiki. But if not even lsusb sees your device, ADB won't either. So first things first ;) Follow Robert's hint to see if the cause lies on your Android device or the PC. Depending on which it is, approaches for solutions might differ.

@Robert Alright I've rebooted my phone and connected to Windows. All is well, connecting and disconnecting as expected. What's surprising is now connecting and disconnecting from Linux is also fine, performing as expected. My phone is slowly going insane, but the question still stands: should the issue return, is there a way I can reboot just the USB port on my phone instead of the entire phone?


text:
Undo Factory Reset on oneplus
My Kid has been playing with my phone while it was on lock screen, my kid did not have the access code but somehow don't ask my how he somehow managed to factory reset my onePlus 6T.
I googled and found a few commercial programs all promising to solve the issue I tried one gihasoft, but when I try to connect my oneplus to my macbook it fails with "ftp or mtp must be enabled", and I cant find those settings.
Is there anything I can do to restore my device? I'm also quite shocked to learn that it can be factory reset that easy.

It the software accesses the device via MTP then it is most likely useless as you can't recover anything via MTP (unless there is an exploit that allows you to gain root access via MTP which was the case for a few older Samsung devices with a very specific software version).

The 6T is encrypted by default, so a factory reset also resets the encryption key. Your files are not going to be recoverable even if you had direct read/write access to the storage chip.

it is a security feature to wipe your data automatically after x attempts of wrong screenlock pattern. besides this you should keep away radio emmissions from childs brain. forget the commercial programs, encrypted files are lost forever (without the key) https://android.stackexchange.com/a/214496/218526

Many Android phones can be booted into a recovery mode and factory reset from there. In the case of the 6T you power it off then hold down volume up at the same time as pressing the power button. That boots it into recovery mode, and from there the phone can be reset by selecting the appropriate option. Your child must have managed this without meaning to.
There isn't any way of retrieving the data from the phone. OnePlus or the FBI might be able to do it but there's no way for you or I to do it. However if you go back through the setup and choose the option to restore your data from Google you will get back anything that has been backed up to the cloud.
Reading the data from a factory reset phone would be a serious security flaw. It would mean anyone who stole your phone could reset it to wipe your phone lock then read your data off the phone.


text:
Is it legal to invite a friend to my Google family
I would like to invite a friend to my Google family cause there is a song or two she would like to listen to and I am thinking about buying a few movies on that Google account too so I am wondering if I can do that legally without getting into trouble with the law

Oh, and I forgot to mention I bought the two songs with Google play rewards credits


text:
System bootlooping after TWRP installation
I have installed TWRP through Odin, then I booted it. I only seen it, I haven´t done anything, just rebooted to the system again, and it got stuck on trying to boot the system.
It's Samsung J7 Prime with Oreo, Odin 3.13 and TWRP-3.2.3-For-Galaxy-J7-Prime.tar
So, what the hell? Why is it not booting? Any idea?

Can you boot into TWRP? If you can I would try these steps:

Boot into TWRP

Once TWRP is booted you first need to wipe your /data partition or go into Wipe > Advanced Wipe and make sure Data is ticked then swipe to wipe.
If this is your first boot into TWRP: swipe Wipe > Format Data from left to right and follow the instructions displayed onscreen.

Once it's finished go back to  the home screen and swipe Reboot > Recovery from left to right. TWRP should be able to mount your data partition.

Now flash the no-verity-opt-encrypt zip you downloaded from this link, put it on an SD Card and flash it by going to Install > %zip location% This zip prevents your phone from bootlooping since Android Oreo uses dm-verity to prevent modification to the system.

You are (hopefully) now able to reboot to your OS without bootlooping.
Hope this helps.

Thanks Joe.
I was in the process that led me to wiping, but I didn't want to wipe, so I tried to do anything else. As soon as I ran out of hope I can preserve the data, I wiped it. And it was back to normal.

wipe is just necessary for fixing problems with decryption - if your twrp does mount your data partition successfully, you can continue with installing no-verity.zip without wiping data


text:
How can I automatically backup a file on my phone to my NAS running on my local network?
I have a NAS running and I can connect to it from my Linux machine (fstab):
 //192.168.1.4/home/backup /media/nas-backup cifs vers=1.0,username=***,password=***,auto,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

I'd like to set up an app to run on my phone and backup my photos and sms messages daily when my phone is on my network. I think I can accomplish a lot of this with Tasker. But the actually file copying, I'm not sure how to proceed. I hear Syncthing for Android is good but I can't find any documents about connecting it to to a CIFS mountable NAS.
How can I setup Syncthing (or a different program) to connect to my NAS and backup files on a regular basis?

Simply run busybox crond. Mounting cifs on Android with busybox mount also works.

do I need to root my phone for that?

yes. Mounting can't work without root. Also crond run by unprivileged app will be killed.


text:
Trying to alter already modified recovery partition on tablet
I have an Android tablet (4.2.2) where the recovery has been modified to only give the reboot option when you boot into it. What is the best way to unlock the other options? Do I need to flash a new recovery partition? Or is there some way to open and edit the available options in the current one?

Your description sound more like the default recovery. Only custom recoveries like TWRP give more options. If the device is unlocked you can try to install a matching custom recovery that has more options.

The default is restricted. Most default recoveries give you more options than just reboot. They give you data wipe, cache wipe, flash update.zip, etc. I want to know how these options could have been disabled and how I can add them back. As in, what do I have to modify?

recovery options are hidden while bootloader is locked

So my focus should be on unlocking the bootloader then? That's how my recovery options were limited? So once I get the bootloader unlocked all recovery options will become available to me (without alteration of the recovery partition)? (Sorry for all the questions but I'm just making sure I understand your assertion)

can not 100% confirm but for some android system recovery there is hidden option backup user data. beware unlocking bootloader forces factory reset!


text:
I'm on a WhatsApp call and the person can hear my audio from YouTube etc
I'm using earphones and the person can hear my YouTube videos etc playing. Even blocked out the microphone. It seems the audio is being routed through the call. Any suggestions to stop this from happening?

Try blocking "permit drawing over other apps" in YT permissions !


text:
/system/media Directory
First of all, I am currently learning about Android security and wasn't sure if to post it on the Android or Security StackExchange, either way here is my problem...
Investigating the content providers of a particular app, I found out that:
content://media/internal/images/media
could be queried. After querying it, I obtained the following files,
/system/media/video/edge.png and /system/media/video/edge720p.png
My question is, what is this directory for, and what are these files used for? Is it dangerous that this path can be queried?
Thanks

Could you clarify if you're asking about the media storage, or the /system/media/ path?

Those pictures must be wallpapers, built-in by your OEM or ROM developer. I don't think there is a danger associated with their discovery. They are meant to be discovered like other internal media including ringtones.

@AndrewT. The /system/media/ path. Thanks.

@IrfanLatif hmm, got it. Thank you. I was wondering if that path would have been used for something different.


text:
On my Xiaomi, does the checkmark at "restrict data usage" mean "only allow" or "do not allow"
On my Xiaomi, does the checkmark at "restrict data usage" mean "only allow" or "do not allow"? Each of the two SIM and WLAN has the possibility of a checkmark, but what sense should I view the choice?

When checked, restrict usage data means that the application can not use the internet when using simcard.


text:
Why isn't my internal storage usage going down after adopting an SD card?
I have an Honor 5X running LineageOS, and I'm trying to use an external SD card as adoptable storage. After migrating my data, my internal shared storage usage does not go down. Specifically, "Music & audio" shows up as 6.9 GB on both the internal shared storage and the SD card. There's also an unusual "-6.1GB" under "Other" when I look at the storage usage for the SD card.

I don't know if it's relevant, but the "Music" directory is being watched by Syncthing. Is there something I did wrong in setting this up?

Run df -h on some terminal emulator app to get actual space usage. Related: How disk space is used on Android device? and How to free Internal Storage by moving data to Adoptable Storage?.

The comment from Irfan Latif pointed me in the right direction. My "Music" directory was still on /data/media/0 as well as the adopted mount. I deleted it from /data/media/0, the directory still shows up in /storage/emulated/0, and the usage summary makes sense now. Down to half usage.


text:
/data/system/packages.xml does not update after install/uninstall of apps. Is that expected?
I am using a android board with a custom ROM based on Android 4.4.2. I was trying to override a /system/priv-app/ app by installing an updated version in normal partition.
While testing I realised that the override only stays till reboot.So I started digging into AOSP source which is when I came across the call to disableSystemPackageLPw which in turn calls writeLPr.
If writeLPr goes through I expect to see my package listed in the "/data/system/packages.xml" file. However that is not the case here and hence I suspect that to be the root cause.
It would be great to know view on expected usage of packages.xml from the community users to confirm the same.

i don't believe this. where does system get old apk from after you replaced?

As @alecxs said that should not happen because the new apk is immediately saved to /data/app on update. Settings might be cached for some time. Try clearing app's data after update. Or force write pm's cached data: dumpsys package write.

@alecxs The old apk is still in /system/priv-app. Based on what I read in PackageManager scan code. It scans the files system for paths /system/priv-app, /system/app, /vendor/app and /data/app for registering installed packages after boot. Since system/priv-app gets scanned first the old apk gets the oackage registered and the apk in /data is treated as duplicate. I get a log saying Skipping duplicate package in logcat  from "PackageManager" tag,

@IrfanLatif I tried out another android board. There I could verify that packages.xml had two entries for my package; one with tag  and another with . On this android board my update is retained after boot as expected. And I also do not see the Skipping Duplicate log. So overall I have come to a conclusion it is ROM specific problem.

i misread question. thought you did overwrite apk in /system/priv-app

the duplicate may caused by different apk signature

@alecxs I was able to get through to the person maintaining the ROM. packages.xml not having that entry was the root cause. Thanks

As per stock android code. (AOSP) packages.xml needs to have the entry for installed packages for retaining any fancy priv-app kind of configuration/overrides/updates that we do.


text:
Is there a way to trick my android phone and change the SSID name that it's currently connected to?
My android phone is connected to a device broadcasting the SSID: 12345A
Is there a way to trick my phone into thinking the currently connected SSID is 12345B?
I'm trying to connect to a stupid chinese device which has a slightly different SSID than its app expects.
Thanks in advance

you have to change it in settings at device A

Why don't you define a new network, by going to settings then wifi & Add network then define the other SSID.


text:
Double letters when using keyboard via OTG cable
I want to figure out where the problem is. Unfortunately, didn't find enough information to solve this. Android 6.0.

It seems that restarting Tab solved the issue.


text:
Android 5.1 prevent USB Ethernet interface to go into sleep/suspend in AC loss (PM)
We are using MT8163 based Android device which is connected with TP-link based USB-Ethernet device over MT8163 USB host.  Our requirement is to prevent the TP-link USB-Ethernet dongle to enter sleep mode and keep it available without suspending in case the MT8163 loses AC power. What are the changes w.r.t Android or AOSP to achieve this functionality
Thanks,
Sai

When the CPU looses power usually the USB controller looses power, too. The USB controller powers the USB-Ethernet device and without power an USB-Ethernet device is unable to work (well-known in applied electrical engineering). Have you tried to place an active powered USB hub between USB-Ethernet device and the Android device?

https://android.stackexchange.com/q/109955

Thanks for reply Robert, the MT8163 has battery power(in case loss of AC) and the MT8163 is providing the power/controlling the USB-ethernet device. Our intention is to keep the USB controller, USB-Ethernet device to stay powered and work even the MT8163 goes to aSleep mode(savor mode not low power mode). Like giving exception or wakelock to USB subsystem. Rest of the interfaces(wifi, LCD etc..) can go to sleep mode to conserve the power. USB hub is not possible keep in system as per design limitation.