text:
read-only file system on emulator
I need to change /system/etc/hosts file on my emulator, and no matter what I do, I get "read-only file system" error. Does anyone know how to do it?
I tried editing the file manually as su in adb shell, I tried pushing the file in device monitor (in Android studio), also tried adb remount to remount the file system as many online resources suggest.
Thanks!
Konstantin

Have you tried (as root): mount -o remount,rw /system and then editing the hosts file?

Maybe ADB isn't running as root ... Try adb kill-server and then adb root

I tried your answer but it didn't work.
Eventually the following Stack Overflow Answer worked.

1) android-sdk-macosx/tools/emulator -avd <avdname> -writable-system
2) ./adb root
3) ./adb remount
4) ./adb push <local>/hosts /etc/hosts

Android file host can be
/etc/hosts <--- This worked for me
/etc/system/hosts
/system/etc/hosts

Check
1) ./adb shell
2) cat /etc/hosts
3) ping customsite.com

I found this question Googling for the same issue. I solved with these steps:
(for italian-speaking people: see my full writeup Guida definitiva: come modificare il file hosts di Android tramite PC (senza errori adb: error: failed to copy 'hosts' to '/system/etc/hosts': couldn't create file: Read-only file system oppure Permission denied)
Mount FS as RW
adb shell
su
mount -o remount,rw /system

( credit )
Run ADB as root
adb root

credit: @Noob Food
Push again
adb push hosts /system/etc/hosts

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


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

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

source: Stack Exchange

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

sort: votes


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

Convert the files to a recognized format like MP4 or 3gp

That's what I did. For some reason, even though I converted it to an mp4, it still won't read as an option when I want to post it online.

sometimes it's the media scanner... Try moving it to a different location like the internal storage and restart the device

I moved it to five different locations and rebooted it. I'm starting to get frustrated

go the old fashion way... Upload to YouTube and share the link, It'll change to a video link, Then delete the text and post it :)

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


text:
Did Google remove the "backup while on wifi" option from the Photos app?
I recently updated Google Photos (Build version 1.23.1.126715090) on my Android phone and noticed that my photos are no longer set to automatically sync to the cloud. I went into the app's settings and I cannot find the option that formerly existed: "Backup while on WiFi only."
Is this feature hidden somewhere or did Google (perplexingly) remove it? I really counted on this to save on data usage, especially when uploading video.

The option has disappeared, but I think it does backup on WiFi only still.

Ah, I think you might be right. Confusing wording on the Settings screen. At the top is "Back up & sync," which enables backup. Lower on the screen it says, "Cellular data back up...Photos." So I was thinking the only option is cellular backup. But I guess if you just turn on "Back up & sync" at the top without enabling anything in the "Cellular data back up" section, it will only back up via WiFi. I hope.

lets us know if it works!

Just wanted to comment that I do not think Photos has a WiFi option anymore. Photos used 1.2 GB of data in the background of total 1.26 GB this month. Unacceptable. I suggest checking "While charging only" assuming you're only charging your phone at home or a location with WiFi. This is the best option I see right now unless you want to run out of data like I did.

I wish Google would bring the idea of a metered connection to android devices. In ChromeOS it can detect if you are on a connection where you pay for data, even if it is wifi, and will not use so much data if it is

@Matt See my answer below. Test Photos with those settings and see if it works for you. With those settings, photos should only back up on WiFi. Test it by turning off your phone's WiFi. Your photos shouldn't back up at all in that case.

OK, so I did some testing and have determined that although the wording on the Photos "Settings" screens has changed, it is still possible to back up your photos solely when the phone is connected to WiFi.
On the Settings-->Back up & sync screen, enabling "Back up & sync" means "WiFi ONLY" by default. Lower on the Settings screen, in the "Cellular data back up" section, enabling "Photos" means that you are allowing photos to back up when on your cellular network. Leaving this switch off will prevent cellular backup of photos, but by virtue of having "Back up & sync" enabled at the top of the screen, your photos will back up via WiFi.
See the screen shot below. I have drawn in red to emphasize the toggle switches mentioned in my answer.

Cellular data backup option is not there on Nexus5x, and it is still doing the backup over cellular data

If "Back up & sync" is enabled, "Cellular data back up Photos" is disabled, and "Only while charging" is enabled, it will prevent backup of the photos if you have no wifi but you are charging the battery (a good thing...).
After charging, you just get a notification like "n photos were not backed up; check your settings".

Please see https://android.stackexchange.com/help/merging-accounts to merge your two accounts @Eric

where is "Only while charging" ??


text:
Pokemon Go without compass?
I'm planning to get a new android smartphone and have eyes on the Moto G4 Plus. I took a look at the specifications and noticed that there is no compass sensor. I would like to play Pokemon Go but the hardware requirements says it needs a GPS.
Edit: There's a website that says a camera, compass and a gyro is necessary for AR (augmented reality). That means i'm able to play, right?

According to reviews on Amazon, the Moto G 4th Gen and Moto G4 Plus work very well with Pokemon Go, including AR. BTW, GPS and Compass are two different things, the Moto G 4 has GPS

I had a similar issue- but do not worry! Your device can grab your location using your mobile data/Wi-Fi. Its less accurate than the GPS, but it certainly works.

Is it impact full on the game or not? Thanks for the answer by the way.

@Acrylic It has very, very little effect on the game. You may find your avatar wondering around your approximate location, but never wondering around further than a metre or two.

It will also make playing the game easier. It is much more difficult to play the game with powerful phone, having the video of environment, turn/rotations, ...

Yes, without compass, your experience is incomplete, you needed it for know the way to follow the pokemon, but AR works fine.

I use the HTC Desire 626, which also lacks a magnetic sensor. You can load up Pokémon GO, create a character, and get your starter, but you are unable to load any additional pokémon, any pokéstops, or gyms.


text:
Face unlock and sun glasses
I'm thinking about getting new glasses, the kind that get dark(like sun glasses) or clear depending on the amount of light they get so they are supposed to be dark in the outside and clear inside.
I think my actual question is: can you set up Android face unlock to work with "sun glasses"?

Yes, but this will probably be less secure than using your face...
i suggest using a password for maximum security !

It sounds like you're guessing. We prefer credible answers, drawing from demonstrated expertise or official sources. Could you [edit] your answer to add some reasoning or source, rather than a flat claim.


text:
Purpose of am restart?
What is the purpose of am restart? I can tell it does a quick-reboot(no manufacturer logo, immediate boot animation and quicker reboot)
General curiosity, really. That and logcat suggests that something is using this code when the system wedges and/or crashes.

From your description I'd conclude it does a "GUI restart" (i.e. just kill the system server which then restarts), which sometimes is also called "quick boot". Pretty useful if you e.g. just installed a new XPosed module and don't want to wait for a full boot :)

@Izzy True, but this code is triggered fairly randomly. Hell, it can sometimes trigger from just tapping the screen. Any idea why?

That doesn't sound normal (unless when "just tapping the screen" you usually hit a button labeled "restart"). What kind of ROM do you have? Any other clues you could provide? Maybe link a pastebin with some logcat at least?

@Izzy Just Android-Andi's SlimRom for the Samsung galaxy tab 2 GTP-3110. Runs at 5.1.1 with a custom kernel and TWRP to boot. There has been a few reported bugs, but little on my scale. The version I'm using is the most stable form available - other than the random restarts, and how negative colours are not yet implemented, its really reliable. I'll grab a logcat when I can, but the restarting is fairly random.

OK, no clue with that (but welcome to the 5.1.1 trouble with custom ROM – fighting something similar with my P880 having random freezes due to OOM not being able getting some apps adjusted which run with oom_score_adj = -1000 aka "unkillable" – strange stuff, should have stayed with Kitkat ;) Still, a pastebin'd logcat might help.

@Izzy Glad to know I'm not the only one lol. I'll try and grab logcat as and when I can, though it may be a little while.

@Izzy Can't get it all on pastebin -something about the buggy mess of copying. Dropboxed the file instead https://www.dropbox.com/s/5lcwkd9lyby1x12/Log.txt?dl=0

At a quick glance: Bunch of NullPointerExceptions in "core services", all services suddenly die, and finally (as expected) the system server starts over: "Exit zygote because system server (465) has terminated". Looks like a bug in the ROM to me. Connection to your touch-event: "Fatal signal 6 (SIGABRT), code -6 in tid 22039 (RenderThread)" & "Encountered EGL error 12299 EGL_BAD_NATIVE_WINDOW during rendering". Hm, might well be some misbehaving system-app behind it, not sure. Maybe someone more experienced might read more there.

@Izzy Thanks for spotting that. I'll do some digging in the morning, perhaps get in contact with SlimRoms.

@Izzy Hmmph. I am a tad clueless


text:
Send "step" sensor event from ADB
My smartphone has sensors those:
Step Detector                                   | Qualcomm                         | 0x0000001e | on-demand         | no batching support | last=<0.000000>
Step Counter                                    | Qualcomm                         | 0x0000001f | on-demand         | no batching support | last=<0>

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

adb shell sendevent StepDetector

I had a quick look on Stack and i found this .  it might be helpful in the situation....
If you are using ADB, you will need to command into the shell with
adb shell        - for opening shell

su        - to gain root via superuser - Optional

sensor set acceleration 0:0:0

sensor set acceleration 99:99:99

here is the references i found StackOverflow Comment

Yeah, I found it too but it's for emulator. I'm working on real phone. So we can't use "sensor" command. ADB give error: "tmp-mksh: sensor: not found"

Also I tried the "SensorSimulator". The application (on phone) is connecting to the program (on pc). I'm changing accelerometer values (with random), the SensorSimilator app (on phone) see changes. But it's not real change. Just SensorSimilator can see changes. Other apps about accelerometer can't use fake values.

If you are trying to edit a specific app... Usually the last logged information is saved to data, And then opened....  If you can edit the exact shared prefs file or database ... You could just write the values to it with echo blahblah /data/data/app-name/shared_prefs.xml ... You will have to find the exact location, It's probably in Temp

using sed is better for textual replacement !

The specific app is using Server. So the app is not save datas. Just catching steps via sensors and sending to server. But the way between server and app is not HTTP. So I can't monitor datas. But if I can send sensorevent to app, app will send to server.

Just shake it :)

I can do it. Or I can put the device on a pickup player. The phone will count steps when the pickup player turns disk. :) But I want to make it via program. Thanks for your help.

The only thing i can think is an Xposed module to feed fake sensor data to apps while they are being processed...


text:
How can I back up files from LG's Browser?
In anticipation of my phone dying soon, I've been backing up every file on it. I'm using an LG G Flex, and it comes with a generic browser. Browser came with a "save for offline reading" function, which I used to use regularly, until I found out that nowhere in the file manager can I view or access these saved webpages, which makes backup much harder.
Since then, I've been using a separate app to save new webpages, and to back up the old ones I've been individually saving every page to Capture Plus (the browser's full page screen capture function).
I'm now down to my last webpage, but Capture Plus tells me that there isn't enough memory when I try to capture it as a screenshot.
This doesn't mean that there isn't enough memory in the location I'm saving to, because I know there is, so what gives?
The saved webpage that I'm trying to back up is one that has been removed from the internet, so I can't just go back to the same website and download it again.
I could take about 3,000 screenshots of the page and later assemble them into one (it's a pretty long page), but if there's a way around that approach, I'd like to know about it.

LG's built-in backup is very good, alternatively you can use adb backup.

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


text:
Nexus 5 power button does multiple functions
The power button on my Nexus 5 also serves to turn up volume and turn on camera. I find this annoying. Is there a way to disable the volume and camera functionality?

I am aware of double pressing the power button will launch the camera when the phone is locked, but I am surprised to hear that it also turns up the volume. How do you do that?

Since you asked I've been playing with it, trying to get it happen. It may be that, with the phone in my right hand, thumb on the power button, it happens that my index finger is on the up volume button and pressing with my thumb causes the opposing index finger to press in the up volume. Oops.

So then, can I disable the camera functionality?

Well, you can disable the double tap by setting the option in Settings->Display->Press power button twice for camera to off.


text:
How to copy a message without the message sender's name on Telegram?
Until not long ago when you copied a message on Telegram, only the message text was copied. This was a distinguishable feature of Telegram when compared with WhatsApp where messages where copied prefixed with the original sender name and date.
More recently things have turned around and now WhatsApp is copying messages without the sender and date info, while Telegram is prefixing its copied messages with the original sender's name.
How can I copy a message without the message sender's name on Telegram?

There are two ways on Telegram to copy messages:

Tap and hold + copy = will copy the message with the sender's name
Tap + copy = will copy the message without the sender's name

Tnx for sharing, was looking for a solution for this as well.


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

As for as i know, when a rom boots up for a first time dalvik goes each and every apks and extract the dex (Android programs are compiled into .dex (Dalvik Executable) files) and put in the cache.So next time when you use your mobile it start faster and improved the performance, so when you wiped dalvik cache, it only clear cache memory. it will not delete application data.
i cannot say exactly one solution for your problem without getting more information, try to reinstall apk, maybe it will solve your problem because data is not deleted.

Thank you for the reply. I did not try to reinstall but was waiting... It took about half an hour and suddenly my apps appeared. Rebooted again and it did not happen again. Now phone runs normally.

then good luck,


text:
Change Facebook (and others) photo saving folder
I'd like to ask a question about the facebook app (but it is not only one that does this).
Currently, when I save any photo from facebook, it saves into /DCIM/Facebook.
Now I would not normally care where the photos are stored as long as Gallery app sorts them right, but the fact it goes into DCIM folder makes it behave wrongly with the Google Photos app.
Google Photos treat all those Facebook saved posts as "Camera photos" and tries to synchronize them to server, which I obviously do not want (I store photo albums on GPh, I do not need meme pics among them) and I cannot refine the synchronize options any more (only "Camera" is chosen to sync).
Is there a way to exclude those downloaded pictures from sync? Or make Facebook save its downloads to, say, /Pictures/Facebook ?
Same as above also happens in DCIM/Screenshots while clipping parts of screen.
Phone is Samsung Galaxy Note 4, Android 6.0.1
Thanks in advance

I use Folder Sync on the play store for syncing certain folders to the external SD,... You could sync them to a different backup every half hour, Deleting the original after sync !... here

I'll try that, at least the copying part would go away. but if someone have something more automatic (I have been manually clearing the folders until now) it would be appreciated

FolderSync has an automatic interval, And a instant sync... It watches the folder for changes and sync's then

The way I found around this was to install an app like 'savetofilesystem', 'save to SD card' or, 'save to file', then instead of using Facebook's 'save to phone' feature, I would use the 'share external' feature to share the image to the correct folder via one of those apps.

I had EXACTLY the same problem. I couldn't find a solution else where. The only solution was to use a .nomedia file in the /sdcard/DCIM/Facebook directory and moving the *.jpgs to another folder. I had made a Tasker task referring to a reddit post in /r/tasker. Here is the description and the XML for importing it. You have to create the %destpart and add a .nomedia in %sourcepath for it to work. You can run this task in a profile as an exit task for Facebook and as an entry task for other messenger apps like Telegram/Whatsapp, etc. so you get your memes right!
The Meme Mover (3)
A1: Variable Set [ Name:%sourcepath To:/sdcard/DCIM/Facebook/ Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%destpath To:/sdcard/Pictures/Facebook/ Recurse Variables:Off Do Maths:Off Append:Off ]
A3: Variable Set [ Name:%suffix To:(1) Recurse Variables:Off Do Maths:Off Append:Off ]
A4: Variable Set [ Name:%counter To:0 Recurse Variables:Off Do Maths:On Append:Off ]
A5: List Files [ Dir:%sourcepath Match:*.jpg/*.png/*.jpeg/*.gif/*.3gp Include Hidden Files:Off Use Root:Off Sort Select:Alphabetic Variable:%filestomove ]
A6: For [ Variable:%thispathfile Items:%filestomove() ]
A7: Variable Split [ Name:%thispathfile Splitter:/ Delete Base:Off ]
A8: Variable Set [ Name:%len To:%thispathfile(#) Recurse Variables:Off Do Maths:Off Append:Off ]
A9: Variable Set [ Name:%filename To:%thispathfile(%len) Recurse Variables:Off Do Maths:Off Append:Off ]
A10: Variable Clear [ Name:%exists Pattern Matching:Off ]
A11: Test File [ Type:Type Data:%destpath%filename Store Result In:%exists Use Root:Off Continue Task After Error:On ]
A12: If [ %exists !Set ]
A13: Move [ From:%thispathfile To:%destpath%filename Use Root:Off ]
A14: Scan Card [ File:%destpath%filename ]
A15: Else
A16: Variable Split [ Name:%filename Splitter:. Delete Base:Off ]
A17: Variable Set [ Name:%filename1 To:%filename1%suffix Recurse Variables:Off Do Maths:Off Append:Off ]
A18: Variable Join [ Name:%filename Joiner:. Delete Parts:Off ]
A19: Move [ From:%thispathfile To:%destpath%filename Use Root:Off ]
A20: Scan Card [ File:%destpath%filename ]
A21: End If
A22: Variable Add [ Name:%counter Value:1 Wrap Around:0 ]
A23: End For
A24: If [ %counter eq 0 ]
A25: [X] Flash [ Text:No memes? Sad. Long:On ]
A26: Else If [ %counter eq 1 ]
A27: Flash [ Text:%counter meme moved! Long:On ]
A28: Else
A29: Flash [ Text:%counter memes moved! Long:On ]

 Remember to have .nomedia in %sourcepath
Here's the XML for direct import:
<TaskerData sr="" dvi="1" tv="4.9u4">
<Task sr="task3">
    <cdate>1489093858387</cdate>
    <edate>1489219027762</edate>
    <id>3</id>
    <nme>The Meme Mover</nme>
    <pri>100</pri>
    <Kid sr="Kid">
        <launchID>3</launchID>
        <pkg>me.regalstreak.movefb</pkg>
        <vnme>1.0</vnme>
    </Kid>
    <Action sr="act0" ve="7">
        547
        <Str sr="arg0" ve="3">%sourcepath</Str>
        <Str sr="arg1" ve="3">/sdcard/DCIM/Facebook/</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act1" ve="7">
        547
        <Str sr="arg0" ve="3">%destpath</Str>
        <Str sr="arg1" ve="3">/sdcard/Pictures/Facebook/</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act10" ve="7">
        342
        <se>false</se>
        <Int sr="arg0" val="4"/>
        <Str sr="arg1" ve="3">%destpath%filename</Str>
        <Str sr="arg2" ve="3">%exists</Str>
        <Int sr="arg3" val="0"/>
    </Action>
    <Action sr="act11" ve="7">
        37
        <ConditionList sr="if">
            <Condition sr="c0" ve="3">
                <lhs>%exists</lhs>
                <op>13</op>
                <rhs></rhs>
            </Condition>
        </ConditionList>
    </Action>
    <Action sr="act12" ve="7">
        400
        <Str sr="arg0" ve="3">%thispathfile</Str>
        <Str sr="arg1" ve="3">%destpath%filename</Str>
        <Int sr="arg2" val="0"/>
    </Action>
    <Action sr="act13" ve="7">
        459
        <Str sr="arg0" ve="3">%destpath%filename</Str>
    </Action>
    <Action sr="act14" ve="7">
        43
    </Action>
    <Action sr="act15" ve="7">
        590
        <Str sr="arg0" ve="3">%filename</Str>
        <Str sr="arg1" ve="3">.</Str>
        <Int sr="arg2" val="0"/>
    </Action>
    <Action sr="act16" ve="7">
        547
        <Str sr="arg0" ve="3">%filename1</Str>
        <Str sr="arg1" ve="3">%filename1%suffix</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act17" ve="7">
        592
        <Str sr="arg0" ve="3">%filename</Str>
        <Str sr="arg1" ve="3">.</Str>
        <Int sr="arg2" val="0"/>
    </Action>
    <Action sr="act18" ve="7">
        400
        <Str sr="arg0" ve="3">%thispathfile</Str>
        <Str sr="arg1" ve="3">%destpath%filename</Str>
        <Int sr="arg2" val="0"/>
    </Action>
    <Action sr="act19" ve="7">
        459
        <Str sr="arg0" ve="3">%destpath%filename</Str>
    </Action>
    <Action sr="act2" ve="7">
        547
        <Str sr="arg0" ve="3">%suffix</Str>
        <Str sr="arg1" ve="3">(1)</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act20" ve="7">
        38
    </Action>
    <Action sr="act21" ve="7">
        888
        <Str sr="arg0" ve="3">%counter</Str>
        <Int sr="arg1" val="1"/>
        <Int sr="arg2" val="0"/>
    </Action>
    <Action sr="act22" ve="7">
        40
    </Action>
    <Action sr="act23" ve="7">
        37
        <ConditionList sr="if">
            <Condition sr="c0" ve="3">
                <lhs>%counter</lhs>
                <op>0</op>
                <rhs>0</rhs>
            </Condition>
        </ConditionList>
    </Action>
    <Action sr="act24" ve="7">
        548
        <on>false</on>
        <Str sr="arg0" ve="3">No memes? Sad.</Str>
        <Int sr="arg1" val="1"/>
    </Action>
    <Action sr="act25" ve="7">
        43
        <ConditionList sr="if">
            <Condition sr="c0" ve="3">
                <lhs>%counter</lhs>
                <op>0</op>
                <rhs>1</rhs>
            </Condition>
        </ConditionList>
    </Action>
    <Action sr="act26" ve="7">
        548
        <Str sr="arg0" ve="3">%counter meme moved!</Str>
        <Int sr="arg1" val="1"/>
    </Action>
    <Action sr="act27" ve="7">
        43
    </Action>
    <Action sr="act28" ve="7">
        548
        <Str sr="arg0" ve="3">%counter memes moved!</Str>
        <Int sr="arg1" val="1"/>
    </Action>
    <Action sr="act3" ve="7">
        547
        <Str sr="arg0" ve="3">%counter</Str>
        <Str sr="arg1" ve="3">0</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="1"/>
        <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act4" ve="7">
        412
        <Str sr="arg0" ve="3">%sourcepath</Str>
        <Str sr="arg1" ve="3">*.jpg/*.png/*.jpeg/*.gif/*.3gp</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
        <Str sr="arg5" ve="3">%filestomove</Str>
    </Action>
    <Action sr="act5" ve="7">
        39
        <Str sr="arg0" ve="3">%thispathfile</Str>
        <Str sr="arg1" ve="3">%filestomove()</Str>
    </Action>
    <Action sr="act6" ve="7">
        590
        <Str sr="arg0" ve="3">%thispathfile</Str>
        <Str sr="arg1" ve="3">/</Str>
        <Int sr="arg2" val="0"/>
    </Action>
    <Action sr="act7" ve="7">
        547
        <Str sr="arg0" ve="3">%len</Str>
        <Str sr="arg1" ve="3">%thispathfile(#)</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act8" ve="7">
        547
        <Str sr="arg0" ve="3">%filename</Str>
        <Str sr="arg1" ve="3">%thispathfile(%len)</Str>
        <Int sr="arg2" val="0"/>
        <Int sr="arg3" val="0"/>
        <Int sr="arg4" val="0"/>
    </Action>
    <Action sr="act9" ve="7">
        549
        <Str sr="arg0" ve="3">%exists</Str>
        <Int sr="arg1" val="0"/>
    </Action>

        <cls>com.facebook.katana.LoginActivity</cls>
        <pkg>com.facebook.katana</pkg>

</Task></TaskerData>

Copy the code above and save the file as The Meme Mover.tsk.xml in /sdcard/Tasker/tasks. Then go to Tasker, long press on Tasks, and import this.
Pro Tip: Enable A25 just for testing if you want to.
Edit: Code corrected and updated. (1 memes moved was triggering my OCD.)
Edit 2: Had some problems, corrected again.

Anyone else looking this in the future and don't know how to use Tasker or find it difficult to understand.

Download this app.
Go to organizer section.
Make a service job to move files as soon they are found in the Facebook folder to some other folder.

Hope you don't have Meme UI or Samsung which kills everything in the background.
If that's the case, check this.

I stumbled across the Tasker answer above while searching for a way to deal with Facebook's image downloads, and while it mostly works fine for Facebook, there are some issues with it, especially when you try to extend its functionality to other scenarios.
I'm completely new to Tasker, so it took me a while to figure it out, but after a day of tinkering, I've made some big improvements to the task. The main issues with the original version that I've solved are:

While the original version could detect if the file being moved already existed in the destination directory, it could only handle one iteration of the conflict. For example, if example.jpg were being moved, but it already existed, it would rename the file being moved to example(1).jpg. However, if example.jpg were being moved and both example.jpg and example(1).jpg already existed, it would simply overwrite example(1).jpg.

My version will run an iterative check on names which increments the suffix variable until a non-existing name is found. For example, if example.jpg is taken, it will check example(2).jpg. If that is taken, it will check example(3).jpg, and so on until an available name is found. It also correctly appends the first duplicate with (2) rather than (1).

The original version assumed the first "." in a file name was also the last "." before the extension. While this is fine for images from Facebook, it's not an ideal assumption, and breaks down when adopting the task for other uses, such as moving APKs. With the original, if com.example.app.apk already existed in the destination directory, trying to move a second copy of it would result in com(1).example.app.apk.

In addition to fixing the suffix and making it iterative, I've also changed the logic for its placement, such that it will always go before the last ".". In the above example, the apk would now be renamed to com.example.app(2).apk. This doesn't always work perfectly (consider .tar.gz and other similar cases for instance), but it does a good enough job without having to hard-code in every possible extension.

This appears to vary from device to device, but on my devices, the original version would leave behind broken references to images in gallery apps and other programs that utilize the media provider (most messaging apps that have an image selection UI) due to not correctly refreshing this data. This was not an issue for moving images out of a directory containing a .nomedia file, but caused issues if you wanted to use it in a directory where you didn't want or couldn't have a .nomedia file (such as automatically moving downloaded images out of /sdcard/Download/).

Tasker's Scan Media action seems to act in wildly different ways depending on not only the Android version, but also the vendor variant you're using. I've fixed the issue on my devices (and hopefully many of yours) by running a Scan Media action on not only the file in it's destination directory, but also on the original file path (referencing the file that's no longer there).

I also updated variable names for clarity, and rather than using events that trigger when entering or exiting apps, I've set it to run on a File Modified event monitoring the source folder, with the event set to Closed Write. This works for most purposes, but breaks in some cases. You can fix most issues by either using a different event parameter (such as Create, Modify, or Move To) or by using stricter regex in Action 3 of the task.

 I've heard that devices with slower storage (or slow external SD cards) can have issues with this if files take too long to write. In that case, you may have to experiment with adding delays or using different methods to trigger the task.

I'm attaching not just the task here, but the entire project I've created, containing multiple copies of the task for various use cases, and their respective profiles to trigger them, so that beginners who are new to Tasker can easily get started using this task and have some examples to reference when adopting the task to their own needs.
The examples included in this project are:

When Facebook downloads an image to /sdcard/DCIM/Facebook, move it to /sdcard/Pictures/Facebook.
When Samsung Notes saves an image to /sdcard/DCIM/Samsung Notes/, move it to /sdcard/Pictures/Samsung Notes/. (This works, but Samsung Notes will claim it failed to save the image, due to it checking for the image after it has already been moved by Tasker.)
When you create a GIF using Smart Select, move it from /sdcard/DCIM/GIF/ to /sdcard/Pictures/Smart Select GIFs/.
When you export an APK from ReVanced Manager to /sdcard/Download/APKs/Original/, move it to /sdcard/Download/APKs/Modded/.
When a new file is detected in /sdcard/Download/ . . .

if it's a download from Craiyon, move it to /sdcard/Pictures/Craiyon/
if it's an APK, APKM, APKS, or XAPK file, move it to /sdcard/Download/APKs/Original, unless it is base.apk (I leave that file in Download since I use it for other things.)

Remember to first create the source and destination directories before testing the examples. I also encourage you to check Action 3 in each example task (some of them use simple matching and others use regex) for a better understanding of how they work.
Now that that's out of the way, here's the project. You can import it directly to Tasker from there, or download it as an XML. If you choose to download it, save it in /sdcard/Tasker/projects/. You can then long press on the home icon on the bottom left corner of Tasker to import the project.
Unfortunately the entire XML is too long to post here directly, but for the sake of keeping this answer as complete as possible, I'm including the XML for just the Facebook task below. I strongly recommend that beginners import the entire project using the link above however, so you can get an idea of how to customize the task for your own needs.
The Facebook task:
<TaskerData sr="" dvi="1" tv="6.0.10">
    <Task sr="task3">
        <cdate>1489093858387</cdate>
        <edate>1677367714628</edate>
        <id>3</id>
        <nme>Move Facebook Images</nme>
        <pri>6</pri>
        <Kid sr="Kid">
            <launchID>3</launchID>
            <pkg>me.regalstreak.movefb</pkg>
            <vTarg>21</vTarg>
            <vnme>1.0</vnme>
        </Kid>
        <Action sr="act0" ve="7">
            547
            <Str sr="arg0" ve="3">%sourcedir</Str>
            <Str sr="arg1" ve="3">/sdcard/DCIM/Facebook/</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5" val="3"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act1" ve="7">
            547
            <Str sr="arg0" ve="3">%destdir</Str>
            <Str sr="arg1" ve="3">/sdcard/Pictures/Facebook/</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5" val="3"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act10" ve="7">
            37
            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%fileexists</lhs>
                    <op>12</op>
                    <rhs></rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act11" ve="7">
            547
            <Str sr="arg0" ve="3">%currentfilename</Str>
            <Str sr="arg1" ve="3">%currentfilepath(%pathlen)</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5" val="3"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act12" ve="7">
            888
            <Str sr="arg0" ve="3">%suffix</Str>
            <Int sr="arg1" val="1"/>
            <Int sr="arg2" val="0"/>
        </Action>
        <Action sr="act13" ve="7">
            590
            <Str sr="arg0" ve="3">%currentfilename</Str>
            <Str sr="arg1" ve="3">.</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
        </Action>
        <Action sr="act14" ve="7">
            547
            <Str sr="arg0" ve="3">%namelen</Str>
            <Str sr="arg1" ve="3">%currentfilename(#)</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5" val="3"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act15" ve="7">
            890
            <Str sr="arg0" ve="3">%namelen</Str>
            <Int sr="arg1" val="1"/>
            <Int sr="arg2" val="0"/>
        </Action>
        <Action sr="act16" ve="7">
            547
            <Str sr="arg0" ve="3">%currentfilename(%namelen)</Str>
            <Str sr="arg1" ve="3">%currentfilename(%namelen)%null()(%suffix)</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5" val="3"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act17" ve="7">
            592
            <Str sr="arg0" ve="3">%currentfilename</Str>
            <Str sr="arg1" ve="3">.</Str>
            <Int sr="arg2" val="0"/>
        </Action>
        <Action sr="act18" ve="7">
            135
            <Int sr="arg0" val="0"/>
            <Int sr="arg1" val="10"/>
            <Str sr="arg2" ve="3"/>
        </Action>
        <Action sr="act19" ve="7">
            38
        </Action>
        <Action sr="act2" ve="7">
            412
            <Str sr="arg0" ve="3">%sourcedir</Str>
            <Str sr="arg1" ve="3">*.jpg/*.png/*.jpeg/*.gif/*.3gp</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Str sr="arg5" ve="3">%filelist</Str>
            <Int sr="arg6" val="1"/>
        </Action>
        <Action sr="act20" ve="7">
            400
            <Str sr="arg0" ve="3">%currentfilepath</Str>
            <Str sr="arg1" ve="3">%destdir%currentfilename</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="1"/>
        </Action>
        <Action sr="act21" ve="7">
            459
            <Str sr="arg0" ve="3">%currentfilepath</Str>
        </Action>
        <Action sr="act22" ve="7">
            459
            <Str sr="arg0" ve="3">%destdir%currentfilename</Str>
        </Action>
        <Action sr="act23" ve="7">
            888
            <Str sr="arg0" ve="3">%counter</Str>
            <Int sr="arg1" val="1"/>
            <Int sr="arg2" val="0"/>
        </Action>
        <Action sr="act24" ve="7">
            40
        </Action>
        <Action sr="act25" ve="7">
            37
            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%counter</lhs>
                    <op>0</op>
                    <rhs>0</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act26" ve="7">
            548
            <Str sr="arg0" ve="3">No memes? Sad.</Str>
            <Int sr="arg1" val="0"/>
            <Str sr="arg10" ve="3"/>
            <Int sr="arg11" val="1"/>
            <Int sr="arg12" val="0"/>
            <Str sr="arg13" ve="3"/>
            <Int sr="arg14" val="0"/>
            <Int sr="arg2" val="0"/>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Str sr="arg5" ve="3"/>
            <Str sr="arg6" ve="3"/>
            <Str sr="arg7" ve="3"/>
            <Str sr="arg8" ve="3"/>
            <Int sr="arg9" val="1"/>
        </Action>
        <Action sr="act27" ve="7">
            43
            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%counter</lhs>
                    <op>0</op>
                    <rhs>1</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act28" ve="7">
            548
            <Str sr="arg0" ve="3">%counter meme moved!</Str>
            <Int sr="arg1" val="0"/>
            <Str sr="arg10" ve="3"/>
            <Int sr="arg11" val="1"/>
            <Int sr="arg12" val="0"/>
            <Str sr="arg13" ve="3"/>
            <Int sr="arg14" val="0"/>
            <Int sr="arg2" val="0"/>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Str sr="arg5" ve="3"/>
            <Str sr="arg6" ve="3"/>
            <Str sr="arg7" ve="3"/>
            <Str sr="arg8" ve="3"/>
            <Int sr="arg9" val="1"/>
        </Action>
        <Action sr="act29" ve="7">
            43
        </Action>
        <Action sr="act3" ve="7">
            547
            <Str sr="arg0" ve="3">%suffix</Str>
            <Str sr="arg1" ve="3">1</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5" val="3"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act30" ve="7">
            548
            <Str sr="arg0" ve="3">%counter memes moved!</Str>
            <Int sr="arg1" val="0"/>
            <Str sr="arg10" ve="3"/>
            <Int sr="arg11" val="1"/>
            <Int sr="arg12" val="0"/>
            <Str sr="arg13" ve="3"/>
            <Int sr="arg14" val="0"/>
            <Int sr="arg2" val="0"/>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Str sr="arg5" ve="3"/>
            <Str sr="arg6" ve="3"/>
            <Str sr="arg7" ve="3"/>
            <Str sr="arg8" ve="3"/>
            <Int sr="arg9" val="1"/>
        </Action>
        <Action sr="act4" ve="7">
            547
            <Str sr="arg0" ve="3">%counter</Str>
            <Str sr="arg1" ve="3">0</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="1"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act5" ve="7">
            39
            <coll>false</coll>
            <Str sr="arg0" ve="3">%currentfilepath</Str>
            <Str sr="arg1" ve="3">%filelist()</Str>
            <Int sr="arg2" val="0"/>
        </Action>
        <Action sr="act6" ve="7">
            590
            <Str sr="arg0" ve="3">%currentfilepath</Str>
            <Str sr="arg1" ve="3">/</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
        </Action>
        <Action sr="act7" ve="7">
            547
            <Str sr="arg0" ve="3">%pathlen</Str>
            <Str sr="arg1" ve="3">%currentfilepath(#)</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5" val="3"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act8" ve="7">
            547
            <Str sr="arg0" ve="3">%currentfilename</Str>
            <Str sr="arg1" ve="3">%currentfilepath(%pathlen)</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="0"/>
            <Int sr="arg5" val="3"/>
            <Int sr="arg6" val="0"/>
        </Action>
        <Action sr="act9" ve="7">
            342
            <se>false</se>
            <Int sr="arg0" val="4"/>
            <Str sr="arg1" ve="3">%destdir%currentfilename</Str>
            <Str sr="arg2" ve="3">%fileexists</Str>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="1"/>
        </Action>

            <cls>com.facebook.katana.LoginActivity</cls>
            <pkg>com.facebook.katana</pkg>

    </Task>
</TaskerData>


text:
How do alarms work with Period Battery Optimization?
My G4 just got delivered an OTC update (V30c-FEB-11-2016, not sure why I just got it now), that contains the troubling text:

The battery will now be optimized automatically when the phone or apps
  are not in use for a certain period of time. Alarms may not sound and
  notifications from apps that are not updated to the latest OS version
  may not be received during battery optimization.

What exactly is the alarm behavior if it happens to fall on a battery optimization? How long does a battery optimization session take, and will the alarm sound after the optimization finishes?

This is 'doze', a new power optimization feature introduced in Marshmallow.
Apps have to be compliant to doze specifications (APIs), to work continously across system low power states.,
While Google alarm app from stock android will work as it will be already doze compliant, any third party app (motorola apps or playstore apps) may or maynot have doze support, and hence might not function as normally..


text:
Adopted Internal SD Card is mounted twice
I've adopted my external SD card as internal storage with the new feature of Android 6.0 (Samsung Galaxy S4 Mini with CyanogenMod 13). Since I've done this I've recognized that my stock image galery app and music player (stock and every other I've tried) lists every media file on the external SD card twice.
I know that these media files (pictures, music,...) aren't really duplicates because if I remove one file, the "copy" is deleted too. If I add new files it gets "duplicated" as well.
So I've tried to figure out the problem. I've noticed that the content of my external SD card is mounted under /sdcard/ with a symbolic link:
$ ls -la | grep "\->"
lrwxrwxrwx   1 root   root       21 2016-07-11 10:07 sdcard -> /storage/self/primary

And under /storage/emulated/0/ (I can't execute the ls command in /storage/emulated/) which has exactly the same files and folders.
So is there any way to remove one of these mount points safely (I don't know which App uses which of these folders...)? Or is there any other way to tell the media library to only scan one of these directories?

Edit: I FOUND A SOLUTION. Using Solid explorer navigate to /storage/emulated and then open up the properties for the folder titled 0. Three dots in the top right corner and select "hide media" if it gives you a toast message saying there was an error, just do it again. So far Solid explorer is the only application I've found to give the solution. I'm not 100% sure what it's doing to the folder but it's working.
Any luck with this? I found found the same issue. If you could find a way to blacklist the mount point from the media cache it should work

This seems to work for me. I also get the error but the second time I  select "Hide Media" it works. Thanks!

Btw: it is possible to delete the Solid explorer afterwards. The change persists.


text:
Get logs before logcat has started in a bootloop
I am flashing a modified version of AOSP and the device boot loops.
The problem is that "logcat" on the phone never runs, meaning that the problem has occurred earlier.
So, is there a way that I can access any log files that have been generated since the devices had initiated boot?
I just want to know the root of the error that I caused.
The modifications that I do are in the runtime in particular,
and I am flashing to the device the following AOSP-generated images:
fastboot flash cache cache.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash boot boot.img

I am using a Nexus 6, on Android Marshmallow (most stock code from 6.0.1_r31..r33), and the boot image is permissive with verity disabled.

You can redirect kernel logs during boot time using a USB serial port.
Wikidot (archived) has an informative article on it

If the phone doesn't even boot up to a stable state where the ADB commands can be used, one might be interested in redirecting the kernel messages to some places where they can be seen. This is to leverage the "console=" command for the kernel.
For different devices, there may be different ports where the messages can be redirected to. If the serial port on the device is enabled, one can use use the serial port. On MSM chips, there is a UART port which may be used. For this, one can use "console=ttyMSM2,115200n8" and the availability of the port can be checked in "/dev" if one wants to use it.
Currently, there is a possibility to use the USB serial ports too. One may want to check if they work on the device. The USB serial port is a software serial port emulated through the USB interface. It often has the names "ttyUSB*" or "ttyHSUSB*". On Android devices, if one sees "ttyUSB*", those may be ports provided by the USB gadget drivers (/kernel/drivers/usb/gadget), which could be used as the console (add console=ttyUSB0,9600n8). If one sees "ttyHSUSB*", they may be a bit different. These may be provided by MSM platform USB drivers, and some might not support the "console" yet. For curious readers, in order to be used as a console, a device driver has to register itself as a console provider by calling register_console in kernel/printk.c, and it has to provide some callbacks for printk to write kernel messages. So the device driver developer would have to explicitly support this for the device driver to be used as a console.

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


text:
How to mute an email thread in Google Inbox on Android?
In Gmail email threads can be muted. How can they be muted in Google Inbox mobile?

Yes. You can mute an email conversation in Google Inbox. You need to open the email and long press "Done" on your phone. Remember muted conversations will pop back if a reply is addressed to you and no one else, or if you're added to the "To" or "Cc" line in a new message. You may refer to "Mute all replies to an email" section of this help center page: https://support.google.com/inbox/answer/6067561?hl=en

To build on Neal's answer:

On mobile, long-press on Done
On web, enable shortcuts (shift + ?), click on the email, type 'm'

On mobile Android, long pressing on the tick also brings up the mute option.


text:
Lenovo A916 Power Manager App Fails
I can't turn on emergency mode in Lenovo Power Manager app, it seams broken with my system.
Emergency Mode is like classic phone mode, only calls, SMS, contacts and clock are enabled. It saves energy.
Problem
Whenever I try to activate it, it starts with Preparing data, please wait... and after that it says: Failed to launch the Emergency Power Saving mode. Sorry, but we tried our best
I've test this app on other Lenovo A916 with deferent ROM, it works there. Why is it not working with my ROM? Could someone help me find out why?

Logcat
I've made Logcat log, with hope that I will find cause of this problem and maybe fix it, but no luck. Maybe some experienced Android enthusiast will help me find out what causes the problem. Log file is kinda long but by searching prepareEnvirenmentOperation its easier to get entries
Logcat log is here
Device information:
Lenovo A916, Android 4.4.2, system build id A916_S206_141125_baralajbi

What device and Android version? What did you try already? Did it work before – and if so, what changes do you remember having done that might have effect here?

Android 4.4.2, I tried to enable it but this is what I get so far? Any idea?

No idea. I was hoping you'd name your device as well – so other users with the same device could help you out.

Improved question, maybe someone will take a look on that log. It bothers me.

Not sure, but what I notice from the logs: 1) your device is rooted, 2) you seem to have removed several packages (mainly fonts, but also some others like com.android.mms – but nothing that affects the powermanager), and finally 3) PowerManager seems not to like rooted devices, see e.g. lines 1282 to 1305: it starts up, checks for root (line 1299), finds root (1301+1302), and then seems to exit (1304ff). Some other process of the same app seems to continue, though, and do something. It probably won't show up due to all those "ResourceNotFound" errors, but I can't tell for sure.

@Izzy thank you for analyzing, :) maybe weird to say but ClassicPhoneLauncher requires root, if root is disabled PowerManager says that I need to root my phone to enable this function. I've notice those system.err messages, maybe system is missing something important? How to find out all missing package names?

Most of them are listed in those "unknown package" references I'd say. As for root: OK, that explains why the other thread still continues after that root check.

@Izzy problem solved, it was caused by SuperSU, I changed it and now it works. Thanks for help.

Problem solved, problem was caused by SuperSU root manager. After changing SuperSU to KingRoot it works fine. Weird.
I've tried different SuperSU settings, reboots, etc, but non of them seems to solve this issue. I got weirded out after trying this Lenovo app on my Alcatel tablet... it works perfectly fine there, with KingRoot, so I changed SuperSU to KingRoot on my Lenovo device and it works.


text:
Network latency spikes every 20 seconds
On my LG G3 running Android 5.0 I have a problem that I started to notice while playing Clash Royale (a real time multiplayer game). My actions would sometimes have a delay of up to 2 seconds. Other players wouldn't have that problem. So I started investigating.
Here are the facts:

I'm always on my home Wi-Fi.
When I ping my router from my G3 I can see a spike in the latency exactly every 20 seconds.
It is not location dependent, reception is good.
Other devices don't experience this using the same Wi-Fi.

Hence I think this must really have to do with my G3. It is not rooted and I haven't been playing with any internal settings. Displaying the CPU usage from the developer settings doesn't show anything suspicious during the spikes.
Has anybody experienced anything similar? Any ideas how to further track down the root of this issue?

I've been living with this for a while now. Somehow restarting the device twice in a row seemed to fix the issue for some days.
But now I've finally come around to connect the device to Android Studio and in the logcat I've found some interesting stuff. I'm still not sure why this happens but the workaround is to disable Location. Enabling it again leads to an instant 2 second ping and then again periodically every 20 seconds.
The wifi service polls the location every 20 seconds and for that it seems to use a lock. It takes it over 2 seconds to release it again. Here is the log of this occurrence if anybody whose also affected wants to investigate further:
11-26 20:03:00.743 1045-1328/? V/AlarmManager: ELAPSED_WAKEUP set : Alarm{3182c1c9 type 2 when 108939554 com.google.android.gms} when 108939554
11-26 20:03:00.752 1045-2096/? D/WifiService: acquireWifiLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@45a441e}
11-26 20:03:00.754 1045-1692/? D/WifiService: startScan pid=2911, uid=10005, packageName=com.google.uid.shared:10005
11-26 20:03:00.758 1045-1346/? E/WifiStateMachine:  ConnectedState !CMD_START_SCAN 10005 1580 ic=1 proc(ms):2 dur:2185 rssi=-54 f=2437 sc=60 link=54 tx=4.1, 0.0, 0.0  rx=4.4 fiv=20000 [on:0 tx:0 rx:0 period:808] from screen [on:0 period:-1576736363]
11-26 20:03:00.759 1045-1346/? E/WifiStateMachine:  L2ConnectedState !CMD_START_SCAN 10005 1580 ic=1 proc(ms):4 dur:2185 rssi=-54 f=2437 sc=60 link=54 tx=4.1, 0.0, 0.0  rx=4.4 fiv=20000 [on:0 tx:0 rx:0 period:2] from screen [on:0 period:-1576736361]
11-26 20:03:00.761 1045-1346/? E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source 10005 txSuccessRate=4.08 rxSuccessRate=4.42 targetRoamBSSID=any RSSI=-54
11-26 20:03:00.761 1045-1346/? D/WifiNative-wlan0: doBoolean: SCAN TYPE=ONLY
11-26 20:03:00.762 1413-1413/? I/wpa_supplicant: wlan0: CTRL-EVENT-SCAN-STARTED
11-26 20:03:00.762 1045-1505/? D/WifiMonitor: Event [IFNAME=wlan0 CTRL-EVENT-SCAN-STARTED ]
11-26 20:03:00.762 1045-1505/? E/WifiMonitor: WifiMonitor:wlan0 cnt=3840 dispatchEvent: CTRL-EVENT-SCAN-STARTED
11-26 20:03:00.762 1045-1505/? E/WifiMonitor: handleEvent 14  CTRL-EVENT-SCAN-STARTED
11-26 20:03:00.763 1045-1505/? E/WifiMonitor: handleEvent unknown: 14  CTRL-EVENT-SCAN-STARTED
11-26 20:03:00.763 1045-1346/? D/WifiNative-wlan0: SCAN TYPE=ONLY: returned true
11-26 20:03:00.772 1918-1918/? D/PhoneInterfaceManager: [PhoneIntfMgr] handleMessage : 2
11-26 20:03:00.779 1918-1918/? D/PhoneInterfaceManager: [PhoneIntfMgr] handleMessage : 3
11-26 20:03:00.839 1045-1692/? W/ActivityManager: getRecentTasks: caller 10003 is using old GET_TASKS but privileged; allowing
11-26 20:03:01.480 1415-1415/? I/[SystemUI]StatusBar.NetworkController: onSignalStrengthsChanged signalStrength=SignalStrength: 14 0 -120 -227401 -85 -1 -1 99 2147483647 2147483647 2147483647 2147483647 2147483647 gsm|lte 2 level=5
11-26 20:03:01.481 1415-1415/? D/TelephonyIcons: updateDataType sub=0, type=2, inetCondition=1 showAtLeast3G=false show4GforLte=true hspaDistinguishable=false
11-26 20:03:01.481 1415-1415/? D/TelephonyIcons: data type item name: array/telephony_data_type_sim1
11-26 20:03:01.481 1415-1415/? D/TelephonyIcons: data type item id: 2131623942
11-26 20:03:01.485 1918-1918/? D/PhoneInterfaceManager: [PhoneIntfMgr] mSigLevel = 5
11-26 20:03:01.485 1415-1415/? D/TelephonyIcons: updateDataType mSelectedDataTypeIcon[0]=2130839171, mSelectedDataActivityIndex=2
11-26 20:03:01.493 1415-1415/? D/StatusBar.NetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming
11-26 20:03:01.952 1415-1415/? I/[SystemUI]StatusBar.NetworkController: onSignalStrengthsChanged signalStrength=SignalStrength: 14 0 -120 -227401 -85 -1 -1 99 2147483647 2147483647 2147483647 2147483647 2147483647 gsm|lte 2 level=5
11-26 20:03:01.952 1415-1415/? D/TelephonyIcons: updateDataType sub=0, type=2, inetCondition=1 showAtLeast3G=false show4GforLte=true hspaDistinguishable=false
11-26 20:03:01.952 1415-1415/? D/TelephonyIcons: data type item name: array/telephony_data_type_sim1
11-26 20:03:01.953 1415-1415/? D/TelephonyIcons: data type item id: 2131623942
11-26 20:03:01.957 1415-1415/? D/TelephonyIcons: updateDataType mSelectedDataTypeIcon[0]=2130839171, mSelectedDataActivityIndex=2
11-26 20:03:01.958 1918-1918/? D/PhoneInterfaceManager: [PhoneIntfMgr] mSigLevel = 5
11-26 20:03:01.966 1415-1415/? D/StatusBar.NetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming
11-26 20:03:02.203 1415-1415/? D/StatusBar.NetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming
11-26 20:03:02.224 338-428/? E/ThermalEngine: [GPU_MON] 0 percent. Current Sampling Time is 1 sec
11-26 20:03:02.839 1045-1389/? W/ActivityManager: getRecentTasks: caller 10003 is using old GET_TASKS but privileged; allowing
11-26 20:03:02.954 1045-1346/? E/WifiStateMachine:  ConnectedState !CMD_RSSI_POLL 125 0 "Private WLAN" 00:25:9c:cf:5f:e6 rssi=-54 f=2437 sc=60 link=54 tx=4.1, 0.0, 0.0  rx=4.4 bcn=0 [on:0 tx:0 rx:0 period:2189] from screen [on:0 period:-1576734167] gl rssi=-54 ag=0 hr ls-=0 [56,56,56,56,61] brc=0 lrc=0
11-26 20:03:02.958 1045-1346/? E/WifiStateMachine:  L2ConnectedState !CMD_RSSI_POLL 125 0 "Private WLAN" 00:25:9c:cf:5f:e6 rssi=-54 f=2437 sc=60 link=54 tx=4.1, 0.0, 0.0  rx=4.4 bcn=0 [on:0 tx:0 rx:0 period:4] from screen [on:0 period:-1576734163] gl rssi=-54 ag=0 hr ls-=0 [56,56,56,56,61] brc=0 lrc=0
11-26 20:03:02.958 1045-1346/? D/WifiNative-wlan0: doString: [SIGNAL_POLL]
11-26 20:03:03.037 1045-1505/? E/WifiMonitor: WifiMonitor:wlan0 cnt=3841 dispatchEvent: CTRL-EVENT-SCAN-RESULTS
11-26 20:03:03.037 1045-1505/? E/WifiMonitor: handleEvent 4  CTRL-EVENT-SCAN-RESULTS
11-26 20:03:03.044 1045-1346/? E/WifiStateMachine:  ConnectedState !SCAN_RESULTS_EVENT 0 0 found=5 known=0 got=5 bcn=0
11-26 20:03:03.045 1045-1346/? E/WifiStateMachine:  L2ConnectedState !SCAN_RESULTS_EVENT 0 0 found=5 known=0 got=5 bcn=0
11-26 20:03:03.047 1045-1346/? E/WifiStateMachine:  ConnectModeState !SCAN_RESULTS_EVENT 0 0 found=5 known=0 got=5 bcn=0
11-26 20:03:03.048 1045-1346/? E/WifiStateMachine:  DriverStartedState !SCAN_RESULTS_EVENT 0 0 found=5 known=0 got=5 bcn=0
11-26 20:03:03.050 1045-1346/? E/WifiStateMachine:  SupplicantStartedState !SCAN_RESULTS_EVENT 0 0 found=5 known=0 got=5 bcn=0
11-26 20:03:03.050 1045-1346/? D/WifiNative-wlan0: doString: [BSS RANGE=0- MASK=0x21987]
11-26 20:03:03.065 26890-26890/? V/WiFiOffLoadBroadcast: WiFiOffLoadBroadcast: android.net.wifi.SCAN_RESULTS
11-26 20:03:03.084 1045-1132/? D/LocationManagerService: incoming location: Location[network [removed],[removed] acc=20 et=+1d6h15m41s881ms {Bundle[mParcelledData.dataSize=596]}]
11-26 20:03:03.102 1045-1045/? V/UlpEngine: handleNetworkLocationUpdate. lat[removed]lon[removed]accurancy 19.732
11-26 20:03:03.102 1045-1045/? D/Ulp_jni: send_network_location.
11-26 20:03:03.105 1045-2262/? E/LocSvc_libulp: E/int ulp_brain_transition_all_providers(), no QUIPC/GNSS transition logic run due to both engines are OFF
11-26 20:03:03.107 1045-1132/? D/LocationManagerService: incoming location: Location[network [removed],[removed] acc=20 et=+1d6h15m41s881ms {Bundle[{networkLocationType=wifi, travelState=stationary, noGPSLocation=Location[network 46.599326,14.313926 acc=20 et=+1d6h15m41s881ms {Bundle[mParcelledData.dataSize=240]}], nlpVersion=2023}]}]
11-26 20:03:03.109 26890-26890/? D/WiFiOffLoadBroadcast: Not supported operator for automatic switch
11-26 20:03:03.118 2911-25111/? W/ctxmgr: [ContextSpecificAclFactory]LocationConsent failed, ULR opt-in status is: false, account#-2116008859#
11-26 20:03:03.118 2911-25111/? W/ctxmgr: [AclManager]No 2 for (accnt=account#-2116008859#, com.google.android.gms(10005):UserLocationProducer, vrsn=10084000, 0, 3pPkg = null ,  3pMdlId = null). Was: 2 for 1, account#-2116008859#
11-26 20:03:03.144 2911-25111/? W/ctxmgr: [ContextSpecificAclFactory]LocationConsent failed, ULR opt-in status is: false, account#1995265525#
11-26 20:03:03.144 2911-25111/? W/ctxmgr: [AclManager]No 2 for (accnt=account#1995265525#, com.google.android.gms(10005):UserLocationProducer, vrsn=10084000, 0, 3pPkg = null ,  3pMdlId = null). Was: 2 for 1, account#1995265525#
11-26 20:03:03.167 1045-2006/? D/WifiService: releaseWifiLockLocked: WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@45a441e}


text:
Google Photos syncing stalled and draining battery
I've got a Sony Xperia Z. A couple of weeks ago a Google Photos notification came up saying that 1790+ photos have not been backed up to check settings and update storage.
The settings hadn't been changed at all and I still have 2gig available storage.
I could manually sync photos by selecting them in Google Photos, but the automatic syncing no longer worked.
Around this time the battery began to drain a lot faster than usual and the UI got very laggy. I thought that as the phone is over 3 years old the Operating System might need a refresh. So I installed Cyanogenmod 12 (yuga) on the phone and reinstalled my apps.
I have repeatedly deleted the cache/app data on Google Photos.
Going into Google Photos > Assistant it shows the message:
Backing up photos
1823 items left

Even left plugged in overnight no sync progress was made. The battery is draining faster than usual (up to 10% an hour during normal usage) and Google Photos is showing as using the most battery power (even though it appears to be doing nothing).
Any ideas about what is going on and how I can fix this issue? Ideally I'd like all my photos synced again.

The Google Photos app updated this morning (21st July 2016 to version 1.24.0.127588984) and the backup/sync has restarted and is showing visible progress under "Assistant".
So it looks like it was a problem with the app rather than settings/ configuration at my end.


text:
S5 Note, locked, finger won't work, forget password
I DO NOT want to lose my data/photos!
Finger won't work
Forgot back up password
Never set up Samsung acc't
Can't access phone via Google/Gmail

It's not ideal but if there's no better suggestions it might be worth removing your sd card and seeing if your photos are there.

You will have to reset your phone. You can try recovering photos from any data recovery app. No other way as you have no backup of any sort.

If you have custom recovery, you can at least do a nandroid backup then reset your phone. There are apps out there on play store that restore apps from nandroid backup. I have not tested those apps, but am aware they exist.


text:
Restoring 'bloatware' on a Samsung Galaxy S7
I have rooted and customised my phone and I am loving it. I just realised that I have removed without backing up a few of the Samsung bloatware apps (notably the Samsung Keyboard). Is there a simple way to restore these original apps? It's not a great concern unless down the line I need to reset the phone. I am pretty sure the setup wizard will want the Samsung Keyboard.
EDIT - before posting this I should have looked myself. I have found the Samsung Keyboard APK file and apparently can load that.

Are you still looking for other bloatware? If I'm not wrong, they should be easily downloaded on Samsung app store.

Thanks, I will look that up. I managed to load the keyboard, but while I am doing this I will save the other packages for restoration.


text:
Odin not working - Samsung S3 Mini GT-I8200
I tried to flash I8200XXUAPB1_I8200OXXAPC1_I8200XXUAPC1_HOME.tar.md 5 from Sammobile on Odin latest version and it failed... I also tried to reinstall the drivers, reboot PC and I also tried other odin versions like : 3.7 3.9 , 3.10 but still... no luck.
So I need help here
Screenshot :

It looks like you only tried the md5 file ... An md5 is a calculation of the size the rom is, This is so you can check if you have downloaded the full rom or just half of it..
I suggest you try to flash the actual TAR file, Then the program will read the md5 to see if it's a complete rom ...
If it calculated that the md5 is "lets say" 500001 and the md5 file you downloaded says the md5 is 500002 ..
it can see that the rom is not complete or either it's not an original rom with the value of 500001


text:
Can Google Drive be deleted from a Samsung Galaxy Express?
I have a Samsung Galaxy Express phone running Android 4.1.2
Is there a way to delete Google Drive from the phone [without rooting it]? In the Application Manager, there is no DELETE button for Drive. The only buttons are to FORCE STOP and UNINSTALL UPDATES.

Sorry, apart form rooting it/installing a custom ROM, there is no way to remove system apps. You can, however, try to uninstall all updates and see, whether you are able to deactivate it.

You cannot "delete" Google Drive without rooting the device, but you can at least disable the app or force stop it which is like deleting it except that you will not get the disk space that the app is using up back.

I don't beleive so. Drive (I beleive), along with Gmail, Maps, etc is a required app that Samsung must include with their phones, and it can't be uninstalled - at least not easily without the likes of rooting.

You're right, but no need for "believing" here, Nucleotide – the matter is pretty clear: If you see a button labeled "uninstall updates", that's a system app which you cannot remove without root powers (user-installed apps never have that "uninstall updates").

If you see a button labeled "uninstall updates", that's a system app which you cannot remove without root powers. User-installed apps never have that "uninstall updates" button, for a simple technical reason:

a "system app" has its original .apk file installed on the /system partition, which is mounted read-only. If it receives an update, it thus cannot simply replace its original .apk – so the update gets placed on the /data partition (along with the user-installed apps).
a user-installed app gets installed straight on /data – so if there's an update, it replaces the originally installed .apk.

Hence, by the simple existence of a button labeled "uninstall updates" you can tell that's a system app. You then can push that button: after uninstalling updates, in most cases it changes its lable to "disable". Push that button again, and the app is "disabled" – i.e. doesn't turn up in your app drawer, on your homescreen, or anywhere else except for Settings › Apps (where you could re-enable it when needed). That's the closest you can come to uninstalling without rooting your device.

Does the downvoter care to explain what's wrong with this answer? I'm always willing to consider critics and learn from them – but for that I need facts :)


text:
google hangouts gives wrong location
I logged into google hangouts at my mothers house, on her tablet, through her wifi. How can google give a address to a house eight miles away?

It happens only when we share location without letting GPS find our exact location, generally before sending location you are supposed to wait until the location is clearly visible to you and its exactly where you're sitting.
You can share your location or where places are located with any of your conversations.
To do so-
On your Android device, open a new or existing Hangout.
Tap Location Insert location.
Type in a location or address: In the top right corner of the map, tap Search .
Find your current location: In the bottom right corner of the map, tap Location Insert location.
Tap Select this location. The location will send immediately.


text:
Reverting a Google Transaction
My daughter has accidentally purchased a stack of coins from Google Play Store for a very heavy amount. Is there a way to revert this transaction?

Contact the Google Play support, they usually handle refunds without any problems.

Use this form to submit a refund request from google - https://support.google.com/googleplay/contact/play_request_refund_apps?ctx=about_refunds_on_google_play&rd=1
In most cases google does give you your money back but you need to explain them about the accident, the best is to clearly state the issue and letting them know the act was done by a kid so that you can actually make a point.
I got the same situation quite sometimes back, it took about 30 days to get a reply from google support but eventually i got the refund. :)


text:
i need help for my samsung galaxy note 4
Does anyone tried or knows how to root a LOCKED Samsung galaxy note 4 exynos versions without changing or replacing the stock firmware safely? The reason is, I just want to install the galaxy s6 or s7 theme on my note 4 just to change the user interface for a new look. For example like changing the orange color sms interface. However, I don't want to use any third party sms app.
Model number-  SM-N910C
Android  version-  5.1.1 lollipop
Android security patch level-  2016-07-01
Baseband version-  N910CXXU1COJ5
Kernel version-  3. 10. 9-6035384
dpi@SWDD6014 #1
Wed Jul 6 18:32:42 KST 2016
Build number-  LMY47X.N910CXXS2CPG1
References- http://androidflagship.com/12039-install-galaxy-s6-theme-engine-on-galaxy-s5-s4-and-note-4
http://www.androidsage.com/2016/05/04/download-samsung-galaxy-s7-apps-and-features-for-note-4-5-s6-more/

Have you checked How To ROOT for NOTE 4 (ALL NOTE 4 versions) - LOLLIPOP 5.1.1 WORKING

yes but i am not sure yet if it will work on my build number- LMY47X.N910CXXS2CPG1.

i am referring on this build number- LMY47X.N910CXXU2COJ5 on the download file which is not match on my note 4 build number- LMY47X.N910CXXS2CPG1

should work fine


text:
Unable to paste files on sd card on ubuntu
I am unable to paste files on SD card of my phone connected to Ubuntu pc in MTP mode.
When I try to paste files, it shows the following error.
There was an error creating the directory in mtp://[usb:001,004]/Card.

Have you tried the suggestions on 14.04 Cannot create/delete/manipulate files on my Android device via USB? These may work :)

tried that,, but nothing works..

If Linux thinks the card's filesystem may be damaged (i.e., wasn't removed safely/unmounted cleanly) then it will force it to mount in read-only mode.
If you are fairly sure it's OK, you can remove the card from the phone and put it in a card reader, then force it to mount in terminal (assuming it shows up as /dev/sdc1, and you make a folder /mnt/usb for it):
sudo mount -o rw,nonempty /dev/sdc1 /mnt/usb

Try that. If it works for you, be sure to unmount it properly when you are done. Next time you try to access it through your phone you should be fine.
If not, you may want to check that your account has permissions/group memberships to appropriate groups (or cheat and run Nautilus with sudo).
Good luck!


text:
Dialer, Contacts and Messenger apps closing automatically in Oneplus X
Since a week, the Dialer, Contacts and Messenger apps have been crashing frequently whenever I try to open them. But after few hours after crashing somehow they start working normally. I have tried clearing the data and cache, tried resetting the phone, installing third-party apps for making phone calls and messages. But even those apps are crashing, if they are related to making phone calls and messages. I tried wiping the data and making a hard reset, but still the problem persists. So please help me solving this issue. Thanks in advance.

I had one plus 1 back in 2015 and it was really good but with age it started showing similar issues. I took it to the service center and they said the problem is with OS and they are going to format and reinstall.
Luckily i got the upgraded OS but it didn't really help me, after 1 month i started facing the same problem then i visited the service center again and finally they end up replacing my handset to a new one.


text:
Place Osmand maps to SD card
I have Osmand running on Huawei Y560 with 5.1.1. Osmand was running in internal storage. I have performed "move to SD card" operation. Currently maps folder is set to /storage/emulated/0/Android/data/net.osmand.plus/files. Looks this folder is in internal memory anyway. I'm trying to change folder to /storage/sdcard1/osmand , but Osmand complains that it can't write to this directory. How to place maps to external card?

Simply go to

OsmAnd settings, General settings (to configure common settings for the application)
Under Miscellaneous, Tap Data storage folder, there is a pop-up info to ask where you want to store your Maps data.
That's it.

Selecting "Storage 2" or other pre-definded storage-names concerning the SD-card does NOT help, if Android or whoever insists of the real name of the SD-Card (which may be e.g. "22E-23D..." and not simply "extSDcard" or "storage 2").
You can get this name of your SD, if you look in the properties e.g. of a jpg-file which is stored on your SD-Card. If you look closely on the different items of "properties", you will discover "details" (or some item named similiar to that). There you will find the path to your jpg-file and in the path-name you will see - at last - the real name of your SD-card.
That's it.

unfortunately did not work for me :(

Both of the above answers did not work for me. But today - just by chance - I came across this discussion here on github:
https://github.com/osmandapp/Osmand/issues/1838
Some people in there are mentioning problems they had when the app itself was pushed to SD. I had a look, and indeed my tablet's "move apps to SD" feature had moved OSMAND to the card. After I had moved it back I could select "Multi user storage 2" (in German: "Mehrbenutzer-Speicher 2") in Osmand's settings. This was the only option really working, and since it did I didn't bother going through more experiments. All files are now stored below
/storage/[sdcard-ID]/Android/obb/net.osmand.plus

Hopefully that stays as it is now

After having moved the app to the SD card via the app preferences (as you did it already) I was able to select "Interner App-speicher" (which should translate to internal app storage) which also showed a path to /mnt/expand/.../user/0/net.osmand.plus/no_backup which is where my external sdcard is mounted. So I assume that the internal app storage is on the external sd card as soon as the app is moved there. Also the free storage was then displayed correctly. osmand 3.0.4, android 6.0.1.


text:
Since which Android version does it detect internet connectivity on Wi-Fi?
For a project I am working on, I need to connect the phone to a WAN (without internet access) and to the 3G/4G network (to have an internet access).
On my phone (Motorola Moto M 3G, Android 6.0), the phone detect if the Wi-Fi has an internet connectivity and if it doesn't, it keep the 3G/4G for internet and the Wi-Fi for the WAN (which is what I want).
I need to find in which version of Android this functionality (Internet connectivity check on Wi-Fi) has been added to properly test it on the device. I have check all the changelog but I can't find any mention of it.

The "Smart Network Switching" is available since Android 5.0.
You can see it in the official changelog here (in "see all features", "connectivity" : «Improved network selection logic so that your device connects only if there is a verified internet connection on Wi-Fi»).

Well, @benjaminS: actually I was thinking about closing it for being off-topic (development related) – but the fact it's asking for is of interest for "normal users" as well ;) Apart from that: Yes, I 100% agree. Please "accept" your own answer in ~48h+ by ticking the check-mark next to it.


text:
How can I access cache files of an app?
I have a marshmallow device, it has custom ROM, and is obviously rooted.
I am looking for a way to access the app data, cache of other apps. As I am rooted, I guess this is possible.
I tried searching and found that Titanium Backup can access databases and cache files.
I am only able to save databases but not all the cache files.
So, is there any app to get all the cache files saved?

Take a look at my answer here on where an app stores its data. Cache is pointed out as well. And note that "is there an app for X" questions are off-topic here :)

Cache has its own directory, well that's good.

Though I'm not entirely sure what time they use "their own" cache dir, and what times the "global one" (/cache). // Btw, as per your answer: Is it acceptable to you to close this question as duplicate to the one I've pointed to? Your answer makes it look like that's what you were after.

Your answer is much more vast, and since I require only cache.
http://android.stackexchange.com/questions/46926/android-folder-hierarchy/46934#46934

Most apps store their cache data, files in the /data/data/ directory.
Starting from root directory "/".
For more detailed explanation, see @Izzy Comment.


text:
Google maps location inaccurate by over 200 miles
My phone keeps recording me as being over 200 miles south of where I am. I have looked up the location but it is not anywhere I have ever visited, Godalming near Epsom. When looking on my history it records me as being there more than once, however zooming in to that location it is actually just a track down a back Road. How can I prevent this?

Welcome to Android Enthusiasts, Anna! Please see these related questions with answers. Afraid the only thing you can do to prevent this is turning off location services altogether.

try checking if you have a vpn(virtual private network) running in the background. This can change your location far away from your actual place. Also make sure that you turned the location on to high accuracy. This will make it so that it google maps checks for location using your WiFi and data as well, in case the GPS in your phone is broken. It may also be that google maps can't register the specific location you are at. Check other locations and if all else fails try reading these related questions with answers  or check the google maps support page     . Here are also some alternatives to google maps. It would be good to know which device you are using to further troubleshoot the problem.


text:
Google Play auto-update of other apps causes YouTube video to pause
I have set my Google Play to automatically update apps when the phone charging and connected to WiFi. This is convenient to keep apps up-to-date.
The problem is, I may also want to watch new videos from my YouTube subscriptions right after I plugged the phone in to charge. But the auto-update kicks in and after each app update is installed, the video in YouTube suddenly pauses. I can tap Play to resume the video, but the video pauses again after the next update is installed.
It doesn't matter what apps are being updated. If there are 15 apps getting updated while I play a long video, the video will pause 15 times!
I should add that there is no update for YouTube app itself. The updates are for other apps and it doesn't matter which app is updated. Every single update causes a playing YouTube video to pause. YouTube doesn't quit and it's still on screen, just the video gets paused.
My device is OnePlus 2 running on latest stock Marshmallow. I'm not sure if this is device specific.
Is there any way to fix this?


text:
Recover Internal Memory Data + Moto G
Sad day for me, I copied some images to my phone from PC. When opened my gallery, not a single image could be seen. Everything wiped out suddenly. There were tons of photos (No backup).
My Moto G (1st Gen) is not even rooted, which makes it even more difficult to recover data.
Is there any way I can recover Lost/deleted data from Internal Memory?
Please someone help! I am in real trouble.

Hey Anuj, unfortunately there is no way to recover data if it has been already  deleted. If you used google photos they were most likely backed up to the cloud. Check thoroughly if there's anything left on your phone.

Please check with our data-recovery tag-wiki and my list of "undelete apps". Despite of what Devin wrote, you still might be lucky to recover your files.

@Izzy Can you please guide me?

@AnujMattóõ Not very far. As your device isn't rooted, we can't use "forensic methods" (which would be the safest, here: creating an image of the storage and carving that). I've never used any of those apps to restore data, so I cannot guide you with that – but they should be pretty straight-forward. Keep in mind: each and every write on the same storage where you want to recover data from increases the risk of that data being overwritten, so don't wait too long.


text:
How to see apps which were granted for root access in cyanogenmod or LOS?
It's not a problem to set root access in cyannogenmod.
But how to see which apps have root privileges?

I've found this in: Settings->Privacy->Privacy Guard->Advanced->Swipe right to the last Tab 'ROOT ACCESS'.

Good find – and thanks for sharing! I was already asking myself what I've missed, and never got the idea to look for it in "advanced". Well hidden it is!


text:
Transfer apps and settings to new smartphone
Moto G android 5.1
I have bought an Samsung S5 neo, running on android 6 Marzshmallow.
To have all my current apps (in Moto G android 5.1) with their settings in S5 neo, it is actually as simple as to sign in my google account with the new phone or what should I do the simplezst way?
For photos, videos and docs in general I already made a back up in google drive.
Many thanks

No, that might not cover all apps. Though the apps themselves might show up on your new device (provided you've used the Google Cloud Backup on the old one and decide to restore that on the new one), to have the apps' settings transferred, apps must explicitly support that (at least with Android 5.x that's still the case) – so from those which don't, the date wouldn't show up on your new device.
However, there is a way to transfer those data manually using adb backup. Details are described in answers to Full Backup of non-rooted devices. If you're not that "command-line savvy", take a special look at my answer on that, the app Helium Backup should make such transfers easy – especially with its full name being "Helium - App Sync and Backup" :)
Still, some apps might have "opted out" of being backed up (developers can specify that) – in which case you'd need root to accomplish a full transfer.

Wish i'd known this a couple of months back

@PaulGuiheen not being afraid of the commandline, I'm using my own little tool Adebar to generate scripts for that, then run those scripts to backup all my apps – and usually restore those backups manually (i.e. "only what's needed"). Side effect: a device documentation :)


text:
Prevent display to sleep while charging
I want to add a functionality option to choose in my android phone so that when the option is selected its display will never sleep when under charging condition.
What should I need to program my software without changing RAM?

In settings -> device information, tap the build no. a couple of times to unlock the developer mode. Go back to settings and enter developer options, enable it and enable "Don't sleep when charging" (or similar wording).

there is a setting in developer options on your phone that allows you to keep your display awake whilst charging it. It is enabled by going to settings, then scrolling all the way down to about. From there scroll all the way down to build number and tap it 7 times to enable developer mode. Next, click the back button then click on Developer options. Click the tick to turn it on (already on in default). Finally, turn the tick on for Stay awake and your phone will stay awake while charging.


text:
My SD card is missing 2 GB of space
i have a 16 GB samsung SD card (~14.8 GB of usable space). As i have a rooted phone, i tried to partition my SD card into a 2GB ext4 and rest as the FAT16 partition, using MiniTool Partition wizard.
After i applied the changes, the minitool partition wizard has been showing me only 1 partition of the sd card disk with only 12.8 GB of usable space (FAT16) (the ext4 partition is missing). Even my android can't find the ext4 partition on the SD card. I have been googling for hours, still can't find a solution.
Supposedly, it should show me approx 2 GB of unallocated space, but it is not.
Basically, 2 GB of space just vanished from my card. Please help!

Try to format the card in a device other than a computer or Android device. As example a camera that supports the card. This must solve partition / space allocation problems.


text:
Touch Screen for Clock
I want my alarm clock fade to black, but when I touch the screen will display the time. I want to this feature at night when my clock is charging on my nightstand. Is there a way to achieve this type of feature?

For that you can simply use any alarm clock – and enable Daydream with either the digital or the analog clock. That would result in exactly what you're asking for:

Configuring Daydream / Daydrem in action (source: HowToGeek; click images for larger variants)
That's what I'm doing with my "good old Droid²" which serves as nightstand. You can even define how bright that clock should be (it has a special "night mode"). That way you're totally free to use the alarm clock of your choice.

That's great, thx! I didn't know Daydream would work that way.

Glad you like it! If it fits your needs, please signal that by "accepting" the answer (ticking the check-mark next to it). Btw: That clock in night mode is really very decent (not disturbing at all). Other than you requested, it would be on all the time (think of it as a screen saver) – and when you touch it, it would turn the screen saver off. I still think it's matching what you're after :)


text:
Receive HTML MMS messages
Background
I have recently switched to Android from iOS and have run into a problem regarding receiving MMS messages on the phone.
Previously on iPhone, I was able to receive HTML MMS messages by sending them base64 encoded with the following MIME headers:
Content-Type: text/html; charset=UTF-8;
Content-Transfer-Encoding: base64;
Content-Disposition: inline; filename="html.html";

These would come in as HTML files which would thus be interpreted by iOS's built in browser upon clicking them.

On Android, sending the same messages with the same identical MIME headers results in essential HTML code being stripped out such as the <style> tags around inline CSS and the like, yet header levels (h1, h2, h3) are appropriately headers within the message, and numerous other strange behaviors.
I should note that on Android, the message comes in clear text form (except for the strange headers thing and hyperlinks), almost not even interpreting the HTML and furthermore stripping out some tags.
This is the behavior in multiple messaging apps including the new Google Messenger app.
So, to sum up... Android:

Interprets the HTML code as plain text (for the most part)
Interprets headers and hyperlinks (UPDATE: does not interpret hyperlinks) within the mostly plain text results
Displays a limited amount of plain text

Question
Is there a way to receive an HTML MMS message so that it can be interpreted in full by a browser on Android?


text:
Virus on an Android Phone from viewing Goolge Images
so earlier this evening I browsed through some playboy images on Google Images. I have to do a project on Women as a Sex Symbol. Now I just viewed the Images on Google Images without clicking any image to get a preview. Is there a danger that I could get a virus by just viewing Images of scantily-clad women or other content such as logos or cars or something like that. Only viewing the google images  and not clicking on a preview and all this on my android phone.

You should be fine. Browse away. Enjoy! ;)

Ok, thanks. Just wantes the assurance of someone else.:)


text:
Is there a way to automate data toggle on Galaxy S7 (Edge)
I recently bought a Galaxy S7 Edge. I've meticulously gone through settings for notifications, sync, permissions to eliminate things doing stuff in the background as much as I can find, but none of this makes much difference to battery life. The only decent difference to battery life is made by manually switching data off before locking (and on, if I want to do something that requires data, after unlocking)
If I leave data on all the time I get about 30 hours.
If I habitually turn data off when I'm not using the phone I get about 3 days (even with regular turning the phone on and data on to check emails, do internet stuff)
(Note: I owned an iphone 6 plus before this, and that lasted days with similar use,  without turning data off)
I've tried JuiceDefender  (Which I already own for an older phone) and Tasker. Neither seem to be capable of turning the data on/off. It seems Samsung's version of Android makes that ability unavailable to third party apps.
Does anyone know of a way around this, other than rooting the phone/OS?

I can't really help. All I can add is I bought Juice Defender only to realize it constantly crashes and throws errors. So yeah it does not seem to work on default Samsung ROM/Android. I will try another saver app and try to see if it works with these...

30 hours probably isn't too bad, especially if you use your phone a lot.
If you're in an area where reception is poor, this will also have a negative effect on battery.
There are apps on the Play Store ('Tasker' is one, 'Macrodroid' is another) that you can use to setup macros which perform certain tasks/functions based on the conditions you provide.
There may be a condition within one of those apps that state when the phone is locked, disable data. When unlock, enable it.

Thanks.  I tried tasker though and it doesn't seem to be authorised to turn data on/off, even if I manually give it as many permissions as possible.  I'll try the other one you mention.


text:
Gmail won't retrieve emails automatically after lollipop 5.1 upgrade
I have a Motorola Moto 4G 2nd gen and since purchase I have used google's gmail application for my email. Everything worked fine. I would receive emails very quickly without having to do much.
However, after some problems with my phone I upgraded to lollipop (5.1) and what a disaster. The biggest problem is it now doesn't automatically download my emails. I seem to have to visit "Social", or "Promotions" and then click back in to "Primary", which seems to trigger a sync and find my awaiting email.
How on earth can I fix this? I cannot spend my day having to do just between Primary and Social to check whether I have an email or not.

Your setting for Sync is disabled. Enable the setting for Sync in Status-bar.
Hope your problem may be solved.
thanks

You could try removing and re-adding your Google Account.
Settings > Accounts > Google.
Remove it, reboot the phone, and then go through the process of re-adding it.


text:
Should I turn off Galaxy S7 Fast Charging
My wife just got a Samsung Galaxy S7.  She said it gets really hot when charging the phone, even if its just a regular charger, not a fast charging charger.  Also, if she is using GPS in the car, the battery will drop even when plugged into the car.  I am trying to figure out if there is any benefit to disabling fast charging in the settings.  For example, using a 1.0 amp charger (i.e. a non-fast charger), will the phone charge less quickly, more quickly or the same if Fast Charging is disabled, compared to the default setting of fast charging on the phone.
Thanks

What I get from  you is :

You wanna know why the battery drains when using GPS despite having
it plugged in:

Basically GPS is heavy on battery, explained here.Using GPS,as has been stated in the article, involves connecting to around 3 or so satellites at a very slow pace(50 bits per second) which means her phone at the time was using a lot of power.Depending on other factors in play namely

what other apps were running, what charger adapter she was using and
  what cable was hooked to her phone from the car charger.

Let's start from the car adapter she was using. GS7 chargers are rated at 1.67A and 2.0A. Her car charger adapter most likely was rated lower meaning it wasn't producing enough power to sustain the power being utilized by the phone when functioning with GPS.

Note: Using a lower rated wouldn't explicitly mean your phone wouldn't charge it might charge extremely slowly or it might not charge at all or it might even discharge (this is when power output is less than 500ma)

Now if she happened to have been using a properly rated car charger, the cable she was using would most likely be the problem.Reference here.I don't want to go into that deeply open the link for more in-depth info but basically some knock-off cables don't take professional physics into plan and hence you get some 'wires' that were intended to charge cheaper phones not your Gs7 premium flagship phone. If you get low rated car charger + bad cable = no charging at all.Couple that with heavy power usage and you're basically doing more damage to your battery than helping it.

Why her phone gets hot when charging(both during fast charging and
normal charging)

Well basically this is simple physics. P=IR^2 i.e Power=Current(I)*Resistance *Resistance(R^2) you're battery has internal resistance that's a constant. When using your charger with a fast charger and with the option enabled on your phone you'd notice it gets hot fast this is because fast charger inputs more current and your phone is trying to get as much of this current as it can.A basic principle world over is no machine is 100% efficient. The battery will take as much power as it can but will also have wasted energy.This is from the power that has been produced but isn't taken up by the battery. This wasted energy is emitted as heat.Which explains why the battery heats up both with fast chargers and normal chargers.
Try as much as you can to refrain from using accessories that weren't provided with your phone at purchase.Also refain from using fast charging all the time as a hotter battery = shorter lifespan refference
The last link also provides cons and pros of fast charging.


text:
Borked my Cyanogenmod installation - please help! (LG Nexus 5x)
This was totally my fault but now I'm stuck. Any help would be greatly appreciated.
I just bought 2 nexus 5x phones and planned to install Cyanogenmod 13 on each. I succeeded on the first attempt but this is what happened on the second:
I forgot to re-enable USB debugging after unlocking the bootloader but managed to proceed with installing twrp and vendor.img. When it came time to push (adp push) cm13 to /sdcard, adp gave me this error: "adp: error: connect failed: no devices/emulators found". "fastboot devices" shows that the phone is connected and the recover mode screen shows fastboot mode. (install instructions: https://wiki.cyanogenmod.org/w/Install_CM_for_bullhead).
I can get into twrp but trying to boot the phone normally does not work. I get an error saying that the device is corrupted, and then the boot hangs at the weird google animated logo. The screen never shuts off and the animated logo just keeps going around and around.
I can't do a hard reset because I keep ending up at twrp when I try to follow the hard reset instructions.
What should me next steps be?
Thanks.

Flash it again using twrp. Also you can do a hard reset with twrp to

I can't because I don't have CM13 on the device - I was trying to put it there using adb when the whole thing fell apart.

You have ended up in a bootloop... But that shouldn't be a problem, just flash CM 13 again. You don't even need to have adb access, you can just put the files on an external SDCard (using a card reader for your PC), put the SDCard into your device and flash the files using the recovery.

I thought about that, too, but the Nexus 5x doesn't have an SD card slot.

Thanks for the responses.  As usual, a good night's sleep and some googling helped me find a solution:
I followed the instructions from Google itself to completely reinstall the factory image:
https://developers.google.com/android/nexus/images
Lack of hyperactive kids (the root cause of my initial mistake) allowed me to carefully follow the instructions.
Now my phone is back in its original state - except that I chose the factory image that matches the version of Cyanogenmod I want to install - and I can start the process over.
Thanks again.


text:
Why does my Android app say "This app is incompatible with all of your devices?" on the store?
I've published my app.  It's installed on my Nexus 5X.  Play console says 12,000+ devices compatible.  I've updated my gradle files.  People that install the APK say it works no problem.  What could be going on here?  Thanks!