text:
Why is DoubleTwist launching and playing when I remove the headphones?
I can't figure this out.
It appears that if I'm using Google Listen, and I remove the headphones from the jack, Listen automatically pauses (which I expect). But then DoubleTwist launches, chooses an MP3 at random, and starts playing (which I don't want).
Further, it seems that if I pause Listen before I pull the jack, it doesn't happen.
I say "seems" because I'm having trouble getting consistent results.
The long-and-short of it is that DoubleTwist is launching and playing a track when I remove the headphone jack for no apparent reason.
Has anyone else encountered this? How can I stop it?
(Unrooted Motorola Droid, Android 2.2)

Of course, now I can't get it to do it. I hate irreproducible errors.

I can't reproduce it. It may have been fixed during an OS upgrade.
If it comes back I'll refresh the question.

Sounds just like a simple bug in DoubleTwist's app, and you should probably send them an email reporting it.  Programmers have access to system "events" (for lack of a better word) and we use these events in conjunction with the state of our app to trigger certain behaviors.  Like, if I created an app similar to DoubleTwist, I'd handle the system event of you unplugging your headphones to check if an mp3 is playing, and then I'd immediately pause it so that my app doesn't embarrass you by blasting your music out loud every time you unplug your headphones.  They could be performing this type of check (when receiving an alert from the system that the state of the user's headphone jack has changed) and either reading the state of the headphone jack incorrectly or evaluating the "are we playing audio" state of their own application (or both).

Have you tried using Headset Blocker?

Related: http://code.google.com/p/android/issues/detail?id=5134&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&start=100


text:
How to stop Workplace app's notification sound in Alarm & Calls only (DND) mode?
Although I've set "Do not disturb/Priority only/Alarm & Call", Workplace app still "ting ting" everytime someone chat with me.
How can I make my Sony Xperia XA1 Plus (Android 8) to a "profile" that everything should be silenced except Alarm and Call?

Check in the settings of that app. Disable from there. Some apps override e global settings. This may be the case

the app has no setting to "disable notification" :(

@beeshyams but it really shame on android when some app could replace global setting :(

I have heard Facebook does that but can't confirm since I don't use it. Yes, it is undesirable

source: Stack Exchange

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

sort: votes


text:
How to limit Google account access to selected apps?
I have used Google Photos App on iOS and the google account there allows me to disable access to the other google services where I don't see my other accounts in all Google Apps like Youtube, Gmail, Drive etc.
This can't be done as far as I know on an android device. Although I can turn the automatic sync off but the account is pretty much there on all apps.
Is it possible in some way that I achieve the same behavior as in iOS. It's pretty strange that google apps are giving more options on iOS than on Android.

I don't use Google products but there are two non-root possible ways I can think of. Either restrict Google apps' (YouTube, Gmail, Drive) ability to read accounts by denying AppOps operation GET_ACCOUNTS. Or add Google account to a new Work Profile and use Google Photos in that profile.

I wanted to use Meet for workplace meetings but I absolutely didn't want my workplace account to be all over my phone, my emails, calendar etc. So I have installed Shelter. It's a delight to use. The app itself looks simple, it has two tabs, Main and Shelter. Initially I had only very few apps in the Shelter: Contacts, Files, Google Play Store (and Moto Actions). I can see them in the launcher, they have a little briefcase overlay, here are three normal icons with two versions of the Play Store:

I launched the work Play Store, added my workplace Google Account as prompted, installed Meet, the screenhshot has Messages next to it to show the difference:

The apps outside of the Shelter do not see my workplace account. This is absolutely perfect. Here's how Shelter now looks:

Link is dead and I can't find this app anymore. Is it still a thing?

Yes. https://github.com/PeterCxy/Shelter

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


text:
How to locate app which installed a potentially malicious certificate?
On my S8 (Oreo) today, I got the notification: There is a certificate installed that may or not monitor your internet traffic.
Did spyware install itself? Or is this normal?
I updated from 7.0 to 8.0 a week ago but this notification only showed up today, so I assume it's not a good thing and not part of the update.
Which app is monitoring me?

Depending on the device model, there should be credential storage that can be accessed on the Settings - Security (or similar), then check any suspicious user's installed certificates. Note that some apps need to install a custom certificate to work (e.g. decrypting SSL content by MitM technique), but usually they will request for user's permission explicitly to install the certificate.

@AndrewT. How do I know which one is monitoring me?  Got tons of installed certificates.


text:
How to fix a device not detected through USB in Android, TWRP and Fastboot mode?
My Android tablet Nexus 9 is not recognized by my laptop. It can be charged, but not be listed by lsusb command even in fastboot mode and TWRP. I suppose I accidentally disabled the USB connection through some command as root user.  Is there anyway to check the status of the USB device of Android?

Have you tried with other USB cables and connecting to other USB ports of PC?

Yes, and the cable I'm using is no problem with my other android devices.

You need to remember what command caused the issue, it would be like pulling the needle out of the hay stack for us   .  ... .. It could be caused by missing driver's on your laptop, however other devices work so probably not... ... it could be caused by deleting the files responsible for USB connections.... It could be caused by deleting ADB from system/bin/adb .... It could be caused by many things.... Maybe you've rejected the computer connection via ADB on your device ( You'd need to revolk all connections and start ADB again, developer options ) ....  Please try to localize the problem.

It was physically broken. I replaced usb board, then the problem was fixed.


text:
Is screen mirroring only possible on enabled devices?
I've owned an LG GX2, LG V20, and an LG G5m out of which the GX2 had a micro USB port to charge and a micro HDMI for video output, and the V20 and G5 had video output through USB type C to HDMI. I've recently got an LG G7 or whatever it's called, and it no longer works. I've read several articles that suggest that with the right combination of cord/adapter that any Android could be mirrored through HDMI to TV. I'm pretty sure I already know the answer just want to be sure.
Sources:
How to Connect Android to TV
How to connect your Android phone or tablet to your HDTV

Mirroring, or MiraCast is actually not fully supported on Android, this has lead Google to build their own mirroring software...
MiraCast never really worked on Android, there's always a resolution problem because android isn't designed to OutPut video on different resolution's.
The solution is sort of a screen recorder that utilizes WiFi and software to show the screen recording on a computer or T.V.
I'm sure that it can be enabled on any device that has had MirrorCast  in the past.
For example, Android 5.1 and up have the option to mirror removed completely while they work on a new version designed for android.
You can enable the old MirrorCast using some build.prop tweaks, however it's extremely unstable, Hence the removal in the first place.

Actually you can still mirror cast the new lg G7 but it doesn't support mirroring thru a cord. When you plug it in a toast comes up telling you to cast it. But I liked using type c to HDMI better, the quality of the picture was awesome and it never lagged and filled whole screen. Casting just doesn't come close. And I wonder why lg gets rid of a good accessory. I always favored lg over Samsung I think the new Galaxy's still do it, I guess I'll have to reconsider my loyalty


text:
How to bypass "Always on VPN" demand for numeric IP and use a domain instead?
I know that it is not required but still I want to use a domain name for VPN server address and be able to tick to "Always On VPN" on Android.
I am open to any Idea with advantage to idea that can be use also on unrooted machine?
The reason is that I want to connect to my home network that has a PPTP VPN server (on Asus router). I dont have fixed IP at home (its very expensive in my country), so I am using Asus dynamic DNS service configured on my router. I want my Android phone to be connected to the internet only via this VPN.
I don't mind using a 3rd party vpn client app (that has "Always on VPN" mode) as long as I can connect to MY own VPN server, not to another party server. Also, if there is a web browser that can be configured to browse the web only via custom VPN settings, it will also be good.
Any Idea will be appreciated!

You can use any third party VPN app that supports PPTP and domain name, and then enable "Always-on VPN" for that app in Settings.

I didnt find any 3rd party app that let you enter your own vpn server derails. Can you name one?

I'm not sure about PPTP because it's not that much secure and getting obsolete (don't know why it's integrated in Android). But there are Android clients for other protocols like OpenVPN, SSTP etc. Personally I run an OpenVPN server with DDNS and I use VPN Client app by colucci-web, combined with shapeshifter (obfs4) commandline tool.


text:
How to fix device when stuck in firmware update with "Do not disconnect USB" message?
I have an LG Android phone. When I turned it off last night, it turned itself back on again with the firmware update showing "Do not disconnect USB". But when I received it from my contract holders, there was no USB; so I used my regular charger. I've woken up this morning and it's still on 0% after about 10 hours.
Can someone help or give me any tips and advice?

It's a fluke... Hold power button until reboot occurs.

Either wait until the battery runs out to recharge it, or wait until the device resets by itself.
This has happened to me twice:

The first time, about 3 days, it just reset itself.
The second time, after giving up when trying to reset the device by holding down the power and volume down buttons while either plugged or not, the screen suddenly went blank. Then, after plugging-in to charge the device, the screen was unfrozen and it charged up.

It seems to me that on both occasions this has happened, my phone has been almost out of battery, though I don't know if this is related or not. Better to keep the device charged up at all times.

Try holding down the power and the volume down buttons at the same time for around 10 seconds, then the device should restart and run normally again.
I remember with a situation with my iPhone when it got frozen and I had to reboot it with the same approach. This also worked on my Android phone which was stuck on 0% firmware update.


text:
How to make Phone app show favorites and contacts on app startup?
When you open up the Phone app, it shows recent calls list (second tab) as the default tab instead of contacts list (third tab). This changed during the last upgrade.
How do I switch that back so by default it shows the favourites and contacts.
My stack:

Samsung Galaxy J7,
Android 8.1.0 Oreo,
Samsung Experience 9.5.

I am using default, system Phone app.

This 100% relates to your phone version, system implementation etc. For example, on exactly the same Android version (i.e. Oreo), but on a different phone model (i.e. Motorola Moto Z2 Play, which uses stock, unmodified version of Android) this application always displays favourites list instead of call history. Which, in my case, actually kills me, because I find favourites list incorrect and pointless and I am forced to always switch manually to call history tab.

I think my answer here should help you. Change "Call history" to Favorties or Contacts where needed. It was helpful for @trejder .


text:
How to install an unsafe APK after allowing Play Protect to block it?
I was just wondering, when installing an APK from an unknown source and you click OK to allow Play Protect to block it, is there a way of installing that app without fully disabling Play Protect?
When trying to install the same app after allowing the block, it shows App not installed.

Did you try "Install anyway (unsafe)"?

So my question is how do you install it when you dont click that

You can try sideloading via adb.


text:
Application update localy via wifi
Is there a way through which I can connect two devices (via Wi-Fi or Bluetooth ) and check applications' updates from each other?
I used to use SHAREit for this purpose but after update, it does not notify application updates and its older versions do not work on Android 8!

F-Droid is an open source app repository, meant for downloading and updating other open source apps.
F-Droid's app also has the ability to share and retrieve apps via local networks, not just across the internet. Instructions linked below:
https://f-droid.org/en/tutorials/swap/
Quoting instructions from the page;

Open F-Droid. Tap 'Nearby' from the menu at the bottom of your screen.
Tap 'Find people near me' to search for compatible devices.
Once people nearby are found, both you and the contact must select each other.
Once connected, choose the apps you wish to share with your contact.
Tap the '—>' button.
One person will be prompted to confirm the request to connect.
Tap the 'Install' button next to the apps you want to install.
Tap 'Install' once more. Then, follow the Android prompts to complete the installation process.

That's the procedure for sharing APK:s locally and installing them. (There are two more steps related to management of installed apps, which isn't related to the question.)
The person who has the most recent version can use this to share the updated apk. Unfortunately it does not automatically compare version numbers. You can however see and compare this manually to select what apps to share.


text:
How to disable EdgeEffect when over-scrolling?
When you have only one home screen or scroll past the start or end of multiple  home screens, EdgeEffect appears, as shown on the left in the image. Can this be disabled?

It is called EdgeEffect.

Thanks , I searched and searched and never found that name


text:
Google Play website says I have certain apps installed that I do not. How to re-sync?
Here is an example. I do not have the Facebook for Android application install on my current device or any other device. Why does it continue to say I have it installed? Is there a way to re-sync Google Play?

Nexus 6
Android 7.0

Yes I have, but it is not currently installed and has not for sometime. This is just one example.

I am having this exact same error. Did you find a way around this?

@Aarmora no. I am wondering if it is apps on older phones?

I don't think that's the case with me. This happens to me a lot of the time when I just try to install an app from the google play web app.  So I can clearly see that I've never had this app installed before, I hit install, it says it installs and IS installed but then doesn't ever show up on my phone.

That sounds like the exact opposite of what is happening to me.

Any app that you have installed ( including the ones you subsequently uninstalled ) will always show up when you sign in with the account you used to install
Deleting android apps using my google play account on my commputer explains further

When you uninstall an app, it still STAYS on your app list.  That's done so you can find it again or install it on another device easily.  This can be very helpful to keep a list of apps you like but don't want on your phone all the time (like tools you only use a couple of times a year)

So re- sync will not help. Only way to not see that app is to sign in with a different account and use that account on your phone to install only those apps which you wish to see. Obvious disadvantage of doing this is you cannot access apps which you have previously paid for using a different account - see How to transfer my purchased apps to another account

The app is not in my app list, it just shows on Google Play.

see best answer here - though this is fairly recent, i just tried and it doesn't work, so they're appears to be no way

The app is not in my app list, it just shows on Google Play. It is also not in the "my apps" list on Google play. It just says "installed".

That's strange. Did you have the desk top version of app ever installed?

No. How? There is a desktop version of Facebook for Android app that you can install from the Google Play store?

No not from play store , two guesses 1. You had probably installed Facebook on desktop and somehow that info gets linked play store ( i dont use it at all, so can't say much) 2. Other apps, ( you have Facebook as an example, i know), came pre installed  ( bloatware) with one of your devices?  I had Twitter preinstalled on of my devices and it shows up here on Google web version but not in play store history

I have a nexus 6 running android 7. Facebook didn't come pre-installed. Possibly on older devices from years ago? I have never use Facebook for work.

Going by my Twitter experience, it is possible that it was pre installed on earlier device. Related problem here with pre installed apps http://android.stackexchange.com/q/26192

I can confirm that it is not related to be preinstalled. Irrespective of whether the app is listed in Play Store > My apps & games > All; it will show up as "Installed" on the store website if it was installed in the past. I've quite an OCD about these things and could do nothing about it. I hope they fix this.

@varunyellina: Thanks. Maybe time to open a bug report? Not sure how that can be done, though

I remember this to be "the" behaviour right since my first device running 2.2 Eclair. It's just painful to see all those stupid apps I installed back then.

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


text:
How does pressing the power button on Android compares to Windows 7s Sleep and Hibernation modes?
In Windows 7 it's pretty straightforward:

Sleep: turn of everything except RAM. Data is still stored in RAM.
Hibernation: writes RAM data onto the hard disk drive. Not useful for SSD drives, the process eats much to their usable life by writing gigabytes of data to the disk. Android devices use flash drives as well.

The question is which of the two is happening when you press the power button on an Android device? Can you make the other possibility to happen?

It's none of the two. Turning of the screen of an Android device will not hibernate it (thinking of a phone: What about incoming calls if the device would be hibernated?). Android handles things a little different.
In the best case, with the screen switched off Android enters a very energy-saving mode called "deep sleep". It will cycle down the CPU to a minimum, may switch off WiFi (and other things) completely, and other things. Apps may enable those ressources when needed by aquiring corresponding "Wake-Locks" (see: wakelock), which they (hopefully!) don't do too often, and (again hopefully) release when no longer needed.
Not having "hibernated" the system completely allows the system to quickly react on events like e.g. incoming calls, alarms, or the user switching on the display again. It simply needs to speed-up the CPU, and enable those ressources it "put to sleep", if needed.
Also keep in mind that Android devices (usually) don't have mechanical components like "spinning hard-disks", so if storage is not accessed, it does not "consume power" :)

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


text:
Why does Android differ so much from Linux?
I have read all related questions here, but they don't answer my questions or are not up-to-date since Android is particularly included in Linux kernel ( > 3.x.x).
Why didn't Google just take a Linux distribution (for example Debian) and add drivers for touchscreen, mobile service, etc and create a desktop environment for touchscreens.
If kernel modules won't be included in the Linux kernel, it would be possible to use the streamlined Linux kernel and add these modules (and remove some, like unnecessary drivers).
Today it will fail to run standard Linux on every smartphone and tablet, because of missing drivers, but they could have been written for Linux, not Android.
It would have been saved double development of new features

Probably because the development team wanted to have more freedom in what they were devloping. Writing a kernel to be included in linux means that you have to follow certain standards in order for it to be accepted. Moreover maybe the kernel devs didn't feel the need for some of those functionalities, which would have been rejected. so they just went their own way and they are trying to contribute back parts of what they have done as a "side project".

We call a distribution "Linux-based" even if it just uses the Linux Kernel, ultimately meaning that Linux is just a kernel, not an OS. So, Android uses Linux kernel, with heavy modifications to support mobile device features, importantly power management. People don't call Android a Linux Distro because it doesn't use any (or much) standard GNU softwares & other libraries as other Linux-based Distros do.. Your question is like asking why iOS is different from Mac OSX ;-)

Why didn't Google just take a Linux distribution ... and create a desktop environment for touchscreens?

Because they didn't want to create a desktop environment for touchscreens: they wanted to create a new OS for smartphones. Smartphones (and earlier, PDAs) based on not only the Linux kernel but the GNU userspace, with the same programming environment as desktop Linux, existed for years before Android did, but they were a huge commercial failure.
The chief advantage of using a GNU/Linux distribution is the idea that you can simply recompile all the same applications for your new hardware, rather than having to write a new application. But this has never worked out in practice. A user interface designed to work with a keyboard and mouse on a big PC display simply doesn't work on a phone touchscreen. The ways that programs interact with each other on a PC with almost unlimited storage and no need to conserve power simply doesn't work with the limited energy and storage requirements of a phone. The pixel-layout, fixed-dpi ways of designing graphics and user interfaces for PC displays have already been outgrown for PCs, and phones need something better. In addition, smartphones introduce new features - ubiquitous location availability, cell modems and telephony, and Bluetooth - which PCs have never offered applications a standard way to access.
The Android team set out to offer a programming interface (the Android framework) to let app authors access all the needed functionality, in a way which wasn't previously available. They set out to isolate apps from each other to protect the integrity and the battery of the device in a way that wasn't possible in any existing Linux distribution. They set out to create a new graphics subsystem to avoid falling into the Linux community's dependence on X Windows. They set out to create a commercial success, which had never previously been achieved with Linux-based handhelds.
They achieved all those goals, by doing exactly the thing you complain about. Android is much bigger than just some Linux drivers, and many kernel drivers for Android devices do eventually make it back to mainstream Linux.

Very good arguments, but I think commercial success is mostly marketing: Buy all Laptop/PC seller, preinstall Linux (e.g. Ubuntu) everywhere, sponser tutorials on YouTube and pay for TV Spot and it will be a success

I get things like rewriting the display server and isolating apps, but that doesn't explain why the kernel has to be so different. I'm sure that will be possible for Google to benefit from new Linux kernel features while still creating their own unique platform.

The key to this answer is license
When the android team started programming android they tested many kernels but none where as good (for their needs) so they settle for Linux.
Now the question arises that ,
> Why Google was running away from Linux
We should know that Google at that time already had the model of android in mind
So we should think from opposite way
 See , if android was built on Linux the OEM would have to make their sources open which would result in a very little competition and that would defeat the work of android
So when Google saw no other way they settled for Linux but tried to stay away from GNU GPL V2 licence
So in their run they made Linux as the kernel and android running top of it

There's nothing to stop Android being based on Linux with both open-source and closed-source drivers and an open-source userspace: in fact that's exactly how Android is developed.

@DanHulme  I will edit and add more information

While the original reason for creating the operating system (Android) might have been licensing, the reason that smartphone is not running a standard Linux distribution is battery.
I was part of an effort to port Linux and Java to smartphones, at about the same time that Android evolved.  We could get a slimmed down version of a Linux distribution to run on the devices we had, at the time for about 20 minutes to half an hour.
Although, with modern battery technology, Android is loosening up the constraints, the original versions were very very heavily optimized, for battery life.  Even so, the original Dream often didn't make it through a whole day without a battery change.


text:
Can an encrypted Android phone be unlocked with an USB drive some way?
I want a fast way to login to the system without entering difficult credentials. If the usb key is not present there won't be the ability to decrypt the system ... Some 2-factor solution without NFC because the device doesn't have NFC.
Does somebody know how I could do this, because I can't find a way to do it?

Can you please clarify what you want to achieve?

@4M8B Edit that explanation into the question, people don't always read the comments.

If you are talking about default encryption system shipped with Android, you can't autologin even with NFC. Forget about the USB.

No, this is not possible given how full-device encryption is currently implemented in Android. The bootloader needs your credentials to perform decryption well before anything like drivers for NFC or userland code is loaded.


text:
How to delete Images on Android 8.1.0?
Android is complaining of dwindling storage space. I regularly delete personal files to comply with its demands and can now use but 20 Gb of a 32 Gb storage unit. Recently I noticed an item called Images in the Storage -> Photos & videos dialogue:

The trash bin of the Photos application is empty, and so far I could not identify these "images" in the system. How can I delete them?
Update: I have wiped the system cache, follow the procedure described here. This had no effect, the phone still reports 3 GB of images that are nowhere to be found.

I am on Oreo 8.0 which has different options. Wondering if it is images that are pending deletion in smart storage . If you enabled it , disable it and see if you can still see images eat space

I have smart storage disabled. I have never enabled it.

These are the caches Images which Android stores it in itself. To delete these Images, go to your File browser and allow the File browser to show Hidden Files and then Go to
Phone Storage > DCIM > .thumbnails
There are image more than 100 image and some waste files stored under this folder. Delete whole folder. Doing this can help you in some Manner to get out of dwindling storage.

There were about 140 MB in that folder. Very far from the 3 GB reported by the system.

Go and check images in your gallery that they worth 3 gb or not. If not then check each and every folder of yiur internal storage and delete each image which is waste for you.


text:
Install TWRP on Samsung Note 10.1
I am following this guide from Cyanogenmods to install TWRP on a Samsung Note 10.1 with Android 5.1.1 installed. I have activated USB Debugging in Developer options and connected the tablet to my computer, accepting the connection in the dialogue that pops up in the tablet. I then issue the adb command:
$ adb reboot bootloader

There is no error message, either on the computer or the tablet, and the tablet reboots.
I then issue the flash command:
$ fastboot flash twrp-3.0.2-0-lt03wifiue.img
< waiting for device >

And nothing else happens. The tablet remains silent and the command line in my computer is stuck. How do I move on from here?
Update I: This is the system and software in my computer:
$ uname -a
Linux ENG-PAVIL-PC2 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ apt policy adb
adb:
  Installed: (none)
  Candidate: 1:6.0.1+r16-3
  Version table:
     1:6.0.1+r16-3 500
        500 http://ch.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

$ apt policy fastboot
fastboot:
  Installed: (none)
  Candidate: 1:6.0.1+r16-3
  Version table:
     1:6.0.1+r16-3 500
        500 http://ch.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

Update II: The bootloader version on this tablet is: P600XXUDQA1
Update III: heimdall was referenced below as an alternative to fastboot, but it is not able to communicate with the Samsung Note 10.1:
$ heimdall flash --no-reboot --RECOVERY twrp-3.0.2-0-lt03wifiue.img
Heimdall v1.4.1

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
ERROR: Failed to detect compatible download-mode device.

$ adb devices
List of devices attached
4300ee259691c037    device

Update IV: Still trying it out with heimdall, which so far is the only tool providing any bit of hope. For some reason it sometimes fails to identify Download mode - that is the reason for the error messages in Update III. By plugging in/out the USB cable and using the detect option one can eventually make sure it acquired the device:
$ heimdall detect
Device detected

Then the flash command succeeds:
$ heimdall flash --no-reboot --RECOVERY twrp-3.0.2-0-lt03wifiue.img
Heimdall v1.4.1

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Initialising protocol...
Protocol initialisation successful.

Beginning session...

Some devices may take up to 2 minutes to respond.
Please be patient!

Session begun.

Downloading device's PIT file...
PIT file download successful.

Uploading RECOVERY
100%
RECOVERY upload successful

Ending session...
Releasing device interface...

Now things get tricky. If the tablet is rebooted normally after TWRP is flashed, the stock bootloader (I believe) will replace it automatically. In this case when the tablet is rebooted into recovery mode it will just run the stock Android recovery programme. It took me a while to figure this one out...
After flashing TWRP, the tablet must be rebooted directly into recovery mode. The problem is, it shows an error in the booting screen:

Could not do normal boot. Invalid KERNEL LENGTH!

TWRP does not load and the tablet just shuts down. That is how far I am right now.

That "for any Android" guide is junk, my friend. Samsung devices do not have fastboot, as Samsung uses their Odin software to flash firmwares and recoveries.

@beeshyams Actually, it's not ideal for me to provide an answer, as I do lack access to any modern Samsung device, and, given the added complications introduced by S (e.g. locked bootloaders), I'm not the best one to provide an answer concerning those devices.

It has Android 5.1.1 (question updated). Where can I check the boot loader details?

Boot loader version is P600XXUDQA1 (I'll update the question). But I could not find any information on that carrier lock setting (at least not in Phone Info Samsung).

I'm seeing your edit to the question. This is weird... I've never seen that boot-time error before, despite having flashed tens of Samsung devices. Is it simply impossible to reach for a Windows PC and try Odin at the moment?

I understand you wish to help, but your promotion of Windows is going a bit too far, I think. I do not own a licence to that system and do not intend to buy one.

Revisited this question after seeing your latest question - in your last edit after Heimdall, you could try the hardware key combination to boot into recovery. If you get into TWRP now, from TWRP options reboot into system !

When I try to boot into recovery as you say I get the message in question: Could not do normal boot. Invalid KERNEL LENGTH!

Ahh, my misunderstanding that this was Linux based boring into recovery and thought that hardware key combo may overriding this

@LuísdeSousa Sadly, it's not a matter of advertising, as many users of this site are quite privacy-minded. It's just a matter of acknowledging that Odin works, while Heimdall fails. Did you already try to run Odin via Wine?

Note 10.1 (2014) has its bootloader unlocked by default, just like most if not all devices annouced pre-Lollipop.
Under Windows, the actual installation is as simple as described in the TWRP device page:

You will need to download and install Odin on your PC. Once you have Odin installed, download the proper .tar file for your device from the download link above. Power off your device. Turn on your device using the proper key combo to get into download mode and attach the device to your computer via a USB cable. Use the PDA tab or button to browse to and select the tar file that you downloaded and flash the device.

Under Linux, Heimdall is required instead, and steps are somewhat different: download the .img file, get into download mode, (optionally) verify connection with heimdall detect, then execute heimdall flash --no-reboot --RECOVERY /path/to/recovery.img to flash it to the device.
Do note that there are multiple, very different variants of this device. The WiFi version (P600) and LTE version (P605) are based on different SoCs and therefore use different recoveries and ROMs, while the Verizon variant (P605V) has a locked (and non-unlockable) bootloader which means you can't flash anything on it.

"download and install Odin on your PC" I would need the details on this bit to follow your suggestion.

For Windows machines, get Odin here. Just extract it somewhere and run the main executable. As for Linux, Heimdall is the one to use. I personally always go for Odin (even though I have a Ubuntu environment) due to Heimdall being a command-line tool.

Neither the Heimdall frontend nor its command line are able to connect to the tablet. Apparently this programme does not support the Samsung Note 10.1. Please clarify further your answer, as it is it is not really helpful.

Heimdall is supposed to support future Samsung devices up till now. I still advise finding a Windows PC for the job though, as Odin is an official tool of Samsung, and the GUI will prevent confusion. I will modify my answer as we work to make clear what route you take.

Also, I can't quite remember if one could use adb reboot bootloader to get to Download Mode. From the response of your terminal, it simply seems you're not even in Download Mode yet. When you issue that command, do you see some lines of text on the left-up corner of the screen, or a green Android bot in the middle? If neither, then you're definitely not ready. The right way is to power off the device completely, hold VOL_DOWN and HOME then hold POWER, until it shows a warning. Then press VOL_UP to confirm.

Considering that heimdall itself was reporting a successful flashing process, I decided to investigate this further using other images. As it turns out, the SM-P600 boots correctly into recovery mode with TWRP 2.8.7 and 3.0.1. There was either an issue with the .img file or that latest TWRP version is struggling wih the SM-P600. Since it was you that directed me to heimdall I would like to accept your answer. Please update it with a link to the tool and an example (you can use the command in Update III).

Glad you got it in the end. It still appears weird to me that the latest image fails - it's quite dated so if it's problematic then people would've reported and the maintainer would've gotten it replaced. Might want to double-check the hash?


text:
Internet doesn't work with apps without using vpn
here's my problem :
in normal situation my Internet only works with browser (firefox) and not any other app like markets or Duolingo . But , when I use DroidVPN it starts to work with other apps as well . I suspect Google setting and Google market . I have uninstalled both of them because of some problems that they have . recently when I reinstalled them , this problem appeared . ( But I'm not sure , cause I think a while after installation it was working . )
by the way I am using my home wireless . my background data is on . I need my Internet back without any VPN app and I DON'T want any factory reset or any kind of reset and those stuff .
I've read all other similar question and answers . non helps !
can you help me ? PLEASE ? any help would be appreciated !
p.s. I'm using the wireless with my laptop to . and every thing is ok with it .

I'd suggest trying on a different wireless network. This sounds more likely to be a problem with your network than your phone.

Thank you for your comment . well , I use the wireless with my laptop too . and I don't have such a problem with it . so , do you still think that it is a problem with my wireless network ?
I really need to fix it . thanks

That's an interesting data point. Could you [edit] your question to add that information, and also let us know what internet apps work on your laptop?

Could you check your WiFi AP settings whether there's a proxy defined (in its advanced settings)? If I remember correctly, Firefox is one of the few apps ignoring global proxy settings, which might be the reason it works. And with the VPN not established, the (then wrong) proxy might prevent all other apps from accessing the network.

@DanHulme on laptop every thing works fine with the Internet .

@Izzy can you tell me how to check that AP setting that you mentioned ? is it about router setting ?

No. It's in Settings→Wifi, long-tap the SSID of the configured network, tap edit, checkout "advanced", then proxy.

@Izzy Check ! Proxy settings : NONE , IP settings : DHCP

OK, was worth a try. So it must be something else. Would have been too easy...

So what Do you people think it is ? I know you will find a way to solve this problem . you do ? don't you ?

I just had this issue on my Nexus 10 running Android 5.1.1.
I could not connect to the internet via my Wifi access point (AP) but I could connect to my VPN (Private Internet Access) and then connect to the internet. This only affected one device, all my other devices (laptops, phones, other wifi gadgets) had no issues connecting to the same AP.
The issue I found had to do with the DNS Leak Protection from Private Internet Access (PIA). The solution was to set a static IP address and DNS settings.

Disconnect form your VPN
Long press on your wifi network in the wifi settings
Check Advanced Options
Add your IP address and gateway (the IP address of your router)
I added 209.222.18.222 as DNS 1 and 209.222.18.218 as DNS 2. These are the PIA DNS settings.
Save those settings and test your connection

This fixed the issue on my device. Curiously this issue only affected my Wifi AP, when I connected to another access point I did not set have to set a static route.


text:
adb option like fastboot -i <vendorid>?
Hi I was wondering if there was a command similar to fastboot's -i in adb. I'm currently trying to find my device in adb, but I could only target the device in fastboot with -i and the vendor id (I got it with lsusb -v) and got nothing in adb. I added:
SUBSYSTEM=="usb", ATTR{idVendor}=="0x1f3a", MODE="0666", GROUP="plugdev"

to /etc/udev/rules.d/android-51.rules to try and get it to come up in adb but nothing came up in the devices list (I saw on a tutorial that it would make the device show up). Thanks!

Your final objective is to get the device detected by adb. Correct? And you think the approach in title is the way to go. Right? // Which Android device, version are you using? What OS are you using on PC? // Are you having the same problem noted here?

I'm using a Ubuntu (chroot on a Chromebook), and my android version is 4.4.2 Kitkat (I think ill check), and kinda but not the exact same problem.. But close enough that ill look at it, but i don't have ~/.android/adb_usb.ini

I've always just plugged in an android-51.rules file that I find online...  you can modify it if needed to support your device.  Try this one: https://github.com/M0Rf30/android-udev-rules/blob/master/51-android.rules

Also, instructions here: https://github.com/M0Rf30/android-udev-rules

This should work pretty fine: lsusb (Windows)
and
lsusb -v (Linux)


text:
Can I boot Android on the LG Arena KM 900?

Possible Duplicate:
Can I install Android on my non-Android device?

I have searched (hopefully well enough!) on the internet to see if we can load Android on the LG Arena KM 900.
Though there was this forum which kind of talked about it, it was still not clear as to how to do it.
http://androidarena.pytalhost.net/index.php?page=Thread&threadID=76&pageNo=6&s=12839d124f983ac19ea9e43226073557b26abf3f
Has any one tried this?
Appreciate the time taken to answer my query.

I'd also like to add that porting Android to a phone is a herculean effort because the hardware needs to be reverse-engineered from the original OS. Even if an official port of Android exists for this CPU, the kernel needs a lot of work. Even a well-maintained and coordinated effort like the ports to the various HTC WinMo phones have not resulted in usable Android releases for day-to-day use for all phones yet. As far as I know, only two older models are fully supported (the Vogue and the Kaiser). If you need the phone as more than an experimental Android test-drive, I can only recommend buying a comes-with-Android phone.
Obviously this is not meant to diss the developers of these projects, as they are doing an amazing job in a difficult situation, and there is steady progress. Just don't hold your breath, they are doing it in their spare time and will need a lot of that :)

Thanks for the guidance. I'll spend some time on the forum and see where we are. Maybe someday, switching OS on the mobile will be a lot easier :)

You've already found the forum for the main project to port Android to the LG KM900 at http://androidarena.pytalhost.net/
All of their effort towards porting Android to the KM900 is being tracked on this Google Code page http://code.google.com/p/arenoid/ their project status page doesn't look like they've managed this yet http://code.google.com/p/arenoid/wiki/ProjectStatus
So, unfortunately it doesn't look like this is possible yet. I think that your best bet to speed up the process will be to visit that forum and Google Code section and volunteer to help them out in their efforts.

Thanks GA. Very unfortunate that I can only select any one as the answer. Both your responses have been very helpful and guiding. Thank You

I have been following that Google code page for ages when I had my Lg Arena, and they still have no success since early 2010. Android on the arena, no success.

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


text:
Reinstalling purchased apps on a new phone?

Possible Duplicate:
Move paid apps between devices?

My contract is getting close to finishing so I'll be upgrading to a new Android phone and giving my old phone to a family member.
When I move my Google account across to my new phone will I have to repurchase or just re-download my paid for apps?
Also will I'll have to remove the paid for apps from my old phone before it is associated with a new Google account?

Bonus question: If your old phone came with some app free that usually costs money, do you still have access to it / can use it on your new phone?

@user4188 mot usually because when the device comes with an app, it is installed on the device from the manufacturer and not via the android market.

You will not have to repurchase them if you associate the same Google account with the new device. They will be available in your market to re-download.
I don't know if you can have more then one phone associated with the same account, but I did not do anything when I got a new phone, except associate my google account to the new phone.

This is correct.  You can have more than one phone with the same account.

You just have to re-download them, not re-purchase them.  The apps are tied to your account, not your device.
As far as I know you don't have to do a thing to your old device before your apps are available for download and installation on your new one.
Post #2 in this thread states the same, for what it's worth.

This is correct.

Amazon App Store also follows the same model. I had to switch to a different ROM after clearing cache and reinstall on my NotionInk Adam Tablet. Through the browser I reinstalled the AmazonAppStore App. I used the same amazon UserID and passwd. It immeidately recognized all the apps I had purchased and provided option to download and re-install them.


text:
Why file managers badly recognizes SD cards
If I am understanding well...file managers mostly title some part of file system as "SD card" despite the fact that it is not SD card, or even sometimes when the phone doesn't have a slot for SD card at all (this happens for example on Nexus 5x). It's not just one or two file manager, but lots, so I think it is more Android like "problem".
So I am asking: What is the reason?

There are two types of memory: internal SD card (/sdcard) and external SD card (/external_sd, or /extSdCard).

This is done so that on a device without a removable SD Card 1 - you'd still be able to copy files to and from the device, and 2 - user's data can be stored separately from system and app data.
Regardless if a specific device has a removable SD Card, Android sets aside part of its internal memory that is reserved for user's media such as photos, music, movies, books etc.  That is the area that becomes visible to a computer when you connect the device via USB cable, and is commonly referred to as "internal SD Card" for the sake of simplicity.  If a device has a removable SD Card, you will have another area that is visible to a computer, and that is referred to as "external SD Card."
On older versions of Android internal SD Card was set up as a separate partition, and formatted as a variation of Fat/Fat32 type so that it could be accessible as a UMS device.  On newer Android versions there's some behind-the-scenes logic happening to expose internal SD Card to computers via MTP protocol instead.
Most Android file managers will show both internal memory, and the external card if one is present.


text:
Automatic time on Nexus 5X says it's 2017 already, one day ahead
This morning I woke up to my phone, a Nexus 5X, telling me that it was already 2017, by saying the date was 1 January 2017. The time was/is still correct to the second, but it is only one day ahead.
My girlfriend had the same issue on her Nexus 5 this morning. Is there more people with the same problem? Can this be fixed or should it be reported?
EDIT: The problem was automatically resolved when I tried a day later

Not really. The problem is that, on automatic time, my phone tells me it is January 1st. I've now manually set the date to December 31, but reverting back to automatic date and time, switches my phone back into 2017

The timezone is correct, GMT+1, CET, so the first link in your link doesn't provide a solution. The Time Calibrator app in your link provides me the correct date, but my phone keeps the wrong date.


text:
Charging speeds between USB C/USB C and USB A/USB C
I just bought the Anker power core 20100+ and it came with 2 cables.One Usb C to Usb C cable, and One Usb C to USB A.
I am just wondering which one would give me better charge speeds for my Nexus 5x or if it wouldn't matter at all.

Your device comes with USB Type C which is equipped to handle higher power for charging and hence that is recommended over using the USB C to A conversion
USB 3.1 – Type-C Connector

....Rather than using four-pins as in the classic type-A and type-B, the type-C connector has 24 pins and is reversible, meaning it can be plugged in either way. It supports 900mA and, on command, delivers 1.5A and 3.0A over a 5V power bus while streaming data. This results in 7.5 and 15 watt power consumption respectively, as opposed to 2.5W using the original USB (current times voltage = wattage)

Also see a decent comparison of  Type C Charging


text:
How to change the order of the timers?
How can I change the order the timers are displayed in the default clock application? I've got about two dozens of them and it seems I can only add new ones in front and not change the order.

I don't think it's possible. Maybe use a timer app like this? I haven't used the app, suggestion based on Play Store description

This depends on the Clock application itself, which can also depend on the device model since manufacturers can customize their own stock apps. If such a feature doesn't exist, then the solution is to use a 3rd-party clock app.

@AndrewT.Device is an BQ running Android One,


text:
How to transfer app settings from Galaxy S3 to a S6 without root?
After trying to manually set the "app settings" on my new S6 the same as my S3: I realize it will take me hours.  Is there really no way to transfer all old app settings from my S3 to the newly installed apps of my S6?  Helium needs a PC and others need root on both phones.  Any suggestions?

Reading between the lines: You're looking for a solution to do that directly from device to device with no PC involved? Close to impossible then without root, as no single app can get access to all other apps (or rather their data) without root.

That "possible duplicate" is quite a bit aged, half of the solutions no longer available, and the other half a bit cumbersome (involving multiple apps for backup/restore). Sure we want to close this on behalf of that one?

Related (and newer): Is it possible to migrate apps and their data from one unrooted Android phone to another? / Transfer App data from rooted to unrooted new phone


text:
Phone boots very slow and restarts by itself
My problem is when I turn on the phone, the Google logo stays stuck and after unknown minutes boots in with the software animation, but very slow and then starts over again! First a little history of my upgrades with this phone.
My friend bought me Nexus S T-mobile version for US 6 mounts ago, and the phone was with Gingerbread 2.3.4. After reading many post from xda-developers , I decided to upgrade because I can't upgraded 2.3.6 OTA. After many hours I finally upgraded it to 2.3.6.
Then ICS came out, and again, I upgraded to 4.0.3. Then, a few weeks ago, I got the 4.0.4 OTA notification. Happily I taped yes. And then before two days ago, my phone just died. I don't know how and why.
I have 115 installed application, no music inside, no ROOT - just pure stock. I was in my college room and I left my phone on the desk right in front of me and after few minutes when I looked at the phone, the Google logo was there. I didn't give the phone to anyone to picks or anything. When I get home, I turn the phone on and still the Google logo just was there doing nothing and like I said before, after unknown minutes the phone boots in with very slow animation of the ICS software. I decided to install Clockwork Mod recovery 5.0.2.0 and root the phone. After reading many tutorials I installed CWM recovery successfully. Then I tried to downgrade to 2.3.4 and successfully I did that to.
Now after doing all this things to this phone, after so many hours in pain, the phone is nothing like one week ago. The booting is very slow, the animation is veryyy slow, and I don't know what to do anymore... I think this is hardware problem.
[edit] I send it to Samsung and they send me a new one, so definitely is a hardware problem.

I would flash an stock ROM, followed by an factory reset and if the issues remain it's likely a hardware problem.

+1 for coming back to your post and share the real reason with us!

No problem. Thanks for your time helping me. :)

After flashing a new firmware it is advised to perform a factory reset (all your data will be lost, so take a backup.) While the phone is off:

Press the VOLUME UP, HOME and POWER buttons together till it vibrates. Now it has entered RECOVERY MODE.
Navigating using the volume buttons highlight the option wipe data/factory reset and press the HOME button to select and confirm it on the next screen.
Finally select reboot system now to restart the phone

I did that, I did everything, from reseting from recovery, adding older firmware, flashing... Nothing helps. I want to know if someone had this problem and is this hardware problem so I will know what to do... :(

Then it is probably a hardware issue. Since it's only 6 months old, try to get it replaced under warranty.

And btw is it carrier locked? Sometimes that could cause a problem

No, it's unlocked. But did I broke my warranty with unlocking the fastboot? Can I lock it again so I can return it to the store?

Flash the stock firmware(which will unroot the phone) before you give it to the store and pretend that you never rooted or flashed firmwares and everything happened on its own

Thank you, I appreciate your help and I decided now what to do! Thank you again :]


text:
Application Sandboxing in Android
I came across a line in this page.

"The Android system assigns a unique user ID (UID) to each Android application and runs it as that user in a separate process. This
  approach is different from other operating systems (including the
  traditional Linux configuration), where multiple applications run with
  the same user permissions."

Can anyone please explain what the first line means?

Every single application that is installed on your phone, gets a UID.
It is a number that Android uses to identify the apps so it can check from what app commands are executed and check the permissions of the app to see if that app is allowed to execute the command. Privileges of applications are pretty restricted in Android. They can't see data folders of other apps, they can't modify the system and they can't do anything if user doesn't give them permission.
For example, when  X app gets installed, it gets the UID 10000.
Android creates a data and a cache folder for this app. Whenever an app wants to access these folders, Android checks the UID of the app. If it is not UID 10000, then Android denies permission.
This is a good defense mechanism that restricts the abilities of possibly malicious apps that got installed. All apps have restricted access to almost anything that they themselves didn't bring to the device in the first place.
Even more, the user himself has limited access to the phone. So a user that doesn't know what he/she is doing can't do harm.
This is where all the root concept comes from. root is a special user with UID 0 and its abilities is not restricted by the OS, making it able to modify system and other apps.


text:
Newer Whatsapp on device and play store

As is apparent from the images the version of whatsapp on my device is higher than the store version. I install and update from the store only. I have started getting messages on Whatsapp to update.
I have this on a Redmi Note 4X, running MIUI 9.

Possible. whatsapp version info on your device  will be higher than whatsapp version to download on website (website provides only stable version for download). This is for the case of beta users. I am currently on 2.18.12 where on website it shows 2.18.8.

@RahulGopi, I am not on beta and whatsapp is asking for update so...

I my case I cannot see whatsapp version both  in playstore app and through website login. shows this varies with devices.


text:
Contacts phone numbers disappeared after sync to google
After synchronising with Google, all contacts that have phone numbers associated with them disappeared.
I tried to enter a new contact just to test this. If I sync again the new entry disappears as well. How can it be recovered?
My phone is a Galaxy Note II

This bug is still present. Android 5.0.1 Samsung S4 here. But in my case if I reenter the contacts, the second sync was ok. Sync should NOT delete your contacts without warning. Very bogus.

The same happened to me, same Android version and same device of Pedro77. I lost hundreds of contacts because of this bug. Very frustrating!

Did you clear Contacts Storage?
Settings > Applications > General Applications > All (at the top) > Contacts Storage >  force stop   > clear data
then
Bring up "Contacts" you will then see "You don't have any contacts to display" > press Menu button >  Accounts > choose account to sync (your gmail account) > Sync

where is this? android or google/gmail? i couldn't find it in either one.

@zz Android settings you will have select ALL at the top; otherwise you will not see Contacts (not the one that has to be cleared), but Contacts Storage which you will also see would be the one to clear.  The next line refers to bringing up the  Contacts application which is a preinstalled application which is populated from gmail contacts, with the intent to synchronize from your Gmail desktop contacts.  But in the next answer you have stated that you don't have Gmail contacts so this sort of becomes mute, if true.  I would try this first. Other answer my desktop has "My contacts" not All ...

Just clearing the data was enough to solve my problem on Android 4.4. Thanks!

This does not solve the problem mentioned in the question because the contacts were NOT copied from the Android device to the Google account, they were simply deleted.

Google can restore your contacts from the last thirty days.  This is for your desktop computer, and would probably propagate into your  Android as well, if Android is not fixed after fixing your desktop contacts, fix those on Android with our other answers, afterwards. Google search:  lost gmail contacts

 Restore contacts - Gmail Help, You can restore your contact list to the state it was in at any point within the past 30 days.
How to Restore Google Contacts: 6 Steps (with Pictures) - wikiHow

Since the contats are only on the cell phone and after sync they disappear. Restore using gmail is useless, the contacts have never been there.

This answer is useless, as Pedro77 mentioned


text:
How can i run At-commadns with the ADB?
I'm trying to communicate with the modem of my Samsung Galaxy S3 GT-I9300 over the ADB tool. My galaxy is rooted and is accessible through adb.
I'm attempting to execute AT-commands over the adb-tool.
I already tried a few AT-commands but the modem doesn't respond.

First of all I was running cat /proc/tty/drivers to get the right driver. my output:

root@m0:/ # cat /proc/tty/drivers
/dev/tty             /dev/tty        5       0 system:/dev/tty
/dev/console         /dev/console    5       1 system:console
/dev/ptmx            /dev/ptmx       5       2 system
/dev/vc/0            /dev/vc/0       4       0 system:vtmaster
rfcomm               /dev/rfcomm   216 0-255 serial
g_serial             /dev/ttyGS    250 0-3 serial
usbserial            /dev/ttyUSB   188 0-253 serial
s3c2410_serial       /dev/ttySAC   204 64-67 serial
serial               /dev/ttyS       4 64-67 serial
pty_slave            /dev/pts      136 0-1048575 pty:slave
pty_master           /dev/ptm      128 0-1048575 pty:master
unknown              /dev/tty        4 1-63 console

Consequently my driver address is /dev/ttyGS0, so I run the next command echo -e "AT\r" > /dev/ttyGS0 but the modem doesn't respond and nothing happens:

root@m0:/ # echo -e "AT\r" > /dev/ttyGS0
root@m0:/ #

So I quit the tool and tried another command service check phone:

130|root@m0:/ # service check phone
Service phone: found
root@m0:/ #

It looks like it at least found a kind of a modem.

So, I Google a bit and I find a nice tool called microcom, which is included in busybox. I installed busybox and tried busybox microcom -t 5000 /dev/ttyGS0, but the output was

root@m0:/ # busybox microcom -t 5000 /dev/ttyGS0
microcom: applet not found
1|root@m0:/ #

I really hope you can help me to find my problem with my code or suggest some better commands.

Use this version of busybox, it will have microcom.


text:
How does changing the mixer_paths.xml increase volume?
I've been trying to boost the maximum volume obtainable through the audio jack of my phone (Nexus 5). Instead of installing equaliser or volume boosting apps, I thought I'd go about this the technical way:
XDA forums suggest a "MOD" that involves modifying your mixer_paths.xml file located at /system/etc/ (root access naturally required) to increase your speaker or headphone volume beyond the set limits:
Find: <path name="speaker">
You will see this string just below it: "RX7 Digital Volume" value="88"
The value is the only part we are going to adjust.
For the mod above, I changed the value to "93".
The default value is "88" and I would suggest not to go over "95".

To change the Headphone volume:
Find: <path name="headphones"> Look for these strings below it:
"HPHL Volume" value="15"
"HPHR Volume" value="15"
Again all we are changing is the values (ensure both are set at the same number).
For the mod above, I changed the values to "20". The default values are "15" and I would suggest not to go over "20".

How does this work? Does Android artificially limit the maximum volume and this "MOD" bypasses those limits? Or does it compromise audio quality?

I visited this some time ago and explored some values within the file. As it can be hard to determine sound quality comparisons, I also compared the visual appearances of waveforms.
Here's a screenshot of the page:

Link
Note that I only listen to audio from my Nexus7 though headphones or external speakers.

Consider this scenario: this answer is written by user X and you're an observer. You find that the goo.gl link is not working or is dead. Tell me, how useful would you find this answer by user X then? My suggestion to user X would be to incorporate all the relevant stuff from that link into this answer.

Are you sure that the clipping happened on the phone's side and not in the recording process because input was simply too big for the first amplifier? Some info about your recording setup would be very interesting to know.

Actually, it's both. To preserve the user's ears and the phone's speakers, Android limits the sound output.
However, changing this factor also influence the sound quality, having to high or too low distorts the sound ;)


text:
Where does Android get these email addresses from?
In an app called Wirex an email autofill appeared. This is very confusing to me. The list contains very old emails, emails I had already forgotten 2 years ago.
I bought this phone in 2018. Where does Android grab these email suggestion from? These are all emails I created so no random email from contact lists.

Check what is the app's package name?

I found where they came from. I traced those emails to my google account. Basically they were stored as login information (chrome autofill)


text:
How do I prevent apps from trying to gain permissions?
I downloaded an app for a restaurant I frequent to collect points. When I tell it to show the QR code to scan at the register, it switches to a screen in my Android Settings to "Modify system settings". Of course, this app should have no business changing my system settings, but I need to press Back twice to get out of the Settings app, and to the QR code.
I'm tempted to just copy the QR code offline, and import it in another app, but I want to prevent apps from asking for these permissions after I've already said no.

If the app opens it's settings page can can not change this behavior. The common way is to make a 1-star rating at Google Play for the app describing the problematic behavior and wait for the response.

Frankly for a restaurant app (which they probably outsourced to someone who writes one app as cheaply as possible and then does minimal customization for each business) my advice would be to delete it.


text:
Apps are crashing endlessly even after a factory reset, preventing me from doing anything
Some apps are crashing endlessly, and I can't do anything because they just keep giving me the same errors.

I've even done a wipe-out/factory reset, but the problem still persists.
This problem was first started long time ago when my battery had problem and my phone just shut down in the middle of work. When I replaced my battery and reset my phone all of my problems were solved. But recently, I mean 5-6 months after replacement, my contact and dialer app started to give me that error. I installed another dialer and contact app and I thought that if I do a reset it will fix it, and when finally I did a factory reset my setup wizard and social plugin and contact and some other apps just have this error.
My Android version is 6.0 and is stock official.

It seems like your firmware are broken, you can try to reflash the firmware, or Install a custom rom. Have also a look in xda in your phone thread maybe this problem has anyone before you.

this problem was first started long time ago when my battery had problem and my phone just shut down in the middle of work but when i replaced my battery and reset my phone all of my problems was solved but recently i mean 5-6 month after replacement my contact and dialer app start to gave me that error and i installed another dialer and cantact app and i thought that if i do a reset factory it will fix it and when finally i did a factory reset my setup wizard and social plugin and contact and some other app just have this error and i did all (FYI my android is 6 and is stock official)

Did you tried to reflash stock firmware?


text:
Recover deleted video in Google Photos app
In Google Photos I deleted permanently a video (before it was backed-up). Is there any way that I can recover it? It's very important to me.

You can only recover videos and photos which aren't permanently deleted.
But if you have mistakenly permanently deleted the video you can contact Google Drive Support regarding this issue. They might help you with this.
But I believe it will be more difficult to recover since Google has removed the Google Drive Support for Google Photos.
Link to Google Drive Support


text:
How do I use an external USB keyboard?
My tablet's running Android 4.0.3, and I'm trying to use an external keyboard with it. My tablet isn't detecting the keyboard, but it works when I plug it into my computer. This keyboard uses a normal USB output to connect, but my tablet uses MicroUSB, so I bought an adapter. How do I get this keyboard to work?

See also this question for more info on testing Host mode and getting it working How can I determine if my device has USB Host Mode (OTG) support?

If your tablet doesn't provide a USB host port, you'll need an USB OTG adapter to connect your keyboard. There are many cheap USB OTG adapters on eBay and other electronics shops.

I don't know if this will help at all, but I had a problem with the Shift Key not working when I had a USB keyboard plugged into my Android phone and I found a solution.  Maybe the solution I found for my problem will fix your problem as well.  If not, I do apologize.
I have a Samsung Galaxy S5 Android phone.  I purchased a USB external physical keyboard that can connect with my Windows computers and my Android devices (via micro USB).  The keyboard worked fine when I plugged it into my Windows computers.  The keyboard worked pretty well Android phone, except for the fact that the Shift Key didn't do anything when I held it down and pressed other keys (to capitalize letters, type symbols found above the number keys, etc.).  I tried a lot of stuff to get the Shift Key to work on my USB keyboard when I had it plugged into my phone. I couldn't get the Shift Key to work when I used the stock Google/Android keyboard app, the Samsung Keyboard app, or the SwiftKey Keyboard app. After a lot of trial and error with apps and settings (and a lot of frustration), I FINALLY came across an app  that DOES solve the Shift key problem: The "Go Keyboard" app on the Google Play app store.
After I installed this app and set it as the default keyboard app on my Android phone (Samsung Galaxy S5), the Shift key  worked just fine when I used it while it was plugged into my Android phone (allowing me to capitalize letters and  type symbols above the number keys).
I hope this works for you, too!


text:
Can I leave it plugged in for charge all the time? -Samsung Galaxy 3 I5801
In short my question is -
What is the battery level at which it starts charging again Samsung Galaxy 3 I5801 device when kept plugged in for charge all the time?
If you want to know background and why I ask this, read whole question below.
This question is based on below answer
Do I have to charge my phone before I use it the first time?

Can I leave it plugged in all the
  time? Yes, and no. This is very
  dependent on whom makes your device.
  For example, my Lenovo laptop will not
  apply a charge to the battery unless
  it is under 97%. When it does charge
  the battery it charges directly to
  100%, then stops until the battery
  sags below 97%. Many laptops did not
  do this, on most just applying charge
  if it is not 100%. This would put the
  battery through thousands of charge
  cycles in a week when you are not
  using the battery. This ages a battery
  quickly.
If your phone maker took the time and
  paid the extra cash then your phone
  will stop charging once it reaches
  full charge and just power the system
  from the wall outlet. It is
  significantly more likely that your
  phone is charging your battery on a
  short cycle and aging it thoroughly.

The answerer mentions that it depends on manufacturer. What's the answer for Android phone? Or if it depends on the Manufacturer what is the battery level at which it starts charging again Samsung Galaxy 3 I5801 device?
So this question is specific to the device - Samsung Galaxy 3 I5801.

As you can tell from what you quoted, it will depend on the manufacturer.

@Cry, my mistake. I've now clarified the question. In short, what is the battery level at which it starts charging again Samsung Galaxy 3 I5801 device?

See also Does constant charging harm my cellphone? http://android.stackexchange.com/questions/1020/does-constant-charging-harm-my-cellphone

I don't know about your specific device/battery but here is a rather detailed article on the battery in android phones and the app used in the article to log battery information is called CurrentWidget
If the article is representative of most smart phones, which I suspect it is, to maximize your battery life your phone does an initial charge to 100% and then maintains the battery at about 93%.
My takeaway is that it is good to leave your phone plugged in and charging when you can but it is not good to frequently plug and unplug your phone.

I think it is safe to say that any modern equipment today will stop charging when the battery reaches full charge. And if it stays on the charger, the device will be powered on by the charger and the battery will not run down. So leaving the equipment plugged all the time should be the equivalent of leaving the device turned off with a full battery inside. As it is said in the reply mentioned in the comments, the best thing to do when storing a battery for a long time is to leave it to 40% charge, but 100% will not harm the device unless you leave it for a very long time.
As an example, since batteries are limited in their amount of charge cycles, it is better to leave it on the charger if don't use the device for a couple of days than to disconnect and reconnect it every day and use some of the cycles.
Personally, I have a 1st gen iPod Touch that is docked most of the time, even for up to a complete month, and the battery is almost at full capacity even after 3 years.

The vast majority of devices I have used do not switch away from battery power when plugged in.  It's certainly not safe to say even if my experience is not the norm.

What do you mean exactly? When the devices you have used are connected, they will charge until they reach full charge, right? but what are they going to do next?

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


text:
How to print screen my application in android phone?

Possible Duplicate:
How to take a screenshot with an Android phone?

How to print screen my application in android phone?

You can use an app called ShootMe from the Market to do this easily (requires root).  You can also use the Android SDK to do it without root, but you have to be connected to your computer.

How about a link?

@Al Posted this just before the web market went live, I think.  Feel free to add the link if you want.

in the android sdk is a tool called DDMS, it will allow you to take screenshots. theres also apps on the market that can do this, but I think they require root.

If you have a Samsung Galaxy S, press the back key and keep it pressed, and then press the home key and release them both.
This will take a screenshot.
It works without rooting, without external applications, and even if the screen is locked.

Awesome. Is this something Samsung implemented themselves and is not available in other phones?

@Slavo Yep, it's part of TouchWiz.

For a Samsung Galaxy Y press the menu button and the power button at the same time to take a screen shot.

Ice Cream Sandwich has this built in, I believe. On my Galaxy Nexus, I hold down Power + Volume-Down, no matter what's on the screen. (It can even be at the lock screen.)

Unfortunately this does not work for me on a generic 7inch tablet (DGM T-703) with ICS (Android 4.0.3)

In Cyanogenmod (7) you can press the power button to get to menu. There you can choose to take a screenshot. The screenshot is taken and it goes to same folder as photos taken by camera.

For Samsung Galaxy FIT press Home + Power at the same time and release. The image will save in Gallery->screenCapture.

I prefer the app AndroSS.  It requires root access.  It's options include:

Choose between .png and two different compressions of .jpg
Choose whether you want to use the hardware camera button or shake the phone in order to take screenshots
Choose how you want to be notified that the screenshot was taken (toast popup, sound, or vibrate)
Choose whether you want it to remain active until you manually disable it or if it should disable itself after one screenshot.


text:
How do I download an app from the market that is restricted in my location?

Possible Duplicate:
How can I use the Android Paid Market from a region where it's not available yet?

I want to download the Kindle for Android app, but it is not available in my region. I tried to mock my GPS location to be inside the United States, but I still cannot find the Kindle app in the Android market.
How do I download an app form the market that is restricted in my locatioon?   Also, how does the android market know where I am? Does it using the GPS location?

This is not official android market, but if you link you can download it from this link: kindle android app

Well what you might be looking for is an app called, MarketEnabler, it changes somenthing like the location of the market so you can access other countries markets.
MarketEnabler: https://market.android.com/details?id=ch.racic.android.marketenabler
With that you could change your locale and get access to market apps in another country, If I'm correct if also includes a list with countries.

this tool works like a charm, thank you very much!


text:
Clock Replacements for Motorola Droid Docking Station
I have a Motorola Droid (v1) and a docking station. When the phone is docked, it automatically runs the Clock app, which isn't very configurable. Are there any alternatives to the Clock app, or is there any way to configure the phone to run a different app while docked?

After you install an app that takes over the Dock intent it will ask which one you wish to use as default.
The one I use is called Gentle Alarm which has a nice Dock display and some additional alarm features.  It is however a paid app.  I know there are several free apps out there as well.

Is there a good keyword to search with to find apps in the Market?

Probably the most obvious would be Clock or Dock and possibly replacement to narrow it down.  Appbrain is excellent for finding apps simply because you can search on their website.


text:
Update Galaxy Nexus from 4.2.2 to 4.3 while keeping files and root
I have a rooted GNex with stock kernel and stock ROM. Device is only rooted, CWM installed and unlocked bootloader.
I received the OTA update yesterday but haven't tried to apply it since I have a custom recovery installed. You should also know that I removed a file called recovery-from-boot.p to avoid the stock recovery from getting reflashed following the indications in this thread http://www.droidforums.net/forum/galaxy-nexus-development/189062-using-rom-manager-only-way-boot-into-clockwork-mod-recovery.html
I'd like to apply the OTA without losing my data and possibly not root. Losing root is not such a big problem but if you know a way of installing the 4.3 update from CWM without losing data then I'd be so thankful!

You shouldn't lose any data by flashing the OTA file. You can flash the ota file (see AndroidPolice for info and where to download it from) and as long as you've not changed any system files it should apply ok. Simply select the "apply update from sdcard" option and select the update file. You will lose root but you can simply flash SuperSu (the only superuser app that works on 4.3 at the moment) which will "re-root" your device. If you get a prompt about disabling recovery flash, select "No" as the new SuperSu uses this part of getting root access.

thanks a lot, just a few questions, should I select install from zip in CWM and then find the OTA that was downloaded to my phone or should I manually download the 4.3 update from Google and put it on the root of my sd? Also, when it's done applying the update should I then install the SuperSU.zip in CWM or first reboot the phone? Or is it better to flash SuperSU from my pc? Sorry for all the questions but I'm not that good at this, almost bricked my old Sony Xperia Ray once :S

I'd suggest downloading it from Google as then you know exactly where it is.  You can flash SuperSU straight away, no need to reboot. If you get a prompt about disabling recovery flash, select "No" as the new SuperSu uses this part of getting root access.

Btw, the only system file I've changed is the "recovery-from-boot.p" file which I deleted, but that shouldn't matter, right?

Thank you so much for your help, one last question, over at XDA I was told "Just remember to tell CWM to NOT fix the stock recovery flashing. Like I said, superSU will do that for you." I asked for clarifications yesterday but nobody has answered, do you know what he meant?

I think that should be ok. I just edited my previous post as i provided the wrong link. AndroidPolice has a guide which contains links for a couple of variants of the Galaxy Nexus (i've linked to the international variant without Google Wallet)

The stock rom includes a install-recovery.sh file which flashes the stock recovery. The new SuperSU uses this file to provide superuser access, so CWM will offer to disable this. You need to choose "No" so that it doesn't delete this file. If you forget you can simply flash SuperSU again and it'll put it back in.

Just wanted to tell you that the whole process went fine, but I did a nandroid backup first just to be safe ;) The phone seemed a bit confused at first, as the OTA Update Available icon remained in the notifications bar for a few minutes. Thanks again for your help :)


text:
Unable to upgrade rooted 4.2.2 with OTA update 4.3
I bought my Nexus 4 from Google a while ago with 4.2.2 on it. It's using the stock rom, but it is rooted and has an unlocked bootloader.
When I try to install the OTA 4.3 update, the phone reboots and goes into Teamwin Recovery.
Then it looks like it tries to install it and then goes to the normal Teamwin recovery screen where I have to select Reboot > System to get back into the OS. And when I go back into the OS it's still 4.2.2.
What should I do? I think my best option is to manually install the update, but I don't know where it got downloaded to.


text:
Android Battery Report
Is the Android OS battery breakdown not an exhaustive list of battery drain sources?
I find that it never adds up.
One time, after not restarting the phone for a month, the battery started to drain from 70% to 0% in 8 hours while I slept.
But the battery report did not report the app that cause this drain, everything was just 5% or less. And the total doesn't add up to even  25% of that drain.
Can the battery drain not detect certain sources like stuck background apps or something?
Environment:
Samsung Fold 4 Android 13

On Pixel 3a, Android 12, the Battery usage can also show the system usage, like: Screen, Wi-Fi, Phone idle, Android OS, Android System, etc. Is it not shown on your device? (Perhaps mentioning the device model might also help since manufacturers do customize their Settings menu)

Fold 4, when I check the Battery report, there's no mention of Android OS, System, WiFi.  Those could be not reported or just not incurring a significant enough consumption to be shown.


text:
Unexpected behavior after rooting
I Just rooted my phone (Motorola RAZr D1) in order to allow aditional space for instalations. I could not find a proper way to root this device on XDA fórum so I went to internet. I got root acces by instaling Kingsroot app but since then the phone is showing strange behavior like consuming more batery, auto enablig data of the SIM, and not allowing some aplications to be installed (espacially those related to security like SuperSU and some AV), etc.
I suspect the phone was hacked so I perform factory resset via the system management tools. But the malware is still there...
And if I try the reset via initialization tool (power+volUP) the options are all in chinês which I am not able to understand....
what can I do to recover control of my device?
UPDATE:
I have android 4.4.2 (KitKat) installed in which Framaroot does not work.
I want to get superSU installed on /system and set it as the default root manager but kinguser (that is the malware, I am almost sure) doesn't prompt for authorization with other superuser applications of android market (like superSU in https://www.youtube.com/watch?v=uNrny2A6g1g or superuser).
Some apllications got autorization now (like root explorer and Avast) but not the terminal which could also de helpful.
How to make it?

Please post back when your issue has been resolved.

If you're certain that malware is still there even after Factory Reset, it means it is now in /system or a location outside the ambit of Factory Reset. In such case, you need to format the various partitions, or to be precise, you need to install ROM from scratch to completely get rid of Malware. Look for fastboot type ROM for your device on WEB. And from now on, use APK's that are well trusted in the Android Communities. Rooting can be done easily from Custom Recovery. So never try Rooting using APK's unless no option works.

Thank you for the suggestions... Actually I searched a lot tutorial on how to root my device without any APK but nothing... And even on fóruns I trust a little bit I found ways to root the system (e.g. Framaroot does not work after android 4.4.2 KITKAT)

Are you sure that you have malware, not just wrong settings in kinguser? (Ones that revoke and run in background using battery)
Please take look at this http://www.youtube.com/watch?v=Vl8z37PhEe0, each screen is viewed
Pause the video on each screen and match the screen up to yours (since in Chinese), taking note of settings - placement of options should be the same between languages.
Once understood and set right, follow this guide for properly rooting your device (start 8/27/2013). This guide is from the XDA developer chrono_s3rge and in English.
How to Root Motorola Razr D1 XT914:

Download the latest version of Framaroot, from XDA developer alephzain
Install and open Framaroot (you will have to enable unknown sources)
Select "BOROMIR"
Reboot device
Enjoy

Check application list for SU to confirm that root worked. Update the binary, then once up and working, uninstall kingroot.
Always perform a backup, in case of issues and for data replacement.
Rooting your device is potentially dangerous, security issues arise, and other problems that could brick your device - making it unusable. Please know that you and you alone assume responsibility from rooting your device. That being said enjoy responsibly

The asker already (unintentionally) made a terrible mistake of using Apk inside Android to root Android which led to malware infection. Even though Framaroot works well, it is not very trustworthy from the standpoint of ROOTING (Supreme access) and I suppose it shouldn't be suggested without a warning. The issue the asker mentioned is to recover now, where Factory Reset isn't helping. Framaroot definitely can root the device here but it certainly cannot get rid of malware which is the pivotal issue.

@Firelord When another superuser app is installed, which can be accomplished in askers present staste, older superuser apps are overwritten. Thus their data is flushed. Corruptible malware should stop running. Should be able to manually locate malware and delete. I didn't suggest a warning, asker should already be aware of potential security problems from website they downloaded kinguser from. But your right, I will edit that in

It is true about the fact of overwritten, nothing stops the malware from downloading other Root binaries which should work alongside with the Current or future Root binaries installed by ROOT apps (This is hypothetical, I'll search more to back it up). That said, if the malware is able to access ROOT in asker's present scenario, it can easily block 'Framaroot' ((which is actually nothing but exploiting vulnerability and pushing binaries to exploit)) from Rooting the device. Besides, a presumption that User should be aware of something more or less beats the purpose of Q/A here.

@Firelord This all comes back to using incompatible firmware and not fully searching information out. Not warning them about something that they should have realized before initially attempting to root their device, doesn't beat the purpose of Q/A. User didn't ask about potential threats of rooting, but rooting with wrong software and undesirable results. We are past the point of warnings, its already too late. But I digress, I am thinking this just might be the settings in the kinguser app restricting everything. I will research.

I have ICS 4.4.2 and Framaroot doesn't work anymore. And about the kinguser it is working the same way that shown in the video. I suspect Kingsroot is the malware because it insists on enabling data even during night. SuperSU is now installed but kinguser doesn't prompt the window to allow it to run. And it is not updating the binaries :(
I think maybe I workaround can be useful. I want to get superSU installed on /system but have no idea on how.

I want to get superSU installed on /system and set it as the default root manager but have no idea on how. kinguser may be the malware and it does not prompt for authorization with other superuser applications from android market (like in https://www.youtube.com/watch?v=uNrny2A6g1g). How to make it? [original post updated]

Inside kinguser settings, basically set everything to allow changes.There should also be some setting for switching to another superuser app. I don't use king user, so not sure where. Recheck videos screens against yours. I'll find out more after work and post back.

The video is showing Avast Mobile Security is installed, and that is uninstalling kinguser after installing SU (from Play Store and also updating binary). Do you have a custom recovery installed? (CWM,TWRP, or ???)


text:
Install OpenGApps in Android Studio Emulator (Marshmallow)
I wanted to install OpenGApps in an Android emulator (created in Android Studio). The emulator is running with Marshmallow. There is enough storage space available, so this is not the problem. I tried everything which I found on Google, but it just wont work.
While the emulator is booting up, and I keep spamming adb remount, first it shows remount succeeded, and just after the desktop shows up, it suddenly says remount of /system failed: Read-only file system and remount failed.
So it doesn't work either when I try to push an OpenGApp .apk using adb push. If I try after booting up, it says: adb: error: failed to copy 'Phonesky.apk' to '/system/priv-app/Phonesky.apk': Read-only file system (or whatever the .apk is).
I can't remount /system with rw either: When I make the following:
$ adb shell
> *some remount command*

Following shows up: mount: Read-only file system. I tried it with various commands (substitute one of them with *some remount command*, the output is always the same):

mount -o rw,remount /system
mount -o rw,remount /system /system
mount -o rw,remount /dev/block/vba /system
mount -o rw,remount /dev/block/mtdblock0 /system
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system

I also tried to run su after adb shell, but it had no effect either. I also tried to remount rootfs to / first with rw. This worked without an issue, but the remount for /system gave the same error as without remounting rootfs.
Could anyone help me with this struggle?
Edit 1: I also tried it with various different emulator settings, it didn't change a thing either. So I guess this problem is not depending on the emulator itself...
Please note: A bounty was offered to resolve this question, but I don't have much time for this at the moment. I would be grateful if you would ping me on twitter if an answer worked for you, so I can eventually accept it after I have tried it by myself. But this would save me a lot of time. Thanks

Not sure if that is possible on the default emulator. I would use Genymotion.

I suggest using Genymotion for all your emulator needs.
After getting Genymotion set up with emulated device of choice, download ARM translation and GAPPS.
Those files come in a .zip format, do not unpack them!
I would have normally installed ARM Translation which will let those ARM apps be able to run on this x86 virtual device. Afterwards Install GAPPS (make sure to use appropriate version for the system you are building).
To install the above mentioned files I have used the drag and drop technique. Restart the device when done.
 Hope this helps

This is also how I would do it. Not sure if OP is considering using a different emulator. He might be stuck with the default one because of corporate computer or something.

It was more because of the fact that I never heard of that and was rather sceptical. But, and this is more important, I use the default emulator for a lot of things and I don't want to run a hundrets of emulators, each for different use cases...


text:
Would I install android studio with 2 GB RAM

Would I install Android Studio on my PC that have Window 7 and 2 GB RAM?

8 GB RAM recommended
2 GB of RAM isn't enough for any of the platforms. 3 GB RAM is the minimum plus 1 GB for Emulator = 4 GB minimum. However 8 GB RAM is recommended.
From Android Studio Requirements:
Windows

Microsoft® Windows® 7/8/10 (32- or 64-bit)
3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
2 GB of available disk space minimum,
4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
1280 x 800 minimum screen resolution

Mac

Mac® OS X® 10.10 (Yosemite) or higher, up to 10.13 (macOS High Sierra)
3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
2 GB of available disk space minimum,
4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
1280 x 800 minimum screen resolution

Linux

GNOME or KDE desktop
Tested on Ubuntu® 14.04 LTS, Trusty Tahr (64-bit distribution capable of running 32-bit applications)
64-bit distribution capable of running 32-bit applications
GNU C Library (glibc) 2.19 or later
3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
2 GB of available disk space minimum,
4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
1280 x 800 minimum screen resolution

Note: Probably works with Ubuntu's default Unity desktop which is based on Gnome but Google only says "Gnome" or "KDE" so this needs to be tested.

No. You need at least 3 GB RAM. Source.

Your answer is very short, to the point, and gives a solid reference. Nicely done.. Although it might be noted: "Plus 1 GB for the Android Emulator"... and why would you have Android Studio if not using the emulator? So in reality, 4GB is the minimum RAM required for a usable installation.

@acejavelin No, you are not forced or obligated to use AVD. You don't have to. So it's 3 GB.