text:
What does the "no command" screen mean? (Trying to execute hard reset Recovery)
I'm trying to hard reset a Motorola XT1058 I inherited from my sister that's sending me to the No command screen.
When I press the all of the Power + VolUp + VolDown for a while and release which takes me to the AP Fastboot Flash Mode screen, which reads as follows :
AP Fastboot Flash Mode (S)
30.BE (sha-34b7ccb, 2015-04-22 12:57:17)
eMMC: 16GB Sandisk RV=06 PV=07 TY=17
DRAM: 2048MB Hynix S4 SDRAM DIE=4GB
Up Time: 3 minutes
Device is LOCKED. Status Code: 0
Battery OK
Connect USB Data Cable

Boot Mode Selection Menu
Vol Up Selects, Vol Down Scrolls
Normal Powerup
Recovery
Factory
Barcodes
BP Tools
------------------
Fastbook Reason: Key pressed

I then navigate to Recovery and that takes me to the No Command page. What exactly is this No Command page about? I wonder if it's related to the Device is LOCKED message that shows up in the Flash Mode screen? My sister does have a password enabled on the device. Maybe she has to first disable it?

Moto X Factory Reset is possible in two ways:

Settings → Backup & reset →Factory Data Reset →Reset Phone.

OR
Alternate way (External Reset below)

Vol Dn  + Power  press for few seconds
From the "Boot Mode Selection Menu" screen, select Recovery.

Note: Use the Volume Down button to scroll through the menu options and the Volume Up button to select.

From the "No Command" screen (Android figure lying on his back), press and hold the Power then press and release the Volume Up button to display the menu options.
Select "wipe data/factory reset".

Note: Use the Volume buttons to highlight and the Power button to select.

Select Yes - delete all user data

As you can see from above, you are at the intermediate step of factory reset, while the first method is far simpler
Device is LOCKED refers to the status corresponding to Bootloader is locked. It has nothing to do with security password
Huge thanks to acejavelin for providing an explanation of No Command, reproduced:

The No Command screen means recovery checked the normal area (/cache) for an update file, like an OTA, and it didn't find one, so it had "No Command" to execute. Android's stock recovery is intended for the normal, everyday user, giving them a menu they could easily access could cause lots of potentially angry people who are just playing around and reset their device by accident. Stock recovery, and it's menu, are specifically engineered so that you have to take special steps to do anything. The No Command screen, meaning no automated script, is part of that safe guard.

Solid, that relates to the Device is LOCKED part and managing to get me to succeed with the Hard Reset. But what exactly is the purpose or design of the No Command page in the first place? What is it meant to communicate precisely?

The No Command screen means recovery checked the normal area (/cache) for an update file, like an OTA, and it didn't find one, so it had "No Command" to execute. Android's stock recovery is intended for the normal, everyday user, giving them a menu they could easily access could cause lots of potentially angry people who are just playing around and reset their device by accident. Stock recovery, and it's menu, are specifically engineered so that you have to take special steps to do anything. The No Command screen, meaning no automated script, is part of that safe guard.

@beeshyams Sorry, for what it is worth on this one I am the source... the answer comes from experience and personal observation since the days of Eclair when I started with Android, you can quote it if you wish.

Thanks you so much. All the instructions on line were wrong, and were saying hold VOLUP and then press PWR, when it was actually hold PWR and press VOLUP.

@DragonFax glad it helped


text:
WhatsApp call/LINE call over phone speaker and Spotify music over Bluetooth speaker at the same time
I connected my Samsung Galaxy S7 edge to my car's Bluetooth and started to call my friend using the phone's loudspeaker on WhatsApp or LINE app. However, I also want to listen to music on the Spotify app, but through my Bluetooth speaker on my car.
Is it possible to do this?

As explained in Youcanic - 5 Ways To Play Music From Phone To Car Radio, you can use
Mono Bluetooth router app or other similar ones.
Let us know about the sound quality.

source: Stack Exchange

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

sort: votes


text:
Is it beneficial to turn off GPS (or turn location to battery saving) in Marshmallow?
Usually, I turn off GPS sensor (or set it to battery saving mode) where I am familiar with, or in the room. However, I noticed that when I flashed a new ROM, say Cyanogenmod or OmniROM, I found that the GPS was automatically set to "Device Only" or "High Accuracy".
I wonder whether it's beneficial to turn off GPS or into battery saving mode (namely, via cellular or WiFi) for newer ROMs, say based on Marshmallow, especially from a view of battery life.
Cf.
No way to toggle GPS off in quick settings for Marshmallow?

From a battery saving perspective, these settings will help minimise drain, and need to be changed when you actually require location based services:

WiFi → Advanced → Keep WiFi On during sleep → Always ( See this for more details on trade-off between battery and being connected always What does "Keep wifi on during sleep" mean? )
Location → Scanning → WiFi Scanning - disabled
Location → Mode → Battery Saving

This in addition to tweaking app permissions as detailed in other answer by Abhishek should maximise savings
Another aspect is Doze feature of Marshmallow. It's implementation, delays Doze if  a) Device is physically moved b) If the location feature is enabled and location update happens ( doesn't seem to be documented but reported widely)
If you want to further maximize battery savings, and trigger Doze functionality immediately or after a configurable delay , you could try Greenify or Force Doze. Both these can work on rooted or unrooted devices. Of course, Greenify has other advantage of hibernating appsb while the device is in use

Yes, Any radio being turned on will cause some drain. It really depends what apps you have using that location. If there are more number of apps accessing your location, it will definitely cause your battery to drain.
Keep location services and GPS high accuracy location off unless you need it. Other Apps in foreground/background will unnecessarily constantly ping GPS if available rather than cell towers for location. Cell towers location is good enough for most situations, unless you have to run apps like Uber, Navigation, etc.

@Frank Science: If you have permitted them to do so.
Marshmallow provides an option to let user chose permissions for the apps.
If the app need to access the location, then it pops out a prompt message at the first use. Or you can add permissions in Settings > apps.
Some apps may be needing the permission to access the GPS location (Like Uber)

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


text:
Whatsapp: iPhone to Android: 0 messages restored
I backed up my iphone's whatsapp chat history and tried to restore it to my Samsung galaxy s6 when install whatsapp. I've tried this countless times and always got 0 messages restored (also making sure to uninstall the app every time I try again). I even rebooted the phone, but none of it helped. and yes, I redid the icloud backup that time.

I think android cannot retrieve your messages from iCloud (as iCloud belongs to Apple). I don't know whether whatsapp (Apple) have an option to backup messages to google drive. Whatsapp (Android) can only retrieve backups from Google drive and Local backup

I have also experienced the same thing, transferring whatsapp chat history from  Symbian to Android. It is not possible, because of difference in file format.

The same way you can't play a save game file from an Xbox on a PlayStation, you can't use iCloud backups on Android.

I've heard of Wazzap Migrator, its free for the text messages but costs money for the media.

It seems like Wazzap Migrator was the answer, it costs money to restore media as well.
To extract the conversations + media:
1. Download the free backup extractor http://www.wazzapmigrator.com/faq/free-itunes-backup-extractor-windows.
2. Open it and select your iPhone (it should be plugged in to your PC of course).
3. Go into advanced and check "Applications".
4. Click "extract selected files".
5. The conversations should be stored in "Desktop\Extracted from backup for WazzapMigrator\Applications\net.whatsapp.WhatsApp\Documents\ChatStorage.sqlite"
and the media folder in "Desktop\Extracted from backup for WazzapMigrator\Applications\net.whatsapp.WhatsApp\Library".
Make sure your have to paid version of Wazzap Migrator installed on your android phone. (Or you will only be able to restore conversations without media).
To put the extracted conversations + media on your android device to select in Wazzap Migrator:
1. Plug your android phone into your PC.
2. Go into your phone's internal storage via Explorer.
3. Create a folder, named anything, and drag ChatStorage.sqlite and the media folder into it.
To restore:
1. Install Whatsapp.
2. Open Wazzap Migrator.
3. Select your conversation file and media folder manually.
4. Start the conversion.
5. Reinstall and start Whatsapp.
6. If it detects a backup in your devices storage, tap restore.
7. That's it.
Keep in mind that my memory of what I did is sort of fuzzy. You should know what to do, however.
Source: http://www.wazzapmigrator.com/faq/how-import-media

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


text:
Saved my contacts in google account but they don't appear on my new phone
I have saved my all contacts to my Google account. But now in my new phone my contacts are not showing.

Can you see them on Google Contacts?

Ensure the following settings.

Your device sync is turned ON
Contacts are visible in Google Contacts web
Ensure Settings > Accounts > (your account) > (contact sync) toggle is ON
In Contacts app > Options > Contacts to display check whether Google account (youraccount@gmail.com) is checked.


text:
How do you delete Google Calendar goals?
A quick Google search pointed me to this thread on reddit
Following a link posted in the comments, and then going to the "android" tab (which I totally missed at first) I found these instructions

Open the Google Calendar app.
Tap the session.
In the top right, tap More.
Tap Delete > This session or All following sessions (and stop scheduling).
Tap OK.

I'm just wondering where I would find "This session" or "All following sessions", because I don't see it:

I'm using Calendar Version 5.5.15-129963483-release and I thought I might be out of date but there doesn't appear to be a newer version on the Play Store.

If you click 'delete' does it give you those options?

Nope, it just deletes the single event. Repeat ad nauseum for every bleeping event in each "goal". Ugh. Obviously I'm a bit frustrated @ Google (Calendar) right now

I've just tried myself and I get a prompt to delete 'All following sessions'. The event itself looks different to your screenshot though, mine includes 'Session' information and rather than 'Going?' at the bottom it has 'Defer' and 'Mark as Done'. Are you sure these events were added via Goals?

@bmdixon I'm sure they were originally. They pop up as if they were goals, i.e. they have the option to mark as done, defer, etc. I think something got horked up when I was doing something else.

Two points (which worked for me): first, where it says in step 2, "tap the session", it means tap the goal. And second, this does only work in the mobile app, not the desktop/browser calendar. I appreciate this may not help with Wayne's problem, but it helped me as I tried to delete goal entries (especially the second point), and when I too had found docs like he shared (and this discussion). After finding this (https://support.google.com/calendar/thread/1067516?msgid=5603332), I wanted to clarify things here for others who may find it.

Same Calendar Version as yours ( update released on 15/08/2016). Moto X Play 6.0.1
I created goals using goals option of app and am able to choose and delete. Screenshots below

First one shows goals for today and tomorrow
On pressing one of them it appears as in second one
Third one shows the Delete option on pressing the overflow (3 button) menu
Last one shows the options you are looking for

The only thing that I can think of is perhaps by deleting part of the goal via calendar or something else it screwed things up and just turned them into regular events. I just manually went through and deleted them all.

I found another solution that works if you're just get shown to delete single event. It is essential to get the picture shown of how often you participate.

Go in Google Calendar on your desktop
Click on old goal dates and press “Did it”
Now go to the Google Calendar App
Press on the 3 dots on the start screen of the app and actualize your calendar
Afterwards click on the actual event/goal and go to the 3 dots
Now you can choose to “Delete all further events”

The circled one means Access and Settings. After that a new page will open. At the bottom of the page will be a blue button saying "Delete all the calendar". The only solution I found to delete the "forever" events. That button will delete all your appointments or events. but at least it works

You might be using the Android calendar App that comes by default (it shows all the other calendars, Google, Samsun, Phone, Outlook, etc), be sure you use the Google Calendar, I had the same problem until I realized it was the wrong app.

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


text:
Turn off the notification sound at system level - Android Marshmallow
I have an OPO 3 and I was wondering if there is a possibility to turn off the notification sound for all app, but I would like to retain ringtone sound as well as vibration.
Normally on Samsung S6, there's a possibility to do this when you press the Volume rocker key.
My device is rooted and have Xposed installed. I tried Ringer & Notification Volume unlink xposed module but that doesn't seem to work.
This is something that I miss very badly, it's tragic that google didn't encompass this feature by default.

Try Macrodroid  1. Trigger: application launched ( choose few to start with) 2. Actions: notification sound - none 3. Constraints None..see if it works for you

@beeshyams Thanks for the reply. That actually did the job. Can you add the comment above as an answer below, so I can accept it.

Automation is the preferred option. Many apps are available. I prefer using MacroDroid , since it is free (upto 5 macros) and easy to learn. To understand how MacroDroid works and required settings,  my answer here

Your macro would look like this

Macro : Kill Notification (name of macro )

Trigger:  Application Launched ( choose from the drop down the apps for which you want the macro to run)
Action: Notification Sound  ( select none, since you don't want any)
Constraints: None ( which means this macro always runs whenever chosen apps are launched)


text:
Marshmallow, SD Card & Apps - Almost Nothing Movable?
I am wondering if I am missing something that has simply become a bit more 'hidden' in M. On my old phone, which had not reached Marshmallow yet, there were, say, a dozen apps that could move a portion of their code and data to the SD card, freeing up valuable internal storage. On a new phone (Moto G2, if it matters) that has gone straight to M, I am aware of the portable storage vs adopted thing now, and I have found the Migrate option... but when I do that, it says 'this will free up 1.X Mb'. Yes, you read that right - Mb, not Gb. Apparently it is moving pretty much nothing - yet this phone has more or less the same apps on it now (possibly a couple less, but there should definitely be at least 10 apps).
Is this a casualty of the changes in M? Why can I not move the same apps over as before? Or do they require getting the WRITE_EXTERNAL_STORAGE permission on the fly (i.e., must use them first to get it) before that is possible?
(While we're at it, why can't all apps be moved? It is my understanding that Linux / Android simply mount everything, regardless of source, as a partition - so in theory everything bar the most fundamental OS apps should be movable and usable without their code even realising they come from somewhere other than internal memory, surely?)

Welcome to Android Enthusiasts! 1) see our app2sd tag-wiki for explanations, and 2) our adoptable-storage tag-wiki. Also follow the relevant links from there, plus the "frequent" questions. Nothing new under the sun, all has already been asked before :)

Ohhhh... wonderful, thank you for the links. So if I'm reading those right, now that I have let the phone adopt the entire 32 Gb card... I actually have 8 + 32 Gb available for all apps, and it will automatically install to the card when it runs out of space on the internal memory? I wish it would show it as one large lump so that I could tell it had worked! ;)

That's the point I was never able to remember (what exactly happens to the "real internal storage"). I wouldn't use adoptable storage unless I'd really have to (and I cannot imagine a reason forcing me to that). For me (personally) the drawbacks are too high a price to pay.

I admit I was not keen to 'commit' the card by adopting it, but since the card is not intended to be taken out (too fiddly to keep turning the phone off and take the back off, although I admit the Moto is by far the easiest to remove the cards of the phones I have had of late - credit for that) and was there purely to extend storage for apps (I am not a big media user (images / music / videos) ), if this actually works as I now believe, it is good for me :)

sigh I went to migrate the data back to internal storage, now that I realise it wasn't doing what I thought, and now it has finally decided to move 1.1 Gb's worth of something onto the card - and it now shows 'Used 7.x Gb of 36.x Gb'. So I was worried about nothing! :)

Be welcome to sum things up in an answer if you consider your issue solved, and mark that answer as "accepted" (by ticking the green check-mark next to it). It'd be hard to find in the comments – and an accepted answer clearly identifies a solved issue. Thanks – and glad the issue seems to have vaporized :)

(Summarising into an answer as suggested by Izzy.)
When you adopt all or a partition of an SD card under Marshmallow (6.0) onwards, that SD card or partition becomes an extension of the internal memory. Depending on the phone model it may subsequently be referred to as internal memory, or it might still appear to be a completely separate entity. You can rename the card if you wish, to help clarify this.
Android will install / move apps and data (as older versions of the OS referred to the parts) onto the SD card portion as it sees fit, and thus when it runs out of room in the internal memory, it will happily go on to use the SD card.
When the internal memory or your card refers to 'Migrate data', this appears to be distinctly different from the data stored by any particular app, but instead appears to refer to that portion of the filing system that a connected device (PC or Mac) or a file manager app can view. Thus, there appears to be no value in using Migrate Data - just leave it where it is, the system will handle it.
(By way of demonstration, as per my original question using Migrate Data from the internal storage appeared to only move about 1 Mb of data; when I migrated it back, the system suddenly decided to move 1 Gb's worth of app and data onto the card, thus showing that it was indeed moving items around intelligently.)

"and thus when it runs out of room in the internal memory, it will happily go on to use the SD card"

Not sure about that. I have CM 13, Android 6 and no, no data is automagically moved to sd card when it runs out of room in the internal memory, neither before nor after migrate data.

android is actually not happy to move apps to adopted sd card and reports out of memory instead, what i know so far, you should better connect sd card before before installing any apps, otherwise already installed apps will not use sd at all and android still needs space on internal storage to install apps


text:
How do I get rid of two "viruses"?
Yesterday I was looking at a sight and a message on my screen popped up on the incognito page;
An embedded page at s3.amazonaws.com says: MESSAGE! Congratulations Comcast Cable user, you have been chosen for a chance to get a enw iPhone 6s, MacBook Pro or iPad. Click OK to continue.
I can't get out of this pop up!!!
Then, this popped up:
www.launcer-apps.xyz says:
Droid Turbo System Warning (2) Viruses Detected!
I ran the Verizon security check and it did not show any viruses.
If anyone knows how to remove these from the Android Turbo, please let me know.  Thank you

Not viruses: those do not exist in the Android ecosystem. Simply purge your browser's cache and avoid those websites. Also, you may want to install an ad-blocker (if you have root permissions).

In addition to the above comment by @death mask salesman, do check your installed apps for any malwares, which favors such ads, and uninstall them.

Don't worry. These are fake virus scanners. They try to scare you by making you think your device is infected.
If you can't exit out of them simply close the browser tab you opened them in.
And if you rooted your phone you can download AdAway to remove the ads.


text:
MIUI : How to move data to external SD card for installed app in Xiomi devices
I have been trying to figure out how to transfer the data of the apps installed in my Xiomi note. It pretty clear in other android devices where we can go to the app settings and open the installed app and transfer the data to SD card by selecting move to SD card but this option is not available in MIUI.


text:
Can I create a restricted profile on an Android cellphone?
Background
I want to prevent myself from viewing pornography on my cellphone. I do occasionally go to addiction support groups, but haven't yet done the Twelve Steps that they recommend. I'm hoping that, if I set up a sufficiently-good filtering setup, I can manage at least somewhat OK without doing these Steps.
I used to use the app locker formerly known as Smart AppLock in order to try to prevent myself from installing the app which I normally use to view pornography. But the app locker had a bug in it which allowed me to bypass its protection. It's not an obvious bug.
I guess I could have tried emailing the developers of the app locker; but I didn't know whether or not they'd actually care.
I could have installed a different app locker and given the password to a friend. Or I could have used Pluckeye Lockbox or a similar service to store the password. But I'd rather not rely on third-party app lockers at all. I'd rather rely upon security code written by Google. So I'd like to rely upon Android itself and to make myself a restricted profile in the normal way.
I don't want to install a custom ROM and hope that it can help me. I don't want to play around with XML files and hope to achieve my goals that way. I don't want to make myself an almost-restricted profile. I just want to create an ordinary restricted profile in the ordinary way.
My question
If I buy a cellphone running the newest version of Android, will I be able to create a restricted profile for myself in the same way that I could do so on a tablet? And, if so, how do you know? :)

There's another workaround mentioned elsewhere. Does it still work on newer versions of Android?

Yes. You can turn your Google account into a "child account", and can get a parent or friend to set parental controls for apps and games with Google's Family Link app. You can then get the parent to adjust the settings to restrict installation of certain apps.

You can get Family Link from here.
Then help them set up parental controls on Google Play.

It sucks that you can't create a restricted account some other way. One alternative would be to use a task automater such as tasker or macrodroid to kill/disable applications when you are on the other account.

Google Family Link is now available to the general public; no invitation is required. You can get it by installing the app.

Strictly speaking, there's no need to use Google Family Link at all. You can restrict your own account using Google Play Store parental controls:

Play Store -> Settings -> User Controls.
Enable parental controls by having someone type a PIN for you.
From the category list, set whichever app restrictions you'd like.


text:
Share via option on Android 5.1
When one selects the option to share a file on Android 5.1, there is list of apps populated by the OS.  Is the order of the list populated by Android based on most used apps? I have noticed this keeps changing time and time again. Can anyone help out as to what is the default criteria of order of this list populated by android. Thanks.

This is different in different roms, but in most cases apps will initially be sorted alphabetically and then by last used. The last used options will be at top.
Is there a specific reason you're asking this?


text:
can i open flags page on android version 2.3.4
I have been searching for a way to stop auto refresh. My browser sometimes won't open pages all the way. It is very jumpy. And sometimes it just shuts off. I have a LG l75c Optimus Zip android phone

First of all you should get a good browser. Google Chrome or Mozilla Firefox are some examples.
If the problem is still there go to the settings or the browser you use and disable Javascript. This will stop auto-refresh but will also prevent any interactive content on the websites to run.


text:
Firefox 48 for Android Disabled "Add to Reading List" on Long Press
In Firefox on Android prior to version 48.0, I used to be able to long press on a link and select "Add to reading list" from the pop-up menu. In version 48.0, the option has been removed? Why?
I sure hope the answer isn't that Mozilla was getting flack from advertisers who were upset that people could bypass the real page and just read the article content (imagine that!).

go to reading page
look for book icon in address bar
switch to reader view
press add to bookmarks

It will be placed in the reading list.

Doesn't work for me unfortunately.


text:
System UI has stopped working Oneplus 2 running Paranoid Android 6.01
I flashed the PA 6.01 ROM a few days ago and every time I reboot and the device turns on and an error pops up saying System UI has stopped and when I press OK it just starts the bootanimation again and after the animation has finished the error pops up again and I click OK and the process just keeps repeating in a loop. The first time this happened, I went to my recovery wiped everything but internal storage reflashed the rom, gapps bank ARM64 and SUPER SU. then just reboot. The error has popped up again and again even after doing the wipe and reflash many times do any of you guys know how to fix it? Because I really like PA the battery life it give is just amazing and I find the floating peek feature very very useful. And if any of you guys cant figure it out can you please tell me how to flash oxygen os?

Hard reset the phone by pressing the volume button and the power and hold it down.
You will loose your data
click on the below youtube link to see how to do this: https://www.youtube.com/watch?v=l6Y1-2uUyO4


text:
TWRP recovery logo blinks in nexus 9
I have an unlocked nexus 9 (WiFi version) on which I upgraded to android N. Now I want to have a root access on it. I tried to flash twrp recovery 3.0.2 using fastboot,
fastboot flash recovery twrp-3.0.2-0-flounder.img
but then when I try to get to recovery mode I see the logo of TWRP blinking again and again but can't access recovery mode. I tried flashing version 2.8 but then the device is encrypted and I don't want to wipe it.
How can I fix that?

You have a version that's not compatible with N. Support for N just released yesterday (local time), get it while it's hot: dl.twrp.me


text:
Wifi won't turn on after using xender, Unless phone restarts
Device: Samsung Galaxy Grand Duos (gt-19082)
Current ROM: CM13.O Unofficial port.

After using a Wifi file transfer app like Xender(turns my hotspot ON)
when I try to turn ON wifi, the toggle goes gray(unresponsive). The problem persists unless I restart the phone.
I am experiencing this problem from way back while I had CM12. Now I have upgraded to Marshmallow.

The situation persists any app that use hotspot for transfering.
Ok, I will report it into Cyanogenmod. Thanks :)

Let me see whether it solves my problem. :)

At last the problem got solved.
I had to backup all my data, do a hard reset.
I flashed with a new version of Cyanogenmod, and then with nano Gapps.
And a full reset after flashing it with Gapps.
After reboot, Reinstalled all apps from backup, and the problem was solved, wifi works well now.


text:
Multiple notifications arrive all at once, from multiple apps
I'm using an LG Nexus 5X (android 7.0, also did the same on Marshmallow), and over the last few weeks I've noticed that sometimes a load of notifications will come in at once(within seconds), say 3, 5, 10. Some quite old (hours).
eg 5x facebook, 3x email at once. A couple of weeks ago I had 20+ twitter notifications pour in in a couple of seconds.
This doesn't happen all the time, sometimes after I move or wake the phone, so makes me think its suspending notifications based on motion, if that's a thing?!
It also doesn't appear to be any different on wifi vs 4G, I have no issues with browsing or calling.

Going by your description of not happening when you " move or shake the phone" , it appears to be related to Doze function of Android, which may be the cause
You would need to exclude these apps from the Doze feature. I am not sure how to do that on Nougat but on Marshmallow,   Is there a way to exclude an app from Doze?  should help you exclude those apps ( steps to exclude would probably be similar on Nougat )
Edit: Doze behaviour has been changed in Nougat. Doze is implemented in two stages

When a device is on battery power, and the screen has been off for a certain time, the device enters Doze and applies the first subset of restrictions: It shuts off app network access, and defers jobs and syncs. If the device is stationary for a certain time after entering Doze, the system applies the rest of the Doze restrictions to PowerManager.WakeLock, AlarmManager alarms, GPS, and Wi-Fi scans.

My understanding is that this change does not help your problem , without excluding from Doze

Ah excellent thank you! I'll have a play and report back...

I have excluded several apps from Battery Optimisation (Doze mode) So far its looking good, but want to give it a few days before marking this as the answer, just to be sure.


text:
Simultaneous OTG + Charging Capability
I'm working on a hobby project to stick a tablet in a car to replace the factory head unit. For this, I need to connect the reverse camera to the tablet (via USB, using something like an EasyCAP adapter), while the tablet being charged.
So far, I found that Lava SimulCharge adapter claims to do this. Although it's very picky about the devices it works with. (Exclusively a few Samsung Galaxy tabs with strict OS versions and even cable lengths)
I would like to know what other alternatives I have which can do this. (Prefer not being locked down only to the LAVA supported tablets, as they're quite expensive for my purpose.)
Is it a Samsung only feature? (seems like most Windows tablets support this out of the box across a number of OEMs. But haven't seen any Android device that isn't Samsung supporting this.)
Can I check which tablets have the support?
I prefer to do this without rooting the device.

You could buy a cheap docking station and split it like here http://forum.xda-developers.com/xperia-u/accessories/xperia-p-sony-smartdock-dk20-ion-t2293849

I did some research and seems like not may tablets have docks with USB nowadays.

Yes.. But lower end Chinese ones often have - don't recollect names and that may fit the budget as well. Apart from that, there are too many factors involved to say with confidence " yes, this should work"


text:
Debugging wifi connection on Nexus 5x
After upgrading from Nexus 5 to Nexus 5X, I am unable to connect to my company's wifi. The credentials I provide are correct, and sometimes I do manage to connect, but that lasts only several seconds to minutes.
The wifi screen shows the wifi with "Saved", which then goes through "Connecting", "Authenticating" and back to "Saved".
How can I debug this and see what is happening? Is there a log I can investigate? All other wifis have no problems so far.
Thanks

Check with the network admin. Sounds like there's a MAC filter in place which doesn't let you in, as your new device's MAC hasn't yet been entered into the whitelist.

My previous phone was also my personal device, and I don't recall giving anyone my MAC address. Also, this wifi is public, for guests to connect to with only a password, it does not expose our internal network. I will check with them just in case they have already had a similar issue.

Also, as I have noted but perhaps didn't emphasize, I sometimes connect to the wifi shortly.

OK, it was just a thought – for a public WiFi that should indeed be ruled out. Nevertheless, the admin can check the logs and maybe see something we can't. Fingers crossed!


text:
Huawei Y635-L01 Lollipop?
Has anyone got a way to flash lollipop on the Huawei Y635? The guides on google aren't that help full..
Beat answers will get voted up
Thanks
FlashWaihi

Only available via custom ROMs, which you'll need quite a bit of research before diving into. Consider using this XDA-Developers thread for a start.
Note: As it is for all Huawei phones, you need to apply for unlocking the bootloader first. Furthermore, the page points out that you will only get 3.1MP camera at best with any Lollipop custom ROM, and you need a special modem for calls to work correctly.


text:
How to disable all "please rate our app" dialogues?
I use a lot of different apps, and many of them prompt me to rate them in the Play Store. Some of them don't have a "never" button, so they keep bugging me. Some of them don't realize it even if I've rated them, so they keep asking me to rate them after I've actually rated them. Also, I want to rate apps on my own initiative, I don't like such reminders.
Is there a way to block/disable/hide all such "please rate this app" prompts systemwide?
For example, it could be an Xposed module that looks for dialogues with buttons leading to rating in the Play Store and then blocks/hides those dialogues.
I have Xposed Framework and root access.

theoretically possible, but I highly doubt anyone got bothered enough to implement this. btw what apps do you have in mind? I can't remember when I saw this last time really.

@SargeBorsch Which apps, you mean?

the apps which show the annoying dialogs

@SargeBorsch Dozens of my apps do that.

maybe you could just find less annoying alternatives for them

@SargeBorsch It's not that annoying. I'm not willing to switch to a less preferable app just to avoid the dialogue.

then I would suggest reporting this as bug to the app developer(s), sometimes it does work.

@SargeBorsch I don't care that much, I don't want to contact dozens of developers. Also, I also want to block the ones that do disappear after I rate.

Mention it in your comments when you rate the app less than 5 stars to encourage the developers to fix it.

@TomG Yeah, I've done that before actually.

Is there a way to block/disable/hide all such "please rate this app" prompts systemwide?

Apparently not possible as you can see from the same question answered on reddit by an Xposed module developer :

There is no global rating dialog class that you could hook into, every app creates a standard dialog and adds their own contents to it, so you would have to decompile, analyze and hook every app separately.

Perhaps a developer here could add more by way of explanation, as to why it is not possible to employ a technique / tool that works across the board in disabling rating popups

Thanks for accepting but I was hoping for a more detailed explanation from the developers who frequent the site.

I had a problem with this persistent pop up and app support replied. It helped so adding it here
Quote in the programs folder of Snap ( app name) you will find a file called settings.txt. Please send that file, so we can check it. Probably in this file it states rateAskAgain=true but it needs to be
rateAskAgain=false unquote


text:
"Invalid Sim" even when IMEI number is correct
On a recently purchased Sprint Galaxy Note 5, I installed an engineered version of Android 6.0 that apparently breaks the unlock it had before (this wasn't mentioned in the instruction so..), so after installation I get an "Invalid SIM card" notification; I checked the IMEI and it is correct, the same as the IMEI I had before, though I read that the Invalid SIM card warning comes only when the IMEI is lost because of similar installations.
My question is, what could possibly be the problem as the IMEI is correct yet the SIM card is not recognized? Could it be that the phone's designed for Sprint and IMEI is not involved? Or could it be an easy-to-fix problem?

Partial answer:
A physically damaged SIM card can lead to the "Invalid SIM card" message as well.

It works on other phones. Therefore I believe it is absolutely software-related.

Sounds fair enough.


text:
Why does Chrome on Android launch tabs or redirect existing tabs to spammy ads (spontaneously, it seems)?
When using Chrome on my Nexus 6, I often get taken to a data URI that causes a modal that reads something like:

An embedded page at s3.amazonaws.com says:
  Message!
  Congratulations Grande Communications user, you have been chosen for a chance to get a new iPhone....
  Click OK to continue

There is no Cancel button. Why does Google allow developers to launch pop-ups with no cancel button?
This doesn't occur from clicking on a link. Usually it happens while I'm on a tab, and suddenly another tab will spawn with the modal. I don't think it's caused by a visit to a dubious host, because it's happened when I've had only top sites (Amazon, ebay, etc.) open in the other tabs.
I have run Malwarebytes and a few other security tools and they all say my phone is secure and clean.
What exactly is happening? On the standard Chrome browser, web extensions can rewrite URLs but Chrome for mobile doesn't have web extensions. Could an app intercept network calls from the browser? Could the sites I'm visiting just be serving malicious ads?

Try clearing the browser cache and see if that repeats?

Can you do some testing to try to narrow down websites you see it on. I would be surprised if the big guys were hijacked in this way. Are you seeing this over HTTPS?

Also are you seeing this on Mobile internet or Wifi or both? I.e. if you go and turn off cellular and connect to a 3rd party wifi say Starbucks Wifi - do you see the popup?

I see this at home over WIFI.

Neither clearing the browser cache nor deleting suspicious software helped.

Here's a screenshot of this phenomenon that my friend sent me on 2016-07-21. It was tailored correctly to her home ISP—"Congratulations Comcast Cable user, you have been chosen […]". I don't have physical access to the device investigate it further.

Actually nothing is malicious or exploitable of what you described.
The popup without a cancel button is just a javascript alert. When you press OK nothing happends because you pressed OK. You get redirected because that's simply the next line in the javascript script.
These misleading ads can be blocked with an ad blocking app such as AdAway, although they require root. You could also simply use the Adblock Browser.
Unless you download or install content from such malicious websites you are malware free. Even if they open already installed apps on your phone (Such as Google Play or Gmail) nothing malicious will happen without your consent.
tl;dr
Watch what you allow/install

I found today that it does it on the same site every time I pass it. It must be an ad from that page launching it. As long as you push the back button and ignore it there doesn't seem to be any problem. I do hope they figure out a way to eliminate those ads, it's irritating and a lot people aren't aware enough to just leave it alone.

Disable the Java-script on that Website, I think it will remove the problem.
It is not some sort problem related to virus,it is no-script function which is triggered by java-script when you click on page.


text:
Whatsapp restore data 2014?
I've tried finding an answer to this one but haven't had luck so far.
My phone was playing up, so I went into recovery mode and cleared the cache partition. I've since worked out what the problem was and I didn't need to clear the cache.
The problem is that when I loaded whatsapp, it was going through the install procedure again. It found a backup, but the restore is from December 2014.
I've had a look at whatsapp/databases/ and all the files are the same date of 2014, so It appears it wasn't storing them there.
My question is this: If it wasn't storing the chats in whatsapp/databases, then where does it store the current chat data? Is there a way it can be recovered?

AFAIK, WhatsApp does an automated backup every day around 2AM as seen in "How do I backup, restore or transfer my WhatsApp data?". However, it is sometimes confusing for users as some are opted to use WhatsApp's new Google drive backup feature while others have not. Even then, a local copy is stored on the device regardless.

Looking at your statement I can only assume;

Your device is either connected to a computer source, or low on storage space or even set to sleep with no background data (maybe switched off on a regular basis) at the said time. If so, WhatsApp will not be able to backup your chat history.

Again this statement is debatable as there can be other reasons (such as version, OS... etc). But I can only think of this as a cause.
I'd suggest you check for the recent date/timestamp of the msgstore.db.crypt12 file or maybe msgstore-YYYY-MM-DD.1.db.crypt12 file and rename back to msgstore.db.crypt12 as WhatsApp only identifies the one without the date on it as the main file.
Hope this helps!


text:
My Nexus 6p keeps turning of when connected to wifi or cellular data
I have a 5 months old nexus 6p and whenever i turn on wifi or cellular data it reboots itself. it works perfectly fine if not connected.
pls help

Has it always done this or did it start recently? Did it start after the phone dropped on a hard surface, maybe? It could be a hardware problem.

Please try running device in Safe Mode. Running device in safe mode will stop third-party apps from functioning. This will test if it's caused by a third-party app.
To run device in Safe Mode:
1. Press and Hold Power button
2. Touch and Hold Power off prompt on your screen
3. You should get a notification on your phone to reboot device in Safe Mode, then hit OK
You will notice that there's "Safe Mode" at the bottom of your screen once it reboots.
If it works in safe mode, then try uninstalling your apps one by one as this might cause the issue. If not, I'd suggest Wiping cache partition or Factory Resetting your device.


text:
Is KingRoot secure?
I have unlocked my HTC device and installed TWRP and SuperSU. Then I accidentally leaked root access to one of Tencent's apps. The log says that the app has leaked root permission to KingRoot SDK:
It uses root permission to execute something like 'kd -d krsdk.cert'.
Then I removed its root access in SuperSU, however the app is still able to use root access.
I then downloaded KingRoot, and it says that the device has already been rooted. I tried to unroot the device from KingRoot, however I could re-root it again with KingRoot. I tried restoring the device using a complete backup from the TWRP recovery (removing SuperSU and everything else just like factory default), but KingRoot still works.
Is that because my device actually has a bug, or because KingRoot has left a persistent backdoor in my device? If so, how to remove it?

No. https://android.stackexchange.com/a/205707/218526

After testing, I am sure that KingRoot does exploit system bugs and probably does not leave backdoors for rooting. However it does leave imprints in /system partition.
Proof:

KingRoot does not always get root successfully after uninstallation.
I tested on another HTC device with the same OS (Sense 7), factory default lock, but KingRoot worked. (That device is bricked after installing SuperSU and I'm seeking maintainance; it is free of charge)
After rooting and unrooting I found files with the abbreviation "kr" (KingRoot) and "ku" (KingUser) which did not exist before rooting. Furthermore, any attempt to install SuperSU, either by TWRP or by manual installation, failed. Installing through TWRP works, but causes the device to malfunction (Return button and Home button lost, unable to change device's Settings, however apps still work and connect to the network). Installing manually results in SuperSU prompting to update binaries and failing.

In my case I found unnecessary notifications and ads after installing KingRoot. I am hating it and trying to avoid as much as possible.Good thing about this is that it is uninstallable.

Well for me kingroot left ads on my homepage so I would not says it is secure. I had to reset my phone after that... I don't think it leaves any backdoors though.

If downloaded from official sources, Kingroot is legit and not a virus.
However, a lot of Antivirus may flag it as false positive because of the way it works. Kingroot is installing a root certificate and works a bit different to supersu. Check for root certificates as well and remove them in order to get back to stock. However, if you are worried about left open holes, flash a stock ROM and you should be all set.

It's already stock ROM - I restored it from TWRP recovery. I just can't figure out whether KingRoot is using a hidden backdoor or a known security flaw.


text:
LAVA OTG adapter keeps android tablet from sleeping
I am using an EasyCAP Adapter via a LAVA SimulCharge adapter on a Samsung Galaxy Tab S2 to capture video from a car reverse camera.
This is working fine except, when the LAVA adapter loses the power from the car (when the car is turned off). the EasyCAP adapter's green light keeps blinking, (usually it's solid green when connected) and the 'USB adapter connected' notification appears and disappears continuously in notification bar, and the tablet refuses to go into sleep mode for about 4 minutes. (Pressing the power button makes the screen turn off and back on again immediately)
After 4 minutes, the EasyCAP light stops flashing and turns off, which lets the device go to sleep. The notification keeps firing, until the device is rebooted.
I think this is due to EasyCAP adapter trying to connect again which wakes up the device?
Is there a way to force the device to go to sleep?
Connecting the EasyCAP over a standard OTG cable works fine, but I need the tablet to charge simultaneously as well.
(switching the 'stay awake' option on and off in Developer Mode didn't help)
UPDATE
I noticed that if I set the lock-screen type to anything other than none (eg: swipe) and press the power button after power is disconnected, the adapter stops blinking and the device goes to sleep after screen timeout.
UPDATE 2
I have isolated the issue to the LAVA SimulCharge adapter. It seems like losing power at the other end causes this.. although disconnecting the wire for power at the adapter's end works fine. Would there be a physical sensor to detect if there's power?

If you phone support Qi (wireless) charging use it for charging the phone and use a standard (non charging) OTG adapter. Will that solve?

it would.. but Galaxy Tab S2 (or most tablets for that matter) doesn't have Qi charging.

I am also about to run into this problem. I am planning to mitigate it by using a 12v DC powered hub where I connect the EasyCap on to one of the USB ports and connect the USB hub's male cable to a OTG cable. I haven't tried this but I guess this should allow me to charge my phone and use OTG devices as well.  If this does not work I plan to fall back to Qi charger. For your phone there are Qi converters available, that makes any phone as Qi compatible.  See this link

yea, I looked into Qi converters.. But they take up the USB port which prevents me from connecting the OTG cable/adapter. May be a normal OTG might work, but many people say droids don't support charging simultaneously most of the time. Let me know if you get a chance to try it.

The LAVA SimulCharge has a chip in it that detects if charge power is being supplied.  If no charge power is being supplied it turns into a regular OTG connection.  When it does this, it draws power from the tablet to power your accessories.
From what I've looked at so far, I haven't found a way to make the OTG 5V power from the tablet turn off when the tablet goes into sleep mode. When the tablet goes to sleep, it seems to still be providing the OTG power.
My tablet will go to sleep, but drains the battery from the OTG connection.


text:
Is sideloading same as flashing via custom recovery?
Recently, I side-loaded the latest nougat release on my nexus 6p. Which was almost identical to how one would go about flashing via recovery. This brings me to the question- is there any off  the hand differences between side-loading a zip file against flashing it?

If you're speaking of adb sideload (which I assume), AFAIK the difference is you save yourself some steps: instead of manually copying the .zip to the device, booting into recovery, selecting "update from zip", navigate to the zip and finally select it – you simply tell the device to perform all those steps automatically by adb sideload rom.zip.

ROM Flashing refers to flashing the OS ROM. Usually involves installing a new image of the OS.
Side-loading usually refers to installing a single app that is not delivered from the Google Play Store (or whatever the app store your device is setup to use.) It can still flash ROMS, but it requires the process of using adb. Good for devices with limited storage, since the ROM can be on the PC with adb rather than the device, but sorta identical to Flashing otherwise.

While this was my first thought, "sideloading" is rather an ambiguous term. What OP most likely referred to was using the adb sideload command – not "installing apps from unknown sources" :)

Hello Izzy - yes. adb sideload


text:
Cloud-free way to move everything (data-transfer) from one device to another?
I would like to move everything from one device to another, including data from contacts, applications etc.
I would like to do this in cloud-free way, i.e. without copying everything to Google or any other third party provider.
Is this possible?

What's the device you're using. One way you could do is  through the official suite application provided by the device manufacturer, such as KIES for Samsung... etc.

Also depends on how complete you want. There are separate solutions for contacts, SMS, app data backup, etc., combine them to your heart's desire.

@AzkerM never seen KIES working for many years, so didn't try it

With the conflicting ideas in the answers I think a little more detail would help answer your question. Do you want to do a full drive to drive like copy like one would do on a PC with clonezilla (operating system level copy) or just your user data? If just user data look into a app called AirDroid. From what I notice in it you can copy user level data to a PC and back out again to another phone. I have yet to try this.

There are a few backup apps in the Google Play Store. I personally prefer Helium. It lets you backup apps (APKs as well as app data) and call log, etc. to your internal or external storage (SD card) or to a computer. You can then restore your backup to another device.
There is, however, a thing to note:
Although Helium doesn't require root, you will (afaik) not be able to your restore app data without it. This is because app data is stored on a protected partition of your device's internal storage which you cannot write to without root access. But I haven't tried that yet, since I always root my devices.

This seems like an app backup/restore... What OP meant was a complete backup of the device to another.

There's no direct way of doing this, as some of your data may not be readily available on your phone to be transferred to another device i.e computer. For example, the contacts on your phone needs to be exported first, before you can transfer it to another device.
If you have those data available for transfer, simply plug your device to a computer via USB cable, then use the Android File Transfer. Search for your files using your Computer's explorer to manually locate the files from your phone's storage, then copy and paste it to your computer.
Otherwise, the best method to transfer everything is by using a Cloud Storage.


text:
Contacts permission for Google Account
Some games ask for Contacts permission for logging in using Google Account.
Is it safe? Why some other games and applications don't ask for Contacts?
For example SoundCloud, it doesn't for, but Asphalt 8 do.
Will these apps and games modify my contacts list?

In order to uniquely identify a user, an app does not need to access your contacts (which is why SoundCloud doesn't).
However, if an app decides to ask for this permission, it is your decision to trust it or not. I personally usually decline those requests, since I'm not comfortable with an organization getting too much sensitive information about me if not necessary. I don't want to accuse any company, but rumor has it that this is exactly the kind of information that is sold to advertising companies, if you know what I mean...
Concerning modifications of your contacts: That depends on the exact permission the app requests. This developer resource lists three possible permission regarding contacts:

Read contacts
Write contacts
Get accounts

An app will only be able to modify your contacts if it requests the second permission and you accept it. This is where it gets tricky: Below screenshot (taken on a device running Android 7.0) shows the request to "access" your contacts, originating from stock Android's official contacts app. Obviously, this app is indeed able to modify your contacts, although the popup doesn't explicitly state that. In other words, there is apparently no way to distinguish between read and write permission.
If you don't get to see a popup like on the screenshot, either the app or your device doesn't support requesting permissions at run time. This feature was added in Android 6, so if your device's android version is lower or if the app wasn't optimized for this feature, you will be presented with a list of permissions before downloading the app in the Play Store. Unfortunately, there is no way to selectively adjust the permissions prior to Android 6 without rooting the device.
Will these apps and games modify my contacts list?
Assuming that you have to grant the app permission to modify your contacts (because of the reason stated above), you will have to live with the risk of your data being used for personalized advertisement. However, I highly doubt that an app of a well-known company would secretly modify your contacts, simply because they don't have a negative intention. That being said, be careful with apps that have lower ratings or don't seem as serious.

 Yes it is indeed. It needs to access your basic information like your name to get going.
Like Asphalt 8 requires it for your name and email to sign into the google play games.
 No these apps wont modify or erase your contact list.
 You can deny the permissions for each app into the settings.
 Hope this helps !!


text:
How to use mobile Internet on trains effectively?
When I'm on a train ride (mostly in Germany) I often find that this results in very poor mobile Internet connectivity on my Android devices.
Particularly, loading of even small web pages may take eons. I suspect that this is due to switching between mobile network cells while the train is in motion.
Even more annoyingly, this phenomenon can result in pages never finishing to load. Even though the device claims to still have mobile connection (albeit poor signal strength), the web browser gives up on loading pages over and over again.
In my opinion, this problem could be mitigated by setting a huge timeout value and/or caching partly retrieved pages on the device:

If I could set a really large timeout value for the web browser (Android browser, Chrome for Android or any other browser), the page would probably still take a long time to load, but at least, it would work out eventually, instead of aborting page load continuously.
If the browser (or some proxy server app on the device) would cache the parts of a web page it successfully retrieved and continue from there (using HTTP Range requests), it would be able to present the entire page eventually. (Similar to how a download manager works, except that it's for every web page.)

Is there any Android browser (or some kind of proxy app) that allows for setting appropriately large timeout values?
Alternatively, is there any Android app that allows for surfing the web in a "download manager" kind of way, picking up where it left off when the connection went bad?

some browsers have 'read it later' functionality, which allow you to load the pages in advance, if you know what to load when you do have good connectivity. Though this wouldn't solve the problem, something you can use to reduce the pain.

Have you tried switching to 2G or 3G? Because of larger coverage network switching should be easier.

@Madushan The "read it later" functionality is really helpful if you already found a web page and you would like to take a closer look at it later on. However, just to clarify, the scope of this question is that you're actually browsing the web looking for new pages to read.

@Janekmuric I should try that next time and see if it helps!


text:
Samsung Note 10.1 (2014) tablet discharges when powered off
My samsung tablet discharges when powered off and not connected to a charger. It's too fast that i would suspect some battery self-discharge.
I am not totally sure about the state of the power-off mode, because when powered off it still displays a battery symbol, when i press the power button a short time (and switches off the display again when i press the button again).
How can i shut it down, so that it's fully off? Long Pressing Power while booting just gets it in the same state again or only reboots again.

Try this to force shut down

What exactly do you mean? Long pressing power? I tried that. What seems to work (from screen state, need to check if from battery) is booting up to the disk encryption password prompt and then shutting down from there.


text:
Choosing the right DPI-Setting
My Nexus 5x has a setting for the DPI (using cyanogenmod).
When is use the default 420, twitter doesn't display the cog-icon on profile pages (block, list, mute, ...). Using 400 i get the icon again, but the pebble app doesn't show the install button for apps. Choosing 380, the pebble app works again, but twitter is broken again.
Is there some "safe" DPI setting? Seems like apps assume some dpi and have parts of their interface hidden at "wrong" DPI settings. But when the optimal DPI differs between apps it's really annoying. Despite that i would prefer to choose DPI by my preferences instead of being forced to use a certain setting to avoid misbehaviour of apps.

Xposed + App Settings is what you're looking for. You can modify DPI on a per-app basis and keep system DPI intact. Since the Marshmallow compatible version is not in the official Xposed repo, I reuploaded a copy to my own AndroidFileHost. You're already on CM so Xposed installation shouldn't be a problem for you either.

I already have Xposed, so this sounds like a good solution. Why isn't it in the official repository anymore? And i wonder if there is some more standard solution. I cannot believe, that apps really won't work at some dpi settings.

@allo Official version stops at 1.10 (for KitKat), and the newer ones are stated by the dev to be alpha, so they never made it inside. There are much more apps that hate DPI change than you think - for example Samsung's TouchWiz launcher will show a mess when not on a standard DPI. It all comes down to whether the app dev has compatibility in mind, I guess.


text:
"Connected, no Internet" even though the connection works
I'm running CyanogenMod 13.0 on my OnePlus 3. I have successfully connected to my home WiFi. I have proper networking. I confirmed it by successfully pinging 8.8.8.8 and 8.8.4.4.
Still, Android thinks the AP doesn't provide any Internet connection (Connected, no Internet)
How can I fix it? I have root access available. I'm not using Google Play Services.

Most likely your country banned access to Google, or at least its "captive portal" which is responsible for verification of network access on OS level. As I answered here,

Just execute su then settings put global captive_portal_server SERVER_YOU_WANT_TO_USE in a terminal emulator app or ADB shell.

For China using g.cn is alright, while for your country you will need to figure out a suitable captive portal. A possible list of that can be seen in this answer.

I reside in Poland, so I'd see no reason why Google should be banned. In the router I have set up OpenDNS as my DNS provider. IIRC, it didn't occur under OxygenOS

Besides, I tried both gstatic.com and g.cn. On desktop, the /generate_204 page generates the right code but the device still shows an exclamation mark.


text:
How to fix /system/bin/sdcard process draining battery?
After noticing a huge decrease of my battery life, I used the application GSam Battery Monitor to find the origin of the problem, and discovered that the process /system/bin/sdcard was using about 90% of the phone resources.
The problem persists even when removing the SD card.
How to fix this issue?

The problem was due to a folder on the internal phone memory containing several thousands of files, and causing the process /system/bin/scard to never end scanning the file system.
To find the exact directory causing the problem, I used the application 'Storage Analyser', which froze on the directory filmorago/.Log/uncaught.
Deleting the folder using the application ES Explorer took several hours due to the amount of files, and fixed the problem.


text:
Share my account info doesn't appear in Account menu
My wife doesn't to share her Whatsapp account information with Facebook. When she  got the Whatsapp notice, she clicked the phone's back button. We tried to follow the official FAQ or any number of article repeating the same insstruction, but Whatsapp's Account menu doesn't have the new Share my account info checkbox shown in the article. Is this because of Whatsapp version? What can I do to stop this sharing?
On my phone I cleared the checkbox and clicked "I agree". I don't see this option in my account menu either...
Phone: Samsung Galaxy S3 i9305, Android 4.3, Whatsapp version 2.16.225
My Phone: Nokia Lumia 920, Windows Phone 8.1, Whatsapp version 2.16.172

I am having the same problem. I believe I pressed "not now" (back button) instead of agreeing immediately to the terms of service.  According to an 'idigitaltimes' article* from two days ago:
"If you want a little time to think over your decision, you have until September 25 to accept the terms. You can press “Not Now” which essentially means you haven’t agreed to the new terms. As the expiration for the new terms agreement draws near, WhatsApp will remind you again to agree to the terms. You can then choose to leave the green Facebook sharing check marked to share or uncheck it to opt out of sharing."
We want to address this issue right now... But it looks like we will have to wait until Whatsapp 'offers' the new terms of service again.  It's fishy.
*ARTICLE:
http://www.idigitaltimes.com/whatsapp-facebook-opt-out-how-stop-ad-related-data-sharing-between-your-accounts-552594

I guess we'll have to wait and see - I'll update when something happens.

Eventually the pop-up came again, and this time she unchecked correctly. I must say this behavior is indeed fishy.


text:
Nougat upgrade damaged my notifications?
I updated my Nexus 5X to Nougat and ever since regret the decision.
Previously if I had a notification the illumination light would start working. If I just turned on the display, not unlock, the light would turn off. But now with the update the light just won't stop until I open the app! Overall the notifications interface is pretty bad but this problem is irking me.
How do I make the notification light stop if I press the power button without having to unlock and open the app?


text:
Can't update or uninstall built-in Whatsapp
I have an iBall Slide 3G 7334i tab which has a built-in Whatsapp v.2.9.5196 which has provision to Force Stop and Disable but not Uninstall. I can't either uninstall or update and the message:

"Your phone date is inaccurate.Adjust your clock and try again"

keeps on coming.
I have searched all over and I can't get the remedy.

You have to uninstall and reinstall latest version of WhatsApp. It will fix your issue.
Since your phone have built-in WhatsApp Application(system app) you can't normally uninstall your App.
Try to uninstall using Debloater which helps to remove a built-in App without root.
After uninstalling try to install a latest version of WhatsApp APK file from here
Source


text:
Can't remount /system as rw because "read only filesystem" (SELinux problem)
I tried to replace Kingroot with SuperSU since in the newer versions of Kingroot you can't block all of its connections. I had some problems, SuperSU always failed to install the newer binaries, Kingroot didn't fully uninstall and sometimes I lost root.
After being unable to install SuperSU, since it always failed to install the binaries not even as a system app, I gave up and decided to keep using an old version of Kingroot (4.85). But since then, I can't write on /system. I tried to remount /system as rw but it always get Mount: Read only file system.
I tried mount -o rw,remount /system, adb remount and also through Root Explorer, Total Commander, and with mount system RO/RW, but none of them worked.
I think it is because SELinux mode somehow changed to enforcing while I was trying to install SuperSU. I tried with SELinuxModeChanger to change it back to permissive, but I still cant remount. I can't even uninstall Kingroot either.
What can I do? I'm using a rooted 4.4.4 Huawei phone with Kingroot, it has root but it can't write to /system.

I fixed it by unlocking the bootloader since doing a factory reset did not solve the problem of the read-only filesystem.


text:
Using external DVD player with Nexus 7
I would like to be able to use my external DVD player with my Nexus 7 tablet, is there a plug-in for that or a mount?

Yes it is possible if your DVD player has USB output, something like this one.
If you have one, you have to use an USB OTG cable (USB female to MicroUSB male) to connect your devices.
E.g.: As you can see in the video, it is working even without root access with a portable Samsung DVD player: Samsung Optical Smart Hub and a Nexus 7 with stock Android.
If you DVD player hasn't USB output I think there is a very little chance to connect them to each other directly.


text:
Gallery Albums issue
In android, the gallery app is showing albums from other locations which were not in gallery before. I have a folder on the internal storage which never showed up in gallery before, but now it does. Did I tell it to do that? no. So my question is: how do I hide this album so its just viewable as a folder from the file manager app. My version is 50.1. I fear that deleting the album will delete the folder.

Create an empty file called .nomedia and put it in that folder.

Hiding your files from the Media Scanner
Include an empty file named .nomedia in your external files directory (note the dot prefix in the filename).
This prevents media scanner from reading your media files and providing them to other apps through the MediaStore content provider. However, if your files are truly private to your app, you should save them in an app-private directory.
Source - Android Developer


text:
what is this directory in android 5.0
Using SD Maid, I was looking around with file explorer and came across this directory in the efs folder, and I have no clue what it is, if its malicious or not. Its the only directory in the efs folder with a name that isnt clearly defined. (like modem, data etc) I tried Googling the directory and file names but got nothing.
Device info: USC Samsung Galaxy S5 (SM-G900R4, Qualcomm, codename klte); rooted and slightly customized using hidden menu settings; software up to date.
This is how it appears in SD Maid:

/efs/U0BwJ04kmkmm-Bg7zUZgoEY7pn8_/zm0WY41Y7rpx3kcVTTDWeh8VFRU_  (size: 1.05kb, date 1/1/14)
/efs/U0BwJ04kmkmm-Bg7zUZgoEY7pn8_/qen2gEqW2A+OTD0KpoESJiYnrk_  (size:1.05kb, date 1/1/14)

I don't know, if anyone that has seen it before.

I too have those files, though I don't know their usage.

It's quite hard to read your question, can you reformat it please?

Samsung devices' EFS partition
It is a place that the device stores important data like WiFi and Bluetooth MAC addresses and your IMEI number (nv_data.bin).

What is EFS?

The EFS refers to a folder called EFS which can store information
like meid, imei, serial number, config, diag settings and radio
settings, etc in an encrypted format at the file system level stores.
So it is very neccessary for us to backup EFS before flashing ROMs.

How will you lose the EFS folder?

As far as I known, you always lose your EFS by mistaken operations.
For example, flash ROMs or wipe data using an uncorrect method. Even
wrong power on & off ways like taking out the battery to force
shutdown as starting could corrupt your EFS, too. Rooting and
flashing ROMs usually have no influence on EFS data, but you know
everything can happen in the real word. There are some ways you can
check whether your EFS folder is lost: inputting *#06# on dialler,
going to settings/about phone/status or checking mac address.

What results if you lose the EFS folder?

The loss of the EFS folder may bring about an incredible disaster on
your device such as no imei information, base band unknown, no radios
and so on which mean your device will no longer be recognized by your
carrier.

How to back up the EFS folder?

There are too many tools you can use to back up the EFS folder. All
of them work in a similar way, so we will just introduce one tool
called Custom Recovery here. Everything has risks. we are not
responsible for  the following method. Please act with caution!
Bofore backing up the EFS folder you need make sure your Andriod
device is rooted. Then, install Custom Recovery on your device. Open
the Custom Recovery, select the Backup option, and go on select the
paritions containing EFS, then "Swipe to Back Up" to begin the backup
process.

Source

It seems that OP knows about what's EFS. What they ask, is whether the files inside the /efs/U0BwJ04kmkmm-Bg7zUZgoEY7pn8_ / are safe.

@DeathMaskSalesman Doesn't look like so (I made a pending edit to OP but doesn't change the meaning). Also one's not supposed to touch anything in EFS.


text:
What is the difference between File based encryption and Full disk encryption. Can someone explain in brief
Can someone explain what is difference between File based encryption and Full disk encryption. I had gone through Android Developer Page but it is not clear. Can someone explain with examples.

Why -1 ? Please bother to leave comment

File encryption encrypts the contents only.  i.e. the file name and permissions can still be seen by anyone (with appropriate permissions) and so the rest of the disk structure is also available for view.  Disk base encrypts all elements of the disk including file/directory structures including permissions, so nothing is understandable without first decrypting the disk.  Another difference is that file encryption is usually performed as a single action, each way as a whole action where as disk encryption is on the fly, i.e. only the part being accessed (i.e. sector of the disk) is decoded as its needed.
Hope that helps.


text:
Screen jerk and random touches
I am using lenovo k3 note with updated version marshmelo 6.0. Sometimes it happens like random  touches appearing on my screen and screen jerks many times. I have restarted my phone many a time but it happens several time in a day. I don't know what I should do. I am using this it since 1 year.

Sounds like defective touch panel? Definitely possible for a low price device like this.

@AndyYan, I am facing this problem since a few months ago, and I am having a Xperia Z1, any idea besides hardware problem? It definitely is not categorized in low price device as you mentioned.

@HanLim Although they don't fall into the price bracket, Xperias, specifically from Z to Z3, are prone to such hardware problem as well, at least as far as what I've seen in my local forum. Eventually you'll get strips of screen area totally unresponsive.

@AndyYan thanks for the feedback, is there any solution or maybe can i have the link to the forums you mentioned?

@HanLim The only surefire way out is to swap out the digitizer or the whole screen. I'm Chinese so it's pointless to show you the forums.

@once again thanks for advice and solution, and coincidently I am a chinese too LOL. Well its alright if you dont. Thanks for the idea anyways.

Looks like your screen and the digitizer are going bad. Maybe there is moisture inside your device. I am no expert but if this is the case try to dry it with hair dryer

Sorry, but drying with a hair dryer is not really the recommended way (microwave neither) – it might do more harm than help. If there's moisture inside electronic equipment, the recommended procedure of drying it is putting it into a box of rice for several days.

open it up and put it in a food dehydrator works as well.

Hello I have some problem with touch screen in past.
some time on low battery random touch appear and on broken screen phone have same problem.
So if problem is hardware this possibly can help.
So I make some application for hot fix this until you change new screen.
app calls Partial Screen, easy to find on google play
https://play.google.com/store/apps/details?id=ich.andre.partialscreen
Hope this can be helpful.

Could you describe a little further how your app helps to solve the problem?

Good day
This app can block screen region where random touch appear.
By creating region which intercepts all touch in him.
It have two type of region, auto and manual.
You can see on top of screen two on/off toggle, which activate auto and manual service. two type of region.
Auto analyze run on first launch app and collect all touch and after that make region for blocking.
Region means rect on screen which catch all touch and block it.
In manual your own add region.
I add short video guide.
link


text:
Remapping Android hardware keys on CyanogenMod
What I'm really disappointed about Android is its multitasking. The recent apps list quickly gets cluttered with apps I won't use in any near future. I'd like to be able to quickly kill an app I know I won't need anymore today.
Examples:

home button kills the current activity (if any)
home button kills the current activity (if any) and triggers the recents. The recents works as usual - doesn't kill any app
double tapping the home button kills the current activity and triggers the recent, single tapping works as usual

How can I achieve it? I know about GravityBox but it's not supposed to be installed on non-AOSP phones (I'm running CyanogenMod in this case).
I have root access available.

Gravity Box worked pretty well for me on TouchWiz ( Samsung) also non aosp as well as heavily modded emui interface of Huawei- not all but lot of features did work. Doesn't harm to try

How about "Back-button kills the current activity (if any)"? It does when long-pressing it – provided you've activated that feature in developer settings (at the very end of the screen). A feature I use on different CM devices for years, and won't miss anymore :) // GravityBox does not work on all flavors of CM, unfortunately, but on several at least (if the ROM is based on bandwagon, it should work).

Yes, but the long-press is about 3 seconds - much too long. Short pressing is an instant.

"non AOSP phones"CyanogenMod and pretty much all custom Roms are based on AOSP.

@xangua: SHOULD NOT be used with custom ROMs like CM, AOSPA, RootBox, SlimBean and others - it makes no sense since the most of the features are already in the ROM (may cause conflicts and unexpected behaviour)


text:
How to Save Website Pages for Offline access in Firefox/...?
I need to save the website of some shops etc Power.fi because you cannot use LTE data in their shops (metallic halls) but I need to compare their prices to their website prices and others.
Options of Internet Browsers

Firefox because you can install there addons
Chrome not because you cannot install addons in Android Chrome
...

Options of the goals

It would be nice to save daily catalogs of the websites (whole website).
And then when time is in need, just take pages which you need (just a page). (Akhil's answer proposal here)
How to Store 777 single pages to one frontend/client/...?

Firefox plugins under test

ScrapBook - does not work in Android Firefox because I cannot even install the app in Android; pressing install just goes infinitely but never installs; restoring the page shows that nothing is installed; I did restart the browser but no difference.
...

Chrome (I really would like to find a solution for this as soon as possible Google allows the addons)

...

Phone: Oneplus 2
OS: CyanogenMod 13

The whole website or just a page?

@DeathMaskSalesman Both methods would be useful. - It would be nice to save daily catalogs of the websites. And then when time is in need, just take pages which you need.

You can try HTTrack Website Copier. Seems to match your needs fully, not tried by me :

HTTrack is a free software (GPL) offline browser utility, allowing you to download (copy) a website from the Internet to a local directory, building recursively all directories, getting html, images, and other files from the server to your device.
HTTrack arranges the original site's relative link-structure. Simply open a page of the "mirrored" website in your browser, and you can browse the site from link to link, as if you were viewing it online.

Edit Tested it now

All sites do not permit copying - this site doesn't:). For reasons see FAQ

Can be very time consuming when on WiFi. I tried on Amazon India and aborted after 7 minutes . It copied the first page fully, it looks like, but you can set up rules

I tried on a smaller banking website and it was able to copy fully with three levels of linking

You have to test and see if it works for your sites
Refer comment. Copied the content of LG TV as shown below. Note the download link location in internal storage and the third one shows internal link opened up. Took one minute

I am testing. I use the url: https://www.power.fi.

The site is very big. I let it download 12 hours with 4 Mb/s. The process stop eventually but I see no files about it in Firefox. Maybe, it cannot show partial downloads. I do not know if the download ever finished. Site: power.fi. What do you think?

Do you see any files in the preferred save location? And what happens when you click browse mirrored website

See the FAQ linked in answer- one could be browser, change browser and two check url

2. To Save One Page
You can either use Apps like

Pocket - 4.5 stars, 10 million downloads
Readability - 3.3 stars, 100 thousand downloads
Instapaper - 4.2 stars, 100 thousand downloads

These will provide offline readability.
Or you can try to save webpage as PDF from chrome browser/firefox.
As described below:
Chrome

First, open the page you want to save in Chrome, tap the three-dot menu button in the top-right corner of the screen, then tap Print.
Once Android has finished creating a preview of the page you want to save, tap the Save to drop-down menu at the top of the page.
Select Save to Google Drive to upload a PDF of the page to your Drive account (make sure you pick the right one if you’re signed in to multiple Google accounts), or tap Save as PDF to save the file to your handset’s local storage.
Note: Sure, you could try tapping Share > Google Drive to save a webpage from Chrome to your Drive account, but all you’d be doing is saving a tiny text file with the page’s URL.

Firefox

On the Web page you want to save, select Menu > Save as PDF.
The Android downloader notification appears and notifies you when it is finished.
To open the PDF, tap Menu > Downloads.
Your Downloads screen appears with the PDF listed, tap the PDF to
open it with the PDF reader installed on your Android phone.

This answer is about the part (2) of the problem, just storing one page of the website. It is really not the main target here. - -Better would be to store 1000 single pages to some app.

Please, let us know if you find out how to store many pages of the website to the apps which you mention. I have not found yet anything relevant.


text:
How can an app access Android Pay data on a rooted phone?
According to an Android Pay engineer on the XDA forums, Android Pay is not compatible with rooted devices because of security concerns: on unrooted devices apps run in a sandbox and can only obtain limited information.
How is this different on an unrooted device as apps must request permission from SU?
Could an app trick SU into giving it more permissions than possible?
I am interesting in getting Android Pay working on my phone but have concerns about the security of my data as my device is rooted.

Adding cards to Android Pay on rooted device at least related, maybe duplicate.

I don't think it's a duplicate, because the other question is about getting it to work, while this question asks what the security risks are.

By default, only the application itself (and, under some circumstances, the applications written by the same company) can access to its (private) data. So Google Pay can store securely banking-related information.
If you root your phone, however, any application with root access can access to any folder on your file system. Including applications private data. And Google Pay's banking-related information.
I have no idea what Google Pay stores. But there is at least a way to authenticate as yourself. From there, an application with root access could probably do nasty things. Not nasty for Google, but for you: make payments on your behalf.
If you find a way to hide the root from Google Pay (I don't know if it's achievable, but I wouldn't be surprised if it was), and are entirely trusting the applications you give root access to, sure, go ahead. Personally, I would not.

So to me it seems that it's quite safe to run Pay on a rooted device as long as the apps you've been root access to are 100% trusted apps. Am I wrong?

Don't forget you also have to trust your superuser app to not have any security vulnerabilities that would allow an unauthorised app to get root access.

This is a problem with Knox. Google is liable if Google Pay is cracked on a device and maleficence was done i.e. rooted user steals or gets stolen from BY using the application etc. The only way to protect themselves is to eliminate access with modified OS. I don't see a way,other than going into the application and finding out if you could change what the application sees. My thinking is if the application can't get root, or isn't shown the device is rooted then it should work.


text:
Tablet on Android 4.2 is not detecting the SD card
I have a tablet on Android 4.2 (Jelly Bean). I'm trying to insert the external SD card, but every time I open a camera it says "no external available". When I open my Documents To Go files it says "presence of SD CARD is required by Documents To Go". At this moment the SD card is inserted in device, however, the card is not mounted by the file system.
As a result, I'm getting the "please mount the card" message again and again.
How to fix this issue?

Maybe you could elaborate a bit on that "every thing" you tried? Hard to tell what's wrong without some more details. Are there any errors shown? What does Settings › Storage say about the card?

It sounds like your SD card got corrupted or ejected. It seems Android can't read or write to the SD card.
You can try mounting the SD-card again. To do this, go to Settings -> Storage. Many devices will show an option to mount the SD card. If your device has this option, press it and try again.
If that option is not available on your device (or you get an error message), your SD card might be corrupted. Try inserting it into another device (PC, smart phone, etc.) and see if the files are readable. If they're not, your SD card is probably corrupt.
You can try fixing the SD card with disk checking tools present on a PC. If you're unlucky and those tools fail to do the job, you might need to format the entire SD card (losing all files that are on there).
If another device can read the files on your SD card fine, there's something else wrong with your tablet. You could try inserting another SD card. If that SD card can't be recognized either, there's something wrong with the SD card slot on your tablet. If another card works fine there might be a system file or data file causing trouble on your tablet. You could try cleaning up the SD card using another device, removing non-essential files.


text:
Direct audio to bluetooth headset only if answered on headset buttons
Is it possible to have the call audio redirected to the bluetooth headset only if the call is answered by using the buttons on the bluetooth headset.
That means that if I have lunch in the cafeteria located directly above my office the sound would not default to the headset at my desk, but in stead to the internal speaker of my phone - if answered by using the on screen button on the phone.
I know I can change the output by using the on screen buttons after answering the call - but were hoping to make an automatic selection based on the way the call is answered (button on headset / on screen button on the phone).
Third party apps or Tasker (or similar) script is an OK way to accomplish the task if needed.
Thanks in advance for all help given.
(Using an S7 Edge at the office - but are (firstly) looking for a generic answer.)

You can try SoundAbout

Thanks for replying.
The app seem to be able to direct the different types of audio to where you would like - but not direct audio based on how the call is answered.
So - sadly it does not solve my needs.


text:
OnePlus One stuck in boot after resizing screen and DPI tweak
My device: OnePlus One, CM 13.1.1, not rooted
Since the the strip above the on screen nav buttons is gone (no touch screen anymore) I was trying to resize the screen AND tweak the DPI accordingly as clearly explained here by Firelord. Unfortunately, instead of resetting to 500 DPI I've inserted 5000 DPI and obviously the OPO doesn't get past the "Cyanogen - Mod Ready" boot screen.
Error from the OSX terminal:
Libero-358:android Libero$ ./adb shell wm overscan reset
Error type 2
android.util.AndroidException: Can't connect to window manager; is the system running?
    at com.android.commands.wm.Wm.onRun(Wm.java:81)
    at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
    at com.android.commands.wm.Wm.main(Wm.java:46)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:256)

Any suggestion to get my OPO back alive (beside whipping myself for being such a dumba*s...).

P.S. the device is still listed in the terminal (adb devices -l) even though soft bricked


text:
Will it be a good idea to block Google play store to save my data?
I am new to android phones (using one for the first time since last two days). I have a limited data plan, so I want to save as much data as I can. But when I was monitoring my data usage, I observed that certain system apps, in particular Google services framework and Google play store are eating way to much data even when I am not using them at all. So I have installed Opera Max, where I can block apps. Now I have two questions-

What is Google services frameworks?
If I block these two apps, is there going to be a problem?

Thanks in advanced.

For Google Play Store, see my answer here. Also follow up its links, e.g. to What won't function properly on device if I disable background data usage for google play store?

Your phone would be a paper weight. Most of those app blockers are garbage. They eat up resources and battery life.
Most google apps require a network connect to work.
Best bet simply set your phone to wifi only when you can. Turn on wifi only updates. Something like Tasker can help if you can get past the learning curve.


text:
How to unlock phone using ADM application?
I'm using Asus Zenfone and I'm not able to unlock it. I've tried ADM but without success. Utility says that password wont be used when there is a lock pattern. How to use this application?

here:
https://www.ifixit.com/Guide/Android+Device+Manager+-+Bypass+Screen+Lock+on+any+Android+Device/34600
remotely unlock your phone

Basing on Google's support site, it doesn't say that the Android Device Manager could be used to unlock a device that's already locked. Remotely ring, lock, or erase a lost device. It mainly depends on what is asked from your phone, usually, it's the PIN code, Passcode, or Pattern lock that was added on your device. If this doesn't work, I suggest Factory Device Reset.


text:
Android 6.0: Where are the cookies of a native Android browser stored?
I have a phone with Android 6.0. I'm trying to download the cookies file of a native browser.
For Android 4.4 version the valid path is:
/data/data/com.Android.browser/database/webviewCookiesChromium.dB

Where are the native Android browser's cookies stored in Android 6.0?

On Samsung Galaxy S4 Mini, running CyanogenMod 13 (Android 6.0.1), with the standard browser Browser (Gello, based on Chromium), the cookies are to be found at /data/data/org.cyanogenmod.gello.browser/app_swe_webview/Default/Cookies.

On Moto X Play , running 6.0.1, it is here
/data/data/com.android.chrome/app_chrome/Default/cookies

That's chrome, not native Android?


text:
Fix 'Your SIM cannot be registered' problem with Moto G2 on Android Marshmallow
I have Moto G 2nd Generation mobile with Android 6.0 Marshmallow. The problem is suddenly one day, one of my SIM doesn't get signal at all.
I tried:

Settings > More > Cellular Networks > Connect automatically, then a prompt saying "Your SIM cannot be registered" or "Cannot connect to this network right now. Please try again later"
Selecting manually the network that my SIM belongs to. This time the prompt is "No Service Selected network unavailable"
Removing SIM and inserting in another slot, rebooted, turned on airplane mode and off, etc. but nothing worked
Dialing *#*#4636#*#* and did "Turn off radio" and also selected "GSM only", "GSM auto(PRL)", "WCDMA only", etc. but nothing helped
Factory reset, even this doesn't work

If I insert this SIM in another mobile, it works. And other SIMs work fine on my mobile. This issue is not there in the beginning and I remember I did not install anything new or change a setting.
I couldn't get a solution even on the community or on Google. Please do help me.
Additional info:

Device model: Moto G2 (XT1068)
Android version: 6.0 Marshmallow
Problematic SIM: BSNL

Is this problem only at a given location ( = could be cell tower congestion ) or is it in any / many locations?

No this is not a location problem because the SIM works in other mobiles

This seems to be BSNL specific. 1. Try to set Preferred network type in different options available like 2G/ 3G/ WCDMA ( try all) , whatever is available in your phone, Reboot and see 2. If that doesn't help, get your SIM replaced from BSNL- it could be SIM card problem (contacts with hardware not properly connecting) I had an Airtel card that died like this .

Here is a page with a person with a very similar issue and they have 2 proposed solutions.  See if either listed helps you: http://thewichitacomputerguy.com/blog/how-i-fixed-your-sim-card-does-not-allow-connection-network-g1

Also, SIM cards are very very sensitive so even if you carefully swap this card between devices that can easily cause damage, and also static eletricity (100 volts is enough to hurt electronics, and you would never even feel that passing between you and the card).  So you may need to grab a new SIM card (I mean even reading/writing info to them exhausts them quickly and is why Android stopped writing contact info to SIMs in version 2).

I did some searching and it appears this is not restricted to yourself.  I mean if it works in another device (with full BSNL functionality) then you have limited the problem to this specific device.  I found the following page from a Moto G User which may still apply for you if you would like to give it a shot:
http://www.techulator.com/resources/12632-Moto-G-not-recognizing-the-SIM-How-to-solve-SIM-problems.aspx
I am also wondering did you try to remove the SIM from the slot it is not working in plug it in to the slot it is not normally in and REBOOT the phone and see if you have it fully working.  If this is the case then it is probably an issue with Marshmallow recognizing the second slot which from looks of google search seems to be an issue they encountered when Lollipop upgrades first hit too.

Could always take the phone with you to a store and explain the SIM is not working and have them insert a brand new one there in the store and test it.  If that works then you could just use that as it is rare but maybe there is a defect on the SIM the other mobiles can get past while the G2 can not for some reason (crazy things happen some times).


text:
How to locate a phone without user knowing
I have a daughter that goes to a secondary school and has a S5 phone. I want to be able to locate her without her knowing, as in receiving any pop ups or notifications. Can you help me please?

It's not exactly anyone's place to tell you what to do, but I'm going to throw my two cents in; this is the one surefire way to ruin any kind of trust relationship you could have with your daughter. Maybe, instead of tracking her, you communicate with her and respect her privacy?

I think the best option is to tell her you are going to track her. She will find out, unless you deploy some borderline illegal methods.
Life360 is a few app. It will notify you where she is. No pop ups on her phone.
Don't be a prick and spy on your kid. Just be honest if you want you kid to respect you.

The best thing you can do is get her Google password whichever account is active for that device and use Google device manger for the same. But she will be aware because whenever we locate device popup will be shown on her phone, well we can disable notifications for Google Play Services and she won't get the popup. This way you can get her location with existing methods.
Cons using this method :

GPS and Internet should remain active
Getting her password is hassle

While I'm completely agree with the rest of the answers, You CAN use carbonite app which can locate the device without showing any UI.
There are multiple apps on play store which can do the same. Or if you're capable, you can even install your own app.
Having said that, as @Rthomas529 noted, this will ruin any trust your daughter has on you irreversibly. And frankly, she is entitled to her privacy. Most apps on play store for this type of function are designed for theft prevention rather than invading privacy. If this is noted by any authorities, you may be looking at legal prosecution depending on the law where you live and your daughter's age.
You can also simply ask her permission and install Google Device Manager (which does pop a notification when remotely located).
I VERY STRONGLY suggest you reconsider your options.

When she Gets Home, Go on her Phone and Go to settings, about Phone, More info and write down her Phones IP ADRESS
Then when she is out, go to   IP Tracker, type her IP address in and lookup where she is on the map..
Hope it helps!

You know that this will display the WiFi IP address, in case the device is connected to WiFi. Also this IP changes from cell tower to cell tower.

Also: IP addresses can be as accurate as 2 miles or as inaccurate as half a country.


text:
Mounting .img from internal storage as USB Mass Storage
I am trying to mount an .img file from my internal storage as Usb Mass Storage.
There is an Android App named DriveDroid which does exactly what I wanted. I tested with this app and the app successfully mounted an .img file as USB Mass Storage.
But I am unable replicate the same manually.
Anybody having any information on how to mount .img as UMS ?
Phone Details:
  Model : Moto G 2013
      Device Name : falcon
      Rooted : YES
      OS : CyanogenMod 13.0
Thanks.

Related: Why can't I see Android storage as a partition on PC?

Here are the Terminal commands:
su
echo /sdcard/your_image.img > /sys/class/android_usb/f_mass_storage/lun/file
echo 1 > /sys/class/android_usb/f_mass_storage/lun/cdrom
setprop sys.usb.config mass_storage

(The location of LUN may vary for some devices, you can manually check/search for it even using File Explorer..)
If above commands fail, you might want to disable SE Linux by setenforce 0 command to set it to Permissive, and try again..

I think I just used your xda post to install busybox.. :D

What XDA post? ;)

I remember you from somewhere but I can't remember where I saw your post/blog/something

DriveDroid is developped by FrozenCow, and here are the commands he suggests to reproduce DriveDroid functionality without installing the software:
echo 0 > /sys/class/android_usb/android0/enable
echo MYISO > /sys/class/android_usb/android0/f_mass_storage/lun/file
echo mass_storage > /sys/class/android_usb/android0/functions
echo 1 > /sys/class/android_usb/android0/enable

These commands are quoted from his own comment in this issue, see the third comment "The following can be used to test the functionality".
In the background, DriveDroid relies on an open Linux kernel feature called Mass Storage Gadget (MSG). You can find documentation about this feature here and there in order to have a better understanding of its possibilities.