# Question
Title: Install all of google servies alcatel one touch fierce xl
I rooted my phone but after a while I realized google play store wasnt there. So I deleted the root app and did a factory reset but it didnt come back. So then I tried getting apks but when ever I tried to download something the app would just crash and when ever Im just using my phone a message would appear saying google play store has crashed. Is there anyway to restore my phone back to its former glory? Any answers please be explained in depth I dont understand some technical lingo

# Answer
> 0 votes
root shouldn't delete the play store !

Did you do anything else ?

was it a dirty root zip ( maybe ported from a new gapps installer as a base ?) gapps is all i can tink of that would delete your store because it cleans up your old installation first, It sounds like someone made their own root.zip and used the script from gapps, thinking it'd just install root files into the system and not wipe anything...

---
Tags: rooting
---


# Question
Title: How do I find out what wifi chipset my phone has?
I've got LG Optimus One phone (model LG-P500h). How do I find out what wifi chipset my phone has? Is there a general mechanism that will work for all phones?

# Answer
> 4 votes
Well without some specialized program, there's always `dmesg`.

Turn on wifi, then run `dmesg` in a terminal/`adb shell`/ConnectBot. Towards the end of the file you'll see debug statements about your wireless.

`dmesg | grep -i lan` can be useful if you have busybox installed.

I get lines like this:

```
TIWLAN: 1251 PG 1.2
tiwlan0: no IPv6 routers present

```

The first one isn't interesting on its own, but the second one screams "network adapter" due to driver naming convention for network adapters. "tiwlan0" is closer to OpenBSD's naming convention than Linux's (Linux native drivers would just call it wlan0) but...not unexpected.

A few web searches later - and yep, it's a TI wireless chip.

# Answer
> 2 votes
The sure fire method that will work for any phone is to crack open the case, write down the name and part number of the chips, and then research them individually. That can be pretty intensive though, not to mention that you might damage your phone in the process. Manufacturers typically do not publish the parts list for their products. The product spec sheet may contain the CPU type (a Qualcomm MSM7227 in the case of your phone). They may also list the GPU (Qualcomm Adreno 200 for your LG Optimus One P500). No guarantee on that though.

The folks over at isuppli.com teardown hardware and inventory the parts. Most of their reports you have to pay for, but some get published for free.

Most handsets use a chip from Texas Instruments, Broadcom, Royal Philips Electronics, or Atheros Communications. Using those chip maker names as a filter may help you to zero in on the particular chip in your handset.

# Answer
> 0 votes
I simply used the `dmesg` command in a terminal emulator and scrolled until I found anything named `bcm432x...` and `wlan`. Think thats it. I have lg p500.

# Answer
> 0 votes
Use Wi Mark BenchMark Receptor from google play. OR https://www.youtube.com/watch?v=rQtxZ4MbaFA

# Answer
> -1 votes
I simply googled "what chipset is in galaxy j100" (my phone) done some reading and got answer..... fyi this one has chipset by marvell... And yours, the LG has a Qualcomm msm 7227

---
Tags: wi-fi, hardware, system-info
---


# Question
Title: Extract & repack system.img for Nexus 5 lolipop
I'm following this link to extract; make some changes & then repack `system.img` which is present in nexus 5 image. (Version Tag android-5.1.1\_r9)

The guide works for 4.1.1, but not for 5.1.1\_r9.

Because, there is no *sparse\_crc32.c* & *simg2img.c* present in ext4\_utils folder.

So how can I extract & repack the img file.

**P.S.** \- I dont know much about gcc.

Please help.

Thank You

# Answer
> 0 votes
Those files have been moved to another location:

check folder libsparse/ in the following repo https://android.googlesource.com/platform/system/core/

I have checked it with 6.0.1 image, and it works.

---
Tags: rom-flashing, images, system
---


title: Rooting my phone

text:
# Question
Title: Rooting my phone
I have a HTC one e8 dual SIM,nearly 2 year old.as the warranty is finished and the phone has became old I wanted to root my device(in real I want to get marshmallow rom for my device,it is available in other countries but not in mine that's why).And am new to rooting and flashing Rom so can someone help me out to install Rom and root my device?is there any marshmallow rom for my device?

Any reply would be helpful.

# Answer
> 0 votes
You have it easy, since the M8 has an unlockable bootloader.

What you'll want to do is:
1) Unlock your bootloader
2) Download and flash the TWRP build for your device.
3) Boot into recovery (TWRP)
4) Download the supersu zip onto your phone from http://forum.xda-developers.com/showthread.php?t=1538053
5) Flash it, and you're rooted.

If you help need doing the above: http://htc-one.wonderhowto.com/how-to/unlock-bootloader-root-your-htc-one-m8-0154444/

**As for a Marshmallow ROM,** stop at step 2 above. Then grab the latest (as of Apr. 4, 2016) build of Cyanogen Mod for the M8 from here.

How to install it:
1) Copy that ROM onto your phone
2) Boot into recovery (TWRP)
3) Select Wipe \> Factory Reset (A "dirty flash" isn't recommended)
4) Then, on the main TWRP screen, select Install, and point it to the ROM file you copied to your device.
5) Swipe to flash
6) Welcome to the world of ROMing & rooting!

---
Tags: rooting
---


title: Infamous Marshmallow WiFi battery drain

text:
# Question
Title: Infamous Marshmallow WiFi battery drain
Yes, the infamous battery drain bug.

I've tried every fix in the book and I can't solve the problem.

I've got a Nexus 4 with Chroma (1/18/2016 build) and Hell's core(3.4.0-hC-b87-M) (Marshmallow). I rarely turn on mobile data and when I do, it's for minutes at a time. I have wakelock detectors and better battery stats, they show nothing peculiar (other than the wifi drain).

I've tried:

* Turning WiFi and Bluetooth scanning off.
* Turning my WiFi only to 2.5GHz
* Turn it on and off again
* Clearing app cache
* Turning WiFi off during sleep.

Is it Chroma, Hell's core, an old phone?

Any help is greatful.

# Answer
Not enough rep to comment... but I had this exact issue on my stock Nexus 7 and the only solution that worked was a factory reset.

I also have a Nexus 4 running Chroma and haven't seen issues with either the Jan or March build. If nothing else works, you might try a full wipe and installing the ROM / kernel again.
> 1 votes

# Answer
Did you try booting into safe mode once (powerbutton then long tap power off). After starting in safemode, restart into normal mode.

Had the issue, and this worked for me.
> 0 votes

---
Tags: wi-fi, battery, nexus-4, 6.0-marshmallow, bugs
---


# Question
Title: Making mediaserver immediately scan a file created through ADB
The mediaserver in my stock and rooted Android 6.0.1 (running in Nexus 6) doesn't detect new files created or moved to into /sdcard using adb. It doesn't detect until I do a soft/full reboot which I find unacceptable to perform.

I'm able to manually run mediaserver using command-line to begin file scanning again# *and I want this to be done automatically and immediately whenever a new file is created under /sdcard*. At the moment, I have Tasker run the mediaserver whenever USB cable is unplugged.*

The obvious choice here seems to be an automation app of which I tried Tasker and Automate, and both amazingly failed to detect new files, particularly under /sdcard/Music, when created through adb. However, if an app created files in any directory under */sdcard* those two apps immediately detected the changes. I also tried pushing files to */storage/emulated/0/* instead of */sdcard/* and made corresponding changes in those two apps' triggers.That step didn't benefit me.

It is to be noted that I observed this problem in stock Android 5.1.1 and a CM13 snapshot build as well.

So, how do I achieve the goal?

### Update

I'm aware of the possibility of creating an alias in the OS running in my PC which would execute a script providing a way to push the file as well as run the mediaserver. However, it is something I would like to avoid as much as possible.

* I was using it but later switched to a script executed from PC using an alias. However, ***I do not want to depend upon any of the two methods***. My fingers are comfortable with typing *adb push* instead of *adb\_push* or some other but single word.

### Update 2

* I do not intend to restrict myself to a particular directory, such as Download and neither pushing files into the latter actually works.
* I would like to stress that I'm not asking for *how to run mediaserver*. That I already know. All I'm looking for is: Whenever I do `adb push FILE /sdcard/FILE` the mediaserver should automatically and immediately kick in and scans the file. Regardless of any perceivable performance issue, I want it to kick in every single time.

### Update 3

Okay, *I may be using an incorrect term*. Perhaps *mediaserver* and *media scanner* are terms for two different things in Android. In the case of confusion, please stick with "media scanner" for both the current revision and the bounty note.

### Update 4

# Courtesy of androidyue for this helpful resource, any of the following command in preformatted text is what I can use in my device to make media scanner scan the file.

```
# FILE_PATH refers to the location of pushed file in Android. E.g. /sdcard/Music/lolcat.mp3

am broadcast -a android.intent.action.BOOT_COMPLETED -n com.android.providers.media/.MediaScannerReceiver
am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file://FILE_PATH   # guaranteed to work. See https://goo.gl/lH0CLT for proof.
am broadcast -a android.intent.action.MEDIA_MOUNTED -d file://FILE_PATH

```

### Update 5

Per the suggestion from Manubhargav, I tried Sarkie's MTPFix available here. It didn't work, both in stock Android 6.0.1 and CM13. I saw the following entry when I enabled the service for that app.

```
04-07 09:38:14.771  3383  3383 I MTPService: Watching /storage/emulated/0

```

I later pushed a sound file into */storage/emulated/0/* and nothing showed up in my music player. Logcat also didn't display anything useful either.

By the way, this app uses FileObserver, so I'm not surprised if it couldn't detect files created using adb, since it is the same issue with the automation apps I tried.

---

**Note:** Please post an answer only when you've tested it yourself. Thank you!

# Answer
Okay, it seems the answer is trivial. My fingers don't have to lose the comfort of typing `adb push`, yet I would be able to cause media scanner scan my pushed file, *automatically and immediately*. Here's my script tweaked to my needs:

(**Note**: root access is *not* required in Android)

```
#!/bin/bash

function push_file () {
    target="${@: -1}";
    file_path="${@: -2:1}";
    [[ "$prog_bar" == "-p" ]] && adb "$@" || $call_adb push -p "$file_path" "$target";
}

function broadcast () {
    file_name="$(basename "$file_path")";
    [[ `echo "${target: -1}"` != "/" ]] && unset file_name;
    [[ `echo "${target:0:1}"` != "/"  ]] && target="/${target}";
    $call_adb shell 'am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d '"\"file://$target$file_name\""'' > /dev/null;
}

if [[ "$1" == "-s" ]]; then
    if [[ "$3" == "push" ]]; then
        prog_bar="$4";
        call_adb="adb -s $2";
        push_file "$@" && broadcast;
    else
        adb "$@";
    fi
elif [[ "$1" == "push" ]]; then
        prog_bar="$2";
        call_adb="adb";
        push_file "$@" && broadcast;
else
    adb "$@";
fi

```

I then setup an alias named *adb* in *.bashrc* like this:

```
alias adb='bash FILE'  # FILE refers the file path of the said script

```

This was possible thanks to the very helpful article: Handling positional parameters at Bash Hackers Wiki.

**Note**: the script more or less requires a \*nix based OS in PC with version 4.x of Bash installed and support for *.bashrc*. If you intend to use the script, you're encouraged to edit it to suit your working style.
> 2 votes

# Answer
I'm not sure how the media scanner works exactly, I think that the media scanner constantly updates the Download folder inside internal storage...

if something doesn't show up inside another folder, i copy it to the download folder and it triggers media scanner...

Try using Download folder inside Internal Storage as the absolute path
> 0 votes

---
Tags: adb, automation, media-scanner
---


# Question
Title: Can I generate the GPG key inside R2Mail2?
I just installed R2Mail2 and it seems to work fine so far, but I didn't understand the key generation procedure at the beginning.

What is this key for? Is this already a new GPG key-pair I can use? or is it just some internal stuff I don't have to care about?

How can I generate a GPG keypair inside R2Mail2? Or do I need APG to create my keys?

# Answer
> 1 votes
During the installation R2Mail2 generates a 2048bit RSA keypair which is used to internally encrypt data like stored key passwords or message content.

You cannot access or backup this keypair since it is generated during the installation.

R2Mail2 has no option to create a keypair for good reasons. For more information see my post https://groups.google.com/forum/#!topic/r2mail2-beta-test/RYYaj4tOrwc

regards stefan

---
Tags: applications, encryption
---


# Question
Title: R2Mail2 - GnuPG encrypting email to a different email address than in the public key
I have a friend's public key with the associated email address bla@bla.com. I would like to use the key to send an encrypted email to the email address not@not.com.

Is this possible in R2Mail2 for Android? I can in Thunderbird/Enigmail, but it doesn't seem possible in R2Mail2.

Thanks.

# Answer
Here's an idea for your problem. Had the same as well. Searched a long time to get my Keys to the Android phone.

I work with OSX. There is a tutorial how to Export the keys it seems to be a matter of Key and Certificate conversion. Hope that helps:

http://hackonadime.blogspot.de/2012/03/securing-your-mobile-email-thunderbird.html
> 0 votes

# Answer
Encrypt your message to any public key(s). I also recommend encrypt-to-self. Then send it as an attachment to any address.
> 0 votes

# Answer
No thats not possible within R2Mail2 at the moment. As soon I have time I will implement an option where you can link additional email addressee to an public key.

regards stefan
> 0 votes

---
Tags: email, encryption
---


title: Display Name of Connected Cell Tower

text:
# Question
Title: Display Name of Connected Cell Tower
On older Nokia phones, the name of the cell tower you were connected to was displayed, often the name of the neighborhood you were in. Is there a way to view this data now?

# Answer
> 2 votes
OpenSignal have an App which will give you a lot of information about the tower that you are connected to, which direction it is in, which other towers are available in the area, including ones on other networks, etc.

* Free App
* Gives all the information that you have asked for
* Allows you to monitor your coverage through the day
* Allows connection testing
* If you are willing to share your data it is added to the data available to everybody.

---
Tags: cellular-radio
---


title: Broken S4 screen

text:
# Question
Title: Broken S4 screen
I broke my S4 screen while celebrating my team scoring! I looked up the local phone shops but they are too expensive. Anyone know what I should do? Maybe buy a screen off eBay? I have been told S4's are a nightmare to fix yourself, is that true?

# Answer
> 0 votes
Is your whole screen assembly not working or did the screen glass just fracture?

https://www.ifixit.com/Guide/Samsung+Galaxy+S4+Display+Assembly+Replacement/16540

A quick google search. Replacing the whole assembly is indeed some work.

If just the glass is broken you may remove the broken glass with a heating and replace it with a new one with a relatively low price to it.

I've never performed either of it, but both procedures do look risky. There are some good YouTube videos about the glass replacement. But as always you could render your phone unusable.

---
Tags: samsung-galaxy-s-4, touchscreen
---


# Question
Title: (Why) does Android connected to Mac not just behave as a normal USB drive?
When I connect my Android (Galaxy S5) phone to a Windows computer, I can browse the phone storage just like any USB/external drive. That's not the case on Mac. There I need to install Android File Transfer or something, which seems to be unresponsive and slow.

**Is there no way to just mount my phone like any other USB drive on Mac?** If not, could you maybe give a short explanation, why?

# Answer
> 8 votes
The Default mode for Android USB Transfer is MTP (Media Transfer Protocol), which isn't supported by Mac.

> Apple’s Mac OS X is a holdout — it doesn’t include MTP support at all. Apple’s iPod, iPhone, and iPad use their own proprietary syncing protocol along with iTunes, so why would they want to support a competing protocol?
>
> Google provides an Android File Transfer application for Mac OS X. This application is just a simple MTP client, so it will work for transferring files back and forth on a Mac. Google doesn’t provide this application for other operating system because they include MTP support.
>
> Source: http://www.howtogeek.com/192732/android-usb-connections-explained-mtp-ptp-and-usb-mass-storage/

So, that's why you need an extra software for Mac, because Apple only wants its devices to be supported.

To avoid that, you could try to mount your SD Card in USB Mass Storage (UMS) Mode.
That could be easily be done from Settings if you're using Android JellyBean or below.

For KitKat (4.4) and above, you need to have a rooted device & some other external apps like **Universal MASS STORAGE Enabler** (created by me) or USBSharer or whatever.

# Answer
> 1 votes
With SyncMate Expert, which was suggested here, and which I had to pay almost $30 for, allowed me to mount my **Samsung Galaxy S6** onto `/Volumes/SM-G920T` on my Mountain Lion Mac.

Issues I experienced with SyncMate Expert:

* The mounted device doesn't show up in Finder's left nav, only in `/Volumes`.
* The SyncMate application leaked memory or something so I had to kill its two processes after leaving them overnight (without the Android connected).

---
Tags: usb-connection-mode, macos
---


title: Uninstall via adb without root

text:
# Question
Title: Uninstall via adb without root
I own an Asus Zenfone Go Z00VD running Android 5.1. It came preinstalled with TrendMicro Dr. Safety, which I absolutely have no use for and do not want running at all. This app starts itself periodically, and there is no option to uninstall nor disable it. I'm not sure that it's a system app but I assume it is.

I've done some research and found the following options:

1. Root the phone and uninstall the app. This is the most obvious solution, but this is a last resort.
2. Remove the app via adb without root. Not sure if this is even possible, I've seen some claims that it is, and more claims that it is not.
3. Install an app manager to kill Dr. Safety processes as soon as they start. From the answers on this Stack this seems like a bad idea.

This question is about option 2. Is it possible? Is it safe (little chance of bricking the phone and won't open security holes)? If the answer to either is "no" are there other non-rooting options to disable the app?

I found instructions here: http://hexgears.blogspot.com/2015/06/android-remove-system-apps-without-root.html

but I'm doubtful that they'll even work, let alone work safely.

# Answer
Since it is Android Lollipop, you can setup in PC and execute this command:

```
adb shell pm hide PACKAGE

```

`PACKAGE` → package name of an app. To know the package name of an app, follow the answers to the question: View app's full package name?

If I'm correct, this app is exactly what came with your device and which you aim to get rid of. Although you should verify the package name through your own means, I find the package name as *com.trendmicro.freetmms.gmobi* from the linked URL, so your command would be:

```
adb shell pm hide com.trendmicro.freetmms.gmobi
adb reboot     # reboot the device

```

**Note:** Execute the command at your own risk. I cannot guarantee that it would not soft-brick the device but it would make sure the app do not run again until your unhide the package. To unhide the package, replace *hide* by *unhide* in the aforesaid command.

If something goes wrong, such as the Android ends up in a boot-loop or with recurrent crash messages, then you should either unhide the package (provided that you can) or do a factory reset which means you should ***backup your data before hiding the package.***

As for the instructions in the link, ignore them. The author doesn't know what they wrote. Let me simplify few things there. First, the device is rooted and the title is deceptive. They are using a kernel which is not stock. A stock kernel (production build) should never allow adb deamon to be restarted with root permissions but they were able to do so using `adb root`. If a kernel allows this, then it is considered an insecure kernel and unfit for consumer ready devices.

Also, the steps there about removing the system apps are risky. Huge risk. Only a re-flash of stock ROM or a backup of system partition would be able to fix the device.
> 2 votes

---
Tags: adb, system-apps
---


title: I broke my mobile, help me

text:
# Question
Title: I broke my mobile, help me
I rooted my android KitKat recently and most of bloatware permanently. Today my phone was causing some problems. It showed Service exchange error, play store won't open, accounts won't sync, since i deleted my phone app as well and realised exDialer was just to improve UI of stock dialer and not a complete standalone dialer. I was angry and angry people can't think much. I removed my root access and factory reseted my mobile. Now I realise my swiftkeyboard is also gone and can't type wifi password and I don't have a mobile data plan.

How can I fix my phone?

# Answer
> 0 votes
You may have to flash stock fimrware on it. which phone is it, I will put latest firmware for you so you can flash it.

---
Tags: 4.4-kitkat, rooting, unrooting
---


# Question
Title: How safe is it to upgrade apps using Aptoide?
I know that there are issues with using Aptoide to install apps on Android. There's a pretty good discussion about this in this other question. If only regarding legal issues, Aptoide is definitely a gray area as some apps are not legally distributed there, clearly bypassing fees setup on the Google Play Store or breaking licensing terms. Furthermore, there are concerns that malware can be injected in apps shipped on Aptoide, although they make efforts to scan apps for such problems.

I wonder, however, if *upgrading* apps has the same issues as installing fresh new apps. Say I have an old APK from an app I paid from on the Google Play Store, then lost access to my store credentials (lost the phone!) but I still have the APK of the application lying around. So I installed that old version of the app and want to upgrade, but without buying the app again.

I understand (but may be mistaken) that Android has some sort of TOFU security model for apps: if you have installed an app, there is a public key that signed the APK and Android will not allow updates to the app if that key changes. Therefore, if I *update* an app using Aptoide, that signature will be checked and I can actually be (cryptographically) sure that the app update actually comes from the original author and hasn't been tampered with by Aptoide or the repository manager.

Is that a fair assumption?

# Answer
> 2 votes
You're correct. When someone develops an app, said app passes through a phase of signing. The signature consists of a RSA certificate amongst its parts, so it's univocal (hence the fact that, if you unpack an app, alter it, sign it with another signature and install it, the Play Store won't show any updates for said app).

Just as the Play Store, even Aptoide, by default, shows an app as updatable only if the signature of the APK in their repository corresponds to the signature of your installed app. This behaviour can be modified by unchecking the appropriate checkbox in Aptoide's settings.

Lastly, since altering an app and repacking it with the original signature has limited probabilities of success (tried that myself, but to no avail), updating your apps via Aptoide is generally safe, providing that you leave the abovementioned checkbox selected.

---
Tags: updates, security, apk, aptoide
---


title: Every Sensor Stopped Working

text:
# Question
Title: Every Sensor Stopped Working
Recently I have discovered that literally all sensors on my Note 4 suddenly stopped working. This include the proximity sensor as well as the gyroscope sensor and GPS, etc.:

Screenshot (click to enlarge)

How can I fix it? Why is it happening? I haven't tried performing a factory reset because I don't want to do that unless it's necessary. Now the screen won't turn off during a call, and the GPS doesn't work in Google maps. I can't even shoot videos in landscape.

This phone is not rooted. Running on Android 5.0.1.

# Answer
the power related to sensors is different from main power in note 4.In this case your sensor power is acting up which is common in note 4.You have to refer it to samsung repair center. thank you VRM
> -1 votes

# Answer
turn your phone off, take battery out, hold power button for 20 seconds, let all the power run out, put the battery in, turn your phone on, and see if it works. if it doesnt work. dont waste time and flash stock firmware on it. good luck!
> -1 votes

---
Tags: system-error, sensors, samsung-galaxy-note-4
---


# Question
Title: Can I receive WhatsApp messages on multiple phones?
I have two phones with the same number, one for home and one for work.

Can I get my WhatsApp messages to come to both phones at the same time, or will they only deliver to one of the two?

# Answer
> 2 votes
No, you can only use Whatsapp with one number on one device.

Quote from the FAQ page:

> **Can I verify one WhatsApp account to multiple phones, or with multiple phone numbers?**
>
> Your WhatsApp account can only be verified with one number, on one device. If you have a dual SIM phone, please note that you still must choose one number to verify with WhatsApp. There is no option to have a WhatsApp account with two phone numbers.
>
> If you attempt to frequently switch your WhatsApp account between different devices, at a certain point, you may be blocked from re-verifying your account. So please do not repeatedly switch between different devices.

# Answer
> 2 votes
No, you can't use WhatsApp with the same number only on mobiles. But that does not mean you can't.

WhatsApp is providing such facilities called WhatsApp Web. Simply, you have to open your browser like Google Chrome, then open https://web.whatsapp.com. There you will get the QR code. Open your WhatsApp application for once, and click on an option where you get *WhatApp Web*. On clicking that, it shows the QR code scanner. You only have to scan the QR code that is already opened in your browser. After scanning, it will display all the conversations, and here you can use WhatsApp from another device.

But there is a little limitation for using WhatsApp Web, that mobile having a SIM card should be connected to the internet.

---
Tags: whatsapp-messenger
---


title: Is it safe to delete .thumbdata3 file?

text:
# Question
Title: Is it safe to delete .thumbdata3 file?
I have this file inside DCIM on internal memory. It takes up a lot of space and I'm getting short of it. So I checked what is taking that much space and found out this file alone takes space upto a GB. So can I remove it and will my mobile malfunction if it is removed?

# Answer
You can delete that file safety, but it will be recreated soon. I have not tried to prevent its recreation, but the method described in this article might work... Let us know if it does!
> 5 votes

---
Tags: insufficient-memory
---


title: Can't seem to SSH from Android

text:
# Question
Title: Can't seem to SSH from Android
I'm trying to access a remote server using SSH on my phone but it dosent seem to work no matter the method/app I try.

I've tried various SSH apps in the play store and recently tried Termux's CLI (which seems great may I add), it successfully got the openssh packages for it, but I still can't seem to access my server from my device using the generic *`ssh username@domain/ip:port`*.

I can confirm SSH works fine from desktop using Putty on the same LAN as my phone. I can ping the server from my phone too using both the server's IP and domain.

Termux throws an error when I attempt to connect, something to the effect of *`Cannot resolve hostname`* even when using the IP address? Though, like I already said, pinging it works fine. The port is definitely open on the server as well since well, I can connect from my desktop perfectly fine.

I'm running Android 6.0.1 (latest build), my device is rooted and Busybox is also fully installed.

Any help getting my phone connected would be much appreciated!

# Answer
OpenSSH doesn't use user@host*:port* notation. If you need to specify a port, you do it with `-p port`.
> 4 votes

---
Tags: ssh
---


title: Blocking Adult Content

text:
# Question
Title: Blocking Adult Content
I want to know how can I restrict access to adult content on my android phone What. Are the apps available in play store and is there any other permanent way to restrict such content on my phone. So that no one can ever ever get access to this kind of content on my phone.

# Answer
An easy solution would be changing the DNS server used by your device, by using a DNS server that doesn't resolve porn website hostnames.

You might need a rooted device to change the DNS.

An universal method to change the DNS is by using an app like **SetDNS** or **OverrideDNS**.

Other methods for changing DNS is available here:
**(GUIDE) How to Change DNS in Android Device (7 methods)**

A few DNS servers that don't resolve porn websites are:

1. OpenDNS: 208.67.222.123 208.67.220.123
2. Norton: 199.85.126.20 199.85.127.20

More here: Source - **5 DNS Services to Block Porn Sites without Installing Software**
> 0 votes

# Answer
you have to call your network and get it blocked, i know for 3 you can do it over the three app.
> -1 votes

---
Tags: google-play-store, stock-android, google-apps
---


# Question
Title: Why do charging rates differ for similar spec USB power adaptors?
I've been experimenting with using USB power adaptors other than the one supplied with the Android tablet and I'm struggling to understand why adaptors of a similar spec to the original are charging at much lower rates.

Could anyone help shed some light on what's going on?

Tablet: Acer Iconia B1-750

Measurement App: Ampere charging meter app from Braintree https://goo.gl/SQNiQb

```
Adapter           |              |
Manufacturer      | Output Spec  | Charging Rate
================================================
Liteon              5.2V  1.35A   250mA        (original adaptor)
Delta Electronics   5.35V 2A      30mA
NewLink             5.0V  2.1A    20mA
NewLink             5.0V  1A      20mA

```
* All measurements were taken using the same USB lead
* The adaptors were all plugged (successively) into the same wall socket.
* The rate readings were taken after a minute or so of plugging in to allow the charging rate to settle.
* All the readings were taken within a few minutes, with the tablet battery level at about 50%
* Each adaptor was unplugged and replugged a few times to check for consistency of readings.
* All adaptors are single port

So, can anyone help me understand why the first three, similarly spec'd chargers aren't charging at the same rate?

# Answer
User manual of your device does not offer any clue, but Acer community forums highlight the feature of original charger to do *fast charging* by delivering more current, which probably the other chargers don't have

From Acer Iconia won't charge, see reply of Acebillsey

> The charger that came with should have been a 5.35V 2A charger with internal settings that tell the tablet that it's a fast charger. When it's plugged in the tablet goes into fast charge mode and will charge even if you are using it. A standard USB port or USB charger will provide 0.5A and the tablet will only do the slow charge mode.

Again from Iconia One 7 (B1-750) not charging, same person says

> There are two styles of chargers. The stock one provides more juice than is allowed by the USB spec and they get around that by putting a special load between the data pins, so the tablet can see that the high power charger is installed and go into full charging mode. When that load isn't there the tablet will not draw more than spec (500mA) and typically the charge is just maintained

This fits in with your readings and probably is the reason, since there is no cause otherwise. Googling didn't help in getting fast charge details in original charger or OEM charging circuit to confirm this

**Edit:** Overview of USB Charging gives a high level view of modifications needed to force a charger to charge at higher rate
> 1 votes

---
Tags: usb, charging
---


# Question
Title: Cannot connect my Moto X to Windows 7 PC
I cannot connect my Moto X to Windows 7, 32-bit PC via USB. After doing some research normal solutions people found were

1. Enabling MTP in connection settings.
2. Disabling USB debugging in Dev. settings.
3. Updating drivers.
4. Updating windows media player.

I've tried all of this still my PC can't detect Moto X as USB storage device. It shows the device in - Control Panel\Hardware and Sound\Devices and Printers, but says this device does not work properly as Windows cannot load its drivers. It gives option to re install drivers in troubleshooting but everytime I do it the device driver is not successfully installed.

# Answer
> 6 votes
If your phone is able to connect in another PC, the problem is in PC and not with the droid. The possible solutions are

1. Download Motorola driver
2. Goto Device Manager and right click on the motorola device name and select uninstall
3. Now right click and select `Scan Hardware Change` Now select `Update Driver Software` and click browse and point to the downloaded driver location

**If this does not work Try:**

1. connect your phone with computer
2. go to `C:\Program Files\Common Files\Motorola Shared\Mobile Drivers\`
3. Run `Motorola Driver Installer.exe`, choose `clean` and `Reinstall`.

**or**

The problem may be due to windows mtp driver and you can try the fix provided by Microsoft.

**or**

1. Unistall driver from device manager
2. Remove all USB controllers
3. Disable Windows Media Player (`Control Panel - Uninstall a program - Turn Windows features on or off - Expand Media Feature - Uncheck Windows Media Player`)
4. Connect your device and Reboot the pc
5. Reactivate Windows Media Player(`Control Panel - Uninstall a program - Turn Windows features on or off - Expand Media Feature - Check Windows Media Player`)

# Answer
> 2 votes
OK, I pulled my hair out for almost 2-days. I'd install the Moto USB driver ware on my PC (Moto Device Mgr V2.5.4) and when I'd connect my Moto X via USB, the driver wouldn't 'install' properly. Status via Cntl Panel, Device & Printer, showed a device named XT1095 (yep that's my Moto X) but flagged with a yellow exclamation point and the declaration 'Driver Not Installed'.

After a NUMBER of uninstall/re-install episodes and delving into the Moto X (turn developer USB options ON/OFF), I tried the setup on my older Dell laptop. BINGO, everything worked like a hose! Hey, what's the difference?

Well, one thing is the Dell hardware is specifically limited to USB 2.0. My desktop PC running a quad core based motherboard has both USB 2.0 and 3.0 ports on it. Hum...

I did a clean install of the Moto Device Mgr and then connected my unlocked/running Moto X intentionally to a USB 2.0 port. KAZOOM, the device driver installed and all was working! Then, I unplugged the Android phone and re-installed it on a USB 3.0 port where it had previously failed to work. VAROOM, it came up and running nicely!

Methinks there's an issue here of technical due diligence in testing the Moto USB driver with various hardware manufacturer specific USB ports...

# Answer
> 2 votes
Have you tried unlocking your screen after plugging in the USB cable?

I was having a similar issue - my Moto X would charge but not connect as media device - but none of the above advice was relevant. Finally, I realized that it would not connect as long as the screen was locked. After entering my PIN, it connected immediately. In retrospect, this is a really obvious security feature! Just thought I'd post this in case someone else has also misdiagnosed this as a USB issue.

# Answer
> 1 votes
I was facing the same problem with my moto e and windows 7 professional, XP i.e. unable to connect.

Earlier, it did connect with every system but for the last few days it did not. Today an IT person gave me another USB cable (thicker one) and it worked.

# Answer
> 1 votes
Okay this is extremely weird, but I've found this with more than one laptop (one HP and one Acer). For some reason the second USB port from the front of laptop never works with certain devices. My 3G dongle and now my Moto X would not be detected properly and said 'unrecognized device'. I had the same issues as the original question, but after switching ports it just works, every time. Hope this helps someone.

# Answer
> 0 votes
To make a Moto G device work with Windows 7 computers, go to Settings \> Developer options on the device and select USB configuration. Change it to PTP (Picture Transfer Protocol) instead of MTP (Media Transfer Protocol). I have been racking my brains and searching the phone and web for answers. Poking around the phone did it! Good luck :)

# Answer
> -2 votes
Had the same problem and nothing worked until I made sure I was using a USB data cable. Maybe the one I was using is for charging only

---
Tags: usb, connection-issues, usb-connection-mode, usb-drivers, moto-x
---


# Question
Title: How can I get shell access on my almost dead phone
My phone broke, so I have been messing with it and from the errors I can see, it looks like all the system folders are missing. /system /data etc.

I saw a YT video where the guy used ADB shell to gain access then just ran some cd commands to create the missing directories (https://www.youtube.com/watch?v=Y-LZvVLEC5o)

adb shell isn't working for me. Currently, I have 'Philz Touch 5' running and I have a working Odin connection.

How can I restore an empty file system?

thanks!

# Answer
> 0 votes
if you can go in recovery mode, you can also go in download mode. if you use odin, i guess you have a samsung device. Normally push togheter power button, home button, volume - button turn any samsung mobile in donwload mode. downlaod an official ROM from http://www.sammobile.com/firmwares/ and flash it with odin.

---
Tags: adb, shell
---


# Question
Title: 1.5 GB in space used for system without installing any apps after using super su-me
Hello everyone I used to have kingroot installed on my device and for some reason I thought it will be better to have super su so I downloaded super su-me and as promised it did remove king root and installed super su but after that I found the available storage for my device going from 1.2 GB to 18mb and I found that space was used in system as I found that the space used for system files increased from 3.3 to 5 GB so what happened and how I can undo this and. Any solution will be appreciated

Things I have tried: 1-Factory reset(it removed super su and king root so I installed king root again and space of system remain bigger)

# Answer
Did you completely wipe everything with TWRP yet?

Also, what type of phone do you have?

I suggest XDA for all of your questions, sounds like you may not have discovered it yet, since you are using Kingo Root.
> -1 votes

---
Tags: applications, 4.4-kitkat, rooting, internal-storage, system
---


# Question
Title: What does data partition in nandroid backup contain?
I've been trying to find information on what's included in the **data partition** when doing a nandroid backup.

I couldn't quite figure if it includes:

* Media files (images, videos, music)
* User apps + Configs
* System Apps + Configs
* Whatever else...

Reason being, I wondered if I could just backup system and boot:

* The media files are synced using rsync.
* The system apps are updated anyway when flashing new ROM.
* The user apps are backed up using titanium or whatever.

This could save some space of my backups,
since I don't have much to spare -
having no external sd slot and only 16gb of storage...

# Answer
> 1 votes
Based on the TWRP versions I used (v2.8.7.0 in OnePlus One and v3.0.0.0 in Nexus 6), TWRP doesn't backup /data/media but everything else stored under data partition. This means:

* media files stored inside internal SD card are ***not backed up***. This is a noted issue with no fix so far in mainstream code.
* user+system apps, their data and other things such as Wi-Fi configuration and credentials and whatnot are always backed up since they are not part of /data/media.

**Note:** some apps store their data which ends up under */data/media/userID/Android/*. After a reset of data partition, an app, if restored with its private data, might not be able to reload the public data stored under the said location. That's one of the reasons folks wants TWRP to backup /data/media as well.

# Answer
> -1 votes
I think that the best answer is here. As an Android Expert, I couldn't have said it better myself!

> To my knowledge, TWRP does a nandroid backup. As you can read in the tag wikis of the mentioned tags (nandroid, backup), a Nandroid backup takes images of your partitions. It's not a backup on the file level, but on partition level. So it includes everything stored on those partitions. Doing a full Nandroid backup of your system thus includes the entire system, one file per partition. There are only very few things not contained, such as the radio-firmware.
>
> So to put it as a short direct answer to your question: Yes, a full Nandroid backup would include all your apps, app data, messages, contacts.
>
> Though it might be complicated to extract them separately (Nandroid can't do that, it's always an "all-or-nothing". But e.g. Titanium Backup can read data from Nandroid backups. Just in case you'll need that :)

---
Tags: nandroid
---


title: Application update

text:
# Question
Title: Application update
Actually I'm bit confused as I don't know where to ask. But it is mostly related to application update from play store so asking here. Many times update size is almost equal to original installation download size. So I want to know that the application is patched with new update or new version is reinstalled?

# Answer
The Google Play Store supports both full application updates and delta application updates.

> A *delta update* is a broad term that means only changes to a package will be downloaded and the changes will be merged into the existing files inside the package. In this case, the package is the apk file that's installed on your phone. In the end, it means less data is used and sent.**1**

As far as I know, there is no general way to force an application update to be either a full update or a delta update. Even though Google Play Store supports both, you have to take whatever type of update that the application provides.

**1**What are delta updates? | Android Central
> 2 votes

---
Tags: updates
---


title: Google app shouts whenever I get a call

text:
# Question
Title: Google app shouts whenever I get a call
I don't know what setting I have done but every time I get a call, my google app starts shouting "Call from.." how to stop this.

# Answer
> 0 votes
i am mobile technician at Samsung, we do get lots of phones with these problem and it is a simple solution to it. please try tapping 3 to 4 times on home button, that disables the voice command.

---
Tags: 6.0-marshmallow
---


# Question
Title: How to clear erroneous unread sms indicator
I am using the stock SMS app on Android 4.1.2. I received an SMS message and read it but when I return to my home screen, the `(1)` in the top right corner of the app is still there. Inside the messaging app, it lists no messages as unread on any of my threads. I have tried killing the SMS app, restarting the phone, and even using a third party app that marks all your SMS as read, but the notification indicator on the app icon persists. How do I remove it?

# Answer
> 1 votes
Go to Settings -\> Application manager. Find an application called "Badge Provider" and clear it's data. Then restart the phone. The `(1)` goes away.

---
Tags: sms, notifications, app-icons
---


# Question
Title: Unable to activate USB debugging after upgrading to Android 5.1.1
After upgrading my Huawei phone (which is rooted) to Android 5.1.1 (CM 12.1) the 'USB debugging' option is greyed out with message:

> 'Device is in charging mode, USB debugging is disabled'.

The message is present even when the cable is not connected.

I have already tried following solutions (but the USB debugging is still greyed out):

> Restarting the phone
> Disabling developer mode and enabling again
> Disabling developer mode, restarting the phone and enabling it again
> Removing the cable and trying all above solutions

# Answer
> 4 votes
Removing 'persist.system.usb.config' file from data/property/ folder and restarting the device solved the issue for me.
After restart, the device shows the option to enable 'USB debugging'.

> *Root access is required to remove that file.*

# Answer
> 4 votes
1. Open settings and go to storage
2. Press menu and go to USB Storage Mode
3. Change to USB or MTP (NOT Charge only)
4. Disable and re enable Development options with the 7 clicks on Build Number

Screenshots (click images for larger variants)

# Answer
> 0 votes
Plug out your USB cable and go to the developer options of your device. There you can activate USB debugging and then you can plug your cable back in. It isn't enough to only activate developer options.

---
Tags: cyanogenmod, 5.1-lollipop, usb-debugging
---


# Question
Title: thl 4000 can't install apps - insufficient storage
On my thl 4000 I can't install apps - I get 'insufficient storage' massage, but I have 168M of free storage and the apps are 2 - 8 M

I tried to follow all the instructions on the different forums, it helped at first but now nothing works.

android v - 4.4.2

# Answer
> 1 votes
I found the following work around - go to 'play store' 'app info' and do - 'Uninstall updates'. This works but finally I end up resetting my phone to factory setting - and the message doesn't appear any more and also I have lot's of free storage.

---
Tags: google-play-store
---


# Question
Title: Is it possible to only use your Google account for Google Play only?
I'm developing Android applications on a phone (5.0.2) provided by my company so I'm supposed to log on Google Play in order to download other applications and test them.

The thing is with that, all of my Gmail, Drive, Photos, Hangouts, Youtube, Keep (and the list goes on) are automatically synchronized and made available with a simple "login button"... Which is quite embarrassing.

Everytime I try to log out from any of those google services, it redirects me to Android's parameters accounts tab... like it's all or nothing.

**So the question is : How can I login to Google Play alone ?** Thanks

# Answer
If you go to "Settings\>Applications\>Google" you can turn off automatic syncing to the device. For the login button there's two things you can do:

1. I think you can deauthenticate the device from your google settings.
2. Simply solove the problem by creating another account you use just to do work-stuff. You shouldn't mix private and business life.

Hope this helps :)
> 0 votes

---
Tags: applications, google-play-store, logging
---


title: Can't download from Play Store on Wi-Fi

text:
# Question
Title: Can't download from Play Store on Wi-Fi
I have a BLU Vivo Air (non LTE) with 4.4.2 installed, and it has developed an issue where it will not download app updates over WiFi. The download from the Play Store starts, but immediately goes to "download paused," and won't restart. When I have tried looking for a solution, most people have an issue with not being able to download over mobile network, not WiFi.

I have tried clearing the cache on download manager and the play store and I have tried a factory reset. Neither one solved the problem.

# Answer
> 0 votes
Try doing a fresh restall on your router. Might be an error where your modem and router are fighting over some DNS problems.

---
Tags: google-play-store, download-manager
---


# Question
Title: Stock Huawei Honor7 Notification Question
Im developing a small app which shows notifications continuously, also when the app is stopped via swipe in the task manager or when the device reboots. It works fine on old Samsung Galaxy Tab2 7 (Android 4.2) and Nexus5 Emulator (stock Android 5.1) among other Android 4.x.x emulators.

Unfortunately it doesn't work on my Huawei Honor7 with Android 5.1 and EMUI 3.1 overlay. Process stops as soon as the app is closed via swipe. Also autostart after boot up doesnt work. I'm not sure if its a Huawei-Power-Safe-Something (killing background processes) or if Android 5.1 generally introduced a new notifications-policy. At least the 5.1-emulator shows, that its still works.

If its a Huawei-thing, maybe someone may tell he, how to tweak the settings for apps right? I already installes PM Plus and granted all possible access to my app but no success yet =\

Any help would be very much appreciated. Thanks in advance!!

# Answer
> 0 votes
Ok, I finally found the solution - problem was (probably) within the MIUI-Overlay: I had to install PM Plus-App for Huawei/Honor to unlock the "Startmanager"-menue within the preinstalled "Telefonmanager-App" (german version - english may be "security app"??) Inside the "startmanager"-menue one can toggle on/off autostart for installed apps. After switching the mode, the phone has to reboot to take effect. BUT in my case the desired app HAD TO BE RUNNING when turning of the phone for the reboot. Its now working fine and i receive notifications even with closed app and after a reboot.

---
Tags: notifications, huawei, background-process
---


title: How to get rid of these marks?

text:
# Question
Title: How to get rid of these marks?
I'm 100 percent sure that it's possible because I managed to do it a few months ago, but now I do not know (don't remember) how to do it again. It looks like someone can help here.

Thanks in advance.

# Answer
You can do by hiding the auto correction in android `Keyboard Settings` under `Settings`,

<sub> (Click image to enlarge)</sub>

Else, Try as mentioned here.
> 0 votes

---
Tags: keyboard, troubleshooting
---


# Question
Title: How can I disable 'factory reset' function?
This is **not** a duplicate as I'm **not** trying to protect it against being **stolen**. I'm trying to protect it from **tech illiterate** people that keep resetting it. I basically need to make it so that I can only reset it though the PC. I have root and everything and I thought I disabled anything dangerous to them.

If we don't get any good ideas, can I just set it up to some sane defaults and then just delete the Settings app? (Good thing "Recovery" is protected by a hardware key combination.)

# Answer
> 3 votes
Yes, you can disable Settings if you have root. From a root shell or terminal:

```
pm disable com.android.settings

```

Run it again, changing `disable` to `enable`, when you want to use it later.

---
Tags: root-access, settings
---


# Question
Title: Does CPU and RAM affect MTP file transfer speed android?
I am testing an application for file transfer using MTP the transfer speed is getting vary in different android devices. Can anyone help me to know what are the factors that may affect the MTP file transfer speed.

# Answer
The number one factor in transfer speed is the actual R/W speed of the phone's internal NAND chip.
> 1 votes

---
Tags: mtp
---


# Question
Title: kitkat 4.4.4 connecting usb devices to samsung tab e
I need to connect a USB printer and a Vivitar camera to a Galaxy Tab e. I currently have a USB OTG cable, and a USB-A --\> Mini-B cable

# Answer
> 0 votes
**For the printer**, you'll need a USB-A --\> B cable, along with: Print Hand, Printer Share, or a similar app from the Play Store.

Make sure your printer is compatible with the app you choose before dropping the $.

---
Tags: 4.4-kitkat
---


title: Wi-Fi Connection Issues

text:
# Question
Title: Wi-Fi Connection Issues
Very recently the Wi-Fi Connection on my Verizon Galaxy S4 has decided to turn itself off at will. This issue is device specific as I have other devices that are not experiencing this problem. The device is Rooted. I have tried: setting a static Ip, resetting router, switching airplane mode on off, changing channels. None have worked. Next is a factory reset, which I do not want to do. So in summary, does anybody have any more tricks I can try to solve this?

# Answer
Possibly there could be couple of reasons for this sought of behavior from your device..

* Check if it happens only when any battery power saver app is switch on, as most of the inbuilt/third party battery saver apps have access to your device's WiFi functionality and they switch it off whenever there's a event triggering the app's pre-assigned/pre-programmed parameter telling the app about high usage of battery by device Wi-Fi transmission/reception.
* Another Scenario which might make this happen is the low WiFi signal. Mostly all higher versions of Android OS have this inbuilt functionality to turn off the WiFi whenever available signals falls to a certain level. Some device manufacturers provide advanced setting under WiFi setting to enable this control of OS, while some keep this function as preassigned in OS disabling user. Look for WiFi Sleep Policy in your device settings and update the settings as per your requirement. You can also refer this tutorial to learn more about adjusting the Samsung Galaxy S-4 WiFi sleep policy settings.

Hope adjusting your device WiFi policy will will resolve your problem, incase if ever after the adjustment of WiFi settings, you still face any issues do revert back with exact situation, I'll try to look deeper into your case.
> 1 votes

---
Tags: wi-fi, connection-issues
---


# Question
Title: I have six Samsung Galaxy Avants that I can't do much with
The owner of my company upgraded our employee phones to something more current. He was going to literally just throw away six perfect condition Galaxy Avants with cases and chargers until I asked if I could have them since they were trash to him. He said sure.

So here I am, stuck because the company software is still on here. I can't really delete because I need admin permission and the application that we used is actually no longer in service (our admin and her team built a new app for the new phones)

I don't really know how to word this, because I have not really been in this situation before...But how can I get these phones back to factory settings? I have the passwords to get into the UI like you would normally but it's still recognizing that it is a phone for my company, with the no longer working app, and no ability really to navigate the phone because it wants me inside of this app.

Thank you in advanced, sorry to be vague.

# Answer
> 2 votes
You should be able to restore factory settings by flashing the Samsung stock ROM using the official Samsung tool named Kies. The procedure is explained here. Your device name should be Samsung Galaxy Avant G386T.

Alternatively you can try Odin. The procedure is explained here. You must be aware that Odin is not supported by Samsung. Using it incorrectly or flashing an incorrect ROM (for instance a ROM intended for another device) can brick (permanently damage) your phone.

---
Tags: samsung
---


# Question
Title: How can I fix a boot loop after replacing the Power button?
A couple days ago my phone started boot looping and just showing the Samsung logo. I was told that my `Power` button was the problem, so I replaced it but I'm still having the same issue.

I have a Samsung S4 Mini i9190.

# Answer
You should get it inspected by an Authorised Samsung Service Center. Similar issue happened with one of my Samsung Galaxy Device too, they diagnosed that due to over heating of device while gaming or heavy usage sometime device CPU mounting on motherboard (which is done my lead balls) gets cracked causing connectivity issues between CPU Chip and motherboard, resulting in boot failure, or boot-loop. So in my case they had to replace the motherboard to fix the issue.

Though in your case its not necessary its happening because of same reason as of mine, there can be numerous reason for similar fault. It could be something very minor connectivity issue as well, as most of the Samsung devices cause this error due to corrupt OS and at time due to a faulty charging connector too.

Bst thing is to get it checked from Samsung Authorized Service Personnel/Center.
> 0 votes

---
Tags: boot-loop, samsung-galaxy-s-4-mini
---


# Question
Title: Not receiving incoming messages on my mobile
I'm using a Samsung Galaxy S2 mobile.
Since last week I have not been receiving any kind of incoming messages on my mobile.

1. I tried message centre no. deleted and re-enter, and powering off my mobile and restarting also.
2. My network setting also perfectly cross-checked, but still the problem was not resolved.
3. I called many times to customer care, but they are not properly responding at all.

# Answer
> 1 votes
If its not a network related issue then the problem could be from device itself. As Samsung Galaxy S2 has a built-in spam functionality in messaging.

So inorder to verify the same, just try sending sms with any another device on your S2 and just see if the other device gets a delivery confirmation report or not, if it does, and you still don't receive that sms. Then in this case you've unknowingly/accidentally switched on the spam function your Galaxy S2.

Follow the instruction below to unblock your incoming SMS

**Using the Settings menu**

* From any Home screen, tap **Messaging**.
* Tap the **Menu** key.
* Tap **Settings**.
* If necessary, tap Spam settings to select the check box
* Tap **Unregister number** as spam (if any)
* Touch and hold on the desired number and then tap **Delete**
* Tap **OK**

Hope this would resolve your problem :)

---
Tags: samsung-galaxy-s-2
---


# Question
Title: Deleted my default keyboard program and I no longer have a keyboard?
I downloaded a keyboard-changing app, but as I used it, everything crashed, so I deleted it from my phone. Bad choice, since the app I deleted was my default keyboard. Now I have no keyboard, and I can't access the "Current keyboard" tab under Language & Input. How do i get my keyboard back?

# Answer
> 1 votes
You should sideload one from your PC and install it via adb or a file browser. You can download the Google Keyboard from here for example, and should then copy it onto your device to somewhere accessible with a file browser. You may need to enable Unknown Sources on your device before browsing to the `.apk` and installing it.

If you don't have a working file browser you will need to install the SDK Tools and enable USB Debugging on your device (first enable Developer Options by tapping the build number under **Settings → About** seven times). Then from a shell/command prompt on your device you can run:

```
adb install path/to/downloadedkeyboard.apk

```

# Answer
> 0 votes
You can install the Google keyboard from Google Play. If the Google keyboard is already installed but broken for some reason, you can try Google Japanese Input. It comes with an English keyboard.

---
Tags: applications, keyboard
---


# Question
Title: Android tablet presentations: networking and equipment?
To start, a bit about myself. I follow instructions really well, but I'm otherwise clueless on the how or why that things work when it comes to electronics. I've built PC's several times from parts, but only because I did what I was told, and everything worked out each time.

What I want to be able to do: I want to be able to hand out two 10" Android tablets to my clients when I meet them at their homes to do real estate listing presentations. I want both of those tablets to mirror a device that I hold, running a powerpoint presentation, so that as I move the presentation on and am talking, it will likewise shift on their screen (it can't be automated, because I get sidetracked by a lot of questions). Essentially, I want them to be able to hold and look at my presentation, while being able to look up at me while I'm talking them through it.

Limitations:

1) I don't want to use the internet to accomplish this, as it wouldn't be professional for me to request to use their wifi, and some people don't have wifi.

2) I would also prefer not to use a mobile hotspot requiring a data plan if possible (though I'd consider it if there were no alternative).

3) I would really like to mirror on two devices from one, so that I can hand out more than one tablet to owners. Again, if this isn't possible, one would do.

So is this possible? Would this be something I could do with bluetooth, or perhaps a wireless router used to connect the devices offline? I honestly have no idea, nor if I'm even on the right track.

Thanks in advance for your help.

# Answer
> 0 votes
There are many possibilities for making this happen using different apps/services. But...kindly note: Playing a same ppt from single source on all three devices (one yours, and two for your clients) doesn't seems to be possible until they are connected to the same WiFi router (may be a offline router) but to be able to share screens using some screen-cast app or remotely controlling their presentations using team viewer sought of apps, the basic necessity is, that they all must be on same subnet.

let me know if i can help you further in accomplishing your this task..

Hope that answer your query as of now..

---

Well dude, this part has nothing to do with your question asked above, Its just a little piece of advice from my side.

Instead of taking pain of carrying three 10" devices and those too wont be collectively able to cater the need of more then 2-5 of your clients, i would suggest you to carry this device. As this definitely seems to be more useful for the kind of solution you are looking for. :)

---
Tags: tablet
---


# Question
Title: How to enable Google Play on the Gionee M3S Android phone?
I recently purchased a Gionee M3S Android phone. It came with Google play on the home screen, but when clicked, that just pops up a white box briefly. How do I enable Google play on this phone?

# Answer
> 1 votes
Here's what I had to do to get it working (after several failed attempts):

1. On the M3s, I searched for "google play services apk mirror", and went to this URL: http://www.apkmirror.com/apk/google-inc/google-play-services/
2. Selected the most recent version (in my case 8.7.03)
3. Chose the 8.7.03 (2645110-246) (arm64+arm / Android 5.0+ / 320dpi) version. The important thing here is the -246 at the end, which targets the M3s hardware.
4. Downloaded and installed the APK. Allowed untrusted app to run.
5. Followed application prompts to setup the app, then ran Google Play.

Now Google Play works and can download apps, etc.

---
Tags: google-play-store, google-play-services
---


# Question
Title: odin twrp install hangs galaxy s7 edge G935
I have a new Verizon S7 Edge. I want to flash twrp using odin.

I am using

* Windows 10
* Odin 3.10.1
* twrp-3.0.0-1-hero2lte.tar.md5

My phone settings are:

* USB debugging on
* OEM Unlock on
* Android 6.0.1
* Build number APB1
* Phone model SM-G935V

When I run odin it hangs when flashing the image. Here is the output:

```
<OSM> Enter CS for MD5..
<OSM> Check MD5.. Do not unplug the cable..
<OSM> Please wait..
<OSM> twrp-3.0.0-1-hero2lte.tar.md5 is valid.
<OSM> Checking MD5 finished Sucessfully..
<OSM> Leave CS..
<ID:0/003> Added!!
<ID:0/003> Odin v.3 engine (ID:3)..
<ID:0/003> File analysis..
<ID:0/003> SetupConnection..
<ID:0/003> Initialzation..
<ID:0/003> Get PIT for mapping..
<ID:0/003> Firmware update start..
<ID:0/003> SingleDownload.
<ID:0/003> recovery.img
<ID:0/003> NAND Write Start!!

```

After waiting for a few minutes I unplug the phone and odin dutifully complete with these three lines:

```
<ID:0/003> Complete(Write) operation failed.
<OSM> All threads completed. (succeed 0 / failed 1)
<ID:0/003> Removed!!

```

As far as I can tell, all of the other threads about this type of problem are not specific to my model phone.

In the past, I have used odin to flash twrp onto various phones including a Samsung Note 4 with no problems.

What am I missing?

# Answer
> 1 votes
It's because your s7 edge from Verizon has locked bootloader and you cannot flash a customer recovery via Odin due to twrp not being an official samsung signed tar or md5 file and your phone rejects it.. also because your not rooted either and may never be unfortunately.. I'm in the same boat and recommend disabling verizon ota updates with package disabler pro apk to stay on the build apb1 to heighten your chances of possibly getting rooted because security patches are added to every update..

---
Tags: samsung, twrp, odin, samsung-galaxy-s-7-edge
---


title: Android App initial release date

text:
# Question
Title: Android App initial release date
When you are viewing an app in Google Play store, it displays the following : Updated, Size, Installs, Current Version, Requires Android, and Rating.

I am trying to do some research and figure out the initial release / publish dates of different apps. Is there a way to get this information from Google Play, or perhaps a website with this information?

# Answer
Check in www.appbrain.com for Android apps. It shows all possible information about app. Moreover, it shows release dates with respective released version numbers and number of downloads.
> 10 votes

# Answer
May be not NO!

But if you need to get this information, you need to check the comments section if there are less comments, you can analyze that the least commented DATE (or approximately) will be the initial launch date of that app.(Assuming that every developer starts giving ratings and reviews as soon as app launches to boost Downloads.)

OR

if you have access to developer console, You can check there under "current installs" section, the starting point's date on the Graph will be the Launch date of a particular App.

Also, in developer Console -\> under your application -\> Select Statistics -\> then in the Box after "STATISTICS" heading Select "TOTAL USERS" option and then to the far right in the same line, with the option "SHOW", Select "ALL". Now in the below graph, you will be showing some pin points dropped, which indicates your respective published versions of the application/game in google play. If you hover at the first pin point on the far left of the graph, it will show "JANUARY 1: Published version 1".

Here obviously Jan 1st will be the date at which your application has come LIVE on Google play.

Respectively, you can get all the successive dates of your app updates.
> 3 votes

# Answer
You could try typing the details of the app on the search box and include the details of the previous version or release and see what Google play brings as results. I believe its possible because some people still use old phones and if they access the Google play store using their phone then Google shows the options for that OS whether its new or old.

Take for example you need to find the later version of UC browser, click on the search box and type versions of UCbrowser or be specific;UCbrowser Cloud version for Java8.5.0.185...it all depends with the application. some you will get the later versions but for others i doubt.
> 0 votes

---
Tags: applications, google-play-store
---


title: WhatsApp end-to-end encryption

text:
# Question
Title: WhatsApp end-to-end encryption
Earlier this week, I saw below message on WhatsApp

<sub> (Click for larger Variant) </sub>

What does this means to the User?

> *With end-to-end encryption, messages are scrambled as they leave the sender's device and can only be decrypted by the recipient's device. It renders messages unreadable if they are intercepted, for example by criminals.*

**My question is**: Does this end-to-end encryption applies to individual chat and to group chat between **Android-only** devices or it also works on other platforms, Since WhatsApp is available on iOS, Windows Mobile also.

# Answer
It appears to be between all platforms, as its written here:

https://whispersystems.org/blog/whatsapp-complete/

"Over the past year, we've been progressively rolling out Signal Protocol support for all WhatsApp communication across all WhatsApp clients. This includes chats, group chats, attachments, voice notes, and voice calls across Android, iPhone, Windows Phone, Nokia S40, Nokia S60, Blackberry, and BB10."
> 1 votes

# Answer
Whatsapp End-to-End encryption includes chats, group chats, attachments, voice notes, and voice calls across Android, iPhone, Windows Phone, Nokia S40, Nokia S60, Blackberry, and BB10.

The idea of End-to-End encryption is to make a communication more private (like Face-to-Face Conversation) that is when you send a message, the only person who can read it is the person or group chat that you send that message to. None can see that message which includes cybercriminals and hackers. Because the End-to-End Encryption means the content of communications are not stored in plaintext on WhatsApp’s servers. Nor is the company able to decrypt users’ messages to access them since it does not hold the encryption keys. So WhatsApp will be unable to be compelled to hand over messaging data — even if served with a warrant by authorities demanding access.

This is applicable to the Users running the most recent versions of WhatsApp on any platform now get full end to end encryption for every message they send and every WhatsApp call they make when communicating with each other.
> 1 votes

---
Tags: whatsapp-messenger, encryption
---


# Question
Title: How to check where an app is sending data over internet on Android?
How to check where an app is sending data and making requests over the internet on Android?

Is this possible with ADB or something else?

I want to monitor an app for data it is sending over the internet.

# Answer
You can use tPacketCapture to route your traffic through a local VPN.

The app will then write a log which you can open with WireShark on your desktop and analyze data flow.

It won't allow you to see which app sent which packet, but this is as good as it gets without root. Although there is a Pro version available which allows you to filter out applications.
> 0 votes

# Answer
No-Root firewall does the same. The advantage is that it is all displayed in a GUI-interface. To function, it creates a VPN(disadvantage of this is that you can't use your own VPN at the same time of course). Then it lists the apps that want's to access a certain IP address over a certain port, and you can decide if you want to allow or disallow in the ip or range over WIFI or mobile.

This works great for dedicated apps, but for some system apps this is tricky, because they are displayed bundeld. Also there are requests for certain IP address of '...cloudfront..' servers. These servers are hosting servers that change continously and you will never know who is behind it and what data is send to it.

And example of a bundled app from android that I have is: "*Android System, Atci\_service, com.mediatek, com.mediatek.batterywarning, com.mediatek.voiceextension, Common Data Service, FloatWindow, FotaProvider, Fused Location, Input Devices, Key Chain, MiraVision, MMITest, Mobile anti-theft, MTK Thermal Manager, Permission Control, Phone, Schedule power on & off, Settings Storage, Setting, SmartcardService, UpgradeSys, Voice Unlock*"
> 1 votes

---
Tags: adb
---


# Question
Title: Belkin mobile wireless keyboard F5L175 set to wrong language on galaxy tab e, how to fix
After pairing my galaxy tab e to Belkin mobile wireless keyboard, everything worked fine. The second time I connected a screen came up asking me to set language. Apparently I picked incorrect English US option because it now types some letters different than keyboard. How can this be fixed? Can't find any reference to a setting anywhere on tablet. Thanks

# Answer
Here’s how to set things right. First, turn on bluetooth on your device & connect to the external keyboard. On android device, you need to go into the Settings menu, then find the ‘Language & input’ option. (On recent versions of Android, you should see a ‘Select keyboard layout’ option in your notifications, which will take you to the same place.)

From here, find your Bluetooth keyboard listed under ‘Physical keyboard’ and press on its name. A menu will appear that lets you choose a keyboard language. If you don’t see the correct option, choose ‘Set up keyboard language’. Then, find your desired language (e.g. English – US android) and tick the box. Now your Bluetooth keyboard should be set to its desired language. Thanks to the guys at MobileFun.uk
> 0 votes

---
Tags: samsung-galaxy-tab, external-keyboard
---


# Question
Title: Is "Inbox" the old stock email application?
I am setting up a new Nexus 5X with Marshmallow. There does not appear to be a default mail application as in prior versions; instead there is just the GMail application. Is the Inbox by Google application what was formerly the stock mail application called "Email"?

# Answer
No. Inbox is a very different application that was opened to the public in early 2015. It's primarily designed around the idea that your inbox is like a to-do list of sorts. The project's website explains this in more detail.

The "Android" email application is no longer developed by Google in any meaningful capacity, aside from ensuring that new platform releases do not break the build (and some translation updates, which are mostly automated). The Exchange and IMAP/POP features were instead rolled into Gmail, which is now considered the "stock" email application on any Google device.
> 3 votes

# Answer
> Is the Inbox by Google application what was formerly the stock mail application called "Email"?

No, it is not.

As said already in earlier Answer, the support for Stock Email app is no more. I recently bought **Moto G3** and it came pre-installed with Gmail **with no other Email app**.

Inbox is developed by Gmail team. Hence, all your messages from Gmail are with Inbox, along with the reliability and spam protection of Gmail.

But there are few **advantages** of Inbox over Gmail App.

* **Creating a new labels**: If you want to create new labels using Gmail app, it is not supported, Yet in Android. However, you can create new label using Inbox app.
* **Inserting Images inline**: Attaching inline images is not supported by Gmail, but you can attach images inline in the Inbox by Gmail app for Android.

But on **flip** side, Inbox does not support App widgets like Gmail app do.
> 1 votes

---
Tags: applications, stock-email-app, 6.0-marshmallow
---


# Question
Title: Why can't my phone find pictures or music files suddenly?
I have a Samsung Galaxy Ace with its official CyanogenMod nightly build. And suddenly, it doesn't "see" my pictures, videos or music files. They don't show:

1. while selecting a notification/ring tone & default music player,
2. while viewing pictures in QuickPic or the default gallery, and
3. on Go Launcher Ex's videos and music finder feature.

However, ES File Explorer, the default File Manager, and PowerAmp clearly show the said types of files. I've done a NANDROID backup, wiped the partitions then restored the backup, still no go.

# Answer
> 6 votes
Ah, cripes. I don't know what on Earth put this `.nomedia` file on the root of my SD card. Problem fixed.

# Answer
> 2 votes
This issue has been driving me insane. It's happened previously on Samsung Galaxy S4 and again on my S6 edge.

**Issue: Images missing from Gallery app or Music missing from music player app.**

Having tried everything from using ES explorer to move files to wiping the cache partition, there's a simple **solution**:

> > Plug your device into a PC. Identify the folders that are not showing (i.e., DCIM and Music). RENAME these to something else (such as "DCIM2" and "Music2"). The files will reappear.

I then renamed the folders back to "DCIM" and "Music". It took 48 hours of online searches, learning about the 'emulated' folder etc - but this was the simple solution. I guess it reindexes the folders and makes them be found again by the appropriate apps.

Hope this helps.

**David**

---
Tags: cyanogenmod, music, images, files
---


title: How to make Bluetooth tethering work?

text:
# Question
Title: How to make Bluetooth tethering work?
I have a Samsung Galaxy S4 (Lollipop) and a Visual Elite Prestige 10Q tablet (Kit-Kat rooted with KingRoot), and I'd like to be able to use Bluetooth tethering to let the tablet share the phone's data connection. Wifi tethering works fine, but it creates a heavy draw on the phone's battery to run both the cellular and wifi radio systems; as I understand it, Bluetooth uses much less battery than wifi (less power required to transmit, hence the shorter range).

Unfortunately, even though I went through the process in this answer the tablet was unable to see the internet connection via the phone. The two devices are paired, and I've used the phone's Bluetooth for months to play music in my car. How can I trouble shoot this and get the connection working?

# Answer
> 0 votes
As noted, the other question linked in the question above is very similar, but for older versions of Android. I did finally manage to connect my phone and tablet after finding android weasel's answer to this question. Apparently, the prompts and status messages are poorly designed, but once I understood what I was supposed to see, I got the connection working. Now, I can tether my tablet to my phone in under a minute, and use the larger screen and keyboard online anywhere I have cell service.

# Answer
> -1 votes
As you mentioned you want to share Internet from Mobile to your tablet using your phone's Bluetooth tethering.

**So first lets understand a little bit about Bluetooth services**: A device which need to access internet via Bluetooth from other device should have **Bluetooth PAN** Service (BT Personal Area Networking) installed/enabled. While the device offering the internet should have the **Bluetooth DUN** Service (BT Dial-up-networking Service) installed/enabled.

**How Connection is established:** Device with (with BT PAN) establish a wireless dialup connection by dialing a certain code (#99 for GSM devices & #777 for CDMA devices) required to make use of the modem of the internet providing device (equipped with BT DUN). If all goes well connection is established.

**Your Case**: Since most of the mobile phones and tablets are only equipped with BT-DUN Service and not with BT-PAN Service.. Your tablet is not able to establish the internet connection using your phone's mobile data service. But they can however do other BT exchanges using BT FTP (file Transfer) BT Audio (for headphone/voice) etc.

Since most of the PC's and Laptop does have this BT PAN service enabled, they are able to use the BT tethering from devices offering it.

**Solution for You:** The most hassle free and easiest solution for you is to use Mobile Phone's WiFi Hotspot for sharing internet to your tablet. this should work well, provided u arent using a illegally unlocked phone (as hotspot functionality gets disabled in some unlock cases like this)

Hope that answer your query. If you still require any help feel free to let us know, we are always here to help :)

---
Tags: 4.4-kitkat, 5.0-lollipop, bluetooth-tethering
---


# Question
Title: How does boot animation affect booting time. And how can I decrease the booting time?
What if I load a lite boot animation in my device.
Does is decrease the booting time?

And how to decrease booting time as well as improve my phone's features.

device: Samsung Galaxy y duos GT-s6102
OS: custom ROM XDV3 by XDA Developers

# Answer
> 2 votes
BootAnimation doesn't affect boot time. It's just a series of pictures shown in sequence to you, while your phone is ready to give you the GUI.

There is no one certain recipe to make your phone boot twice as fast. Check this and this for possible solutions, to make your phone boot up faster

---
Tags: boot-animation, samsung-galaxy-y-duos
---


# Question
Title: Why 'am start PACKAGE' cannot launch some apps and shows an error?
I keep having an error trying to start some apps using *am start* command. It works for many, but for some apps I get the same error mentioned below:

```
#adb shell am start com.amazon.venezia
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] pkg=com.amazon.venezia }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.amazon.venezia }

#adb shell am start com.whatsapp
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] pkg=com.whatsapp }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.whatsapp }

```

# Answer
> 1 votes
use this:

```
adb shell am start -n com.whatsapp/.HomeActivity

```

---
Tags: system-error, command-line
---


# Question
Title: What are the implications of an old Android version?
There have been various bugs and security flaws found in different versions of Android. Many have been pached in newer versions, but the non-updated devices remain bugged/vulnerable.

My questions are:

1. Are all Androids with the same version bugged/vulnerable in the same way, e.g., does a Samsung running 4.0 have the same problems as a Sony running 4.0 or as a Nexus device running 4.0?
2. Is there an overview somewhere what bugs (and especially which security flaws) are there in which versions? Many devices sold today do not run the newest Android; can I tell before buying which bugs/security problems I might encounter? (I am not interested in missing features introduced by newer versions)

Just to make it clear: bugs that can be solved by updating some apps are not relevant. (They are relevant if the update solving the issue would require a newer Android version).

# Answer
> 1 votes
This question cannot be answered in general. Android is open source and therefore can be modified by the mentioned enterprises. These enterprises will be based on the same "stock | untouched" Android with many of the same bugs and "vulnerabilities".

But:

1. Nearly all enterprises are modifying Android (interface, core) to match their wishes (e.g. Samsung TouchWiz, Sony XperiaUI, etc.). They are changing they way the software works, causing or eliminating bugs and security problems. So it's possible that some problems are fixed/caused by enterprises themselves. Therefore it's not likely for them to have exactly the same problems.
2. There is no official list of security flaws available. But there is an official bugtracker: http://code.google.com/p/android/issues/list

---
Tags: security, android-versions
---


title: hostapd not working from adb shell

text:
# Question
Title: hostapd not working from adb shell
I have a LG G3 running 5.1.1 and I can successfully enable Portable Wi-Fi hotspot through the Settings menu. I can see my portable Wi-Fi SSID on another Android device when enabled through the Settings menu.

Additionally, I can confirm that hostapd is running with an auto-generated config file.

```
root@d851:/ # ps | grep hostapd
wifi      6841  302   10892  1280  c026dd60 b6ed98b4 S /system/bin/hostapd
root@d851:/ # cat /proc/6841/cmdline
/system/bin/hostapd -e /data/misc/wifi/entropy.bin /data/misc/wifi/hostapd.conf

```

My problem arises when I attempt to run hostapd manually through adb shell using the exact same arguments as hostapd spawned through the Settings menu. I am disabling Wi-Fi manually through the settings menu and issuing the following command. It appears that hostapd initializes successfully but the Wi-Fi SSID is never seen by other devices.

```
root@d851:/ # /system/bin/hostapd -ddd -e /data/misc/wifi/entropy.bin /data/misc/wifi/hostapd.conf

```

The following was captured from logcat when the above command was issued.

```
D/hostapd ( 7885): Add randomness: count=1 entropy=0
D/hostapd ( 7885): random pool - hexdump(len=128): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=8): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random pool - hexdump(len=128): [REMOVED]
D/hostapd ( 7885): random: Added entropy from /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/hostapd ( 7885): random: Trying to read entropy from /dev/random
D/hostapd ( 7885): Get randomness: len=20 entropy=1
D/hostapd ( 7885): random from os_get_random - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): mixed random - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
E/hostapd ( 7885): Configuration file: /data/misc/wifi/hostapd.conf
D/hostapd ( 7885): rfkill: initial event: idx=0 type=2 op=0 soft=1 hard=0
D/hostapd ( 7885): rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
D/hostapd ( 7885): rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
D/hostapd ( 7885): nl80211: Supported cipher 00-0f-ac:1
D/hostapd ( 7885): nl80211: Supported cipher 00-0f-ac:5
D/hostapd ( 7885): nl80211: Supported cipher 00-0f-ac:2
D/hostapd ( 7885): nl80211: Supported cipher 00-0f-ac:4
D/hostapd ( 7885): nl80211: Supported cipher 00-0f-ac:6
D/hostapd ( 7885): nl80211: Using driver-based off-channel TX
D/hostapd ( 7885): nl80211: TDLS supported
D/hostapd ( 7885): nl80211: Supported key managment offloads 0x0
D/hostapd ( 7885): nl80211: Supported key derivation offloads 0x0
D/hostapd ( 7885): nl80211: Use separate P2P group interface (driver advertised support)
D/hostapd ( 7885): nl80211: Enable multi-channel concurrent (driver advertised support)
D/hostapd ( 7885): nl80211: Disable use_monitor with device_ap_sme since no monitor mode support detected
D/hostapd ( 7885): nl80211: interface wlan0 in phy phy0
D/hostapd ( 7885): nl80211: Set mode ifindex 23 iftype 3 (AP)
D/hostapd ( 7885): nl80211: Setup AP(wlan0) - device_ap_sme=1 use_monitor=0
D/hostapd ( 7885): nl80211: Subscribe to mgmt frames with AP handle 0xb643e0a0 (device SME)
D/hostapd ( 7885): nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xb643e0a0 match=
D/hostapd ( 7885): nl80211: Enable Probe Request reporting nl_preq=0xb643e0d0
D/hostapd ( 7885): nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0xb643e0d0 match=
D/hostapd ( 7885): nl80211: Add own interface ifindex 23
D/hostapd ( 7885): nl80211: if_indices[16]: 23
D/hostapd ( 7885): Unknown/unsupported wowlan trigger 'any'
D/hostapd ( 7885): phy: phy0
D/hostapd ( 7885): BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
D/hostapd ( 7885): nl80211: Regulatory information - country=00
D/hostapd ( 7885): nl80211: 2402-2472 @ 40 MHz 20 mBm
D/hostapd ( 7885): nl80211: 2457-2482 @ 40 MHz 20 mBm (no IR)
D/hostapd ( 7885): nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
D/hostapd ( 7885): nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
D/hostapd ( 7885): nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
D/hostapd ( 7885): nl80211: 57240-63720 @ 2160 MHz 0 mBm
D/hostapd ( 7885): nl80211: Added 802.11b mode based on 802.11g information
D/hostapd ( 7885): Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=144 freq=5720 MHz max_tx_power=0 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
D/hostapd ( 7885): Completing interface initialization
D/hostapd ( 7885): Mode: IEEE 802.11g  Channel: 6  Frequency: 2437 MHz
D/hostapd ( 7885): DFS 0 channels required radar detection
D/hostapd ( 7885): nl80211: Set freq 2437 (ht_enabled=1, vht_enabled=0, bandwidth=20 MHz, cf1=2437 MHz, cf2=0 MHz)
D/hostapd ( 7885): RATE[0] rate=10 flags=0x1
D/hostapd ( 7885): RATE[1] rate=20 flags=0x1
D/hostapd ( 7885): RATE[2] rate=55 flags=0x1
D/hostapd ( 7885): RATE[3] rate=110 flags=0x1
D/hostapd ( 7885): RATE[4] rate=60 flags=0x0
D/hostapd ( 7885): RATE[5] rate=90 flags=0x0
D/hostapd ( 7885): RATE[6] rate=120 flags=0x0
D/hostapd ( 7885): RATE[7] rate=180 flags=0x0
D/hostapd ( 7885): RATE[8] rate=240 flags=0x0
D/hostapd ( 7885): RATE[9] rate=360 flags=0x0
D/hostapd ( 7885): RATE[10] rate=480 flags=0x0
D/hostapd ( 7885): RATE[11] rate=540 flags=0x0
D/hostapd ( 7885): hostapd_setup_bss(hapd=0xb6456600 (wlan0), first=1)
D/hostapd ( 7885): wlan0: Flushing old station entries
D/hostapd ( 7885): nl80211: flush -> DEL_STATION wlan0 (all)
D/hostapd ( 7885): wlan0: Deauthenticate all stations
D/hostapd ( 7885): nl80211: sta_remove -> DEL_STATION wlan0 ff:ff:ff:ff:ff:ff --> 0 (Success)
D/hostapd ( 7885): wpa_driver_nl80211_set_key: ifindex=23 (wlan0) alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
D/hostapd ( 7885): wpa_driver_nl80211_set_key: ifindex=23 (wlan0) alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
D/hostapd ( 7885): wpa_driver_nl80211_set_key: ifindex=23 (wlan0) alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
D/hostapd ( 7885): wpa_driver_nl80211_set_key: ifindex=23 (wlan0) alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
E/hostapd ( 7885): Using interface wlan0 with hwaddr 00:90:4c:c5:12:38 and ssid "Redskins"
D/hostapd ( 7885): wpa_driver_set_ap_wps_p2p_ie: Entry
D/hostapd ( 7885): random: Got 20/20 bytes from /dev/random
D/hostapd ( 7885): Get randomness: len=20 entropy=0
D/hostapd ( 7885): random from os_get_random - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): mixed random - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/hostapd ( 7885): Get randomness: len=32 entropy=0
D/hostapd ( 7885): random from os_get_random - hexdump(len=32): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): mixed random - hexdump(len=32): [REMOVED]
D/hostapd ( 7885): GMK - hexdump(len=32): [REMOVED]
D/hostapd ( 7885): Get randomness: len=32 entropy=0
D/hostapd ( 7885): random from os_get_random - hexdump(len=32): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): mixed random - hexdump(len=32): [REMOVED]
D/hostapd ( 7885): Key Counter - hexdump(len=32): [REMOVED]
D/hostapd ( 7885): WPA: Delay group state machine start until Beacon frames have been configured
D/hostapd ( 7885): nl80211: Set beacon (beacon_set=0)
D/hostapd ( 7885): nl80211: Beacon head - hexdump(len=59): 80 00 00 00 ff ff ff ff ff ff 00 90 4c c5 12 38 00 90 4c c5 12 38 00 00 00 00 00 00 00 00 00 00 ...
D/hostapd ( 7885): nl80211: Beacon tail - hexdump(len=109): 2a 01 04 32 04 30 48 60 6c 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 2d ...
D/hostapd ( 7885): nl80211: ifindex=23
D/hostapd ( 7885): nl80211: beacon_int=100
D/hostapd ( 7885): nl80211: dtim_period=2
D/hostapd ( 7885): nl80211: ssid - hexdump(len=8): 52 65 64 73 6b 69 6e 73
D/hostapd ( 7885): nl80211: hidden SSID not in use
D/hostapd ( 7885): nl80211: privacy=1
D/hostapd ( 7885): nl80211: auth_algs=0x3
D/hostapd ( 7885): nl80211: wpa_version=0x2
D/hostapd ( 7885): nl80211: key_mgmt_suites=0x2
D/hostapd ( 7885): nl80211: pairwise_ciphers=0x18
D/hostapd ( 7885): nl80211: group_cipher=0x10
D/hostapd ( 7885): WPA: Start group state machine to set initial keys
D/hostapd ( 7885): WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
D/hostapd ( 7885): Get randomness: len=16 entropy=0
D/hostapd ( 7885): random from os_get_random - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): random_mix_pool - hexdump(len=20): [REMOVED]
D/hostapd ( 7885): random from internal pool - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): mixed random - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): GTK - hexdump(len=16): [REMOVED]
D/hostapd ( 7885): WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
D/hostapd ( 7885): wpa_driver_nl80211_set_key: ifindex=23 (wlan0) alg=3 addr=0xb6f9988a key_idx=1 set_tx=1 seq_len=0 key_len=16
D/hostapd ( 7885): nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
D/hostapd ( 7885):    broadcast key
D/hostapd ( 7885): nl80211: Set wlan0 operstate 0->1 (UP)
D/hostapd ( 7885): netlink: Operstate: ifindex=23 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
D/hostapd ( 7885): Failed to set TX queue parameters for queue 0.
D/hostapd ( 7885): Failed to set TX queue parameters for queue 1.
D/hostapd ( 7885): Failed to set TX queue parameters for queue 2.
D/hostapd ( 7885): Failed to set TX queue parameters for queue 3.
I/hostapd ( 7885): wlan0: interface state UNINITIALIZED->ENABLED
I/hostapd ( 7885): wlan0: AP-ENABLED
D/hostapd ( 7885): wlan0: Setup of interface done.
D/hostapd ( 7885): ctrl_iface not configured!
D/hostapd ( 7885): RTM_NEWLINK: ifi_index=23 ifname=wlan0 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])

```

Why does running hostapd with the exact same config file through adb shell not create Wi-Fi network visible by other devices? SELinux is in permissive mode so I have ruled that out. What am I possibly missing? Is there some other piece of configuration that is necessary to actual enable the portable Wi-Fi hotspot from adb shell?

Any assistance is greatly appreciated.

# Answer
> 0 votes
There is actually another step before running the command line when executing the hostapd with conf file, which is to load the firmware. And this is exactly why there is this print:

D/hostapd ( 7885): ctrl\_iface not configured!

The loaded firmware will probe an interface in /data/misc/wifi/hostapd and this is the Unix domain socket for which the hostapd client can communicate with the kernel.

Add some debug prints in SoftAPController.cpp and you'll see the whole picture.

---
Tags: wi-fi, wifi-hotspot, 5.1-lollipop
---