# Question
Title: Android unit without gravity sensor gets stuck with screen rotated
I have an Android unit which does not contain a gravity sensor.

It should always be in Landscape mode, but when I open certain apps they force screen rotation to Portrait mode. After I go back to the launcher however, the screen stays rotated to Portrait mode without ever going back to Landscape mode, the way I want it to.

What can I do to make it always stick with Landscape mode? Is there som /system/build.properties value that I can change or what can I do? Is it because of the Launcher application itself?

I have (probably modified) Android version 4.2.2

# Answer
> 0 votes
Some apps only work in portrait mode due to the fact that that is the way they are designed. Also most launchers (on a phone) are automatically in fixed portrait mode as well. If you don't have a gravity sensor then I suggest using an app like Unlimited Rotation Control which puts rotation buttons on your device. For landscape mode on my phone I installed Nova Launcher and turned the rotation option on in the settings. There are also multiple launchers out there that can work as well however.

---
Tags: screen, launcher, auto-rotation
---


title: How to use phone calls without code?

text:
# Question
Title: How to use phone calls without code?
My friends and family need to use my cellphone regulary, it doesnt bother me, because some of them cant have a cell but still need one just in case...the problem is that i dont want them to have access to my apps, notes, texts private infos etc... is there a way for them to use my cellphone (just for making calls) without having access to everything in my phone? Thank you

# Answer
Yes. Go the Google Play and download this app. If it isn't exactly what you are needing, get back to me and I'll find something more appropriate for your needs. Is your phone rooted? That helps a lot when you are wanting to customize your device. You can find plenty of info at XDA-Developers.com Here is your link to the app. If you need any thing else, just ask. https://play.google.com/store/apps/details?id=com.privacylock.guest&hl=enk.
> 1 votes

---
Tags: calls, hardware, sim-unlocking
---


# Question
Title: CSipSimple: Making calls through OpenVPN
I have an Asterisk server configured at home. It works well, and I am able to make calls to other devices internally over LAN or Wi-Fi - as well as outbound to a VoIP provider. I use CSipSimple as the client on Android (and Jitsi on my Ubuntu laptop).

I have also configured an OpenVPN server, which is also working as expected for both Ubuntu and Android devices. I can ping, ssh, etc across it.

I want to be able to make a call to a LAN or Wi-Fi client at home, over the OpenVPN connection from my Android phone using CSipSimple (I haven't allowed Asterisk clients to register from the Internet, only from the LAN subnet).

CSipSimple is able to register and make calls - but I cannot hear any incoming audio on my phone. The call info shows no packets coming in. Calls over OpenVPN using Jitsi on Ubuntu work properly, but CSipSimple on Android does not work.

# Answer
The audio cannot be heard because CSipSimple by default advertises the Internet-facing IP address of the phone, not the OpenVPN address. This means the control messages get through (hence one can make calls), but the audio stream is routed out through the Internet and not over the VPN.

---

## Change to Expert mode

To change this, the CSipSimple account "wizard" needs to be changed to "Expert". Assuming you already have the account registered, long-press on the account in the CSipSimple account manager view, and press "Choose Wizard". Then select "Expert" from the "Generic wizards" option.

## Change NAT settings

Long-press again on the account name, and select "Modify Account" - there will be many more options than with the basic wizard.

Under the "NAT Traversal" section of the settings, enable "Allow SDP NAT rewrite" - this will tell CSipSimple to use the same address it uses for the control messages and for the audio stream.

---

**Note:** this assumes that you are able to place calls, but cannot hear the audio. If you cannot register to Asterisk at all (or whichever SIP server you are using), then it is likely that the VPN is not correctly configured.
> 1 votes

---
Tags: voip, sip, openvpn
---


# Question
Title: How to block all android application installation?
Is there a way to block (by a password/PIN code or what else) all kinds of software installation on an Android tablet/smart phone by third-application or codes? I want to customize a android OS for my parents, but many apps may install other apps in background. So I try to install all apps for their need and disable all kinds of further installation.

Is there any way to do this? I can write code by myself, so if there is some code can do this, it will also be good for me.

# Answer
> -1 votes
To Implement this feature you need to **set the device management policies**

Also you have to install the Google app for it from the link : **Google Apps Device Policy**

**Set device management policies**

All Google Apps domains have settings for mobile devices that you can apply to groups of users. There is a full list of settings in the Google Apps Administrator Help Center. Here we recommend settings for general device management and settings that are specific to Android tablets for education. To set up separate organizational units for teachers and students and place different restrictions for each group, see Manage tablets in the Google Admin console.

**Device lockdown**

When you configure a tablet for student use, the device is locked down. Google Play is permanently disabled on that device, and Wi-Fi and Bluetooth® settings require the administrator PIN for any changes. Additionally, the Device Policy app is automatically installed and activated on student tablets, which enforces all the device management policies that you set (except for the Password policy), regardless of whether the Enforce policies on Android devices setting is set for the student's organization. You can disable apps from the Admin console, and the following system apps are disabled, by default, on student devices:

Play Games

Play Movies & TV

Play Music

Play Newsstand

Google Currents

Wallet

YouTube

Important: Due to these restrictions, we recommend that any tablets you give to teachers are NOT configured with the Android Device Enrollment app, but instead are clean tablets, out of the box.

General device management settings In the Admin console, at Device management \> Mobile \> Device management settings, you'll find the following settings which apply to any device with an account on your domain, including students' or teachers' personal devices if they add their domain accounts to their personal devices. See the individual settings for our recommendations for schools with managed student tablets.

For more information on this refer the first link in this answer.

---
Tags: applications, installation
---


# Question
Title: Android 6.0 Marshmallow SD Card Not mounting
I was having problems with my 32gb sdcard from day 1 . It use to unmount suddenly and I had to re boot to mount it.

Also, the sdcard all folders where not showing when I connected the phone to PC.To fix this problem I followed the answer here and cleared data of External Storage App and I can no longer mount the sd card.

Moto g2 no longer detects the sd card. I have tried re booting many times.

**EDIT**

Sdcard getting read in other android phone but not in my moto g2

# Answer
I had to do factory reset , after this the sdcard was mounted
> -1 votes

---
Tags: sd-card, 6.0-marshmallow, motorola-moto-g2
---


# Question
Title: How to unbrick phone when both recovery and system are abcent?
I have Lenovo A328 phone, after trying to upgrade to cyanogen it has no system and no recovery, when turning it on there is only loading screen. ADB asks to authorize the phone, but no dialog appears on the phone's screen.

# Answer
> 0 votes
I was a bit wrong, it appeared that i had no system and no bootloader (through which I used to launch recovery). I held both volume buttons and sticked usb cable during this - and it helped.

---
Tags: adb, recovery-mode, boot, unbricking
---


# Question
Title: Can my phone act as WiFi Access Point while Disabling Celluar Radio?
Can Android act as a WiFi Access Point while the cellular radio is turned off?

I tried to accomplish that using flight mode, but that won't work. While flight mode is enabled, Androids portable Wi-Fi hotspot option cannot be enabled. Quite logical, because one cannot tether while cellular networks are disabled.

To my knowledge, there is no obvious dedicated option to only disable cellular networks. There is an Cell Radio ShutOff, but that app just crashes when pressing the disable cellular network button on my phone.

Are there any apps for setting up a cellular less, non-tethering WiFi Access Point or other ways to do this?

What's that good for? What is it, what I am really accomplishing to do? See background below.

---

Background:

For recording interviews, I want to use a newer Android device \[Galaxy S3\] as a video camera (MirrorOp Sender app), while using an older device \[iphone 4\] as an external display (MirrorOp Receiver app). In some sense as a "wireless live preview" display.

The MirrorOp app has to my knowledge no WiFi Direct mode. Therefore I am using Androids portable Wi-Fi hotspot option, so the receiver can log into the WiFi AndroidAP (WiFi access point). Took me a while to figure out, but it works so far.

During recording, be not disturbed my cellar calls, voip calls, messenger or update notifications, I would like to disable the cellular network radio. That also seems useful to save battery.

Another reason for not providing internet access is to prevent the receiver phone from using use the WiFi as hotspot (which would in reality, be just a 3G network) to download bigger files, updates, etc.

I don't like blocking mode, because then caller think I pressed the "rejection" button, and because it also does not save battery.

# Answer
FWIW I discussed a few ways to disable just the mobile connection here for a different reason but with the same result... depending on your Android version (you didn't mention which you were using), it's as easy as selecting the mobile icon in the notification settings to switch it off, or just selecting an invalid APN under Wifi-\>Mobile networks-\>Access Point Names or Network Operators. But the absolutely easiest and most certain way as I suggested is to pull the SIM card while you're not using it. As long as your device uses a SIM card for mobile (GSM networks do, Verizon may not), you should be good to go-- though I believe 911 calls will still work. If you want to get really down-and-dirty, you can also root the phone, rename the binary blobs that work with your cell service, reboot, then do the reverse when you're done. But I think the SIMcard trick should do it :)
> 2 votes

# Answer
> Can Android act as a WiFi Access Point while the cellular radio is turned off?

### YES.

### OPTION #1: Use your Android phone without SIM cards(s) inserted

### OPTION #2: Disable mobile data & Enable call forwarding

You can use a WiFi Hotspot while your **mobile data is disabled**, to avoid disturbances you can set call-forwarding and adjust notifications volume.

*TURN OFF MOBILE DATA*

1. Bring down the **quick settings panel** with a double swipe-down gesture (or a two-finger drag) of the notification bar.
2. Turn on **Hotspot** and adjust your hotspot settings as needed
3. Tap on your mobile network indicator in quick settings panel this opens **Mobile data**
4. Toggle mobile data off
5. In your notification bar your can now see the WiFi hotspot indicator on the left side and on the right side a cellular network strength icon with an exclamation mark.
6. Connect to your Hotspot from your other WiFi enabled device

*REDIRECT INCOMING CALLS TO YOUR VOICEMAIL / ANOTHER PHONE*:

1. Launch **Phone** app
2. Access settings by pressing **...** and then **Settings**
3. Select **Call settings**
4. Select **Call forwarding**
5. Setup a Always forward rule to your voice mail or another phone number or voice mail

*Note:* Since GSM services are still on, like text-messages, adjust notifications volume.

### OPTION #3: Learn how to find good apps in Google Play. Make sure you read descriptions ;-)

As in regards your question about apps, please use **Search** in **Google Play**. Customer reviews and ratings usually provide fair guidance about app quality.

If you find an app not working (like supposed in your case "Cell Radio ShutOff") you might want to give a **fair constructive comment with suggestion about app/widget improvement**.

*Most developers use customer's feedback for improvements and development.*

In this case the developer was clear about tested devices and even posted the code to shut off the Cell-radio by dialing a code:

> If this doesn't work with your phone you can access a builtin interface which has the same option. If you dial **\*#\*#4636#\*#\*** in Phone it will pull up a menu that will allow you to shut off the cell radio.

If above was missed or is unclear, please follow steps below.

### OPTION #4: DISABLE / ENABLE CELL RADIO USING TESTING APP

1. Launch **Phone** app
2. Dial **\*#\*#4636#\*#\*** to launch **Testing** app **NOTE:** In case **\*#\*#4636#\*#\*** (Testing App) is not available on your Phone read: http://forum.xda-developers.com/showthread.php?t=2073543&page=2
3. Select **Phone information**
4. Scroll down to find button **TURN OFF RADIO** and press it Cell strength indicator will appear empty.

Repeat and press **TURN RADIO ON** to to enable cell radio again.

**Note**: Before turning off cell radio you might want to set appropriate call-forwarding setting a **when unreachable rule**. This must be set before you turn off cell-radio.

### Important notes:

* Depends on the Android Device and WiFi hotspot application on that device.
* With dual SIM phones additional steps might be required.
* Details above are based on: *Nexus 5*; Android version: *5.0.1 (Lollipop)*

Hope this helps.
> 0 votes

# Answer
1.Dial \*#\*#4636#\*#\* on your phone If it does not work try this apk from XDA post

2.Goto phone information

3.Scroll down and you will see TurnOffRadio

4.Now enable mobile hotspot
> 0 votes

# Answer
The easiest way to turn on wifi hotspot during flight mode is to **use a 3rd party app that enable wifi hotspot in one click** like *air droid*( tools -\> tether ), *super beam*, etc.. Works fine on my ICS
> 0 votes

# Answer
PdaNet+ can be used to create a hotspot while your cell radio is off.
> 0 votes

# Answer
A simpler method than @fattire's, I think.

Just download Do Not Disturb

It seems to work quite well.
> -1 votes

---
Tags: wi-fi, wifi-hotspot, offline, cellular-radio, wifi-direct
---


title: If someone is online in WhatsApp chat

text:
# Question
Title: If someone is online in WhatsApp chat
If someone is shown to be On-line in WhatsApp inside the actual Chat we previously had, does that mean they've opened that particular chat OR that they're simply "Online"??

# Answer
From WhatsApp FAQ - What does last seen and online mean exactly?

> Online and last seen tell you if your contacts are online, or the last time they were using WhatsApp.
>
> * Online means that the contact has WhatsApp open and is connected to the internet. However, it does not necessarily mean the contact has read your chat.
> * Last seen refers to the last time the contact used WhatsApp.
> 1 votes

---
Tags: whatsapp-messenger
---


# Question
Title: External sd card is not recognized in my pc
When my phone MOTOROLA G3(2015) is updated to Marshmallow, it's not showing files when connected to PC. While connecting, it shows options as charging only, PTP, MTP, MIDI. When I select MTP, it shows the external card, but not showing the contents, where as internal memory is detected and all files are shown.

# Answer
> 0 votes
Goto

* Settings -\> Apps -\> Show system (three vertical dots) -\> External Storage -\> Storage -\> Clear data and Clear Cache
* Settings -\> Apps -\> Show system (three vertical dots) -\> Media Storage -\> Storage -\> Clear data and Clear Cache
* Reboot your device and connect device as MTP and now you can access files in Internal as well as External SD card from your PC.

Verified in Moto G2(2014) with Android Marshmallow and should work in Moto G3 too. If you are still unable to access the files, you can clear cache partition and reboot your device and check it.

---
Tags: external-sd, mtp
---


# Question
Title: How to flash a rom on an entirely blacked out phone (s5 mini G800H)
Three or four months ago, whenever I tried to connect to Play Store or my gmail account etc. my phone returned a network related error message, which happened after I made a factory reset. Some games encountered errors too.

I tried to flash a rom from sd card, but it did not install even though it said that installation was successful. Odin doesn't recognize my phone, and there is no root, so rom installer won't work because I can't install custom recovery without root (correct me if I'm wrong).

In this desperate situation of mine is there at least something I can do (except buying a new phone)?

# Answer
Custom Recovery can be installed without root. If you have Samsung Kies running while the phone is connected to PC, chances are high that it interferes with Odin. Disable Kies

Try the following method that makes use of adb commands through a commmad prompt from PC instead of using Odin.

1. Download TWRP recovery for S5 Mini from here -\> TWRP Recovery Make sure USB drivers are installed.
2. Download 15 sec ADB installer
3. Rename the downloaded img file to "recovery.img" and move this to the ADB folder that was downloaded earlier. Make sure you have ADB.exe, fastboot.exe and the recovery.img in the same directory
4. Enable developer options and USB Debugging in your device
5. Connect the device to PC. Make sure device is detected. If not re-install the correct USB drivers.
6. Once device is detected, open a command prompt and change location to the ADB directory. Issue the command "adb devices". This should give your device ID as the output.

Executive the following commands carefully:

"adb reboot bootloader" - the device will reboot in fastboot mode

Once device shows up fast boot screen, type " fastboot devices " and make sure device ID is listed

Type "fastboot flash recovery recovery.img" . this installs the TWRP image into the device. If successful you will see an Okay message in command prompt.

Issue command "fastboot reboot" and wait for device to reboot normally. Once this is done you can try the key combination to boot into recovery. If everything went well you should be greeted with the TWRP recovery instead of the stock Android recovery.

Once this is done. You can root your phone/install the ROM.zip file using the TWRP Recovery

Hope this helps.
> 0 votes

---
Tags: unbricking, samsung-galaxy-s-5-mini
---


title: Enable LTE on Nexus 6 with Lollipop

text:
# Question
Title: Enable LTE on Nexus 6 with Lollipop
My new Nexus 6 isn't giving me an LTE icon in my cell service - I get the same old H that was showing on my Nexus 4 before I upgraded.

*I'd expect to see `LTE` here* :

I talked to my carrier, who said that my data plan includes LTE, so I don't think that's a problem.

I've tried to set LTE as my preferred network, but it won't take. I go to:

`Settings -> Wireless/More -> Cellular networks -> Preferred network type`

choose `LTE (recommended)`

But the `Preferred network type` remains on `3G` after I make the change.

Is there some other setting I'm missing that will enable LTE? I've power cycled the phone several times and run through every fix I can imagine. I'm on Android 5.0.1 with AT&T.

# Answer
> 0 votes
Just in case anyone else runs into this issue: I went into an AT&T device location where they replaced my SIM card with a new one. After that, LTE was immediately available.

# Answer
> 1 votes
Chances are most likely that the SIM card you are using is not LTE enabled. You can check with the service provider on upgrading the SIM.

Once the SIM is upgraded, install Open Signal application in the phone and test for 4G signal coverage.

---
Tags: 5.0-lollipop, cellular-radio, 4g, nexus-6
---


# Question
Title: Transfer many files from android to pc, without usb and wifi
**How can I quickly transfer many files from my Android device to the PC, without USB cable or WiFi?**

Regular bluetooth would require to transfer every single file manually.

# Answer
Install Astro File Manager with Astro Bluetooth Module. Go to Networks page of Astro File Manager (using toolbar) and tap Bluetooth icon. On next screen, turn on Bluetooth and check `OBEX FTP Server`.

After pairing, use Bluetooth software on PC to browse file system of device (almost all software work as OBEX FTP client). You can copy an entire folder from device to PC. Done!
> 5 votes

# Answer
If you don't want to muck about wirelessly, why not just take the SD card out of your phone and insert it into your PC? You can then fiddle with files to your heart's content.
> 2 votes

# Answer
Open Bluetooth settings, go to Shared Folder tab, check box for 'Allow remote devices to change content of shared folder'. Enjoy ridiculously fast file sharing.
> 0 votes

# Answer
While a good bluetooth app is probably your best bet, I can think of 2 other ways that answer the question:

1. NFC. Probably slower than bluetooth, and you'd require a special module to use it with a PC--even if you can find a phone that has it.
2. Network your phone with an OTG ethernet adapter. Though in most cases if you don't want a USB cable you don't want this. It can be useful in cases where you don't have physical access to the USB port of a PC, but you can use e.g. FTP file transfer over the network.
> 0 votes

# Answer
Shareit application can be used for the transfer of files from PC to Mobile and viceversa

It does not require wifi or cables. It Would create a hotspot(have to create a network in mobile and suggested to turn off your mobile data) then you can transfer from PC to Mobile and vice versa.

(Make it as a comment as i dont have enough reputations)
> 0 votes

---
Tags: bluetooth, file-transfer
---


# Question
Title: Android 6.0 update - System UI not working
I updated my Z5 to Marshmallow 6.0 yesterday. Worst mistake of my life.

It locked out my phone and wiped some SD photos (so I couldn't get past the keylock screen - on entering the correct code, it goes black momentarily, thinks about it, then returns to the lock screen on a never ending loop). Clicking any notifications fro the dropdown menu brings up the keylock screen again, and on inputting the correct keycode in, I get the error message 'unfortunately, system UI has stopped working' then it returns to the locked screen again.

I can receive calls, emails and texts...but I cannot access them, or send anything.

Worth noting that I already did a factory reset (and lost further photos from my sons 5th birthday), which fixed the problem last night...and this morning it return in the same manner as above.

About to do a further factory reset, but that's no way to live my life with a 3 month old phone....

Someone please help (And also any help on recovering my SD images would be welcomed!)

I have been to x2 O2 stores, with one Guru who couldn't' find a solution.

THANKS! Maria

# Answer
> 1 votes
When this type of problem happens (I've seen it happen more than once where the unlock code stops working). Go to Google's Android Management and change the code. This has cured the problem twice for my clients.

There are a number of ways to get to Google's Device Manager. One ways is:

http://play.google.com -\> Click on the `Gear icon` at the top right corner of the screen -\> Click on `Android Device Manager` -\> Login -\> Select your target phone (if you have multiple devices) -\> click on `Lock`. Follow the prompts to change/set your lock code.

So far this has worked to resolve the issue. I'm not sure if something specifically has to be done to enable this feature, but since you are experiencing problems, you might consider testing the steps when you're not experiencing the immediate problem so that you can verify that it will be available the next time next time you need it.

# Answer
> 0 votes
You mentioned that your device is the Z5. I assume that your device is the one mentioned below:

Sony Xperia Z5

I did a quick search, and found that they are supposed to be releasing an update that fixes the issue:

Sony Forums and Tech Support

Now, in reference to the Photos. I am also assuming that the photos are saved on the phone's internal SD Card, and not a removable external card. If this is so, can you connect to the phone via USB/ADB? This could allow you to retrieve the photos, if it works. In order for ADB to work, you would need to have USB debugging enabled. In order for USB to work, you need the proper device drivers installed on your computer. When connecting the phone to the computer, you should be able to access the phone's internal SD Card (but not the system partition). That should allow you to copy the photos over.

---
Tags: updates, 6.0-marshmallow, locked-out, user-interface, sony-xperia-z5
---


# Question
Title: Delete contact list on samsung nexus cellphone
I want to delete my entire contact list from my samsung nexus, is there an easy way to accomplish this?

# Answer
> 0 votes
You should be able to disable Contact Sync from Settings → Accounts, and then go into Applications and find Contacts and Contacts Storage and hit Clear Data under both of them.

---
Tags: delete
---


title: one plus one update from 5.0 to 6.0

text:
# Question
Title: one plus one update from 5.0 to 6.0
I'm update my device (one plus one) to 6.0 and it works fine

but I cannot open caller and make call , also I cannot send sms (message)

my contact numbers & text message sometimes disappeard.

I don't know what is the problem?

android version: 6.0.1 cyanogen OS version : 13.0-ZNH0EAS26M

# Answer
I made reset factory to my android device , and It works fine
> 0 votes

---
Tags: cyanogenmod, oneplus-one
---


# Question
Title: How to disable the charge indicator on the GS7 lock screen
I'm getting a charge indicator on my Galaxy S7 lock lock screen. When the screen blanks I have to go through and extra step to get to the home screen. It has a new step with white fonts on a blue screen.

The writings are:

> **Full Charged Left<br>Speed Continue Trickle**

At the bottom of the screen it says:

> **Slide to unlock**

Does anyone know what app is causing this screen to come up and how to disable it?

# Answer
The culprit is a feature of the GO Launcher. It has the appearance if being a default function of the phone's OS. The screen has one option in the menu: `turn off fast charging`. That will disable that screen, but it won't disable the Samsung GS(x)'s fast charging. You can enable or disable the GS7's fast charging in the Settings menu of the device (not the `Go` program)

Turning that switch on the screen disabled the extra step (having to slide) before you get to your actual unlock screen where you put in your code.

This screen will manifest itself on any Android phone or tablet running the `Go Launcher` menu app.
> 2 votes

---
Tags: lock-screens
---


# Question
Title: What does "mount namespace separation" in the app SuperSU do?
The title pretty much says it all. What does "mount namespace separation" in the app SuperSU do and how does it affect other apps?

# Answer
From the man page for `mount`:

> A mount namespace is the set of filesystem mounts that are visible to a process.

It makes it so that the superuser has separate mount points visible to it from the rest of the system/apps. I believe the intention is to prevent any issues when remounting partitions, such as remounting `/system` as read-write. With this option enabled it should remain read-only to unprivileged apps.

It can, however, just break things more. It made my SD card unusable in root apps: Internal and external SD storage inaccessible as root
> 6 votes

---
Tags: root-access, supersu
---


# Question
Title: How to avoid superbrick by flashing / modding / rooting?
How is a superbrick accomplished? I am looking for advice of things to avoid and list of causes.

Such as, what if I accidentally flashed the wrong recovery? Could this result in a superbrick?

Or if I accidentally flashed the recovery into the wrong mount point / block device.

Or if power is lost during flashing?

Superbrick for the sake of this question is defined as resulting the phone getting into a state that can no longer be repaired by usual flashing. When the manufacturer service would be required to physically swap components, soldering etc.

# Answer
1) Flashing the wrong recovery will not result in a hard brick.

2) Flashing a recovery to the wrong mount point *might* result in a hard brick, depending on which point you flash it to. If you flashed it to the bootloader mount point, well, then, the MB is toast.

3) If power is lost during flashing, it's *probably* still okay unless you were flashing the bootloader.

**The things to avoid are:**

A) `fastboot erase bootloader` \<-- Why does this command even exist???
B) Flashing the wrong bootloader (most of the time the device will reject it if it's not made for it anyway)
C) Flashing the wrong radio
D) Doing stupid things with root
> 0 votes

---
Tags: unbricking
---


# Question
Title: How do I find out which App changes the Alarm Volume?
For some reason my alarm volumne sometimes goes to zero. I don't know which app is causing the behavior. Is there an app that can tell me the answer? An app that tells me when my volumne changes and which app is causing volumne changes?

# Answer
> 0 votes
From experience with my zte zmax2 with Android, it is the built in music player labeled " music player ". Which is a bug needing a patch yet to my knowledge. When on external speakers in the headphones Jack and a song on loop, it has the alarm look all the way up, yet went off at the music volume level despite saying otherwise. Hope this helps.

---
Tags: volume-control
---


# Question
Title: how to transfer a file from within system partition on android to desktop
# background

I'm developing an app that downloads files to the device.. some of these files are acting out and to trouble shoot I want to actually transfer these files to my (mac) desktop and go through them.

So this is what I did:

* i rooted my device
* i know exactly where my file is:

$adb shell
$su
cd /data/user/0/com.app.name.dev/files/34234/
ls

here i get the file name.. let's say it's called `file_name.txt`

the problem is when i go to my desktop and do something like

`adb -s $device_id pull /data/user/0/com.app.name.dev/files/34234/file_name.txt`

i get the error message

`remote object '/data/user/0/com.app.name.dev/files/34234/file_name.txt' does not exist`

when i know it does!

* I also tried using `scp` from within the android shell command.. but scp doesn't exist there
* i tried running `adb root` and got `adbd cannot run as root in production builds`

any help?

# Answer
it turns out that i simply should use the `cp` command from within my root android shell.. and copy it to `/mnt/sdcard`.. the rest is obvious after that
> -1 votes

---
Tags: adb, nexus-5, file-system, file-transfer, file-permissions
---


title: USB-OTG vs portable Sdcard

text:
# Question
Title: USB-OTG vs portable Sdcard
I have been in the market for an Android tablet. I have found a few within most of my desired specs. Specifically the Nexus 7. This device lacks expandable storage, as do other similarly priced devices My intent is to root the device and upgrade to 6.0.1. I prefer external storage for various ROMs and backups where they are safe from accidental wipe. My question would be is a USB-OTG system a comparable alternative?

# Answer
> 0 votes
I have seen my friends use it thus but haven't used it personally- all my devices had external SD to store

---
Tags: nexus-7, storage, tablet, usb-on-the-go, adoptable-storage
---


# Question
Title: How to run a script on a rooted android device?
We recently deployed a lot of android devices internally for displaying customized web page only.

* Device: RKM MK902
* OS: Android 4.4.2 Rooted
* Wifi radius 8021x
* Dolphin browser with kiosk mode and tab reload add-on (refresh page/30 sec)
* Also have code in web page to refresh itself
* Tried other apps to refresh browser in scheduled time window. (bad results)

The issue I am facing now is that even I setup refresh interval as 30 sec, but sometimes it still shows "page is not available", but I can access page manually from my desktop.

I am trying to find out if it is wifi issue or web server issue.

What I want to do is that have a script running on the android device accessing the page every 30 sec and log the result. My questions are

1. how to write a script on android device? what language or what command?
2. how to run this script on android device?
3. how to log the results?
4. how to schedule this script to run?

# Answer
{ have no idea about creating Log :( And I know it is not proper solution but you can try to get solution using above mentioned apps.}
> 1 votes

# Answer
1. Use plain text editor and save it as .sh. Shell or bash.
2. Install Terminal Emulator, and type sh "your script path.sh" if you need root access, type su -c sh "your script path.sh"
3. Log? you mean stdout? It will appear on terminal screen.
4. Use Tasker or Install Script Launcher
> 1 votes

# Answer
You can use install Busybox, which provides you with many utilities such as awk, file, etc... and Terminal Emulator.

1. Create a shell file with `#!/system/bin/sh` as the first line (shebang)
2. Now place the completed script under `/system/xbin` or `/system/bin` and run it from the Terminal Emulator

The information is an excerpt from this article : http://www.pctips4u.com/2016/03/writing-shell-scripts-in-android.html
> 0 votes

---
Tags: 4.4-kitkat, command-line, scripts
---


# Question
Title: How to recover video that was cut off due to being out of space?
I have an HTC One phone. I was filming a video and in the middle of it, it stopped recording because I ran out of space on my phone. It says that it does not support playback of this kind of video. I am assuming that all the content is there, but it did not write to file properly or something along those lines.

# Answer
This is what you're looking for

Just make sure you have another video on the device (can be very short or long, any video from the same phone)
> 1 votes

# Answer
*Have you tried playing the video on the computer using VLC media player?*

If the video works all the way through, then use a video encoder or converter and convert/encode it to a different format and try playing the video on you phone.

***E.g.*** 001.mp4 **-\>** Adobe Media encoder(You can try encoding it back to .mp4) **-\>** Output file: 001.avi or 001.mp4 **-\>** Put on phone and try playing the video again.

Hope this works out for you

**Keep in mind that this can only convert the video you actually have, so if the video was cut off during the recording then you can get that part of the footage back**
> 0 votes

---
Tags: internal-storage, data-recovery, htc, htc-one, video-recording
---


# Question
Title: my phone stopped showing contacts or logs.
First there was just a lag. Then it showed nothing but was able to use the search function to find the right contact in the list. Finally nothing works. Have to go to Google Contacts to find my contact list and type the number manually.

# Answer
> 1 votes
Go into settings then apps, go to all apps on the scroll at top of page, go down until you find the phone icon with call and message log beside it, force stop it, then shut down phone for 2 minutes, not precise but I left mine off this long, then restart, all logs should be back, hope it helps

---
Tags: contacts, call-history
---


# Question
Title: Disappearing call logs later automatically it can be viewed....!
Am using Samsung note 3 neo from few day I am facing a problem in call logs whenever this is a missed call, dialed call or rejected call that will not show in call log for certain period later it will listed and show.. I have cleared all the cached files then also issue is presuming same. Please help !!

# Answer
Go to settings, then apps, scroll to show all apps, go down until you see a phone icon that says call and message log, force stop it and switch phone off, leave about 2 minutes and restart phone, should all be back in place, hope it helps
> 1 votes

---
Tags: call-history
---


# Question
Title: How can I read OL Chiki characters on Android?
OL Chiki characters are not displaying on Android phone whose Unicode range is \[1C50-1C7F\] .

I know of only two processes to display such characters:

* By installing OL Chiki Unicode font. But my Android phone does not support font installation.
* By rooting the phone for installing fonts. But I do not want to root.

So, how can I install these Unicode, or how to read or display these Unicode characters on my phone?

# Answer
> 0 votes
Not all android mobile handsets support Ol Chiki, may I know which brand & model phone you are using, and whether you want to see the menu in Ol Chiki or just want to write in Ol Chiki.

If you just want to see the menu, try out this video link & if you want to type in Ol Chiki, visit this site for fonts download search on google.

Note : By implementing these steps not all locations may show Ol Chiki as some are system driven & which cannot be override by these methods.

# Answer
> -1 votes
If your device is rooted, you can install Santali Ol-Chiki Font (a Unicode font).

---
Tags: 4.4-kitkat, fonts
---


# Question
Title: Permission denied for adb push file to /data/data/xxx/file/
I used "adb pull" to backup Final Fantasy III saved data and it worked well, but it doesn't allow me to push it back after the factory reset.

```
D:\AndroidSDK\sdk\platform-tools>adb push d:\save.bin /data/data/com.square_enix.android_googleplay.FFIII_GP/files/save.bin
failed to copy 'd:\save.bin' to '/data/data/com.square_enix.android_googleplay.FFIII_GP/files/save.bin': Permission denied

```

My phone is Nexus 4 with latest stock rom (4.3), not rooted, and I don't want to root it only for a game's save files.

As a linux user, I understand the file/folder might have no 'w' permission for the adb user, but this link:

http://androidforums.com/nexus-7-gen1-2012-all-things-root/683029-titanium-backup-saved-games-can-restored.html

Says Titanium could restore the save file for Final Fantasy III, any idea how to do that with adb?

# Answer
> 1 votes
OK Seems

```
adb shell
ran-as "package-name"
...

```

Should do the trick, but because of a bug, this cannot be done on 4.3 system.

Bug: https://code.google.com/p/android/issues/detail?id=58373

# Answer
> 2 votes
If you have a developer ROM, or in any way you have "su" enabled, you could copy to the SDcard and then use the shell:

```
adb push d:\save.bin /sdcard/.
adb shell "su @ cp /sdcard/save.bin /data/data/com.square_enix.android_googleplay.FFIII_GP/files/save.bin"

```

---
Tags: adb
---


# Question
Title: Wirelessly sync music folder to microSD card
I am looking for a way to sync, wirelessly or over a cloud service, a (music) folder from my computer to the microSD card on my rooted phone. I've been trying this on Android MM with Titanium Media Sync app but it seems MM restricts the app from writing on the SD-card "Error. Failed to create local folder." I recall to be able to do so on another phone with CynogenMod...

# Answer
> 0 votes
Probably the feature that TMS is missing is superuser permissiom request. *FolderSync* as noted in the comments does asks for superuser priviledges and can perform two way syncing!

---
Tags: sync, external-sd, cloud
---


# Question
Title: How to prevent Galaxy S4 from connecting as "Connected as Installer" instead of "Connected as Media Device"?
I have my Verizon Wireless Samsung Galaxy S4's developer options enabled with USB debugging turned on. Whenever I connect it to my machine, it displays "Connected as Installer" in the notification window. However, after about thirty seconds, it switches to "Connected as Media Device" without me having done anything. This behavior is seen no matter which operating system I connect to (tested in OSX and Windows with appropriate drivers installed). I would like it to connect as a media device by default.

Does anyone know how to permanently keep the phone in "Connected as Media Device" mode?

# Answer
After connecting via USB and receive the message "connecting as installer" on your phone's screen, make sure you're phone isn't on the lock-screen and swipe down from the top (or at least on my Verizon device) you can access "USB PC connection" settings under the "ongoing" tab. Check one of two options, MTP or PTP. This would be the same pull-down where you would quickly alter various settings, view downloads and be able to link to recent notifications. This will effectively switch out of installer mode so that you can access your phone's directory and that of any sub sequential micro SD card. Hope this helps.
> 3 votes

# Answer
If you have a Verizon Galaxy S5, please follow the instructions here: http://forum.xda-developers.com/verizon-galaxy-s5/general/disable-verizon-cd-installer-t2849481

1.In the phone dial pad, enter but don't dial `*#0808#`

2.Will now show the following, choose the items with *

```
USB
( ) CP
(*) AP

USB Settings
( ) MTP
(*) MTP + ADB
( ) PTP
( ) PTP + ADB
( ) RNDIS + DM + MODEM
( ) RMNET + DM + MODEM
( ) DM + MODEM + ADB

[OK] [Reboot]

```

3.Push "OK" (no need to reboot).
> 3 votes

# Answer
In android 4.2, it was possible to access a hidden setup menu and fix the usb settings. The 4.3 update reverted usb setting to the broken default. The access codes for the advanced setup menus have been changed or removed. Samsung claims they've removed access, for what ungodly reason I don't know, and repeated requests and hours on the phone with them got me nowhere.

Until someone can break back into the advanced setup menus, there isn't any way fix this behavior besides rooting the phone or reverting to a previous version of android.

http://www.linuxine.com/story/hidden-services-menu-galaxy-s3-android-43
> 2 votes

# Answer
In case anyone with a Samsung S4 running USB Mass Storage Enabler and Busybox runs into this issue, be sure that the USB computer connection is set to MTP. This setting sometimes toggles off for some odd reason on my phone. Click the text box and you should be good to go.
> 2 votes

# Answer
Are you using a USB 2 port? I had the same issue and I was using a 1.0 port. The issue disapeared once I plugged into a 2.0 port. I have an S3 instead, but it may be the same problem.
> 0 votes

# Answer
I've had the same problem with my Verizon S4 Mini LTE (SCH-I435).

I was able to solve it through the hidden dialer. Here is a utility that was able to bring the dialer back for me, since it wasn't accessible (I am not the author):

http://forum.xda-developers.com/showthread.php?t=2434415

If you'd rather not trust the apk, it just implements this technique: http://forum.xda-developers.com/showthread.php?t=2303905

Once the menu comes up go to USB Settings and change the usb protocol to MTP+ADB. Note, the first time I used it it was already on MTP+ADB. I had to switch to PTP, save come back and switch to MTP+ADB to get it to work.

The settings stick now.
> 0 votes

# Answer
When you plug it in, it says "connected as media device - touch for other options." Click that and then on the next screen turn 'Software Installation' to the off position.

Done. You can now easily access the files on your phone as any other drive.
> 0 votes

# Answer
The files needed for rooting are not able to be transferred via MTP, switch to 'Camera' for PTP file transfer and it should work just fine!
> -1 votes

---
Tags: usb, usb-connection-mode, usb-debugging, samsung-galaxy-s-4, debug
---


# Question
Title: What should I do after installing a new battery?
I'm going to take the plunge to take apart my One (M8) to replace it's battery tomorrow and I was wondering what I should do to increase its battery life right off the bat. Should I charge it to full capacity first then use it normally, charge it to full then drain it and recharge it, or does none of this matter?

# Answer
The reason why batteries degrade over time is because blockages build up in the individual cells as the current passes through them, preventing them from fully charging. **This is a chemical process and is unavoidable, but one thing that is sure to speed it up is extreme temperatures.** Too hot and the reaction speeds up. Too cold and the phone eats up all of the power to warm the components.

So here is a few helpful tips for keeping your new battery happy:

* Keep your phone off of any insulated surfaces when charging
* Turn off background processes that can make your phone run hot
* Turn off features that you aren't using or don't use frequently (Bluetooth, location, even turning off wifi can cool down your processor)
* Keep your phone close to your body in cold weather

If you are concerned about the length of a charge, some of these tips can help there too. There are also free apps that allow you to manage the processes running on your phone, clean up junk files, and boost the efficiency of the apps you are currently using. There are also some cheap apps that allow you to modify several aspects of the OS without needing to root your phone.

As far as charge frequency, you should be fine regardless of what you do.
> 2 votes

# Answer
* When the phone is marketed, manufacturers, typically charge the battery to around 40% as you may have noticed. This is good for battery longevity and ensures battery degradation does not occur on storage. See BU-702: How to Store Batteries for better understanding
* **There isn't** a valid reason for charging the batteries for xx hours before first use or to charge till 100%. It is yet another charging myth , see misconception # 6

See BU-415: How to Charge and When to Charge? for a general understanding of charging "do's and don'ts)

Additional information on this site that would help you care for your batteries
> 1 votes

---
Tags: battery, htc-one
---


# Question
Title: Setting default Save Location in Android 6.0
Is there a way to set the default installation from my Apps to SD Card.

I couldn't find it, in `Settings/App/Configurate Apps` and `Setting/Storage & USB`.

Where do i have to look for it?

Thanks

---

My Device is a Moto G (2.Gen) with a 32GB SD Card formatted as `Adoptable Storage` (Marshmallow Feature)

# Answer
If your SD card is setup as adopted (internal) storage, apps should save their information there by default as long as you migrated your apps there, your SD card is now internal storage.

For more information, look at the Moto help page for Android 6 Marshmallow - SD card - Tips and Tricks
> 1 votes

---
Tags: 6.0-marshmallow, motorola-moto-g2, adoptable-storage
---


title: Cannot connect to google account tablet

text:
# Question
Title: Cannot connect to google account tablet
I have a tablet and an older smartphone that I wish to use as a mini-tablet. while the tablet does have Play functioning I cannot log in to google account for other purposes. It just says cannot connect to server. WiFi is fine. Can surf web etc. no problem.

On the smart phone I cannot even log in to my Play account with the app. Same error but nothing seems wrong, just won't let me log in to install apps. Cannot connect to google account either. This is a Chinese smart phone not being used for data/phone, just as a tablet.

# Answer
There is an issue with google account signin and signup all over the world today

check this for more info : http://mashable.com/2016/04/19/google-oauth-down/#I8jZi7QGiuqN

You can check now it's live.
> 1 votes

---
Tags: google-play-store, google-account, google
---


title: Can't set default app?

text:
# Question
Title: Can't set default app?
I have a Samsung Galaxy S7 Edge, and I was trying to open a Tumblr link from Facebook messenger. When the popup to choose a default app showed up, I accidentally chose Chrome.

I tried resetting the default settings on Chrome, but when the popup to choose a default app shows up again, Tumblr is no longer on the list. It just lists Chrome and another browser that I have.

I tried everything I could think of. I've reinstalled both Chrome and Tumblr, I cleaned out caches, and I've restarted my phone. I also tried to manually set Tumblr as default but selecting "via this app" on the "go to supported URLs" setting. When I disabled Chrome and uninstalled other browsers, a "can't open link popup shows up when I try to open a Tumblr link. This is driving me nuts!

# Answer
Go to Settings \> Apps in your phone. Find Chrome. You will find an "Open by Default" option for anything you have asked it to open earlier. Clear it.
> 2 votes

---
Tags: applications, settings, default-applications
---


# Question
Title: Does running Phone Repair from Xperia PC Companion delete any data?
Basically the title is my question. Also What precautions should I take before running Phone repair?

# Answer
> 1 votes
Data in the phone will be deleted, only data in the SD card will remain. Make sure you have done all proper backups of data contained in your internal memory.

Other than that, i'll make sure to have a backup of my contacts or make sure they are synced to an online service.

---
Tags: sony-xperia
---


# Question
Title: How to take a screen shot in Android 2.3.5 ZTE tablet?
Please tell me how to take a screen shot in reliance ZTE 2.3.5 android tablet?

# Answer
> 0 votes
Have you tried simultaneously pressing the power button & volume down an holding? If that doesn't work try with home + volume down combination. If zte has not provided a shortcut, just use a digital camera or another phone camera to take a snapshot of the screen.

Advanced: If your phone is rooted some apps will help you take screenshot. A cumbersome way would be to turn on the developer mode in your tablet and use adb.exe that is part of the android sdk after connecting your phone to the usb port in your PC.

---
Tags: 2.3-gingerbread
---


# Question
Title: Unable to launch sqlite3 in my sumsung phone
I have put the libncurses.so and sqlite3 in the /xbin , but it seems unable to load the library "libncurse.so". waiting for help !

# Answer
The path of libncurses.so is wrong.

It should be: /system/lib/libncurses.so
> 1 votes

---
Tags: sqlite
---


# Question
Title: How to move files(including apps) to an adopted sd card directly from PC?
I don't really know how to make a title for this and it might be somewhat far and my english is not on point but please understand.

I have a 16gb SD card that is formatted as an adopted internal storage and an internal of 1gb (**4gb originally, but OS occupies 3.4gb or something and built-in apps \[which I can't move to the adopted. I don't know why\]**). My ways of getting data onto my phone is via the USB cable to PC/Laptop, but since the PC/laptop can't read the SD card, it only shows the 1gb internal. Let's say I want to move a larger file; 2gb, how can I make it possible? Any more ways to move files?
Anyways, Shareit (a file-sharing app, available on pc) is my last resort but I feel that via the USB cable is faster.

Device: **Lenovo A7000-a**
**Android 6.0** (just updated. Reformated everything since apps cant be read because all my data(including app data/files/obb) was on the sd card and it needs to be an adopted to be capable of reading app files.)

# Answer
> 1 votes
So your SD card has a certain format. This allows it to be used for apps, but the downside is your Windows doesn't see it. In theory a good driver should present the SD card over MTP, but that's wishful thinking.

The best way to access your SD is via adb. Install adb on Windows and **push** your files over USB. This requires typed commands in a shell.

You might also be able to see your SD when connecting your phone to a Linux system.

# Answer
> -1 votes
First thing you need to do after selecting sd card as internal storage: Go to settings then Storage and sd card. Open menu and tap migrate data. This will Transfer app data, books etc to sd card from internal storage, making sd card as default write basically. Also you can access SD card now. Cheers! Lenevo A7000 user.

---
Tags: 6.0-marshmallow, files, adoptable-storage
---


# Question
Title: Unexpected battery drain when idle (Samasung Galaxy Note 5)
I am having issues with battery drain and not sure what to do, my note will lose about 30% battery overnight(about 7-8 hours) and last night it lost about 50%.

At first it said that google app used a lot of battery so I disabled the recommended things online (it's location and such), now it isn't draining as much.

Also my location doesn't use GPS, at night I always have maximum reception and yet I lose a lot of battery to cell reception, also the other 2 you can see in the picture.

Hope someone can help, and thank you!

# Answer
> 1 votes
Check your data usage. In my case, I found the Cloud service had used about 0.8GB of data over night (1.32GB over 2 days), the phone could not recharge fast enough, and it was hot. The amount of data in cloud storage is only 138MB, so I have no idea what that all of that data usage consists. If you have this issue, disable the Cloud app. Other things to check are location services settings, WiFi scanning, notifications. After the Marshmallow 6.0 update, all notifications get turned on by default.

---
Tags: 6.0-marshmallow, battery-life, samsung-galaxy-note
---


# Question
Title: Remove old device added by DroidExplorer from Windows
I had my old Kindle connected to my PC, and it showed a device in the "This PC" screen along with all my Hard Drives. Double-clicking it opens DroidExplorer and my device if connected. However, it doesn't open my new device (obviously) and sits there doing nothing and never goes away.

How can I remove that from the list? Is it listed as an "Android Adapter USB Device" under Device Manager?

For others who see this, I just want to remove the icon that DroidExplorer has added. This is what it looks like:

>

# Answer
> 1 votes
*Disclaimer: I am the developer of Droid Explorer*

---

From the Droid Explorer FAQ:

**Q.** I have a "phantom" device in Windows Explorer that shows as connected, but it isn't.

**A.** We are not yet sure what causes the rare instance of a "phantom" device. But here is how you can manually remove it.

* Open Registry Editor:
    + WIN+R
    + Type regedit, hit enter
* Search HKEYCLASSESROOT\CLSID for the value of the "phantom" device ID. This is the name under the icon in explorer
* The parent key to the device ID will be a GUID like {4aadfc55-0657-4b44-9f58-a0fca98fcb31}, for example. Remember this, write it down or paste it in to notepad.
* Delete the key "HKEYCLASSESROOT\CLSID{4aadfc55-0657-4b44-9f58-a0fca98fcb31} - replace the GUID with the GUID assigned to your "phantom" device
* Navigate to HKEYLOCALMACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
* You will see another key named the GUID to your "phantom" device, delete this key as well.

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


# Question
Title: How to modify or remove the No SIM Card message on lock screen?
Just in case: I'm using a OnePlus Two US Model (ONE A2005 / tocino) running Android 5.1.1 with MoKee (MK51.1-tocino-160403-RELEASE). I have root and xposed running as well. Using Nova Launcher, but lock screen is built in with the ROM (as in unchanged).

I'm been looking for a way to remove the "No SIM Card - Emergency calls only" from my lock screen. It would be better if I can modify the line with a custom message; replacing it, basically.

I tried looking for this online, but the only resources I found is to remove the No SIM Card icon and notification on the home screen.

Any ideas?

Thanks!

# Answer
Since you are rooted and comfortable with custom ROMs and Xposed etc, you can use Clean Lockscreen.

If you don't want to use an Xposed module, add the following line to your build.prop file: (**After you made a backup!**)

```
ro.config.donot_nosim=true

```

Now reboot your device. If you still see this message change this line:

```
ro.config.tima=1

```

To this:

```
#ro.config.tima=1

```

Then reboot your phone, and if that didn't work, change the previous line to this:

```
ro.config.tima=0

```
> 2 votes

---
Tags: cyanogenmod, lock-screens, 5.1-lollipop, oneplus-two
---


# Question
Title: MotoG won't proceed after Blue M Screen after Cache Wipe& Factory Reset
Ive been using this MotoG for 2 years now. Recently, all the Apps started to Crash on opening and on Restarting the Phone it would always show the "**Optimizing xx Apps of xx**" .I then did a **factory reset** through Settings.

The App crashing problem still persisted after i installed Snapchat,Facebook,WhatsApp. SO i fastbooted the phone and **Wiped Cache** & Did a **factory reset** . After rebooting now, it is stuck on the Blue "M" Screen and would restart to the same if i held the Power Button for 7-10 Seconds.

Please Help.

PS: No Rooting Performed. Phone not under Warranty. Unlock Code:0.

# Answer
So i figured out that the phone was locked and nothing else! Got the unlock code from the Motorola website (Which wasn't working earlier) and unlocked the phone via mfastboot , then reloaded the stock firmware and the phone is good as new! Unlock Code:3
> 0 votes

---
Tags: boot, fastboot, motorola-moto-g, motorola
---


title: Make android phone as USB Webcam

text:
# Question
Title: Make android phone as USB Webcam
I have an Android tablet based on Android Lollipop (5.1.1) and I want to use this device as a webcam via USB.

I know some apps could work (e.g. DroidCam or WO WebCam) but they require extra clients installed on a Windows / Linux computer.

Is there any way that I can add an extra option to the USB connection settings that will allow the tablet to be used as a webcam instead of a media device?

Please note I am not asking for apps that can read videos from OTG USB webcams. It's the reverse, making Android output a video feed to a separate computer via USB.

# Answer
Driodcam works fine for mine Lenovo tablet- skype and all video programs now recognize it as camera, therwise, i havent found anything that works, tried vysor, but that didnt work....
> 0 votes

---
Tags: rooting, usb, 5.1-lollipop, camera, webcam
---


title: /storage/emulated/legacy is read only

text:
# Question
Title: /storage/emulated/legacy is read only
For some reason, no apps on my phone (including adb, after running `su`) can modify any files in any subdirectory of `/storage`. I also can't use my file manager on my computer to edit, create, or delete files on my phone. However, everything else works perfectly - until an app tries to save a file (all apps are still saving their databases and settings correctly - this only applies to my personal files).

Each of these files are owned by root, with group "sdcard\_r". Files have permissions `-rw-rw----`, and directories have `drwxrwx---` which seems right. I tried reinstalling my file manager and other apps (in case their UID's somehow left the group), and that didn't solve anything.

My guess is the partition is mounted as read-only, but I'm not sure how to fix it, or which partitions are mounted incorrectly. This problem persists after multiple reboots.

Here's the output of the `mount` command:

```
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=865064k,nr_inodes=128149,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,size=865064k,nr_inodes=128149,mode=750,gid=1000 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,size=865064k,nr_inodes=128149,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,size=865064k,nr_inodes=128149,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,size=865064k,nr_inodes=128149,mode=755,gid=1000 0 0
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware vfat ro,context=u:object_r:firmware_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware-modem vfat ro,context=u:object_r:firmware_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 rw,seclabel,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persdata /persdata/absolute ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/shell/knox-emulated fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions,allow_other 0 0
/dev/fuse /mnt/shell/privatemode fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions,allow_other 0 0
tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,size=865092k,nr_inodes=128162,mode=050,gid=1028 0 0
/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

```

I have a rooted T-Mobile Galaxy S5 running stock Android 5.0. The issue started after I accidentally launched recovery mode, but I didn't do anything - actually, I assumed that it was unrelated at first. Does anyone know how to resolve this?

# Answer
> 0 votes
You can easily establish if the reason is a read-only mount or incorrect permissions. When in root shell, try `busybox touch /storage/emulated/legacy/blah.txt`. If it says `read-only filesystem`, then it's a `r/o` mount; if it says `access denied` then it's a permission problem.

---
Tags: root-access, file-system, file-permissions
---


# Question
Title: Contact App of Samsung A5(SM-A500G) become slow after software update (5.0.2)
After software update on my Mobile phone Samsung Galaxy A5 (SM-A500G), the Contact app become very slow to use. When I am cleaning the call log to zero then Contact app is working fine till the call log count reach the 4-5 in count. Please suggest the solution other than factory reset.

# Answer
download some contact app from play store n disable the samsung contact app in settings.
> -1 votes

---
Tags: 5.0-lollipop, contacts, samsung-galaxy-a5
---


# Question
Title: what do the numbers after the : /dev/block/vold/179:xx mean?
I've been trying to figure out an micro sd card issue and just stumbled upon a page where someone mentioned that the numbers after the colon would represent xyz and if they are something different then they will represent abc. I'm having issues with cm12.1 recognizing my micro-sd card and I've been trying to fix it with fsck in terminal. When I manage to find where it's mounted the numbers I am seeing are 179:33...anyone know? Thanks.

# Answer
> 3 votes
These are the "major device number":"minor device number" (You can list them with `cat /proc/partitions` in adb). The **major device number** selects which device driver is being called to perform the input/output operation. This call is being done with the **minor number** as a parameter and it is entirely up to the driver how the minor number is being interpreted. The driver documentation usually describes how the driver uses minor numbers.

The sc-card is normally mounted by the volume daemon (vold). The output of mount shows you where the according mount points are.

---
Tags: 5.0-lollipop, external-sd, linux
---


title: Untouchable state

text:
# Question
Title: Untouchable state
When I connect my device with USB to Windows PC it shows as

> Marshall London HS-USB Diagnostics 9006

at device manager. Windows finds multiple device partitions and asks if I want to format them.

Device cannot boot properly. **I cannot enter download mode or do factory reset with button combinations**. Screen shows LG logo for a while and then goes dark (backlights still on). While logo is still up, it shows

> Boot certification verify

message.

I have tried to connect to device with multiple tools, including ADB/Fastboot with no luck.

I got there by doing factory reset on rooted device. I got that message before I was doing factory reset and device booted just fine.

How do I connect to my device in order to flash its firmware? Or might be just restore to previous state? What does that boot certification message mean?

# Answer
This post can be used as reference http://forum.xda-developers.com/lg-g2/general/lg-g2-unbrickable-fix-real-hard-brick-t2904404

Shorting capacitor c5004 switched device to QDLoader 9008. From there I was able to use BoardDiag v2.99a to fix this issue. Other versions of this tool gave me some errors.
> 0 votes

---
Tags: lg-g2
---


# Question
Title: Phones wifi turns off automatically when im in wifi
When I am using my wifi, after many minutes it disconnects and it will show in my screen that I am connected to my wifi again. What do I do? I checked everything.

# Answer
> 0 votes
This happens to me as well. Try Disabling power saving apps and see if it works out, if not backup your data and try factory resetting your phone or reflashing it (android) or reinstalling the phone's software via your phone manufacturer'sPC software. If that doesn't solve your problem your phone might have a problem with the antenna.

---
Tags: 5.0-lollipop, 6.0-marshmallow
---


title: Android app x11 forwarding to computer

text:
# Question
Title: Android app x11 forwarding to computer
I have "SSH Server" app installed. I'm able to connect and launch apps using `am`. I want to forward the apps through X11 forwarding to my linux computer. Is that possible?

There is a "X11 forwarding" configuration in "SSH Server" that I have enabled, although I have no idea what the effect is.

So far, when I connect to the phone I get:

```
$ ssh -X user@phone
user@phone's password:
X11 forwarding request failed on channel 0
u0_a107@phone:/ $

```

So it seems I have some extra issue with X11.

Anyone has tried this before?

# Answer
What you're trying to do is not possible. Android has its own windowing system, not X11, so X forwarding won't do anything on Android.

There are other screen-sharing systems (such as VNC) which might be more suitable for what you're trying to do. This answer talks about a Samsung-specific app, and this question has a couple of options. The and tags have a lot more information.
> 2 votes

---
Tags: applications, ssh
---


# Question
Title: Micro SD Card Suddenly not Recognized in Phone Slot Only
This has been bothering me for weeks. I have an android phone (Moto X Pure) that allows for an external storage card to be added. I have one SD card that I was using for a while but I got a new one that I wanted to switch to. The first time I put this card in my phone, it saw it and was happily ready to format it and everything. I accidentally formatted it as a media transfer card instead of an addition to internal storage so I took it out to format it on my computer (with fat32) but when I put the card back in the phone, it wasn't detected. At all. All of my computers seem to like it just fine, a friend's phone was even okay with it. It is literally only my phone that seems to have issues with it. My other micro SD cards are fine in my phone as well. If I connect the SD card through the USB port, the phone recognizes it, but only as a file transfer drive.

I've tried rebooting the device, formatting the card, formatting the card from another phone, and trying to find the card with a file manager from both the phone and a computer with the phone hooked up to it. It seems as though that one SD card just refuses to work with that one slot!

Any help getting the micro SD card to work in my phone would be greatly appreciated!

# Answer
> 1 votes
You may be experiencing some specific partitioning incompatibility. Try to compare the partition table of cards mountable in your phone with the unmountable card. Here are some things you might want to take note of:

1. File systems (exFAT, FAT32, ext4, etc).
2. GPT vs. MBR.
3. Hidden partitions or unused spaces preceding the main data partition.

---
Tags: sd-card, storage, 6.0-marshmallow, moto-x, formatting
---


# Question
Title: Disabling "Storage space running out" notification in Status Bar?
Is there any way to disable the "Storage space running out" notification on Cyanogenmod 10.1.3 \[Android 4.2.2\], through ADB or otherwise ?

# Answer
> 1 votes
To permanently disable storage notifications, try long-pressing on the notification, go to `App Info` and uncheck `Show notifications`. You must do it through long-pressing.

If it is un-checkable, hit `Force Stop` and confirm.

This is a known method to get rid of Verizon's persistent Wifi notification: Similar Guide

Hope this helps,

# Answer
> 1 votes
Since the device is rooted you can install a compatible Xposed Framework1 and then the Xposed module NotifyClean. The app's description notes:

> You could configure which apps are allowed to create notifications in the top left area, the notification area. If an app creates a notification it will be collected and added to the list.
>
> You could deny all notifications of an app or only specific messages - if it's not a customized notification. So I used it to hide "waiting for connection", but not "you are connected".

Install the module, activate it in Xposed Installer app, reboot the device, wait for the "Storage space running out" notification, long press the notification → App info/details → note the app's label causing that notification. It may possibly be Android System.

Now, launch NotifyClean → tap the entry of the app whose label you noted → select the notification you want to hide (it would turn red). Reboot and the notification would remain hidden.

---

1 Xposed Framework: Android 4.x, Android 5.x and 6.x

---
Tags: cyanogenmod, adb, storage, notification-bar
---


# Question
Title: Downloaded images/music files not appearing
I've been having problems with my gallery and music app on my lg g2. I recently initiated a factory-rest on my phone and I wanted to download an image to see if it would work appropriately, but it refuses to create a "Download" folder and put it in there. They still download and I can open them manually by tapping on them, but the gallery itself doesn't create a folder to place it in. I poked around on my computer with the usb connection with my charger, and I don't see anything wrong. Something notable though, is I did delete the .nomedia folder before I factory-reset, but it appears to have returned. The files even show up in the folder, but they're not able to be viewed by the gallery app. I'm using the default one that came with the phone, and I have tried many solutions, but to no avail. If there's a solution anyone can recommend to me, it would be very much appreciated. Thanks!

# Answer
It is common "bug", I would like to call, they will appear as soon as the mobile is restarted and files are registered in Media library.

Another trick I use is I copy that downloaded folder to another folder using a file manager, and voila. You should try it too.
> 0 votes

---
Tags: downloading, gallery, lg-g2
---


# Question
Title: Won't placing a cuostm ROM file before factory reset remove it from the phone?
I have run CM12.1, OxygenOS, and now Exodus for a while now on my OnePlus One - but for the life of me I cannot remember where you have to place your new ROMs zip file.

When flashing a new ROM you should start from a clean slate so you do a factory reset wipe. However, as it seems that this basically wipes all the data from the device, where should I place the ZIP files I want to install later on?

If I access my phone through USB on my computer I assume that I can only access the data-partion (/"SD card" partition) and these get wiped any way, so how and where should I place the new ZIP files?

# Answer
> 3 votes
It is noted in the link you mentioned:

> Depending on your device and its configuration, you may have options for wiping internal storage, external storage, sd-ext, android\_secure, and/or an option for formatting data. ***There’s almost no reason that you would ever need to use these items.***

<sub>(Emphasis mine)</sub>

For a clean wipe, you can get rid of everything under */data* except of */data/media/* which in particular gets mounted as the emulated internal storage by Android. In short, it houses your files and serves as the internal SD card (*/sdcard*). You can however get rid of */data/media/0/Android* directory since it contains files related to applications installed in your currently installed ROM. Those files may or may not interfere in smooth functioning of your new ROM after a clean wipe.

Advanced wipe can be performed from TWRP through Wipe → Advanced Wipe → choose appropriate boxes. **Remember**, *Internal Storage* there means /data/media and Data means */data* excluding */data/media/*.

---

**If you still intend to wipe everything:**

As Salesman wrote, you can use an external SD card to store the ZIP. If your device (OnePlus One does) supports USB OTG then you can use a USB drive as well to store the ZIP. Otherwise, as Death noted, is also a good option. In the side loading mode, the zip is served or as you said, streamed. You would need version 1.0.32 or above of ADB client in your PC to do side loading.

To initiate side loading, from TWRP go into Advanced → ADB sideload → swipe to begin sideload. In the PC, provided that you've setup and device plugged in using USB, issue the command:

```
adb sideload PATH   # PATH is file path of your ROM's zip in your PC.

```

Once side loading completes, you can do whatever you want in TWRP.

By the way, using MultiROM for OnePlus One you can get rid of all of this dilemma.

# Answer
> 0 votes
Fun fact: TWRP already knows this will happen for some. It fixes this by not wiping all data.

First things first, most custom recoveries factory resets work by wiping apps, contacts, and accounts/settings, but dont format your internal data (images, music, etc) you can notice it where it says:

```
Formatting /data without erasing /data/media

```

So, how does this help?? Simple. You cab load the ROM on to the internal, open the TWRP app, and head to install. Pick you ROM, And tick the appropriate boxes-including wipe data and cache. Go ahead with it and wait.

**BUT BE WARNED!** It is not always perfect, and may bootloop or install-loop. It has worked for me often though.

---
Tags: custom-roms, twrp
---


# Question
Title: Updated Android phone with Android N Beta, Will factory reset revert the OS version back?
I updated my Android phone with Android N using Android Beta Program, Now if I factory reset my phone, will it revert the OS version back to the old one?

# Answer
A factory reset will not downgrade your device to Marshmallow. To downgrade to Marshmallow, unenroll your device: https://www.google.com/android/beta.
> 0 votes

---
Tags: 7.0-nougat
---


# Question
Title: Using SD card as internal storage and migrate date
I read this question, but I want to update the question.

Now with Android 6.0 we have the option to format the SD card as internal storage, and that's what I did. I also clicked that "Migrate data" option that moves pictures, music and such to the SD card storage.

However, I downloaded more music and now the internal storage is full. **And the "Migrate data" option now tries to move data from the SD to the internal memory.** So apparently you can only use it once #fail

**The apps that consume the most space are precisely apps containing media that could go into the SD card** (red arrows). Others are games that even allow the user to move the app to the SD card (blue arrow). For some weird reason, it always fails with a snack bar saying "internal error occurred".

* Should I format the SD card as external? I'll never remove it, so this "format as internal memory" option seemed perfect.
* How can I migrate all this media/data back to the SD card?

Am I doing something wrong here? I have a Moto G 2nd gen.

# Answer
> 3 votes
OK, I think I found out the best setup.

1. Format your SD card as internal memory.
2. Go to **Settings \> Storage \> Internal** and open each app. Some apps have a "change" button. Press it to move the app into the SD card.
3. Finally go to **Settings \> Storage \> Internal** and on the right corner press **Migrate data**.

At this point, you did all you could.

# Answer
> 2 votes
You will need to format the SD as removable storage for it to work as you describe. The option as described by Dan is not available with your SD formatted for internal use.

I did read a post somewhere that suggests Google Play Music will have a fix this week but hard to say for sure.

In my opinion this feature either doesn't work as intended or the Google Play apps haven't been updated for this feature despite marshmallow being out for 6? months already.

Note: I have just installed the new update 22/4/2016 and you can now select the SD storage, so this is now fixed!

---
Tags: external-sd, 6.0-marshmallow, storage, app2sd, adoptable-storage
---


# Question
Title: Are there any applications that actually rotate an image?
I have Sketchbook Mobile, and I'll draw some image with my phone tilted on the side. Now I want the image rotated. Sketchbook Mobile doesn't have the option to rotate the actual image, and so far neither does any program that I've actually tried. They just rotate how the image is displayed but they don't modify the actual image, so when I upload it to Photobucket or something, it's 90 degrees off.

Are there any programs that *actually* rotate an image?

# Answer
I used Photo Wonder for this on older versions of Android.

In newer versions of Android, the built-in Gallery app supports this.
> 2 votes

# Answer
For this and all my editing needs on my phone, I use PicsArt.
> 0 votes

---
Tags: images
---


title: How to set SELinux to Permissive

text:
# Question
Title: How to set SELinux to Permissive
Since installing XtreStoLite 3.1.1, SELinux is set to Enforcing (when I try to boot into TWRP recovery). I tried setting it to permissive (Enforcing = 0) using a terminal emulator (the phone is rooted), but to no effect. It would appear that this is preventing me from booting to TWRP to install Aroma.

Any ideas?

(FYI, SELinux Mode Changer didn't work)

# Answer
If SELinux Mode Changer doesn't work, and you are properly rooted, then your kernel likely isn't compiled with permissive mode and was compiled with the flag `EXTRA_CFLAGS += -DCONFIG_ALWAYS_ENFORCE=true` which doesn't allow permissive mode to be set in anyway.

You will need to get the kernel source from the manufacturer, which **should** be available if they are honoring the GPL license, and in the file `~/android/kernel/security/selinux/Makefile`

Find the line of code that says:

`EXTRA_CFLAGS += -DCONFIG_ALWAYS_ENFORCE=true`

and change the value of it to `false` and recompile the kernel and make a zImage and flash it to boot.

* Example Source for reference

That being said, TWRP should support SELinux Enforce, just never **EVER** run a `fix permissions`
> 3 votes

---
Tags: twrp, selinux
---


# Question
Title: Why is SMS to contact group not using contact's default number? Sends to wrong number
Scenario: contact group ABC contains 3 contacts, A, B and C. I regularly text the group, and it works fine. One day, contact A gets a new phone and a new SIM. As is my habit, I retain A's old number for a while, just in case, and add the new number to A's contact record and mark it as the default number.

From this point, if I phone contact A, it uses the new number. Fine.

But now, whenever I text contact group ABC, it still sends to A's old number. Not fine.

I have searched for any information or fixes but drew a blank.

This is a Samsung Galaxy Ace 4 btw.

# Answer
> 0 votes
The reason is that the existing conversation thread for contact group ABC has hard-coded knowledge of the phone numbers used, rather than a reference to the contacts. Therefore after setting a new default number for contact A, texting group ABC *using the existing conversation thread* will send to A's old number. However, texting group ABC by creating a new message and selecting the group from contacts will send to A's new number as expected.

---
Tags: contacts, sms, samsung-galaxy-ace, contact-groups
---


title: Can't pull down quick settings panel?

text:
# Question
Title: Can't pull down quick settings panel?
So my HTC One M8 battery has been dying recently at around 30%. I'm pretty sure it's hardware, as it happens even after flashing a RUU multiple times.

Well anyway, I just searched for showtimes for a movie theater near me and it shut off with no warning, as now is normal. I plugged it in, turned it on and... Nothing from the Android OS is vibrating, as in the lower on screen buttons don't give haptic feedback like before, but all third party apps do, like my SwiftKey. I also noticed that I can't swipe down from notifications to get to my quick setting, it's like it was never designed to go any further. Another thing that changed is that Now On Tap is also disabled. Holding on the home key does nothing.

Is it possible the sudden shutdowns finally corrupted something? Should I restore the backup in thankfully made last night, or is there a way to fix any of this?

# Answer
Don't know if you still need a fix for this (it's been a few months since you posted), but anyway I had the same issue with not being able to open quick settings and also my M8 stopped displaying notifications. Not sure what triggered all that, but after performing a few dirty wipe re-flashes of my ROM, I finally did a clean wipe (not just system and caches but also data partition) and that fixed it. Having a google cloud backup made downloading everything a little easier, but I couldn't have avoided essentially wiping everything but my SD card and needing to reinstall all my apps.
> 0 votes

---
Tags: 6.0-marshmallow, htc-one
---


# Question
Title: Access to Android phone's SD card from PC, without USB
This question is classical: *how to access the phone's SD card from PC?* Of course USB works very well, but I'm looking for a wireless solution.

I've already tried various apps and solutions, but very often, with these wireless solutions, **I didn't have real full access** to the SD card, like I would have for a USB flashdrive or a harddrive or a CD-ROM. (see image below)

Thus my question is : **how to access the phone's SD card from PC, wirelessly, with full access to SD card from PC?** (I mean: having a drive letter F: and being able to run .bat batch files on this SD card from the PC; this works when connecting with USB cable)

*Note: I've tried tools like installing "FTP server" on phone, connecting by wifi, and then using tools on PC that make FTP look like a removable disk. But this was very tricky, and at the end didn't work well. And above all it was not handy on every day use.*

# Answer
I personally use FTP to achieve this...

You can try it too. All you'll just need is an understanding of how ftp works which is very basic by the way.

Download any app that provides an ftp server on your android devices, they are always pretty easy to use. I currently use use ES File explorer's functionality to do this.

As shown here

Selecting Remote Manager is all you need.

After the ftp services has started on your android device and is on the same network as your computer, you should then spring up windows explorer \[win-key + E\] or even a web browser and enter ftp://phones\_ip\_address:ftp\_listening\_port into the address bar

**Note:** the column separating address and port. Lemme know if you get this
> 1 votes

---
Tags: internal-storage, bluetooth, usb-connection-mode, usb-mass-storage
---


# Question
Title: I've formatted my SD card as internal on CM13 nightly and now it won't update
So the update is stored in storage/emulated/0/cmupdater and if I try to update via the Settings it just boots into TWRP and does nothing. I tried manually browsing to flash the zip but I can't seem to find it. Any help?

# Answer
> 0 votes
Upgrade to TWRP 3.02 solved this for me

---
Tags: cyanogenmod, 6.0-marshmallow, twrp, motorola-moto-g2
---


# Question
Title: HTC One M8 overheating, random reboots and unable to power it off
Last night I forgot to charge my HTC One M8 phone, and when I woke up in the morning, the battery was dead, Unsurprisingly. I plugged it in to charge for about 20 minutes (only to about 30% or so charge) and then left my house (with my phone in my pocket). The device was off during charging, and I only turned it on about an hour ago, putting it back in my pocket after seeing that it booted fine (and that I had about 30% charge left). About 15 minutes ago, I noticed the device against my leg getting very hot, and pulled it out to see the "HTC One" startup screen. I found this strange because I had already turned on the device, so I don't know why it would be rebooting.

After it started up again, I went looking for what may have caused my phone to seemingly reboot as it did, and in the process of using the device to do this, my screen went black and showed the HTC startup screen again, and afterward, back to my lock-screen. I'm pretty sure It's been doing this cycle of starting up and then randomly rebooting since I turned the unit on some hour ago.

I use an OtterBox Defender case on my phone, and noticing that it was extremely hot on its own, I removed the phone from its case. The rear of the phone was *even hotter,* to say that I wouldn't be able to hold the device that long because of how warm it is. From this, I was able to determine that overheating could be the cause of this cycle, so I tried to shut off the device by holding the power button and selecting "Power off" from the menu, but after it would shut down, *the unit would **turn back on***. I have no explanation for how or why this would happen.

It seems now the device has run itself out of battery, so I'm letting it cool for the next couple hours until I can charge it again at home. Is there any solution to this should it be happening again?

*Stock Android 5 Lollipop, Sense 6.0, No S-Off or Root*

# Answer
For a quick fix for it rebooting after you power off, try holding the volume-up button while holding the power button. For the phone, it simulates a battery pull.

Maybe try to wait overnight and wait until the morning to see if the problem still persists. If it does, hold the volume-down button and the power button at the same time, from the shutdown state to enter the Hboot HTC bootloader.

If you have a custom recovery installed, enter it and try to clear the `cache` and `dalvik-cache` partitions. If you don't have a custom recovery, use the fastboot command: `fastboot erase cache` with a simple tool like Minimal ADB and Fastboot while in fastboot in the bootloader.

If this still doesn't work, you're probably going to have to factory reset/format the whole system.

I have an HTC One M8 (writing on it right now), and the only time this happens is when I flash a corrupt ROM, however.

If you're going to have to format it, I suggest flashing the stock Android ROM, it has really nice animations.
> 1 votes

# Answer
I've had the same problem on my HTC M7.

After some research, I came to a conclusion that this is not a software problem. When sending my phone to the retailer for repair, they told me t**he lifetime of my processor pretty much ended**. This was indicated by the phone heating up and randomly rebooting.

In my specific situation, this came due to me rooting my phone and overclocking it continuously.
> 1 votes

---
Tags: reboot, htc-one-m8, shutdown
---