date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2015/11/16 | 7,256 | 27,153 | <issue_start>username_0: I have LG G Pad. I have been trying to update Google Play Services since October. It always fails during installation. Many of my apps are not working such as YouTube, Gmail, etc.
I tried clearing cache, and I also did it with Play Store too. I restarted the tablet after clearing cache and still to no avail can't update Play services. My LG G4 phone has no problem.
What can I do?<issue_comment>username_1: You should first build an older version of libsepol from the AOSP code (like the one corresponding the 6.0 version), then link sepolicy-inject, dispol, etc against it. This recipe worked for me on debian jessie:
```
cd /to/the/aosp/dir
[repo init, etc]
repo sync external/selinux
cd external/selinux
git checkout android-6.0.0_r1^
cd libsepol
make
libsepol=`pwd`
cd /to/the/selinux-inject-source-dir
make LIBDIR=$libsepol
```
unlike the sepolicy-inject linked against the system's libsepol, this one works fine with the /sepolicy from the 6.0 image included in the android sdk:
```
$ sepolicy-inject -Z shell -P /tmp/sepolicy -o /tmp/sepolicy
libsepol.policydb_read: policydb version 30 does not match my version range 15-29
error(s) encountered while parsing configuration
Could not load policy
$ ./sepolicy-inject -Z shell -P /tmp/sepolicy -o /tmp/sepolicy
libsepol.policydb_index_others: security: 1 users, 2 roles, 525 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 4767 rules, 0 cond rules
```
For the tools included in the selinux distribution, the trick is to build them with the same DESTDIR:
```
cd libsepol
make DESTDIR=/some/dir install
cd ../checkpolicy
make DESTDIR=/some/dir
# here you have a working 'dispol' in the 'test' subdir
```
Upvotes: 2 <issue_comment>username_2: You should try to apply [this patch](https://github.com/chenxiaolong/DualBootPatcher/blob/master/thirdparty/libsepol/0001-Support-Android-M-and-official-v30-sepolicy-format.patch) to the sources of libsepol, and then incrementaly rebuild all that stuff. It worked for me in the sam issue
You can try to use libsepol clone with applied patch from this repo <https://metizik@bitbucket.org/metizik/selinux_tools.git>
I use it to build dispol under Windows, and it works to me fine (still notice that I'm using cygwin for this)
Upvotes: 1 <issue_comment>username_3: To the people facing the issue with:
```
policydb version 30 does not match my version range 15-29
```
while working with AOSP code.
Assuming, your AOSP code is checked out to **~/android/source** dir:
```
cd ~/android/source
source build/envsetup.sh
export ANDROID_BUILD_TOP=$(pwd)
```
And now you are free to use bundled **audit2allow** utility:
```
./external/selinux/prebuilts/bin/audit2allow
```
**P.S.** Also, I would like to address comment [Examine android (v30) selinux policy](https://android.stackexchange.com/questions/128965/examine-android-v30-selinux-policy/146329#comment175686_137838)
>
> Sesearch dies looking for the include file (from within another policy.h file). Do you know which module contains apol?
>
>
>
Building selinux toolkit from sources <https://github.com/SELinuxProject/selinux> is not very trivial (unless you are using Fedora). On Ubuntu, you need to install (assuming you've already installed basic dev tools like bison and C compiler) **libglib2.0-dev, libcap-ng-dev, xmlto, libsemanage1-dev, libustr-dev, libaudit-dev, libsepol1-dev**
But at the end I've still failed to compile it because of <https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/793155> and have no idea how to resolve it
Upvotes: 1 <issue_comment>username_4: First of all, I must admit that I fully agree with your *"I've found this shockingly hard to do"* statement. Google has designed Android mainly from a consumer perspective, and not for power users. The result is that, as soon as you want to do something outside of using the latest Facebook app or playing with Candy Crush, you very quickly find yourself back in realm of early-2000 Linux, when a developer-like knowledge was required to change what should be simple settings. I believe that the situation will fastly evolve as Android system gets more mature, but for now we have to do with what we have got...
As you said, there are two reasons why it is necessary to compile your own SELinux toolset:
* The system provided toolset is usually a version behind. While Android's SELinux relies on policy DB version 30, current Linux boxes usually handle only version up to 29.
* Even if it would be more recent it would not help, in fact building SELinux from [upstream code](https://github.com/SELinuxProject/selinux) (which is easilly done, at least on Fedora machines following upstream recommendations) effectively allows the system to handle policy DB version 30, however Android's SELinux has been heavilly modified ([Google documentation](https://android.googlesource.com/platform/external/libselinux/+/master/README.android) highlights a few modifications) so trying to handle Android's SELinux fails due to syntax and parsing errors.
So, to keep on the Android's SELinux analysis quest, we will have to put our hands in the dirt... in the cleanest possible way:
* First we will setup a sane environment,
* Once this is done we will compile Android's SELinux libraries and first tools,
* On top of them we will build SELinux tools,
* We will finish by adding a few supplementary utilities.
Setup a proper environment
==========================
Environment properties
----------------------
The cleanest recommended, an possibly maybe only reliably working way is to dedicate a environment to your Android work:
* A virtual machine is perfectly fine (if not the best option). Prefer to use a VMware one since you will have to connect your phone through USB to the guest system. The free alternative Qemu doesn't seem to handle such task very well. I did not try with other virualization software.
* It will need to be a 64 bits system, otherwise the code will simply not compile due to integers being of the wrong size.
* It is *strongly* recommended, possibly mandatory, to use a Ubuntu system. Feel free to use Xubuntu instead if you prefer XFCE's lighter desktop environment, this does not change the system's core and available package and will have no impact on your Android related work (whatever I say about Ubuntu in this procedure also applies to Xubuntu). You may find in Android's SELinux source tree some ReadMe files recommending the use of Fedora instead, these files are inherited from upstream NSA's SELinux project and their content do not necessarily match Google's Android.
* The exact version of Unbuntu to use depends on the version of Android you want to build. For Android 6.0, Ubuntu 14.04 (Trusty) is recommended. Check [Google requirements page](https://source.android.com/source/requirements.html) for more information.
* You will need plenty of disk space (at least 50GB if you plan only SELinux-related investigation, at least 100GB if you plan for a complete build of Android). CPU and memory are less relevant, they only impact time for a full build and will have no real impact for SELinux related tasks.
Using Ubuntu has two main advantages:
* By using the recommended system, you are working in a well-known and well-tested environment: system libraries, tools and packages are at the version and location expected by the project.
* And more specifically in our current case: Ubuntu itself relies on AppArmor which is a SELinux alternative, it does not use SELinux. The good news is that you will therefore be able to install Android's SELinux tools and binaries system-wide without risking to alter system reliability.
Environment installation procedure
----------------------------------
You can install Ubuntu the traditional way by starting from a full-fledged live-DVD, but a faster alternative is to use a netboot install (textmode install) and select the desktop environment you prefer at the end. Doing so will save you the initial update time by directly installing up-to-date packages version instead of first installing obsolete ones, then asking to apply 389 pending updates on the first boot.
The ISO for Ubuntu/Xubuntu 14.04 (same ISO) netboot installer is [available here](http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot).
To skip VMware's troublesome "Easy Install" feature, it's a good habit to start by selecting the *"I will install the operating system later"* option.
Be sure to select *Linux*, then *Ubuntu 64 bits* as guest OS.
The VM will need the following ressources:
* Mandatory: disk space must be **at the very least** 40GB (the default 20 GB will **not** be enough, the source code alone takes more space than that), higher is recommended. A full build requires a 100 GB disk minimum, this is the value I usually take. Do not forget that this setting is just a maximum limit: the actual size taken by the VM grows dynamically with guest's requests.
* Facultative: Increase RAM from 1024 to at least 2048 or higher (depends on your host capacity, I use 4096),
* Facultative: Increase the number of processor cores from 1 to 2 or higher (depends on your host capacity, I use 3).
* The CD-Rom must point to the installation ISO file.
* You may want to switch USB from the default 1.1 to 2.0 as the former may give warnings when you connect your device. Depending on your usage, you can also safely uncheck *"Automatically connect new USB devices"* and *"Share Bluetooth devices with the virtual machine"*.
* Depending on your environment, you may also need to tweak display settings (disable 3D, enforce a screen size).
***Attention:***
* If you choosed the netboot install, do not forget to select your desktop environment (*Ubuntu desktop* or *Xubuntu desktop*) when reaching the *Software selection* screen, or you will end-up with a minimal text-only environment!
* Upon first boot, **refuse** to upgrade to the latest release: the whole point here is to stay in 14.04!
Upon first boot, one of the first you may want to do is install Linux guest tools:
```
sudo apt-get install open-vm-tools
```
This packet put boot-time triggers, its installation will therefore be complete only after a guest restart.
Fetch Android source code
=========================
While similar, the procedure details depends on the chosen ROM:
* For CyanogenMod, [search for your device](https://wiki.cyanogenmod.org/w/Devices) (select the vendor first) then click on the *"How to build CyanogenMod"* link to get instruction adapted for your device.
* For AOSP, follow the procedure which [starts here](https://source.android.com/source/initializing.html).
It can be worth noting that CyanogeMod bundles in its source tree a tool allowing you to unpack `boot.img` files. To say it differently, CyanogenMod provides you a tool which will allow you to access the `sepolicy` file stored in devices and ROM archives. Google's AOSP does not provide such tool, so if you have no other imperative using CyanogenMod's source tree may be the most convenient choice, otherwise you will have to install it appart (which is quick and easy to do, so no worry here).
Here I'm following CyanogenMod 13.0 (Android 6.0) procedure. Explanation on the commands used is available on the pages linked above. Please read them, the typescript below is given only for reference purposes.
***Tip:*** While I use `apt-get` in this post to stick to the lowest common denominator and keep everybody happy, you may prefer to use `aptitude` instead since it will take care of the dependencies in a better way (when removing a package which required the installation of some dependencies, these dependencies will be removed too, leaving your system cleaner). AFAIK the `aptitude` command must be installed in Ubuntu but is available by default on Xubuntu.
```
sudo apt-get install bison build-essential curl flex git gnupg gperf \
libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 \
libxml2-utils lzop maven openjdk-7-jdk pngcrush schedtool squashfs-tools \
xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev \
lib32readline-gplv2-dev lib32z1-dev
mkdir -p ~/bin
mkdir -p ~/android/system
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod u+x ~/bin/repo
cd ~/android/system/
git config --global user.name "<NAME>"
git config --global user.email "<EMAIL>
repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
repo sync
# Coffee time: around 20GB are being downloaded, this may take several hours.
source ./build/envsetup.sh
breakfast
```
Now you have a clean and nearly complete source tree. The proprietary blobs are
missing, but you don't need them for SELinux related tasks.
***Tip:*** Fetching the sources is a tedious process, it may be worth to do a snapshot or backup of your VM now.
Compile and install Android's SELinux toolset and libraries
===========================================================
Now the funny part of the trip begins ;) !
Until now the procedure should have been pretty straightforward. The goal was mainly to ensure that you have the very same environment as me. If you do, the sequel should remain straightforward too.
Under the hood Google's do not hesitate to apply deep changes to Android's source code between versions, therefore the exact compilation steps will be quite certainly version dependent (for instance AOSP master shows that the `sepolicy/` directory [will be moved](https://android.googlesource.com/platform/external/sepolicy/+/c81ebe522c66dd6e6ef4419ecc7737e2e1740d59)).
I will first share my exact procedure to compile and install Android's SElinux libraries and toolset, but in order to keep the relevance of this post over time I will then add some notes about the generic approach to follow in order to solve most compilation issues.
Step-by-step procedure
----------------------
Android's SELinux libraries provide the abstraction layer which will allow upper layer software to deal with Android-specific SELinux policy files. We will therefore need to compule and install them first (which, in itself, actually represents the core if the difficulties here, until you've found your way).
We will then be able to build and install SELinux tools. As we will see, fortunately these do not need to be Android specific, they only need to match the SELinux library version.
This procedure has been tested both using CyanogenMod and AOSP source code trees.
### Compile and install Android SELinux libraries and first tools
First install dependances:
```
sudo apt-get install libapol-dev libaudit-dev libdbus-glib-1-dev libgtk2.0-dev \
libustr-dev python-dev python-networkx swig xmlto
```
In this post the variable `$ANDROID_BUILD_TOP` stores your source location (the directory where you issued the `repo sync` command). Feel free to change its name as you like.
```
ANDROID_BUILD_TOP=~/android/system
cd $ANDROID_BUILD_TOP
source ./build/envsetup.sh
```
By default the policy core utils compilation fails due to `restorecond`'s Makefile being unable to locate some libraries. You have to edit this Makefile in order to use paths dynamically generated by `pkg-config` instead of hardcoded ones (do not confuse backticks with single quotes!):
```
sed -i 's/^CFLAGS ?= -g -Werror -Wall -W$/& `pkg-config --cflags --libs dbus-1 gtk+-2.0`/' \
$ANDROID_BUILD_TOP/external/selinux/policycoreutils/restorecond/Makefile
```
Feel free to open the Makefile with some text editor to ensure that the modification has been correctly taken into account.
And now compile and install:
```
cd $ANDROID_BUILD_TOP/external/bzip2/
make -f Makefile-libbz2_so
sudo make install
cd $ANDROID_BUILD_TOP/external/libcap-ng/libcap-ng-0.7/
./configure
make
sudo make install
cd $ANDROID_BUILD_TOP/external/selinux/
make -C ./libsepol/
sudo make -C /libsepol/ install
EMFLAGS=-fPIC make -C ./libselinux/
sudo make -C ./libselinux/ install
make -C ./libsemanage/
sudo make -C ./libsemanage/ install
make
sudo make install
make swigify
sudo make install-pywrap
sudo cp ./checkpolicy/test/{dispol,dismod} /usr/bin/
```
***Attention:*** Do not miss the `EMFLAGS=-fPIC` environment variable setting when building `libselinux`. It will not generate any error yet, but in the next step you will be unable to build SETools. In case you missed it or did anything else wrong, simply issue a `make clean` and restart your compilation.
### Compile and install SELinux tools
SELinux tools are provided in a prebuilt form which includes:
* Python scripts (and their shell script wrappers) within the `$ANDROID_BUILD_TOP/external/selinux/prebuilts/bin/` directory
* Python packages (including `*.o` compiled files) below `$ANDROID_BUILD_TOP/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/`.
I would have expected the source code of these tools to be available below `$ANDROID_BUILD_TOP/external`, but it isn't. Actually, I did not find any place where Google shared the exact version of SETools they used (FYI the GPL only mandates to share the code if it has been modified), so we will have to guess and try and do as best as we can.
The tools themselves are Python scripts, this a new evolution from SETools 4 (in SETools 3, commands like `sesearch` were binary executable coded in C). However, the tools themselves still show a version of 3.3.8:
```
$ $ANDROID_BUILD_TOP/external/selinux/prebuilts/bin/sesearch --version
3.3.8
```
So my guess is that Google took some early development snapshot from SETools 4. Until 4.0.0 beta SETools relied on `libsepol` versoin 2.4, with 4.0.0 release they started to rely on the version 2.5 of the library which is not compatible with the version of SELinux bundled in Android 6.0 (you can try to compile this, it will just fail).
So the wisest choice seems to go with SETools 4.0.0 Beta.
Install supplementary dependencies:
```
sudo apt-get install python-setuptools
```
Download and extract the source code:
```
cd ~/android/
wget https://github.com/TresysTechnology/setools/archive/4.0.0-beta.tar.gz
tar xzf 4.0.0-beta.tar.gz
cd ./setools-4.0.0-beta/
```
Due to [a bug](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488274) affecting Flex 2.5, we need to remove `-Wredundant-decls` from compiler's flags:
```
sed -i '/-Wredundant-decls/d' ./setup.py
```
And finally compile and install:
```
python ./setup.py build
sudo python ./setup.py install
```
Generic procedure (or "How to unstuck yourself")
------------------------------------------------
In case the procedure above did not work in your case, here is a higher level view on how to try to progress.
There is sadly no magic (and no helper :( ) around here: the only way to get this code to compile is the classical yet dreaded cyclic "try-and-see" approach.
Try to compile a first time, it will most likely fail due to some `*.h` file being not found:
1. Search in Android's `external/` directory:
```
find $ANDROID_BUILD_TOP/external -name filename.h
```
If you find the requested file, then this means that a specific version of the corresponding library or tool has been bundled within Android source code. You should therefore not try to install it from Ubuntu's package system, but instead compile and install the version bundled in Android source code.
Be aware that this goes against general advice you may found on forums: *"Your compilation fails because of this library missing? Install this package then it will be fine!"*, by doing this you will most probably just go into worse issue: if a specific version is bundled, it is most probably because a specific version is needed (due to compatibility issues or because this version contains specific changes from Google).
BTW, if you are wondering: of course this library or tool may also have dependencies raising errors due to some `*.h` file being not found, and yes you should apply this very same cyclic "try-and-see" approach.
2. Search systemwide:
```
find / -name filename.h 2>/dev/null
```
If you find "missing" the file to be already present in your system in some standard shared library location, this mean that this dependency is probably already met in your environment but the Makefile who raised the error is too dumb to find it.
If you manually directly call this Makefile, it may be possible for you to set some environment variable fixing this (`LIBDIR=/usr/lib make` for instance), otherwise you may need to modify the Makefile itself (the `pkg-config` command may be of precious help to automatically generate missing build parameters).
3. Search in the packaging system:
```
apt-cache search filename-dev
```
Where `filename-dev` represents the name of the missing file in lowercase with the `.h` extension replaced by the `-dev` suffix (for instance, if `Python.h` is not found, search for `python-dev`). Some tweaking in the exact name may be needed to find the right package.
4. If you remain stuck and that even a quick search on Internet did not provide any clear answer, then `apt-file` will be your best friend. `apt-file` is not installed by default, you need to install it and generate its database:
```
sudo apt-get apt-file
sudo apt-file update
```
`apt-file` allows you to search for packages (even uninstalled ones) providing a particular file. To avoid having too much result, I recommend to associate it with `grep` as below:
```
apt-file search filename.h | grep -w filename.h
```
If there is a package in Ubuntu's repository providing this file, then `apt-file` should be able to find it.
Once you've found the right package, install it using `apt-get install packagename` where `packagename` is your package's name.
***Tip:*** If you screwed something on your system, the command to reinstall a package is this one: `apt-get reinstall pkg_name`. It will work even when a classical remove & install would not be possible due to breaking dependencies (which is most likely for system's libraries).
Supplementary tools
===================
At this step, you should now have a clean environment allowing you to investigate Android's SELinux rules both in compiled and source formats.
However, most chances are that at the end of your investigation you will want to take some action. In its current shape, your environment will not permit you to modify a device's `sepolicy` file. In fact, this file cannot be easilly replaced: it is part of the device root directory, and the content of the root directory is extracter at boot time from a RAM disk file, which in turn is stored in the device's boot image.
So you still miss two things before your environment is complete:
* A way to access and modify the device's boot image,
* A way to modify its `sepolicy` file.
Fortunately, these are precisely the subject of the two last sections of this post! :)
Fetch and update device's boot image
------------------------------------
Tools to fetch and update devices' boot image can be used for a wide variety of things apart from SELinux rules tampering. I have therefore created [a dedicated answer](https://android.stackexchange.com/a/154621/107603), please refer to it.
Modify device's SELinux rules
-----------------------------
You have two main possibilities here:
* Build a new `sepolicy` file from the rules in your source tree (search for `.te` files to find them: `find $ANDROID_BUILD_TOP -name \*.te`, they are spread into several directories).
* Modify the `sepolicy` file currently used by the device.
Unless you really need to build your rules from scratch, which is more a development-related task and therefore out-of-scope here, the second choice seems by far the safest one as you are sure that the only changes will be the one your explicitely made.
There has been a project to make a tool allowing you to decompile a `sepolicy` file into a recompilable form, allowing to freely edit rules in between. However this project has been abandonned in proof-of-concept state. You will find all information at the end of [this blog post](https://ge0n0sis.github.io/posts/2015/12/exploring-androids-selinux-kernel-policy/), the rest of the article contains enough details to allow anyone else interested to take over.
The currently recommended way to alter `sepolicy` rules goes another route: by directly modifying the `sepolicy` binary file. [sepolicy-inject](https://bitbucket.org/joshua_brindle/sepolicy-inject) tool allows just that and is actively maintained.
For completeness sake, note that [a fork](https://github.com/phhusson/sepolicy-inject) of this tool exist. It adds a few features, some of them being on the original author's to-do list (like the possibility to remove a rule), don't ask me why they choosed to fork instead of contributing...
To compile and install `sepolicy-inject`, simply proceed as follow:
```
cd ~/android/
git clone https://bitbucket.org/joshua_brindle/sepolicy-inject.git
cd ./sepolicy-inject/
LIBDIR=/usr/lib make
sudo cp ./sepolicy-inject /usr/bin/
```
Use-case example
----------------
Let's say for instance you want to add the autorization matching the following error message:
```
avc: denied { read } for pid=128 comm="file-storage"
path="/data/media/0/path/to/some/file"
dev="mmcblk0p28" ino=811035 scontext=u:r:kernel:s0
tcontext=u:object_r:media_rw_data_file:s0 tclass=file permissive=0
```
You will need to fetch device's boot image, then unpack it to get access to it's `sepolicy` file.
A quick check using `sesearch` shows that there is indeed no allow rule (yet!):
```
$ sesearch -A -s kernel -t media_rw_data_file -c file -p read ./sepolicy
$
```
The command has no output.
Then, use the command below to add the required rule (note the similarity between `sesearch` and `sepolicy-inject` parameters):
```
sepolicy-inject -s kernel -t media_rw_data_file -c file -p read -P ./sepolicy
```
Now we can call back our `sesearch` command:
```
$ sesearch -A -s kernel -t media_rw_data_file -c file -p read ./sepolicy
allow kernel media_rw_data_file:file read;
$
```
`sesearch` output shows that the policy has correctly been updated.
You can now repack the device's `boot.img` file and flash it back to the device. Checking the last modification time of the `/sepolicy` file is an easy way to ensure that your device is now running the newly updated `sepolicy` file.
Conclusion
==========
You should now have a complete environment allowing you to freely inspect and modify Android devices SELinux policies. Enjoy! :)
As a side note, there are also tools allowing to analyze and modify SELinux policy [directly from the device](https://android.stackexchange.com/q/152186/107603).
Upvotes: 3 <issue_comment>username_5: audit2allow, audit2why, and sesearch are all broken with the update AOSP
upstream policy to v.30.
You have to apply patches below and rebuild your Android tree to update policy db. These patched already merged to master branch and available starting from Android N.
<https://android-review.googlesource.com/187140>
<https://android-review.googlesource.com/187111>
Upvotes: 0 |
2015/11/16 | 7,424 | 27,498 | <issue_start>username_0: I am using Moto E(1st Gen.), updated to Lollipop.
Now my internal storage *235mb* free,
[](https://i.stack.imgur.com/MzAEh.jpg)
I try to install **hike** messenger app. Which has only *16.78 mb*,
[](https://i.stack.imgur.com/w79BG.jpg)
But, when I try to install am getting an error message as **insufficient storage**,
[](https://i.stack.imgur.com/XMQ7j.jpg)
When I click view storage,
[](https://i.stack.imgur.com/lFKEv.jpg)
How to solve it ?<issue_comment>username_1: You should first build an older version of libsepol from the AOSP code (like the one corresponding the 6.0 version), then link sepolicy-inject, dispol, etc against it. This recipe worked for me on debian jessie:
```
cd /to/the/aosp/dir
[repo init, etc]
repo sync external/selinux
cd external/selinux
git checkout android-6.0.0_r1^
cd libsepol
make
libsepol=`pwd`
cd /to/the/selinux-inject-source-dir
make LIBDIR=$libsepol
```
unlike the sepolicy-inject linked against the system's libsepol, this one works fine with the /sepolicy from the 6.0 image included in the android sdk:
```
$ sepolicy-inject -Z shell -P /tmp/sepolicy -o /tmp/sepolicy
libsepol.policydb_read: policydb version 30 does not match my version range 15-29
error(s) encountered while parsing configuration
Could not load policy
$ ./sepolicy-inject -Z shell -P /tmp/sepolicy -o /tmp/sepolicy
libsepol.policydb_index_others: security: 1 users, 2 roles, 525 types, 0 bools
libsepol.policydb_index_others: security: 1 sens, 1024 cats
libsepol.policydb_index_others: security: 87 classes, 4767 rules, 0 cond rules
```
For the tools included in the selinux distribution, the trick is to build them with the same DESTDIR:
```
cd libsepol
make DESTDIR=/some/dir install
cd ../checkpolicy
make DESTDIR=/some/dir
# here you have a working 'dispol' in the 'test' subdir
```
Upvotes: 2 <issue_comment>username_2: You should try to apply [this patch](https://github.com/chenxiaolong/DualBootPatcher/blob/master/thirdparty/libsepol/0001-Support-Android-M-and-official-v30-sepolicy-format.patch) to the sources of libsepol, and then incrementaly rebuild all that stuff. It worked for me in the sam issue
You can try to use libsepol clone with applied patch from this repo <https://metizik@bitbucket.org/metizik/selinux_tools.git>
I use it to build dispol under Windows, and it works to me fine (still notice that I'm using cygwin for this)
Upvotes: 1 <issue_comment>username_3: To the people facing the issue with:
```
policydb version 30 does not match my version range 15-29
```
while working with AOSP code.
Assuming, your AOSP code is checked out to **~/android/source** dir:
```
cd ~/android/source
source build/envsetup.sh
export ANDROID_BUILD_TOP=$(pwd)
```
And now you are free to use bundled **audit2allow** utility:
```
./external/selinux/prebuilts/bin/audit2allow
```
**P.S.** Also, I would like to address comment [Examine android (v30) selinux policy](https://android.stackexchange.com/questions/128965/examine-android-v30-selinux-policy/146329#comment175686_137838)
>
> Sesearch dies looking for the include file (from within another policy.h file). Do you know which module contains apol?
>
>
>
Building selinux toolkit from sources <https://github.com/SELinuxProject/selinux> is not very trivial (unless you are using Fedora). On Ubuntu, you need to install (assuming you've already installed basic dev tools like bison and C compiler) **libglib2.0-dev, libcap-ng-dev, xmlto, libsemanage1-dev, libustr-dev, libaudit-dev, libsepol1-dev**
But at the end I've still failed to compile it because of <https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/793155> and have no idea how to resolve it
Upvotes: 1 <issue_comment>username_4: First of all, I must admit that I fully agree with your *"I've found this shockingly hard to do"* statement. Google has designed Android mainly from a consumer perspective, and not for power users. The result is that, as soon as you want to do something outside of using the latest Facebook app or playing with Candy Crush, you very quickly find yourself back in realm of early-2000 Linux, when a developer-like knowledge was required to change what should be simple settings. I believe that the situation will fastly evolve as Android system gets more mature, but for now we have to do with what we have got...
As you said, there are two reasons why it is necessary to compile your own SELinux toolset:
* The system provided toolset is usually a version behind. While Android's SELinux relies on policy DB version 30, current Linux boxes usually handle only version up to 29.
* Even if it would be more recent it would not help, in fact building SELinux from [upstream code](https://github.com/SELinuxProject/selinux) (which is easilly done, at least on Fedora machines following upstream recommendations) effectively allows the system to handle policy DB version 30, however Android's SELinux has been heavilly modified ([Google documentation](https://android.googlesource.com/platform/external/libselinux/+/master/README.android) highlights a few modifications) so trying to handle Android's SELinux fails due to syntax and parsing errors.
So, to keep on the Android's SELinux analysis quest, we will have to put our hands in the dirt... in the cleanest possible way:
* First we will setup a sane environment,
* Once this is done we will compile Android's SELinux libraries and first tools,
* On top of them we will build SELinux tools,
* We will finish by adding a few supplementary utilities.
Setup a proper environment
==========================
Environment properties
----------------------
The cleanest recommended, an possibly maybe only reliably working way is to dedicate a environment to your Android work:
* A virtual machine is perfectly fine (if not the best option). Prefer to use a VMware one since you will have to connect your phone through USB to the guest system. The free alternative Qemu doesn't seem to handle such task very well. I did not try with other virualization software.
* It will need to be a 64 bits system, otherwise the code will simply not compile due to integers being of the wrong size.
* It is *strongly* recommended, possibly mandatory, to use a Ubuntu system. Feel free to use Xubuntu instead if you prefer XFCE's lighter desktop environment, this does not change the system's core and available package and will have no impact on your Android related work (whatever I say about Ubuntu in this procedure also applies to Xubuntu). You may find in Android's SELinux source tree some ReadMe files recommending the use of Fedora instead, these files are inherited from upstream NSA's SELinux project and their content do not necessarily match Google's Android.
* The exact version of Unbuntu to use depends on the version of Android you want to build. For Android 6.0, Ubuntu 14.04 (Trusty) is recommended. Check [Google requirements page](https://source.android.com/source/requirements.html) for more information.
* You will need plenty of disk space (at least 50GB if you plan only SELinux-related investigation, at least 100GB if you plan for a complete build of Android). CPU and memory are less relevant, they only impact time for a full build and will have no real impact for SELinux related tasks.
Using Ubuntu has two main advantages:
* By using the recommended system, you are working in a well-known and well-tested environment: system libraries, tools and packages are at the version and location expected by the project.
* And more specifically in our current case: Ubuntu itself relies on AppArmor which is a SELinux alternative, it does not use SELinux. The good news is that you will therefore be able to install Android's SELinux tools and binaries system-wide without risking to alter system reliability.
Environment installation procedure
----------------------------------
You can install Ubuntu the traditional way by starting from a full-fledged live-DVD, but a faster alternative is to use a netboot install (textmode install) and select the desktop environment you prefer at the end. Doing so will save you the initial update time by directly installing up-to-date packages version instead of first installing obsolete ones, then asking to apply 389 pending updates on the first boot.
The ISO for Ubuntu/Xubuntu 14.04 (same ISO) netboot installer is [available here](http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot).
To skip VMware's troublesome "Easy Install" feature, it's a good habit to start by selecting the *"I will install the operating system later"* option.
Be sure to select *Linux*, then *Ubuntu 64 bits* as guest OS.
The VM will need the following ressources:
* Mandatory: disk space must be **at the very least** 40GB (the default 20 GB will **not** be enough, the source code alone takes more space than that), higher is recommended. A full build requires a 100 GB disk minimum, this is the value I usually take. Do not forget that this setting is just a maximum limit: the actual size taken by the VM grows dynamically with guest's requests.
* Facultative: Increase RAM from 1024 to at least 2048 or higher (depends on your host capacity, I use 4096),
* Facultative: Increase the number of processor cores from 1 to 2 or higher (depends on your host capacity, I use 3).
* The CD-Rom must point to the installation ISO file.
* You may want to switch USB from the default 1.1 to 2.0 as the former may give warnings when you connect your device. Depending on your usage, you can also safely uncheck *"Automatically connect new USB devices"* and *"Share Bluetooth devices with the virtual machine"*.
* Depending on your environment, you may also need to tweak display settings (disable 3D, enforce a screen size).
***Attention:***
* If you choosed the netboot install, do not forget to select your desktop environment (*Ubuntu desktop* or *Xubuntu desktop*) when reaching the *Software selection* screen, or you will end-up with a minimal text-only environment!
* Upon first boot, **refuse** to upgrade to the latest release: the whole point here is to stay in 14.04!
Upon first boot, one of the first you may want to do is install Linux guest tools:
```
sudo apt-get install open-vm-tools
```
This packet put boot-time triggers, its installation will therefore be complete only after a guest restart.
Fetch Android source code
=========================
While similar, the procedure details depends on the chosen ROM:
* For CyanogenMod, [search for your device](https://wiki.cyanogenmod.org/w/Devices) (select the vendor first) then click on the *"How to build CyanogenMod"* link to get instruction adapted for your device.
* For AOSP, follow the procedure which [starts here](https://source.android.com/source/initializing.html).
It can be worth noting that CyanogeMod bundles in its source tree a tool allowing you to unpack `boot.img` files. To say it differently, CyanogenMod provides you a tool which will allow you to access the `sepolicy` file stored in devices and ROM archives. Google's AOSP does not provide such tool, so if you have no other imperative using CyanogenMod's source tree may be the most convenient choice, otherwise you will have to install it appart (which is quick and easy to do, so no worry here).
Here I'm following CyanogenMod 13.0 (Android 6.0) procedure. Explanation on the commands used is available on the pages linked above. Please read them, the typescript below is given only for reference purposes.
***Tip:*** While I use `apt-get` in this post to stick to the lowest common denominator and keep everybody happy, you may prefer to use `aptitude` instead since it will take care of the dependencies in a better way (when removing a package which required the installation of some dependencies, these dependencies will be removed too, leaving your system cleaner). AFAIK the `aptitude` command must be installed in Ubuntu but is available by default on Xubuntu.
```
sudo apt-get install bison build-essential curl flex git gnupg gperf \
libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 \
libxml2-utils lzop maven openjdk-7-jdk pngcrush schedtool squashfs-tools \
xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev \
lib32readline-gplv2-dev lib32z1-dev
mkdir -p ~/bin
mkdir -p ~/android/system
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod u+x ~/bin/repo
cd ~/android/system/
git config --global user.name "Your Name"
git config --global user.email "<EMAIL>
repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
repo sync
# Coffee time: around 20GB are being downloaded, this may take several hours.
source ./build/envsetup.sh
breakfast
```
Now you have a clean and nearly complete source tree. The proprietary blobs are
missing, but you don't need them for SELinux related tasks.
***Tip:*** Fetching the sources is a tedious process, it may be worth to do a snapshot or backup of your VM now.
Compile and install Android's SELinux toolset and libraries
===========================================================
Now the funny part of the trip begins ;) !
Until now the procedure should have been pretty straightforward. The goal was mainly to ensure that you have the very same environment as me. If you do, the sequel should remain straightforward too.
Under the hood Google's do not hesitate to apply deep changes to Android's source code between versions, therefore the exact compilation steps will be quite certainly version dependent (for instance AOSP master shows that the `sepolicy/` directory [will be moved](https://android.googlesource.com/platform/external/sepolicy/+/c81ebe522c66dd6e6ef4419ecc7737e2e1740d59)).
I will first share my exact procedure to compile and install Android's SElinux libraries and toolset, but in order to keep the relevance of this post over time I will then add some notes about the generic approach to follow in order to solve most compilation issues.
Step-by-step procedure
----------------------
Android's SELinux libraries provide the abstraction layer which will allow upper layer software to deal with Android-specific SELinux policy files. We will therefore need to compule and install them first (which, in itself, actually represents the core if the difficulties here, until you've found your way).
We will then be able to build and install SELinux tools. As we will see, fortunately these do not need to be Android specific, they only need to match the SELinux library version.
This procedure has been tested both using CyanogenMod and AOSP source code trees.
### Compile and install Android SELinux libraries and first tools
First install dependances:
```
sudo apt-get install libapol-dev libaudit-dev libdbus-glib-1-dev libgtk2.0-dev \
libustr-dev python-dev python-networkx swig xmlto
```
In this post the variable `$ANDROID_BUILD_TOP` stores your source location (the directory where you issued the `repo sync` command). Feel free to change its name as you like.
```
ANDROID_BUILD_TOP=~/android/system
cd $ANDROID_BUILD_TOP
source ./build/envsetup.sh
```
By default the policy core utils compilation fails due to `restorecond`'s Makefile being unable to locate some libraries. You have to edit this Makefile in order to use paths dynamically generated by `pkg-config` instead of hardcoded ones (do not confuse backticks with single quotes!):
```
sed -i 's/^CFLAGS ?= -g -Werror -Wall -W$/& `pkg-config --cflags --libs dbus-1 gtk+-2.0`/' \
$ANDROID_BUILD_TOP/external/selinux/policycoreutils/restorecond/Makefile
```
Feel free to open the Makefile with some text editor to ensure that the modification has been correctly taken into account.
And now compile and install:
```
cd $ANDROID_BUILD_TOP/external/bzip2/
make -f Makefile-libbz2_so
sudo make install
cd $ANDROID_BUILD_TOP/external/libcap-ng/libcap-ng-0.7/
./configure
make
sudo make install
cd $ANDROID_BUILD_TOP/external/selinux/
make -C ./libsepol/
sudo make -C /libsepol/ install
EMFLAGS=-fPIC make -C ./libselinux/
sudo make -C ./libselinux/ install
make -C ./libsemanage/
sudo make -C ./libsemanage/ install
make
sudo make install
make swigify
sudo make install-pywrap
sudo cp ./checkpolicy/test/{dispol,dismod} /usr/bin/
```
***Attention:*** Do not miss the `EMFLAGS=-fPIC` environment variable setting when building `libselinux`. It will not generate any error yet, but in the next step you will be unable to build SETools. In case you missed it or did anything else wrong, simply issue a `make clean` and restart your compilation.
### Compile and install SELinux tools
SELinux tools are provided in a prebuilt form which includes:
* Python scripts (and their shell script wrappers) within the `$ANDROID_BUILD_TOP/external/selinux/prebuilts/bin/` directory
* Python packages (including `*.o` compiled files) below `$ANDROID_BUILD_TOP/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/`.
I would have expected the source code of these tools to be available below `$ANDROID_BUILD_TOP/external`, but it isn't. Actually, I did not find any place where Google shared the exact version of SETools they used (FYI the GPL only mandates to share the code if it has been modified), so we will have to guess and try and do as best as we can.
The tools themselves are Python scripts, this a new evolution from SETools 4 (in SETools 3, commands like `sesearch` were binary executable coded in C). However, the tools themselves still show a version of 3.3.8:
```
$ $ANDROID_BUILD_TOP/external/selinux/prebuilts/bin/sesearch --version
3.3.8
```
So my guess is that Google took some early development snapshot from SETools 4. Until 4.0.0 beta SETools relied on `libsepol` versoin 2.4, with 4.0.0 release they started to rely on the version 2.5 of the library which is not compatible with the version of SELinux bundled in Android 6.0 (you can try to compile this, it will just fail).
So the wisest choice seems to go with SETools 4.0.0 Beta.
Install supplementary dependencies:
```
sudo apt-get install python-setuptools
```
Download and extract the source code:
```
cd ~/android/
wget https://github.com/TresysTechnology/setools/archive/4.0.0-beta.tar.gz
tar xzf 4.0.0-beta.tar.gz
cd ./setools-4.0.0-beta/
```
Due to [a bug](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488274) affecting Flex 2.5, we need to remove `-Wredundant-decls` from compiler's flags:
```
sed -i '/-Wredundant-decls/d' ./setup.py
```
And finally compile and install:
```
python ./setup.py build
sudo python ./setup.py install
```
Generic procedure (or "How to unstuck yourself")
------------------------------------------------
In case the procedure above did not work in your case, here is a higher level view on how to try to progress.
There is sadly no magic (and no helper :( ) around here: the only way to get this code to compile is the classical yet dreaded cyclic "try-and-see" approach.
Try to compile a first time, it will most likely fail due to some `*.h` file being not found:
1. Search in Android's `external/` directory:
```
find $ANDROID_BUILD_TOP/external -name filename.h
```
If you find the requested file, then this means that a specific version of the corresponding library or tool has been bundled within Android source code. You should therefore not try to install it from Ubuntu's package system, but instead compile and install the version bundled in Android source code.
Be aware that this goes against general advice you may found on forums: *"Your compilation fails because of this library missing? Install this package then it will be fine!"*, by doing this you will most probably just go into worse issue: if a specific version is bundled, it is most probably because a specific version is needed (due to compatibility issues or because this version contains specific changes from Google).
BTW, if you are wondering: of course this library or tool may also have dependencies raising errors due to some `*.h` file being not found, and yes you should apply this very same cyclic "try-and-see" approach.
2. Search systemwide:
```
find / -name filename.h 2>/dev/null
```
If you find "missing" the file to be already present in your system in some standard shared library location, this mean that this dependency is probably already met in your environment but the Makefile who raised the error is too dumb to find it.
If you manually directly call this Makefile, it may be possible for you to set some environment variable fixing this (`LIBDIR=/usr/lib make` for instance), otherwise you may need to modify the Makefile itself (the `pkg-config` command may be of precious help to automatically generate missing build parameters).
3. Search in the packaging system:
```
apt-cache search filename-dev
```
Where `filename-dev` represents the name of the missing file in lowercase with the `.h` extension replaced by the `-dev` suffix (for instance, if `Python.h` is not found, search for `python-dev`). Some tweaking in the exact name may be needed to find the right package.
4. If you remain stuck and that even a quick search on Internet did not provide any clear answer, then `apt-file` will be your best friend. `apt-file` is not installed by default, you need to install it and generate its database:
```
sudo apt-get apt-file
sudo apt-file update
```
`apt-file` allows you to search for packages (even uninstalled ones) providing a particular file. To avoid having too much result, I recommend to associate it with `grep` as below:
```
apt-file search filename.h | grep -w filename.h
```
If there is a package in Ubuntu's repository providing this file, then `apt-file` should be able to find it.
Once you've found the right package, install it using `apt-get install packagename` where `packagename` is your package's name.
***Tip:*** If you screwed something on your system, the command to reinstall a package is this one: `apt-get reinstall pkg_name`. It will work even when a classical remove & install would not be possible due to breaking dependencies (which is most likely for system's libraries).
Supplementary tools
===================
At this step, you should now have a clean environment allowing you to investigate Android's SELinux rules both in compiled and source formats.
However, most chances are that at the end of your investigation you will want to take some action. In its current shape, your environment will not permit you to modify a device's `sepolicy` file. In fact, this file cannot be easilly replaced: it is part of the device root directory, and the content of the root directory is extracter at boot time from a RAM disk file, which in turn is stored in the device's boot image.
So you still miss two things before your environment is complete:
* A way to access and modify the device's boot image,
* A way to modify its `sepolicy` file.
Fortunately, these are precisely the subject of the two last sections of this post! :)
Fetch and update device's boot image
------------------------------------
Tools to fetch and update devices' boot image can be used for a wide variety of things apart from SELinux rules tampering. I have therefore created [a dedicated answer](https://android.stackexchange.com/a/154621/107603), please refer to it.
Modify device's SELinux rules
-----------------------------
You have two main possibilities here:
* Build a new `sepolicy` file from the rules in your source tree (search for `.te` files to find them: `find $ANDROID_BUILD_TOP -name \*.te`, they are spread into several directories).
* Modify the `sepolicy` file currently used by the device.
Unless you really need to build your rules from scratch, which is more a development-related task and therefore out-of-scope here, the second choice seems by far the safest one as you are sure that the only changes will be the one your explicitely made.
There has been a project to make a tool allowing you to decompile a `sepolicy` file into a recompilable form, allowing to freely edit rules in between. However this project has been abandonned in proof-of-concept state. You will find all information at the end of [this blog post](https://ge0n0sis.github.io/posts/2015/12/exploring-androids-selinux-kernel-policy/), the rest of the article contains enough details to allow anyone else interested to take over.
The currently recommended way to alter `sepolicy` rules goes another route: by directly modifying the `sepolicy` binary file. [sepolicy-inject](https://bitbucket.org/joshua_brindle/sepolicy-inject) tool allows just that and is actively maintained.
For completeness sake, note that [a fork](https://github.com/phhusson/sepolicy-inject) of this tool exist. It adds a few features, some of them being on the original author's to-do list (like the possibility to remove a rule), don't ask me why they choosed to fork instead of contributing...
To compile and install `sepolicy-inject`, simply proceed as follow:
```
cd ~/android/
git clone https://bitbucket.org/joshua_brindle/sepolicy-inject.git
cd ./sepolicy-inject/
LIBDIR=/usr/lib make
sudo cp ./sepolicy-inject /usr/bin/
```
Use-case example
----------------
Let's say for instance you want to add the autorization matching the following error message:
```
avc: denied { read } for pid=128 comm="file-storage"
path="/data/media/0/path/to/some/file"
dev="mmcblk0p28" ino=811035 scontext=u:r:kernel:s0
tcontext=u:object_r:media_rw_data_file:s0 tclass=file permissive=0
```
You will need to fetch device's boot image, then unpack it to get access to it's `sepolicy` file.
A quick check using `sesearch` shows that there is indeed no allow rule (yet!):
```
$ sesearch -A -s kernel -t media_rw_data_file -c file -p read ./sepolicy
$
```
The command has no output.
Then, use the command below to add the required rule (note the similarity between `sesearch` and `sepolicy-inject` parameters):
```
sepolicy-inject -s kernel -t media_rw_data_file -c file -p read -P ./sepolicy
```
Now we can call back our `sesearch` command:
```
$ sesearch -A -s kernel -t media_rw_data_file -c file -p read ./sepolicy
allow kernel media_rw_data_file:file read;
$
```
`sesearch` output shows that the policy has correctly been updated.
You can now repack the device's `boot.img` file and flash it back to the device. Checking the last modification time of the `/sepolicy` file is an easy way to ensure that your device is now running the newly updated `sepolicy` file.
Conclusion
==========
You should now have a complete environment allowing you to freely inspect and modify Android devices SELinux policies. Enjoy! :)
As a side note, there are also tools allowing to analyze and modify SELinux policy [directly from the device](https://android.stackexchange.com/q/152186/107603).
Upvotes: 3 <issue_comment>username_5: audit2allow, audit2why, and sesearch are all broken with the update AOSP
upstream policy to v.30.
You have to apply patches below and rebuild your Android tree to update policy db. These patched already merged to master branch and available starting from Android N.
<https://android-review.googlesource.com/187140>
<https://android-review.googlesource.com/187111>
Upvotes: 0 |
2015/11/16 | 473 | 1,775 | <issue_start>username_0: I have an android phone (Sony Xperia Compact Z1 / Stock) with an "eh" speaker, and a tablet (Kindle Fire 7" HD / Cyanogen) with amazing speakers. I use the phone a lot to listen to audiobooks, but at home i'd like to be able to use the tablet so i can hear the audiobooks over other noises.
I currently use Smart Audiobook Player since it seems to be the best audiobook software on the market, but it cannot synch progress between different devices, or stream audio between them on its own.
So i would like to stream *all audio* that is currently playing on my phone, over to my tablet and have it play via the tablet's speakers.
I suppose this should be feasible via Bluetooth or Wifi, but:
* No Bluetooth solutions seemed to work, none of them even indicated being able to connect between the two devices.
* No Wifi solutions seem to exist that can work with only the two android devices and the unmodified Wifi AP.
Did i overlook some piece of software that can do this?<issue_comment>username_1: Your question led me to this app call AmpMe (both [Android](https://play.google.com/store/apps/details?id=com.amp.android) an iOS) which promises to do exactly or probably, something similar to your heart desire.
[AmpMe](http://www.ampme.com/):
>
> Sync your phone with friends to create the world's most portable sound system
>
>
>
With the app above, you can play sound to even multiple tablets.
Upvotes: 0 <issue_comment>username_2: [THIS](https://play.google.com/store/apps/details?id=com.ilumnis.btplayerfree) app does the trick...
You need to install it on both Android devices and pair them. Then put the tablet in ListenMUSIC over Blueetooth mode and the the phone in shareMUSIC over Bluetooth mode.
HOPE IT HELPS...
Upvotes: 1 |
2015/11/17 | 688 | 2,770 | <issue_start>username_0: From many days I am getting unwanted ads and notifications. I uninstalled many app, and also did a factory reset also, After searching, I found *Alarm Controller* may be the culprit. As I lock my screen and the then try to unlock it again, the on-screen ads blinks all the time. I had a screenshot of the app

Please help me to get rid of these ads. Let me know if any more information needed.<issue_comment>username_1: Just click stop button and power on/off your phone to reset from scratch. Click Settings and you will get various options to deal with. It's very simple and you won't get such ads, all the best !!
IF NOT, than you should go for Factory Re-set of this phone, thanks.
Upvotes: -1 <issue_comment>username_2: Use firewall to restrict the network. Try this:
1. Install firewall app (e.g. [CM Data Manager - Speed Test](https://play.google.com/store/apps/details?id=com.cmcm.flowmonitor))
2. Open the app, go to Network Firewall setting. You will see all the apps are unrestricted
3. Set *Alarm Controller* to restricted app: tap *ON* to restrict the app. It will stop the unwanted notification & ads in your phone.
Upvotes: 0 <issue_comment>username_3: * Turn Off the *Accessibility* option in Settings
* Settings → Applications → Alarm Controller → Clear data & Clear cache → Disable and Force Stop. I tried it and it works for me.
Upvotes: -1 <issue_comment>username_4: At last I got a solution or workaround, I installed [NoRoot Data Firewall](https://play.google.com/store/apps/details?id=com.jianjia.firewall) and then created a VPN on my own mobile and now I am having full authority to whom to give access to network and whom to not.
This is just the workaround I found, it doesn't remove the Malware. But it worked and get me out of the frustration.
Upvotes: 2 [selected_answer]<issue_comment>username_5: I have a similar situation ..I have tried all the stuffs suggested here..
1) Using CM Data Manager - Speed Test - It does not work. It only allows to Create restriction at firewall with 2g network and not with wifi.
2) Turning Off the Accessibility option in Settings for Alarm Controller - is again temporary solution as the it gets turned "ON" by itself with few minutes.. Malware is doing it i guess.
In the meantime the malware is getting strong. Now the alarm controller is no more version 2.0 like before and has updated itself to 4.0 (i hv no idea when and how) . Apart from installing several random apps (hola launcher quite repeatedly) by itself now this malware is creating some shortcuts with porno icons which on clicking takes you to some linkup websites and/or result in some downloads.. its getting really frustrating.
Upvotes: 0 |
2015/11/17 | 951 | 3,432 | <issue_start>username_0: Doze has been bringing great benefit for my aging Nexus 5. But sadly, its presence also marks an end for my WhatsApp Web experience; since their "web" app is actually just a mere "interface" and still requires the phone to be actively connected to the Internet.
As we all know, Doze puts one's phone into a stand-by state where every unnecessary connection is halted. This means it will also halt the WhatsApp app in my phone (and thus in my computer's browser).
Now, is there a way to exclude WhatsApp from Doze? I mean, is something like that possible?
***p.s.***, I prefer a non-rooted approach to this problem, but should rooting be my only option, so be it.<issue_comment>username_1: This answer is based off my Nexus 9 on MRA58K. It should be similar for any app.
Follow the steps as given below:
1. Go to Settings → Battery
2. Tap on the top right 3-dot menu, and choose Battery Optimisation.
3. There should be a dropdown below the actionbar on the top left, choose All Apps from the list.
4. Find your app in the list (in this case, Whatsapp)
5. Tap on it. You will get a popup with 2 options, Optimise and Don't Optimise
6. Optimise should be selected by default.
7. Select "Don't Optimise", and press "Done" below.
8. That's it. I hope it works for you.
Upvotes: 5 [selected_answer]<issue_comment>username_2: The [instructions](https://android.stackexchange.com/a/129075/96277) provided by Tamoghna are the easiest ones to follow when it comes to doing something from GUI. However, there exists other ways to achieve the goal.
You can use the system service named *deviceidle* to manipulate the battery optimization for an app. You would need [adb](/questions/tagged/adb "show questions tagged 'adb'") setup in PC. Once you have the latter, execute:
```
adb shell dumpsys deviceidle whitelist +PACKAGE
```
Replace `PACKAGE` with package name of the app which you intend to exclude from Doze mode. Follow [View app's full package name?](https://android.stackexchange.com/questions/28767/view-apps-full-package-name) if you do not know the package name of your app.
To revert changes, replace `+` with `-` in the said command and execute it.
An example, performed for [Kde Connect](https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp) app:

**Note** that both the GUI and command-line method make changes in the file `/data/system/deviceidle.xml`. If you're up to the task and have root access, you can edit that file, reboot the device and your app would be found under "Not Optimized" tab of Battery Optimization.
I came to know about that command from [this question](https://stackoverflow.com/q/31533972) by user2281606. I was also reading [Optimizing for Doze and App Standby - Testing your app with Doze](http://developer.android.com/training/monitoring-device-state/doze-standby.html#testing_doze).
Upvotes: 3 <issue_comment>username_3: If you want your app permanently removed from optimization and if you have root access, you can just add a simple xml-file to your system partition:
Create a \*.xml file with any name and add following content:
```
xml version="1.0" encoding="UTF-8"?
```
Remount your system partition `mount -o remount,rw /system` and copy the file to your `/system/etc/sysconfig/` folder. You may also remove the preinstalled \*.xml files to disable the forced system services.
Upvotes: 2 |
2015/11/17 | 247 | 890 | <issue_start>username_0: I flashed CM12.1(unofficial,Android5.1.1) yesterday.Then I flashed SuperSU.
But whatever player I used,Music will only output to speaker.
I want to use my earphone.(BTW,Earphone is Okay,Android4.4 can use it)<issue_comment>username_1: Try following methods and check if it works:
1.Factory reset
```
-Settings-->Backup & restore--> Factory data reset.
```
2.Reflash CM12.1 ROM.
```
-Boot into Recovery and install zip from sdcard.
```
If it still doesn't works then it must be a bug in that particular build. All you can do is wait for next release or switch to another ROM.
Upvotes: 0 <issue_comment>username_2: I'm facing the same issue. I tried a trick to make its work but you have to do this every time you connect your earphone, first connect your earphone Open the fm radio and switch to speaker output and again to earphone. Thats it
Upvotes: 1 |
2015/11/17 | 559 | 2,244 | <issue_start>username_0: I am wondering is there any app or a robust way of locking screen (front keys as well) while playing games in android phone. Is there any common app for locking/disabling the keys/touch when we play videos, youtube, playing games or reading ebook etc.
The phone should go in lock mode as if by pressing lock button on side panel, and pressing it should prompt us to unlock the device. My LG L90 D410 has this built-in feature for playing local videos but not for other apps, games and youtube videos.<issue_comment>username_1: Okay, here's how to do it using [Tasker](http://tasker.dinglisch.net):
1. Install Tasker
2. Create a new Task called lock screen, add an action to it as via
Display → System Lock
3. Create a profile and add as context to it all games in the apps list it provides, or as you need it.
4. Link the lock screen task to this profile.
Your device should lock up now if you try to open any marked app.
Note: Tasker is a paid app. Also, the trigger system lock functionality needs you to allow Tasker as a device administrator.
Edit:
I figured out how to do this using [MacroDroid](http://www.macrodroid.com/), which is free for a limited feature set.
1. Install MacroDroid and open it.
2. Tap on create new macro
3. Select Application launched/closed from the trigger list.
4. Select application launched from the popup
5. Choose the required apps from the list.
6. Choose the action as screen on/off.
7. Choose screen off from the popup
8. Press the tick button.
9. On the constraints page, leave it at none and press the tick button.
10. Enter a relevant name for the macro and press OK in the resulting popup.
This worked for me. Again, this needs the app to be a device administrator, which will be indicated to you as you select the screen off action, for similar reasons as above.
Upvotes: 1 <issue_comment>username_2: Not sure I understand what you're getting at, but have you considered "Screen pinning"? It's a built-in feature in android 5.0 and up. When this setting is turned on you can keep the current screen in view until you unpin it by holding Back and Overview buttons at the same time. This feature can be accessed at:
Setting -> Security -> Screen pinning
Upvotes: 0 |
2015/11/17 | 419 | 1,644 | <issue_start>username_0: Using VirtualBox, I have created a Virtual Android. My problem is that certain apps will rotate the screen, but virtual box doesn't flip.
Here is my guide:
<http://www.howtogeek.com/164570/how-to-install-android-in-virtualbox/>
How do I either rotate the screen or keep it from rotating?
I tried disabling the "Auto Rotate Screen" option, but there are some apps that force the screen rotation.<issue_comment>username_1: Well, I wasn't able to make the rotation NOT happen in Android on VirtualBox, but I found another virtual platform for Android called [Andyroid](http://www.andyroid.net/). Andyroid still provides Android within a virtual machine, AND the Andyroid wrapper provides methods of rotating the Android for you (not the same as using the keyboard commands in Virtual Box). So I didn't solve the very problem, but I solved the situation.
Upvotes: 1 [selected_answer]<issue_comment>username_2: I encountered this problem when trying to run QQ on Android 4.4 running in VirtualBox. F9-F12 were ineffective as soon as QQ started. The app "Ultimate Rotation Control" does the trick but does not resize the QQ window. So part of it gets to lie out of the virtual screen. Finally, I ended up redefining the screen size of the virtual Android to 360x640 (portrait) as described [here](https://4sysops.com/archives/change-the-screen-resolution-of-an-android-virtualbox-vm/). It seems that QQ detects which side of the screen is longer and rotates according to this. So if you start with a portrait aspect ratio it will not rotate sideways. I do not about pheed, but guess it operates the same way.
Upvotes: 2 |
2015/11/18 | 562 | 2,242 | <issue_start>username_0: I have being trying to set a android-for-work profile on my Samsung Galaxy Note Pro but the only thing that I managed to do is to define a new normal google profile. I have successfully set my android-for-work profile on my Nexus 6.
The Samsung Galaxy Note Pro runs Lollipop
Does someone know how to solve this issue?<issue_comment>username_1: The reason you set-up with Nexus 6 successfully but cannot set-up with Samsung Galaxy Note pro is because [Nexus 6 and only a handful of other devices](https://www.google.co.in/work/android/features/devices.html) support Work profile on Android.
---
For devices that don't support a work profile natively, you need to install [Android for Work App](https://play.google.com/store/apps/details?id=com.google.android.apps.work.core) Before installing this App, uninstall [Divide App from Enterproid](https://play.google.com/store/apps/details?id=com.enterproid.divideinstaller) if you have it installed as it interferes with Google for Work
* Once the App is installed, Configure your Work domain.
* Enter your username and password for your work domain.
* [Optional] Enter a PIN or Password for your Work screen lock if requested.
After setting-up you can install you can [install the Divide](https://support.google.com/work/android/answer/6173530) Productivity App
Upvotes: 0 <issue_comment>username_2: I think a work profile is only available on supported devices (see the link in the first answer).
The "android for work app" is only needed on devices running android < 5. Installing it on a unsupported device does nothing.
-> As far as i investigated, you cannot use work profiles on unsupported devices.
---
My question is, what happens if the admin enforces usage of a work profile? Can users with unsupported devices still use their apps-account (I think not...).
Upvotes: 1 [selected_answer]<issue_comment>username_3: The Android for Work app only works with 3rd party EMM solutions. It doesn't work with Google's own EMM which is kind of stupid.
As far as I can tell, if you device isn't on the list of supported devices you cannot manage application installs with Google Apps EMM. You can only do things like enforce password policies etc.
Upvotes: 1 |
2015/11/18 | 620 | 2,531 | <issue_start>username_0: I have a Redmi 2 Prime phone running Android 4.4.4. I have a news app named Times of India in which if I read some articles, suddenly, an ad popup appears. And these ads seem to be totally fake and malicious. Ads like "your phone has slowed down" or "your phone has virus". They take up the whole space, so it's like a hijack.
There was this same problem, only more severe, in my last phone. Now I have changed the phone altogether, but it seems the problem have crept back in somehow.
I have installed all sorts of antivirus and anti-malware apps with no avail.
How do I get rid of the issue?<issue_comment>username_1: Try to get in safe mode (*google it for your phone*)
Then go to applications see in all applications and uninstall applications that are uninstallable
Go check again your phone might be fine and you can also try *`Adaway`*
Upvotes: 0 <issue_comment>username_2: If the problem persists on two different devices but within the same application, I would suspect that the application *is* the problem. Looking at the [Times of India app](https://play.google.com/store/apps/details?id=com.toi.reader.activities), the first sign is the "Mature 17+" rating, which is suspicious for a news app. The second is the ridiculous list of permissions for this app:
```
Version 3.8.1 can access:
Device & app history
read sensitive log data
Identity
find accounts on the device
Contacts
find accounts on the device
Location
precise location (GPS and network-based)
approximate location (network-based)
SMS
read your text messages (SMS or MMS)
Phone
read phone status and identity
Photos/Media/Files
modify or delete the contents of your USB storage
read the contents of your USB storage
Storage
modify or delete the contents of your USB storage
read the contents of your USB storage
Wi-Fi connection information
view Wi-Fi connections
Device ID & call information
read phone status and identity
Other
receive data from Internet
full network access
view network connections
read Google service configuration
prevent device from sleeping
control vibration
```
Finally, if you look at the reviews for the app, most of the negative reviews say there are a lot of very obtrusive ads (while a lot of the positive reviews are spam not even related to the app).
I would suggest either finding another news source (like accessing a respectable newspaper through the mobile browser) or continue using the Times of India app and live with the fact that those ads make the app free to use.
Upvotes: 2 |
2015/11/18 | 607 | 2,170 | <issue_start>username_0: My Sony Z3 Compact is currently unusable and I would like to flash the Marshmallow version of [FXP](http://fxpblog.co).
Unfortunately it seems like I can't find any `fastboot` (or as device manager calls it: `S1Boot Fastboot`) driver for Windows 10.
Am I looking somewhere wrong or is there simply no `fastboot` driver out there for Windows 10 yet?
Regards<issue_comment>username_1: I found the solution myself: Windows 10 somehow does not want to install the driver, as it can not verify the manufacturer. So the driver from [Sony Developer's site](http://developer.sonymobile.com/downloads/drivers/fastboot-driver/) works just fine.
After deactivating the Windows driver signature check everything works fine.
To deactivate proceed like this: (taken from [HERE](https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_devices/how-do-i-disable-driver-signature-enforcement-win/a53ec7ca-bdd3-4f39-a3af-3bd92336d248?auth=1))
>
> 1. Press `Win` `+` `X` then `U` then `Shift` `+` `R`
> 2. Once your Computer has rebooted you will need to choose the Troubleshoot option
> 3. Then head into Advanced options
> 4. Then Startup Settings
> 5. Since we are modifying boot time configuration settings, you will need to restart your computer one last time
> 6. Here you will be given a list of startup settings that you can change. The one we are looking for is “Disable driver signature
> enforcement”. To choose the setting, you will need to press the F7 key
>
>
>
Upvotes: 4 [selected_answer]<issue_comment>username_2: By looking at the inf file, you can find that it tells to use the WinUSB driver. So there is a better solution than disabling driver signature enforcement, you can use the tool Zadig (<http://zadig.akeo.ie/>). This tools create a self-signed inf for this specific device, using ephemeral keys, added to the trusted certificate store (for this only device / inf), removing the need to disable signature check.
So you can do this :
1. Download the tool, start it.
2. Select the "S1Boot fastboot" device
3. Select the WinUSB Driver
4. Click Install
And then `fastboot devices` list your device.
Upvotes: 4 |
2015/11/18 | 527 | 1,895 | <issue_start>username_0: I think my power plug is the problem. How can I make sure? PC's USB is working fine.<issue_comment>username_1: I found the solution myself: Windows 10 somehow does not want to install the driver, as it can not verify the manufacturer. So the driver from [Sony Developer's site](http://developer.sonymobile.com/downloads/drivers/fastboot-driver/) works just fine.
After deactivating the Windows driver signature check everything works fine.
To deactivate proceed like this: (taken from [HERE](https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_devices/how-do-i-disable-driver-signature-enforcement-win/a53ec7ca-bdd3-4f39-a3af-3bd92336d248?auth=1))
>
> 1. Press `Win` `+` `X` then `U` then `Shift` `+` `R`
> 2. Once your Computer has rebooted you will need to choose the Troubleshoot option
> 3. Then head into Advanced options
> 4. Then Startup Settings
> 5. Since we are modifying boot time configuration settings, you will need to restart your computer one last time
> 6. Here you will be given a list of startup settings that you can change. The one we are looking for is “Disable driver signature
> enforcement”. To choose the setting, you will need to press the F7 key
>
>
>
Upvotes: 4 [selected_answer]<issue_comment>username_2: By looking at the inf file, you can find that it tells to use the WinUSB driver. So there is a better solution than disabling driver signature enforcement, you can use the tool Zadig (<http://zadig.akeo.ie/>). This tools create a self-signed inf for this specific device, using ephemeral keys, added to the trusted certificate store (for this only device / inf), removing the need to disable signature check.
So you can do this :
1. Download the tool, start it.
2. Select the "S1Boot fastboot" device
3. Select the WinUSB Driver
4. Click Install
And then `fastboot devices` list your device.
Upvotes: 4 |
2015/11/19 | 825 | 3,367 | <issue_start>username_0: It reboot smoothly. It started already doing the setup. But if you click NEXT there is box popping out, showing this stuffs:
* Unfortunately, Samsung account has stopped
* Unfortunately, Google account Manager has stopped
So, I cannot continue doing the setup. Because, even you click the OK button and click again the NEXT buttom it come back again.
What happen to my samsung galaxy S3? Can you please help me?<issue_comment>username_1: If you want you can bypass setup. Tap to top left, top right, bottom right and bottom left respectively (clockwise) at the screen that shows up once you boot up the phone. It might be hard to find the initial spots at the first try (I know from personal experience) so try a few times if it doesn't work at first try. [Here's a how-to video for additional help!](https://www.youtube.com/watch?v=IWKXn2Vgkqo)
Upvotes: 1 <issue_comment>username_2: If you are using a custom recovery, clear cache and Dalvik cache.
Upvotes: -1 <issue_comment>username_3: I had the same problem recently. The phone was constantly reporting Google Play Services and many others as having stopped. A hard-reset left me unable to complete the initial setup, as the account manager kept stopping too. My S3 was stock standard, not rooted or running any custom firmware. I was able to fix the problem, and I'd like to share my solution.
1. Download Samsung's "Kies" software. Searching the samsung.com site pointed me to Version 2, but once installed the software self-updated to Version 3.1. A restart was required after installing (I'm on Mac, but I understand with will work on Windows too).
2. Power on the phone. Start Samsung Kies software. Without touching the screen, I connected the USB cable to my computer.
3. Tools > Firmware upgrade and initialisation
I was warned that the current firmware was already installed, but chose to proceed anyway. The current firmware was downloaded and installed on the phone, which took around 20 minutes.
After restarting the phone, I was able to complete the setup process without any errors. The OS now appears to be working correctly (Android KitKat 4.4.4). If I had to guess, I'd suggest it was some older versions of my network's own customisation that was incompatible with recent Play Store Services updates. Interestingly, my phone now has less added software (only 2 extra apps I can see) and seems to run better than it did originally.
I hope this info helps others too.
Upvotes: 2 <issue_comment>username_4: Easy to fix:
1. Go to Applications Manager.
2. Go to SD CARD (top right).
3. Go to RUNNING (top right).
4. In the list, find "Samsung Link".
5. Terminate it (Clear Data, Clear Cache, Force Stop, Disable). --- Sorted ;-)
Upvotes: 0 <issue_comment>username_5: Did you ever get a fix for this? Im having the same issue with my S3. Nothing mentioned in this thread so far has worked.
EDIT: got it to work with Keis. Had a faulty cord.
Upvotes: 0 <issue_comment>username_6: I tried clearing cache and doing a factory reset from recovery mode and it didn't work. I have now fixed the issue. Install Samsung Kies on your computer, plug in your phone and select Tools/ Firmware Upgrade Initialisation and update from the menu. It will completely reinstall the latest android update and I haven't had any issues since with Google or Samsung apps crashing.
Upvotes: 0 |
2015/11/19 | 163 | 676 | <issue_start>username_0: This is a replacement phone. Now on this one, I can't hear anyone unless I put them on speaker. Even though I've had the phone for three days, I had to do a factory reset on it already and that didn't cure it. Suggestions?<issue_comment>username_1: Probably because the speaker is not working on the low volume it works on when it's on call. It is a kernel or hardware problem. Resetting will not help. You have to flash a kernel yourself, or ask for replacement if even that does not help
Upvotes: 1 <issue_comment>username_2: Your speaker is most likely broken. Try to take it to a repair shop to get it fixed up, if you haven't already.
Upvotes: 0 |
2015/11/19 | 355 | 1,399 | <issue_start>username_0: Nexus 5 showing black screen
1.Can access fastboot mode
2.Cannot access recovery mode from fastboot : shows google logo and black screen (no inverted android)
3.When selecting Start from fastboot : only google logo appears and then black screen (not even the marshmallow boot animation)
**Things Tried :**
1.Phone was able to ring from android device manager. Tried erase from there. No response
2.Tried flashing the stock rom still no response.
What might be the issue ? Is the internal memory corrupted ?
**UPDATE**
The phone boots up able to hear screen shot sound but still black screen
**UPDATE 2**
The phone had hardware issue, the flex cable was damaged. Replaced the flex cable and phone is working again.<issue_comment>username_1: Since Recovery won't start up, you can clear the cache by powering off your phone and holding down `Power` + `Volume Down` for 20-30 seconds. Then you will be able to enter recovery once you restart where you should clear the Dalvik cache and cache again. I had the same problem and this worked for me.
Upvotes: 0 <issue_comment>username_2: Go to menu >>setting's >>apps>>all
Tap on the top 3 doted line's and tap on the "Reset app preference"
Upvotes: -1 <issue_comment>username_3: The phone had hardware issue, the flex cable was damaged. Replaced the flex cable and phone is working again.
Upvotes: 1 [selected_answer] |
2015/11/19 | 252 | 1,092 | <issue_start>username_0: How can I have LG e-612 running on jelly bean. Without apps it gives proper performance. When I'm trying to install apps from play store they get installed in internal memory. Phone is slow and sluggish. So I just want to move apps to external memory or micro sd card. LG customer care say you can not move. So I checked many forums and tutorials but maximum are about rooting android none of them clears me. So how can I move apps to external memory or micro sd card?<issue_comment>username_1: Installing an app to your SD Card will use memory even on your phone so I think this doesn't help your situation really (At least that what I experienced) but give it a try without root , Their should be a button located on the app properties "Move to SD Card" . Like I say this will NOT move them from the system but its worth a shot I suppose .Every phone is different
Upvotes: 0 <issue_comment>username_2: these the simple first select on app then mark all the apps and there options like move your app to sd card then click on it .am talking about LG e612
Upvotes: -1 |
2015/11/19 | 253 | 1,020 | <issue_start>username_0: I tried to perform a factory reset on my phone to give it to a friend of mine. However, I realised that when I installed Whatsapp, I can still have my chats, my photos and songs aren't deleted as well. What is wrong with this?<issue_comment>username_1: It looks like your `/sdcard` partion is not getting wiped. You need to specify more information but I'm assuming you're using a Custom Rom or at least, a Custom recovery. A stock recovery will *as far as I know* wipe `/sdcard` too. Only a Custom ROM by default wouldn't do so. So there's nothing unordinary here. Boot into recovery (I can't tell how since you didn't mention your phone's model) and you can use the options there to wipe any partion you want.
Upvotes: 3 [selected_answer]<issue_comment>username_2: Maybe because there's cloud backup?
See, what will happen if after a factory-reset, a whatsapp messenger with different account is installed? What will happen to our conversations? (assuming there's no cloud backup)
Upvotes: -1 |
2015/11/19 | 395 | 1,742 | <issue_start>username_0: In the Play Store, I have checked the box "Auto-update" for my application. However, although the app received a new version several hours ago, it is not being auto-updated on my phone.
What I'm wondering is how often are apps auto-updated (if at all)?
**Edit:** It's been one day and the app hasn't been auto-updated yet. I've tried letting the mobile charge to 100% overnight but it didn't help.<issue_comment>username_1: Check *Sync is enabled in settings & background Data is not restricted*
Then Check *app update is given to your Region*.
In Play Store, It is possible to distribute app by Region. For example, If A developer given an Update to the US REGION, But you are staying in Some other countries(Even if you have downlaod US version) Play store will not update the app.
Upvotes: 0 <issue_comment>username_2: If a user has auto-update enabled in the Google Play store, apps will be updated according to:
1. Developer preference. Developers can specify that only a certain amount of users receive an update to an app, and then, if the update is successful, roll out the update to more users (either all at once, or slowly).
2. Region. Sometimes specific updates are only for certain regions, so only users in certain geographic regions will get updates.
3. Device compatibility. Only devices with hardware compatible with the update will receive it.
4. Android version compatibility. Only devices using an Android version compatible with the app update will receive the update.
5. Apps requiring more permissions *should* prompt the user to accept new permissions before auto-updating. I have heard about cases where this did not happen as expected, but have never experienced this myself.
Upvotes: 1 |
2015/11/19 | 347 | 1,232 | <issue_start>username_0: I've just been gave a Samsung S3, and it come with Android 4.2 (so I cant apply this [guide](http://inside-galaxy.blogspot.com/2013/12/samsung-galaxy-s3-how-to-take-picture.html)) So I post this question, Please guide me how to take picture using volume key with Samsung S3 (Android 4.2)!?<issue_comment>username_1: I have the simplest way for you. Try this :
* Open a camera app.
* Tap a cogwheel icon to enter the setting menu.
* Scroll down to find volume key option, then tap it.
* Select the camera key option.
* Go back to the camera screen .
* Now your ready to use volume down to click a picture.
Upvotes: -1 <issue_comment>username_2: You could always download a new Camera app, like openCamera or Google Camera, that would include the volume as shutter function, if the camera app that came with the phone does not have it.
Upvotes: 1 <issue_comment>username_3: just visit this link, it's worked for me <http://username_3purngrm.blogspot.com/2016/04/how-to-use-volume-key-to-take-picture.html?spref=tw>
In summary: root your phone and install Xposed Framework and then the Xposed Additions module. From that module you can intercept the volume up key and make it take a screenshot.
Upvotes: -1 |
2015/11/20 | 757 | 2,808 | <issue_start>username_0: Phone stats:
Make: Samsung Galaxy s4
Model #: SGH-I337M
Android Version: 5.0.1
Baseband Version: I337MVLUGOH1
Kernel Verion: 3.4.0-4508315
DPI@SWHD7402 #1
Old Carrier: Telus (unlocked by carrier)
New carrier: Wind mobile
Problem:
After researching web/youtube, I had bought the S4 on the premise that I could add the AWS band on to the phone with relative ease after watching a youtube video tutorial. (I'm not extremely technical but I'm a DIY guy and thought I could take on the challenge)
After purchasing the phone, I started following the steps in the video and quickly realized that the OS on the tutorial was older than my newly purchased phone with a updated OS. First video I found, told me to use a code \*#7284# to enter into the modem settings (which no longer works for some reason). Then I found a video that asked me to enter \*#0808# (this does work to get into the settings the tutorial asked me to change). The problem is, that after I change the settings from "MTP" to “RNDIS + DM + MODEM”, my phone will not connect to my computer and thus renders me unable to continue with the tutorial. (computer says "unable to identify USB connection")
I'm worried because I need to have my phone up and running before the end of this month because I have to return a shitty ACER phone I purchased temporarily from costco is running out of its 90 day return policy.
I know the phone is already 2 generations behind its predecessors but I'm hoping someone in this forum can help me out!
I've been following these steps: <http://forum.xda-developers.com/showthread.php?t=2291589>
Thank you in advance,
Matt<issue_comment>username_1: if you can find the exact carrier 4.4.2 file.. flash it with odin. the phone will take it no problem. then run rndis... but before you can try going into recovery and enable logging and see if that picks it up... im stuck on this problem right now and i know there is no way around it then to actually downgrade and push the aws file... good luck
Upvotes: 0 <issue_comment>username_2: In addition to changing from \*#7284# to \*#0808#, I also had to temporarily go back to the stock recovery from TWRP so that I can "enable cp logging". If I don't do that, QPST (the program you have to run to add AWS) simply cannot find the connection to my phone.
Originally I was afraid that going back to the stock recovery would remove my root, and I would have to re-root again before I can install TWRP. It turns out a non-issue.
Just a reminder when your attention is so warped up with this AWS challenge, Odin cannot flash a recovery.img file (which you extract from the stock ROM). I should have known better. After some frustrating moment, I archived this file into the .tar format and Odin flashed it without a glitch.
Upvotes: 2 |
2015/11/20 | 274 | 1,007 | <issue_start>username_0: Is there a way to bypass the first setup screen, that shows up during first boot of a new/stock ROM or after factory reset?<issue_comment>username_1: **Yes there is,** after the phone is opened and SetupWizard is on, starting with top-left corner of the screen, all corners must be tapped once, in a clockwise direction. (Top left, top right, bottom right, bottom left to be more specific)
It can be hard to do it properly at first try so if it doesn't work, just try again.
[Here's a walkthrough video.](https://www.youtube.com/watch?v=IWKXn2Vgkqo)
Upvotes: 4 [selected_answer]<issue_comment>username_2: Today the answer is most likely no, this is not possible to skip the initial setup due to FRP.
From <https://www.androidcentral.com/factory-reset-protection-what-you-need-know>
>
> Factory Reset Protection (FRP) is a security method that was designed to make sure someone can't just wipe and factory reset your phone if you've lost it or it was stolen.
>
>
>
Upvotes: 1 |
2015/11/20 | 2,100 | 5,767 | <issue_start>username_0: I have a Samsung t355c. A China model of the normal tablet that doesn't have gapps and as far as I get it a locked bootloader.
There is no custom recovery for it.
Runs 5.0.1
I managed to root it using kingo and tried many ways of pushing google apps into it. Ended up bricking it for now... redownloading original rom.
The question is. After I fix and root him again
Using adb with the root . How can I push gapps<issue_comment>username_1: I have not really tried this, but a possible approach would be following the steps a custom recovery would perform when installing ("flashing") the `.zip` file – which can be found in `META-INF/com/google/android/updater-script` (after extracting the archive). For the Kitkat GApps archive, this looks like:
```
ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/priv-app/SetupWizard.apk","/system/app/priv-app/Velvet.apk","/system/app/Vending.apk","/system/app
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up and setting metadata...");
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/priv-app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/permissions", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/preferred-apps", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata("/system/etc/g.prop", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/framework", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/lib", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/usr/srec/en-US", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/vendor/pittpatt", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
```
We of course can skip the comments/debug-output, and thus essentially end up with these steps. I assume you've unpacked the `.zip` file's contents somewhere on your device, and are sitting in a shell (terminal or `adb shell`) with root permissions (`su`) to start with:
1. `mount -o remount,rw /system` (line 2)
2. if the files listed in line 4 exist: `rm -f` for each of them
3. copy all contents of the `.zip` file's `system/` directory to `/system` (line 5)
4. `chmod 0755 /system/addon.d/70-gapps.sh` (line 6)
5. ( apply the previous 2 steps on lines 7-9 )
6. `sh /tmp/install-optional.sh` (line 10)
Now it gets a little more difficult (for beginners) interpreting the `set_metadata_recursive` commands. I'll explain this on the first one (line 13):
`/system/addon.d` must be owned by uid 0 and gid 0, file permissions should be 0755 (dmode is directory mode, fmode file mode), SELinux attributes are `u:object_r:system_file:s0`. You might have noticed I've skipped two columns: I have no idea what the `"capabilities", 0x0` stands for, so I cannot explain it (if anyone does, please comment). So let's do that:
```
chown -R root:root /system/addon.d # -R is recursive, root is user/group id 0
chmod -R 755 /system/addon.d # as dmode and fmode are the same, we can do that
# at this place missing: SELinux properties. I've never dealt with those
```
If like in line 14 fmode and dmode are different, you'll have to take care for that as well. Apply dmode as above, and follow it by a `find -type f -print0 | xargs chmod` , replacing by the first argument of `set_metadata_recursive`, and by the corresponding fmode.
Finally, remount `/system` read-only again: `mount -o remount,ro /system` – or simply reboot (you'll have to anyway), which takes care for that as well.
I have skipped the SELinux stuff due to missing knowledge. It will most likely work without – but might be good to do for additional security :)
Upvotes: 2 <issue_comment>username_2: SElinux labels you set with "chcon" command and you can the result verify by using "ls -laZ".
For:
set\_metadata\_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object\_r:system\_file:s0");
it will be:
chcon "u:object\_r:system\_file:s0" /system/addon.d
You can verify this by issuing: ls -laZ /system/addon.d
source for usage of "chcon":
<https://books.google.pl/books?id=AKbNBgAAQBAJ&pg=PA101&lpg=PA101&dq=%22u:object_r:system_file:s0%22&source=bl&ots=MbpesnKLkI&sig=ACfU3U2sJc-vYndDkUOk1Tru42hrcuPyUQ&hl=pl&sa=X&ved=2ahUKEwjqwqKiwZDnAhWiAxAIHZH8AGAQ6AEwAXoECAkQAQ#v=onepage&q=%22u%3Aobject_r%3Asystem_file%3As0%22&f=false>
Upvotes: 0 |
2015/11/21 | 2,062 | 7,427 | <issue_start>username_0: Is there a native way to filter installed apps by permission (features they have access to)? For example, filter all the apps that have access to the camera.
Looking to delete all the apps that have access to the camera without manually going through each installed app and checking its permissions...
*Android version: KitKat and newer*<issue_comment>username_1: In case, you ever decide to go with a command-line way, you can try my approach.
Dependencies
------------
* Requires [adb](/questions/tagged/adb "show questions tagged 'adb'") to be setup in PC.
* Requires *busybox* binary. If the device is rooted, install [Busybox](https://play.google.com/store/apps/details?id=stericson.busybox) app. Else, download busybox binary from [official source](https://busybox.net/downloads/binaries/latest/), rename the binary to *busybox*, set Linux compatible [executable permission](http://linuxcommand.org/lts0070.php) on that binary for everyone and move it into device using
```
adb push LOCAL_FILE /data/local/tmp/ # LOCAL_FILE is the file path where busybox binary is located in PC
```
* Requires *aapt* binary. If you're running a CM or its derivative ROM then ignore this requirement. Otherwise, for Android 4.x, you can consider downloading the binary from [here](http://android.izzysoft.de/downloads "A site maintained by our top user Izzy"), rename the binary to *aapt*, set Linux compatible [executable permission](http://linuxcommand.org/lts0070.php) on that binary for everyone and move it into device using
```
adb push LOCAL_FILE /data/local/tmp/ # LOCAL_FILE is the file path where busybox binary is located in PC .
```
Android 5.x users: ask Google for assistance.
This is my little script:
```
#!/system/bin/sh
# Check if the busybox binary exists under /data/local/tmp/ or /system/xbin. Set the detected binary's path into the variable busybox or exit if file doesn't exist or executable permission is not set
[[ -x /data/local/tmp/busybox ]] && busybox=/data/local/tmp/busybox || { [[ -x /system/xbin/busybox ]] && busybox=/system/xbin/busybox || { date +'busybox binary not found or executable permission is not set. Exiting' && exit; }; }
# Check if the aapt binary exists under /data/local/tmp or /system/bin or /system/xbin. Set the detected binary's path into the variable aapt or exit if file doesn't exist or executable permission is not set
[[ -x /data/local/tmp/aapt ]] && aapt=/data/local/tmp/aapt || { [[ -x /system/bin/aapt ]] && aapt=/system/bin/aapt || { [[ -x /system/xbin/aapt ]] && aapt=/system/xbin/aapt || { date +'aapt binary not found or executable permission is not set. Exiting' && exit; }; }; }
! [[ "$1" == +([0-9a-zA-Z._]) ]] && { $busybox printf 'Permission field should not be empty or contain anything beyond these characters: a-zA-Z0-9._' && exit; } || perm=$1;
# List package name of all the installed apps and save them in the file packages.txt under /sdcard
pm list packages | $busybox sed 's/^package://g' | $busybox sort -o /sdcard/packages.txt
$busybox printf "\nList of apps with permission $perm:\n\n";
# From the output we just saved, take each line (package name) and see whether the package has the said permission. Print the app's label and package name when positive. Before printing everything we're also sorting the lines in A-Za-z order. Sorting is not mandatory.
while read line; do
[[ `dumpsys package $line | grep "$perm"` ]] && perm=1 || perm=0;
if [[ $perm == 1 ]]; then
path=$(pm path $line | $busybox sed 's/^package://g');
label=$($aapt d badging $path 2>&1 | $busybox sed -ne '/application: label=/p' | $busybox cut -d "'" -f2);
$busybox printf "$label ($line)\n";
fi
done < /sdcard/packages.txt | sort
```
Save the script in PC into a file named `perm_script.sh` and move it into /sdcard using
```
adb push LOCAL_FILE /sdcard/ # LOCAL_FILE is the path where you saved that file into PC
```
Run that file
```
adb shell sh /sdcard/perm_script.sh PERMISSION # replace PERMISSION with the android permission for which apps are to be shown
```
The greater the apps installed in the system, the greater the time will be for the command to complete execution. In my device, it took around 40 seconds.
Demo output:
```
List of apps with permission android.permission.CAMERA:
AirDroid (com.sand.airdroid)
Android Live Wallpapers (com.android.wallpaper)
Barcode Scanner (com.google.zxing.client.android)
Camera (com.android.camera2)
CellConnectionService (com.mediatek.CellConnService)
Chrome (com.android.chrome)
...
Webkey (com.webkey)
YGPS (com.mediatek.ygps)
YouTube (com.google.android.youtube)
```
---
One-liner
=========
You can reduce the script to one line:
```
adb shell pm list packages | tr -d '\r'| sed 's/package://g' | while read line; do [[ `adb shell dumpsys package $line | grep 'android.permission.CAMERA'` ]] && echo "$line"; done
```
Drawbacks:
* Nothing much, except that you need a \*nix OS. Cygwin may work for MS-Windows.
* You won't be seeing labels but only the package names.
(To get app's label using its package name, use GAThrawn's [answer](https://android.stackexchange.com/a/19866/96277) - works if only the app is available in Play Store; use Izzy's [answer](https://android.stackexchange.com/a/115664/96277) - works for any installed app.)
Profit: execution time reduced to ~50%
---
Bulk removal
============
Use this command to remove those apps in bulk
```
adb shell pm list packages | tr -d '\r'| sed 's/package://g' | while read line; do [[ `adb shell dumpsys package $line | grep 'android.permission.CAMERA'` ]] && echo "Removing $line" && adb uninstall $line; done
```
Expect it to report failure for system apps.
---
Show App info for all
=====================
The following command would display the App info page of the apps having the permission `android.permission.CAMERA`
```
adb shell pm list packages | tr -d '\r'| sed 's/package://g' | while read line; do [[ `adb shell dumpsys package $line | grep 'android.permission.CAMERA'` ]] && printf "Launching App info page of $line\n" && adb shell am start -d "package:$line" -n com.android.settings/.applications.InstalledAppDetails --activity-multiple-task && sleep 1.5; done
```
The flag `--activity-multiple-task` is important to note. It is because of that every App info page for an app would be shown as a new task for the same activity. In essence, App Info page for every app having the fed Android permission can be accessed under the Recent activities and once you close the App Info page of an app using the Back button, the App Info page for an other app would show up because they were consecutively opened.
In this way, you can review the app having the Camera permission and take the actions on it, be it Uninstall or Disable.
Upvotes: 3 <issue_comment>username_2: Unfortunately, there is no native way, neither for KitKat nor for Lollipop (didn't try for Marshmallow). No special system app, no secret code, nothing. The only two ways (for an end-user) to access an app's info are either using the command-line, which another answer covered already or by using Settings app.
Since Settings app doesn't do what you want and command-line seems too much here, your best bet is to use a third-party app for that purpose.
Please note that even Google Play Store doesn't list installed apps based on permissions.
Upvotes: 0 |
2015/11/21 | 2,024 | 7,101 | <issue_start>username_0: I have aa WhatsApp ChatStorage.sqlite file which was taken from an iPhone backup, and I don't exactly understand the structure of the data inside the database, but it's clearly not encrypted.
I want to use this file to "restore" the messages it contains into a newer Android phone. From what I know the current format WhatsApp uses to store message databases is .db.crypt8 which I assume is the same SQLite DB, only encrypted (but I may be wrong).
WhatsApp (2.12.317) on Android (5.0) doesn't seem to "recognize" the plain .sqlite file as a backed up DB on first setup. Is there a way to make it accept the file as a message backup? Can I somehow encrypt the DB file in the format it is expecting to receive?<issue_comment>username_1: Well I've been doing the same thing for 2 days. It was relative simple. I have still not figured out how to include media.
Software you need:
Openssl
Adb (android debug bridge)
Sqlite3
legacy version whatsapp
+common unix tools
The work flow is like this:
Extract all media from iPhone backup. Filenames are hashed and indexes are in Manifest.mbdb and can be ten just copyed to right locations. With adb install legacy version of WhatsApp and retrieve key from android with adb backup. Uninstall legacy whatsapp. With adb download msgstore.db.crypt8 from android. Strip header and iv and decrypt with key and iv using openssl. Then gunzip and you have the msgstore.db
Merge msgstore.db with chatstorage.sqlite with standard SQL commands.
Gzip and encrypt msgstore.db using the same key and any iv. Store the header + the iv and the encrypted data in a file concatenated together and named msgstore.db.crypt8. Move the file to android /sdcard/WhatsApp/Database/ with adb and install WhatsApp.
I can I've you the sources but not at home rigth now.. So will do it later...
Upvotes: 0 <issue_comment>username_2: Ok... at home now.
Don't know if you run unix variant or something else... That doesn't really but all these scripts have been run under Linux.
create iphone backup (<http://libimobiledevice.org>)
====================================================
idevicebackup2 backup
Reading the backup
==================
git clone <https://github.com/PicciMario/iPhone-Backup-Analyzer-2>
make build
then modify main.py on line 1449
================================
-database = sqlite3.connect(':memory:') # Create a database file in memory
+database = sqlite3.connect('/tmp/md.db') # Create a database file in memory
then just start program and let it parse Manifest.mbdb of the iphone backup
===========================================================================
python2.7 main.py
parse /tmp/md.db and extract names of whatsapp files and media
==============================================================
sqlite3 /tmp/md.db
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter ".help" for usage hints.
sqlite> .mode csv
sqlite> .separator | \n
sqlite> .output files2.csv
sqlite> .headers on
sqlite> select fileid,domain\_type,domain,file\_path,file\_name from indice where domain = "net.whatsapp.WhatsApp" AND domain\_type = "AppDomain";
sqlite> .out stdout
sqlite> .quit
copy files and correct their names (just replace with your UUID):
=================================================================
foreach i (`cat files2.csv | grep Library/Media/ | grep '""' | sed "s/|\"\".\+$//g" | cut -d "|" -f 2- | sed "s/|/\//g"`);do;mkdir -p /tmp/extracted/$i;done
foreach i (`cat files2.csv | grep Library/Media/ | grep -v '""' | sed "s/|/\//g" | sed "s/\/AppDomain/|AppDomain/"`);do;src=`echo $i | cut -d "|" -f 1`;dst=`echo $i | cut -d "|" -f 2 | sed "s/.$//g"` ; cp -v /Path/to/iphone/backup/UUID/0ef862e6faede9b72c75b948f8b5c9663921e796/$src /tmp/extracted/$dst;done
cp 0ef862e6faede9b72c75b948f8b5c9663921e796/ec50dd986a0f35953e40f6ca9602ad78173e254f /tmp/extracted/Contacts.sqlite
cp 0ef862e6faede9b72c75b948f8b5c9663921e796/7c7fba66680ef796b916b067077cc246adacf01d /tmp/extracted/ChatStorage.sqlite
Now you have your whatsapp media and ChatStorage.sqlite
=======================================================
install adb (from Android-sdk-update-manager) <http://developer.android.com/sdk/>
=================================================================================
On android install WhatsApp, become debugger and enable usb debugging. Setup WhatsApp and send at least one message and click backup in whatsapp. Download Legacy whatsapp and possibly also current one:
=========================================================================================================================================================================================================
links <https://github.com/AbinashBishoyi/WhatsApp-Key-DB-Extractor-UnOfficial/>
wget '<http://www.whatsapp.com/android/current/WhatsApp.apk>'
adb install -r -d LegacyWhatsApp.apk
backup whatsapp (<http://www.digitalinternals.com/security/>).
==============================================================
This is the only phase the legacy version needs to be installed:
================================================================
adb backup -f whatsapp.ab -noapk com.whatsapp
Extract key (<http://www.digitalinternals.com/security/decrypt-whatsapp-crypt8-database-messages/419/>):
========================================================================================================
dd if=whatsapp.ab bs=4096 skip=24 iflag=skip\_bytes | openssl zlib -d > whatsapp.tar
tar xvf whatsapp.tar apps/com.whatsapp/db/msgstore.db apps/com.whatsapp/f/key
k=$(hexdump -ve '2/1 "%02x"' apps/com.whatsapp/f/key | cut -b 253-316)
Pull whatsapp message backup
============================
adb pull /sdcard/WhatsApp/Database/msgstore.db.crypt8 msgstore.db.crypt8
decrypt:
========
iv=$(hexdump -n 67 -ve '2/1 "%02x"' msgstore.db.crypt8 | cut -b 103-134);dd if=msgstore.db.crypt8 bs=4096 skip=67 iflag=skip\_bytes | openssl enc -aes-256-cbc -d -nosalt -bufsize 16384 -K $k -iv $iv | gunzip > msgstore.db
merge databases (<https://gist.github.com/paracycle/6107205>). The script provided here is not complete and trou reading multiple forensicsites I now know how to modify, to get your media also... but that is work in progress
================================================================================================================================================================================================================================
Anyways:
========
sqlite3 -init ../convert.sql ../merged.db
encrypt:
========
dd if=msgstore.db.crypt8 iflag=count\_bytes count=67 of=msgstore.db.crypt8; cat merged.db | gzip -5 |openssl enc -aes-256-cbc -e -nosalt -bufsize 16384 -K $k -iv $iv | dd of=msgstore.db.crypt8 bs=4096 seek=67 oflag=seek\_bytes conv=notrunc
Push new backup:
================
adb push msgstore.db.crypt8 /sdcard/WhatsApp/Databases/
Push current version back to android and start whatsapp to read the backup:
===========================================================================
adb install -r -d WhatsApp.apk
Upvotes: 3 [selected_answer] |
2015/11/21 | 850 | 3,578 | <issue_start>username_0: I have android tablet and every time i open a browser, any browser, it automatically opens pages with ads or making me download things. Obviously the tablet got a malware but i am not able to remove it. I installed Avast, Avira, Malwarbites, CCleaner but none of them was able to remove this malware.
Any other ideas how to get rid of this malware?
Usually in which location the viruses for android resides? In Windows most of them are in Temp folder but i am not very familiar with android.<issue_comment>username_1: The spams and ads didn't just come out of nowhere. Many times it's the junk app that you have downloaded. Crappy apps produce spam, ad, makes your phone act up, lag, etc.
Sounds like you have an app that produces needless ads. Go over what apps you have installed, and nit pick through them, and uninstall the app that you would think to be producing the ads.
another best way to remove malware from an Android would be to, unsurprisingly, install a malware removal app. Just be sure to install a reputable one. How silly would it be if you accidentally installed malware while trying to install a malware remover? Here are some free ones that you may want to check out:
3 60 mobile security.
Avg mobile security.
It will surely help you if not then try this
Back up all your pictures (and music and videos) to your Google account. Google+ is a great place to store your pictures, drop your videos in your YouTube account, and you can store up to 20,000 songs in your Google Play Music account. Utilize this free space Google gives you, even if it's just to store a few things while you pour digital bleach on everything.
Take the SD card out of your phone if it has one. Visit a computer and wipe and repartition it using the built-in software for disk management. Don't save anything — you need to be brutal to make sure anything nasty gets nuked. But first try Checking your app list. Then use tool if that's not helping.
Upvotes: -1 <issue_comment>username_2: I reset the factory settings: **settings>backup&reset>factory data reset** and now the ads disappeared. I also checked "opt out of interest based ads" in google settings app.
Upvotes: 1 <issue_comment>username_3: Most of the malware removers for Android are of limited value because Android makes things run in their own little sectioned-off area of memory. Sometimes, a malicious app may slip through the protection or trick you into allowing it past. Unfortunately, the same setup that tries to block malicious apps also will prevent "good" apps from trying to fix it.
One of the easiest ways I can think of to force you to default to a malicious web page is either changing the browser's default web page or creating shortcuts on your home screen so that you think you're starting your browser but you're actually going straight to the malicious web site.
First of all, try launching the browser directly from the Apps menu (where you go to see all the apps installed). It may be that the malicious software created shortcuts on your home screen that look like browsers but aren't. If launching it from the Apps menu works normally then delete all the copies on your home page and drag the App from the menu to create a "fresh" one.
If that doesn't work then something may have changed all the browers' home pages. Go into the settings for each browser and look for an option to set your home page (there's a bunch of different terms: home page, default page, starting page. Look for something like that) and set it something innocuous like Google.
Upvotes: 1 |
2015/11/22 | 143 | 624 | <issue_start>username_0: If I factory reset my phone, how long will it take for my data to set itself back up? And if it doesn't, have I lost my data?<issue_comment>username_1: Factory reset will wipe everything in your device and your device will be as when you bought it. You should always backup your data before factory reset if you need it for after use.
Upvotes: 1 <issue_comment>username_2: Your data does not set itself back up, factory resets remove everything on the phone memory so you should back up your data before you do a factory reset then copy it back to the phone after the reset is completed.
Upvotes: 0 |
2015/11/22 | 1,373 | 4,926 | <issue_start>username_0: Even though the title enunciates the problem, the question is about a solution or workaround to this behaviour.
As I have found, Marshmallow normally colors the status bar icons (Wi-Fi, Battery, Clock) on the launcher (home screens) by taking the colour of the topmost region of the wallpaper currently set and tinting the icons to a darker version of it.
This is all well and good if you have the sky there in your wallpaper, or something light-coloured; but if you have a night-time cityscape as your wallpaper, it colours the icons to be "Darker Than Black" (pun intended). So, magically, your Wi-Fi, Battery, Clock and everything else just disappears from the status bar. Only they haven't disappeared. Set a light wallpaper or a dark one with the top region light, and they're back.
I don't think that this is a problem with the launcher, as I use both Nova Prime and Google Now Launcher, and both have this problem. I also checked the System UI Tuner options for such settings relating to this tinting mechanism, and they're nonexistent (The settings there include what statusbar icons and quick settings tiles to show, battery icon customization, demo mode, and that's it).
I know of 3 possible workarounds to prevent this behaviour:
1. Disable Nova Launcher's transparent statusbar option under "Look and Feel", but I don't want to do that.
2. Use Xposed+FSCB (Flat Style Colored Bars) or similar. Well, Xposed on Lollipop 32-bit was unstable. Marshmallow ARM64? (I really have no idea, but I'm definitely not willing to take the risk.
3. This was a no-brainer. Use a light wallpaper. (Well, then I wouldn't have asked this question, would I?)
The question is: "Can I have the best of both worlds (i.e., my dark nighttime cityscapes as wallpapers and visible statusbar icons)?"
The solutions I'll prefer can involve root but not Xposed, and not 1 or 3 above. Also, it's preferable if the solution tints the icons to white on a dark wallpaper but preserves the stock behaviour otherwise, and doesn't affect apps other than the launcher, because my problem doesn't affect apps other than the launcher.
Background:
My HTC Nexus 9 16GB, Wi-Fi, flounder/volantis running Marshmallow 6.0.0 MRA58K rooted with TWRP 2.8.7.0 ElementalX 4.02
Some pictures:
Click images to enlarge
Light wallpaper:
[](https://i.stack.imgur.com/2ZDZ2.jpg)
Dark wallpaper:
[](https://i.stack.imgur.com/nSJur.jpg)
Dark wallpaper with light top region (Whaat?):
[](https://i.stack.imgur.com/0MibL.jpg)
What I want ( This is from my phone, same Nova Prime, 4.4.2, (Lollipop signal icons courtesy GravityBox KK)):
[](https://i.stack.imgur.com/QdTbD.jpg)<issue_comment>username_1: Based on @username_2's research, I understood that this isn't actually an issue with the system, rather it was a feature, "Dark Icons", that Nova Launcher only shows on and enables by default on Marshmallow, not on KitKat or lower (unsure about Lollipop).
The option on Marshmallow devices exists under Nova Settings → Look and Feel → Dark Icons (a switch). Disabling this made the icons go white everywhere, as normal.
I had no idea why this affected Google Now Launcher also, but disabling the option in Nova fixed it there too. The effect on Google Now Launcher made me think it was a system feature/bug, but I'll clarify this was not actually so. This was due to Nova Launcher and some unknown condition which made it affect both launchers. That reason might be system-specific. Thanks for everyone's help.
Upvotes: 1 <issue_comment>username_2: Based on [reddit](https://reddit.com/r/Nexus6P/comments/3qlcnm/black_status_bar_icons_on_the_home_screen_is_this/) (and I have tested it myself), apparently it's a feature of [Nova Launcher](https://play.google.com/store/apps/details?id=com.teslacoilsw.launcher) on Android 6.0 Marshmallow called "Dark icons". It seems it's enabled by default for existing users after updating the app (on my case, new installation will have to turn this setting on manually).
The setting can be checked on **Nova Settings - Look & feel - Dark icons**. Note that this is [a new feature of Marshmallow, allowing an app to have black status icons for light status bar](http://phandroid.com/2015/06/02/android-marshmallow-black-status-icons/), and thus, the setting is only available on Marshmallow and above.
As for why it also affected Google Now Launcher, I actually have no idea, since I couldn't reproduce the issue on Nexus 5 running Marshmallow 6.0. Even if I leave the option enabled on Nova Launcher, changing the home setting (on **Settings - Home - Google Now Launcher**) and pressing "Home" button will revert the whole launcher to Google Now Launcher with its default white icon.
Upvotes: 4 [selected_answer] |
2015/11/23 | 860 | 3,641 | <issue_start>username_0: There are many similar questions to what I am asking, but from my searches so far have not pointed this out:
>
> What keywords on the device advertisement or how can I tell prior to purchasing a device, if it can allow root access to applications?
>
>
>
For instance, is there a brand or a model, or even OS version, that comes with an "allows Switch User" application by default?
Is there a way for me to direct possible customers to "easily" check if a device can be made rootable...
Long story:
I built a device to help users without mobility to control an Android device. The users are usually illiterate, have no Internet access and have low resources.
My application requires root access, however, my users are very uninformed about technology, and thus I need some sort of pointer or something to help them purchase Android devices (currently, they send me an e-mail **that they usually can only check/reply once every 3 weeks**, then I check that product, and give yes/no replies to that device.... this scenario is not working out, and giving out lists with all possible/know devices is also troublesome, since most shops will sell an Android device, but will not be able to tell the client the model.
As an example, we had the D2212 Sony E3 model working (this was my local testing device)... but clients keep on asking if the "Sony one", "the black one", "the `telephony dealership` one", etc.<issue_comment>username_1: Rooting is not something endorsed by vendors (otherwise they would provide official instructions for doing this, or even ship the phones already rooted). Sony provides instructions to turn your device into a developer tool by unlocking the boot loader and changing the OS to a custom build. Motorola once offered the same. Also Nexus devices are friendly to rooting.
But in general there's no simple way to answer your question. Every user is on his own with this problem. Yes, I know this is disappointing.
Upvotes: 3 [selected_answer]<issue_comment>username_2: >
> How to check if a device can be made root-able[?]
>
>
>
If you go to a retail store and finds a device unknown to you, *you, in virtually no fashion, can come to know whether the Android there can be rooted or not* (exceptions reserved for 1-click root methods). The reason is simple. There are three common techniques to root a device:
* unblock the bootloader, flash or boot into a compatible custom [recovery](/questions/tagged/recovery "show questions tagged 'recovery'") and use it to place the superuser binary
* exploit a vulnerability when booted into Android OS and push the superuser binary, known as 1-click root access
* interface at low-level to flash a pre-rooted and device specific ROM
As you can see, the first method requires interfacing with bootloader which you can't do at retail store; the second is of course not allowed either (though you may be in luck); the third is usually not supported for all devices either and always requires a PC.
Since Android's security model is almost useless against a process running with root privileges, it explains why a device (if has to be shipped with Google Apps, it must be compatible with Android and hence, should abide by guidelines under [Compatibility Definition Document](https://static.googleusercontent.com/media/source.android.com/en//compatibility/android-cdd.pdf)) wouldn't be having a switch to change the user to superuser or give access to superuser privileges.
Is it all hopeless than?
------------------------
Yes and No. The only good option I see is the Web. Use it to search about rooting your device.
Upvotes: 0 |
2015/11/23 | 279 | 1,123 | <issue_start>username_0: My phone is a Moto G (2014) XT1068. It has recently stopped charging for some reason. This morning it was charging and tonight, it decided that it would be a prick and not charge. Anyhow I tried cleaning the connector, using various cables/plugs, wiping the cache partition, booting it up in recovery mode and nothing has worked. Could someone give me any more suggestions. I can't go to the phone repair shop at the moment and my warranty has expired :( as I am in boarding school and cannot leave for another 2 and a half weeks.
Does anyone know any suggestions on what to do??? Thanks in advance.<issue_comment>username_1: I have found myself in the position that *all* my micro-usb cables had gotten worn out, and even after having tested several, I had to buy a new cable to charge my device. Those connectors just aren't that robust. Can you find anyone who has a shiny new USB cable that you could try for a minute, just to see if that solves the problem?
Upvotes: 1 <issue_comment>username_2: You can try other battery and charge. Also check 3 point connector of battery on PCB.
Upvotes: 0 |
2015/11/24 | 2,412 | 8,573 | <issue_start>username_0: I have a broken touch screen at the bottom of my Jiayu G45 (Android 4.2.2) phone. Thus the capacitive buttons are not available any more. I've found a program (Soft Buttons) which enables software menu in apps but as a side effect it occupies a part of the screen at the bottom and renders virtual buttons there (back, home etc.). Those buttons don't work for me and I don't want to dedicate a part of screen for them. So I wonder whether it is possible to enable the software menu without virtual buttons?
I have root access.
Soft Buttons does almost what I need. When "enable virtual keys" option is selected it sets two properties in `/system/build.props`
```
# added by Soft Buttons
qemu.hw.mainkeys=0
ro.show.navigationbar=yes
```
and asks to reboot. What I expected that setting
```
qemu.hw.mainkeys=0
ro.show.navigationbar=no
```
will do exactly what I need. But it looks like the second prop value is just ignored in case first one is set to 0, as navigation bar is still shown.
Here is a screenshot (just an example, not a screenshot from my phone)
(Click the image to enlarge).
[](https://i.stack.imgur.com/j3DfF.png)<issue_comment>username_1: [LMT Launcher](http://forum.xda-developers.com/showthread.php?t=1330150)
------------------------------------------------------------------------
**Requires root access.**
I won't go into the details, but know that it doesn't replace your home launcher but gives you PIE navigation among other things, which comes down to this:
* (Click image to enlarge)
[](https://i.stack.imgur.com/r8fmY.jpg)
* You can set a PIE to Menu/Overview action from LMT app → PIE → select a PIE item → Menu
* Make sure you activate the LMT service from the Settings and then you can test the navigation.
* For starters, PIE can be navigated from left, right and bottom of the screen. Swipe from the edge towards the screen and you'll see the PIE.
* It has support for some limited gestures too. You would have to manually activate the feature from its Settings → Set Active Features.
* And don't tell anyone: it even has a PIE pointer.
[](https://i.stack.imgur.com/V2vks.png)
Upvotes: 2 <issue_comment>username_1: [GMD GestureControl](https://play.google.com/store/apps/details?id=com.goodmooddroid.gesturecontrol)
====================================================================================================
(Click image to enlarge)
[](https://i.stack.imgur.com/Pgl9X.png)
The app has [Lite version](https://play.google.com/store/apps/details?id=com.goodmooddroid.gesturecontroldemo)too. **Requires root access and not guaranteed to work on every device**.
As the name hints, you can control your device using gestures. You can choose to set a predefined gesture or you can create a custom one. The touch is supported for up to five fingers.
Anyhow, for our case, create a gesture, select number of points, and when selecting an action go to Action → Navigation → Menu. Exit the app and try your new gesture wherever an app has a menu. It should work.
Should you need any guidance in settings up the gesture, you can refer to my answer for [Unlock different Apps from lock screen](https://android.stackexchange.com/q/118943/96277)
Upvotes: 1 <issue_comment>username_1: [All in one Gestures](https://play.google.com/store/apps/details?id=com.phoenixstudios.aiogestures)
===================================================================================================
Has in-app purchases and may **require root access**.
It helps you to control the phone using gestures. The gestures are divided into two categories: Hover and Swipe. Both categories have predefined edges such as top, right, left, bottom and more, and you can configure the actions there.
For our case, the action is Menu and can be selected by ticking your desired edge under any of the category.
(Click image to enlarge)
[](https://i.stack.imgur.com/k7Oiv.png)
Upvotes: 1 <issue_comment>username_1: [Tasker](https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm)
=====================================================================================
Paid software, has 7 day free trial and **requires root access for our case.**
Tasker can create and show [scenes](http://tasker.dinglisch.net/userguide/en/scenes.html) in overlay blocking mode. What it means is, you won't have to dedicate specific part of the screen for the scenes and still can have virtual buttons.
Set the size of the scene to the size of the button you would want, assign an action to tap and show it using a task in overlay blocking mode. You can see the supplementary details in [this answer](https://android.stackexchange.com/a/120405/96277).
(Click image to enlarge; can you spot the alien here?)
[](https://i.stack.imgur.com/pUIBe.png)
Upvotes: 1 <issue_comment>username_1: [GravityBox [JB]](http://repo.xposed.info/module/com.ceco.gm2.gravitybox)
=========================================================================
* For KitKat, Lollipop and Marshmallow: [GravityBox [KK]](http://repo.xposed.info/module/com.ceco.kitkat.gravitybox), [GravityBox [LP]](http://repo.xposed.info/module/com.ceco.lollipop.gravitybox), [GravityBox [MM]](http://repo.xposed.info/module/com.ceco.marshmallow.gravitybox).
* Offers Pie controls, like [LMT Launcher](https://android.stackexchange.com/a/129733/96277) but with very limited options.
* **Requires root access and [Xposed Framework](http://repo.xposed.info/module/de.robv.android.xposed.installer)**.
* Per description, it should only be installed on a *stock AOSP Android ROM*.
Once the module is successfully enabled, go into GravityBox → Pie Controls → and configure the settings.
By limited options, I meant that you cannot remove a Pie but only change its action. In essence, it gives you a traditional navigation bar but with the ability to launch it using gestures from three edges of the screen and customize the actions behind the keys. **Note** that you can always customize the color and size of your Pies.
(Click image to enlarge)
[](https://i.stack.imgur.com/UYvM1.png)
Upvotes: 0 <issue_comment>username_2: After the OP made his question more clear ,I have a more simple solution since he doesn't need a navigation bar he just want the virtual menu called **The three dots button**
**requirements** :
1. Xposer installer get it from [here](http://forum.xda-developers.com/xposed/xposed-installer-versions-changelog-t2714053) (JB/KK only ) for Lollipop or Marshmallow it's [over here](http://forum.xda-developers.com/showthread.php?t=3034811)
2. 3dot Mod xposed module get it from [here](http://repo.xposed.info/module/it.tnx.xposednavbarmod)
**Procedure :**
1. Install the module on you phone ,activate it under Xposed installer >> modules ,reboot the phone when activating it for the first time
2. it's Done the nav bar will disappear and the 3dot button will always show up.
Upvotes: 2 [selected_answer]<issue_comment>username_3: Answering myself.
Most of the suggested solutions require Xposed framework to be installed.
Unfortunately, Xposed installer warns about known critical issue with my ROM - [Aliyun OS](http://forum.xda-developers.com/showpost.php?p=52289793&postcount=5).
Though I was not able to find how to enable 3dot menu button in applications (without navigation bar) I've found a suitable application duplicating required buttons.
It is [My Home Button](https://play.google.com/store/apps/details?id=wq.myhomebutton).
It is free, available in Google Play Store, no ad, but root is required for the menu option.
Go to `Settings->Floating buttons` and select `Floating buttons (root)` option.
After that, a floating button appears on the phone screen and expands with all buttons duplicating capacitive buttons functionality (home, back, recent apps and menu). In addition "home" and "recent" options appears in system shutter.
P.S. I still would like to enable 3dot menu in applications themselves.
[](https://i.stack.imgur.com/AfSQj.png)
[](https://i.stack.imgur.com/dooxt.png)
[](https://i.stack.imgur.com/63Iob.png)
Upvotes: 0 |
2015/11/24 | 397 | 1,640 | <issue_start>username_0: I backed up to an SD card using Helium before factory resetting my Samsung Galaxy S5. Helium could find my backups and gave the option to "restore" before factory reset - after, it's not.
I've tried this method:
1. Start Helium
2. Pick any "dummy app" to create a backup from
3. Exit Helium
4. Check where it placed the backup files, and which files those are (a backup consists of multiple files)
5. Copy your backup files to that location
6. Check if for each app there are all the files you've checked above1
7. Start Helium again, it now should find the backups
8. Restore whatever you wanted to restore
But it still only sees the recently backed up apps, not the many others I've pasted there.
What is different about my previously backed-up apps that it is not recognizing?<issue_comment>username_1: It's because the files within the `com.koushikdutta.backup/files` are deleted whenever
1. You uninstall Helium Backup, or
2. The phone has been factory reset
If those files are missing, Helium Backup will fail to recognize any of your backups, even if they exist and is easily restorable.
Requiring those files to exist in order to restore backups is honestly quite a retarded system.
Upvotes: 1 <issue_comment>username_2: If you have the premium version of the app (which enables cloud saves) then backup any of your apps to Google Drive, this will create a folder in your Drive which Helium will use for future backups. Then upload your old backup to the Google Drive folder created by Helium. Open Helium again and choose restore from cloud/Google Drive and your old backup will show up.
Upvotes: 0 |
2015/11/24 | 1,161 | 4,041 | <issue_start>username_0: **The big problem:** Like a lot of people, we are finding that our tablet does not maintain charge when connected to USB (PC or other device, not AC jack, we need data and charging simultaneously).
**What has worked so far:** On two tablets, we have been able to successfully force the tablet to draw a higher current by writing a higher value to the files
* on Acer Iconia Tab 8: `/sys/devices/pci0000:00/0000:00:18.1/i2c-1/1-0035/power_supply/smb34x-usb_charger/`
* on Samsung Galaxy Tab A: `/sys/devices/soc.0/i2c.65/i2c-13/13-0066/max77849-charger/power_supply/max77849-charger/`
on those tablets in the above directories, after setting the appropriate permissions (Acer: `chmod 777 input_cur_limit`, Tab A: `chmod 777 current_now`) we can change the USB charge current by writing to the files with the commands:
* Acer: `echo "1000" > input_cur_limit`
* Tab A: `echo "1000" > current_now`
This works great on these two tablets. An inline meter on the USB shows the current going higher (close to 1000mA, or whatever we specify) and we are not frying anything (PC, OTG device, tablet) and when the battery fills up itself regulates to a lower value. All good.
**The Problem now:** We have a new tablet. The Samsung Galaxy Tab 4 - 7" (also tried on an 8" with the same results).
We found the file we thought we should modify:
* `current_now` in `sys/devices/platform/3.i2c/i2c-8/8-0049/power_supply/sec-charger`
We changed the permissions and used `echo "1000" > current_now` to try and modify the file and nothing happens. It keeps returning instantly back to 450 and the meter reading does not go up.
**Any ideas?** It worked on the first two devices we tried, but not on these last two (Tab 4 - 7" and 8"). Maybe someone has a completely different method? Maybe there is another file to change (we have tried several other similarly named files). We understand that this breaks the USB 2 spec, but we need to charge the tablets and send data at the same time.<issue_comment>username_1: This is to point out a possibility of replacing echo option, with a copy paste option
( Before that, here is a similar search [Prevent complete charging?](https://android.stackexchange.com/questions/29961/prevent-complete-charging). .)
Related efforts and success for AC charging by replacing the file itself, when echo was not possible, (for reasons I still don't know) is my answer for Honor 6 phone here [How do I override charging current on Huawei Honor 6?](https://android.stackexchange.com/questions/92413/how-do-i-override-charging-current-on-huawei-honor-6).
On a side note, similar effort for Samsung Note 2 <https://android.stackexchange.com/questions/127288/over-ride-charging-current-on-note-2-n-7100> has not yielded a solution. Unconfirmed views are :
1. Kernel alone can do that for this phone (from two kernel chefs who made kernels for this phone)
2. Chipset limitations. This from a developer
Since their views are based on email, cannot quote names
All the best and will be looking to find if there is yet another way
Upvotes: 2 <issue_comment>username_2: Don't modify anything in the device to change its power settings.
You need to connect it to a port that can provide the desired level current. You don't make the device draw more current.
On a PC, some motherboard USB ports can provide more current. Check your PC motherboard's manual. If you don't have that, then you can try this. From the OS, shut down the PC. Do not cut the mains power supply to the SMPS (motherboard). Now, connect your tablet or any mobile phone to each one of the ports on the PC. The ports that are designated for device charging will charge device. Others will be switched off by software. Sometimes, the device charging USB headers on the motherboard may not be connected to the ports. You may have re-map the cables or add additional ports that connect to them.
<http://www.gigabyte.in/MicroSite/185/on-off-charge.htm>
The simplest way to charge tablets is to use a wall charger.
Upvotes: 1 |
2015/11/25 | 713 | 2,661 | <issue_start>username_0: This is my first time to flash the AOSP build on the device. I just followed Google's instructions to download and build the Android source code. Since I have a Nexus 7 (2013), so I chose the target to "aosp\_flo-userdebug" before starting to build. Then I ran "make" to build, and the building was successful.
After that I rebooted the device and went into the bootloader, flashed the device by the command:
`$ fastboot -w flashall`
The flash succeeded. Then after the device rebooted, it just got stuck on the Google's logo screen and never continued. If I flash it back to the factory image, it can continue booting. So I think maybe there are some mistakes I made during the building or flashing that causes the problem. But I don't know how to find the problem.
I also tried to flash only system.img by:
`$ fastboot flash system system.img`
But it's still the same result. Hope someone can give me some suggestions. Thanks.
PS: the build version is 5.1<issue_comment>username_1: Thanks to @Tamogh<NAME> for linking this to a similar question i had posted. I had similar issues and struggled with it for a while. You need to check some things. Did you flash the device specific binaries ?
In my case there was a version mismatch with the device specific binary and the device. FLO should always have FLO binaries. Otherwise it wont start. Check this post
<https://code.google.com/p/aosp4nexus5/wiki/AOSPforNexus5#Automatic_Installatin_of_GApps>
I did this long ago, so I don't remember exact step i had take, If you post details of what you have done, maybe i'll remember something.
EDIT :Updating answer based on below comment from OP
Use the second link you mentioned <https://developers.google.com/android/nexus/drivers#flolrx22g>
Your device is flo. That is the first step. Now, your AOSP build should match with the binaries version. So you cant use 5.1.51 along with binaries of version LMY48G since that is for 5.1.1 . SO checkout AOSP with the same version, i.e 5.1.1 in your case and build again with the LMY48G binaries. I remember i had the same issue but with version 5.0.1 i.e LRX22G. It worked when i checkedout an older source code.
I dont know why this happens, ideally any new version should work. Perhaps another quirks of android. I did not update android later on when the tablet booted correctly. Too big a risk to take :)
Upvotes: 3 [selected_answer]<issue_comment>username_2: Download binary can solve this issue
for example
<https://developers.google.com/android/drivers#tilapialmy47d>
download all the link, untar \*.tgz, and execute all shell script.
Then rebuild code.
Upvotes: 0 |
2015/11/25 | 484 | 1,946 | <issue_start>username_0: When media are received through Whatsapp groups and contacts, they are stored in the storage and are available for the media scanner to list them. When I view `Whatsapp videos` folder in MXPlayer I see the videos that I received through Whatsapp.
Occasionally when I see such an interesting video or image I forward to some people or group, but later to realize that I received it through them. This strikes only when I open the chat history to see the same media sent by someone else?
**Question:**
In this situation I want to find out the sender (or the group) without opening and scanning the Whatsapp messages to avoid this embarrassment. I guess the file naming convention only helps to find the date and time.<issue_comment>username_1: You can take a look at media's metadata. If the sender's name is there you can identify it that way. Otherwise you can ask WhatsApp developers to add sender's name into the title or something. Or if you want you can manually sort the files.
It's all up to the app.
Upvotes: 1 <issue_comment>username_2: Ah! I had the same problem, I am a member of "many" groups of which friends added me there. So problem is I can't leave, because I don't want to dis-heart them.
So I had one idea on how to know without checking all the messages and going to Chat Rooms etc.
Just Click on `Group Icon`, Select `Info` Icon now and there you will find `Media`.
Yeah with media now you have `Name of sender`.
You can actually check all the media without knowing them that you read the messages. :p
I don't think it's exact answer of your question, but it's called '*Work Around*' LoL
Upvotes: 1 <issue_comment>username_3: When you open the Video/Image in the gallery , sort to view it by dates ,open the details it will show 20170622 which is the YY:MM:DD , If you hadn't deleted the whatsapp Chat it would be easy to figure out from Medias Metadata , just a suggestion.
Thanks
Upvotes: 0 |
2015/11/25 | 196 | 833 | <issue_start>username_0: While I click on the whatsapp web from menu , it opens scanner but can't read the code. Why?<issue_comment>username_1: I tried to scan it in portrait rather than landscape mode and it worked.
Upvotes: -1 <issue_comment>username_2: It could happen if you're using high contrast theme on Windows. If that's the case, then just set the theme to Windows Basic theme and it will work.
I regularly do it because I use black contrast theme.
Upvotes: -1 <issue_comment>username_3: It is Most probably due to the bandwidth of either Computer or Mobile me too have faced the issue when i had a bad bandwidth as the WhatsApp web changes its QR in a very short period of time within which the Android should capture it and process it online I'll prefer you to connect your mobile in wifi and try the same :)
Upvotes: 0 |
2015/11/25 | 214 | 893 | <issue_start>username_0: i currently use the intex aqua power 2 smart phone with android 5.0 . There is a bunch of preloaded apps on it and i want to remove them . How to do it?<issue_comment>username_1: I tried to scan it in portrait rather than landscape mode and it worked.
Upvotes: -1 <issue_comment>username_2: It could happen if you're using high contrast theme on Windows. If that's the case, then just set the theme to Windows Basic theme and it will work.
I regularly do it because I use black contrast theme.
Upvotes: -1 <issue_comment>username_3: It is Most probably due to the bandwidth of either Computer or Mobile me too have faced the issue when i had a bad bandwidth as the WhatsApp web changes its QR in a very short period of time within which the Android should capture it and process it online I'll prefer you to connect your mobile in wifi and try the same :)
Upvotes: 0 |
2015/11/25 | 490 | 2,078 | <issue_start>username_0: I've rooted my phone running 4.2.2 jb through computer (I tried all mobile rooting apps but nothing worked for me)
I want to know what's the difference rooting program did?has it switched me to root user? To do that something has to be changed. Then what is it?<issue_comment>username_1: No Much Changes are Done on rooting the Android Device the User can access even the Android OS files which are responsible for All operations so This helps us to uninstall bloatware and it can also make the system potentially vulnerable i.e. Many Apps can easily Exploit the root access to spy on Your Phone even key logs can be sent over internet when the device is rooted so, if you know what thing you are messing up just go ahead else i'll better say you to stay **On Unrooted mode** and its true You can get the most from Android after rooting your Phone !! ;) \*\*Root With Caution and if you are really ready to face the consequences \*\* Some in complete Roots may make your phone cause Boot loop i.e.To stay on boot screen itself To be short this is like the su command in Linux Systems ! :)
**2nd** :
You can even Root your Computer without Computer its not that always a Computer is needed to root the phone Except for some Phones :)
Upvotes: -1 <issue_comment>username_2: You have added a binary named `su` to your phone's operating system file. Android is based on Linux OS. Not all users can do everything they want in Linux. For example, an app in your phone, can't access to another app's data. It doesn't have the necessary permissions as a normal user. All apps you install are assigned a UID (User ID) by the system. There is however, another user in Linux OS that can execute all commands and can access everywhere and has all permissions. That is the `root` user (UID 0). When you *root* your phone, you add a binary and an app to manage it. (usually SuperSU) When you grant an app root access, it can execute commands and have permissions it normally can't. **So beware of the apps you grant root access to.**
Upvotes: 3 [selected_answer] |
2015/11/25 | 1,942 | 6,826 | <issue_start>username_0: After dirty flashing my OnePlus One (bacon) from CM12.1 to CM13, I am constantly getting force close dialogs popup
```
Unfortunately the process com.android.phone has stopped
```
Logcat is filled with stacktraces like this:
```
Shutting down VM
FATAL EXCEPTION: main
Process: com.android.phone, PID: 13148
java.lang.RuntimeException: Unable to get provider com.android.providers.telephony.TelephonyProvider: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
at android.app.ActivityThread.installProvider(ActivityThread.java:5205)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4797)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4737)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5466)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
at android.database.CursorWindow.nativeGetString(Native Method)
at android.database.CursorWindow.getString(CursorWindow.java:438)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
at com.android.providers.telephony.TelephonyProvider$DatabaseHelper.getStringValueFromCursor(TelephonyProvider.java:993)
at com.android.providers.telephony.TelephonyProvider$DatabaseHelper.copyPreservedApnsToNewTable(TelephonyProvider.java:905)
at com.android.providers.telephony.TelephonyProvider$DatabaseHelper.onUpgrade(TelephonyProvider.java:641)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256)
at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
at com.android.providers.telephony.TelephonyProvider.onCreate(TelephonyProvider.java:1457)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1748)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1723)
at android.app.ActivityThread.installProvider(ActivityThread.java:5202)
... 10 more
```
Once I somehow get rid of the persistent UI popup, it seems like `com.android.phone` is crashing at least 10 times per second, flooding logcat, and making it almost impossible to use the phone.
Is there any hope for a fix, or is a hard reset the only option?<issue_comment>username_1: This was because of a change in the code.
As Firelord has said, clear the data for the apps, This can be done like so (**this will also delete your SMS/MMS database, so make sure to backup them beforehand**):
```
adb shell
rm -fr /data/data/com.android.providers.telephony/
rm -fr /data/data/com.android.phone/
exit
```
The -f flag is for force and -r flag means recursive.
Upvotes: 4 [selected_answer]<issue_comment>username_2: If you are unable to get in to an adb shell or remove the directory from your phone because it is unusable you can also remove the directory from whitin TWRP recovery.
Upvotes: 1 <issue_comment>username_3: I had the same problem while upgrading to CM13 from CM12.1. You can solve this problem without deleting your database files and therefore losing data as suggested in the other answers.
The culprit seems to be broken database [onUpgrade code](https://github.com/CyanogenMod/android_packages_providers_TelephonyProvider/blob/1c66f945564d0e61d989eed38d50224460aa320a/src/com/android/providers/telephony/TelephonyProvider.java#L905) in the TelephonyProvider of CM.
The `ppp_number` column of the carriers table does not exists, but the upgrade code assumes it already exists.
I solved it by copying the telephony.db to my local Linux machine and reverting the database version to version `16 << 16 | 6 = 1048582` to force the upgrade code to add the missing columns. The `ALTER TABLE` statements in the linked code are guarded by try-catch-blocks, so that it doesn't matter if some of the columns already exists. Boot the phone into recovery (e.g. TWRP) to have adb root priviliges and avoid lock races with the Android Runtime which is constantly trying to start the telephony provider.
```
% adb pull /data/user/0/com.android.providers.telephony/databases/telephony.db
% adb pull /data/user/0/com.android.providers.telephony/databases/telephony.db-journal
```
Create backups
```
% cp telephony.db telephony.db.bak
% cp telephony.db-journal telephony.db-journal.bak
```
Then open the database with sqlite and set the version
```
% sqlite3 telephony.db
sqlite> PRAGMA user_version = 1048582;
sqlite> .quit
```
Upload the changed database back to the device and fix permissions
```
% adb push telephony.db /data/user/0/com.android.providers.telephony/databases
% adb shell
~ # cd /data/user/0/com.android.providers.telephony/databases
/data/data/com.android.providers.telephony/databases # rm telephony.db-journal
/data/data/com.android.providers.telephony/databases # chown radio:radio telephony.db
/data/data/com.android.providers.telephony/databases # chmod 660 telephony.db
```
You could also try this on the broken system, which I wouldn't recommend. You would probably have to become root with `adb root` in order to copy and modify the files with `adb`.
Upvotes: 3 <issue_comment>username_4: I tried Sebastian's solution, but the error persisted.
The accepted answer results in losing all your SMS, therefore was not an option for me.
However, after booting into recovery mode and deleting the files
```
/data/data/com.android.providers.telephony/databases/telephony.db
/data/data/com.android.providers.telephony/databases/telephony.db-journal
```
the phone worked perfectly again. The files seem to contain only auto-generated data, so it is safe to delete them.
Upvotes: 2 <issue_comment>username_5: Had the same poblem after updating from CM12 to CM13. Here is how I was able to fix it:
I removed these two directories
```
/data/user/0/com.android.providers.telephony
/data/data/com.android.phone/
```
completly from my phone (Nexus 5). I used `ES Explorer` to do so, I had to turn on `Root Mode` and `Show Hidden Files` to be able to delete files in that directory.
Call log and SMS are still there, cannot see any disadvantages resulting from deleting those directories. Everything seems to work smooth again.
Upvotes: 0 |
2015/11/25 | 651 | 2,705 | <issue_start>username_0: Using XPrivacy, I noticed that the AOSP keyboard is loading once in a while.
The interesting thing is that I don't use the AOSP keyboard on that device. It came preinstalled, but I use a different keyboard.
Is it safe to uninstall the AOSP keyboard, or will that cause problems?
Details for that device: Stock KitKat ROM (rooted)
***Bonus points*** (but certainly not required) if you can explain *why* the AOSP keyboard is still getting called. It's not set to autostart.<issue_comment>username_1: Yes it is safe to uninstall AOSP keyboard.
I kinda feel uncomfortable writing a one lined answer... So I'll explain things a bit more in detail.
Basically, you can remove any app from android system as far as its not used by critical system functions. I dont not know of any specific up to date list that contains all apps that can be removed. But consider it this way:
What can a keyboard app be required for? Can it be used by some other app? The answer is pretty simple. The keyboard app only inputs user data. So if you have alternative, its pretty safe to remove. Even if you dont put *any* keyboard app at all, your system will work just fine even then. It will just get a little trickier to input stuff.
Again, **precaution is always better than cure.** So keep that in mind and backup first ;)
**For the second part:**
Correct me if I am mistaken, but thats a general thing in android. If you are not running an application does not mean that *system is not running it*. There could always be background services which can *trigger* some activity from an application. Especially for something as common as input methods, they generally stay in memory so they can used as soon as required.
So to keep an app *dead*, you must make sure that no background service ever calls it.
Upvotes: 2 <issue_comment>username_2: Maybe.
If your device *requires* the AOSP keyboard for the lockscreen password, device encryption, or other such features (and one or more is enabled), then uninstalling it can lock you out of your device. Many devices will allow any input method to be used (some even let you select it), but not all.
Furthermore, if you uninstall the AOSP keyboard, it is possible that you will lose the spelling check feature in Android. A sure sign of this is if, under *Language and input* (in *Settings*), your device has a *Spelling correction* feature, and the only option within it is **Android Spell Checker (AOSP)**. That feature then requires the AOSP keyboard to be installed.
*Bonus points answer:* If the AOSP keyboard is being called but is not set to autostart, then it is likely being called to perform spell checking functionality.
Upvotes: 0 |
2015/11/25 | 395 | 1,505 | <issue_start>username_0: I have an old usb printer and I'm wondering if it's possible to use it to print from an Android device.
I'm thinking a micro-usb-to-usb adapter and then just plug it in... Will it work? If not out of the box, how simple is it?<issue_comment>username_1: It likely wont. Because two things:
1) **Drivers:** Android wont know how to operate that printer. All ends here.
2) Even if printer has some Gandalf's spell to be detected by android, AFAIK android doesn't have a mechanism to pass out binary pixel data to printer to print the image.
Upvotes: 2 <issue_comment>username_2: I would plug the USB printer into a nearby computer and enable network sharing, meaning you should be able to find a way to print from your Android; I use Google's cloud print app to print from my my phone to a shared network printer.
As for a direct connection between the printer and the Android, I don't think it's possible.
Upvotes: 0 <issue_comment>username_3: There are a couple of options out there, here is a good article detailing them -
[Everything You Need to Know About Printing From your Android Phone or Tablet](http://www.howtogeek.com/165778/everything-you-need-to-know-about-printing-from-your-android-phone-or-tablet/)
Personally, I've had some luck with my old printer using an OTG cable and the PrintShare app. It seems to have a good library of drivers.
[PrintShare - Google Play](https://play.google.com/store/apps/details?id=com.dynamixsoftware.printershare):
Upvotes: 2 |
2015/11/26 | 541 | 1,907 | <issue_start>username_0: On my Android phone I use NFC Tools pro and I want to do following:
* get text from my server (i.e. to show it in a popup or text-to-speech)
* get picture from my server and show it
I found the "HTTP GET" request task but couldn't find out, how to use it.
(It is similar to following post/request: <http://forum.xda-developers.com/showpost.php?s=21b5d890966b165096d73b83bd07cd9a&p=57083540&postcount=41>).
I also can show pictures, but only those which are located on the local phone.
So the question is, how can I set up the tasks in the Android app "NFC Tools" (or maybe another app), to realize the above mentioned points?<issue_comment>username_1: It likely wont. Because two things:
1) **Drivers:** Android wont know how to operate that printer. All ends here.
2) Even if printer has some Gandalf's spell to be detected by android, AFAIK android doesn't have a mechanism to pass out binary pixel data to printer to print the image.
Upvotes: 2 <issue_comment>username_2: I would plug the USB printer into a nearby computer and enable network sharing, meaning you should be able to find a way to print from your Android; I use Google's cloud print app to print from my my phone to a shared network printer.
As for a direct connection between the printer and the Android, I don't think it's possible.
Upvotes: 0 <issue_comment>username_3: There are a couple of options out there, here is a good article detailing them -
[Everything You Need to Know About Printing From your Android Phone or Tablet](http://www.howtogeek.com/165778/everything-you-need-to-know-about-printing-from-your-android-phone-or-tablet/)
Personally, I've had some luck with my old printer using an OTG cable and the PrintShare app. It seems to have a good library of drivers.
[PrintShare - Google Play](https://play.google.com/store/apps/details?id=com.dynamixsoftware.printershare):
Upvotes: 2 |
2015/11/26 | 556 | 1,914 | <issue_start>username_0: In Bluestacks app when I am installing the XMod, the app says to root device. But how can I root Bluestacks? Please help.<issue_comment>username_1: You have to root your BS, to work around for XMod in Bluestack.
Well there are tools that can really work to root your Bluestack. There is a best XDA thread that really works.
You need this tool - **BlueStacks Auto Rooter / Unlocker**
* Download this tool and Chainfire's latest SuperSU. from the link given below.
* Choose the 'CWM / TWRP / MobileODIN installable ZIP' version.
Extract this program and add the downloaded 'UPDATE-SuperSU-\*.zip' to the program folder.
* (Re)Start BlueStacks, wait until it is fully loaded, then run MultiTool and press 1.
* WARNING: DO NOT stop this tool in the middle of the rooting process.
* Follow the instructions on the screen carefully.
Run this tool as Administrator if your current user account is restricted.
* Your BlueStacks will be restarted several times to accomplished the tasks, do not close or stop it.
* For older versions of BlueStacks, press 'Yes' immediately when prompted if you want to Quit.
**Taken Source :**
<http://forum.xda-developers.com/general/xda-assist/ive-alreadyy-rooted-bluestacks-plz-tell-t2991334>
**To install XMod in BlueStack : Watch this Video :**
<https://www.youtube.com/watch?v=dvJ1JOx3kXQ>
Upvotes: 0 <issue_comment>username_2: Yes it works and I have been using it for some time now.
1. Download the [XMod APK](http://www.xmodgames.com/xmod_download.php?sys=android&cid=1&type=app&page=index&pf=pc) This is official site
2. Now you need rooted bluestacks
3. Here is the link to [Rooted Bluestacks](http://droidforpc.com/how-to-root-bluestacks-app-player/) I am using
4. This bluestacks does not require rooting s it is pre-rooted
5. Install it on PC and open the XMod APK using Bluestacks
And that is basically it. I hope it helps. :)
Upvotes: 2 |
2015/11/26 | 654 | 2,558 | <issue_start>username_0: This issue just started today and I am at my wit's end because my phone still asks me to sign in to a wifi network which I have been using perfectly well for the past week.
[](https://i.stack.imgur.com/tCKue.jpg)
**These are the details:**
1. I'm using Samsung Note 4
2. I can use other wifi networks since the issue started, but I can't use the one at home.
3. I can go online but it disconnects automatically after a few seconds.
4. Page directs me directly to google and there isn't any sign in prompt there
5. Nobody else is having the same problem that I have
**These are the remedies that I've tried:**
1. Obvious reset of router/phone, I've even restored the router to default and reconfigured it again (still didn't work)
2. Changed wifi setting from DHCP to Static, sign in prompt disappeared but so did the internet
3. Cleared cache data
4. Took out my sim and turned it off for a few minutes (still didn't help)
5. Downloaded a few apps which were suggested by a few forums I read, nothing happened.
I hope anyone can suggest something that I haven't tried before, thank you.<issue_comment>username_1: My guess, you are using bsnl broadband with an unlimited plan, for me this happens when the broadband plan reaches it usage limit where the speed declines. So then i use the laptop to open any page and it automatically redirect into the bsnl official site asking to upgrade the plan or to continue with the declined speed n i use to choose the decline option and they ask to restart the modem. later the problem will not happen. But still its a pain to do this every month.
Upvotes: 0 <issue_comment>username_2: You can go to`setting -> WiFi` and then forget the WiFi network and then try reconnecting to the network. If you use BSNL Broadband then it may happen because you may have consumed all data you had. It happened with me too. You have to renew your pack or you can use laptop/desktop and go to the redirected page.
Upvotes: 0 <issue_comment>username_3: [](https://i.stack.imgur.com/2CqDw.png)
It's mainly caused because you exceeded the bandwith limit of your ISP.
I faced the same issue with BSNL Broadband. The problem was solved after clicking on an option on the ISP Upgrade page.
Upvotes: 0 <issue_comment>username_4: When you are asked to sign in to continue, instead of allowing the redirect to open in chrome or any other browser you installed open it with androids built in browser instead.
Upvotes: 1 |
2015/11/26 | 719 | 2,828 | <issue_start>username_0: Recently, I have decided to install a custom ROM on Galaxy Tab 8.9 (Wi-Fi) and messed up everything.
I downloaded some "ICS 4.0.3 or something" .zip file to my root folder. Stupidly didn't install any ROM manager (Play market couldn't download any app in my tablet). Tried to download .apk file, and when failed, I fed up with everything: turned off the tablet, then turned it on with VOLUME UP and POWER buttons pressed. Then in the stock recovery pressed "apply update from sd card" and chose the .zip file...
...the Samsung Galaxy Tab icon was showing up on the screen the whole night. I was thinking that it's being updated and went to sleep. But I was wrong. The next day it was turned off and when I put the charger in, some stupid big charger symbol came up. I can't turn on the device and pressing VOLUME UP and POWER buttons brings me to the recovery menu, where I've tried anything (wipe user data/factory reset, reboot) with no success.
However, when the tablet is in the recovery menu, my PC sees the device through adb when i run "adb devices". I can even push some file to "/data/local/tmp" with "adb push" command. Now I want to know: can I still somehow install some ROM or at least factory reset to my tablet?
"I want to hide under some rock for a couple days until someone helps me"
[](https://i.stack.imgur.com/o4EVN.jpg)<issue_comment>username_1: My guess, you are using bsnl broadband with an unlimited plan, for me this happens when the broadband plan reaches it usage limit where the speed declines. So then i use the laptop to open any page and it automatically redirect into the bsnl official site asking to upgrade the plan or to continue with the declined speed n i use to choose the decline option and they ask to restart the modem. later the problem will not happen. But still its a pain to do this every month.
Upvotes: 0 <issue_comment>username_2: You can go to`setting -> WiFi` and then forget the WiFi network and then try reconnecting to the network. If you use BSNL Broadband then it may happen because you may have consumed all data you had. It happened with me too. You have to renew your pack or you can use laptop/desktop and go to the redirected page.
Upvotes: 0 <issue_comment>username_3: [](https://i.stack.imgur.com/2CqDw.png)
It's mainly caused because you exceeded the bandwith limit of your ISP.
I faced the same issue with BSNL Broadband. The problem was solved after clicking on an option on the ISP Upgrade page.
Upvotes: 0 <issue_comment>username_4: When you are asked to sign in to continue, instead of allowing the redirect to open in chrome or any other browser you installed open it with androids built in browser instead.
Upvotes: 1 |
2015/11/26 | 429 | 1,719 | <issue_start>username_0: Hi I need some help with this,I want to install a custom rom to my Samsung galaxy s4 mini (I9190), I already know what rom is, and how that works, but I don't know how to install it on any device, I don't have custom recovery also. So if some one could guide me step by step, that would be great. Thanks!<issue_comment>username_1: My guess, you are using bsnl broadband with an unlimited plan, for me this happens when the broadband plan reaches it usage limit where the speed declines. So then i use the laptop to open any page and it automatically redirect into the bsnl official site asking to upgrade the plan or to continue with the declined speed n i use to choose the decline option and they ask to restart the modem. later the problem will not happen. But still its a pain to do this every month.
Upvotes: 0 <issue_comment>username_2: You can go to`setting -> WiFi` and then forget the WiFi network and then try reconnecting to the network. If you use BSNL Broadband then it may happen because you may have consumed all data you had. It happened with me too. You have to renew your pack or you can use laptop/desktop and go to the redirected page.
Upvotes: 0 <issue_comment>username_3: [](https://i.stack.imgur.com/2CqDw.png)
It's mainly caused because you exceeded the bandwith limit of your ISP.
I faced the same issue with BSNL Broadband. The problem was solved after clicking on an option on the ISP Upgrade page.
Upvotes: 0 <issue_comment>username_4: When you are asked to sign in to continue, instead of allowing the redirect to open in chrome or any other browser you installed open it with androids built in browser instead.
Upvotes: 1 |
2015/11/26 | 221 | 876 | <issue_start>username_0: Do I "restrict background data" yes or no and does it have more negative side effects than positive?<issue_comment>username_1: Here is my phone's (Note 4 Edge) warning screen for "restrict background data". The implication is that this is a feature meant to protect users with miniml plans from accidentally incurring charges. It's also darn handy when travelling overseas or out of plan range.
I do not expect it would hamper performance, but may cause some functions to not work at all.
[](https://i.stack.imgur.com/r8jXd.png)
Upvotes: 2 [selected_answer]<issue_comment>username_2: It doesn't harm your phone..it restrict background data which means you will not receive notifications of mail or messenger while doing other stuff. And some apps like Google Play won't work.
Upvotes: 0 |
2015/11/27 | 4,657 | 18,279 | <issue_start>username_0: I want to download torrents while keeping the device plugged to charge. My device is made by Samsung.
Is the power consumed from charger, or battery, to power the device when charging? Will my battery take a hit?<issue_comment>username_1: Yes. Phone does use power from battery when recharging. Although thats something which would more likely depend on how phone is designed, so it may not always be true... but most phones are this way.
I am basing my answer on a test I did. I reduced the charging voltage while at the same time making my phone (my old *Samsung Galaxy S3 I9300*) use high battery by turning on wifi video streaming, full brightness, volume etc. The battery started discharging more than recharging, and gradually decreased to zero. Soon after battery reached 0, my phone automatically shut down as if the recharger was not connected (it was connected and it started recharging normally after turning off).
Not to mention I wasn't able to run while plugged in without battery.
Again, results may vary.
As for downloading torrents, there will be a slight impact. Because nothing hardware intensive is really going on. You can probably use Android's built in battery monitor to judge if your phone will make it till the download completes or not.
Upvotes: 3 <issue_comment>username_2: Tests done to arrive at the answer posted below were correct but the interpretation of results was erroneous on my part. This was validated by two sources including Battery University and based on the correct interpretation and additional inputs a [separate answer](https://android.stackexchange.com/a/131169/131553) has been posted. This also helps in readability and understanding
---
Power is consumed by the phone from the battery when charging, if in use, as in your case.
Point to understand here is that two simultaneous processes are happening, of topping up and draining. If the battery charging algorithm and implementation in OS is not well designed and implemented, there's a possibility that this situation ends up "confusing" the charger process into thinking it is supplying less charging current when it is not.
Hence a safe practice is NOT to use the battery when it is being charged. While I cannot talk authoritatively about your phone battery being hit, better to stick to safe practices in interests of battery life
Quoting from [Charging Li ion batteries](http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries), which gives a view of three stages of battery charging and current/ voltage behaviour in these stages (emphasis mine to highlight)
"Some portable devices sit in a charge cradle in the on position. The current drawn through the device is called the **parasitic load** and can distort the charge cycle. Battery manufacturers advise against parasitic loads while charging because it induces mini-cycles, but this cannot always be avoided...."
"A portable device should be turned off during charge. This allows the battery to reach the set voltage threshold and current saturation point unhindered. A **parasitic load confuses the charger** by depressing the battery voltage and preventing the current in the saturation stage to drop low by drawing a leakage current. A battery may be fully charged, but the prevailing conditions will prompt a continued charge, causing stress."
Link posted from "Battery University", has many other informative articles on battery charging which may help
**EDIT**
Want to add diagram from Battery University link above and explain the impact of "parasitic load":
[](https://i.stack.imgur.com/W2Syv.jpg)
Three stages of charging (click image to enlarge)
In this typical example, charging completely is shown to take little over 3 hours with "saturation stage", accounting for 2 hours.
In the saturation stage, the voltage add to the battery is not increasing and the current is steadily decreasing.
Now, when you are downloading a torrent , assuming through WiFi, it takes 550 mW (for Samsung Galaxy S3), which is heavy duty. Thanks to @izzy for pointing out the source in his answer [here](https://android.stackexchange.com/questions/476/what-can-i-do-to-increase-battery-life-on-my-android-device/27742#27742).
This load will definitely divert a part of current towards torrent download (am trying to determine how much ). Whatever be the exact value of that current, it will continue as long as downloading happens and the tapering of current as shown will not happen. This is the first detrimental effect
Next, because of this current, the voltage, instead of being flat, will increase and more threatening aspect is towards the end of saturation stage. Here, the voltage is expected to fall sharply once the maximum voltage is reached, but will not happen since the parasitic load (torrent load) current is not tapering. This would result in battery staying at maximum voltage, which increases the temperature internally and creates stress in battery, damaging it.
A related aspect is that cell phones are designed to discharge rapidly from 100 to say 90%, which may be noticed say compared drop time between 80 to 70%, with same usage. This is designed so that cell temperatures internally are kept at maximum for least time. More on this [Your battery guage may be lying...not a bad thing](http://forum.xda-developers.com/showthread.php?p=9777867)
**EDIT 2**
I carried out tests using Honor 6 , and results to my mind conclusively point to saying don't use the battery while charging.
These [test results](https://engineering.stackexchange.com/questions/6406/charging-a-smartphone-battery-while-using-it) are on the sister SE electrical site and am hoping to get their view on that as well. Would update here once I get more inputs
Till then,
**Don't use the phone while charging, at least for downloading or uploading or any other heavy duty (high power consuming activity).**
This appears to be better approach, since using the phone while charging can't be avoided
While I suspect device manufacturers would have catered for minimal loads or usage while on charge- I haven't been able to investigate this as it is not documented AFAIK.
Upvotes: 3 <issue_comment>username_3: Of course your device requires power to run – whether you've set it for charging or not. Question is: Does it use more power than it gets by charging? Which depends on multiple factors:
* Your "power source". USB only charges with 500 mA (USB2) resp. 900 mA (USB3), A/C with up to 2 A.
* Your devices power consumption. Depending on what it's doing. Display turned on max brightness already uses more than USB can provide, recording/playing HD videos takes bit bites, and even a WiFi download might exceed that (see the table in [my answer here](https://android.stackexchange.com/a/27742/16575) for some example values).
So in your case, all depends on the power source. If it's USB, it might just "hold the charge", get a "trickle" or lose "a trickle" or more when downloading on WiFi – or probably constanly lose charge when on mobile data.1
Btw: Your device might get quite hot in either case :)
**Edit:** Reading your question again after the discussion in the comments, it looks like I've missed a major part of it. Asking whether the "battery will take a hit", you most likely wanted to know if "torrenting while charging" causes any harm to your battery. Hard to say absolutely, as it depends on device an battery; but a good indicator is "temperature". Batteries used today are mostly [Lithium Ion](http://en.wikipedia.org/wiki/Lithium-ion_battery "Wikipedia: Lithium-ion battery") (LiIo), seconded by [Lithium Polymer](http://en.wikipedia.org/wiki/Lithium_polymer_battery "Wikipedia: Lithium-ion polymer battery") (LiPo). Both have in common not to like "extreme temperatures". So if in the process the device gets hot, that's an indicator your battery might not like that for long.
For details, please also see our [battery](/questions/tagged/battery "show questions tagged 'battery'") [tag-wiki](https://android.stackexchange.com/tags/battery/info) and [charging](/questions/tagged/charging "show questions tagged 'charging'") [tag-wiki](https://android.stackexchange.com/tags/charging/info). Both give general information on them.
---
**1:** Note that the values in the linked post are exemplary only; your device might differ, but relations will be comparable.
Upvotes: 4 <issue_comment>username_4: One word answer : "Yes"
Yes smartphones use your battery while in use even when on charging,
>
> But it is not a good practice to use mobile while charging because it
> Slowly kills your battery life.
>
>
>
Upvotes: 0 <issue_comment>username_5: There are lots of answers that are right and go into depth. But IMO it can be put really simply in a formula:
Battery = Charger - Phone
I.e. if the charger is putting more current in than the phone is drawing then the battery will still charge (albeit slower than if the phone was off). If the phone is using more current than the charger is putting in, then the battery will drain (and not charge).
Upvotes: 0 <issue_comment>username_6: I had some phones that I connected to the charger and then removed the battery, and the phone would still work normally as if the battery was inside.
At best, it is possible that you can sustain your whole phone only from the charger, but that is device dependant I think.
Regarding device getting hot while charging and being in use - theres a chip that regulates the current inside, so it's not the battery that is getting hot, its the chip that has to handle charging + discharging at the same time.
Upvotes: 1 <issue_comment>username_2: **Short Answer**
* *Is the power consumed from charger or battery to power the device when charging?*"- Power is consumed from the charger.
* "*I want to know if my battery will take a hit* [while downloading torrents]"- No
**Long and Technical Answer**
In continuation with my earlier [answer](https://android.stackexchange.com/a/130003/131553) quoting Battery University [BU-409 Charging Lithium-ion](http://batteryuniversity.com/learn/article/charginglithiumion_batteries)
Noticed that there were other other questions on this site, which directly or obliquely touched upon this aspect of using mobile device /tablet while on charge
* [Is it safe to use phone while charging with portable powerbank?](https://android.stackexchange.com/q/58770/16575)
* [Computing when on charger - long term effects on battery life](https://android.stackexchange.com/q/102625/16575)
* [Is it possible for a device to consume more power than it is
wall-charging?](https://android.stackexchange.com/q/88319/16575)
* [Should you be on a tablet when its charging?](https://android.stackexchange.com/q/63863/16575)
* [Will playing a game in a Android phone while charging damage or cause harm to the battery or the phone?](https://android.stackexchange.com/q/37052/16575)
Majority of answers leaned towards saying, "it's safe", very few advocating cautious use / advising against using mobile devices at all while on charge. Answers were based on experience and / or technical factoids but lacked an in depth technical justification.
So, here's what I did to try and see how the bad guy "parasitic load"(as explained in my previous answer) troubles us:
1. Ran tests on using my device (Huawei Honor 6) while on charge with a couple of load conditions to simulate usage (more about this later)
2. Posted these [test results](https://engineering.stackexchange.com/questions/6406/charging-a-smartphone-battery-while-using-it) on sister SE Electrical site with a bounty to validate interpretation of results by electrical experts.
3. Mailed **Battery University**, requesting their views on the test results. I am extremely thankful to **<NAME>** of Battery University who went through the test results and offered valuable insights and also for permitting me to quote his mail
### Test Setup
Airplane mode activated and running apps minimised. OEM charger and charging cable used.
Thanks to @username_3 for [the table provided here](https://android.stackexchange.com/a/27742/16575 "What can I do to increase battery life on my Android device?"), used values corresponding to Samsung Galaxy S3, since OP has a Samsung device and results may bear a closer resemblance than testing with Motorola values.
First test was charging, with cell phone kept on (ideally, it should be off as advocated but then how do I test?) and measurements taken using 3C Toolbox. [3C Toolbox](https://play.google.com/store/apps/details?id=ccc71.at.free) was configured to record changes at every 1% change in battery status. More frequent sampling is possible but that would have drawn more power, possibly distorting test results.
Screen brightness was kept at 0% or minimumcorresponding to 567 mW from table.
Second test was with keeping screen brightness at 50% and enabling "Screen will never sleep while charging", in developer options. Reason for choosing this and not downloading follows.
a) Screen on (should) give a stable, continuous load and help catch the "parasitic load" in action.
b) WiFi download consumes 549 mW. Display at minimum brightness is 567 mW and maximum brightness is 1568 mW. Since testing is done at 50% brightness, we can perhaps average it and consider screen load to be 1058 mW, which is nearly double of downloading by WiFi and approximately equal to UMTS download (refer table), since downloading torrents was OP's concern.
### Test Results
As can be seen in the linked [site having the test results](https://engineering.stackexchange.com/questions/6406/charging-a-smartphone-battery-while-using-it) voltage graph looks very different in both cases and I was sure of having nailed "parasitic load" in action. Based on this, logical interpretation was that using the device while on charge for downloading was harmful to battery.
**I was wrong in reaching this conclusion, while the tests were correct**. I had erred in not looking at the scale (Y-axis) of the graph in both cases, while concentrating on the min and max values, as pointed out by **<NAME> of BU and @ericnutsch** on his answer at the [linked site](https://engineering.stackexchange.com/questions/6406/charging-a-smartphone-battery-while-using-it). What this means is that both graphs are pretty much similar and not skewed as it appears.
But this exercise gave good understanding which is covered below.
### Conclusions
1. As brought out in answers on electrical site quoting technical literature of 2008 vintage, it has been the best practice to **electrically "isolate" battery and load. what this means is that the charging circuit differentiates between battery and load** (here screen power or downloading) and meets their needs separately. 8 years is a long time in electronics and I am pretty sure all major OEM device manufacturers have implemented this if not improved on it as also suggested in the answers of linked site (does this explain why devices are shipped without a warning saying " Don't use the phone while charging ?). And if the load is significant enough, it could impact charging time. Quoting Bruce Huang verbatim
>
> Since the charge current is smaller with screen on, it should take longer time to charge the battery. From the chart provided, I can't tell if the "Constant current charge time" is longer or shorter (he is referring to the current charts in the test results).
>
>
>
To further verify this, I ran a third test. This was also charging with the screen on but the brightness was reduced to the lowest level permitted by ROM. This renders the screen almost opaque. This was to ensure that device is on while consuming least power possible. Pro version of [Darker(Screen Filter)](https://play.google.com/store/apps/details?id=com.mlhg.screenfilter) permits you to do this . Results:
a) Charging took 5 minutes less than earlier two tests.
b) Voltage and Current graphs were similar to previous tests.
An easy analogy (not technically rigorous) to understand - consider a tap (*Charger*) connected by a pipe to water a flower bed (*Battery*). Now you want to fill a cistern (*load or using the phone while charging*). So you fit a contraption to the tap using which two pipes can be connected independently (*electrical isolation*). Depending on the size of cistern, it may be filled before the flower bed is watered or may delay the time taken to fill the flower bed.
This **answers first part of OP question** "*Is the power consumed from charger or battery to power the device when charging?*"
2. "**Parasitic Load and Current drop**". Battery University says
>
> "A parasitic load confuses the charger by depressing the battery voltage and preventing the current in the saturation stage to drop low by drawing a leakage current."
>
>
>
Quoting <NAME> verbatim (emphasis mine)
>
> I don't think the parasitic load is going to prevent the current drop forever. I guess the parasitic load only delay the current drop for a period of time. **In this test, the parasitic load may be too small (turning on screen with 50% brightness is not huge load)** to create a significant delay to the current drop.
>
>
>
This fully explains why the current drop is similar in both cases and not different since parasitic load was not significant enough.
This answers **second part of OP question** "*I want to know if my battery will take a hit* [while downloading torrents]"
3. Does this mean we can do anything with the cell while it is on charge?
**I am afraid not**. Implementation of charging circuit, their tolerances, characteristics etc would vary from device to device and among OEMs. This does not imply you can pretty much do anything when charging. Device specific details being proprietary, are not likely be available on public domain nor provided on request.
Hence, I would not recommend using the cell while on charge for intensive, power hungry applications (just to be on the safer side) using username_3's table as a guide, if you really care for your battery. Besides keeping your hands off the cell for a couple of hours a day would give you a break too :-)
Upvotes: 3 |
2015/11/27 | 1,110 | 4,370 | <issue_start>username_0: I suddenly cannot access my phone with my normal password. it just keeps saying its incorrect. How can I unlock my Samsung Galaxy Note 3 without factory reset. Very urgent help needed please.<issue_comment>username_1: **Follow the below steps if you forgot lock screen password.**
1. Enter a wrong lock screen pattern five times (shouldn’t be hard if
you don’t remember the correct one)
2. Select ‘Forgot Pattern’
3. Now you should be able to enter a backup PIN or your Google account
login.
4. Enter either your backup PIN or your Google login.
5. Your phone should now be unlocked.
**You can also follow Device Manager by Android steps**
*Ensure that you had enabled Android Device Manager as a device administrator under security settings before trying this.*
1. On a computer or other mobile phone, visit:
google.com/android/devicemanager
2. Sign in using your Google login details that you also used on your
locked phone.
3. In the ADM interface, select the device you need to unlock (if it
isn’t already selected).
4. Select ‘Lock’
5. In the appearing window, enter a temporary password. You don’t have
to enter a recovery message. Now click ‘Lock’ again.
6. If it was successful, you should see a confirmation below the box
with the buttons Ring, Lock and Erase.
7. On your phone you should now see a password field in which you
should enter the temporary password. This should unlock your phone.
8. Now, before you go on with your life, go to your phone’s lock
screen settings and disable the temporary password.
**Disable your lock screen using custom recovery and “Pattern Password Disable”**
1. Download the [pattern password disable](http://forum.xda-developers.com/attachment.php?attachmentid=2532214&d=1390399283) ZIP file on your computer and
put it on an SD card.
2. Insert the SD card into your phone.
3. Reboot your phone into recovery.
4. Flash the ZIP file on your SD card.
5. Reboot.
Your phone should boot up without a locked screen. Should there be a password or gesture lock screen, don’t panic. Just type in a random password or gesture and your phone should unlock
That’s it!
Upvotes: 2 <issue_comment>username_2: I had similar problem and to me it was weird! It happened like this:
My Note 3 hot spot (tethering) stopped working. When I switched it on it displayed a message "hot spot in use" and it did not connect to any of my devices as usual.
I reinstalled my device (reset to factory settings) and it worked perfectly. Hot sport stared working. Then I set my common password to my Note 3, and actually I used it for a couple of times. Later, the devices rejected my password! All the time it said "wrong password"!
I used several options including locking it using "Android Device Manager" exactly as the method is suggested here above. Yes, my phone was locked with a black screen but it did not REPLACE the lock screen with one I put in the website for Android device manager! (I think this is not good. Android device manager should be more serious) So I was stuck again!
What I finally did was to go to the "<https://account.samsung.com>" and put my Samsung account information and used the "unlock" button. All passwords were wiped clean! Now I can access my devise.
I hope this will help somebody
<NAME>
Upvotes: 0 <issue_comment>username_3: The other two answers are good, this is just another system/recovery way of backing up your data in case you don't have access to a backup PIN or Google Account. But of course, you'll need to have access to fastboot and CWM recovery image of your device for this to work!
1. Start your phone in fastboot mode by long-pressing DnVolume+Power button.
2. Connect to a PC using USB cable (ensure ADB drivers are installed) and run this command (replace path with your CWM image path):
```
fastboot boot /path/to/CWM.img
```
3. Once inside CWM recovery you can use adb commands! Mount the /data and /system partitions if they aren't already, and pull whatever data you want. For example, to list all the files and folders in your external sdcard, run:
```
adb shell ls -al /sdcard/
```
4. To copy a file, run:
```
adb pull /sdcard/foo.bar
```
This way, you can recover anything you want from the phone/tablet even if you forgot your PIN and don't have access to internet or google account or an OEM alternative method!
Upvotes: -1 |
2015/11/27 | 782 | 2,728 | <issue_start>username_0: I have a Nexus 7 (2013) shipped with Lollipop 5.1. I downloaded the 4.3 factory image from <https://developers.google.com/android/nexus/images> and flashed it on the device. But after reboot, it just stuck on the Google's logo screen. I tried to search the solution, but didn't find one.
Please help. Thanks.
---
Updated 1:
Just for test, I downloaded another several different factory images after that, which are 4.4, 4.4.4, 5.0 and 5.1. Finally, I found all images below 5.0 can't work on my device.
I flash the image just by running "flash-all.sh"
---
Updated 2:
I also noticed there're some errors in the recovery mode. Here's the screenshot
[](https://i.stack.imgur.com/acliO.jpg)
I discovered there's a similar question with me [Nexus 7 Error: Failed to mount /cache](https://android.stackexchange.com/questions/89892/nexus-7-error-failed-to-mount-cache). I tried with "fastboot format cache" and "fastboot erase cache", but doesn't work for me.<issue_comment>username_1: Boot to recovery.
Backup everything you need using MTP Usb connection.
Wipe system, data, cache, and dalvik.
Flash the image again.
Upvotes: -1 <issue_comment>username_2: I was able to successfully resolve a very similar problem with my 2013 Nexus 7. However, I have not actually confirmed that it works with an Android 4.X stock ROM yet.
I discovered that my system default `fastboot` command (located at `~/bin/fastboot`) was a symlink pointing to an executable `fastboot-mac` from the CF-Auto-Root package. (I must have made this change a long time ago for some other purpose and forgotten about it.)
The solution was to change the symlink to point to the proper `fastboot` executable located in my `android-sdks` directory. I then flashed a 6.0.1 stock ROM (MOB30X specifically) using `flash-all.sh`, and after 10 minutes of the Marshmallow boot animation, it successfully booted into Android. (Flashing the same stock ROM using the same procedure had not worked previously.)
I have a bit of evidence that suggests that this change was actually important, in addition to the fact that it worked this time. In the previous flash attempts with the old `fastboot-mac` executable, the `flash-all.sh` log messages included the following:
```
erasing 'cache'... OKAY
rebooting...
```
However, they did not mention that the cache partition was actually rewritten at any point. The new `fastboot` includes the log messages:
```
erasing 'cache'...
OKAY [ 0.026s]
sending 'cache' (10984 KB)...
OKAY [ 0.375s]
writing 'cache'...
OKAY [ 0.466s]
rebooting...
```
which explicitly says that the cache has actually been rewritten.
Upvotes: 0 |
2015/11/27 | 623 | 1,882 | <issue_start>username_0: I downloaded SDK from the official website.
I installed it, but when I try to use it this happens:
[](https://i.stack.imgur.com/nVgvm.png)
What mistake did I make?
I use Ubuntu 14.04.<issue_comment>username_1: Did you install additional packages required for adb to work?
According to [Google Android's SDK Page](http://developer.android.com/sdk/installing/index.html?pkg=tools)
>
> If you are running a 64-bit distribution on your development machine,
> you need to install additional packages first. For Ubuntu 13.10 (Saucy
> Salamander) and above, install the `libncurses5:i386`,
> `libstdc++6:i386`, and `zlib1g:i386` packages using apt-get:
>
>
>
> ```
> sudo dpkg --add-architecture i386
> sudo apt-get update
> sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
>
> ```
>
> For earlier versions of Ubuntu, install the `ia32-libs` package using
> apt-get:
>
>
>
> ```
> apt-get install ia32-libs
>
> ```
>
>
You can check all the dependencies an executable needs using `objdump -x ./adb | grep NEEDED`.
Make sure all required packages are present in your system. And finally, as @Firelord said, also make sure that the file is executable.
Also have a look at [this](https://stackoverflow.com/questions/11250085/bash-cannot-find-adb-even-though-its-definitely-there4) and [this](https://stackoverflow.com/questions/14972641/ubuntu-64-with-android-64-bundle-cannot-find-adb-executable) similar questions.
Upvotes: 1 <issue_comment>username_2: Why don't you just install adb from Ubuntu official repository.
Run:
```
sudo apt-get install android-tools-adb
```
In terminal for adb and
```
sudo apt-get install android-tools-fastboot
```
For fastboot. In this way you can use adb and fastboot in any directory! Make sure your usb debugging is enabled.
Upvotes: 0 |
2015/11/27 | 1,254 | 4,576 | <issue_start>username_0: This looks like this
[](https://i.stack.imgur.com/5rMUF.png)
The problem is I very rarely send something to contacts. The case I am looking for some app is much more frequent, usually processing the image, e.g. share from google camera to VSCO cam, or from VSCO cam to Instagram, Facebook, etc.
Thus, app list must be shown first. But I see this contact list, I will very unlikely to use. I even doubt the contact in the rare ocassion of direct share will be in the list.
This functionality also slows down the dialog, it takes quite a while for it to be shown.
So, the question is if there is any way to disable this funcionality. I just don't need this.<issue_comment>username_1: This question has been on the unanswered list, surprisingly, while there is a solution available for **rooted users with Xposed** (tested on Marshmallow)
OP is looking for two requirements
1. Removing contacts from Whatsapp, Gmail, Inbox etc appearing at the start of list
2. Pushing the apps frequently used for direct share on top of the list
Both these can be done by [CustomShare](http://repo.xposed.info/module/de.defim.apk.customshare) Xposed Module. Also available on [Play Store](https://play.google.com/store/apps/details?id=de.defim.apk.customshare&hl=en)
Developer discussion [at XDA here](https://forum.xda-developers.com/xposed/modules/app-customshare-t2639199)
The module under *Mode* has two options - *Open* and *Share*. Using the *share* option we can select up to 9 apps (more requires donation version) to be blocked from appearing in the list. Pics below show the difference after blocking Gmail, Inbox and WhatsApp on my device ( When blocking WhatsApp, you do get a warning message that it can't be used for SMS but in my limited testing it had no impact )
[](https://i.stack.imgur.com/LpJlNm.jpg)
[](https://i.stack.imgur.com/oDJYDm.jpg)
Coming to the second requirement of moving up the frequently used apps (which can be a big pain , considering practically every app registers itself as direct share)- . Under module settings *Sort Order* , untick *Let Android sort the items* and move the order of apps as desired. In the case below , Clipboard Pro, Chromer, and Cam Scanner have been given elevated visibility
[](https://i.stack.imgur.com/tP3oGm.jpg)
Upvotes: 1 <issue_comment>username_2: If you are rooted but don't want to use Xposed you can use Android's native [Intent Firewall](https://www.bignerdranch.com/blog/implementing-android-marshmallow-direct-share/) to block direct share. This works on Android 6.0 all the way up to 8.1:
As answered earlier here:
[Removing contacts (aka “Direct Share”) from Share panel on Marshmallow](http://www.cis.syr.edu/~wedu/android/IntentFirewall/index.html)
It turns out that - for rooted people - there is a way to completely turn off Direct Share!
In my search for a way to stop this stupid feature from bugging me I had a look at how the feature is actually implemented in apps by developers. It turns out that [they register a service with an intent receiver](https://www.bignerdranch.com/blog/implementing-android-marshmallow-direct-share/) (read: event listener) and when I realized that, I started looking for a way to block certain intents from broadcasting through the system. Well, Android actually has that built in. It's called the [Intent Firewall](https://android.stackexchange.com/a/160350/138876). I quickly figured out how to create a rule for it to block apps from receiving the "Hey are there any apps that want to bug the user by putting a couple of Direct Share buttons under their thumb as they're about to tap something?"-event.
You just create a simple xml file like and drop this into it:
```
```
Now you have to put it on the phone and copy it into the Intent Firewall directory. On most devices that would be
```
/data/system/ifw/
```
I simply used Root Explorer to copy the file there (no chmod required), tried to share something that caused Direct Share targets to pop up and BOOM! Nothing!
I recommend to do some background reading (see links above), especially about how the Intent Firewall works and how you can find the folder.
Happy not-sharing!
Upvotes: 3 |
2015/11/27 | 1,085 | 4,007 | <issue_start>username_0: I sold my Galaxy Tab 3 Lite on eBay. After I mailed it out to the buyer, I remember that I'd forgotten to erase it first. The problem is *not* about sensitive information. The problem is (still using my Google Password) the buyer might not be able to get into and use the tablet.<issue_comment>username_1: This question has been on the unanswered list, surprisingly, while there is a solution available for **rooted users with Xposed** (tested on Marshmallow)
OP is looking for two requirements
1. Removing contacts from Whatsapp, Gmail, Inbox etc appearing at the start of list
2. Pushing the apps frequently used for direct share on top of the list
Both these can be done by [CustomShare](http://repo.xposed.info/module/de.defim.apk.customshare) Xposed Module. Also available on [Play Store](https://play.google.com/store/apps/details?id=de.defim.apk.customshare&hl=en)
Developer discussion [at XDA here](https://forum.xda-developers.com/xposed/modules/app-customshare-t2639199)
The module under *Mode* has two options - *Open* and *Share*. Using the *share* option we can select up to 9 apps (more requires donation version) to be blocked from appearing in the list. Pics below show the difference after blocking Gmail, Inbox and WhatsApp on my device ( When blocking WhatsApp, you do get a warning message that it can't be used for SMS but in my limited testing it had no impact )
[](https://i.stack.imgur.com/LpJlNm.jpg)
[](https://i.stack.imgur.com/oDJYDm.jpg)
Coming to the second requirement of moving up the frequently used apps (which can be a big pain , considering practically every app registers itself as direct share)- . Under module settings *Sort Order* , untick *Let Android sort the items* and move the order of apps as desired. In the case below , Clipboard Pro, Chromer, and Cam Scanner have been given elevated visibility
[](https://i.stack.imgur.com/tP3oGm.jpg)
Upvotes: 1 <issue_comment>username_2: If you are rooted but don't want to use Xposed you can use Android's native [Intent Firewall](https://www.bignerdranch.com/blog/implementing-android-marshmallow-direct-share/) to block direct share. This works on Android 6.0 all the way up to 8.1:
As answered earlier here:
[Removing contacts (aka “Direct Share”) from Share panel on Marshmallow](http://www.cis.syr.edu/~wedu/android/IntentFirewall/index.html)
It turns out that - for rooted people - there is a way to completely turn off Direct Share!
In my search for a way to stop this stupid feature from bugging me I had a look at how the feature is actually implemented in apps by developers. It turns out that [they register a service with an intent receiver](https://www.bignerdranch.com/blog/implementing-android-marshmallow-direct-share/) (read: event listener) and when I realized that, I started looking for a way to block certain intents from broadcasting through the system. Well, Android actually has that built in. It's called the [Intent Firewall](https://android.stackexchange.com/a/160350/138876). I quickly figured out how to create a rule for it to block apps from receiving the "Hey are there any apps that want to bug the user by putting a couple of Direct Share buttons under their thumb as they're about to tap something?"-event.
You just create a simple xml file like and drop this into it:
```
```
Now you have to put it on the phone and copy it into the Intent Firewall directory. On most devices that would be
```
/data/system/ifw/
```
I simply used Root Explorer to copy the file there (no chmod required), tried to share something that caused Direct Share targets to pop up and BOOM! Nothing!
I recommend to do some background reading (see links above), especially about how the Intent Firewall works and how you can find the folder.
Happy not-sharing!
Upvotes: 3 |
2015/11/27 | 823 | 2,845 | <issue_start>username_0: I started seeing the left most icon on my screen a few days ago and I can't find a reference to what this image means. About a week earlier I upgraded my 2nd Gen Moto G to Lollipop.
[](https://i.stack.imgur.com/euKb8.png)<issue_comment>username_1: From left:
Vibrate, Wifi, Mobile signal, Battery
So yeah, its the `Vibration` symbol means your phone is set on vibration mode.
Upvotes: 1 <issue_comment>username_2: Some techniques to find an image:
* I recommend checking the [official list of icons for Lollipop](https://www.google.com/design/icons/#ic_vibration) first. The icon depicts that the device is currently in vibration mode.
[](https://i.stack.imgur.com/jbp57.png)
Other icons, as [Jaskaranbir mentioned](https://android.stackexchange.com/a/130072/96277), in the order left to right, correspond to [Network Wi-Fi](https://www.google.com/design/icons/#ic_network_wifi), [Signal Cellular full bar](https://android.stackexchange.com/q/56269/96277), and [Battery partially filled with flash depicting charging](https://goo.gl/vz2CI3 "URL expands to Google image query").
* If the official list isn't enough, do a reverse image search. Crop the icon and use it in a reverse image search engine (such as Google). See the [example query](https://goo.gl/IrMU6O "The original query is way too big, so I added a shortener here").
* At times, using your analysis of the icon in a web search also works.
* When it comes to icons in right side of the status bar, it is safe to assume that the icon is part of SystemUI app, in which case, simply look into latter's [drawables](http://developer.android.com/guide/topics/resources/drawable-resource.html). Often, drawables have name that represents the logic behind the icon, so you can get a very good guess out of them.
+ For that [Resource Browser](https://play.google.com/store/apps/details?id=com.aaron.resourcebrowser) can prove to be a very useful app. It can list all the drawables of an installed app in a single page, so you can view all of them easily.
(Click image to enlarge; image source: [Google Play Store](https://play.google.com/store/apps/details?id=com.aaron.resourcebrowser); no affiliation to app at all)

+ An alternative is to extract the APK in a folder, then run this command in that directory using a terminal emulator app
```
find ./ -type f -iname *.png -o -iname *.jpg -o -iname *.gif | while read line; do cp "$line" ./; done
```
You may need Busybox app installed. The command would recursively find all the images with PNG, JPG and GIF extension and copy them in the root of your directory. You can later see them using a file explorer app.
Upvotes: 2 |
2015/11/27 | 1,559 | 5,808 | <issue_start>username_0: There are two memory hungry apps, Facebook and Facebook Messenger, which I want to disable at times but not always. I used:
* settings → apps → downloaded → Facebook → force stop
* settings → apps → running → Facebook → → stop
* settings → apps → all → Facebook → force stop
But the app restarts after few minutes, often accompanied by lots of thrashing. Ideally I would like to disable the app and remove it from memory until I decide to use it. What is the best possible solution?
Android version is 4.4.4, almost stock, not rooted.<issue_comment>username_1: Manual methods might be tricky here. I'd recommend taking a look at [Greenify](https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&rdid=com.oasisfeng.greenify "Greenify at Google Play"), which will take care for such apps automatically (after you've told it so – you're the boss after all ;)
[](https://i.stack.imgur.com/LfBRw.png) [](https://i.stack.imgur.com/jDTdL.png)
*Greenify* (source: [Google Play](https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&rdid=com.oasisfeng.greenify "Greenify at Google Play"); click images for larger variants)
As the screenshots show, *Greenify* can "hibernate" apps automatically when the screen is off (and it can do the same when configured apps are not in foreground) – which is basically like an "automated freezing/disabling" of the app. Big difference: you no longer have to care for that yourself. App icons and everything remain accessible. From the app's description:
>
> Greenify help you identify and put the misbehaving apps into hibernation when you are not using them, to stop them from lagging your device and leeching the battery, in an unique way! They can do nothing without explicit launch by you or other apps, while still preserving full functionality when running in foreground, similar to iOS apps!
>
>
>
To point out some details which where misinterpreted1, please take a closer look at the first screenshot. You can see it shows 3 sections:
* **"Not hibernating automatically"** (showing "Lux Lite"): This shows you've got the last word which apps *Greenify* shall deal with. In fact, without you doing so, *Greenify* won't deal with any app.
* **"Will hibernate in minutes after screen is off"** (showing Evernote & Co): This is *one* of the ways *Greenify* can deal with apps: things which do not need to be active while you switched off your screen can be sent to sleep (though the selection in the screenshot seems weird to me: I'd never put my automation app – here IFTTT, in my case Tasker – into this section)
* **"Hibernated"** (showing "Amazon Kindle"): So the apps there *are* put to sleep, though the screen is on (otherwise this section wouldn't make any sense as you'd never be able to see it). These are the apps "put to sleep" whenever they're not running in foreground: why should an eBook reader (here: Kindle) be active when you can't see it (unless it's using [TTS](https://en.wikipedia.org/wiki/Text-To-Speech "Wikipedia: Text-To-Speech") to read a book aloud, of course)?
*Greenify* comes for free and doesn't require root to work (see top of second screenshot: "Working Mode: Non-Root") – though it unleashes its full powers with root, its [Donation package](https://play.google.com/store/apps/details?id=com.oasisfeng.greenify.pro&rdid=com.oasisfeng.greenify.pro "Greenify Donation Package at Google Play"), and the [xposed-framework](/questions/tagged/xposed-framework "show questions tagged 'xposed-framework'").
If you want to learn more on this app: there are currently [over 70 answers mentioning it](https://android.stackexchange.com/search?q=greenify+is%3Aanswer), feel free to browse :)
---
**1:** before I complemented my answer with this information; see e.g. comments [on this other answer](https://android.stackexchange.com/a/130092/16575)
Upvotes: 3 [selected_answer]<issue_comment>username_2: This is an alternative solution. You could try [3C Toolbox](https://play.google.com/store/apps/details?id=ccc71.at.free). This is a veritable toolbox that can do a lot of things. For your need, you need to access
*DISCLAIMER*: The non-root validity of this method cannot be verified by [me](https://android.stackexchange.com/users/92056/tamoghna-chowdhury) or @username_2.
This was confirmed to be working without root in an earlier Android version. If someone can verify that this method works on the OP's Android version, please edit out this disclaimer.
App manager → select user apps from menu at bottom → choose manage (last option on right side) → from the drop down → choose crystallize and you get the options → choose option 1 (for both your apps)
[Explanation of the options offered by the developer on his thread at XDA](http://forum.xda-developers.com/android/apps-games/app-2-3-3c-toolbox-pro-t2942186/page13) (option names are different as in earlier versions but functionality is same) is
1) ***Never Runs in Background*** : the app is not autorized to run while the UI is not visible, ever. Good for standard apps on which no other app relies. App is restarted each time you start its UI.
2) ***Never Runs in Background,keep UI Until Screen Off***: Same as above, but keeps the app running until screen is turned-off.
3) ***May run in Background when Screen is on*** App may run when screen is turned on, but is stopped when it is turned off. Good for apps on which other apps relies. Good for Play Services and similar apps.
You can also create a widget shortcut for app manager module, to be placed on the home screen, for quick accessibility in case you need to change the behaviour. To enable your apps you can choose option 2
Upvotes: 1 |
2015/11/28 | 231 | 998 | <issue_start>username_0: This is not particularly an android related question. All the phones I have used so far, don't record voice in mp3 format. Is it a limitation of the phones? Is there any benefit in recording voice in other formats than mp3? I really don't get it.<issue_comment>username_1: In short, MP3 is a **Compressed audio file format**, which means some details of Audio will be deleted to reduce the size. If you record your audio in MP3, **the quality will be low than recording in Other formats** such as ogg or aac.
Hardware is not a limitation. Recorded audio can be converted into any other format using simple software.
Note: Now-a-days many applications in Playstore which can record directly in MP3.
Upvotes: 2 [selected_answer]<issue_comment>username_2: In addition to the other answers MP3 also requires some CPU, not a lot by today's standards, but enough to make a difference especially when in the background with other applications competing for CPU time.
Upvotes: 0 |
2015/11/28 | 244 | 1,067 | <issue_start>username_0: My brother wants to download an app on his tablet yet it says he has insufficient storage so i went to his storage where it has picture then the amount it takes up and downloads and apps and so on yet when you count all these amounts its around 2 gb yet at the bottom it has 12 gb please help!!!!! Thanks in advance<issue_comment>username_1: In short, MP3 is a **Compressed audio file format**, which means some details of Audio will be deleted to reduce the size. If you record your audio in MP3, **the quality will be low than recording in Other formats** such as ogg or aac.
Hardware is not a limitation. Recorded audio can be converted into any other format using simple software.
Note: Now-a-days many applications in Playstore which can record directly in MP3.
Upvotes: 2 [selected_answer]<issue_comment>username_2: In addition to the other answers MP3 also requires some CPU, not a lot by today's standards, but enough to make a difference especially when in the background with other applications competing for CPU time.
Upvotes: 0 |
2015/11/29 | 375 | 1,608 | <issue_start>username_0: My tablet was not working correctly so i decided to do a factory reset when it booted up it was freezing so I powered it off and entered recovery mode but then I accidentally deleted the OS. This was a huge mistake TWRP was giving me options of booting it into download mode, power off or restarting it. After trying to restart it and powering it offit kept going back to TWRP so I decided to go into download mode it entered without giving me the option off restarting or continuing i had no idea what to do so I opened Odin on my PC and applied a 'cf auto root' because i had done that the last time I seen the download mode. It worked and then it rebooted and now its stuck in the 'Samsung Galaxy Tab S SM-T700 powered by android screen'. The tablet is 11 months old and I still have a warranty I don't know if it is void or not. someone please help me.<issue_comment>username_1: In short, MP3 is a **Compressed audio file format**, which means some details of Audio will be deleted to reduce the size. If you record your audio in MP3, **the quality will be low than recording in Other formats** such as ogg or aac.
Hardware is not a limitation. Recorded audio can be converted into any other format using simple software.
Note: Now-a-days many applications in Playstore which can record directly in MP3.
Upvotes: 2 [selected_answer]<issue_comment>username_2: In addition to the other answers MP3 also requires some CPU, not a lot by today's standards, but enough to make a difference especially when in the background with other applications competing for CPU time.
Upvotes: 0 |
2015/11/29 | 1,480 | 5,852 | <issue_start>username_0: sorry if the question is a bit off-topic but any help would be much appreciated.
I have a Samsung S4 [I9505] and I was looking for a good protective case for it. initially I was going for a Slim TPU Gel case but it didn't feel like it would give much protection from bumps etc.
I was thinking of buying a leather case with a magnetic closure but after reading a bit online, people are saying the magnetic flap which closes the case can damage the AMOLED screen, also the magnet that sits on the screen side. So do you think it could be risky to use this case? Would it damage my phone or screen in any way?<issue_comment>username_1: There are two things to consider:
1. Temporary interference with the device operation. Magnets can and do affect the device in various ways. This includes [messing with the digitizer](http://forum.xda-developers.com/showthread.php?p=41744207), creating [dead spots and distortion](http://nicks-software.com/wordpress/2013/01/samsung-galaxy-note-2-cases-with-magnets-are-not-good-for-your-phablet/), and potentially affecting sensors such as the magnetometer. These effects are temporary, but in severe cases could make the device hard to use, or result in misinformation from apps dependent on affected sensor(s).
2. Permanent damage. There seems to be a lot of controversy around this, but I would still recommend caution unless you know for sure that the specific components in your phone when combined with specific magnet strength and location with respect to the screen, are known to be OK together. As I understand it, there are certain AMOLED screens in older devices that [are susceptible](http://forum.xda-developers.com/showthread.php?p=11219569), but others that are not. In a large production run device like yours, the OEM may have used different suppliers over time, so it might be difficult to find out before hand if your particular device is susceptible. The specific case you get also matters. If you get a cheapo one from eBay and it damages your screen, you'll have little recourse with the case supplier or Samsung.
If you really need/want a magnetic closure, I would see if you can find one from a reputable manufacturer that has made the case specifically for your device.
Upvotes: 2 <issue_comment>username_2: One experience-based data point: my boss has an S4 Mini in a magnetic closure case (with the small data window that depends on the phone detecting when the case is open or closed to display a compact clock when closed), and has had it for at least a couple years. He uses the phone a lot, so I'm pretty sure I'd have heard if there was a problem.
No way to be certain that goes for all S4 family phones, but at least some are okay.
Upvotes: 1 <issue_comment>username_3: I bought a magnetic flip case for my phone, and two major things happened:
1) after a brief period of working beautifully, the phone became more electronegative in some way, and I had to brush off any metallic objects such as pen caps or cetain keys whenever removing it from my backpack; and
2) at this juncture, the GPS ceased to be able to tell where the phone was. For a while, it still functioned (but only if the magnetic case was on the phone.) At this point, the phone was magnetic enough to cling quite firmly to the outside of my car, so I got rid of the case, and that's where we are with it. Recommended for anyone longing for a way to undermine any remote snooping on the cheap. Otherwise, no.
Upvotes: 2 <issue_comment>username_4: I have a Samsung galaxy android phone that was originally housed in a mechanically latched case. The latch broke and I bought a magnetic latched case. The phone did not work correctly, as if there was random noise generator turning on and off the APS and slowing down/delaying APS.
I tried to get rid of what I thought were corrupted APS, but achieved no change. Then after awhile and reading articles pro and con about the effects of a magnetic latched case I left the phone out of the magnetically latched cases.
Walla, the phone went back to working correctly after restarting. So if you are having these problems dispose of the magnetic latched case and see what happens?
Upvotes: 1 <issue_comment>username_5: I have a Samsung Galaxy S6 with a Shieldon leather case (an excellent case in all other ways) that has a magnetic closure. From the phone sensors readings, when the phone is removed from the case the magnetic field drops from 250 µT to 40 µT. The compass is constantly wrong, as it indicates the North always towards the left side of the phone, although compass calibration is reported as "very good". Recalibrating the compass or removing the phone from the case doesn't have any effect.
EDIT: I manage to fix the problem by removing the phone from the case and recalibrating it. Related question: [Is it possible to reset the compass calibration to factory settings?](https://android.stackexchange.com/questions/177608/is-it-possible-to-reset-the-compass-calibration-to-factory-settings/189643)
Also, I remember that the magnetic case of the i-mate K-Jam (a PocketPC phone sold during the 2000s) caused the screen orientation to "stick" for a few seconds.
Apart from this, I've never experienced or heard about any ill-effect of the magnets to the screen. However, it causes the issues above reported, so for what concerns me my next case isn't going to have any magnets.
Upvotes: 0 <issue_comment>username_6: There are flip covers without magnets (mechanically latched - also you can remove that if you don't need something to keep it closed).
I have a magnetic one, I had another problem, if I tried to pay with NFC it sometimes gave me errors.
I removed the two magnets by making an incision with a cutter, in the back and front cover, so that I can still use it for some time.
Samsung A8 2018 user.
Upvotes: 0 |
2015/11/29 | 755 | 2,686 | <issue_start>username_0: I have a Nexus 5 with Marshmallow and another device with a built-in 5.8Ghz WiFi which is used for transfering videos from it. When I connect to this WiFi it keeps telling me, that it has no internet connection and thus obviously disconnecting automatically to find a better one. How do I keep the connection?
Some things I already tried:
* set the freq to 5Ghz only
* delete all the other known Wifis
* manually add the wifi
Unless the connection is stable, I cannot connect to the device with its corresponding app. Are there any apps which could achieve that?
**EDIT**:
Logcat prints the following when the device disconnects:
```
12-23 20:29:09.368: D/IpReachabilityMonitor(777): clear: iface{wlan0/21}, v{4}, ntable=[]
12-23 20:29:09.377: I/wpa_supplicant(4270): wlan0: CTRL-EVENT-DISCONNECTED bssid=00:e0:5d:91:1b:ec reason=3 locally_generated=1
12-23 20:29:09.381: D/WifiStateMachine(777): WifiStateMachine: Leaving Connected state
```
What I found out so far, is that this might be a kernel problem. However, I have not found any references to android in this case.<issue_comment>username_1: I found a possible solution for my problem.
I simply set the DHCP settings to `static`, give the devices an appropriate IP and Gateway, and left the DNS preset as it is (8.8.8.8) by following these instructions: [Is it possible to assign a static IP address without a DNS?](https://android.stackexchange.com/questions/103343/is-it-possible-to-assign-a-static-ip-address-without-a-dns)
Afterwards it still complains about the missing internet connection, but this time it keeps the connection.
I tested it on both my Nexus 5 and Nexus 9, and it seems to work.
Upvotes: 4 [selected_answer]<issue_comment>username_2: Android is preset in SU global settings to drop a WIFI that has no internet connection. Even if you select to 'stay connected', it is fickle and may still drop the connection; and each time the cycle repeats, the connection will be lost. But the command to drop Wifi with no internet can be changed in the SU global settings (a bit like Bios on a computer).
Why is this set to disconnect now there are so many WIFI devices that are not internet connected, cameras, drones, alarms, clean networks etc., and the phone owner has no control of the connection because of a background command in the android OS.
If you are competent to use ADB and fast boot this shell command works on marshmallow:
type `su` to enter super user mode (likely needs a rooted device). Then type the following command:
```
settings put global captive_portal_detection_enabled 0
```
It disables the "drop wifi if no internet connection" function.
Upvotes: 0 |
2015/11/29 | 419 | 1,401 | <issue_start>username_0: Why do Android phones say they have 4GB storage but then cazn only use 1.6GB of it? Why is this? Is it possible to access all that other space?
If you see below it confirms how much space this phone has and how little (except for Apps) it really is using. Any advice how I can make the phone use all the available space?
**Edit** Its a Huawei Ascend
[](https://i.stack.imgur.com/83yf6.jpg)<issue_comment>username_1: You are only able to use 1.6 gig because 2.4 are required by the android system. This includes all 'the code' and default apps, ringtones/sounds, backgrounds etc. You can free some of this by rooting your phone and using tools but to expand beyond this you will need to add a micros SD card.
I sympathise with you, this is a very annoying niggle all android providers do. can confuse many people. (with a 16gb s5 you get about 10 gig of space)
Upvotes: 2 <issue_comment>username_2: Ok, I understand your problem. And there is the answer:
[](https://i.stack.imgur.com/emm8t.jpg)
Storage (click to enlarge)
Now you will see here that the system memory acquired is 3.35 GB. Yes its true. And also my os is android 6.0
So you can get that the storage is of android system which includes OS and G-Apps.
Upvotes: 0 |
2015/11/30 | 2,766 | 9,830 | <issue_start>username_0: I own a rooted Samsung Galaxy S Relay 4G running stock Android 4.1.2.
If you have Android 6.0 "Marshmallow" or better, then you have [Toybox](http://en.wikipedia.org/wiki/Toybox). This is a package of command-line tools, handy for advanced users who sometimes use a terminal emulator. Unfortunately, Android 4.1.2 does not include Toybox. Instead, it includes some other tools which aren't as nice to use.
Sometimes I use the terminal emulator written by <NAME>; other times I use `adb shell` from a laptop.
1. Would it make more sense to install Toybox to my system partition, or to my data partition? Both partitions have far more than enough free space.
2. When a command is provided both by Android and by Toybox, I want the Toybox version to win. On Linux, I might install Toybox to `/home/unforgettableid/bin` or `/usr/local` or `/opt`. Could you please suggest a sensible place for me to install Toybox (and its large collection of symlinks) on my phone?
[**Edit**: I wonder what the various BusyBox installers do. Also, I wonder how Android sets the PATH environment variable. As well, I also wonder whether or not there's a way for me to change that variable and to make my change persist across reboots. Finally, I wonder whether or not putting the Toybox tools first in my PATH would be likely to break things in non-obvious ways.]
---
Possibly related: ["Android Folder Hierarchy"](https://android.stackexchange.com/questions/46926/android-folder-hierarchy).<issue_comment>username_1: Where should I install Toybox?
==============================
>
> Would it make more sense to install Toybox to my system partition, or to my data partition?
>
>
>
Depends. If you don't plan to factory reset the phone ever again, you can choose data partition, else, choose system partition.
>
> When a command is provided both by Android and by Toybox, I want the Toybox version to win.
>
>
>
The [PATH](https://en.wikipedia.org/wiki/PATH_%28variable%29) variable contains the location of the directories containing executable binaries. Should you decide to keep a separate directory for your symlinks, configure $PATH to search for a command into your directory first. If it finds one, it will execute it.
>
> On Linux, I might install Toybox to `/home/unforgettableid/bin` or `/usr/local` or `/opt`. Could you please suggest a sensible place for me to install Toybox (and its large collection of symlinks) on my phone?
>
>
>
All those locations don't exist for Android. Since you're using Android 4.1.2, I suppose you would be having your external SD card formatted with a FAT filesystem. Symlinks don't work on FAT filesystems (not on FAT32 or vfat at least) so your best bet is to install under `/data` or `/system`.
Alternatively, you can make an image under your external SD card, format that image with a filesystem supported by your Android's kernel (often EXT2 | EXT3 | EXT4), then mount it in the device anywhere in loopback mode. I've not tried this method though.
>
> I wonder what the various BusyBox installers do
>
>
>
Busybox ([by Stericson](https://play.google.com/store/apps/details?id=stericson.busybox)) places the *busybox* binary into `/system/xbin` and creates [symlink](https://en.wikipedia.org/wiki/Symbolic_link) for its applets to its binary under the same directory.
>
> Also, I wonder how Android sets the PATH environment variable. As well, I also wonder whether or not there's a way for me to change that variable and to make my change persist across reboots
>
>
>
I do not know when Android sets up $PATH. However, the shell you're using would most likely be having a configuration file.
* *mksh* ([MirBSD Korn Shell](https://www.mirbsd.org/mksh.htm); the [default shell](https://stackoverflow.com/questions/11950131/android-adb-shell-ash-or-ksh) on Android) has a configuration file `mkshrc` in `/system/etc`. You can set $PATH there and the change would be persistent across reboots.
* For [*bash*](https://en.wikipedia.org/wiki/Bash_(Unix_shell)) shell, the configuration file is `bashrc` located under `/system/etc/bash`.
It appears that both files are [meant for interactive sessions](https://unix.stackexchange.com/a/26059/105083) only, so if you attempt to use adb for accessing a Toybox or its symlink which is not placed under `/sbin`, `/vendor/bin`, `/system/sbin`, `/system/bin` or `/system/xbin` (the default locations in $PATH), you would receive a "COMMAND: not found" error. This is because the default $PATH would be used instead.
I've not found a solution for this problem yet, but see the comments below this answer.
Anyhow, let's install Toybox for now.
---
How do I install Toybox on an Android device?
=============================================
**Note:** the solution assumes that your Android is rooted, that [adb](/questions/tagged/adb "show questions tagged 'adb'") is setup in PC, and that your device is connected to a PC with [USB debugging enabled](https://android.stackexchange.com/tags/usb-debugging/info).
Installation into system partition
----------------------------------
No change in $PATH is required if you choose a standard location. Busybox prefers `/system/xbin`.
* Remount the system partition in *rw* mode. If required, see [Can't remount /system in rw](https://android.stackexchange.com/q/60446/96277)
* Copy the *toybox* binary to `/system/xbin/` and give executable permission to it. (The default permissions set for other binaries is `rwxr-xr-x`.)
You can do so using [chmod](https://en.wikipedia.org/wiki/Chmod)
```
adb shell su -c "chmod 755 /system/xbin/toybox"
```
* Create symlinks for various tools accessible by *toybox* binary. It is up to you how you create them.
I used a very simple method, but it requires a \*nix system
```
adb shell toybox | sed 's/\ /\n/g' | head -n -1 | tr -d '\r' | while read line; do adb shell su -c 'ln -sf /system/xbin/toybox "/system/xbin/$line"'; done
```
All I'm doing here is executing the *toybox* binary, replacing the white-spaces with a new line so that each tool shows up in a new line. Later on I'm removing the last line (it was blank in output), removing [carriage return conveniently](https://unix.stackexchange.com/q/225561/105083) put by adb, and then for each line of output I'm creating a symlink to *toybox* binary with the name of the tool, in the same directory.
You can **use this method if you don't have a \*nix OS in PC:**
```
adb shell
su
toybox | toybox sed 's/\ /\n/g'| toybox sed '$d'| while read line; do toybox ln -sf /system/xbin/toybox /system/xbin/$line; done
```
Done! Your Toybox and its applets are ready to be executed.
Installation into data partition
--------------------------------
1. Create a directory under `/data` (`/data/my_bin` henceforth)
2. Copy the *toybox* binary to `/data/my_bin` and give executable permission to it. (The default permissions set for other binaries is `rwxr-xr-x`.)
```
adb shell su -c "chmod 755 /system/xbin/toybox"
```
3. Create symlinks for various tools accessible by *toybox* binary. It is up to you how you create them.
I used a very simple method, but it requires a \*nix system
```
adb shell su -c "/data/my_bin/toybox" | sed 's/\ /\n/g' | head -n -1| tr -d '\r'| while read line; do adb shell su -c "ln -sf /data/my_bin/toybox '/data/my_bin/$line'"; done
```
Only the location has changed, the rest of the procedure is alike to one followed for installation in system partition
4. Edit your default shell's configuration file and add
```
PATH=/data/my_bin:$PATH
```
This would cause the shell to look into `/data/my_bin` first and execute the binary, if available.
Done! Enjoy your Toybox and its applets.
Upvotes: 3 <issue_comment>username_2: If your Android version ships with Toybox and some Toybox symlinks, you can leave those in `/system/bin`. But, if you're installing Toybox yourself, it might be wisest to put the freshly-installed Toybox, and all its symlinks, in `/system/xbin`.
Let me explain why.
As username_1 points out in his answer: `adb shell` starts an interactive shell. But commands such as `adb shell ls` start a non-interactive shell. For [performance reasons](https://superuser.com/questions/657848/why-do-we-have-login-non-login-interactive-and-non-interactive-bash-shells#659197), non-interactive shells never read any config files. Because they don't read any config files, their [search path](http://en.wikipedia.org/wiki/PATH_(variable)) is hardcoded.
It's nice to have Toybox available even to non-interactive shells; in fact, if it's unavailable to such shells, it can be confusing. So you definitely want to install Toybox to a location which is on the search path.
But you might not want to put the Toybox symlinks any earlier in the search path than Android's `cp`, `ls`, and other basic utilities. I've never checked, but I theorize that your version of Android might include apps which depend on quirks of the stock Android command-line utilities. To learn more, see [this post](http://thread.gmane.org/gmane.linux.toybox/2238/focus=2241), in which the Android command-line tools maintainer explains why Android had to stick with its non-Toybox `ls` for some months.
Most of the stock Android command-line utilities are in `/system/bin`. The only directory which falls later in the stock Android shell's search path is `/system/xbin`.
That is why you may want to put Toybox and all its symlinks in `/system/xbin`.
---
**Tip:** If you want, you can create a shell script which simply passes all of its parameters to Toybox. You can give this shell script an ultra-short name such as `t`. This makes it easier to request that your device should run a Toybox toy instead of a stock Android command. For example, to run Toybox `ls`, simply enter `t ls`.
Upvotes: 1 [selected_answer] |
2015/11/30 | 345 | 1,250 | <issue_start>username_0: I am trying to uninstall an app which came to me with the phone ( an app for senior users - sort of launcher).
My device is : LG L70
Android version : 4.4.2
However I cannot uninstall it from the phone by dragging it from app screen. I've tried to uninstall it from the adb:
```
adb uninstall "package name"
```
but I get:
```
Failure
```
as a response.
When I list all my aps from the adb:
```
adb shell 'pm list packages -f'
```
I cannot find the app on the list.
The only way that helped me to discover the package name(in order to uninstall it) is by using "System Info for Android" app...
What can be done in order to remove this annoying app?
I've rooted the device and did a factory reset...
Any help will be appreciated.<issue_comment>username_1: Do you have to uninstall it from adb? If you have a rooted phone you can remove it from the device itself. There are a lot of apps that you can do this that are in the playstore. I personally use " system app remover (ROOT)". Just search for the app name and uninstall it.
PS: Did you try ading "su" at the begining of the command to use root?
Upvotes: 1 [selected_answer]<issue_comment>username_2: do `adb shell uninstall`, that should work.
Upvotes: -1 |
2015/12/01 | 209 | 702 | <issue_start>username_0: I've read that most dual-SIM phones can only use the other SIM for 2G voice service.
Is [OnePlus 2](http://oneplus.net/2/specs) [DUAL SIM 4G](http://youtu.be/UATpMHitrA0?t=1m15s) any different?<issue_comment>username_1: Do you have to uninstall it from adb? If you have a rooted phone you can remove it from the device itself. There are a lot of apps that you can do this that are in the playstore. I personally use " system app remover (ROOT)". Just search for the app name and uninstall it.
PS: Did you try ading "su" at the begining of the command to use root?
Upvotes: 1 [selected_answer]<issue_comment>username_2: do `adb shell uninstall`, that should work.
Upvotes: -1 |
2015/12/01 | 3,799 | 13,052 | <issue_start>username_0: I want to install CyanogenMod on my Samsung Galaxy S5. I'd downloaded the version and did the excact steps from the wiki. But when I try to flash with Heimdall I get this error:
```
Ubuntu-Laptop:~/Downloads/cm-12.1-20151007-SNAPSHOT-YOG4PAO333-klte$ sudo heimdall flash --RECOVERY boot.img --no-reboot
Heimdall v1.4.1
Copyright (c) 2010-2014 <NAME>, <NAME>
http://www.glassechidna.com.au/
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...
Initialising protocol...
ERROR: Protocol initialisation failed!
Releasing device interface...
```
I didn't find anything with Google. Please help.
Thanks.<issue_comment>username_1: I was experiencing the same problem, and I found a solution that worked for me in a comment on [Heimdall issue #228](https://github.com/Benjamin-Dobell/Heimdall/issues/228#issuecomment-166147621).
The problem for me was that udev was reserving the phone as a modem when I plugged it in. If you run dmesg and see a line that says "This device cannot do calls on its own. It is not a modem.", then this could work for you.
As root, create a file named /etc/udev/rules.d/79-samsung.rules with the following content:
```
ATTRS{idVendor}=="04e8", ENV{ID_MM_DEVICE_IGNORE}="1"
```
Then restart udev with "sudo service udev restart", and unplug/replug the device, and you can try to install again.
If that doesn't work or if it's a different problem, you can edit your question to add the output of these commands:
```
heimdall detect --verbose --usb-log-level debug
sudo heimdall print-pit --verbose --no-reboot
```
Upvotes: 3 <issue_comment>username_2: This happened for me on v1.4.1. There's a few ways to fix it:
1. Ensure you have the latest & greatest version of Heimdall
2. Install all this:
```
sudo apt-get install build-essential cmake zlib1g-dev qt5-default libusb-1.0-0-dev libgl1-mesa-glx libgl1-mesa-dev
```
3. Reboot your computer
4. Try connecting on a different USB port - 3 of my USB ports didn't work, and one did!
Upvotes: 1 <issue_comment>username_3: If none of the answers above worked, the answer might be as silly as it turned out to be for me.
Two things you might need to try before bumping your head into your screen:
**Potential Fix 1:** Reboot in download mode without having the USB plugged in and only plug it in after having pressed the button that allows you to continue embarking on this dangerous journey (Volume Up button I presume). Afterwards, if you haven't already done so, replace the drivers with Zadig and Heimdall might work. I'm guessing this was the fix for me, but it might aswell have been...
**Potential Fix 2:** Reboot your mobile device after replacing the drivers with Zadig. Yeah, super silly, but this might have easily been the fix (as the first fix required me to reboot).
Hope no one cracks a skull.
Upvotes: 1 <issue_comment>username_4: I also had a similar problem. I added the udev rule as suggested in GitHub (link above), but the phone still wouldn't download.
Then I found another simple solution on GitHub:
1. Disconnect the USB cable.
2. Setup the flash in Heimdall Frontend or command line.
3. Boot the phone into Download Mode.
4. AFTER it's in Download Mode plug in the USB and flash immediately.
It worked like a charm.
Upvotes: 3 <issue_comment>username_5: I had similar issues, it turned out thet it only worked with heimdall v1.4.2 on my linux mint 19 system
THE SITUATION WITH HEIMDALL 1.4.0:
OS:LinuxMint 19 (tara) Kernel 4.20.0-042000-generic
```
heimdall flash --REOVERY /home/user/Downloads/twrp-3.3.1-0-gts210vewifi.img --pit /home/user/s2a.pit --no-reboot --verbose
Heimdall v1.4.0
Copyright (c) 2010-2013, <NAME>, <NAME>
http://www.glassechidna.com.au/
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
Initialising connection...
Detecting device...
Manufacturer: "Sasmsung"
Product: "MSM8952"
length: 18
device class: 2
S/N: 0
VID:PID: 04E8:685D
bcdDevice: 0100
iMan:iProd:iSer: 1:2:0
nb confs: 1
interface[0].altsetting[0]: num endpoints = 1
Class.SubClass.Protocol: 02.02.01
endpoint[0].address: 82
max packet size: 0010
polling interval: 09
interface[1].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 0A.00.00
endpoint[0].address: 81
max packet size: 0200
polling interval: 00
endpoint[1].address: 01
max packet size: 0200
polling interval: 00
Claiming interface...
Setting up interface...
Initialising protocol...
WARNING: Control transfer #1 failed. Result: -9
WARNING: Control transfer #2 failed. Result: -9
WARNING: Control transfer #3 failed. Result: -9
WARNING: Control transfer #4 failed. Result: -9
WARNING: Control transfer #5 failed. Result: -9
WARNING: Control transfer #6 failed. Result: -9
Protocol initialisation successful.
Beginning session...
Some devices may take up to 2 minutes to respond.
Please be patient!
Session begun.
Downloading device's PIT file...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet.
ERROR: Failed to send request to end PIT file transfer!
ERROR: Failed to download PIT file!
Ending session...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet. Retrying...
ERROR: libusb error -7 whilst sending packet.
ERROR: Failed to send end session packet!
Releasing device interface...
heimdall download-pit --output s2.pit --verbose
Heimdall v1.4.0
Copyright (c) 2010-2013, <NAME>, <NAME>
http://www.glassechidna.com.au/
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
Initialising connection...
Detecting device...
Manufacturer: "Sasmsung"
Product: "MSM8952"
length: 18
device class: 2
S/N: 0
VID:PID: 04E8:685D
bcdDevice: 0100
iMan:iProd:iSer: 1:2:0
nb confs: 1
interface[0].altsetting[0]: num endpoints = 1
Class.SubClass.Protocol: 02.02.01
endpoint[0].address: 82
max packet size: 0010
polling interval: 09
interface[1].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 0A.00.00
endpoint[0].address: 81
max packet size: 0200
polling interval: 00
endpoint[1].address: 01
max packet size: 0200
polling interval: 00
Claiming interface...
Setting up interface...
Initialising protocol...
WARNING: Control transfer #1 failed. Result: -9
WARNING: Control transfer #2 failed. Result: -9
WARNING: Control transfer #3 failed. Result: -9
WARNING: Control transfer #4 failed. Result: -9
WARNING: Control transfer #5 failed. Result: -9
WARNING: Control transfer #6 failed. Result: -9
ERROR: Failed to receive handshake response. Retrying...
ERROR: Failed to receive handshake response. Retrying...
ERROR: Failed to receive handshake response. Retrying...
ERROR: Failed to receive handshake response. Retrying...
ERROR: Failed to receive handshake response.
ERROR: Protocol initialisation failed!
Releasing device interface...
```
THE FIX:
...found this helpfull article and installed Heimdall v1.4.2
[HOW TO INSTALL HEIMDALL VERSION 1.4.2 ON UBUNTU 16 AND UP](http://www.bernaerts-nicolas.fr/linux/74-ubuntu/357-ubuntu-xenial-bionic-heimdall-compile-samsung)
to install ver. 1.4.2 do the following:
```
sudo apt purge heimdall-flash
sudo apt install build-essential cmake zlib1g-dev qt5-default libusb-1.0-0-dev libgl1-mesa-glx libgl1-mesa-dev
cd ~
wget https://gitlab.com/BenjaminDobell/Heimdall/-/archive/master/Heimdall-master.tar.gz
tar -xvf Heimdall-master.tar.gz
cd Heimdall-master/
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo mv ./bin/heimdall* /usr/local/bin
```
check success with
```
heimdall version
v1.4.2
```
After this operation the bahavior changed as follows:
```
heimdall flash --RECOVERY /home/user/Downloads/twrp-3.3.1-0-gts210vewifi.img --pit /home/chris/s2.pit --no-reboot --verbose
Heimdall v1.4.2
Copyright (c) 2010-2017 <NAME>, <NAME>
http://www.glassechidna.com.au/
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/
Initialising connection...
Detecting device...
Manufacturer: "Sasmsung"
Product: "MSM8952"
length: 18
device class: 2
S/N: 0
VID:PID: 04E8:685D
bcdDevice: 0100
iMan:iProd:iSer: 1:2:0
nb confs: 1
interface[0].altsetting[0]: num endpoints = 1
Class.SubClass.Protocol: 02.02.01
endpoint[0].address: 82
max packet size: 0010
polling interval: 09
interface[1].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 0A.00.00
endpoint[0].address: 81
max packet size: 0200
polling interval: 00
endpoint[1].address: 01
max packet size: 0200
polling interval: 00
Claiming interface...
Setting up interface...
Initialising protocol...
Protocol initialisation successful.
Beginning session...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
Some devices may take up to 2 minutes to respond.
Please be patient!
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
Session begun.
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
Downloading device's PIT file...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
PIT file download successful.
Uploading RECOVERY
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
0%WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
7%
14%
21%
28%
35%
42%
49%
56%
63%
70%
77%
85%
92%
99%
100%
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
RECOVERY upload successful
Ending session...
WARNING: Empty bulk transfer after sending packet failed. Continuing anyway...
ERROR: libusb error -7 whilst receiving bulk transfer. Retrying...
Releasing device interface...
```
before the operation I unplugged and replugged the Tablet
so I could flash the TWRP
HAPPY
Upvotes: 2 |
2015/12/01 | 229 | 1,013 | <issue_start>username_0: I would like to connect a bluetooth keyboard and bluetooth mouse to my tablet. Is it possible at the same time?<issue_comment>username_1: I honestly thought that only one device could be connected at a time using Bluetooth. In an attempt to prove my point I tested connecting multiple devices simultaneously to my Samsung Galaxy Tab 4:

Sure enough I was able to stream music to my Milwaukee speaker while using an Apple mouse and keyboard- all connected at the same time. Granted, there are probably still instances where this might not work depending on devices and most likely would only be able to stream music to a single device, but it worked perfectly in this case.
Upvotes: 2 <issue_comment>username_2: Certainly on my phone I have two Bluetooth devices connected simultaneously - my watch and headset. It really depends both on the host device (the tablet) and to some extent on the peripheral ie the mouse and keyboard.
Upvotes: 0 |
2015/12/01 | 1,315 | 4,291 | <issue_start>username_0: I was wondering what file system Android will use when I format my (external) SD Card. Can someone enlighten me?
Is it the one already used or exFAT or FAT32 or manufacturer dependent?<issue_comment>username_1: It will format the external micro SD card to FAT32.
Upvotes: 4 [selected_answer]<issue_comment>username_2: **TL;DR:** Every Android uses **FAT32**. The Cluster size depends on the release. Existing partitions will be preserved. It will always use quick format.
**Long Answer:**
After some more research here is the process as it was coded in the Android source code:
1. The Setting App displays a few confirmations then uses the Intent: `Intent(ExternalStorageFormatter.FORMAT_ONLY)`
>
> in 4.4 KitKat: <https://android.googlesource.com/platform/packages/apps/Settings/+/kitkat-release/src/com/android/settings/MediaFormat.java>
>
> in 5 Lollipop: <https://android.googlesource.com/platform/packages/apps/Settings/+/lollipop-release/src/com/android/settings/MediaFormat.java>
>
> in 6 they changed this. I will have to look more into it.
>
>
>
2. The ExternalStorageFormatter then uses `IMountService` to call `formatVolume(extStoragePath)`
>
> in 4.4 KitKat: <https://android.googlesource.com/platform/frameworks/base.git/+/kitkat-release/core/java/com/android/internal/os/storage/ExternalStorageFormatter.java>
>
> in 5 Lollipop: <https://android.googlesource.com/platform/frameworks/base.git/+/lollipop-release/core/java/com/android/internal/os/storage/ExternalStorageFormatter.java>
>
>
>
3. This function calls
`mConnector = new NativeDaemonConnector(this, "vold", MAX_CONTAINERS * 2, VOLD_TAG, 25);
mConnector.execute("volume", "format", path);`
>
> in 4.4 KitKat:
> <https://android.googlesource.com/platform/frameworks/base/+/kitkat-release/services/java/com/android/server/MountService.java>
>
> in 5 Lollipop: <https://android.googlesource.com/platform/frameworks/base/+/lollipop-release/services/core/java/com/android/server/MountService.java>
>
> more info about vold: <https://source.android.com/devices/storage/config.html>
>
>
>
4. `NativeDaemonConnector` finally calls the native function to format the partition:
`Volume::formatVol()` This call is without a Volume Label and does not wipe the partition.
>
> see Volume.cpp, VolumeManager.cpp, CommandListener.cpp
>
> in 4.4 KitKat: <https://android.googlesource.com/platform/system/vold/+/kitkat-release>
> in 5 Lollipop: <https://android.googlesource.com/platform/system/vold/+/lollipop-release>
>
>
>
5. formatVol decides wether to format the partition (if one already exists) or the whole device (see `int Volume::formatVol(bool wipe)`). When the latter is the case a new MBR is written. Then `Fat::format(devicePath, 0, wipe)` is called. (Interesting sidenote: when mounting a volume Android is deleting autorun.inf if it exists: see `Volume::protectFromAutorunStupidity()`)
6. in Fat::format (in Marshmallow it is named Vfat) the actual formatting is done with: `/system/bin/newfs_msdos`. The parameters are different depending on the Android release, number of sectors is always omitted, wipe is always false:
* Lollipop and Marshmallow: -F 32 -O android -c 64 -A
* Kitkat: -F 32 -O android -c 8
* other systems might differ, see: <https://android.googlesource.com/platform/system/vold/> /Fat.cpp or Vfat.cpp
---
Appendix:
/system/bin/newfs\_msdos syntax from <https://android.googlesource.com/platform/system/core/+/lollipop-release/toolbox/newfs_msdos.c> :
```
usage: newfs_msdos [ -options ] special [disktype]
where the options are:
-@ create file system at specified offset
-A Attempt to cluster align root directory
-B get bootstrap from file
-C create image file with specified size
-F FAT type (12, 16, or 32)
-I volume ID
-L volume label
-N don't create file system: just print out parameters
-O OEM string
-S bytes/sector
-a sectors/FAT
-b block size
-c sectors/cluster
-e root directory entries
-f standard format
-h drive heads
-i file system info sector
-k backup boot sector
-m media descriptor
-n number of FATs
-o hidden sectors
-r reserved sectors
-s file system size (sectors)
-u sectors/track
```
Upvotes: 2 |
2015/12/01 | 522 | 1,905 | <issue_start>username_0: Not able to end the do not disturb mode. Tried clicking the 'end now' tab repeatedly, doesn't work. Neither there's anything in the settings nor in the slide down quick settings.
It's getting inconvenient to check the notifications, as the mode says 'priority only'. What are the solutions?<issue_comment>username_1: Here's how to fix this issue:
1. Goto **Settings**
2. Tap on **Sound & notification**
3. Tap on **Do not disturb**
4. Tap on **Priority only allows**
5. **Toggle any item on & off** and that will trigger DND to be off.
Good luck!
Upvotes: 2 <issue_comment>username_2: Greetings! Sincerely hope (and, quite likely!) you have already figured it out. Here, hoping it would help others with this same query, a simpler solution —
* Simply **pull down the volume** to *vibrate*
* Then, pull it down **once more** to *silent*
* And, then, just **pull it up again** as much as you like :-)
And, voila, it's no longer stuck at "Priority Only"!
Cheers,
Oli
Upvotes: 3 <issue_comment>username_3: Try this:
Long press power button > long press 'shut down' > reboot to safe mode > wait until your phone is ready to go.
Keep pressing volume down button until vibration mode > press once more for silent mode> press 'end now' to end do not disturb mode.
Once you are done, restart your phone.
Upvotes: 2 <issue_comment>username_4: Guys i have faced the same problem. How i solved was, i have pull down the volume button till silent and do not disturb mode shown as untill you turn off then i turned off it and increased volume to ringer.
Upvotes: 0 <issue_comment>username_5: My phone was stuck at do not disturb sigh (a circle with minus sign), This is how i fixed it.
1. Press the volume button in your phone
2. Bring ringer volume to zero using volume button.
3. Press end now in do not disturb and it will go away.
4. Raise volume to normal after that.
Upvotes: 1 |
2015/12/01 | 393 | 1,655 | <issue_start>username_0: I want to access developer setting in my phone, but it is not showing all settings. It has developer options but there is only one switch button for switching Developer options and USB Debugging settings. I searched on internet and many sites, they said that in LOLLIPOP devices, developer settings are hidden. we can enable them by clicking 5 or 7 on Build-number in About section in the settings. In my phone, when I navigate to Settings>About Phone> there is no option with containing word 'Build'. but when I click 5 or 7 times on Android Version option it open a game of LOLLIPOP instead of developer settings. Can anyone tell me how can I enable developer settings in my android LOLLIPOP phone???
Thank you in advance....
I have Q-Mobile i6i with android 5.1.<issue_comment>username_1: In vanilla AOSP builds, the *Build number* menu is the last one on the *About phone* panel. From your screenshot, your device instead has *Software version* in that location. Try the 5-7 clicks on this area. If that doesn't do anything, or produces a message like *"No need, you are already a developer."*, then I'm afraid your OEM has removed this ability and given you only minimal *Developer options* capability in the form of a *USB debugging* switch. The good part is that it's already enabled so at least you have that.
Also, the Lollipop game that you found after multiple clicks on *Android version* is also what happens in normal AOSP devices.
Upvotes: 4 [selected_answer]<issue_comment>username_2: Click on build number in about, sveral times, you willl enable developer mode and then you can enable usb debuging.
Upvotes: 2 |
2015/12/02 | 233 | 912 | <issue_start>username_0: Title + what i'm looking for is like the cheat engine "speed hack" equivalent, or for another example, on the iOS jailbroken app, xmodgames there is an accelerator feature. Is there something like this for android?
Note: I am not looking for something to speed up my phone, I just want the game to be sped up so things move faster in-game.<issue_comment>username_1: GMD or something speeds up time based games being farming/energy if it is OFFLINE, just google it. If you mean the actual game like in some RTS to skip boring parts some cheat engines have that along with memory editor...
Upvotes: 0 <issue_comment>username_2: Try use [GameGuardian](https://gameguardian.net/download). It perfect works on all Android versions include Lollipop and Marshmallow.
It have speedhack worked on arm and x86 devices, include x86 emulators like Bluestacks, Droid4X, Andy and others.
Upvotes: 1 |
2015/12/02 | 582 | 2,263 | <issue_start>username_0: I own a **LG-D855** which I bought refurbished running the bundled modified version of Android that LG provide.
After a few weeks I installed **Cyanogenmod 12.1** and since then I've been updating weekly.
When I turn the phone on for the first time it runs very quickly. However after using the phone with a handful of apps for 15 or 30 minutes the whole phone slows down to a crawl.
I've installed an app which stops as many background processes as it can. After running this the phone speeds up again, but soon returns to it's previous state.
I bought an LG G3 as it rated very highly on lists of the best Android phones to buy.
Why am I having these problems? Are these common issues with the LG G3? What can I do to allow my phone to run more quickly?<issue_comment>username_1: First of all, G2 should be D80X, the 85X is the G3 line.
I am an owner of G2 on CM12.1, and I never had any problems regarding speed. It was always fluent without any hiccups.
* You can try to hibernate apps using Greenify.
* You can rollback to a previous ROM version/nightly because the current may have bugs
* Apps that slow down the phone usually also drain the battery more, look for the apps that use the most battery life and uninstall them
* You can swipe apps from the recents when you are done using them
* Use some tools to help you out like Xposed, CPU Spy and similar to find and eliminate the problem
In the end, there could be also the case that your CPU is maybe downclocked, or some other hardware issue. Anyways, the G2 on CM12.1 should give you excellent overall experiance.
Upvotes: 1 <issue_comment>username_2: Try wiping dalvik cache if problem still persists try checking your cpu through any cpu app (I prefer setcpu) check your cpu rate if it's underclocked try increasing it carefully (as it may overheat your cpu)
Upvotes: 0 <issue_comment>username_3: In the end I:
* Performed a factory wipe
* Install Cyanogenmod 13
Since then the phone has been running **silky smooth.**
It's possible that cleaning the Dalvik may sorted it, however I went for a more extreme and complete approach which ultimately worked out. The downside being I needed to setup my phone again after the fresh install.
Upvotes: 1 [selected_answer] |
2015/12/02 | 542 | 2,159 | <issue_start>username_0: [I read this QA](https://android.stackexchange.com/questions/83299/how-to-restrict-stranger-messages-in-whatsapp) but it didn't specfically address my question. I also only found how to block a contact or someone that already sent you a message.
Say I have blocked numbers on my phone. They are not contacts. I don't want to hear from them. I don't want them to message me - ever.
How can I block someone when there's no chat between myself and them? (avoid potential harassment)
Or, alternatively, can I make it to only receive messages from people on *my* list?<issue_comment>username_1: **No.**
On Whatsapp you can't block people just by their usernames. You must open the chat between you two and block the person from the right-top menu. However, you can add that number as a contact, open the Whatsapp chat screen (you don't have to chat them. Just open their chat screen.) block them and then delete them from your contacts again.
And **no** again.
Whatsapp doesn't support a feature like *"Receive texts from my contacts only."* But you can reduce what people who aren't in your contacts can see about your profile (Last seen, Profile photo, Status)
Upvotes: 3 [selected_answer]<issue_comment>username_2: I am worrying over a similar concern (stalker at work) and what I have done is this: I save his number on my phone. Then I open WhatsApp and go to Settings > Account > Privacy > Blocked Contacts > and then I add this person, who appears on my WhatsApp list, to the blocked list.
I use a different number for my professional network and another number for family & friends (also WhatsApp, WeChat, etc.) and so far haven't received any WhatsApp text from this creepy coworker. However recently my private mobile number was accidentally leaked to him, so if I do hear from him on WhatsApp I will update this entry.
Also, I set my WhatsApp settings so that only my contacts can see my status and my photo. To do the same, go to Settings > Account > Privacy > Who Can See My Personal Info > change your preferences there. You can also set it so that nobody can see your status and photo.
Hope this helps.
Upvotes: 1 |
2015/12/02 | 435 | 1,661 | <issue_start>username_0: I changed my name on the computer side, but it did not change my name on the app. How can I accomplish this?<issue_comment>username_1: You can try to clear the cache of the Gmail app (Settings → Apps → All Applications → Gmail → Clear Cache).
If that doesn't help, clear the Gmail app's data as well and sign in again into Gmail(Settings → Apps → All Applications → Gmail → Clear Data).
This, as @SharpSTA said, will force a resync with the servers, and hopefully update your information.
Upvotes: 0 <issue_comment>username_2: As of 2019-02-24 there is a known bug in the Outlook app for Android with changing the "from" display name for gmail accounts. This bug only affects the Outlook app on Android with Gmail accounts.
The issue is that changes to your display name in Google, which appear in your "from" display name in gmail, are not reflected in the Outlook app on Android. It will be reflected everywhere else -- gmail.com, the gmail app, any other email app on the same phone -- but the Outlook Android app does not pick up the new "From" google display name.
I confirmed this by doing a factory reset on my phone, re-installing Outlook, and it still didn't pick up the new display name from Google. Other Android email apps let you specify your FROM display name but unfortunately the Outlook Android app doesn't have this as an option and instead picks it up from Google.
Here's confirmation of the issue from the Outlook Android team:
[](https://i.stack.imgur.com/GEYRS.png)
[](https://i.stack.imgur.com/v7Z8o.png)
Upvotes: 2 |
2015/12/03 | 261 | 1,058 | <issue_start>username_0: I made some in-app purchases a year ago with email address <EMAIL>.
I have since changed my email address to <EMAIL>. Is there any way that I can transfer my purchases from my old email address to my new email address in the Google Play app?<issue_comment>username_1: No there is no official way to transfer purchases from one account to another. You could contact the Google Services to maybe figure out a way if you had a good reason which you could explain.
There is a Reddit [thread](https://www.reddit.com/r/google/comments/2r57b5/is_there_still_no_way_to_transfer_all_google_play/) regarding this topic if that is any help.
Upvotes: 1 <issue_comment>username_2: Unfortunately there is no way Google can transfer in-app purchases from one account to another. This is actually up to the application developer to help resolve your issue. I highly recommend contacting the developer to either (1) transfer your content from the old email address to the new one or (2) getting a refund for all those purchases.
Upvotes: 0 |
2015/12/03 | 259 | 1,020 | <issue_start>username_0: I have downloaded OLX app and presently it is in internal memory.
When I try to move this app to SD card it says "Insufficient space. Can't move to SD card". Please help.
I am using Huawei Honor 4X handset now.<issue_comment>username_1: No there is no official way to transfer purchases from one account to another. You could contact the Google Services to maybe figure out a way if you had a good reason which you could explain.
There is a Reddit [thread](https://www.reddit.com/r/google/comments/2r57b5/is_there_still_no_way_to_transfer_all_google_play/) regarding this topic if that is any help.
Upvotes: 1 <issue_comment>username_2: Unfortunately there is no way Google can transfer in-app purchases from one account to another. This is actually up to the application developer to help resolve your issue. I highly recommend contacting the developer to either (1) transfer your content from the old email address to the new one or (2) getting a refund for all those purchases.
Upvotes: 0 |
2015/12/03 | 568 | 1,992 | <issue_start>username_0: I am using an Android 4.4, and I would like to know how to disable the wifi connection for only certain apps? Is there a third party app out there that can perform this function?<issue_comment>username_1: The exact method will change depending on your version of Android and phone model, but it should be more or less the same.
1. Go to `Settings` > `Data usage` (or `mobile network`) > `Network restrictions` (or `Mobile hotspots`)
2. Turn your WiFi networks into mobile hotspots or metered connections by checking them/moving the sliders.
3. Go back to your `Data Usage` / `Mobile Network` settings page and tap the app you would like to restrict
4. Scroll down and select **Disable background data**
This is more of a workaround, and you will have to set every WiFi network you connect to as a metered connection.
Depending on which phone you use, you may be able to root it and completely stop an app from accessing the internet.
Upvotes: 2 <issue_comment>username_2: You can use a [Firewall app](https://android.izzysoft.de/applists/category/named/network_admin_firewall#group_377). Depending on whether your device is rooted, your choices might differ – so let me name two of the candidates here:
* [AFWall+](https://play.google.com/store/apps/details?id=dev.ukanth.ufirewall) certainly is the first choice for rooted devices. Free and open-source, it's also [available at F-Droid](https://f-droid.org/repository/browse/?fdid=dev.ukanth.ufirewall)
* [NetGuard](https://play.google.com/store/apps/details?id=eu.faircode.netguard) would be the pendant for not-rooted devices, also [available at F-Droid](https://f-droid.org/repository/browse/?fdid=eu.faircode.netguard)
[](https://i.stack.imgur.com/uc4lG.png) [](https://i.stack.imgur.com/NlYGC.png)
With both you can decide per-app whether it should have access to WiFi, mobile data, both or none.
Upvotes: 1 |
2015/12/03 | 195 | 796 | <issue_start>username_0: After update Android to 5.0.2 there is a problem in my Sony Xperia Z1 compact. When I make or receive phone calls the caller does not hear me (or hears, but poorly, with noise).
After restart these problems disappears for some time, but later appears againg.
Are there any known workaround for such issues?<issue_comment>username_1: I've found the workaround - to turn off the noise suppression. It fixed the problem for me.
To do that, press `Settings -> Call -> Microphone noise suppression (off)`
Upvotes: 1 <issue_comment>username_2: I have read the article about Sony patch, hopefully it is coming. Meanwhile, I press audio output selection button on the screen twice, that fixes the issue for the call I receive and have audio issue as described above.
Upvotes: 0 |
2015/12/04 | 238 | 921 | <issue_start>username_0: My phone sent the following message to all of my contacts:
>
> Install this voice messenger just to talk <http://mrv.withmechat.us/Cun>
>
>
>
I know I didn't send this message and not to mention it sent it to all of my contacts at exactly 9:41AM. Is there a logger that can help me find what app or process sent that message?<issue_comment>username_1: I just ran into this same problem today. It was sent by the Imo app itself. Don't use or install this app!
I recommend leaving a bad review on the Play Store and reporting the app on the Play Store.
To find out which app sent the spam, you can use Android App Ops if it works on your phone.
Upvotes: 1 <issue_comment>username_2: I would also suggest you go to settings -> Apps -> Click on the app -> Then uninstall. You could also just disable all permissions for the app if you wanted to keep it installed for some reason.
Upvotes: 0 |
2015/12/04 | 785 | 2,587 | <issue_start>username_0: I have got a Google Nexus 5X and I would like to connect it to my Windows 10 PC.
This is not my first Nexus phone and I'm familiar with things related to a computer as a developer.
But I just can't succeed to make my Nexus phone recognized by the Win10 PC.
At work, on my Windows 7 PC, my Nexus is recognized and I can transfer files.
But at home on my Windows 10 PC, drivers installed by Windows are not OK. There is a yellow warning on my device, displayed in the device manager.
I tried to activate the debugging mode (Android developer settings), tried to reboot, to change USB port.
I also tried with the Google USB Drivers. (I also know that by default, on my Marshmallow Nexus 5X, I have to change connection mode "USB charging" to "Transfer files (MTP)").
The cable I use is OK because it works on my Windows 7 PC and I bought it on Google's Store.
I also had a call with Google Tech Support and they just told me that they don't have any solution for my problem, because I have already tried everything they are used to advice.
I just don't know what to do.
My last try, was to install 'Media Feature Pack for Windows 10 N & KN' (it helped me when I wanted to connect my previous Nexus 5 on a Windows 8.1 laptop).
Any suggestion ?
Sorry for my english.
Best regards,
Hellcat8.<issue_comment>username_1: Okay I finally found something which helped me.
The **Media Feature Pack for Windows 10 N & KN (all editions)** alias `KB-3010081` is for the **first** version of Windows 10.
But for the Windows 10 with the big update we had a few time ago, there is an update which supersedes the `KB-3010081`.
This is the `KB-3099229` : <https://support.microsoft.com/en-us/kb/3099229>.
Download : <https://www.microsoft.com/en-us/download/details.aspx?id=49919>
After all my attempts to resolve my problem, this is the thing which did it for me.
I Hope it will helps.
Best regards,
Hellcat
Upvotes: 3 [selected_answer]<issue_comment>username_2: This worked for me (without having to download the media feature pack).
On your phone (after connecting to PC):
1. Open the notifications bar.
2. Tap USB connection notification (USB for charging)
3. Select PTP-option (this one worked for me at least)
4. Done! You can now open your phone on your pc.
Upvotes: 2 <issue_comment>username_3: I'm using Windows 10 Enterprise N 2016 LTSB. I installed KB-3010081, KB-3099229, and nothing worked.
I needed to install KB3133719: <https://support.microsoft.com/en-us/help/3133719/media-feature-pack-for-n-editions-of-windows-10-version-1607>
Upvotes: 0 |
2015/12/04 | 726 | 2,474 | <issue_start>username_0: Good afternoon,
I'm facing a problem on my colleague's LG L90 phone, it suddenly started to bootloop and nothing seems to solve the problem.
The only way to turn it off is to remove the battery, but as soon as you put it back (be it instantly after removing it or after any period of time) the phone turns on and starts to bootloop again, so there's no "turn it off and turn on again pressing x buttons". The bootloop lasts about 10 seconds before it restarts the process.
When I connect it to my PC with the battery nothing changes, and the PC doesn't recognize the device, as it reboots before the PC can see it. Plugging it without the battery shows a screen with an empty battery for some seconds and then it reboots, showing that screen again.
I tried to enter recovery mode, emergency mode and fastboot mode without success. Plugging the phone on the PC or placing the battery while pressing vol -, vol +, both or any with the power button simply has no effect on the phone, it just keeps bootlooping.
The phone model is LG-D410hn, and it doesn't have unlocked bootloader, root or anything similar, it has everything stock.
Does anyone know what I can do to try to save it?<issue_comment>username_1: Okay I finally found something which helped me.
The **Media Feature Pack for Windows 10 N & KN (all editions)** alias `KB-3010081` is for the **first** version of Windows 10.
But for the Windows 10 with the big update we had a few time ago, there is an update which supersedes the `KB-3010081`.
This is the `KB-3099229` : <https://support.microsoft.com/en-us/kb/3099229>.
Download : <https://www.microsoft.com/en-us/download/details.aspx?id=49919>
After all my attempts to resolve my problem, this is the thing which did it for me.
I Hope it will helps.
Best regards,
Hellcat
Upvotes: 3 [selected_answer]<issue_comment>username_2: This worked for me (without having to download the media feature pack).
On your phone (after connecting to PC):
1. Open the notifications bar.
2. Tap USB connection notification (USB for charging)
3. Select PTP-option (this one worked for me at least)
4. Done! You can now open your phone on your pc.
Upvotes: 2 <issue_comment>username_3: I'm using Windows 10 Enterprise N 2016 LTSB. I installed KB-3010081, KB-3099229, and nothing worked.
I needed to install KB3133719: <https://support.microsoft.com/en-us/help/3133719/media-feature-pack-for-n-editions-of-windows-10-version-1607>
Upvotes: 0 |
2015/12/04 | 330 | 1,325 | <issue_start>username_0: I can set up a ssh server on my android phone, by running SSH Server by Ice Code App on my Android 4.4.2 phone over my home WiFi network. So my laptop can access the my phone via ssh in the same WiFi network.
When there is no wifi, can I do the same to set up a ssh server on my android phone over my carrier's cellular mobile network? Is there some difference between the setup over a WiFI and setup over a cellular mobile network?
How about http and ftp servers?<issue_comment>username_1: It should be the same since you need a unique public ip either way (using wifi, lte or 3g).
Upvotes: 1 <issue_comment>username_2: That entirely depends on your carrier's setup. For security reasons, several carriers (not all) block the required ports for incoming connections – so though your setup theoretically runs fine, you can't reach your services as the carrier blocks access.
I have not tried it, but in that case it *might* be possible working around using a [VPN](https://en.wikipedia.org/wiki/Virtual_private_network "Wikipedia: VPN") (some apps for that purpose can be found [in my app list](https://android.izzysoft.de/catmin/applists/category/named/network_vpn)); a VPN should tunnel those requests to your device then. Again: I've not tested this, so it might or might not work.
Upvotes: 2 |
2015/12/05 | 293 | 1,226 | <issue_start>username_0: I droped my new Samsung Galaxy S6 Edge and I thought it was alright until my phone rebooted and stuck in *Safe mode*. Now I realized that my *VolumeDown* button is stuck and getting pressed.<issue_comment>username_1: Sorry for telling you the truth , but the only way to get out of the **Safe Mode** of your Device , is replacing the broken button , because while you pressing the Power button , the volume button is being used automatically during the boot , so the phone will boot in Safe Mode , only because of the broken button...
Upvotes: 2 [selected_answer]<issue_comment>username_2: I actually did not figure out what was wrong with my device until I stumbled upon this post. My phone has been dropped, cracking the screen and weakening the volume down button. Apparently it finally gave in and became stuck as well, landing me permanently in **Safe Mode**. To fix it, I covered the stuck button with olive oil, and used a football air pump to try to force the oil down around it.
After a few minutes of prying at it with my fingernail, it came up enough for me to restart and exit safe mode.
It certainly isn't a permanent fix, but it'll do until I have time to get a new phone!
Upvotes: 0 |
2015/12/05 | 384 | 1,421 | <issue_start>username_0: When in a group chat, if many messages are exchanged between other people in the group, when I check my Whatsapp, the messages are grouped according to sender and not chronologically. I know that my phone isn't the problem as I have recently changed my phone, however, I'm still experiencing the same problem.
I have tried uninstalling and re-installing WhatsApp on my phone, and the same problem still occurs.<issue_comment>username_1: In Settings, change your phone to use Automatic Date and Time. I had the same problem, but doing this fixed it.
Upvotes: -1 <issue_comment>username_2: Recently, I have seen many asking the same question in different places but I couldn't find a solution anywhere. So I decided to contact the WhatsApp team directly addressing the issue few days back. This is the response I received:
>
> WhatsApp Support
>
>
> Hi,
>
>
> Sorry for the delay! We have received many emails recently, and we do our best to answer them all. Thank you for your patience.
>
>
> Sorry for the inconvenience. We are aware of the issue, and we are doing our best to improve WhatsApp in a future update.
>
>
> Unfortunately, we cannot comment on any future timelines, sorry. Thank you for your continued patience and support of WhatsApp.
>
>
> Cheers,
>
>
> Tereza
>
>
> WhatsApp Support Team
>
>
>
Yea, they are working on it and it may be fixed soon.
Upvotes: 2 |
2015/12/05 | 557 | 2,076 | <issue_start>username_0: [According to](https://support.google.com/androidtv/answer/6299083?hl=en-GB) Android TV support, I can expand my internal storage by adding a USB storage device and formatting it using the TV's settings.
>
> The USB drive can be configured as internal storage or removable storage:
>
>
> * Internal storage increases the storage capacity of the Android TV. If you choose to set the drive to Internal storage, you won't be able to move data to another Android TV or device.
> * Removable storage lets you move the content on the USB drive to another device. You can store and access digital content. Apps and games won't be installed on removable storage.
>
>
>
The first option is what I want for my new 55W809CBU that I bought recently. The TV only has 8GB of built in storage, which I think will be decimated pretty quickly if I download some of the supported games. However, when I insert the USB, I'm presented with an option of opening apps to make use of the storage, but I'm unable to format it accordingly when I visit **Settings -> TV -> Storage & reset**.
I've been unable to find out if this is a limitation of the 2015 Sony TV range or perhaps there's a problem with my USB stick? I don't really have any other devices to hand to test the compatibility theory.<issue_comment>username_1: There is no problem with your USB. Use ES File Explorer or a PC to crosscheck. I have a Sony W950C model with latest android update installed. It doesn't show up USB drive in **Storage & reset**. May be we can expect this in future updates.You can still view [Sony support page for KDL-55W809C](https://www.sony.co.uk/support/en/content/cnt-dwnl/prd-tvhc/bravia-kdl-w-firmware-update-v2623-eua-UK/KDL-55W809C) to check if you have the latest version of Android.
Upvotes: 2 [selected_answer]<issue_comment>username_2: Contrary to Sony's advertising, extending internal memory using a USB stick DOES NOT WORK PROPERLY. Not since I upgraded to Android 7. A couple of firmware updates have passed since and this has not been addressed.
Upvotes: 0 |
2015/12/05 | 773 | 2,892 | <issue_start>username_0: Some months ago, I rooted my Samsung Galaxy and installed SuperSU.
Stupidly, I'd had believed that the only thing that happens when you enter the pattern wrong too many times is that you have to wait a bit until you can try again, so when an acquantaince's little kid played around with it, I didn't mind, only to figure out I was locked out afterwards.
Usually, I have data and wifi turned off on my phone to preserve battery life, which was the case here as well, so I cannot unlock the phone with my google account because the phone has no internet access.
I tried the "call from different phone and try to get into settings" tricks, but no dice.
So I hope for one of these solutions (in order of preference):
* Somehow be able to activate wifi or data so I can unlock the phone conventionally
* Somehow be able to disable or deactivate the pattern lock at least long enough to activate wlan or data
* Any other way that lets me keep my data
* Any other way that makes my phone useable again
"su" in the adb shell makes me wait, then does nothing (probably SuperSU trying to ask for permission on the phone but invisible due to pattern lock).
-- Edit --
I am aware of [this](https://android.stackexchange.com/questions/35847/can-not-unlock-my-android-device-as-have-no-internet-connection):
* Solutions 1-3 require the phone to have internet, which it doesn't
* `adb -d shell` works, but `sqlite3 data/data/com.android.providers.settings/databases/settings.db` produces `sqlite3: permission denied` and `mount /data` produces `Usage: mount [-r] [-w] [-o options] [-t type] device directory`. `adb -d pull` doesn't work either: `failed to copy 'data/data/com.android.providers.settings/databases/settings.db' to './settings.db': Permission denied`
* The link to the zip file solution is dead
* Apparently the security hole trick with calling the phone to try getting into the menu does not work for my phone
* The next phone solution doesn't work either
* the GSMHosting Solution is discontinued and taken down
* Yeah..., I don't think I'm able to get my hands on a forensics program...<issue_comment>username_1: There is no problem with your USB. Use ES File Explorer or a PC to crosscheck. I have a Sony W950C model with latest android update installed. It doesn't show up USB drive in **Storage & reset**. May be we can expect this in future updates.You can still view [Sony support page for KDL-55W809C](https://www.sony.co.uk/support/en/content/cnt-dwnl/prd-tvhc/bravia-kdl-w-firmware-update-v2623-eua-UK/KDL-55W809C) to check if you have the latest version of Android.
Upvotes: 2 [selected_answer]<issue_comment>username_2: Contrary to Sony's advertising, extending internal memory using a USB stick DOES NOT WORK PROPERLY. Not since I upgraded to Android 7. A couple of firmware updates have passed since and this has not been addressed.
Upvotes: 0 |
2015/12/06 | 321 | 1,140 | <issue_start>username_0: I have a Micromax Canvas spark 2 q334 running android 5.1 and it has a very low internal storage.so I need to root my phone to use link2sd. some guides suggest Kingroot but it doesn't work for my phone..also there is no custom recovery available for my phone so I couldn't root using recovery method.can someone guide me on how to root my phone.<issue_comment>username_1: There is no problem with your USB. Use ES File Explorer or a PC to crosscheck. I have a Sony W950C model with latest android update installed. It doesn't show up USB drive in **Storage & reset**. May be we can expect this in future updates.You can still view [Sony support page for KDL-55W809C](https://www.sony.co.uk/support/en/content/cnt-dwnl/prd-tvhc/bravia-kdl-w-firmware-update-v2623-eua-UK/KDL-55W809C) to check if you have the latest version of Android.
Upvotes: 2 [selected_answer]<issue_comment>username_2: Contrary to Sony's advertising, extending internal memory using a USB stick DOES NOT WORK PROPERLY. Not since I upgraded to Android 7. A couple of firmware updates have passed since and this has not been addressed.
Upvotes: 0 |
2015/12/06 | 566 | 2,232 | <issue_start>username_0: I have been getting overlays as such on my Nexus 5, Nexus 6 and now my Nexus 6P - haven't noticed exactly when they start to appear and have yet to find a way to disable them - please take a look at the following image:
[](https://i.stack.imgur.com/ssoCD.png)
Screenshot (click to enlarge)
If you look at the upper right, you should notice a few buttons on the viewfinder. It used to be just two, now I have three after the camera app updated. They were not there when I initially got any of my Nexus devices but shortly presented themselves afterwards.
I do use my Nexus devices for debugging so I have disabled debug mode to see if there was any connection, but this does not seem to be the case.
Is there sort sort of hidden button I must press (ex; how the developer menu is activated) in order to hide these buttons once again?<issue_comment>username_1: The buttons overlay (i.e. `Z-`, `Z+`, and `5 SECOND BURST`) are part of Android's accessibility feature, TalkBack. Refer to [Google Camera Help - Use TalkBack with Google Camera](https://support.google.com/googlecamera/?hl=en#6149231).
To hide the buttons, you need to turn off TalkBack feature on **Android Settings - Accessibility - TalkBack - tap to toggle off**.
**Note**: the buttons are integrated to the TalkBack feature, so there's no way to hide the buttons without turning TalkBack feature.
Upvotes: 2 <issue_comment>username_2: I recently had the same issue with my 6P, running 6.0.1 and the latest Google Camera version 3.1.021. It turned out to be a result of having the **Screenwise Trends Panel** app installed on all my phones. Enabling it in **Accessibility Services** causes the buttons to show up. From my searching there is no real solution other than to **disable the Accessibility Service toggle for Screenwise. Then the buttons go away.**
Upvotes: 4 [selected_answer]<issue_comment>username_3: I too had this menu enabled today. Later I found that, I was playing around with accessibility settings today. I've (accidentally) enabled "Switch access", so I got this menu in camera app.
Now after disabling the Switch access, this menu was gone in camera.
Upvotes: 2 |
2015/12/07 | 577 | 1,908 | <issue_start>username_0: * Same wifi
* previous person registered on the phone left
* I reset the phone
* after language selection (and wifi selection), I get the problem
Device says
This device was reset. To continue, sign in with a Google Account that was **previously** synced on this device.
Does anyone know how I might fix this problem? It's an important test phone for me.
Again it’s the same wifi as previously.
I looked [How to bypass "Verify your account" (Factory Reset Protection)](https://android.stackexchange.com/questions/127739/bypass-verify-your-google-account-after-resetting/127745#127745?newreg=c7c12212f32d450fa251efb2a53453b3) but Nexus 6 does not have such a home button.<issue_comment>username_1: This is an anti-theft policy put in place by Google. There is not supposed to be any way to use the phone unless you have access to a prior account used on the device. See the Nexus [documentation](https://support.google.com/nexus/answer/6172890?hl=en).
The user with access to a prior account should remove that user to allow future access:
>
> To turn off device protection, remove your Google account from your device. If you have Developer options enabled on your device, you can also go to Settings Settings > Developer options and check "OEM Unlocking."
>
>
>
Upvotes: 2 <issue_comment>username_2: Reboot to the Bootloader, see my previous post, and plug it in to a computer. On your computer, install fastboot (google "how to install fastboot on ..."). Then, open a terminal and type,
>
> fastboot oem unlock
>
>
> fastboot oem lock
>
>
>
If this does not work, download a nexus 6 factory image [here](https://developers.google.com/android/nexus/images?hl=en#shamu), and download the latest one. Double click it, and then run:
>
> cd ~/Downloads/name\_of\_file
>
>
> fastboot oem unlock
>
>
> sh flash-all.sh
>
>
> fastboot oem lock
>
>
>
Upvotes: 0 |
2015/12/07 | 431 | 1,739 | <issue_start>username_0: I am an Amazon Prime user. The Amazon Video App allows us to download the video to the phone so that we can watch them without wifi connection. I have a Samsung S5 phone 16G version. When I download a movie, the amazon app size increases. I think that the app somehow hold the movie data within itself. Normally, I can only download 2 movies into my phone because I have many apps and the system itself talks space. May I know whether there is anyway to put the app on SD card?<issue_comment>username_1: Every app has a data folder under `/data/data` partition that only they themselves can access. Your Amazon app downloads the videos to that folder. What you see as increased size of *data* is the size of that folder.
Application itself, no matter where it is located, will keep downloading things to folder. If you want to switch this data folder's location to SDcard, then you can use [Link2SD](https://play.google.com/store/apps/details?id=com.buak.link2sdplus) to do so.
Upvotes: 0 <issue_comment>username_2: In July 2016 Amazon upgraded their Amazon Video app... now when downloading a video it prompts you if you want it saved to your SD card (if you have one installed). -Settings- in this app also has an Internal/SD Card toggle switch where to save. The negative is any videos already saved to Internal memory have to be deleted and re-downloaded to the SD Card if that is where you want them.
This whole subject freaked me out a bit as I just bought 6 seasons of Game of Thrones only to think I could not put on my (newly purchased) SD Card... My lucky day that this app upgrade just happened within about the past 30 days. The Hi-Res download to a 80/20 mbps SD card is painfully slow.
Upvotes: 1 |
2015/12/07 | 594 | 2,256 | <issue_start>username_0: In Google Sheets, when I add a number (e.g. `1.01`) using the text keyboard and hit Enter, this numeric keyboard pops up as a default because the field is numeric. However, I do not have a decimal option, so I switch back to text keyboard, and we start over *on every cell*... or I could switch back and forth *just to get the decimal*, which is also insane.
On a tablet, in the white (extra options) the last one is the decimal point, but on the phone, it isn't there. I'm using Samsung Galaxy S3 and there is no decimal point on numeric keyboard.
How to input a decimal point with numeric keyboard?
[](https://i.stack.imgur.com/0PnjH.png)
Screenshot (click to enlarge)<issue_comment>username_1: There may not be an exact solution to the problem *as you posted it*, but there are possible workarounds. Android's primary strength is it's customizability and modularity, so if one (your stock) keyboard does not satisfy you, you're welcome to switch it out for another which does.
I know of 3 keyboard apps off-hand that have a decimal point in their numeric keypad. These are:
1. [Google Keyboard](https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin) - The officially recommended keyboard app for Android, and the default for Nexus devices and devices running Lollipop or above (as the AOSP keyboard). Very clean and doesn't deviate much from AOSP. Completely free.
2. [SwiftKey Keyboard](https://play.google.com/store/apps/details?id=com.touchtype.swiftkey&hl=en) - a very popular keyboard replacement app (some might even say *the* most popular). Highly themeable. Free with in-app purchases.
3. [ai.type Keyboard](https://play.google.com/store/apps/details?id=com.aitype.android&hl=en) - Another very popular keyboard. Supposedly has very good text prediction, and also high themeability. Free with in-app purchases, Pro version removes ads.
I recommend these keyboard replacement apps to the OP as I have used them myself and know that they (when I used them) provided a numeric keypad with a decimal point, as the OP requires.
Upvotes: 2 <issue_comment>username_2: This was fixed after app software update
Upvotes: -1 [selected_answer] |
2015/12/07 | 576 | 2,285 | <issue_start>username_0: I have a Moto E (2015) and I have a hotspot plan that I let my family use. The Moto E has stock Tethering support. However, there are some limitations.
The hotspot would not turn off automatically. This could potentially create two serious problems. One is that the tethered devices continue to tether even when they are at a place with free Wi-Fi. The other issue is that I could forget that my Wi-Fi was used for hotspot and ended up using my Mobile Data when free Wi-Fi is available.
The best I could come up with is manually setup a reminder every time I turn on Hotspot but it is rather cumbersome and it requires me to manually turn hotspot off. I searched around for this topic but I don't see any solution. Would like to hear some better ideas.<issue_comment>username_1: There may not be an exact solution to the problem *as you posted it*, but there are possible workarounds. Android's primary strength is it's customizability and modularity, so if one (your stock) keyboard does not satisfy you, you're welcome to switch it out for another which does.
I know of 3 keyboard apps off-hand that have a decimal point in their numeric keypad. These are:
1. [Google Keyboard](https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin) - The officially recommended keyboard app for Android, and the default for Nexus devices and devices running Lollipop or above (as the AOSP keyboard). Very clean and doesn't deviate much from AOSP. Completely free.
2. [SwiftKey Keyboard](https://play.google.com/store/apps/details?id=com.touchtype.swiftkey&hl=en) - a very popular keyboard replacement app (some might even say *the* most popular). Highly themeable. Free with in-app purchases.
3. [ai.type Keyboard](https://play.google.com/store/apps/details?id=com.aitype.android&hl=en) - Another very popular keyboard. Supposedly has very good text prediction, and also high themeability. Free with in-app purchases, Pro version removes ads.
I recommend these keyboard replacement apps to the OP as I have used them myself and know that they (when I used them) provided a numeric keypad with a decimal point, as the OP requires.
Upvotes: 2 <issue_comment>username_2: This was fixed after app software update
Upvotes: -1 [selected_answer] |
2015/12/07 | 328 | 1,339 | <issue_start>username_0: WhatsApp data is taking around 700 mb of internal storage which excludes media. If I delete all the database backup except for the latest one, will my all previous chats get deleted? I don't want to delete any of my chat<issue_comment>username_1: No, your chats will NOT be deleted.
Deleting old backups would not delete all your chats but only the ones which you deleted before last backup was created and hence are not in latest backup. So you can keep the latest one without any fear of losing what is important to you.
Upvotes: 4 [selected_answer]<issue_comment>username_2: Like it is said already, the chat is not touched by all these backups. You can delete them without any harm.
The thing is, it won't help you nothing to delete these. WhatsApp will rebuild them day after day till they all are back. You cannot change this backup behaviour of WhatsApp. The only thing to get the backups smaller is to delete your chats and delete the WhatsApp data. Then not restore the existing backup when WhatsApp started first time after data-deletion. But who wants this?
**EDIT 2017-04-05:** I wrote a little Task in Tasker (need root for it!) which deletes all these old backups each night. This saves me some 100 MB of space :)
I use the Action "Run Shell" with a "rm" command with wildcard.
Works :)
Upvotes: 3 |
2015/12/07 | 553 | 2,179 | <issue_start>username_0: I have an issue on my device (Galaxy Tab S 8.4). I´m either stuck on boot loop (flashed with TWRP that worked fine for months until recently after a restart) or I can enter download mode and get stuck at the "Download... Do not turn off target!"-screen. Cant ever enter recovery no matter how I try... If I let the battery die it boots up into the boot loop as soon as I plug in the power chord. Is my device bricked or whats going on?<issue_comment>username_1: Not enough data in question - and not enough rep to ask with comment, do you try to enter recovery by holding `volume up + home + power`? (You mentioned just letting battery die, which is not going to help any good). You mentioned You can enter download (`vol down + home + power`) so I'm guessing you know about recovery too.
If You cannot enter recovery even holding proper combination You need to flash just recovery.img, preferably checked and working with your model.
Upvotes: 0 <issue_comment>username_2: I have exactly the same problem Jakob has described.
The Tab S is stuck in in a boot loop. The power off button has no affect. Vol Up + Home + Power has no affect, Vol Down + Home+ Power reboots straight into the boot loop.
The hope was that letting the battery drain to power off, then charge to try Vol Up + Home + Power ( as this should be done when the device is already power off).
The action of charging sends the device back into the TWRP boot loop.
The Tab S had been working great with CM12.1 for many months. But after a factory reset, which I did in order to be able to gift this to someone else, has resulted in this situation.
Upvotes: 0 <issue_comment>username_3: I had the same exact problem. I flashed a Marshmallow ROM from KitKat, not realizing I had to update the bootloader to Lollipop. I got stuck and couldn't get past the boot screen and when I used pwr+vol dwn+home I got the Download...Do not turn off target msg. What worked for me was to plug in my Tab to my pc, start up Odin 3.09 (not sure if the version matters, I didn't try 3.12) and I was able to flash the Lollipop boot loader. The Tab restarted and I was good to go. Hope that helps
Upvotes: 1 |
2015/12/07 | 295 | 1,190 | <issue_start>username_0: I am considering the upgrade of my Android Phone to Cyanogenmod as even with root, I am having several permissions problems, OTA updates removing root, etc.
The only reason I did not yet install it is because I don't know if it is compatible with the Play Store, and apps related. As I have alot of apps downloaded through the play store, and an AppData helium backup, I want to know if the backup will be compatible with the apps in Cyanogen.
My helium backup only has the backup of App Data, rather than the entire application source, as it is more space efficient
---
Samsung Galaxy S5 mini SM-G800F with stock Android 4.4.2 rooted<issue_comment>username_1: Yes, Cyanogenmod is fully compatible with your previous apps.
Upvotes: -1 <issue_comment>username_2: Luckily, Cyanogenmod is in fact compatible with play services. I am not sure about the stock apps that samsung has, as I didn't even bother trying to install them. The `adb` backup I made before going to CM restored properly. Google Apps are copyrighted, that's why they are not there initially. You can flash the Open GApps package as I found that to work for me best.
Upvotes: 2 [selected_answer] |
2015/12/07 | 866 | 3,422 | <issue_start>username_0: I have about 50 apps installed on my phone (not counting system apps). And my phone is absolutely unusable this way. Everything lags so bad that I can barely even enter my lockscreen pattern. I assumed this was because the apps can magically run in the background as services or whatever, but after freezing about 40 of them and making sure that only a very few services were running like whatsapp, my alarmclock app and my firewall app. My phone is still extremely slow.
Why is that?
Back when I only had these 10 apps installed that are running right now, everything worked pretty smoothly.
So what is wrong? A frozen app shouldn't have an impact on performance in such a way. Is there any way to get it fast again?
I've already removed as much preinstalled apps/bloatware as possible and cleaned the system using SD-Maid and used Autorun Manager to disable a ton of receivers that could start some apps. But it is still really slow.<issue_comment>username_1: Phones use [Solid State Drives (SSDs)](http://ocz.com/consumer/ssd-guide/ssd-vs-hdd) for storage instead of traditional Hard Drives (HDDs). This is because carrying and jostling HDDs can cause hardware problems.
Solid State Drives, however, [get slow as you fill them up](http://www.howtogeek.com/165542/why-solid-state-drives-slow-down-as-you-fill-them-up/). So when you start to fill up your phone, its storage gets slower. This means that it takes longer to read the code from storage into RAM to execute.
It should also be noted that [the description on Autorun Manager](https://play.google.com/store/apps/details?id=com.rs.autorun&hl=en) says that some apps will just attempt to restart themselves after it kills them. This constant restarting-killing behavior could possibly be even harder on system resources that just letting the background app run, so be careful which apps you kill.
Some background tasks help apps start-up faster too. I can start up a heck of a lot faster if I've already updated my app while you weren't using it. Instead of waiting for my app to get all of the data it needs when you open it, it grabs it in the background and can just display it when you open the app.
Also, if your device has very little RAM, then it can only hold a couple of apps in there at a time. If the apps you're opening have been erased from RAM, you phone has to erase another app from RAM and use that space for the new app.
Basically, there are a ton of reasons why your phone could be acting slow, and it's probably a combination of them that's causing your phone to act so poorly.
Upvotes: 2 <issue_comment>username_2: As you install apps, they are allowed to run in the background. This takes up quite a lot of ram, and will slow down your phone. Do not use a task killer, as the apps use even more ram to restart themselves. The only solution is to delete some of the apps. To find the ones using a lot of ram go to
>
> Settings->Apps->Running
>
>
>
Look for the high ram usage apps, and delete them. As a last resort, factory reset your phone.
Upvotes: 0 <issue_comment>username_3: You might be having lots of data, including pictures and videos, and others that is media from social apps, including WhatsApp and FaceBook .. get a back up of that data, free some space,
also delete unnacesiry apps, like those used for cleanups,
hope this helps you run the phone acting smooth again,
Upvotes: 1 |
2015/12/07 | 799 | 3,089 | <issue_start>username_0: I can't really reproduce what caused the issue, but all my contacts show up separately, it's like I'm having two contacts with identical name, one in the Google account containing all his phones, emails including his WhatsApp number but not identified as WhatsApp, and another one for each WhatsApp number the contact has.
I thought about deleting all the WhatsApp contacts but I can't seem to find a way to do it.
Here's what it looks like:
[](https://i.stack.imgur.com/buhpfl.png)
I've tried merging accounts on Google and on phone and the system found no duplicates.
It looks like my WhatsApp contacts are stored somewhere on the cloud and needs to be erased then be re-obtained automatically staying as simple contacts, but I haven't found a way to clear all WhatsApp contacts (I have 900 - meaning erasing them manually isn't an option).
I've tried to filter only WhatsApp contacts then choose delete selection but it didn't allow me to do that.<issue_comment>username_1: I might be a little late, but still, at least for google.
I had the very same problem recently, some whatsapp contacts were separate from original (google / device / doesn't matter). Manual join did not work - phone said contacts joined but they did not.
After some fiddling I found a solution thet worked for me in all cases.
Problem was in phone number format in original contact and in whatsapp. It is possible to store the number either with or without spaces.
Here in Czech Republic these are
* +420 123 456 789
* +420123456789
in UK it is
* +48 1234 567890
* +481234567890
etc.
Solution was simple after realizing this, edit all your google contact numbers coresponding to whatsapp and either add the spaces in numbers without them or delete the spaces in numbers which got them.
After that I was able to join manually all contacts with whatsapp contacts.
Hope this helps
username_1
Upvotes: 3 [selected_answer]<issue_comment>username_2: If anyone else is coming here and still has the problem. And do not want to manually edit the contacts in different country formats. Here is a simple workaround.
Go-to Contacts app. - settings. - Select contacts to display. - Customize. - Deselect WhatsApp contacts.
You will not see what's app contacts separately when searching for contacts.
Upvotes: 1 <issue_comment>username_3: Editing all the contacts is useless - just try to re-install your whatsapp and you face the issue again (and sooner or later you will re-install when you buy new phone :-) ).
Why it seemed to be helping? Because the contacts were re-sync to your smartphone - you can test it - just add a web page and it will fix the issue as well - the spaces in the number are not important, it just marks the contact for a re-sync.
What helps and much faster is a full re-sync of google contacts to your phone. You can achieve that by simply adding all of them into a new group, which you can revert in next step - 30seconds and everything re-synchronized and working.
Upvotes: 1 |
2015/12/08 | 194 | 842 | <issue_start>username_0: Today, I have created a Whatsapp group and accidentally left the group. Now the present admin of the group is not able to add me back. Kindly suggest me what to do.<issue_comment>username_1: You can't delete a WhatsApp group unless you're the last person leaving it. If your friend's phone is throwing an error, try getting him to make another member of the group an admin, and then the second admin could try adding you. But deleting the group without it being completely devoid of members is impossible.
Upvotes: 1 <issue_comment>username_2: As the Admins, you could delete the group. Unfortunately, Whatsapp admins. have recently eliminated that option, and without notice.
I see NO rational in the absence of this feature. If you created a group, you should have that same power to delete the group.
Upvotes: 0 |
2015/12/08 | 340 | 1,160 | <issue_start>username_0: My phone is Huawei Y6.
* I already have a pin lock.
* Enabled **Smart Lock (Google)** in Trusted Agents.
But I still can't find Smart Lock feature anywhere.

<issue_comment>username_1: It does have a Smart Lock feature at least on Stock and CyanogenMod build.
On Stock Android (5.1.1): Settings > Lock Screen > Smart Lock.

Upvotes: 0 <issue_comment>username_2: I have a Huawei 4C with EMUI 3.1 (Lollipop 5.1.1) and don't have Smart Lock setting anywhere either. I think it's just that EMUI might have simply overwritten default security settings menu, and now that option isn't accessible from there.
Upvotes: 1 <issue_comment>username_3: The same happened to me. Huawei Honor 4x after upgrading to Lollipop the Smart Lock UI Is Missing. After Connecting a new Bluetooth device it had even asked me once or twice if I want to use this device to unlock the phone so there seem to be working in the background but no way to control it. Obvious bug.
Upvotes: 0 |
2015/12/08 | 506 | 2,097 | <issue_start>username_0: I'm having this issue with my father's Galaxy Tab 4. He can be just feet from the router and even though the WiFi is strong, the internet keeps dropping on his device.
Even my crappy Dell Venue 8 almost never drops the internet despite the issues it came out with.
I already updated the Galaxy's firmware and didn't fix the issue. I found this is a documented issue in other sites but the Samsung link they were giving to troubleshoot this issue was no longer working.
Any help will be greatly appreciated, thanks!<issue_comment>username_1: This is a known issue to users but Samsung won't admit it. I have a Galaxy Tab 4 7.0 and have the same problem. I have read a lot of other users experiencing the same issue.
I emailed, chatted and spoke with Samsung customer service about the issue. After a lot of back-and-forth, I finally set up a service ticket where I sent them my tablet, they replaced the entire motherboard, and sent it back to me. The Wi-Fi is integrated into the motherboard, and replacing the motherboard didn't fix the problem. This is the only device I use that has this issue, and it happens when connected to other networks as well (not just my home router, NETGEAR N600).
Basically, the Wi-Fi in the unit is garbage. The device shows that the device has a wireless connection, shows the SSID of the router, and shows full-strength for the signal- but the internet connection just stops working. No rhyme-or-reason, either. It will happen in the middle of doing something after working perfectly for hours. It normally won't fix itself, and **the easiest way I've found to reconnect is to just cycle the Wi-Fi off and then on again**.
Upvotes: 1 <issue_comment>username_2: Actually the Wi-Fi is a good Wi-Fi. Not crappy. I spent over a year and finally found the issue of WiFi turning off.
Try this solution.
In setup go to - more networks → mobile networks and choose connection optimizers and check to remove check mark from box.
In other words, whereever your "connection optimizers" is located, turn it off. See if this works.
Upvotes: 0 |
2015/12/09 | 1,385 | 5,284 | <issue_start>username_0: In my workplace, we have both "real" and "test" wifi connection points. All are password-protected, with passwords that are difficult to remember. Normally I want to be connected to a real wifi, but from time to time, my work requires that I connect to a specific test wifi. I would like to retain the connection information for these test wifi services, including the password, but not auto-connect to them.
With my tablet (running Windows), for each connection listed, there is a checkbox for "auto-connect". I can uncheck that box and retain the information on how to connect, but connect only when I do so manually.
Is there anything equivalent on Android, or is my only choice to write down those passwords, and tell Android to forget the test connections after each time I use them?
Thank you for your attention.<issue_comment>username_1: Looks like (if its still relevant) this may be a thing of the past, as manufacturers are implementing this feature in newer android versions a well as builds i.e there is an option to **disable wi-fi auto-connect**.
AFAIK, this feature comes 'out of box' for Xiaomi (MIUI based) and Samsung Galaxy phones, you can disable wi-fi auto-connection with just a few taps:
* If have a MIUI based device, navigate to WLAN settings → Tap the right arrow besides the wi-fi SSID name then toggle to disable the 'Auto connect' feature:

>
> * If you are on Samsung device you can control the “Auto reconnect” feature from
>
>
> wi-fi ssid name (long tap) → Manager Network Settings → Uncheck “Auto
> reconnect”.
>
>
>
[](https://i.stack.imgur.com/FRE2O.jpg)
([Image credits](https://www.mobikin.com/android-recovery/fix-samsung-galaxy-s8-cannot-connect-to-wifi.html))
---
Nevertheless if you can't find this feature on your device, there is another workaround:
You have to install, an additional third-party application called [WiFi Prioritizer](https://play.google.com/store/apps/details?id=org.za.flash.wifiprioritizer&hl=en) (which seems to be working after trying dozens of related ones. *Note I am not affiliated with this app or developer*)
>
> WiFi Prioritizer aims to solve a simple problem by attempting to
> automatically reconnect to a higher priority wireless network when it
> comes in range while still being connected to a lower priority
> wireless network.
>
>
>
**Workthrough**
* After installation open the WiFi Prioritizer app, toggle the Enable Scheduled Job switch to On.
* The Access Point list contains all your saved Wi-Fi networks. Here, you'd have to set the priority of the networks. Start off by dragging your preferred connections to the top. From the problem onset you may want to leave out **"test"** connection.
* You may optionally set signal threshold (in case you have multiple defined APs apart from the test. As long as the job is running you are assured the device wont connect to test AP as its not included in AP priorities.
You may also want to take a look at [WiFi Manager](https://play.google.com/store/apps/details?id=org.kman.WifiManager) (again I am not affiliated with it).
Hope this helps
*Credits*
[How to Prioritize Wi-Fi Networks on Your Android Phone](https://www.guidingtech.com/prioritize-wifi-networks-android/)
Upvotes: 2 <issue_comment>username_2: I have a Sony Xperia Z2 and this auto-connect to WiFi has been driving me up the wall for months, and the Z2 doesn't seem to have the setting to switch off auto-reconnect, but tonight I finally found out how to stop it:
**The answer:**
Go to Settings, tap WiFi. It will turn itself on, ignore that for now.
Tap the three dots menu top right, and tap "Saved Networks". This can only be done while wifi is on, it's greyed out otherwise.
For each saved network, long-tap it, a pop-up appears with an "auto connect" tickbox, pre-ticked. Untick the box. This should put an end to random wifi reconnects.
**Background:**
On the Z2 I have a VoIP app that connects to an Asterisk PBX inside a company VPN, via which I can receive Support calls. I also have 20 gig of 4G data a month, so no need to try and economise via wifi. So at home I'd turn wifi off from the top bar, connect to the VPN over 4G, and fire up my VoIP client to receive calls. And then after some random period of time the phone would decide to auto re-connect to wifi, breaking the VPN connection and disconnecting the VoIP. However the wifi signal in my workspace is very weak (router on ground floor, workspace in the attic - main PCs are on a wired network), so as soon as it had connected it'd drop off again. Plus all the random turning back on after I'd turned it off would waste battery power - if I turn a thing off I expect it to stay off. I came close to throwing the phone a few times.
I've googled this issue many times but all the threads on various forums referred to settings and apps that do not exist on my phone. Found the solution I've detailed above by chance this evening while out of desperation trying every conceivable option and tap-type. Given the number of frustrated users I saw on various threads, I hope this answer is of use to other people in the future.
Upvotes: 2 |
2015/12/10 | 264 | 1,081 | <issue_start>username_0: I'm associating a Nexus 5x running MarshMallow 6.0 to a Wi-Fi hotspot that has no Internet access. Android keeps dropping the connection every second and then won't even try to reconnect stating that there is no Internet access.
How can I force Android to keep this Wi-Fi connection even without Internet access?<issue_comment>username_1: To disable automatically disconnecting from a "poor" WiFi network, you will want to toggle the **Avoid poor Wi-Fi connections** setting.
This can usually be found in **Settings > Wi-Fi > [menu] > Advanced > Avoid poor Wi-Fi connections**.
Upvotes: -1 <issue_comment>username_2: My gateway was not correct. False problem. It's true that Android offers a message as stated in the question comment by Juozas.
Upvotes: 0 <issue_comment>username_3: This shell command works on marshmallow:
type su to enter superuser mode.
Then type the following command: **settings put global captive\_portal\_detection\_enabled 0**
^^ it disables the "drop wifi if no internet connection" functionality.
Upvotes: 4 [selected_answer] |