Android Security Questions

TiredEngineer

Member
Jul 26, 2013
98
0
66
I am a hardware engineer with some limited software knowledge. I am ULTRA paranoid when it comes to security and have a few questions:

1) People do seem to be paying attention to app permissions now. If an app only had network and storage access permissions, people would probably think it seemed pretty tame. Am I wrong in thinking this is probably the most dangerous an app could be? With these permissions it seems that the app could siphon EVERYTHING off your phone to their servers.

I guess my question would be, do Apps that have read/write storage access, have at the very least read access to all files? For example, it seems that my music app can scan for music, which is fine obviously, but what is stopping it from scanning ANYTHING else on my phone? Like business related documents, private notes, etc...then uploading these to their servers.

2) If an app only has network access, but no access to storage, I assume it would have no ability to add anything malicious locally after installation (or transmit anything off your phone)? Basically, can an app load malicious code from the network?

3) One nice feature on the iPhone is that a full reset actually does a decent job protecting your data. On Android this is not the case. Does Android device encryption actually encrypt everything (i.e. starting from the root (/) directory)? If this is the case, I would assume that a full device encryption, followed by a factory reset would nearly be akin to running a dd urandom on the drive.

4) Google seems to be stepping in the right direction with the new App Ops in Android 4.3. I am not sure what direction they will be taking this, but currently on my Nexus 7 it does not allow you to prevent access to storage or the network (for example I would like to block Final Fantasy from having network access and Weather Bug from having storage access).

Regardless, can an app automatically run on installation? The reason I ask is let's say you are downloading a seemingly benign app, but it really wants to make a dump of personal data and send it to their servers. If I download the app, could it start doing this immediately, or would I need to manually launch it first? If this was the case, then App Ops would not be very useful against certain malicious apps if they have the 1-2 minutes to dump off your contacts list before you could shut them off in the menu.
 

teejee

Senior member
Jul 4, 2013
361
199
116
An app can never read any files belonging to other app or system. So no worries about item 1. It just means that the app can store data on the phone and read it back. If you root your phone you can let an app read/write other files as well though.
 

papaschtroumpf

Senior member
Mar 5, 2003
879
5
81
Although app data and settings are generally encrypted with a key specific to that app, so even though root can read/write the file or copy it off somewhere it still doesn't mean they can actually understand the contents.
There is a lot of FUD out there regarding "poor" android security.

The new stuff in 4.3 is really about preventing users form messing with the wrong stuff, so really about limiting kids' ability to do things on dad's tablet. It doesn't help much with security.
 

T_Yamamoto

Lifer
Jul 6, 2011
15,007
795
126
Android is safe, as long as you don't download a malicious application.

If you're so paranoid, root it so you have better access over the OS.
 

TiredEngineer

Member
Jul 26, 2013
98
0
66
I downloaded file explorer (non rooted version), and I can get to almost any file and share it through email (there were a few blocked folders).

It seems that if an app has network access it could package any number of files off.

From my understanding, the /sdcard directory is a public directory for all apps. The downloads folder is in this public access area. I have downloaded many things from web portals that are personal or proprietary, and it would appear that any app can access this and do what they want with it.