# Question
Title: Booting into recovery mode shows blue Recovery Booting text, then gets stuck with a black screen
Phone: Samsung Galaxy S4
Android: 4.2.2 / XXUBMGA

I am on djembey's pre-rooted slim XXUBMGA.

Recovery Mode does not work for me. From OFF mode, I press `Vol Up`+`Home`+`Power`. Then, I see a small blue "Recovery Booting..." text in the top left corner of the screen, but nothing happens. It stays black. If I stop pressing the three buttons, the phone boots normally.

Download mode works for me (VolUp+Home+Power), and I am able to flash using Odin.

How do I fix the recovery mode? Do I need to flash stock recovery again? Would I lose my data if I do so?

Similar question: Blank screen when trying to boot into recovery mode on Samsung Galaxy Tab 2 10.1

# Answer
> 1 votes
When small blue writing appears, let go of just the power button. It should then boot into recovery. Source.

Disclaimer: I am DLAddict on XDA.

# Answer
> 0 votes
i already try download many stock firmware and flash with many version odin but still stuck on samsung logo with blue recovery booting..

My problem solved with kies.i used Tool-Firmware Upgrade and Initialisation..u need to enter your smsung model then enter your S/N.(need stable internet connection).just wait until complete 100%,it ask u to restart..all my software and my data in my internal storage still there..Samsung Galaxy Mega 6.3 GT-I9205.

---
Tags: recovery-mode
---


# Question
Title: How to downgrade, root, and install CM 12.1 on 5th gen Kindle Fire
I just got an Amazon Kindle Fire 5th generation 7 inch tablet. I want to install CyanogenMod but during setup the tablet updated to 5.1.4 and root methods and therefore flash methods are not working.

# Answer
If you plan on rooting a new Fire, it is advisable to not connect to the internet during setup to avoid forced updates. 5.1.2 is required to install CM. Note that 5.1.2.1 does not work but is displayed as just 5.1.2 in settings.

## Enable debugging

From the Settings app open Device Options. Enable developer options by tapping on the serial number several times.
In Developer Options turn "Enable ADB" on.

Your tablet should ask to authorize your computer when it is plugged into the computer.

## Downgrading

5.1.4 can be downgraded to 5.1.2. Needs Android platform-tools (adb) and the 5.1.2 firmware.

I retrieved the SuperTool and 5.1.2 firmware from http://rootjunkysdl.com/files/?dir=Amazon%20Fire%205th%20gen. ADB is also hosted there though I used my copy from the Android SDK.

Power off the Fire and connect it to your computer.
Hold volume down and power for about 10 seconds. A menu should appear.
Select "apply update from adb". (press volume up then power)
Run `adb sideload fire-OS-5.1.2-update-kindle-global-37.5.4.2_user_542168620.bin`
Wait for this to finish. The tablet will return to the boot menu.
Unplug and then press the power button to select the reboot option.
You should now be on firmware 5.1.2.

From here I connected to the internet and was not prompted to update my Fire.

## Rooting

I used the RootJunky SuperTool to assist in rooting.

Choose option 6, "Root your Amazon Fire 5th gen" and follow the prompts. This will install RootKing. I had the most trouble here. RootKing may fail several times to gain root. You may want to manually reboot between attempts. When you get root, continue with the SuperTool prompts to install SuperSu.

## Prevent 5.1.4 Update

Choose option 3 from SuperTool, "Block OTA Updates from Amazon" and follow the prompts.

## Flashing CyanogenMod 12.1

Download from http://forum.xda-developers.com/amazon-fire/orig-development/rom-cm-12-1-2015-11-15-t3249416 CM 12.1.
From http://opengapps.org/ download the ARM-5.1-nano package.
Place both these zips on a micro sd card and insert it into your Fire.

With the SuperTool select option 2, "Install Google Play store". Use Google Play to install FlashFire.

Use FlashFire to prepare your device. In the bottom right corner is a red "+" to add actions. The defaults for the commands are fine. You may swipe away the hints in the command queue.

Add "Wipe".
Add "Flash ZIP/OTA" and select the CyanogenMod zip.
Add "Flash ZIP/OTA" and select the Open Gapps zip.
Move "Wipe" to the top of the command list.
Press the "Flash" button.

You should reboot into the CyanogenMod setup.

## Extra Notes

CyanogenMod lets you enable root from developer options.

I had to install Google Play Games from APKMirror because the Play Store kept giving me error 505.

Kindle Fire specifications can be found on Amazon.
> 5 votes

---
Tags: cyanogenmod, rooting, amazon-kindle-fire
---


# Question
Title: My phone's screen is broken; I'd like to transfer files to my PC, but can't, because Charging Mode is enabled by default
My phone's screen is broken and I'd like to transfer files from it to my pc, but I can't acces them as Charging Mode is enabled by default. Does anyone have any idea how I can get access to my files through my pc? My phone is a rooted Motorola Moto X Style, running Cyanogenmod 13.

Thanks alot!

# Answer
You might be able to access MTP mode via TWRP (Which i guess you have installed...) If you've installed TWRP, simply boot into recovery and connect your USB cable, you should be able to access your device via MTP then.

If you're not using TWRP, you can

Another alternative, again from , would be using `adb pull` to retrieve the files. This is usually supported by all recoveries.
> 0 votes

# Answer
nothing to worry about u can just download motorola device manager v.2.5.4 from motorola website.then try to transfer your data to ur pc. becuse now it will act as usb device.

if that doesnot resolve ur problem download motorola e toolkit setup . if further problem exist contact me
> 0 votes

---
Tags: cyanogenmod, 6.0-marshmallow, file-transfer, broken-screen, mtp
---


# Question
Title: Cleaner asks to delete some files. How do I know what these files are?
I have downloaded a cleaner app and it works great but it has asked to clean and delete unwanted files and also disable apps. I don't know exactly what all these are:

* Cache
* Junk
* Residual Files
* AD Junk
* System Temp Files
* Obsolete apks
* Memory Junk
* Big files

If I click on one of these its going to delete the whole category. What are all these?

# Answer
> 4 votes
Well, each of these things mean something. I hope. Its an app, right? ;)

Well,

**Cache** is, well, your device's cache. Too frequent cleaning this is a tad counter-active, as most apps will immediately fill this back up. Its like trying to dry a towel. Outside. In a heavy rain.

**Junk, Memory junk, AD junk** \- Stuff you dont need, and is an actual waste of space. Its like rubbish piling up in a bin, and apps will fill this back up, but not very quickly. To elaborate:

* **Junk** Is general backfill of files that are not needed often, but may not necessarily be cache. For instance, You may need a backup script once every years its used that rarely, it may be considered **junk.** Keep in note many apps have different meanings for junk.
* **Memory Junk** is basically the Cache-again. I don't know why, really, it may be a double wipe, which is still a tad pointless
* **AD Junk** is a rarer one. Normally, ad's (or adverts, for those who are not fans of acronyms) are downloaded as needed, then removed from the system after. Some apps, however *cough*apitoide*cough* like to clog up the storage by saving every AD (and thumbnail) it has available.

**Residual Files** are files that were useful, but not anymore. For example, residual files can include your minecraft worlds file AFTER you uninstalled MCPE. Wipe them unless you are planning to re-install the app they belong to.

**System Temp Files** is stuff like logs and such which can be useful to a modder or debugger, but otherwise can be a tad space-hogging. Never by much though. As the term "temp" suggests, these are files that were of *temporary* interest to some system app but obviously forgotten to delete afterwards.

**Obsolete apks.** Oh boy. When Your cleaner app (It sounds like Avast Cleanup, but this still applies regardless) says this, it means apks that you have already used to install an app, so ASSUMES they are no longer needed. If you backup your apps, however, It will probably think they are obsolete and delete them.

**Big files** are ALL files on the internal storage that pass a certain size, which is either 10Mb or 30Mb (so not that big). Dont worry, this is disabled by default, so you will have to tell it what to wipe exactly here. (Or just tell it to delete all big files, and do a pseudo-factory reset.)

**Hope it helps!**

---

Credit to Izzy, who reminded me that obsolete apps can mean backups to cleaners(and polishing the answer) (Izzy did NOT add that bit) and to the Death Mask Salesman, for pointing out how pointless cache cleaning can be.

---

*The answer is tagged as community wiki, so feel free to tweak and modify it!*

---
Tags: files
---


# Question
Title: How to buy apps on Google Play while Google always reject my payments via Visa?
Google always rejects my payments via Visa due to currency fluctuations and high bank fees. What should I do? Are there any alternatives or legal workarounds? FYI: Google Play cards is not available in my country.

# Answer
Try linking your credit card to you paypal as google play accepts paypal now.
> 0 votes

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


# Question
Title: i can't get rid of my android mannager lock
yesterday i lost my phone, but i used android mannager to track it,put a message on the screen to that i know the location and to put a lock on it. Today i went to where google showed me my phone was located and went and got my phone back.Only i can't get rid of the lock, first it just ask's for my pin when that is correct it ask's for the google password i had to pick with android mannager,but when i enter that one correct as wel it shows me the message i entered with android mannager while the phone is stil locked. if anyone knows what i need to do and can help me is verry appriciated. sry for the spelling, i speak dutch.

# Answer
Boot into recovery and do a full wipe and login with another google account. Did you sent a lock request with android device manager. Make sure you are entering the correct pin and the password combo. Can you be more specific about the part which comes after you enter the pin which you gave with android device manager.!! Hope this helps
> 0 votes

---
Tags: lock-screens
---


title: How to enable auto sync on WiFi only

text:
# Question
Title: How to enable auto sync on WiFi only
I want to have Auto Sync on my android always enabled, but I want it to only work while on wifi. I don't want to enable/disable it everytime I am going from wifi to mobile data. So is there a way to configure it to only be executed while on wifi?

To clarify. I have restricted some apps from background data usage while on mobile networks. But what I want is accounts auto sync to be restricted.

Is there a built in way to do this without using any third party apps?

# Answer
> 3 votes
There is no way to do this without the use of third party apps. You can use Tasker to automate your phone. You can add a task that enables auto sync when you're on WiFi.

The stock android doesn't provide any option that says "Auto sync only on WiFi". only way to do this is through third party apps. By the way, there are other automation apps also on the Google Play. You can go and check them out.

Another way to do this is to use custom roms. Many custom ROMs have built in modules or profiles to set while you're on your favourite WiFi network. Cyanogenmod is a good option to go with. I don't remember exactly but i think there is an xposed module that does this job. Feel free to check them out. Hope this helps!!

Link to Tasker app

---
Tags: wi-fi, sync, 5.1-lollipop
---


# Question
Title: How can I get deep sleep -> coma for max battery life as comms platform?
I'm not an Androidite, just very curious.
Arduinos have a timer-driven deep sleep mode that reduces their power requirements by 1000 or so. But it's a specialized and limited device, and a building block rather than a system/platform. You can add wifi or bluetooth to an arduino project - a good solution if you're near wifi or BT.
Is there any deep sleep thing like this for Android phones? Something that will get weeks out of the phone battery, because it's NOT being used for "any time" communications? I know I'm talking opposite for what the phone is designed for: Always ON, always active, always waiting for in-bound calls, or responding to system events or user input. Services STAY ON, "just in case". I'm thinking that a way around the communication distance limitation for arduino would be to: Use the arduino for sensing/deep sleep cycles, and tie it to a dedicated pre-paid phone for access to the data plan.
By use case / design, the phone isn't going to have any (many) in-bound calls - it will be used periodically as a hot-spot to allow the other device (arduino) to upload data to the web. When the cheap, pre-paid device isn't actively sending data, I would expect it to go into a medically-induced coma until it's needed next. A regular Android, in "standby" mode will last what... a couple of days? I would want a way to make that battery to last weeks or more. Without moding the phone to bypass the ON switch, is there a way change settings or whatever to totally hybernate/freeze/halt/drop/suspend most regular applications/etc to stretch out the available power as long as possible? Either have the phone go comotose but with a schedule "wake-up and check"s to signal the arduino that it can transmit data; or have the arduino kick the phone into activity long enough to upload any data to the network.

An example use case for this would be: I want to monitor nest activity, and water, air, soil temperature on an island in the middle of a lake. I don't want to have to row out to the island to see the data. I don't have "real" telemetry gear / transceivers, etc. I want my nifty little arduino to log the inputs and periodically, send a batch of data out to the cloud. I want to use the existing telcom infrastructure via a cheap pre-paid cell phone, if I can, but I need it to be in service for weeks, so I want the phone do be so low power and so optimized that it only turns on to send a batch of data and then immediately goes dark again, until the next cycle.

# Answer
I think you're looking for a feature called "Doze mode" in android. Its been around since Android Marshmallow (6.0.1) . If the phone is idle the device enters in a sleep mode, pretty much what you described in your first paragraph. It suspends all the background activity and saves battery for a long time. Doze mode is enabled by default in devices running Marshmallow or higher

Also you can use an app called Greenify to hibernate other third party apps that you're not using. This also saves a lot of battery for me.hope this helps

A brief description about Doze mode in android
> 0 votes

---
Tags: settings, battery-life, standby, power-options
---


# Question
Title: Google Play Service 9.2.56 drains battery within 30minutes
Google Play Service 9.2.56 drains battery within 30minutes

With the new version of google play service it drains the battery of older devices instantly. It gets incredibly hot, barely touchable.

There are tons of threads appearing on the web. Some here Google Groups Github

The only solution so far is to completely uninstall the service. You can not use older version since it will auto update itself soon or later. It does not care about update restrictions.

I am using a Samsung Galaxy S2 4.0.3

Anyone got an idea on how to solve it without uninstalling?

# Answer
> 1 votes
My "solution" is freezing Google Play Services 9.2.56 with the disadvantage that some Apps relying on that service will not work anymore. Restore to the previous 9.0.28 version does not solve the problem, because it will automatic be updated to 9.2.56. I tried to find a way to contact the Android developer team at Google, no success.

# Answer
> 0 votes
You will have to flash the whole Gapps(Google Apps) package of the same version. This happened to one of my friends. He switched to a Custom ROM and flashed the newest Gapps Package he could find. This is the only solution by now. Older devices have this problem because of the newer frameworks of the application. As you're using Android Ice Cream Sandwich which is a bit out-dated. Using a custom ROM will get you a newer flavour of Android such as Jelly Bean or KitKat

Google Play services have also had this issue in the past. You can use Greenify to hibernate the app (if you're rooted) but it will cause several apps to stop functioning.

As of custom ROMs, Cyanogenmod is a good option to go with. Download the latest stable version and flash it in your device. You probably don't want to flash a nightly because it's not fully stable and have features that are in beta state. You would have to root your device for this.

Some documentation about rooting Samsung Galaxy S2 Good Luck !!

---
Tags: 4.0-ice-cream-sandwich, google-play-services
---


# Question
Title: How to open Google Drive offline? (I.e. where is the Google Drive app icon?)
I want to open Google Drive on my android tablet (Samsung Galaxy Tab S SM-T700), and I want to do this while I'm offline, as opposed to accessing my drive through Chrome. (IOW, I want to access the items I have configured for offline access.)

I can't find its icon

...among the other app icons, nor anywhere else. Also, I can't find any folder called "My Drive" in the tablet's storage.

(FWIW, I have rebooted the tablet, just in case.)

The Google Drive app is definitely installed (it shows up under Settings \> Applications \> Downloaded) and up-to-date.

# Answer
> 1 votes
Maybe you want to find the widget?

Google Drive has a widget which looks like a mini version of the Google Search Bar. It includes the main function to access Drive, another button for uploads ('Save to Drive'), a camera icon which I assume saves to Google Photos, and the '+' icon to create objects like folders, new Google Docs, etc.

I have this on my home screen as opposed to the normal Drive icon, though I also have that at my disposal.  In this image its in the top right slot.

---
Tags: google-drive
---


# Question
Title: Project Fi - Calling Through Hangouts Compared to Calling Through Phone
I use Project Fi for my Nexus 6P running Android version 6.0.1.

I noticed that calling through the Hangouts app leads to much clearer audio than calling through the Phone App.

I have been using Hangouts for outgoing calls, but incoming calls automatically use the Phone app, and, moreover, it's much more convenient to use the dialer in the Phone app than to type the number in Hangouts.

Apart from the desire to figure out what's going on here, is it possible to set the Hangout app as the default Phone app?

# Answer
> 1 votes
Outgoing calling via Hangouts Dialer app uses 3G/4G LTE/Wi-Fi data, and utilizes high-quality voice technology, depending on your connection (it will sound better on LTE vs. 3G.) It's very similar to how other VoIP solutions work (Viber, Line, Skype, etc.) with the added bonus of being able to call domestic landlines and cellular providers at no extra cost, aside from higher data usage of course.

Calling via the built-in Phone app on the other hand uses regular voice service, where your calls are routed over the cellular voice network of whichever provider Project Fi is currently connected to (T-Mobile, Sprint, or US Cellular currently.) The "HD Voice" feature is not available on Project Fi yet, and therefore the voice quality will be comparable to that of regular telephone service.

Unfortunately there is no way to use the Hangouts app for incoming voice calls for accounts that are activated on Project Fi. It's only possible for regular Google Voice accounts by enabling the "Incoming phone calls" option in Hangouts -\> Settings -\> your GV account. This is a known limitation of Project Fi.

---
Tags: calls, hardware, google-hangouts
---


# Question
Title: Android N Flashing, (FAILED: Remote Size Too Big) How to increase partition size?
So im trying to flash my phone to Android N.

Im going to be manually flashing each img file, however when I use the fastboot flash bootloader (location).img. It gives me this error:

target reported max download size of 134217728 bytes sending 'bootloader' (1434 KB)... OKAY \[ 0.047s\] writing 'bootloader'... FAILED (remote: size too large) finished. total time: 0.062s

I can clearly understand that the pre-allocated space for that partition on my phone is less than the one it requires.

So how do I re-partition them, so that I can go ahead and install Android N. I have no problem if this reduces my usable memory, but I can't figure out how to re-partition.

# Answer
> 2 votes
The Android N Developer Preview images are designed specifically for devices listed on the download page. Currently Nexus 5X, Nexus 6P, Nexus 6, Nexus 9/9G, Nexus Player, Pixel C, General Mobile 4G, and Sony Xperia Z3 are the **only** devices that have official N Preview builds. You **cannot** flash these images onto other phones. At best your phone simply won't boot, and you'll have to reflash it to stock firmware. At worst - you can render your device completely inoperable by flashing an incompatible bootloader, and you won't be able to revert it to factory defaults.

If you want to try Android N on a different phone, your options are:

* Wait for the manufacturer of your device to release an official version for your specific device
* Wait until 3rd-party ROMs such as CyanogenMod can be built either from the source code (provided by Google in AOSP Project after the final version is released,) or cobbled together from compiled binaries retrieved from supported devices.

---
Tags: rom-flashing, partitions
---


# Question
Title: Use different google account for in app purchases?
so I'm signed into an app (pokemon go) with my primary google account. However I have credit on my secondary account that I want to use to buy some in app purchases. It won't let me do this and only gives me options to pay using the first account, this makes sense but its quite annoying. Is there any work around?

# Answer
Figured it out. I just uninstalled the app, logged into my second account on my pc on the play store website. Then I installed it from the website using the seconds account. After that I logged into the pokemon app using my first google account then i was able to spend the credit from my second account.
> 1 votes

# Answer
Once you are logged into an account, you have to use that account. It is the way it "remembers" or saves progress. What you could do if you had say, 20 bucks on your other account. Send gift credits to the account you want to use. I think the increments are in 5 only though so it may hinder you from adding more. I hope this helps.
> 0 votes

---
Tags: google, in-app-purchase
---


# Question
Title: Why are APK'S buggier than Play store downloaded apps?
I had downloaded an early copy of some game, as its apk was put on apitoide after the app was available for 15 mins. Its an app that allows you to fling spheres at imaginary monsters.

Anyway (Ha-Ha!) The apk was a horrible, buggy mess, whilst the play store version was significantly cleaner.

\** Is there any reason to why APK's are more 'broken' than their play-store versions? \**

# Answer
The Play Store version is the official version, which often has updates pushed out on a regular basis. Developers put effort into maintaining the play store version. If you are using an APK version downloaded from elsewhere, there is both the danger that you have put malware on your device and the high probability that it's older than the official release.
> 2 votes

---
Tags: google-play-store, apk
---


# Question
Title: I had root and I just updated my phone to 4.4
I updated my phone to 4.4 while it was rooted, and now in my setting its says its 4.4 and when I wanted to download pokemon go it said ''Your device isn't compatible with this version''

# Answer
Updating from the stock vendor while in root will unroot the device as the new image downloaded is not rooted.
Many devices are not compatible with many games.

Can you be more specific ! Which device you're using and what ROM you're using ?
> 1 votes

---
Tags: google-play-store, pokemon-go
---


# Question
Title: for all Androids: does airplane mode always prevent location tracking?
(Apologies if the answers to the following questions seem obvious, but I am not an expert, so thought I'd ask.)

The larger question can be broken down, but I don't believe the subquestions are worthy of separate SE questions, so here goes:

**1.** True or false: *when one puts* **any** *Android device in airplane mode, one disables all signal transmission from the device.*

I believe the answer to this is *true*, but would be interested to know of, e.g. (in descending order of interest),

* the extent to which this statement is not true for all Androids OOTB. E.g., are there specific makes/models for which this statement is not true?
* the extent to which one or more Android devices can have airplane mode turned off by an external signal. Example scenario which comes to (my paranoid :-) mind:
    + could a private anti-theft service, presumably with matching app, ping a device such its app takes the device out of airplane mode to respond?
    + do any governments require devices purchased in their jurisdiction require to respond to some external signal?

**2.** True or false: **any** *Android device which cannot transmit signals cannot be geotracked.*

Again, I suspect this to be true, but would be interested to know about non-trivial ways in which it might be false. An example of a non-trivial defeat would be a device that has a factory-installed passive RFID tag. An example of a trivial defeat would be for a user to attach a GPS beacon to her/his device.

If both of those are true, then one cannot (trivially) geotrack the location of an Android device in airplane mode ... unless I'm missing something ...

# Answer
Answer to both is: "Depends".

### Airplane mode

What is that nowadays, where air planes allow you to use WiFi and Bluetooth? Don't say this is an unrelated question in this context. Not only does the term originate there, but it can be as variable as how each airline deals with it:

```
$ adb shell settings get global airplane_mode_radios
cell,nfc,wimax,bluetooth,wifi
$ adb shell settings put global airplane_mode_radios "cell,nfc,wimax"
$ adb shell settings get global airplane_mode_radios
cell,nfc,wimax

```

What's that? The first is what you probably expected: all kind of signals are toggled by airplane mode (line 2). But it can be changed (line 3), and then looks very different (line 5). I've e.g. excluded WiFi on some of my devices. Different manufacturers/ROMs might have different presets. So there can't be a general answer unless you *define* "airplane mode". And of course there are apps that can automatically toggle all that (at least on rooted devices) – your "anti-theft" guess is a very good example for that. A paranoid person could even use e.g. to configure a "watchdog": "Whenever my device leaves a configured geofence, automatically report its location to my server in 30s intervals. If needed, enable WiFi or mobile data for that." Might be complex, but doable. On non-rooted devices, that's limited though – not at last by:

```
$ adb shell settings get global airplane_mode_toggleable_radios
bluetooth,wifi,nfc

```

Again only an example, which might not be valid for each and every device (concerning line 2). You might already have guessed it:

```
adb shell settings put global airplane_mode_toggleable_radios "bluetooth,wifi,nfc,wimax,cell"

```

And with that, everything can be toggled again. According to a test performed by Prahlad Yeri, this even works on non-rooted devices. Settings applied this way survive a reboot (but of course not a ).

### Any Android device which cannot transmit signals cannot be geotracked

Without some paranoia, I'd give a "yes" to that – though to be exact, the condition is hard to meet: as soon as it's powered up, it will *emmit* some "signature" which one *could* track – but that would need quite expensive equipment, and the range would be quite limited :)

If in this context you speak of an "attached GPS beacon": well, you could track a cake that way, or a cat, your cigarette box, or a brick for that – it no longer has anything to do with the device itself. Almost everything can be "bugged".
> 2 votes

---
Tags: geolocation, gps-tracking, airplane-mode
---


# Question
Title: Error when flashing recovery to Moto G4 Plus Xt1640 - Image not signed or corrupt
I recently bought a new android phone (Moto g4 plus). Coming from the iPhone, I was eager to root it and take advantage of all the features.

The problem is that whenever I try to flash a recovery image, I get this error:

```
C:\Users\myuser\adb>fastboot flash recovery recovery.img
target reported max download size of 536870912 bytes
sending 'recovery' (12496 KB)...
OKAY [  0.400s]
writing 'recovery'...
(bootloader) Image not signed or corrupt

OKAY [  0.197s]
finished. total time: 0.601s

```

Keep in mind that the bootloader IS unlocked, I even get the warning when restarting the phone. Also this does not happen with just one image file. Every single image file gets this error. I have tried many different versions of TWRP, CLW, etc and all of them get this same error. Does anyone know how to solve this?

# Answer
Yeah, I had the same error. The US XT1644 variant can't use the boot.img for the XT1643 and below. I was able to root by installing SuperSU. Run this command:

fastboot boot twrp-3.0.2-0-athene.img

Make sure you copy the SuperSU zip file in the /sdcard/TWRP folder on your device. Then when twrp loads, you can just pick the zip file and install.
> 4 votes

---
Tags: rooting, adb, rom-flashing, fastboot, motorola-moto-g
---


# Question
Title: how to pass google play games data to another user
My son is playing games on a tablet configured with my gmail. He is now old enough to get an account of his own. The only problem is that he plays a lot of games via google play games and I wouldn't like all his data to be deleted. Is there a way to transfer all the data to the new account?

# Answer
No. google is going to be bringing a feature soon that lets you share your apps with up to 6 peoeple. besides that the only option is the illegal option which requires root and to know where the game data is and copy it from one device to another.
> 1 votes

---
Tags: google-play-store, google-play-games
---


title: Gapp on Cyanogen 13 not working

text:
# Question
Title: Gapp on Cyanogen 13 not working
First of all, sorry about this question, there are loads already out there, but unfortunately none have fixed my issue, or at least I haven't been able to fix it.

So I have a Oppo find 7, I followed the `theunlockr` tutorial to root my phone, install a new rom (cyanogen) and gapp. After struggling a lot (first time I did this kind of thing), I finally managed to back up my colorOs with my old data, wype data, flash the new rom. So far so good, but I don't have play store to install anything, or sync my account.

So I downloaded Gapp, followed the indication, flashed it, restarted, but always had loads on `Unfortunately, Google ... has stopped`

I have read quite a lot of options to fix this issue but none of them have worked so far. So here is what I have tried:

* reformat everything, install cyanogen, install gapp, restart
* reformat everything, install cyanogen, clear cache, install gapp, clear cache, restart
* reformat everything, install cyaogen, restart, start android, turn off, install gapp from recovery mode, restart

(Tried for both nightly and latest release)

I have read somewhere that I needed to grant authorisation to com.android... from my pc, tried that with no success

According to the website I used (https://download.cyanogenmod.org/?device=find7 and https://devs-lab.com/android-gapps-download.html), I am using the latest versions of cyanogen and gapp. I also made sure I am using gapp for android 6 and 32 bit device.

Can anyone see anything obvious that I have missed ? I must have tried starting from scratch flashing cyanogen and gapp since yesterday, but maybe I am missing something obvious that I can't see ! Thanks a lot in advance !

# Answer
LOL i went thru this few weeks ago put cyanogenmod and gapps on the sd wipe your system,data,boot . flash cm13 then gapps then in twrp if you have it if not flash itdo a factory reset. that will remove the gapps issues boot into cm13 and all should be good
> 0 votes

---
Tags: cyanogenmod, custom-roms, oppo-find-7
---


# Question
Title: Will hangouts phone call use data or cellular
I am going on a roadtrip from Canada to the USA. I am purchasing a ATandT sim card that only allows for US calls and texts (at a reasonable price).

I want to use hangouts to call people, but have never used this feature. Does a hangout phone call use data just like video call does? Or will hangouts first check if this contact has a phone number associated with it, and instead use that.

Th reason I ask is because I don't want to be calling someone and assume I am using data, when infact it used cellular and I am paying $1 per minute.

# Answer
> 1 votes
Being an online mobile app, Hangouts uses only data (your bandwidth) to make the calls, not your actual telephone line. As per this Google support link, calls to most destinations in USA and Canada are free of cost from Hangouts so you shouldn't be billed anything (but you will be billed for the data/bandwidth used, of course!)

The exception is a few rare locations mentioned in that link that cost 1 cent per minute. And those calls will not be billed by AT&T, to pay for those calls, you'll have to purchase Google calling credit from here separately.

Reference:

https://support.google.com/hangouts/answer/3187125?hl=en

> Or will hangouts first check if this contact has a phone number associated with it, and instead use that.

You can either dial a number directly, or if you have that person in your Google contact list, you just type the name and number will come automatically. Even if the person doesn't have a number, Hangouts will work and you'll be able to make the call since that contact's identity will be based on the Google account, not their telephone numbers (check the *Making a call with Hangouts* section in the referred link). Google is all about seamless communication!

**Edit**

But what I don't understand is why are you paying for both a data plan and talktime to AT&T? As per the support link, US & Canada calling is mostly free from hangouts, so if you already have a data plan, I don't see any need to buy that sim card for "making calls at a reasonable price".

---
Tags: google-hangouts
---


# Question
Title: Is there an equivalent to iOS "Reset Home Screen Layout" on the Nexus 7?
On iOS, "Reset Home Screen Layout" auto-arranges your application icons. Is there an equivalent for this on my Nexus 7 Android tablet? Right now my icons across several screens.

# Answer
> 10 votes
Go to **Settings**-\>**Apps**, swipe to **All**, scroll and press **Launcher**, then select **Clear data**.

Your home screen is as good as new :)

UPDATE: As suggested by Chahk below, a good way to avoid cluttering your homescreen is by going to the **Play Store** then going to **Menu** -\> **Settings** and un-checking the **Auto-add widgets** option.

# Answer
> 1 votes
On newer devices/OS versions (i.e. Nexus 5X), try going into Google App instead of Launcher, select Storage, Manage Space, CLEAR LAUNCHER DATA.

---
Tags: launcher, nexus-7
---


# Question
Title: Can I install Ruby and Ruby on Rails on an Android?
Aware that this is a bit mental, but can I install Ruby on a Galaxy S4 running Jelly Bean 4.2? A console where I can install gems, rake routes and run the Rails server, and browse to my application by putting 0.0.0.0.3000 into Chrome?

Would be excellent for testing *little* ideas and concepts I have while on the go!

Aware that Android isn't UNIX, but good God if they can install it on Windows, they can install it anywhere!

# Answer
The Android Scripting Environment said to plan on Ruby. Might be worth a check how far they got; at least they're tagged "JRuby" at Google Code. According to their project page:

> Scripts can be run interactively in a terminal, in the background, or via Locale. Python, Perl, JRuby, Lua, BeanShell, JavaScript, Tcl, and shell are currently supported, and we're planning to add more.

But be also aware of:

> SL4A is designed for developers and is alpha quality software.

An interesting article on this topic which you might want to read is Hacking Android during the holidays. It describes an (successful) attempt to setup and use SL4A to be used with a.o. Ruby.
> 3 votes

# Answer
this can be done

1. Compile Ruby and Nodejs for android
2. Install on device and configure with c/c++ ide (You can use C4droid,CCTools,Terminal IDE.... for installing the expansion modules on с/с++)
3. Install rails ($gem install rails)

example:
<sup>(Click image to enlarge)</sup>
> 6 votes

# Answer
As for ruby, you may try Termux.

With batteries included. Can you imagine a more powerful yet elegant pocket calculator than a readline-powered python console? Up-to-date versions of perl, python, ruby and node.js are all available.
> 3 votes

# Answer
In theory, yes you could do this, but there would be some significant limitations. You'll almost certainly need a *rooted* Android device.

For instance, you wouldn't be able to just `gem install anything` and have it work. The problem is, the phone is too resource-limited to run a compiler, so you can't compile either Ruby, or any gem that needs native libraries.

So the first way I'd go about this would be to cross-compile ruby and RubyGems with the Android NDK and then side-load them onto the device. At this point you've got `ruby` and `gem` and can start experimenting.
> 0 votes

# Answer
Actually, I modified CyanogenMod to create empty "/bin, /lib, /usr, /var, /svr, /home, /media, etc, etc" and then modified "${source\_root}/system/core/include/private/android\_filesystem\_config.h" to include rules for the directories and then modified my external sdcard so it wouldn't mount as fuse or with the sticky bit set (it would set root:sdcard\_rw ownership to all file inside) and after start up I ran a script that mounted the Linux arm root directories on the external sdcard to the empty versions in Android's root. The embedded version of glibc was used with a Kali Linux armhf chroot image I created, but it didn't have ruby or metasploit. So I followed some directions about compiling ruby 1.9.3 with svn or something and then used that to install metasploit, the only thing was that postgresql didn't work because socket and file creation are very permission sensitive and sockets may have been involved, so no postgres database, have yet to try to connect to a db on another host though. Apache2 worked, I did the whole /etc/init.d/apache2 start and viola, "It Works!" you know that if you've seen it.

So in short, yes, you can compile ruby and many more programs on Android, glibc just has to be available, ie /lib directory and contents on Linux.

And as a side note, I used a Galaxy S III Sprint with 2GB of RAM. Python works great, I just started experimenting with Unix sockets with python, they connected in /sdcard but I need to learn more about Android's security policies on sockets and database creation before I move any further with getting metasploit and working with a database working on Android + glibc.
> 0 votes

---
Tags: development
---


# Question
Title: Android phone will only boot into recovery and boot loader
My HTC one will only boot into the recovery or the bootloader. I am trying to flash a stock ROM to my phone from the terminal on my mac, but I am getting this error:

```
Mikes-MacBook-Air:HTCOneRoot Mike$ ./fastboot-mac flash zip ATT-3.17.502.3-Stock-Rooted-DEODEX.zip
sending 'zip' (1114992 KB)...
OKAY [ 37.597s]
writing 'zip'...
FAILED (remote: not allowed)
finished. total time: 37.618s

Mikes-MacBook-Air:HTCOneRoot Mike$

```

# Answer
> 1 votes
I don't know how you came up with that command line, but it appears to be incorrect. The format of the `fastboot flash` command is:

```
fastboot flash *partition* *imagefile*
```

I've never heard of a phone with a "zip" partition: they're usually called "boot", "recovery", "system", and "userdata".

My guess is that you need to unzip the zip file you've downloaded, which will give you files named something like "boot.img", "recovery.img" and "system.img". It may also include a script that already has the right `fastboot` commands to flash the whole system (but you'd need to rename `fastboot-mac` to `fastboot` to run it), and/or a readme file explaining the process. Read it carefully and follow the steps exactly. Guessing what arguments to give to `fastboot` will probably result in bricking your phone.

# Answer
> 1 votes
HTCs have a locked bootloader preventing flashing. Use a windows PC and install HTC one usb drivers get them here

Goto htcdev.com/bootloader to get unlock code that you will be needing and install Windroid toolkit to perform the process which you can get here

---
Tags: rom-flashing, rom, htc-one, twrp
---


# Question
Title: Data Recovery - How to Restore Deleted / Formatted Files on HD Micro SD Card
Background:

I put in a friend's SD Card to format it because it was having problems. Then I put mine back in and I think my phone formatted my SD Card. I had a ton of pictures on there that are now gone! I put the card into the computer and there's only 2mb of cache files on there and none of the original directories.

I already tried the following freeware recovery applications:

1. Undelete 360
2. Recuva

Neither of them were able to retrieve any files.
Undelete took 1minute to scan for files and came up with 0 files. Recuva took 10 minutes for their "deep scan" which doesn't seem thorough enough at all for this 8GB SD Card. I need something that's a lot more heavy duty. I don't mind paying for an application to get the data back if necessary...

Questions:

* Which application can I use to recover my deleted picture files from my 8GB HD Micro SD Card?
* Why did Anroid format my SD card?
* How can I tell if it's a phone problem, data problem, or SD Card problem?

# Answer
> 15 votes
Take a look at PhotoRec.

There are also similar question on Super User that may help:

Here's the full list of Data Recovery Program links:

# Answer
> 0 votes
Here are a few more to the list:

Pandora Recovery: It is very specifically recovers deleted files on drives formatted with the NTFS file system, not the older FAT or FAT32 file systems.

Puran File Recovery: It is a free file recovery program. The interface is simple and straightforward, simply select the drive letter or physical drive you want to recover from and start the scanning process.

Android Data Recovery: This program used to only retrieve deleted files from rooted Android devices and now it adds a new feature for SD card recovery.

---
Tags: external-sd, data-recovery
---


# Question
Title: How do I know 360 Security antivirus app really works?
I have an Alcatel one touch fiercexl & 360 Security is the antivirus/cleaner app I have. I'm not entirely sure it even works like it says it should. Aft I use it & leave the app, and then go right back to it, it seems like (almost always) it'll have just as much (if not the same) things to do. Like Clearing cache, cool down battery, boost, etc. Also if I get a message that says"warning your alcatel has viruses, & You have to do an antivirus scan before phone is damaged" it always says phone is secure no viruses detected. Then why did I get the message in the first place? Is it also fixing the problem while scanning? Also why doesn't cleaning junk also cover app cache? It makes you do it manually in advanced clear. How do I know if it is actually working correctly or if I need a different antivirus? Can you recommend one for me if I need it?

# Answer
> 2 votes
First, That app is shit !
Second, It does nothing but clearing junk and cache of the apps on your device.
It will always prompt you with ads and unwanted bullshit.
There is no such thing as virus in your phone. If it were then it will make you almost impossible to operate your phone as the malware and torjans designed these days are pretty cool.

Clearing app junk and cache is now a built-in feature in android.
The memory booster does nothing but killing all the running apps in the background.
Friend! My advice is to un-install that app ASAP !! save some memory than having an useless app

---
Tags: downloading, google-apps, antivirus, app-ratings, web-market
---


title: I deleted Google Settings App

text:
# Question
Title: I deleted Google Settings App
I deleted the Google Settings App on my Xperia and now I can't use Play Store anymore. The reason I did this in the first place is that I was trying to update my whatsapp but insufficient storage error kept occurring so I thought I would delete those applications I don't use. Now that I know I shouldn't have deleted this one in particular, how can I get things back to the they they were?

Thanks

# Answer
> 0 votes
Google app is supposed to be built into `system/app` I wonder how you managed to uninstall it, unless you have root access.
Anyways! What you can do is Download the stock firmware image for your device from the vendor's site and flash it in your device! All the things will be reverted back to default and normal !!

I don't know which Xperia you're using with Android ICS so I won't be able to provide you with links and tuts. Good Luck!!

---
Tags: 4.0-ice-cream-sandwich, google-play-store, google-settings
---


# Question
Title: TWRP fails to decrypt data on OnePlus One
During charging my OnePlus One turned off and I wasn't able to turn the phone back on by pressing the power button. I wasn't able to get the phone to recharge. I managed to boot to recovery (`power + volume down`). Now TWRP fails to decrypt with the current, correct password and can't be used in any way. I have rebooted several times, considering doing a factory reset.

TWRP error I get:

```
E: Unable to mount storage.
Full SELinux support is present.
E: Failed to decrypt data.

```

---

Latest TWRP and a recent CM 13 nightly ROM installed.

# Answer
> 1 votes
This can happen due to many reasons ! A common issue is the fail in the boot order sequence which indeed is stored correctly in the TWRP from which you booted into. Now, Are you able to boot through the normal method ? . If not, then boot to bootloader and select the normal startup option. Try fixing permissions from TWRP and see if it fixes the problem. Good Luck!

---
Tags: twrp, oneplus-one
---


title: phone not coming out of recovery mode

text:
# Question
Title: phone not coming out of recovery mode
Yesterday an update came to my mobile. I updated and was installing the update an then an error occured. After that i restarted my mobile and from then on a no command screen is coming. My mobile is not rooted. Also in the downside it is showing No .zip file in internal storage. Please help asap.

# Answer
Samsung Galaxy S4 Step 1 Power off the device, then remove the battery to make sure the phone is completely powered off. Reinsert the battery.

Step 2 Press and hold the “Home” button, “Power” key and “Volume Up” key simultaneously until the phone vibrates. Step 3 Release the “Power” button when you feel the vibration, but continue to hold the “Home” and “Volume Up” keys. The Android Recovery screen displays. Release the “Volume Up” and “Home” buttons.

Step 4 Press the “Volume Down” key to scroll to the Wipe Data/Factory Reset option, then press the “Power” button to select the option.

Step 5 Press “Volume Down” to highlight the “Delete All User Data” option, then press “Power” to select. The device resets, then the screen displays the “Reboot System Now” option.

Step 6 Press the “Power” button to reboot the device into normal mode.

HTC EVO 4G LTE Step 1 Power off the device, then remove the battery to make sure the phone is completely powered down. Reinsert the battery.

Step 2 Press and hold the “Volume Down” key, then press and hold the “Power” button. The device powers up to the Android Recovery screen.

Step 3 Release both keys when the Android Recovery images appear.

Step 4 Press “Volume Down” to scroll to the “Factory Reset” option. Press the “Power” key to select. The device is reset to factory settings, then boots back up into normal mode. Hope this will help you
> 0 votes

---
Tags: recovery-mode
---


title: Error in updating google play store

text:
# Question
Title: Error in updating google play store
My problem is similar to that posted by Daniel.

Trying to update after i have uninstalled it to factory version. Tried updating, it downloads and gives an error at the time of update. It gives an error code as **924** asking me to troubleshoot. Please help.

# Answer
According to AndroidPIT, this error *usually occurs when trying to download larger applications. The app downloads, but the error message is displayed, saying the installation was unsuccessful do to an error.*

As solution, the mentioned post suggests to *head to Settings › All › Google Play Store › Uninstall updates. Once you've done this, try downloading the problem app again.*

There's also a Youtube video on this issue.

Another article holds two more approaches:

* simply restarting the device can already solve the issue
* if not, do the same as described above
* if still not, at the place described above clear cache and, if that doesn't help, delete data of the playstore app

More advice might be found by a simple Google search :)
> 0 votes

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


# Question
Title: How to access wifi on an android phone that comes without it?
I purchased a cheap smart watch (this one). It doesn't support wifi. At the moment I can surf and watch videos by being connected via bluetooth to my tablet.

But I plan to root the device and install google play on it. I would like to install other apps on it afterwards too. It has a simcard slot and I can use a 2G network to do that.

But I am wondering if I could either buy a plug and play module or build something that would enable me to access wifi on the watch? Or is it not possible?

# Answer
> 0 votes
I'm sorry you actually need a WiFi receiver to be able to access WiFi. If there's no hardware in it supporting WiFi, you cannot add that by means of software.

# Answer
> 0 votes
Sorry. But, you cannot use Wi-Fi by just installing some apps or modules.To be able to use Wi-Fi, your smartphone must have a wireless receiver. If your watch's hardware doesn't include a Wifi receiver, you won't be able to access Wifi.

---
Tags: wi-fi
---


# Question
Title: Unable to Use Google Play or Log Into Google On My Note 2.
I installed the CyanogenMod 13 Marshmallow for my Note 2. I haven't been able to log into Google Play. I can log into my GMail but everything else doesn't work. I also keep getting "Unfortunately google play services has stopped".

I changed the host file but is there a new IP i need to change to or?

# Answer
> 0 votes
What I did that really solved it for me was:

I first of all used . Before hand I was using which wasn't working too well. (IDK why).

I have a Galaxy Note 2 and installed the CWM 13 Marshmallow ROM and installed the BANKS Open GAPPS along with it.

I could not log into Google. The Gmail would work but I couldn't log into anything Google especially Google Play. I download and uninstalled google play services like a thousand times.

TO FINALLY SOLVE MY ISSUE, I rooted my device (if it isn't already, you need to root) also everytime you do a factory reset you need to re-root.

I went into RECOVERY MODE on TWRP and went to INSTALL. I chose the CM13 ROM & the BANKS OPEN GAPPS that I had already on the device. I basically reinstalled it. You want to "SWIPE TO FLASH BOTH". Wipe you DALVIK/DATA. **IMPORTANT:** Do not boot between flashing the ROM and flashing GApps!

Your device should be rebooted after this. It should be working after this without you having to installed Services or anything.

---
Tags: cyanogenmod, google-play-services, samsung-galaxy-note-2
---


# Question
Title: What are the steps for rooting an Android device, in general?
I'm aware that for different devices the particular procedures are different, but I guess there are principal similarities in the procedure.

So what are the basic steps to root your phone? What actually happens behind the scene, when someone follows any of the rooting guides available?

What is the magic that gives you root privileges to your phone? How are the user privileges handled afterwards?

# Answer
There are a few parts to the process:

1. Unlocking or bypassing any bootloader protection, allowing the system partition to be written
2. Installing the relevant binaries to acquire root.

Both of these stages can vary from phone to phone, but here are a few examples:

**Unlocking the bootloader**

On many OEM phones, this traditionally involves exploiting a vulnerability in part of the system in order to rewrite certain partitions. Sometimes it will mean flashing a new bootloader, a new recovery (this is becoming common) or temporarily booting from an image over USB, in order to gain recovery access to the system partiton.

On the Nexus range of phones, and the development phones that were released by Google, it is as simple as running "fastboot oem unlock", though this will wipe the phone. Also, bowing to pressure from the development community, many manufacturers now offer an official route to unlocking the bootloader.

**Installing the root binaries.**

Once the system partition has been cracked then the rest is fairly straight-forward. It basically means installing the 'su' binary (this escalates to super user permissions), and an apk which provides an Android front end to 'su', and prompts the user when an app is requesting root permission.

There are several approaches to this second stage. The most common has been to use a pre-rooted ROM provided by the community. There is often a choice, from the stock ROM provided by the manufacturer and then tinkered with to add the binaries, through to a whole range of AOSP (Android Open Source Project) ROMs, such as CyanogenMod (one which I contribute to).

There are some other methods. For example, some phones (eg Galaxy Nexus) can use a "superboot" bootloader, which tinkers with your existing ROM as bard of the boot process. It is flashed to your phone using the fastboot program.

Typically there will be a single favoured approach for any particular phone.
> 7 votes

# Answer
It's pretty simple:

1. Unlock the bootloader;
2. Install a custom recovery that doesn't check if the ZIP is an official update;
3. Install the relevant binaries, usually with SuperSU.

The actual steps to do those may vary from device to device.

# Unlocking the bootloader

This is required so the `system` partition can be written on.

On some devices like Samsung and LG, there's a Download mode, where you can use Odin to flash something (in this case, a custom recovery) without having to unlock the bootloader.

Other devices don't have a Download mode, but some have an official way, like Nexus and Moto. They generally use the `fastboot oem unlock` fastboot command.

In the case of Moto phones, it's required to get a key for your device on the official Motorola website, which will then be used on the unlock command.

WARNING: That command will wipe the phone if done on a Nexus!

Some devices don't have either a Download mode or an official method. In this case, it's required to use an exploit.

# Installing a custom recovery

On devices where there is a Download mode, you could skip the previous step. 1. Download Odin and any custom recovery; 2. Enter Download mode; 3. Install it.

On devices where there isn't: 1. Download the recovery .img; 2. Enter fastboot mode; 2. Flash it.

WARNING: The recovery HAS to be a version for your *specific* device!

# Installing the binaries

This is practically unvariable. Just download the SuperSU zip, enter recovery mode and install it.

# Sidenotes

1. Contrary to popular belief, there is **0%** chance to brick your device, unless you do it wrong, which is totally your fault;
2. Updates will either softbrick your phone or remove root access. Remember, softbricks are always fixable.
3. Warranty is lost;
> 2 votes

---
Tags: rooting
---


title: Flashing stock rom through cwm

text:
# Question
Title: Flashing stock rom through cwm
Can I flash a stock rom through cwm? I have a rooted Galaxy Mega, with cwm installed and want to upgrade to the new kit kat samsung firmware.

Thanks.

# Answer
The best practice for flashing stock Samsung firmware is through Odin on your PC with the original USB cable. This will remove the root and return your device in stock condition with the desired downloaded Android version. The process is very easy you just have to flash the MD5 file using ODIN in download mode you can follow this useful guide with images Samsung Stock Firmware downloading and flashing guide
> 1 votes

---
Tags: updates, rom-flashing, root-access, samsung, stock-android
---


title: Layers/Overlay Factory-reset issues

text:
# Question
Title: Layers/Overlay Factory-reset issues
I resetted my tablet (The survivor, see profile for make and model) as per its quarterly cleanup I run to keep my old data stored on a lovely drive while it is all wiped in TWRP. The process is fairly automated, just a good shell program sitting on a Linux desktop. However, I returned after the clean to find the screen on, but black (The lights are on, but there is nobody home). I believe this is because of the Steel overlay I was using via Layers manager may have broken (Overlays are stored in /system/vendor/overlays) And I cant see the system UI. Can anyone help?

# Answer
Problem solved! Managed to, after a bit of fiddling, I removed the bugged files (found them in /vendor/overlay) and it is a-ok!
> 0 votes

---
Tags: twrp, overlay
---


# Question
Title: How does the rooting apps (like kingroot) roots the android phones
I rooted my android kit-kat with kingroot. This process took almost 2-3 minutes and it successfully rooted.

But what is the process involved in rooting an android phone? I want a very clear explanation,please.

I read this how does rooting work

that answer says that placing that binary files and some other things mentioned but it is a rough answer, if possible i want an example and a very very detailed explantion please. Place any link which explains the android coding to root an android phone.

# Answer
These One-Click root apps, like ol' faithful kingroot, follow a general structure for rooting. I will be using kingroot as an example.

**Phase one- Detection of device** \- Self explanatory, really. Kingroot scans the build.prop (which it can, its mostly what you see in about phone) to grab and nab what the hell you are using. It can use other info sources too, but I don't know which (kernel, maybe)

**Phase two - Exploiting** \- one-click apps generally follow a pattern of exploiting weaknesses in the OS to access /system directly (and freely). Malware and other infected apps/files can do this too, to gain their own root privilege. Anyway, they use this to gain temporary root.

**Phase three - Planting files** \- at this point, The app just injects the SU binaries and SuperUser Management apps (in the case of kingroot, itself). It often makes these apps system apps to help protect against root access loss. Anyway, the temporary root planted previously is used as leverage, which allows for the root-app to provide permanent, system-wide root

**Final phase - polishing** \- assuming that everything went well, all that's left is a reboot (to load the new binaries in. You may not even need a reboot, but you should anyway) and you are done!
> 2 votes

---
Tags: rooting, apk
---


# Question
Title: How to calibrate accelerometer sensor on Google Nexus 6P?
when building an application for Android, I've noticed that the rotation vector sensor gives readings that are off. The phone's rotation is reported a little bit tilted.

When investigating, I found that the accelerometer pointing along the x-axis is offset by approximately `-0.02`.

Here is a chart of the coordinate axis to help the issue:

Here is a picture of the measurements I took:

First, I assumed an device-specific hardware issue, but the issue is still present on a second replacement device.

Is this issue known? How could I calibrate the sensor to remove the offset?

# Answer
> 1 votes
I have this too, and likewise it has persisted after getting a replacement device. It interferes with panoramas and photospheres, cardboard and the like. No idea on a fix. I think I'll do a second replacement.

---
Tags: sensors, calibration
---


title: Face unlock and sun glasses

text:
# Question
Title: Face unlock and sun glasses
I'm thinking about getting new glasses, the kind that get dark(like sun glasses) or clear depending on the amount of light they get so they are supposed to be dark in the outside and clear inside.

I think my actual question is: can you set up Android face unlock to work with "sun glasses"?

# Answer
Yes, but this will probably be less secure than using your face...

i suggest using a password for maximum security !
> 0 votes

---
Tags: 6.0-marshmallow, face-unlock
---


# Question
Title: How do I transfer data from a android phone to a mac?
I have a sony xperia z5, and I need to transfer five videos, from this phone to my mac, so that I can edit them. Problem is, I don't know how to.

# Answer
You can send emails containing the videos on your phone and then download them on your Mac.

Or you can use bluetooth to share from phone to mac.

Or you can transfer with an app that can connect phone to Mac without USB.
> 1 votes

# Answer
I would, and do, put Dropbox on my devices. Let it handle the hard work related to the file transfer.

Dropbox for Android from Google Play.

Dropbox for iOS from iTunes.
> 0 votes

---
Tags: file-transfer
---


title: Nexus 5 battery inaccurate

text:
# Question
Title: Nexus 5 battery inaccurate
My Nexus 5 is very inaccurate with its battery life, it will usually die at about 90-85% but occasionally it goes to ~40% before dying. is there anyway for me to tell it "Hey! You have 0% battery, fix it!" and "Your battery isn't full yet, charge some more" without root?

# Answer
Buying new battery worked, N5 batterys can get "Mushy" or "Swollen" so replacement is key.

Buying new batteries is easy off of amazon and theres a billion youtube tutorials.
> 0 votes

---
Tags: battery, nexus-5, battery-life
---


title: Send "step" sensor event from ADB

text:
# Question
Title: Send "step" sensor event from ADB
My smartphone has sensors those:

```
Step Detector                                   | Qualcomm                         | 0x0000001e | on-demand         | no batching support | last=<0.000000>
Step Counter                                    | Qualcomm                         | 0x0000001f | on-demand         | no batching support | last=<0>

```

I think , when I shake phone (or when walk), Step Detector is running and send a data to applications. If I'm right, I can send a fake event with ADB connection. But I can't find anything about this.

For example:

> adb shell sendevent StepDetector

# Answer
> -1 votes
I had a quick look on Stack and i found this . it might be helpful in the situation....

If you are using ADB, you will need to command into the shell with

```
adb shell        - for opening shell

su        - to gain root via superuser - Optional

sensor set acceleration 0:0:0

sensor set acceleration 99:99:99

```

here is the references i found StackOverflow Comment

---
Tags: 4.4-kitkat, hardware, sensors, development
---


# Question
Title: Video file is not readable when trying to upload
I recently downloaded a zip file with two .mov video files in it. Once I unzipped the file onto my Android phone (HTC One), I converted the file using a Media Converter app. I can play the file on a VLC player, but when I try to upload it to any social media (Instagram and Facebook), it doesn't even show up as an option. What can I do to change that? I need it to be able to upload in this fashion for work and have been trying to do this for the last 24 hours with no luck. Any suggestions please???

# Answer
> 0 votes
Convert the files to a recognized format like MP4 or 3gp

---
Tags: video, htc-one, troubleshooting, uploads
---


# Question
Title: Uploading files from desktop to remote FTP, using ES File Explorer to initiate and the related traffic?
At home have an older Windows desktop with a TB of hard drive and I constantly send files to it over my home network from my Note 4 and have amassed quite the collection. This morning, I started to upload a lot of it to a remote FTP server using ES File Explorer on my Note 4. I can click on my Windows desktop then select a group of files, copy and paste them to the FTP server and I get a progress bar of the transfer from "smb://desktop/users/" to "ftp://ftp.myserver.net/" and my question is if the data literally moves like that? The Windows machine is connected to the cable modem on an Ethernet wire and my Note 4 is on the crowded wireless network.

# Answer
> 0 votes
It should copy directly from source to cloud ...

unless you have a temp file scheme, Like it copy's from the drive to a temp directory and then from the temp to cloud

---
Tags: es-file-explorer, ftp
---


# Question
Title: Does flashing incorrect ROMs or changing the partition table ever result in damaged motherboard components?
My question is specific to Xiaomi devices and Nvidia Tegra SoC (and possibly Qualcomm SoC too). It hasn't happened to me personally, but from the extensive forum discussions on the Xiaomi support site, its apparent that some permanent damage is caused to the motherboard components (especially the eMMC) in at least two circumstances:

1. When you try to change the partition table using parted or a similar utility.
2. When you try to flash a ROM of a different device.

Now, I'm not saying that these are sensible things to do (at least the second one), but I don't see how any of them could actually lead to any hardware issues. What I want to know is, does this happen naturally because of the way handset/tablet motherboards are designed? Or does a chip maker deliberately cause the hardware to fail in this situation to have control over their device usage (the way they control by locking the bootloader or custom source-code apparently)?

# Answer
> 1 votes
This sounds like the device has one drive with separated partitions for system, data, etc. ...

If you flash the wrong rom, it will change the partition size to be different than the original...

For example, 2gb ram will be overwritten with 3gb ram... This makes 1gb less space for the system or data, And potentially overwrites the existing data ... You might accidentally overwrite the modem files with ram space ... and so on ...

Usually you can partition SD Cards for different devices, but Partitioning the system isn't advised !

---
Tags: xiaomi, nvidia-shield, tegra
---


title: What is this lockscreen app?

text:
# Question
Title: What is this lockscreen app?
So sometimes when I try to unlock my phone I am greeted with this:

When I swipe up I am greeted with my regular lockscreen. Why exactly am I seeing this lockscreen? It appears randomly, does not appear every time. I dont have any lockscreen app installed. I am using Android 5.1 with **stock** launcher.

# Answer
> 1 votes
it looks like the Go Launcher locker app.... Just by the four petal clover ...

Also King root makes a lock screen like that

---
Tags: lock-screens, 5.1-lollipop
---


title: Phone storage is very low

text:
# Question
Title: Phone storage is very low
Samsung duos total space as shown in system storage is 4 Gigabyte. But application manager shows total space of 60 'Mb'? i cant install any application.

# Answer
Try moving some apps to SD card in app settings
> 0 votes

---
Tags: samsung, insufficient-memory
---


title: Can't find location for bought app

text:
# Question
Title: Can't find location for bought app
I have a Xiaomi Redmi Note 3, running android 5.0.2 (LRX22G... if that helps). I've just bought an app from the play store. It's a GPS app where I'd like to find the location of the saved APK and then move it into sys, so I can root it. I can't find the original APK, though. Yes, I've searched in /data/app and system/app... nothing there. Any ideas?

# Answer
> 0 votes
For secure apps, You need to find the correct folder, Like data/secure-apps/apps

---
Tags: applications, geolocation
---


# Question
Title: How to change my default storage location for play store on samsung J1?
I have tried searching through the whole settings list and 'my files' for the settings I have been told would be there, but I just can't find them. Please help.

# Answer
> 1 votes
In Android ... Go to settings, Apps and press menu to select options, I think it's even called default storage location !... Some devices dont have the option ... You need a app like Apps2Sd

---
Tags: sd-card, samsung-galaxy-j1
---


# Question
Title: Advanced call diverting to know from which number this call is diverted
I have diverted several numbers to my primary number , I want to know from which number this call be diverted Is there any app showing like this call is diverted from this number ....???,

Please help

# Answer
> 0 votes
Set up a response message...

Use tasker or something on each phone to automatically send a text message saying,

> i just sent a call to you

This way... when the call arrives at the primary phon, So does a text message notification from the original number :)

---
Tags: caller-id
---


title: Unlocking an HTC desire 510 phone

text:
# Question
Title: Unlocking an HTC desire 510 phone
In this tutorial is the method I am currently following to unlock the bootloader.

Just before Step Four there is a paragraph that says:

"The Command Prompt will spit out a token in the form of a very long string of characters. Select it, copy it, and paste it into the applicable box on your manufacturer’s website–make sure there are no spaces!–and submit the form...."

This is the stage I reached. I cannot however find that "applicable box" after numerous searches! Could someone help me find it? Or suggest a better way altogether to unlock the bootloader?

# Answer
> 0 votes
Have you done the process via DevHTC ? ...

Htc offers a original unlock method here official unlock at HTC site for developers

---
Tags: android-sdk
---


title: Huawei Y560 Gaming Specifications

text:
# Question
Title: Huawei Y560 Gaming Specifications
Can the Pokemon Go be played on this device? I do not want to purchase it for my daughter if it doesn't work.

# Answer
> 0 votes
no .... the y560 is only 1gb ram... you need at minimum 2gb ram for that

---
Tags: huawei
---


# Question
Title: How can I get rid of the guest login 'feature" of lollipop 5.1.1?
I DO NOT WANT ANYONE BUT ME, to be able to log into my tablet. Can anyone please tell me if/how to "DISABLE" the guest login feature on Lollipop 5.1.1? Lots of chatter out there about how to delete the account but this does not disable it, and is recreated again from the lockout screen at the touch of a finger.

# Answer
Try disabling it in androids app settings
> -1 votes

---
Tags: 5.0-lollipop, multi-user
---


# Question
Title: How to copy a message without the message sender's name on Telegram?
Until not long ago when you copied a message on Telegram, only the message text was copied. This was a distinguishable feature of Telegram when compared with WhatsApp where messages where copied prefixed with the original sender name and date.

More recently things have turned around and now WhatsApp is copying messages without the sender and date info, while Telegram is prefixing its copied messages with the original sender's name.

How can I copy a message without the message sender's name on Telegram?

# Answer
> 9 votes
There are two ways on Telegram to copy messages:

1. Tap and hold + copy = will copy the message **with** the sender's name
2. Tap + copy = will copy the message **without** the sender's name

---
Tags: telegram
---


# Question
Title: i want to set the sd card as default download location in htc desire 500,how?
In my mobile the apps are only downloading in my phone's memory I think which is full my sd card has a space of 16 GB only 1 GB is used in it and I want that when I download apps it directly goes to sd card memory not my phones memory,how do I set the download location to sd card,so that it uses the space of sd card not phones memory and pls show me the to check whether my download location in setting is on sd card or in my phone's memory

# Answer
This is what I did on my HTC desire and an LG device, and worked for me:

I went to phone storage, scrolled down to storage settings, tapped storage settings, tapped update all and chose the SD card option.
> 1 votes

# Answer
withoust rooting ur htc 626 its impossible to set sd card as a default location,even the photos clicked are also didnt move into it....all are remains in phone memory , all u can do is to copy paste every thing from phn to sd card time to time or ifu can root ur set then i am sure u will find anything that will make it default drive
> 0 votes

---
Tags: wi-fi, internal-storage, sd-card
---


# Question
Title: Change adopted storage to a larger storage?
I have Shield Android TV device. Everything was working well until I decided to adopt an SD card following Android 6.0 release. Everything still works mostly well, a little bit slower but OK. The problem I have is with the applications which need to write/read a lot of data.

I'd like to buy a faster external storage (probably an external SSD USB drive) and adopt it. Is there a way to clone the SD card to a new adoptable storage without resorting to moving everything from the SD card to external USB drive, changing the adopted storage and moving the data back? I'm not sure will it even work?

# Answer
I tried the dd method as described by Izzy and it worked, the new sd card is recognized as the same adopted storage and all the apps and data is available.

However there are two big caveats:

1. the dd command creates an exact copy so even if your new card is larger than the old you will still get the same size for your drive and some empty space after that. Say you go from 16GB to 32GB, on the new card you will get 16GB adopted storage and 16GB free space.
2. It took ages to complete, especially the second step. Much longer that would have taken doing a manual backup/restore.

So even if your mileage may vary, I wouldn't recommend cloning in any case.
> 2 votes

---
Tags: android-tv, adoptable-storage, nvidia-shield
---


# Question
Title: Marshmallow Keeps rebooting. It seems a Stagefright bug. How to know which file causing the bug?
So, my phone keeps rebooting when SD Card is inserted. Looking at the logcat, theres lots of:

"FFmpegExtractor" and "stagefright"

before the phone reboots.

What i suspect is that i have corrupted music or video that make stagefright crash and reboot the whole system.

any idea how to know which ones are the problematic file? In the logcat, FFmpegExtractor and stagefright did not list the file that they process :(

thank you!

```
07-16 22:27:59.603 263-263/? I/FFmpegExtractor: android-source:0xaee2c7b0
07-16 22:27:59.609 263-263/? I/FFmpegExtractor: adjust mime(video/ffmpeg -> audio/ffmpeg)
07-16 22:27:59.609 263-263/? D/FFmpegExtractor: suppoted codec(aac) by official Stagefright
07-16 22:27:59.609 263-263/? D/FFmpegExtractor: ffmpeg detected media content as 'audio/ffmpeg' with confidence 0.08
07-16 22:27:59.889 8571-8581/com.facebook.katana W/art: Suspending all threads took: 5.881ms
07-16 22:27:59.995 8571-8571/com.facebook.katana V/SplashScreenApplication: ceding control to main thread
07-16 22:28:00.007 802-1988/system_process I/ActivityManager: Killing 6810:com.mxtech.videoplayer.ad/u0a123 (adj 13): empty #17
07-16 22:28:00.312 263-989/? I/FFmpegExtractor: android-source:0xb5fa20c0
07-16 22:28:00.322 263-989/? I/FFmpegExtractor: adjust mime(video/mp4 -> audio/mp4a-latm)
07-16 22:28:00.323 263-989/? D/FFmpegExtractor: suppoted codec(aac) by official Stagefright
07-16 22:28:00.323 263-989/? D/FFmpegExtractor: ffmpeg detected media content as 'audio/mp4a-latm' with confidence 0.08
07-16 22:28:00.372 263-1152/? I/FFmpegExtractor: android-source:0xaee2c7b0
07-16 22:28:00.382 263-1152/? I/FFMPEG: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xaf467200] stream 0, timescale not set
07-16 22:28:00.388 802-812/system_process I/art: Background partial concurrent mark sweep GC freed 107225(6MB) AllocSpace objects, 27(1804KB) LOS objects, 31% free, 34MB/50MB, paused 1.903ms total 174.519ms
07-16 22:28:00.396 263-1152/? I/FFmpegExtractor: adjust mime(video/mp4 -> audio/mp4a-latm)
07-16 22:28:00.396 263-1152/? D/FFmpegExtractor: suppoted codec(aac) by official Stagefright
07-16 22:28:00.397 263-1152/? D/FFmpegExtractor: ffmpeg detected media content as 'audio/mp4a-latm' with confidence 0.08
07-16 22:28:00.449 263-1151/? I/FFmpegExtractor: android-source:0xb5fa20c0
07-16 22:28:00.454 263-1151/? I/FFmpegExtractor: adjust mime(video/ffmpeg -> audio/ffmpeg)
07-16 22:28:00.454 263-1151/? D/FFmpegExtractor: suppoted codec(aac) by official Stagefright
07-16 22:28:00.454 263-1151/? D/FFmpegExtractor: ffmpeg detected media content as 'audio/ffmpeg' with confidence 0.08
07-16 22:28:00.777 264-264/? E/installd: cannot create dir '/mnt/expand/db59b29d-f2da-4ea1-8405-330ab4baae72/user/10/com.noodlecake.altosadventure': File exists
07-16 22:28:00.781 264-264/? E/installd: cannot create dir '/mnt/expand/db59b29d-f2da-4ea1-8405-330ab4baae72/user/11/com.noodlecake.altosadventure': File exists
07-16 22:28:00.784 2217-2217/com.google.android.gms.persistent E/ExecutionCriteria: Package unavailable for task: endpoint='com.google.android.apps.photos/.metasync.periodic.MetaSyncGcoreGcmTaskService'
                                                                                tag='PeriodicLocalMetaSyncTask' : [PENDING] u0
                                                                                Next execution: [early=5380s, expires=16180s], p=21600s/f=10800s.
01-01 00:00:00.000 0-0/? E/Internal: device offline

```

# Answer
Turns out the adopted storage is corrupted. Fixed by running FSCK after unmounting it first from storage option menu/setting

```
fsck.f2fs /dev/block/dm-0

```
> 0 votes

---
Tags: cyanogenmod, 6.0-marshmallow, stagefright
---


# Question
Title: How can I back up files from LG's Browser?
In anticipation of my phone dying soon, I've been backing up every file on it. I'm using an LG G Flex, and it comes with a generic browser. Browser came with a "save for offline reading" function, which I used to use regularly, until I found out that nowhere in the file manager can I view or access these saved webpages, which makes backup much harder.

Since then, I've been using a separate app to save new webpages, and to back up the old ones I've been individually saving every page to Capture Plus (the browser's full page screen capture function).

I'm now down to my last webpage, but Capture Plus tells me that there isn't enough memory when I try to capture it as a screenshot.

This doesn't mean that there isn't enough memory in the location I'm saving to, because I know there is, so what gives?

The saved webpage that I'm trying to back up is one that has been removed from the internet, so I can't just go back to the same website and download it again.

I could take about 3,000 screenshots of the page and later assemble them into one (it's a pretty long page), but if there's a way around that approach, I'd like to know about it.

# Answer
> 0 votes
LG's built-in backup is very good, alternatively you can use adb backup.

1. `adb backup -all` Now unlock your device and confirm the backup operation.
2. Unplug old phone plug in new phone, `adb restore backup.ab`
3. Now unlock your device and confirm the restore operation.

---
Tags: backup
---


# Question
Title: Samsung Galaxy Note 4 goes standby when idle, pauses apps
Hello Android enthusiasts,

I have the following issue: I have a Samsung Galaxy Note 4 and I have not turned on any power saving setting, however I cannot figure out for the life of me how to prevent my phone from automatically going into stand by mode (screen powers down, apps pause, GPS stops working, etc) when I haven't interacted with the phone for roughly 15 seconds or so.

I would like only this to happen when I press the power button. This greatly interferes with any app I use when I'm on the move (Pokemon Go, for example) and I don't want to poke the screen every 5-10 seconds or so so the app doesn't just stop functioning normally.

Please advise me on how I can prevent this. Thank you for your time!

# Answer
I figured it out on my own.

Settings -\> Display and Wallpaper -\> Screen timeout - set it from whatever seconds to 10 minutes.
> 0 votes

---
Tags: samsung-galaxy-note-4
---


# Question
Title: Some of my apps disappeared after wiping cache and dalvic cache. Why?
I am running Cyanogenmod 12.1 snapshot ROM on my Moto G 2nd gen. Today I Installed Xposed framework and Wiped dalvic and cache. After reboot I noticed that some of my apps have disappeared. Only grayed out icons can be seen. What should I do now?

# Answer
As for as i know, when a rom boots up for a first time dalvik goes each and every apks and extract the dex (Android programs are compiled into .dex (Dalvik Executable) files) and put in the cache.So next time when you use your mobile it start faster and improved the performance, so when you wiped dalvik cache, it only clear cache memory. it will not delete application data.

i cannot say exactly one solution for your problem without getting more information, try to reinstall apk, maybe it will solve your problem because data is not deleted.
> -1 votes

---
Tags: applications, cyanogenmod, cache
---


title: How does an app know, if GPS is faked?

text:
# Question
Title: How does an app know, if GPS is faked?
I have heard it is possible to simulate a GPS location with a developer option. However people get banned from Pokémon go, if they fake their location.

Is this because an app knows, when it's a simulated location or did the people just fake it bad enough?

# Answer
An app can detect when mock locations are enabled. It's quite simple to do. See https://stackoverflow.com/q/6880232/4107809.
> 2 votes

---
Tags: gps, geolocation, developer-options
---


title: Link contact to Twitter handle

text:
# Question
Title: Link contact to Twitter handle
Is there something I can put into the Google Contacts entry for someone that will link it to their Twitter handle? I have tried putting “@JohnDoe” into an IM-type field I’ve named Twitter, but that didn’t do the trick.

# Answer
Both Facebook and Twitter contact sync stopped doing anything useful sometime recently (ICS?). They no longer provide a meaningful between your phone contacts and the actions provided by those clients. I think this has to do with changes to the Android API that for whatever reason these companies have not adapted to.

There is a stop-gap solution for Facebook using a third party app such as Contact Sync for Facebook or Friends Sync* but I don't know any solution for Twitter other than the hack-it method of having a URL listed and using the web client.

* This publisher also has other sync apps for foursquare, flickr, and others.
> 1 votes

# Answer
Ad in Google contacts a field for a website. If your lad has the twittername @abc, enter http://twitter.com/abc

On my Android phone it opens with my twitterclient, on the PC it opens the browser.
> 0 votes

---
Tags: contacts, twitter
---


title: Location broken on Nexus 5 with CM11

text:
# Question
Title: Location broken on Nexus 5 with CM11
I have a Google Nexus 5 device. In the beginning, I was amazed at the GPS performance; most of the time I had a fix after at most 5 seconds. A few months ago I installed Cyanogenmod CM11, and as far as I can remember GPS still worked great after the flash (I registered for CM's "find my phone" service, and that worked well).

Now recently I have found that location in general doesn't work any more. I can't get a GPS fix even after waiting for a long time, and even WiFi and cell network based location don't work – I get a location, but it's off by about a kilometer, and that in a large city with plenty of WiFi hotspots and cell towers. It doesn't even recognize my home location any more, even though I have clear WiFi reception from my own router which previously was clearly associated with my street address.

I am not sure what could have triggered this problem. At some point I tried to share as little information with Google as possible (out of privacy concerns) so I configured "Location mode" to "Device only" and I also disabled and deleted location history. I guess it is possible that at some point while doing this, I accidentally "broke" location altogether, though I don't know how. In any case, after noticing that GPS doesn't work any more, I re-enabled "High accuracy" mode, but with no effect. It's also conceivable that a CM11 update caused this, but I believe that when I installed CM11 it was already at the current state M11. I never installed nightlies.

My questions are:

* What could have broken both GPS- and WiFi/cell-based location? Is there a known issue with CM11 (M11) on hammerhead? I couldn't find anything. Is it possible that I inadvertently disabled some system service that needs to be running? Nothing under Apps / Disabled looks like its location-related.
* What can I do to get location working again? Re-flash? Install a nightly? Hope that at some point CM11 M12 is released? Delete some system file? I'm open to any kind of idea.

# Answer
> 0 votes
Just curious if you use Google device / location manager(s)?

I have had some of theses issues come up on CM11.

Try going to Google.com then click maps as your search criteria/engine and type ' my current location ' as the search, and also in the map click the little circle in the bottom right corner (its the circle above the blue direction circle ....its the location target eye image , black and white) .....you should be asked if you would like to allow Google to access your location by now. because if not it could just be a settings thing.

I suggest using Google chrome when / if you do this.... I had better luck when I did... which makes sense since chrome is a Google entity.

I am not saying this is a fix, but I am curious about the results because this may help myself and others to get an understanding of how your devices current state due to how it handles the request(s).

CM11 hasn't treated me too well in this respect either.

# Answer
> 0 votes
IT's the gapps!! I has the same problem; GPS stopped working after two CM11 updates. I reverted back to Android 4.1 but still no GPS. I renistalled cm-11-20160424-NIGHTLY-hercules (I'm becoming a pro at this by now) but still no GPS. After an idea to reinstall gapps-kk-20140606-signed after the updated....GPS started working again. I tested it with Google Maps, GPS test and My trace.. Make sure Google Services is installed.

---
Tags: cyanogenmod, nexus-5, gps, location-services
---


# Question
Title: Disable calling and texting but not WiFi or NFC
I'm going overseas soon and bringing my "usual" personal phone, a Samsung Galaxy S5, with me. I mostly just want to use it for Internet access. But one of the reasons I'm bringing my own phone instead of buying a temporary one is just in case there's an emergency I want to be able to call and text with my regular number. I don't want to get most calls and texts on vacation though! Is there a way I can turn off calling and texting from my phone but leave WiFi and NFC working? Just turning off receiving would be best but turning off sending would be fine too.

# Answer
Just check your QuickSettings:

QuickSettings (Kitkat / Lollipop; click images for larger variants)

They will look a bit different on Samsung devices (and newer Android versions), but the basic elements should be there. In the first screenshot, see the last icon in the second row, titled "E-Plus+"? It will have a different title for you (as that's the network provider) or no title at all, but look similar. This icon is for your cellular connection. Tap to turn it off, and you'll have no cellular connection anymore – that means no calls, no SMS, no mobile data. Still, the first icon in the same row (WiFi) will be unaffected by that – so you'll still have WiFi available (and NFC too, of course).**1**

Now, when your mentioned "emergency" comes, simply swipe down the notification bar to get to the QuickSettings, and tap that icon again – a few seconds later you should have calls and SMS available again.

Just in case this does not work (e.g. because that icon is missing), take the hint Mord gave: Tap the airplane-mode icon in QuickSettings, and then tap the WiFi icon to switch WiFi back on. Same effect – and for your emergency case, simply deactivate airplane mode again.

1Corresponding icons in the 2nd screenshot (Lollipop): 1st row #3 (labeled "o2 - de+") & #1
> 0 votes

# Answer
On the s5 you can turn on airplane mode, and you'll still be able to use wifi.

*So actually the wifi will turn off when you turn on airplane mode, all you need is just turn back on WiFi.*
> 1 votes

---
Tags: samsung-galaxy-s-5
---


# Question
Title: Changed device DPI now stuck in a bootloop
* Device: OnePlus One
* ROM: MultiROM with CM11s as internal, and CM12 nightly as secondary
* Recovery: TWRP
* Backup location: USB OTG
* Backup method: Online Nandroid Backup application

---

So I have quite a dilemma on my hands. I wanted to try something, so I installed a root DPI changing app. I must have set it incorrectly because when I rebooted, everything was so large that I couldn't even unlock the device.

So I followed the application's advice, I copied the `build.prop` backup to `/system`. And I went into a boot loop. Then I tried copying the stock `build.prop` for my device to `/system`, but it didn't help any.

Everything else seems to work fine. I have TWRP installed, and I have a good backup, but it's on a USB drive, and the data partition is ~6.5GB, so it won't go back on my phone. So here are my options, as I see them:

1. Fix `build.prop`, of which I don't have the original file.
    * Problems:
        + I have no idea how to do that.
2. Restore from my TWRP backup.
    * Problems:
        + I have the backup on a USB drive.
        + TWRP doesn't seem to want to recognize that there is a backup on the USB OTG.
        + The data file is 6.94GB (over Android's 4GB file size limit), so I can't move it back.
3. Dirty re-flash the OS while keeping my data.
    * Problems:
        + I don't know how to do that.
        + I've heard that problems persist if that's done.
4. Wipe *everything* and start from scratch.
    * Problems:
        + Obviously, I don't want to do that.

# Answer
The reason for a boot loop after editing `build.prop` is its permissions.

Just go to TWRP \> Advanced \> File Manager and navigate to `/system/build.prop`. Select it and change its permissions to `-rw-r--r--`. To do that, enter `0644` in `chmod` and reboot your device.

If you cannot see `build.prop` in `/system` folder, go to Mounts and select System in the TWRP home menu.
> 3 votes

# Answer
If the `build.prop` is the problem, you could try fixing permissions:

* Restore `build.prop` from backup
* Go to TWRP/Advanced and choose **Fix permissions**

If you want to restore your TWRP backup:

* In TWRP, do a factory reset
* Boot up the system and copy the TWRP backup to the internal SD card (if you got enough space). That should be formatted with ext4 or something like that, not FAT32.
* Boot to recovery and restore the backup.

*or*

* Just reflash the `ROM.zip`. That should fix all problems without deleting `/data`.
> 1 votes

# Answer
Maybe this problem is solved but for future reference, I will post these two options:

* Push the original `build.prop` via ADB when on TWRP
    1. Plug the device into your PC
    2. Open a CMD or a terminal (depends on your OS)
    3. Write this commands
    ```
    adb kill-server
    adb root
    adb remount
    adb push original-build.prop /system/build.prop

    ```

Or

* Grab the current `build.prop`, edit the density, and then push it back
    1. Grab it by using `adb pull /system/build.prop /path/to/build.prop`
    2. Edit the `build.prop`
    3. Then push it back
    ```
    adb kill-server
    adb root
    adb remount
    adb push edited-build.prop /system/build.prop

    ```
> 1 votes

# Answer
So, I actually ended up flashing only the `system.img` and `boot.img` files, and that let the device turn on.

There were a few problems I ran into, though. Settings kept force quitting, for one thing. But I was able to make a fresh Helium backup, so then I wiped everything and started over. After spending a bit of time restoring some files, my One is running well again.
> 0 votes

---
Tags: boot-loop, twrp
---


# Question
Title: Custom Marshmallow ROM - encryption fails without error
I have a Galaxy S6 G920F phone. I've replaced the stock firmware with a custom ROM - XtreStoLite. Attempts to encrypt the phone using Android's built-in FDE fail with symptoms similar to the ones described in this other question, but none of the solutions suggested there help in my case.

What I've tried:

* disable Wi-Fi
* remove the SIM card
* hold the phone so that the screen switches to landscape mode
* factory reset, also tried to encrypt right after the first boot after installing the ROM
* plugged in to both a PC USB port and a wall charger
* instal every single additional package supplied by the author in the *Aroma Addons Package*

None of this helped; the phone simply displays a padlock icon on black background for around 3-4 seconds, shuts down, and after 15 seconds boots normally without reporting any errors. The storage is obviously not encrypted.

**What is the reason for this behavior? How can I encrypt my phone?**

# Answer
> 0 votes
I figured it out - the solution is to perform a factory reset on a clean system right after installation. After this, encryption works normally.

---
Tags: custom-roms, encryption, samsung-galaxy-s-6
---


# Question
Title: Will copying everything from /data/app and /data/data be enough for app's backup?
I've got an android device (Xiaomi MiPad-I, Stable ROM) which is not quite amenable to rooting, so I can't install Titanium backup on that. However, I can boot the device using the CWM recovery and mount the /system and /data partitions in RW mode during boot time.

In this mode, I can copy anything I want by connecting to a PC and using `adb` commands. However, I want to know whether copying the contents of /data/app and /data/data to my PC be enough for the backup of all apps? Or is there anything else that Titanium backup does? I only need the user apps, system apps are already available by either a factory-reset or flashing a stock ROM.

# Answer
> 4 votes
To do a backup like you want, you can just copy everything from `/data/data` except the `lib` directories/symlinks (they will fail when you want to restore/push them).

A very easy thing to do is `adb pull /data/data` and then delete all the `lib` files (as symlinks are only files but those refer to directories).

Upon restore you can install each app, using `adb install` for example, and restore the data manually, ie. just push it back and fix permissions.
Make sure the apps in question are **not** running.

To fix permissions you can either do it manually/with a quick shell script. Read the owner of each app's data directory and recursively set that owner (and group) to that owner and group (using `chown user:group -R /data/data/<package name>`). Users and groups are in the format `u0_a000`, the symlink to `lib` is owned by `install`.

---
Tags: root-access, backup, titanium-backup, xiaomi
---


# Question
Title: How do I add a "skip backward/forward" button to my Kodi on-screen display?
When watching DVDs with Kodi on my Android device, the on-screen display offers the following buttons (tried both pre-packaged skins):

* `|<`: Skip backward one chapter
* `<<`: Rewind
* `>`/`II`: Play/Pause
* `>>`: Fast forward
* `>|`: Skip forward one chapter

I'd like the `<<` and `>>` buttons to "skip +/-10 seconds" instead of doing an analog-style rewind/fast-forward.

How can I modify that behavior? My Kodi version seems to support that feature *in general*, since I can modify the skip steps in Settings/Videos/Playback.

(I'll be extra thankful if you suggest a solution where I don't have to fiddle around with a text editor on my phone, but I'm willing to accept that, if there is no other solution.)

# Answer
> 1 votes
So with the current version of KODI on android, I was able to swipe left or right with one finger to jump +/-10 seconds. If you swipe multiple times in the same direction it'll jump 30 secs, a min etc based on your settings in the video section (System\>Video\>Playback\>Skip steps...) Make sure to click Settings Level in the lower left hand corner to advanced or Expert to see these options. Other touch screen settings can be found here: http://kodi.wiki/view/Touch\_controls

Or search "touch controls KODI" in google. That site speaks of the text editing options for keymaps etc if you want to go that route for further customization of your Kodi settings. I hope this helps!

---
Tags: video
---


# Question
Title: How to backup Samsung 6 edge data with broken USB port
My USB port on my mobile is dodgy, intermittent charging slowly reducing to no charging! I took it in to shop and they're happy to send it away to be fixed, however I need to back it up, and i've downloaded Kies, but of course the cable from the phone's USB port isn't working properly so I can't seem to get the phone connected to back up my connects and calendar. Any suggestions? I've got a google account and synced the contacts (although I couldn't see my calendar), but how do I know this has been synced and how do I recover it? Is there a way to back up through bluetooth?

# Answer
You can use the smart switch app to send to a different Samsung phone.

I've noticed that calendar tasks on Samsung doesn't sync with Google or with anything else, only smart switch or kies worked me.
> 0 votes

---
Tags: samsung, usb
---