# Question
Title: Can I use an external WIFI adapter with my Android Head unit
I purchased the Pumpkin 2 Din Universal Car Head Unit (see product image below) and I want to know if I can use an external long range WIFI adapter via one of the USB/3g ports on the back? The device runs Android 4.4 and has built-in support for 3G and WIFI already. Device specs say "Can't support portable hard drive" – but that doesn't necessarily mean no OTG support I guess.

# Answer
I can't seem to find a manual for the unit (the website doesn't properly link to the "Manual&Download" section from the header, and the "Support Center" link doesn't do anything at all), and since it doesn't mention anything about a WiFi antenna adapter, it's hard to say one way or another with any level of confidence.

That said, it may be possible. It seems to contradict itself in a couple of places referring to a "WiFi/3G/Mic Cable" before later calling it a "3G/USB Cable+Mic Cable". The "3G" actually requires an external modem to function, so I'm guessing it's just two USB ports. It will probably accept a USB WiFi device, but it's questionable if the OS will support the hardware. It does have a built-in WiFi modem, but I'm not aware of any USB antennae designed to connect to a separate device.

NOTE: IF YOU FOLLOW THE SUGGESTIONS BELOW, IT MAY A. VOID YOUR WARRANTY AND B. BRICK/RUIN YOUR DEVICE. PROCEED AT YOUR OWN RISK, I ACCEPT NO RESPONSIBILITY

If you were to open up the case, it may be possible to find a place to connect an antenna to that built-in adapter. If that's the case, you can probably get an extension cable that would let you then place a long-range antenna somewhere more appropriate. I know my Samsung Galaxy S4 has two little connectors for external antennas, but I don't think either is for WiFi.
> 1 votes

---
Tags: wi-fi, 4.4-kitkat
---


# Question
Title: Installing Ubuntu 14.04 on Sony XPERIA Model C5303
So, I read somewhere recently (I read it here) that you can install Linux (in my case, Ubuntu) onto an Android running phone by rooting the device and overriding the software. I'm going back and forth on whether this would be something I'd like to do, as I have a Sony XPERIA Model C5303 that is beginning to fade and will probably be replaced soon.

What I want to know before attempting this is two-fold:

1) Can I ever reinstall the phone software if I choose to do so?

2) Is there a way to avoid rooting the device and booting from an SD card? I have a 32gb micro-SD for my phone that should have no problem with it, but I can't imagine a way to select a different bootable volume without rooting.

Thanks for any help, and if anyone else has done this before, let me know how it went - I'm still debating whether or not to do it. Also, is it possible on my device?

# Answer
> 2 votes
You need to root it and to unlock bootloader to install any custom OS. You can omit the bootloader unlock part if you find OS which will support the locked one, but you will miss the potential custom kernel features, because it will need to use the stock one. To do the actual unlocking, refer to this guide by Sony: http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/. Beware, though, you'll probably cause bootloop when you unlock BL, so you'll need to flash ftf to boot into the device again (refer to 1)). Also, as far as I remember, you won't be able to download official software updates until you re-lock BL again.

Regarding Ubuntu, there doesn't seem to be an Ubuntu build available for Xperia SP, so you need to build it yourself. According to the Ubuntu site, that shouldn't be hard considering there is a working Cyanogenmod build, but it's not something I'd consider 'basic'. Because I think it falls out of scope for this community (correct me if I'm wrong), I won't go into details, but I'll leave this here if you'd like to know about the process: https://developer.ubuntu.com/en/start/ubuntu-for-devices/porting-new-device/. You can find many (if not all) needed sources by following links on XDA forums here. For example, CM12.1 sources (unofficial, could be slightly unstable) are here.

1) Yes, you can download flashtool and flash appropriate ftf file. This will erase all data on phone (SD card excluded) and leave you with factory version of OS with unlocked bootloader

2) Not as far as I know

P. S. Android is based on Linux, just like Ubuntu, it's just that factory versions have some limitations so regular users don't destroy their devices. If you'd just like to unlock 'full potential', you can grab a custom ROM from XDA and enable root. They usually have nice additions, including themes, tethering, terminal emulator and much more other customization options (depending on the selected ROM).

---
Tags: linux, hardware
---


# Question
Title: Android restarts when I press "Turn on USB storage" button
I have an ACME TB709-3G tablet with Android 4.2.2 installed on it. I was able to connect this tablet to my Ubuntu 14.04 TLS laptop before, but recently when I press the "Turn on USB storage" button, Android restarts.

What is the problem and how can I fix this issue?

# Answer
> 1 votes
# options for fixing USB not authorized

(On device)

1. Go to *settings/about device*, scroll to "**build**"

* Tap on build 7 times to enable *developer options*
    * Back out to main settings screen, goto developer options
    * Enable USB connection

---

or

---

(On device)

2. Using a file manager that has root access

* Remove "**adb\_key**"

`/data/misc/adb/adb_key`

* Reboot your phone and try connect again.
    * The confirmation message should popup after a short time.

---

or

---

(On PC)

3. Remove the "**RSA keys**" from *SDK settings*

`~/.android/adbkey`

* Start up ADB

`$ adb kill-server`

`$ adb start-server`

* Plug device back into **USB port** (*not hub*) and wait.
    * Confirmation notice will popup after a short time period.

---

or

---

4. You can try this. The steps are more involved, requires *device and vendor IDs*

* this has been included because it is helpful and a reference
    * steps haven't been included in the answer because it is off topic

---

* in step 3 (~) is the location of your SDK installation
* make sure you have the latest adb executable installed
* make sure you have the latest drivers for your device
* ***make a backup before performing any of the above steps***

---
Tags: usb-connection-mode, reboot, usb-mass-storage
---


# Question
Title: Tablet not connecting to any Wi-Fi at home but other devices does
My tablet isn't connecting to either of the Wi-Fi at home. The password is correct, and is working for other devices. I have the router of Belkin, and ZyXEL. Hopefully, this was helpful information

For both Wi-Fi it says "scanning" and then "failed to obtain IP address".

How should I resolve the issue?

# Answer
> 2 votes
If you have an Static IP Address to connect a router, then you'll have to long press your wifi name and then advanced options then enter a IP Address manually.

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


# Question
Title: "insufficient storage" though nothing is installed
I can't download any apps onto my android tablet. I have put it back to factory settings and it has nothing saved on it at all and is still telling me I have insufficient storage. I can't even install the cache cleaner.

# Answer
> 0 votes
This a common problem faced by rooted phone users. If you have any app that links your files to Sd like link2sd, luckypatcher... and your phone doesn't support it. You'll have to revert all this apps setting to get the memory back. The actual problem is that you are linking to a directory which doesn't actually exist.

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


# Question
Title: How to see if Knox is tripped on Samsung S6 Edge?
I would like to check whether the Knox counter is now 0x1 on my phone. I booted into download mode, but I see nothing there to tell me.

How can you check the state of your Knox counter on a Samsung Galaxy S6 edge for Verizon?

# Answer
> 5 votes
Turn off the device. While device is off, Press the Power button, Volume Down, and Home buttons and hold until you see a Warning screen, press Volume Up (continue). At the top left of the screen you'll see "Knox Warranty Void: X (0x000X)" where X is the number of times Knox has been tripped. Your screen will say Do Not Turn Off Target, to reboot your phone safely at this point, hold the Power and Volume Down keys until your phone screen goes black and starts to reboot.

---
Tags: root-access, verizon, samsung-knox, samsung-galaxy-s-6
---


title: NFC task for BOTH tag entry and exit

text:
# Question
Title: NFC task for BOTH tag entry and exit
Since picking up a few NFC tags I've been experimenting with automation apps to run tasks for certain contexts (e.g. Car dock).

The apps I've tried (e.g. Trigger) are great at running tasks when the tag appears but I've yet to find one to trigger events when the tag is removed.

The car dock scenario would involve:

* Tag entry
    + Wifi off
    + Brightness auto
    + Lock screen off
* Tag exit
    + Reverse above changes

Setting the phone up for the drive is great but very annoying that I can't jump out my car and chuck my phone in a pocket without toggling settings off.

I'm aware that some of the apps have a 'toggle' mode where tapping the same tag twice can run another set of tasks. This is not ideal.

# Answer
My understanding (I was interested in the same sort of thing) is that there is no event fired when an NFC tag is removed. So the only way to do this would be a check at regular intervals to see if the NFC tag is still connected, and I'm not sure that even that is possible.
> 1 votes

---
Tags: nfc, car-dock
---


# Question
Title: Google Play Music songs don't show up -- but only on one of the devices I own
I got a few albums uploaded, all the songs (the full albums ) show up in my tablet ( Samsung S ), also they show up in the web player and in my old Samsung S3. But my S4 with lollipop just shows two or three songs of each album.

I already tried refresh, also I changed the storage, I cleared the data, and the cache. But everytime I log and browse the albums just two or three songs shows up.

Edit. Also I wiped out the whole system and even the dalvik cache.

# Answer
> 2 votes
Well finally it seems to be a problem with Google services and not my phone or devices. I took a more drastic approach and removed all my music from the cloud and uploaded again, all sixty gigabytes of music, but everything is great now.

Someone could try also @Mark Schwartz approach, but that didn't seem to fully solve the problem for me. It improved the amount of songs that appeared on the phone , but still not all of them.

# Answer
> 4 votes
I was having the same problem and have a case open with Google on this issue. While I have not heard back from them yet, I continued to investigate this issue myself and may have found a solution. What I did was open Goolgle Play music from my browser on my laptop. In settings, under my devices I deactivated my Android phone (Galaxy S5). On my phone I did a Force stop of the application and cleared any data. Then I restarted the app and did a refresh just to force it.

Before I did this, several artists were missing and many songs as well. for example my phone only showed 8 Beatles songs. Now I am showing 256. On my laptop, I still show more songs 269, but it a heck of a lot better. Other artists I checked show up as well.

I believe this all started after I did a full wipe of my phone due to battery issues with the lollipop upgrade. Hopefully this helps.

MS

---
Tags: google-play-music
---


# Question
Title: Long term effects of charging Nexus 5 with an other device's charger (fast charging)
A roommate has bought a OnePlus One (OPO) phone. When I tried charging my Nexus 5 with the charger of OPO I found that it charged my Nexus device amazingly fast. I'm talking 3-4 times faster charging than the normal charger does (and about 20-30 minutes to charge completely).

I was told this fast charger could result in negative long term effects on the battery. Is there any truth to it? And why would it happen?

# Answer
Your phone isn't capable of charging any faster than it's built to charge. The Nexus 5 had very limited support for Quick Charge 1.0 due to its processor, although my understanding is that this functionality wasn't enabled for the 5. But the phones are designed to pull only as much power as they can safely pull. If it can't take it, it'll negotiate a lower rate with the charger.

That said... 20-30 minutes to charge completely doesn't sound possible. I'm not aware of a single phone that can do that. So something's a little bit odd there...

EDIT: Did some research and confirmed that this charge speed simply isn't possible. A few points:

1. The most current I've ever seen a Nexus 5 pull from any charger (and I've tried a very wide range) was 1.2A. And boy was that fleeting. At that rate, it would charge fully in 2.3 hours, according to this battery charge time calculator. That's actually a little less than Anandtech found in their comparison chart found in the OnePlus One review, listing its charge time at 2.54 hours. That's more realistic, because as I said, getting a full 1.2A for more than a moment or two was quite rare, and phones draw less current the closer they are to full.
2. According to that same review, the Nexus 6 is the second-fastest charging phone on the market (or was at that time), charging from 0% to 100% in 1.89 hours. Faster than the Nexus 5, but still a quarter of the speed you're saying you're getting on the Nexus 5. I just plugged my Nexus 6 into a QC2.0 charger, which I believe is still considered the fastest phone charging tech anyone's using, and right now it's pulling about 1.75A, which would be about 2.25 hours to fully charge. That said, it's nearly full, so that's when it slows down, which likely accounts for the difference between my figure and Anandtech's.
3. Using that same battery charge calculator, to fully charge the Nexus 5 at your WORST-case scenario of a full 30 minutes, would require 5.52A of power. 8.29A for 20 minutes. Even the iPad, which has a massively larger battery and needs much more power to charge at a reasonable rate, uses only a 2.1A.
4. The OnePlus One charger outputs only a maximum of 2A according to its own label. The best that charger could possibly do in an ideal world where it somehow can charge the Nexus 5 at full speed the ENTIRE time, is 1.38 hours.

Any way you slice it, it's not possible for a Nexus 5 to fully charge, with ANY charger, much less the OPO charger, in 20-30 minutes. If yours is informing you that it is, your Nexus 5 is faulty and displaying incorrect battery information. It's either displaying 100% when it's not full, or shutting itself off WAY before it's reached 0%. It's possible that this is an indication of the OPO charger somehow interacting badly with it, in which case I may rescind my initial advice that it can't hurt.
> 7 votes

---
Tags: nexus-5, charging
---


title: How do I migrate my home screen?

text:
# Question
Title: How do I migrate my home screen?
My old Moto G 1st generation fell and broke, and I've just bought a new Moto E (2nd generation). It looks like the Motorola Migration app copied all my data. Almost my apps are being reinstalled (I've tried to delete some unused ones before migrating, but are being installed anyway).

The only thing missing is my Home Screen, with my icons organization and widgets. Is there an easy way to do it? Or I must reorganize everything by hand?

# Answer
> 2 votes
Unfortunately no, there's no way to migrate this between devices unless you're using the Google Now Launcher on the old phone, and the new phone ships with it as its default. It's designed to migrate layout, but the stock launcher that Motorola uses doesn't have this functionality.

# Answer
> 1 votes
I don't know if there is an automated way.

So I take an screenshot of my old device and manually organize the new following pictures.

---
Tags: home-screen, device-migration
---


title: Android System Programming

text:
# Question
Title: Android System Programming
As android is based on a Linux core, is it possible to use POSIX System Programming tools, techniques and libraries to program and customize the environemnt like I would have done on my Ubuntu for example ?

# Answer
It appears that Android is "Mostly POSIX-compliant" and that it is available through the Android NDK. Which can be found here.

According to Wikipedia for what its worth. https://en.wikipedia.org/wiki/POSIX
> 0 votes

---
Tags: system
---


# Question
Title: Avoid Security for Outlook app in Android for lock screen
I had a concern recently regarding my lock screen privileges.

I recently installed Microsoft Outlook App for Android and with the installation they asked me to encrypt my phone with either pin, pattern or password which was compulsory and without that the outlook can not be started in the phone. After creating a pattern and logging in my credentials, I went to the lock screen menu from settings and what I find out is that I cannot go back to the normal "NONE" option for my screen lock facility.

I have a dead-end showing as:

> Disabled by Administrator, encryption policy, or credential storage.

I am really not a fan of cell phone security and am happy to keep it simple as it looks. Does anyone have a solution for this issue without uninstalling the application?

# Answer
> 1 votes
Depending on your device and version of android you are running. You can goto Settings \> Security \> Device Administrators. Then uncheck the box for Microsoft Outlook App. That should allow you to go back to "none" for unlocking. Not sure how it would affect the app.

---
Tags: security, outlook
---


# Question
Title: How to cancel sent invitation on LinkedIn via Android app?
Is it possible to cancel a sent invitation on LinkedIn via the Android app? It can be done through the website.

# Answer
To do so, consider the following steps:

> 1. Go to your LinkedIn Inbox and click “Sent” to see the invitations you have sent.
> 2. Find any invitation that has not yet been accepted and click on the subject line of the message.
> 3. Click “Withdraw”

Source
> 3 votes

---
Tags: applications
---


# Question
Title: Charge older Samsung phone (with Quick Charge 1.0 technology) at full rate
I own a Samsung Galaxy S Relay, which is an Android phone a few years old. It's sort of similar to the Samsung Galaxy S III, but it also includes a slide-out physical keyboard.

Like the Galaxy S III, it supports Qualcomm's Quick Charge 1.0 technology — a technology which Qualcomm admitted was "little-known". I owned the phone for a long time before discovering that it supports Quick Charge 1.0.

What type of charger do I need in order for the phone to charge as fast as possible? Do I need a charger with some special certification or features? Or, is there any other way I can charge the device as swiftly as possible?

# Answer
Qualcomm marketing manager PJ Jacobowitz writes:

> Quick Charge 1.0 makes all this is available to the user with existing USB charging accessories — no new cables and wall chargers to buy.

OK, so I don't need a charger with a special Quick Charge logo or anything. Good.

Still, surely an underpowered charger won't allow the phone to charge as quickly as possible. OK; what charger do I need?

Android Authority contributor Rob Triggs adds:

> Qualcomm’s Quick Charge 1.0 technology was designed to maximise charging efficiency for up to 10 watts of power, by allowing for a maximum current draw of 2 amps through a standard USB adapter and port voltage of 5 volts.

Though Android.SE user "TurboFool" warns:

> Nearly all chargers that advertise themselves as 2.1A are optimized for iProducts, which require a different grounding scheme in the charger to reach their full speed, and that same scheme limits Android devices to 500mA. So counter-productively you'll find that most 1A chargers will charge your Android device *faster* than 2.1A chargers. \[...\] The way around this is to buy a charger that's specifically designed to adapt to whatever device you're using.

Ah. So I'll need a charger which is able to provide 2 amperes even to my device. (Related question: "How can I tell how many milliamps my phone is drawing from the attached charger? Preferably without having to use a multimeter.")
> 0 votes

---
Tags: charging
---


# Question
Title: Micromax A110Q shows blank screen after waking up
I am using Micromax A110Q. It turns on perfectly and displays everything fine. But whenever I turn off the screen or it sleeps automatically, the next time I press the power button to do something screen doesn't display anything, although the button icons on the touch-pad lit up.The device was working fine before I made the following changes.

I rooted the device and installed CWM and uninstalled some of the default apps offered by Micromax. Then after installing a few things I made a backup using CWM and then again flashed my device with v2 of the stock ROM (I was learning the basics of flashing).

I then used CWM recovery to undo the changes i.e.I restored the backup which I made just before flashing. Now when my mobile boots it sometimes display:

> Unfortunately, com.google.process.gapps have stopped working

but the problem persists even when the error doesn't occur.

How should I resolve the issue? And let me know if you need other details.

# Answer
> 0 votes
I didn't understood the logic behind it but I followed the following steps out of instincts and now the cell phone is working fine.

> 1. Reflash the android with v2
> 2. Boot in recovery mode.
> 3. Go to recovery and backup
> 4. select advance restore from sd card
> 5. Select all images except boot
> 6. Start restore
> 7. After restoring reboot

The system works fine after this.

If anyone can explain the logic behind this kindly reply.

---
Tags: clockworkmod-recovery
---


# Question
Title: "Reject with message" disappeared from the incoming call screen on Samsung S2 Plus?
I have Android 4.2.2 running on Samsung S2 Plus. I suppose that an update modified the configuration and now, when the phone is ringing for an incoming call I don't see anymore the option "Reject call with message".

For example: see screenshot below, you would find the option "Reject call with message" option:

Screenshot - Incoming call (Click to enlarge image)

Any idea on how to restore it?

# Answer
The *"Reject call with message"* disappeared since I turned off the **"Messaging"** app (i.e., the standard SMS app) because I was using a different SMS app (Textra).

Re-enabling **"Messaging"** the *"Reject call with message"* is back.

Maybe this trick can be used if you want to disable the *"Reject call with message"* feature.
> 0 votes

---
Tags: samsung-galaxy-s-2, 4.2-jelly-bean, call-screening
---


# Question
Title: Samsung Galaxy Tab 4 not getting 5.0.2 update
I am working on provisioning several (3) Samsung Galaxy Tab 4's Model SM-T530, and one of them is not getting the latest system updates. It is stuck at Android 4.4.2, Kernel version 3.4.0-3235464. I have tried manually running the Update now, verified I am online, all that fun stuff.

This is the WiFi Only version, so it is not dependent on the carrier releasing the update, and the other two that were purchased from the same vendor at the same time, updated just like they were supposed to, and are now at 5.0.2.

What can i do to troubleshoot this issue? (Logs, check settings, etc)

# Answer
Update will took some time to become available in every country.

If you check on Sammobile, 5.0.2 was released today (2015-07-16), and it is for United Kingdom. There no version for other countries.

You can flash UK version via Odin, but better wait some days for it to get released for other countries. After that you should be able to update it via OTA, without risks of bricking, flashing...

---

As it is WiFi only version, your tab doesn't depends on Country Code and it can work with any, it is just recommended to have version that is at least near you (like not installing Korean version, if you're from USA/EU (because of language, stock apps, QoL changes, compatibilty problems, etc)).

**I just want to notice, as I already said this process is NOT recommended.**

This involves flashing new ROM using Odin. This process can be risky, it can cause soft (even hard) brick. You should still have warranty, because package is signed by Samsung and it does not trigger binary counter but you never know.

It is best to wait even 1-2 weeks so it gets deployed in every region, but I think it will available in some days so it is not worth trying it...

**Keep in mind if you want to continue, do backup! If something bad happens, you will have to do factory data reset, so you can be on safe side, if you need to format it**

---

Process of installing new ROM:

1. Download new ROM for your device variant from Sammobile.
2. When you download, you will ususally get ZIP, that contains one `.tar.md5` and one `.dll`. Ignore `.dll` and unpack only `.tar.md5`.
3. Download Samsung USB driver and install it.
4. Download Odin and unpack it.
5. Make sure you disable A/V before you start flashing, it can cause fail. Also you must kill all Samsung Kies processes before flashing or flash will fail.
6. Go to Settings -\> About Phone -\> Tap some times (as I recall it is 6-8 taps) on build number. It will enable developer options.
7. Go Back and find Developer options. Enable it if it isn't. Also you must enable USB debugging and authorize your PC (don't forget to remember choice!).
8. Reboot your device to Download mode (find on Google, how to do it for your tab), and plugin USB.
9. Open Odin. Now you will see some 'blue' colored box where it says COM something. It means that your device is connected.
10. **Be sure that you ONLY HAVE CHECKED F. Reset Time and Auto-Reboot! Repartition MUST STAY UNCHECKED !**
11. Click on PDA and select `.tar.md5`, you previously unpacked. Let it some time to check everything.
12. Start the process. **DO NOT UNPLUG USB OR IT WILL BRICK DEVICE.** If everything went well, your device will reboot into Android Lollipop 5.1 ready to use.

---

Also, Keep in mind - I or this site will not be held responsible if your device get brick after following this process. You should be on safe side but when you flashing and using Odin, you never know what can happen. In 99.9% of time it worked very well for me, but you never know. Good luck
> 2 votes

# Answer
Download the Samsung USB Drivers and install them on your PC.

With the drivers installed, you will be able to successfully connect your tablet to your PC. ODIN is the application that you will have to use in order to flash the updates files on your Galaxy Tab 4.

**Make sure that you don’t have any antivirus app running nor the Samsung KIES program. Enable USB Debugging from Developer Options menu.**

If you are installing the Android 5.0.2 XXU1BOD8 firmware over a custom ROM, then you should know that you will be forced to apply an extra ‘factory reset’ step.

For more details you can visit Samsung India site.
> 0 votes

---
Tags: updates, samsung, samsung-galaxy-tab-4
---


# Question
Title: How do I recover my WhatsApp messages when the phone is lost?
I lost my phone with some unopened important document in my WhatsApp account, and I can't get the same number because I'm currently out of the country where I can replace my line. So, how do I recover my messages in such case?

# Answer
> 1 votes
Unfortunately it's not possible without using same number because Whatsapp runs only on mobile.

Whatsapp doesn't have any email id or login functionality.

**Update : 8th Jan 2016.**

Now Whatsapp added backup functionality using Google Drive. So you can also take your chat backup if you lost your mobile.

Screenshot - Click to enlarge

---
Tags: whatsapp-messenger
---


# Question
Title: Screenshot saving issue on Moto G running Lollipop -- unable to clear the notification
My phone has been saving a screenshot for three days now. I can't clear the notification so I'm wondering what should I do? I'd like to keep it if I can for some reasons. If I can't keep it how do I clear the notification?

I'm tired of restarting my phone but that didn't do anything. And I'm using Moto G running Lollipop

# Answer
> 0 votes
To remove the notification, force stop the app. Long hold the notification, go to app info and choose force stop.

---
Tags: 5.0-lollipop, motorola-moto-g, screenshots
---


title: Root for Xperia Z3 D6616

text:
# Question
Title: Root for Xperia Z3 D6616
Does anyone know if there is a working root for the Sony Xperia Z3 D6616 (T-Mobile)? I just got upgraded to 5.0.2 but the battery life is awful now.

I know the biggest hurdle is that T-Mobile has locked the bootloader. I have tried giefroot, towelroot, and some other solution that involved sideloading the adb drivers but I can't seem to get anything to work. In addition, I would need to back up the DRM keys so I dont break any of the Sony apps I want to keep (camera apps).

Build No: 23.1.C.0.385

# Answer
kingroot 4.1

http://forum.xda-developers.com/android/apps-games/one-click-root-tool-android-2-x-5-0-t3107461

if you want to remove king user and replace it with super su

follow these steps

http://www.w0lfdroid.com/2015/05/How-to-Remove-Replace-KingUser-KingRoot-with-SuperSU.html

install dual recovery by nut's (twrp,cmw,philz) using windows pc/make sure you are up to date with the drivers for xperia z3
> -2 votes

---
Tags: 5.0-lollipop, root-access, sony-xperia-z3
---


# Question
Title: My Samsung Galaxy S III claims that a screenshot was "copied to clipboard". What?
I'm used to the Palm Treo 700p, running Palm OS. On Palm OS, the system clipboard can hold only text.

I now also own a Samsung Galaxy S Relay, running Android "Jelly Bean" 4.1.2. This is a phone rather similar to the Samsung Galaxy S III, but with a slide-out physical keyboard included.

I take screenshots in the usual way it's done on a Galaxy S Relay. I hold the Power + Home keys at the same time for a few seconds until I see a white border around the edge of the screen. (Not for too long. I don't want my phone to suddenly power off without saving anything to disk.)

Now:

* Like a Galaxy S III, my phone then saves a screenshot to a "Screenshots" photo album.
* Like a Galaxy S III, my phone shows a notification labeled "Screenshot captured". I can expand the notification using two fingers to see a preview of the top few centimeters of the screenshot, and then can tap "Delete" or "Share".
* And, like a Galaxy S III, my phone displays a pop-up "toast" message at the bottom of the screen which says `Copied to clipboard`.

Hold on. What? The screenshot was copied to the clipboard?

Can the clipboard, in any version of Android, hold images?

# Answer
> 3 votes
The clipboard (like on Windows for instance) can hold different types of data.

Raw images (like your screenshot) are one of those possible clipboard contents and thus you can paste them in, given that the app you use allows you to paste image data from your clipboard.

The supported data types that the clipboard can hold are mentioned in the Android Documentation (https://developer.android.com/reference/android/content/ClipDescription.html). I believe it either saves an *Intent* with the type `ACTION_ATTACH_DATA` or a Uri to your image or holding your image as a data string (Base64 encoded).

---
Tags: samsung, images, screenshots, copy-paste, toast-notifications
---


# Question
Title: Temporary root Nexus 5 in adb shell to access a /data folder
I want to backup a `data/data/com.package.name` folder but the app manifest is set to `backup=false`.

To access the folder I want to temporary root the phone in the ADB shell and then access the folder to copy my files. There's no need for me to make root persistent.

The nexus runs on Android 5.0.1. Is there a way to get access to my data without installing a custom recovery, and others?

# Answer
There is a way (or there was) to boot your device and access to it as root using ADB. First, you have to boot your device into the bootloader.

1. Turn it off. Press and hold Volume Down and press power.

You need to find and download boot insecure image (boot.img) and boot your phone using that image
2. ```
fastboot boot boot.img

```

Now you should be able to access your device as root and copy your files
3. ```
adb shell

```

will give you root access to it
4. To put a file into it do:

```
adb push file /phone/folder/

```

Be careful since an old boot insecure image in Android 5.0 or above can mess up with your phone. In my case an old image ruined my sensors and WiFi, and the only way I could fix it was by erasing the user data.
> 0 votes

---
Tags: 5.0-lollipop, root-access, backup, stock-android
---


# Question
Title: broken port on samsung galaxy 3 and tablet wont charge
my charger port is broken on my Samsung tablet galaxy 3 is there another way to charge without using the port

# Answer
> 0 votes
The Samsung Galaxy Tab 3 has no auxiliary charging ports or removable parts - you'll need to get the port fixed or replace the tablet.

However, if you meant the Samsung Galaxy S3 (as this is what you tagged the post with) - you can purchase a battery charging kit to charge the battery separate from the the faulty phone.

---
Tags: samsung-galaxy-s-3
---


# Question
Title: Where can I find an old version of dropbox app?
I'm using Android 2.3 and uninstalled dropbox. Then I wanted it back, but dropbox 3.01, the only official version available, is meant to work only from Android 4 on. Where can I find an old, trustable version of the dropbox 2.x that works for my phone?

# Answer
> 2 votes
Currently the most trustable source for older APK versions is APK Mirror. For Dropbox specifically you can find older 2.x versions here:

http://www.apkmirror.com/uploads/?app=dropbox

---
Tags: 2.3-gingerbread, apk, dropbox
---


# Question
Title: How to disable the reading voice on incoming calls in LG G2 Mini running Android 4.4.2?
I have LG G2 Mini running Android 4.4.2 with Kernel 3.4.0. If you need Build number or Software Version or Baseband version , let me know.

I tried to search but couldn't find anything useful for how to disable the reading voice on incoming calls?

# Answer
The "reading voice" on incoming calls may be part of the Accessibility Features that are a part of Android. It also seems that LG has a setting for enabling Voice Notifications for calls and texts - try that too.

Ensure that the following settings are turned off/unchecked:

* Accessibility \> TalkBack
* Sound \> Voice Notifications
> 0 votes

# Answer
I can't speak for that exact phone, but it might be found in the settings of the phone application (not the general settings app of the device). I've seen it there before, try looking for something that mentions Caller ID.
> 0 votes

---
Tags: 4.4-kitkat, calls, reading
---


# Question
Title: Changing contact list & reordering the list of apps on a Motorola 360 watch
So I've just bought a Motorola 360 Android watch, and I'm having trouble with figuring out if I can reorder the list of contacts that I am presented with when swiping to the right twice (going past the list of apps and into the list of contacts). It seems to only have the possibility of displaying the list in the order of I've contacted people. Can that really be the only way to see the list?

Also, the list of apps that the watch presents has multiple instances that I don't really use all that much and would rather reorder further down the list (so I can access those I do use more often faster). I haven't been able to find any information about this anywhere. Is this list static?

I'm an Android developer my self, and must say that the capabilities for customization in these wearable devices are surprisingly shallow and lacking in high impact obvious ways.

# Answer
> 0 votes
Not sure about contacts, but if you are running the latest Android Wear (Android Wear 1.1.1929530/Android OS 5.1.1) the first three apps in your list should be the most recent ones. I'm not aware of any system level customization beyond creating your own watch face or watch app.

---
Tags: contacts, motorola, android-wear
---


# Question
Title: How to manually restore Call Log from adb backup on OnePlus One? (SMS already restored)
I ran `adb backup` with all the backup flags on my OnePlus One (which I had gradually upgraded from 44S to 05Q). Then I wiped it, reimaged it with a fresh image of 05Q, and tried to restore my SMS and call logs.

I managed to restore the SMS history by copying back the `/data/data/com.android.providers.telephony/databases` folder to my new phone and setting the permissions appropriately. But for the life of me I can't figure out how to restore my call logs -- I can't figure out which folder to restore *from* and I can't figure out where to restore it *to*. It seems to me that the two might be different because I originally upgraded the phone from a slightly older version of Cyanogenmod whereas the fresh copy is completely new, but either way I can't figure out how to do this. I have a nagging feeling that the call log might not have even been backed up, but that would be strange because the SMS log was...

Any ideas?

# Answer
**Note**: OP already knows the answer but the following info is for those souls who might be troubled with the same issue.

---

# Disappointment!

CM11 in OnePlus One (be it 44S or 05Q update) doesn't have any provision to get the Contacts and Call logs get backed up and restored using ADB.

So unfortunately, the answer is simple: your contacts and call logs were not backed up by ADB because the developer(s) of CM11 didn't allow it, and so, you should look for other ways to restore them (*hint*: Google Contacts Sync).

Also, if it matters:

* `/data/data/com.android.providers.telephony/databases` is where you'll find the database for SMS/MMS
* `/data/data/com.android.providers.contacts/databases/` is where you'll see the Contacts and the Call logs

*You can now stop reading if you're satiated by the answer, and I recommend to get busy in finding some recovery methods to regain access to Contacts and Call logs.*

*However, some souls want a reason for an event no matter what, so here we go with one such reason!*

---

# Why SMS/MMS were backed up and not the Contacts?

Why is that private content such as SMS/MMS were backed up but not the Contacts?

You've to note that since Jelly Bean was launched this has not been a common behavior exhibited in Android Open Source Code (AOSP) and neither by most of the stock ROMs to allow backup of said private content by ADB, i.e. both **Telephony Provider** (has SMS/MMS database) and **Contacts Provider** (has Contacts and Call logs) are usually developed to not to participate in backup and restore infrastructure of the Android system. However, CM11 has some changes which allows SMS/MMS to be backed up but leave the Contacts and Call logs in the dirt.

### What are those changes?

My finding states that in CM11, a flag named `android:allowBackup="false"` was eventually removed from **Telephony Provider** but remained untouched in **Contacts Provider**. This flag is always introduced under the app's `AndroidManifest.xml`.

Google here has to say this regarding that flag:

> `android:allowBackup`
>
> Whether to allow the application to participate in the backup and restore infrastructure. **If this attribute is set to false, no backup or restore of the application will ever be performed, even by a full-system backup that would otherwise cause all application data to be saved via adb**. The default value of this attribute is true.

<sub>(Emphasis mine)</sub>

However, for some reason, CM12 reverted back this decision and now, both the apps doesn't allow backup from ADB at all.

If you intend to to see the source of the said packages, then take a look at `AndroidManifest.xml` of **Telephony Providers** for:

* CM11 -- no such flag under `<application ..`
* CM12 -- has that flag under `<application ..`

But for **Contacts Provider** both CM11 and CM12 has the flag untouched.

You can further verify this information from the `AndroidManifest.xml` of both the packages that you've in your CM11. You would find that the flag is present in one app and not in the other.

**Note** that the default behavior as mentioned in original source code of Android is to disallow backup in both apps for Kitkat release.

As for why CM11 developer(s) made such changes, I would advise asking them directly.

Done for now!

---

You may checkout my similar answer mentioned here for the question: Backup/Restore SMS/MMS via ADB on a non-rooted device?.
> 8 votes

---
Tags: cyanogenmod, backup, data-recovery, call-history, oneplus-one
---


# Question
Title: Google Maps strange green texture when zooming in
On my tablet Lenovo 10" Android 4.2.2 my Google Maps looks really annoying, when I zoom in it has this green texture covering the map. Anyone knows why this happens and how to get rid of it? Google Maps is up to date.

T

EDIT : It is also awfully slow and it takes seconds to respond to touch and zoom.

EDIT 2 : Its only the app, in the Browser (Chrome) it works well.

EDIT 3 : Got it back to normal, by uninstalling updates, deactivate Maps and restart the device. Still would like to know why this happened.

# Answer
> 0 votes
Uninstalling updates, deactivating Maps and restarting the device worked.

---
Tags: 4.2-jelly-bean, google-maps
---


# Question
Title: Phone evicting inactive applications from ram, despite plenty of memory free
The phone (Jiayu G4S) is running Android 4.4.2, 2GB of ram, stock jiayu.es rom (kernel 3.4.67)

Stock configuration also sets up some swap in zram, I disabled it, does not seem to make a difference.

Task manager shows at any time at least 0.92GB free or more. It shows at most 12-13 cached inactive apps that are still in ram, a bit more if process limit is manually set to a high value (just for kicks I choose 100).

According to `dumpsys meminfo`, this is how it looks now:

```
Total RAM: 2016644 kB
 Free RAM: 883420 kB (230000 cached pss + 131652 cached + 521768 free)
 Used RAM: 852001 kB (805401 used pss + 1684 buffers + 8972 shmem + 35944 slab)
 Lost RAM: 281223 kB
     ZRAM: 4 kB physical used for 0 kB in swap (0 kB total swap)
   Tuning: 256 (large 512), oom 122880 kB, restore limit 40960 kB (high-end-gfx)

```

And yet, frequently used applications get periodically thrown out from memory (shown in task manager with 0.00b allocated), which results in a small delay at next launch.

oomkiller parameters seem sane

```
shell@G4:/ $ cat /sys/module/lowmemorykiller/parameters/minfree
12288,15360,18432,21504,24576,30720

```

Why are frequently used programs kicked out, despite all that free memory? Is there anything I can configure (I have root access)?

# Answer
> 0 votes
And now to answer myself. Looking at Android 4.4.2 (KOT39H) sources, in ProcessList.java we have defined a maximum number of cached apps, set to an arbitrary value of 24:

```
static final int MAX_CACHED_APPS = 24;

```

This value is further split as follows by computeEmptyProcessLimit function: 2/3 goes to empty process limit and 1/3 goes to cached process limit.

So now we have an arbitrary limit of 16 for empty and 8 for cached processes. (But go buy a 3GB ram phone, to see how much unused memory you'll have)

In stock android, the only way to change this limit is at runtime, via setProcessLimit(), which requires rooted phone, an application manually installed in /system/priv-app and the SET\_PROCESS\_LIMIT permission granted.

(In CM11 for example it can also be set in build.prop, but this code is not present in stock 4.4.2)

Luckily there already is such an application on github, called SetAndroidProcessLimit, which, installed correctly, works (my thanks to the author)

Now I have 20 cached apps in ram, that's about all apps I frequently use, and any of them will start instantly, zero delay.

---

I also figured out how to modify MAX\_CACHED\_APPS directly in /system/framework/services.jar

* download the jar to your pc, unpack the jar
* decompile classes.dex with baksmali (or via apktool)
* modify in ProcessList.smali and in ActivityManagerService.smali - because this is bytecode, you have to replace not only declaration of MAX\_CACHED\_APPS but every occurence of it with new desired value
* recompile classes.dex
* repack the jar
* download to phone, replacing original jar (you have to remount rw /system)
* reboot the phone; mine automatically will regenerate dalvik cache

---
Tags: 4.4-kitkat, ram
---


# Question
Title: Add an app to the Google Playstore installed list
I have recently have had to flash my GApps package on Cyanogen. As a result all the application that were previously listed in the installed apps section are no longer present any more.

Is there any way I can add them back there so that PlayStore will continue to track updates for them ?

# Answer
You can use Titanium Backup's **Market**\[sic\] **Doctor** feature to restore your apps to the 'Installed' list in Google Play Store. Here's how:

* Open Titanium Backup.
* Press the **Menu** button on your device.
* Select **Market**\[sic\] **Doctor** .
* From the popup, select **User apps** or **User and system apps** depending on which kind of app isn't showing up on your 'Installed' list.
* **Select all** apps from the list that will show up, or choose just the ones you want to show up in Google Play Store, then select **Done** in the upper-right corner of the screen.
* Wait until the operation finishes.
* Open **Google Play Store**'s Installed list and your apps should be there.

Cheers.
> 2 votes

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


# Question
Title: Moving app sync from one google account to another
Okay I am using a new Gmail account on my PlayStore to browse my tablet. Now the problem is that all the apps that I downloaded using my first account, so when I log into the using my second account I don't see the apps of my first account.

I have the question on whether we can move paid apps between accounts over here.

But all my apps are free, can I move them from one account to another ?

The list of the apps are as follows-:

1. ES File Explorer
2. Facebook
3. Firefox
4. Youtube
5. aTorrent
6. Gmail
7. Google
8. Google News and Weather
9. Google Talkback
10. Google Text to speech
11. Hangouts

# Answer
> 0 votes
Several of the apps you list most likely came pre-installed with your device (e.g. Gmail, Google, Google Talkback). Keeping that in mind brings up the question: How did they end up being associated with your account? Which leads to a possibility to achieve what you want:

1. Delete the "old" Google account from that device
2. Wait a little. It usually doesn't take longer than a day that a process of the Google Play app scans your device for installed apps, and links them to your (new) account if they have no link yet (that's how the pre-installed apps ended up here)
3. Once that had happened, and if you still need the "old" account for some purpose, it *should* be safe to re-create it (I'm not 100% sure about this step, as I've never tried it).

---
Tags: google-play-store, sync
---


# Question
Title: Google Voice SMS not showing notifications in Hangouts?
I have my Google Voice account setup through the Hangouts app for Android, on my un-rooted Galaxy S5 (with the Lollipop OTA).

When I have the application open on my device, and I receive an SMS to my GV number, it appears on screen.

If I don't have the application open, the phone still receives the message, but it does not give me a notification. I know background data is turned on, and it has received the message, because I can turn on airplane mode, then open the app, and see the message is there unread.

*SMS* messages sent to my carrier number as well as *Actual* Hangouts messages notify correctly whether the app is open on-screen or not.

Has anyone ever seen this before?

# Answer
> 4 votes
It looks like there is an issue with Hangouts app that causes notifications for new conversations with a given contact to be disabled by default, with no way to override this setting. On the Conversations tab, these are denoted by a bell with a strike-through:
(click for larger image)

Once you open such a conversation you will see a message in red saying "Notifications off - You won't be notified of new messages" with an option to enable them:
(click for larger image)

Existing conversations for which you've enabled this setting will receive notifications normally. If you delete the conversation, the setting will revert to "off". Archiving the conversation keeps it enabled.

The details that are described in this thread (I suggest starring it to show Google that there is interest in this issue) match exactly what you are experiencing. It has been brought up before, and was escalated to the Hangouts development team, who are already aware of the issue. We can only guess when (or if) Google will fix this.

# Answer
> 4 votes
I found this post on a google product forum and it worked for me. After you follow the steps, if it helps, I used the following service to send a test text message to my phone knowing it wouldn't be in my contacts and IT WORKED :)

https://www.clickatell.com/test-sms-gateway/

Tokiyo said: Found a solution trying to fix this problem. This will give you notifications of new messages from new numbers or new people on the Hangouts app.

1. Go to your Hangouts app
2. Menu
3. Settings
4. Your account email
5. Customize invites
6. Everyone Else
7. Select "Can contact you directly"

Source: http://www.reddit.com/r/Android/comments/2vjtje/try\_this\_fix\_if\_your\_hangouts\_app\_doesnt\_notify/

---
Tags: 5.0-lollipop, samsung-galaxy-s-5, google-voice, google-hangouts
---


# Question
Title: How can I get the first boot Android welcome screen again without doing a factory reset?
Is it possible to get the welcome screen again after going through it without having to wipe the device? I mean the screen where you pick language, configure your Wi-Fi, log into a Google account, etc.

I know all those things can be done from the Settings menu, but still, I want to get the welcome screen again, without having to factory-reset. The phone is rooted, in case it matters.

I want to make the welcome app start when switching the phone on, so I guess this might involve editing some config file which is read at startup.

# Answer
> **EDIT:** This probably won't work, because `SetupWizard.apk` doesn't have a launchable activity.

Although this question is almost a year old, others may still find this useful:

```
adb shell am start -n com.google.android.setupwizard/.SetupWizardActivity

```

I'm not sure why do you want to run the setup wizard on the next boot, though. If you want to give your device to a relative, why not do a factory reset, or if you want to keep the data on the device, just tell them to change things manually in the settings?

Anyway, if you're using a ROM with `init.d` support (such as CyanogenMod), create a new file called `00Asetupwizard` with the following contents:

```
#!/system/bin/sh

adb shell am start -n com.google.android.setupwizard/.SetupWizardActivity

# "Self-destruct" to make sure the setup wizard is not reexecuted on subsequent boots.
# This may cause an issue if the device is rebooted before completing the setup wizard,
# but I don't know how to fix that.
rm -f /system/etc/init.d/00Asetupwizard

```

Then run the following commands on your computer, connected to your phone over USB:

```
% adb remount
% adb push 00Asetupwizard /system/etc/init.d/
% adb shell chmod 0755 /system/etc/init.d/00Asetupwizard

```

If `adb remount` gives an error, try the following instead:

```
% adb push 00Asetupwizard /sdcard/
% adb shell
$ su
# mount -o remount,rw /system
# mv /sdcard/00Asetupwizard /system/etc/init.d/
# chmod 0755 /system/etc/init.d/00Asetupwizard

```

(In the above examples, `%` indicates the shell prompt on your computer, to distinguish it from the ADB shell prompt.)
> 4 votes

# Answer
for those you got newer GMS, it seems the name of activity changed, try

```
 adb shell am start -n cotupwizard/.SetupWizardTestActivity
```
instead.
> 2 votes

# Answer
You can find it in your app drawer. Some vendor named is Setup, some may named Wizard. You might want to sort your installed apps in app drawer and start looking from oldest ones.
> 0 votes

---
Tags: settings, factory-reset
---


title: Root genymotion devices

text:
# Question
Title: Root genymotion devices
I have added **`Samsung Galaxy S4`** using genymotion **`while I was using windows os`.** Now I'm using linux and added that device again. My problem is that the S4 is not rooted on my linux machine. I wonder if this is a bug ? If it's not a bug can someone help me to root this device ?

# Answer
Genymotion devices are rooted by default. For example start a device then type `adb shell` command. It will open a rooted shell:

```
root@vbox86p:/ # whoami
root

```

You can also manage the root access of your applications by opening `superuser` app through the apps launcher.
> 6 votes

---
Tags: genymotion
---


# Question
Title: Samsung i9300 touchscreen not working, stuck at welcome screen/language selection
My touchscreen is not responsive any more on my Samsung i9300 (Galaxy S3) - I don't know the reason. I successfully installed a stock ROM, but I'm stuck at the language selection/welcome screen.

The problem is simple: I need to select a language or to activate voice input to continue.

All hard buttons work and capacitive buttons (soft buttons) also work, but they are no help in selecting a language or activating voice input.

I found several solutions on that problem:

1. Summarized, it says to use an USB mouse connected to the phone by a OTG usb cable. I have tried it and I can not approve that, because the mouse is connected (lights on), but it is not recognized by the phone. Here's the source: http://forum.xda-developers.com/galaxy-s3/general/guide-unroot-reset-counter-touchscreen-t2074756
2. I had the idea of controlling the phone by using a USB keyboard connected to the phone like above (1.). This works a little bit better, because the phone receives key input, but very limited. CTRL+ALT+DEL works to reboot the phone. I wasn't able to figure out how to replace touchscreen functionality by using the keyboard resp. to select a language (at the welcome screen) where I'm originally stuck. There are a view keyboard combination lists on the internet.
3. Erica Griffn describes in this video the same issue and concludes, that she has no solution for it so far: https://www.youtube.com/watch?v=oMG-\_26NgXM

Is there any other solution I could try else?

A new diplay costs about $100 and a new S3 costs about $200. I don't want to exchange the phone or replace the display.

# Answer
I bought a new display and replaced the old one. The procedure is more or less difficult, requires about 20 minutes time. Here's the tutorial I recommend: https://www.youtube.com/watch?v=Rt8bl7oAPVU
> 1 votes

---
Tags: touchscreen
---


# Question
Title: problem in google offline speech recognition
I own a Samsung galaxy grand 2. I couldn't able to use google offline speech recognition even though i have downloaded offline languages. Is there anything missing ?

# Answer
> 0 votes
This is because you have to enable "Google now" (google serach service). I had the same trouble and solved it with this trick.

Hope it may helps you too.

---
Tags: voice-recognition, samsung-galaxy-grand-2
---


# Question
Title: Lost internal storage space on my Xperia Z1 Compact
When I perform this `df mnt/sdcard/` on my Xperia Z1 Compact, I get:

```
Filesystem               Size     Used     Free   Blksize
mnt/sdcard/             11.8G     7.9G     3.9G   4096

```

But when I do `for el in $(ls -a mnt/sdcard/); do du -sh "mnt/sdcard/${el}"; done` I get that.

So, the sum is much less than 7.9G. Where has the remaining space gone?

# Answer
Android's internal storage is made up of *many* symbolic links. They point towards different locations of your phone's storage.

`/mnt/sdcard` internally links to `/data/media`. This directory just contains your user data but no applications or application data.
`/data/` contains multiple directories containing the apps (`/data/app`) or the app data (`/data/data`) that all contribute to the used storage.

What you see using `df` is the total storage statistics of the whole partition, even though you run it on `/mnt/sdcard`. Citing the Linux manual: *df - report file system disk space usage*.
This means it takes into account *all* files and folders on that partition even though you are using a directory of the partition as the parameter.

Conclusion: `df` returns the statistics for the complete partition, but you are just looking at one directory inside of it.
> 2 votes

---
Tags: internal-storage, storage, sony-xperia
---


# Question
Title: Should I leave ZRAM activated on a device with 512 MB RAM or not?
I have an old Android Smartphone (Samsung Galaxy S Plus i9001). It has a 1 core 1.4 GHz CPU and 512 MB RAM, OS is Cyanogenmod 4.4.4.

It runs smoothly and quite fast. The phone will only be used for phoning and a litte bit of photo. (Not quite smartphone useage but there are no classic phones anymore)

The kernel (CM11 kernel) comes with ZRAM activated. The description in Trickster Mod (Tuning tool) says about ZRAM: "reserves 10% of your device RAM as compressed swap space". Free space after boot, without opening another program is about 150 Mb.

Question: Should I leave ZRAM activated on a device with 512 MB RAM or not?

# Answer
Leaving ZRAM on may actually be beneficial to your little S Plus if you leave it on, though your limited use cases (Phone and Camera only) may not see a huge benefit over not having it on. The cache exists to keep commonly used programs, files, and useful bits of data on the memory instead of stored in a page file - this can speed up your phone a little and increase the lifespan of the device.
> 0 votes

---
Tags: ram
---


title: Is there a way to change toggles?

text:
# Question
Title: Is there a way to change toggles?
Is there a way to change the toggles in Lollipop? I'd like to remove and add some.

# Answer
You can't edit the toggles in the stock ROM, but I've heard Power Toggles works pretty well. I'm pretty sure that CM allows you to edit the toggles if you are rooted.
> 1 votes

# Answer
Depending on your device there may be the option to change the available toggles in settings or even in your notification pull-down. Samsung devices (some) have this feature.
> 0 votes

---
Tags: 5.0-lollipop, customization
---


# Question
Title: Using fsck to fix SD card returns invalid argument
I'm having issues with my 64 GB micro-sd card that I can't find a solution to solve this problem.

I've reformatted from windows 7 using windows solution as well as the format software offered by the SD-card organization. I've also tried repairing and repartitioning through Aparted for Android. Nothing is working... The strange thing (to me at least) is that I can save things to the card itself. The only thing is, when I go into the storage app in Android (by the way I'm on CM 12.1), Android only shows a gray bar and isn't able to identify what is on the card. Also, certain apps like teamviewer simply operate as if there is nothing in my SD-card slot.

When I followed the directions in this question, I got as far as the unmount step, at which point terminal tells me that it can't find the unmount I'm trying to point it to (/dev/block/vold/179:33). What the directions don't mention in that link is what one can do if it can't find the device. Can someone please give me a hand with this? Thanks so much.

\*In case anyone is wondering, I do have busybox installed.

\*I also just noticed that when I go into storage, I don't even have an option to dismount the card...only erase.

# Answer
The command, Like most Linux and Unix commands is **umount**. Heaven knows why they could not use unmount, but since the Android kernel is Linux based, and you should have busybox installed, it should just be **umount**.
> 0 votes

---
Tags: external-sd
---


# Question
Title: Fully control Android phone from another Android phone over the Internet
Before I write my own app, I want to know if there is an app to fully control one Android phone from another Android phone (over the Internet)?

I need this so that I can remotely start apps, install apps and control apps for a remote Android phone (un/rooted) without requesting permissions. An app to basically do remote screen sharing with full privileges given.

I have used TeamViewer and AirDroid, but I don't like these as the remote device needs to allow permissions.

The usecase is simple: I am giving my mother (not so tech savy), who lives in another country, an Android phone (assuming it will have Internet connectivity over Wi-Fi). I want to be able to fully control her phone from my Android phone (from another country).

# Answer
> 3 votes
You can try RemoDroid. Install it on both system and I believe instructions are in the app.

---
Tags: remote-control, remote-access
---


# Question
Title: Android restore bootstrap nandroid backup after a failed rom flash
I was trying to flash my Droid X2 to CM7, but it failed. Before I attempted the flash, I did a nandroid backup using an app called "system recovery" (MOTODX2\_Bootstrap\_signed.apk).

I want to restore to that backup, but I cannot seem to boot into the same recovery menu.

Someone please help me. My phone gets to the boot animation and keeps resetting.

# Answer
Sigh. You are bricked. Not an easy fix. You have options, though.:

1. Flash the stock ROM via PC, and see if it is a soft brick. If that works, you'll be at step 1 again, but that's better than a unusable phone. This is assuming you can aaccess a mode to flash ROMS via PC. 1.5. Make a USB jig (look up one, it varies on device). Use it, and it will make option 1 easier.

1.7. Take apart your phone, grab the hard drive, load it into anything that will take it(again, look it up, I know someone asked about it here a while back) and grab the backup, then do option 1.

2. Keep trying to get it to boot up, and keep it charged. You may just get lucky.
3. Take it to the manufacturer, and say it just stopped working. Provided they don't work out what you did, it''ll be at stock again.
4. Throw it in a bin :(

Some of those may be crazy, but there is often little available for bricked devices. I have lost two devices like this.
> 0 votes

---
Tags: boot, restore, nandroid
---


# Question
Title: Possible Soft-Brick Fix for my Galaxy S4
So, prior to my stupidity, I made a system.img dump via dd

However, after my stupidity (tried flashing some lib files....), I am now stuck with only stock recovery mode, or download mode.

How can I flash back my system.img? I tried in download mode with heimdall... but it fails with

```
root@o7thDev:/media/MediaTwo/MyRom# heimdall flash --verbose --no-reboot --SYSTEM system.img
Heimdall v1.4.0

Copyright (c) 2010-2013, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
  Manufacturer: "Sasmsung"
       Product: "MSM8960"

        length: 18
  device class: 2
           S/N: 0
       VID:PID: 04E8:685D
     bcdDevice: 0100
   iMan:iProd:iSer: 1:2:0
      nb confs: 1

interface[0].altsetting[0]: num endpoints = 1
Class.SubClass.Protocol: 02.02.01
   endpoint[0].address: 82
       max packet size: 0010
      polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
Class.SubClass.Protocol: 0A.00.00
   endpoint[0].address: 81
       max packet size: 0200
      polling interval: 00
   endpoint[1].address: 01
       max packet size: 0200
      polling interval: 00
Claiming interface...
Attempt failed. Detaching driver...
Claiming interface again...
Setting up interface...

Initialising protocol...
WARNING: Control transfer #1 failed. Result: -9
WARNING: Control transfer #2 failed. Result: -9
WARNING: Control transfer #3 failed. Result: -9
WARNING: Control transfer #4 failed. Result: -9
WARNING: Control transfer #5 failed. Result: -9
WARNING: Control transfer #6 failed. Result: -9
ERROR: Failed to receive handshake response. Retrying...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
PIT file download successful.

Uploading SYSTEM
0%
1%
ERROR: Failed to unpack received packet.

ERROR: Failed to confirm end of file transfer sequence!
ERROR: SYSTEM upload failed!

Ending session...
Releasing device interface...
Re-attaching kernel driver...

```

so I tried creating an update.zip that I could sideload flash in stock recovery, but that fails as well with

```
E: footer is wrong
E: signature verification failed

```

If I could get into adb shell, I'd be set... all I'd have to do is dd the system.img back (been there done that in SafeStrap), but when I try adb shell in stock recovery I just get "error: device not found", and in sideload mode, I get

```
error: closed

```

Please help? :crying:

# Answer
> 1 votes
Try disabling verification, via safestrap, and try both methods + Sideload again.

I should ask, why heimdall and safestrap? Use Clockworkmod recovery instead of safestrap and ODIN over heimdall. Yes, they require you to get your stuff online beforehand, but clockworkmod has got me out of a lot of soft-bricks

*If I was boring, everyone I know would not bother with me :(*

---
Tags: adb, samsung-galaxy-s-4, system, heimdall
---


# Question
Title: Moving contacts and messages from Windows Phone 8.1 to Android
I currently have a Nokia Lumia 520 running Windows Phone 8.1. I am migrating to an LG G3. How would I move my contacts and messages (texts) from one phone to another?

# Answer
You could just save them to the SIM card, that *should* work.

Tap the menu icon, and a button should be labelled 'back up contacts'. Tqp that, and then tap 'SIM card'. It should save all your contacts to the SIM card. Then just put it in you new phone, head to contacts, tap the menu button, qnd press 'restore' and choose 'SIM card'. Then, choose the save point of your choice (to phone, SIM, or an added email)

Text messages are a bit more troubling, I'll look into it.

-EDIT-

I have found a similar request here from a while back, on the windows phone stack exchange. It will contain all you need. From there. Move the sdcard to your android phone, and install this app here (assuming you have one, use PC otherwise) and just navigate to the sdcard (keep using the up a directory button, or up button in the app until you see either `sdcard` if your default storage is called emulated, or `extsdcard` if it is called sdcard) and choose the file to restore. It can do contacts, messages, and more.
> 0 votes

# Answer
1. a. You (should be able to) export your contacts from your Windows Phone to a .csv file and import that into your Google account Contacts which can be accessed here: https://contacts.google.com

b. Another way of doing the above is presented here: https://windowsphone.stackexchange.com/questions/1660/i-have-saved-a-csv-file-from-my-old-phone-now-i-want-to-import-those-contacts-i
2. a. Once you import them into your Google account, then register your new Android device with your Google account and all your contacts should sync as well.

b. If however, you wish to avoid registering the Android phone with your Google account, then move the .csv file you saved earlier (from your Windows Phone) on to the storage of the Android phone and select the import option from the default Contacts application.

I'm sorry I could not be more precise as I don't own a Windows Phone and the options for Contacts applications on Android changes according to manufacturers.

* Options for exporting and importing contacts files (.csv) should be present in the menus of the respective Contacts/People applications.
> 1 votes

---
Tags: data-transfer
---


# Question
Title: Is it possible to connect desktop/laptop display with smartphone?
I have android smartphone . I have computer with Windows 7 operating system.

I want to see data that I am surfing on internet in my smartphone on my computer. If I connect my smartphone with my computer using USB cable, can I see content which is displayed on my smartphone's display (say any website) on desktop screen? Is it really possible to do it? Is there any apk available for it? I don't want to root my smartphone.

# Answer
There is no native way to do this through through a USB port, although you have a few other options:

# 1. Use Mirror Beta

On your PC/Mac, download the AllCast Receiver app for Chrome and launch it. On your Android phone download the Mirror Beta app and make sure both devices are on the same Wi-Fi network. If everything works well, you should be able to see your Chrome browser as an option on your phone, tap that and it should work.

This doesn't require root, but it does need lollipop

# 2. Simply use an HDMI cable

Get a microUSB to HDMI converter, plug one end in the phone and the other end in your monitor or TV. It should work out of the box as an input in your TV. This method will have less lag and will work on older phones, but is less like what you wanted.
> 2 votes

# Answer
If you enable USB debugging, you can actually use the Chrome debugging tools to view your smartphone's display for any website.

1. Enable USB debugging (under Developer Tools).

if Developer Tools isn't available in Settings, you may need to do the above.

2. Open the desired website in Google Chrome on your phone
3. Connect your phone to your computer via a microusb cable
4. In Google Chrome on your computer, navigate to Settings-\>More Tools-\>Inspect Devices
5. Check **Discover USB Devices**

(source: chrome.com)

5. Allow USB debugging on your phone

(source: chrome.com)

6. At this point, you should be able to Inspect any webpages open on your phone from your computer

(source: chrome.com)

7. Tapping on the mobile icon in the Inspector should mirror your mobile display

the resulting display should look something like this:

**Note:** this solution will only mirror webpages, not other content.
> 1 votes

---
Tags: applications, usb, screen
---


# Question
Title: How to set default SIM for calls on Lenovo A7000?
How to set default SIM for calls on Lenovo A7000 running Android Lollipop 5.0 and Lenovo's Vibe UI?

PS: I have bought an Android phone for the first time.

# Answer
The setting can be found in :

Settings-\>SIM Management
> 0 votes

# Answer
Open Stock dialer → Select the options from top right (Action overflow button - 3 dots after the voice search assistant).

Select *Settings**Call Settings**Phone Account Settings**Make calls with*.

Here you can select 3 options. If you select **Ask first** \- you'll be prompted every-time you make a call, to select from which sim you want to make the call.
Or select either of the *SIM*s directly (using 2nd and 3rd options).
> 0 votes

---
Tags: 5.0-lollipop, sim-card, lenovo
---


# Question
Title: BlueStacks physical keyboard keeps getting ticked ON
I like to have the "physical keyboard" disabled, in order to make appear the virtual keyboard which contains all the Android smileys. However, every time BlueStacks closes or goes to trail (when computer sleeps), the "physical keyboard" is set on ON again, disabling the virtual one.. quite annoying to change that otpion every time i need the smileys

Any idea how to solve this issue ?

Thanks !

# Answer
I tried the below steps and the onscreen keyboard was always displayed no matter I restart the Bluestack/it went to tray/even after system restart. Based on Bluestacks support page about How to enable/disable on screen keyboard?

1. On the home screen click on the All Apps on the top-right corner.
2. Click on 'Select IME' app.
3. To enable on-screen keyboard and, please click on 'Enable OnScreen Keyboard'.

The above steps only enables the on-screen keyboard everytime you click on an text field. This doesnot disable the typing throught physical keyboard though. You can use both the hardware and the virtual on-screen keyboard at the same time. If you still have the hardware keyboard enable after every restart, then re-install the bluestacks app.
> 1 votes

---
Tags: bluestacks
---


# Question
Title: When I search for apps, what determines the order in which they are ranked?
When I search for apps in the Google Play Store, what is the determining factor of the order in which they are presented to me?

Is it the number of downloads? Or reviews? Or total star rating?

Thanks!

# Answer
Its a combination of the three, plus more. Google play store factors in what you like (e.g. the "like installed apps" tab) the popularity (which is also the only factor of the "top \[insert catetrgory that's not grossing here), how much money the app is making and its overall rating. Apps marked as editors choice have their own tab, but **don't** get shoved up to the top of the other categories unless they should be there for whatever reason applies.
> 0 votes

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


# Question
Title: when "full back up" screen appears i cannot pick the "back up my data" option
i can't touch and confirm the back up my data option. i am able to pick the "do not back up" option whenever. ive tried adding a password but does not let me back up. im not sure all is update and installed. im running kk 4.4.4 on verizon s5. i downgraded from lollipop if that may be the issue? I dont see how if im already on the full back up prompt.

# Answer
> 1 votes
I actually got it to work by disabling the screen filtering app. I had applied bluelight filter which decreases the opacity of screen. Anyhow I turned it off and the backup worked. I wasn't able to download apk's so this helped. If u have any apps that run on top of most apps or something like that as it was explained in this youtube video, I would disable them and then do what I want to do and redownload. I don't know why this is happening now because it didn't before but it helped me. Hope it helps you.

---
Tags: samsung, windows, droid-explorer
---


# Question
Title: Samsung Galaxy Tab: Cannot download from Google Play
I bought this tablet without a SIM card. I have a WiFi connection, but it still doesn't let me download from the Android Market.

How do I fix this?

# Answer
> 0 votes
By your reference, you are using android market, not Google play store. This then, suggest that you need to update the store, otherwise you are not downloading anything. The store has been as Google play store for a bit over a yes now, so anyone using android market are severely outdated. You ***may*** have to download the apk, and install it, force updating it.

---
Tags: google-play-store, samsung-galaxy-tab, downloading
---


# Question
Title: Nexus 10 / Android 5: recovery broken, fastboot not working
So I have broken the software of yet another Google device, this time a Nexus 10, manta.

What I did: \- tried to install Ubuntu like so. It failed with

```
2015/07/18 01:20:36 Cache formatting was not successful, flashing may fail, check your partitions on device
2015/07/18 01:20:48 Cannot push /home/<user>/.cache/ubuntuimages/gpg/image-signing.tar.xz.asc to device: free space on /cache/recovery is unknown

```
* the Google system (that is, Android 5.02 I believe) still boots, but
* I can not enter fastboot any more, "adb reboot fastboot" results in reboot of Android, "adb reboot recovery" results in a picture of a gobot with a red exclamation mark in her chest and the line "no command" being shown after some time followed by a reboot of Android, "fastboot devices" never shows anything
* I can not USB-push anything with adb (as suggested here), it fails with

.

```
failed to copy 'recovery-clockwork-touch-6.0.4.7-manta.img' to '/cache/recovery-clockwork-touch-6.0.4.7-manta.img': Permission denied

```
* I can not enter superuser mode (in order to change permissions, remount rw or rectify whatever may be wrong)

.

```
adb shell
shell@manta:/ $ su
/system/bin/sh: su: not found

```
* Trying to install and flash CWM from Google Play Store results in "An error occurred while flashing your recovery"
* Downloading an image to be flashed onto recovery from Android is no good either because it the flash\_image command is not found.
* "Upgrading" from Android 5.02 (I think) to 5.1 did not change any of this.

In short, the device is not rooted (because of the update?), whatever is on recovery does not work, fastboot does not work, and therefore there is no way to root the device.

Am I correct in assuming that this effectively rendered the recovery partition/image/system unusable while the main system does not allow any modifications to the recovery partition/image/system and therefore fastboot can not be used any more and nothing on the system level can be installed or changed? If not, what must I do?

Also, would I be wrong saying that all those devices including the present one and this one (and I have a third one in the same state) are now little more than spare parts (in spite of being physically fully functioning) because the systems can't be properly used? Is it wrong to assume that Google designs its systems on purpose so that this will most likely happen if someone tries to install something not specifically endorsed by Google?

# Answer
> 3 votes
* Some Nexus 10 tablets have a bug ,the fastboot menu is hiden ,the screen remain blank even when you are actually in fastboot mod to make sure you don't miss it do the following
* Hold Power + Volume Up + Volume Down until the tablet vibrates twice (once to shutdown, then a few seconds later to acknowledge fastboot menu). After the second vibration, you should be in the fastboot menu, although the screen is blank plug the phone to pc it should be recognized
* Now that you have access to fastboot ,you can flash a new firmware or a custom recovery to get your device to a working stat.

---
Tags: recovery-mode, fastboot, 5.1-lollipop, samsung-nexus-10
---


# Question
Title: How do I get Application name from APK file?
When we click on apk file on android phone (assuming allowed installation from unknown sources), Application name appears.

Example screen-shot for `jackpal.androidterm-1.apk`:

Now, If I want to get this Application Name "Terminal Emulator" from apk file (`jackpal.androidterm-1.apk`) without installation prompt, then How do I do that?

So, My question is **How do I get Application name from an `.apk` file?**

As you know (from screen-shot) I use terminal, also I've installed busybox. So, Is there any command (like: `foo /path/to/.apk`) with the help of which I can get application name?

If I've to use application to do that, then I recommend to suggest FLOSS type application.

Note:- This is not about getting package name but application name. Also I am not talking about application that is already installed.

# Answer
## **Works only on Cyanogenmod or forks that base on CM:**

<sup>`aapt` may not be present on your device. It's suspected that this binary is part of CyanogenMod (and its forks). Confirmed to be present on my S3 running Resurrection Remix (CM12.1), Izzy's Milestone² running CM11 and the LG P880 running CM11 as well.</sup>

You can use `aapt` (*Android Asset Packaging Tool*) to dump the data to your terminal.

Command:

```
aapt d badging <path to apk>

call aapt
     [d]ump the data
       print the badging (label and icon) of
               <the apk>

```

Your output will contain many lines beginning with `application-label`; those are localized labels so the one you are looking for is plain `application-label:`. Use `grep` to filter your output and you will end up with this command:

```
aapt d badging <path to apk> | grep "application-label:"

```

This gives you the localized application label for a given *apk*.

## **Update: Thanks to Izzy for providing `aapt` for all devices running Android 4.1+:**

Izzy put together an archive containing the `aapt` binary for ARM devices (nearly all phones and tablets use ARM CPUs).
Get it from his website: http://android.izzysoft.de/downloads.

*Note:* the command to get the actual application label is slightly different, you need to use `awk` to isolate the application label from the rest of the output:

```
aapt d badging <path to apk> | grep "application: label" |awk '{print $2}'

```
> 4 votes

---
Tags: 4.2-jelly-bean, apk, system-info
---


# Question
Title: Resize screen to display only on working part of semi-functional touchscreen
I have a oneplus android phone. The touch screen recently started malfunctioning so that the bottom centimetre of the screen does not work, but the rest of the screen works perfectly well. Unfortunately the bottom centimeter contains lots of important functions. Is there a way to resize my display or resolution so that it excludes the bottom centimeter of my screen?

# Answer
> 17 votes
**Notes:**

* My solution is tested on Stock Android 4.4.2 and Stock CyanogenOS 12 (5.0) of OnePlus One, and should work for Android 4.3 and above (based on this answer).
* I've mentioned wherever root access is required.
* This answer has been taken from my answer on a bit different question here.

---

I have used the following comment as the ground to work on:

> The bottom 20% of my Nexus 4 doesn't work. I use: `wm overscan 0,0,0,210` to have android WM not draw anything in that area so that I can operate all the drawn areas fully again.. – Thrustmaster

## Instructions:

1. Enable USB-debugging in your phone.
2. Install ADB tools in your PC, connect your device into it, and make sure that device is getting detected in `adb devices`.
3. We need to know the resolution and the display density of the device. In the terminal/cmd enter `adb shell dumpsys display | grep mBaseDisplayInfo` to show display related info. The output could look like:

```
mBaseDisplayInfo=DisplayInfo{"Built-in Screen", app 480 x 854, real 480 x 854, largest app 480 x 854, smallest app 480 x 854, 64.29 fps, rotation 0, density 240, 240.0 x 240.0 dpi, layerStack 0, type BUILT_IN, address null, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

```

The relevant info in my case is:

* real 1080x1920
    * density 480
4. 1. The most useful commands to be used are:

    * `wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]`
        * `wm density [reset|DENSITY]`

    My default launcher screen without tweaks looked like:
    2. To reduce the screen output at bottom issue the command:

    ```
    adb shell wm overscan 0,0,0,100

    ```

    Note the I used further reduction by upto `0,0,0,300` and the output was like this:

    Tweak the value to your desired needs.
    3. You may need to correct the density since the display could look odd. My device's default display density is 480 dpi, so I tweaked it this way:

    ```
    adb shell wm density 440

    ```

    and the resultant screen was like this. An app under tweaked resolution.
    4. Note that you can use `adb shell wm density reset` and `adb shell wm overscan reset` to revert back to default density and resolution respectively.
    5. Now that "dead touch zone" has been taken care of it's time to use virtual/soft keys (only if you need it).

    1. Izzy has it already covered in this answer. Otherwise, you can use Gravitybox LP (for Lollipop users) or Gravitybox KK (for Kitkat users). It is an Xposed module, and **require root access** and Xposed Framework installed.

        Install, activate and launch Gravitybox → **Navigation bar tweaks****Enable Navigation bar** → do a reboot, and soft-keys aka Navigation bar would be found enabled.
        2. Custom ROM like Cyanogenmod and some stock ROMs has the option to enable soft-keys(buttons) under **Settings**. You can use that option since it doesn't require any root access.
        3. After some further tweaks the final screen of my Android 5.0 looked like:

We're good to go!

---
Tags: screen, touchscreen, oneplus-one
---


# Question
Title: McAfee Free Antivirus won't update from Play Store returning error -505
I am putting McAfee in System/app directory to prevent standard users from uninstalling it.

Once I try to update the package from Play Store, the download progress reaches 100% and when it tries to replace the old package I am getting **Error -505**

After a searching, it looks like Android Lollipop have an issue with Adobe Air application, but FYI this is **Lollipop 5.1**

This is what i am getting from bug repport: **different signatures** ?? any ideas??

```
Session 1987113136:
  userId=0 installerPackageName=com.android.vending installerUid=10018 createdMillis=1437157124890
  stageDir=/data/app/vmdl1987113136.tmp stageCid=null
  mode=1 installFlags=0x12 installLocation=1 sizeBytes=10749412 appPackageName=com.wsandroid.suite appIcon=false
  appLabel=Security & Antivirus -FREE originatingUri=null referrerUri=null abiOverride=null
  mClientProgress=1.0 mProgress=0.90000004 mSealed=true mPermissionsAccepted=true mDestroyed=true mBridges=1
  mFinalStatus=-7
  mFinalMessage=Package com.wsandroid.suite signatures do not match the previously installed version; ignoring!`

```

# Answer
The app with this package name: com.wsandroid.suite was not signed by the same certificate as the one from the Play store. This is a fundamental security requirement. You will have to make sure the app you are installing originally is signed with the same key as the one in the Play store.

There is no way to get around this security requirement (matching signatures) to the best of my knowledge.
> 0 votes

---
Tags: applications, google-play-store, updates, 5.1-lollipop
---


# Question
Title: Cache folders taking a lot of space: store_00010001/Pictures/cache/com.google.android.googlephotos/picasa--{0,1,2...}
I've found that this cache folders take 1,5GiB of my 16GB Nexus 5: `store_00010001/Pictures/cache/com.google.android.googlephotos/picasa--{0,1,2...}`

Is it cache of some app, which I can easily remove from phone level? (App settings -\> clear data/cache?) Or do I have to clear it from computer periodically?

# Answer
## solution: block with empty file

block folder creation with an empty file

on my phone i created this empty file

```
/storage/emulated/0/Pictures/cache

```

## size

that folder was 7 g on my phone

https://plus.google.com/photos/yourphotos say "3306 photos"

## recreated daily

if i deleted the folder, it reappeared the next day

## side effect

no side effects noticed by using this solution

auto backup still works

## system

tested on my nexus 5
> 3 votes

# Answer
I was just having this same issue and found that I had to clear the cache data for the Gallery (which you have to get to in Settings-\>Application Manager-\>All-\>Gallery). This cleared up over 1GB of space for me on my internal card.

**Note**: I used an app called Memory Map to get a visual representation to see what was taking up so much space on my internal storage since it was originally just a Google alert telling me I was out of space.
> 2 votes

# Answer
You may install App Cache Cleaner application. One of the feature is "auto clear all cache at a specified interval".

Configure it once and it will never let the cache grow such large.
> 1 votes

# Answer
Yes, you can clear Photos's cache from the phone itself.
> -1 votes

---
Tags: internal-storage, optimization
---


# Question
Title: Malware adding code to ga.js opens up random ads/websites?
A friend of mine just handed me his tablet saying that everytime he open a webpage the browser redirects to several advertisement page (or, it "adds" advertisements on the page).

This happens both on Chrome and the stock browser.

I used USB debugging to look at the browser request and I think I found the culprit. When the browser loads http://www.google-analytics.com/ga.js the actual code is different. See this screenshot (the green line is where ga.js *should* terminate):

(and the added code goes on...)

I initially thought that some malware changed the hosts file and assigned a different IP to the google-analytics website, but this is not the case since when I visit the above link directly I see the correct JS code.

How can I track which app is doing this?

# Answer
In the end I found out that the router was vulnerable to the rom-0 vulnerability (to test if your router is vulnerable, use this).

So, the issue was most likely caused by someone (or something) who had complete access to the admin interface of the router. I've now updated the firmware (and the test is now negative).
> 1 votes

# Answer
I've encountered the above situation yesterday. After lots of digging, got to this thread, and it led me to the solution.

Apparently, that one of the computers on the network I've visit, was exposed to a malware that modified the router settings. The router was a `D-Link 2760U/E` with default `Admin / Admin` login details.

Using the above credentials, the above malware has changed the "static routing tables" adding their servers to be a man in the middle. **All** non SSL traffic had passed through their service which injected js into the page. I've found a GitHub page who shows the modifications and additions.

It took me a while to understand that all the traffic is coming from a DNS change attack - I have checked and verified that the computer is totally clean and no unknown process / services are running before and while the test.

One of the things they have done is to redirect all google-analytics.com traffic to their server, keeping them under the radar.

So how to resolve it:

**Quick way:**

Reset you router to factory settings - note it will erase all existing settings.

**Long way:**

1. Login into the routers web UI
2. Remove all unknown entries from the static routing tables
3. **Change your login password for the router**
4. Reboot your router.

I hope this post will assist someone.

Regards,
Liron
> 4 votes

# Answer
This **might** be caused by **DNSChanger** malware but that's dead now so it's possible that it's caused by some other kind of malware that messes with a computer's (or router's) DNS settings. Or maybe the router was exposed to the web (see remote management) and someone was able to hijack it and change its DNS settings.

If the same problem affects all devices (PCs included) connected to the Wi-Fi network, then I guess a router reset is in order in addition to doing a malware scan on all PCs connected to the network. You may use Malwarebytes Anti-Malware for that.

On the Android device, clear Google Chrome's data and cache after the router has been reset and the malware scan is complete. This thread on Google Product Forums might be relevant to the issue.

To test whether or not this is indeed a DNS hijack problem, try running `nslookup google-analytics.com` from the infected computer (or Android device if BusyBox is installed) and compare the results for the same command run from another computer that you know is clean.

Check if they both return the same IP addresses or in the case of Google, IP addresses controlled by Google. You can verify whether a given IP is Google's or not by doing a `WHOIS` lookup here: http://whois.domaintools.com/X.X.X.X (x.x.x.x being the IP address)
> 2 votes

---
Tags: malware
---


# Question
Title: How to make my cellphone a router or a hotspot thing with a constraint
My computer is connected to internet but I dont have a router(and I dont want to buy one) to use it on my phone. So I was using the usb "reverse tethering tool" which i could use succesfully.

But now I want to use my phone as a router so that I can connect to internet from anywhere in my room with other phones.

And yes I dont want to buy a router, My PC doesnt have a wifi or bluetooth connectivity.

Thankyou for your time.

Sincerely,

Jasser

I am using samsung galaxy S duos GT-S7562.

# Answer
> 0 votes
This can easily be done by turning on *Portable Wi-Fi hotspot*.

Go to *Settings* -\> *More Settings* under *Wireless and Networks* -\> *Tethering and Portable Hotspot* and turn *Portable Wi-Fi hotspot* on.

After turning it on click on it to configure your connection, where you can change the hotspot's name and password.

But the devices you connect with this phone must have a Wi-Fi adapter and the necessary software. Or else they won't be able to connect.

Also consider changing the security settings incase you are not able to connect, because when I tried it on my phone, I had to turn off security (you will find it in the configuration screen).

Hope this helps.

# Answer
> -1 votes
You can turn your device into a Wifi Hotspot (there is an option in the general settings, usually with the other connectivity settings).

Generally, you will need to pay your Cellphone provider to allow you to use this particular feature (although there are ways to get around this - but that is another thread).

Bottom line, there is an option in the settings - if your phone can support this, you will easily be able to turn it on.

---
Tags: wi-fi, 4.0-ice-cream-sandwich, samsung, samsung-galaxy-s-duos
---


# Question
Title: How do I enter Recovery mode without keyboard or Home button?
The phone is **Samsung Galaxy S2 (GT-i9100)** with **SlimROM** installed recently.

I was using Paranoid Android, and today I flashed SlimROM 4.4.4 and a gapps package. The latter one occured to be wrong for this version of Android, so now I **don't have any keyboard** to use (keyboard won't show, and I constantly get an error message).

So now I want to install another ROM/gapps for my phone, but **the Home button is broken**.

Therefore:

* I cannot install Terminal Emulator to use ADB command line for entering Recovery mode upon the next reboot. That's because I cannot even log in to my Google Play account.
* I cannot use `Volume Up/Down + Home + Power` combination to access Recovery/Download modes while booting. So this also makes it quite hard to consider using Odin as an option.

I have done a research on keyboard and Home button issues, but it seems that no-one has experienced them both at the same time before. Seriously though, can you suggest something to do with my situation? Thank you, and feel free to ask for any clarifications.

# Answer
> 1 votes
Another way to boot the device into Recovery mode is to **use ADB command line** right from your computer. The detailed guide on installation and using is available here.

After checking that your device is recognised by the PC, run `adb reboot recovery` command.

Thanks @GiantTree for the answer!

# Answer
> 2 votes
The best way to get this done is to use Android Debug Bridge (adb).

Get Android SDK on your PC, plug in your Android Device, and run `adb reboot recovery` in ADB shell.

That command restarts an Android device in recovery mode.

Here is a lifehacker article that might be useful:

The Most Useful Things You Can Do with ADB and Fastboot on Android

And here is an extract:

> **adb reboot recovery** Function: Reboot your phone into recovery mode.
>
> A lot of functions like flashing ROMs to your phone require you to boot into recovery mode. Normally, this requires you to hold down a particular set of buttons on your phone for a certain length of time, which is obnoxious. This command allows you to boot directly into recovery mode without performing the complex finger dance of your people.

Hope this helps.

---

PS: this method was already recommended by a user (at the time of posting) named GiantTree as a comment. I am only posting this answer so that others might find this thread appropriate and useful.

# Answer
> 1 votes
Another way. It's been awhile since I used SlimKat but I think it was in Settings \> Security and look for advanced reboot. Then when you hold down the power button and tell the phone to reboot, it will give you a few options, one of which is for recovery.

# Answer
> 1 votes
You can download the app called ROM Manager. It has menu items to go to recovery mode:

See second menu item (source: Google Play; click to enlarge)

# Answer
> 0 votes
Apart from the answers given here, I'll suggest you to use USB OTG cable and connect a physical USB keyboard to it. Then download Android Tuner from play store and reboot to recovery.

---
Tags: custom-roms, recovery-mode
---


title: Android not writing files in sd card

text:
# Question
Title: Android not writing files in sd card
I am not getting why inspite of having a 16 GB SD card in my android the apps from play store are not getting directly stored in SD card by default. Due to this its becoming hard for me to use the device as every time I have to flush lots of data from the device memory to install some new app.

# Answer
Some ROMS have an option Default Write Disk (or something similar) under Storage settings, change that to External memory.
> 0 votes

---
Tags: applications, storage
---


# Question
Title: How do I get list of all application packages together with their activity label from adb shell?
Sometimes I have a trouble matching application's package name in `/data/data/` or `/data/app/*.apk` with the user-friendly activity label I see in GUI.

How do I list application packages together with their activities?

Expecting something like this:

```
$ adb shell list_apps
de.shandschuh.sparserss "Sparse rss"
org.vudroid "VuDroid"
jcpezzullo.statical "StatiCal"
tone.control "Tone Control"
...

```

# Answer
Based on my answer on the question Andrew linked to, this is what should be in your `list_apps` script:

```
for app in $(ls /data/app/*.apk); do
    appname=$(aapt d badging $app | grep 'application: label' | sed -n \"s/.*label\='\([^']*\)'.*/\1/p\")
    pkgname=$(basename $app)
    echo ${pkgname} "${appname}"
done

```

Run this on your Android device.

* Requirements: Either a CM based ROM with Kitkat or higher (which seems to ship with the `aapt` binary) – or a rooted device where you can install `aapt` onto yourself (find it here; tested with Android 4.1).
* Known issues: app name most likely gets truncated when it contains a single quote (see `sed` expression). Not having such one installed here I could not test that.
* Only lists user apps. Easy to fix by repeating the block for `/system/app` ;)
> 0 votes

---
Tags: applications, command-line
---


# Question
Title: Some APKs are autoupdated from Play Store while some are not
A have option on my Play Store account - always auto update apps. Thus I see that some installed apps require update. Mainly Google apps are autoupdated in first term, but I see that even some of them are hung in the "need to be updated" list for some time. But still not Google apps reside in this list for much longer time. How much time will it take to update the apk on my device after a new version is published in the Play Store?

# Answer
Some apps wont update automatically because the permissions they require (camera, storage, etc.) changed. Thats why you have to manually update them, so that you can accept oder decline the new app permissions.
> 2 votes

---
Tags: google-play-store, application-autoupdate
---