date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2019/03/23 | 1,203 | 3,792 | <issue_start>username_0: How can I find the file system type of USB drive without using computer? Drive is attached to Android phone and I can see the files in it. I want to know if it is `extFAT` etc.<issue_comment>username_1: Apps like [Disk Info](https://play.google.com/store/apps/details?id=me.kuder.diskinfo) also provide the format (enable "show file system" in settings).

Upvotes: 3 <issue_comment>username_2: Related question: [How to detect filesystem type of un-mounted partition?](https://android.stackexchange.com/questions/43916)
Just to complete some missing pieces:
Usually we use `mount` command to see mounted filesystems, it works without root e.g. from a terminal emulator app or `adb shell`:
```
~$ mount
...
/dev/block/sda1 on /mnt/media_rw/C8BA-D0E2 type sdfat ...
/dev/block/sda2 on /mnt/media_rw/C78E-434F type vfat ...
/dev/block/sda3 on /mnt/media_rw/C81D-4E8D type vfat ...
```
It shows mounted filesystems on external USB drive to be `sdfat` and `vfat` which are **not actual filesystems but filesystem drivers**. A driver can support multiple filesystems and a filesystem can be mounted using different drivers. `sdfat` can be exFAT, FAT32 or FAT16. `vfat` can be one of latter two. Similarly filesystem types `sdcardfs`, `fuse` or `fusectl` aren't actual but virtual filesystems (FUSE can be used to mount any filesystem theoretically). So the output of `mount` command or apps like [DiskInfo](https://play.google.com/store/apps/details?id=me.kuder.diskinfo) can be insufficient or misleading.
A more certain way is to read **filesystem magic** ([`file`](https://github.com/file/file/blob/master/magic/Magdir/filesystems) and [`blkid`](https://github.com/karelzak/util-linux/tree/master/libblkid/src/superblocks) commands do this). But the problem is that storage devices are enumerated as block devices by Linux/Android kernel and device nodes are created by Android `init`/`vold` with restricted permissions so that only root processes can access them (see [How to read ext4 filesystem without mounting on a non-rooted device?](https://android.stackexchange.com/a/219926/218526)). So it's not possible to read partitions directly which hold filesystems inside them.
**With root access:**
```
~# blkid
/dev/block/sda1: ... TYPE="exfat"
```
```
~# file -s /dev/block/sda*
/dev/block/sda2: DOS/MBR boot sector ... FAT (32 bit)
/dev/block/sda3: DOS/MBR boot sector ... FAT (16 bit)
```
\* Android's builtin `blkid` does have filesystem magic values but `toybox file` applet doesn't have. Use e.g. `file` on Termux which looks for a large magic database.
```
~# hexdump -C -n100 /dev/block/sda1 | grep -o '[EX]*FAT[0-9]*'
EXFAT
```
\* [`hexdump`](http://man7.org/linux/man-pages/man1/hexdump.1.html) is a busybox applet.
exFAT magic is found at offset `3`, FAT32 at `82` and FAT12/FAT16 at `54`. So for **exFAT** `hexdump -e '"%_p"' -n5 -s3 /dev/block/sda1` returns `EXFAT`.
Similarly for **EXT4** `hexdump -e '"%X"' -n2 -s1080` should return `EF53` and for **F2FS** `hexdump -e '"%X"' -n4 -s1024` should return `F2F52010`.
**Without root access:**
Another option is to check `logcat` soon after boot or inserting USB drive or SD card. `vold` uses `blkid` at back end to detect filesystem before mounting which appears in log:
```
~$ adb logcat -v brief -s vold:V | grep TYPE=
V/vold ( 752): /dev/block/vold/public:8,1: LABEL="disk" UUID="C8BA-D0E2" TYPE="exfat"
```
Upvotes: 3 <issue_comment>username_3: To complete the other answers, [DevCheck](https://play.google.com/store/apps/details?id=flar2.devcheck) will show you the actual filesystem of `/system` and `/sdcard` unlike diskinfo.
Upvotes: 0 |
2019/03/23 | 1,199 | 3,761 | <issue_start>username_0: I want to know is it possible to edit a custom ROM from zip and then zipping it again (flashable) to a device. Will it brick the device?
Thanx<issue_comment>username_1: Apps like [Disk Info](https://play.google.com/store/apps/details?id=me.kuder.diskinfo) also provide the format (enable "show file system" in settings).

Upvotes: 3 <issue_comment>username_2: Related question: [How to detect filesystem type of un-mounted partition?](https://android.stackexchange.com/questions/43916)
Just to complete some missing pieces:
Usually we use `mount` command to see mounted filesystems, it works without root e.g. from a terminal emulator app or `adb shell`:
```
~$ mount
...
/dev/block/sda1 on /mnt/media_rw/C8BA-D0E2 type sdfat ...
/dev/block/sda2 on /mnt/media_rw/C78E-434F type vfat ...
/dev/block/sda3 on /mnt/media_rw/C81D-4E8D type vfat ...
```
It shows mounted filesystems on external USB drive to be `sdfat` and `vfat` which are **not actual filesystems but filesystem drivers**. A driver can support multiple filesystems and a filesystem can be mounted using different drivers. `sdfat` can be exFAT, FAT32 or FAT16. `vfat` can be one of latter two. Similarly filesystem types `sdcardfs`, `fuse` or `fusectl` aren't actual but virtual filesystems (FUSE can be used to mount any filesystem theoretically). So the output of `mount` command or apps like [DiskInfo](https://play.google.com/store/apps/details?id=me.kuder.diskinfo) can be insufficient or misleading.
A more certain way is to read **filesystem magic** ([`file`](https://github.com/file/file/blob/master/magic/Magdir/filesystems) and [`blkid`](https://github.com/karelzak/util-linux/tree/master/libblkid/src/superblocks) commands do this). But the problem is that storage devices are enumerated as block devices by Linux/Android kernel and device nodes are created by Android `init`/`vold` with restricted permissions so that only root processes can access them (see [How to read ext4 filesystem without mounting on a non-rooted device?](https://android.stackexchange.com/a/219926/218526)). So it's not possible to read partitions directly which hold filesystems inside them.
**With root access:**
```
~# blkid
/dev/block/sda1: ... TYPE="exfat"
```
```
~# file -s /dev/block/sda*
/dev/block/sda2: DOS/MBR boot sector ... FAT (32 bit)
/dev/block/sda3: DOS/MBR boot sector ... FAT (16 bit)
```
\* Android's builtin `blkid` does have filesystem magic values but `toybox file` applet doesn't have. Use e.g. `file` on Termux which looks for a large magic database.
```
~# hexdump -C -n100 /dev/block/sda1 | grep -o '[EX]*FAT[0-9]*'
EXFAT
```
\* [`hexdump`](http://man7.org/linux/man-pages/man1/hexdump.1.html) is a busybox applet.
exFAT magic is found at offset `3`, FAT32 at `82` and FAT12/FAT16 at `54`. So for **exFAT** `hexdump -e '"%_p"' -n5 -s3 /dev/block/sda1` returns `EXFAT`.
Similarly for **EXT4** `hexdump -e '"%X"' -n2 -s1080` should return `EF53` and for **F2FS** `hexdump -e '"%X"' -n4 -s1024` should return `F2F52010`.
**Without root access:**
Another option is to check `logcat` soon after boot or inserting USB drive or SD card. `vold` uses `blkid` at back end to detect filesystem before mounting which appears in log:
```
~$ adb logcat -v brief -s vold:V | grep TYPE=
V/vold ( 752): /dev/block/vold/public:8,1: LABEL="disk" UUID="C8BA-D0E2" TYPE="exfat"
```
Upvotes: 3 <issue_comment>username_3: To complete the other answers, [DevCheck](https://play.google.com/store/apps/details?id=flar2.devcheck) will show you the actual filesystem of `/system` and `/sdcard` unlike diskinfo.
Upvotes: 0 |
2019/03/24 | 1,174 | 4,503 | <issue_start>username_0: I am having difficulty finding some apps in Play Store. A lot of times, when I come across a link on the older posts of this website and I load it, I get "Not Found" error on Google Play. I explicitly get:
>
> We're sorry, the requested URL was not found on this server.
>
>
>
I do double check with the app on AppBrain and usually, it shows that XYZ app unpublished on some ABC date in the past, so I end up believing that the app is really dead on Play Store. However, sometimes, a user, whose post I deleted because of dead link tells me that the app is live on Play Store.
I do a check using Opera browser's free VPN service (regions: Europe, Americas, and Asia), and also with a [Chrome Extension](https://chrome.google.com/webstore/detail/makeme-vpn-be-american-or/cfjholjoajfiegiiabdidalfidalpcjj) for American/British VPN service. I again and again get the same dead link. I also ensure using Private Browsing to rule out browser caching.
Recently, a fellow moderator notified me that while I was not able to load the link, he could easily load the app [Google Goggles](https://www.apkmirror.com/apk/google-inc/goggles/) on [Play Store](https://play.google.com/store/apps/details?id=com.google.android.apps.unveil). AppBrain still shows the [app is no more active](https://www.appbrain.com/app/com.google.android.apps.unveil) on Google Play though.
Similarly, I came across the app MyAndroidTools which does not load in [Google Play Store](https://play.google.com/store/apps/details?id=cn.wq.myandroidtools), also seems [inactive on AppBrain](https://www.appbrain.com/app/cn.wq.myandroidtools), but had a fresh beta version, as seen on [APKMirror](https://www.apkmirror.com/apk/wangqi/my-android-tools/).
How do I ensure that the app is inactive on Google Play for everyone? Alternatively, if it is active on Google Play, how do I load the app's page on Google Play?<issue_comment>username_1: "NOT FOUND" means it is not active on Play store or by your country location. and if you want to download any app , try some mirrors like apkmonk, apkmirror, etc.
Upvotes: -1 <issue_comment>username_2: Well here's something that I know since I have experienced it in the recent period. Apparently, it so works that when an app is "unpublished", then the app is still downloadable by existing users (those who own the app, either because they paid for it or because they acquired it when it was free).
**The users who already own an app will see it in Play Store (app and web) while logged into the same Google account using which it was acquired.**
It would be a different outcome when apps are removed (deleted) due to violations. Deleted apps should no longer be available for installation to any user. But since I know that Flamingo was *[unpublished](https://www.techmesto.com/flamingo-twitter-unpublished/)* because it did hit the API limit from Twitter, it is still there, regularly updated, but not available to the public if they never owned it before when it was live and available for purchase (download).
Screenshots (the flamingo example):
===================================
App direct URL - <https://play.google.com/store/apps/details?id=com.samruston.twitter>
[](https://i.stack.imgur.com/wkS11.jpg)
As it is entirely dependent on the Google account and whether the app was owned by the user in the past, there will be no 3rd party api which can tell you if an app is still downloadable from the Play Store. Play Store throws a direct 404 for such apps which are not downloadable unless you are an existing user.
So, I believe you should remove such links because well, these apps are not available for new users to download and these are basically the ones who need the app. Existing users will already have it. With the exception that such apps do not appear anymore in Play Store search, even if you own the app and are logged into your Google account.
And as much as I know, apps locked to certain countries are still browseable in the web version of the Play Store and even within Play Store app. On the mobile app, it is not downloadable and marked as "This item is not available in your country". So, a VPN or location change will not help you to access a Play Store app which throw a 404. **You should remove such links without thinking twice**.
[](https://i.stack.imgur.com/3IBsY.png)
Upvotes: 2 |
2019/03/24 | 806 | 2,610 | <issue_start>username_0: I have a rooted Galaxy S5 SM-G900V, lineage\_klte, ARMv7 Processor rev 1 (v71), Kernel: 3.4.113-lineageos #1 SMP, Oreo 8.1 that a friend asked me to modify.
I need to modify the platform.xml file to allow the system to write data to the external sd card. I need the ability to modify this file. The current permissions are:
rw-r--r-- 1 root root, however I am unable to save any modifications.
I am unable to modify the file permissions and would like to know how to do so. Note, I am looking how to change the file permissions and not how to or what syntax to use in the xml file, or if it will allow me to have the system recognize the external sd card for saving data. I am perplexed on why I am unable to modify this file.
```
> adb devices <-- verify I have the device
> adb shell <-- enter shell
> su <-- super user
# ls -l
drwxr-xr-x 17 root root 4096 2019-03-20 10:26 system
# cd system
#ls -l
drwxr-xr-x 20 root root 4096 2019-03-20 10:25 etc
# cd etc
# ls -l
> drwxr-xr-x 2 root root 560 2013-12-31 21:23 permissions
# cd permissions
# ls -l
-rw-r--r-- 1 root root 9116 2008-12-31 18:00 platform.xml
# chmod 755 platform.xml
>> chmod: chmod 'platform.xml' to 100755: Read-only file system
```
So, how do I change the file attributes for platform.xml allowing it to be modified? I thought that there was a hidden immutable attribute on the file but there is not(at least that I can determine).
Related question, is there any other website to post this question? Any help is most appreciated.<issue_comment>username_1: I was only able to remount rw after
- removing addonsu (by sideloading in TWRP "su removal" from <https://download.lineageos.org/extras>)
- installing Magisk (easy, sideloading current release from <https://github.com/topjohnwu/Magisk/releases>)
I was under the impression that addonsu does not fully grants permissions -- after all I found myself heading down this road when attempting to configure Titanium Backup.
By the way, TWRP has a commandline guide at <https://twrp.me/faq/openrecoveryscript.html> , all the above is as easy as `adb reboot recovery`, then `adb shell twrp sideload` which makes TWRP waiting for a file, so just serve it by e.g. `adb shell twrp sideload ~/Downloads/Magisk-v19.3.zip`
Upvotes: 2 <issue_comment>username_2: This issue relates to the fact that /system is absolutely read-only and the mount -o,rw is no longer allowed on recent versions of Android.
To modify anything in /system you need to use Magisk ability to replace files by creating a magisk module.
Upvotes: 0 |
2019/03/24 | 816 | 2,897 | <issue_start>username_0: I have a Chrome application which, at some point, I added to my home screen and it was behaving like a real application: there was no Chrome toolbar (for the URL and other settings). The icon was also a "native one" (the difference will be clear in a second).
For various reasons I removed it from my home screen and also upgraded to Pie (I am not sure if this matters).
I then tried to re-create the "app" by adding, from Chrome, a shortcut to my home screen. This is how it looks now:
[](https://i.stack.imgur.com/Dc1Et.jpg)
Please note the Chrome thumbnail which was not there previously.
The app itself does not look "native" anymore:
[](https://i.stack.imgur.com/NP1Gu.jpg)
The part between the status bar and the blue line used not to be there, completely hiding the fact that this is a web page running in Chrome.
**What is the correct way to get back this "native app" behaviour?**<issue_comment>username_1: You wait for the web app developer to implement [Chrome's WebAPK on Android](https://developers.google.com/web/fundamentals/integration/webapks) feature/requirements.
From the following post: [How to Remove Chrome Logo from PWA App Home Screen Link (Android O Preview)](https://stackoverflow.com/q/44060253/295004)
Digging through the comments on the [accepted answer](https://stackoverflow.com/a/49761109/295004) from [Anand](https://stackoverflow.com/users/1057093/anand) dated Dec 17, 2018:
>
> If you are asking how to avoid chrome icon, as long as your went [*sic*] app is fully qualifies PWA to be installed as APK, new versions of chrome won't add that icon. I've tested with chrome version 70 in Android pie . If it's a mere web page, failing to meet key PWA criteria or non PWA, chrome might add chrome icon to indicate it's a web link(depending on chrome version again)
>
>
>
Further research on details led me down a [rabbit hole](https://medium.com/@firt/is-there-a-cold-war-between-android-and-chrome-because-of-pwas-e50a7471056c) of what features exist on Chrome vs Android and the meaning of 'install' to home screen, which while it does somewhat affect end-user behavioral expectations, the implementation details are off-topic for this site.
If you can live with icon badging, you may want to try your site/webapp with [Firefox for Android](https://hacks.mozilla.org/2017/10/progressive-web-apps-firefox-android/) and see if the app UI still retains the undesirable "header".
Upvotes: 3 [selected_answer]<issue_comment>username_2: The problem ended up being a lack of HTTPS. @Morisson's answer pushed me to the right direction and I realized, "temporary for testing purposes", that I have removed HTTPS for the site.
Back to HTTPS, I can create a PWA out of the site again.
Upvotes: 0 |
2019/03/24 | 403 | 1,404 | <issue_start>username_0: I use an Android phone, and I usually download songs by converting them from YouTube to mp3 through websites. This time, when I hit the download button, the downloading didn't start. It said "download paused", and when I hit resume, it disappeared. How can I fix it?
This is what it looks like:
[](https://i.stack.imgur.com/mGNcD.jpg)<issue_comment>username_1: Try using a different internet browser like Google Chrome or Mozilla Firefox, but I must remember you that this kind of YouTube video downloading method isn't legal and you shouldn't use it, you may be downloading viruses and other harmful components in your device.
If it didn't solve your problem, then leave a comment in my answer and I'll find a way to help you better.
Upvotes: 1 <issue_comment>username_2: After few days reseach, finally I found an app can download Youtube videos (up to 1080p), download mp3 from Youtube ( up to 180 kbps). It's named HBTube. You can download full version at [HBTube Online](https://hbtube.online/#eluid39a8eda2)
***Youtube while lock screen***
[](https://i.stack.imgur.com/lNNbh.png)
***Download Youtube videos all format***
[](https://i.stack.imgur.com/JKehN.png)
Good luck!
Upvotes: 0 |
2019/03/25 | 413 | 1,691 | <issue_start>username_0: I manage my contacts on my Google account. There is a feature in Google Contacts where one can "hide" selected contacts, as follows. If you go to [contacts.google.com](https://contacts.google.com/), click the three dots to the right of a contact, then click "Hide from contacts" in the menu, the contact will be moved to Other Contacts.
[](https://i.stack.imgur.com/VBqCl.jpg)
I prefer to keep my digital data organized, and shortening my contacts list will help. However, I'm not sure what the effect of hiding a contact is (other than it not displaying in the contacts list on a contacts app).
We're talking about a contact that I'm not likely to communicate with in the future, but it would still be better for me to save their details, for example in the unlikely event that they phone me. **If a hidden contact phones me (on my Samsung Galaxy S8), will my stock phone app show me who is calling?**<issue_comment>username_1: "hiding" means hiding the contacts from the contacts app only , it will tells who's calling. I'm saying that it is only used by the app
Upvotes: -1 <issue_comment>username_2: The name of the caller will **not** be identified if the contact is hidden in Google Contacts.
The contact will be removed from the contacts list in the stock Samsung contacts app.
I tested this by calling my mobile with my work phone. I hid my work phone number in [contacts.gooogle.com](https://contacts.google.com/), and I also had to remove the number from my personal information in my Samsung Account, as well as my Samsung Account in my secure folder.
Upvotes: 3 [selected_answer] |
2019/03/25 | 661 | 2,389 | <issue_start>username_0: If I enter the Wi-Fi settings of Android-x86 (currently v8.1-r1) inside VirtualBox (currently v6.0.4) and turn it on, why does it just immediately get turned off?
Some Android apps try to find devices inside the network so it's essential (e.g. if you want to use Chromecast and iRobot Home).
[](https://i.stack.imgur.com/7VxcW.png)<issue_comment>username_1: If you're running Android within a VM, I suspect the VM software is not allowing the Android VM to interact with your WiFi hardware directly, meaning that Android does not actually see that there is any hardware available for accessing WiFi. If you check your internet connection on the Android VM, does it show you're connected to the internet via ethernet?
There may be a way in VirtualBox's settings to give the VM direct access to your WiFi chip, but I highly doubt that would work based on the nature of running Android via a VM on desktop or laptop hardware.
Upvotes: 1 <issue_comment>username_2: Turns out according to the official docs, "[VirtualBox provides up to eight virtual PCI Ethernet cards](https://www.virtualbox.org/manual/ch06.html)", which means no Wi-Fi card is available to emulate. Even if the host provides Internet to the guest via Wi-Fi, all the guest sees is Ethernet.
But if VirtualBox is incapable of it, then [how does Genymotion bypass it?](https://superuser.com/questions/1419354/how-does-genymotion-bypass-virtualbox-lack-of-wi-fi-emulation)
**Major update:**
thanks for using this very question as motivation, as of version 8.1-r2, [Android-x86 simulates WiFi on its own](https://www.android-x86.org/releases/releasenote-8-1-r2.html)!

Upvotes: 3 [selected_answer]<issue_comment>username_3: Just install it on Virtual Box software. After you install Android on VirtualBox, go to Setting and change the network setting just like this:
1. File - Host Network Manager
2. Choose the Adapter
* Attached to: Bridged Adapter
* Name: (select physical adapter)
* Advanced:
+ Adapter Type: Paravirtualized network adapter (virtio-net)
+ Promiscuous Mode: Deny
+ MAC Address: (insert MAC address, or leave default)
+ Cable Connected: V
3. Press OK and wait while Virtualbox is creating a host-only network interface
Upvotes: 0 |
2019/03/25 | 766 | 2,866 | <issue_start>username_0: I am using Chrome for Android. If I have a bookmarklet saved as a bookmark, then I am able to run it by:
1. Typing its name in the address bar until it shows.
2. Clicking the upward-leftward pointing diagonal arrow next to it to load it into the address bar.
3. Clicking enter.
I am *not* able to run a bookmarklet that I have saved as a bookmark by:
1. Opening Chrome's vertically-aligned three-dot menu.
2. Selecting `Bookmarks`.
3. Navigating to the bookmarklet's entry.
4. Clicking the entry.
I don't want to run my bookmarklets using the first method. I want to run them by going to them in the bookmarks menu (like the second method). If I click any other bookmark in the bookmarks menu, Chrome will navigate to the page. I expect to be able to run bookmarklets from the bookmarks menu.
Is it possible to run a bookmarklet on Chrome by selecting it from the bookmark?<issue_comment>username_1: If you're running Android within a VM, I suspect the VM software is not allowing the Android VM to interact with your WiFi hardware directly, meaning that Android does not actually see that there is any hardware available for accessing WiFi. If you check your internet connection on the Android VM, does it show you're connected to the internet via ethernet?
There may be a way in VirtualBox's settings to give the VM direct access to your WiFi chip, but I highly doubt that would work based on the nature of running Android via a VM on desktop or laptop hardware.
Upvotes: 1 <issue_comment>username_2: Turns out according to the official docs, "[VirtualBox provides up to eight virtual PCI Ethernet cards](https://www.virtualbox.org/manual/ch06.html)", which means no Wi-Fi card is available to emulate. Even if the host provides Internet to the guest via Wi-Fi, all the guest sees is Ethernet.
But if VirtualBox is incapable of it, then [how does Genymotion bypass it?](https://superuser.com/questions/1419354/how-does-genymotion-bypass-virtualbox-lack-of-wi-fi-emulation)
**Major update:**
thanks for using this very question as motivation, as of version 8.1-r2, [Android-x86 simulates WiFi on its own](https://www.android-x86.org/releases/releasenote-8-1-r2.html)!

Upvotes: 3 [selected_answer]<issue_comment>username_3: Just install it on Virtual Box software. After you install Android on VirtualBox, go to Setting and change the network setting just like this:
1. File - Host Network Manager
2. Choose the Adapter
* Attached to: Bridged Adapter
* Name: (select physical adapter)
* Advanced:
+ Adapter Type: Paravirtualized network adapter (virtio-net)
+ Promiscuous Mode: Deny
+ MAC Address: (insert MAC address, or leave default)
+ Cable Connected: V
3. Press OK and wait while Virtualbox is creating a host-only network interface
Upvotes: 0 |
2019/03/25 | 594 | 2,241 | <issue_start>username_0: I am trying to find Linux kernel modules on my nitrogen board.
I have unpacked kernel config from `/proc/config.gz` and I see kernel was compiled with a lot of modules.
I see only one in `/vendor/lib/modules`, zero in `/system/lib/modules`.
Can somebody explain where modules installed, what is procedure to install modules?<issue_comment>username_1: Kernel modules is a piece of code which load into kernel memory. It consists of at least two functions like int, cleanup.
If you want to see which modules are loaded into kernel memory, just type the commands:
`lsmod` or `cat /proc/modules`.
If you want to find kernel modules in whole memory of system partition:
`find / -name "*.ko"`.
**Load kernel module into memory**
```
insmod hello.ko
```
**Remove kernel module**
```
rmmod hello.ko
```
for more see dmesg log .
Upvotes: 1 <issue_comment>username_2: There are two ways Linux kernel modules are built: **1.** as a part of kernel executable binary (compressed image) i.e. with `CONFIG_*=y` options at build time, or **2.** as separate kernel object (`.ko`) files that can be loaded and unloaded with some conditions i.e. built with `CONFIG_*=m` options.
In second case the `.ko` files are placed on some standard location(s), usually `/lib/modules/` on Linux and its equivalent on Android `/system/lib/modules/` or `/vendor/lib/modules/`. These paths are hard-coded in binaries that load them e.g. `insmod`, `modprobe`.
On pre-Pie releases ([1](https://source.android.com/devices/architecture/kernel/modular-kernels#loadable-kernel-modules)), by-default Android kernel is built without option `CONFIG_MODULES=y`, so there are no kernel modules built as `.ko` files which can be loaded or unloaded with `insmod`, `modprobe` or `rmmod` as is the case with standard Linux distros. Nor they are exposed through `/proc/modules` from where `lsmod` reads information. However each kernel component that can be built as a module has an entry in `/sys/module`.
Now those modules which are compiled and loaded as `.ko` file has a corresponding `/sys/module//initstate` file, others don't have. You can confirm this way if there are any loaded modules:
```
~$ ls /sys/module/*/initstate
```
Upvotes: 3 |
2019/03/26 | 568 | 2,129 | <issue_start>username_0: How to download from Google Play without Wi-Fi setup ? I always got "waiting for wifi" when tried to install apps using mobile data.
Untick download using Wi-Fi doesn't help. BTW, I'm using MIUI 9.5 Chinese stable.<issue_comment>username_1: Kernel modules is a piece of code which load into kernel memory. It consists of at least two functions like int, cleanup.
If you want to see which modules are loaded into kernel memory, just type the commands:
`lsmod` or `cat /proc/modules`.
If you want to find kernel modules in whole memory of system partition:
`find / -name "*.ko"`.
**Load kernel module into memory**
```
insmod hello.ko
```
**Remove kernel module**
```
rmmod hello.ko
```
for more see dmesg log .
Upvotes: 1 <issue_comment>username_2: There are two ways Linux kernel modules are built: **1.** as a part of kernel executable binary (compressed image) i.e. with `CONFIG_*=y` options at build time, or **2.** as separate kernel object (`.ko`) files that can be loaded and unloaded with some conditions i.e. built with `CONFIG_*=m` options.
In second case the `.ko` files are placed on some standard location(s), usually `/lib/modules/` on Linux and its equivalent on Android `/system/lib/modules/` or `/vendor/lib/modules/`. These paths are hard-coded in binaries that load them e.g. `insmod`, `modprobe`.
On pre-Pie releases ([1](https://source.android.com/devices/architecture/kernel/modular-kernels#loadable-kernel-modules)), by-default Android kernel is built without option `CONFIG_MODULES=y`, so there are no kernel modules built as `.ko` files which can be loaded or unloaded with `insmod`, `modprobe` or `rmmod` as is the case with standard Linux distros. Nor they are exposed through `/proc/modules` from where `lsmod` reads information. However each kernel component that can be built as a module has an entry in `/sys/module`.
Now those modules which are compiled and loaded as `.ko` file has a corresponding `/sys/module//initstate` file, others don't have. You can confirm this way if there are any loaded modules:
```
~$ ls /sys/module/*/initstate
```
Upvotes: 3 |
2019/03/26 | 242 | 919 | <issue_start>username_0: So I have a Kindle Fire. One day I was stupid and deleted a bunch of stuff in the /system folder. Now, it no longer boots. No ADB, no fastboot, no nothing.
However, it still shows the ***static*** boot screen (with the orange 'fire' text.)
It never moves to the animated boot screen.
Can I get it into fastboot without a cable, or can I get into recovery mode?<issue_comment>username_1: Without the original Kindle cable you will not be able to get it into fastboot/recovery mode,
If you'd like more information and even some suggestions on what you might like to try next to see if you can rescue this device, head over to xda developers forum on the Kindle Fire
<https://forum.xda-developers.com/kindle-fire-hd>
Upvotes: 0 <issue_comment>username_2: Put the device in fast boot mode: `Power` + `Volume up` buttons.
Select recovery option, then select safe recovery option.
Upvotes: -1 |
2019/03/27 | 480 | 1,806 | <issue_start>username_0: I got a Nokia 6.1 for my son in an effort to get him out of the Apple world. One of the big advantages for him was the ability to store Netflix videos and large games in his SD card enabling him to expand storage when necessary. However, Nokia 6.1 does not have the option to format the Micro SD card as internal storage.
What other options do I have to move the apps for him?
I don't want to shell out money again for a new phone.<issue_comment>username_1: The Nokia 6.1 has a reported issue with using SD card as internal storage,
detailed on [the XDA Forum](https://forum.xda-developers.com/nokia-6-2018/how-to/adoptable-storage-available-pie-update-t3873841).
**To summarise:**
The ability to use an sdcard as internal storage is avaiable with build 00WW\_3\_206\_SP01
However, users have found files put on to the sdcard get corrupted at random 4096-byte boundaries.
In terms of options open to you, Google Play does have the instant app, which allows the user to use apps without installing them on the device. This might help in a small way.
Upvotes: 2 <issue_comment>username_2: Enable developer options by going to "About device", then tap on the build number 7 times. Developer options should now be enabled. Then, in the settings, search for "Force allow apps on external", then you should be able to install apps on your SD card. But you may need to format it as internal storage.
**Note: If you format it as internal storage, all data on the SD card will be deleted. If you do this, back up any important data beforehand!** Your internal storage will not be affected by this.
To do this, in the settings, go to "Storage", tap on the name of your SD card, then tap on the menu in the right-hand corner, and hit "Storage settings", then hit format.
Upvotes: 1 |
2019/03/27 | 894 | 3,263 | <issue_start>username_0: I purchased an app via Google's play store about a year and half ago.
Basically, I got a new phone, transferred data from my old phone to the new one. The app I'm referring to is there but as the "free version" without unlocked features.
The app isn't available in play store anymore, so I can't purchase it again.
Is there a way to transfer apk and data from the old phone, or am I out of luck?<issue_comment>username_1: Yes, if you only just want to copy over an .apk, that's certainly possible and shouldn't require root (except for certain settings or user app data that may be saved to a system directory). The simplest method would be to use a file-browser that also includes an app management function. These are typically free, and simple to use (I use [X-plore](https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore)). With this app in particular, there is a function you can enable that will list all applications installed. Simply navigate on the opposite viewing pane to a device internal storage directory (e.g., /sdcard/documents/), then return to the app manager.
[](https://i.stack.imgur.com/H6quM.jpg)
Long-press on the app you want and **copy** it (not move); this will copy over the .apk file (and automatically appends the version to the filename) and also avoid any permission errors. From there you can then share it to another device or external/network directory.
**EDIT**: You can also try searching F-Droid repository to see if the app might be there.
**EDIT 2**: Oh! Apologies, I wasn't careful enough with reading the OP, for some reason I thought you were referring to the free version. In that case, I'd suggest reaching out to the developer directly, as even if you do find a way to transfer it I don't think it would be wise to post such a method up, since others might abuse that knowledge. For this particular app, it's almost as if they don't want to be found! I've had some difficulty tracking it down (looked at the Play market [archived page](https://web.archive.org/web/20160310021648/https://play.google.com/store/apps/details?id=com.musician.tuner&hl=en), then had a [chat](https://1drv.ms/u/s!Au6FcD8kvdA9jkC9HNzhLKNx8suX) with Amazon and found [this link](http://creativelofts.co.uk/clients/detail/id/351/) as well). There's two separate e-mails for you to try, good luck! Oh, and here's a [Twitter](https://twitter.com/hashtag/pitchlabapp) account.
Upvotes: 0 <issue_comment>username_2: There is an app called [Helium](https://play.google.com/store/apps/details?id=com.koushikdutta.backup&referrer=utm_source%3DAndroidPIT%26utm_medium%3DAndroidPIT%26utm_campaign%3DAndroidPIT), which sounds like what you're looking for. Supposedly, it moves app and app data between devices, which should include the recognition that you have the premium upgrade. It does, however, require a desktop to complete the transfer. There are other options like [oandbackup](https://github.com/jensstein/oandbackup) and [Migrate - Requires TWRP](https://play.google.com/store/apps/details?id=balti.migrate&hl=en_US), depending on your level of experience and whether you can make certain modifications to both/either phone.
Upvotes: 1 |
2019/03/28 | 805 | 3,410 | <issue_start>username_0: After installing Skype a week ago, my telephone agenda duplicated a lot of contacts, for many of them I have seven duplicates - therefore eight entries for each contact.
After installing WhatsApp, I had this problem too - many contacts had one duplicate.
But after installing Skype, the telephone agenda is a horrible mess. For each such contact, Skype added five or six more duplicated contacts.
I tried to delete one such duplicated contact and I got the message "This contact is read-only. It can't be deleted, but you can hide it." - and below this message I get the buttons "Hide" and "Delete", but I tried the "Delete" button and it works, so it actually can be deleted! Which is really inconsistent.
So the question is: how can I get rid of all those duplicate contacts? (without having to delete them manually, one by one, of course)
On other phones, you can access WhatsApp from the main contact, it doesn't have to be duplicated in order to send a WhatsApp message from the main telephone contacts list.
My phone is Honor 7s.
The Android version is 8.1.0
I am using the Nova Launcher but it acts the same with the Huawei Home launcher too.<issue_comment>username_1: in the contacts app, untick the "whatsapp, skype, etc.." from the "contacts to display" options, select "customize" and done!
Upvotes: -1 <issue_comment>username_2: The Skype duplicating contacts has been an issue for me and searching a solution in Google shows that the problem has existed for about 10 years, why the Skype developers can't resolve this is odd.
To try and reduce the problem then I left sync contacts off in Skype and never synced them, but still had many duplicates of the default phone sim entries i.e. customer services etc.
I've just found a method that has resolved the issue and all duplicates in my contacts (caused by Skype) have now vanished. The solution is to deny Skype access to the phone's contacts, you can still use contacts in Skype and add them there, even use Skype from a phone number link in a text file.
To deny Skype access to the phone's contacts (I'm using Android 10), then go to it's 'App info' page and select 'Permissions', select 'Contacts' and the deny option. I also Force stopped the App, cleared the cache and opened it again, all of which seem to speed-up the process of removing the duplicates.
To be able to update / sync my Skype contacts with the phone's contacts (could still be useful at times), then I'll temporarily allow access to contacts again, use the sync contacts in Skype, once done then disabled it and deny permissions again to avoid the duplicates re-appearing.
I've noticed after trying the above to temporarily sync my Skype contacts is that Skype just shows those contacts to invite and with the option in the address book of calling the number via Skype, all of which can be done directly with Skype and so I'll now leave it in deny access to the phone's contacts.
I had the contact duplicating issue on a previous phone as well running Android 6. In my case the issue is that Skype mainly duplicates contact entries from the phone sim card. I did remove the sim contacts but there are some permanent service entries there and so it had been duplicating those with over 10 entries for each. Great to see that the duplication has now stopped after denying Skype access to the contacts as per the details above.
Upvotes: 2 |
2019/03/28 | 570 | 2,483 | <issue_start>username_0: I have downloaded some images of an adult nature onto my phone. My problem is, they show up as preview images whenever I try to compose a new tweet in the official Twitter app. I can't find any setting to turn this behaviour off.<issue_comment>username_1: in the contacts app, untick the "whatsapp, skype, etc.." from the "contacts to display" options, select "customize" and done!
Upvotes: -1 <issue_comment>username_2: The Skype duplicating contacts has been an issue for me and searching a solution in Google shows that the problem has existed for about 10 years, why the Skype developers can't resolve this is odd.
To try and reduce the problem then I left sync contacts off in Skype and never synced them, but still had many duplicates of the default phone sim entries i.e. customer services etc.
I've just found a method that has resolved the issue and all duplicates in my contacts (caused by Skype) have now vanished. The solution is to deny Skype access to the phone's contacts, you can still use contacts in Skype and add them there, even use Skype from a phone number link in a text file.
To deny Skype access to the phone's contacts (I'm using Android 10), then go to it's 'App info' page and select 'Permissions', select 'Contacts' and the deny option. I also Force stopped the App, cleared the cache and opened it again, all of which seem to speed-up the process of removing the duplicates.
To be able to update / sync my Skype contacts with the phone's contacts (could still be useful at times), then I'll temporarily allow access to contacts again, use the sync contacts in Skype, once done then disabled it and deny permissions again to avoid the duplicates re-appearing.
I've noticed after trying the above to temporarily sync my Skype contacts is that Skype just shows those contacts to invite and with the option in the address book of calling the number via Skype, all of which can be done directly with Skype and so I'll now leave it in deny access to the phone's contacts.
I had the contact duplicating issue on a previous phone as well running Android 6. In my case the issue is that Skype mainly duplicates contact entries from the phone sim card. I did remove the sim contacts but there are some permanent service entries there and so it had been duplicating those with over 10 entries for each. Great to see that the duplication has now stopped after denying Skype access to the contacts as per the details above.
Upvotes: 2 |
2019/03/28 | 630 | 2,715 | <issue_start>username_0: I was using location history all the time, on one quick walk when I took photos with my DSLR I've notice that my location was way off from my walk so I've set in settings for my location to use only GPS (no WiFi and no GSM data) and now when I check my location for that day there was no tracking. I've set it back to all data, but still no location for second day.
In mean time I've installed GPS Logger application.
How can I make my tracking working again?<issue_comment>username_1: in the contacts app, untick the "whatsapp, skype, etc.." from the "contacts to display" options, select "customize" and done!
Upvotes: -1 <issue_comment>username_2: The Skype duplicating contacts has been an issue for me and searching a solution in Google shows that the problem has existed for about 10 years, why the Skype developers can't resolve this is odd.
To try and reduce the problem then I left sync contacts off in Skype and never synced them, but still had many duplicates of the default phone sim entries i.e. customer services etc.
I've just found a method that has resolved the issue and all duplicates in my contacts (caused by Skype) have now vanished. The solution is to deny Skype access to the phone's contacts, you can still use contacts in Skype and add them there, even use Skype from a phone number link in a text file.
To deny Skype access to the phone's contacts (I'm using Android 10), then go to it's 'App info' page and select 'Permissions', select 'Contacts' and the deny option. I also Force stopped the App, cleared the cache and opened it again, all of which seem to speed-up the process of removing the duplicates.
To be able to update / sync my Skype contacts with the phone's contacts (could still be useful at times), then I'll temporarily allow access to contacts again, use the sync contacts in Skype, once done then disabled it and deny permissions again to avoid the duplicates re-appearing.
I've noticed after trying the above to temporarily sync my Skype contacts is that Skype just shows those contacts to invite and with the option in the address book of calling the number via Skype, all of which can be done directly with Skype and so I'll now leave it in deny access to the phone's contacts.
I had the contact duplicating issue on a previous phone as well running Android 6. In my case the issue is that Skype mainly duplicates contact entries from the phone sim card. I did remove the sim contacts but there are some permanent service entries there and so it had been duplicating those with over 10 entries for each. Great to see that the duplication has now stopped after denying Skype access to the contacts as per the details above.
Upvotes: 2 |
2019/03/29 | 465 | 1,762 | <issue_start>username_0: I have built AOSP for the kiddo's phone. My goal was to remove the Play Store so that he can't install games or other apps.
However, we use Google Fi for our phone service, which requires Google Play services to function. That alone isn't a big deal using Open Gapps. However, I would like to remove the Play Store, but keep Google play services so that the Fi app can be used.
From what I can tell, Play Store and Play Services seem to be married (i.e., removing Phonesky.apk with Titanium Backup removes both the Play Store and Play Services).
Is there any way that I can remove the Play Store, but keep access to Play Services so that the phone can still register through Google Fi?
Note: this is on a rooted Pixel 1. AOSP is not a strict requirement, just something I was trying to use to solve my problem. If it can be done on, i.e., the stock ROM that'd be great too.
Note 2: I realize the Play Store can be disabled in the apps settings, but this kid is smart enough to figure that one out. I also tried hiding it in Nova Launcher Prime, but it still shows up in search results within the launcher.<issue_comment>username_1: For my purpose, the following works in adb shell (as root):
```
pm disable com.android.vending
```
Of course, now I need to figure out a way to make this persist over a factory reset...
Upvotes: 1 <issue_comment>username_2: On the LeEco Le Max2 with LineageOS 16, I am the admin and my child is user 10.
`pm disable com.android.vending`
did not work, but
`pm disable --user 10 com.android.vending`
has the effect that the Play store disappears. At least the icon, not sure if it is possible to get it back. Google Play Music works, so my child can hear music but not install apps.
Upvotes: 0 |
2019/03/29 | 902 | 3,447 | <issue_start>username_0: Currently I have installed ~500 apps, mostly productivity apps and tools of various types.
I would like to have only ~100 most frequent apps installed and keep the rest (~400) uninstalled, stored in the file system along with their settings. If needed, I would like to restore such a stored app (ideally including its settings), use it and when no longer needed, archive + uninstall again.
The sample of such an app is a Latin lexicon or some infrequently used measurement tool.
**Is there an app or some procedure for this task?** Or the truth is that there is no tool which can easily backup and restore *settings* of 3rd-party apps (only the APKs themselves)? Could you refer to a tool who could at least partially automate this? At least some APK install+deinstall tool keeping user-friendly record about each app and showing **Archive**/**Restore** button next to it?
---
The reason of my expectation is unnecessarily high battery consumption with ~500 installed apps, because many of them also install their own services, slowing down the device. I want to have them at hand if needed (including their settings) but normally keep them away from the OS.
The phone is not rooted.<issue_comment>username_1: You can go to Settings > Backup & reset > set Back up my data to ON. Set/select a backup account, then enable Automatic restore.
If the phone was rooted, [Titanium Backup](https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=en) is probably what you should try.
>
> You can backup, restore, freeze (with Pro) your apps + data + Market links. This includes all protected apps & system apps, plus external data on your SD card.
>
>
>
From its [website](https://www.titaniumtrack.com/titanium-backup.html):
>
> Titanium Backup is a backup utility for Android that backs up your system and user applications along with their data on external storage of your choice
>
>
>
Edit: OP could also use `adb backup` as described on [this answer](https://android.stackexchange.com/a/28315/247431)
Edit 2: Below is the response I received from Google Product Forum after asking if the backup data of a removed app are removed during the next sync,
[](https://i.stack.imgur.com/zWhn5.jpg)
Upvotes: 2 <issue_comment>username_2: The only non-root app I'm aware of for that would be [Helium Backup](https://play.google.com/store/apps/details?id=com.koushikdutta.backup), which lets you backup and restore apps including their data. Catch: apps can opt-out of this kind of backup, which uses `adb backup` behind the scenes – so this might only cover parts of the apps you wish to deal with, and you must make sure the backup really worked before deleting an app you want to restore later.
All other approaches I'm aware of require root.
But be welcome to take a look at my [list of battery savers](https://android.izzysoft.de/applists/category/named/tools_batterysaver); some "hibernators" might work, too (even without root). Battery-wise I'd expect such a "hibernator" to have the intended effect – while with Helium+uninstall I'm pretty sure (what's not installed cannot use resources). Years ago, when I still had GApps on my device, I used Greenify to hibernate Google Maps, which was permanentĺy active in background though I rarely even started it. Effect was as intended.
Upvotes: 2 [selected_answer] |
2019/03/30 | 833 | 3,041 | <issue_start>username_0: I want to root my Samsung device, but previously, I have installed some updates. From what I know, successful rooting depends on [security bugs in the firmware](https://en.wikipedia.org/wiki/Rooting_(Android)#Varieties):
>
> The process of rooting varies widely by device, but usually includes
> exploiting one or more security bugs in the firmware of (i.e., in the
> version of the Android OS installed on) the device.
>
>
>
But security updates are intended to fix security bugs and thus can prevent rooting or make it harder to perform. Is there a way to uninstall security updates to increase the probability of successful rooting?
Update:
Some information about my device:
```
Android Version: 5.1.1
Device Name: Samsung Galaxy J1 (2016)
Kernel Version: 3.10.9
```<issue_comment>username_1: You can go to Settings > Backup & reset > set Back up my data to ON. Set/select a backup account, then enable Automatic restore.
If the phone was rooted, [Titanium Backup](https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=en) is probably what you should try.
>
> You can backup, restore, freeze (with Pro) your apps + data + Market links. This includes all protected apps & system apps, plus external data on your SD card.
>
>
>
From its [website](https://www.titaniumtrack.com/titanium-backup.html):
>
> Titanium Backup is a backup utility for Android that backs up your system and user applications along with their data on external storage of your choice
>
>
>
Edit: OP could also use `adb backup` as described on [this answer](https://android.stackexchange.com/a/28315/247431)
Edit 2: Below is the response I received from Google Product Forum after asking if the backup data of a removed app are removed during the next sync,
[](https://i.stack.imgur.com/zWhn5.jpg)
Upvotes: 2 <issue_comment>username_2: The only non-root app I'm aware of for that would be [Helium Backup](https://play.google.com/store/apps/details?id=com.koushikdutta.backup), which lets you backup and restore apps including their data. Catch: apps can opt-out of this kind of backup, which uses `adb backup` behind the scenes – so this might only cover parts of the apps you wish to deal with, and you must make sure the backup really worked before deleting an app you want to restore later.
All other approaches I'm aware of require root.
But be welcome to take a look at my [list of battery savers](https://android.izzysoft.de/applists/category/named/tools_batterysaver); some "hibernators" might work, too (even without root). Battery-wise I'd expect such a "hibernator" to have the intended effect – while with Helium+uninstall I'm pretty sure (what's not installed cannot use resources). Years ago, when I still had GApps on my device, I used Greenify to hibernate Google Maps, which was permanentĺy active in background though I rarely even started it. Effect was as intended.
Upvotes: 2 [selected_answer] |
2019/03/30 | 450 | 1,912 | <issue_start>username_0: I am using a government ZTE Qlink phone and the WIFI randomly turns itself off. I have too many contacts to perform a factory reset! I need help figuring it out!<issue_comment>username_1: Practically all mobile phones are using the [Google Contacts](https://play.google.com/store/apps/details?id=com.google.android.contact) app to manage your contacts. They create a backup of your contacts to the Google, and continuously synchronizing with it. This is why you can see the same contacts on all your Android devices (if you have multiple).
If not this is the case on your phone, you need only to install the Google Contacts app.
If you don't want to share your contacts with the Google, there are also many third-party apps to save them to other cloud services, or to your own machine. You can find them quickly with Google searches :-)
Having your contacts saved with an app, your contact list will survive a factory reset. Note, there is a high chance, that it won't fix your problem. In my experience, such sudden wifi disconnections root probably in the bad hardware/driver, or in some overloading of your device by the recently hugely grown apps. If you have no better option, it surely worths a try.
Upvotes: 2 <issue_comment>username_2: Which phone are you using? Go to `Settings` -> `About Phone` and check for system updates. If an update is available, do it right away.
If the problem still persists, then you should try to reset your phone.
If you are worried about losing your contacts, then you don't need to worry. On an Android device, your contacts are already been synced with google service. You can even check your contacts on the <https://contacts.google.com> .
Many other free contact backup apps are also available on the Internet. So you can backup your contacts/sms/call\_logs and everything else to external card and then restore them any time.
Upvotes: 1 |
2019/03/31 | 1,087 | 3,449 | <issue_start>username_0: I recently upgraded my 2016 MacBook Pro to High Sierra 10.4.4 update and since the update "fastboot devices" command hasn't been working. "fastboot" itself gives a response but "fastboot devices" command gives
`ERROR: Couldn't create a device interface iterator: (e00002bd)
ERROR: Couldn't create a device interface iterator: (e00002bd)` error. It comes twice on the window.<issue_comment>username_1: This might be a [regression in android-platform-tools](https://issuetracker.google.com/issues/64292422). Try fastboot version 9dc0875966c0-android from [android-platform-tools 26.0.1](https://dl.google.com/android/repository/platform-tools_r26.0.1-darwin.zip) as it works for me on macOS 10.14.4
Upvotes: 3 <issue_comment>username_2: I had the same error in version 28.0.3 but it's fixed in 29.0.1.
You can download it from the [official site](https://developer.android.com/studio/releases/platform-tools).
It's also available from MacPorts, e.g
```
port install android-platform-tools
```
Upvotes: 3 [selected_answer]<issue_comment>username_3: This is a Fastboot problem which has been fixed by google. See the release notes here:
[SDK Platform Tools release notes](https://developer.android.com/studio/releases/platform-tools)
Here is what solved my problem:
Start android studio->go to sdk manager->select SDK Platform Tools -> Check "Show Details" -> Select Android Platform Tools -> Upgrade to 29.0.1 or newer.
See the images for more details:
[](https://i.stack.imgur.com/Z2T7S.jpg)
Upvotes: 2 <issue_comment>username_4: Short answer: `brew cask install android-platform-tools`
Long answer:
I was in the same case (on macOS 10.14.6):
```
$ fastboot devices
ERROR: Couldn't create a device interface iterator: (e00002bd)
```
I tried previous answers of this topic without success, so I searched which program is at the origin of `fastboot` command:
```
$ which fastboot
/usr/local/bin/fastboot
$ la -l /usr/local/bin/fastboot
lrwxr-xr-x 1 username_4 admin 52 7 jun 2016 /usr/local/bin/fastboot@ -> ../Cellar/android-platform-tools/23.0.1/bin/fastboot
```
In my case, I found my fastboot command was not managed by Android Studio or an independent tool but is a shortcut of a brew formula. So I forced install of new "android-platform-tools" paquet:
```
$ brew cask install android-platform-tools
==> Downloading https://dl.google.com/android/repository/platform-tools_r30.0.0-darwin.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'android-platform-tools'.
==> Installing Cask android-platform-tools
==> Linking Binary 'adb' to '/usr/local/bin/adb'.
==> Linking Binary 'dmtracedump' to '/usr/local/bin/dmtracedump'.
==> Linking Binary 'etc1tool' to '/usr/local/bin/etc1tool'.
==> Linking Binary 'fastboot' to '/usr/local/bin/fastboot'.
==> Linking Binary 'hprof-conv' to '/usr/local/bin/hprof-conv'.
==> Linking Binary 'mke2fs' to '/usr/local/bin/mke2fs'.
android-platform-tools was successfully installed!
```
Shortcut is updated to last android-platform-tools version folder:
```
$ ls -l /usr/local/bin/fastboot
lrwxr-xr-x 1 username_4 admin 73 7 may 17:59 /usr/local/bin/fastboot -> /usr/local/Caskroom/android-platform-tools/30.0.0/platform-tools/fastboot
```
And I have no more error!
```
$ fastboot devices
```
Upvotes: 2 |
2019/03/31 | 1,314 | 4,440 | <issue_start>username_0: My father said to me that he allowed installation of apps from unknown sources when he was asked to do it to go further with something (he said that he don't remember when or what he was doing).
In android 8.0 (the version of his smartphone) we can allow third-party installation in individual apps, so I went in this tab and I saw that only Google Chrome was able to do this type of installation. So, I navigated through my father's apps and found nothing suspicious.
When I went to files, I found a folder called *didi*. Inside, a file with no extention called *psnger\_encrypted* or something like that. When I went to select the file to see details, I accidentally clicked on the file. Android said to me that it didn't find any app to open that file.
**Could a file have been executed even when Android says that message? If this file is malicious, is it possible that it was executed and so infected the phone?**
Doing some research, I found that a Chinese app called "DiDi" that have a file called "psnger" too. Also, I found a file in my father's phone called *.omega.key*, and this file is also seen in topics related to DiDi app. The fact is that I can't find this app on the phone, and **I'm looking for ways that can indicate if the phone have any malicious content**. I executed AVG, and Malwarebytes but both detected nothing. What else can I do?<issue_comment>username_1: This might be a [regression in android-platform-tools](https://issuetracker.google.com/issues/64292422). Try fastboot version 9dc0875966c0-android from [android-platform-tools 26.0.1](https://dl.google.com/android/repository/platform-tools_r26.0.1-darwin.zip) as it works for me on macOS 10.14.4
Upvotes: 3 <issue_comment>username_2: I had the same error in version 28.0.3 but it's fixed in 29.0.1.
You can download it from the [official site](https://developer.android.com/studio/releases/platform-tools).
It's also available from MacPorts, e.g
```
port install android-platform-tools
```
Upvotes: 3 [selected_answer]<issue_comment>username_3: This is a Fastboot problem which has been fixed by google. See the release notes here:
[SDK Platform Tools release notes](https://developer.android.com/studio/releases/platform-tools)
Here is what solved my problem:
Start android studio->go to sdk manager->select SDK Platform Tools -> Check "Show Details" -> Select Android Platform Tools -> Upgrade to 29.0.1 or newer.
See the images for more details:
[](https://i.stack.imgur.com/Z2T7S.jpg)
Upvotes: 2 <issue_comment>username_4: Short answer: `brew cask install android-platform-tools`
Long answer:
I was in the same case (on macOS 10.14.6):
```
$ fastboot devices
ERROR: Couldn't create a device interface iterator: (e00002bd)
```
I tried previous answers of this topic without success, so I searched which program is at the origin of `fastboot` command:
```
$ which fastboot
/usr/local/bin/fastboot
$ la -l /usr/local/bin/fastboot
lrwxr-xr-x 1 username_4 admin 52 7 jun 2016 /usr/local/bin/fastboot@ -> ../Cellar/android-platform-tools/23.0.1/bin/fastboot
```
In my case, I found my fastboot command was not managed by Android Studio or an independent tool but is a shortcut of a brew formula. So I forced install of new "android-platform-tools" paquet:
```
$ brew cask install android-platform-tools
==> Downloading https://dl.google.com/android/repository/platform-tools_r30.0.0-darwin.zip
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'android-platform-tools'.
==> Installing Cask android-platform-tools
==> Linking Binary 'adb' to '/usr/local/bin/adb'.
==> Linking Binary 'dmtracedump' to '/usr/local/bin/dmtracedump'.
==> Linking Binary 'etc1tool' to '/usr/local/bin/etc1tool'.
==> Linking Binary 'fastboot' to '/usr/local/bin/fastboot'.
==> Linking Binary 'hprof-conv' to '/usr/local/bin/hprof-conv'.
==> Linking Binary 'mke2fs' to '/usr/local/bin/mke2fs'.
android-platform-tools was successfully installed!
```
Shortcut is updated to last android-platform-tools version folder:
```
$ ls -l /usr/local/bin/fastboot
lrwxr-xr-x 1 username_4 admin 73 7 may 17:59 /usr/local/bin/fastboot -> /usr/local/Caskroom/android-platform-tools/30.0.0/platform-tools/fastboot
```
And I have no more error!
```
$ fastboot devices
```
Upvotes: 2 |
2019/04/01 | 290 | 1,104 | <issue_start>username_0: On my second device (Nexus 5), I keep getting the same notification from Drive almost every morning. When I click on it, the app opens its main screen without marking the file that I was notified about. Funny thing is, I haven't received such notifications on my main device (Pixel 3).
What is this notification about? Can the notification be triggered from the update of a some backup file?
<issue_comment>username_1: Apparently, the files that I've uploaded recently are being flagged as "Available offline", which downloads them to the device and the app shows this notification when a download is completed. I suppose that's an intended behavior, even though I've never flagged any of my files as "Available offline" ¯\\_(ツ)\_/¯
Upvotes: 2 [selected_answer]<issue_comment>username_2: I had the same problem and I think unchecking the "make recent files available offline" setting in the Google Drive app did the trick.
I'm using Google Drive v2.20.261.01.40 on a Google Pixel 3a with Android 10 (build QQ3A.200605.002).
Upvotes: 2 |
2019/04/03 | 348 | 1,349 | <issue_start>username_0: Just to keep things short, I was blocked practically everywhere by someone.
I was drunk one night and sent some very very bad messages to this person via SMS!
I am just hoping that there is no change that they'd ever read it. I've read somewhere that Android pushes the SMS messages into a separate inbox, meaning that the person can view them one day if they access that inbox?
That would kind of defeat the purpose of the blocking feature a bit. I just hope they never get read!
If anyone can give me there 2 cents that would be great. Thank you.
EDIT: The phone in question here is a motorola phone, which I assume has very little bloatware (being close to stock android).<issue_comment>username_1: Apparently, the files that I've uploaded recently are being flagged as "Available offline", which downloads them to the device and the app shows this notification when a download is completed. I suppose that's an intended behavior, even though I've never flagged any of my files as "Available offline" ¯\\_(ツ)\_/¯
Upvotes: 2 [selected_answer]<issue_comment>username_2: I had the same problem and I think unchecking the "make recent files available offline" setting in the Google Drive app did the trick.
I'm using Google Drive v2.20.261.01.40 on a Google Pixel 3a with Android 10 (build QQ3A.200605.002).
Upvotes: 2 |
2019/04/03 | 206 | 878 | <issue_start>username_0: I have an OPPO A3s where there is an option to clear image cache approx. 900 mb. size.
I want to know if clearing it will delete my pictures or not?<issue_comment>username_1: The device should only clear the thumbnail cache which is used to show the images faster in the gallery when you scroll. It is also used in other places such as file manager.
The cache will be rebuild again unless you reduce the number of images on your device. So, deleting it adds very less practical benefit.
Also, it is a good idea to take a backup of your photos before touching them. Do not risk your data just in case the app has some bug.
Upvotes: 1 <issue_comment>username_2: If you are deleting the image cache and not the images, then your images are safe. The image cache consists of thumbnails created by different apps not the real image themselves.
Upvotes: 0 |
2019/04/04 | 323 | 1,275 | <issue_start>username_0: I'm not sure if this is android related but can't find anything on this,
I keep on getting a sms with the message(>4 157>?0A=>). Does anyone know what this error is?
[](https://i.stack.imgur.com/ApcNB.jpg)
edit: I live in South Africa, I get that messages from different numbers that I believe to be a part of a service people use to send out messages. I have seen the same message from the same number I have received an EA login code.
I use a Samsung note 4, Android version 6.0.1<issue_comment>username_1: The device should only clear the thumbnail cache which is used to show the images faster in the gallery when you scroll. It is also used in other places such as file manager.
The cache will be rebuild again unless you reduce the number of images on your device. So, deleting it adds very less practical benefit.
Also, it is a good idea to take a backup of your photos before touching them. Do not risk your data just in case the app has some bug.
Upvotes: 1 <issue_comment>username_2: If you are deleting the image cache and not the images, then your images are safe. The image cache consists of thumbnails created by different apps not the real image themselves.
Upvotes: 0 |
2019/04/04 | 552 | 2,211 | <issue_start>username_0: I just got an Android tablet (Lenovo 4 8") after using an iPad for a couple of years or so.
I'm getting the "SMS is no longer supported" notification from Hangouts repeatedly and I can't seem to get rid of it.
I've tried opening Hangouts and trying to find a setting to let me get rid of this message, or to declare an alternate SMS app (I have one). But the instructions I've been able to find must be for an older version of the interface, because there's no Options menu item and I can't find an option in Settings to help.
[How to get rid of "SMS is no longer supported" notification](https://android.stackexchange.com/questions/177675/how-to-get-rid-of-sms-is-no-longer-supported-notification)
I use Hangouts all the time and I'd like to continue using it. But the SMS message is really annoying.<issue_comment>username_1: I think you are getting this message again and again because Hangout is still registered as the default app to handle SMS messages (which it doesn't support anymore).
Therefore have to make a different app the default SMS app. To do so open the Android **Settings** app (the gear icon) and select the **Apps and Notifications** section (might be named a little different on your device depending on the Android version and manufacturer).
There you will find an entry that allows you to select the **Default SMS** app. If you can't choose the app your device may be missing an app that can handle SMS. In such a case search the Google PlayStore for an new [SMS app](https://play.google.com/store/search?q=SMS&c=apps).
Upvotes: -1 [selected_answer]<issue_comment>username_2: Settings -> Apps -> Gear icon top right -> SMS settings
You have to download an alternate SMS app for it to work. I suggest GoSMS.
Restart tablet.
Upvotes: 0 <issue_comment>username_3: I was having the same notification. I did what was suggested in the comment above...went to SETTINGS, then APPS AND NOTIFICATIONS, then DEFAULT APP. I selected the "messages" app that came with the phone because that's what i was already using. This did not clear the notification so...I opened the list of all apps and UNINSTALLED the Hangouts app. That worked! Hope this helps.
Upvotes: 2 |
2019/04/05 | 313 | 1,144 | <issue_start>username_0: I just got a new Samsung Galaxy Tab S4. I did not set a password in the setup as I did not want one. The tablet timed out and now it wants a password which I don't have.
I have tried all the reset options I can find on Google, but none will take me to the reset screen.
What do I do now?<issue_comment>username_1: Boot into recovery mode and make a complete wipe of the phone. This will remove any password. **WARNING: All your data will be removed too.**
Upvotes: 1 <issue_comment>username_2: According to [the OP's (now deleted) comment](https://android.stackexchange.com/questions/209950/how-do-i-unlock-my-samsung-galaxy-tab-s4#comment269379_209975) (with copyedit),
>
> I have since found the answer. Shut the tablet off by holding power and volume down for about 45 sec. As soon as the Samsung logo appears, let go of the buttons and reapply with power and volume up until the boot screen appears. Use volume up or down to select which function you want and hit the power button to apply. It might take one or two tries for it to totally do the reset. Follow the directions with the setup.
>
>
>
Upvotes: 0 |
2019/04/05 | 660 | 2,484 | <issue_start>username_0: On my Note 9 unrooted phone, for whatever reason, if I delete files from the **"Downloads"** section of the My Files app, these files (or references to them) aren't completely removed. A residual "0 byte" file with no name and a time date stamp of "December 31, 1969 4:00pm" is leftover. Also, these residual files can't be moved or deleted.
This ***Downloads*** section seems to have a relation to the `/emulated/0/Download/` folder... although, not the same thing. If I delete the *"Download"* folder, the *"Downloads"* section remains unaffected.
In the Windows OS world, I would just run `chkdsk` to quickly fix the corrupted file indexes on the file system. However, I'm not sure what the equivalent is for an unrooted Android OS.
Things I've tried:
1. Wipe the cache partition
2. Delete the /emulated/o/download folder and recreating it again.
3. Force Stopping the My Files app, clear cache, clear data. This is supposed to be similar to clearing the app cache for 'Media Storage' app on non-Samsung Android devices
I **REALLY** don't want to factory reset my phone, considering how much time I spent configuring all my applications... unless I have absolutely no choice (and know for sure it would fix this issue). This issue is completely over my head. I'm hoping an Android expert will know what to do in this case without having to do a factory reset. **Maybe, I can do something via ADB shell?**


<issue_comment>username_1: There is an app named **Media storage** in Android OS that stores the database of files and folders in the storage of your device. Looks like there is some problem with this app, so you need to *clear it's data and cache.*
To do that, go to ***System settings->Apps***, click on the ***menu button (3 dots)*** then click on ***Show system***. Then, in the apps list, you can find an app named **Media storage**. Click on it and clear it's data and cache. See this screenshot :
[](https://i.stack.imgur.com/Zmu7v.png)
Upvotes: 1 <issue_comment>username_2: I had this problem, and somehow managed to delete the 0b file in my download folder (dated 1970 for some reason?) using a cleaning app called "SD maid".
Upvotes: 0 |
2019/04/06 | 365 | 1,395 | <issue_start>username_0: I'm trying to solve a problem I'm having with Google Play Store. (Specifically, a continual "Error checking for updates" and an empty "Installed" list. I tried clearing the cache.)
The version I have of Play Store is 14.2.58, and I know it's not the latest. I've read that sometimes the app doesn't update automatically. But where do you go to upgrade the app manually?
When I google for it, I see a lot of third-party sites that offer the latest download, but I don't know if they can be trusted. If Google itself offers the download, I can't find it.<issue_comment>username_1: There is an app named **Media storage** in Android OS that stores the database of files and folders in the storage of your device. Looks like there is some problem with this app, so you need to *clear it's data and cache.*
To do that, go to ***System settings->Apps***, click on the ***menu button (3 dots)*** then click on ***Show system***. Then, in the apps list, you can find an app named **Media storage**. Click on it and clear it's data and cache. See this screenshot :
[](https://i.stack.imgur.com/Zmu7v.png)
Upvotes: 1 <issue_comment>username_2: I had this problem, and somehow managed to delete the 0b file in my download folder (dated 1970 for some reason?) using a cleaning app called "SD maid".
Upvotes: 0 |
2019/04/06 | 318 | 1,163 | <issue_start>username_0: I installed tower fortress game from playstore and after when I uninstalled it this notification sticked in my notification bar and is not going away!
It's been more than 4-5 hours and still it's sticked there!
Experts plz help me!
My phone:- Lenovo K8 Note Android Oreo
<issue_comment>username_1: There is an app named **Media storage** in Android OS that stores the database of files and folders in the storage of your device. Looks like there is some problem with this app, so you need to *clear it's data and cache.*
To do that, go to ***System settings->Apps***, click on the ***menu button (3 dots)*** then click on ***Show system***. Then, in the apps list, you can find an app named **Media storage**. Click on it and clear it's data and cache. See this screenshot :
[](https://i.stack.imgur.com/Zmu7v.png)
Upvotes: 1 <issue_comment>username_2: I had this problem, and somehow managed to delete the 0b file in my download folder (dated 1970 for some reason?) using a cleaning app called "SD maid".
Upvotes: 0 |
2019/04/07 | 378 | 1,471 | <issue_start>username_0: Regarding the GPS weeks rollover which took place on April 06th 2019. all the websites are talking about the phenomenon but they are not explaining what are the side effects on end users devices if the week number will be 0000.
How an Android smartphone GPS users could be affected regarding this rollover from 1023 to 0000 weeks ?
Regards<issue_comment>username_1: From what I know the rollover is not the only problem, also an additional week counter 13 bits is introduced. A new data format (with larger data) can of course cause problems if unsupported by the GPS receiver firmware.
Also I have read that some GPS devices use the week counter for plausibility checking of the received data. If the week is smaller than the manufacturing week the data have to be invalid so the simple but bad logic. After the roll-over it will simply reject all incoming data as the receiver thinks that the received data is invalid (e.g. because of radiointerference).
Upvotes: 2 <issue_comment>username_2: The problem on my device (old Samsung xCover2) is that GPS tracks recorded after April 6th, 2019 have an invalid date.
Check out "GPS Test" app from Google Play to see what date/time your device reads from the GPS system. For example on my phone on April 17th, 2019 it displays September 1st, 01.
Different applications will interpret it in different ways so in other applications you might see dates in 1099 or 2099 or 2999 year etc.
Upvotes: 1 |
2019/04/07 | 418 | 1,741 | <issue_start>username_0: My phone doesn't charge at all, even when is charging while switched off.
And I have tried it with many chargers and battery.
But same thing keeps happening<issue_comment>username_1: Based on your description there is one very likely reason for your problem:
The USB port of your phone is defect. It is loose and has lost connection to the circuit board it is placed on, therefore no (or very little) power can flow through it. This usually happens by too many movements of the USB plug while inserted into the USB port (the USB plug works as a lever and the longer the plug is the more force it can put on the USB port of your phone - this is called "principle of the lever").
Depending on your phone and how large the hardware defect is, often it can be fixed by re-soldering the USB-port to the circuit board. However this require soldering experience and the right soldering equipment.
In some devices the USB port is located on an small extra circuit board that can easily be replaced with a new board.
Upvotes: 1 <issue_comment>username_2: May be worth measuring your battery terminals with a DVM and seeing if its greater than 3.6V. If your phone is on charge but is in some form of a charge loop you can take out the battery and manually charge it up to >3.6V using a TP4056 circuit and some test probes (with steady hands, patience and a lot of care). I've only had a charge loop once before but i'm guessing its probably not what your experiencing.
If you want to see if your charger is active then you can plug in a USB charger doctor inline with your USB lead and that may tell you a lot.
Note - If your battery measures <3V, you may want to purchase a replacement (for safety reasons).
Upvotes: 0 |
2019/04/07 | 260 | 993 | <issue_start>username_0: So in my Redmi Note 7 Pro, the screenshots and screen recordings all go in a subfolder inside DCIM folder. Photos (app by Google) simply uploads everything in the DCIM folder. I have tried [this](https://android.stackexchange.com/a/199737/107756), but it did not work (hence asking a new question).<issue_comment>username_1: ```
- Settings
- Backup & Restore
- Select Account
- Unselect Sync Photos
```
Now in each app...
* Open Photos ( The app by Google )
* Go into settings
* locate sync or Save Storage features
* Disable sync
Look around for any other apps using synchronization and disable it...
I think Google Drive does this for Photos as well as other apps.
Upvotes: 0 <issue_comment>username_2: There seems to be *no* clear solution to this.
I have had to manually move the sub folders within DCIM to outside the DCIM folder using a file explorer so that I can later individually choose which folders should get backed up in Google Photos.
Upvotes: 1 |
2019/04/08 | 1,002 | 4,342 | <issue_start>username_0: I recently reported bug for two apps that I use. The support guys replied that I need to delete cache and unblock notifications, set battery optimization and putting that app to sleep to turned off. These are understandable steps to fix an issue.
What puzzled me that both the app support guys additionally suggested that I should uninstall the app and reinstall. Which I will not do because that will mean I have to manually download all the downloaded content again (more then 50+). Seems like a nuclear option.
I am not an Android developer, a .Net full stack developer. Their response made me curious and now I want to know what happens when an app is uninstalled. What made the support guys of these renowned apps to tell me to go nuclear and uninstall the app and then reinstall again?
Additionally which these steps can be performed without uninstalling the app to verify if issue is not with code of the app but it is some other factor?
This question is not regarding those two apps that has bugs but rather to get better understanding of the life-cycle of an Android app.
As of my understanding, in my .Net app most bugs usually are caused by either code or cache issue (tbh cache issue is also due to code not properly handling caches).
As my understanding in Android is limited, I tried to research what are the events and tasks that Android OS performs, that might cause an app's bug to get fixed (Not an effort to fix issue for those apps, rather to understand what Android OS does) however I didn't find much resource on the internet.<issue_comment>username_1: Uninstalling an app will remove entry from `/data/system/packages.xml`, and delete package from:
* `/data/app/` (apk file)
* `/data/data/` (user data and cache)
* `/data/dalvik-cache/arm/` (translated java bytecode to executable dalvik bytecode)
Clear cache can performed from the android settings. Custom recovery twrp has option for wipe the dalvik cache.
Upvotes: 2 <issue_comment>username_2: If the app stores most of its data online (in the cloud) through an account, then uninstall/reinstall isn't actually that nuclear. All you'd have to do upon reinstallation is sign in and the app should pull all your content back from the cloud. That's the ideal case at least, but of course you never know.
To answer the original question though, uninstall/reinstall is supposed to give you a clean slate and rid you of any accumulated crud and other subtle anomalities in user data. May or may not make sense in theory but practice has shown it helps get rid of problems surprisingly often. This is not restricted to just Android, a similar approach often helps on many other platforms, mobile, desktop, and elsewhere.
Upvotes: 2 <issue_comment>username_3: Application updates do not recognise OTA Updates..
I have had several problems lately due to the fact that still use Android 5.0 and updating an application built for Android 8.0 or Android 7.0 will not work on my device..
The application will install the update, however the Data is still configured for Android 5.0 so the application can not read its own data...
Uninstalling the application will erase the Data and allow a fresh installation to initialize the data for a newer configuration.
From my point of view as a developer, i believe that Uninstalling & Reinstalling can be an over kill of a method.
As a developer, i see two options...
Delete All Data to the Application to reinitialize the configuration when you reopen the app.
* Open Settings
* Open Apps
* Find and Open the Apps
* Select Clear Data & Clear Cache
...
It may also be a file on the primary SD Card, this is the last stuff to be deleted ( .Android folder )
* Open your primary SD Card
* Open the hidden folder ( .android )
* Open OBB folder
* Locate large data that is linked to the application package name...
* Move the OBB Files to a backup folder
* Open the .android folder again
* Open the other folders and locate the Apps data
Leave the Apps data if it is too large to re download, sometimes you must re-download the data because the app has had the data reset it won't think the data exists until you complete a new data download.
Uninstalling has already been explained, i just wanted to add my suggestions on wiping data for the app, rather than uninstalling.
Upvotes: 2 |
2019/04/08 | 217 | 778 | <issue_start>username_0: From where I could get my own WhatsApp call recordings? I need only one call recording, it is very urgent, I am in problem. I have searched for too long but i didn't find the solution any where.<issue_comment>username_1: edit: depending on WhatsApp version you may find it
"/storage/emulated/0/WhatsApp/Media/WhatsApp Calls"
[](https://i.stack.imgur.com/7DSO3.png)
Upvotes: -1 <issue_comment>username_2: WhatsApp does not record the calls automatically. So, if you didn't rely on a 3rd party app (I can't make a recommendation) and you did not record the call when it happened, you cannot find any recordings of the same. This makes it impossible to get that call conversation back.
Upvotes: 1 |
2019/04/10 | 346 | 1,234 | <issue_start>username_0: I have a Redmi 3 MIUI7 that I recently flashed with MIUI9 using TWRP. Right after flashing, I tried to boot it but it stuck on a bootloop. Since I haven't booted into the ROM and can't do so because of the bootloop, I have no access to enable USB Debugging AND TWRP recovery mode. No USB Debugging means the device will show as `unauthorized` when using `adb devices`, though I can Vol. Down+Power to get into Fastboot. I have flashed several ROMs before flashing to MIUI9 (Resurrect Remix and LineageOS, both Android Oreo and had root access).
I just need way to boot into TWRP recovery mode to a) flash my way out of the loop b) restore a backup.<issue_comment>username_1: edit: depending on WhatsApp version you may find it
"/storage/emulated/0/WhatsApp/Media/WhatsApp Calls"
[](https://i.stack.imgur.com/7DSO3.png)
Upvotes: -1 <issue_comment>username_2: WhatsApp does not record the calls automatically. So, if you didn't rely on a 3rd party app (I can't make a recommendation) and you did not record the call when it happened, you cannot find any recordings of the same. This makes it impossible to get that call conversation back.
Upvotes: 1 |
2019/04/11 | 1,020 | 4,148 | <issue_start>username_0: I have an Android Voyager, RCT6773W22B. It's version 5.0.
When I first got it, and years after that, I could download at least five apps downloaded at a time and have a great sum of pictures in my gallery. I would still have space after this. Over time, I would delete apps I didn't use anymore. If I wanted to download something else and there wasn't enough space, I would delete apps and/or pictures I don't need.
Now, I can't download anything due to internal storage. I have no apps, five pictures (not taken with the camera), and I've cleared the cache on everything except Chrome. It tells me my internal storage is completely full and I can't move anything to an SD card. What do I do?<issue_comment>username_1: I think this is the very similar problem I was having with my old phone.
First, check your Storage in Settings for the information of what takes up your phone's space
Second, if First step doesn't help, instal 3rd-party app, like Disk Usage, and check from there
My suspicion is the .thumbnail files and the database
Upvotes: 3 <issue_comment>username_2: If your problem is lots of residue files from apps that are redundant and previously uninstalled. Then I'd recommend one of those cleaning apps like clean master, ordinarily its not the sort of app I would regularly use by any means. But I managed to free up >1GB on one my tablets and the next thing I new I could install loads of apps again - to my surprise.
May be worth looking at your apps in settings as well to make sure there's no excessive disk usage from a particular app.
Upvotes: 2 <issue_comment>username_3: you can check what files or folders occupying storage from adb shell, and delete it from command line. for example (du) disk usage, (rm) remove:
`du -hxcd1 /storage/emulated/0`
`rm -r /storage/emulated/0/Android/data`
Upvotes: 2 <issue_comment>username_4: There are a lot of reasons that can cause this:
* leftover artifacts from uninstalled apps or updates
* download content from apps (videos/ photos from chat applications, maps for navigation, audio files for language learning apps, etc)
* currently kept open browser tabs (my chrome had at one point 50 tabs, it reserved ~1.5gb of space even if closed it but kept the tabs)
If you do a backup of your contacts and other important data, you can try to reset it to factory settings with a wipe of all sd/ internal memory.
If you have a pc to connect your phone by cable AND the knowledge, you could browse the file folders and find the culprit (I would still recommend to clean the files over the phone afterwards but its easier to find what is taking the space)
You could buy as a well a bigger sd card as a temporary solution.
Upvotes: 3 <issue_comment>username_5: I solved a similar problem in android 5 doing this:
1. Settings --> Apps.
2. Go to All apps tab.
3. Look for "Download Manager" or something similar (I do not know the exact translation). It has an arrow pointing down inside a blue circle.
4. Select it and clear cache. For me, it had more than 1GB cache when I found it.
Upvotes: 3 <issue_comment>username_6: The old (original) applications that came preinstalled on your phone are stored in the operating system part of the flash. As new versions of those applications appear, they are installed in the user part of the flash.
One way to recover some of the "lost" space is to bring applications to the "original" version - the one from flash. This will clear the "new" version that is installed in the "user" flash, freeing space available to you.
Of course, this does means you run older versions of those applications, which is not optimal.
This problem is most critical on 4GB storage phones (old budget smartphones). Some of them have SD card hardware support, but you can't move applications from the internal memory to the flash.
Another relatively easy way to check the storage is to connect the phone to a PC via USB cable and activate on the phone the "file access" mode - you will see "Internal Storage" and "SD Card" sub-folders (or something similar).
Also, +1 for WhatsApp storage of images/videos/...
Upvotes: 3 |
2019/04/11 | 997 | 3,216 | <issue_start>username_0: Generally, WhatsApp data and media are found in the WhatsApp folder created in the file manager.
When we enable Clone Apps for WhatsApp in Realme 2 Pro (Color OS 5.2), where are cloned WhatsApp data and media stored and where can I find cloned WhatsApp data and media in file manager?<issue_comment>username_1: Open File Manager → Choose Phone Storage → defaults folders will be visible, select Search icon/text area and type `999` and click enter, you will be redirected to `999` folder with following pre-defined folders:
1. Android
2. DCIM
3. WhatsApp
Click on WhatsApp → Media, and find your relevant files like images, profile photos, videos, animated gifs, documents, etc.
Upvotes: 2 <issue_comment>username_2: First, install any other file manager such as Xiaomi's file manager and then search 999, you will find the data and media of cloned WhatsApp.
Upvotes: 0 <issue_comment>username_3: 1. Install FX File Explorer on playstore app
2. Go to Setting and allow hidden files
3. Go to internal storage
4. There is a small letter written "storage/emulated/0/", click on this and replace 999 to 0
5. Tap OK
Upvotes: 1 <issue_comment>username_4: **Eureka!** Found a way and it can work wirelessly.
**Follow my tutorial, Just discovered it and currently backing up my WhatsApp folder.**
So, First → Get the [Filezilla client version.](https://filezilla-project.org/)
and [MiXplorer Silver - File Manager](https://play.google.com/store/apps/details?id=com.mixplorer.silver&hl=en_IN&gl=US) . Paid Version. But you know what to do with the paid version , Won’t link the links. But go for it,
and obviously know the file path of the DUAL APPS folder in my case it’s `/storage/emulated/999/WhatsApp/……….`
**Now,** open Mixplorer and then to the right top corner click on the options and then click on Servers.
**Next,** click the edit button and set the path to the location of your Dual app `/storage/emulated/999`.
Now, **click start server**.
Next, Create Hotspot → Connect your Laptop/Desktop (using a dongle or inbuilt Wi-Fi) to the network then, Open Filezilla → You’ll need the location of your FTP server. As in our case, the server we created using MiXplorer,
**Note##** You’ll find the **FTP** address in the Notification menu of your phone by **MiXplorer**, Now in Filezilla Hostname will be the IP address mine was `192.168.XX.X`
and **port** (If you’ve created your port in MiXplorer) else leave it blank and Boom Now, you’re provided with the Storage screen and Just copy whatever you want from There.
[](https://i.stack.imgur.com/Fpue7.jpg)
[](https://i.stack.imgur.com/ZcuEN.jpg)
[](https://i.stack.imgur.com/vIakI.jpg)
[](https://i.stack.imgur.com/F8n3x.jpg)
[](https://i.stack.imgur.com/MiEFj.jpg)
[](https://i.stack.imgur.com/MiEFj.jpg)
[](https://i.stack.imgur.com/MrnyN.jpg)
And obviously, it’s efficient for any kind of file transfer using FTP i.e. Wirelessly.
Upvotes: 0 |
2019/04/11 | 452 | 1,880 | <issue_start>username_0: I want to build LineageOS 15 from source following [the titan image build guide](https://wiki.lineageos.org/devices/titan/build) which requires the transfer of vendor specific files and thus an `adb` connection after enabling USB debugging.
I didn't find a LineageOS-specific guide on turning development tools including USB debugging on, so I went with my Android knowledge of tapping 6 times on the build number in the phone settings. This shows a screen with my home screen background and the LineageOS emblem. The emblem responds to taps anywhere on the screen by changing it's styling, but nothing else. I can go back and use the phone including repeating the journey to the emblem screen.
I get that these settings should be hidden for non-dev users and don't need to be reachable very intuitively, but that's covered by hiding the function behind the 6 taps on the version item. After that the proceedure to enable development features can be intuitive again.<issue_comment>username_1: I tapped something else than the build number. There's a lot of room for improvement here, unfortunately, LineageOS developers don't care about suggestions of improvements in their issue tracker.
Upvotes: 0 <issue_comment>username_2: >
> I went with my Android knowledge of tapping 6 times on the build number in the phone settings. This shows a screen with my home screen background and the LineageOS emblem.
>
>
>
Despite what you claimed, you've tapped the wrong place. Tapping "Android version" will show a big N; tapping "LineageOS version" will show you the LOS logo; tapping the actual "Build number" item, which is the second-to-last item in the About phone menu, is what you should go for.
On top of that, it should be tapped **7** times, and each tap should notify you about needing more taps to unlock Dev Options.
Upvotes: 3 [selected_answer] |
2019/04/11 | 652 | 2,416 | <issue_start>username_0: I have scratched my screen, however, when I look at it real close, it looks like a screen protection was pre-affixed to it... but to confuse matters, unlike other screen protections I had in the past, this one demands much force to be applied in order to slide a nail under it - so much force that I stopped trying for fear of breaking some kind of "integrated screen protection".
This feature is maybe 1/4mm thick, follows the contour of the top speaker, about 1mm under it, and follows the top edge of the plastic sides, roughly 2mm from them, and has a circular hole roughly 8/9mm around the front camera.
Can someone tell me if there is an "integrated (and not removeable) screen protection" on s10e phones, that looks like what I described, or if, for some reason, there was a screen protection affixed to my phone though I never asked for one?<issue_comment>username_1: From the Verge's article [Samsung will include preinstalled screen protector on Galaxy S10 and S10 Plus](https://www.theverge.com/2019/2/28/18244693/samsung-galaxy-s10-free-screen-protector):
>
> Buyers of the new Samsung Galaxy S10 and S10 Plus will find a preinstalled plastic screen protector on their device when they unbox it beginning March 8th. Samsung has confirmed that it’s shipping the S10 with a protector on the display, meaning you won’t have to immediately hunt for something that’s compatible with the ultrasonic in-display fingerprint sensor on day one. Now, this is just your very basic screen protector — similar to what OnePlus does with their phones, if I had to guess — and it isn’t glass, so it’s bound to scratch over time. The included protector thus doesn’t have any sort of warranty on how long it’ll last.
>
>
>
>
> The Galaxy S10E won’t have this screen protector included since it will work with many screen protectors with no problem. Samsung seems to be purposefully doing it on the S10 and S10 Plus to give consumers a quick solution out of the box.
>
>
>
If yours has one pre-installed, maybe they forgot and install one ;)
Upvotes: 1 <issue_comment>username_2: I finally managed to slide under it, there *was* a screen protector, and so I am relieved that's not my screen I deeply scratched in 3 days after receiving the phone :)
So for anyone wondering, s10e might have a protector straight out of the box, and it's damn hard to remove!
Upvotes: 1 [selected_answer] |
2019/04/12 | 464 | 1,674 | <issue_start>username_0: Is using a live cd a good idea? Will it keep the rest of my computer including storage and installed OS safe?<issue_comment>username_1: From the Verge's article [Samsung will include preinstalled screen protector on Galaxy S10 and S10 Plus](https://www.theverge.com/2019/2/28/18244693/samsung-galaxy-s10-free-screen-protector):
>
> Buyers of the new Samsung Galaxy S10 and S10 Plus will find a preinstalled plastic screen protector on their device when they unbox it beginning March 8th. Samsung has confirmed that it’s shipping the S10 with a protector on the display, meaning you won’t have to immediately hunt for something that’s compatible with the ultrasonic in-display fingerprint sensor on day one. Now, this is just your very basic screen protector — similar to what OnePlus does with their phones, if I had to guess — and it isn’t glass, so it’s bound to scratch over time. The included protector thus doesn’t have any sort of warranty on how long it’ll last.
>
>
>
>
> The Galaxy S10E won’t have this screen protector included since it will work with many screen protectors with no problem. Samsung seems to be purposefully doing it on the S10 and S10 Plus to give consumers a quick solution out of the box.
>
>
>
If yours has one pre-installed, maybe they forgot and install one ;)
Upvotes: 1 <issue_comment>username_2: I finally managed to slide under it, there *was* a screen protector, and so I am relieved that's not my screen I deeply scratched in 3 days after receiving the phone :)
So for anyone wondering, s10e might have a protector straight out of the box, and it's damn hard to remove!
Upvotes: 1 [selected_answer] |
2019/04/12 | 406 | 1,758 | <issue_start>username_0: I have personal and business calendars from completely different accounts and I don't want them to show on both apps.
When I select specific calendars for Google calendar for Android, I can't prevent Samsung Calendar from showing the exact same changes and vice versa.
Can you select only Calendar A from Account A on one calendar app and only Calendar B from Account B on another on Android?<issue_comment>username_1: As strange as this may seem, it is not possible to do that. Any calendars you enable/disable in the Samsung calendar will be reflected in the Google calendar.
However, you can get two separate installations of the calendar by using secure folder. I am a fan of this solution because it keeps all of your business stuff separated from your personal stuff.
1. Enable secure folder by finding the icon on the phone's dropdown menu (above the notification drawer).
2. Launch the secure folder app.
3. Sign into your business Google account in the secure folder settings menu.
4. Open the Samsung Calendar app which should be in secure folder by default, or add a copy of Google Calendar to the secure folder and use that.
You now have two separate calendar apps on your phone and neither is aware of the other's existence.
Upvotes: 1 [selected_answer]<issue_comment>username_2: Candl Apps makes two calendar widgets - one called Calendar Widget: Month and another called Calendar Widget: Agenda.
You can add calendars to these widgets which will not automatically change the visible calendars on other calendar apps.
Here are the links to the play store:
Month
<https://play.google.com/store/apps/details?id=com.candl.chronos>
Agenda
<https://play.google.com/store/apps/details?id=com.candl.auge>
Upvotes: 1 |
2019/04/13 | 849 | 3,080 | <issue_start>username_0: Say I have a photo `A` taken by the phone camera. It is stored somewhere, but can be seen in the stock Gallery app as well as the Google Photos app. `Q1`:Are both apps using the same physical copy or are there two copies?
Then, say, my WhatsApp has a photo `B` I received in a conversation. It is I presumed stored in `/WhatsApp/Media/whatsApp Images`. It can also be seen in the Gallery and Photos apps.
My WhatsApp has backup set to `Back up to Google Drive Daily` using Google Account `X`. `Q2:`Is this a special arrangement between Google and WhatsApp, because I cannot see anything regarding this in <https://drive.google.com>.
In the Photos app, Settings, Back up & Sync, the BACKUP ACCOUNT is `Y`, my other Google Account I have configured on the same phone. In the `Back Up device folders` details, `WhatsApp Images` is enabled. `Q3:`Does this mean that my WhatsApp photo `B` is backed up to my Google Drive in account `Y` as well as the special WhatsApp backup in Google Drive in account `X`?<issue_comment>username_1: >
> Q1:Are both apps using the same physical copy or are there two copies?
>
>
>
They are both the same copy. Both apps scan the location the photo is stored, and the location contains only 1 copy of the file. If you have 5 copies of the same file, in the same folder, both apps will show you 5 photos, not 10.
>
> Q2:Is this a special arrangement between Google and WhatsApp, because I cannot see anything regarding this in <https://drive.google.com>.
>
>
>
I presume yes. On Android, WhatsApp uses Drive for backups, while on iOS, it uses iCloud.
>
> Q3:Does this mean that my WhatsApp photo B is backed up to my Google Drive in account Y as well as the special WhatsApp backup in Google Drive in account X?
>
>
>
Yes. Although the accounts are differents, both apps have been configured to access the same folder (in this case, WhatsApp Images). Thus, when backing up files, they both backup the same files in both accounts.
Upvotes: 2 [selected_answer]<issue_comment>username_2: >
> Q2:Is this a special arrangement between Google and WhatsApp, because
> I cannot see anything regarding this in <https://drive.google.com>.
>
>
>
There is close collaboration between WhatsApp Account & Google Drive - You can read the details for this in the [FAQ of WhatsApp for backup](https://faq.whatsapp.com/en/android/28000019/?category=5245251)
The major motive behind this is You can back up your chats and media to Google Drive, so if you change Android phones or get a new one, your chats and media are transferable.
>
> Q3:Does this mean that my WhatsApp photo B is backed up to my Google
> Drive in account Y as well as the special WhatsApp backup in Google
> Drive in account X?
>
>
>
To determine which Google Drive account is used by WhatsApp You can do below steps - Tap **Open WhatsApp & then go to Menu > Settings > Chats > Chat backup**.
In this screen you should be able to see the Google drive settings that also displays you the name of Google Drive account used by WhatsApp
Upvotes: 0 |
2019/04/13 | 474 | 1,675 | <issue_start>username_0: I downloaded the latest LineageOS for my latest Device, from Dumplings SF.
firmware, recovery, vendor files.
What I get all the time is that error message "E1001: Failed to update system image" and that he can't mount the vendor partition.
Any ideas ? PS: I can't even flash back to latest Oneplus ROM (or even older roms)....
Update:
Meanwhile I use TWRP from "cheeseburgerdumplings" for 8.1 on what lineageOS and the "/vendor" partition is no more tried to be mounted.
What I figure out as well, is that if I go with adbs command to know if the filesystem is encrypted or not:
```
adb shell getprop ro.crypto.state
```
tells me "encrypted"
Now the big question, which filesystems are encrypted, all ?
And which partition or FS does not have to be encrpyted?
Here is the "recovery.log":
<https://pastebin.com/raw/tKMStdSF>
Screenshot:
[](https://i.stack.imgur.com/KKdPw.png)<issue_comment>username_1: I faced the same issue and solved it by setting the settings flag `Unmount System before installing a ZIP` to false. This is not documented or recommended anywhere, however.
For me, it was LineageOS+MicroG image [serrano3gxx](https://download.lineage.microg.org/serrano3gxx/). If someone else finds this to solve this error, please leave a note so we can report it accordingly.
Upvotes: 1 <issue_comment>username_2: Solved!
Update to the latest official Oneplus 5T Oxygen OS, and use the official recovery and image, and everything goes without any problems.
Update must be done in "offline update mode", as online update server is no more available.
Upvotes: 0 |
2019/04/14 | 304 | 1,219 | <issue_start>username_0: I noticed that my phone silently enables bluetooth when screen turns off. When phones remains inactive for few minutes and I click unlock button I can see bluetooth indicator showing up for around 1-2 seconds, then it disappears and Bluetooth is disabled. I have suspicions that some app enables bluetooth programatically when screen is off.
Can I revoke bluetooth permissions from all apps? (eg. using `adb`) Or at least check recent bluetooth activity events?<issue_comment>username_1: You can go to **System settings**⋙**Apps**, then click on the **3-dots ⋮** icon at the right-top corner of the title bar. Then, click on **Reset app preferences**, then click on **OK**.
Upvotes: 0 <issue_comment>username_2: Run the following commands:
```
adb shell
for package in $(pm list packages -3 | cut -f2 -d":"); do pm revoke $package android.permission.BLUETOOTH; pm revoke $package android.permission.BLUETOOTH_ADMIN; done
```
That will list every installed third party application then revoke both permissions `android.permission.BLUETOOTH` and `android.permission.BLUETOOTH_ADMIN`.
If you need to apply this to all installed and enabled applications, use `-e` instead of `-3`.
Upvotes: 2 |
2019/04/14 | 273 | 1,025 | <issue_start>username_0: I've got an Nokia 6 with Pie! How do I stop others from answering my calls, or more correct, how do I stop incoming calls from opening my phone?? Everytime there's an incoming call, all security settings are set aside, and anyone can answer or have access to my phone.<issue_comment>username_1: You can go to **System settings**⋙**Apps**, then click on the **3-dots ⋮** icon at the right-top corner of the title bar. Then, click on **Reset app preferences**, then click on **OK**.
Upvotes: 0 <issue_comment>username_2: Run the following commands:
```
adb shell
for package in $(pm list packages -3 | cut -f2 -d":"); do pm revoke $package android.permission.BLUETOOTH; pm revoke $package android.permission.BLUETOOTH_ADMIN; done
```
That will list every installed third party application then revoke both permissions `android.permission.BLUETOOTH` and `android.permission.BLUETOOTH_ADMIN`.
If you need to apply this to all installed and enabled applications, use `-e` instead of `-3`.
Upvotes: 2 |
2019/04/15 | 653 | 2,727 | <issue_start>username_0: Since I will be lending my phone to someone else, I want my phone to ask my Google account password (or alternative authentication) each time an app is installed.
If I go to *Google Play* -> *Three bars menu* -> *Settings* -> *Require authentication for purchases*, the options are:
1. For all purchases through Google Play on this device.
2. Every 30 minutes.
3. Never.
The first option seems to be what I am looking for.
Nevertheless, I am not asked for any authentication for installing apps.
**Can this be done? How?**
Using a Samsung Galaxy J7, with Android 6.0.1.<issue_comment>username_1: Apps that are free don't have to be purchased -> no purchase means no password prompt.
I see two possibilities for you:
1. Delete your Google account from the device. Google apps usually sync everything to the cloud, therefore by re-adding the account everything will be restored.
2. If the device has the possibility to create a guest user account set a difficult password on your primary account and create a guest user. Guest users aren't allowed to install new apps, however they can use every app that is already installed and the app data is stored in a separate directory therefore the guest can use the apps but don't access your app data.
Upvotes: 2 <issue_comment>username_2: A bit extreme, but consider that Google will not allow you control over installations...
Disable google play.... It wont be uninstalled, and can be re-enabled from settings, but its one more extra step at least...
Upvotes: 1 <issue_comment>username_3: There is an app for that! Applock will give you that functionality. To require passwords for select apps, thus allowing you to share yet protect sensitive data, or in my case, finance or $ portfolios. On Android anyhow it's called Applock.
>
> * AppLock can lock Facebook, WhatsApp, Gallery, Messenger, Snapchat, Instagram, SMS, Contacts, Gmail, Settings, incoming calls and any app you choose. Prevent unauthorized access and guard privacy. Ensure security.
> * AppLock can hide pictures and videos. Hidden pictures and videos are vanished from Gallery and only visible in the photo and video vault. Protect private memories easily. No pin, no way.
> * AppLock has random keyboard and invisible pattern lock. No more worry people may peep the pin or pattern. More safe!"
>
>
>
Hope that helps you! This is what you need.
Upvotes: 0 <issue_comment>username_4: Guest account is the best method.
If your phone does not support guest user account feature:
Then probably check XDA developers - find model number of your phone-root it-
Install the stock Android - then you should get a lot of options that are better than factory installed ROM.
Upvotes: 0 |
2019/04/15 | 187 | 777 | <issue_start>username_0: My Wife tried to do an in app purchase but instead of her gmail showing up her twin's did instead and needed her password as well how can it be switched so only her email and password can be used ?<issue_comment>username_1: There should be a page in the settings app called Accounts. All the accounts stored on the device will be listed there. To remove an account, tap on the account name and then tap the remove account button
See this link for more info [Add or remove an account on Android](https://support.google.com/android/answer/7664951?hl=en)
Upvotes: 1 <issue_comment>username_2: On the Google Play app menu, the account from which you are logged in is showing click on the downside button an from there you can switch accounts.
Upvotes: 0 |
2019/04/16 | 882 | 2,954 | <issue_start>username_0: I have a 10.Or G android Oreo device
* Resolution: 1080x1920
* Density: 480
This question follows up from [here](https://android.stackexchange.com/questions/123290/disable-touchscreen-area-root-available)
I'm having problem with lots of ghost touches in the very top 5 mm bar of the screen where touches will register almost 20 times in a minute. Doing the overscan doesnt help at all, because touches will still register, so I am looking to resize my screen with:
```
adb shell wm size 1080*1820
```
I dont know what to do from here because I'm receiving error:
```
Error: bad size 1080*1820
```
Help will be greatly appreciated.<issue_comment>username_1: You can use the `overscan` subcommand instead of `size` for achieving your objective.
The syntax is `adb shell wm overscan left,top,right,bottom`, where **left**, **top**, **right** and **bottom** are the coordinates relative to the actual edges of the screen.
So, in your case, you should write `adb shell wm overscan 0,100,0,0`, to get a resolution of 1080×1820, as you have mentioned above.
**Explanation:** This will set your device's screen bounds to 0px from the left, 100 px from the top, 0 px from the right and 0 px from the bottom. See this image:
[](https://i.stack.imgur.com/UTm8Q.jpg)
Upvotes: 2 <issue_comment>username_2: You are getting the error `Error: bad size 1080*1820` because it should be `x` and not `*` which is also mentioned when typing `adb shell wm`:
```
size [reset|WxH|WdpxHdp] [-d DISPLAY_ID]
Return or override display size.
width and height in pixels unless suffixed with 'dp'.
```
So, the correct command is `adb shell wm size 1080x1820` which won't result in any error. You can find out more using `adb shell wm` which returns:
```
Window manager (window) commands:
help
Print this help text.
size [reset|WxH|WdpxHdp] [-d DISPLAY_ID]
Return or override display size.
width and height in pixels unless suffixed with 'dp'.
density [reset|DENSITY] [-d DISPLAY_ID]
Return or override display density.
folded-area [reset|LEFT,TOP,RIGHT,BOTTOM]
Return or override folded area.
overscan [reset|LEFT,TOP,RIGHT,BOTTOM] [-d DISPLAY ID]
Set overscan area for display.
scaling [off|auto] [-d DISPLAY_ID]
Set display scaling mode.
dismiss-keyguard
Dismiss the keyguard, prompting user for auth if necessary.
set-user-rotation [free|lock] [-d DISPLAY_ID] [rotation]
Set user rotation mode and user rotation.
set-fix-to-user-rotation [-d DISPLAY_ID] [enabled|disabled]
Enable or disable rotating display for app requested orientation.
tracing (start | stop)
Start or stop window tracing.
```
You will most likely have to combine this with the [other answer mentioned here about `overscan`](https://android.stackexchange.com/a/210448/221364) to find a fix for your use case.
Upvotes: 1 |
2019/04/16 | 950 | 3,900 | <issue_start>username_0: I am exchanging my old Android L phone for a new one. I have formatted the whole phone including bootloader and flashed its stock ROM using SP Flash Tool twice. I hope my data has been overwritten.
Are there any chances that my data may still be recovered?<issue_comment>username_1: It can be recovered using complex sector scanning, however if you used Encryption, your Data partition may still have information on it, but it will still be encrypted.
The main source for recovering Data other than using Root Access to do a full sector scan of the Data / Cache Partitions, is to undelete data on the External SD Card..
You can do a sector scan of your storage without Root Access also, depending on your Android Version.
You should Overwrite the Data partition, not Delete the data and then Flash it again...
Deleting the Data Partition and the Flashing it again, doesn't actually Overwrite the old user data... Formatting it is not Overwriting it Either...
You need to do a Full format of every sector to Overwrite it...
Try writing over the internal storage with another file, repeatedly copy and paste a file until your device can not fit anything else ... Then format it ...
Upvotes: 1 [selected_answer]<issue_comment>username_2: >
> I have formatted the whole phone including bootloader
>
>
>
Bootloader can't be overwritten, your device will be bricked. I think you meant `boot` partition which contains kernel. But that doesn't contain personal data you've been saving. That's saved on `userdata` partition which is mounted at `/data` and one of its directory `/data/media/0` is exposed as `/sdcard` through emulation. So the major concern is to securely erase `/data` partition.
>
> Are there any chances that my data may still be recovered?
>
>
>
* Please note that on most newer device `/data` partition is encrypted by default ([`FBE`/`FDE`](https://source.android.com/security/encryption/) enforced using `forceencrypt` or `contents_encryption_mode` flags in `fstab`). In this case your actual data is saved to `/dev/block/dm-0` which is a logical volume mapped by device-mapper's `crypt` target over `userdata` partition. It means that data available on `userdata` block device is encrypted and not identifiable.
* Secondly Android issues a scheduled/continuous `TRIM` command to flash storage (eMMC), which makes sure the deleted data is physically Erased from cells (which is a requirement before re-writing it; this is where Flash Media differs from HDDs).
* Thirdly when you do a Factory Reset with stock recovery, `BLKDISCARD` or `BLKSECDISCARD` is issued before creating filesystem (formatting), which again makes sure the whole block device (`userdata`) is Erased. It means that all the Logical Block Addresses (LBAs) which belong to this partition will now return zeros if read.
If all of the three conditions meet on your device, be ensured that your data won't be recoverable.
***Note that:***
* Overwriting data may not necessarily overwrite it, particularly on `F2FS`, which always writes data to new blocks as a part of it's wear-leveling strategy.
* Simply formatting (creating filesystem) neither erases data nor overwrites it. It just recreates data structures (e.g. superblocks, file tables, directories, inode/block bitmaps, journals etc.). Formatting should be accompanied by `TRIM` or `BLKDISCARD`.
* There is still a possibility that data is not Erased from physical cells (PBAs) even after issuing `TRIM` or `BLKDISCARD`, and it can possibly be recovered e.g. with chip-off forensics. There are a number of factors involved, including `Over-Provisioning` space, `Wear-Leveling` and `Garbage Collection` capabilities of the `eMMC` on your device.
For more details: [How to make a complete factory reset, without anyone being able to retrieve my data?](https://android.stackexchange.com/a/214496/218526)
Upvotes: 1 |
2019/04/16 | 308 | 1,284 | <issue_start>username_0: Say I have backed up WhatsApp to Google Drive on some date X, then I uninstall it or format the device. On a later date Y, I reinstall WhatsApp and restore the Google Drive backup. Would the messages sent between dates X and Y be included in said backup?<issue_comment>username_1: How could somebody restore something that he doesn't even have?
your Gdrive backup will restore the messages till date X.
If your WhatsApp was active between date X and Y then you would have already received the messages in your WhatsApp(whom you didn't back up on the Gdrive).
So on date Y if you reset your phone and restore the backup from date X then you will have messages up to date X only. and if you didn't use the WhatsApp by date X & Y and you just installed it again now then all the undelivered message between X & Y will be delivered right now.
Upvotes: 2 <issue_comment>username_2: Yes, the messages between date X and date Y are indeed preserved.
I have attempted this now, and it has successfully worked.
Do note that I was using the same phone and number, hence I do not know the success rate of this under a different situation.
Also, the old backup as it was does **not** contain the new data until and unless you update it from the settings.
Upvotes: 0 |
2019/04/16 | 901 | 3,388 | <issue_start>username_0: I was about to install the Outlook app on my phone, when it asked me to activate it as a device admin. (See image below):
[](https://i.stack.imgur.com/cs3dn.png)
I'm sure few people read the whole warning. One part greatly concerned me:
>
> **Monitor screen unlock attempts**
>
> Monitor the number of incorrect passwords typed. when unlocking the screen, and lock the phone or ease all the phone's data if too many incorrect passwords are typed.
>
>
>
---
Well shoot, if there's risk of ***all data being erased***, I'm not really not that interested anymore! I often accidentally swipe patterns while I'm holding my phone in my hand. Plus a friend or young family member may be fooling around with my phone, unknowingly creating me a very long restoration process and lost data I can never get back.
What I'm wondering:
1. Is this just a generic warning given for any app requesting admin privileges? Perhaps it's possible that Outlook doesn't use the erase feature?
2. Is there a way to verify *how many* incorrect login attempts will trip the erasure?
3. Can I override the ability for it to erase my phone? (I'm guessing not.)<issue_comment>username_1: >
> Is this just a generic warning given for any app requesting admin privileges? Perhaps it's possible that Outlook doesn't use the erase feature?
>
>
>
Only the operations which the app can perform are shown to the user. If the device admin screen shows an operation like "Monitor Screen Lock Attempts", then rest assured, the corresponding app does have that feature.
I am sharing an image from an app named Tasker which employs only one device admin operation and is asking only for it. This should be sufficient that the device admin screen doesn't show generic operations but only app-specific ones. This can further be tested against the list of maximum operations that can be shown from [here](https://developer.android.com/guide/topics/admin/device-admin#policies).
[](https://i.stack.imgur.com/bn5T1.jpg)
>
> Is there a way to verify how many incorrect login attempts will trip the erasure?
>
>
>
Developers might be able to see it by analyzing the code from the APK using special tools. You could test this using trial and error on your own by using [android-x86](/questions/tagged/android-x86 "show questions tagged 'android-x86'") and running your app on it. Try incorrect passwords and count for yourself. I'm not aware of an easy way.
>
> Can I override the ability for it to erase my phone?
>
>
>
I do not know as of now. An Xposed module like [Bypass Exchange Policies](https://forum.xda-developers.com/xposed/modules/mod-bypass-exchange-policies-outlook-t3408049) might be able to do this.
Upvotes: 1 <issue_comment>username_2: <https://www.microsoft.com/en-us/microsoft-365/blog/2015/02/17/pin-lock-updates-outlook-ios-android/>
"this is an app-level wipe, not a device wipe. The Outlook app will reset and Outlook email, calendar, contacts and files data will be removed from the device, as well as from Outlook’s cloud components. The wipe will not affect any of the user’s personal apps and information."
Phew! wish they said that in the install process TBH.
Upvotes: 0 |
2019/04/17 | 251 | 1,006 | <issue_start>username_0: Have a Samsung J3 2017 (SM327). About a week ago, noticed that incoming & outgoing calls going to/from someone in my Contacts only shows the number, not the Contact name, so I often have no idea who's calling me. But when I hang up and look in the Recent call log, the Contact name shows up correctly there. I have tried every permission, every setting possible. Spent an hour with an ATT tech - nothing. Did a factory restore - nothing. Took it to a Samsumg authorized serviced center and had it completely reflashed. Fixed the prob for 2 days, then reappeared. Any info?<issue_comment>username_1: Ideas:
* get a new phone :-P
* another app is handling the calls and lacks permission, could be yours or a virus. maybe try uninstalling/deactivating all apps until you find it. or start from scratch with the factory reset, add apps and check
Upvotes: 0 <issue_comment>username_2: Found out source of problem. It was ATT Call Protect app. Disabled app and issue solved.
Upvotes: 2 |
2019/04/20 | 381 | 1,501 | <issue_start>username_0: I want to delete free apps from my Play Store library. I don't want to remove paid apps because I obviously paid for them so that means that they are useful to me in some way or another. However, I have accumulated a list of around 500 apps, of which 90% aren't used anymore.
The problem is, I can't remember which apps I paid for and which not. When I click on each app, I sometimes don't see that I purchased them, just the standard "Install" button.
Is there a way to filter out paid apps from my library?<issue_comment>username_1: I suggest you use both a PC and your mobile for this solution.
Using your PC, visit [your Play Store's order history](https://play.google.com/store/account/orderhistory?purchaseFilter=apps). It would list only those apps you have bought so far. Now, in your Play Store app, go to Account (rightwards swipe from the left edge) → Library.
Compare the two lists. The ones which would not match would be the free ones.
This is not user-friendly but should get the job done nonetheless.
Upvotes: 3 [selected_answer]<issue_comment>username_2: I don't understand why you need this. Google Play will register what's in your library, so if you paid for it (or got it at a limited "sale" for free), you'll be able to install it later when you need it.
Just make sure you don't delete any paid app from a 3rd-party store (although 3rd-party stores tend to have a similar feature), or delete anything you don't need from Google Play.
Upvotes: 1 |
2019/04/20 | 295 | 1,300 | <issue_start>username_0: After an Android 9.0 Pie update on my Samsung Galaxy Note 8, I have noticed that Whatsapp Messenger notifications come up similar to how Facebook Messenger notifications are delivered - with a chat head. This is a circle with the messenger's profile picture showing, and clicking on it opens a small window with the message shown.
I preferred when this chat head was never there, and I got to see a preview of the message for a few seconds just below the top of the screen when a message arrives.
I have tried turning off pop-up notifications on WhatsApp, but this seems to be something different entirely, as the chat heads continue to come up.
Is it possible to turn this feature off?<issue_comment>username_1: WhatsApp does not naively support chat heads. So, this is being done by using a third party app. Probably you installed one, or in a rare case your phone manufacturer baked such a thing into the phone UI.
Please look into your device settings and also go through your installed apps if you notice something.
Upvotes: 2 <issue_comment>username_2: Follow this path to enable or disable the mentioned "chat heads":
Settings > Advanced features > Smart pop-up view
Then, toggle whatever applications you'd like to show "chat heads".
Upvotes: 4 [selected_answer] |
2019/04/21 | 421 | 1,633 | <issue_start>username_0: I have an "Essential" android phone that is rooted, has terminal and supersu installed, but will not acknowledge that it is plugged into a computer rather than an AC charging station. `lsusb` on the host computer does not find it.
Under settings, "USB Debugging" is on. This doesn't seem to be helping.
The shell is present and operable with the terminal on the phone itself. `curl` is present. `ssh` and `sshd` are not. I have wireless. How can I get all my files off the phone? Some files are too large to email to myself.
What I feel like I want to do is run `tar -cf - . | ssh mydesktopmachine \> android.tar` but there's no `ssh` right now.<issue_comment>username_1: Have you tried the following:
1. Turning USB debugging off and then on?
2. Changing wires? (sometimes the wire is a bit faulty)
3. You can install ES file explorer and then use the FTP, it will be transfer over local WiFi, it is pretty fast.
Upvotes: 0 <issue_comment>username_2: So I did manage to get it working with SSHDroid. The real problem was not what I thought it was at all.
I unplugged my wireless booster (Buffalo) and it started working. For some reason the booster blocks IP between the machines on the WiFi and the machines on the wired LAN even though they can find each other with ARP. I'm really glad I didn't start leaving a bunch of "does not work" product reviews.
(In case anybody's wondering why USB Debugging was getting nowhere, the data pins had come unsoldered; when the power pins finally started to go I knew what that problem was and took it into the shop to be repaired.)
Upvotes: 2 [selected_answer] |
2019/04/24 | 561 | 2,379 | <issue_start>username_0: I'm running Google Pixel 2 with latest updates. You can change the navigation voice language in Google Maps via:
hamburger icon (3 horizontal bars) --> Settings --> Navigation Settings --> Voice selection --> choose any language
I have my Google maps voice set to French. However, it no longer speaks street names! I am using Google maps to navigate using voice only, with*out* a screen, while riding my electric skateboard. So, I really need it to speak the street names while I'm riding, but I want the voice to be in French. Any way to do this?<issue_comment>username_1: The best answer would be for GOOGLE TO PLEASE FIX IT so we can have an option to turn street name speaking on or off regardless of the chosen system language and the chosen Google Maps spoken language (they should be functionally separate).
However, this is the only current work-around I have been able to discover:
the solution is simply to change your entire phone language to the foreign language you want spoken, as apparently the street names can *only* be spoken in the phone's default language. This is dumb.
**Anyway: main phone settings --> System --> Languages & input --> Languages --> Add a language --> choose the one you want (ex: French) --> tap and hold the hamburger icon (3 horizontal bars) next to this new language and drag it up to re-order this language to be on the very top (it is now your default system language).**
That's it! Now, back in your Google Maps navigation settings you'll see that the default language (French) is now chosen, and under it it says what it used to say for the English default language: "Prononce les noms de rues" (Speak street names). **It now speaks street names in French, just like it used to do for English.** *However, the down-side is that my entire phone is now in French instead of just the audio for my Google Maps, like I wanted. **Google, please fix this!***
Upvotes: 4 [selected_answer]<issue_comment>username_2: There's no reason why the above "solution" needs to be so complicated. Open Google maps. Cluck settings. Click navigation. Click language. Click default.
That's it.
Upvotes: -1 <issue_comment>username_3: Actually, you only need to change the app language, not the phone language.
open Maps, open the profile menu, go to settings and select app language.
Please Google, fix this.
Upvotes: 0 |
2019/04/25 | 146 | 589 | <issue_start>username_0: I would like to find out the price of an app that I have already purchased, so that I can suggest it to a friend. When I look at the app listing, it doesn't give the price if I already have it.<issue_comment>username_1: You can search it on the website of Google Play Store
Upvotes: 2 <issue_comment>username_2: In the play store app swipe form the left then go to Account and tap on ORDER History.
Upvotes: 1 <issue_comment>username_3: As user acejavelin stated either incognito or logout of google account. Which is what I suspected.
Upvotes: 1 [selected_answer] |
2019/04/27 | 218 | 845 | <issue_start>username_0: I know how to turn off google assistant. But many times when I make some move at the bottom of phone screen it show me the dialog to turn on Google Assistant. I do not want to turn in Google assistant. Never ever. I do not want to see that screen asking me if I want to turn on Google assistant on my phone. Is there a way how to stop that?
[](https://i.stack.imgur.com/Z8kWk.jpg)<issue_comment>username_1: You can search it on the website of Google Play Store
Upvotes: 2 <issue_comment>username_2: In the play store app swipe form the left then go to Account and tap on ORDER History.
Upvotes: 1 <issue_comment>username_3: As user acejavelin stated either incognito or logout of google account. Which is what I suspected.
Upvotes: 1 [selected_answer] |
2019/04/28 | 378 | 1,436 | <issue_start>username_0: I have a phone (HUAWEI Y6 2018) that recently received a text message claiming to be from a postal company (AusPost). However, the subject for the message simply says '(No subject)', and when I try to open the message, it just won't open. With this in mind, I tried to delete the text, only to see it not delete and stay on the page. I've tried a few things to delete this text, such as:
* Clearing both data and the cache for the messaging app
* Trying to locate the folder where the messages are stored (I can't seem to find it)
* Downloading apps such as [Handcent](https://play.google.com/store/apps/details?id=com.handcent.app.nextsms) and [Backup & Restore](https://play.google.com/store/apps/details?id=com.riteshsahu.SMSBackupRestore) to use their delete SMS features
* Installing the latest system update and trying again
* Adding a contact called "AusPost" and deleting the message
All to no prevail... the SMS just seems to be stuck in the inbox.
So what do I do now? I don't want to root my phone and I want this message gone.<issue_comment>username_1: You can search it on the website of Google Play Store
Upvotes: 2 <issue_comment>username_2: In the play store app swipe form the left then go to Account and tap on ORDER History.
Upvotes: 1 <issue_comment>username_3: As user acejavelin stated either incognito or logout of google account. Which is what I suspected.
Upvotes: 1 [selected_answer] |
2019/05/01 | 655 | 2,315 | <issue_start>username_0: Why do I have two Termux applications, and what's the difference? This happened recently, after updating Termux I believe. I've installed Termux from F-Droid, and it mentions (failsafe) in the application name there. Cannnot see that in the Play Store.<issue_comment>username_1: Termux (failsafe) is shown on the app drawer since the last update. When you update Termux to the latest version, it is also shown.
From this comment from [what is Termux (failsafe)?](https://github.com/termux/termux-app/issues/1101):
>
> We have made sessions auto-closeable, see #988 for more information.
>
>
> Auto-closeable sessions may put application into "denial-of-service" condition if user will mess with files like .bashrc - in such case access to files on internal storage will be completely lost. Thus we had to create a separate icon.
>
>
> It's very unlikely that we will remove it. Easy access to failsafe shell is mandatory but unfortunately there no other reliable variants that will work on all Android versions.
>
>
>
Also based in [this comment](https://github.com/termux/termux-app/issues/277#issuecomment-286309177) in Termux github:
>
> This creates a limited shell using only the Android system tools.
>
>
>
If for whatever reason Termux is unable to start, then use Termux failsafe.
Upvotes: 3 [selected_answer]<issue_comment>username_2: It's just like recovery mode feature for your termux environment
see : [Termux Wiki](https://wiki.termux.com/wiki/Recover_a_broken_environment)
Upvotes: 0 <issue_comment>username_3: **Scinerio**
---
* A noob dude just decided to change his default termux shell to fish instead of bash
* easiest solution he came up with is to add these lines to .bashrc[../usr/etc/bash.bashrc]
```
fish
exit
```
* it worked ...
* for some reason he don't like fish, he uninstalled/removed it
* and closed termux [wihout changing the contents of .bashrc]
* next time he opened termux, he see this,
```
The program fish is not installed. Install it by executing:
pkg install fish
[Process completed (code 127) - press Enter]
```
---
Now, to fix this,
He either need to edit **.bashrc** or **install fish** again
---
For this, we need a shell that doesn't run **.bashrc**
---
Failsafe mode is the easiest helpful thing now
Upvotes: 0 |
2019/05/01 | 1,428 | 4,791 | <issue_start>username_0: I've got a brand new Motorola Moto G7 Power running Android 9. I also have Ubuntu 19.04 running on my desktop. I want to root the phone.
I've managed to unlock the bootloader using Motorola's online instructions and the adb and fastboot utilities that come with Linux. The next step is to flash a custom recovery application on the recovery partition.
I'm trying to flash `twrp-3.3.0-0-river.img`, a new image that I grabbed from [here.](https://forum.xda-developers.com/moto-g7/development/twrp-moto-g7-river-t3921365) When I tried to use fastboot to flash the image, I got this error:
```
steven@steven-OptiPlex-7020:-/Desktop$ fastboot flash recovery twrp-3.3.0-0-river.img
target reported max download size of 536870912 bytes
sending 'recovery' (27584 KB)...
OKAY [ 0.741s]
writing 'recovery'..
(bootloader) Invalid partition name recovery
FAILED (remote failure)
finished. total time: 0.742s
steven@steven-OptiPlex-7020:~/Desktop$
```
[Screenshot of the terminal output](https://i.stack.imgur.com/XyuwA.png)
After this failed attempt, I attempted to put my phone into recovery just to see what would happen. What I got was a screen displaying the Android mascot on its back with its chest plate opened and a black exclamation point inside a red triangle. The words "No Command" were displayed underneath the graphic. After waiting a few minutes, the phone, on its own, booted normally. My phone's OS seems to operate perfectly fine.
I can only surmise that whatever was originally on my recovery partition from the manufacturer has been wiped and there is now nothing on the recovery partition at all. So, I decided to see if I could boot into the TWRP image directly without flashing it. So, I ran this in the terminal window: `fastboot boot twrp-3.3.0-0-river.img`. I received this as a response:
```
steven@steven-OptiPlex-7020:-/Desktop$ fastboot boot twrp-3.3.0-0-river.img
downloading 'boot.img'...
OKAY [ 0.728s]
booting...
OKAY [ 0.893s]
finished. total time: 1.621s
steven@steven-OptiPlex-7020:~/Desktop$
```
[Screenshot of the terminal output](https://i.stack.imgur.com/BbP5O.png)
There didn't seem to be any errors. The phone, however, switched from the bootloader screen to the Motorola splash screen, and then just shut off with no further response.
So, what am I missing? How can I flash this image onto the recovery partition of my phone?<issue_comment>username_1: G7 Power, being a new device, has the new A/B partition layout, requiring new installation procedures that differ from standard A-only devices. This is clearly outlined in the thread where you got your image from:
>
> This device has 2 "slots" for ROMs / firmware. TWRP will detect whichever slot is currently active and use that slot for backup AND restore. There are buttons on the reboot page and under backup -> options to change slots. Changing the active slot will cause TWRP to switch which slot that TWRP is backing up or restoring. You can make a backup of slot A, switch to B, then restore the backup which will restore the backup of A to slot B. Changing the slot in TWRP also tells the bootloader to boot that slot.
>
>
> Decryption only works when TWRP is permanently installed.
>
>
> Installation
>
>
> To temporarily boot this recovery:
>
>
> `fastboot boot twrp-version-build-river.img`
>
>
> To permanently install it:
>
>
> * Temporarily boot TWRP
> * Put the TWRP image in your external SD Card or, in case you don't have one, push it to /data with adb this way: `adb push twrp-version-build-river.img /data/`
> * Tap Advanced -> Install Recovery Ramdisk -> Navigate to /data or /external\_sd and select TWRP -> Swipe to Install
> * If you previously installed Magisk: Select Fix Recovery Bootloop from Advanced to fix/avoid recovery bootloops
> * Done! Optionally you can delete TWRP from /data or from your external SD Card now.
>
>
>
Read more carefully next time...
Upvotes: 2 <issue_comment>username_2: The twrp.img you trying to boot from is for Moto G7 (river). It is the wrong recovery, thats why it fails.
What you want is TWRP for your device Moto G7 Power (ocean).
<https://twrp.me/motorola/motorolamotog7power.html>
Note: You can root your phone with Magisk without the need of TWRP, as written [here](https://forum.xda-developers.com/showthread.php?t=3923857).
For devices without TWRP one can port TWRP from similar device, the steps are these:
* unpack your boot.img
* find recovery inside ramdisk
* unpack recovery
* unpack twrp recovery
* replace kernel, fstab and \*init.rc
* repack ported recovery
* try if it is fine from `fastboot boot recovery.img`
* replace recovery inside ramdisk
* repack boot.img
* try if it is fine from `fastboot boot boot.img`
* flash boot.img from fastboot (A/B)
Upvotes: 2 |
2019/05/02 | 286 | 1,078 | <issue_start>username_0: I'm trying to restore a backup file onto a fire stick 2 using `adb restore backup.ab`, however the restore confirmation doesn't come up on the fire stick. The device is rooted and currently have twrp. Is there a way to force restore without a confirmation?
Thanks<issue_comment>username_1: Rather than trying to find an old version of adb, it's easier to add quotes to the arguments to adb backup :
>
> adb backup "-apk -shared -all -f C:\Users\NAME\backup.ab"
>
>
>
Upvotes: -1 <issue_comment>username_2: If the device is rooted you can manually restore the backup.
1. On a PC extract the backup file using [Android Backup extractor](https://github.com/nelenkov/android-backup-extractor).
This will convert the backup to a TAR archive.
2. (optional) extract the APK files (if the backup contains not only app data) and install them via adb.
3. Upload the TAR archive to your device via `adb push` and untar it.
4. Copy the files you want to recover into the right directories using `adb shell` and root permissions.
Upvotes: 1 [selected_answer] |
2019/05/02 | 353 | 1,347 | <issue_start>username_0: I'm searching for an app or settings that will allow only 2 applications to be used on an android tablet.
They would use android and a web dashboard on chrome, on chrome they would get a certain link automatically loaded and I would try to make it impossible to go to other pages.
I want to only allow those two apps to be used.
I've looked in to kiosk mode ( but thats single app usage)
I've tried COSU but that also not a solution.
And parental control apps, but they show advertisement which I can't allow on the work floor.<issue_comment>username_1: Rather than trying to find an old version of adb, it's easier to add quotes to the arguments to adb backup :
>
> adb backup "-apk -shared -all -f C:\Users\NAME\backup.ab"
>
>
>
Upvotes: -1 <issue_comment>username_2: If the device is rooted you can manually restore the backup.
1. On a PC extract the backup file using [Android Backup extractor](https://github.com/nelenkov/android-backup-extractor).
This will convert the backup to a TAR archive.
2. (optional) extract the APK files (if the backup contains not only app data) and install them via adb.
3. Upload the TAR archive to your device via `adb push` and untar it.
4. Copy the files you want to recover into the right directories using `adb shell` and root permissions.
Upvotes: 1 [selected_answer] |
2019/05/02 | 602 | 2,283 | <issue_start>username_0: I have had a Motorola Moto e4 for almost 2 years with relatively no problems. A few days ago, my phone's touch screen stops working in certain frequently pressed places on the screen. This proves to be mildly annoying, but manageable as I would just flip the phone to landscape to get past this (especially when typing). Unfortunately, my phone has finally died and after I charged it, it now asks for my password so I can log in. The thing is, I can't press one of the onscreen keyboard keys to enter my password completely, and thus cannot unlock my phone. I cannot use my fingerprint because every time my phone reboots it asks for the password. I know if I can get my landscape mode I can enter in the correct password but all my attempts (notification bar, lock screen camera) have all failed. Any help? :)<issue_comment>username_1: Your device [seems](https://www.gsmarena.com/motorola_moto_e4-8721.php) to support USB OTG functionality. Given that, you can buy an OTG cable and use a mouse (any mouse would work) to control the device, just like you control a computer using a mouse.
Once you unlock the device, attempt to root it, then install [Xposed Framework for Nougat](https://forum.xda-developers.com/showthread.php?t=3034811), followed by installation of [GravityBox [N]](https://repo.xposed.info/module/com.ceco.nougat.gravitybox) Xposed module.
In GravityBox module, there is a setting named *Enable lockscreen rotation* under *Lockscreen tweaks*. Enable it and restart the device. The rotation control should work on lockscreen now.
[](https://i.stack.imgur.com/KQyYG.jpg)
[](https://i.stack.imgur.com/BKbPe.jpg)
**Note**: If the device is encrypted, and you reboot the device, the rotation tweak would not work because the apps are not loaded by that time. You would have to use your fingers or the mouse in portrait mode to unlock the device.
Upvotes: 2 <issue_comment>username_2: If you find a flash tool which allows partial flashing without data loss, you can add these lines in build.prop and flash modified system partition
```
log.tag.launcher_force_rotate=VERBOSE
lockscreen.rot_override=true
```
Upvotes: 1 |
2019/05/03 | 535 | 1,909 | <issue_start>username_0: I don't use Gmail for my e-mail. However, I want to use the Gmail app for my work e-mail. So, how do I keep only my work e-mail in the Gmail app, removing the Gmail account from it completely?
I still want to have Play Store and Google Fi to be associated with my account. To my understanding, when I try to remove my Gmail account from the Gmail app, it suggests completely removing my Google account from the phone.
I'm on Android 9.<issue_comment>username_1: Your device [seems](https://www.gsmarena.com/motorola_moto_e4-8721.php) to support USB OTG functionality. Given that, you can buy an OTG cable and use a mouse (any mouse would work) to control the device, just like you control a computer using a mouse.
Once you unlock the device, attempt to root it, then install [Xposed Framework for Nougat](https://forum.xda-developers.com/showthread.php?t=3034811), followed by installation of [GravityBox [N]](https://repo.xposed.info/module/com.ceco.nougat.gravitybox) Xposed module.
In GravityBox module, there is a setting named *Enable lockscreen rotation* under *Lockscreen tweaks*. Enable it and restart the device. The rotation control should work on lockscreen now.
[](https://i.stack.imgur.com/KQyYG.jpg)
[](https://i.stack.imgur.com/BKbPe.jpg)
**Note**: If the device is encrypted, and you reboot the device, the rotation tweak would not work because the apps are not loaded by that time. You would have to use your fingers or the mouse in portrait mode to unlock the device.
Upvotes: 2 <issue_comment>username_2: If you find a flash tool which allows partial flashing without data loss, you can add these lines in build.prop and flash modified system partition
```
log.tag.launcher_force_rotate=VERBOSE
lockscreen.rot_override=true
```
Upvotes: 1 |
2019/05/07 | 708 | 2,648 | <issue_start>username_0: I don't want to set up Google photos to back up to the cloud for privacy reasons.
Recently I noticed that with the default Android camera app, and the default Google Photos app, the "Trash" is only used if you have the app set up to sync with your cloud service.
This means that any photo that's deleted from the camera roll—for example, by swiping from the camera to view the photos just taken, and then swiping down—is immediately unrecoverable. (There is an "undo" button briefly visible, and that's all.)
By contrast, in iOS (which my family members are more used to), any photo that you delete will go to the "Trash" where it will only be actually removed after 30 days, giving plenty of time to recover from any accidents or mistakes. (And in iOS, this feature doesn't require iCloud use at all.)
**How can I set up my Android devices to mimic this functionality, so that photos deleted from the camera roll, or from the photos app, are still preserved for an additional 30 days unless special action is taken?**
(I'm running a Nexus 7 with Android 6.0.1, but we have a couple other Android devices in the house that I would probably apply the answers to if I can.)<issue_comment>username_1: Your device [seems](https://www.gsmarena.com/motorola_moto_e4-8721.php) to support USB OTG functionality. Given that, you can buy an OTG cable and use a mouse (any mouse would work) to control the device, just like you control a computer using a mouse.
Once you unlock the device, attempt to root it, then install [Xposed Framework for Nougat](https://forum.xda-developers.com/showthread.php?t=3034811), followed by installation of [GravityBox [N]](https://repo.xposed.info/module/com.ceco.nougat.gravitybox) Xposed module.
In GravityBox module, there is a setting named *Enable lockscreen rotation* under *Lockscreen tweaks*. Enable it and restart the device. The rotation control should work on lockscreen now.
[](https://i.stack.imgur.com/KQyYG.jpg)
[](https://i.stack.imgur.com/BKbPe.jpg)
**Note**: If the device is encrypted, and you reboot the device, the rotation tweak would not work because the apps are not loaded by that time. You would have to use your fingers or the mouse in portrait mode to unlock the device.
Upvotes: 2 <issue_comment>username_2: If you find a flash tool which allows partial flashing without data loss, you can add these lines in build.prop and flash modified system partition
```
log.tag.launcher_force_rotate=VERBOSE
lockscreen.rot_override=true
```
Upvotes: 1 |
2019/05/08 | 307 | 1,054 | <issue_start>username_0: How do I determine if a Google Play app requires Google Play Services? Or does every app listed on Google Play require it?<issue_comment>username_1: If an app requires Google Play Services, then as soon as you open the app, you will be warned that you can't run the app unless you have Google Play Services or in better cases, that you will have limited functionality or that you may encounter unintended behaviour. Not all Google Play apps require Google Play Services.
Upvotes: 0 <issue_comment>username_2: You can use [Aurora Store](https://f-droid.org/packages/com.aurora.store/) for this. It is a libre app which *et al* list trackers in the app; whether it shows ad;a and whether the app uses Google Play Services as a dependency or not.
[](https://i.stack.imgur.com/oVUQY.jpg)
[](https://i.stack.imgur.com/r0AXQ.jpg)
[](https://i.stack.imgur.com/eoQRP.jpg)
Upvotes: 3 [selected_answer] |
2019/05/09 | 328 | 1,271 | <issue_start>username_0: Wechat takes up a huge amount of storage space on my phone (Moto G5 plus). Almost all of it is due to the Wechat cache (which has ballooned to 11gb) but neither the app nor my phone settings allow me to clear the Wechat cache. When I use File Manager to open the Tencent-Micromsg-xlog folders, I see that a lot of space is taken up by files like MM\_20190420.xlog or MM\_20190430.xlog. What are these? Can I delete them to free up space? Otherwise, how do I clear my wechat cache? Thanks!<issue_comment>username_1: I tried deleted the xlog folders, nothing happen, looked safe, but over time it will built up again, so I keep deleting them from time to time.
Upvotes: 0 <issue_comment>username_2: Select "Me" on bottom panel. Then Settings > General > Manage Storage. For the cache, I have a "Clear" button on the this screen and was able to clear the cache by pressing it.
On this screen, can also press "Manage" which brings up another screen where you can select conversations from which to remove all pics, videos, and attached files. Text msgs are kept. Don't know about audio msgs. After pressing orange "Delete" button *on my version* a warning window popped up telling you what's about to deleted and asking for confirmation.
Upvotes: 1 |
2019/05/10 | 252 | 1,005 | <issue_start>username_0: Recently, I reset my `OnePlus 3T` settings. So, after that, it says that my phone doesn't support `AR`. But it worked before and this phone in the list of supported devices.
Ar Core version - `1.9.190422056` - the newest.<issue_comment>username_1: I tried deleted the xlog folders, nothing happen, looked safe, but over time it will built up again, so I keep deleting them from time to time.
Upvotes: 0 <issue_comment>username_2: Select "Me" on bottom panel. Then Settings > General > Manage Storage. For the cache, I have a "Clear" button on the this screen and was able to clear the cache by pressing it.
On this screen, can also press "Manage" which brings up another screen where you can select conversations from which to remove all pics, videos, and attached files. Text msgs are kept. Don't know about audio msgs. After pressing orange "Delete" button *on my version* a warning window popped up telling you what's about to deleted and asking for confirmation.
Upvotes: 1 |
2019/05/11 | 564 | 1,921 | <issue_start>username_0: I try to flash LineageOS on a OnePlus 5 (cheeseburger). I installed TWRP 3.3.0-0 from [here](https://sourceforge.net/projects/cheeseburgerdumplings/files/16.0/cheeseburger/recovery/twrp-3.3.0-0-20190427-codeworkx-cheeseburger.img/download). I repeatedly wiped the partitions.
What I cannot manage is to `adb sideload` LineageOS [16.0](https://mirrorbits.lineageos.org/full/cheeseburger/20190509/lineage-16.0-20190509-nightly-cheeseburger-signed.zip). I get this message:
```
Starting ADB sideload feature...
Installing zip file '/sideload/package.zip'
Error: Vendor partition doesn't exist!
Updater process ended with ERROR: 7
```
I have read [here](https://www.reddit.com/r/LineageOS/comments/9vu4lj/oneplus_5t_failure_to_install_los_151/) that I should install the latest stock ROM (from [here](https://www.oneplus.com/support/softwareupgrade/details?code=5)), but that results in almost the same error message:
```
Starting ADB sideload feature...
Installing zip file '/sideload/package.zip'
vendor partition is not existed, exit ota!!
Updater process ended with ERROR: 7
```
How can I create/populate/fix that vendor partition?<issue_comment>username_1: I tried deleted the xlog folders, nothing happen, looked safe, but over time it will built up again, so I keep deleting them from time to time.
Upvotes: 0 <issue_comment>username_2: Select "Me" on bottom panel. Then Settings > General > Manage Storage. For the cache, I have a "Clear" button on the this screen and was able to clear the cache by pressing it.
On this screen, can also press "Manage" which brings up another screen where you can select conversations from which to remove all pics, videos, and attached files. Text msgs are kept. Don't know about audio msgs. After pressing orange "Delete" button *on my version* a warning window popped up telling you what's about to deleted and asking for confirmation.
Upvotes: 1 |
2019/05/12 | 498 | 2,118 | <issue_start>username_0: I'm trying to access the [following page](https://www.games-workshop.com/en-IE/Warhammer-40-000) using Chrome on my Galaxy S10+, but the website always returns the desktop page, even with the *Desktop site* check box unchecked.
Facebook's built-in browser seems to have no issue displaying the correct page.<issue_comment>username_1: 
probably you have turn on some dev feature on chrome. It is working fine on chrome...
Upvotes: 0 <issue_comment>username_2: I recently had a problem with gmail.com trying to get the desktop site to display (setting rules anđ labels requires the desktop site). Somehow, the act of typing gmail.com into the browser does not show the desktop site but following the link from google.com works. I know this is backwards from your problem, but the presence or absence of extra data in the link or cookie can cause this behavior on certain sites. You can try deleting cookies for this site and try différent links from other sources.
I'm a web developer too and there are libraries like bootstrap that can switch to a mobile format that depends solely on the width of the page. It completely ignores the desktop checkbox and uses CSS and js to reformat the page even on a desktop computer if the window is resized. In this case, there really is no 'mobile site'. Viewing with your phone in portrait mode should work but landscape may or may not.
Facebook's browser may be a different size window, or may not be standardized to detect screen size with bootstrap, You could also have a chrome plugin that is causing an issue.
If I had to guess, I'd say that you need to delete the cookies (which will delete some login info) and try again.
Just keep in minđ that not every site responds to the checkbox in chrome. That only works if there are separate pages for mobile and desktop which is not the way that bootstrap works.
BTW, I just saw your link and tried it. I can use the checkbox on chrome on my s10e and I can switch from mobile to `desktop without issue.
Upvotes: 2 [selected_answer] |
2019/05/12 | 821 | 3,116 | <issue_start>username_0: In Android 6, you could change the disk encryption key using the `vdc` command with
```
vdc cryptfs changepw NEWPW
```
In Android 9, you get a message, that raw commands are no longer supported.
During rooting and installing Lineage OS 16 and installing different stuff, I got different PIN and encryption keys. This means, that when I change the lockscreen PIN, the encryption key is no longer changed.
In principle, this is what I wanted to achieve, but the problem is that I currently do not know how to change the encryption key at all. I would like to have a rather short lockscreen pin and a longer encryption key, that I can change from time to time. On Android 6 this was no problem on the shell and with different Apps, but the Apps seem to depend on the vdc command as well.
I already tried to change the lockscreen PIN back to the current encryption password in the hope, that the next change of the PIN then would change the encryption as well, because I thought maybe the encryption was not changed because the new API needs a correct old password before changing the key to the new password. But this did not work as well.
Is there any App, command line tool or function in Lineage OS 16, that can change the encryption key?<issue_comment>username_1: I was able to set an encryption password again, be removing the lockscreen by removing some files related to the lockscreen and then setting a new passphrase. To use a different lockscreen password then, you need to restore the original files.
Source on XDA: <https://forum.xda-developers.com/showpost.php?p=78699812&postcount=58>
>
> As a workaround on Android Pie, you can do the following (on your own
> risk):
>
>
> 1. set the desired password for the screen lock
> 2. backup lockscreen files:
> 1. all files under /data/system\_de/0/spblob/
> 2. files containing "\_synthetic\_password\_" in /data/misc/keystore/user\_0/
> 3. /data/system/locksettings.db
> 3. set the desired password for the device encryption
> 4. restore / replace all lockscreen files
>
>
> If something went wrong, sqlite into /data/system/locksettings.db and
> set the values of sp-handle and lockscreen.password\_type to 0 to reset
> the screen lock.
>
>
>
Afterwards I enabled the lockscreen using the settings app and used the current boot password as password. When changing the lockscreen, the boot password was changed as well.
To have separate lockscreen and boot passwords again, you can either restore the previous files, or remove the new ones and set a fresh lockscreen password, that does not overwrite the encryption key.
Upvotes: 2 [selected_answer]<issue_comment>username_2: I don't think is documented anywhere the syntax but looking at this code
<https://review.lineageos.org/c/LineageOS/android_system_vold/+/258179>
I was able to set a different password.
Initially I used a PIN for unlocking, so the command to run on a terminal on lineageos 17.1 as root is:
```
vdc cryptfs changepw TYPEOFNEWPASSWORD OLDPASSWORD NEWPASSWORD
```
Where type of password can be:
* password
* pin
* pattern
Upvotes: 2 |
2019/05/13 | 577 | 2,206 | <issue_start>username_0: Something keeps lowering my alarm volume. I keep it at about 70% because I can be a heavy sleeper at times, but I keep finding that it's been lowered to about 40%. This has been going on daily for months. (One time it turned itself to silent and I slept through my first class)
Any ideas as to what's causing this or how to fix it?
EDIT: I've realized that it would probably be useful to talk about some of my settings.
I have Do Not Disturb scheduled for "Priority Only" from 10pm to first alarm daily.
I keep my ringer on mute or the first/second setting.<issue_comment>username_1: So, I've had this problem for a while as well. What I came to realize was that my sleepy-brain would hit the volume rocker to adjust the volume of the alarm while it was going off. Usually, this was to adjust the volume of my music to a more bearable level to wake up to once my phone was in-hand. But this also had the side-effect of adjusting my alarm volume to a point where next time it goes off, it's way too quiet.
I fixed this problem by downloading an app called [MacroDroid.](https://play.google.com/store/apps/details?id=com.arlosoft.macrodroid&hl=en_US) I set up a macro that executes each night at 10 pm. The macro starts by setting the alarm volume to 80%, pops a notification up that says "Don't forget to set your alarm!" And when the notification is clicked, it takes me to the Clock app to set my alarm.
It's a bit of a workaround since it uses a third-party app, but it's been a huge quality-of-life adjustment for me so I figured I'd share.
Upvotes: 2 <issue_comment>username_2: This happens to me regularly on my Motorola Moto G6 Play.
I've been testing the alarm app today by snoozing two alarms many times and I'm not touching the volume buttons while an alarm displays.
After snoozing the alarm, I increase the alarm volume and the next time one of the alarms appears there is no sound and the alarm volume has gone to zero yet again.
I seem to have solved it by: update native clock app,
turned batt saver OFF - next time alarm had sound,
then Turned batt saver ON - next time alarm had sound,
then turned DND ON - next time alarm STILL had sound, yippee!
Upvotes: 1 |
2019/05/14 | 2,055 | 6,797 | <issue_start>username_0: It turns out that WhatsApp Messenger is affected by an exploitable buffer overflow vulnerability, which can be used to take over the phone with "zero clicks", by placing a call using specially crafted packets:
*The Register*:
**[It's 2019 and a WhatsApp call can hack a phone](https://www.theregister.co.uk/2019/05/14/whatsapp_zero_day/)**: Zero-day exploit infects mobes with spyware
also
*The Verge*:
**[Update WhatsApp now to avoid spyware installation from a single missed call](https://www.theverge.com/2019/5/14/18622744/whatsapp-spyware-nso-pegasus-vulnerability)**: NSO Pegasus spyware can turn on a phone’s camera and mic and collect emails, messages, and location data
and, originally the *Financial Times* (sadly, paywalled):
**[WhatsApp voice calls used to inject Israeli spyware on phones](https://www.ft.com/content/4da1117e-756c-11e9-be7d-6d846537acab)**
Reading the article from *The Register*:
>
> A security flaw in WhatsApp can be, and has been, exploited to inject
> spyware into victims' smartphones: all a snoop needs to do is make a
> booby-trapped voice call to a target's number, and they're in. The
> victim doesn't need to do a thing other than leave their phone on.
>
>
> Engineers at Facebook scrambled over the weekend to patch the hole,
> designated CVE-2019-3568, and freshly secured versions of WhatsApp
> were pushed out to users on Monday. If your phone offers to update
> WhatsApp for you, do it, or check for new versions manually. The
> vulnerability is present in the Google Android, Apple iOS, and
> Microsoft Windows Phone builds of the app, which is used by 1.5
> billion people globally.
>
>
>
Ok, cool. I'm not in the target population of poor sods protesting their nasty governments or nasty sods protesting their governments by different means, but I want to upgrade anyway.
Facebook gives out [this mini-advisory](https://www.facebook.com/security/advisories/cve-2019-3568):
**CVE-2019-3568**
>
> Description: A buffer overflow vulnerability in WhatsApp VOIP stack
> allowed remote code execution via specially crafted series of SRTCP
> packets sent to a target phone number.
>
>
> Affected Versions: The issue affects WhatsApp for Android prior to
> v2.19.134, WhatsApp Business for Android prior to v2.19.44, WhatsApp
> for iOS prior to v2.19.51, WhatsApp Business for iOS prior to
> v2.19.51, WhatsApp for Windows Phone prior to v2.18.348, and WhatsApp
> for Tizen prior to v2.18.15.
>
>
> Last Updated: 2019-05-13
>
>
>
Note that CVE-2019-3568 is [not (yet) in the NIST database](https://nvd.nist.gov/vuln/detail/CVE-2019-3568): *CVE ID Not Found.*
Now, I'm a bit confused. I have checked the WhatsApp application version on my Samsung:
* Start WhatsApp
* Go to the menu with the triple dot (︙)
* Select "Settings" in the menu that appears
* Select "Help" in the menu that appears
* Select "App Info" in the menu that appears
* You will see something like "WhatsApp Messenger" Version 2.19.134
*(Why is this so complicated? Google should demand that applications deposit their version string in an easily perusable database, as sanity would command. Anyway...)*
So I have Version 2.19.134. According to the Facebook advisory, that should be *good*.
But when I check in the *Play Store*, I see "Last updated 10 May 2019", i.e. before the weekend. No version information is given here, somebody in the design office needs to be given the lash. And is there a change log somewhere?
Finally, when I go to <https://www.whatsapp.com/android/> I am told that I can "Download now" Version 2.19.137, which is three minor ticks up from the version I have.
So:
1. Should I just not worry because I'm at the safe version (about which I have now contradictory information).
2. Should I just wait until WhatsApp Messenger updates itself (which presumably will happen soon, or maybe can be explicitly triggered).
3. Should I install the version at <https://www.whatsapp.com/android/> instead of using the Play Store (I'm not even sure that would work).
**Update**
For added lulz, the "Update Notification" screen: It shows that Whatsapp Messenger has been updated "2 days ago" (i.e. somewhen around Monday), but doesn't give the new version number and coyly doesn't really say anything about any security problem.
[](https://i.stack.imgur.com/ZxrVn.jpg)<issue_comment>username_1: I recommend you go with the latest version available (2.19.137) from <https://www.whatsapp.com/android/>
That's where I usually upgrade from anyway. I tried it out a few hours ago, and it does works.
But I have no way of verifying it fixes the issue, as no release notes found.
Upvotes: 1 <issue_comment>username_2: In cases of proprietary software vulnerability coupled with a lack of proof-of-concept and detailed technical information about the exploitation you have to rely on the word of softwares' developers, follow their instructions, and *be content that you are safe*.
If your WhatsApp shows that you are on v2.19.134, than it must be that. I understand that there are discrepancies in the versions shown to users on Play Store and WhatsApp's website. On Play Store, it shows 2.19.134 as the last version to me as well, and that too updated on May 10, 2019. On APKMirror, there is [no stable](https://www.apkmirror.com/apk/whatsapp-inc/whatsapp/whatsapp-2-19-139-release/#downloads) 2.19.139 as of now, and Appbrain [agrees with you](https://www.appbrain.com/app/whatsapp-messenger/com.whatsapp) here with 2.19.134 as the last update on May 10 it tracked.
>
> Should I just not worry because I'm at the safe version (about which I have now contradictory information).
>
>
>
You do not have contradictory information. Your Play Store shows 2.19.134 and so as the app itself. It would have been contradictory if these two mismatched.
>
> Should I just wait until WhatsApp Messenger updates itself (which presumably will happen soon, or maybe can be explicitly triggered).
>
>
> Should I install the version at <https://www.whatsapp.com/android/> instead of using the Play Store (I'm not even sure that would work).
>
>
>
The [Facebook advisory](https://www.facebook.com/security/advisories/cve-2019-3568) clearly mentions that versions prior to 2.19.134 are affected. As long as you have 2.19.134 or above you are safe (according to Facebook). There is no need worrying about why the official website has some higher version available. You can always try installing that one. If the signature mismatches with the sideloaded version the app won't install, and you should put this matter to rest. If it matches you would have the latest app and that should definitely work.
Upvotes: 4 [selected_answer] |
2019/05/20 | 563 | 1,760 | <issue_start>username_0: When I press "Start" in Odin3 3.13, the log just says:
```
Added!
Odin engine v(ID:3.1.1301)
File analysis..
```
Then it is stuck forever, with the desktop computer's CPU constantly at 30% and 0% disk usage.
The same happens regardless of whether I start Odin [then](https://forum.xda-developers.com/showthread.php?t=755762) connect my device in "Downloading" mode, or whether I connect my device first and then start Odin.
**Question:** How to solved the problem, and successfully download the patched firmware?
My configuration is:
- AP: `magisk_patched.tar` produced by Magisk from the Samsung Galaxy S10e firmware `AP_G970FXXU1ASD5_CL15820661_QB23234096_REV01_user_low_ship_meta_OS9.tar.md5`
- Options: Disabled `Auto Reboot`, so that only `F. Reset Time` is left enabled.
[](https://i.stack.imgur.com/VUwd0.png)<issue_comment>username_1: I did 3 things, tried again, and it worked (I mean it got past `File analysis`). I am not sure which one of the 3 things did the trick, unfortunately. You might want to try them all.
* Run [SAMSUNG\_USB\_Driver\_for\_Mobile\_Phones.exe](https://download.highonandroid.com/file/Drivers/SAMSUNG_USB_Driver_for_Mobile_Phones.exe.html)
* Use a different USB port, for me COM7 instead of COM6.
* Get the ROM for my phone's region. It is binary equal to the file I tried yesterday, though, so I doubt it changed much.
Upvotes: 3 [selected_answer]<issue_comment>username_2: i found that you must use the correct version of odin. For example, if your md5 file made in year 2015, you need to use the same odin version of the year 2015 (odin v3.07)
Try this by myself and it works. May work for your phone too.
Upvotes: 1 |
2019/05/21 | 338 | 1,210 | <issue_start>username_0: My device is recently unrooted, so I decided to update the software of my Samsung Galaxy Tab 3V (SM-T116BU) but this error message (The operating system on your device is modified in an unauthorized way...) **always shows up** each time I tried to update the software even though I have unrooted my device. Is there a solution for this problem?<issue_comment>username_1: I did 3 things, tried again, and it worked (I mean it got past `File analysis`). I am not sure which one of the 3 things did the trick, unfortunately. You might want to try them all.
* Run [SAMSUNG\_USB\_Driver\_for\_Mobile\_Phones.exe](https://download.highonandroid.com/file/Drivers/SAMSUNG_USB_Driver_for_Mobile_Phones.exe.html)
* Use a different USB port, for me COM7 instead of COM6.
* Get the ROM for my phone's region. It is binary equal to the file I tried yesterday, though, so I doubt it changed much.
Upvotes: 3 [selected_answer]<issue_comment>username_2: i found that you must use the correct version of odin. For example, if your md5 file made in year 2015, you need to use the same odin version of the year 2015 (odin v3.07)
Try this by myself and it works. May work for your phone too.
Upvotes: 1 |
2019/05/21 | 296 | 1,018 | <issue_start>username_0: I have installed Hill Climb Racing 2. It asked for access to my gallery. For installation I permitted it. But now I want to disable it. How can I do it?<issue_comment>username_1: I did 3 things, tried again, and it worked (I mean it got past `File analysis`). I am not sure which one of the 3 things did the trick, unfortunately. You might want to try them all.
* Run [SAMSUNG\_USB\_Driver\_for\_Mobile\_Phones.exe](https://download.highonandroid.com/file/Drivers/SAMSUNG_USB_Driver_for_Mobile_Phones.exe.html)
* Use a different USB port, for me COM7 instead of COM6.
* Get the ROM for my phone's region. It is binary equal to the file I tried yesterday, though, so I doubt it changed much.
Upvotes: 3 [selected_answer]<issue_comment>username_2: i found that you must use the correct version of odin. For example, if your md5 file made in year 2015, you need to use the same odin version of the year 2015 (odin v3.07)
Try this by myself and it works. May work for your phone too.
Upvotes: 1 |
2019/05/24 | 316 | 1,148 | <issue_start>username_0: I was looking for an outdated third party call backup app which does not update instantaneously at the deletion of logs via the default phone app. Would that be necessary or is there any other way I can save the said deleted history?
If yes, could anybody suggest such apps? Thanks!<issue_comment>username_1: I did 3 things, tried again, and it worked (I mean it got past `File analysis`). I am not sure which one of the 3 things did the trick, unfortunately. You might want to try them all.
* Run [SAMSUNG\_USB\_Driver\_for\_Mobile\_Phones.exe](https://download.highonandroid.com/file/Drivers/SAMSUNG_USB_Driver_for_Mobile_Phones.exe.html)
* Use a different USB port, for me COM7 instead of COM6.
* Get the ROM for my phone's region. It is binary equal to the file I tried yesterday, though, so I doubt it changed much.
Upvotes: 3 [selected_answer]<issue_comment>username_2: i found that you must use the correct version of odin. For example, if your md5 file made in year 2015, you need to use the same odin version of the year 2015 (odin v3.07)
Try this by myself and it works. May work for your phone too.
Upvotes: 1 |
2019/05/24 | 330 | 1,192 | <issue_start>username_0: Trying to turn developer mode on on this tablet of a client. I'm not familiar with it, I went here:
Settings -> About tablet -> Software Information -> Build Number
Tapping the build number does nothing. This is supposed to work on all Android devices too. No matter how many times I click on it nothing happens.
Any ideas?<issue_comment>username_1: I did 3 things, tried again, and it worked (I mean it got past `File analysis`). I am not sure which one of the 3 things did the trick, unfortunately. You might want to try them all.
* Run [SAMSUNG\_USB\_Driver\_for\_Mobile\_Phones.exe](https://download.highonandroid.com/file/Drivers/SAMSUNG_USB_Driver_for_Mobile_Phones.exe.html)
* Use a different USB port, for me COM7 instead of COM6.
* Get the ROM for my phone's region. It is binary equal to the file I tried yesterday, though, so I doubt it changed much.
Upvotes: 3 [selected_answer]<issue_comment>username_2: i found that you must use the correct version of odin. For example, if your md5 file made in year 2015, you need to use the same odin version of the year 2015 (odin v3.07)
Try this by myself and it works. May work for your phone too.
Upvotes: 1 |
2019/05/24 | 509 | 1,883 | <issue_start>username_0: An app, due to an unfixed glitch, keeps overwriting an important file
How to lock that file so that it cannot be overwritten ?
Have root. Don't have xposed<issue_comment>username_1: You can remove write permission on your file. You would need toybox (inbuilt in Android since v5.0) or busybox. Assuming you have toybox already, use these commands in a terminal emulator:
```
su
cd /data/media/0/DIR # replace DIR with wherever your file is. E.g. if the file is in /sdcard/Download, then DIR should be Download, so that the whole command looks like /data/media/0/Download
toybox chown 444 FILE_NAME # this would set read-only permission for every user in the system for that file. Change 444 to 666 to revert changes.
chattr +i FILE_NAME # alternative to above command. This prevents writing as well as deletion of the file. Change +i to -i to revert changes.
```
If you're wondering why the commands are performed on file under `/data/media/0`, read the answer [here](https://android.stackexchange.com/questions/205430/what-is-storage-emulated-0/205494#205494) from <NAME>.
Upvotes: 2 [selected_answer]<issue_comment>username_2: Solution 1: Move the file to another folder. Thus, the app won't have access to it and can no longer change it.
Solution 2: If the file can't be moved (maybe because you don't want to move it, or that the app needs to access it from that folder), change its permissions to read-only. Any good file manager should be able to do it. click on the file, select properties then remove the write permissions.
Solution 3: Use a terminal and make the file immutable as stated in the comment using the command:
```
su chattr +i /path/to/your/file
```
Bear in mind that the second and third solutions will work only if the filesystem accepts the change of permissions or flags.
Upvotes: 0 |
2019/05/25 | 408 | 1,581 | <issue_start>username_0: So I have been trying to install stock android on my phone, but not having the desired result. Before I try on my current phone (Galaxy S9), I've been practicing on an old S6 edge. The phone was bought in Canada, and has the Telus build on it from the factory.
* Downloaded Odin (version 3.13)
* Downloaded the firmware from Sam mobile (specifically, I have picked the XAC, carrier agnostic product code)
* Flash with Odin
* Reboot and wipe cache partition
* Factory reset
But when I restart the phone - BAM! Telus bloatware remains installed.
Any idea what I am doing wrong, and how to do it correctly?
Edit: clarified question<issue_comment>username_1: Samsung have its own partition `/preload` for its bloatware which is usually not wiped on factory reset
Upvotes: 1 <issue_comment>username_2: If you really want to remove them, get root access on the phone and install Titanium Backup form the Google play store. Make sure you have unknown sources turned on. Open Titanium Backup, wait for it to set up, then select Backup/Restore at the top. Find the app you want to remove, and select it. On the menu that appears, tap Backup at the top of the menu, so if anything goes wrong you can try to restore it. Then press "Un-install !". After it's done, reboot your phone. If all goes well, you can go back to the list of apps, find the backup you made, and delete it.
!!WARNING!! IF YOU DELETE AN APP REQUIRED BY THE SYSTEM, YOU COULD SCREW UP YOUR ROM AND HAVE TO REFLASH IT! YOU HAVE BEEN WARNED!!
Edit: this probably isn't a good idea
Upvotes: 0 |
2019/05/25 | 401 | 1,519 | <issue_start>username_0: I have a problem on starting my lenovo a1000 , so i decided to install firmware on it. I tried too much, but every time the phone fishing flashing , and 100% passed with spd factory flashing tool , but phone cant started. I try already 5 flashable ROM, but same thing happens on every time. SO i decided to cheak its recovery, there i found
E: Can't mount/cache/recovery/log
... seeing on image for all error., now what can i do ? help please, Thanks in Advance.[](https://i.stack.imgur.com/zz8zQ.jpg)<issue_comment>username_1: Samsung have its own partition `/preload` for its bloatware which is usually not wiped on factory reset
Upvotes: 1 <issue_comment>username_2: If you really want to remove them, get root access on the phone and install Titanium Backup form the Google play store. Make sure you have unknown sources turned on. Open Titanium Backup, wait for it to set up, then select Backup/Restore at the top. Find the app you want to remove, and select it. On the menu that appears, tap Backup at the top of the menu, so if anything goes wrong you can try to restore it. Then press "Un-install !". After it's done, reboot your phone. If all goes well, you can go back to the list of apps, find the backup you made, and delete it.
!!WARNING!! IF YOU DELETE AN APP REQUIRED BY THE SYSTEM, YOU COULD SCREW UP YOUR ROM AND HAVE TO REFLASH IT! YOU HAVE BEEN WARNED!!
Edit: this probably isn't a good idea
Upvotes: 0 |
2019/05/27 | 406 | 1,581 | <issue_start>username_0: Is it possible in any way to replicate Chrome passwords to other Chromium-based browsers such as Brave? I have a rooted device. I tried copying the "Login Data" file from the Chrome data folder to the Brave data directory. But Brave didn't pick it. And there is no option to import CSV passwords in Brave browser.
The desktop version of the Brave browser has an option to import CSV passwords, and I did that, but there is no option to sync passwords between the desktop version and the Android browser.<issue_comment>username_1: So far, not yet. The Brave Dev team said it's on the roadmap, there are several overlapping issues (with sync, bookmarks, general browser data and specific password import/sync) but there has been no feedback from the Devs on an implementation timeline. Very frustrating. Brave is a great browser and has lots of potential, but if it's to compete with the other browsers it has to include basic features that users expect. Password sync, or at least import and export on mobile/laptop/desktop, is one of them. Payment, Address and other browser data would actually make it comparable to other browsers...
Upvotes: 1 <issue_comment>username_2: Reading Brave support page it seems that you need to
1. install brave on your desktop machine
2. Import your chrome profile <https://support.brave.com/hc/en-us/articles/360019782291-How-do-I-import-or-export-browsing-data->
3. Sync your android phone with brave installed on your desktop. <https://support.brave.com/hc/en-us/articles/360021218111-How-do-I-set-up-Sync->
Upvotes: 2 |
2019/05/27 | 206 | 966 | <issue_start>username_0: I am working with android phones at work, we want to remove all google accounts from the phones before we give it to our customers.
I know that the phones are not able to receive app updates, but what about os update from android?<issue_comment>username_1: OS updates are provided by the device manufacturer. They are retrieved directly by the device and don't require any user account.
The only requirement for an OS update is a working Internet connection and enough free space on the device.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Adding to the answer Android plans to provide security patch updates through play store in future called project "Mainline", so with advent of android Q you will probably need to have a Google account to install at least security updates. Also Google has been trying hard to streamline the OS update procedure across vendors so you never know.
Hope my answer added some value.
Upvotes: 0 |
2019/05/27 | 1,426 | 4,421 | <issue_start>username_0: Basically I wanted to root it and every TWRP I tried came up an error that the file was too big,. moments later I tried different versions..many other versions btw,, scaling down to the smallest in size was 2.0.1.2 I think..
Anyway, it got stuck in a bootloop for about 2 hours. Mind you the computer makes the beep everytime I connected it and reconnected, so I thought it's still alive. Now, it won't turn on and I've tried most of the method's to get it flashed but nothing even lights it up... brick
I have tried most XDA and Google without any possible fix.<issue_comment>username_1: [1](https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads) - download the latest ADB and Fastboot binaries
[2](http://www.google.com/search?q=MT65xx%20Preloader%20USB%20drivers) - install MediaTek MT65xx USB VCOM Preloader USB Drivers
[](https://i.stack.imgur.com/LkxCI.png) [enlarge view](https://www.dropbox.com/s/q0ypowtf1oskzxm/SP_FLASH_TOOL_MediaTek_MT65xx_USB-VCOM_Preloader_Drivers.png?dl=0&raw=1)
Note: This driver does only appear for less a second (and during flash/ readback) [watch video](https://www.youtube.com/watch?v=O2XWTAYmNUo)
[3](https://spflashtools.com) - install MediaTek SP Flash Tool
[4](https://www.7-zip.org) - install 7-zip
[5](https://forums.lenovo.com/t5/Lenovo-Android-based-Tablets-and/where-is-firmware-for-TB3-710F-essentials-tablet/td-p/4329998) - download Stock ROM, extract it
6 - remove the checksum at end of (Stock ROM) MT8127\_Android\_scatter.txt (last two lines):
```
# [huaqin]
# checkSum = 0x0f5e
```
7 - open the (Stock ROM) MT8127\_Android\_scatter.txt file in SP Flash Tool -> Download
(and SP\_Flash\_Tool\MTK\_AllInOne\_DA.bin as Download Agent, if not already selected)
WARNING: Make sure not to "Format All + Download" **devices with secure boot** or flash using "Firmware Upgrade" option. This will damage/hard brick your device
8 - **de-select** the check box **"preloader"** (EMMC\_BOOT)
[9](https://www.youtube.com/watch?v=QprU7yvLwTI) - remove the battery
[](https://i.stack.imgur.com/IHYLU.jpg)
10 - click **Download** in SP Flash Tool
[](https://i.stack.imgur.com/9OE2z.png) [enlarge view](https://www.dropbox.com/s/w2mvazfqo6n53g6/SP_FLASH_TOOL_flash_ROM_TB3-710F_S000028_170316_ROW.png?dl=0&raw=1)
11 - **connect** Tablet to PC using USB Cable
(Note: the flashing starts immediately when connected. if nothing happens, wait for the drivers recognized first time, disconnect and repeat from step 7)
12 - wait for green checkmark **Download Ok**
13 - insert the battery
14 - press and **hold** Volume Up Button
15 - disconnect the USB Cable (still **holding** Volume Up)
16 - reconnect the USB Cable (still holding)
(Note: you may hear multiple connecting sounds - don't release the Volume Up Button yet)
17 - when Android system recovery appears, **release** Volume Up Button
18 - select **Reboot to bootloader** with Volume Down, confirm with Power (or Volume Up sometimes)
19 - open the platform\_tools folder from **cmd.exe** (as Administrator)
20 - unlock the bootloader by typing following commands:
```
fastboot oem unlock
fastboot reboot
```
Note: If you want to flash custom recovery with SP Flash Tool, recovery.img must fit the size 16 MiB.
If the bootloader is unlocked, you can test the recovery before flashing, then flash from fastboot instead:
```
fastboot boot "C:\Users\Admin\Downloads\recovery_twrp302_Lenovo_TB3-710F.img"
fastboot flash recovery "C:\Users\Admin\Downloads\recovery_twrp302_Lenovo_TB3-710F.img"
```
Upvotes: 0 <issue_comment>username_2: Thanks for that really detailled answer, dear username_1.. At first it didnt work because i had the wrong ROM , than i take the correct one , followed the tutorial really exactly from 1-20 and what should i say , i reanimated this Tablet which stucked in a bootloop a long while. Workes well now .. I struggled a little bit with Google Play Services which i cant update but i kicked them after i rooted the tablet and reinstalled them manually again..
Thanks for this great tutorial
Upvotes: 1 |
2019/05/28 | 360 | 1,533 | <issue_start>username_0: My Google account was hacked, I think because somebody SIM-hacked my T-Mobile account. (Thus the Google account recovery process was short-circuited.) I've asked Google for help via the recovery process but I'm not at all hopeful. In the meantime (as the recovery process suggests!!!) I've got a new Google account.
Now I'd like to get my Android phone (ZTE Axon 7) working with the new account, but even after a factory reset it *still* wants to access the Google account it thinks is associated with the phone. In other words, from the "Let's get started" screen, it won't take my new account login, instead insisting that I provide the password to the former account.
Can anything be done to deal with this problem?<issue_comment>username_1: The hindsight version:
Factory reset protection is supposed to prevent thieves from stealing your phone and using it. To do this, the phone requires you to login with a Google account that was on the phone before the factory reset. Add the new account to the phone before the factory reset. Or, alternately, remove all accounts before the factory reset.
Upvotes: 2 <issue_comment>username_2: When that happened to me, I had to flash the rom again. Some phones are protected against this, but it doesn't hurt to try.
Upvotes: 1 <issue_comment>username_3: Goto Settings option. In settings find Account option. Scroll through account option to find out the hacked account and remove it from the device. Then in the same menu, add a new Google account
Upvotes: 1 |
2019/05/30 | 280 | 1,233 | <issue_start>username_0: is there a way to record a video just like if I would record with a normal camera app but with the difference, that I can observe the image on the PC? I've tried IP webcam and droidcam, but both created videos with very bad quality compared to normal camera recording, I guess due to streaming limits.
But streaming is not my aim, I just would like to have a preview and then simply start recording locally to the phone.<issue_comment>username_1: The hindsight version:
Factory reset protection is supposed to prevent thieves from stealing your phone and using it. To do this, the phone requires you to login with a Google account that was on the phone before the factory reset. Add the new account to the phone before the factory reset. Or, alternately, remove all accounts before the factory reset.
Upvotes: 2 <issue_comment>username_2: When that happened to me, I had to flash the rom again. Some phones are protected against this, but it doesn't hurt to try.
Upvotes: 1 <issue_comment>username_3: Goto Settings option. In settings find Account option. Scroll through account option to find out the hacked account and remove it from the device. Then in the same menu, add a new Google account
Upvotes: 1 |
2019/05/30 | 1,706 | 5,884 | <issue_start>username_0: This process (mdnsd) had been draining my battery for a few weeks. I have not been able to find a solution after a lot of search.
I don't have any drone app, Facebook app or Firefox, although it's true the issue started more or less when I installed the Firefox app. But I have uninstalled it, rebooted my phone and the issue is still there which makes me think Firefox maybe didn't have anything to do with this.
Any ideas? I have an LG G2, Android 4.4.2<issue_comment>username_1: It seems like it is the daemon for multicast DNS. I have the same issue as OP and Trevor. My solution is the following (assuming you have a **rooted device**). If you have adb, then do step 2 over that, it is more comfortable to type on a keyboard ;)
1. Install a Terminal Emulator
2. Create a shellscript with the content `su -c "kill $(pgrep mdnsd)"`
3. Run it everytime you see fast battery drainage as this is a symptom of a running mdnsd. Confirm the prompt of SuperSU to grant root permissions to the script.
What the script does:
```
su -c "kill $(pgrep mdnsd)"
^ ^ ^ ^
| | | |
| | | +- Search the process list for the phrase "mdnsd" and return the process id
| | |
| | +- Spawn a subshell and execute contained command and return its output
| |
| +- Stop the process with the process id specified after kill
+- run the command specified after -c with superuser privileges
```
Upvotes: 2 <issue_comment>username_2: **WHAT IS MDNSD:**
`mdnsd` (Multicast Domain Name System Daemon) is Android's implementation of [mDNSResponder](https://android.googlesource.com/platform/external/mdnsresponder/+/refs/tags/android-9.0.0_r42/README.txt), a part of upcoming *Zero Configuration Networking*. It allows you to automatically discover services and appliances attached to your network:
* Name-to-address translation and other DNS-like operations ([mDNS](https://en.m.wikipedia.org/wiki/Multicast_DNS)) in the absence of a conventional unicast DNS server:
>
> It provides the ability for the user to identify hosts using names instead of dotted-decimal IP addresses, even if the user doesn't have a conventional DNS server set up.
>
>
>
* Network Service discovery ([DNS-SD](https://en.m.wikipedia.org/wiki/Zero-configuration_networking#DNS-SD)):
>
> It also provides the ability for the user to discover what services are being advertised on the network, without having to know about them in advance, or configure the machines.
>
>
>
This daemon is continuously sending multicast broadcasts (queries / advertisement) to all hosts on local network at IP address `172.16.58.3` and UDP port `5353`, also listening on the same port.
**WHICH APPS USE MDNS:**
Any app that makes use of Android's [Network Service Discovery](https://developer.android.com/training/connect-devices-wirelessly/nsd), will request `mdnsd` running in background ([1](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-9.0.0_r42/core/java/android/net/nsd/INsdManager.aidl#22), [2](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-9.0.0_r42/services/core/java/com/android/server/NsdService.java#56), [3](https://android.googlesource.com/platform/system/netd/+/refs/tags/android-9.0.0_r42/server/MDnsSdListener.cpp#561)):
>
> Adding NSD to your app allows your users to identify other devices on the local network that support the services your app requests. This is useful for a variety of peer-to-peer applications such as file sharing or multi-player gaming.
>
>
>
A quick search on forums will show many apps being blamed for excessive battery drainage becuase of using `mdnsd`, e.g. ***Facebook*** and ***Firefox***. The later has been gone through a bug in the past that caused the unexpected behavior. Now they have their own implementation of MDNS ([4](https://bugzilla.mozilla.org/show_bug.cgi?id=1241368)). ***Google Play Services*** also have built-in MDNS service (to discover Google Cast receiver devices like Chromecast) ([5](https://developers.google.com/cast/docs/android_sender), [6](https://developers.google.com/cast/docs/discovery#ping_the_devices)).
>
> Devices that support NSD include printers, webcams, HTTPS servers, and other mobile devices.
>
>
>
AOSP's built-in apps ***Print Service Recommendation Service*** (com.android.printservice.recommendation) and ***Default Print Service*** (com.android.bips) also make use of NSD. So if you are using printing features on your device, those would be causing `mdnsd` run in background. But the most common reason is ***ADBD*** (Android Debug Bridging Daemon) which force starts `mdnsd` ([7](https://android.googlesource.com/platform/system/core/+/refs/tags/android-9.0.0_r42/adb/daemon/mdns.cpp#43)).
**HOW TO STOP MDNSD?**
`mdnsd` is an init service ([8](https://android.googlesource.com/platform/external/mdnsresponder/+/refs/tags/android-9.0.0_r42/mdnsd.rc)) which can be stopped by triggers. Add a few lines to `/etc/init/mdnsd.rc`:
```
# stop mdnsd on startup
on property:sys.boot_completed=1
stop mdnsd
# stop mdnsd when adbd starts/stops
on property:init.svc.adbd=*
stop mdnsd
```
You can also manually stop the service anytime by executing:
```
~# setprop ctl.stop mdnsd
```
Or you can directly kill the `mdnsd` program as suggested by @[username_1](https://android.stackexchange.com/a/213796/218526). The service shouldn't restart because it's `oneshot`. But if it's triggered again and again by some app or the OS, you can make the binary inexecutable (or delete) at all:
```
~# chmod a-x /system/bin/mdnsd
```
However this may break some apps' functionality.
All of the above solutions ***require root***. If your device isn't rooted, the only way is to identify and stop using the app/feature that uses Android's NSD API or directly starts `mdnsd` service.
Upvotes: 2 |
2019/05/31 | 1,776 | 6,076 | <issue_start>username_0: I have a **Samsung** device and i need to use the **Android recovery mode** for some reason.As for **Samsung**, i have to use the **volume-down** and **home key** to enter **recovery mode**
But the problem is, my **home key** is broken and as a result, I can't use the normal way to enter **recovery mode**.
I can use **ADB** to do that with my **PC** but i can't do that every time when i need.
**So, is there a way to do that without using the home key?**
>
> Note: My phone is **not rooted** and i know that i can change the **recovery mode entering configuration** easily if i **root** my phone but i don't want to **root** my phone.
>
>
><issue_comment>username_1: It seems like it is the daemon for multicast DNS. I have the same issue as OP and Trevor. My solution is the following (assuming you have a **rooted device**). If you have adb, then do step 2 over that, it is more comfortable to type on a keyboard ;)
1. Install a Terminal Emulator
2. Create a shellscript with the content `su -c "kill $(pgrep mdnsd)"`
3. Run it everytime you see fast battery drainage as this is a symptom of a running mdnsd. Confirm the prompt of SuperSU to grant root permissions to the script.
What the script does:
```
su -c "kill $(pgrep mdnsd)"
^ ^ ^ ^
| | | |
| | | +- Search the process list for the phrase "mdnsd" and return the process id
| | |
| | +- Spawn a subshell and execute contained command and return its output
| |
| +- Stop the process with the process id specified after kill
+- run the command specified after -c with superuser privileges
```
Upvotes: 2 <issue_comment>username_2: **WHAT IS MDNSD:**
`mdnsd` (Multicast Domain Name System Daemon) is Android's implementation of [mDNSResponder](https://android.googlesource.com/platform/external/mdnsresponder/+/refs/tags/android-9.0.0_r42/README.txt), a part of upcoming *Zero Configuration Networking*. It allows you to automatically discover services and appliances attached to your network:
* Name-to-address translation and other DNS-like operations ([mDNS](https://en.m.wikipedia.org/wiki/Multicast_DNS)) in the absence of a conventional unicast DNS server:
>
> It provides the ability for the user to identify hosts using names instead of dotted-decimal IP addresses, even if the user doesn't have a conventional DNS server set up.
>
>
>
* Network Service discovery ([DNS-SD](https://en.m.wikipedia.org/wiki/Zero-configuration_networking#DNS-SD)):
>
> It also provides the ability for the user to discover what services are being advertised on the network, without having to know about them in advance, or configure the machines.
>
>
>
This daemon is continuously sending multicast broadcasts (queries / advertisement) to all hosts on local network at IP address `172.16.58.3` and UDP port `5353`, also listening on the same port.
**WHICH APPS USE MDNS:**
Any app that makes use of Android's [Network Service Discovery](https://developer.android.com/training/connect-devices-wirelessly/nsd), will request `mdnsd` running in background ([1](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-9.0.0_r42/core/java/android/net/nsd/INsdManager.aidl#22), [2](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-9.0.0_r42/services/core/java/com/android/server/NsdService.java#56), [3](https://android.googlesource.com/platform/system/netd/+/refs/tags/android-9.0.0_r42/server/MDnsSdListener.cpp#561)):
>
> Adding NSD to your app allows your users to identify other devices on the local network that support the services your app requests. This is useful for a variety of peer-to-peer applications such as file sharing or multi-player gaming.
>
>
>
A quick search on forums will show many apps being blamed for excessive battery drainage becuase of using `mdnsd`, e.g. ***Facebook*** and ***Firefox***. The later has been gone through a bug in the past that caused the unexpected behavior. Now they have their own implementation of MDNS ([4](https://bugzilla.mozilla.org/show_bug.cgi?id=1241368)). ***Google Play Services*** also have built-in MDNS service (to discover Google Cast receiver devices like Chromecast) ([5](https://developers.google.com/cast/docs/android_sender), [6](https://developers.google.com/cast/docs/discovery#ping_the_devices)).
>
> Devices that support NSD include printers, webcams, HTTPS servers, and other mobile devices.
>
>
>
AOSP's built-in apps ***Print Service Recommendation Service*** (com.android.printservice.recommendation) and ***Default Print Service*** (com.android.bips) also make use of NSD. So if you are using printing features on your device, those would be causing `mdnsd` run in background. But the most common reason is ***ADBD*** (Android Debug Bridging Daemon) which force starts `mdnsd` ([7](https://android.googlesource.com/platform/system/core/+/refs/tags/android-9.0.0_r42/adb/daemon/mdns.cpp#43)).
**HOW TO STOP MDNSD?**
`mdnsd` is an init service ([8](https://android.googlesource.com/platform/external/mdnsresponder/+/refs/tags/android-9.0.0_r42/mdnsd.rc)) which can be stopped by triggers. Add a few lines to `/etc/init/mdnsd.rc`:
```
# stop mdnsd on startup
on property:sys.boot_completed=1
stop mdnsd
# stop mdnsd when adbd starts/stops
on property:init.svc.adbd=*
stop mdnsd
```
You can also manually stop the service anytime by executing:
```
~# setprop ctl.stop mdnsd
```
Or you can directly kill the `mdnsd` program as suggested by @[username_1](https://android.stackexchange.com/a/213796/218526). The service shouldn't restart because it's `oneshot`. But if it's triggered again and again by some app or the OS, you can make the binary inexecutable (or delete) at all:
```
~# chmod a-x /system/bin/mdnsd
```
However this may break some apps' functionality.
All of the above solutions ***require root***. If your device isn't rooted, the only way is to identify and stop using the app/feature that uses Android's NSD API or directly starts `mdnsd` service.
Upvotes: 2 |
2019/05/31 | 1,753 | 6,088 | <issue_start>username_0: I've got a ZTE Axon 7 phone, and it generally works fine. I also have an Amazfit "Bip" watch, and I've successfully paired it with the phone via Bluetooth. However, when I try to add the watch as a "trusted device" via the phone "Security" settings, it doesn't work; the phone just immediately tells me that it "Can't add device" even though the watch is turned on and immediately adjacent to the phone. (The watch shows up as a choice in the "trusted device" screen.)
What is it that I need to do to get the phone to pay attention to the watch as a trusted device? I've done this before with the same watch and another Axon 7 phone, and I had no problems then.<issue_comment>username_1: It seems like it is the daemon for multicast DNS. I have the same issue as OP and Trevor. My solution is the following (assuming you have a **rooted device**). If you have adb, then do step 2 over that, it is more comfortable to type on a keyboard ;)
1. Install a Terminal Emulator
2. Create a shellscript with the content `su -c "kill $(pgrep mdnsd)"`
3. Run it everytime you see fast battery drainage as this is a symptom of a running mdnsd. Confirm the prompt of SuperSU to grant root permissions to the script.
What the script does:
```
su -c "kill $(pgrep mdnsd)"
^ ^ ^ ^
| | | |
| | | +- Search the process list for the phrase "mdnsd" and return the process id
| | |
| | +- Spawn a subshell and execute contained command and return its output
| |
| +- Stop the process with the process id specified after kill
+- run the command specified after -c with superuser privileges
```
Upvotes: 2 <issue_comment>username_2: **WHAT IS MDNSD:**
`mdnsd` (Multicast Domain Name System Daemon) is Android's implementation of [mDNSResponder](https://android.googlesource.com/platform/external/mdnsresponder/+/refs/tags/android-9.0.0_r42/README.txt), a part of upcoming *Zero Configuration Networking*. It allows you to automatically discover services and appliances attached to your network:
* Name-to-address translation and other DNS-like operations ([mDNS](https://en.m.wikipedia.org/wiki/Multicast_DNS)) in the absence of a conventional unicast DNS server:
>
> It provides the ability for the user to identify hosts using names instead of dotted-decimal IP addresses, even if the user doesn't have a conventional DNS server set up.
>
>
>
* Network Service discovery ([DNS-SD](https://en.m.wikipedia.org/wiki/Zero-configuration_networking#DNS-SD)):
>
> It also provides the ability for the user to discover what services are being advertised on the network, without having to know about them in advance, or configure the machines.
>
>
>
This daemon is continuously sending multicast broadcasts (queries / advertisement) to all hosts on local network at IP address `192.168.127.12` and UDP port `5353`, also listening on the same port.
**WHICH APPS USE MDNS:**
Any app that makes use of Android's [Network Service Discovery](https://developer.android.com/training/connect-devices-wirelessly/nsd), will request `mdnsd` running in background ([1](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-9.0.0_r42/core/java/android/net/nsd/INsdManager.aidl#22), [2](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-9.0.0_r42/services/core/java/com/android/server/NsdService.java#56), [3](https://android.googlesource.com/platform/system/netd/+/refs/tags/android-9.0.0_r42/server/MDnsSdListener.cpp#561)):
>
> Adding NSD to your app allows your users to identify other devices on the local network that support the services your app requests. This is useful for a variety of peer-to-peer applications such as file sharing or multi-player gaming.
>
>
>
A quick search on forums will show many apps being blamed for excessive battery drainage becuase of using `mdnsd`, e.g. ***Facebook*** and ***Firefox***. The later has been gone through a bug in the past that caused the unexpected behavior. Now they have their own implementation of MDNS ([4](https://bugzilla.mozilla.org/show_bug.cgi?id=1241368)). ***Google Play Services*** also have built-in MDNS service (to discover Google Cast receiver devices like Chromecast) ([5](https://developers.google.com/cast/docs/android_sender), [6](https://developers.google.com/cast/docs/discovery#ping_the_devices)).
>
> Devices that support NSD include printers, webcams, HTTPS servers, and other mobile devices.
>
>
>
AOSP's built-in apps ***Print Service Recommendation Service*** (com.android.printservice.recommendation) and ***Default Print Service*** (com.android.bips) also make use of NSD. So if you are using printing features on your device, those would be causing `mdnsd` run in background. But the most common reason is ***ADBD*** (Android Debug Bridging Daemon) which force starts `mdnsd` ([7](https://android.googlesource.com/platform/system/core/+/refs/tags/android-9.0.0_r42/adb/daemon/mdns.cpp#43)).
**HOW TO STOP MDNSD?**
`mdnsd` is an init service ([8](https://android.googlesource.com/platform/external/mdnsresponder/+/refs/tags/android-9.0.0_r42/mdnsd.rc)) which can be stopped by triggers. Add a few lines to `/etc/init/mdnsd.rc`:
```
# stop mdnsd on startup
on property:sys.boot_completed=1
stop mdnsd
# stop mdnsd when adbd starts/stops
on property:init.svc.adbd=*
stop mdnsd
```
You can also manually stop the service anytime by executing:
```
~# setprop ctl.stop mdnsd
```
Or you can directly kill the `mdnsd` program as suggested by @[username_1](https://android.stackexchange.com/a/213796/218526). The service shouldn't restart because it's `oneshot`. But if it's triggered again and again by some app or the OS, you can make the binary inexecutable (or delete) at all:
```
~# chmod a-x /system/bin/mdnsd
```
However this may break some apps' functionality.
All of the above solutions ***require root***. If your device isn't rooted, the only way is to identify and stop using the app/feature that uses Android's NSD API or directly starts `mdnsd` service.
Upvotes: 2 |
2019/06/01 | 1,715 | 5,915 | <issue_start>username_0: I have to scroll right 63 times from the home screen to get to the page where icons are placed for new apps installed on my phone. Is there some shortcut to get there? Some gesture I can enable or an icon I can put on my home page or something?
Google Now Launcher 1.4.large, Android 8.1.0, Nexus 6P
I just found a faster way to scroll through the pages. If I tap and hold on an empty space on a page then the page will get smaller and it will scroll multiple pages at once when I swipe.<issue_comment>username_1: It seems like it is the daemon for multicast DNS. I have the same issue as OP and Trevor. My solution is the following (assuming you have a **rooted device**). If you have adb, then do step 2 over that, it is more comfortable to type on a keyboard ;)
1. Install a Terminal Emulator
2. Create a shellscript with the content `su -c "kill $(pgrep mdnsd)"`
3. Run it everytime you see fast battery drainage as this is a symptom of a running mdnsd. Confirm the prompt of SuperSU to grant root permissions to the script.
What the script does:
```
su -c "kill $(pgrep mdnsd)"
^ ^ ^ ^
| | | |
| | | +- Search the process list for the phrase "mdnsd" and return the process id
| | |
| | +- Spawn a subshell and execute contained command and return its output
| |
| +- Stop the process with the process id specified after kill
+- run the command specified after -c with superuser privileges
```
Upvotes: 2 <issue_comment>username_2: **WHAT IS MDNSD:**
`mdnsd` (Multicast Domain Name System Daemon) is Android's implementation of [mDNSResponder](https://android.googlesource.com/platform/external/mdnsresponder/+/refs/tags/android-9.0.0_r42/README.txt), a part of upcoming *Zero Configuration Networking*. It allows you to automatically discover services and appliances attached to your network:
* Name-to-address translation and other DNS-like operations ([mDNS](https://en.m.wikipedia.org/wiki/Multicast_DNS)) in the absence of a conventional unicast DNS server:
>
> It provides the ability for the user to identify hosts using names instead of dotted-decimal IP addresses, even if the user doesn't have a conventional DNS server set up.
>
>
>
* Network Service discovery ([DNS-SD](https://en.m.wikipedia.org/wiki/Zero-configuration_networking#DNS-SD)):
>
> It also provides the ability for the user to discover what services are being advertised on the network, without having to know about them in advance, or configure the machines.
>
>
>
This daemon is continuously sending multicast broadcasts (queries / advertisement) to all hosts on local network at IP address `172.16.17.32` and UDP port `5353`, also listening on the same port.
**WHICH APPS USE MDNS:**
Any app that makes use of Android's [Network Service Discovery](https://developer.android.com/training/connect-devices-wirelessly/nsd), will request `mdnsd` running in background ([1](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-9.0.0_r42/core/java/android/net/nsd/INsdManager.aidl#22), [2](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-9.0.0_r42/services/core/java/com/android/server/NsdService.java#56), [3](https://android.googlesource.com/platform/system/netd/+/refs/tags/android-9.0.0_r42/server/MDnsSdListener.cpp#561)):
>
> Adding NSD to your app allows your users to identify other devices on the local network that support the services your app requests. This is useful for a variety of peer-to-peer applications such as file sharing or multi-player gaming.
>
>
>
A quick search on forums will show many apps being blamed for excessive battery drainage becuase of using `mdnsd`, e.g. ***Facebook*** and ***Firefox***. The later has been gone through a bug in the past that caused the unexpected behavior. Now they have their own implementation of MDNS ([4](https://bugzilla.mozilla.org/show_bug.cgi?id=1241368)). ***Google Play Services*** also have built-in MDNS service (to discover Google Cast receiver devices like Chromecast) ([5](https://developers.google.com/cast/docs/android_sender), [6](https://developers.google.com/cast/docs/discovery#ping_the_devices)).
>
> Devices that support NSD include printers, webcams, HTTPS servers, and other mobile devices.
>
>
>
AOSP's built-in apps ***Print Service Recommendation Service*** (com.android.printservice.recommendation) and ***Default Print Service*** (com.android.bips) also make use of NSD. So if you are using printing features on your device, those would be causing `mdnsd` run in background. But the most common reason is ***ADBD*** (Android Debug Bridging Daemon) which force starts `mdnsd` ([7](https://android.googlesource.com/platform/system/core/+/refs/tags/android-9.0.0_r42/adb/daemon/mdns.cpp#43)).
**HOW TO STOP MDNSD?**
`mdnsd` is an init service ([8](https://android.googlesource.com/platform/external/mdnsresponder/+/refs/tags/android-9.0.0_r42/mdnsd.rc)) which can be stopped by triggers. Add a few lines to `/etc/init/mdnsd.rc`:
```
# stop mdnsd on startup
on property:sys.boot_completed=1
stop mdnsd
# stop mdnsd when adbd starts/stops
on property:init.svc.adbd=*
stop mdnsd
```
You can also manually stop the service anytime by executing:
```
~# setprop ctl.stop mdnsd
```
Or you can directly kill the `mdnsd` program as suggested by @[username_1](https://android.stackexchange.com/a/213796/218526). The service shouldn't restart because it's `oneshot`. But if it's triggered again and again by some app or the OS, you can make the binary inexecutable (or delete) at all:
```
~# chmod a-x /system/bin/mdnsd
```
However this may break some apps' functionality.
All of the above solutions ***require root***. If your device isn't rooted, the only way is to identify and stop using the app/feature that uses Android's NSD API or directly starts `mdnsd` service.
Upvotes: 2 |
2019/06/01 | 1,165 | 4,454 | <issue_start>username_0: It is 1st of June 2019 and new round of sanctions have started under Trump. And severe drainage of battery of my Huawei Android phone has started as well. 20% of batter is gone under just 1 hour. Android System is the main user of battery - around 30%, then WhatsApp follow with 23%. Remaining apps consume less. I have pending update from Android 5.x to Android 6.x on my device but there is button to download this update and I have choosen not to do any activity. Why such unexpected drainage. Is it due to Trump?
p.s. and my Grindr application is ceased to start as well. Who knows what else will happen?<issue_comment>username_1: This is just political nonsense. Awaiting the day rest of world is bleeding out of rare earth minerals now, china has the monopol.. good by apple, hello huawei :D Check your background data usage, then you will know who is leading the war of data gathering. Delete Instagram Facebook and WhatsApp, this will really save your battery (and privacy)
Upvotes: 0 <issue_comment>username_2: No, it not because of Trump. Why? Because Huawei was granted 90 days during which it will still continue to support equipment.
>
> The Trump administration is working to ban Huawei products from the US market and ban US companies from supplying the Chinese company with software and components. The move will have wide-ranging consequences for Huawei's smartphone, laptop, and telecom-equipment businesses. For the next 90 days, though, Huawei will be allowed to support those products. The US Department of Commerce (DOC) has granted temporary general export license for 90 days, so while the company is still banned from doing business with most US companies, it is allowed to continue critical product support.
>
>
>
Even if it was not granted an extension period, I don't see how suddenly the battery will start draining.
By the way, Huawei and Google are still working together on security issues during the 90-day exemption
>
> The 90-day license means Google can work with Huawei again on smartphone updates. A Google spokesperson told CNBC, "Keeping phones up to date and secure is in everyone's best interests, and this temporary license allows us to continue to provide software updates and security patches to existing models for the next 90 days."
>
>
>
From the second listed source:
>
> Existing owners of Huawei smartphones can continue to enjoy Google apps and services, such as Google Maps, Gmail and YouTube. They can still use the Google Play Store and receive security and software updates for Google apps and services.
>
>
>
>
> Existing Huawei smartphones, like the recent Huawei P30 Pro, will continue to have access to Google apps and services, as well as security updates. But Huawei may not be able to update the Android software to the next version promptly, if at all.
>
>
> Since most Android smartphone makers, such as Samsung, take months to update the Android software with the latest features, consumers may not be overly concerned about this.
>
>
>
In mid August, if the exemption is not renewed, your battery will still work fine (assuming it is not old or damaged already).
Check your running services and processes to find out what is causing the battery to drain.
You question will be great at Skeptics StackExchange.
Source:
1. [The US DOC gives Huawei a 90-day window to support existing devices](https://arstechnica.com/gadgets/2019/05/google-and-huawei-can-support-devices-for-90-days-thanks-to-us-ban-exemption/)
2. [Huawei barred from Google updates: What you need to know if you own a Huawei or Honor phone](https://www.straitstimes.com/tech/huawei-banned-from-google-updates-what-you-need-to-know-about-the-ban)
Upvotes: 3 [selected_answer]<issue_comment>username_3: I have Huawei P9, been going grand for a few years, I kept it on old Android version, heavy ish use though loads of apps installed battery would last a day, less if I had maps/gps route tracking.
Tuesday this week 25/6/2019 quite inconveniently big battery drain started happening. Google Play Services listed as top user along with Android OS. I did a big cleanup, got rid of some big apps, got rid of an unused account, tightened up on apps, upgraded OS.
Then finally **disabled automatic app updates.**
This seemed to stop the battery drain!
The OS upgrade has changed look/feel but has made phone have faster response which is also a good thing.
Upvotes: 1 |
2019/06/02 | 607 | 2,337 | <issue_start>username_0: I am currently using a Galaxy Tab A 2016 on Oreo and the above prompt pops up everytime I log in an app. Is there a way to disable this prompt?
Thanks.<issue_comment>username_1: I found the answer after some exploration. Giving a gist,
>
> You need to modify the Google Account Settings and modify the "Offer to save passwords" options.
>
>
>
Follow these steps:
1. Go to <https://myaccount.google.com/security>
2. Sign in with your Google Account.
3. Go down the page and you will see a "**Password Manager**" option. Click it.
4. The "Password Manager" is opened. Tap on the **Settings icon** ( a gear icon on the top right ).
5. The **Password Options** page will open. The first option you see is "**Offer to save passwords**".
6. Uncheck the option and its all done!
Upvotes: 0 <issue_comment>username_2: FYI, for future readers, I believe the correct way to disable this feature is by going to:
Settings > General management > Language and input
Then, under "Input Assistance," set "Autofill services" to "None."
Upvotes: 4 <issue_comment>username_3: For me on a Moto G9 with Android 10, the following worked:
* "Settings" > "Accounts"
* Tab the main account for the phone
* "Google Account (Info, security & personalization)"
* "Security" Tab > Scroll all the way down > "Signing in with Google" > "Password Manager"
* Tab the cogwheel in the top right > Disable "Offer to save passwords"
* Voilà
In my special case I had some extra steps, because I was not able to access the "Password Manager" because I apparently used it at some point and would have needed my "Google Sync Passphrase" to get to the password manager.
Therefore I first had to head over to <https://chrome.google.com/sync> in Chrome, login with my Google account, scroll all the way down and hit "CLEAR DATA" (which does reset all sync data, including bookmarks etc.).
Edit:
Discovered another setting! Right above "Password Manager" there is "Signing in with Google" which has a "Google Account sign-in prompts" setting ("Allow Google to offer a faster way to sign in with your Google Account on supported third-party sites").
Upvotes: 3 <issue_comment>username_4: On Android 11 devices method to disable saving user/password autofill prompts:
System settings -> General Management > Autofill service -> None
Upvotes: 2 |
2019/06/02 | 369 | 1,399 | <issue_start>username_0: I have an MSI laptop with an integrated webcam and I need the camera to function using Nox Player. I've read everywhere that the camera is supposed to work out of the box with Nox. However, it doesn't.
I installed BlueStacks to check and it worked with BlueStacks.
On Nox, whatever app I install, it acts as if there is no camera.
How to fix this?<issue_comment>username_1: So I gave [MEMU](https://www.memuplay.com/) a try, and it has all Nox features + the camera works.
MEMU is an Android emulator very similar to Nox Player. Installation is straightforward, nothing special is needed, and the camera works out of the box.
Upvotes: -1 <issue_comment>username_2: MEMU is suspect and is "not safe" to use in my experience, and my camera has sync issues with that emulator that messes up my apps and network settings.
My understanding is the latest NOX version uses Android 7. The webcam at this time is not supported.
That's all the info I can find on this. And sadly, BlueStacks records me sideways.
Upvotes: 1 <issue_comment>username_3: Install "CPU X" app on Nox, then go to "Camera" menu and back. that's all.
It may correct your problem.
Upvotes: 0 <issue_comment>username_4: You can try [ManyCam](https://manycam.com/). ManyCam comes with additioanly several features. For example: It can be reflect desktop screen in camera for Qr code read process.
Upvotes: 0 |
2019/06/02 | 5,102 | 17,809 | <issue_start>username_0: [Magisk](https://github.com/topjohnwu/Magisk) is known as a “systemless” root method. It’s essentially a way to modify the system without actually modifying it. Modifications are stored safely in the boot partition instead of modifying the real system files.
I have looked around but did not find a sufficient explanation as to how it actually works. How is the root access gained and maintained? What exactly is the role of the boot partition and if it integrates with the system partition how it does it?
A really detailed description of how it works lacks from everywhere I searched so it would be really highly appreciated.<issue_comment>username_1: Magisk provides root access by providing a working "root" binary mounted at `/sbin/magisk`. Any application that tries to run this binary will bring up Magisk to grant them root access, which is in turn managed and maintained by the Magisk Manager application.
The `/boot` partition is a separate partition that stores some data required to boot the system. It includes initialization of some very low-level mechanisms like the Linux kernel, device drivers, file systems etc, before the upper-layer Android OS is brought up. It is separated in a way such that Linux-level stuff is stored in it while Android-level stuff (SystemUI, Settings etc.) is stored in the `/system` partition. **Modifying `/boot` does not count as modifying `/system`**, the latter of which is what DM-verity and AVB usually checks.
And Magisk patches and integrates itself into **the `/boot` partition**, so it doesn't touch the system partition at all. It uses a technique called ["a bind mount"](https://unix.stackexchange.com/q/198590/211239) to change the content of system files that other programs see, without actually modifying the underlying filesystem beneath the system partition (so "real" files are left intact).
Upvotes: 3 <issue_comment>username_2: Most part of your question is covered in [Magisk Documentation](https://topjohnwu.github.io/Magisk/). I will quote one of my [previous answers](https://android.stackexchange.com/a/207902/218526) to a different question, with some *unnecessary* details :)
**PREREQUISITES:**
To have a comprehensive understanding of how Magisk works, one must have basic understanding of:
* Discretionary Access Control ([DAC](https://forum.xda-developers.com/showpost.php?p=77437874&postcount=6))
* User identifiers (`[ESR]UID`), `set-user-ID`
* [Linux Capabilities](http://man7.org/linux/man-pages/man7/capabilities.7.html) (process and file) which provide a fine-grained control over superuser permissions
* Mandatory Access Control ([MAC](https://www.linux.com/news/securing-linux-mandatory-access-controls))
* [SELinux on Android](https://source.android.com/security/selinux/)
* Mount namespaces, Android's usage of namespaces for [Storage Permissions](https://source.android.com/devices/storage/#runtime_permissions)
* Bind mount
* Android boot process, partitions and filesystems
* Android `init` services (the very first process started by kernel)
* [\*.rc files](https://android.googlesource.com/platform/system/core/+/master/init/README.md)
* Structure of `boot` partition (kernel + DTB + ramdisk), [Device Tree Blobs](https://source.android.com/devices/architecture/dto), DM-Verity ([Android Verified Boot](https://android.googlesource.com/platform/external/avb)), Full Disk Encryption / File Based Encryption ([FDE/FBE](https://source.android.com/security/encryption/)) etc.
**WHAT IS ROOT?**
Gaining root privileges means to run a process (usually shell) with UID zero (0) and all of the Linux capabilities so that the privileged process can bypass all kernel permission checks.
Superuser privileges are gained usually by executing a binary which has either:
* [set-user-ID-root](https://en.wikipedia.org/wiki/Setuid) (SUID) bit set on it
This is how `su` and `sudo` work on Linux in traditional UNIX DAC. Non-privileged users execute these binaries to get root rights.
* Or [File capabilities](https://wiki.archlinux.org/index.php/Capabilities#Implementation) (`setgid,setuid+ep`) set on it
This is the less common method used.
In both cases the calling process must have all capabilities in its Bounding Set (one of the 5 capabilities categories a process can have) to have real root privileges.
**HOW ANDROID RESTRICTS ROOT ACCESS?**
Up to Android 4.3, one could simply execute a `set-user-ID-root` `su` binary to elevate its permissions to root user. However there were a number of [Security Enhancements in Android 4.3](https://source.android.com/security/enhancements/enhancements43) which broke this behavior:
* Android switched to file capabilities instead of relying on `set-user-ID` type of security vulnerabilities. A more secure mechanism: [Ambient capabilities](https://source.android.com/devices/tech/config/ambient) has also been introduced in Android Oreo.
* System daemons and services can make use of file capabilities to gain process capabilities (see under [Transformation of capabilities during execve](http://man7.org/linux/man-pages/man7/capabilities.7.html)) but apps can't do that either because application code is executed by `zygote` with process control attribute `NO_NEW_PRIVS`, ignoring `set-user-ID` as well as file capabilities. SUID is also ignored by mounting `/system` and `/data` with `nosuid` option for all apps.
* UID can be switched only if calling process has [SETUID/SETGID](https://android.googlesource.com/kernel/common/+/refs/heads/android-4.19/include/uapi/linux/capability.h#148) capability in its Bounding set. But Android apps are made to run with all capabilities already dropped in all sets using process control attribute `CAPBSET_DROP`.
* Starting with Oreo, apps' ability to change UID/GID has been further suppressed by [blocking certain syscalls](https://android.googlesource.com/platform/bionic/+/android-9.0.0_r33/libc/SECCOMP_BLACKLIST_APP.TXT#31) using [seccomp filters](https://android-developers.googleblog.com/2017/07/seccomp-filter-in-android-o.html).
Since the standalone `su` binaries stopped working with the release of Jelly Bean, [a transition was made to su daemon mode](https://chainfire.eu/articles/768). This daemon is launched during boot which handles all superuser requests made by applications when they execute the special `su` binary ([1](https://forum.xda-developers.com/showpost.php?p=23432367&postcount=9)). `install-recovery.sh` (located under `/system/bin/` or `/system/etc/`) which is executed by a pre-installed init service `flash_recovery` (useless for adventurers; updates recovery after an OTA installation) was used to launch this SU daemon on boot.
The [next major challenge](https://www.xda-developers.com/supersu-beta-lollipop-root-stock-kernel/) was faced when SELinux was set strictly `enforcing` with the release of Android 5.0. [flash\_recovery](https://android.googlesource.com/platform/system/core/+/refs/tags/android-5.0.0_r1/rootdir/init.rc#597) service was added to a [restricted SELinux context](https://android.googlesource.com/platform/external/sepolicy/+/refs/tags/android-5.0.0_r1/install_recovery.te): `u:r:install_recovery:s0` which stopped the *unadulterated* access to system. Even the UID 0 was bound to perform a very limited set of tasks on device. So the only viable option was to start a new service with unrestricted *SUPER CONTEXT* by patching the SELinux policy. That's what was done (temporarily for Lollipop ([2](https://www.xda-developers.com/supersu-beta-lollipop-root-stock-kernel/), [3](https://chainfire.eu/articles/904)) and then permanently for Marshmallow) and that's what Magisk does.
**HOW MAGISK WORKS?**
Flashing Magisk usually requires a device with unlocked bootloader so that `boot.img` could be dynamically modified from custom recovery ([4](https://topjohnwu.github.io/Magisk/install.html#custom-recovery)) or a pre-modified `boot.img` ([5](https://topjohnwu.github.io/Magisk/install.html#boot-image-patching)) could be flashed/booted e.g. from `fastboot`.
As a side note, it's possible to start Magisk on a running ROM if you somehow get root privileges using some exploit in OS ([6](https://topjohnwu.github.io/Magisk/deploy.html#exploits)). However most of such security vulnerabilities have been fixed over time ([7](https://android.stackexchange.com/a/205707/218526)).
Also due to some vulnerabilities at SoC level (such as Qualcomm's [EDL mode](https://www.xda-developers.com/exploit-qualcomm-edl-xiaomi-oneplus-nokia/)), locked bootloader can be hacked to load modified boot / recovery image breaking the [Chain of Trust](https://www.lineageos.org/engineering/Qualcomm-Firmware/). However these are only exceptions.
Once the device boots from patched `boot.img`, a fully privileged Magisk daemon (with UID: 0, full capabilities and unrestricted SELinux context) runs from the very start of booting process. When an app needs root access, it executes Magisk's `(/sbin/)su` binary (worldly accessible by DAC and [MAC](https://github.com/topjohnwu/Magisk/blob/v19.3/native/jni/magiskpolicy/rules.cpp#L168)) which doesn't change UID/GID on its own, but just connects to the daemon through a UNIX socket ([8](https://github.com/topjohnwu/Magisk/blob/v19.3/native/jni/su/su.cpp#L187)) and asks to provide the requesting app a root shell with all capabilities. In order to interact with user to grant/deny `su` requests from apps, the daemon is hooked with the `Magisk Manager` app that can display user interface prompts. A database (`/data/adb/magisk.db`) of granted/denied permissions is built by the daemon for future use.
**Booting Process:**
Android kernel starts `init` with SELinux in `permissive` mode on boot (with a few [exceptions](https://android.googlesource.com/platform/system/core/+/d34e407aeb5898f19d4f042b7558420bbb3a1817)). `init` loads `/sepolicy` (or [split policy](https://android.googlesource.com/platform/system/core/+/android-9.0.0_r42/init/selinux.cpp#24)) before starting any services/daemons/processes, sets it `enforcing` and then switches to its own context. From here afterwards, even `init` isn't allowed by policy to revert back to permissive mode ([9](https://android.googlesource.com/platform/system/sepolicy/+/refs/tags/android-9.0.0_r34/public/domain.te#343), [10](https://android.googlesource.com/platform/system/sepolicy/+/refs/tags/android-9.0.0_r34/public/kernel.te#30)). Neither the policy can be modified even by root user ([11](https://android.googlesource.com/platform/system/sepolicy/+/refs/tags/android-9.0.0_r34/public/domain.te#339)). Therefore Magisk replaces `/init` file with a custom `init` which patches the SELinux policy rules with [*SUPER CONTEXT*](https://github.com/topjohnwu/Magisk/blob/v19.3/native/jni/init/rootfs.cpp#L197) (`u:r:magisk:s0`) and defines the [service](https://github.com/topjohnwu/Magisk/blob/v19.3/native/jni/init/magiskrc.h) to launch Magisk daemon with this context. Then the original `init` is executed to continue booting process ([12](https://source.android.com/devices/tech/ota/nonab/block)).
**Systemless Working:**
Since the `init` file is built in `boot.img`, modifying it is unavoidable and `/system` modification becomes unnecessary. That's where the `systemless` term was coined ([13](https://www.xda-developers.com/chainfire-releases-root-for-android-6-0-without-modifying-system/), [14](https://topjohnwu.github.io/Magisk/deploy.html#systemless)). Main concern was to *make OTAs easier - re-flashing the `boot` image (and recovery) is less hassle than re-flashing `system`*. [Block-Based OTA](https://source.android.com/devices/tech/ota/nonab/block) on a modified `/system` partition will fail because it *enables the use of `dm-verity` to cryptographically sign the `system` partition*.
**System-as-root:**
On newer devices using [system-as-root](https://source.android.com/devices/bootloader/system-as-root) kernel doesn't load `ramdisk` from `boot` but from `system`. So `[system.img]/init` needs to be replaced with Magisk's `init`. Also Magisk modifies `/init.rc` and places its own files in `/root` and `/sbin`. It means `system.img` is to be modified, but Magisk's approach is not to touch `system` partition.
On `A/B` devices during normal boot `skip_initramfs` option is passed from bootloader in kernel cmdline as `boot.img` contains `ramdisk` for recovery. So Magisk patches kernel binary to always ignore `skip_initramfs` i.e. boot in recovery, and places Magisk `init` binary in recovery `ramdisk` inside `boot.img`. On boot when kernel boots to recovery, if there's no `skip_initramfs` i.e. user intentionally booted to recovery, then Magisk `init` simply executes recovery `init`. Otherwise `system.img` is mounted at `/system_root` by Magisk `init`, contents of `ramdisk` are then copied to `/` cleaning everything previously existing, files are added/modified in rootfs `/`, `/system_root/system` is bind-mounted to `/system`, and finally `[/system]/init` is executed ([15](https://forum.xda-developers.com/apps/magisk/pixel-2-pixel-2-xl-support-t3697427/post74361728), [16](https://github.com/topjohnwu/Magisk/blob/v19.3/native/jni/init/early_mount.cpp#L118)).
However things have again changed with Q, now `/system` is mounted at `/` but the files to be added/modified like `/init`, `/init.rc` and `/sbin` are overlaid with bind mounts ([17](https://twitter.com/topjohnwu/status/1143799584801447937)).
On `non-A/B` `system-as-root` devices, Magisk needs to be installed to recovery `ramdisk` in order to retain systemless approach because `boot.img` contains no `ramdisk` ([18](https://topjohnwu.github.io/Magisk/install.html#magisk-in-recovery)).
**Modules:**
An additional benefit of `systemless` approach is the usage of `Magisk Modules`. If you want to place some binaries under `/system/*bin/` or modify some configuration files (like `hosts` or `dnsmasq.conf`) or some libraries / framework files (such as required by mods like `XPOSED`) in `/system` or `/vendor`, you can do that without actually touching the partition by making use of [Magic Mount](https://topjohnwu.github.io/Magisk/details.html#magic-mount) (based on bind mounts). Magisk supports adding as well removing files by overlaying them.
**MagiskHide:** ([19](https://topjohnwu.github.io/Magisk/tutorials.html#best-practices-for-magiskhide)), removed in v24.0 ([64](https://topjohnwu.github.io/Magisk/releases/24000.html))
Another challenge was to hide the presence of Magisk so that apps won't be able to know if the device is rooted. Many apps don't like rooted devices and may stop working. Google was one of the major affectees, so they introduced **SafetyNet** as a part of [Play Protect](https://developers.google.com/android/play-protect/client-protections) which runs as a GMS (Play Services) process and tells apps (including their own `Google Pay`) and hence their developers that *the device is currently in a non-tampered state* ([20](https://koz.io/inside-safetynet/)).
Rooting is one of the many possible tempered states, others being un-Verified Boot, unlocked bootloader, CTS non-certification, custom ROM, debuggable build, `permissive` SELinux, ADB turned on, some [*bad*](https://github.com/topjohnwu/Magisk/blob/v20.0/native/jni/magiskhide/hide_policy.cpp#L12) properties, presence of Lucky Patcher, Xposed etc. Magisk uses some tricks to make sure that most of these [tests](https://developer.android.com/training/safetynet/attestation.html#potential-integrity-verdicts) always pass, though apps can make use of other Android APIs or read some files directly. Some modules provide additional obfuscation.
Other than hiding its presence from Google's SafeyNet, Magisk also lets users hide root (`su` binary and any other Magisk related files) from any app, again making using of bind mounts and mount namespaces. For this, `zygote` has to be continuously watched for newly forked apps' VMs.
However it's a tough task to really hide rooted device from apps as new techniques evolve to detect Magisk's presence, mainly from `/proc` or other filesystems. So a number of *quirks are done to properly support hiding modifications from detection*. Magisk tries to remove all traces of its presence during booting process ([21](https://topjohnwu.github.io/Magisk/details.html#resetprop)).
---
Magisk also supports:
* **Disabling `dm-verity`** and **`/data` encryption** by modifying `fstab` (in `ramdisk`, `/vendor` or `DTB`). See [How to disable dm-verity on Android?](https://android.stackexchange.com/a/215907/218526)
* **Changing read-only properties** using [resetprop](https://topjohnwu.github.io/Magisk/details.html#resetprop) tool, **Modifying `boot.img`** using [magiskboot](https://topjohnwu.github.io/Magisk/tools.html#magiskboot) and **Modifying SELinux policy** using [magiskpolicy](https://topjohnwu.github.io/Magisk/tools.html#magiskpolicy).
* **Executing boot scripts** using `init.d`-like mechanism ([22](https://topjohnwu.github.io/Magisk/guides.html#boot-scripts)).
That's a brief description of Magisk's currently offered features (AFAIK).
---
**FURTHER READING:**
* [How does SuperSU provide root privilege?](https://android.stackexchange.com/a/217532/218526)
* [How to manually root a phone?](https://android.stackexchange.com/a/217157/218526)
* [Android Partitions and Filesystems](https://forum.xda-developers.com/android/general/info-android-device-partitions-basic-t3586565)
* [Android Boot Process](https://forum.xda-developers.com/android/general/info-boot-process-android-vs-linux-t3785254)
* [What special privileges “/system/xbin/su” does have w.r.t. root access?](https://android.stackexchange.com/a/207902/218526)
* [What sepolicy context will allow any other context to access it?](https://android.stackexchange.com/a/209374/218526)
Upvotes: 7 [selected_answer] |
2019/06/05 | 600 | 1,958 | <issue_start>username_0: I have a few old devices which I want to put on LineageOS. This time it's about a **Samsung Galaxy S4 mini** (GT-I9195, serranoltexx). But the [official LineageOS website shows them as not supported anymore](https://wiki.lineageos.org/devices/serranoltexx/install).
You basically are required to build the ROM for yourself, but this is beyond my knowledge and commitment.
I already have flashed successfully exactly such a device with LineageOS in the past, but do not have the ZIP around anymore.
**Why does LineageOS not keep the latest versions of their ROM's around for download? Where to get a trustworthy copy?**
Note: The same happened with cyanogenmod earlier. The did not store older ROM's too.
Note2: [These devices were still on sale on recycling shops recently](https://webcache.googleusercontent.com/search?q=cache:PhMjUJx3xlMJ:https://www.benno-shop.ch/peripherie/smartphone/samsung/2692/samsung-galaxy-s4-mini-8gb-android-4%20&cd=1&hl=en&ct=clnk&gl=ch&client=firefox-b-d).<issue_comment>username_1: You can try [XDA-Developers](https://forum.xda-developers.com/galaxy-s4-mini/orig-development/rom-lineageos-16-0-s4-mini-t3833063) to download Lineage OS for your device. But the ROMs posted are not official versions and might not always work as smoothly as the official. The version posted on the link is Lineage OS 16.
Upvotes: 2 <issue_comment>username_2: To answer the question (getting old builds) directly - there are people who foresaw the need and stashed some of the builds elsewhere: [1](https://files.moskvich.xyz/LineageOS), [2](https://archive.org/download/LINEAGEOS_EXTRAS_11272018).
As for the reason to it, it's right in their [FAQ](https://wiki.lineageos.org/faq.html#where-can-i-find-the-last-build-for-xxx-device-before-support-was-droppedits-lineageos-version-was-deprecated). The main reason would be to save bandwidth/storage, since the project is a non-profit.
Upvotes: 4 [selected_answer] |
2019/06/06 | 409 | 1,466 | <issue_start>username_0: I feel like I'm not seeing something obvious.
I have several apps installed via the Google Play store on an Android device. I want to send links via SMS to the appropriate Google Play store pages so the recipient can click on the links, have them open in the Google Play store app, and then decide if they want to install them.
This seems like obvious functionality, but I'm not seeing any way to do it in Android Nougat.
How can this be accomplished without installing a separate app for the task?<issue_comment>username_1: You can try [XDA-Developers](https://forum.xda-developers.com/galaxy-s4-mini/orig-development/rom-lineageos-16-0-s4-mini-t3833063) to download Lineage OS for your device. But the ROMs posted are not official versions and might not always work as smoothly as the official. The version posted on the link is Lineage OS 16.
Upvotes: 2 <issue_comment>username_2: To answer the question (getting old builds) directly - there are people who foresaw the need and stashed some of the builds elsewhere: [1](https://files.moskvich.xyz/LineageOS), [2](https://archive.org/download/LINEAGEOS_EXTRAS_11272018).
As for the reason to it, it's right in their [FAQ](https://wiki.lineageos.org/faq.html#where-can-i-find-the-last-build-for-xxx-device-before-support-was-droppedits-lineageos-version-was-deprecated). The main reason would be to save bandwidth/storage, since the project is a non-profit.
Upvotes: 4 [selected_answer] |