text:
Microsoft Exchange emails not syncing with gmail app
I have a Moto g8 with Android 10. I use default gmail app to read my phone's gmail account as well as my two work emails (both MS Exchange/Outlook). I do not use the Outlook app for the latter.
I have all accounts on manual sync, by choice: they sync only when I open the app and push emails (swipe down). This works fine with the gmail account. However, since some time ago (maybe 6 months or more), the two MS accounts do not sync. I need to go to Settings -> MS_account_name -> Incoming settings -> Next, and then I get the emails. This lasts for a few hours. Then I need to repeat. It seems like MS authentication for Gmail app is temporary. I have all phone apps updated.
I've scrolled through lots of posts and webs but most advice is trivial (example) and not relevant. Can't find a reply to this specific problem. Any ideas?
Update: Has this anything to do with the removal of basic auth?  I tried deleting and reinstalling app, as suggested here, but no effect so far.

As you have already set-up everything from scratch a bug in Gmail app could be the cause. To understand what is going wrong it may be helpful to check adb logcat messages when you try to sync and it fails. That requires to enable developer options on your phone and enable adb in it. On PC side you need an adb driver and at least the minimal adb package as I assume you don't have Android SDK installed.

@Robert Mmm, can I not dump the log as a file in the phone in a simpler way?

No. Apps don't have access to logs of other apps. adb logcat is the only way to get this kind of info on a non-rooted device. In general my recommendation is to have a working adb environment and a device that has granted adb permissions. Once you screen breaks adb is the only real option to get at least some your data form the phone (unless you sync everything to the cloud).


text:
Changed EXIF dates and file attributes are not recognized on Android
I had several jpeg images stored on a MicroSDXC card that had incorrect dates, year 2000, which were taken in 2010.
I inserted this SD card into slot and used EXIFtool to correct dates, which were correct afterwards - date information was stored in DateTime, DateTimeOriginal, DateTimeDigitized. I also changed File created, File modified date from the EXIF tag by using BulkFileChanger, so it shows the correct year in file system.
I used TeraCopy to copy modified files onto SD card and used Transfer: Data, Timestamps, Attributes, Streams + Transfer options were set to "Verify files after transfer".

I inserted this SD card back into Samsung Android phone and opened Google Photos app, the photos were still being showed wrongly at the end of timeline, in the year 2000. I cleaned cache of the app (Google photos and Gallery Go) and it didn't help.
I also saw that images on which I changed EXIF dates had prefix in their file names, something like ~~adt00000416~~DSC03040.JPG, and are stored in storage/01D0-A640/DCIM/folder/~~adt00000416~~DSC03040.JPG.
I moved those files again from Windows to SD card but with TeraCopy Streams and Attributes disabled, but it didn't solve the issue on Android. File dates were showing correctly on the SD card (checked via irfanview exif info and file explorer) though and incorrect dates are nowhere to be seen.

Is it possible somehow Android has cached metadata of those files and perhaps even stores them hidden somewhere (hence that extra prefix in filename), and refuses to show metadata of newly modified files?

I wonder if Android is showing photo order based on file modification date and not the EXIF data?

@Giacomo1968 I am not sure, the files that I transferred onto SD card didn't had any wrong dates anywhere. But android apps most likely sort by one of those 3 EXIF date tags in Google Photos and Gallery Go.

This seems to be an Android issue as implied here: “Digital cameras add EXIF data to a photo, including date/time taken (from the camera), exposure and other details. However, most apps sort photos by their file date, NOT the EXIF date. This is the date when the file was copied to its current folder, which could be days or years later, very unlikely to be the true date when the photo was taken.”

@Giacomo1968 I had set File attributes (file date) from EXIF tag by using BulkFileChanger. The file attributes in Windows File explorer on SD card are exactly as corrected Date Taken in EXIF tag. I said in my OP post that there aren't wrong dates seen anywhere in the files that are located on the SD card.

@Rudolph Then this question definitely should be migrated top the Android specific SE site for further debugging since this is a truly oddball case. While others have voted to migrate it to the Android SE site, you can accelerate the process by flagging a moderator and asking them to migrate it.

gallery stores date in its own database, maybe it doesn't recognize the modified files. clear app data and check again

@alecxs already did.. I uninstalled app completely and installed again too (both GG and GP). But it started generating again thumbnails and timeline that was going back to year 2000... even though there are no files on that SD card that have year 2000 anywhere (I sorted them on windows file explorer and voidtools everything, and oldest ones were in 2008..

get the file name of any 2000 file. check stat from adb shell

can you check 'adb shell stat /storage/01D0-A640/DCIM/folder/~~adt00000416~~DSC03040.JPG' from usb-debugging please?

source: Stack Exchange

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

sort: votes


text:
Why does bluetooth turns itself off
I have a Galaxy S4 (GT-9505) here where Bluetooth is turning itself off. Sometimes this happens after a few seconds. Other times it takes longer or even stays on. Also, if it stays on can't find other devices with turned-on visibility.
Here is the log: http://pastebin.com/MP3YyQxS I cut a lot of unrelated stuff out and it starts right before I activate Bluetooth and ends right after it deactivates itself
Does anybody have similar experience?

Seems like the system tries to read a non-existing file. Try to delete application data of the Bluetooth app (package name: com.android.bluetooth)

Check to see if Battery Saving Mode is ON.   By turning that function off on my phone, the Bluetooth issue was gone.

A long time ago I had this same issue, but with Bluetooth and WiFi; Turns out to be the Bluetooth & Wifi Card on the phone, it had been damaged... How? After letting my phone fall too much times.
That phone wasn't able to operate anymore, because the only solution was to brass the card to the motherboard again and it would work normally, but there was a risk of damaging other parts of the motherboard when doing this process. Finally I tried it and didn't work, so I also damaged the mb and the phone died.
I RECOMMEND CHECKING YOUR PHONE WITH AN EXPERT

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
Lollipop update issues
I have updated my Moto G2 to Lollipop 5.02,
1) After which facing Wifi issues, where it does not connect to saved networks, One has to remove the network from the saved networks and reconnect by entering the password.
2) The Photos folder shows up twice on the menu of apps
3) The Moto Assist, which reads out your message or answers the calls in Home or Driving mode does not work. the voice reads the message and then beeps to turn on the speaker to listen your reply to either send an sms or answer calls... keeps beeping until one has to exit out of the assist mode.
Guys, do let me know if anyone here are facing these issues after the update. How one can get rid of them :)

Go to Settings -> Apps
uninstall all the updates to the apps (roll back apps to factory installed).
It worked on my phone (Moto G2).
resolved issues (checked and verified):
1. duplicate photo folder
3. apps open instantly (else they took a long time to open and screen had to be locked and unlocked again for any app to open)

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/3.0/


text:
How to disable autocomplete in Chrome for specific sites
When I visit passwords.google.com in Chrome for Android (Marshmallow) I have the option to autocomplete the password.
I would like to disable passoword autocomplete for this site only, or maybe for selected sites, leaving the autocomplete enabled for most sites.
Is it possible to do so? How?

It is not possible for an user to disable autocomplete for a single site. You can check this link to disable the feature on Chrome (all sites) - it is a simple tutorial on how to do it.
However, for a single site, unless you are the website's developer and don't want your users to have this feature, you can't. But, if you are, you can check this stackoverflow post

This is helpful and accurate, but frustrating.  Sounds like it needs a Chrome enhancement request since every other system has some sort of list to control browser behavior by domain/regex.  Looks like I have to edit it in place for now using the dev tools as a user..

Actually you can disable the autofill for usernames and passwords for just one site.  Go to settings in the Chrome browser then to passwords.  Scroll down to find the website that you  do not want autofilled.  Then you hit on the 3 dots and remove it from the list of saved passwords.

You are not actually disabling autocomplete with this step-by-step, but only removing a saved password...

all_licenses: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/


text:
Swapping External to Internal Memory
I have swapped my external to internal memory by using the app external2internal after rooting my Samsung Galaxy Core i8262. And it went wrong! I want to revert back my previous original state. Is there any option? How to get my original previous condition, Not to swap anymore! Please help me anyone!

just tick the reset at boot box and reboot your phone,i switch between the state you in and original state all the time.


text:
There is an Android equivalent to Microsoft's CTRL+Z?

Possible Duplicate:
Is there any undo command when editing any field

Today I just make a mistake when typing a text on a box over Android's browser and then I realise that I was missing the "back to past" CTRL+Z Microsoft Windows feature, which allows you to step back anything you made on Windows. So, there is such thing on Android OS?

The back button serves as Undo or Cancel (or Back) in many apps, but won't help with a typo in a text box, it's more likely to lose everything you've typed in there than undo the last bit of typing.
I don't believe that there's any standard, central Undo function in Android at the moment. As very few devices have a hardware keyboard, and many devices are starting to drop even the four hard buttons, I'm not sure how Undo could easily be invoked/shown to the user. Ctrl/Alt etc key combos obviously aren't practical on a soft keyboard on a 4 inch touchscreen, and I'm not sure how else it would be done except with a dedicated undo button on the phone or the soft-keyboard.


text:
When will my device get the Android 4.0 update (Ice Cream Sandwich)?
Android 4.0 (Ice Cream Sandwich) was officially announced on October 19, 2011.
(You can review the high level SDK changes in Android 4.0 or the official changelog at the official Android Developer's site.)
Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.
When will each device get Android 4.0, either officially or unofficially, if ever?
See also:

When will my tablet get the Android 3.x update (Honeycomb)?
When will my device get the Android 4.1 update (Jelly Bean)?

Google has announced that only some of the newly released phones, probably in the later half of 2011, would be getting the updates atleast for now. Other devices like the Samsung galaxy s series may never get the upgrade.

@Kiran Do you have an source (link, etc.) for that?

https://supportforums.motorola.com/community/manager/softwareupgrades shows all of Motorola's Android devices and versions.

Engadget has a page where they're keeping up with pronouncements from OEMs: http://www.engadget.com/updates/which-devices-will-get-ice-cream-sandwich/

JR Raphael at Computer World also has a continuously updated list: http://blogs.computerworld.com/19341/android_40_upgrade_list

Should unofficial ROM hacks be added to this list? For example, I'm running 4.0 on my Samsung Galaxy S already, available from http://forum.xda-developers.com/showthread.php?t=1363593

@onik: Yes, within reason. I wouldn't add raw alpha versions. If it's a relatively complete version, indicate that it is Unofficial and link to where one can download the image.

Motorola explain why it can take so long to get updates like ICS out to people's devices: http://www.motorola.com/blog/2011/12/07/motorola-update-on-ice-cream-sandwich/

I bought a Nexus S in December 2011 with 2.3.6, 2 weeks later it was updated to 4.0.3, some weeks ago it was updated to 4.0.4.

@ott: Got something that announced it that we can link to?

@AlEverett I haven't made a screenshot when the upgrade notice came (I'll do that next time), this is a screenshot of the current system state: http://img191.imageshack.us/img191/5201/screenshot2012070408233.png

This community wiki will list all of the known and rumored dates for devices. If you have an update make sure to follow the format that's been established, and the following guidelines:

Keep phones in alphabetical order listing the manufacturer and model
Specify if the date is confirmed or rumored and link to the source
If there is an unofficial release, link to the site where it can be downloaded

Note that devices that do not meet Google's Compatibility Definition will not receive a Google-sanctioned update. In the case of the major manufacturers and many others, that means they won't release an update at all since Google's certification is important to their business.
Phones
Google Nexus ONE

Official: never (confirmed)
Unofficial: Oct 2011 (alpha)

Google Nexus S

Official:

GSM - T-Mobile (GT-I9020): Soon (rumored)
GSM - AT&T (GT-I9020A): Soon (rumored)
CDMA - SPH-D720: April 2012 (confirmed)

HTC Amaze 4G

Official: May-June (confirmed), June 16th 2012 (unconfirmed)

HTC Desire

Official: never (confirmed)
Unofficial: November 2011 (beta)

HTC Desire HD

Official: never (confirmed)

HTC Desire S

Official: By the end of August 2012 (confirmed)

HTC DROID Incredible 2

Official: To be determined (by the end of August) (confirmed)

HTC DROID Incredible S

GSM (international)

Official: 2012-July-2 (confirmed)

Verizon

Unknown

HTC EVO 3D

Official: Early August 2012 (confirmed)

HTC EVO 4G+

Official: May-June (confirmed)

HTC EVO Design 4G

Official: 1 August 2012 (confirmed)

HTC Incredible S

Official: June-July (confirmed)

HTC Raider

Official: TBC (confirmed)

HTC Rezound

Official: August 2012 (confirmed)

HTC Rhyme

Official: June-July 2012 (confirmed)

HTC Sensation

Official: March-June (confirmed)

HTC Sensation 4G

Official: March-June (confirmed)

HTC Sensation XE

Official: March-June (confirmed)

HTC Sensation XL

Official: April-Jun (confirmed)

HTC Thunderbolt

Official: 31-Jan-2013 (confirmed)

HTC Velocity 4G

Official: March-June (confirmed)

HTC Vivid

Official: March-June (confirmed)

Huawei Honor U8860

Official: 12 January 2011 (confirmed)

LG Optimus 2X

Official: 2012 (confirmed)

LG Optimus 3D

Official: 2012 (confirmed)

LG Optimus Black

Official: 2012 (confirmed)

LG Optimus LTE

Official: 2012 (confirmed)

LG Prada 3.0

Official

Germany and Italy: 4-July-2012 (confirmed)

Motorola Atrix 2

Official Q3 2012 (confirmed)

Motorola Atrix 4G

USA (MB860) Official Q3 2012 (confirmed)
AsiaPac/EMEA/LatAm (MB860/MB861/ME860) Official: (TBA)

Motorola DROID 3

Official: never (confirmed)

Motorola DROID 4

Official: 2012 August 14 (phased update) (confirmed)

Motorola DROID Bionic

Official: Early Q3 2012 (confirmed)

Motorola Droid RAZR

Official: 2012-06-21 (confirmed)

Motorola Droid RAZR Maxx

Official: 2012-06-21 (confirmed)

Motorola Photon 4G

USA Official: Q4 2012 (confirmed)
Japan Official: TBA

Samsung Captivate Glide

Official: 7 Sep 2012 (confirmed)

Samsung Galaxy Note

Official: March 2012 (rumor)

AT&T: July 2012 (confirmed)
T-Mobile: August 2012 (at launch) (confirmed)

Samsung Galaxy S

Official: never (confirmed (1), confirmed (2), confirmed (3)) but Android 2.3-based firmware upgrade to give some ICS-like features

Samsung Galaxy S Advance (GT-I9070)

Official: unknown (Techzek, Slashgear, Samsung Forum)

Samsung Galaxy S 2

Official: March 2012 (rumor)

T-Mobile: May 14th (unconfirmed)

Samsung Epic 4G Touch

Official: August 2012 (confirmed)

Skyrocket

Official: July 2012 (confirmed)

Sony Ericsson Live with Walkman™

Official: TBA (confirmed)

Sony Ericsson Xperia active

Official: TBA (confirmed)

Sony Ericsson Xperia arc and Xperia arc S

Official: March - May 2012 (confirmed)

Sony Ericsson Xperia mini and Xperia mini pro

Official: June 2012 (confirmed)

Sony Ericsson Xperia neo and Xperia neo V

Official: TBA (confirmed)

Sony Ericsson Xperia PLAY

Official: TBA (confirmed)

Sony Ericsson Xperia pro

Official: TBA (confirmed)

Sony Ericsson Xperia ray

Official: TBA (confirmed)

Sony Xperia P

Official: 17-August-2012 (confirmed-official)

Sony Xperia S

Official:

Three: 29-June-2012 (confirmed)

Tablets
Acer Iconia Tab series

Official: April 27, 2012 (confirmed)

Archos G9

Official: Early Feb 2012 (official)

ASUS Eee Pad Transformer

Official: Feb 23rd (Feb 24th for North America) (official)

ASUS Transformer Prime

Official: January 2012 (rumour)

HTC Flyer

Official: Q1 2012 (rumour)

Lenovo Thinkpad Tablet

Official: May 2012 (offical source)

U.S.: 1-July-2012 (confirmed)

Lenovo Ideapad K1

Official: June 15 2012 (working date) download (not OTA update) (source)

Motorola XOOM

Official:

US Wifi models - Mid Jan 2012  (confirmed)
non-US Wifi models - Q2 2012 (confirmed)

UK: August 2012 (confirmed)

US 3G models - Q2 2012 (confirmed)
non-US 3G models - (TBC)

UK: August 2012 (confirmed)

Unofficial:

US 3G/LTE models (CyanogenMod "Kang", Team Eos)

Motorola XOOM Family Edition

Official: Q3 2012 (confirmed)

Motorola XOOM 2

Official: Q3 2012 (confirmed)

Motorola XOOM 2 Media Edition

Official: Q3 2012 (confirmed)

Motorola XYBOARD 8.2

Official: Q3 2012 (confirmed)

Motorola XYBOARD 10.1

Official: Q3 2012 (confirmed)

Samsung Galaxy Tab Plus 7.0

Official: 3 August 2012 (confirmed)

Austria: July 2012 (confirmed)

Samsung Galaxy Tab 7.7

Official: 4-July-2012 (confirmed)

Samsung Galaxy Tab 8.9

Official: August 2012 (official)

Samsung Galaxy Tab 10.1

Official: August 2012 (official)

Toshiba Thrive

Official: 3Q 2012 (confirmed)

Devices that are getting Gingerbread updates that add some ICS features should not be added here. Only devices that are actually getting Ice Cream Sandwich should be listed.

Be great if we could have confirmation of some of these dates... i.e. have people actually been able to upgrade to ICS and what date did it occur. Or should this be on another question?

@Michael: I don't think that would be very useful. Updates generally roll out over days or weeks. Further, it's one person's word, where we prefer to link to Android news sites. And you've got to figure that multiple people will chime in; what good is a dozen "me too" posts?

Motorola has fallen back on the Atrix 4G: https://forums.motorola.com/pages/00add97d6c

Droid-Life keeps an up-to-date listing of many of these phones which shows also when there are delays or exceptions such as was the case with Bionic. Their list can be found here http://www.droid-life.com/2012/05/22/when-is-my-android-phone-getting-ice-cream-sandwich-verizon/


text:
How can I write in a PDF with a tablet and a pen (a.k.a  Is there a Xournal alternative for Android)?
There is already a similar question, which is about the Xoom and note taking. But I'd like to ask this in a more general way:
Given a tablet (and a pen), how can I write - not just adding notes and comments, more like one would write on paper - in a PDF?
The additional writing should be saved within the same PDF file and readable/showable by the most common PDF readers. Essentially I am looking for an Xournal alternative for Android.

Any updates on this topic? (last update more than two years ago...)

So far the closest that I found to Xournal in Android is RepliGo Reader or ezPDF Reader.
They both

Allow drawing of lines, curves, freehand, etc.
Save the annotations/drawings within the PDF file

But in my opinion both Apps do not use the full potential of what's possible with the Thinkpad Tablet and/or xournal. It may be subjective, but my colleguas who have Thinkpad tablet PC's running Linux with Xournal seem to have a better experience "writing into PDFs". I hope that there is more to come on Android.
Alternatives, suggestions are always welcome. :-)
Edit: I am going with ezPDF Reader. It's the best PDF reader for Android IMHO.

+1 for exPDF Reader. Love this app, use it for all of my books in my classes to take notes directly in the book. Who needs notebooks?

I wonder if any of these is suitable for annotations with an active stylus, i.e. supports palm rejection, pressure sensitivity, smoothing etc. LectureNotes has such features, but it seems to import PDF as images ...

@highsciguy, I am just experimenting with ezPDF with an active stylus. It treats my palm as a second pen (if that is what you are asking for).

I have been and am still using ezPDF myself, but it does not have the features mentioned and is much less comfortable for writing than a decent  notebook app like LectureNotes.

I downloaded the newest version of Adobe Reader. That works, as you can write or print text and save it.

Make sure to frequently open the "saved" document with another editor. It is not guaranteed to save properly. Just lost 2h of corrections.

At this time, there does not appear to be a Xournal port or alternative for Android that both utilizes pressure sensitivity of a pen (e.g., in the case of a Lenovo Thinkpad Tablet) and allows for free form vector-based annotation of PDFs in their native format that is quick and doesn't involve clunky interface problems. Nearly every "note-taking" pdf program that features annotation that I have found only uses fixed-width lines that make it look like you're writing with a crayon on the page (very thick even with the thinnest lines), making them virtually unusable for put notes on a document with normal 12 pt font that might include any significant statement beyond "bad", "good", strike-through or circling something.

Has anyone tried "Writepad Stylus"?
https://market.android.com/details?id=com.writepad
It looks great (I'm waiting for my stylus to arrive to try it out.  Argh, the waiting!!)

Well, it doesn't seem to have a annotation to PDF functionality. And when it comes down to just take notes on a tablet with a stylus, Quill is the way to go (it's even free).


text:
Is it possible to use Prey on a non-phone device?
This answer to a question asked earlier today reminded me that I had been wanting to check out Prey because I had heard some good things about it. I ended up installing it and creating an account, but it appears you can only activate Prey on a lost device via an SMS message. Their original announcement for the Android version notes this, and it looks like things haven't changed (insofar as I can tell, anyway).
This is fine for my EVO, but I also have a Motorola Xoom and I'm not sure how it would work in this case. Also of note: I don't have a data plan on the Xoom, I just use it for wifi. It is a 3G version because I wanted to have the option of possibly adding a data plan later, but it has never been authenticated on Verizon's network.
The Xoom is supported and I can install Prey from the Market just fine, but is there any way for me to activate Prey if my Xoom - or any device that can't receive an SMS - was ever lost or stolen?

It doesn't look like there's an alternative to SMS activation just yet. Here's what they say on the Prey blog (emphasis mine):

Prey for Android works the same way as it does in Portables and
  Desktops. The only difference is that there’s no standalone mode
  (yet), and the activation is not done via the Control Panel, but
  by sending an SMS to your phone with any message you want.

As this is currently meant for phones, if you have no data plan on a device, it cannot recieve an SMS and therefore cannot activate Prey remotely.
The good news is that it seems like standalone mode is being introduced in newer versions post v0.51, and only on Android 2.2 and above (no issue in the case of you Xoom)

Oh, so is that what "On Demand" mode is? It's already available but you can only use it with a Pro subscription so I had no idea what it meant (and I didn't want to pay just to test it).

I just installed it on my Xoom.  The default activation mode (non-pro version) is "on interval"  which "will generate and send a report next time [Prey] wakes up and runs."

@shambleh - what version are you running?

@traveling-tech-guy sorry for the delay; Prey 0.5

Try upgrading - seems like 0.51 is the first version that supports the behavior you want


text:
silk full screen actual resolution on kindle hdx
OK, the silk browser goes 'full screen'. But there is a margin. Argh! Can I get rid of the margin, or get it into full full screen (2560 X 1600)? Or find out what the actual size is (2560-mw,1600-mw) ?
I am going to have to write my html to handle this. But maybe there is some setting on the Kindle Silk browser that tells the full screen mode to not have that margin.
Why do I not want the margin? Because I have an image exactly 2560 X 1600, and I want to view it full screen, pixel for pixel.

As of currently written, this looks more like a development-related question, since I'm not sure why end-user might care about the margin in pixel. Could you explain what you're trying to do with that? We could probably answer regarding full "full screen" though.

OK, it is a css thing. Needs border:0px;


text:
Google Play Services has access to my car speed
Digging around in my Note 4 settings and discovered under location that the Google Play Services has access to my car speed?    Really???  Why would Google need to know how fast I drive??  What if any functionality would I lose by force stopping the service?    Is this specific to Samsung and the Note 4?  Or a general setting for all Google users?                                     Curious

How do you suppose you get the convenient "heads up"  that your drive home from work is going to take longer than normal because traffic is backed up on the highway?
Answer: Google Maps uses Android users' "location data" (speed is a part of that data) to plot traffic flow. So yeah, you can disable it, but then what if everyone did the same? All of the Apple (iPhone) users would be lost or stuck in traffic lol

Access to your car's speed seems like a new permission added for Android Auto.
The fact Google Play Services has that permission allows it to act as a common provider for this information to other apps (apart from using it for analytics).


text:
How to unbrick Sony Xperia C2305?
Today I was installing custom ROM on my xperia C. After installation completes, I reboot the phone. Now, it is not starting.
I tried pressing keys(power, vol up, vol down) with different different combinations but nothing happens.
The only response I am getting is either connecting to charge or connecting via usb cable to PC and that response is it is just showing RED light as notification only. It isn't getting boot in FLASH mode so that I can Flash it with new firmware.
The reason I concluded for this is that the ROM I installed wasn't for Xperia C.

Here's what I did that led to the current situation:

Copied a ROM of another device (I think it was of Micromax a116) on to my sd card. link to that rom
Rebooted my phone in clockworkmod and wiped all cache, partitions and data with dalvik cache.
Installed zip from sd card.
After successfull installation, again clean the dalvik cache.
Rebooted phone.

There it popped up an option I do not clearly remember, something like "flash recovery mode not installed (yes/no)". I just slide for back option and screen blanked out. After that nothing happens. Only RED Light after connecting USB.
Anybody help me!!

With some luck, it's just "nothing displayed", while something is still done. Does it show up on your computer when connected? I'd try the key combo to boot into recovery (keep it pressed for 20..30s to give it some time), then connect via USB and try adb devices. With some luck, the device is detected – and if so, we can give further advice. If not, try the key combo for Fastboot mode and fastboot devices; bootloader is even "simpler" and usually not replaced by ROM flashing.

No, it wasn't connected to computer at that time. Now, whenever I connect it with PC via USB cable in Windows 7, a notification tone beeps up in PC as it is trying to install drivers like something, but after 3-4 seconds, it again beeps for disconnection/failure installation. The RED light continuous and it blinks when that disconnect sound buzzes... And nothing else is happening in it.

@Izzy I tried pressing all possible keys combination to boot it in any mode(flash/recovery) but no response at all..

There are often device-specific solutions (I know that from a tab I'd bricked a while ago, where the screen stayed blank as well). Not having any Sony device, I cannot help any further – but someone else might be more familiar with your specific device to help you out. Good luck!

@choxx you can try flashing the ftf file with flashtool tutorial : http://forum.xda-developers.com/showthread.php?t=2054486

ftf file from here http://forum.xda-developers.com/sony-xperia-c/general/16-0-b-2-16-ftf-ready-t2843114

@sameer I already said in the question that it was not booting in the flash mode too.. so there is no any chance of flashing. Simply i can say the phone is not detected by computer so flash is not possible..


text:
Disable particular orientations, system-wide
I'd like to install some software (willing to write it myself if necessary) on Android devices which will restrict them from rotating to particular orientations.
There are plenty of apps that will lock a particular orientation, but what I would like to do is say (for example) you are allowed any orientation but not reverse portrait.
How can I achieve this?

Wait a minute, isn't reverse portrait disabled by default in Android? There are a number of people looking to enable it, even.

It is on most phones, but not all, and not tablets. I realize now my post only mentions phones, I'll update it.

Try Ultimate Rotation Control, it has a "forced 3/4 auto" mode that forces no reverse portrait globally (bonus: it also forces apps that usually do not rotate to rotate as you wish). If that does work I'll make it into a proper answer.


text:
How to stop apps from asking permission about learning contacts?
I've been getting an overlay notification on many apps (Textra, Dropbox, Instagram, others) whenever I try to exit out of it (usually hitting the back button). The notification text is:

Did you know?
We can learn your contacts and give you the choice to quickly contact your friends. We just need your permission first
Never |  Maybe Later | Cool!

[Edit - screenshot: https://prnt.sc/iklfbt ]
I hit "Never" every single time, but apparently the word "never" has lost something in translation since it comes up repeatedly.
I've searched Google and found no reference to this message.
How do I get it to stop?

I have Dropbox installed but never saw this. Wondering if the notification is from some other app. Try installing apps mentioned in comments of this question to verify


text:
AFWALL+ doesn't block apps when on WiFi
I'm currently running AfWall+ on LineageOS (Android 7.1.2) and seem to have a problem with this app. When I'm on WiFi it doesn't stop anything it's supposed to (works just fine on mobile).
Can someone please advice what cold be the problem?

I came across your question because I had the same problem, and I just figured it out (although it might be a different cause in your case).
Details of my case (to see if it applies):
I'm also on 7.1.2 (LineageOS 14.1), and I'm using a VPN with AFWall+ v2.9.8. AFWall+ is supposed to only allow connections through the VPN. It's actually been working fine for a while, but it suddenly started allowing connections through my WiFi even when the VPN was off (it still worked properly on mobile data).
I eventually came to the conclusion that this was caused by the fact that my ISP provider started switching to IPv6, and it seems that AFWall+ doesn't support IPv6 by default (by that, I mean it doesn't apply the rules to IPv6 traffic). This is, of course, a wild guess, because I couldn't find any manual for it that explains the details of the slightly cryptic/confusing settings (e.g., not sure what the "Only Control IPv6 Chains" option means and why it is mutually exclusive with the "IPv6 support option).
Solution:
Having said all that, the solution that worked for me was to go to Preferences > Rules/Connectivity and under "IPv6 Chains", check the option for IPv6 support ("Enable support for IPv6").
When I applied the firewall rules after doing this, it applied twice as many rules as it was before I enabled IPv6 support. This is what led me to believe that previously, it was only applying my rules to IPv4 traffic, while now, it's applying my rules to IPv4 and IPv6 traffic (hence, twice as many rules).
Of course, even if I'm unclear on the AFWall+ settings, the main reason I believe this is the cause/solution is that everything works as expected now!


text:
Screens wakes up right after timeout for no apparent reason
There's a strange situation on my new phone where as soon as the screen turns off due to inactivity, it wakes up again by itself after a couple of seconds. (However, if I turn it off manually, it stays off.)
I noticed that this stops when I disable "Wake screen for notifications". However, there are no notifications coming in when this happens or even an active notification that can be dismissed but hasn't; the display just wakes up at a very regular, short interval after it goes to sleep.
Other similar problems I found mentioned on the Web don't seem relevant; e.g.,

it happens even if the device is not moving (but "Lift to check phone" is off just in case).
"Screen attention" is off

Question:
I would like to stop this from happening but still have the display wake up when an actual notification comes in. Any ideas / previous experience? If not, is there a way to find out exactly what's causing it to wake up?
Device details:

Pixel 6 Pro
Lineage 20-20230331-NIGHTLY-raven (Android 13)

UPDATE
I found what seem like the most relevant entries from logcat at the time of waking up: https://pastebin.com/yUCqFegF
Specifically, some of the entries have reason=WAKE_REASON_GESTURE, which seems to suggest (I couldn't find an explicit description/definition online) that a "gesture" is responsible for waking up the display.
However, the device is not moving and I'm not touching it or even near it when this happens. Also, it sounds to me that this is not really consistent with the fact that this behaviour stops when I disable "Wake screen for notifications".
From the UID (10204), it appears that com.android.systemui is the offending package:
$ adb shell pm list packages --uid 10204
package:com.android.systemui uid:10204

Here's a screenshot of the Gestures settings for reference:

Observe logcat output when screen wakes up after timeout.

@Firelod, what should I be looking for? I found some entries for DisplayPowerController, but not sure if they contain what I'm looking for (the cause).

Do you see a log entry from PowerManagerService such as PowerManagerService: waking up from Asleep?

@Firelord, yes, and it seems to suggest that it wakes up from a "gesture" detection, but not sure why (added details in revision 3 of the question).

The logcat mentioned the uid, perhaps How can I find app name by UID? could help? Otherwise, you might want to check the notification history just to be sure. Perhaps there's one app that is showing a notification very briefly, thus it wakes the device, but the notification is already gone by the time you notice it.

@AndrewT.: the package with that UID is com.android.systemui. I've enabled notification history, so I'll check again.

@Ratler it is likely that you are dealing with a bug in your ROM (it is a nightly release). It might be worthwhile to take this issue with your ROM maintainer so that they can look at your findings and possibly help you out.

I believe, and it's what happened to me also, that you will still receive some system or possibly Play Services (in my case) notifications, even if mute/DnD or lock screen is enabled if the "Show as popup" isn't toggled to on in the App > Notification Settings and if not marked to "Hide in screen lock", which will wake the device. Not a gesture per se, just from my user experience. Worth a try.


text:
How does Messages suggest replies?
Quite recently, Android Messages (com.google.android.apps.messaging) started providing reply suggestions to SMS messages I receive. The suggestions are (usually) relevant to the content of the received message: e.g., somebody texts me with a "Can I call you tomorrow?" and Messages suggest things like "Sure" or "Sounds good".
How exactly does it do that? I would be surprised if this kind of AI system could run on my phone. But does that mean that the messages are processed somewhere else? If yes, where and how?
I'm wondering because I've never given any explicit authorisation for my messages to go anywhere, and in fact, I'm using AFWAll+ to prevent Messages (and many other apps) from accessing the Internet at all.
UPDATE: As a test, I used the firewall to also block anything Google Play-related from accessing the Internet, which was the following three entries:

Google Play services, Google Services Framework, Google Account Manager, Google Backup Transport
Google Play services for Instant Apps
Google Play Store

Yet, the suggestions showed up again.

System details:

Device: Samsung Galaxy S5 Duos (SM-G900FD)
OS: LineageOS 14.1
Android version: 7.1.2
The phone is rooted with SuperSU.

After some research, it is, as I thought, Tensorflow (or to be precise, Tensorflow Lite). You can read the following articles posted by the Google Research team:

On-Device Machine Intelligence -- Smart Reply on Android Wear
On-Device Conversational Modeling with TensorFlow Lite -- Smart Reply on mobile devices

Relevant quotes:

Android Wear 2.0 which featured the first "on-device" machine learning technology for smart messaging. This enabled cloud-based technologies like Smart Reply, previously available in Gmail, Inbox and Allo, to be used directly within any application for the first time, including third-party messaging apps, without ever having to connect to the cloud.
Today, we announce TensorFlow Lite, TensorFlow’s lightweight solution for mobile and embedded devices. This framework is optimized for low-latency inference of machine learning models, with a focus on small memory footprint and fast performance.
...
This model generates reply suggestions to input conversational chat messages, with efficient inference that can be easily plugged in to your chat application to power on-device conversational intelligence.

They've also posted a source code link to TF lite's Smart Reply feature, as well as a demo app for testing out Smart Reply.

Ignoring the technical aspects of those articles, I understand that no data leaves the device, so there should be no privacy concerns. That's good news!

Absolutely, can't imagine every message going to Google's servers. What a nightmare that would be.

To my best knowledge, Google has not revealed how it processes the text messages to generate the suggested replies.
Here are a few things which Google shares:
In the Messaging app, the description for Smart reply reads:

To show you suggestions, Smart reply uses your recent messages but does not store them.

Then, if you follow the Google webpage, the page doesn't reveal much other than:

Note: You might be charged for data. Check with your carrier for details.

So, at one place Google said that it uses your recent messages. Then, Google also mentions that you might be charged for data. So, I guess it is easy to summarize that the recent messages are transferred to Google servers to understand and suggest replies.
A part of this processing might also be happening locally on the device. But it is hard to imagine everything happening locally in the Google's world. The cloud and the servers are where the real algorithms reside.
Most of Google services are connected together using Google Play Services. So, even if you do not allow Messages to access the internet, Play Services can. And it won't be too hard for messages to communicate with Play Services which then connects to the internet and interpret messages to generate replies.
Note: This is my personal understanding of what I was able to read from Google website. Google has no where explicitly mentioned that it sends your messages to the cloud. They did mention that they at least do not store any messages.

Here's something possibly related: How Google's Inbox does smart replies.

@singhnsk, tried blocking Google Play (see OP update for details), but suggestions still show up.

@SSS, the basis of the processing (neural networks) is probably the same, but that article talks about Inbox by Gmail, which is a Cloud service by Google, so there's no mystery on how they would do it there. The question here is: how is the processing (by Google?) applied to my mobile-provider--related SMS messages that are blocked from Internet access.

@Ratler yes, I know it is a cloud service -- I replied that with the assumption that there is some connection to the cloud because Smart Reply says it might charge the user for data. Anywho, I've gotten the actual answer; it's Tensorflow as I expected. I'll post the solution separately.


text:
Change battery percentage at which phone turns off
I'm trying to completely discharge an LG G2 D800 with Android 4.1; however, the phone always shuts down at 2%, so it's impossible for me to go down until the absolute zero. How could I change this configuration?

Calibration as recommended is an urban myth. Batteries lose capacity with time and usage and calibration doesn't help. What you are doing is actually harming the battery

@beeshyams Really? This is the first time I hear about it. Previously my friend's LG L70 experienced the same issue, I calibrated it and it's been working normally ever since. But the LG G2 won't let me do the full discharge.

See this https://android.stackexchange.com/q/131545/131553

That's weird because even the official LG support website recommends to calibrate the battery every 3 months (which is where I took the instructions I used for the other phone): http://www.lg.com/uk/support/solutions/mobile/battery-saver

Strange . Point 2 contradicts with what is to be done every 3 months. There is enough reasoning why that's bad. I wouldn't do that. Upto you

Lollipop upwards devices have shut down warning at 15 and 5%. Not without a reason

Well, regardless of that, the topic of this question is how to change that default percentage at which Android turns off. Is this possible?

Sorry, I don't know

This isn't a "configuration". When the phone shuts off due to low battery, the battery is completely discharged. The shutting down isn't a configuration, it's due to the battery voltage dropping too low. The fact that the battery percentage displayed is above zero is just an artefact of the way the lifetime of the battery is estimated. The displayed percentage when the battery is discharged will gradually increase over the lifetime of the battery.
So if your aim is just to discharge the battery, you've already succeeded. Try not to do this too often, as full charge-discharge cycles reduce the lifespan of the battery.


text:
I think someone has hacked my HTC Droid DNA. How can i check and be sure?
My device has been doing lots of crazy things, like uninstalling apps, installing apps that aren't in Google play store. I had questions about it yesterday, but the ones that started last night seem more important.
I went to settings to see what apps were running and to check only the newly do not disturb app that popped up and noticed I have 2-3 of each app. 3 calendars, 3 tasks, 2 Facebook apps, one has some lettering next
To it that the other don't, can't remember what they are. I know these weren't there a few weeks ago because I was trying to find my camera and gallery that were installed on this device, but have vanished. What can I do to track down where they went, as well as who did this?

First, make sure that there's nobody playing with your phone without your knowledge. Second, multiple running processes of the same app is actually normal, unless the apps are similar but different. Third, just for clarification, what phone model & Android version are you using? Are you rooted (if don't understand and can't answer it, then probably not)? Did you install suspicious apps? (e.g. I heard "Super Flashlight" or similar is suspicious)

Are there any apps you've installed shortly before this started? Maybe even from "other sources"? In that case, you might have "hacked yourself" by installing a malicious app (which from your description seems the most likely thing). To really "clean up the mess" then without much background knowledge, you might have to factory-reset your device – which as a side-effect would mean you're losing all your app-data and the apps you've installed. There might be other solutions, but they are a little more complicated to apply.

Have you installed antivirus software?

You need to check the network Input-Output if, there is a hacker or suspicious app installed and its using of your Internet Connection or Internet Bandwidth.
Most of the android hack tools, need Internet Access for Remote Access just for remote hacking or remote connection.so,
the best think is, you need to install the Packet Sniffers or Network Sniffers for find the suspicious Process.with :

Capturing mobile phone traffic

and other Programs (In android - Apk App) if you can install an app.
Also, as Andrew.T said, you can check the phone for suspicious apps and delete them for prevention access of hacker.

I'm afraid that's not something you can ask a beginner to do. This kind of analysis would require some "expert knowledge": What kind of traffic is "good", what is "bad" – and how to tell one from the other? Most apps access the network for one or another reason. And it requires some knowledge to tell the bad guys apart.


text:
Can an app with root permission access another app data?
I have an rooted android phone and use root apps like greenify regularly.
Recently i have installed my Bank application on my phone and the bank application is not allowing me to login as my phone is rooted. Even in last pass also it gives an warning that it is vulnerable as my phone is rooted.
I wanted to know whether one app with root permission can access other apps data.
For Example:
I have given complete root permission to greenify and can greenify access the stored files on some other application just like lastpass(I haven't given root permission to lastpass. I knew lastpass encrypts data on client side too. But i wanted whether it can access the data irrelevant of its encryption ) .

Yes, ofcourse. Basically, the root user has complete access to the /data partition, where all app data is stored..

Yes -  if you grant it root privileges, it can Theoretically access any other apps data ( granting / denying is by "Superuser or Su" which is used to manage applications which are allowed to gain root access). That is a con of rooting. But if the data is encrypted it shouldn't be able to unless it is a rogue app which is capable of doing so
Aside, if you want to bypass bank app restrictions, you can try measures suggested here Get around an app that won't work on rooted device. Also see other Root Hider apps thanks to Izzy for pointing that out
Detection of root is done on the app as explained here Root detection by server or app ( do read the comment of acejavelin in case you are planning to hide root)
Also see How do I protect my phone from malicious apps once it is rooted?


text:
eMMC partitions corrupted
I flashed SailFish OS port for my device (HTC Desire z(Vision),S-OFF, rooted), after that recovery(TWRP 2.6.3.0) showed me that it couldn't mount /system and /data partitions and reported no OS installed. I initially thought maybe the SailFish repartitioned the emmc but it was not the case. All partitions are still present in /dev/block/. I tried  inspecting them with various tools but they all fail with more or less the same message.
fdisk -u /dev/block/mmcblk0

fdisk: can't read from /dev/block/mmcblk0

parted /dev/block/mmcblk0 print

Error: /dev/block/mmcblk0: unrecognised disk label

I'm running out of ideas. Is there a way I could force format the eMMC and then recreate partitions? Since the phone worked like a charm until I tried to flash it and I have a working Hboot and Recovery, I don't believe it's a hardware failure and dmesg doesn't show any frightening errors in that regard also.
EDIT:
Well i bricked the phone completely a few days ago, but i have some news if anyone encounters the same problem. It seems that when booted to recovery the phone tries to mount broken partitions and eMMC freaks out so you cant access anything on it. I ended up installing a CM ROM on the SD Card, and booting the phone with fastboot. eMMC partitions that didn't get corrupted can be read and written to with dd, and if you are fine with not being able to mount SD card as USB storage i suggest you leave it as is because everything else is working like a charm.

Check if http://chat.stackexchange.com/rooms/23044/discussion-between-rjt-rockx-and-darren helps.


text:
Android Factory Reset: My phone shows weird options when I enter recovery mode, and no button selects anything
I checked different tutorials to factory-reset my phone, and this one applies to my phone's model. I had once factory reset this phone successfully, but I have forgotten what had worked for me..

I powered my phone off.
I pressed Volume-Up + Volume-Down + Power buttons together, and the screen showed me two options: Recovery Mode and Factory Mode.

First I tried to enter the Factory Mode by pressing the Volume-Down button, that showed me these options:

At this point the Volume-Up and Volume-Down were navigating between the options and the power button was doing nothing. Their combinations also did not work.

So I pulled the phone's battery out, and did the entire thing again, but this time, I entered the Recovery Mode. But to my surprise I was given the following:

Select Boot Mode:
[VOLUME_UP to select. VOLUME_DOWN is OK.]

[Recovery    Mode]
[Fastboot    Mode]    <<==
[Normal      Mode]

BUT at this point none among the volume buttons or the power button are doing anything.
What should I do?

What is your device? Is it a Mediatek, by any chance?

@TamoghnaChowdhury Nope. It is QMobile Noir A50.

If you want to factory reset your phone, just go to Settings->Backup and Reset->Factory Reset. You will be asked to confirm. Now, your phone will reboot and wipe data (do a factory reset).
I will assume that your volume buttons work correctly otherwise. If this is a repeated issue, it might be a faulty bootloader in this regard. If you have to reboot to recovery, you can use adb reboot recovery from the terminal with your phone connected in USB debugging mode to your computer. It should succeed, unless you have a corrupted recovery. In that case, you should take your device to a service center.

Hope it's not too late...
You should try another button instead of power button.
The power button doesn't work on my phone either, but in my phone, it makes me press "Home" to make a choice.


text:
Nexus 5, I'm getting remote: flash write failure while trying to fix a bootloop
Before I say anything I just want to say I didn't install any custom ROMs nor rooted my phone.
I've downloaded the factory images from here https://developers.google.com/android/nexus/images#hammerhead
I put my phone into bootloader and I start the flash-all.bat script from the folder I've downloaded above. It runs this script:
PATH=%PATH%;"%SYSTEMROOT%\System32"
fastboot flash bootloader bootloader-hammerhead-hhz12d.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.22.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot -w update image-hammerhead-lrx22c.zip

echo Press any key to exit...
pause >nul
exit

I get the following output:
OKAY [  0.307s]
writing 'bootloader'...
**FAILED (remote: not supported in locked device)**
finished. total time: 0.407s
rebooting into bootloader...
OKAY [  0.050s]
finished. total time: 0.050s
< waiting for device >
target reported max download size of 1073741824 bytes
sending 'radio' (45521 KB)...
OKAY [  1.732s]
writing 'radio'...
**FAILED (remote: not supported in locked device)**
finished. total time: 1.842s
rebooting into bootloader...
OKAY [  0.046s]
finished. total time: 0.046s
< waiting for device >
target reported max download size of 1073741824 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
failed to allocate 1005027540 bytes
error: update package missing system.img
Press any key to exit...

I've noticed the bolded lines so I unlocked the phone using a command fastboot oem unlock. It unlocks it, however if I reset the phone, it's locked again. People on the Internet say that if this happens then the phone is dead. I hope it's not the case.
I've tried running the script again when the phone is unlocked:
target reported max download size of 1073741824 bytes
sending 'bootloader' (2579 KB)...
OKAY [  0.202s]
writing 'bootloader'...
**FAILED (remote: flash write failure)**
finished. total time: 0.402s
rebooting into bootloader...
OKAY [  0.090s]
finished. total time: 0.090s
< waiting for device >
target reported max download size of 1073741824 bytes
sending 'radio' (45521 KB)...
OKAY [  1.709s]
writing 'radio'...
**FAILED (remote: flash write failure)**
finished. total time: 2.939s
rebooting into bootloader...
OKAY [  0.100s]
finished. total time: 0.100s
< waiting for device >
target reported max download size of 1073741824 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
failed to allocate 1005027540 bytes
error: update package missing system.img
Press any key to exit...

As you can see I get the FAILURE (remote: flash write failure).
I've tried removing the commands that reset the phone so the phone stays locked and I get this output after running the modified script:
target reported max download size of 1073741824 bytes
sending 'bootloader' (2579 KB)...
OKAY [  0.300s]
writing 'bootloader'...
**FAILED (remote: flash write failure)**
finished. total time: 0.492s
target reported max download size of 1073741824 bytes
sending 'radio' (45521 KB)...
OKAY [  1.716s]
writing 'radio'...
**FAILED (remote: flash write failure)**
finished. total time: 1.894s
target reported max download size of 1073741824 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
failed to allocate 1005027540 bytes
**error: update package missing system.img**
Press any key to exit...

Again, the FAILURE (remote: flash write failure) occurs but I don't understand why it can't find "system.img" because it is in the folder where the script is.
I've also tried the tutorial from this Youtube video https://www.youtube.com/watch?v=pJnoiMTw5cY
When I try the first command which is "fastboot flash system system.img" I get the same error.
So, is my phone dead or can I still fix it?
EDIT: I've RMA-ed[1] the phone and they've sent me a replacement. I hope this thread will help future people.
[1] https://en.wikipedia.org/wiki/Return_merchandise_authorization

In this thread they told me my emmc is fried because I can't lock / unlock my phone so I RMA-ed it.

The flash-all.sh script does not take into consideration that your bootloader is locked after each restart.
I opened the shell script and executed each command one by one, re-unlocking with the following after each command:
fastboot oem unlock

I flashed each image with no errors, but it did not seem to write to memory regardless.

I get FAILED (remote: Already Unlocked) even tough it is freshly rebooted.

Be careful. Unlocking bootloader will delete all personal data.

Here is how you can get into adb from an unwriteable emmc:

Download twrp, extract it so you see recovery.img.
Unlock using fastboot oem unlock.  do not reboot.
Boot into the custom recovery (not flash) using fastboot boot recovery.img.

You will now be rebooted in twrp, from where you can access adb and adb shell.

I have the same issue and haven't been able to find the recovery.img file inside any of the twrp images. I feel like I am doing something wrong or am looking at the wrong img files maybe. Is there a link to where I can get the correct TWRP? Thanks!!

Wipe cache from recovery, make sure you have latest adb and fastboot files.
In the recovery menu, execute these commands.
adb shell
recovery --wipe_data
recovery --wipe_data

The supplied commands :
 *   --wipe_data - erase user data (and cache), then reboot
 *   --wipe_cache - wipe cache (but not user data), then reboot

Use Nexus Root Toolkit to do the job done : http://www.wugfresh.com/nrt/

The interesting point is: Although you don't get these "only allowed in unlocked state" warnings anymore, is your bootloader really unlocked? What output do you get when you run the following command in unlocked mode?:
fastboot oem device-info
And: Can you still boot into recovery?

C:\Users\Neven\Desktop\hammerhead-5.1>
...
(bootloader)    Device tampered: true
(bootloader)    Device unlocked: true
(bootloader)    off-mode-charge: true
OKAY [ -0.000s]
finished. total time: -0.000s
I can boot into recovery mode. The little android with an exclamation mark inside a red triangle shows up. I tried wiping the cache and factory resets but as far as I've understood it failed. I can't photograph the screen at the moment. What's also interesting is that I don't have "wipe Davik-cache" command but I've heard I should have that.

Maybe try booting from fastboot into a custom recovery with 'fastboot boot recovery your-recovery.img' From there, You could try to flash the system partition from a ZIP file, but the behavior you describe is very unlikely and it seems like you cannot write anything to your mmc-device (the flash chip), since even wiping cache seems to fail. Would be interesting though to see if you can mount partitions r/w in custom recovery and modify their content from there. And since you said you didnt do anything with custom roms, how did you get the bootloop problem in the first place?

@kulesdzl I tried the first command but got this error
C:\Users\Neven\Desktop\hammerhead-5.1>fastboot boot recovery recovery.img
cannot load 'recovery': No such file or directory

Of course you have to load a proper recovery.img before attempting this. I recommend using a recovery from the twrp project, you can get images here: http://techerrata.com/browse/twrp2/hammerhead

I've downloaded images from https://developers.google.com/android/nexus/images#hammerhead I have a recovery.img so I don't know why it says it can't find it. I don't know what caused the boot loop. I didn't install custom ROMs nor rooted my phone. The last thing I remember what happened is that my phone started lagging and I was getting app.google.etc. stopped working. Don't remember the exact error. So I googled and people said to wipe the cache of google's applications. So I did and the phone started working again. The phone restarted itself somehow in my pocket and entered bootloop later.

Well, this is the stock recovery which will not allow you to do quite much, and you will not be able to connect via adb to it. Therefore, try booting a custom recovery to be able to get an idea what is going on from the command shell.


text:
Boot loop, random crashes, flashing won't help [Galaxy S4 VE GT-I9515]
I'm in dire straits. I have been using an unofficial LineageOS port for almost 2 years. I was going to give the phone away to my buddy as a Christmas gift, he only has an S3 mini with a shattered glass. Literally minutes after I paid for my new (used) phone, my S4 screen went completely pink at the same moment I received a message. The vibration from the message notification turned into a loop while the pink screen stayed on. I used to get the pink screen every now and then, but usually only for a fraction of a second. After that I only had to lock and unlock the screen to continue operation. Several other users have reported this minor bug.
After removing the battery, the phone would go into a boot loop. I re-started several times and it did boot up again once after several minutes of a black screen, but before I could do anything, like save my current day's data, it went pink again. The worst part is I couldn't even enter recovery for whatever reason, it would just re-boot but never go beyond the Samsung splash screen. Download mode did work in the beginning so I used the chance to flash several other TWRP ROMs, and did manage to boot to recovery once, again only seconds before the screen went pink again.
After these experiences, it behaved like the battery would be drained rapidly. The amount of time that the splash screen would show up decreased from the full time to only a fraction of a second. Likewise when I plugged in the charger, it would only flash the charging logo before going off again. After several re-tries, it wouldn't even vibrate anymore when connecting the charger.
I thought my S4 had died on me, and that I had watched it fade away slowly and painfully, until after several hours of charging, it turned on all of a sudden, but only for the Samsung splash screen. After that it seemed completely dead again. Pretty random behavior, but at least a little sign of life.
I already tried my older battery, which let me power it on for a while, before eventually reproducing the same behavior until it also wouldn't turn on again. Luckily, I have now gotten a third battery (all three original Samsung), and with that it would immediately power on again, and go into a boot loop after the Samsung splash screen. However this time I could enter recovery on the first try, so I tried:

Wipe Cache/Dalvik
Flash latest LOS from first post
Wipe System/Cache/Dalvik
Flash latest LOS from first post

In that order. The first options resulted in the same boot loop as before, while the last options finally showed the LOS boot screen for a couple of seconds, until the screen turned pink again. I had to remove the battery to start over.
So I finally gave up on LOS and tried flashing Stock with Odin, as long as it would let me enter download mode. All went normal, but now after the Samsung splash screen it simply stays black. Tried again, now the screen only stays black a couple of seconds until it reboots. How can that be after a Stock ROM flash?
So I let the battery fully charge. For the first time since the start of the problems, the LED would turn on, first red then green. I pressed the power button and lo and behold, the Samsung boot animation (after the splash screen) showed up. I was hopeful for several minutes (normal after Stock flash) until it went back to boot loop.
I couldn't even factory reset because the stock recovery Android icon would only show up for a couple of seconds before the boot loop resumed. So I flashed latest TWRP again, and started flashing LOS when the after several seconds the screen turned pink again. Tried flashing stock with Odin once more, phone shut off midway through. I have just completed my third stock flash, and it went straight to boot loop. However this time it would let me enter stock recovery and I did a complete factory reset + wiped the cache partition. Still stuck at boot loop.
I'm at my wit's end.
Edit: Tried it with a stock ROM from a different carrier, same result.


text:
Possible to remap `Esc` key to `Caps Lock` on a bluetooth keyboard
Samsung Galaxy Note 9 with any old bluetooth keyboard. How do I remap the Esc key to Caps Lock? And remap the Caps Lock key to Esc. Swap them basically.
I need this to make it easier to use Vim on Android. I prefer not to root.

It's totally possible without rooting.
Check out ExKeyMo (I'm the developer). It has an example with Esc<->Caps mapping.
If you need more than one layout take a look at custom-keyboard-layout (I'm the developer).
UPDATE:
ExKeyMo web app is not available on Heroku anymore. You'll have to run it locally. See the project's page on GitHub.

I tried this scheme with ExKeyMo, and downloaded and installed the app, and enabled the custom layout, but it didn't do anything; what am I doing wrong? https://pastebin.com/pX01KMcX (I'm on Android 10.)

@Brōtsyorfuzthrāx Unfortunately Android doesn't notify about errors in KCM files. Could you try examples from ExKeyMo (Caps-Lock as Esc and other)? Do they work for you? If so, you could then start with your mappings (one-by-one) to find the issue.

@Brōtsyorfuzthrāx you can check your KCM file using validatekeymaps tool. There is web version.

It worked! Go to the docs to learn how to set it up: https://exkeymo.herokuapp.com/docs.html

In Android 4.0 you could do this easy, you would need root permissions though. You most likely still can with root. Just checked can do easy with root. /System/usr/keylayout there are a couple files in there with keyboard layouts that you can edit with root permission. You can veiw but not edit in fx file manager, there are other files that control the same types of things in there.

Thanks for info. Prefer not to root though.


text:
Can't create new folders on SD card?
I'm using Lenovo A7000 with Lollipop and I can't create new folders on SD Card. Attempt to create folder on SD card always end with error, however, android phone is not going to tell me what error it is. Attempt to use ADB from ubuntu terminal ended with lines below:
#Attempt 1
garrom@GarromMachine:~$ adb shell mkdir /storage/sdcard0/test_folder
mkdir failed for /storage/sdcard0/test_folder, Out of memory
#Attempt 2 with alternative folder path
garrom@GarromMachine:~$ adb shell mkdir mnt/sdcard/test_folder
mkdir failed for mnt/sdcard/test_folder, Out of memory

However, obtained error message is not somehow helpful because I have exactly 12362047488 bytes of free space. That is more than enough of space for empty folder. Even stranger, I can create or manipulate files just fine. I already tried formatting from phone itself, which is useless because phone format my SD card to fat16 which is obviously not good for 16Gb big SD card. I tried to format from Windows using Mini tool partition wizard and from Ubuntu using GParted, always same result,except formatting from phone but fat16 is too small and I had using Fat32 before without problems. I was using same SD card in same phone with same format before OTA update bricked my phone and I was forced to wipe out everything and flash in stock rom. Does someone know, how to be able to create folders once again ?After further research i noticed it sometimes let me create folder and sometimes not ... Thinking about it, it looks almost like writing from Ubuntu(XFce, Thunar) temporarily disable ability to create new folders. I have two partitions on my sd card. one is named DATA(fat32,11.5Gib) and is meant to be my personal storage, second one is named APPS(ext4.9Gib) and is meant to work with App2SD app. I had same setup before without any problems, except, I was windows user before, I was writing files to sd card via usb cable from Windows before I started using Ubuntu....... but I was writing files from ubuntu as well before OTA update bricked my phone and  I had to flash in stock rom. This whole problem is generally weird...

You are describing the problem with Ext, SD but the commands used are for internal memory. sdcard0refers to internal storage and external memory is referred to either by sdcard1or  volume serial number. See [this question and my comment] (https://android.stackexchange.com/q/189104/131553). You need to try to make the folder on the storage thus identified - now you are making on internal SD or phone storage

@beeshyams I forgot to mention it but in storage settings I set sd card as default write location. I recognized my sd card in app FX Browser (due to its size and files on it). Attempt 1 was with path given by FX Browser meanwhile
in Attempt 2 was used path found via. root browser feature of FX Browser. Setting SD card as default write location makes it internal SD card

Setting SD card as default write location makes it internal SD card- not sure of that. Try removing that condition and test. If it works then your question needs to be reframed in a big way

Is possible to destroy SD Card by repeatedly flashing stock ROM and repeatedly rooting ? Yeah, apparently yes. It looks like my SD card was destroyed. Next time, if you are going to flash or root something, remove your SD card first..... yeah, I'm stupid, it is obvious step to do. Problem solved by buying new SD Card.


text:
Website shortcuts icons lost after a crash
I am using Nova launcher and after a crash, all shortcuts to websites on my home screen lost their icons. Right now, all of them look the same: with the default green android icon. They still work - but icons are lost. I've tried restarting the launcher, restarting the OS - no difference. Any ideas how to restore / refresh them without recreating each one of them manually?
OS: Android 7.0
Browser: Google Chrome

Please specify which browser's shortcut you have created. Nova launcher have a backup and restore utility of launcher data. I think you haven't done that, so you need to create them again and backup them next time. If you were using SD card as internal storage and when SD card is removed, app that stores data to SD card are showing similar to green android icons.

It's Google Chrome. Thanks for the reply and workaround with backing up nova's settings. It would be nice to have a way of refreshing all icons at once though.

This links may help you: https://android.stackexchange.com/questions/36426/where-are-displayed-shortcuts-stored?rq=1

https://android.stackexchange.com/questions/54228/android-4-1-2-apps-shortcut-disapperead-from-home-screen


text:
Incoming calls are identified as coming from Mexico incorrectly by area code?
I have a Verizon Galaxy S8 and I was traveling in Mexico a couple weeks ago, and when I came back, all incoming calls are saying Mexico on the screen.
As far as I know, I don't have any special apps on the phone identifying caller info, but it's just using the area code.
Any idea where to go to fix this?
Edit: Here's an image:

Where does it say Mexico? Can you post a screenshot?

Next incoming call I get, I'll try. It shows it right on the lock screen when you receive an incoming call. It's a stock thing. It's not Verizon's caller ID thing and it's not a special app.

@aBochur - I've added an image now

Strange indeed. You can try clearing data for the calling app. Go to settings>apps>in the menu, select show system apps > phone > storage > clear data. This should not delete any personal data, it will only refresh the calling app.

@aBochur I see 3 Phone icons that are all identical looking, but different sizes. I tried your steps for all 3. It doesn't do it for every call, but many of them. I'll wait for the next call and see.

@aBochur - It happened again and I have some interesting info. I received a call from a 972 number this time (says Mexico) and when I go to recent calls, it says Oaxaca instead of Dallas. If I go to Phone>Settings>More Settings , it has current country selected as United States of America. I clicked on it a couple times to try and "reselect" it or something. I think you are correct that the core of the issue is the Phone app somehow. I tried dialing *228 to see if it was a Verizon thing too.


text:
which APK for Google play services?
On my Sony Xperia Z1 Compact running CyanogenMod, I had the Google Play Services installed as an APK. At the time I must have thought that this was better than installing GApps - for being able to pick packages myself.
Since a recent update (of either Google play services or CyanogenMod) I get the error "unfortunately Google play services have stopped working".
Google play store also requires these services because it relies on these services. In the end I removed both the Services and the Store.
I have tried installing the a number of versions of the Services (from 7.3.xx to 8.3.xx) but they also report the same error message after a while.
Does the app need some sort of reset before it will work again? Each time an APK is uninstalled then its cache etc must be removed?
Or should I install a very specific version of the APK? my build is cm_amami_userdebug 5.1.1 LMY49J d8f66af955
EDIT:
For flashing GApps, I would choose Open GApps pico for Android 5.1 on ARM(32), does that sound right?
EDIT 2:
Flashing the GApps above worked. I would still like to know the answer to the first question - whether an APK could have solved it (and which)

why do you think GApps is not a better option?

Technically -- no idea, I would like to hear your thoughts! For ease of use and flexibility, APK looks the better choice. No need to boot to recovery, ability to remove the whole lot if it says "unfortunately ...". The end result should be the same?

I recently flashed my smartphone with cynogen mod 13 and GApps, and it was a lot easier and works perfectly. Finding a right version of play services and play store apk  is really a painful task.

I've used GApps before and it works well. But until recently I had APK-installed versions of both GP services and store that also worked well --same end result. And removing GApps after flashing it when it doesn't work is impossible. So I was hoping to find an APK that works, or the reason (+cure) that GP services had stopped working.

The APKs for Google Play Services can be found on APK Mirror, along with explanations of the build numbers and how to determine the right build to install.

It says "download Play Services info or go to Settings -> Apps -> Google Play services, and look at the last 3 numbers in the parentheses" but option 1 does not work: play services info says: nothing installed. And then option 2 does not work either. In settings -> apps, there are no Google play services.

Tried the latest one just for luck. Still getting the "unfortunately ..." error and nothing running.


text:
fixing a corrupted SD card in linux
My phone is a HTC Desire (model Bravo) and I previously rooted it (using tacoroot and revolutionary) and had the clockworkmod recovery (5.8.0.2) on it as well as the liquidsmooth v3.2 rom for the Desire.
I formatted the SD card in clockworkmod, choosing 2G for the extended partition and 128M cache. This still works after flashing CWM: advanced -> Partition SD Card -> Ext Size 2048M -> Swap Size 128M returns the happy message
Partitioning SD Card... please wait...
Done!

But then with the new ROM when I tested the camera, it said that there was no SD card present.
So I went back to the recovery and re-partitioned the SD card with different sizes (not sure how to go back to the original setting). Clockworkmod said that the re-partitioning was successful.
But after that first re-partitioning the SD card has not been accessible. This also means that I cannot install a new ROM (the browser invariably crashes in LiquidSmooth).
I have now installed the -very user friendly!- TeamWinRecovery version 2.3.1.1 to try and re-format or re-partition the sd card, but it says E: unable to mount /sdcard and E:EXT + Swap size is larger than sdcard size. That is not right because the card is 16G.
The following Linux command tell me that the phone is connecting with my computer:
$ fastboot devices -l    # during boot loader
SH07XPL04124             fastboot usb:2-1.1

Sometimes (but not always) when I attach the phone to the computer, I get the dmesg lines
[2076992.175291] usb 2-1.1: new high-speed USB device number 70 using ehci_hcd
[2076992.280434] usb 2-1.1: New USB device found, idVendor=0bb4, idProduct=0c87
[2076992.280442] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2076992.280448] usb 2-1.1: Product: Android Phone
[2076992.280452] usb 2-1.1: Manufacturer: HTC
[2076992.280456] usb 2-1.1: SerialNumber: SH07XPL04124
[2076992.284078] scsi168 : usb-storage 2-1.1:1.0
[2076993.285389] scsi 168:0:0:0: Direct-Access     HTC      Desire           0100 PQ: 0 ANSI: 2
[2076993.287105] sd 168:0:0:0: Attached scsi generic sg3 type 0
[2076993.295416] sd 168:0:0:0: [sdc] Attached SCSI removable disk

And in the File Manager (PCManFM 0.9.10) the device shows up as 'HTC Desire'. Clicking on it gives no result though -- the program asks which application should be used to open this file.
Following the dmesg lines, the command gparted /dev/sdc results in
Error opening /dev/sdc: No medium found

During the recovery session, I can adb shell but nothing is listed in /proc/filesystem or /proc devices. With lsusb I get
Bus 002 Device 083: ID 0bb4:0c87 HTC (High Tech Computer Corp.) Desire (debug)

During fastboot, adb shell returns an error.
On the phone, in the TWR file manager, I can go to the directories /sdcard (which contains a directory /sdcard/TWRP with a file .twrps) and /sd-ext (which is empty). Using adb shell I can also delete /sdcard and /sd-ext --it turns out they are just directories created during the mounting attempts. Trying to mount them again re-creates the directories but also says:
E:Unable to mount storage
E:Unable to mount '/sdcard'

I just cannot partition or format the sd card to a usable state again.
My suspicion is that the previous partitioning in CWM causes it to mount as a system directory (or something like that) so that it is not available any more for mounting as external storage.
Does that make sense?
And has anyone an idea how to solve this?

The full partition listing would be helpful here. Also, if it's an external SD card, you could use a card reader to check/fix it using a computer, best if that's running Linux (there are LiveCDs in case it's not) to correctly deal with EXTFS etc.

Since none of my partitioning programs can access the card I cannot give you a listing. A USB card reader for the SD card seems the best bet -- not sure what my chances are if the pratition table is fried. I will get one of those and keep you posted.

BTW the reason I wanted to re-partition the sd card was to be able to use app2sd etc. -- what partitioning would you recommend? (I understand that a bit needs to be FAT). I am using linux commands -- was thinking ext3 or 4 for the bulk of it.

The partition table isn't some kind of separate hardware, you can just clean the card of any partitions and format it back to normal.  Most devices let you move apps to the SD card without special partitioning, does yours not?

@MatthewRead that feature (native App2SD) was "removed" by many facturers with ICS and higher. // alle_meije: The first partition must be a primary and formatted FAT. What you put "further behind" shouldn't interfere.

@Izzy I have formatted the card in Windows now -- 1st primary is FAT32, 2nd primary is ext2 and there is a swap space of 128ish MB. Should that work with one of the newer custom mods?

I'd say so, yes. In the worst case, it should at least show (and use) that first primary partition (with all ROMs AFAIK). Swap might need the kernel to support it, though.

Well, fail once again. I must say that neither CWM nor TWR recoveries have been able to to anything with my 2 uSD cards - the original one from the phone and a new one bought last week. If I delete all partitions and let TWR try (parition SD card) and choose only 1024M of ext4 and 128M swap, it returns E: EXT + Swap size is larger than sdcard size followed by E: unable to mount /sdcard - CWM same story.

Well, that one is solved!
The problem was not the SD cards, but the fact that rooting etc. the Desire caused it to USB-brick. Never heard that before.
As Spezi77 advises in the presentation of his CM11-for-Desire link, I switched to the 4ext recovery, which has a special USB-unbrick function. Some sources also name fastboot commands that should do the same, but they did not work for me.
Long story short, I'm running Spezi77's version of CM11 on my Desire now!

switched to LiquidSmooth to get gapps to work http://my-orion.synology.me:8000/wordpress/?p=708


text:
theme chooser for cm 12 broken/disappeared after update?
On my Xperia Z1 compact and cm 12 I used the Dark Material theme. Then after a recent update it was disabled 'after too many app crashes'. I tried to set it again but now every time I go to settings->themes it exits with the error 'unfortunately, settings has stopped'.
Some posts on the web suggest that in settings->apps, clearing the data for the Theme Chooser app (under All Apps) will solve it. But there is no Theme Chooser app in my app list.
Is it possible to (re)install Theme Chooser somehow? Or another way to be able to switch Themes in cm 12?
phone: Sony Xperia Z1 compact (amami)
OS: cm 12.1 update 20160110
android: 5.1.1
EDIT
I tried (re)installing the Themes APK generously provided by the author of this post, but when I open the APK it first says "Do you want to install an update to this built-in application? Your existing data will not be lost. The updated application will get access to New|All", and when I choose either of those it exits with "App not installed."
That means that Theme Chooser is still on the phone. But why does it then not appear in the "All Apps" list (which would allow me to Clear Data)?
EDIT II
I dirty flashed the latest image (15/1) from the cyanogedmod website. Still no theme chooser that works.

Tell us whether these commands solve the issue: adb shell su  -c am force-stop org.cyanogenmod.theme.chooser; adb shell su -c pm clear org.cyanogenmod.theme.chooser; adb shell su -c am force-stop org.cyanogenmod.themes.provider; adb shell su -c pm clear org.cyanogenmod.themes.provider ; adb reboot;

Also, what does this return: adb shell pm list packages -d?

adb shell su -c am force-stop org.cyanogenmod.theme.chooser -> unknown id: force-stop. Same for the other force-stop command, and both clear commands return unknown id: clear.

The other command returns package:org.cyanogenmod.wallpapers.photophase package:com.android.camera2 package:com.google.android.launcher package:com.google.android.gm package:com.android.wallpaper.holospiral package:com.android.phasebeam package:org.cyanogenmod.themes.provider package:com.cyanogenmod.wallpapers package:org.cyanogenmod.theme.chooser package:com.cyanogenmod.filemanager package:com.android.musicvis package:com.android.dreams.phototable package:com.android.wallpaper.livepicker package:com.android.email

without su -c I can execute those first 4 commands, but after reboot I still get Unfortunately, Settings has stopped.

Ah. This does work with su: adb shell su -c "am force-stop org.cyanogenmod.theme.chooser"; adb shell su -c "pm clear org.cyanogenmod.theme.chooser"; adb shell su -c "am force-stop org.cyanogenmod.themes.provider"; adb shell su -c "pm clear org.cyanogenmod.themes.provider"; adb reboot. That boots to recovery. After just rebooting to CM, I still get get "Settings has stopped".

It looks like a factory reset is the only way to go... Some posts suggest clearing the data of themes, theme provider, and theme chooser? I cannot see any other processes called *theme* , even with adb shell ps?

Cleaning trebuchet did not help either. It was OK again after a clean flash all was good. I felt like an iPhone user though.

trebuchet is the launcher app of CM. Why did you think clearing its data would help?

Stuck for ideas I guess - and thought it interacted with the theme manager.

I see. Can you sum up your solution into an answer? That would be easier for others to follow.

After using adb to remove the data for the packages org.cyanogenmod.theme.chooser and org.cyanogenmod.themes.provider, as suggested above and elsewhere, and also after cleaning the data in trebuchet on the phone (by way of trial and error), the only thing that really made the Theme Chooser work again was a clean flash:

download the latest cyanogenmod (and Google Apps if you want) to your sd card (remove /system/* too if you are switching to Open GApps from another GApps)
reboot into recovery (on an Xperia Z1 Compact by repeatedly pressing volume-up at boot)
choose wipe data / factory reset and empty cache
do install update for both the CM and GApps ZIP files
reboot

After reboot, my apps were re-installed via my Google account and the data (images, documents) from before flashing were all still there.
The custom wallpapers and (in my case no) sounds needed to be set anew.

authors: Αλέξανδρος Αντωνοπουλος


text:
Alphabetical app list on xperia Z1 compact
An earlier Lollipop ROM on my Xperia Z1 compact had the option to sort the apps alphabetically in a very nice way: Apps were put in a matrix with one row per letter, and the apps sorted alphabetically in subsequent columns.
Now I have CyanogenMod 12.1 which is great, but I cannot find the setting that would bring back this app ordering.
I have forgotten how to restore this wonderful way to get to the apps. Does anyone know whether this is a special launcher, app or theme?
(the apus and aviate launchers seem to have similar functionality, but I have never installed those and their names don't sound familiar)
Some posts describe a route via the 'menu' button in the app drawer, but the only softkeys I have are back, home and window list.
Could it be a Cyanogenmod / Lollipop feature that is just really hard to find?

If you're open to alternative launchers/homescreens, at least Apex and Nova offer this (including the possibility to "hide unwanted apps" from the list).

it is a feature of the launcher in cyanogenmod 12.1(android 5.1) . It should be by default but when u see launcher settings, u can toggle app drawer view to old style matrix. Long press on the home screen and check launcher settings / app drawer settings.

Thanks! Is that Trebuchet then? I have installed Google Apps (the micro version) and selected Google Now. But its settings are 'Accounts & privacy', 'Search language', 'Voice', 'Phone search' and 'Now cards'. I switched to Google Now because I could not find it on Trebuchet either though.

That works brilliantly @BharatG ! I cannot accept your comment as an answer but I up-voted it. Now that I have re-installed Trebuchet (had deleted it after choosing Google Now) and switched from paged to vertical it looks exactly the way I wanted it to.

I still can't find the setting on OnePlus 3 (cyanogen)

Do you use Trebuchet as the launcher?


text:
Android Tablet Won't Stay Off
I have a Cube U30GT Mini tablet with Android 4.1.1, kernel 3.0.8, Rockchip rk3066. This tablet won't stay off unless the battery is dead.
Doing a normal "Power Off" just reboots the tablet.
If the battery is dead and I plug in the charger it always boots.
I also tried removing the memory card, but that didn't help either.
Is there any setting or Linux kernel tweak which could be causing this issue, or any other ideas what could be the cause?

Is the device rooted. First thought is defective hardware

Although this sounds like defective hardware, possibly a power switch or moisture issue... Have you tried adb shell reboot --poweroff ?

Device is rooted. I tried reboot --poweroff and same problem. The switch is working, it almost seems like it's some sort of inherent feature of this tablet or some low-level boot loader problem. I just figured out that if I hold in the power button (hard reset) while it is booting, then it will shut off and remain off. But in order to turn it on again after that I have to connect the charger. I first thought I'd bricked it when it happened, but luckily connecting the charger woke it. Still a complete mystery why it doesn't normally stay off.

Why not try flashing original firmware? It will help rule out hardware issues

Developer Options were enabled in Settings. Disabling them fixed the issue.


text:
Can't access external SD Card in TWRP after Link2SD
Ever since I partitioned my SD card for Link2SD, TWRP has been unable to read it. CyanogenMod 12.1 views it fine, but TWRP just shows the card as being 0MB, and freezes when you try to select it.
Is this a format problem, or a problem with TWRP? Am I able to fix this? The card is a 32 GB Class 10 card. The first partition is FAT32 and the second is ext4.

Is your TWRP latest version? Did you look for whether TWRP supports SD-cards with multiple partitions? If CM 12.1 can easily see and you can use it, this shouldn't be a format problem on TWRP too since it supports both.

@Firelord TWRP is version 2.7.1.0


text:
How to disable screen lock during Android development?
I am developing Android app with my daily phone, I want to turn off screen lock only during development.
I can do this manually, but that is too troublesome and sometimes I forget to enable it back after development.
Are there ways to do this automatically? i.e. turn off screen lock when connected to USB?

There are other ways too. My favorite is:
$ adb shell svc power stayon true

See here: https://stackoverflow.com/questions/8840954/how-do-i-keep-my-screen-unlocked-during-usb-debugging

This command will keep the device on not only for USB but also for Wireless or AC adapter charging.

So I faced this problem too and I got quite annoyed at having to go into settings and enable "stay awake" and then disable it when I'm done. Searching the Play Store for an app to do it autonomously, and tried a few that claimed to work but didn't, so I made my own...
And the code is available open-source here: https://github.com/projectdelta6/ADB-Stay-Awake#adb-stay-awake

I created simple shell script for my macOS
File Name : cell-screen.sh
#!/bin/sh

echo '`cell-screen on` to keep the screen on during usb debugging'
echo '`cell-screen off` to reset'

echo ''
echo 'your parameter - ' $1

if [[ "$1" = "on" ]]; then
    ~/Library/Android/sdk/platform-tools/adb shell settings put global stay_on_while_plugged_in 2
elif [[ "$1" = "off" ]]; then
    ~/Library/Android/sdk/platform-tools/adb shell settings put global stay_on_while_plugged_in 0
else
    echo '\n[****]Bad Input.'
fi

echo '\nEnd'

Steps:

I saved the script to the default use location - /Users/[your username]
Given executable access to the file - chmod +x ~/cell-screen.sh
Whenever I start my development tasks, I just execute the shell script in terminal - ~/cell-screen.sh on
After I complete my development work, I simply execute - ~/cell-screen.sh off

For Windows Users:
Change the shell script for the adb location - %LOCALAPPDATA%\Android\sdk\platform-tools\adb

Where are the values 0 and 2 documented? I have found these values but I'm not sure how to convert those to integers. Is it by bitmask? If so, are the values listed 1,2,4,8 in the order they are listed? If so, then where is that documented? Thank you.

authors: อนุชา เหมือนงิ้ว


text:
Force VPN usage?
On an android phone, stock or modded rom, is it possible to force the use of VPN? E.g. only allow traffic tunneled by VPN, don't allow traffic without using VPN to make sure that no unencrypted traffic leaks. Thanks for any hint!

Are you having a problem with "leaked" traffic, or just assuming that using a VPN with Android is unreliable?  If the latter, would you not also assume that any "force VPN" method is unreliable?

both ;-) on mobile usage connections (VPN) are always unreliable, so when VPN gets disconnected, I want to make sure that no traffic gets send until the VPN connection is re-established.

Ah, fair enough! It might be possible to use an app like Tasker to turn off data when you lose your VPN connection, but I don't know the specifics.

Looks like you want to apply a security policy to a device...

yes, it some way it's a security police - but that's not supported on normal android versions, right? ):

I recommend you check out Tails and see what troubles they have had preventing 'leaks'.  Some things, such as DNS lookups, cause these leaks.

Answering an old question, I know, but Android 4.2 has "Always-on VPN" in the menu on the VPN Settings page: setting a VPN profile under this will maintain the VPN connection, and only allow network traffic when connected to it.
More info: http://support.google.com/nexus/bin/answer.py?hl=en&answer=2819573
(It may have been added in an earlier version of Android, but my Nexus 7 auto-updated before I got around to setting up the VPN :)

wow, that is cool! and if it works like described, it perfectly solves my problem! luckily I have a galaxy nexus with 4.2.1 :-) Thank you very much for answering this old question! Of course selected as correct answer :-)

SSHTunnel

SSHTunnel is an ssh tunnel/vpn solution for Android.  When I first found SSHTunnel, users were forced to use an application's settings to use SOCK5 proxy, but now sshtunnel can handle per application and global use on its own.  Just like rooting is required to get the full functionality of Orbot, you will need a rooted device in order to get what you need from SSHTunnel.
Although this is not a VPN, this is a much simpler setup that will give you an encrypted tunnel to your server.  You can interact with your server through this connection directly, or use it to receive or bounce traffic outwards.

Note:
Unencrypted traffic sent to your server (ie http) will be encrypted through your ssh tunnel, but it will still be clear/unencrypted once it leaves your server.

Links & QR

Google Play/Market
Official Website

You could install Orbot on your phone and install a bridge on your server.

Depending on your needs, you might want to restrict bridge access via
a whitelist. (Please see comments)
This isn't a true VPN, but provides the same functionality.
Orbot can force ALL traffic or app-specific traffic.

Orbot [02/20/12] 0.2.3.10-alpha-orbot-1.0.7-FINAL.apk

Thank you, but I think there's one downside on this: I don't want to route my traffic over foreign computers and when I set up a bridge at home I guess traffic is routed from my bridge at home to the tor network and then to it's real destination? ):

If you were to (correctly) set up a bridge on a server that you owned, you could 1) Limit who could use it (only you) and 2) Have it be the 'exit node', so that all of your traffic would leave from this server and not use any other Tor servers. :D.  This is a very powerful tool, but you may  find other users with experience with other tools that will suit your needs more easily.

Hmm I would I make sure I am the only one who can use it? Seems like there's no kind of authentication?

I imagine you would start by using Tor's configuration (check their documentation) and iptables to restrict usage.  Like I said, there is probably a 'better' solution for you, but I personally trust TorProject's Orbot more than any other VPN solution currently available.  I plan to set this up myself and provide a tutorial soon.

According to a user from the tor help mailing list there is unfortunately no kind of authentication for bridges.

I think it would still be possible using iptables, but this might be a ridiculous way to go about things if your ip changes often and may cause additional security risks.


text:
Contact Organizer
I just bought an android phone a few days ago, and I love it. There are a few things that bother me, but most of the time I find that there is a better way to manage things.
What bothers me the most at this point though is that I can't store Email addresses on the People app. I was looking for a one stop place where I'd be able to store all the information about a person including email, date of birth, profile picture etc. I'd receive reminders when their birthday comes up and stuff like that.
Is there a single app that does all that?

What kind of device is it? How are you trying to add the emails? Android's built in People app (unmodified) supports email addresses and birthdates and the like. If you add a Gmail account to a contact it will even show their Google Talk status in your contact list for you.

I don't know which device you are using? But normally every Android phones People app should support the functionality of at least the basic information (meaning the emails, because it is Android ~ Google ~ Gmail). So are you really sure you can't add at least the email address to your contacts?
As mentioned already by eldarerathis, you should normally even see your contacts online status.
Maybe you can test it by logging in on your Gmail account on a pc. Add some email addresses to your contacts via the pc. Make your Android device synchronize the information you just entered (Settings > Accounts&Sync > Sync all; or something like that). Then have a look back at your People app and check if the email addresses are entered. If they are visible on your phone, that probably means that your phone supports this, but you haven't found the good way to add this information via your People app. Maybe you can search the site of the manufacturer for more information (or maybe have a look at something like a Help or Get Started app on your phone).

Well, I added my SIM from the old phone. Exported the contacts to my google account, then I'm trying to edit them by going into their profile and editing them. Can't see the email or birthday option! It's a stock android.

@AbijeetPatro: Do you have an "Add another field" button when editing them? On my Galaxy Nexus it gives me about 10 things to choose from. If not then, as mentioned previously, it may be helpful to know what specific kind of device it is ("a stock android" isn't really descriptive).

On my HTC One X (Sense 4+ People app), the email field is always visible when I edit a contact. Even if that contact hasn't got an email (yet)

It's not fancy shancy phone, its a local brand, one that you have probably never heard off. http://www.youtube.com/watch?v=0j2xAqMqX0Y
I remember seeing that when adding a new contact.

Yeah when adding a new contact it's there.

If it is there when you add a new contact, then it should be there when editting. Maybe under "Add fields" or something..