text:
Wifi Calling and Asterisk SIP Account
I would like to know if its possible to set up a generic sip account under "wifi calling" or Android sip accounts to use your phone as an extension with, say, Asterisk?
I can get the phone to register with Asterisk and when asterisk attempts to bridge a call to my SIP account I can see in the captured SIP packets, that the SIP packets are reaching the phone and being responded to. The packets returned from the phone are ringing sip notifications however the phone does not ring.
I also find it impossible to tell Android to use the SIP account for outgoing calls. I enable, "for all  calls" under SIP accounts but it still tries to dial over the SIM.
I can get everything working with a SIP client like csipsimple. It looks like the "SIP account" support built into asterisk is only for use with a cellular service provider that provides a SIP account in addition to their normal 3g/lte connection?
Is this true? I seem to remember earlier versions of asterisk supporting SIP accounts for PBX's like Asterisk in the early days without the need  for 3rd party apps?

yes it is possible to setup astrisk sip account and use it to dail out from android standard dailer also you can receive calls with it, but as i know you can not setup a straight forward wifi calling because it is not a standard sip protocol and it is a carrier specific service integrated with 4G.
You can emulated such service with alot of work on PBX server side and the cliend side. Finally these is nothing impossible.


text:
How can I check if a device is booted into safe mode from adb?
Is it possible to use adb to detect whether a device is booted into "Safe Mode" or normal mode?
I've looked through the output of getprop and other command-line tools and haven't found any good indicator of safe mode, at least not on my N5/hammerhead device.
Update: I'm trying to check whether or not the device is in Safe Mode, not to force it into Safe Mode. Putting the device in Safe Mode programmatically is relatively straightforward and well-documented.
Any ideas?

I think this may help: http://android.stackexchange.com/q/131188/186278

Thanks, that explains how to force a device to be in Safe Mode using adb… but it doesn't explain how to detect if it's in Safe Mode.

Aha! This'll do the trick! Android's dumpsys display command:
$ adb shell dumpsys display|grep mSafeMode
 mSafeMode=true

source: Stack Exchange

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

sort: votes


text:
"Restore Default Settings" on Huawei P9 Lite
After I started my Huawei P9 Lite for the first time, after I completed the first boot setup, it asked me the following question:

What does it mean? It is the first time I run Android M ever and never encountered such a question before.

I think it is related to Google backup. If you setup your Google account then this option asks you to restore your backup : phone numbers, apps as well as settings, such as APN, WiFi passwords, and so.
UPDATE :
I've found that the step for restoring defaults is a part of the setup process and it is optional. You will be asked about restoring all default settings. Just tap Do not allow.

Source, 22th step.

Hmm, possible. Where does default sit in it?

@SarpSTA Oh sorry, I misunderstood. English being my 3rd language. Please check the updated answer.

Thank you! I want to stress it that this information is good for me. Thank you! But I wish to learn what it does.

It does what it says: restore to default. Can be helpful if you made mistakes settings up the device, e.g: connecting a wrong Google account.

But why right after the initial settings?

Good question. Maybe you should ask Huawei.

I actually did. I hope they'll reply. One weird sidenote: It doesn't ask the question when you don't log into a Google account upon start.

Then my  guess was correct.

Likely. I have been able to concluded that this question only pops up if a Google Account has been logged in during first setup. Since it annoyed me, I factory reset the phone and didn't log into Google during setup.

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


text:
Turn off accessibility service
I have rooted my phone with KingRoot app, and suddenly "Ok Google" stopped working.
After a bit of searching I've found out that some accessibility services could been blocking it. And the only one on was KingRoot one.
It is not a very useful service, so I turned it off, but in the next moment it has turned on again.
So my problem is, does anyone knows how to permanently end this service?, if not my question can be understood as, anyone knows how to have ok google working with the service?
I don't want to uninstall KingRoot, because I'm still working on the port to SuperSU, and it's not easy.

Kingo root is the worst rooting app. method... use something else

@SurendraPatil Can you read? Is KingRoot not kingo, and I don't like it either, but is the only one which works in my phone.

Have had very bad experience on samsung note 3, note 3 neo, S3, S5, lg G2and Htc mobiles... @Deltab   Which device do you use ?

@SurendraPatil LG Leon 4G version (H342f)

You can use the command line pm disable <package/component> to disable the accessibility service of that app. Alternatively, try Elixir 2. Install it -> launch it -> Applications -> locate your app -> tap it -> View Details -> scroll to Services -> disable its Accessibility service. Let us know the result.

@Firelord I'm used the command line, it disables the service, but also the app, don't know if I'm using it right. Gonna test the app later


text:
OnePlus 3: Disable hotspot turning off automatically
After updating OnePlus 3 to OxygenOS 4.0.1 the option to keep hotspot on even no devices are connected seems to be missing. I need to keep hotspot on all the time and only manually to shut it down. How to enable this feature?

Use Bluetooth sharing (just above hotspots on ...more settings page.

@MichaelPearson So you say BlueTooth tethering won't disconnect?

https://forums.oneplus.net/threads/tethering-disconnects-after-5-minutes-whether-in-use-or-not.486950/

I'm trying USB tethering now

So far USB tethering seems to work. That can be one workaround then.

Nougat update for OnePlus 3 and 3t is extremely fresh (I managed to upgrade it only using a VPN to Canada). This must be one of the features which still needs to be polished. The checkbox is missing to keep the hotspot running even if noone is connected for more than 5 minutes.
Until OnePlus releases a new minor update to fix this, workaround can be either using USB tethering or Bluetooth tethering (reported by @MichaelPearson).

Got another update (01/17) over the air towards the end of January, that still doesn't have the checkbox.

The latest update (as of 2017 November) still doesn't have it

Workaround when you are (like me) dependent on the Wifi hotspot: Create a script with Automate which automatically reactivates the hotspot:


text:
Can anyone confirm if this cyanogen ROM is for my phone?
I have been looking for a custom ROM for my device.
My device is Zenfone 2 Laser ZE500KL. There seems to be none.
Could I successfully instal this release?: https://download.cyanogenmod.org/?device=Z00L
It's not Z00E, but I was wondering if it could work.

According to this it's not ROM for your device you have models and their code names in first post. It will maybe will work if you do some changes, but flashing the file as is, is not recomanded it may brick your device or maybe not you'll won't know..


text:
How will a stolen android phone be localised if it was stolen with an disables wifi and localisation?
I lost my android phone today and the wifi and localisation were off.So,i went to google dashboard;and crypte and erase the phone.But i could not find localization because the wifi and localisation were off as i said.Now,i want to know if there is a chance to localise my lost phone.

You mean "located/location" instead of "localize/localization"?

No, if location is off you will not locate it, now it's too late to do anything. You can go to police with IMEI you have it on phone box, but they don't bother with stolen phones.
And also I think the phone will not be earsed or crypted until it connect to internet, because there isn't way to trigger if phone doesn't connect to internet, this is logic but I'm not sure abot it.


text:
Do frozen/disabled apps get triggered by broadcast receivers?
If an app is frozen/disabled, does it still get executed if triggered by a broadcast receiver?

@xavier_fakerat Thank you for your answer.  Somehow I didn't see it when you wrote it. Thanks again!

If the application is truly disabled, it won't get executed even if it receives broadcasts intents.
I have a disabled application, which if it was enabled, is woken up by various intents such as;
android.provider.Telephony.WAP_PUSH_RECEIVED
 android.intent.action.BOOT_COMPLETED
 android.net.conn.CONNECTIVITY_CHANGE
Even though if it receives these intents it is still disabled, until I manually enable it.
However there are some applications which can filter intents of a partially disabled application.
For example Greenify, it can disable an application such that other broadcast intents are ignored, except for a few e.g GCM receiver or Telephony intents. So in this case it is woken up only by specific broadcast intents


text:
Unsupported SD format renders my micro SD card useless. Is there a way to fix it?
I have just flashed a new ROM and the microSD card is gone. It appears in the notifications as "unsupported SD card". Is there a way to fix it?

Plug it into PC and format it to FAT32. That should done the trick. Or maybe you can format it trought phone take a look for that option in storage settings.

It is not recognized at all (PC, mobile...neither can see it). I have formatted it by the ROM but it is still not recognizable.

Done. I have just reformatted it into FAT32 using an SD card adapter. Thanks.

I tried all the suggestions I could find on the web, including third-party-software, but none of them worked! My SD card was neither accessible on the device itself (via file explorers) nor on a PC. (I didn't expect to be able to access it on the PC, though, as I had "adopted" it as internal storage on my (non-rooted) Android device, so it was encrypted.)
Surprisingly, I was able to access the SD card with adb:

adb shell ls \$EXTERNAL_STORAGE: List all folders on sdcard
adb shell du -hs \$EXTERNAL_STORAGE/*: Check size of folders on sdcard
adb shell echo \$EXTERNAL_STORAGE: Print out SD card folder name; in my case: /sdcard
adb pull <SD card folder>, e.g. adb pull sdcard: Download all files and folders from sdcard to current directory. Depending on the folder size and number of files, this may take very long. It may be better to download only the folders required: adb pull <SD card folder>/<path to be downloaded>.

I was even more surprised to find out that some of the files on the SD card were updated that very day, e.g. the WhatsApp backup, even though I had not been able to access the SD card for months and was always getting the "unsupported SD card" on start-up. I seems that a number of apps were still able to access it.

EDIT:
I just saw that sdcard is a symbolic link to my primary storage: /storage/self/primary! So it may not have been my original sdcard content I was viewing and copying but data added since my SD card got corrupted (and Android added the symbolic link to allow apps to use the internal storage as if it was an sdcard). The alternative is that adopting an sdcard as internal storage leads to this symbolic link. I find the former more likely, but cannot evaluate that in my case, as my SD card had been corrupted for a long time now.

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


text:
Wiped everything with TWRP, re-flashed CM13 and filled the internal storage with dummy data. Is my data now gone?
I sold my OnePlus One and needed to remove files from the internal storage and re-install CM13. I deleted all photos and videos by hand in Windows. Then I selected all the options available inside TWRP and wiped it. After, I installed CM13 from an image. Then I filled the phone in Windows with dummy data by copying. My phone was not encrypted before wiping.
Can I consider my data more or less gone? I'd imagine at least most of the photos and videos are gone with overwriting but what about application data such as SMS, Facebook etc. messages? If they're still on the phone, how hard would it be to bring them back to life?

Honestly, you need to look at this logically, first off, the chances any purchaser of the device would attempt to recover your data is near zero even if you just did a simple factory reset... But if they did attempt it the best they could do would be recover a few files or pictures... The chances of recovering other data like apps or settings is much more remote... The extra steps you took would prevent all but the most elite hacker or forensics lab from being able to recover any usable data of any kind. That said, with sufficient knowledge and resources, any data is recoverable.

You must have performed a clean wipe before you flashed the rom CM13 . At this point the data related to your apps are already gone. @acejavelin made a correct point. Recovering that data is near 0.


text:
Voice typing absent in gboard
Microphone icon is missing from gboard, is present in other keyboards(Swype, samsung keyboard), doesn't have a toggle setting under gboard settings. I have tried uninstalling gboard, didn't fix. What do I need to do to enable this or troubleshoot the issue?

What languages are you using? Does this happen on all text fields? I observed that the "G" icon and microphone won't show if the text field doesn't support text suggestions. Otherwise, you might have to manually change the keyboard to "Google Voice Typing" using the globe icon, if enabled.

Be aware that, as of Oreo onward, if you allow the Google app to have microphone permission, your phone is actively listening to you any moment that it is on. Thanks a lot, google! fuckers..

You must have uninstalled "google" app. Install that and then in settings go to languageand input option. There you have to select google keyboard and Google Voice.

That was it for me - after installing a custom ROM, I hadn't installed the Google app. I also had to go to Apps -> Google and and enable the microphone permission for the app.

I found this to work: Languages and Input > Virtual Keyboard > G-Board > Text Correction > Show Suggestion Strip - change to on. Microphone instantly restored.

@BarryMSIH You should put your comment into answer. Your suggestion is the correct answer

To fix, in SETTINGS, select go to language and inputs, select "keyboard and input methods," then "current keyboard," then "change keyboards" then "choose Keyboards" then toggle the "Google Voice Typing" to on.

OP said they had already tried that. I had the same problem and had to install the Google app.

Go to gboard settings > preference > voice input key. Enable it.
Do keep in mind that it is available for some languages only and in supported text fields only.

The best and easiest solution is to go to Settings > apps > gboard, then tap on it and toggle the voice texting option.


text:
How do I force Google Photos app to refresh?
I deleted some images on photos.google.com but the Photos app on my phone doesn't reflect these changes and still show the images. How do I force the app to refresh? I already tried clearing cache but that didn't do anything.

Turn the sync on for your Google account. If it still does not update, re-install the app, that should solve the problem.

Sometimes just dragging down just below the notification bar and releasing will give the circling "I'm refreshing" arrows and start the sync.

This doesn't work for me.

You can try one or more of the following:

restart the app.
sign out and sign in your google account again; or, switch to other account and switch back.
restart you phone.
cut off network connection and reconnect it.
clear drive database.


text:
What is the /oem partition?
Recently I had an over-the-air (OTA) update fail because the /oem partition did not pass the assert. However, it looks like the update still "succeeded" in that the /system partition had all the updated bits and the update check in Android says I'm at the latest version. I'm guessing my /oem partition is outdated now but it doesn't seem to be affecting anything.
What is the purpose and capabilities of the /oem partition?

manufacturer storage?

right but how does it work and what can it do? for example, my system partition got updated via OTA but it errored out during oem partition upgrade and the version in my About Phone was wrong.

The /oem partition is used for any carrier customisations to the Android firmware; if your firmware build is not a carrier-specific one then it might be empty anyway.  This purpose is described in the Android Project Treble documentation.


text:
Providing extra security for banking applications
Device : Moto X Play (Rooted, Android 6.0.1)
I use my mobile for everything and rarely use a PC, including banking applications, which work fine with root.

I have XPrivacy recently installed but not configured yet for all apps
Adguard installed, which maybe offers some protection of VPN ???( I don't want to use third party VPN apps, not sure if I can trust them)
Tor is painfully slow though internet speeds are good

What is a good way enhancing security for banking ? - I mostly use banking apps and at times browser when I need functionalities that apps don't offer
( I have a vague notion that creating a guest user and having only banking apps run there with XPrivacy killing all but essential permissions could help but I am not sure)
Edit: Please avoid solutions involving OS upgrade to reduce vulnerabilities, physical security of device, encryption, using string passwords, changing them regularly etc

Can Knox be installed on other phones than Samsungs? That'd be good I assume.

@SarpSTA: There were noise around that possibility but AFAIK, it is no


text:
How do I determine what changes an app is making to the system?
Let me start this question with the specific use case.  I have Cerberus installed for one purpose - in order to disallow pulling down the notification bar when the phone is locked.  If my phone is stolen, I don't want the thief to be able to enable airplane mode (I use Xposed APM+ to provide a fake Power Off button on the lock screen).  But I'd like to know how Cerberus does this - what file(s) is it changing, what system changes are being made?
So my question is this - is there a tool that will let me do an OS snapshot before and after and let me compare the deltas, or monitor the actions that a particular application is doing so that I can write a simple app to do that one thing?  I've used tools on Windows in the past that do this, so I can't imagine it's that difficult - I just don't know where to look.  I have root, so root-only tools are ok.

google 'dalvik debugging'.

How to identify the app/process which re-mounts partitions R/W, creates files and changes file permissions?


text:
com.android.phone has stopped working after manually upgrading Verizon LG G3 (VS985) to Marshmallow using LGUP tool
I manually upgraded my LG VS985 to marshmallow from Kitkat using the LGUP tool and the LG Stock Rom for Verizon (LG VS985 Firmware VS98547A_01_0314_ARB01.kdz).
After booting it just keeps showing this popup "com.android.phone has stopped working" making the phone very unusable.
The network settings relating to mobile networks do not show up in the network settings page.
After wiping cached data even through recovery cache partition wipe, it still shows up.
Then I use Logcat on Android studio and I get the following error
01-09 23:23:39.302 5403-5403/? E/AndroidRuntime: FATAL EXCEPTION: main
                                             Process: com.android.phone, PID: 5403
                                             java.lang.RuntimeException: Unable to get provider com.android.providers.telephony.TelephonyProvider: android.database.sqlite.SQLiteException: duplicate column name: wait_time (code 1): , while compiling: ALTER TABLE carriers ADD COLUMN wait_time INTEGER DEFAULT 0;
                                                 at android.app.ActivityThread.installProvider(ActivityThread.java:5246)
                                                 at android.app.ActivityThread.installContentProviders(ActivityThread.java:4838)
                                                 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4778)
                                                 at android.app.ActivityThread.access$1600(ActivityThread.java:157)
                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1417)
                                                 at android.os.Handler.dispatchMessage(Handler.java:102)
                                                 at android.os.Looper.loop(Looper.java:148)
                                                 at android.app.ActivityThread.main(ActivityThread.java:5527)
                                                 at java.lang.reflect.Method.invoke(Native Method)
                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
                                              Caused by: android.database.sqlite.SQLiteException: duplicate column name: wait_time (code 1): , while compiling: ALTER TABLE carriers ADD COLUMN wait_time INTEGER DEFAULT 0;
                                                 at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
                                                 at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:893)
                                                 at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:504)
                                                 at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:726)
                                                 at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
                                                 at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
                                                 at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1784)
                                                 at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1715)
                                                 at com.android.providers.telephony.TelephonyProvider$DatabaseHelper.onUpgrade(TelephonyProvider.java:1351)
                                                 at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256)
                                                 at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
                                                 at com.android.providers.telephony.TelephonyProvider.onCreate(TelephonyProvider.java:2481)
                                                 at android.content.ContentProvider.attachInfo(ContentProvider.java:1748)
                                                 at android.content.ContentProvider.attachInfo(ContentProvider.java:1723)
                                                 at android.app.ActivityThread.installProvider(ActivityThread.java:5243)
                                                 at android.app.ActivityThread.installContentProviders(ActivityThread.java:4838)
                                                 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4778)
                                                 at android.app.ActivityThread.access$1600(ActivityThread.java:157)
                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1417)
                                                 at android.os.Handler.dispatchMessage(Handler.java:102)
                                                 at android.os.Looper.loop(Looper.java:148)
                                                 at android.app.ActivityThread.main(ActivityThread.java:5527)
                                                 at java.lang.reflect.Method.invoke(Native Method)
                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)

How do you installed? Do you wiped data or restored any system app of previos kitkat? (Maybe conflict between different android versions)

I used the the LG update tool (LGUP) to flash the stock rom for marshmallow. I have hardly been able to use the phone talkless of restoring system app.


text:
Where do I get my restored contacts from google?
I managed to restore my contacts as per the last 30days but I just can't seem to find where they have been restored to. Please help.

You are not able to access those data directly on your device (unless it's rooted). There's a system app taking care for them, storing them in a database below /data (usually /data/com.android.providers.contacts). Apps like your contacts app or the telephony app interact with this via a corresponding service. To be permitted, apps need to declare the READ_CONTACTS resp. WRITE_CONTACTS permission in their Manifest file.


text:
GPS when roaming with no data
What kind of GPS functionality should I expect on a roaming Android device that has mobile data disabled when I am abroad?
I have just found myself a bit stuck with Google Offline Maps because my rooted Galaxy Note 3 running Resurrection Remix would only get a correct GPS fix once mobile data roaming was turned on - before turning on mobile data, the phone thought it was at its previous good location. Once mobile data was turned on, the phone got a new GPS fix very quickly despite being in a heavily built-up area. Turning off mobile data would cause the GPS fix to be stuck at this new location.
As an example:

come out of a Metro Station A, fix from previous good location
turn on data, fix very quickly
turn off data, fix sticks at location of Metro Station A
go into Metro Station A, and travel to Metro Station B
come out of Metro Station B, fix still shows location of Metro Station A

I have tried changing the settings on the GPS to tell it to only use the GPS satellites (and not wifi/cellular) but this didn't help.
Is this expected behaviour, a quirk of the Note 3 or Resurrection Remix, or something else?

Weird, I have a handful of devices without SIM cards inserted even, and they act fine as makeshift GPS speedometers, it just takes several times longer to find sats compared to when data is available.

All current GPS chips can work in one of two modes: GPS Standalone or AGPS (either MS-Based or MS-Assisted), where AGPS is the abbreviation of Assisted-GPS. The latter requires internet connection to contact an AGPS server which helps the chip to get its first fix.
When on gps standalone mode (in your case when you deactivate mobile data), the chip is not assisted in any way, and it may take about 12.5 minutes to resolve its location.
Read more on wikipedia.

Yes, this behavior is expected.
As EHH has pointed out, the time to get a location fix using unassisted GPS can be long. This is because the receiver does not know where it is and needs to do a search for which satellites are in view.
When you have mobile data turned on, there are actually multiple sources of location information that your phone can use.

GPS (assisted or unassisted)
WiFi - Location fixes from WiFI are much faster than GPS. The accuracy is coarser, however, at ~50m.
Cellular - Not as frequently used because it requires action by the network, and is less accurate than either GPS or WiFi.

Applications frequently use multiple sources. They will take the first location fix, usually from WiFi, then they will refine the location estimate if other sources become available. Once GPS has a fix, location can be updated very frequently and accurately.
I speculate that in your situation you are not waiting long enough to get a GPS fix, or that your GPS may be unable to fix and you are simply using WiFi location. Android will store the last available location, so this will be used until your device can get a new location fix.

Using Samsung Galaxy Note 3 ( unrooted, original ROM, SM-N900)
I have downloaded offline maps using google maps & It takes around 15-30 seconds to fix without any internet connection. In my experience yet with all others phones, most of phones require internet connection for first fix as pointed above. But high end samsung phones do not require internet... I have tried in my local as well as on my 7-8 days long tours outside, Offline maps worked very good for me...
I am not sure why are you facing this issue... Please check if any library problems with custom ROM you are using... Notify the ROM developer on XDA.. He might fix that problem for you...


text:
Upgrading Android from 4.2 to 4.4 on Lenovo Tablet B6000-HV
I have tried and failed to upgrade from Android 4.2 to 4.4 on my Lenovo B6000-HV. At first using OTA method; Error in the middle of process and I have to flash with stock ROM to make it working again. Then I tried to put the files on micro SDcard; The error was failed to update.

Method 1:
Go to Recovery and Clear cache and Dalvik.
Reboot and Check for OTA.
Update it.
Method 2:
Backup all data to any external storage (Apps and data).
Factory Reset device.
Check for OTA.
Update it.
Restore Data.
Method 3:
Install Custom Recovery and Custom Kitkat ROM from XDA.
Custom Recovery
Custom ROM


text:
How to update webview without using the Google Play store?
I have an Android 5.1 device, where I have full root access. For this device I have written a cordova application and installed it as a system app. It is working good, however the webview-version of Android 5.1 is very old and unfortunately has a few bugs.
I know that you can update the webview with the playstore, but unfortunately the device does not have the google apps and therefore I am not able to update the webview with the playstore.
So my question is:
How can I update the system webview without google playstore?
I already tried it with a rather naive approach, which unfortunately killed my application:
I have downloaded the latest webview.apk from the playstore (https://play.google.com/store/apps/details?id=com.google.android.webview&hl=de)
Then I did:
adb remount
adb push webview.apk /system/webview/
adb reboot

Now I get errors when I try to start my cordova application and the app itself doesn't show up anymore:
I/CordovaActivity( 1931): Apache Cordova native platform version 6.1.1 is starting
D/CordovaActivity( 1931): CordovaActivity.onCreate()
E/WebViewFactory( 1931): Failed to list WebView package libraries for loadNativeLibrary
E/WebViewFactory( 1931): android.content.pm.PackageManager$NameNotFoundException: com.android.webview
E/WebViewFactory( 1931):        at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:281)
E/WebViewFactory( 1931):        at android.webkit.WebViewFactory.getWebViewNativeLibraryPaths(WebViewFactory.java:282)
E/WebViewFactory( 1931):        at android.webkit.WebViewFactory.loadNativeLibrary(WebViewFactory.java:397)
E/WebViewFactory( 1931):        at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:103)
E/WebViewFactory( 1931):        at android.webkit.WebView.getFactory(WebView.java:2194)
E/WebViewFactory( 1931):        at android.webkit.WebView.ensureProviderCreated(WebView.java:2189)
E/WebViewFactory( 1931):        at android.webkit.WebView.setOverScrollMode(WebView.java:2248)
E/WebViewFactory( 1931):        at android.view.View.<init>(View.java:3595)
E/WebViewFactory( 1931):        at android.view.View.<init>(View.java:3689)

How is the correct way to update the webview.apk without google playstore?

Download latest webview.apk from www.apkmirror.com

I already have the apk... the problem is how to install it

Don't forget to reboot after replacing a system .apk, so the Dalvik cache gets rebuilt (remember that "updating apps…" hint on first boot?).

Yes I made a reboot - it also says so in the question. "adb reboot"

The Google WebView application is very different from regular ones. You cannot use Package Installer to install or update it in a common way. You must do it yourself (As for my Lollipop 5.1.1).
Here's the way I've done it several times. Run in a root shell. You may need busybox for unzip (or do it with a file manager).

#!/system/bin/sh
rm -r /data/app/com.google.android.webview*
mkdir /data/app/com.google.android.webview-1
cd /data/app/com.google.android.webview-1
cp /path/to/your/webview.apk ./base.apk
unzip base.apk 'lib/armeabi-v7a'
mv lib/armeabi-v7a lib/arm
# Do the following 2 lines only if you're on an ARM64 ROM
unzip base.apk 'lib/arm64-v8a'
mv lib/arm64-v8a lib/arm
#
find . -type f -exec chmod 644 {} +
find . -type d -exec chmod 755 {} +
find . -exec chown 1000.1000 {} +

Alternatively, you can try creating directory /system/priv-app/WebView and put the new APK there. Remember to get rid of the old one.

You try to update "com.google.android.webview", but your system uses "com.android.webview" version.

You cannot replace com.android.webview with com.google.android.webview since they are two different packages and the system's default webview package name is hard-coded in framework-res.apk. Please see https://android.stackexchange.com/a/139415/284780 for explanation and https://android.stackexchange.com/a/233282/284780 for solution.

Dude... the question has been answered 4 years ago with the exact same contents of your answer.

@michael-b I wouldn't say exactly the same since the above answers did not mention that you have to edit the configuration value in Android framework to switch to another webview package. Your default webview package is com.android.webview and the one you wanted to use is com.google.android.webview. There is no way you can do that without modifying the Android framework.

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

authors: Једноруки Крстивоје


text:
Stuck on Download Pending in Play Store after Updating to Lollipop
Good day, as the title states, whenever I download an app from the Play Store, it just says Download Pending.
There is no queued apps being downloaded. I tried the force stop, clear cache, clear data and uninstall updates of Play store and Download Manager, restarted the phone, but still no luck.
One thing I notice is that when I revert it to the factory version, I managed to download an app, but when I tried to download another, it just says Error 907. When I opened the Play Store, it's the latest version again.
I think its in the version, but I'm hoping for other fixes to this
Phone - Cherry Mobile Flare S3
OS - Lollipop
Google Play Store Version - 7.3.07.K-all [0] [PR] 139935798

Have you checked clearing cache of  google play services

@RahulGopi It worked like a charm!! Thank you very much, please post it as an answer so that I can accept it. No forum seemed to have suggested clearing the cache of the google play services, just the google services framework

I'm on A-12. This worked with some effort - effort because I'm new to it. Thank you!

You need to clear the Play Store data following these instructions.

From the Settings app, choose Apps.
Choose Google Play Store from the list of apps. A new screen will appear.
Click Force Stop.
Click Storage and then Clear data.
At the top right, click the three dots, then Click Uninstall updates to revert to the original version of Play Store that came with the phone.

Follow the same instructions again for the Google Play Services app, but this time use Clear cache instead of Clear data.

This fix no longer seems sufficient to resolve this problem.  I followed these steps and I get stuck at "Downloading..." now instead of download pending.  Any ideas on how to fix this?

Here is the easiest way to fix this issue:
“Navigate your device Settings menu, then go to Play Store. On Play Store page select Clear Cache and Clear Data functions. In doing so, you will delete only Play Store info data. Hence you should not worry about losing important files. If you use Marshmallow or later Android versions, select "Storage", and then clear cache and data from that page. “
Source: https://android-fix.com/google-play-problems/50-download-pending.html


text:
How to remove malware package from android phone
My android phone has been affected with malware.I have done factory reset two times  but it still installs UC News app without  authorization when connected to  internet.After that many pop-ups and confirm boxes randomly pop-up on window.  After factory reset,I don't have any third party app installed. Where can I get a list of apk packages that are supposed to come with new android phone,so that I can remove it using adb?
Any other suggestions what should I do?

The list of pre-installed apps very much depends on vendor, device and Android version – there is no "generic list". You could list the apps which are installed after a factory reset, or the system apps in general, via ADB: adb shell "pm list packages -s". If some malware made it into your system, the cleanest way out is to factory-reset and then flash a clean ROM.

my android version is kitkat. Since factory reset is not working, I will flash ROM.

Don't forget to wipe, the malware might hang around somewhere waiting to reintroduce itself.


text:
Facebook Messenger camera is extremely dark for no known reason
When I try to take a picture using the Messenger app camera, it is incredibly dark, and I can barely see the photo it takes, even in broad daylight. To take a decent photo, I have to close the app, use my actual camera app, then upload it.
What could be causing this?
I have a HTC Desire 530, with an 8 megapixel camera

Can you give some more information? Has this issue always existed for you or did it start suddenly? It could be caused by one of the updates to the APP itself.

@Jordy19 I noticed it after I got a new phone. It's possible this could be due to an update, I just happened to get a new phone at the same time

Alright, I have not found a similar case about it on Google. What you can do is trying an older version from APKMirror.com.


text:
How can I create delay before my Android phone decides that wired handset is disconnected?
I've got Sony Z1 Compact with non-rooted Android 5.1.1.
It has an issue with some of my wired headsets: any slight movement of the phone with headset connected causes the phone to stop playback despite the fact that headset remains connected. (the playback can be started again with use of headset button)
I think the reason is a slightly loose jack port on my device because my other devices don't have this problem with the same headsets.
So it seems that the only software solution (without manual toggling headset-mode) would be to create some reasonable delay at which device decides that the headset was indeed disconnected and I'm looking for the way to achieve this behavior.


text:
At what point in recovery mode should ADB be available?
I am using stock Android on a Nexus 5X, and I have a phone that is generally in a bootloader loop (unless the phone is frozen cold — weirdest bug I've ever seen).  I can now consistently get into recovery mode, and am hoping to pull some data off of it with ADB.
The catch is, I can't seem to get my computer to recognize the phone through ADB so that I can issue an adb pull command.  It's not a question of bad drivers, etc.  If I choose "Apply update from ADB", the device lists under adb devices, but I cannot issue any command except sideload which is not what I want.  (this question is different from the many "similar questions" that SE recommends as they deal with a driver issue, etc, where ADB never shows up.
I have a Nexus 5 that functions fully and likewise on it, I can't seem to figure out when I should be able to issue ADB commands other than sideload.
Is this is a question of using stock recovery?  Or is there another way to kickstart ADB that allows commands other than sideload.

Stock recovery - only when using sideload. Custom recovery - all the time. Conclusion: flash a custom recovery if possible.

@AndyYan Ugh, why would stock make that limitation?  I don't think I can flash a custom recovery because the bootloader is locked (I thought I had unlocked it but apparently not).  Well, guess I need to just hope I can fully complete the boot sequence the next time I pull it out of the freezer.  Feel free to add your comment as an answer and I'll accept it.

You might be able to fastboot boot a custom recovery without flashing.

@MatthewRead I tried that, but (at least with TWRP) it bails with FAILED (remote: not supported in locked device).

ADB in stock recovery means anyone can tamper with and transfer your data even when you have a locked bootloader - definitely not the security level you want.

@AndyYan I think most people would be okay with that — just say "Hey, flashing this could allow access to your data.  Just to make sure you're really you and not an evil nefarious person, please input the primary user's screen unlock code / password.  You have 5 tries before user data is wiped," and then maybe users very concerned about their data could block that style recovery.


text:
separation contacts according to social networks
is there any way to separate social network contacts and save it to a file ? like save "IMO" contacts in a file and save telegram contacts in another file ?

You can use custom filter of contacts sorted by socialnetaccount, then export it to SD


text:
Can you charge a Quick Charge 3.0 phone with a Quick Charge 2.0 mains adapter?
The Wileyfox Swift 2 is QC3.0 enabled, but the only trusted brand adapter I can get is QC2.0. What happens when you charge a QC3 device using a QC2 adapter?
I noticed several other questions on this StackExchange, but none of them seemed to answer this particular scenario.

From  Qualcomm product manager, responsible for Quick Charge

Of course, QC3 is backwards compatible to QC2 so your existing QC2 adapter will charge a QC3 phone and vice versa

(Emphasis supplied)
Thanks for asking this, I was under the impression that it is one way compatibility

Would appreciate your feedback once you use the charger please


text:
Change UUID of Android Device
I'm trying to change bulk devices UUIDs using DroidExplorer I've opened /data/data/com.android.providers.settings/databases/settings.db selected android_id from table secure to change the value. I then click Write changes however it's not taking the changes even after the reboot the device still reverts to the old UUID of the device. What am I missing and is there a better solution?
The devices are running on Android Kitkat 4.4.2 and they're Chinese tablets.

I was able to manage that it using SQL command.

Go to /data/data/com.android.providers.settings/databases/settings.db
Open the database using SQL Database Editor
Use SQL Command
UPDATE android_id
SET value = REPLACE(value, 'old-id', 'new-id')
WHERE _id <=25
Click File > Write Changes
Exit and Push changes to device

You're done!


text:
How can I return to locked boorloader, unrooted and original ROM state on Asus Zenfone 2 Laser ZE500KL?
I need to return the phone for reparation. The handset is broken. The warranty is void in the current state of the mobile phone.
How do I return to its original state?

Since the device is unlocked with either ASUS's proprietary app or a non-conventional command, things don't look too good for you...

ASUS already upload stock ROM for ASUS Zenfone 2 Laser Series, You can download the ROM's via download links below :
Asus Zenfone 2 Laser ZE550KL:
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE550KL/UL-Z00L-WW-1.16.40.763-user.zip
Asus Zenfone 2 Laser ZE500KL:
http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE500KL/UL-ASUS_Z00E-WW-12.8.5.222-user.zip
Adb fastboot Tool
USB drivers
Laser ZE550kl
How to Flash Stock Rom on Zenfone 2
In this tutorial I'm taking WW_1.16.40.763 in ZE550KL/ WW_12.8.5.222 in ZE500KL as an example.
Step 1. Once you have downloaded the full stock rom, rename the zip file to WW_1.16.40.763 / WW_12.8.5.222
Step 2. The reason why we did this is, by renaming the zip file the phone gets notified that a new version of software is available to install.
Step 3. Copy the renamed zip file to internal memory of your zenfone 2 laser.
Step 4. Disconnect the phone from pc, you'll get a notification of available update.
Step 5. Install it. Now the phone reboots with the fresh stock rom flashed in it.
If the above method not work try the below one.
How to Flash Stock Rom on Zenfone 2

Turn off your Zenfone 2
Go to recovery mode (Tutorial HERE)
Select apply update from ADB
Connect your Zenfone 2 to your PC with USB cable
Open command prompt in Windows (in the same folder where ADB is located)
Check connection by type adb devices if connection successful will be a list of Zenfone 2 device
Type adb sideload file.zip (file.zip=adjust the filename, asus zenfone firmware that you download earlier)
Wait until the process is complete
Zenfone 2 will flash to clean thoroughly

Hope it helps.

What about relock? Since the ultimate goal of OP is to prepare the phone for warranty, the remaining unlocked bootloader is certainly not ideal.

After doing the above answer's steps run fastboot oem lock to relock the bootloader.

Do you own this device? From the XDA thread I linked above, it seems unlocking is a one-way effort (like most ASUS devices), and relocking hasn't been achieved yet. If you have any concrete proof that this command works on this exact device, please raise them.


text:
Battery went from 85% to 32%
I have two cell phones, one is for work the other is personal. I had them stacked on top of one another on my desk. All of a sudden my work phone went completely dead from about 75% full, and my Android went from 85% to 32%. What gives?

If they are more than 12-18 months old, the batteries could be bad... otherwise try recalibrating the batteries, run them until they power off on their own, fully charge them with the power off, then turn on and repeat the cycle once.

This is just a hunch. I think they were interfering each other radio signal. I can't site any evidence. Sorry for that.

It's winter, your phone was probably very cold. I've had problems like that too. My phone went from 6% to dead. Then I heated it back up to room temperature, turned it back on and it was at 26%. If it was a normal condition, and it happens again, consider replacing your battery.


text:
A question about Android recovery bootup sequence
What exactly gets copied into the /recovery partition when I execute the following command:
fastboot flash recovery <my_recovery_image>.img

As per my understanding, the recovery image contains the kernel image and the ramdisk (initrd.img). So these should go into the /boot partition (am I right?). So, what is the content of /recovery partition after flashing the device with custom recovery when I explicitly specify recovery partition argument in the fastboot command? Or the /boot and /recovery partitions have separate versions of kernels and ramdisks, where /boot partition ramdisk would help load the operating system image from /system partition? If this is true, does that mean there are more than one init.rc scripts? (one to mount some partitions during recovery boot-up and the other for normal OS boot-up)?


text:
How do I hide the "App permission management is running" notification?
I have a vernee Apollo Lite which runs Android 6.0.
There's a permanent notification called "App permission management is runn..." The App name seems to be Permission Control.
It's always there and clicking on it brings me to the permission management dialog.
I would prefer if it wouldn't always clog up space in the notifications. Is there a way to hide it without changing to automatically allowing all permissions?

Longpress on notification than tap on 'i' and check block all notifications, but beaware if is permission management part of system you will maybe not be allowed to block notifications or it will block notifications that you don't want to block.

Unfortunately the "block all" choice isn't offered. Do you know whether this behavior is special to vernee or whether it's default for Android 6.0?

Yeah, i tought so. I'm not sure, some time ago I had same problem on SlimKat ROM where I couldn't hide that notification when permission manager is runing. There was some xposed module which allows blocking certain notifications but I can't remeber it's name. But now on stock marshmallow I dont get that notifications ever.

authors: Једноруки Крстивоје


text:
Enable networking protocols over usb
This is too specific issue I encoutred with the Sony Experia XZ and somehow only this phone have this problem, The story is that I'm trying to connect a DJI Phantome 4 remote controller with this phone, but the phone doesn't even recognize that I've connected something over USB, in the beginning I thought that the  remote controller is defected, but after testing it with a bunch of other Android SF with the same version 7 all of them works perfectly with the DJI RC over USB with debugging mode active, I've posted the problem in the Sony forum and I've got this answer :

Hi @zerubeus As @nolramlb has said above, I too have had trouble
  connecting the Dji controller to the XZ. The only information
  regarding usb connectivity issues was that the XZ does not support the
  networking protocols over usb that the phantom controllers may or may
  not use. I have asked Dji which service the controller uses to connect
  but they did not reply to my query, similarly, I asked Sony mobile
  support why this may be happening and they found that usb ethernet
  services are not supported. Whether this is the service dji use, I
  don't know, and only dji can say for sure if that service is the one
  they use on Android.

Now my question is how I cant enable networking protocols, is it just a software layer or the hardware is involved here ? If it is a software restriction does a root to the device can solve that problem ?

It's unclear to me what your question is. Could you edit it down a bit? Maybe even add a tl;dr :)?

It's simple !! How can I enable networking services over USB that was disabled by Sony in their Xperia XZ smartphone, is there any alternative to enable networking services over USB ?

No solution to this ? :/

Try turning on USB Debugging? Try turning on USB tethering?

Usb already in debugging mode, Sony engineer told me that networking services was literally deleted from the phone, this is why I want to find an alternative solution to enable those services

Do you get the N sticky notification logo of USB OTG when you plug in your Xperia to the drone remote?

No notification when I plug the rc, like I'm doing nothing at all

This is really strange all other smartphones recognise the RC only this phone don't


text:
Get rid of setting bar above Gboard keyboard

How do I get rid of this bar above the Gboard keyboard?
I checked all of its settings, cannot seem to find it.
OnePlus One - Android 6.0.1

Disabling "Show suggestion strip" will also remove the setting bar. However, you won't be able to get any word suggestions though.

This is the correct answer. The settings bar is the suggestion strip. As soon as you start typing the bar in question starts showing suggestions and the buttons are gone. The buttons are there only when there's nothing to suggest.

Older Gboard doesn't have the setting bar above the keyboard, so downgrading is one of the options.
Here's what Gboard v5.1.18 looks like.

You need to disable

Number row
Google search button
Suggestion strip

Disabling the suggestion strip does work, but the users also lose the feature. Disabling the number row doesn't really remove the setting bar, it only makes the keyboard more compact. As of the current version (10.5.04), I can't find the setting for the Google search button though...

You can make it disappear if you set the height of the keyboad to small.

As of the current version (10.5.04), setting the keyboard height to "short" or "extra short" doesn't hide the setting bar.


text:
Where do you disable Google Timeline on the Android phone?
On OnePlus phone to my surprise, all my location was automatically sent to Google Timeline which I don't remember I actually agreed on such thing.
At what point it was enabled and how do I disable such option completely on the phone?
I'm aware that I can Pause Location History online at Google Timeline, but I'm looking for option on the phone, not to pause online, but to disable it completely for privacy reasons.

Go to Settings, then Location.
Find Google Location Settings and individually switch off both Location Reporting and Location History.
Underneath Location History, select “Delete Location History” to wipe clean the cache of locations.
Repeat the steps for every Google account you have registered.

Note that disabling all location-finding features will throw a monkey wrench into the functioning of some  apps, so it’s wise to carefully consider which you want to strip of location services


text:
I have a phone that is completely locked and usb debugging is off. How can i make the phone usable again?
this phone is a lg stlyo 2 model : LGL82VL
The phone was pattern locked, and a gmail was set up. The phone was factory data reset. yet its asking for the gmail and password to finish the process. I do not have the gmail. Usb debugging is off. If i attempt to use adb is just replies with error: device '(null)' not found
How can i erase the phones rom and write a new one to make this phone usable again?
And I have already tried most if not all of the tricks on youtube of tricking the phone to let me into google and copy and paste a new gmail. That did not work. Also i cannot use the keys to bring me into any other menu to get into the file system.
At this point I would be completely okay with erasing the phones rom entirely and starting from scratch. I just need to know if its do-able and how to do it.
Thank you in advance.

Does it have twrp? If it does perhaps there is another way around that helps to reset forgotten pattern lock / security PIN / password from your Android device without having to lose your precious data.
 folder, thus resetting Android’s security.
Ketan from XDA Developers forum has developed an intelligent hack file, that needs to be flashed on your Android device through custom recovery and bingoo!! your phone’s security code / pattern lock and password will be removed. This hack basically instructs your phone to remove the files which tell android that the phone is locked to show the lock ui. If the device is protected with a pin or password it will skip it. If it's protected with pattern then it will not skip it but don't worry you can input any pattern to unlock it. Downloads: http://forum.xda-developers.com/attachment.php?attachmentid=2245081&d=1378720290 I hope it helps if it doesn't tell me there's another way to do it!!


text:
Samsung s7 battery drain
So my Samsung has been extremely overheating and not holding a charge. It went from 80 to 30 in under a hour. I checked the battery usage section in my settings and it say "10378" is using 81% of my battery. What the heck is "10378" and how do i stop it?

It is an app you've uninstalled recently, if you restart the device that entry will clear.

It doesn't give me a choice to force quit or report, they are grayed out. The only text there is; CPU total 13h 46m 37s and Computed power usage 7239 mAh @Minty_Tiger

I thought it could of been a app I recently installed so I uninstalled it and restarted my phone. Doing that did nothing


text:
Sorry, [almost everything] has stopped unexpectedly
when starting one of my rooted Z740 AT&T phones, it, after about 30 seconds, starts by stopping Google play services, then after about 5 consecutive of those most apps start crashing and the only way to open any app is using iSwipe from Clean Master.
I cannot to a reset as in the way through the settings won't do anything, and my volume keys are broken.
any Idea to suppress the notifications, or better, reset the device is greatly appreciated.
Usb debugging has been enabled before hand and works fine

Both the volume up and down are broken ?

@esQmo yes, i had gotten 2, both nonfunctional z740s, swapped batteries, one worked the other (the one mentioned) needed taken apart and in the process of it, little ribbon that was soldered on the motherboard broke, mid way. I haven't soldered before and all my friends that have are busy.

Please see this new article 2017/02/10 10 most useless apps and games for Android. Most prominent, but specifically named in the list: Clean Master (along with quote-Booster apps, Anti-Virus apps, and Task Killers-unquote)

@wbogacz for me, Clean Master was very helpful, as it's 'iSwipe' was the only thing that allowed me to open ANY app

I finally figured it out, wasn't easy and i'm probably only 1 of 2 people it has happened to (his solution didn't work for me.)
The /data partition was RO locked while in Android.
After installing the touch version of CWM, I mounted the data partition
In an ADB shell I did mount -o remount,rw,errors=continue -t ect4 /dev/block/platform/msm_sdcc.1/by-name/userdata to mount it as RW, it worked
after that since I finally got it RW, I then did a format of it through CWM

You can try sending an Intent with the adb shell. Connect the device, open a terminal and type the following :
adb shell am broadcast -a android.intent.action.MASTER_CLEAR

You need adb installed.

just while booted into android?

Yes, since the USB debugging is enabled, this should work fine.

I'll do it tomorrow, I left it at my work and I need to reassemble it

sorry, just left it at home, I'll do it as soon as I can

how long should it take for the phone to take the intent that was sent?

It's been about 2 minutes and my phone has done nothing  and it seems the request is still being sent.

Does adb detect your phone? What is the output of adb devices ?

P823A01 device is the only device attached, witch is my phone, I also can't uninstall apps currently too

try adb shell then wipe_data or wipe data

after doin wipe data i get Wiping /data Error opendir'ing /data 'Permission denied' Done wiping /data

why don't I have permission, I can't do adb root as it's still using a production build

As you have root access, try adb shell then su then wipe data

Let us continue this discussion in chat.

Root access is gained using the su command on  production builds.

I just found out the partition is read-only, but the normal mount command can't remount it as read-write

It needs root to mount as rw.

it wouldn't while booted with su or not, I fixed it by doing what I gave in my answer

Okay, didn't see the answer. Hlad that it worked.


text:
Playstore installs apks automatically, how?
We all know that playstore doesn't have root then how can the apk install automatically and it even uninstalls are possible is that 'cause of google play services?
If not then please mention how else. I've heard that playstore directly downloads apk to /data and deletes after installation. Where exactly does it store the apks?

Play store is almost always installed as a system app, and thus has access to the permission android.permission.INSTALL_PACKAGES - the introduction specifically states "not for use by third-party applications". Therefore it's capable of accessing Package Manager (pm) silently.
If you attempt to access pm in an app without root, you will be greeted with the message "Neither user xxxx nor current process has android.permission.INSTALL_PACKAGES".


text:
Replicate Chromecast bootstrap behavior on Android TV Stick
Chromecast and a few other devices have the following behavior.
Upon either first start or (I want to do) when known wifi APs are not present, they host a Hotspot which can be connected to from your phone to configure it, possibly to setup the AP that it should connect to.
I would like to replicate this on an android stick I have.
Usecase: I take the android stick on holiday, and I plug it into Hotel TV, but I cant control it, necessitating me to bring along my remote.
I am hoping I can set it up so that it can, in that case, host its own wifi, so that I can connect to it and either operate it from there, or configure the hotel wifi and switch to that. I have limitless remote for controlling the stick once wifi is connected.
Tl;Dr Is there an app/way (can be root only) which I can autorun on my tv stick which checks if there is a known hotspot, and if not it hosts its own Wifi hotspot so I can connect directly to it.
I cant have it just permanently do this because I also use it regularly at home, where I do not want this behaviour.

possibly similar to http://android.stackexchange.com/questions/27136/trigger-wifi-hotspot-based-on-known-wifi-availability-or-location although is there a free app which is possibly simple to use/single purpose?

Similar to http://android.stackexchange.com/questions/125592/is-there-a-way-to-automatically-turn-off-the-wireless-hotspot-once-i-get-back-ho?rq=1 too, but I doubt my android TV stick has a GPS chip. Also I dont need it to turn off android hotspot automatically, I would end up restarting it when I get home anyway.


text:
A way to sort new android app updates (not updated by user yet)
is there any way to know which apps have new updates (not updated by user yet) by notification date at least.
Because google play notification only mentions you got 2 new update without telling me what apps have new updates.
I have many apps that have new updates that I do not update because I don't want too. So, I want to sort these new updates by notification date or by app release or launch date.

Change log does that. Besides, it also gives out the update info that can help you decide if you want update or not - for instance, I am not interested updating an app which has no value to me, like languages which I never use!
Apps with updates pending are shown chronologically with green exclamation mark and on tapping it you get a detailed view of versions and changelog, as shown. Clicking Update Available takes to play store

KNOWN BUGS AND LIMITATIONS:( from app description)

Some applications are missing data. This is controlled by Google's closed-source API and is totally outside of my control.

Uninstalled apps aren't removed from the list until the app is restarted.


text:
can't install or update apps while in mobile data plan but working in Wifi
I have Nexus 6p phone. After the update to Android 7 my phone cannot install or update Apps from Google Play Store but it is working fine on WiFi. After Android 7.1.1 update the phone battery is draining very fast 100% = 2.5hr & heating Problem. I removed the updates for play store, changed permission too, but still nothing worked out for me.

If you also disabled limits in downloader, maybe firmware is  bugged? Try to carefully reflash your device.


text:
Where is the folder that Termux defaults to?
The Termux app is a terminal emulator. If I create a file or a folder there, and then use another file explorer app to browse my device, where can I find these files?

/data/data/com.termux/files/home   ??

If you're looking for other folders, they're probably in /storage/emulated/0. For example /storage/emulated/0/Download (no "s") for your downloads or /storage/emulated/0/DCIM for your images.

@beeshyams that is what I got from the pwd command, but is it mounted? I didn't think apps could get access to the root directory, and terminal would have to read it to find out its pos. I assumed that terms mounted the data folder somewhere and cannot see past the mount.

I was right. data is mounted inside Android folder, accessible from inside the file explorer..

You don't need to root your device. All you need to do is run the following command on a non-rooted (or rooted) device to allow termux to access your existing directories, particularly /storage/emulated/0:
termux-setup-storage

this creates a new directory in termux, ~/storage, which contains simlinks to /storage/emulated/0 and can be accessed by a standard gui file manager.
You will need to grant file access to termux when prompted after you run the command.
See here.

This worked!  Though I'll just point out to anyone who didn't pick up on it, that it's not the ~/storage directory itself that is /storage/emulated/0, but that location is rather the symlink ~/storage/shared.  Hence putting things into ~/storage directory wouldn't help you access the files.

Where can I access that file in USB mode? I need to edit the extra key config file. I don't have ctrl key now, can't do much via termux

This worked for me also after I ran pkg install termux-am as mentioned from this issue. This comment also mentions another install that I believed I installed once too that has helped with this issue as well

The default directory is: /data/data/com.termux/files/home.
Since Termux supports bash commands, user can run pwd to print current working directory.
Note: pwd is an acronym of print working directory.

Reference: Unix.SE - How to get current working directory?

Thanks... But my data directory is empty. My phone is not rooted... Does that matter?

@Maxcot Unfortunately, yes. The /data/ folder is only accessible to all if the phone is rooted. By default, only Termux can write & read that folder.

@Maxcot you might want to copy (or move, but becareful) them to /sdcard if you want. Refer to this question on SO

Termux help may provide a way out ( not tried by me)

What I don't understand is why I have access to the folders through termux, but not through any other app like ES File Explorer. It's like the permissions are dependant on the app, not the user.

@Maxcot Sorry for late reply. Yes, it's because each running app is sandboxed for security reason so that other apps cannot read/write other apps' data directly.

Provided that you don't want to root your phone, it is possible to change permission for Termux (Settings->Applications->Termux->Permissions) and enable the Storage permission.
This way you are granted access to phone and sdcard storage and you can use it as superuser (mv, ls and other commands work as intended) in the application.
So, you can move or copy the files you need into internal storage.

You may also need to run termux-setup-storage in Termux to gain access to the SD Card or Internal Storage

You can query the $HOME variable to find the "default folder" regardless of the terminal app you're using:
$ echo $HOME
/data/data/com.termux/files/home

You can access the files inside the termux folder by simply doing this. (Without using any third-party app/rooting your device)
Step 1: Go to Downloads on your Device

Step 2: Go to the Appbar

Step 3: Scroll down till you find Termux

Step 4: Click on Termux and you can see your files

Termux has its default directory that's inaccessible to newbies. To verify this, on the CLI, type
$ pwd

and data/data/com.termux/files/home should appear.
To be able to manipulate your Android directory from Termux, on your Android device, go to Settings - Apps - Termux - Permissions - tap "Storage" on.
Now on the CLI, in Termux, type
$ cd /storage/emulated/0
$ pwd

and /storage/emulated/0 should appear.
You can as well create a new file in your local storage,  type
$ echo hello world > MyFirstTermuxFile.txt

That's it. You can now play with your local device storage.

You can touch it on data/data/com.termux/files/home. That's the default main directory of Termux.
It's impossible to find the file that you've created on Termux main directory as I mentioned above on your phone because it's not rooted on any device.
It works as sort of a server. By thereon data/data/com.texmux/files/home, which is the default main directory of Termux, you can already browse files, create files, manipulating them the same sort you're using your file manager

You can view it easily with Material file manager.
https://www.learntermux.tech/2020/10/Termux-File-Manager.html
Here is a guide I found useful to me.

Hi, whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Consider [edit]ing to summarize the content and/or expand the answer.

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.  Link-only answers can become invalid if the linked page changes. - From Review


text:
A way to copy data from android?
I have a samsung s4 on android 6.0.1 and the phone has a cracked and unresponsive screen. I tried to plug the phone to my computer so see if I could copy pictures from my internal drive but it wouldn't work. I tried  adb pull since I have root access and developer option was always enabled but I get error: insufficient permissions for device: verify udev rules.
adb devices  shows 9a22b563  no permissions (verify udev rules); see [http://developer.android.com/tools/device.html] I think this is happening because of my locked screen. It is stopping adb from working properly. Is there a way to get my data back by disabling the lock screen?
I have root and custom recovery access but unable to reboot to recovery due to adb not giving access.

You can manually boot to recovery without adb. Therefore turn your phone off and then press the power button, home button and volume up (at least as far as I remember) simultaneously for several seconds. This should boot the phone to recovery and you can try to use adb although I don't know if you now have the needed permissions.


text:
Is there a standard way to identify if a mobile application is native or hybrid by looking at the apk file?
I'm a beginner learning mobile appsec. I just wanted to know if there is a standard way to identify if a mobile application is native or hybrid by looking at the apk file?

If it uses native code, then it should have references to System.load() or System.loadLibrary(). But ...
It could also just execute something native with Runtime or ProcessBuilder, or use DexClassLoader to load a dex/jar which then performs this. But ...
Unfortunately, this could also be worked around, since Java could use reflection to hide any of the mentioned class/method names from static analysis.

Thanks domen.. I remember googling about this, where I read, if the application code contains 'webView' keyword then it could be a Hybrid application?? I don't know if its really that way.. Your inputs pls...

I don't understand the question. You read that apps containing WebView load native code? There's no obvious relation. Of course if you dig deep enough, you eventually come to native code, but that holds for many things (anything with system calls at least).

I think there's a misunderstanding about the meaning of "native" here. If I interpret the OP's intent correctly, it's about an app written in "native" Java/Kotlin vs hybrid framework such as React Native, Ionic, Mobile Angular UI, jQuery Mobile, PhoneGap (which are JavaScript-based, hence some of them need WebView to work), but also Flutter and Xamarin,


text:
How to improve app loading speed in custom ROM?
I have installed Official Cyanogenmod 14.1 ROM on my Redmi 1s. I have installed only 20 user apps(out of 20,6 are google apps).I am facing app loading delay for some apps like dialer, settings, camera like that. It will take about 5 seconds delay to open up. Earlier, it was faster than this.
Steps I have done:

I install Night-lies as a fresh install(clears internal storage) sometimes, and restores some apps using titanium backup (Contacts, Sms, Whatsapp).
Sometimes, I will clear cache and data of major apps like Google, Gmail, Browsers etc
Prevents data usage for rarely used apps.

But, still it continues. How to speed up?

Don't expect SD400+1GB to handle Nougat too well...

@AndyYan Well, I have an "old" Samsung Galaxy S4 Mini, and it's perfectly able to handle Nougat. Is the device in question so bad, compared to mine?

@DeathMaskSalesman 1GB versus 1.5GB can make a noticeable difference depending on what app he has. S4Mini also has a MSM8930AB SoC with Krait 300 cores, and with many Android apps running on single core, I believe it's quite a bit superior. Although I do think 5s delay for a preinstalled app is way too much...

To OP: are there any other Nougat ROMs available for your device that's not based on CM, for example, Omni? Try one of those to see if it's a ROM-specific issue, or if it's just your device can't take it anymore.

Other Roms are available such as Resurrection Remix. I will have a try, and have an analysis whether it is Rom specific. .


text:
Does Google Maps require a compass to show the direction you are facing?
On my old phone I used Google Maps a lot. One thing I found useful is the dot that indicated where you were had a little flashlight affect to show you the direction you were facing. Does this only work with phones with compasses? I ask because I'm considering getting the motrola g4 plus which doesn't have a compass.
Example: notice how triangular area points down and to right.

Yes, it requires compass or magnetometer sensor to show the direction
Specific to Moto G4 plus, maps will work but you will not be able to see direction as you guessed. See Alpha Dog Senior Moderator remarks on the device forum

Google maps uses gps, so it will work fine.  The actual direction your phone is facing is the only thing unknown. So if you are standing still it can't tell what direction you are facing.
Google maps has been on phones since before a compass was a sensor.

Also see Pokemon Go without compass?

Darn. Any suggestion of a similar phone that has the compass?

That would need you to search other sites like  gsmarena, since you know you can't ask for suggestions or recommendations here

That's fine....

Moto X Play is similar , but has a compass, and in the same price range- I am happy with it


text:
Oneplus2, screen capture option disappeared after OS upgrade
I have a Oneplus2 device, recently (last week) I have upgrades the OS to OxygenOS 3.5.6. Among a lot of UI changes I have noticed that when I long press the power button I only get the "Power off" and "Reboot" options.
Before the OS upgrade It also contained a capture screen (for screenshots) button. Is there a way to bring it back ?

Looks like it's dropped. Apart from Vol dn + power option you have 3 finger swipe option

If your device is rooted, it is possible

well, my device is not rooted.. yet! but i want to avoid having to install another widget/app just for that

In which case, you may not be able to bring it back as it is not a supported OS feature ( and needs root to modify OS) - I don't have that OS but a friend who has was discussing this option and showed me the three finger swipe

Just tried the 3 finger swipe and it's pretty good. post your solution as an answer and I will accept it

Posted as requested

This feature is dropped from the OS update and you would need root pets to attempt restore or apply a hack. Since your device is not rooted, you can use Three Finger Swipe . Steps below :
Settings → Gestures → Enable Three Finger screenshot
By swiping the fingers from top down, you can take a screenshot. There's also an option of taking  a long screenshot by pressing the icon which looks like portrait device icon
I neither have the device nor OS, but saw it on a friend's device. Please feel free to add or edit


text:
How to update Google assistant app on non pixel device?
As I read in news about the update(take and share screenshot) for google assistant but that update only for pixel devices, not for nonpixel devices.

I don't try it yet but probably it should work

Download the Google Play Services APK compatible with your device from here. There will be three files in the zip folder. Install the one (arm for Android 5.0+, arm for Android 6.0+, arm64+arm for Android 6.0+) compatible for your device.
Copy the file over to your Android phone. Remember, it needs to be running at least Android 6.0 or up in order for this to work.
Head on over to Settings > Security and tick the box beside Unknown sources, allowing for apps to be installed from outside the Google Play Store.
Using your favorite file manager, locate the APK and tap it before following the installation prompts.
Marvel at your all-new Google Assistant.

after updating it, google play service will bring Google Assistant updates for you
Reference: How To Force Google Assistant Update On Your Android Device Right Now

ou will get further Explanation on this link. If this link disappear for some reason then just follow the above steps to get things done.


text:
How do I remotely track a missing persons Android with GPS
I have a family member missing over a week now. How do I remotely track the missing person on their Android and get a GPS location?
I need to use my desktop computer to do the tracking.

you might need to install an app, which will be difficult :(  Sorry about the missing relative.

Do you have access to a Google account that's logged into the phone?

The purpose of this site is to allow questions and answers to be available for other people, including in the future. Although your personal problem may be resolved, it's best to leave your question for others to read, so I am reverting your question. Alternately, you can delete your question entirely.

If you have access to the Google account on the phone, you can use Google's Android Device Manager to locate the device. This requires the phone to be powered on with location services enabled. This will notify the phone as well.
If you do not have access to the Google account, you need a preinstalled tracking application, like Google+. Some more examples of preinstalled options:
https://www.cnet.com/news/location-tracking-apps/
http://www.phonearena.com/news/How-to-share-your-location-and-GPS-coordinates-using-your-smartphone_id50312
If you don't have either of these, then you can't use GPS to locate the phone; you need to have the phone service provider locate the phone (provided it's on). This is not a service normally provided to the general public. Get help from law enforcement, a private investigator, or a skip tracer.


text:
Invoke /system/bin/sdcard manually via terminal
I am trying to mount an EXT4 formatted SD card under Cyanogenmod 13.1 (Android 6.0.1).
So far, I have setup scripts to mount the card at /mnt/ext_sdcard during boot. My current understanding is that the "sdcard" service must then be invoked to create a FUSE mount pointing to the real mount point which will eventually lead the media scanner to the newly mounted disk.
Following some older older documentation and forum threads lead me to this command in terminal:
service sdcard /system/bin/sdcard /mnt/ext_sdcard /mnt/test 1023 1023
    class late_start

When I run the command (as root of course), it fails with an exit status of 1 and no output/error messages.
My question: Am I doing something wrong, or is this command deprecated in 6.0.1 (the documents/forum thread seemed to relate to KitKat)? What is the correct syntax/arguments for using this command?

Are you putting this command in an init.*.rc file? My understanding is you would have this in a init.extmount.rc for example. This requires extracting and repacking the boot.img.
Since I had nothing better to do, I created this: https://github.com/BenBaltz/mountext
Its a recovery flashable zip to install your script by unpacking the boot.img and repacking it with the modifications.
EDIT
Terminal commands
su -c mount -o bind /mnt/ext_sdcard /path/to/new/dir

Thanks Ben, I'll check out your script. Also, yes I am using this command in the main init.rc file currently

I tried your command in init.mountext..rc and I got service: Unknown command sdcard. Then I tried service call sdcard... which returned Service sdcard does not exist.  Also I found two running instances of sdcard on my system and found they were invoked with /system/bin/sdcard -u1023 -g1023 -U0 /mnt/media_rw/8005-91F9 8005-91F9. Does this command vary between Android ROM's?

@Jake I don't see anything after 'I got'.

@Jake This is what the bootlogs said? You have to reboot for it to be run.

No, I ran it directly in terminal (as root). I'd rather run them in terminal until I'm sure they work rather than patching system files.

@Jake That's not possible. If you want to just have all the files in your regular sdcard a bind mount can be run in a live system. You could use mount -o bind /mnt/ext_sdcard /sdcard I do not know if you can create a bind mount to an empty dir, I am testing that now.

Let us continue this discussion in chat.

In Android 6+ storage configuration:

Mounting of physical external storage volumes is handled by vold, which performs staging operations to prepare the media before exposing it to apps.
  ...
  The hard-coded FUSE services have been removed from device-specific init.rc files and are instead forked dynamically from vold when needed.

So the sdcard services defined in *.rc files are no more required, neither storage_list.xml is maintained inside framework-res.apk. Instead vold completely manages the storage devices defined with flag voldmanaged= in fstab. See more details in Android's Storage Journey.
In Android 9 FUSE support was completely removed from sdcard binary replaced with sdcardfs. sdcardfs can be mounted directly using mount command, so sdcard isn't necessarily required. However from Android 6 to 8 sdcard binary should mount an emulated filesystem if executed with proper arguments. You can see the failure log in logcat.
Also you can use a third party FUSE-based tool bindfs to achieve the same. See details in How to bind mount a folder inside /sdcard with correct permissions?


text:
How to set automatic time in our private WIFI network on MarshMallow
The most of  TCP And UDP output port are  closed in our WIFI network. The only way is for synchronize time of my android 6 in AndroidBox TV device is to be connected to our NTP time server. I tried ClocSync, NTPSync or Smart Times Sync with root access no issues.
All of these application are connecting well on the NTP server and showing the NTP time, but they didn't change the system time of the android device in my case. I noted I don't have any /system/etc/gps.conf in my system too
Google play is impacted by this problem and I can not to be connect with it if the time is no good.
Thank for any help

What device do you have?  It's possible that you might need a root app for it to have the rights to change the device time.

Sorry I forgot I've Android TV Leelbox S1 and root access. I'm close to find a solution with busybox rdate Thank for answering

Requirements
1.Root access
2.Busybox : for 'rdate' service
3.init.d folder in /system/etc/ to start daemon service at boot
mount system partition in read write :
su -
mount -o remount,rw /system

Create a file 99my_daemon at /system/etc/init.d with executable permission and enter the following lines
#!/system/bin/sh
while ! ping -c1 "0.pool.ntp.org" &>/dev/null
do wait 10
done
/system/xbin/busybox rdate -s 0.pool.ntp.org
exit 0

Close writing the /system partition
mount -o remount,rw /system

And reboot, your system should be connected to the 0.pool.ntp.org and synchronized when he booted. You could use the crontab to check synchronization during the using of the device


text:
Is Cerberus capable of surviving phone flashing?
If I install Cerberus on a rooted phone, will it survive flashing the phone?!!

Depends on what you flash. Living on the /system partition, it will survive a factory-reset. But flashing a new ROM would overwrite that partition and thus remove Cerberus.
If, on the other hand, you e.g. just flash GApps, Cerberus would survive – as that doesn't wipe/overwrite the /system partition.

and this applies to all other anti-theft apps, none of the existing ones survives wiping out the /system partition.

To my knowledge, that applies to all system apps – regardless of their purpose :)


text:
Google Now app force closes/crashes immediately upon launch
I'm running rooted stock Android 4.4.2 on an AT&T Galaxy Note 3 (SM-N900A). No problems with any other Gapps or apps in general. I have tried flashing older versions, but that didn't help. The problem remains whether it is installed as a regular user app or a privileged app. I have also tried running a permissions fixer on it.
As soon as I tap the icon the app displays for a few seconds and closes. If I erase the cache and app data it will run once correctly, but the problem returns after the account settings and whatnot are reinstalled.
Any help would be appreciated
01-12 11:57:19.576 I/MultiDex(24767): VM with version 1.6.0 does not have multidex support
01-12 11:57:19.576 I/MultiDex(24767): install
01-12 11:57:19.576 I/MultiDex(24767): MultiDexExtractor.load(/data/app/com.google.android.googlequicksearchbox-1.apk, false)
01-12 11:57:19.586 I/MultiDex(24767): loading existing secondary dex files
01-12 11:57:19.586 I/MultiDex(24767): load found 2 secondary dex files
01-12 11:57:19.586 I/MultiDex(24767): install done
01-12 11:57:19.596 I/SearchInitializer(24767): Initialized process com.google.android.googlequicksearchbox:search
01-12 11:57:19.606 W/ApplicationPackageManager(24767): getCSCPackageItemText()
01-12 11:57:19.616 E/dalvikvm(24767): Could not find class 'android.content.pm.LauncherApps', referenced from method com.google.android.apps.gsa.shared.y.b.a.j
01-12 11:57:19.616 W/dalvikvm(24767): VFY: unable to resolve check-cast 201 (Landroid/content/pm/LauncherApps;) in Lcom/google/android/apps/gsa/shared/y/b/a;
01-12 11:57:19.616 D/dalvikvm(24767): VFY: replacing opcode 0x1f at 0x0046
01-12 11:57:19.656 D/EnterpriseDeviceManager(908): ContainerId: 0
01-12 11:57:19.656 D/STATUSBAR-NetworkController(2065): refreshSignalCluster: data=0 bt=false
01-12 11:57:19.666 W/ActivityManager(908): mDVFSHelper.acquire()
01-12 11:57:19.666 D/STATUSBAR-IconMerger(2065): checkOverflow(360), More:false, Req:false Child:1
01-12 11:57:19.676 W/ContextImpl(908): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1469 com.android.server.am.ActivityStack.startPausingLocked:1002 com.android.server.am.ActivityStack.resumeTopActivityLocked:1940 com.android.server.am.ActivityStackSupervisor.resumeTopActivitiesLocked:3076 com.android.server.am.ActivityStackSupervisor.resumeTopActivitiesLocked:3054
01-12 11:57:19.686 V/SmartFaceService - 3rd party pause(908): onReceive [android.intent.action.ACTIVITY_STATE/com.google.android.googlequicksearchbox/pause]
01-12 11:57:19.696 V/WindowOrientationListener(908): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false
01-12 11:57:19.696 V/WindowOrientationListener(908): mSContextAutoRotationListener.getProposedRotation, Rotation: -1
01-12 11:57:19.696 V/WindowOrientationListener(908): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false
01-12 11:57:19.696 V/WindowOrientationListener(908): mSContextAutoRotationListener.getProposedRotation, Rotation: -1
01-12 11:57:19.696 D/Launcher(2965): onStop, Launcher: 1163129296
01-12 11:57:19.696 D/Launcher.HomeView(2965): onStop
01-12 11:57:19.696 D/AbsListView(2965): onVisibilityChanged() is called, visibility : 4
01-12 11:57:19.696 D/AbsListView(2965): unregisterIRListener() is called
01-12 11:57:19.696 D/AbsListView(2965): onVisibilityChanged() is called, visibility : 4
01-12 11:57:19.696 D/AbsListView(2965): unregisterIRListener() is called
01-12 11:57:19.696 D/SurfaceWidgetClient$ISurfaceWidgetStub(15032): [123491/1] Surface widget visibility changed visibility = false on instance = 1
01-12 11:57:19.696 D/SurfaceWidgetView(2965): destroyHardwareResources():1135437944
01-12 11:57:19.696 V/WindowManager(908): rotationForOrientationLw(orient=-1, last=0); user=0 USER_ROTATION_LOCKED sensorRotation=-1 mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false
01-12 11:57:19.706 W/ContextImpl(908): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1469 com.android.server.am.ActivityStackSupervisor.realStartActivityLocked:1156 com.android.server.am.ActivityStackSupervisor.startSpecificActivityLocked:1299 com.android.server.am.ActivityStack.resumeTopActivityLocked:2257 com.android.server.am.ActivityStackSupervisor.resumeTopActivitiesLocked:3076
01-12 11:57:19.736 I/com.sec.att.apo.ApoService(2821): On foreground activity changed : 2965,10009,false
01-12 11:57:19.736 I/dalvikvm(24767): Could not find method com.google.android.apps.gsa.searchnow.SearchNowActivity.finishAndRemoveTask, referenced from method com.google.android.apps.gsa.searchnow.SearchNowActivity.Ai
01-12 11:57:19.736 W/dalvikvm(24767): VFY: unable to resolve virtual method 39376: Lcom/google/android/apps/gsa/searchnow/SearchNowActivity;.finishAndRemoveTask ()V
01-12 11:57:19.736 D/dalvikvm(24767): VFY: replacing opcode 0x6e at 0x0006
01-12 11:57:19.736 V/SmartFaceService - 3rd party pause(908): onReceive [android.intent.action.ACTIVITY_STATE/com.google.android.googlequicksearchbox/create]
01-12 11:57:19.736 D/STATUSBAR-NetworkController(2065): onReceive() - RSSI_CHANGED_ACTION, WIFI_STATE, NETWORK_STATE
01-12 11:57:19.746 I/dalvikvm(24767): Could not find method android.app.Activity.releaseInstance, referenced from method com.google.android.apps.gsa.shared.ui.i.releaseInstance
01-12 11:57:19.746 W/dalvikvm(24767): VFY: unable to resolve virtual method 386: Landroid/app/Activity;.releaseInstance ()Z
01-12 11:57:19.746 D/dalvikvm(24767): VFY: replacing opcode 0x6f at 0x000a
01-12 11:57:19.746 W/ApplicationPackageManager(24767): getCSCPackageItemText()
01-12 11:57:19.756 D/Launcher(2965): onTrimMemory. Level: 20
01-12 11:57:19.796 I/dalvikvm(24767): Could not find method android.content.Context.getDrawable, referenced from method com.google.android.apps.gsa.sidekick.shared.ui.j.setInsets
01-12 11:57:19.796 W/dalvikvm(24767): VFY: unable to resolve virtual method 891: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
01-12 11:57:19.796 D/dalvikvm(24767): VFY: replacing opcode 0x6e at 0x003e
01-12 11:57:19.796 I/dalvikvm(24767): Could not find method android.content.Context.getDrawable, referenced from method com.google.android.apps.gsa.sidekick.shared.ui.j.setInsets
01-12 11:57:19.796 W/dalvikvm(24767): VFY: unable to resolve virtual method 891: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
01-12 11:57:19.796 D/dalvikvm(24767): VFY: replacing opcode 0x6e at 0x0053
01-12 11:57:19.796 I/dalvikvm(24767): Could not find method android.view.View.setOnApplyWindowInsetsListener, referenced from method com.google.android.apps.gsa.shared.ui.drawer.AccountNavigationDrawerLayout.akf
01-12 11:57:19.796 W/dalvikvm(24767): VFY: unable to resolve virtual method 13155: Landroid/view/View;.setOnApplyWindowInsetsListener (Landroid/view/View$OnApplyWindowInsetsListener;)V
01-12 11:57:19.796 D/dalvikvm(24767): VFY: replacing opcode 0x6e at 0x007b
01-12 11:57:19.806 I/dalvikvm(24767): Failed resolving Lcom/google/android/gms/people/accountswitcherview/k; interface 2005 'Landroid/view/View$OnApplyWindowInsetsListener;'
01-12 11:57:19.806 W/dalvikvm(24767): Link of class 'Lcom/google/android/gms/people/accountswitcherview/k;' failed
01-12 11:57:19.806 E/dalvikvm(24767): Could not find class 'com.google.android.gms.people.accountswitcherview.k', referenced from method com.google.android.apps.gsa.shared.ui.drawer.AccountNavigationDrawerLayout.akf
01-12 11:57:19.806 W/dalvikvm(24767): VFY: unable to resolve new-instance 12126 (Lcom/google/android/gms/people/accountswitcherview/k;) in Lcom/google/android/apps/gsa/shared/ui/drawer/AccountNavigationDrawerLayout;
01-12 11:57:19.806 D/dalvikvm(24767): VFY: replacing opcode 0x22 at 0x0088
01-12 11:57:19.806 I/dalvikvm(24767): Failed resolving Lcom/google/android/gms/people/accountswitcherview/k; interface 2005 'Landroid/view/View$OnApplyWindowInsetsListener;'
01-12 11:57:19.806 W/dalvikvm(24767): Link of class 'Lcom/google/android/gms/people/accountswitcherview/k;' failed
01-12 11:57:19.806 D/dalvikvm(24767): DexOpt: unable to opt direct call 0xcd52 at 0x8a in Lcom/google/android/apps/gsa/shared/ui/drawer/AccountNavigationDrawerLayout;.akf
01-12 11:57:19.826 D/dalvikvm(12902): GC_CONCURRENT freed 2095K, 23% free 26394K/34056K, paused 3ms+3ms, total 60ms
01-12 11:57:19.826 W/dalvikvm(24767): VFY: unable to resolve static field 5339 (ACTION_SCROLL_BACKWARD) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
01-12 11:57:19.826 D/dalvikvm(24767): VFY: replacing opcode 0x62 at 0x0037
01-12 11:57:19.826 W/dalvikvm(24767): VFY: unable to resolve static field 5341 (ACTION_SCROLL_FORWARD) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
01-12 11:57:19.826 D/dalvikvm(24767): VFY: replacing opcode 0x62 at 0x004d
01-12 11:57:19.836 W/EDMNativeHelper(256): EDMNativeHelperService is published
01-12 11:57:19.856 I/dalvikvm(24767): Could not find method android.view.ViewAnimationUtils.createCircularReveal, referenced from method com.google.android.apps.gsa.shared.ui.d.setTarget
01-12 11:57:19.856 W/dalvikvm(24767): VFY: unable to resolve static method 13192: Landroid/view/ViewAnimationUtils;.createCircularReveal (Landroid/view/View;IIFF)Landroid/animation/Animator;
01-12 11:57:19.856 D/dalvikvm(24767): VFY: replacing opcode 0x71 at 0x0053
01-12 11:57:19.906 I/dalvikvm(24767): Could not find method android.app.Activity.requestPermissions, referenced from method com.google.android.apps.gsa.shared.util.permissions.a.a
01-12 11:57:19.906 W/dalvikvm(24767): VFY: unable to resolve virtual method 387: Landroid/app/Activity;.requestPermissions ([Ljava/lang/String;I)V
01-12 11:57:19.906 D/dalvikvm(24767): VFY: replacing opcode 0x6e at 0x002d
01-12 11:57:19.916 I/dalvikvm(24767): Could not find method android.content.Context.checkSelfPermission, referenced from method com.google.android.apps.gsa.f.a.d
01-12 11:57:19.916 W/dalvikvm(24767): VFY: unable to resolve virtual method 876: Landroid/content/Context;.checkSelfPermission (Ljava/lang/String;)I
01-12 11:57:19.916 D/dalvikvm(24767): VFY: replacing opcode 0x6e at 0x0006
01-12 11:57:19.936 E/dalvikvm(24767): Could not find class 'android.content.pm.LauncherApps', referenced from method com.google.android.apps.gsa.search.shared.multiuser.l.connect
01-12 11:57:19.936 W/dalvikvm(24767): VFY: unable to resolve check-cast 201 (Landroid/content/pm/LauncherApps;) in Lcom/google/android/apps/gsa/search/shared/multiuser/l;
01-12 11:57:19.936 D/dalvikvm(24767): VFY: replacing opcode 0x1f at 0x0085
01-12 11:57:19.936 D/dalvikvm(24767): DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
01-12 11:57:19.936 W/dalvikvm(24767): VFY: unable to resolve static field 236 (SUPPORTED_ABIS) in Landroid/os/Build;

I'm not an expert at reading logcats but it looks like an error might be happening when it initializes the microphone. Though why is the mic being initialized when I'm just launching the app?

Go to settings > Apps > Click on Google Search. Clear cache / Clear Data. See if that helps.
If not, then check the play store for updates to the Google app.
If problem persists, then uninstall Google now using titanium backup or some other app of your preference and reinstall from play store.

If you re-read my question I already tried those things. And I've tried installing it as a privileged app. And I've tried earlier versions.

Since you are rooted, try flashing the gapps package again and wiping dalvik cache

You suggest flashing an entire gapps package? Is that necessary when only one Gapp is having issues? I'm not sure where to find a gapps zip compatible with KitKat. I tried flashing an older version of the app designed for KK but the same behavior persists. Also I have to use FlashFire to flash because this model has a locked down bootloader. It's rather finicky sometimes.

@Jesse you can get the gapps from opengapps.org Flashing the gapps package is necessary because it contains all the dependencies needed by the individual apps.

Same thing happened to me. In my case its the cards that were causing it. I turned off the feed and deleted cards preferences and it works ok.


text:
How do I prevent people from shutting down my samsung phone?
When I have the passcode enabled, you can still shut down my phone when you press the power button. Is there any way to prevent people from shutting down my phone?

There is a way, but I'd like to know which phone model and Android version

I have a Samsung galaxy phone in the J series. The android version is 6.0.1(Marshmallow).

You can't do it 100%, because it is, like mentioned by bmdixon and in here
How to prevent someone from powering off an android device?, a hard-wired feature. But you can get rid of the on-screen-option with this App: Smart Lockscreen protector (Play Store)


text:
YouTube and AdAway whitelist?
I use AdAway to modify my hosts file with quite a few aggressive sources. Unfortunately when my filters are active I can't see any channel or user pictures in the YouTube app. I can't figure out what hostname(s) I need to whitelist to fix this.
I've tried using the tcpdump log to add a bunch of Google/YouTube hostnames but this hasn't worked and I don't understand why. Any help would be appreciated.

I finally resolved this on my own. After lots of DNS logging I found the necessary. hostnames.

s.youtube.com
s.ytimg.com
youtubei.googleapis.com
yt3.ggpht.com

Which are? Others may benefit from your list...

I certainly hope so

brilliant! i had installed adaway on a rooted galaxy s3 running 4.3, and the audio on youtube videos was either gone, or sounded garbled. (youtube's ads had perfect audio) i whitelisted the 4 entries you discovered, and youtube audio is back.

It worked for YouTube Community Posts.