What does the TO DO button in GoSMS do? In GoSMS, an incoming SMS is usually shown within a popup containing buttons like DELETE / TO DO / OPEN.

What functionality does TO DO provide?

I believe it closes the popup alert but leaves the message marked unread, whereas the close button (the X) will mark it as read and close the popup.

Edit: This seems to be supported by this comment from their website.


Why am I not allowed slashes in the proxy setting? HTC/Android 4.4.2

I am trying to set up VPN at work, which requires me to define a proxy server. I can long-tap on the staff WiFi name and enable advanced options, which allows me to define the proxy and port – except that the Save button seems to grey-out or not depending on what I type. It seems to be validating the proxy address as I type.

My problem is that our work proxy server address contains slashes, which the validation doesn't accept.  So, if I enter proxy.pac then I can save it, however, I need to enter http://xxx.com/proxy.pac

Having looked around the forums, I think this must be a fairly rare problem - I see only a few references to this field not accepting a slash (in relation to adBlock). Although this does give me some assurance that its not just me, it doesn't really seem to offer a solution - those forums seem to find either a trailing space at the end of the proxy name, or that entering the form's fields in a reverse order then enables the save button.

So my questions are:

Is this a known problem? Can it be repeated elsewhere? Am I doing something stupid?
Can a 3rd party app offer a solution? I've tried some, eg "Proxy Settings" but it too doesn't allow the slash, also seeming to attempt to validate the hostname setting and refusing to accept what I need to enter.
Would rooting the phone help me? I see a lot of the available apps for setting proxies require that the phone has been rooted - I am reluctant to do this unless I know it will solve my problem.
I am aware there is a new release of Andriod around the corner... perhaps somebody with hands-on experience can see whether this problem still exists (simply try and enter a string with a slash in it for proxy settings, if you can press enter then I'll be first in the queue to upgrade when its available for me)

Any help/comments much appreciated!

Your http://xxx.com/proxy.pac is not a proxy server, it is the address to a proxy automatic configuration (PAC) file. A PAC file contains a Javascript function that determines which proxy address to use and/or whether you're allowed to go direct when connecting to a particular URL.

ProxyDroid (requires root) claims to support proxy configuration using PAC file (I had never personally used it though).


Can I change the font color of my Google Now card? So in the From and Arriving on my Google now time cards, the values I put in are white. Which makes them unreadable.

Is there some way that I can change the text or card color so it is actually visible?
Thanks

I had the same issue, but it was fixed with the most recent Google Search update (I'm currently on version: 5.1.17.19.arm)


Make Google Search app use Google.com.au I purchased my HTC Desire (2.2 FroYo) from the UK and by default I guess the Google Search app uses Google.co.uk whenever I run a search through the app.

This is quite annoying as you could imagine since none of the local services/locations are show since it's searching on the UK domain.

Is there a way without rooting that this could be modified?

So I figured out a while back that it's my phones locale that is affecting this but never really thought I could change it.

This morning however as I was doing a Goolge search for "how to change Android locale" I though about trying to search for an app on the Market.

Sure enough there are a few that can. The one that I've gone with is made by inKa.

Custom Locale


Is there a way to blacklist SSIDs? Possible Duplicate:
  How can I tell my droid x to ignore a public wifi network?

Like, the SSIDs xfinitywifi and timewarnercable are everywhere near me, and unencrypted, but require a login/password which I don't have.  Is there a way to prevent them from showing up in the list, triggering notifications, etc.?

Blacklisting SSIDs is not currently in the base android software.  It is currently a "Medium" priority Enhancement for Android:  See Android Issue 7318

I have asked a related question ( How can I tell my device to ignore a public Wi-Fi network? ) but haven't found anything that works like I would expect.


Mirroring to multiple android devices Is there any way I can mirror one android device to other Android devices in my local network?

Try screen streaming over HTTP, for that you can use an open-source Screen Stream application available on F-droid.The application allows viewing the device screen in your web browser.

  It uses MJPEG to encode screen images and send them through the
  network. So it works with any desktop or mobile browser which supports
  MJPEG (Chrome, Safari, EDGE, Firefox).

Depending on what you are trying to achieve, it is best suited  to show your device screen during presentations and demos but not ideal for streaming video, and does not even support sound (since MJPEG does not support sound).

  Expected delay is at least 0.5-1 second or more on slow devices, bad
  WiFi or on heavy CPU load by other apps.

The application works via Wi-Fi (and/or 3G/LTE network). Fast and stable Wi-Fi recommended because of high traffic and low network delay requirement. No Internet required, however, there must be a network connection between the client and the device.

The number of client connections is unlimited, but be aware that each of them requires some CPU resources and bandwidth to send data.

Note:  Some Wi-Fi networks (mostly public/guest) block connections between its clients for security reasons, so you may not be able to connect to the device via Wi-Fi  cell operators may block incoming connections to your device for security reasons, so you may not be able to connect to the device on using this IP address.


Do you still see ads even if your phone is offline? An uncle of mine refuses to use the free version of Astro File Manager, because he dislikes ads.

I told him to just leave his 3G off (he only uses it on demand anyway) and he shouldn't see them anyway, as my expectation was that they couldn't be downloaded.

But is this really true? I tried it with Angry Birds and after turning off 3G, I no longer saw any ads, but is this possible?

Most ads require internet access.  If you remove the internet access, then it shouldn't load the ads (unless they are somehow cached?).

If he really, really, really wants to get rid of ads all together, you can install the AdFree app on rooted phones.  It will remove ads from the browser, from apps, etc.  Anything that is in its blacklist will refuse to load.

However, developers do try to make a living and often provide their apps for free at the cost of a little advertising.  You may also want to try and explain this to him and if he really likes the app he can support the developer further by purchasing the full (ad free) version.  No money, no developers.


Prevent outgoing international calls except when made through Google voice Is there any way to prevent outgoing international calls except when made through Google voice, and without having to ask the mobile network carrier to block them?

I am the way of Is there a way/app to block outgoing international calls, without activating the network provider's International Call Barring? but I still want to go voice to be able to make international calls.

Here is how you can set up such configuration:

Go to Outgoing calls setting in GV preferences

Tick International calls only inside this menu


IMEI Repair/Change OF Motorola XT1765(Metropcs , Qualcomm processor - Not MTK ) I Need Help , Have rooted my Phone. Tried Miracle Thunder and many Other Tools Nothing worked. when i try miracle thunder tool to repiar imei after restart baseband become null or unable to check IMEI.
Can you please Suggest my Any tool or Method to repair it's IMEI ?
Android 7.1.1 ( rooted with Magisk)
Thank you

to resolve null baseband, flash the same baseband files.

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot reboot


Pending Notifications icons are black and white (no color) I have a Nexus 5.

All of the sudden I've noticed that the pending notifications icons at the top left of the my phone are black and white instead of some of them being colored. I don't know what happened. I didn't change any settings in the past couple of days. The only thing I've done is installed Yahoo News digest App.

Is there a setting that I could double check or someplace on my phone that addresses this problem?

According to the official design guide, notification icons are supposed to be white only.

Some apps do break the rules, so perhaps it's just that you had an app that used to have colourful icons but was updated to bring it into line with the rules.


Will I need to move app updates to SD card in Android 4.3? If I move a certain app to SD card (from App Info page), what happens when Play Store installs that app's update? Will the update automatically go to SD card, or will it go to internal storage and I'll have to move it to SD card again?

From my experience with my Droid after this functionality was added to Android, updates "go" to where the app is. That is, I did not need to re-move the app to the SD card after an update. As far as I know the functionality for that has not regressed. (Actually, I don't think much work has been done on it at all. Google would like for phones to just have internal storage.)

That said, there's probably more chance of something going wrong with an update in that scenario. You may find occasionally that you have to move an app back to internal storage to update and then move it back to the SD card. Or possibly re-install. But it's probably rare.

I don't currently have a device with 4.3 and an SD card, so this is a bit of conjecture based on my experience with an older version of the OS. Caveat emptor.


Samsung Tab2 without Google ID Is it possible to use a Samsung Tab WITHOUT using a Google account? I don't like Google to monitor all my activities.

Yes, it is. When you first boot the device, it asks for your Google account. Just select the option "I don't have a Google account" and then the option that says you don't want to create one.

Note that you can't use some Google services like Play Store which require a Google account.


Broken recovery, missing system e739 e739
I had used the twrp recovery.img from e730 and it worked fine, flashed cm7, worked great.
Then i saw that someone had made twrp for e739. I was going to flash that as well as an unofficial cm10 rom. I wiped system, then i thought i should probs do the recovery first, so i did, rebooted into recovery, and now, along with 4 tiny screens and pink everything, I can't flash anything. It would seem the recovery doesn't work. How can I fix this?

EDIT: I am getting an error saying it can't open the zip file. The file is fine, i did MD5 check

If you can access an adb shell, you can flash a recovery.

If you open the recovery zip up and go to META-INF/com/google/android/ you will find 2 files, you want "updater-script". Open this up with a text editor, and look for something that says dd followed by recovery.img. In that line near the end there should be something like "of=/dev/block/mtdblocknumbersnstuff"

copy that line. From here on I will refer to that as "of=x"

now go back to the zip folder and extract recovery.img to somewhere convienient. Connect your phone to the computer and boot into recovery, then run

adb push /path/to/recovery.img /data/recovery.img
adb shell
#cd data
#ls

Here it can output a bunch of stuff or nothing, but you are looking for "recovery.img" If you see it, good job, continue. If not, start over from the "adb push" command.

dd if=recovery.img of=x

From there reboot back into recovery and you should see the recovery you just flashed.


How can I deal with "Low on Space" messages on my Android? I keep getting the "Low on Space: Application data space is low. To free up" [the rest is cut off] message.

I've moved every app I can over to the SD card, cleared the cache, compacted my K9 mail cache.

Advanced Task Killer (ouch!) says I have 98M Available Memory

File Manager says I have 223M/748M (29%) free.

That's not so bad -- but I'm stuck in the no-updates scenario. The market downloads won't really start, gmail won't update, etc. I've rebooted several times, and nothing changes. Aaaargh.

What can be done, other than uninstalling everything ?

This timely post from Lifehacker may help... Were you the one who emailed them? ;)

What Should I Do When My Android Runs Out of App Space?

Here's the summary, in order of easy to hard:

Move Bigger Apps to SD Storage - currently requires Froyo (2.2). Navigate to
Settings > Applications > Manage Applications (or something similar). View the All Tab, sort by size. You can't do anything about the big hitters, namely Gmail, Browser and Maps will always be pretty big.
Clear the Cache, and Maybe Data, on Some Apps Similar to #1, navigate to Settings > Applications.
Clear Out Apps You Don't Actually Use Shouldn't this be #1? ;)
Android 2.2: Set Your SD Card as the Default Installation Location LifeHacker points to the Androinica blog how-to here.
Root Your Phone and Set Up Apps2SD Disclaimer: rooting may not be fun for non-geeks. LifeHacker how-to-root and custom firmware CyanogenMOD (also supplied by LifeHacker).

Of course some of the comments on the post are helpful as well. Hope it helps.


'Engineer mode test tool' app - What do the codes do? I was curious and installed the Engineer mode test tool app. It listed 'codes' and for most of them it wasn't written what they do. I couldn't resist stupidity and entered a few of them.

After entering one of the codes (listed under Google Service Framework in the app) my phone rebooted and the Android icon was shown and it said "erasing". I had a mini heart attack because I thought I had reset my phone. A white screen showed up saying something like "Enter password to unlock device". It said I have 30 attempts so I tried entering every password that I could remember but nothing worked. The counter said that I used just one guess no matter how many passwords I entered.

In the end I had to factory reset my phone because I needed it, but my data was on the SD card; as it was adopted I lost all my data.

What have I done by entering that code?

What was that screen that I saw?

This looks like a case for Sherlock Holmes.

You can try reinstalling the app, and checking / trying a few things that will help you remember what you did and what you got (the object of your question), in what you would consider a harmless way.

The follwoing lists of codes may also help you remembering; there are many other lists around. Keep in mind that some of the codes are exclusive to specific manufacturers and may not work on all brands/models/carriers.
Showing details on your case in the OP might help.
Comparing with the codes listed under Google Service Framework in the app would help narrowing down the hunting.

110 Android Secret Codes, Hidden Menu, and Dialler Codes.
Secret Codes : Use at your own risk.
Hidden Android Secret Codes & Their Usage.
Android Hidden Codes.

Once you know the code you entered, it is likely trivial to answer your questions:

  What have I done by entering that code?

  What was that screen that I saw?


OnePlus 3: Unknown process 99041 I seem to have this odd app 99041 running in the background and I have no idea what it is. The fact that it doesn't even have a proper name makes me think it's a bit dodgy.

Any ideas?

If it has no name but just "a number", it's usually some "native" system background process (the number is the "user ID"). You could find out more using adb shell or a terminal app, if you're not afraid of the command line – or using a process monitor app. A good choice here would be OS Monitor, which is available on F-Droid as well as on Google Play:

OS Monitor (source: Google Play; click images for larger variants)

Your candidate would find its equivalent in the process "149" (3rd line from the bottom) in the first screenshot. Being a "native binary", Android cannot find any information in its package list, and thus only gives an ID. First entry in the second screenshot shows what details you can additionally obtain on a process by using OS Monitor.


How do I mount an external USB flash drive? I have a SanDisk 32GB external flash drive I bought six years ago which I used to back up files from my PC. At the moment I no longer have access to as PC, but would like to mount my USB drive and use a file manager app to move my pictures, videos, WhatsApp files and browser files to the external mass storage.

The mass storage device (USB flash card) comes with a standard full USB port. The device, has a standard micro USB port, where I usually plug my charger.

So, do I need an OTG (on-the-go) cable? Would this work as a physical adapter?
 Would the OTG cable do anything else besides convert micro USB to standard USB?

Do I need an app to do the mounting or does the OS do everything? Can I install apps on the external USB flash drive. I ask because on android 4.4 there was a limitation and many apps could not be installed on an external micro-SD card plugged into the back or side of the phone.

I am running Android 6.0 on a cheap Alcatel phone.

Do I need an app to do the mounting or does the OS do everything?

No, you don't need any extra app to connect the USB drive, the OS will detect and mount the USB drive automatically, if the file system is compatible. In case your file manager fails to detect the drive, you can use apps from Play Store that come with this feature.

  Would this work as a physical adapter.

Yes, a USB-OTG cable is merely an adapter to connect the pins of micro-USB to ordinary USB.

  Would the OTG cable do anything else besides convert micro USB to standard USB?

No, but keep in mind that unlike PCs, your phone might not provide enough power to drive hardware that requires that power (like hard drives), so you might need to use a powered USB hub for such applications.

  Can I install apps on the external USB flash drive.

No, unfortunately you can't. Just like with external micro-SD cards, support for installing apps on external media is best described as "non-existent" (there is adoptable storage, though). Installing app on SD card often just moves the app to the user's data partition which has been originally provided by an SD card but was later integrated into the storage of the device itself.


How do I turn off email notifications on my Gmail app on Android? I'm using an LG Tribute phone which I recently purchased for Virgin Mobile.  I have Gmail installed and by default, whenever I get an email, it generates a notification (in my case a buzz since I have my phone on vibrate).

How do I turn off notifications entirely for my Gmail app (don't want any sounds when I receive an email)?

In the Gmail app itself:

Slide open the hamburger (3-lines) menu and tap on "Settings".
Then tap on the Gmail account that you want to disable notifications for.
In here deselect the "Notifications" check box.

(Click image to enlarge)


Facebook mobile for Droid unable to delete friends How does one go about deleting friends via the Droid's Facebook application? I am running the latest build of Facebook.

It doesn't appear that you can, at least at this time.

Not particularly surprising. Their app just sends you to m.facebook.com for anything more than basic functionality.


What is the typical range when using ANT+ on Android? My question is how long is the range from the phone to the ANT+ device. What is the suitable range between ANT+ device? I have seen this demo and I am curious if it is worth my money.

Hard to say the exact range. There is plenty for your standard usage scenarios with standard ANT+ sensors.  e.g. phone mounted on bike or in jersey pocket picks up bike sensors while riding no trouble.

Testing my app IpBike with USB ANT stick emulating the sensors and the app running on an Xperia Active I can wander around the same room with no loss of reception.  To test loss of reception cases down the garden 10m through the window is not enough to totally lose reception but it is getting patchy. I have to go around to the front of the house and get a good number of walls between the phone and the ANT stick for a total loss of reception.


How to increase charging current on OSX computers when using USB 2.0 from 500mA to 2000mA? Authenticated Apple devices can charge at up to 2100mA x 5V. Apple-non-fast-charging and non-Apple devices are relegated to much slower 500mA x 5V charging. Thus, while my OnePlus One phone itself supports a 5V charging current of up to 2000mA, it is not possible to charge at higher than 500mA.

Does a method exist to increase the available "Extra Operating Current (mA)" from 0 to the max value possible? I am interested in both OSX and Android related solutions.

Related but not helpful post here.

I can confirm that for my MacBook Pro, charge current is increased above 500mA when using a POWER ONLY cable.

My understanding is that if the phone is connected via a POWER & DATA cable, the 'consumer' negotiates with the host for how much current is passed over the cable. When the negotiation asking for higher current is not successful, the available current is reduced to the standard (USB 2.0 defined) 500mA amount at 5V.

In the case of the POWER ONLY cable, no negotiation can take place and thus, the maximum usable current is provided by the host to the client or 'power consumer'.

Some observations...

When running on battery power (±80% state of charge), my early 2015 13" MacBook Pro (2x USB 3.0 ports) was able to charge my OnePlus One (±60% state of charge) at a maximum current of about 1750mA.
No change in charging current was observed when the laptop was connected to the mains or powered by the internal battery.
No change in charging current was observed when switching from one USB port to the other.
During the phone's charging process, keeping the screen ON resulted in an average charge current of about 700mA. When the screen was kept OFF, the average charge current increased to about 1750mA as previously mentioned.
As the phone battery reached a higher state of charge, the charge current was gradually reduced. At 67% state of charge, the maximum current was 1650mA. Note that this is consistent with the general behavior of lithium ion batteries. The battery controller will reduce the charge current in order to reduce the stress the battery's chemistry experiences during repeated cycling.
According to another answer, using a thunderbolt-powered USB hub in combination with a POWER & DATA cable seems to achieve higher charging currents as well. This, however, requires an additional dongle which is a solution I did not prefer.
The following is taken from an answer to Why is charging from computer using USB slower than using an outlet?

  The reason your android device draws less power from your USB connection than from a wall adapter is because of the USB specification. This can be side-stepped by shorting the data wires in in the USB cable, which will switch the phone or tablet into wall mode where it can draw the full available current. The amount of current available will vary considerably from PC to PC.

  The reason the specification exists in the first place is that the voltage to the computer's USB ports is usually supplied via the motherboard by a single loop connection which services all of the USB ports at once. Being only a few microns thick, this circuit is not able to deliver the same current as a dedicated charging wire. It is highly improbable that you will 'burn out your motherboard' by trying to draw the full available current through this circuit (although it is theoretically possible if your computer was a total P.O.S. to begin with). What is more likely to happen is that you will exceed the manufacturer's design specification, thereby denying sufficient power to any other USB devices you have connected, and/or other internal circuits which can cause the PC to crash. This is the very same reason it is recommended you use powered USB hubs.


Rooting and run adbd service automatically I try to use create root package that run adbd service automatically,so:

I download root package for gti9300 from autoroot.chainfire.eu
I extract package multiple times to get recovery.img and cache.img
Unpack it
So I opened and edited default.prop like this:

  ro.secure=0

  ro.debuggable=1

  persist.sys.usb.config=mtp,adb

Pack recovery ...
Going mobile to download mode
Upload it with odin

It roots completely OK but it's not running adb service.

How can I root and run adb server at the same time? (I want avoid going to download mode one time)

use adbd insecure app then enable it (also at boot). give it root permissions using superuser pro v1.0  and reboot your phone. I did it to gain default shell as root on my phone samsung galaxy star duos.


If I flash stock and unroot via Nexus Root Toolkit... will this turn off usb debugging? My screen does not work after replacing the digitizer (it's just white...)

Before I go buying more parts, I'd like to eliminate software issues (apparently this can be caused by the device not wanting to accept new parts, this seems strange but I want to investigate it).

So, I would like to flash stock to bring it back to the beginning, and if it's still broken, it's still broken. Don't understand why the screen would have broken, since all I did was unplug it and plug it back in...

So, if I flash stock and unroot via adb, will this turn off usb debugging? If it does, I'll be done for as obviously can't turn it back on without the screen working...

Yes, the USB debugging would be found turned off.

The USB debugging settings are saved under /data, specifically mentioned under:

/data/property/persist.sys.usb.config
/data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml
/data/data/com.android.providers.settings/databases/settings.db

Because flashing a stock ROM would require you to wipe /data to avoid unforeseen issues, you would lose all the settings.

As you mentioned it yourself, flashing a custom ROM which has USB debugging turned on as default would be the best thing to do here.

Note that if you're going to flash a ROM with Android 4.2.2 or above you would be required to authorize the debugging on Android. If you've a custom recovery, you may try my answer mentioned here and if you end up flashing a ROM with USB debugging turned off, this answer of mine may help.


Switch over from systemless root to system (traditional) root Internet search reveals a couple of ways of doing this:

This reddit post suggests a couple of methods, which are simple
In contrast, this XDA mentions that even flashing boot.img is not enough and you need to clean flash system as well - in other words complete ROM

Do I run a risk if I choose the first method and flash the last version of traditional root?

Anything else I need to bear in mind ?

Edit: Any other method ?

I had this very issue some time ago. In my case, this Reddit post helped.

Basically, to migrate to the traditional system root, you need to have the TWRP recovery installed, the latest SuperSU flashable ZIP, your phone to be already systemlessly rooted and SuperSU by Chainfire to be your root manager app.

Next, boot to Android, open SuperSU and navigate to the Settings tab. Find the Full Unroot button and tap it. When SuperSU asks if you're sure to unroot, accept. When it asks whether to restore the old boot.img, deny.

When the phone reboots, input the appropriate keys and boot into TWRP. Once there, make sure that the /data partition be mounted. Then, under the Advanced menu, start TWRP's Terminal and issue the following commands:

cd /data
echo SYSTEMLESS=false > .supersu

. Alternatively, you can use

echo SYSTEMLESS=false > /data/.supersu

to achieve the same result. This creates the file .supersu inside /data.

Finally, flash the SuperSU ZIP to force SuperSU to use the standard, old root procedure.

The .supersu file

This file is checked (e.g. sourced) by the SuperSU ZIP. If it finds the entry SYSTEMLESS and it has value false, the installer will perform a system install. If the value is true, the installation will be systemless.


Unlocking an HTC HD2 after installing android I recently bought an HD2, which originally runs Win6.5.  But currently has a very modern version of Android installed.

Is it necessary to re-install the original OS in order to unlock the phone?

90% chance - no, 10% chance - yes.

The Android operating system is designed specifically for each device, which is why different phones get platform updates at different times. You're at an advantage starting with an HTC phone, as they build several Android phones.

Your best bet is to find an unlock process for an HTC phone as physically similar to yours as possible (physical in terms of hardware; processor, memory, etc.). If this does not work, chances that you will get anything to work is slim.


List of ADB settable permissions I am searching for a list of permissions that can be set with adb.

I could just iterate through all permissions and ignore the failed ones but i'd rather filter out the ones that i know can't be set before hand.

You can grant or revoke only runtime permissions (introduced in Android 6 with protection level: dangerous) - either from CLI (adb shell) or GUI (Settings). From package manager help:

~$ pm
...
  grant [--user USER_ID] PACKAGE PERMISSION
  revoke [--user USER_ID] PACKAGE PERMISSION
    These commands either grant or revoke permissions to apps.  The permissions
    must be declared as used in the app's manifest, be runtime permissions
    (protection level dangerous), and the app targeting SDK greater than Lollipop MR1.
...

To get a list of all on-device dangerous permissions:

~$ pm list permissions -g -d | awk -F: '/permission:/ {print $2}'

Or get directly from Android source. This list excludes any dangerous permissions defined by non-AOSP packages e.g. those provided by Google Play Services. wget is a busybox applet, or get a static binary:

~$ wget -qO- https://raw.githubusercontent.com/aosp-mirror/platform_frameworks_base/android-9.0.0_r52/core/res/AndroidManifest.xml | grep -E 'protectionLevel=|<permission android:name=' | grep -B1 'protectionLevel=.*dangerous' | awk -F'"' '/permission/ {print $2}'

Or to avoid any wrong results, pre-format .xml (you need to get xmllint or similar tool):

~$ wget -qO- https://raw.githubusercontent.com/aosp-mirror/platform_frameworks_base/android-9.0.0_r52/core/res/AndroidManifest.xml | xmllint --format - | grep 'protectionLevel=.*dangerous' | grep -o 'permission android:name=[^ ]*' | cut -d'"' -f2

In addition to dangerous permissions, it's also possible to grant or deny or ignore some of the special permissions shown under:
Settings → Apps & Notifications → Advanced → Special App Access.
These are not managed directly by package manager, but appops - a secondary permissions control framework. These are signature level permissions which can be granted only to system apps otherwise. On Android 9:

~$ wget -qO- https://raw.githubusercontent.com/aosp-mirror/platform_frameworks_base/android-9.0.0_r52/core/res/AndroidManifest.xml | grep -E 'protectionLevel=|<permission android:name=' | grep -B1 'protectionLevel=.*appop' | awk -F'"' '/permission/ {print $2}'
android.permission.MANAGE_IPSEC_TUNNELS
android.permission.SYSTEM_ALERT_WINDOW
android.permission.WRITE_SETTINGS
android.permission.REQUEST_INSTALL_PACKAGES
android.permission.PACKAGE_USAGE_STATS
android.permission.ACCESS_NOTIFICATIONS
android.permission.INSTANT_APP_FOREGROUND_SERVICE

Their corresponding appops operations have similar names with minor differences. Also some OPs depend on other OPs. To get a complete list of operations you can read or set through command-line:

~$ wget -qO- https://raw.githubusercontent.com/aosp-mirror/platform_frameworks_base/android-9.0.0_r52/core/java/android/app/AppOpsManager.java | awk '/int OP_/ {print $5}'

For details on how to use appops see examples of VIBRATE, REQUEST_INSTALL_PACKAGES, COARSE_LOCATION/FINE_LOCATION and BOOT_COMPLETED/RUN_IN_BACKGROUND.


What should I do about this pop up on my android device? Any ideas what this is? It keeps popping up randomly on my device. I can be completely ignoring my browser, and going through my gallery and apps and it pops up.

Click image for larger version

Definitely, do NOT press the "update now"!!! That for sure introduces malware. Though batteries do have some kind of firmware (mainly for charging control), it is never ever updated this way (in fact, it's not updated at all to my knowledge).

Having made clear what you should not do leaves the question: What should you do about it? You must find out what produces this popup. In 90%+ of all cases, it's a "bad app". So check all apps you've installed shortly1 before this started. Especially check those apps you've installed from "other sources" (see: side-loading). The risk catching such a "bad app" is highest with sources you don't know you can trust. Remove those and see if the issue goes away. If not, as a last-resort you might need to do a factory-reset.

If those popups only occur in your browser (the screenshot looks like such an example), it might also be a "bad website". Avoid it then, see if it happens on other sites as well.

For one thing, the popup tells the truth: pressing "update now" has a "high risk level" – you will get worse stuff installed on your device …

1: "shortly" is a relative term here; some malware waits up to 30 days before acting such


Manually create A/B partitions I have an Xiaomi Mi 6X which is the Chinese version of A2. There is a way to convert it into A2, but OTA updates won't work because 6X has only A partition. I'm not sure, but I've read, it is possible to create/delete partitions on an Android device.

So I want to create A/B partitions manually, but I have no idea how it looks like.

Android uses GUID Partition Table (GPT) as its partitioning system which is possible to modify using tools like parted and gdisk. But there are a few constraints I can think of, other than the OTA problem you have already mentioned:

Android devices with A/B partition scheme have many partitions in (_a/_b) pairs including system, vendor, aboot, sbl and modem. New partitions require space which obviously isn't available on flash memory (eMMC) and needs to be freed from your userdata partition. So you will get short on your /sdcard space.
Since all the partitions to be created aren't adjacent to userdata partition (which is usually the last one), you may need to delete and create dozens of partitions. Exact details depend on the order of partitions in your partition table. So there are bright chances of bricking your device. :)
Application bootloader (aboot) on A/B devices is different than on non-A/B devices. On A/B devices, there are two boot partitions and no recovery partition. So the process of making choice from where to boot the device is different than on non-A/B devices.
Also the other functionality of aboot that depends on partition names such as fastboot update will also break. And since bootloaders are closed source, you can't modify it to be compatible with your new partition table (unless you are lucky as well as an expert at hexediting binaries).

So it seems practically impossible to convert a non-A/B device to A/B device.


Will samsung gear S2 be compatible with red mi note 3? I am thinking of buying Samsung Gear S2

It says that it will be compatible with any android phones with higher than 1.5 GB ram.

I have Xiaomi Red mi note 3. Not a pro one. However, the only difference that I know is that red mi note 3 doesn't have extra space for sd card

As per compliance list released by Samsung mi 3 is compatible


How to prevent brightness when battery reaches high? I leave my phone (Samsung Galaxy 4 GT-I9506, Android 5.0.1 lollipop) charging on my table when going to sleep. It reaches full after some hours often. It is so annoying when the display becomes bright after battery reaching full, awakening me.

I know the thread How to prevent brightness from going to full when the battery low popup appears? about the prevention of bright display when the battery goes low. The rooted device seems to be the only choice to change the default behavior. I have unsuccessfully installed CyanogenMod in the device a few times. I am open about other ways to root this device and change its default behavior.

Settings > Display does not have any features by which you can alter the brightness mode. It would be great to customize the brightness in different modes, etc when the battery is low. In the link, the user did not want to consume extra battery with display when the battery was extremely low.

I installed Firelord proposed, Tasker, where I am working the automation. I probably need to root my phone for sufficient change.

How can you prevent brightness when battery reaches full in Android?

You may come close but cannot prevent that behavior unless there is a setting unbeknownst to you or the device is rooted. No matter what automation app you use, the brightness would be set to maximum whenever the battery level reaches 100% and in a matter of few milliseconds, it would revert to whatsoever you want it to be. My solution takes care of that problem. Originally posted here.

The file named max_brightness, a file under /sys, hence a part of Linux kernel and directly managed by it, appears to be the key to the solution. I found that setting the brightness limit in that file is one of the best ways to tackle the issue.

I noticed that once your custom maximum brightness is set, neither Android nor an app was able to set brightness beyond that custom level unless they changed the content of that file, which often an app has no reason to and none of them changed either. Besides, the file is owned by root and is part of group root, so any app or even system_server would require root privilege to make changes into that file.

Finding that file is bit tricky. In my MTK device with Android 4.2, that file appears to be under /sys/devices/platform/leds-mt65xx/leds/lcd-backlight/.

In my Qualcomm device with Android 5.0.2 and above, the file appeared to be in /sys/devices/mdp.0/qcom,mdss_fb_primary.168/leds/lcd-backlight/.

I assume that the best way to find that file is to run a search query (setup adb for that), such as:

(Requires busybox)

adb shell su -c 'find /sys/ -type f -iname "max_brightness"'

In my Qualcomm device, the output it gives is:

/sys/devices/f9924000.i2c/i2c-2/2-0068/leds/red/max_brightness
/sys/devices/f9924000.i2c/i2c-2/2-0068/leds/blue/max_brightness
/sys/devices/f9924000.i2c/i2c-2/2-0068/leds/green/max_brightness
/sys/devices/mdp.0/qcom,mdss_fb_primary.168/leds/lcd-backlight/max_brightness
/sys/devices/qcom,camera-led-flash.81/leds/torch-light/max_brightness
/sys/devices/msm_sdcc.1/leds/mmc0::/max_brightness
/sys/devices/msm_sdcc.2/leds/mmc1::/max_brightness
/sys/devices/01-qcom,leds-d300/leds/led:flash_torch/max_brightness
/sys/devices/01-qcom,leds-d300/leds/led:flash_0/max_brightness
/sys/devices/01-qcom,leds-d300/leds/led:flash_1/max_brightness
/sys/devices/01-qcom,leds-e200/leds/kpdbl-lut-2/max_brightness
/sys/devices/01-qcom,leds-e200/leds/kpdbl-pwm-3/max_brightness
/sys/devices/01-qcom,leds-e200/leds/kpdbl-pwm-4/max_brightness
/sys/devices/01-qcom,leds-e200/leds/button-backlight/max_brightness

The location where lcd-backlight is mentioned was the only one that made sense to me and this is how I found the file in my device. Don't you worry asking about others. I attempted changing the brightness of the screen and looked for the changes in the file named brightness (also located under those said locations). None of them reflected the correct output other than the one at /sys/devices/mdp.0/qcom,mdss_fb_primary.168/leds/lcd-backlight.

Only for demonstration, try setting a limit in max_brightness

adb shell su -c 'echo LIMIT > PATH_TO_MAX_BRIGHTNESS'   # in my case PATH_TO_MAX_BRIGHTNESS is /sys/devices/mdp.0/qcom,mdss_fb_primary.168/leds/lcd-backlight/ and set LIMIT to a value less than 30 (not limited to).

Now try maxing the brightness by using brightness slider or a third party app and you would notice that the brightness of your screen doesn't exceed beyond a certain point even when slider or the app's configuration appears to be at maximum. The brightness for that "certain point" would certainly be less than the default one you are used to.

Note that the maximum value in max_brightness is often found to be 255 and the brightness ranges from 0-255. Often, not always true, that is. And fear not from setting the limit to 0. It would cause the screen not to lit until you revert the changes or restart the device.

Find a limit which would not disturb you in your sleep.

Automation

For automation, use any automation app that can run a command with root privilege and when the context of your preferred trigger is met. I recommend a time based trigger.

Some working examples:

In Tasker, setup a profile with your preferred context, create a task and use the action: Code → Run Shell:

Command: echo LIMIT > PATH_TO_MAX_BRIGHTNESS
check Use Root

In MacroDroid, setup your preferred trigger and for action install Secure Settings, choose it → Actions → Run Command:

Command: echo LIMIT > PATH_TO_MAX_BRIGHTNESS
check Use Root

In Automate, as part of your flow, when setting up an action for your trigger, select Shell command superuser under Apps and do:

Command Line: echo LIMIT > PATH_TO_MAX_BRIGHTNESS

Make sure to install all the permissions the flow require.
In DroidAutomation, setup your trigger and under task, select Root → Execute a command line and type: echo LIMIT > PATH_TO_MAX_BRIGHTNESS

As you would've guessed, you would have to setup two profiles for every app. One to setup a limit and the other to set the maximum brightness to the default you're used to.

I would like you to keep this under consideration (even though you got a hint at the beginning) that using a 100% battery trigger would defeat the purpose of this answer, which is to override the changes Android want to make. As an example, if you setup LIMIT to 0 whenever the battery reaches 100%, what would happen is your Android would lit the screen to maximum as usual and in few milliseconds (you read correctly) your automation app would run and set the limit. Your sleep may get interrupted in those milliseconds.

The workaround is to set up the battery level to 99 or less for full battery charge.

That said, I wouldn't be surprised if you avoid rooting considering that that the biggest compromise you would be making in using an answer with non-root approach is of not accounting those pesky but only milliseconds.


What happen with my message on my friend's device if I deactivate Viber My question is quite clear, what happen with my message on my friend's Viber if I deactivate it?

Thanks

Your messages will no longer be available on your friend's device/account, but will still be seen from whatever device/account you're using, but

NOTE: All the messages will be stored at Viber's database as a backup.

I hope this answers your question.


adb pull file from /data/data Using adb with a rooted mobile, a common method to pull files only accessible to root (like the ones in /data/data) is moving those files with root to the SDCard attached to the mobile (which is formated with FAT32 and thus doesn't have file permission restrictions) and then adb pull those files from the SDCard.

The problem arises when the used device doesn't have a SDCard slot (as the moto G first genereation), so is it possible to pull to the host some files located in the directory /data/data (which is only accessible with root) without using an SDCard?

This is possible if the ADB daemon on the device runs with root privileges – which can be achieved e.g. using chainfire's adbd Insecure:

adbd Insecure (source: Google Play; click image to enlarge)

Another possibility would be setting ro.secure to 0 in the build.prop or default.prop. To my experience, adbd does not honor this on all devices/ROMs.


How to set up reverse tethering over USB? My HTC G2 phone is rooted and running Cyanogenmod 7
I don't have a data plan.
Sometimes I want to connect the phone to the Internet when there isn't Wi-Fi, to update Market apps, backup SMS messages to Gmail, sync new contacts from Gmail, etc.  Things I can't do with USB mass storage mode.
I have a Windows 7 Professional computer connected to the Internet, but I'm not allowed to set up an ad-hoc Wi-Fi network.  (If I do, they will notice and hunt me down.)

Is there a way for the phone to access the Internet through the USB connection to the computer?  If so, how do I set it up?

I recently discovered SimpleRT which works very well with Linux (and apparently OSX as well).  Simply enable USB Debugging on your device (no root required), install the APK linked from that page on your device and connect it to your PC via USB, and then run the binary on your PC.

It will set up the connection as a VPN tunnel (tun0 by default) and your device should prompt you to (a) allow SimpleRT to create/oversee the VPN connection as well as (b) whether to run it when the device is configured as a particular USB accessory (which is what the binary does).

The project does not include a pre-built binary, so I've uploaded one I built for Ubuntu.

Below is a manual method that should work on Linux or Windows: http://blog.mathieu.carbou.me/post/60454997009/reverse-usb-tethering-with-android-2-2

  STEP 1:

  For Windows: Install USB drivers from Android SDK

  For Linux: Nothing to do

  STEP 2:

  On Nexus One: Connect USB cable and activate USB Tethering. You should see on linux or windows a new network interface.

  STEP 3:

  On Linux Computer, setup a bridge:

# usb0 is the new network interface
# eth0 is the main interface connected to internet (or a gateway)

sudo ifconfig eth0 0.0.0.0
sudo ifconfig usb0 0.0.0.0
sudo brctl addbr br0
sudo brctl addif br0 eth0
sudo brctl addif br0 usb0
sudo ifconfig br0 up
sudo dhclient br0

  See https://help.ubuntu.com/community/NetworkConnectionBridge to setup bridges

  On windows, Bridge the 2 network interfaces

  STEP 4:

  Setup usb0 interface of your phone. You have to options:

  From your computer, execute:

./adb shell netcfg usb0 dhcp
  Or in a root terminal on your phone, type:

su
netcfg usb0 dhcp

  You should now be able to connect to Internet on your phone using your computer’s Internet connection.

  Try to do a ping www.google.com to be sure !

  STEP 5:

  To shut down the reverse-tethering, first unbridge interfaces on your computer:

sudo ifconfig eth0 down
sudo ifconfig usb0 down
sudo ifconfig br0 down
sudo brctl delbr br0
sudo ifconfig eth0 up
sudo dhclient eth0

  Then on your phone, uncheck the USB Tethering option !

You can also use Windows to create a WiFi network (using Connectify) and connect your device to that: http://www.nexusoneforum.net/forum/nexus-one-faq-how-tos/3133-reverse-tether-getting-internet-your-phone.html


Magnify (zoom) part of image application I'd like to edit an image to add a "magnifying glass" ring with a magnified region inside, like in the screenshot below. The standard Gallery editing tools can't do that, and I've tried a few other apps with the same result. Is there any way to add this effect (zoom certain part of image) using any kind of Android app?


Since which Android version can you use Ethernet through the USB port? Which makes are repotedly work with CyanogenMod? As far as I know Android supports Ethernet via USB, right? If yes, since which version of the OS?

What are makes of Ethernet USB adapters which are reportedly work with CyanogenMod? What are makes that don't work so well? Maybe one which are "plug and play" in Windows 7 work better on Android too, compared to those which require a driver?

Edit: As I'm not that technical I'd like to see an explanation, a drawing an article or something of an example of the most easily done USB Ethernet setup on any Android device (esp. the model name of the USB to Ethernet connector is interesting), if it's on stock Android it's even better than if it's on a modded ROM.

That is dependent:

The kernel, along with the appropriate driver
Chipset support for USB OTG

The general consensus, if the kernel is modded and has support for OTG provided the handset supports it, then it will work alongside with the appropriate OTG cable with power support.

It might need custom modifications to Android to make it aware of OTG facilities if running on pre-Honeycomb Android versions.

However, since Honeycomb (Android 3.0) and upwards, there is USB facilities integrated into the framework which makes OTG mechanism even easier.


A faint instagram-shaped beige overlay, always I got a Galaxy S5 (second hand you may note,  however it's in great condition) very recently.
I've noticed that there is a very faint beige-yellow tint on the screen at all times in the shape of the main features of the instagram app.
It's far more obvious on a white background.
Does anybody know why this has happened?

From what you described, it's very likely that your S5 is the victim of screen burn-in. The previous owner likely used Instagram a lot, which burnt the main interface into the screen. The damage is done to the AMOLED screen itself instead of software-based, and thus can't be reverted, unless you decide to replace the screen altogether.


How can I increase my samsung galaxy fit's battery life? I'm using Samsung Galaxy Fit(S5670) and running official 2.3.6 version. My battery's capacity is 1350mAh. Can I increase this capacity to 1500mAh or 2000mAh?

Can I increase this capacity to 1500mAh or 2000mAh?

Did you mean increasing capacity from 1350mAh to 1500mAh on same battery??

It's not possible.

If your phone supports a battery with capacity 1500mAh or 2000mAh, you can buy a new battery with these increased capacity.

Check manufacturer's website for details of phone and batteries.


How to add a shortcut to the 'My Apps & Games' screen of the Google Play Store? I'm looking to create a shortcut that links straight to the 'My Apps & Games' screen of the Google Play Store.
Either that, or configure the Google Play Store to always open in the 'My Apps' screen.
I've downloaded and installed AnyCut 1.0 but I'm unable to find the activity for opening Play on that screen.
AnyCut 1.0
Thanks.

You'll need an app like Tasker than can assign actions with activity launches.  Create a New Task, name it, and Add an action.  Go to System → Send Intent.  Then fill out these fields:

Action

com.google.android.finsky.VIEW_MY_DOWNLOADS

Package

com.android.vending

Class

com.google.android.finsky.activities.MainActivity

Target

Select "Activity"

Assign an icon from the lower right.  Leave Tasker.  On your desktop, create a new shortcut, Task Shortcut, and select the task you named.


Selective batch restore in Titanium Backup? Lately I upgrade my ROM (cm 10.1) quite often so I want to have my favourite applications ready after each upgrade. I got Titanium Backup Pro with root access.

I would like to know how to

install Titaninum Backup + the key after each ROM upgrade with the necessity to be connected to the internet
restore only bunch of my favorite application. I do not want to do full restore although I do full backup
restore system (cm) settings

You could achieve this in two ways:

have Titanium create an update.zip with the wanted data. This you could then simply flash, and you are done
Titanium also supports a kind of "tags": Setup a filter matching all the stuff you want, and save the selection as a tag (or tag the wanted items manually). Then select by tag and backup. Make sure to have Titanium sync its settings to your SDCard. After the ROM upgrade, first re-install TB (which then syncs with its settings from the SDCard), select the items by tag, and restore.


Get contacts off sim card phone with broken screen Need some help. Finally switching to smartphone after the screen broke on my flip phone. All my contacts are on the SIM card, but I can’t see anything on the screen. How can I access that information? Thanks.

Assuming you are now moving to a smartphone from the flip phone (presumably Android, as this exchange is for Android), you would need a new, smaller SIM card from your provider or you would have to manually cut the SIM to the right size, which I wouldn't advise. There's a good likelihood of breaking it. However, if you put the card you have now in another device with the same size SIM, you can manually copy over the contacts.

If you don't have another phone to do this with and don't want to cut the current SIM, you can probably bring the SIM to a store of your cellular provider and they will assist you.

If you are able to fit the old SIM into the phone, which is incredibly unlikely, open the default contact app. In the top right corner, there are 3 vertical dots. A drop down menu will open and one of the options will be import/export contacts. In the next menu, there will be an option that says Import from SIM.


What are the differences between ClockworkMod and Team Win Recovery for the Nexus 7? My Nexus 7 is running on 4.2.1 and has the latest build version. According to the Nexus 7 Root Toolkit, it is giving me an option to flash one of the following recovery menus:

CWM Touch
TWRP Touch

What is the difference between them? How can I determine which would be most suitable for me?

I'm partial to TWRP.  The biggest difference I've noticed is that CWM requires you to either boot into recovery or use Rom Manager to flash a rom, while TWRP allows any program with root access (goo manager, Rom Toolbox, etc) to flash roms.  There are probably some other differences, but this was the big one for me.


Copying a file to a system directory Is there a way to copy a file into a system directory without having root?

I'm interested about any directory, but specifically about /system and /etc.

There is no chance to access system folders without root.


How do reset my phone when it won't go past the sercurity check and wont let me type It's not letting my type anything and it's been turned off for a while and this screen is still here

You could use the recovery mode to reset the device. To enter recovery mode,power off the device and then hold down the power and volume up key. Then use the volume down button to scroll down to 'wipe data/factory reset' and press the power button. Then, scroll down to 'yes, delete all user data' and press the power button. Finally, after the reset, scroll up to 'reboot system now' and press the power button. After the reboot, your device should be fully reset.
;)


Download a file directly to pc over usb Is it possible to download a file from the internet through my phone directly to my PC? I'm running stock Android 4.2.2. The reason being that my phone has limited space, so sending the file file directly to  the PC would save space ,and time. Also, the PC has no internet access. Also, Boost Mobile's tethering plans are ridiculously expensive.

If your internet provider supports tethering, you can connect your phone over USB with your PC.
Then enable tethering at Settings > More > Tethering.

You are now using your phone's internet on your computer.
If you download a file, it will be downloaded through your phone.

If your carrier doesn't support tethering directly with your data plan, you can use this app:
https://play.google.com/store/apps/details?id=com.foxfi


USB synchronization security issues I've got an Android phone. I have just reset it to its factory default settings and set a password for unlocking the phone. However, even when it is locked and the screen displays a text box with a text entry keyboard, hooking the phone via USB to Ubuntu Linux 12.04 LTS out of the box causes a popup to show up above the password request screen, which allows you to confirm the mounting of the phone's SD Card onto the filesystem in location /mount/328D-1EEE . Of course, the SD card could be removed from the phone and read using a card reader anyways, so perhaps this isn't as much of a security concern.

On the other hand, is it possible to read and transfer files to and from the phone's "internal, rather than external, memory", and to and from that little bit of space that is present on the phone's SIM (Subscriber Identity Module) card? If yes, then is this possible by mounting the internal memory or SIM card onto the Linux /media directory? I don't see these ones automount when I connect the USB cable, so I'm wondering if there is a way to do it manually.

What memory is offered on USB-Plug differs between devices. Most of them offer the external SD-Card (if present), some the internal eMMC card. Some even seem to offer a virtual CDRom drive (probably containing some device-specific stuff like drivers). But I've never heard of any giving access to the SIM this way, or even to system ressources. Of course, at least the latter is possible using 3rd party utilities (see Zuul's answer for an example). But access to the SIM should be almost impossible this way.

This all applies to Android up to Gingerbread. Starting with ICS (4.x), things become a bit different as UMS (USB mass storage) support was swapped in favour of MTP (Media transfer protocol). But basically, above said should still be true as to what is possible to access and what is not.


How do I install OS in Andriod phone without using fastboot and TWRP? I've tried to upgrade the rom in MOTO G4 Plus using TWRP version of 3.2.1.0 and during installation process I wiped out the existing android 7.0.1 without backup(understood the cost of backups now). As I faced error while installing android 9.0.1 with error 255 code because of TWRP some upgrade issue couldn't complete the installation process successfully.

I tried multiple ways to upgrade TWRP which was not successful and even fastboot commands aren't working now. Whenever I try fastboot + combinational command like devices and etc it goes into an infinite loop with an error code iterator not found. After a good amount of search found about ADB and happily can connect to my device using ADB now. Then started trying with multiple options like adb side load after reading multiple forum answers and posts I did pushed a rom to scared/data/media after reading this forum NEED HELP: Accidentally deleted OS in TWRP/Cant install Rom which was successfully pushed but didn't do any thing nor I couldn't understand what to do after pushing it.

Then started search again to install stock rom in any different ways before coming here and stumbled at this question which is similar did read the question and included forum post in it to go start the process when I did download stock rom stock rom download couldn't find any flashall.sh file to start the process

Now I'm stuck and couldn't find better place to find a working solution for this situation. Can somebody help me? What can I do while my phone is in this state?

Here is the Full Forum discussion link to the problem I've faced. Thanks everyone who tried to help me out.

For Quick Solution follow this steps mentioned below:

If you still have access to TWRP on your device? please push 32bit flashable ROM to your device.
Try with a TWRP flashable like the stock ROM Oreo flashable https://forum.xda-developers.com/mot...-test-t3873367 and follow the instructions to install it (i.e. push to your device, or copy to an SD card, then tap install in TWRP to flash it to your device). This TWRP flashable should work on this mentioned TWRP version since it's 32 bit.
The stock ROM download would still require fastboot, so I'm not sure why the fastboot is not working and not choosing the fastboot method as of now.

FYI: error 255 when flashing custom Oreo or Pie ROMs means that the TWRP is 32 bit, whereas the custom ROM requires a 64 bit TWRP.


No notifications during the night hours I had juice defender installed on my phone for a few weeks but then I decided to remove it. One of the settings that I set up was to disable the vibration and sound notifications during the night (from 0:30 to 6:30 or something like that). Anyway, now that the juice defender is removed from my phone this settings still remain. I am not completely sure it's like that because of JD, but I don't see any other reason for such behavior.

I tried installing juice defender again, disabled all these options, but the settings are still there and I still don't get any sound or vibration during the night hours. Did anyone else had such a problem? How could I fix this and restore these settings to the "default behavior"?

I am using CM 7.1.0 stable (Android 2.3.7) if that helps anyhow.

Be sure to check Settings->CyanogenMod Settings->Sound->Quiet Hours and make sure that it's disabled. That's been an unknowing culprit for me in the past.


Android App (Lego Speedorz) will not run in restricted profile, crashes instantly I have two little kids and for obvious reasons I'm not to keen to let them use my account. Since I have Android 4.4.2 on my Nexus 7 I set up a limited profile today and enabled the kids games for the profile.

Sadly one App (Lego Speedorz) keeps crashing instantly when started. Since there is close to nothing one can setup for apps in restricted profiles I'm at a loss here :-(

Any hint what I could try to get the game running?

After restarting the tablet the app is now working properly. No idea - could be android was not able to free enough RAM or some such...


Reinstalling KitKat after upgrading to Lollipop My Asus Google Nexus 7 has failed completely after upgrading to Lollipop from KitKat 4.4.4.

Now the tab can not handle running more than one app at a time and frequently hangs requiring power shut down and restart. Can some one detail how KitKat 4.4.4 can be reinstalled? The tab worked marvelously earlier.

You can use this nexus-7 link to get started. There are nexus-7 developer forums where you can look for rom (other OS) to install it on your nexus-7.

Also,  you can install cynogenmod 12+ which is modified lollipop version of Google's Android OS. CM12+ is lot smoother in terms of performance and also has many features like themes and audioFX.

Please note - While installing anything on your phone voids the warranty of your phone.
Also, remember to follow each and every step as described in forum. Otherwise, there is a chance that phone will get bricked.
So, please be careful.


Can I view the sales reports/information from Android Market of my App somewhere? Is there a tool I can use to download the sales information for my android app. For the itunes store, apple provides a tool for the same here: http://www.apple.com/itunesnews/docs/AppStoreReportingInstructions.pdf

Are there similar tools for the android apps sales data? OR are there any external tools? I noticed that appmonger is an app that provides the same. Are there any other external tools/sites?

I use AppMonger by Rectangular Software and I love it. There is a widget that can report sales right on the home screen. The app costs like $4.00 but it is well worth it. The developer updates the app on a regular basis and is good about giving support via email if needed. Also if bugs are reported, there is a pretty good turn around for the fix.

There are different time spans that you can select to get reports for. You can get reports for all apps or specific apps.

Some information that is supplied is:

Daily Revenue/Units Sold
Revenue/Units Sold by Product
Revenue/Units Sold by Country
Revenue/Units Sold by Day of the Week
Revenue/Units Sold by Hour of the Day
Order Statuses
Orders List


Creating an image file of my Nexus 5 I have a report to write related to any  forensics case, so what i was planing to do is create an image file of my nexus 5 which has nothing in it ( as i did a factory reset). i was hoping to create an image file and look into the phone so that i could find something valuable. The issue here is i don't want to root the phone so i need an alternative to create a .dd file where i can look into any files. Any suggestions. And i would be happy to hear other ways to write a good forensics report on any case.
Thanks

The only way to create an image of your device is using the recovery mode, but a custom recovery flashed find on Internet. The default recovery is not able to do a backup of the device. Flash a custom recovery then do a backup in it.


Galaxy S7 Nougat--When charging, screening keeps coming on Recently upgraded to Nougat on my Samsung Galaxy S7.  Only issue is that when i am charging , the screen keeps turning on to show it is charging, then goes dark, then turns on again.  The only way to mitigate, is to turn on the screensaver when charging.  any thoughts?

Try checking "Stay awake" in developer options which makes the screen never sleep while charging.


Can't Sync Google Calendar I have an error while synchronizing my Google Calendar on my Samsung Note N7000 with Android 4.1.2, my Google accout does never Sync

I have a whole load of important meetings that go back to 2014, which are very very important to me.
I want to sync these datas to my GMail account via my calendar on my phone.

However, if I sync my Calendar with my Google Account on the Note, the Sync Fails saying 'sync is currently experiencing problems. it will be back shortly'

Using Samsung Kies does not work because the meetings that Kies syncs are only the one one the Samsung Calendar Applcation. Not the ones I've set up in my Gmail on my phone.

How could I go past this problem?

Try removing the Google account and adding it again.


Force Android to stop asking me if I want to terminate my own app I've got a simple logger app that I wrote for my Android phone.  The problem is, periodically (seems like it happens every few days) when I turn on my phone I am confronted with a modal dialog box telling me that my app has consume X amount of CPU already, and do I want to kill it?  The thing is, this generally happens some time AFTER I have stopped logging and it is just sitting there doing nothing, and moreover, this is when it is on AC power, so I don't see how battery consumption is even a concern.  In any case, it is getting annoying having to constantly tell it to not kill the app.  It is more concerning to think that this might still happen if I ever enable "stealth" mode on my app to track it if it is stolen, as this would alert a perpetrator and give them a chance to disable my app.

Is there some way to disable this behavior?  If so, how?

Try running your logic in another thread or in async task's doInBackground


Android Wear Bluetooth Version Issue I recently bought a Moto 360, and whilst waiting for it to arrive, have been prepping my other development gear. I have an Android device running 4.4 (4.3 is required) and the Android Wear app installed, although my device only has Bluetooth 2.0.

Will Android Wear function with the lower level of Bluetooth? I haven't been able to find any definite answers crawling the web (they all say Bluetooth is backwards compatible), but I am wondering if Android Wear requires it?

You can visit http://g.co/WearCheck on your phone to see if it supports Android Wear.


How can I take a high-resolution screenshot? I'm using a Nexus 5 running on Lollipop 5.1, and I can take a screenshot by holding POWER and VOLUME-DOWN. However, screenshots appear to be limited by the resolution of the device's screen. Specifically, it's 1080x1920 for the Nexus 5.

Is there a way (through the use of developer tools, a specialised app, or otherwise) to take a screenshot of higher resolution?

Even with development tools, screenshots are only of the pixel size of the device. You could try running the app in a emulator with higher resolution but all of those pixels may cause the emulator to lag. Or get a device like a Nexus 10 which runs at the higher resolutions.


How do I send a contact via SMS? I would like to send two contacts (name+phone nr) to one of my contacts. This is a simple menu-option on my old Sony Ericsson.

How can I do this on Android?

I'm not in the same building as the receiver so I can not use Bluetooth.

Surprisingly, you need a third party app.

http://www.appbrain.com/app/shareContacts.NS.com


What's the point of Airdroid's "Find phone" feature if phone is not on the same network I started using Airdroid today and was perplexed by how its "Find phone" feature works. As far as I can tell, my web Airdroid and my phone Airdroid are connected only when they are in the same local network.

So if my phone is truly lost and thus not on the same network, I can't get connect to my phone via my web Airdroid. What's the point of the "Find phone" feature then?

You can create an account with Airdroid and link your phone to that account. It'll then use a 3g/4g connection if WiFi isn't available.

Alternatively, if you're looking to use it as a security feature, if your phone is linked to your Google Account, you can use Google's Device Manager to wipe/Find/Lock/Make it Ring remotely.


How can I disable profanity filtering of autocomplete suggestions? I'm using a Galaxy Nexus with Android 4.2.2. I started using the baked in Swype imitation/gesture typing as soon as I found out it was there. However, the profanity filtering is extremely frustrating. It's way too liberal - it won't even recognize "sucks." I poked around a bit but can't find anywhere to disable it. Is this possible?

Just type it in once, click it, and save it. Done.

You can also go to Settings > Language and Input > Personal Dictionary and add your words from there.


How does Cloud message services reach devices behind NAT / firewall? Getting push notifications with devices with a local IP works fine. I just wonder how is that it works.
Is it just uPnP? The device starts communication with the cloud messaging service and then IGD kicks in? So the mapping remains
Does the push notification client keeps a constant connection to the cloud server? I would like to think that is not the case.

I am interested specifically in how the push notification knows how to reach the device given it is behind a NAT or firewall. Is there a scenario where Google push notifications would not be able to reach a device?

As you might imagine, Google is pretty quiet with regard to its implementation details. So I'll just describe this in the general case and in a very basic form.

The way push is done is that the client (i.e. the phone) opens a TCP connection to the messaging server (e.g. Google). This connection is meant to remain open for as long as the phone is turned on. Fortunately a TCP connection uses absolutely no bandwidth when it's not transmitting anything, so it doesn't waste a lot of data, the radio transmitter can power down, etc.

The connection can remain open indefinitely, however behind a NAT, the NAT infrastructure keeps a table of open connections that it is handling, and drops connections that have been idle for some time, usually 10-15 minutes. Neither end gets notification of this. So this is handled by sending a TCP keep-alive packet which refreshes the entry in the carrier's NAT connection table. This only costs about 50 bytes or so, and only needs to be done every few minutes.


Control a Windows download manager using an Android device Can anyone please tell me if there's currently a way to use my Android device to get my Windows PC to download a file?

For example, maybe I could use the Android "Share" functionality (with a Pushbullet-like app) to send a URL to a download manager app on a Windows PC, which would then proceed to download the file.

Thanks!

You could just use PushBullet. If you configure it so your desktop PushBullet client automatically opens all links you send to it, and you send the specific download URL, it should begin downloading it automatically, assuming you have your browser set to download to a specific location every time.


Nexus 5: How to automatically toggle Live Display in Cyanogenmod 12.1 nightly at a specific time? I have a Nexus 5 with the last CyanogenMod nightly (12.1 20150917). I have a bug with the live display. Since the auto mode doesn't switch automatically, I have installed Automate, an app that uses the Android API to do tasks.

To fix the bug, I would like to create a task to switch in the night mode at a specific time, but unfortunately, there isn't the Live Display in Automate. Is there a way to set the night mode through the terminal?

The Night mode set block should be able to toggle night mode.
There's no block for changing Live Display, but it might be possible to change the system settings for it, using the System setting set block, see @Firelord comment for the possible setting names and values.


How to listen to music off an SD card? I have a new LG G3 and I want to listen to music that is saved on my SD card. How do you do this?

Your phone should have a built in app (Google Music, Music or such) for music playback and they usually auto-detect any music on your phone (in any folders you can access). Keep in mind that there is no "best" app out there - they all have flaws like not having 100% effective bluetooth control or consuming more battery with equalizer.

I've tried some of the most popular ones, but returned to default one, because of lack of bluetooth forward/rewind support on most players.

Default music app (whatever it might be on your device) is usually gives you everything most users would need.
Winamp (unfortunatelly no longer on google play) boasted a good equalizer, but quite frankly it doesn't compare to n7.
n7 Player is somewhat uniquely designed and has decent equalizer options, but equalizer produces delay between action (like song switch) and playback.
Also it seems to somewhat increase battery consumption.
double twist player has a lot various expansions and online functionality however, most of those features aren't free.
Poweramp Player I've been reminded of this one in the comments. It did not catch my attention, however, at the time I was checking out it WAS one of the highest rated ones.
Rocket Player I haven't tried this one. However seeing as it is free and has decent ratings it might be worth checking out.
As for the playback, if you have music on your sd card, open up your music app and the music should be there.

If there is something preventing you from listening to your music please specify it.


Photo recovery from a MotoX phone with black screen I have a MotoX (1st Gen) phone. A few days back my display went black and I am not able to see anything once the phone boots. The notifications are getting displayed on the locked screen, but when I am trying to unlock, the screen is getting black again. The voice command is responding sometimes, but that's about it. I have cleared the cache partition, but that did not help either. Please tell me some way to recover the photos/videos in my mobile.

Your phone still works, so you got lucky.

Plug the device into a PC/Mac and navigate the phone's file directory. Look for the root folder "DCIM". All of your videos and photos should be in there.


How do I avoid problems when going from Wi-Fi to cell data connection (3G)? I have my phone (Droid X) connected to my home Wi-Fi network, but when I leave it can take applications (Google Maps, Rhapsody, etc) probably 10-15 minutes before they function normally without either doing nothing and/or giving data connection errors.

Something that may be telling (or meaningless) is that the little "3G" icon on the notification bar doesn't appear for a good long while.

Disabling the Wi-Fi on the phone after the fact doesn't seem to help, and the fastest method seems to be just power cycling the whole device.  Is there some better/cleaner/faster way?

You could try using Quick Settings to toggle the 3G connection.  It has seperate toggle switches for 3G and Wifi but when wifi is on it automatically turns off 3G.  When I click the toggle to turn on 3G it automatically disables the wifi.


Send data to usb port i want to send data from my HTC Incredible S to my Arduino Uno. I want to do this by using the micr usb port.
But it seems like my smartphone is not supporting the usb host mode.
Will it still be possible to send data by usb? And if yes, how?

This question is probably off topic as some programming is involved. Look at Android USB Accessory Mode if you are trying to connect an Arduino with Android.

Related videos from Google IO when they were showing it off:

http://youtu.be/s7szcpXf2rE

http://youtu.be/ZUaKSs3utrs


On Pixel 5 phones, how to re-order home screen pages? On Pixel 5 phones, how to re-order home screen pages? For example, my home screen have 5 pages, and I want to swap the 4th page and 3rd page. How to do it? My Pixel 5 phone is using the default system softwares if that matters.

not sure if Pixel phones are different functionally from Samsungs, but holding your finger on a blank place on your screen should make the entire page movable, allowing you to insert it wherever you want between other pages of apps


Application Always Downloading I notice sometimes an app (in this case Dropbox) is always downloading when I go into Market > Downloads. I even uninstalled it. So it doesn't appear in my application list but it still says Downloading in the Market. The progress bar is empty.

I couldn't find anything on the web. Has anyone else experienced this?

I had trouble downloading the latest update. What I did was from the list of applications in the Market, I did a long press and Cancel download. After that I was able to select it and download it successfully.


How to forward all traffic over a VPN (without rooting) using Forwarding Routes I noticed this feature in Android 4.2 but was wondering how you can use it to forward all traffic over a VPN connection? When editing a VPN under advanced settings it has a Traffic Routes option that you can put network identifier in that it will forward traffic for. Most people currently seem to root their phone and use SSH tunnels which seems a bit overkill for such a simple feature.

here's the screenshot of the input box I've mentioned.

Turns out you can forward all traffic over the network by entering 0.0.0.0/0

You can then check by doing a google search for your IP and it should now be the public IP of your VPN's gateway


Locked Nexus 7 - no forgotten password option My girlfriend forgot her password on her Nexus 7 and can't remember it. It's written everywhere on the web that you can use the gmail login after 5 wrong passwords but it doesn't seem to work anymore! It doesn't ask for the gmail account and never shows the forgotten password option.

I have tried to repeat the process on my Galaxy Nexus and there is no forgotten option either....

After 5 attempts it blocks for 30 seconds and I actually tried 30 times to see if after a while the gmail option appears but it's not the case...

How to use the gmail account to unlock the latest android devices (4.2.2)?

P.S. my phone isn't locked! I just try to redo her steps

Well, I just tried it on my own device (Nexus 4, Android 4.4.2) and indeed you are right: There is no restoring option when using a password or PIN. It only shows up for me when using a pattern.

There is still a method I just figured out.

Log in to your Google Account.
Go to https://www.google.com/android/devicemanager
Accept the device manager pop up and click on your device on "Lock".
Enter a new password.

I just tried it and it works very well here :)

Best regards!
visi0nary

Edit: I just figured out that you need to have "Remote Wipe and Lock" enabled in Android Device Manager on your device. I hope your GF has enabled that option.

Edit: This only works for the original (admin) account on a Nexus 7. Device Manager is not available for other accounts.


How to use PC mic to trigger android google I have setup many tasker profiles and tasks etc. with AutoVoice to trigger with Google Now. I have recently acquired a wireless headset and I feel it would be more pratical if I could use the mic in the headset rather than my phone's microphone. Is there any way I could achieve this?
Thanks in advance.

If the headset is connected to the computer only, then this can't be done solely via Tasker. You could have a computer program that listens on the headset and sends some type of trigger (SMS, PushBullet, etc.) or an entire command to your phone. Tasker could then detect this trigger and open voice command (though it would be listening via the phone mic) or, if the program sent the entire command, Tasker could then be used to process this command.


Resetting the (non-gmail) email application I am using the non-gmail email application to connect to get email from my university, but the app seems to have a bug and sometimes (probably when there are connection issues) doesn't properly delete emails. These would be deleted from the server, but get stuck in the app. Every time after a refresh operation they reappear even if I delete them over and over again. They reappear even if their date is older than the defined relevant window (e.g. last month). How can I refresh the app to get rid of these zombie emails?

If you don't mind having to completely re-configure it, and start as if you'd just installed that app:

Go to Settings → Apps
Scroll to the app in question, tap it
Select to "Delete Cache" and "Delete Data"

Now you've completely "refreshed" it. With some luck, the app somehow offers to export its configuration; if so, do that first, and re-import the settings after above described "reset" to save you from manually reconfiguring it.


How can I recover a deleted file on Android? I just deleted a file on my Nexus S that I really need back. (It was actually part of an app using a sqlite database that did a drop table when upgrading to a new version.)

Presumably I need to root the phone first (which I hear is easy on Nexus phones) but am I in a catch-22 here? Namely, does rooting the phone mean wiping/overwriting the partition where the data lives?

If not, what do you recommend for data recovery tools? Presumably the file was just unlinked and not actively overwritten (per usual when "deleting" a file) so technically the data must be there...

Manual way

Luckily data recovery on Android isn't different from any other PC/Linux with a flash storage device. You first need root and the dd binary on your device to make a full backup of the block storage device your deleted file was on. dd is sometimes already installed in your system.

Then it's just 3-steps to find out if the file could be recovered:

Find out on which block device the file was on. Via mount
Acquire and image of that block device with dd: dd if=/dev/<blockdevice> of=/sdcard/image bs=4096
Get a data recovery forensics tool and let it search /sdcard/image for the lost file. You can of course try to run multiple tools on the image. Foremost and Scalpel are a good start.

"Undelete" App

There is a new App called "Undelete Beta" which can recover files on the internal storage and the SD card. The App is beta and has some restrictions.

If the file is really important, I would always choose the "Manual Way".


What does "Restricted" (aka. "Do not") system icon on Lollipop mean? I'm using Nexus tablet on stock Lollipop. For the life of me, I can't find what the "restricted" sign in the top right corner means. I've checked the user manual as well but still not worked out what it means.

What is the meaning of that icon?

It means that you (might be accidentally) set the "Interruption Mode" to "None". It means that no calls & notifications will be shown, and not even alarm will ring.

This is part of Interruption Mode, a new feature in Android 5.0 Lollipop. You can access this setting from Settings - Sound & notification - Interruptions - When calls and notifications arrive.

Alternatively, you can use volume keys as a shortcut to access this feature ("None", "Priority", or "Always").


Got connection problems: How to reset wifi stack without factory reset? I installed CM 5.1.1 and restored a ton of apps with Titanium Backup.

Now my Wifi is bugged: When I enter a known Wifi network the phone connects to the wifi but can't make a real connection (has a '!').
There might be a problem with tethering or priorities:

$ netcfg
rmnet_usb0 UP                              10.175.104.107/29  0x00000041
wlan0    UP                               192.168.2.126/24  0x00001043

I have to turn off mobile data to get a network connection.

Now I want to learn how to reset the wifi stack to get rid of the problem without starting from scrach. Where is the culprit?

My setup is a Samsung Galaxy S4 LTE with Optimised CM12.1 by AnteresOne. Xposed and Xprivacy as well as AFWall+ are installed.

Solution was in my case: Deactivate AFwall+ 2.0alpha2. The app caused connection problem.

A solution that didn't help:
Updating your modem/non-hlos to the latest version for your country/carrier.


Skype cutting out on Samsung Galaxy Ace III I've had my phone (Samsung Galaxy Ace III) for around 3 weeks now. Ever since I received it I instantly installed Skype and for some reason, when ever I'm calling any of my friends their voices cut out.

I have borrowed several other devices in my house to try and see if it was a local/generic problem but that was inconclusive as Skype worked fine on all of them.

It's really quite irritating when I'm trying to talk to my friend and when he replies I don't hear him, either at all or only a little bit. What's my problem?

Also I've tried re-installing Skype several times as well as cleaning caches etc.

Many factors can affect Skype:

Try to move closer to your router/modem
Close any unnecessary applications, and then go to Task Manager > RAM > Clear RAM
Boot your device into recovery mode, and click on "Wipe cache partition". None of your data will be lost, don't worry.


Restore Note 4 on factory settings I have a problem I hope it has solution. I broke a display on my Note4. Phone works in behind but display is not activated at all. I went to shop but the repair cost is not worth it.
I want to sell the phone to repair dealer, but I want to bring the phone to factory settings and delete ally media.
How can I do that when the display broken?
I tried to connect it to PC. Windows 10 recognizes it and I get an icon of the phone. But when I click it no content is shown

Turn off the phone,. Once fully off hold volume down and power, it will bring you to the recovery menu, using the volume buttons navigate the menu and use power as your enter button, should have reset to factory or wipe user data as a option.  Not sure if it will need a on-screen button press but only other way is from that recovery menu you would be able to flash the partitions via adb or if you unlocked your bootloader it would auto wipe the user partition. Which doesn't need on screen confirmation.  But there are your options.


DC-HSPA Cellular Standard Indicator I have recently picked up a Nexus 4, on a carrier with a good DC-HSPA network (3 in the UK), and I want to check out the speed on that network. However, I don't know whether my phone has even picked up the DC-HSPA network. My speedtests have so far shown around 12Mbps down and 2Mbps up (one of which was in central London), so I can assume I'm only on HSPA+ at the moment.

I'd imagine DC would be roughly double that. The indicator next to the signal strength bar has only ever said H or 3G. Will it say something different when using DC? It's never even said H+, for that matter. Is it supposed to? Or is H just a blanket for all HSPA-related standards?

According to this Wikipedia entry, this is enhanced version of HSPA+.

Now, reading from the telephony source in JellyBean, depending if its GSM, between the two lines numbered 72 and 107, there is nothing in there that indicates, the automatic detection of the usage of DC-HSPA and is probably being treated as HSPA+ for now in the interim, so its very highly likely that it will show up as a 'H' or '3G'.

And then again, that's dependent on the compile-time specifications used when the ROM was built, to elect to show '3G', 'H+' or even 'H' on the status bar.


Can't connect tablet to VPN I have two android devices, my phone and my tablet. In the country I live in some websites are blocked, which make some applications useless since they depend on internet connection. I tried in my phone downloading Kepard and the application works just fine, I can access any website. The problem is when I download the same application in my tablet (again, is android). And it doesn't work, I try many other VPN applications, Hotspot Shield, Hideman, hideninja, etc. and none of them worked.

I tried another Tablet (Android), installed Kepard and... It worked!. And I reached the conclusion that my tablet is the problem, and I would like to solve it, but don't know how.

Thanks.

I had the same problem using psiphon and hotspot shield VPN, after rooting my device I tried using psiphin and it worked.


How do I disable|reset the fingerprint scanner on the nexus 6p? It doesn't work properly since I restored my twrp backup from my old 6p (this one is a replacement). I'd like to remove the fingerprints so I can reset the whole thing, how can I do that?

When I turn on my screen, I also get a litte message which says:

Fingerprint hardware not available

P.S. I'm rooted in case that helps.

edit: To clarify, I can get past the lockscreen, but deleting the fingerprints in the settings doesn't do anything, they're not being deleted.

I've solved this problem by deleting /data/fpc/ and the fpdata folders in the folders in /data/system/users/.


How to grant an app a permission that isn't in its manifest for audio recording? Non rooted Moto G6 Play running Android 9.

I'm using Termux and would like to use Sox's rec command to record audio from the terminal.  Unfortunately, since Termux doesn't request the mic permission, it just records silence.  I can't grant Termux the permission in Settings because...well, it doesn't request it.  It's not in the app manifest, therefore Android (understandably) assumes it wouldn't know what to do with the permission if it had it and doesn't list "record audio" as an option.

Is there a way I can force Android to grant an app a permission it never asked for?

Not possible without root but even with root SoX recording might not work.

Android Manifest Permissions

Android permission system has different Protection Levels (1, 2); Normal permissions are granted to any app without user interaction while Signature|Privileged (SignatureOrSystem) permissions (whitelisted in /etc/permissions/privapp-permissions-*.xml) are granted only to system apps. Both are granted when app is installed or on first startup (if system app) and configuration is saved in /data/system/packages.xml file. Some signature permissions can be granted to non-system apps after user's approval using appops.

Dangerous permissions are those which require user's approval to be granted or denied. User's choice is saved in /data/system/users/<User_ID>/runtime-permissions.xml where device owner's User_ID is 0 (don't confuse it with UNIX DAC's UID).

Most of the manifest permissions are enforced by Android framework (system_server) but some are mapped to GIDs; hence enforced by kernel. Permission to GID mapping is stored in /data/system/packages.list.

How to Grant an App Unrequested Permission

You can modify above mentioned files to grant a permission which isn't requested by an app in its Manifest. I haven't tested with all permissions but this trick works (at least up to Pie) because Android framework doesn't verify the saved permission configuration vs. apps manifest files on every reboot (may be the changes are reverted back to actual during a scheduled maintenance task or when some app is installed or updated; I'm not sure).

In our case we want to grant android.permission.RECORD_AUDIO to Termux which is a dangerous permission, so this is how you should edit your runtime-permissions.xml followed by an immediate reboot:

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<runtime-permissions fingerprint="...">
  ...
  <shared-user name="com.termux">
    <item name="android.permission.READ_EXTERNAL_STORAGE" granted="true" flags="0" />
    <item name="android.permission.WRITE_EXTERNAL_STORAGE" granted="true" flags="0" />
    <item name="android.permission.RECORD_AUDIO" granted="true" flags="0" />
  </shared-user>
  ...
</runtime-permissions>

To confirm:

~$ pm dump com.termux | grep -A3 'runtime permissions:'
      runtime permissions:
        android.permission.READ_EXTERNAL_STORAGE: granted=true
        android.permission.WRITE_EXTERNAL_STORAGE: granted=true
        android.permission.RECORD_AUDIO: granted=true

Why SoX won't work?

That said, still SoX won't be able to record audio because (AFAIK) it's not using Android's Java APIs (android.media) or native APIs (aaudio/opensles). It uses ALSA/OSS driver directly or through PulseAudio which needs direct access to device interfaces in /dev/snd/ or /dev/{audio,dsp*} and proc tree in /proc/asound/. For details see Android Audio Architecture.

However direct kernel level access isn't a norm on Android, so you need root access. Apps with android.permission.MANAGE_VOICE_KEYPHRASES are allowed to read /dev/snd/* devices. It's a privileged signature level permission which is mapped to GID audio (1005). You can edit packages.xml to get this permission granted:

    <package name="com.termux" ... >
        <perms>
            <item name="android.permission.MANAGE_VOICE_KEYPHRASES" granted="true" flags="0" />
        </perms>
    </package>

    <shared-user name="com.termux" ...>
        <perms>
            <item name="android.permission.MANAGE_VOICE_KEYPHRASES" granted="true" flags="0" />
        </perms>
    </shared-user>

And packages.list:

com.termux ... 0 /data/user/0/com.termux default:targetSdkVersion=28... 1005,3003

But SELinux allows only privileged apps (having context priv_app) to read files in /dev/snd while /proc/asound/ isn't readable by apps at all, so you need to patch sepolicy as well.

And even after that, configuring SoX to use ALSA/OSS/PA is up to you.

Non-Root Solutions

Instead of using ALSA directly, PulseAudio can also be configured to stream audio over TCP or UDP or UNIX sockets. That's how media playback works on Termux. See this issue. However capturing audio only work through Android APIs. You can install termux-api package to use termux-microphone-record command for audio recording. It uses MediaRecorder class of Java API, or you may consider modifying SoX source to use Android's native APIs.

RELATED

How to Play Sound from Termux when using Linux?
How Android's permissions mapping with UIDs/GIDs works?


Why is bricking possible? No matter how messed up a desktop is, you can always format it and reinstall of a live boot. Why can't you do the same thing with a droid?

The risk of really "bricking" a phone is not that high as it may seem, at least with more recent models, as there are multiple levels of safety-guards in place: If you break your regular system, there's a fallback possible to the recovery mode. If that's broken as well, there are things like Fastboot in place. Only if you break the lowest level, and e.g. flash an incompatible radio image (the radio image is the layer bridging the hardware to a software layer, to simplify the explanation -- see also Al's comparision with the PC's BIOS in his comment to your question: if the BIOS is broken, you no longer can start your computer), your device is really "bricked".

To understand the difference, you should also see what is different between installing your "desktop OS" on a computer and flashing your Android device: Installing your desktop OS works on a file level. That is, you boot from e.g. a DVD, and then copy files to your harddisk. On Android, flashing a ROM means to copy the entire file system at once. And you cannot boot a live system from DVD or the like -- especially when newer devices like the Nexus 4 come without even a sdcard slot.


No "None" Option For Lockcreen When I go to disable my lockscreen, there is no "none" option. This is really annoying as I am unable to get a custom lockscreen with the stock lockscreen overlapping with it. I've looked through multiple forums and tried all the suggested solutions but they don't work. The none option isn't even greyed out like people have reported, it's just not there. I'm running android 6.0.1 on an LG X Power.

Click image for larger version

Use this video as it seems exactly like your problem, try it then comment if it works https://www.youtube.com/embed/LV_7APlAvvc

So, basically what you need to do is :-

Go to settings and remove your pin/passwords if you have any.
Go to `settings>security' and at the bottom of the page you should see "clear credentials" tap on it and clear your credentials.

3 Now go back to lock screen settings settings and you should see the "None" option waiting there or you.


How to disable Screen timeout for a particular program only Is it possible to disable Screen timeout only when a particular program is running?

If so, how do I do that?

My Nexus One has a "Screen timeout" in "Display settings" that lets me choose anywhere between 15 seconds and 30 minutes, but this is across the board. I would like it to disable screen timeout only when one of the programs (that I currently develop) is running. Is this possible?

If this isn't possible, is it possible to disable it for only when a program is waiting for user input (via a dialog box)?

I wouldn't mind so much about the screen timeout itself, but once the screen times out, the device gets locked as well. :(

You can user Tasker to control the timeout for individual apps.


MotoX 2014 has 24GB out of 32GB available Keeping in mind that the same OS (Lolipop) runs on MotoG which can be 8 GB, how can it be that OS takes up 8 GB? MotoX comes with only a couple of extra software, which surely cannot much space…
(Click image to enlarge)

Try to do a factory reset. If your memory is still such 'low' comparing it to the other models then it's just the way it is. Flashing the entire stock image may be a good thing to do since it may be firmware related.


No sim card detected? my SE Xperia Arc S started going crazy today, it didn't detect the sim card, so I've tried reseting the phone to factory settings, but it still wasn't detected, I've also installed a new rom, to no avail. Is there any way to fix this or do I have to get a new phone?

NOTE: the sim card works in another phone, other sim cards are not detected in mine either.

try installed some sim utility app like https://play.google.com/store/apps/details?id=com.androidyou.simcardinfo&hl=en

then check the reading there.

if still no luck, the sim slot of the phone might be broken. in this point , it's a hardware issue.