Plugging in wired headset opens Google App and changes volume, nonstop I recently got a ZTE Maven (running Android 5.1). I plugged a headset into the headset jack, and the phone does detect the headset's presence, but after 30 seconds or so it starts to sporadically and repeatedly open the Google App and reduce the phone's volume. It doesn't just do this once, in a way that could be resolved by closing the app and readjusting the volume - it does this continuously, basically locking out the phone and making interaction impossible.

I plugged the same headset into a family member's Galaxy S5 and it works perfectly. A test call revealed no problems.

The headset is a basic PC headset terminating in a TRRS plug. There's no Volume control or "answer/hang up" button or anything; just an earpiece and a mic.

I have tried removing the Google App widget from the home screen as well as disabling voice control within the Google App, to no avail.

What's causing this, and how do I resolve it so that I can use a wired headset with my phone?

I procured a second wired headset, and it works with the Maven. However, it does not work with the Galaxy S5.
I got out my multimeter and tested each connection on each headset, and found that they are wired differently. The ZTE Maven and my new headset use the CTIA/AHJ standard, and the Galaxy S5 and my old headset use the OMTP standard. The difference between these two standards is that the ground and microphone connections are swapped.
From Wikipedia (formatting added):

OMTP:

Tip: Left audio

Ring: Right audio

Ring: Microphone

Sleeve: Ground

old Nokia (and also Lumia starting from the 2nd gen), old Samsung (2012 Chromebooks), old Sony Ericsson (2010 and 2011 Xperias), Sony (PlayStation Vita), OnePlus One, X Box One controller with head phone jack, iPhone sold in China
CTIA / AHJ:

Tip: Left audio

Ring: Right audio

Ring: Ground

Sleeve: Microphone

Apple, HTC, LG, Blackberry, latest Nokia (including 1st gen Lumia as well as later models), latest Samsung, Jolla, Sony (Dualshock 4), Microsoft (including Surface and Xbox One controller with chat adapter), most Android phones

My guess is that, when an incorrect headset is used, random noise in the ground connection is sent to the microphone input, which the Galaxy S5 handles gracefully (detects the headset but doesn't receive or transmit any audio) while the Maven does not. This is solved by using a headset of a suitable standard for the given device.


Settings app keeps crashing When I try to open the Setting app on my Android device, it stays on for like a half a second and then closes.

Usually when this happens to me, what I do is I clear cache or if that won't help, even the data of the application. So basically, settings is not working, so go to settings, apps, settings and clear cache. I hope everyone sees the catch here.

I've tried restarting the phone, but settings app still crashes. I've noticed that if I am fast enough I can get into the submenu of the settings, so I've spent 30minutes training my fingers to open settings, scroll down and click Apps in less than half a second. I was lucky and managed to get into Apps (which didn't crash), found Settings app and when I tried to clear cache, Apps crashed and Settings doesn't work either.

What can I do? I would love to avoid factory reset.
Phone: Meizu M6 (with Flyme 7.1.1.0G)
Android version: I don't know, can't access About the phone from settings.

You can try booting the phone into safe mode and see if the problem persists if so then you might have corrupted system files and you'll need to reflash the ROM to fix that.


How can I change the default browser on Xiaomi Mi Max phones? How can I setup in my phone (Android 7 mimax 2) in way that every link or pop-up will be opened by chrome.
In the past I was able to choose how to open. Now the called "browser" browser only does it

MIUI 9

Go to Settings-> Installed Apps. On top you have three dots, tap on that three dots will pop up a menu, select Default app. Under browser part, set Chrome as default. After this operation, every link you open will be loaded in Chrome browser.

MIUI 8

Go to installed apps as described above. While when you are in Installed apps, you can see an icon written with Defaults. Tap on it, and set required.

Note: MIUI is the user interface of Xiaomi devices. MIUI 9 is the latest now.


Download video from DailyMotion Is there a way to download videos from DailyMotion? I do have the DailyMotion application on my phone (Canvas 2) but as far as I can see it doesn't provide any feature to download video.

Install the official dailymotion app from play store.

Click the download button as seen on the picture below. (left of HD)


Clearing logcat on HTC one X I've faced with insufficient storage problem on my HTC One X (rooted, stock ROM 4.2.2, CWM recovery).
I've solve this problem before on a Samsung device by dialing *#9900# then press Delete dumpstate/logcat. However, I try that with HTC and it doesn't work. Anyone know how can I delete logcat or other method to fix this problem?

Updated : FYI, I have plenty of storage in  phone storage as well as in SDcard. I also try installing other app which seems to installed without problem. The app I'm having problem is Gallery Vault. Earlier, the app is installed and I uninstall it. Now I'm trying to reinstall it and I get insufficient storage error.

Thanks

Clearing logcat can't make any difference to your storage problem. The logcat output is stored in a ring buffer, so it has a fixed size, and the ring buffer only exists on RAM: it isn't written to the storage at all.

See the frequent questions under the insufficient-memory tag for what to do when your phone storage is getting full.


A grey stripe has appeared right above the nav bar This morning after some regular use a grey stripe suddenly appeared right above the nav bar. The stripe follows the nav bar, so if I collapse the nav bar the stripe is moved down to the lower edge of the screen. Se attached images:

It's semi transparent and a nuisance...

The device is a Samsung Galaxy S8 Plus

I found out what the problem was.

As a side note I work as a designer for a company with a dedicated Android app. The current builds from the development team are pushed to my device where I can test the builds and provide input.

In the latest builds from today the team had integrated a third party lib which produced a on-screen server communications log. This log appeared as a grey stripe wherever I was in the device without me knowing, and only started printing logs when I started the beta app.

So, no problem with Samsung on this one, I guess this is a problem no one else ever will encounter. :)


HTC Incredible 2 clearing "App Associations" on reboot - why? My Friend has an HTC Incredible 2 that is clearing all app associations whenever the phone reboots. Does anyone know what is causing this? I couldn't find anything on google, or my phone (an HTC Thunderbolt) that would lead to a setting or something.

Thanks!

Has your friend modified the Linkify app that implements the App Associations? Typically both the Linkify app that actually performs the association and the Settings app where you set them are signed by the system signing key. If the Linkify app was replaced with a modified version not signed by the system signing key, which is possible if you unlock and root your device, I imagine it would have trouble accessing the settings.


Permanently delete apps using Titanium Backup (they keep re-installing!) Phone is rooted, running a custom ROM.
I am using Titanium Backup, it has been given root privileges.

I am trying to uninstall the following:

default Files (I prefer X-Plore, yet, many apps keep using Files, despite setting X-Plore as default app)
Calculator (I have disabled autoupdates, yet THIS app was updated automatically, without my permission. This will not be tolerated.)
All other Google apps (Since one can auto-update regardless of settings, then the others can, too. Everything gets nuked)
Via browser

Titanium Backup shows that the files have been removed (the app names are crossed out), yet the apps are NOT removed from the app drawer, and clicking on them starts them normally.

I switched off all internet access (data and wifi), uninstalled the apps, then restarted, with no success.

How do I PERMANENTLY remove these intrusive and privacy abusing apps?

There are times Titanium Backup does not work, so I use System App Remover (root needed).
However, as indicated here, a workaround for Titanium Backup is to install Termux. Issue the following commands from Termux

su
setenforce 0

Then try to uninstall the apps again with Titanium Backup

  This sets SElinux to "permissive". Then you can uninstall all your system apps. Then after you reboot, the phone automatically goes back to "enforcing" for SElinux.


Removed sports team from Google Now keeps reappearing I added few teams to Google Now to see how it worked.

Now I left San Francisco and I don't give a * about the Giants' score.

I tried to remove the team by going to settings, clicking on the team, remove.
The team is removed but after a few minutes it reappears.

I have two devices running Jelly Beans so I though it was a synchronization bug.
I removed the team on both devices at the same time, but it still keeps reappearing.

How can I definitely remove it ?

Edit: My Galaxy Nexus is running 4.1.2 and my Asus Transformer Infinity is running 4.1.1.

According to the Google Now page sports cards are :

  Shown based on Web History

so I suppose there are still many links related to the Giants in your web history.

Try to go to your google history page, search for everything related to Giants, then remove the shown items, then maybe Google Now will understand that you are no longer interested in Giants results.


How can I get my recovery back? I was trying to get TWRP on my Asus Zenfone 2 ZE551ML (Stock firmware, WW-2.20.40.198). In order to do that, I tried to unlock the bootloader using this guide. I don't believe the unlocking really worked, though, because every time I tried to flash TWRP through Fastboot or the app, it failed.

It did, however, lose me my stock recovery. If I go to the bootloader and select "RECOVERY MODE", the phone just restarts and goes to the same bootloader again. So I got neither the stock recovery, nor TWRP.

As you can see from this answer, the only way I know how to flash stock firmware is through the stock recovery.

I did manage to root and install Xposed, though, both through adb. What worries me, though, is that if some root app or Xposed module mess up my phone somehow, I won't be able to flash stock firmware or a backup. So I really need a recovery. I would actually prefer to have the stock recovery at this point.

What can I do? I need the stock recovery to flash the stock firmware, but I can't.

I've tried Asus Flashtool before, but it didn't work. I think maybe it's because I tried it on Windows 10, some users said it worked better with Windows 7.

How can I get my recovery back?

You can flash the stock recovery through fastboot. The complete guide for flashing is here


What is causing unknown network traffic on an Android phone? I have a Xiaomi Redmi Note 8 Pro smartphone with Android 10 installed. Even when all apps are closed using the task manager, I see some realtime network traffic. It's not that much but it goes on all the time. This is also the case when not connected to Wifi (using 3G/4G).
Is there any way to check what specific apps/processes are consuming data?

Before identifying and potentially vilifying specific apps, it is important to know that any app can schedule deferred background operations with the system.  This sort of background work can and often does include network requests, depending on the app.
My recommendation is to familiarize yourself with your system.  For example, inspect your account for any syncing settings.  A plethora of Google apps like to keep themselves up to date through Google Play Services.  I suspect that Redmi has OEM apps, or the OS itself, contributing to passive network activity as well.
If you would like to inspect which apps are sending packets, I suggest looking into network inspection tools such as those built into your router, or with programs like Charles Proxy.


How to remove the android OS version from the DHCP request? When my phone connects to my home WiFi network, it sends DHCP request in order to get an IP address. It looks like the following:

22:50:53.743535 IP (tos 0x10, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from a0:39:f7:5f:c0:45, length 300, xid 0xddd7abec, Flags [none]
          Client-Ethernet-Address a0:39:f7:5f:c0:45
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            Client-ID Option 61, length 7: ether a0:39:f7:5f:c0:45
            MSZ Option 57, length 2: 1500
            Vendor-Class Option 60, length 18: "android-dhcp-7.1.2"
            Hostname Option 12, length 9: "localhost"
            Parameter-Request Option 55, length 10:
              Subnet-Mask, Default-Gateway, Domain-Name-Server, Domain-Name
              MTU, BR, Lease-Time, RN
              RB, Vendor-Option

As you can see, there's Vendor-Class Option 60, length 18: "android-dhcp-7.1.2" which contains the OS version. Is there a way to remove this from the request?

It's hard-coded in Java DhcpClient:

...
    private String getVendorId() {
        if (testOverrideVendorId != null) return testOverrideVendorId;
        return "android-dhcp-" + Build.VERSION.RELEASE;
    }
...

So the only way is to rebuild your ROM with modified source code. Or use a different DHCP client from command-line. For reference: Connecting to WiFi via ADB Shell.


High resolution contact pictures in Marshmallow - what is their size and where are they stored Trying to answer this question How to backup large contact photos?, I wanted to compare the picture size after restore

I do see a database for contacts  , as mentioned in Narayanan's answer here -  location hasn't changed from Gingerbread days !

/data/data/com.Android.providers/contacta/databases/contracts.db

How do I see the picture and it's size ??

I gather one has to SQLlite viewer but Apps from play store didn't help and I am new to SQL stuff. It would be nice if I can get a way of doing this (preferably without using PC but if that's inevitable , it's fine )

Edit:

Android version 6.0, Rooted
When I see /data/data/com.android.providers.contacts/files/photos/ they pertain to WhatsApp photos not contact pictures

Assume you're using an AOSP ROM, you just missed the correct answer:

/data/data/com.android.providers.contacts/files/photos

Whatever the original size of the image is, it will be resized to 720*720 and shrinked to less than 64 KiB.

To verify this by yourself, get these commands executed in a root shell. You need BusyBox or Termux for find and xargs Android M introduced ToyBox which has find and xargs built in.

# cd /data/data/com.android.providers.contacts
# ## Add a picture of your choice to a contact
# find -type f | xargs ls -t

See the output. find -type f outputs every single file found under current working directory, and xargs use piped stdin as arguments to ls -t, which lists and sorts all files from the command line by last modification time. You will see that the top 3 files are

./databases/contacts2.db
./databases/contacts2.db-journal
./files/photo/3 (num. varies dpd. on your env.)

The answer is clear as seen above.


LG G2 Lock Screen Size I have an LG G2, and I feel a little dumb asking this, but I have seen a G2 with the regular pattern lock screen with the dots (3×3) spanning the whole screen, but mine is much smaller (still a 3×3 but much less space between the dots), and I can't, for the life of me find a way to change this setting. And I dont think he had an app or anything. His phone was a day old, and he hadnt really used it because it didnt work correctly, so we were replacing the phone he had with a new one. Any tips??

You have to go to lock screen settings and uncheck "Hidden pattern-show pattern dots when tapping on the screen". This will bring back the largee dots.

This is different from "make pattern visible" which is at tthe bottom of the lock screen options page.


Cannot get into recovery mode from boot-loop on BLU phone I have BLU Life One X which is at 0% battery and in boot loop:

It shows 0%, then
"BLU/Bold Like Us", then
"Android is starting/optimizing app AAA of BBB", then cycles.

I tried to follow the instructions:

Pressed Power + Volume Up + Volume Down.
Got two teeny lines: Recovery Mode: Volume Up and Factory Mode: Volume Down.
No matter what I press, the screen goes dark and nothing happens.

What can I do now?

Bingo! Your phone has a Mediatek chipset (MediaTek MT6589 precisely), nothing is as easy as flashing an MTK device.

You just need a flasher and flashing files (ROM) and eventually have drivers installed.

[The process below is for Windows OS only]

Prerequisites:

Blu Life One firmware (ROM): Here (Requires to be registered to the site, takes less a minute) or here (Serous mobile phone forums).
SP Flashtool : Here (Grab the latest version, always stable)
MTK VCOM drivers: Here

Install the drivers. Otherwise your phone won't be detected by the computer.

Unzip the firmware (should be a .zip or .rar file).

Open SP Flashtool. Click on Scatter-Loading then browse to the folder that contains the firmware. You'll have a text file xxxxx-android-scatter, or similar. Select it.

SP Flashtool should load some files on the main interface. Uncheck the firmware field labelled: PRELOADER (very important), leave the other checked. It is sometimes recommended to only keep the field SYSTEM or ANDROID checked.

Now, click on the green arrow (Download) then connect your phone to the computer. Should be shut down with battery inside.

Windows should start installing drivers the the flashing process should start.

Wait until the end, a big green check-mark should pops.

Et voilà.

Please report any errors I'll try to help you.


Is there a way to get device battery and memory stats remotely? I am searching for a way to get the device battery and memory statistics of my friend's device on my phone/web (definitely with his permissions, i don't intend to hack his device). Is there any web or android solution available?

Haven't you ever heard of Airdroid ?.

You can see Battery status and memory statistics at upper right corner and lower right corner respectively.( this is web view.)

AirDroid is available for all platforms.


how to turn on/off automatic date/time settings I would like to be able to turn the automatic date time settings on and off from tasker.  I don't see a way to do this directly but I can use tasker to issue a shell command.  I know I can just use the date command to change the date to some specific date but is there a way to turn the automatic setting off and on from a command line or tasker?

turn on:

settings put global auto_time 1

turn off:

settings put global auto_time 0

source: Android sourcecode


Execute fastboot commands without PC I have setup adb server and client within the Android device and can issue adb commands via terminal emulator.

But I need to have the fastboot in the same way. My requirement is to temporarily boot into TWRP without a PC or another Android device:

# fastboot boot /path/to/twrp.img

I think the Android has fastboot-over-usb.

You can't execute fastboot commanda without a physical connection to the phone.

Fastboot is another name for "bootloader mode", where the bootloader stops itself before further loading the OS, and waits for fastboot commands.

Since bootloader is very simple, your only bet would be connecting your phone to a computer.


Grey circle background on app icons I have a Samsung Galaxy S7 on Android 6.0 Marshmallow, and I just looked at the home screen and some of my app icons have a grey circle around them.

Is there any meanings of this? Is it possible to turn it off while still using TouchWiz?

Not sure if this was fixed or not, but change the screen resolution and that should fix your icons.


How to clean the voice mail in the notification screen? How to clear the notification screen, without listening to the voice mail?

The phone is Galaxy Ace GT.

Don't you have a Clear button in the top right corner?

This is what it looks like on my HTC Desire running Android 2.3.3.

What happens if you press and hold the voice mail? Do you get a menu to clear it out?

Update:

Tapping the notification dials the voice mail inbox, right? Unless you can tap and hold it to get a context menu from where you can remove it, then I'm afraid there's not much you can do about it.

I just talked to a Samsung rep and he was not aware of a way to remove it. He said you have to pull down the notifications menu, tap it, and then close it (essentially dialing and then ending the call).

I also had a look at the manual for the Galaxy Ace (GT-S5830). There is not much said in it about this (full manual, 127 pages, not a quick guide). They pretty much just tell you what voice mail is, how to set up voice mail server and listen to voice mails.

  In Idle mode, open the application list and select (phone icon),
  Keypad and then tap and hold 1. Follow the instructions from the voice
  mail server. You must save the voice mail server number before
  accessing the server.

They don't even tell you how to clear the notification bar. They seem to be expecting that the user will know this by logic. Most manufacturers of Android handsets seem to be under the impression that Android is intuitive enough that they don't need to say many words about it in the manuals. Some manufacturers have more proper manuals, thoroughly explaining every detail, while some will just have quick guides.

I'm sorry I couldn't be of any more help to you.

May I ask why these notifications about voice mail bother you so much? Are you using voice mail? If you are not using it, then there is always the option to disable it, and you won't be getting any more of those.

So here are the options you have.

Tap to listen

You can tap the "new voice mail" icon from the notification bar to dial your voice mail inbox and listen to your voice mails.
Ignore it

You can always just ignore the icon.
Disable voice mail

If you are not using voice mail, or if you are not using it frequently you always have the option to disable it.
Upgrade to Android 4.2

If possible, you could try upgrading to Android 4.2. That requires rooting your phone and installing a custom ROM.
Get a new phone

This is the least wanted option for several reasons, the expense being usually number one. But sometimes it is the best and quickest solution that allows you to get on with your life and worry less about problems with technology. I would personally not change my phone just to get around this type of issue.

Make sure you thoroughly test your new phone so you know it does what you want. It's usually not possible to test every feature in the store, you need to take it home and test it properly. Some carriers will allow you to bring the phone home and test both the phone and the service for 14 days, without commitment or signing any contract. My carrier (Tele2) has this option.

How to disable voice mail on Galaxy Ace

In Idle mode, open the application list and select
Settings.
Select Call settings.
Select Voice mail number
Remove the number and save changes. If it doesn't allow you to leave it empty then type in some bogus (fake) number like +1 123456789 and save.

There is also the option "Voicemail service". See if you can just disable the service that way, instead of messing with numbers. It doesn't say in the manual what options you have, so you need to see for yourself.

Note!

You can always continue using your voice mail. It's just that you won't be getting these annoying messages every time you get a voice mail. All you have to do in the future is just call the number for your voice mail inbox. You can just save that as a new contact and call it to check for new voice mails.


Is it possible to install Android apps on mobile running Cyanogen OS? I have a doubt on Cyanogen OS.

Can I install Android apps (e.g. from Play Store) on mobile (e.g. Lenovo Zuk Z1) running Cyanogen OS?

Cyanogen OS (not to be confused with open source CyanogenMod; is built on Android) comes with Google Mobile Services (GMS) and for GMS to be shipped in a specific device the device must follow Compatibility Definition Document (CDD) as well as pass the compatibility test. Any device which follows the said document and passes the test can be claimed as Android compatible. To know what having an Android compatible device means, refer to the document Compatibility Program Overview.

So yes, you can install (non-device specific) apps from Google Play Store on your Cyanogen OS.


How to know if a webview is using https As a user, is there a way to know if the page displayed in a webview inside an application is using https or not?

If you control the network, you can use Shark for Root to check whether the apps open port 80 (default port for HTTP) or port 443 (default port for HTTPS). IIRC, WireShark can also read HTTP headers.

If you don't want to root your phone, and you're on a Wifi network that you owned; you can use Wireshark/Firesheep to snoop on the traffic of the Android device from your laptop.


Using a phone as a game console- HDMI out and USB in simultaneously I have a pico projector, which I use to display HDMI from my Galaxy S3 via an MHL cable. I recently learned that my phone (and most newer Android devices) can be controlled with USB gamepads, mouses, keyboards, etc. with a USB OTG connector, and I have MegaN64 (a very good Nintendo 64 emulator) on my phone, which works great with my USB gamepad.

I'm trying to combine these two features: I want to be able to provide HDMI input to my projector from my phone, and have a USB gamepad controlling it at the same time. Is there any way to do this? I can't with my current equipment, because MHL takes up the micro USB port, so I can't have anything plugged in at the same time. Even if I had a simple micro USB splitter, as far as I know the micro USB port will not work as a USB port and an MHL port at the same time (PLEASE correct me if I'm wrong).

I know there are wireless HDMI receivers available, like Chromecast, but all of them that I've seen use Wi-Fi instead of Bluetooth, and most only work with certain apps, instead of just mirroring the screen. I plan on using this setup while camping, so sending HDMI over Wi-Fi won't be an option for me.

The only close-to-a-solution I've come up with so far is to connect a controller over Bluetooth: there are a good few apps that will connect a phone to a Wii Remote, but that's not the best controller for some of the games I want to play. I've looked into connecting my preferred (USB) controller over Bluetooth, but I haven't been able find a way to do that.

Is there any alternative to MHL for outputting HDMI which doesn't require Wi-Fi, or a way to connect a USB device over Bluetooth?

Well if the already build adapter doesn't work you can make your own folowing this steps (if you are not able to do all the soldering ask a professional nearby like a phone repair shop) :

Background : Samsung made the new 11pin MHL technology on the galaxy note 2 and the S3 (those are the first devices to have it any top shelf phone out after that day have that technology ) ,samsung made it specially to sell it's own Smart Dock station where you can transform your S3 to a desktop ,the smart dock was (may still) sold to companies only for 100$ , the member @its.mahmud on XDA succeeded to make a clone of that device after reading the source code of the samsung galaxy S3 see reference .

Now How to build a DIY smart dock :

pre-required :

A Micro USB 5 To 11 Pin HDMI HDTV MHL Adapter Converter For Galaxy S3 S III i9300 search for it or get it from ebay
A 40.2 k ohm resistor (they are sold by lot by you can buy a piece from any repair shop)
A USB 2.0 A female to Micro USB B female adapter cable FF (by from near by electronics shop or from ebay (if you already have a female USB port somewhere else you can use that instead)
A samsung galaxy s3 under JB stock rom.

Lets start breaking stuff and making new stuff :

Cut the A Micro USB 5 To 11 Pin open and get the mother-ship this is what it looks like this on the 5pin side:

As you can see in on the ship where it's written R1 and there is a rectangle around the resistor ,yo need to take off that resistor ,do so.
Replace the removed resistor by the 40.2 K ohm resistor.
Cut the A USB 2.0 A female to Micro USB B female adapter open to remove the female USB port (if you already have a female USB port somewhere else you can use that instead).
Now solder new 4 wires  and shortcut the sense and ground with the 40.2 K ohm resistor as shown is the picture below.

Optionally you can cover the wires with duck-tap or any plastic material of your choice.
You can plug a USB Hub to the female USB port you just made to plug multiple USB devices (mouse and keyboard) or two controllers (android natively detect and use one controller only you need a third party app to manage multiple controllers.
Now you have a USB or multiple USB ports and An 11 Pin HDMI HDTV MHL to plug on your TV.

Reference :

Multimedia Dock(I/F: Micro USB 11pin)
DIY Smart Dock tread on XDA
Proof

Disclaimer :

None Of the component (devices and micro electronics ) used in this unswer are sold by me the links included are here to make it easy to find you can buy them from where ever you want.


How to record FM radio Is there an app which can record
audio (to mp3) from the FM radio (NOT internet-radio).

I want to record some shows while listening to the radio and store them in my SD memory card but I can't seem to find any suitable application.

My phone is a Huawei U8150 and I'm using Android 2.1.

Android's doesn't have an integrated FM radio functionality (API), if a device features FM support, it was added by the manufacturer.

Because of that there's no standard way to access it via 3rd party apps. You can try this app but your mileage may vary.


Lost most data on SD card after moving it to another Android device I have videos and music on the SD card inside my Android Moto G5 phone. I wanted to watch some of those videos on my Android Lenovo A10-70F tablet. So, I turned off my phone, removed the SD card, and placed it into my tablet.

The tablet asked if I wanted to have the SD card only work on the tablet, or use it as portable storage. I selected the portable storage option, and the file browser immediately popped up. I was horrified to find that the SD card was reporting itself as only being 1% full, and the only data inside was in LOST.DIR and a single album in /music (which is the first album alphabetically in my collection).

Moving the SD card back to my phone hasn't changed anything. Have I really lost all my media?

Yes, probably the SD card was formatted.
Try to plug your SD Card to a PC with an adapter and browse the folders to see if files are still there. I suggest you to configure Windows to show hidden files; it can be done from Folder Options.

If nothing shows up, they were deleted from the SD. By the way,
if they have not been overwritten yet, it's pretty easy to recover them.
Just use a data recover software such as Recuva

If you want to try with Recuva follow those steps after downloading and installing it from the official website.

From the Recuva wizard window, select All Files then Next>

Select "In a specific location", then Browse, then select your SD Card from the list (usually F:)

Check the "Enable Deep Scan" box then click on Start

The process may take a long time, depending on the PC's characteristics and the R/W speed of the SD card.
At the end of the process, you will be able to view and eventually recover files previously deleted from the SD Card.

edit: I suggest you to try both scanning modes as, in some cases, normal scan mode finds some files that are not detected in deep scan mode and vice versa


Automatic system-wide proxy When I'm on a public network that I don't trust, I use a combination of ConnectBot and ProxyDroid (with "Global Proxy" enabled) to tunnel my phone's traffic through a trusted server that I control. However, I have to set that all up manually, and I'm sure plenty of other data leaks out around that tunnel (at the very least, apps will check in between the time I connect to a network and the time I set up the tunnel). Also, the process is involved enough that I usually only go through it when I'm on a public network and I get SSL errors from the browser telling me google.com is using a certificate signed by GoDaddy.

I'd like to set something up that smooths the process out a bit, such that a tunnel is automatically established whenever I connect to a network, all traffic is routed through it, and apps aren't able to connect to the Internet unless the tunnel is open (very important). Obviously, it should verify the authenticity of the server before connecting (though I haven't seen a VPN that doesn't). I'd like something that uses SSH since that's the simplest to set up, but anything will do. What sorts of solutions like this are out there? My server runs Ubuntu 12.04, and I can install extra software on it if needed.

Again, the most important part here is that no app can access the network unless it's going through the tunnel, and if the tunnel hasn't been established yet, no traffic escapes. Obviously, the one exception would need to be whatever app is actually making the initial connection to establish the tunnel.

I'm currently using a rooted HTC Incredible running CyanogenMod 7. I'm in the market for a new phone though, so if anyone knows of any solutions that require something newer than Android 2.3, those would be welcome as well.

Maybe shadowsocks? There are different os client/servers, even for routers.
http://www.shadowsocks.org/


Using whatsapp without my SIM Next week I will go on holiday to a foreign country and for this I bought a prepaid SIM card because with my phone's current plan I have little to none data in Roaming. My problem is that I will be using my phone with this new card, but I would still like to use my current Whatsapp account. The only solution I have come up with is changing my number in my Whatsapp account's settings, but I wouldn't really want to do that because it notifies all my active conversations. So, is there anything else I can do so that I should be able to still use my Whatsapp with this prepaid SIM card?

Yes, you are actually in the right direction. WhatsApp requires a SIM for installation and activation. But once activated, it doesn't matter if the SIM stays in the same phone or is tossed to a different phone, or even lost. Sure, in cases of lost SIM, re-installing WhatsApp with the same phone number will be impossible.

WhatsApp will keep on working on your phone, provided you have a data connection (no matter which SIM it comes from) or WiFi access.

So, yep, just toss in your prepaid SIM, turn on data connection and continue to use your old (current) WhatsApp. You do not have to make any changes in WhatsApp. Changing the number is also absolutely NOT NEEDED. It is only used when you are officially switching to a different number and would like to carry your chats along.


I have to set the phone to silent twice to make it "stick". How can I do it after once set? I have a VZW Galaxy Nexus running bugless beast 4.1 and when I hold the power button and select silent mode, the phone immediately switches back to normal mode.  Then if I do it again, it will go into silent mode.

I was using the Shush app and thought that was messing with it so I uninstalled Shush and it still takes two tries to make the phone be silent.

This is relatively new behavior that used to work before.   How can I isolate what is causing this problem?

This may help: On my GN also running BB JB 4.1.1 if I want to silence it I will typically hold the volume control down until it gets into vibrate only mode. Then I have to down again to turn that off. So even that is a two step process and it may just be the nature of the Bugless Beast. :)


Mice and Keyboard support in 3.1 Apparently, Android 3.1 will support USB devices such as mice and keyboards.

How much of an issue is driver support? If you have a "normal" keyboard or mouse, will it just plug and play?
Does the OS provide support for these input devices through standard Android controls, or will each program have to be modified seperately to support these input devices?

Most (pretty much all) USB keyboards and mice support the USB HID protocol. You might not be able to use some special "media keys" or other advanced features, but standard features will work without additional drivers.

As for routing USB Input to standard Android UI events, I suspect they'll do it (they'd be stupid not to) but couldn't find any conclusive information as of yet.


How Do I Get Rid of Apps from Play Store Update List? For the past few months, I have had the following items in my Play Store update list:

I do not have these apps installed on my device. I do not want these apps installed on my device. Yet I do not see a way to get rid of them from this update list.

How can I get rid of these apps from my update list?

Try going to "Settings > Apps > Google Play" and then pressing the "Clear Data" button. Then go back into Google Play Store. You may have to sign in again but I doubt it.


Twitter & Facebook login details periodically forgotten Amongst others, I have Facebook and Twitter apps installed on my HTC Desire running Cyanogenmod 7.1.

Every few days, it requires me to login again, even though I've previously saved my details. It even asks me again (for Facebook) about syncing Contacts to my phone... it's as if it's forgotten my login to those apps altogether.

I have these 2 apps installed on the SD card, so wonder if that's the problem - I don't have space to run them from the phone as that storage is very limited on the Desire...

Any ideas if there's a setting of some sort that I can change so that it keeps my details?

Yes, it is likely to be the problem. I suppose it's a hack of yours if these apps are on SD rather than internal memory.

As the Android SDK mentions1, applications that use Service, AccountManager and Widget shoudl not be installed on SD card. The Facebook app has an AccountManager, a widget and a Service.


Google account doesn't accept app password While setting up a Google account on a Cyanogenmod 12 mobile phone, the app specific password that I generated is not accepted, but my real password is accepted.
Since I have enabled two factor authentication, entering my real password would be bad because -

This is phone will have the same number to which Google sends 2FA codes. Storing the password on the same device as the one getting 2FA codes defeats the point of 2FA.

Is it possible to set up a Google account with app specific passwords only?

Cyanogen OS version 12.0-YNG1TBS103
Android version 5.0.2

Steps to repro

Go to Settings -> Accounts -> Add account -> Google account
Enter email
Go to https://security.google.com/settings/security/apppasswords using another device
Generate an app password with other(custom name) option.
Type the generated passcode on phone.

The passcode is rejected as invalid

Typing my actual account password succeeds - It sends the 2FA code to the set phone number(currently, this phone has no SIM)

Apparently, Lollipop supports 2-step verification natively so it doesn't accept app passwords any more (as they are infinitely less secure). If you don't have access to authenticator app, change the associated phone number to the one you are using now and security token can be automatically verified via SMS.


Galaxy S2 device memory filled I have a Galaxy S2 (4.1.2), with 2 GB for app storage, and 16 GB of storage. I have no external SD card and no desire to buy one.

The 2 GB app storage is now almost filled, and I can't find a way to move apps to the 16GB internal storage. My internal storage is almost empty, but I simply can't utilize it. The move app to SD option does not work because the internal storage is not recognized as SD.

How can I deal with this?

Type in keypad *#9900# option 2 delete dumpstate logcat it really works and gets rid of that annoying disk thing at top of notifications and can download again
Hope it helps. I had the same issue and this worked.


Where did all these photos and videos come from? My phone's memory is so full that it won't let me take or download pictures anymore. Also cannot download almost any app due to low memory. When I look at memory usage, most of it is used for photos and videos. I plugged my phone into my computer and imported all photos and videos. I then would delete a bunch of them off my phone because they were now saved somewhere else. When I looked at what had been imported to my computer I saw hundreds of photos I have never taken or viewed before. Most of them were of people I know but have never taken pictures of. Also there were several video advertisements for brands like Colgate, McDonalds, and Gucci. I cannot find these photos or videos on my phone, or else I would delete them, they are almost certainly the reason for my phones low memory. All I can figure is that they must have come from Facebook. How do I find and delete these photos/videos, and also how do I prevent them from being saved to my phone?

Any help with this is much appreciated!

It sounds like your facebook app is keeping a cache somewhere on your phone. Using an app like SD Maid, or any other phone cleaning application that searches for and deletes cache files such as this should solve this.


what is com.sec.android.providers.downloads? I happened to notice this app(?) had access to virtually everything on my Galaxy S3.
Seemed a little strange so I googled it trying to find out exactly what it was for.
I never did find what I was looking for but I did find several pages of complaints about its effect on battery life.
I would guess it has to do with the download-manager but that's just a WAG.

Can someone tell me what it's for?

Roy

all providers.downloads does is act as one of many content provider aps included in the android stock system to act as a security feature so that apps cant directly access other apps but have to use content provider apps to exchange data between eachother.
 we all know apps by default cant access other applictions data.
      Thats where Content Providers come in to play, acting as a buffer between your internal apps and data and all the other 3rd party apps which have potential to be rouge/malicious.
      Without this bouncer there would be no telling how many insecure transactions would occur between our devices and attackers in the free world global enviroment we exist in today.

The app EZ Disabler pro version states this discription about

com.sec.android.
providers.security

"this package is a core sytem service that handles secure reads/writes to/from the database in your device. It keeps rouge apps for accessing data in your device."

The android developers site has this info posted about content providers and their functions.

android.provider

Provides convenience classes to access the content providers supplied by Android.

Android ships with a number of content providers that store common data such as contact informations, calendar information, and media files. These classes provide simplified methods of adding or retrieving data from these content providers.

For information about how to use a content provider, see the Content Providers developer guide. link to guide below..
https://developer.android.com/guide/topics/providers/content-providers.html

By the way..ehem..
     infosec is the bomb!
         Check it out my geeks!

a technique for exploiting applictions involving decompiling apk files and checking out the contents of its AndroidManifest.xml file for any registered content providers as well as the smali files for all uris used in the app.

http://resources.infosecinstitute.com/android-hacking-security-part-2-content-provider-leakage/
        and below is a link to the sample apk they made for the training example on infosecs site.


Where is the Widget menu in Kit Kat? I've got a Nexus 5 running Android 4.4.4 and I've downloaded a few Widgets, but if I open up the main app menu, I have no Widgets tab at the top and cannot find them.

I've tried rebooting, as recommended in the description on the play store but that didn't fix it.

Google seems to only offer app-specific advice and I can't find anything for the one I'm most interested in.

Here's a screenshot:

I figured it out; I forgot you can hold down on a blank spot on the 'desktop' and it'll pull up a new screen for Widgets, Wallpapers, or Settings. I was able to access it there.


Why apps move from SD card to phone memory after upgrade and how to avoid it? After upgrade of any app - apps move back from SD Card to phone memory.
After that, to save phone memory, I have to move upgraded app back to SD card.

Is any possibility to avoid this because it is very annoying?

I have Android 5.0.2 on Motorola E second gen phone.

It is an existing behavior found in Lollipop. (May be an marketing strategy to make you buy expensive internal storage phones)

According to Lollipop the phone internal storage is referred as  SDCard  and removable SDCard as EXTERNALSD.

The apps is designed to be reside in SDCard (to support phone without external storage ) and hence the apps are installed back to internal storage.

This is fixed in Marshmallow were the EXTERNALSD can be configured to be an InternalStorage(SDCard).

So you can wait for an Marshmallow update for the device.


Why does accepting Calendar invites open a browser? Can I prevent it? I'm on an unrooted Galaxy Nexus, and using stock Gmail and Calendar apps on Android 4.1.1. But I am using Chrome rather than the stock browser.

When I get a invite from a Gmail user to my Gmail account, it appears with "Yes/Maybe/No" option links and an invite.ics attachment (which doesn't do anything: "No app can open this attachment for viewing").

Clicking one of "Yes/Maybe/No", whether I have already done so or not,  opens Chrome with a warning "You are trying to use the desktop version of Google Calendar from a mobile browser [...] use the mobile version instead?"

If I click "OK" I get the mobile browser version of Calendar, but it's a view of today's appointments. There is no mention of the event I've responded to or any confirmation message about my response having been registered.
If I click "Cancel" I get the desktop version of Calendar showing the details of the appointment and a messaging confirming the response I have sent.

In either case, the event is in my calendar; the invite remains in my inbox.

I guess the core of my question is whether I can prevent the browser opening at all - surely the mechanics of accepting invites should be performed in the Calendar app and thus work offline?

Note that this question is about invites from Google Calendar and not about handling .ics files in general.

There is very little you can do! The calendar application is wired up to trigger a open intent to the web browser to accept the invites, its written up in the package's manifest.

<activity android:name="GoogleCalendarUriIntentFilter" android:label="@string/app_label"
    android:theme="@android:style/Theme.NoDisplay"
    android:configChanges="orientation|keyboardHidden">

    <intent-filter
       android:priority="50">
       <action android:name="android.intent.action.VIEW" />
       <category android:name="android.intent.category.DEFAULT" />
       <category android:name="android.intent.category.BROWSABLE" />
       <data android:scheme="http" android:host="www.google.com" android:pathPrefix="/calendar/event" />
       <data android:scheme="https" android:host="www.google.com" android:pathPrefix="/calendar/event" />
       <data android:scheme="http" android:host="www.google.com" android:pathPattern="/calendar/hosted/.*/event" />
       <data android:scheme="https" android:host="www.google.com" android:pathPattern="/calendar/hosted/.*/event" />
    </intent-filter>
</activity>

Source: packages/apps/Calendar/src/com/android/calendar/GoogleCalendarUriIntentFilter.java


What is the difference between these two persistent notifications? I use two apps which require a persistent notification: (1) the Pebble Smartwatch app, and (2) Tasker. When I pull down the notification bar (see screenshot), I see both notifications.  However, only the Tasker one shows an icon when the notification bar is hidden, and likewise only Tasker shows a slot on my lock screen.

What is the difference between how these apps are showing their persistent notification?  From my understanding, if an app wants to run continuously, it MUST put a persistent notification on the notification bar. But somehow the Pebble app is not requiring an icon or displaying on my lock screen.

These behaviors can be controlled when an app builds a notification.

  From my understanding, if an app wants to run continuously, it MUST put a persistent notification on the notification bar

You're pretty much correct until the "notification bar" part. Both of notifications are indeed persistent (i.e. on-going, cannot be removed manually by user). Take note that there isn't a button on notification drawer for clearing all non-persistent notifications.

The difference, however, is the notification's priority. This setting is independent of whether the notification is persistent or not. Usually, persistent notifications are set at least to default priority to "keep users informed about an ongoing process in the background". However, if a notification is set to minimum priority, it won't appear on notification bar.

  Priority: MIN

  Use for contextual or background information such as weather information or contextual location information. Minimum-priority notifications do not appear in the status bar. The user discovers them on expanding the notification shade.

Another example is Google Now's notification for weather & traffic, but it isn't persistent.


Access synced Exchange calendar from desktop browser I know this is a bit tangential, but bear with me.
The Exchange calendar sync works perfectly for me, however, it would be AWESOME if I could see my exchange calendar with my other Google calendars in the desktop browser, just like it does on my phone. :) It looks like the Exchange Sync uses Google Calendar to merge both my personal Google calendar and my business exchange calendar on the phone.

Any way to recreate this on the desktop browser and see all my calendars together? I have a rooted Nexus One running the stock Froyo 2.2 rom.

If you have Outlook 2007, you can use the built-in Publish My Calendar feature to publish it to Microsoft servers, which will make the ICS feed available to add as a calendar in Google Calendar.

In Outlook 2007, go to the Calendar section and click the "Publish My Calendar..." link. Fill out that dialog and it will start syncing.

If necessary, feel free to adjust which calendars are shown in your Android device via the Calendar app's Option menu item "Calendars".


Google Keyboard vs Android Keyboard (AOSP) Is there a difference between Google Keyboard, which was recently release on the Play Store, and the Android Keyboard (AOSP) in the open source project?

Update: I need the difference from a feature prospective

It's exactly the same keyboard as the Android Keyboard from Jelly Bean (4.2) as I read.
See i.e. this article.

Rereading exactly points out that this app should expose the keyboard which was only installed on Nexus phones with Android 4.2 to prior android version (4.0+) on other smartphones and tablets including features like "swiping" and gestures.

There is another article on Androidcentral


How can I tell which account contacts have synced from? I've just noticed that I've suddenly had 7 contacts appear in my list all called "Me Mob" all with my mobile's phone number as the only entry. I don't know when they appeared, but I don't think they've been there for long.

When I open these contacts up, I can see a Joined Contacts section with a generic icon and no details, clicking that just says "Unknown" "Me Mob".

Is there any way that I can tell where all of these have come from?

Galaxy S, running stock Samsung 2.2.1 OS in case it matters.

In the Contacts app, under Menu | Display options I can select which of my accounts contacts' to display (and, in the case of Gmail contacts, which groups to display). Assuming Samsung hasn't monkeyed with that, you should be able to determine which account they're from by process of elimination.


Tablet idle issue in New Nexus 7 (2013) Lately my new nexus 7 table's battery has been draining incredibly fast during idle. I noticed that the "tablet idle" item in the battery life menu is the highest out of all of them (sometimes up to 34%). Any idea why this could be happening? Additionally, I know what "tablet idle" means but what technical components actually summarize to that battery level.

Tablet idle makes up the battery usage that isn't tied to a specific app or function. The less you actually turn the tablet on, the higher tablet idle will be.

Your battery usage stats are a percentage of a percentage. Think about this. If your tablet battery is at 50% and tablet idle is 34%, this means that 34% of 50% of your battery was used by the tablet sitting idle and just remaining powered on. So this would equate to 17% of your battery actually being used by the tablet sitting idle. Now let's change this example. Now your battery is at 90%, but tablet idle is showing 65%. This means that only 6.5% of the 10% used was used on tablet idle.

Tablet idle should never be something to worry about. If it is high, that means it wasn't actively used much and if it is low, it was used a lot. It really is just a space filler that is comprised of everything that isn't attributable to a specific app or function of the tablet (aka everything else in the battery stats list).

If it is draining a lot more than usual in idle, it isn't tablet idle doing it. It would be the usual suspects. An app or the battery itself.


My phone is giving inaccurate readings of battery level I have a Huawei u8160 running Cyanogenmod 7.2 .

my phone is giving inaccurate readings of the battery charge level (e.g one day morning it was 33 that day evening it became 34 without touching the phone)

is that an indicator of malfunctioning battery,or the sensor is reporting false readings?

It is not very uncommon for Cyanogen to have some problem with battery status reading. Things you can try:

Turn off the phone and take off the battery for a while;
Let the battery fully drain and then reset the battery calibration on clockwork recovery;
Try an app like this.

Note: I'm not sure why, but when I changed my battery visualization to a percentage view instead of the default (in the Cyanogen configuratons), the battery lectures of my smartphone started to give me wrong readings. When I switched back, it got back to normal after a fully recharging.


Apparent duplicate folders/files accumulating on external SD card First, some background. I have a GoClever Orion 785 Android (Jellybean 4.2.2) tablet which I have been happily using for over a year. I am using an external SD card which I use to store data (music/pictures/docs/pdf). For cutting/pasting files I use the ES File Explorer app that was supplied with the tablet. I periodically connect it to my laptop via the USB lead to back up the data. After over a years' use I noticed it becoming sluggish and more unstable, so I performed a factory reset and reinstalled/updated the apps I use most. There was a marked improvement.

Now, when I connect to my laptop, and view the external SD card with Windows Explorer prior to backing up, I see that all the folders are shown multiple times (around a dozen or so copies). Looking in these folders, the files icons primarily show as blank - as if the file type is not recognised. It is almost as if these are archived backup versions. Consequently, it takes some time to locate the genuine folder for backup purposes. These duplicate folders do not show up when viewed within Android using ES File Explorer. However, most of the images shown in the Gallery are blank - presumably picking up the file copies. The same occurs when viewing the music files within ES File Explorer - but they cannot be deleted within that app.

As all the files were backed up, I decided to try deleting the "archive" folders within Windows Explorer. Not a success, as only a handful of blank images/videos at all are visible within Gallery, and none at all within ES File Explorer on Android. I note the latter now has a Recycle bin, but I have been emptying this, and I have since tried disabling this option.

So - my question is, can anybody suggest what is causing these duplicates, and how can I stop it recurring? Hopefully before I start accumulating more data.

Files are only showing on your laptop but not in ES File Explorer because those file names have a dot before their names such as .Aptoide, .wynk, etc. This means that they are hidden files and explains why they are not showing.
If you want to see them, go to ES File Explorer and enable `show hidden files in the left toolbar.


Encrypted Android phone - sharing files I am using Sony Xperia M with Android version 4.3 (Jelly bean) with official update.

Android allows me to encrypt my files. You can get this menu: Settings --> Security --> Encrypt phone. Now I want to know, if I do this process, how is with sharing files by Bluetooth, e-mail or wi-fi?

It will share files fine.

Its more for security if your phone was stolen etc. Once you have encrypted your phone, you will be prompted for the password to 'decrypt storage' everytime you turn the phone on. Once the phone is on, the files are accessible and readable. However if your phone was lost / stolen and was restarted, the data on there would be completely useless without your password.


Where to do I find my saved book files on my root device? I have a book app that downloads book files from the Internet. It stops working and the developer wants me to root my phone and find those downloaded files for him so that he can debug.

I've rooted my device and have ssh onto my rooted device. I made myself a root by "su" so there is nothing that I can't access. The problem is that I have no idea where those book files are saved physically. It must be somewhere because I can view those books on my phone.

It would be good if I can use the "find ..." unix command, but my Android device doesn't have the "find" installed.

Thanks.

First go to settings->Apps->Your app->move to SD Card. Then follow these steps:

First download ES File explorer
Search for the app's folder on the SD card.
If you cannot, go to the Android folder->DATA->Your app.
                  OR
go to Android->OBB->your app.

If you cannot find the folder, the developer ought to help you, especially since you are helping him.


Is there a way to remove everything in my Android phone Contacts and then transfer everything in Gmail contacts into the phone contacts? I make extensive use of GROUPS in my Gmail account.  For example, all medical contacts are stored in MEDICAL, restaurants in RESTAURANTS, etc.  When doing this I specifically do not have the group entry appear in MY CONTACTS.  This removes clutter from MY CONTACTS.  I have 97 entries in MY CONTACTS, and 300 entries among the groups that do not appear in MY CONTACTS.  Somewhere I COPIED my Gmail to my phone contacts and to my surprise all the group entries from Gmail now also appear in MY CONTACTS on the phone which results in 397 phone contacts (97 + 300).  I would like the phone contacts to be exactly as they appear in the Gmail contacts.

I have tried Settings > More > Applications > Go right to all apps > scroll down to "Contacts Storage" Then clicked on contacts storage > Click Clear Data but that did not do the job.

If you only want a particular contact group to appear in the contacts app on your phone, then you can achieve it pretty easily by using the Contacts to display option in your Contacts app.

Open Contacts app.
Tap on the 3 dots at top right, choose Settings.
Select Contacts to display > customize.
Expand your Google account and uncheck all the other groups and keep only My Contacts.

Do note that when performing a search within contacts, it will still search within all the available contacts. But under normal display it will only show your 97 contacts stored under My Contacts group.


Is it possible to add a driver to my kernel without flashing a new kernel? Is it possible to load a driver as a kernel module into my Galaxy S10, Magisk rooted without having to build a new kernel and flash it?

Drivers are built as kernel modules i.e. .ko files which can be loaded with modprobe but for that you have to rebuild kernel with the required module, or it should be compatible with installed kernel if built separately.

The installed kernel should be built with CONFIG_MODULES=y in order to load modules. Make sure the version of kernel source code tree or that of header files match with installed kernel version. Otherwise dependencies may break resulting in Unknown symbol in module type of errors. Also, if kernel is signed (CONFIG_MODULE_SIG_FORCE), modules must be signed with the same key to avoid required keys not available error.


Android connected to Car system How can connect my android app to car system for example to get "Level fuel" information or any others info!

All modern cars have CPU which measures and controls few parameters of its engine.  These CPU(s) will have an interface socket (looks like SCART connector) with which issues are diagnosed at service center.  There is a special hardware which goes into this socket and can transmit engine parameters through Bluetooth.  Google Play Store has an app called Torque which when installed in an Android phone, can receive such parameters and displays on the screen.

I am not too sure whether the OBD device can detect fuel level, but it does sense a lot of other engine related parameters like HP torque etc.


built in command line pager/viewer like less? Without busybox or root access Sometimes i investigate foreign phones, where i can't root or install any Apps.

But i want to examine the filesystem via adb shell, and view some text-files. Like i usually do with a *nix-shell: with the less or the more command.

Both are absent in the shell, that i can access with adb shell.

My workaround until now is using the linux tool screen in conjunction with the adb-shell-command cat. (C-a Esc to scroll, '/' to search, Esc Esc to quit Copy-mode)

I know this question is a bit old. But I run into exactly the same problem and would like to share my solutions.

1st solution

Check if toybox is installed. If you are lucky, ls | toybox more may work.

2nd solution

However, I am not satisfied with the first solution, since more does not support going backwards. It turns out that vim is installed. In this case, you can run ls | vim -.

3rd solution

If you use emacs, calling adb shell in shell or eshell solves the problem. This is more or less the same as your screen workaround.


Can't remove stolen phone from account So I had an Android phone stolen - nearly two years ago now. When it was taken, I immediately reset my Google account password (and most others). I have 2-factor auth on my Google account. I have changed my password multiple times since then too.

However, today, I was doing my Google security review, and it's still showing up on my account, and still showing up as logging in - recently!

What?!!?

I can't remove the device from my account - it is deselected in Google Play Devices. It also does not show up in Android Device Manager (and never has from the moment it was stolen) - even when I enable it again in Google Play Devices.

What is going on here?

This may explain : from Google Play help forum

Joe Ellet in his post dated 3/18/15 says

  There are two lists. One is your active devices. That one should be up-to-date.
  The other is the record of all devices you have used to make a purchase on Google Play. That list has nothing to do with your current inventory and cannot be used for any sort of malicious purpose. It is kept because all Play Store purchases are kept as transactions and every transaction includes the device it was made from. That is to protect you so that if you bought something at a reduced price or free you can later download the same content onto a new device without having to pay for it again.

  Bottom line, don't worry about the second list.

The distinction between two lists seems to have been eroded, and now you  have a single list showing both. Can't find a reference to this though.

I would think that your stolen device (or my sold device) figures on the list for Google Play transaction audit as mentioned above. The fact that you can't select to delete this device further adds weight to this

Edit: As a normal practice, I changed my  Google account password about 10 days ago. I just checked Sign in and Security page of my account and do not see my sold device accessing my account, though Google shows it is connected to my account

As a next  step to confirm that my old phone was not accessing my account, I went to the Android Device Manager and saw that only my current phone is registered there. If my old or stolen phone was able to access my account, surely I should be able to wipe it! This should put to rest your concern that your stolen phone is accessing your account

An interesting read that explains how Google interacts with devices based on their ID is Will wipe request from Android Device Manager affect replacement device?


Arc Welder app: Launch App, Test, and Download Zip buttons missing My Arc Welder app has been broken for some time now I can't find any other questions on how to fix this so I thought I would ask myself. my arc welder is missing the "Launch App", "Download Zip", and "test" buttons. it has been broken for some time now. it has worked in the past but I don't know exactly when it stopped working. I don't believe that it became broken from an update to the app because I've seen other people that have it working and I haven't done anything to anything that I could think of related to the app except I have tried a lot of flags in "Chrome://flags" but because none of those have worked I have restored to default and its still broken.

I had the same problem. Searched the net and landed in this page. No solution.

I started fiddling around. Tried hitting the TAB button. Success. As the focus moves from the last visible box, the buttons appear.

Have fun.


fastboot does not discover my device I want to connect my device (Omega T107) in fastboot mode.

I reboot in bootloader mode (adb reboot bootloader)
Screen is black(0 light comming out of it) computer can discover it and driver installs properly
fastboot devices returns empty list

What am I doing wrong ?

fastboot is just one of the protocols to talk to the bootloader. Some manufacturers choose to support it (e.g. Google, HTC), others choose to make their bootloaders talk some other protocol (e.g. Samsung).

After googling a little bit, I don’t think that the bootloader of your device supports fastboot (at least, there are no mentions of this). Most likely, you will need a special tool from your manufacturer that will be able to talk to your device in bootloader mode.


Please help me for android recovery I am using Symphony xplorer w35.

I wanted to install a custom ROM on it, so I backed up the the original ROM (normally, without using CWM recovery). After that, I installed CWM recovery mode on it. Then, I wiped my data & cache and installed a custom ROM, but I forgot to backup the previous ROM using CWM! Now, when I wanted to restore the previous ROM, it is impossible!

The previous backup is a .backup file & CWM can't restore it. I have to restore it via normal recovery mode, but whenever I turn on recovery mode, CWM mode automatically comes there! How to restore my previous ROM?

Here you can download the stock ROM for your device: Stock ROM for Symphony Xplorer W35

Instructions:

How to Flash

Step 1: Download and extract the stock firmware on your computer.

Step 2: After extracting you will find the SP Flash Tool, Driver and instruction manual.

Step 3: Install the USB Drivers (skip if drivers are already installed).

Step 4: Open the SP Flash Tool and load the Scatter File from the firmware folder.

Step 5: Connect your Smartphone to the computer using the USB Driver.

Step 6: Click on Upgrade / Download Button in the SP Flash Tool to Begin the Flashing.

Step 7: Green Ring will appear at the end of successful Flash.

For more detailed instruction with images: Detailed Instructions with Images

Source: http://xdafirmware.com/symphony-w35

Hope my answer helps!


Reload Icons on Android 6.0 I am running Android 6.0 with CM13. I installed a theme from the play store which changed my icons. Now even after uninstalling that theme and selecting my default android theme I don't get back my original icons. Is there a way to make android reload its icons to revert to the original icons.

Disabling the affected app in settings and then enabling them brought back the original icon:

Go to Settings › Apps
Select the "All" tab
Scroll to the app showing up with the wrong icon on your homescreen/drawer
Tap its name to open the app-info
Tap the "Disable" button, which then changes to "Enable"
Tap "Enable" again

Done. Disabling the app cleared its icon from the launcher (cache?), enabling forced it to load the original one. What I did not try but maybe would solve the issue as well is clearing the cache from the launcher, then restart it (or reboot the device).


Videos are directly streaming onto my default player. Want to open in Opera so I can download it I have been using Android for the last week.

I have Opera for browsing. I  download videos from a website directly thru Opera. While downloading it asks me whether to open the video in Opera or default video player of my mobile.

Accidentally I once clicked on the "make it default" option and it was directly streamed to the video player. After this it never open in my Opera to download.

Because of this I can't download videos into my mobile. If I try to search the name of the video player I cant find it. And please help to restore as it was before.

You shouldn't need to uninstall anything. You just need to clear the default.

Go into your settings and the app manager. Find the default video player. (You'll probably have to change your view from "Downloaded" to "All" in order to find it. I expect it's called "Video" or similar.) In the settings for the app should be a button labeled "Clear defaults". Tap that and remove the existing default settings for the app.

Now when you go back into Opera and click a link it should prompt you again. Be careful about that "make it the default" button.


Receive VoIP call via Google Voice => IPKall => Sip2Sip => Android? I'm trying to setup VoIP calling to/from my Android phone.

I'm currently working on the incoming call part of the equation. To try to isolate the various parts, I started with the "IPKall => Sip2Sip" part of the equation, and confirmed that calling the IPKall phone number results in a recorded incoming call on Sip2Sip.

I then added "Sip2Sip" as a SIP provider on my Android phone, and found that dialing the IPKall number results in the Android phone ringing.

However, and this is where I need help, even though it is ringing, when I go to answer the call, I am unable to pick up the call. Any ideas on how to fix this?

Version of Android is 2.3 Gingerbread.

You can use sipdroid, released under GNU GPL v3, also available from Google Play Store and save yourself a lot of trouble.

  sipdroid is a free SIP/VoIP client for Android.

As for a SIP provider, Sipgate for example gives good results for both outgoing and incoming calls.

From version 2.0

  For Google™ Voice users, Sipdroid can now create a new, free PBXes account that is automatically linked to an existing Google™ Voice account. The new feature requires Android 2.0, or above, and Google's app connected to your Voice account.

Download the current version Sipdroid-2.7.apk available since May 21, 2012.

SHA1 Checksum:   a261e14ba592c8a86e8d0f07374108c6d768e1d4


Does /dev/block/mmcblk0 include an external sd card that has been formatted as internal? I am performing a backup using the following command with a su shell:

dd if=/dev/block/mmcblk0 of=/mnt/expand/ee131623-1634-25d1-9f9f-902b68eceaee/mmcblk0.img"

And I was wondering if this would fail to complete as it would include the backup in the backup?

Is Internally formatted external sd cards included in mmcblk0?

No. Internally formatted external sd card is not included in mmcblk0. dd dumps files, in your case the block device file mmcblk0 which includes all partitions, GUID partition table (GPT) and any free space in between partitions.

External SD card is a separate flash memory chip, so exposed by a different block device available at path something like /dev/block/mmcblk1 or /dev/block/sda.


Can't access my phone memory suddenly after using SD card as internal memory A few weeks ago I integrated my SD card to use as phone memory. Everything was fine until a couple of days ago.

All of a sudden I saw the "insert SD card" notice appear on the notification bar. I open the back cover but the SD card looked like it was in place. I remove it and insert it back and the notice disappears. But then I notice that when I go to file explorer (FX) to access my files, it says "Access was denied". I can't access anything that is on my phone memory, although the apps are working. I guess system files are OK, but everything else is not.

My phone is rooted so I tried to access the files through TWRP but I can only see system folders.

Phone is a Moto C plus. Nougat.

You can recover some files from corrupted MicroSD Card. adoptable-storage is encrypted, it requires the encryption key from the source device. In your case you are lucky your device is rooted

insert MicroSD Card into PC Card Reader. figure out which one is the correct block device (/dev/sdc) with sudo blkid

mount your hard drive (/media/xubuntu/404CCE454CCE3606). check free disk space with df -h

clone 1:1 disk image of the entire MicroSD Card with gddrescue
sudo -i
apt install gddrescue
cd /media/xubuntu/404CCE454CCE3606
ddrescue -n -b512 -r3 /dev/sdc sd.img gddrescue_sd_img.log

install android platform-tools
apt install android-tools-adb android-tools-fastboot

connect your device in recovery mode (TWRP)

get the encryption key file expand_5f5e697154132edfaa6fca7ac23cde2a.key (root access required)
adb devices
adb pull /data/misc/vold

read the 16-bytes hex encryption key (ae126af293501cd130db0637372e8911)
ls vold
hexdump -v vold/expand_5f5e697154132edfaa6fca7ac23cde2a.key

map the image file to create loop devices
kpartx -av /media/xubuntu/404CCE454CCE3606/sd.img

get partition size (62299103) and decrypt the 2nd partition (/dev/mapper/loop1p2)
blockdev --getsize /dev/mapper/loop1p2
dmsetup create crypt1 --table "0 62299103 crypt aes-cbc-essiv:sha256 ae126af293501cd130db0637372e8911 0 /dev/mapper/loop1p2 0"

when successfull a new (decrypted) block device /dev/mapper/crypt1 (ext4) will created

mount the partition (skip this step Xubuntu will auto mount)
mkdir /media/xubuntu/fa6c4c4c-846e-4c6f-8c02-e93cf5ebf448
mount -t ext4 -o ro,noexec,noload /dev/mapper/crypt1 /media/xubuntu/fa6c4c4c-846e-4c6f-8c02-e93cf5ebf448

Open new terminal (CTRL + ALT + T) and start File Manager (root session) from command line:
sudo thunar /media/xubuntu/fa6c4c4c-846e-4c6f-8c02-e93cf5ebf448

in File Manager enable - View - Show Hidden Files
you should see some directories
app
local
lost+found
media
misc
user
user_de

you can now browse media directory for Internal Storage and copy your Pictures to your hard drive

Be aware you can't copy app directory to windows hard drive, because linux permissions and file names aren't compatible with NTFS file system type

however, you can create tarball archive to preserve the whole partition content including all metadata
 sudo -i
 cd /media/xubuntu/fa6c4c4c-846e-4c6f-8c02-e93cf5ebf448
 tar --selinux --xattrs -H posix --numeric-owner -vcp * | gzip -cn > /media/xubuntu/404CCE454CCE3606/sdcard.tar.gz

sdcard.tar.gz can be unpacked with 7-zip in windows, or restored from twrp command line with GNU tar


Galaxy S7 Edge - Change USB Mode in Phone that Will Not Boot I've done a few hours worth of research and have been unable to find a clear answer. Hoping something in the community here might be able to help:

Verizon Galaxy S7 Edge (Oreo with latest Verizon updates) randomly got itself stuck in a boot loop after plugging in to charge one night.
Boots to lock screen just before loading "swipe unlock dots" gives an error message saying "Setup wizard has stopped" with an option to "Close App" and then reboots within a few seconds.
Stock OS, no root, no custom recovery etc.
Care mostly about trying to retrieve some pictures and documents more than anything else.
I THINK (99% sure) I have USB debugging enabled but can't get far enough into phone to confirm.

Things I've tried:

Plugging USB into computer shows up as CD-Rom drive (suggests that USB mode isn't set to MTP which I think might have been changed on me in the last OS or security Update)
Safe mode/boot results in same bootloop issue
Cleared system cache from Debug mode, no change.
Running "adb devices" shows device attached (momentarily prior to rebooting)
Initially thought it was a problem with the security module so I (perhaps in a poor decision) ran the command "locksettings clear --old xxxx" which I (unfortunately don't recall) must have been preceded by an "adb shell" command.
This actually WORKED as I must have timed it just right to go through in the 2 secs prior to the phone rebooting.

Current State:

All efforts to repeat the same ADB commands as before show up as "Device offline" and I can't seem to get more than that.
Bootloop continues.
Can access Debug modes and Download modes successfully, but don't know what to do here.

Ultimate questions:

Is there an ADB command to change the USB mode from Charge Only to MTP that I can try to issue and maybe get the phone to recognize quickly prior to rebooting?
I'm relatively new to the ADB world, so am I going down the wrong path here? Should I be trying something else?
What other options might I have (BESIDES a full restore and loss of all data), or am I pretty much done for?

Appreciate anyone that can take the time to provide some feedback. I'd be much obliged and sincerely thankful.

SAD UPDATE:
I brought the phone to my local "ubreakifix" store - the service that Samsung specifically refers customers to for technical/repair issues.   They attempted to do something (update software or something along those lines, but promising not to erase data).  Unfortunately, whatever they did seems to have now DISABLED USB Debugging.  I'm willing to try any other suggestions that those more knowledgeable than me might suggest, but I'm quickly losing hope.

Did you try ADB pull? If you know the folder your files are in, you can try to pull them out. (/sdcard is the name of Internal Storage folder) If it works you should see the file you pulled in the ADB directory.

adb pull /sdcard/your-files

Also, this can be an issue related to the Setup Wizard app. If that is the case, the following ADB command should work.

adb shell pm hide com.google.android.setupwizard

If it works you may spot some errors and missing features, but MTP should work. You might have to factory reset or reflash (not sure if that is possible on Verizon devices) to fix the errors.

You can try contacting Samsung and Verizon customer support, and if you prove the device ownership to them (the bill or invoice should do) they might use their debug protocols to recover your files, but I'm not sure about this as I never tried it.

If these doesn't work, I don't see any other methods unfortunately. (@esQmo_ It is currently not possible to flash TWRP in a Verizon S7 Edge because there is no known method to unlock the bootloader)

To answer your ultimate questions:

1:
There is a way to switch USB mode from ADB, but it requires root. Also, I'm surprised that your device shows up in ADB. It shouldn't if the device is in charge only mode. My guess is that your device is in MTP mode, but it doesn't show the files because of a screen lock or something, and your OS interprets it as a CD ROM Drive.

2:
Not at all. The only way you may have a shot at recovering this is ADB. You can't do anything in Download or Recovery modes (I think you referred to Recovery as Debug?) because it will compromise data security.

3:
The options I mentioned above are the only ones I could think of.

Also, I suggest waiting for any other answers before resetting or reflashing, as they might have methods I missed. Good luck!


How can I delete stickers on viber? How can I delete downloaded stickers on viber? I downloaded there a few, and the last one I wanted to download was not possible because there was not enough room in my storage space (still isn't). Now, it says every single time when I open my phone,

  there is not enough room in the storage space available to complete this action.  Please clear some space and try again.

And I am not even downloading anything, it keeps doing it itself. Whatever I do, the window pops up and again, I have to close it.   What can I do?

Yes, Go to your profile in viber "You"
At the bottom of page, Go to "market sticker"
At the top right corner, you see "settings"
select it, & you can "on/off" your stickers.
It's as simple! :)


Navigating Android: How To Go Back To Previous Screen? I would like to know how to return to previous screen on Android. Not just go back. I usually tap "Back" button on smartphone but often it just exists or takes me back to home when it should have taken me to previous screen.

This is something of an oversimplification, but the simple answer is: you can't.

What makes this an oversimplification? Well, it's because it depends on how a given app is implemented. Android applications are based around the concept of an Activity, which is described in the development documentation as:

  An activity is a single, focused thing that the user can do.

When a new Activity is launched it is placed onto a system-wide "Activity stack" at the top of the stack (for anyone unfamiliar, see Stack (data structure)). When the back button is pressed, the current Activity (at the top of the stack) is finished and removed from the stack, causing the previous one (beneath it on the stack) to be brought to the foreground. This pop/bring-to-foreground behavior continues as you keep pressing the back button until you land at HOME, which is the start of the stack. From here, you cannot go "back" any further.

Now, how does this apply to apps? In many applications, an Activity represents one, individual screen. When you advance to a new screen, then, a new Activity is actually created for the screen and pushed onto the stack on top of the one that created it. In apps that use this design, hitting back will, in fact, bring you to the previous screen. The reason should be fairly self-evident: the screen you are currently viewing is on the top of the stack, the previous screen sits below it (since they are each Activities themselves). Thus, hitting back removes the current screen from the stack, finishes it, and then loads the previous one.

This is not a required model, however. You can have an Activity that contains multiple layouts and screens. We have used this in my office to, for example, create a configuration wizard of sorts. The idea is that hitting back should simply exit the wizard, and there are "Back" and "Next" buttons on the screen itself to provide navigation. Thus, even if you are on the third screen of the wizard, you have not created any additional Activities, so hitting the back button (hard button) will take you out of the "Wizard Activity" and back to the "Menu Activity".

Further, the behavior of the back button can be overridden by an application of they so choose. It simply calls a method named onBackPressed(), which performs the default behavior of going backwards on the Activity stack. However, if there is an overridden implementation of onBackPressed() in the current Activity, that will be executed instead.

So to sum up: the idea that the back button goes back to the previous "screen" is not guaranteed at all. The hard back button deals with Activities only, which are often "screens" to the user, but aren't necessarily, and are in no way required to be. There is no concept of "go back one screen" unless the app you are using says there is, but that functionality is still not guaranteed to be provided by the back button itself.

Further reading:

Activity and Task Design
Activity documentation


What determines if a phone will accept a microphone in the audio jack - hardware or software? I have two Android phones: a Nexus S and a T-mobile G2. I just bought a new set of headphones that have a built-in microphone. The Nexus S seems to recognize audio input but the T-mobile G2 does not. Is it a hardware limitation or because I am running Android 2.3.6 on my G2 and Icecream Sandwich on my Nexus S?

Most likely it's a difference in the TRRS layout of the headset.

For example, I have two "similar" headsets, one that came with Samsung Galaxy S and another that came with Samsung Galaxy Tab 10.1. Even though they look similar to the naked eye, if I use the Galaxy S one with my Tab, I only get mono sound due to a minor difference in the TRRS layout.

Sometimes I can remedy this by pulling the jack a little out of the plug, but it's very tricky to keep it in the correct position.

Anyway, you should test the jack with different headsets to verify that there's no physical damage to the jack.


Termux - Cannot run python file in tasker I am trying to run a python file in termux for use in tasker. The termux tasker plugin requires an executable (you can't just run a command like "python something.py"). However, running chmod +x results in operation not permitted.

Here is a screenshot of the top of my python file, pointing to the python I installed via "pkg install python".

Any help?

You need to grant Tasker root access in order to let it run the script.

The script requires an interpreter, as specified in its shebang line. To run the script "directly", Tasker still needs to execute the interpreter, the python3 binary. Since it's located in Termux's data directories, other apps can't access it without root access.


Is there any android support for bicycle sensors? I've seen some Bluetooth Smart (4.0) technology for tracking tire rotation rate (bike speed), peddle rotation rate (cadence) and even heart rate monitors.

Some heart rate monitors are supported by google mytracks now.

Anybody aware of support for cycling sensors?

Not aware, but a quick check in the playstore shows there are several bicycle apps supporting "ANT+ sensors" for speed and other things. Take e.g. a look at IpBike ANT+™ Bike Computer, ANT+ Bike Display Demo, IpBikeKey, and others. Starting point: ANT+ Playstore search :)

Please note that, as Ifor pointed out in his comment, that this requires special support from the Android device's hardware. Details can be found e.g. at the IpBike page.


How to configure the system to choose apps to open links/files in one click? Every time I want to open a link or a file it asks me to choose which app to use and whether I'd like to use this app always or this time only. I want to be given the choice every time so I always click "just once". Can I hide the "just once"/"always" choice so that I'd be able to choose apps in one click, always assuming "just once"?

PS: I have no idea what tags to add to this question, please add some if you do.

This depends on what version of Android you are running, I am not sure since when this has been possible (At least since Android 6.0) I myself am on Android Nougat (7.0) Developer Preview 5 with a Nexus 6P. And when I go to Settings -> Apps -> Top Right Gear there are a number of items I can choose from to select an app which will open by default. Also I can get a list of all my apps to see which ones open certain links and which do not. This is also in this settings menu. I can not however change which links they do or do not open.

Items I am able to change however include:

List item
Browser
Phone
And SMS app

Tl;dr: Depending on your Android version this is possible for some apps, but not for every link you will ever open on your Android device with the apps you have installed.


What is radio firmware? When installing a custom ROM onto a rooted Android device, they often recommend to upgrade the radio firmware.

What exactly is Android's radio firmware?

The radio firmware controls basic low-level functions like network connectivity, Wi-Fi, and GPS. For several years, though, "radio" means "baseband", and controls network connectivity aspects only, while WiFi and GPS are governed by OS drivers, like any other devices.

Usually upgrading your radio will not give you any new features but will fix connectivity issues, increase range or performance, decrease battery usage, or the like. Some ROM's require you to have the latest radio versions to work.

While a botched radio upgrade can brick your phone, the process is basically the same as upgrading your ROM. Just make sure not to unplug or power down your phone in the middle, make sure you trust the person who released the radio firmware, and try to read some comments or reviews.


How to upgrade my HTC desire 816 with lollipop How can I upgrade my HTC desire 816 to lollipop

HTC is planning to release an OTA for the Desire 816 sometime in the future, but if you can't wait, there is a port of CM12 for your device.
Prerequisites

WinDroid Universal Android Toolkit
Your phone (duh)
Windows XP or higher
USB Cable

Unlock Bootloader

Open the WinDroid Universal Android Toolkit.

Download and install the ADB drivers if it prompts you to.

Choose your device from the list. Wait a few moments while it downloads the correct recoveries.

Turn on your device, go to Settings > Developer Options and Enable USB Debugging and plug it in. If the toolkit does not recognize your device immediately, click on the Refresh button in the bottom right corner. Note: If you are on Android 4.2.2 or above, and you do not see a button for Developer Options, you will need to go to Settings > About > Software Information > More and quickly tap on Build number multiple times until it tells you that Developer Options has been unlocked.

Click the button labeled Get Token ID in the Unlock Bootloader box. This will reboot your device into bootloader, retrieve your Token ID, and open a text file that contains your Token ID and further instructions.

Now that you have your Token ID, you can now submit it to HTCDev, which should have opened in the background when the text file opened previously. If it did not open, you can open the link here. Please login to your account or create and activate one with a valid email address. Once you have done that, go back to the HTCDev link, scroll to the bottom of the page, and paste the Token ID you were given in the previous step. Click Submit, and wait for the email from HTC on the email you created the HTCDev account with.

Once you have received the email from HTCDev, download the attached file in the email named unlock_code.bin. This is the unlock token that can unlock your specific device's bootloader. Once it has successfully downloaded, click on the button named Unlock Bootloader in the bottom left corner. If your device is not already in bootloader, this will reboot your device into bootloader, and flash the unlock_code.bin file. A prompt will appear on your device confirming if you would like to unlock your bootloader. READ THE WARNING COMPLETELY! THIS WILL WIPE ALL OF THE DATA ON YOUR DEVICE!

Press the Volume Up button once, and press the Power button once to confirm the unlock. Your device will now restart.

Your device is now unlocked! You can now proceed to flash a custom recovery and gain permanent root in the next steps.
Flash Custom Recovery

Move to the next box on the right named Recovery and Root.
Download this custom recovery and put it into the folder named Recoveries within the Data folder created by the toolkit. (The file should be named recovery.img.) Now click on the TWRP button. Your device will then reboot into bootloader and flash your chosen recovery.

You are now rocking a custom recovery!
Gain Permanent Root

To gain root access, click the Gain Root button from the tool.

Flash Custom ROM

Download the latest version of CM12
Once you have fully downloaded the ROM you want to flash, find the boot.img file. It should be in the main directory. Copy it and save it somewhere else for later use. Do not extract or unpack the ROM folder, and ensure that you didn't delete the boot.img in the ROM folder itself.
Navigate to the box in top right named Flash. Click on Flash ROM, choose Yes if you are ready, and choose the ROM .zip file you previously downloaded. The ROM you chose will be pushed to your phone. It may take a few minutes depending on the size of the ROM, so please wait until the loading icon has stopped spinning. Once it has finished pushing the ROM, your phone will boot into Recovery. Once you have booted into Recovery, choose Install. Scroll down until you see the ROM .zip file you chose previously. Choose it, and flash it. Once it has finished flashing, go to the Reboot options within the Recovery, and reboot to Bootloader.

You now have CM12, Android 5.0 on your HTC Desire 816!

Adapted from this post


Device lose root access after installing SU .zip update from stock recovery I rooted my device, Samsung Galaxy S3, by connecting my device to pc via usb, and one-click-root with KingROOT application(on my pc). It automatically install a superuser on my device, but it's not the SuperSU that developed by Chainfire, instead, it's called Kingo Superuser. It works fine, but unfortunately an app did not get authorize by Kingo Superuser, it keep asking for authorization from SuperSU.
I don't know why SuperSU is asking for update even though I just install it from Play Store. Since I don't have a custom ROM, I choose Normal when asking for update method. Before I do that, I already install the .zip update file from recovery. (I saw 3 red lines, ...can't get signature..., something like that when I install it.) After it completed, device starts to reboot. The worst thing is after rebooting, my device lose root access :(
I searched for solution online about updating SuperSU and related stuff but I can't find a clear solution. So I came here, how do I update SU binary in a proper way, without a custom ROM.
Thanks.

SuperSU zip is an unsigned zip and can only be flagged through a custom recovery like cwm our twrp. You can search on xda for a custom recovery for your device. Use Kingroot to root your device again, use fastboot or ODIN from PC (refer to XDA  for proper device-specific instructions) or Flashify to flash a custom recovery image, then full unroot from Kinguser, and then flash the SuperSu zip from custom recovery.


Recover access to Samsung Galaxy Tab A after forgetting the pattern lock I have Samsung Galaxy Tab A and I put a pattern lock on it, but sometime later, I forgot the pattern.

I've looked it up and the only options to recover are to have the tablet off, but I can't turn the tablet off without the passcode.

How to recover access to it?

Push the down volume button and power button at the same time. It reset my tablet and I just reentered the pattern and it worked. I hope this helps.


Set/Get value of variables in '/proc/sys/net' using terminal consider these values which are stored in their respected files in this path: /proc/sys/net

/core/rmem_default 32768
/core/rmem_max 65536
/core/wmem_default 32768
/core/wmem_max 65536
/core/somaxconn 1024
/core/netdev_max_backlog 3000
/ipv4/tcp_rmem "4096 32768 65536"
/ipv4/tcp_wmem "4096 32768 65536"
/ipv4/tcp_low_latency 1
/ipv4/tcp_slow_start_after_idle 0
/ipv4/tcp_timestamps 1
/ipv4/tcp_tw_recycle 1
/ipv4/tcp_tw_reuse 1
/ipv4/tcp_window_scaling 1

How can we get and set above values using terminal?

You can get the values easily but can't set them without root access because the files are read-only (rw-r-r) for "others".

Get the values

Use D. Gibbs's answer to setup ADB.
Launch Terminal/cmd in PC and enter:

adb shell
find /proc/sys/net/ -type f | while read -r file; do echo $file $(cat $file); done

find will find the files under the location /proc/sys/net/. Tweak the location if the need arises.
while read will read each line of the previous output as a file,
do will allow execution of tasks (echo "filename" and show its value using cat),
done to complete the task.
Sources: 1, 2.

Snippet of output:

/proc/sys/net/core/dev_weight 64
/proc/sys/net/core/message_burst 10
/proc/sys/net/core/message_cost 5
/proc/sys/net/core/netdev_budget 300
/proc/sys/net/core/netdev_max_backlog 1000
/proc/sys/net/core/netdev_tstamp_prequeue 1

You may save the output into a file by using > <FILENAME> at the end of the step 2's last command.
Some files won't be saved or shown because of file permissions. In that case, root the device and repeat the aforesaid steps using su after adb shell command.

Set the values

Now that you've a table of file -> value, you can change the value using echo, provided that you've root access.

In the terminal, enter:

adb shell
su
echo <VALUE> > <FILE_PATH>

Change <VALUE> with the value you want to set and <FILEPATH> with the path of the file. E.g.

echo 46 > proc/sys/net/core/dev_weight

You can apply the steps in a terminal app on Android as well. Just make minor changes relevant to the environment, like > <FILENAME> in find command, and not using adb shell.