LineageOS fail to update I've a wileyfox swift (crackling) and I've installed LineageOS 14.1-20170213-NIGHTLY-cracking + GApps through TWRP 3.0.3.

The problem is that when I try to update it through the UI or manually (downloading the .zip file from https://download.lineageos.org/ and installing it from the recovery) TWRP returns an error (status error 7).

I tried to downgrade TWRP to the 3.0.0 version but nothing changed.

How can I update my phone without wipe everything?

The last update is ok. Now the sysem is updated and everything works.
I think it's magic or someone has made an error


How can I use my device as a wifi keyboard and trackpad for my computer? I have three different MBP's that run XBMC off and on, connecting to our home theater systems.  Is there an app that I could install on my droid and the mac's that would allow the droid to act as a keyboard and trackpad when the MBP is connected to the TV?

I know about XBMC remote and it's great, however I'd also like to be able to use the machine for web browsing or basically anything I could do with it in my lap (albeit slower with a small keyboard).

Gmote will let you control your computer over wifi via your Android phone.  It basically treats it like a keyboard/mouse.


During Android Encryption, I lost my device keyboard and OS ask me to enter password? I have Android phone with OS version 4.4, I start encrypt my phone and it started very well. After an hour and restringing several time the device prompt me to "Type password to decrypt storage".

Her is the problem begins, I suspect the system keyboard won't work because it was disabled in settings yesterday and set google keyboard for normal usage, and now I unable to enter password.

Can anybody tell me how can I enable my default keyboard or enter required password ?

First, have a look at the answers to this question.

If none if them works for you and you have access to the recovery, I think you can only wipe data / factory reset your device.

If you don't have access to the recovery, you can still factory reset the device via fastboot with fastboot erase userdata.

Factory resetting your device will delete your data though.


Can Google Pixel C tablet Android OS update every version? If there releases a new android version, can google pixel c tablet update that soon by user himself from system control tool?

Is it the same as iOS update?

In practice an Android device can only be updated by an update provided by the device manufacturer. This is not the same as an iOS update.

An update provided by the manufacturer contains a great deal of device specific code and data which the android version provided by Google does not. Each new version of Android has minimum hardware requirements which older hardware may not meet. Manufacturers receive the update in source form and add the code needed to interface with their hardware. They may also need to customize the Android code according to their own requirements.

In some cases it may be possible to update from other than the manufacturers update but this is for experts only and would require a great deal of time and effort.

This is one of the unfortunate realities of the Android market. Manufacturers would much prefer to sell you a new device than update your old one.


WiFi Connection Problem! I have an an android phone. The problem is that when I connect my phone, which is android Jelly Bean, to my Wi-Fi connection it works and the internet connection doesn't have any issues.

However, when I open my PC the phone loses the connection and no internet is established on the phone, while it works at the same time, very good on the PC and any other phone connected on the Wi-Fi. I hope you help me find the cause.

I tried to find the issue but I couldn't!
Thanks in Advance

It seems that you have allowed only one device to be connected at a time in your WIFImodem, kindly check that there is an option in your modem of connected devices in which you have selected 1, change it to as maximum as you can and then try


How do I get rid of two lockscreens? I have a Samsung Note 8. I took my phone to the store yesterday, and now I have a second lock screen with ads. I have gone through all of my apps that I dont regularly use, and have tried cleaning up junk files off of my phone, but nothing has worked. Does anyone know a way to get rid of this screen?

That lock screen (the one with ads) is usually from a cleaner app like clean master, 360, baidu etc there should be an On and Off switch inside the app or you can just uninstall the app
If you couldn't find it tell me the name of the app i tell you where it is


How can I see all installed packages, including those that have been hidden? Recently I used ADB to hide a bunch of packages on an old phone (Verizon 2013 Moto X) I intend to use for development. I hid most of the phone-related packages, including the SIM Toolkit and the telephony service, but now a dialog saying that "Phone has stopped" shows up continuously whenever I try to use the phone. I've tried to unhide most of the ones I hid, but hidden packages don't appear in the output of pm list packages. Is there any way to see all of these packages and/or unhide them? I'd rather not have to factory reset it.

If you run adb shell pm you would find many options and parameters for pm. One of the parameter is -u to show uninstalled packages. (Hidden packages are treated as uninstalled packages.)

On an unrooted device, make a list of all the packages and then all the packages plus the hidden ones. Compare them and the uncommon entries in the second list would be the packages you are looking for.

adb shell pm list packages
adb shell pm list packages -u

As for rooted devices, search the string hidden="true" in the file at /data/system/users/0/packages-restrictions.xml. You would see the corresponding package name.

Tested with Stock Android 6.0.1.


adb push ... Permission denied I am trying to push a file to a directory on a physical android device, but I am running into the following error.

>adb push data.db /data/data/com.me.app/databases
failed to copy 'data.db' to '/data/data/com.me.app/databases/data.db': Permission denied

I believe adb has sufficient privileges.

>adb root
adbd is already running as root

Here are the permission details for the path: /data/data/com.me.app/databases

drwxrwxrwx system   system            2014-01-14 10:31 data
drwxrwxrwx system   system            2015-05-23 16:06 data
drwxrwxrwx u0_a224  u0_a224           2015-05-23 15:26 com.me.app
drwxrwxrwx u0_a224  u0_a224           2015-05-23 15:30 databases

I am not sure what to do here. Perhaps I am going about this the wrong way, but I just want to push the data.db file into the /data/data/com.me.app/databases directory on the device.

Does anyone know what I am doing wrong or what I should consider? Thanks.

Edit: I found a work-around: AirDroid allows me to upload the file, but the permissions on the file are set to this:

-rw-------

Performing the following commands solves this problem (from Windows 7 command prompt).

>adb shell
# su
# chmod 777 /data/data/com.me.app/databases/data.db


Wifi automatically turns on persistently, despite configuration I am using a Sony Xperia L (C2104) with Android 4.2.2 (Build number 15.3.A.1.17).

I can only find one setting that would turn on Wi-Fi automatically, and it is the "Location-based Wi-Fi" setting in the Power Management settings category. Of course, I have disabled this option, but I frequently find my Wi-Fi on. How can I fix this?

This problem might be caused by some third party application installed on the device. I faced this problem with quite a few applications like "Fast File Transfer", "Super Beam", etc. Applications that require to use the wifi-direct feature seem to create the problem. I uninstalled both the applications and the device wifi was normal again after a reboot.


How to get Google to appear when swipe left on home screen? I accidently turned off the setting that allows google to appear when you swipe left instead of cycling through the screens of apps. I unfortunately cannot now find that setting to turn it back on, even though I have done several searches on the settings app, and opened every setting, have not been able to find it again.

I have no idea what I did to make it turn on, it just came up and I wanted to see what it has done.

I have completed several google searches such as this one prior to my request. However I have not been able to find anything.

Where can I go to find this setting?

I have Android 7.1 on a Nokia 6.

Long press on an empty space on your home screen. Then select the
  settings at the bottom right. Then make sure the Show Google App is
  toggled on.

Credits: Swipe left for Google Now not working?


What's the process for installing a new ROM after I've just completed one? I have a HTC Incredible running 2.2, successfully used the unrevoked method and rooted it, used Titanium Backup to back up all apps and system data, and ROM manager to install and run CM7. ok, that's all done, but now i want to try Miui, is the process still the same?

What i mean is, i'd rather not reinstall all the apps as I want to try a new rom, but want to go back to CM7 if i don't like it.

How can i try Miui, then go back to CM7 if need be??

Assuming you installed ClockworkMod Recovery via Rom Manager app (or manually), you can do the following:

Install the Appbrain and Fast Web Installer apps.  Run Appbrain, sign in with your Google account, enable the Fast Web Installer from Settings, and perform a sync.
Download the ROM installation ZIP for MIUI and place it onto your SD Card.
Reboot your phone to Recovery mode, scroll down to "backup and restore", go in, and select the "Backup" option.  This will write an image of your phone onto your SD Card.  OS, your apps and settings will be saved.
Perform a full wipe of your device from Recovery by doing a "wipe data/factory reset", "wipe cache partition", and "advanced -> Wipe Dalvik Cache".
Select "install zip from card" option, and then "choose zip from sdcard" to flash the ROM zip that you downloaded in step 2.
Optionally, flash the GApps package, and any other files (refer to the ROM's instructions.)
Once the installation is completed reboot the phone, add your Google account, and set up the system to your lining (do not download any 3rd-party apps yet.)
Open the Market app, install AppBrain and Fast Web Installer again, and sign in.
Open the Appbrain app, and enable Fast Web Installer in settings again.
While still inside the Appbrain app, go to "Manage And Sync", press the Menu button, select the "More lists.." option.  Pick the list that was created for you in step 1, and press the "Add all apps" button.  This will queue up all the missing apps that you had installed on the previous ROM.
Go back once, and tap the "Execute" button.  After verifying the permissions, tap the Install button.  This will automatically download and re-install your apps.
Once the apps are installed, configure them to your liking.
Reboot back into Recovery, perform another backup, and reboot the phone normally.
Open the ROM Manager app, and tap on "Manage and Restore Backups."  You should see a list consisting of the 2 backups you just made, sorted chronologically.
Rename the first backup to "CM7", and the second to "MIUI".

You can now easily switch from CM7 to MIUI by simply restoring the corresponding backup.  Keep in mind that if you change anything on either ROM, you will need to perform another backup so that your changes are saved.


how to fix ioctl permissions denied error? I searched in lots of websites/forums but did not find a solution for this problem, and this site is last chance, this is problem:
This problem have several other users too.
my phone is Galaxy S7 Edge , exynos, Oreo 8.0 (Stock ROM), rooted with magisk latest version.
root works well in other applications.
In pentesting applications like csploit, Network Spoofer, WifiKill and others  root works well(grants permission)  but when start using options of app(for example, arp spoofing, network sniffer, MITM, etc) drops same error:
[ERROR] Unable to retrieve local hardware address libnet ( ioctl: Permission denied )
what to do? Can this issue fixed? or exactly which permission is it?

Also one interesting thing, when I installed old version of WifiKill app it worked - killed wifi connection.

finally, I solved this problem , it needed permissive selinux mode, so I installed custom kernel on my phone and everything works perfect.


Is it possible to use the 'Samsung Mobile Print' application with non-Samsung printers? In my Samsung Galaxy S, there is an Samsung application called 'Samsung Mobile Print'.

Does this application require a Samsung printer ? Or can it be used with other network or wi-fi printers too ?

It doesn't work with my HP Wireless printer :-(

At the moment Google cloud print requires a PC connected to the printer - hardware manufacturers are supposedly going to release printers with the software built in - but seeing as the software is nowhere near complete...it could be years and you'll need a new printer!

The HP printer has its own method for mobile printing though. HP have a system where you send a special address your documents as email attachments and the printer will print them.

The same printer works fine with iPhone directly. my wife just taps print and it prints her documents...

I think Android needs to get printing using existing standards ASAP.


Does a DNS server exists for android? Is there a DNS server (named, bind) I could use to solve my problem ? Should I use other solution ?

I do not need all bunch of bind features, just setting A records and an easy mean to add/modify/delete those records would be perfect !

More explaination of the goal: I want to use android as mobile java web server (thanks to project like i-jetty) and in some rare case redirect the request of clients (connected through wifi / mixed client)
Right now this solution is embedded on a macbook air but I am looking for lighter solution.

Just as Izzy suggested, I would recommend going to the play store. Here is what I found:

DNS Server

Thats really the only one available through the google play store. I haven't downloaded it for myself so I'm not vouching for it, but it might be worth a try.


Beta testing app without using Play Store I am interested to test Facebook Messenger beta version. In this case, Facebook suggests

  Join the Facebook Messenger for Android Beta Testers Google group: https://groups.google.com/forum/#!forum/messenger-for-android-beta-testers
  Allow beta downloads by clicking "Become a Tester" in the Play Store (you need to join the Google Group before becoming a tester)
  Download Facebook Messenger from the Play Store to update your app
  Turn on automatic updates, as the beta version of Facebook Messenger for Android will be updated multiple times per week

But it's not applicable to my case since my phones (running YunOS 2.9.0) don't come with preinstalled Google apps, like Play Store.

So, is there anyway I can get the beta version of Messenger?

No, not officially, although you may be able to find the APK on a collection site like http://www.apkmirror.com

Developers often use Google Play to manage beta distribution because it gives them some semblance of control over the distribution and upgrade of the application. Often beta applications are not available outside of this distribution channel.


Backup AND RESTORE of viber messages Is there any free solution for backing up an restoring viber messages?

Backup Viber messages

You can backup Viber messages using the built-in option by following the steps from this official Viber support webpage: Viber | Create a backup file of your messages .

  Open Viber.
  Select More options.
  Select Settings.
  Select Calls and messages.
  Select Email message history. Tapping this option will create a backup file of all conversations present in the chat history.
  Once the backup file is created, select the application through which you would like to email it and send it to yourself or any other email

  Messaging history backup is available on Android and iPhone only.

Recover deleted Viber messages

Login to your email account and download the attachment (backup file) to your SD card. Once you’ve done so, the backed up Viber messages cannot be restored onto your device directly.


Causes and solutions "UIDs on system are inconsistent... I'm feeling lucky"? HTC One Mini 2/Android 4.4.2/HTC Sense 6.0/Not rooted/4 weeks old

A couple of days ago i encountered this message on my phone:

UIDs on system are inconsistent

You need to wipe your data partition or your device will be unstable

[I'm feeling lucky]  (button)

...and then ensued a long day of tech support & research which i wanted to share here.  Web searching did not solve my problem directly, and while i can add a couple of insights that i didn't find elsewhere, i don't really have an answer.  Many of the information i found was from people who had rooted their phones, and therefore not directly relevant to me - i am approaching this from an un-rooted phone

.

Symptoms/history

Phone crashed while browsing HTC's blinkfeed, and restarted

It limped along for a few minutes and restarted again

Phone then gets stuck at white HTC/android screen and remains there (left for several hours) - ie cannot power off, screen remains on

Later, i discovered that you can proceed beyond this screen by ejecting the sim card - this then shows the lock screen (active background, time, date etc) but on top of this is the message UIDs on system are inconsistent... and one button which says "I'm feeling lucky".  Whether you can press the button seemed to be allowed if you changed the position of the sim card - (ie if out, push it in, if in, eject it).

After dismissing the strange message, i am left with a black screen with notification bar at the top, and navigation bar at the bottom.  No apps; no widgets.  The notification bar was working, in that i could swipe down, enter settings etc.  Further, if i received a text, i could then access my messages via the notification bar, but could not reply to a text because the keyboard did not load.  Having used an app like messages or settings, i could switch between them with the bottom right navigation button as usual.  I found that i could receive phone calls, and once done so, i could dial others by switching back to the phone app.  This about sums up the functionality of the phone.

The other comment was that the phone could not be switched off.  Holding down the power button and selecting power off simply resulted in a restart of the phone.

After further investigation with HTC technical support i found i could restart the phone in safe mode, but exactly the same process happens (ie restart, ejecting and re-inserting the sim card and agreeing to the "I'm feeling lucky" button to get back to the main lock screen).

HTC technical support wanted me to do a hard reset: this can be done in one of two ways, by software (an option under settings>backup & reset>Reset phone) or by hardware (holding down volume-down and power during start up.  The software method had no effect on the described behavior.  We tried this several times.  The hardware method was unsuccessful, the phone simply restarted in safe mode.

HTC technical support finally admitted defeat, unable to think of something else suggested sending it in for repair.  Vodafone tech support also offered to send a pack for returning the phone for repair.

All comments/further info from the community will certainly be interesting, but please also see below, as i did manage to avoid sending back the phone for repair as I did eventually succeed in the hard reset.

A Solution

On reflection, my thoughts were 1) this seems like a software problem, possibly malware of unknown origin and 2) it seems to be interrupting the power-cycling of the phone.

Therefore, before committing to sending the phone out to either HTC or Vodafone to look at, i tried my own hard-reset of the phone.  Without access to remove the battery, i simply discharged the battery completely (wifi,GPS,Bluetooth,NFC,active call).

Now, plugging in the phone to charge, i found that i could enable a hard reset (holding down power and volume down) i get a basic text interface with option to do a hard reset.  This was sucessful.  Clearly this is a much stronger version of the factory reset than via the menus.

My phone is now set up again and working happily, and i dont need to send if off for "repair".

Possible causes

My feeling is this was a piece of malware, although i have no direct proof.  As a resource to assist others, below i list the most recent apps i downloaded.
/Trigger: SMS Plugin/NFC ReTag FREE/No One Dies/Rightmove Property Search/Contacts Optimizer/Google Keyboard/AnyTag NFC Launcher/Proxy Settings/Aix Weather Widget/Bright Weather/

In hindsight, i accept that some of these are from lesser-known sources, albeit all acquired via the play store, i didn't pay close attention to the permissions.

Summary

My primary motivation for posting here is because i failed to find useful advice yesterday when i needed it.  Many others have posted about this message, some also suspecting malware, but most say a factory reset solved the problem.  I hope to add to the situation the following new pieces of information

1) Eject and reinsert of the SIM card to proceed when frozen

2) Running the battery down as a method of doing a hard reset, if the other method fails

3) A list of apps i recently downloaded, might help point towards a possible source of malware, albeit useless until compared with other users who encounter the same problem.


How to make android prefer mobile data when wifi signal is very weak When I leave home or the office there is a ring around it where I simply have no connection at all. This is because the WLAN network from my router at home or the one at the office is detected, but the signal is so weak that no useful data flow can occur.

Is there a way in which I can make android use the mobile data network when the WLAN signal strength is below a certain strength so that there isn't this annoying "dead ring of no connectivity"?

Googling this problem or searching the app store keeps giving me solutions for the exact opposite.

thanks in advance

From Android 5 onwards, there's a setting in the Developer options called Aggressive WiFi to mobile handover.

Enabling this setting makes your phone switch to mobile connection when the WiFi signal is too weak.

You can also take a look at a tutorial with screenshots.


Battery Status Indicator Error? Okay so I have a very interesting story to tell....

Here is what happens... I charge my phone at night, wake up in the morning, pull it off the charger, about 9-10pm it drops to about 15%, which isn't bad compared to another UN-named phone I use to use, but here is where things get interesting:

It will sit at 15% for 2-3 hours without losing a single percent, so I thought why not reboot my phone, and what happened shocked me... I expected it to suddenly be at 1-5% after reboot, but it wasn't, tonight it was at 33%... yes you read it right, it went from 15% to 33% after a reboot.

This isn't really a big issue, but I just wanted to know is this normal behavior, a software bug? or is my battery possessed by some weird battery demon?

Anyways has anyone ever experienced this or know of any way to possibly make the indicator more accurate?

Any suggestion would be helpful, oh and I have tried letting it run all the way down then charging it completely back up to 100% and this seems to have no effect...

It is Android 4.1.2

If you are rooted you can try this.

In cwm recovery, advance -> wipe battery stats.
Reboot and drain the battery fully
Recharge the battery 100 % without any interruption.


How can I record sound before outputting? I have some apps that I want to record the output sounds locally before outputting to speaker, Bluetooth or any other output.
So I get clean unadulterated audio, before any audio output mods.

My devices are rooted, some have custom ROMs.

Is there a way to do this internally, without any programming/coding knowledge? Can this be accomplished? Preferably with out hooking to PC as that prevents local saving.

include steps.
include references

Please excuse lack of tags, limited on choices.

(At the time of writing,) I've tried researching for 3rd-party apps that can record internal audio only, but surprisingly, I didn't find any. The only app that I found which can do this is SCR Screen Recorder, which just like its name, is actually a screen(+audio) recorder. So, while this app might be an overkill, it's worth to try.

Note: you need root access for internal audio recording. Also, the internal audio recording was said to be an experimental feature, which might not work on all devices.

Download and install SCR Pro (not SCR 5+ Pro, which doesn't need root, but only works on Lollipop and doesn't support internal audio recording)
Open the app, it will display an overlay buttons on the screen.
Open the SCR Settings (middle icon, the one with cog icon)
On "Audio" header, tap Source and select Internal
Optional: if you don't need to record the screen, you can select the lowest setting on "Video" header to decrease the filesize. (e.g. 426x240 resolution)
Open the app which you want to record the audio
Adjust the volume from the Android device (important!).
Note: since SCR use the same audio stream as source, the volume when the app plays the audio is used as the input. This means that if you don't record the audio with 100% volume (e.g. 70%), the loudness of the audio will decrease when you play it (e.g. if playing the "recorded audio on 70% volume" with 70% volume, you will hear the audio in more-or-less 50% volume compared to the original audio)
Ideally, if you are using external speaker, you can set the volume to 100% in Android, and adjust the volume to comfortable zone on external speaker.
Optional: turn off any notification on all apps to prevent noise.
When you're ready, tap the Record button (first icon with orange color)
To stop the recording, you can either:

open the app once again (either from notification, or app launcher), or
turn off the screen for 2 seconds

Addendum by anonymous user:

With root:  When the settings have been configured to internal audio and notification icon is popped up, tap the home button (don't close SCR) and open any sound recorder. You'll see that it records the sound internally instead of with mic. (I've tried with 3rd-party HI-Q MP3 recorder, unsure about others..)


How to find out the maximum number of contacts that the SIM card phonebook can hold? I have searched and searched to find out how many contacts my SIM card can hold, but no apps are giving me the answer. Many sites recommended checking the size of SIM card which is printed on it. In my case it's a 64K card, but many sites say that it should support "around 250 contacts" or "usually 500 contacts".

Where or how can I get an authoritative answer?

European Telecommunications Standards Institute (ETSI) lays down standards for SIM

From 3GPP TS 21.111 version 8.0.1 Release 8 pertaining to 3G

  10.2.6 Number of entries : The specification shall support storage of at least 500 entries.

This does not mention the SIM storage size in relation to the number of entries

I was hoping to find a  correlation between size and entries and this is the only thing I could find.


Can YouTube videos be downloaded with subtitles for offline viewing using the app? I noticed that when I download a video in the YouTube app for offline viewing, subtitles are not included.

What do I need to do so that I can see subtitles while viewing a video offline?

With youtube-dl you can download all available subtitles from video. More details you can find here.


How to Bluetooth tether Motorola Droid 3 (Android 2.3.4) to HTC One I have figured out how to enable the HTC to share it's internet via bluetooth:

Mobile Network Sharing -> Bluetooth Tethering [checked on]

But I am unable to find a way to allow the Droid 3 to consume the internet via bluetooth. I can get the Droid 3 to broadcast using 3rd part apps, btu can't figure out how to consume.

Note, this Droid 3 is my old phone that I am still using in my car as I can't mount my HTC One for non-technical reasons.

This looks like a duplicate of another reverse tethering issue which is a duplicate itself, but the answer listed can't be found.

WiFi tethering may be a better option. On your HTC One, go to:

Settings > More... > Tethering & portable hotspot > Portable WiFi hotspot


Can I get .apk file of an installed app? I have deployed my apps .apk file on a Qualcomm device. Now due to my bad luck my laptop on which this app was developed got stolen.So i do not have my app code with me. However i have the device on which i had earlier installed my app.

So my question is, can i get my apps .apk file from this device? if yes, then please tell me how to get that.

Any help is appreciable.

Thanks,
Gaurav

It should be located at /data/app/.  You can access that directly if you have root.  If not, you will have to use adb pull.  For example:

  adb pull /data/app/myapp.apk C:\backup\myapp.apk

More info on adb: http://developer.android.com/guide/developing/tools/adb.html


Getting McAfee warnings despite not having McAfee? I own a Galaxy S10, and after the recent update I've started getting warnings from McAfee in my Chrome browser telling me sites I've been visiting for years are suspicious... except I don't have and have never had McAfee installed on my phone or browser. I've searched my apps and turned up empty-handed, and searching online hasn't helped either, so any idea what this is?

After further investigation it appears to be the digital secure app. I'm not sure why it says McAfee in the browser.


Why encrypt the device? Android 5 offers two encryption features:

Encrypt the device (phone)
Encrypt the external micro SD card

I understand the benefit of 2.: if someone takes my micro SD out and wants to use it on another phone/computer, he won't be able to see my personal files.

But I don't see the the benefit of 1. over a simple password screen lock: nobody can take the internal memory of my phone out of the phone itself. So what is the advantage of 1. over a simple screen lock with password + SIM code lock?

In which precise situation would a thief be defeated by an encrypted device whereas he wouldn't be with a standard screen lock with password?
(I'm not speaking about external micro SD for which I already understand the benefit of encryption)

To be more precise: is there a way for a thief of a phone with password screen lock but no device encryption to access the phone's internal data (let's say he doesn't know the password / cannot crack it).

over a simple password screen lock: nobody can take the internal memory of my phone out of the phone itself. So what is the advantage of 1. over a simple screen lock with password + SIM code lock?

Understand that encryption is used to protect the data from unauthorized access (device misplaced or lost or alike situations). If you are sure that the device would not fall into wrong hands ever, you don't need the encryption.

As for the quoted text: some devices have their bootloader unlocked; some others don't even have this concept (such as MTK devices) in which case a custom recovery (a bare-bone OS) can be loaded into the Android device which would grant complete unrestricted access to your data  if it was not encrypted.

Alternatively, if a PC has access to your device through ADB (think of Android versions prior to JB) than your data is available to that as well.

Some might even go as far as taking out the emmc or the type of storage in your SoC and use it somewhere else. What would your screen lock do if Android is not booted into? Nothing!

  In which precise situation would a thief be defeated by an encrypted device whereas he wouldn't be with a standard screen lock with password?

A custom recovery now cannot gives access to your data since it remains encrypted. The thief however can brute force the encrypted partition. Depending upon the power of the machine(s) they've got they may be able to find the key to decrypt the data.


How does goomanager work? I want to install custom ROM on my HTC One XL. I have unlocked (not rooted) the phone following the unlock process on www.htcdev.com. Now I installed goomanager which supposed to let me install TWRP recovery.

I already downloaded openrecovery-twrp-2.3.0.0-evita.img and copied the file to my mobile but it doesn't seem to me that I can use this downloaded file.

More over it seems to me that I can directly use goomanager to install custom ROM and not to do it via TWRP as I read somewhere.

Q1) Can I install files that I downloaded using my computer and copied over to my mobile or goomanager will always download them for me?

Q2) Do I have to install TWRP to install custom ROM (cm10)?

Q3) Can I use goomanager to install custom ROM?

Though I wouldn't usually recommend device specific websites but since i'm not a One XL user I cannot verify its authenticity.
Next time when you ask questions about custom roms please mention whether you are already rooted, locked or unlocked bootloader(htcdev.com only unlocks your bootloader without giving you s-off). Try this to just get an idea of one of the methods to install a rom.

http://onexroot.com/one-x-roms/how-to-install-custom-rom-on-rooted-att-htc-one-xxl/

goomanager is a service used by developers to upload their roms into one location and users can check for available newer versions of existing roms. Follow the regular clockworkmod / twrp procedures to flash your rom.

You can always copy roms that you downloaded with your computer onto your phone.


Why does Android offer updates for all the gmail accounts on the phone? I have multiple gmail accounts on my phone and I get Market and other updates listed for each of these accounts. That is simply annoying.

How can I disable that and instead set one account as my primary account for updates and such like?

You probably used different Google accounts for different apps. Switching accounts will show different apps.

I guess all you can do is uninstall the apps from one account, change accounts to the one you would like to use and then reinstall them.


Use Google Talk with multiple accounts (Motorola Droid, Android 2.2.2)

My new employer uses Google Apps to manage e-mail etc. They're also big into instant messaging for intra-company communication.

On my device I have my personal account and have added my company account so I can use Gmail for either, have consolidated calendar, etc.

However, the Google Talk app is tied to my main (personal) Google account. I can't see a way to get it to use the company account or, better, allow both accounts to be active.

How can I use Google Talk with a secondary account?

EDIT: Looks like this is coming, according to Google employee Colin Gibbs, on this Google Mobile Support forum thread:

  Thanks for being patient while we work
  on this feature.  When we launched
  Android 3.0 (Honeycomb), we added
  support to Google Talk for multiple
  accounts.  We're currently working on
  bringing the feature to phones as
  well.

So it looks like it should work on a Honeycomb tablet, and they may be backporting it to Gingerbread phones (video chat over GTalk has just been enabled for 2.3.4, so they're definitely porting Honeycomb Talk's features back to phones).

Original Answer:
Not a great solution, doesn't do all the alerting and notifications in a way that's integrated with the Android OS, but the only way to do this currently seems to be to use the built-in GTalk client for one account, and access the other via the web page.

For a standard GTalk account use this URL to sign into the mobile webpage:
http://talkgadget.google.com/talkgadget/m

For a Google Apps Gtalk account use this URL to sign into the mobile webpage:
https://hostedtalkgadget.google.com/a/YOUR_DOMAIN_HERE.COM/talkgadget/m

Or use a second IM client for the second GTalk account, as suggested by Matthew Read.


Why can't I overclock a rooted Samsung Galaxy GT-I7500 beyond the default maximum 528MHz? I have a rooted Samsung Galaxy GT-I7500 running stock Donut (Android 1.6). I tried a couple of overclocking apps such as SetCPU and CPU Master, but none of them let me actually "over"-clock the CPU, because I can't set the maximum to be more than the default 528 MHz. I have read about speeds of 624 and/or 710 MHz possible with either the Galaxo custom ROM or GAOSP, but I want to achieve those kinds of speeds with stock Donut.

I've tried GAOSP b3 (Gingerbread) and Galaxo 1.6.3.4, but I prefer the feel of stock 1.6 (that's why I love my stock Nexus S running 2.3).

Is it possible to set the CPU speed beyond 528 MHz in my rooted Samsung Galaxy GT-I7500? How?

It is my understanding that some ROMs allow for Overclocking, whereas others dont. It depends on how the kernel is setup. I couldnt Overclock my Samsung galaxy s2 for example on the stock rom with it rooted. I could however once I installed Cyanogen. Perhaps that is the case.


How can I search the Google Calendar from the Android phone? I would have thought that Calendars would be searchable, but opening up the Calendar, and clicking on the search button searches websites via Google web search, but does not search my Calendar.

This is on a Motorola Photon 4G Android version 2.3.4 (not rooted).

How do I do it on the phone (it is possible from a desktop browser).

I have installed the Google Search app, and tried to add Calendar to the list of applications it would search, but there is no entry for Calendar.

On Ice Cream Sandwich, the search button is in the "..." menu:


How do I remove a review I've written from the Android Market app? How do I delete a review that I have written from the Android Market?

Somewhere in Google's issue tracking software someone has raised this issue (I've lost the link, sorry), and the answer given was that there is a "remove review" menu option when viewing the app in question in the Market application. The person asking seemed satisfied, however there is no such menu option on my phone (Android 2.2).

Nowadays, there's a Delete button on the Play website:

So, the remainder of this post is just in case things change again at some later time, especially as in November 2012 Google has made things worse, but also kind of solved the problem for existing reviews by removing your name:

  Google Play is now connected with Google+ to help you find reviews you trust.

  New reviews will be posted publicly using your Google+ name and picture. Your name on previous reviews will appear as "A Google User".

Also note that someone reported Issue 16483: Android Market doesn't allow removing an existing application's rating and comment. Voting might help! Or maybe there's some alternative market app that interfaces with Google's store?

My findings:

Despite what many write: clearing all text including the title does not clear the review for me; it just moved my old review to the top again, with a new date and an updated version number. In the Play app the "OK" button is disabled when clearing the title, so I guess the title text is mandatory. Indeed, just typing a title on the website does save the new review with an empty description. Still, that does show my name, rating and title.

To edit one's own review on the website, even if it's actually shown on the main page: first click "All reviews" or go to the tab "User Reviews", then find the "Edit Review" button next to "My Review". Note that different languages might show different reviews! (I cannot find my review in the Dutch Google Play, as I entered it using an English Play app?)
In the Play app one can swipe the stars to the left to get "unrated", but then the "OK" button is disabled.
Uninstalling the reviewed app does not seem to remove one's review. (Which makes sense, I guess.)
As true for new or updated reviews too: it takes quite some time for changes to propagate. Even once the new review is shown, refreshing might show the old one again. I guess there's multiple servers involved and it takes some time to synchronize. Be patient, for otherwise you might actually activate the old review again.
Old versions of the Market app reveal an option "Remove my review" by simply pressing the hardware menu button, when viewing an app one reviewed. That seems to have gone in 2.3.5 and I cannot find it in Play on 4.0.4 either.

I tried with an old Android 2.1 device, with Market version "2002306". That old Market app still works just fine, but not all apps are visible on that old device, and some show "The requested item could not be found" when selecting it.

Sniffing the network first shows some HTTPS request, probably authentication. Removing the rating gave me a POST to android.clients.google.com:

POST /market/api/ApiRequest HTTP/1.1
version=2&request=CpQDCr[...]OTc2NTE4MzgYARQ

This is a request like many others that people have been deciphering. Unfortunately the unofficial Android Market API does not support these rating requests.
Using "Manage apps" I removed all updates for the Play Store 3.5.19 on Android 4.0.4, getting me the version 3.4.7. No luck.
I also tried AppBrain, hoping it would somehow interface with the Google Play Store and would then allow for changing ratings. No cigar.


How to fix this bug or something in Facebook messenger I'm using fb messenger and all of my incoming new messages are gone. I don't know what I did, all I did to this group chat was just seen.  "For an example. Today is Wednesday, my friends chat at the group chat yesterday. But the messages that I only see if from last  week Monday. All the messages from yesterday were gone". Pls help me pls there are important messages I need to see

Because your your text messages sms mms voicemail and all emails are being forwarded to someone you live with or close to you that has access to your cell phone that can make changes to your settings . Please don't take me as a vigalanty or some terrible person  but this happen to me for a very long time and I thought I was being ha led as . A result. Till Google and Facebook saidI was being abused.


Can I charge Samsung Galaxy Tab 10.1 from USB? Possible Duplicate:
  Galaxy Tab is not being charged through USB Cable

I can't charge Samsung Galaxy Tab 10.1 from my USB. Is this a malfunction or intended behaviour?

I know that the mains charger supplies four times the power of a single USB port, but I'd assume the tab can at least be maintained if not charged with the 500 mA of USB.

However, when the tab is plugged in, I see a red cross over the battery icon and the phone status screen says "Discharging".

How do I fix it?

There's no way to charge a Honeycomb tablet by USB, sadly.

Update: Most tablets can't be charged by USB, but some can be charged by USB - an example would be the Nexus 7.


RDP client that can use an SSH tunnel created by ConnectBot? I want to reach my home PC with RDP but I want to do it in an SSH tunnel because of security reasons. Are there any RDP clients for Android that can be set to use the SSH tunnel created by ConnectBot?

Thank you!

I just released a free app on Google Play called aRDP Free, which supports seamless RDP over SSH. Here is the link to it:

https://play.google.com/store/apps/details?id=com.iiordanov.freeaRDP

I also have an app which supports seamless VNC over SSH in Google Play:

https://play.google.com/store/apps/details?id=com.iiordanov.freebVNC


My Beats Audio icon is no longer being displayed during playback I bought an HTC One X and when I first started using it whenever I played audio I would have a little red Beats Audio icon shown in my notification bar. When you pulled the bar down it would list the item and say "Beats Audio enabled" and when you touched it, it would turn it off and on.

Recently it seems to have stopped being displayed. This is on all audio, so music from the htc music app, Youtube, and Deezer (a music streaming app).

Does anyone have any ideas on what's happened to it, if it's a known bug or if there is an obtuse setting hidden somewhere that I can try to see if I've turned it off by accident.

I have had a poke through the settings and can't see anything obvious. I am running TasKiller but I would assume that running an audio app would kick off the app.

I got a reply from HTC technical support. Make of it what you will, I've asked the lady to clarify what she means as I don't understand her Engrish.

  Thank you for providing me with the additional details to enable me to
  resolve your enquiry. It’s always our aim to ensure that our
  customers’ issues are resolved first time and I’m sorry that this has
  not happened in your case. Thank you for performing the steps outlined
  in my previous email. I can confirm this has been removed in the 1.28
  update for your device, Headset setting they have now are gone and
  turns into “Other”. I am sorry for any inconvenience this may have
  caused you. I look forward to hearing that this has resolved your
  enquiry, to close your email or alternatively to reply to me please
  follow the links below. You will shortly receive an email asking you
  to submit your feedback, I would appreciate if you could take the time
  to let me know about the level of service I have provided you with.

Apologies for the formatting, the HTC support portal strips everything! :facepalm:

So, in order to see the icon again.

You need to plugin a headset/headphones
Drag down your notifications bar, and hit 'Settings'
Click on 'Sound'
You'll notice the 'Sound enhancer' menu is now not greyed out
Tap this and you'll then get a choice of 'Sound enhancers' to use

Confirmed as working for me.


What is downloadfile.bin? At random times, Download manager start downloading series of files named as downlaodfile.bin, downloadfile-1.bin and so on.

I got this issue since today morning. And it happened twice today.

What is this file and why it is getting downloaded? Thanks.

Device information

Device: Moto G4+
Android version: 7.0 Nougat

Screenshot (click for larger variant)

I use Moto G3 with Lineage OS (July month build). I had the same issue of auto downloading which started two days ago.

What I have observed is the downloading takes place when I turn on mobile data after 10 AM in morning or 10 PM at night. The files are not shown in ES Explorer app, but I can see those files queued  if I use in-built file manager of Lineage OS. I tried to see which app was using mobile data at that time using My Data Manager app and it showed that Media Storage system app was using the internet.


Where can I get the stock untouched ROM for HTC Desire C? I just checked XDA Developers, and I can't find the stock ROM for HTC Desire C. Is it actually discontinued, and is my desire outdated?

In xda found this.

First download and install the zip from this thread, this will bring
you back to stock
If you want to flash over your recovery and kernel Do this after you have flashed to zip, if you do it before you cannot flash any zips at all! Follow these command carefully to flash back to stock recovery:

fastboot flash recovery recovery.img

fastboot flash boot boot.img


How to factory reset LG optimus L3 E405 from pc I hav flashed a CWM recovery on my phone....
it shows this CWM recovery menu repeatedly,without booting into the system...
please tell me to factory reset it through pc as the factory reset option in the phone isnt wrking....

Follow this steps, it will bring you phone back to life

http://www.hackmyandroid.com/how-unbrick-optimus-android-phone/1980


Do not disturb/Priority mode until next alarm on Android 6.0 Android 5.1 introduced an option of enabling priority mode until the next alarm. I used that feature on a daily basis.

Now, with the redesign of the Do not disturb/Priority mode in Android 6.0, I can't seem to find that option. Further research suggests that this feature has been removed.

So first, am I missing something obvious and that option is still there?
And second, If this option was indeed removed, is there a more 'advanced' way of getting the priority mode to end after my next alarm?

Update: this feature is back on Android 6.0.1 (source).

  With Android 6.0.1, the "until next alarm" feature makes its triumphant (or rather quiet, I suppose) return. Good to know!

  So first, am I missing something obvious and that option is still there?

It seems you're right. I have checked on Nexus 5 running Android 6.0 Marshmallow and there are only 2 options: Until you turn this off, and For x amount of time.

  And second, If this option was indeed removed, is there a more 'advanced' way of getting the priority mode to end after my next alarm?

If you have Tasker (paid), you can have the same behaviour as the one on Android Lollipop.

Create a profile for alarm clock

On Profiles tab, tap + button
Select Event - Date/Time - Alarm Clock
Press back to finish

Create a task to turn off Priority mode

Select New Task on the pop-up (or from Tasks tab, tap + button)
Input the task name (e.g. "Turn off DnD", optional), then tap the checkmark
Tap +, select Audio - Do Not Disturb
For Mode, select All (this means "allows all interruption", which is the same as turning off Priority mode)

If this is the first time using Do Not Disturb, Tasker will prompt a dialog box to turn on Notification Access. Select Yes, tap Tasker to enable it, and select Allow.

Basically this will make all alarms to turn off the Priority mode. If you want to refine the time (e.g. for specific alarm at 6am on weekdays), you can add other contexts (e.g. Time and Date) by following How to create a profile with multiple context in Tasker?


lost apps after backup and restore on Samsung Kies I downloaded Kies because there is a software issue on the phone.  So I backed up the phone to Kies on my laptop then did a factory reset on the phone.  Then I restored the phone from the laptop but seem to have lost all the apps.  Help!

I say go to play store, when you will open my apps section the backed up apps will be downloaded automatically. Make sure that you are connected to WiFi or 3G .


Phone doesn't recognize xinput controller So i bought this controller that can switch between xinput and dinput and it came with a usb otg cable so i thought "Hey why don't i try to connect it to my phone" so i did. At first i was a bit disappointed cause it didn't work, but after a while i tried switching to dinput and it worked. My PC recognizes it as a xinput controller and the games work perfectly, so the controller isn't the problem.

Additional details:
Huawei P9 lite
Android 7.0

Pls halp thx

XInput is a part of the DirectX 9 (and up), originally made for Xbox 360. It is rarely supported by Android devices.

DInput is an acronym for DirectInput, part of DirectX 8.1 and lower, originally made for Windows, and embedded. Since it's part of Windows' (or PC's) standard control API, most Android devices supports it natively.

That's why your controller works in DInput mode but not XInput.


How to put signal and wifi signals on left leaving battery and notifs on right Here is what I want my status bar to look like. edited from photo below

Here is my status bar now.

Im new to this android stuff. All I know is i need to decompile my SystemUI.apk and framework-res.apk Im still lost what to do next. The centered clock is an adjustable feature that my ROM has.

Please Help.
OS version: Android 5.1

Tried Gravity Box and Lolistat. I didn't find what  I was looking for.

After hours of digging google, finally found an alternative way to hard-coding.

I used an Xposed module > Flat Style Bar Indicators.

Got the Signal bars and battery separated but the notifications are still on the left side. Well, this will do.


Every time I install Magisk after a factory reset, I get back an old boot animation and theme. How? I have factory reset my phone a few times, but every time I install Magisk, I get back an old boot animation that I used from a custom ROM/Kernel I installed and I also get a custom Red accent color I installed. How?


How can I stop whatsapp message to get deliver to my device? I want my whatsapp to not fetch any message even when my internet connection is on. I want to use my device with internet and also want other's people whatsapp message that are sent to me to not to get deliver to my device.

Your question is unclear, please try reframing it.

If you want that WhatsApp should not work, then you should uninstall it.

If you want to still keep it and see that it does not use data on background, you better turn off background data for the app in settings.

If you want to only send message and not receive,  that is not possible.


How do I unpair my Bluetooth Headphones from my phone without access to my phone? I've a complex problem.

My phone refuses to turn its screen on. Its touch screen has proven to still work, but it just simply refuses to open the screen.

I bought a new phone, but my problem consists of the fact that my wireless headphones are still paired up through bluetooth to the phone that wont open its screen anymore.

I dont remember how to navigate to the bluetooth screen in the settings with a black screen.

My problematic phone is an Allview P6 Qmax.
My headphones are a Panasonic RPBTD5K.

I would like to know if its possible to use... Maybe a third party program, thats capable of unpairing my problematic phone from my headphones.

Or if my headphones have a command to unpair from what they're paired with.

Thanks.

I've found that I can long press the power button on the headphones to unpair them from the phone. Thanks me.

Anyhow, if anyone here does know the answer to some third party program or some other solution to unpairing bluetooth devices from unresponsive phones, please comment for future visitors.


Double tap to zoom on Pixel 3a chrome browser? I've just switched phones from iPhone to a Pixel 3a and one of the things I'm missing right now is double double tap to zoom in Chrome. I haven't found anything suggesting the feature doesn't exist on Android. I've found a few questions asking how to disable it but I don't see those options myself so I can't just enable it.

When I double click a block of text instead of zooming to fit the screen it just selects the word I tapped. Instead I have to tweak the zoom level with pinch-to-zoom until it is sized properly.

Am I missing some setting to enable this? Is there another way to zoom to fit? Are there any alternatives to pinch-to-zoom?

Since Chrome 32, Google started removing the 300ms to allow the double tap to zoom in or out for mobile sites.

For many years, mobile browsers applied a 300-350ms delay between touchend and click while they waited to see if this was going to be a double-tap or not, since double-tap was a gesture to zoom into text.
Ever since the first release of Chrome for Android, this delay was removed if pinch-zoom was also disabled. However, pinch zoom is an important accessibility feature. As of Chrome 32 (back in 2014) this delay is gone for mobile-optimized sites, without removing pinch-zooming! Firefox and IE/Edge did the same shortly afterwards, and in March 2016 a similar fix landed in iOS 9.3.

According to Google:

Is losing double-tap-to-zoom an accessibility concern?
No. Pinch zoom continues to work, and OS features cater for users who find this gesture difficult. On Android, magnification gestures takes care of it. Tools like this even work outside the browser.

However, if you request desktop sites, you will still be able to zoom in/out off pages using the double tab. For mobile sites, you should enable Magnification gestures and use the triple-tap to zoom.


How to identify the app/process which re-mounts partitions R/W, creates files and changes file permissions? I have a rooted device, with superuser rights granted to a few apps I trust. I have often found my /system or /vendor partition mounted read/write, and some files chmoded to 0777. Similarly directories/files with random names are created/deleted (e.g. /sdcard/.a03Degpoif), .nomedia files are created inside them to hide their contents from gallery etc.

logcat/dmesg contains no traces of all this happening in background. This doesn't happen periodically but in a slapdash way, internet connectivity isn't a condition either. I have tried disabling/uninstalling apps, looking for any suspicious processes running, but couldn't identify the culprit(s).

Is there a way to figure out who is doing this?

Note: Following solution requires a rooted device. Kernel must be built with AUDIT_WATCH, preferably AUDIT_TREE.

The only good thing Google did was to choose the flexible and configurable Linux kernel for Android, not going for something like a crippled kernel and trying to handle everything from userspace, including running a Linux kernel (1).

Linux kernel's Audit System makes it possible to log any system calls or filesystem changes made by a process. In our case we need to identify the process(es) which are writing to /sdcard or /system and making syscalls mount and chmod.

Linux distributions have a service auditd which communicates with kernel to get information about security-related events. On Android we have already logd, not as configurable as auditd but enough for basic monitoring. logd mainly covers the functionality of its desktop counterpart syslogd, but also includes klogd and partially auditd to get logs from SELinux subsystem of kernel.

We can add a few more rules using auditctl to also report events we are interested in. You can use auditctl from a minimal Linux environment on your Android device, or compile the binary from source code (should be built with --with-arm / --with-aarch64 whatever your devices' architecture is), or get one pre-compiled here.

Now create rules files in /etc or wherever you want to:

# /etc/audit-start.rules

# enable auditing, won't work in PID namespace
# won't work if permanently disabled with kernel parameter "audit=0"
-e 1

# delete previous rules (though there are none on Android)
-D

# increase the buffers to avoid failure
# no. of event to be queued, waiting for logd to read them
-b 10000

# disable rate limit (msgs/sec) to avoid failure
-r 0

# this determines how long to wait in burst of events
--backlog_wait_time 0

# set failure mode to dmesg
-f 1

# define filesystem rules, whatever file/directory you want to watch
-w /system -p wa -k FILESYSTEM_AUDIT

# define syscall rules, see all syscalls with 'ausyscall --dump' or
# here: github.com/linux-audit/audit-userspace/blob/master/lib/aarch64_table.h
-a always,exit -S fchmod -S fchmodat -k CHMOD_AUDIT
-a always,exit -S mount -k MOUNT_AUDIT

# /etc/audit-stop.rules

# clear on exit, restore Android default values
-e 0
-D
-b 64
-r 5
--backlog_wait_time 18000

Apply rules:

~# auditctl -R /etc/audit-start.rules

Now make changes; mount /system R/W, write/delete something there and change file permissions.

Depending on logd configuration, you can get audit log in one or more of different logs (2) including events buffer (3) of logcat and main buffer (4):

~# logcat -d -b events,main | grep _AUDIT

Or in kernel's printk buffer (5) and logact's kernel buffer (6):

~# dmesg | grep _AUDIT
~# logcat -d -b kernel | grep _AUDIT

audit(0.0:16122): arch=c00000b7 syscall=40 success=yes exit=0 a0=7fcec5db38 a1=7fcec5db3f a2=0 a3=8021 items=1 ppid=761 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="busybox" exe="/data/data/com.mixplorer/files/busybox/busybox" subj=u:r:magisk:s0 key="MOUNT_AUDIT"
audit(0.0:16126): arch=c00000b7 syscall=53 success=yes exit=0 a0=ffffff9c a1=7b839180c0 a2=81a4 a3=0 items=1 ppid=11687 auid=4294967295 uid=10135 gid=10135 euid=10135 suid=10135 fsuid=10135 egid=10135 sgid=10135 fsgid=10135 tty=(none) ses=4294967295 comm="Thread-7" exe="/system/bin/app_process64" subj=u:r:untrusted_app:s0:c135,c256,c512,c768 key="CHMOD_AUDIT"
audit(0.0:16141): arch=c00000b7 syscall=35 success=yes exit=0 a0=ffffff9c a1=7bc22a3c40 a2=0 a3=7bdfbd3098 items=2 ppid=11687 auid=4294967295 uid=10135 gid=10135 euid=10135 suid=10135 fsuid=10135 egid=10135 sgid=10135 fsgid=10135 tty=(none) ses=4294967295 comm="pool-2-thread-1" exe="/system/bin/app_process64" subj=u:r:untrusted_app:s0:c135,c256,c512,c768 key="FILESYSTEM_AUDIT"

First line shows that some process running as root with Magisk's SELinux context has made syscall 40 (mount) and the command shows it's MiXplorer app (just as example, I did that myself).
Second line indicates that the app running with UID 10135 has chmoded something.
Third line shows the same app (by making syscall 35) deleted something in /system partition.

This is a simple use case. More recursive rules can be defined to deal with complex situations, interpreting other fields of log as well, as explained here.

To clear rules:

~# auditctl -R /etc/audit-stop.rules

NOTE:

For simple cases where the objective is just to get notified of some filesystem changes (and not to trace the originator), inotify API can be used instead as explained in this answer.
In order to mark all the processes that run before the audit starts auditable by kernel, pass audit=1 boot parameter to kernel, either by editing cmdline in boot.img or use fastboot -c option.
To save audit log to a file, run logcat in background:

logcat -s auditd -b events -f /data/media/0/auditd.log &


Some apps do not detect an internet connection I've got a bit of a bizarre problem with my android phone:

My internet connection is working and fully functional, since Chrome and most other apps have no problems. However, some apps do not detect an internet connection. They display 'No internet connection' errors or similar. Some apps do this far more frequently than others, and some can reconnect randomly.

Here are some observations:

My banking app does this almost every time I want to check it.
Various messaging apps will receive messages hours late (sometimes).
This issue is temporarily resolved on reboot, and for some time all apps can connect to the internet.
Terminating a process and relaunching it does not let it reconnect to the internet.
Some apps can be using the internet just fine at the same time that others are not.
Some apps never do this, such as Chrome, Google, various games and others.

As far as I can tell, it has existed since I got the phone a few months ago. I've tried disabling Samsung's battery manager in case it is messing with apps to save power.

I'm currently running my phone in safe mode - but it's unclear if this has had any effect yet.

I'm on WiFi, and I don't use mobile data. I own a VPN app but it's almost never enabled (except when traveling). The VPN app is one of the badly affected apps. Other devices on the same WiFi network do not show similar issues, and this problem occurs on any WiFi network.

Any advice on how to fix or troubleshoot this issue would be appreciated.

It's either iptables, DNS or battery optimization related problem.
Because you've Knox on your Samsung device, acquiring root privilege is not an option in regard to warranty.

By the way, is your device activated with MDM? If it is, your administrator has enforced firewall policy configuration, proxy configuration, URL filtering configuration or Wi-Fi DNS policy or all of them, hence you are out of options.

If it isn't activated, but because you can't flush iptable's chains without root, try with removing VPN app and wiping cache from recovery. If problem persist, again - without root - your options are limited - hence you should factory reset your device and not install VPN app again.


Android Revolution HD on GT-N8010 wifi won't turn on I just flashed the Android Revolution HD rom on my Samsung Galaxy Note 10.1 (GT-N8010). My device was in 4.1.2 and now is on 4.4.2. I seem to have one big problem: After pressing the wifi toggle slider it looks as if it would turn on but immediately goes back to off.

I've checked that the rom I used is the right one. So, what would be the cause of this? And more importantly, how could I solve it?

Thanks in advance!

Schlotty.

Link to the ROM thread: https://forum.xda-developers.com/showthread.php?t=2119547

Since ARHD is a stock-based ROM, it's possible you'll need to be on the latest stock ROM before flashing it, so as to make sure the baseband, etc. are up-to-date.

In case your carrier doesn't offer a 4.4.2 update, find them on SamMobile and download one for your generic region, or another carrier in the region, so as to get the right set of language (not all languages are available in all firmwares). Making sure the model number matches is the only other thing you need to do. Back up your data, then flash the update with Odin. After booting up the new stock OS, flash the recovery and then ARHD once again.


Powering Samsung Galaxy J7 using an external DC power supply I would like to turn on Samsung Galaxy J7 using an external power supply. The problem is that it uses 4 pins (+,*,-,*) to connect to its battery. The first pin is the positive and the third one is negative, the other two I think are used to transfer data to the battery.

When I connect my external power supply to the positive and negative pins, the smartphone stays on just for a few seconds, then it shows a message that the battery is low and turn off.

Can anyone help me how to cheat the smartphone in order to make it "think" that my external power supply is its battery?

It is possible to "cheat" the mobile into thinking that is connected to battery, while it is in fact connected to external power supply
How to use phone without battery provides instructions on doing it and has a 4 pin configuration as on your device. I am not elaborating on the details involved as

This is not a standard method and more of hobbyist/ DIY project
I would not recommend any methods that are different from OEM specified. Battery Charging is fairly complex and attempting to replicate by such methods can cause harm to battery/ battery life / device besides being a safety hazard.

Drawbacks
To give you an idea of what  typical OEM battery charging does and what you would not be able to implement (since you don't know how the drivers are designed):

The IC (fuel guage IC) monitors a voltage drop across a small current sense resistor connected in series with the battery to determine charge and discharge activity of the battery. Compensations for battery temperature, self-discharge, and discharge rate are applied to the capacity measurments to provide available time-to-empty information across a wide range of operating conditions.
Battery capacity is automatically recalibrated, or learned, in the course of a discharge cycle from full to empty. Internal registers include current, capacity, time-to-empty, state-of-charge, cell temperature and voltage, status, and more.

What does it mean if you can't implement these features (listed above)?
Li-ION batteries have four stages of battery charging- Constant Current,
Saturation (Constant Voltage), Ready (No Current) and Standby. The battery charging hardware and OS is tuned to ensure that the battery spends required time with appropriate Voltage and Current levels in each of these stages to ensure proper charging
Charging directly by external power supply cannot achieve this resulting in Short term- Battery not delivering rated capacity for every charge and Long term - reduced life of battery. To understand more about Li Ion charging, see BU-409: Charging Lithium-ion
Related: For getting an understanding on the possible reasons for have 4 pins, see Why does this mobile phone have 4 terminals. Unless you have the specific pin out diagram for your battery, you can't be sure of the reason for fourth pin (my guess is NFC related). This is the only source I am aware of for getting pin out diagrams


Is it possible to implement Android N (Preview Version) on new Lenovo Moto G4 Plus? Is anyone tried to experiment to install Android N update in Moto G4 Plus ? or if it does installed successfully, then please guide us towards the procedures for that.

You can't install a firmware on a device that it isn't made for. This will (permanently) brick the device.

However, there is an Xposed module called Android N-ify that will make your phone look like Android N. Root access is required.


Dalvik VM vs. ART (Android Runtime): Impact for end-users? With Nexus 5 (Android 4.4 KitKat), Google has shipped two runtimes to run apps.

What are the differences between Dalvik & ART for endusers? How can endusers be affected by this? Is there any specific reason I should choose new ART runtime?

Dalvik VM (Virtual Machine) is Google's version of a Java VM (on which apps run). VMs keep apps isolated and independent from actual hardware and other apps. But, for this to work, Dalvik needs to convert so called bytecode (designed for virtual machine) to native machine code. In order to minimize the performance penalty that the bytecode to native code conversion introduces, a process called Just-In-Time (JIT) compilation is performed, which converts hot, i.e. often used, bytecode to native code.1

ART (Android Runtime) is a replacement for Dalvik that uses Ahead-Of-Time (AOT) compilation, meaning your apps are compiled to a ready-to-run state before you even launch them. This is usually done, at the time of app installation, making the process of launching and using them much faster and smoother. And since this means that compilation is only done once, you may also see better battery life, too.

  If ART is better on performance & battery life perspective, should I
  start using it?

No. If you do that, you may break third-party apps. Google has shipped this ART preview with Android 4.4 for developers to test their apps on it.

Side Note: Google's approach with ART is to beat iOS (iOS apps are native so performs better even on low-end hardware specs), but I don't know where it is heading... Another fragmentation? See OEMs are free to build devices using either one or both. While final version shouldn't affect most of apps, but its not 100% cross-platform thing.

1Note that JIT was added to Dalvik in Android 2.2


Htc one m9 unable to find firmware files for update from Android 5 to 6 I bought a Htc one M9, and flashed Viperone m9 Marshmallow without first update the Stock rom to Marshmallow, and got stuck in bootloader.
Flashed Viper Lollipop, and the phone works again, but now i can't update, because i haven't got a clue which firmware files i should flash, i have found quite a lot of them, and i don't want to brick the darn thing, but i want my Marshmallow..
Could anyone throw me a bone here?
This is my info from the phone:

kernel: lk
product: htc_himauhl
version: 1.0
imei:
version-main: 1.32.401.15
boot-mode: download
version-bootloader: 1.0.0.0000
mid: 0PJA10000
cid: HTC__Y13

Any advice is appreciated.

You need to check wich firmware version your rom needs. For latest viperonem9 it's 3.35.401.12.

Now you can go to the xda-developer page http://forum.xda-developers.com/one-m9/development/firmware-t3068243 to find the latest htc firmwares for the m9 with a detailed guide.

Be aware that the fullstock firmwares force a full wipe, so you will lose your data. To avoid that you can use the nowipe firmwares wich are linked on the same page.


how to stop an app upgrading? How can I pin an app so that it can't be upgraded? I have one app where version 2 is not as good or stable as version 1, so I want to pin it at version 1 and not upgrade it .

I needed to do that for Google Maps.  I still believe the original Google Map is about the best.  The upgrade lost a lot of functionality, almost two years ago and still hasn't caught up.

So I had to do the same thing you described and found that the only way to do this was to disable auto updates and only manually update the items (all the items) except for Google maps.

You can disable auto updates by going (from the Android) into Google Play > Apps > Options > Settings > (Click on) Auto-update Apps > (Tick) Do not auto-update apps

After you have done this, you'll be notified when Apps have updates.  You can select which ones to update from the notice.


Lost sound on my Xperia X8? I'm having problems with my Xperia X8, where it doesn't have sound from it's speaker.
No phone sound, music, games, and even alerts.

On the sound settings, the volume settings are set correctly.

Sound is coming fine while making calls, both ways.

It is even giving proper sound with headsets but sound is not coming from speakers.

Torubleshooting: Restarted.... Given soft & factory reset, but no luck.

(Android 2.1)

I too had a same problem on Xeperia X8. I guess the cause was I kept on downloading the android apps without restarting the mobile for months. After experiencing similar issue like you I have just restarted my mobile, did not revert any settings to default or upgrade OS to latest.

It solved !!.


Couldn't acquire root after running superboot I've already done all steps for getting root at my MotoG (2nd generation) but still can't acquire the privilege.

Unlocked bootloader:

Started developer mode + USB debug
Ran fastboot oem unlock UNLOCK_CODE

I'm even getting the "warranty void" message at startup, so it seems that the bootloader was really unlocked.

Getting root privileges:

Downloaded r2-motog-superboot
Went to fastbook screen again with developer mode + UDB debugging
ran sudo chmod +x superboot-linux.sh and sudo ./superboot-linux.sh

The superboot-linux.sh has only these two commands:

 chmod +x fastboot-linux
 ./fastboot-linux boot boot.superboot.img

The phone restarted but superuser wasn't installed and no root privilege acquired. What can I be missing? Thanks

Because that way (superboot) is old and doesn't work on the current software releases, TBH I am surprised it still boots at all after that, probably because you just just manually booted it and didn't flash it.

I will assume this is the Titan (non-LTE) version. The proper way to do this if you are unlocked is simple... Download the latest TWRP for your device and SuperSU and place the later on your device.

Start the device in bootloader mode, and in the terminal enter

sudo fastboot boot twrp.img <- Replace filenames with appropriate ones for your installation

Once TWRP is loaded, Install (flash) SuperSU ZIP you downloaded from the link above.

Reboot, enjoy root on your device.

BTW, you didn't mention your Linux distro or fastboot version, you may need to get the current releases from the Android Dev package if your repos do not have current ones.


What does ECC stand for in the image and how to remove it? What does ECC stand for in the image and how to remove it ?

ECC stands for Emergency call codes like police station, ambulance, etc.

It is even available when you are locked down and if it annoys you then you can remove it by installing different screen locks like

https://play.google.com/store/apps/details?id=com.pandasoft.unloacker.drawinglockscreen&hl=en


Unable to disable password on Android screen lock I would like to disable the PIN/Password of my Android screen lock but I am unable to  do that as the relevant option is greyed out. Please see screenshot:

(Click image to enlarge)

Please read the subtitle of every remaining button...

"Because you've turned on an accessibility service, your device won't use your screen lock to enhance data encryption."

You need to turn off accessibility services before you can change any settings here.

Settings-> System section-> Accessibility->
Turn off each process using the accessability services until you are allowed to change your password again.

A second cause may be what Journeyman said, but you seem to be running an older android version that doesn't support that.


Accidentally accepted update, how can I abort before it actually installs? I have been deliberately avoiding the latest Verizon D2G update for a few months now.   It is really annoying that there is no way to make it stop asking me.  But tonight I was tired and my finger slipped and it accidentally accepted instead of delaying 12 more hours.  My phone started to shut down to install but I quickly pulled the battery out.  Now every time the phone boots after about a minute of starting services it apparently remembers it was going to update so it starts shutting down the phone.

I have tried going to updates and manually looking for an update, in the hopes that this would confuse the phone and it would start asking me again if I wanted to update, but in the middle of searching for an update it just suddenly aborted and threw me back to the setting menu, and subsequent attempts just immediately aborted. [edit:I tried this again, this time immediately looking for updates as soon as I could login.  This time it immediately started searching, and continued searching until the auto-shutdown started.] I also tried looking at the processes with a system monitoring app I have but wasn't able to identify a process to kill before it started shutting down - and even if I did I am afraid it might still start updating when I'm not watching later.

Is there any way I can abort the install?  I am afraid to let it actually start installing because I don't know what to expect. Does it offer me a chance to cancel?  If not, I fear I might brick my phone if I pull the battery after it starts to update.

And in case you are wondering, I absolutely will not allow this update because of the risk of the update breaking some obscure feature I depend on.  For another, this is the update that removes the ability to root.  My phone is not rooted, and I really don't have the the time or inclination to root it at the moment (it is another risk I don't want to take) but I won't accept the ability to be removed.

Edit:
The following information is from the adb log:

07-XX XX:31:15.883  1306  1433 I ActivityManager: Start proc com.motorola.Upgrader for broadcast com.motorola.Upgrader/.UpgraderReceiver: pid=2334 uid=1000 gids={3002, 3001, 3003, 1015, 2001, 1007}^M
07-Xx XX:31:15.953  2334  2334 W UpgraderReceiver: !!! INSTALL UPDATE !!!^M
07-XX XX:31:15.961  2334  2334 W RecoverySystem: !!! REBOOTING TO INSTALL /cache/Blur_Version.4.5.608.A956.Verizon.en.US.zip !!!^M
07-Xx XX:31:15.961  2334  2334 I RecoverySystem: in google bootCommand, 23103 disalbed^M
07-XX XX:31:15.961  1306  1340 D ShutdownThread: Notifying thread to start radio shutdown^M

So, it wants to install 4.5.608.A956.Verizon. [update: actually, that can't be right, because that is the version I am already running! ]

Also, the following did not work:

bash-4.1$ ./adb uninstall com.motorola.Upgrader
Failure

bash-4.1$ ./adb shell kill $(./adb shell ps | grep com.motorola.Upgrader | awk '{ print $2 }')
could not kill pid 2379: Operation not permitted

Update:
Well, I am thinking it is looking like maybe the only way to avoid the update is to actually root my phone. :-(

Ok, here is how I solved the problem:

I followed the first part of the directions here: http://oldwiki.cyanogenmod.org/wiki/Motorola_Droid_2_Global:_Full_Update_Guide  to wipe the flash and install older version of the Motorola software. (specifically, section 2.1.1)  Then I upgraded to the version that I was running before the update started attempting to run.


How do I disable HTML5 player for Chrome on Android? Whenever I click on a video link, it automatically takes me to the HTML5 player and doesn't even prompt me as to which player I want to use.  Is there a way to force a prompt by altering the application files or something?

I'm stuck with the same issue.

A workaround is to use another browser: I tried Firefox, Dolphin & Opera so far.All of them use embedded video playback.

Only "Opera Mini" asks for external playback app.
See download link below:
https://play.google.com/store/apps/details?id=com.opera.mini.native


How does Instagram find my Facebook account? So I deleted Facebook app and messenger and also removed Facebook from the list of accounts in settings. I also cleared Instagram data and deleted the app itself.

What is puzzling me is that when I reinstall Instagram it prompts me to login with my old Facebook account.

How does it know about this account? Where are the remnants of it being stored?

Backup appears to be off too

Apps that use the newer Android standard of data backup will store their basic information on Google's servers...

Look in Settings - Backup & Reset and there is an option called Automatic Restore (or something similar), it's description literally says "When reinstalling an app, restore backed up settings and data".

If you do not want the applications data restored, remove the app, turn this option off and reinstall the applications.


need to track # of times a video is opened/viewed on a Samsung Galaxy tablet. How? I work for a company in Africa that works with smallholder farmers. One way that we try to improve our farmers' experiences is through showing them video of agricultural techniques and other subjects. The videos are all put on Samsung Galaxy Tab3 or 4 tablets and shown to the clients in the field. I need to know how many times the video is open and being shown to clients. The current video application we use does not track number of times viewed or open. Does anyone have a suggestions for an app or another way that I can track this? Thanks.

You can use Android secret code *#*#4636#*#* to track the usage time of the video player. While that does not give you the number of times video player has been opened, it should give you a fair indicator of the number of times (= usage / video duration ). The secret code needs to be entered on the dialpad of your telephone app

This app does the same and is an alternate to the secret code - 4636. Screenshot of usage time on my device below. You have options to track usage as shown

( Thanks to OP for highlighting another app App Usage that worked but 4636 didn't)


Sending intents with adb with ACTION_VIEW, setData, and putExtra? How do I convert the following java code to an adb command?

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("com.glass.videoglass://"));
intent.putExtra("startFromWS", true);
startActivity(intent);

The only thing I've seen so far is

adb shell am start -n com.package.name/com.package.name.ActivityName

The Android developer documentation explains how to specify an intent in the argument to the am command.

In your case you want -a to specify the action, -d to specify the data URI, and --ez to specify a Boolean extra. You can find the action name by looking up Intent.ACTION_VIEW in the documentation. Putting all of that together, you get:-

am start -a android.intent.action.VIEW -d com.glass.videoglass:// --ez startFromWS true


How Google Wear install app from Google Play I got to know that when you try to install any Android mobile app which also have Android Wear app, then Google Play automatically push the build to Android Wear device.

I am not sure whether is it right or wrong. Please help how this flow works.

Do we have Gmail app in Android Wear like in Android phone?

Please note the below is generic details. OEMs have their own Android Wear apps, just as an example Smart Connect from Sony

According to this article:

  When you install an Android app that also has an Android Wear app, the app is automatically installed on your watch.

The watch connects and starts downloading apps using the phone’s internet connection. You need to have the Android Wear App installed on the phone to enable this.

As for Gmail, yes you can use it on a Smart Watch.

See here for details. You can do the following with Gmail in Android Wear:

Read email

Your new email will show up in a Gmail card. Touch the card to expand the message. If the message is long, you might have to tap to expand it multiple times.

If you have multiple messages, you’ll see a bar at the bottom of the card that shows how many messages you have. Touch the bar to see the rest of your messages.

You’ll get Gmail cards if you get Gmail notifications on your phone. Learn more about how notifications work on Android Wear.

Reply to an email

When you get a new email, you can read and reply by going to the Gmail card. Swipe ← to the left until you see the “reply” action. You will have to touch to reply. You can’t use a voice command like “reply.”

If your watch’s screen is dimmed, touch it to wake up your screen first.
Your Gmail message will show up in a card. Touch the message you want to reply to.
Swipe ← to the left until you see Reply.
Touch Reply.
Say your message. Your message will send automatically.

Keep in mind, you can’t edit what you said after this point. If you want to change or cancel your message, you’ll have one second to press Cancel.

Send an email
You can speak to your watch to send an email to a contact, or say the email address.

If your watch’s screen is dimmed, touch it to wake up your screen first.
Say “Ok Google.” You’ll see a white screen with a red “g.”
Say the following: “Send email to Alex Jones that I’m looking forward to dinner tomorrow.”

Archive an email

You can archive an email right from your watch.

If your watch's screen is dimmed, touch it to wake up your screen
first.
Your Gmail message will show up in a card. Touch the
message you want to archive.
Swipe ← to left until you see
Archive.
Touch Archive.
Your message will be archived.


Which system process do I block from the internet to prevent ads from showing up? Yes, this is similar to my own previous question on the subject.
I'm being very specific here though - despite having wrapped ad blocking with hosts file and firewall, some apps (several more now) are able to merrily display banner ads even when they are explicitly blocked from connecting to the net. My firewall (Droidwall) works, because if I block a legitimate app it gets blocked.

How are they doing this?? Is there some Google made common system process that they access?

Such ads are not fetched from the internet, they are built into the app. Usually the ads would feature some other app from the same developer.


How can I display an image from a URL on a home screen? I want to load an image from a URL and have it get updated regularly from a web page.

Something like a widget that would show my current Stack Overflow flair.

Another badge/flair example is to show the weight loss banners at myfitnesspal.com like this:

I've tried searching the market for photo widgets, webcam widgets, and URL widgets.   I'm not sure how to get the above image that updates onto my home screen.

Any ideas?

This thread goes way back but I still were unable to find one in the market that seems to fit the description, so I made one myself. Get it here:

The widget updates hourly, and currently there is no way to configure that.


Why does my phone keep restarting when trying to dial any number? My Yureka Cyanogen restarts whenever I try to make a call. When I dial a number it restarts but not when I receive it.

What could be the problem and how to solve it?

Looks like you have applied any buggy CM themes.Use default theme and checkout. Try to clear the data of that particular phone app. Most of the time it happens when we replace CM phone app by google phone app during the open gapps installation. use another phone app
A dirty flash can be helpful. Also which version you are running. Is it nightly or stable version?


Create cookies on Droid Turbo local drive using Chrome Developing XHTML based product for Droid Turbo. Chrome will not permit javascript from file:/// to create cookies for security reasons. If Chrome is started with "--enable-file-cookies" then cookies can be created but how can Chrome startup be customized on Droid Turbo? Instead of referencing file:/// is it possible to access the same files via http://127.0.0.1, which apparently will not trigger the Chrome cookie problem? Thanks.

Discovered today that Chrome also prohibits geo-location for file:/// based web pages. Enough! Installed Mozilla Firefox on Droid Turbo. End of problem.


Unable to unlock Android phone from Android Device Manager lock My phone is a Huawei P8 Lite ALE-L21 (Running Android 6.0). An hour ago I was testing if the Android Device Manager worked for the phone by locking it and it did. Thing is when I want to unlock my phone it doesn't let me to.

The unlock screen has a number pad with 1,2,3,4,5,6,7,8,9 and 0. There is a delete button and an Emergency Call button but there is nowhere a submit button. I cannot submit the unlock code when I type it. It says 'Your unlock password is required after a restart'. When I restart the phone it displays 'Locked by Android Device Manager' and gives an option to go to the Emergency Call screen or to input the unlock password.

I cant take a screenshot because well my phone is locked and I cant access anything except the unlock code input.

I've tried recovery via ADB but that's not an option since my glorious phone decided to unauthorized my computer.

Fixed it by restarting my phone a couple of times and inputting the first password I've set via the Android Device Manager (because I've locked it multiple times after that to attempt to 'change' the unlock password).


Add Miracast function to newer Android versions According to Wikipedia:

Miracast support was built into Android with version 4.2 ...
... Support was
dropped again with Android 6.0 Marshmallow in 2015, in favor of
Google's own Google Cast protocol.

Any answers associated with these older versions of Android do not apply.
Modern Android devices include a "cast" function, but it's Google proprietary and so cheap HDMI TV dongles might not support it, especially since it's probably a moving target, and Google wants you to buy their device.
There are apps that simply help you turn the casting function on and off, but all those do is save you from digging into the settings yourself (they don't add any casting functionality).
Is there a way to add Miracast function to a modern Android device?

If Zillinium's suggestion to make changes into the "system / build.prop" does not make it fully function, you might need to also change the "/system/etc/wfdconfig.xml" file also. The following steps require both require root access and custom recovery TWRP.

Pre N (Nougat) the long way. You could use the nano command to add and/or change values, but for simplicity and to stay in-bounds, just use a file explorer and text editor.

Go into the file /system/etc/wfdconfig.xml
Change the code:

...
<ContentProtection>
    <Valid>1</Valid>
 ...

Change 1 to 0 to make it look like this code:

...
<ContentProtection>
    <Valid>0</Valid>
...

Go into the file /system/build.prop. Go down to this line of code and AFTER it:

persist.debug.wfd.enable=1

Add a new line of code by creating this line:

persist.debug.wfd.appmonitoring=1

Save and exit.
Restart phone.
connect phone to computer.
Open an elevated command prompt and throw these commands:

adb shell
su
setprop persist.debug.wfd.appmonitoring 1

Verify the setprop getprop persist.debug.wfd.appmonitoring

If 1 is returned, then you should be good to go.

Side note: if this should put you into a bootloop, go into custom recovery TWRP.
Open a command prompt and throw these commands:

adb shell
chmod 644 /system/build.prop

That should fix bootloop.

For Android N (Nougat) the short way:

From the custom recovery TWRP:

Open a elevated command prompt:

adb reboot bootloader

Next, mount the /vendor partition from within TWRP`
Then throw the command:

adb shell 'echo persist.debug.wfd.enable=1 >>/vendor/build.prop'

Reboot system from TWRP menu

You should be good to go.


How can I save my old, important Whatsapp chat messages from automatic deletion when export doesn't go all the way back? So, I just scrolled all the way back in a couple of chats and found that the earliest available message was mid-conversation. Everything before that is gone. It seems Whatsapp has been silently deleting old messages. This is highly disturbing to me because the oldest period of messages available right now relate to the last months of my now-deceased mother. A lot of very important messages pertaining to that period are now gone!

Automatic backups to Google Drive have been on, but I just found that Google Drive won't let me download them on my own. The only options it gives me are to turn off the updates or delete the backup. It really pisses me off that Google gives Whatsapp more privilege to access my data than me.

I tried the export chat feature of Whatsapp, but it doesn't export everything. In my most important chat, I can scroll all the way back to September 2017, but the exported file only has from December 13, 2018, a week ago, onwards.

I tried the local backup, the Whatsapp directory in internal storage, but everything there is encrypted! What's it encrypted for, I wonder? So the user can't use it outside of Whatsapp! Great work Whatsapp team! I'm about to flip my bolted down desk!

It seems the only option available to me is to screenshot everything manually from last year onwards (that's gotta be thousands of messages to scroll through and screenshot), but I hope that someone here can give me a better idea to get the plaintext. I don't shy away from complex solutions, and though I'm not an Android developer, I am a programmer with a lot of Linux experience.

What I ended up doing is loading a chat on http://web.whatsapp.com and hit PgUp until I got to the oldest available post. It was seriously slow to load the whole chat. I could load the whole thing in the app in one or two minutes of swiping. In the Whatsapp Web, though, it took many hours. I had to leave a process sending PgUp keypresses to the browser window in a loop for the whole night. In the morning, then, I opened up the web-inspector, found the <div> that held all the chat's contents, right-clicked it, and selected "Copy Outer HTML". I pasted in a file, and that's it. That was in Firefox. I did the same thing in Chromium, just because, and found that Chromium does not copy the whole thing. It truncates :(. To get the whole contents of the tag, I had to select "Edit as HTML", put the text cursor inside the text field, hit Ctrl+a, and copy and paste to a file.

That covers the text, and blurred out previews of images (encoded in base64 in the HTML). The media (pictures, audios and videos) are accessible in the local backup unencrypted. I copied that directory elsewhere lest Whatsapp decided to overwrite it with a backup where it deleted important media.

That's apparently the easiest way to export a chat in Whatsapp. Maybe later, I'll provide instructions on how to cleanup what was pasted into something easier to read. The HTML is seriously ugly, though. There are no good class identifiers to easily restructure it to something more readable; they're all useless randomly generated  strings.


Can't pull APKs on Nougat Nexus 5X Whenever I try and adb pull an installed APK from my device, it says adb: error: remote object {name} does not exist. I've tried and it works with files in /sdcard, and I definitely have access to the APK. I can also ls inside the app's install directory and it will be fine.

Here is an example with Snapchat:

pm path com.snapchat.android gives me /data/app/com.snapchat.android-2/base.apk

ls -l /data/app/com.snapchat.android-2gives me

total 153872
-rw-r--r-- 1 system system  78767561 2016-09-02 13:03 base.apk
drwxr-xr-x 3 system system      4096 2016-09-02 13:04 lib
drwxrwx--x 3 system install     4096 2016-09-02 13:05 oat

I can stat and cat the base.apk, which proves there isn't a file permissions issue.

I've restarted my phone, restarted adb, rebooted my computer, tried it with other apps, tried it with everything and nope, it's like adb just can't see it. Anything I can try or do?

Update

Forgot to mention I am using adb on Windows 7. When I use cmd.exe, the above happens, but when I use git bash (on MinGW) it gives a weird error: adb: error: remote object 'C:/Program Files/Git/data/app/{apkName}/base.apk' does not exist.
I ended up pulling the APK through one of those WiFi file transfer apps which present a UI over a HTTP server. Based on #1, it must be a weird bug on my system/with adb where it won't properly parse a path.

Okay, the way I did it was this.

Shell into the directory and then use Linux cp to place it into another location. for me I used /sdcard/downloads

I was then able to pull the file from that location / access it from within my phone.


How to activate Google now voice commands from the lock screen like siri? I just switched from an iPhone, and I want my android to have the same behavior as iOS where you hold the home button, and siri starts listening.

With my android, I have to wake up and unlock the device, then hold the home button to get to the google now screen, then I have to either say "okay google", or hit the microphone button.

This process takes way longer and makes voice commands in the car unsafe, which is primarily what I used siri for

Please any help would be appreciated

In Google Now, click the menu icon on the left of the search bar (it looks like a hamburger).

Then choose Settings -> Voice -> "OK Google" Detection.

(Click image to enlarge)

Flip the three switches on. When you switch on the second one, the app will ask you to say "Okay Google" three times to train the voice model. Flipping the third switch on will prompt you for the password to your phone.

Now, when you say "Okay Google", the screen will be unlocked.