News for hackers. Stuff that matters.
Re:Using Rowhammer bitflips to root Android phones by beambot on Monday October 24, 2016 @02:09AM (#12776971)
Dumb question (maybe OT): why is rooting phones so hard in the first place? Shouldn't root permissions be part of device ownership (akin to fair use)? Why do I have to hack my own phone to get unfettered access?
Re:Using Rowhammer bitflips to root Android phones by zigzigzag on Monday October 24, 2016 @02:19AM (#12776995)
You don't, if you care enough to buy a phone where that's possible. Any Nexus device can be reflashed to a custom Android build for example. Of course you void your warranty that way.

What you're really asking is why is there no root shell by default on all phones, and simply posing the question also answers it - it's a phone, there's zero demand for messing about with terminal emulators on a phone. If you say, but I'd like to install apps as root, the problem is such apps could break the phone in arbitrary ways like by infecting it with malware/adware/spyware that then can't be uninstalled. Modern operating systems are very much designed to limit what apps can do to avoid the nightmare that desktop OS's turned into, where people are afraid of installing apps in case something goes wrong. For better or worse you can install apps on Android/iOS without much fear, which is one reason people do it so much: you can always remove the app again if it's trouble.

Android is pretty customisable and has lots of permissions anyway. There are very few things you can't do if you don't have a carrier-locked phone. So supporting apps with root access would vastly worsen the malware situation in order to satisfy a tiny number of geeks who like editing config files: a very bad tradeoff.

But hey, Android is open source, so if you think I'm wrong go ahead and make money selling phones with root access.

Re:Using Rowhammer bitflips to root Android phones by chx on Monday October 24, 2016 @02:38AM (#12777033)
Of course we shouldn't forget little niceties like YouTube not being able to play background music. Only the paid YouTube Red service can do that which is simply not available in many countries -- but even in those YT won't play in the background. Unless, of course, you have xposed installed... So, as usual, controlling what you can do with your own device results in a) perceived gains for the rightholder b) pain for ordinary users c) nothing at all for the informed. If this resembles the DRM situation, it is.
Re:Using Rowhammer bitflips to root Android phones by zigzigzag on Monday October 24, 2016 @04:44AM (#12777407)
What's that got to do with root access?

If you can beat YouTube's DRM then you can just make your own player app. No need for root.

If you can't then what makes you think you could defeat whatever checking for rooted devices YouTube would add to their app?

Anyway, this sort of discussion is pretty pointless. The market has spoken. The number of people who care about root access is tiny compared to the number of people who want a safe device and app experience. Heck the entire iPad/iOS experience is pretty much "let's take a general purpose computer, make it do less, and it'll sell much better".

Re:Using Rowhammer bitflips to root Android phones by chx on Monday October 24, 2016 @09:22AM (#12778489)
Um, how do you plan to install xposed if you are not root?
Re:Using Rowhammer bitflips to root Android phones by Dylan16807 on Monday October 24, 2016 @05:11PM (#12782945)
You install your own player app. You don't need xposed. You don't need root. You do need to sideload because the app store forbids anything that annoys youtube.
Re:Using Rowhammer bitflips to root Android phones by kogepathic on Monday October 24, 2016 @08:31AM (#12778205)
Just install NewPipe and you can download YouTube videos to your phone, or only download the audio. [1]

Works fantastically.

[1] https://f-droid.org/repository/browse/?fdfilter=NewPipe&fdid...

Re:Using Rowhammer bitflips to root Android phones by chx on Monday October 24, 2016 @03:36PM (#12782054)
Oh. And how do you install F-Droid?
Re:Using Rowhammer bitflips to root Android phones by ce4 on Monday October 24, 2016 @04:42PM (#12782691)
The process is called sideloading. Android offers it for free, whereas on iOS you need a developer license to do it. https://f-droid.org/forums/topic/how-install-from-f-droid/
Re:Using Rowhammer bitflips to root Android phones by chx on Tuesday October 25, 2016 @12:53PM (#12789501)
Let's prod further. How do you sideload if you are not rooted? I can't remember what you can and what you can not do but I am reasonably sure you can't just adb install foo.apk if you are not rooted as the "untrusted sources" option won't be available.
Re:Using Rowhammer bitflips to root Android phones by ce4 on Saturday November 05, 2016 @07:58PM (#12882596)
Go to settings=>security and enable "unknown sources" (allow installation of apps from unknown sources).

After that you are allowed to install .apk files (e.g. clicking the "download of xy.apk finished" notification or in a file explorer app).

Edit: that setting is always there, it's only greyed out if you installed a corporate app that explicitly disables it (e.g. the "GoodApp" email/calendar/contacts suite).

Re:Using Rowhammer bitflips to root Android phones by detaro on Tuesday October 25, 2016 @12:56PM (#12789530)
It's explained (not well, but it is) in the link ce4 gave you. You enable it in the settings and and then just install packages.

EDIT to match your edit: you remember wrong, the option is always there (unless there is some manufacturer out there that blocks it (Amazon maybe?), but most devices certainly don't)

Re:Using Rowhammer bitflips to root Android phones by tokenizerrr on Monday October 24, 2016 @03:45AM (#12777233)
> Only the paid YouTube Red service can do that which is simply not available in many countries

Oh yes, this. I pay for Google Music which is supposed to include that, but I do now have it by virtue of living on the wrong side of some border.

Re:Using Rowhammer bitflips to root Android phones by shaggerty on Monday October 24, 2016 @05:29PM (#12783093)
You can play YouTube audio in the background and with the phone locked if you use Firefox.
Re:Using Rowhammer bitflips to root Android phones by dingo_bat on Monday October 24, 2016 @04:28AM (#12777360)
Just install Firefox and you're set.
Re:Using Rowhammer bitflips to root Android phones by jbmorgado on Monday October 24, 2016 @08:58AM (#12778334)
> "Any Nexus device can be reflashed to a custom Android build for example. Of course you void your warranty that way."

Maybe in the USA you do (I'm not sure about consumer protection law there), but in the EU you certainly don't. The law states clearly that: It's up to the manufacturer to prove that the unintended software modification caused the hardware problem.

So, if your software modification doesn't pose any problem, or even in the case it does, if it doesn't affect the part of the device you are asking to repair under warranty, then the manufacturer has to make the repair under warranty.

Re:Using Rowhammer bitflips to root Android phones by darklajid on Monday October 24, 2016 @03:32AM (#12777197)
"Of course you void your warranty that way."

Wait.. What? Why would that be the case? And .. why would you state that you'd lose your warranty and prepend 'of course'?

As far as I'm aware you do NOT lose your warranty. That would be rather stupid (of course).

Re:Using Rowhammer bitflips to root Android phones by orf on Monday October 24, 2016 @03:53AM (#12777250)
Because if you go about flashing your phone willy-nilly and some bad firmware bricks the phone, it's not the manufacturers fault is it.
Re:Using Rowhammer bitflips to root Android phones by izacus on Monday October 24, 2016 @05:35AM (#12777576)
Yes, if your firmware breaks the phone it won't be covered under warranty. If your phones hardware breaks, the firmware doesn't matter.

Of course the manufacturers, who have vested financial insterest, will make you think otherwise.

Re:Using Rowhammer bitflips to root Android phones by jjawssd on Monday October 24, 2016 @11:10AM (#12779481)
It's cheaper for manufacturers to blame non-official firmwares for bricking a phone and saying "I told you so" as a big fuck you
Re:Using Rowhammer bitflips to root Android phones by darklajid on Monday October 24, 2016 @04:22AM (#12777339)
I'd argue that you have a hard time bricking a phone.

But even if you manage to do that somehow, that is a specific problem. Using a general statement like 'flashing voids your warranty' remains weird (and wrong imo).

"Stuffing your phone in your pockets voids your warranty. Because if you stuff it in your back pocket and sit down on it, hard, it's not the manufacturer's fault if the screen breaks. Is it?"

Re:Using Rowhammer bitflips to root Android phones by justsid on Monday October 24, 2016 @05:10AM (#12777492)
But you _do_ void the warranty if you break your phone when sitting on it. It's a specific action that does that, and it's not as simple as "only rooting your phone voids the warranty"
Re:Using Rowhammer bitflips to root Android phones by darklajid on Monday October 24, 2016 @05:22AM (#12777541)
I.. think we agree? Are you just chiming in to support my position? Because I think that is what I wrote above. That was the point, I tried to answer the GP's 'if you brick it (by flashing it)..' line of reasoning with 'if you brick it (by sitting on it)..' and showing that there is no connection between flashing and bricking in general.
Re:Using Rowhammer bitflips to root Android phones by cfstras on Monday October 24, 2016 @06:34AM (#12777762)
There's plenty of opportunity. For example, there are reports of flashing the wrong firmware (Galaxy Note) on a similar phone (Galaxy SIII) can lead to bricking touchscreen controller-
Re:Using Rowhammer bitflips to root Android phones by darklajid on Monday October 24, 2016 @07:18AM (#12777915)
There's also plenty of opportunity to accidentally drop your phone in the loo. Common sense and being somewhat careful helps in the vast majority of things, flashing your phone included.

That said, even if you flash stuff without reading instructions or fully understanding what you do: Most errors I've seen are flat-out not working (software stating: "Can't do this, you're messing up") or recoverable/soft-bricks only.

(In the end it doesn't matter if you CAN kill your phone by flashing nonsense: That still wouldn't make a good argument for "Flashing voids the manufacturer's warranty". I'd just mean that those individuals who bricked their phone .. might not be covered.)

Re:Using Rowhammer bitflips to root Android phones by SixSigma on Monday October 24, 2016 @07:46AM (#12778011)
Since when is dropping your phone in the toilet covered under warranty ?

Apple added "been in water detection" to avoid payout on that very activity.

Re:Using Rowhammer bitflips to root Android phones by darklajid on Monday October 24, 2016 @08:23AM (#12778161)
I never claimed that this was under warranty. I'm constantly trying to use this thread to kill any connection between 'rooted my phone', 'flashed a different firmware' and 'bricked my phone'.

GP replied to one of my posts, saying that there IS a real risk of bricking your phone when you flash it (I don't disagree, but consider it unlikely).

By comparing the process with a totally different ~real risk~ (phone -> toilet) I'm trying to drive the point home that it isn't a problem of either flashing your phone or playing some mobile game on that white throne of yours, it is a problem of being careless. Bricking my phone shouldn't be covered by a warranty. Flash or flush doesn't matter.

But trying to imply that the warranty is void because I installed software is overly broad and crazy: If I flash CM today and the phone dies in a month from now due (battery dead, hardware issues w/ screen or power button, antenna issues, pick anything faulty you had with a vanilla/unchanged handset in the past), then CM isn't to blame and my phone has a working warranty (for all I know, for all I care - and anything else seems completely unacceptable in my world).

Re:Using Rowhammer bitflips to root Android phones by ce4 on Monday October 24, 2016 @05:04PM (#12782879)
It's possible, but rare. As an example, some Samsungs had faulty eMMC chips (used in the Galaxy Nexus, SGS2 and Note 1) and certain operations when installing custom ROMs (eMMC secure erase/wipe) would trigger the infamous BrickBug that crashes the eMMC chip from next boot on. The problem was faulty eMMC firmware that Samsung later patched but never acknowledged (it was discovered by reverse engineering [1]) and worked around.

[1] https://plus.google.com/+AndrewDodd/posts/Drq9uJbkGfq

Re:Using Rowhammer bitflips to root Android phones by tmzt on Tuesday October 25, 2016 @01:49AM (#12785604)
Are you aware if eMMC firmware is signed?
Re:Using Rowhammer bitflips to root Android phones by singold on Monday October 24, 2016 @08:20AM (#12778148)
The thing is that if you drop the phone in the toilet you aren't covered but that doesn't mean that you void your guarantee by using your phone while you are there, for me that's the difference.

If I flash my phone and later some part of it breaks because it came bad from factory, that is independent of me flashing the phone and should be covered.

Re:Using Rowhammer bitflips to root Android phones by rlpb on Monday October 24, 2016 @07:49AM (#12778025)
Then it is your flashing of your phone willy-nilly and bricking the phone by doing that which might void your warranty, not rooting your phone.

Of course, this depends on the laws in your jurisdiction.

Re:Using Rowhammer bitflips to root Android phones by StavrosK on Monday October 24, 2016 @07:53AM (#12778045)
Yeah, I'm tired of using these proxies to unwanted behaviour when the behaviour itself is easy enough to see.

"What did you do that bricked your phone?"

"I flashed some custom firmware and stopped the flash mid-way"

"But how? All our phones are locked"

"I unlocked it"

"Aha! That is the real culprit!"

Re:Using Rowhammer bitflips to root Android phones by wccrawford on Monday October 24, 2016 @12:23PM (#12780236)
I haven't worked for a computer manufacturer for a couple decades now, but back then it was common to require the user to use the stock software when requesting support. If you removed Windows and installed Linux, they wouldn't support it. If anything went wrong, they'd point to your changes and say that they are a possible cause and basically refuse to try to fix it until you un-did those changes.

Likewise, if you hack special software onto the phone, overriding protections that they put in place to prevent it, I could see them refusing to spend time and money trying to fix the phone until you undid those changes first. And I believe some of those changes can't be un-done fully, even if you re-flash a stock firmware.

The net effect is that it effectively voids your warranty.

So no, technically you don't lose your warranty, but you also can't really make use of it, either.

This really only applies to software things, though. Hardware problems, like the battery exploding or the phone just refusing to turn on would still be easy to get covered, since you can't even get far enough to see it's been modified.

But if the GPS stops working or it stops receiving calls, they could blame it on the custom firmware, and they might even be correct.

Re:Using Rowhammer bitflips to root Android phones by darklajid on Monday October 24, 2016 @02:18PM (#12781339)
I'm ignoring support - support is a different issue and unrelated when we're talking about the warranty here.

If I hand in my handset to claim my warranty, I'm fine with a 'wipe by default' policy. In fact, my limited experiences (both with my phones and the ones from my closest family) that was implied anyway: You'd get the phone back with a ~fresh~ factory image (and all the crap- and adware that this includes).

So here's the thing: If I claim that GPS doesn't work, you reflash it with a Known Good™ image and GPS still doesn't work - then the device has a hardware problem.

If I can cause a hardware problem by running a different flavor of Android, then .. that's a serious hardware _design_ problem.

I'm not saying that you cannot kill or damage a device. But defaulting to 'You installed stuff, you probably caused it' seems rather simplistic, is probably wrong a good number of times.

You brought up PCs: I think you'd have a hard time if you'd defend the stance that installing Linux on a laptop voids the warranty. Granted, the underpaid tech support might not be able to help me around software issues, but if I claim that the wifi doesn't work and send it in... Do you believe they can/could/should refuse to check and fix the problem under warranty?

Re:Using Rowhammer bitflips to root Android phones by wccrawford on Tuesday October 25, 2016 @07:02AM (#12786823)
>Do you believe they can/could/should refuse to check and fix the problem under warranty?

I'm actually saying that they did refuse to attempt to fix the problem unless you restored the original OS that they sold it to you with. (I believe upgrades to newer versions was okay, because those were supported on newer computers. I didn't encounter that situation in the time I was there.)

Having said that, I didn't always toe the company line. I often did my best to help people who were using an unsupported configuration (added internal hardware, different OS) but there was still a limit to what I could do. Unlike most of the others, though, I had a few years experience working at a computer shop, so I actually knew things and wasn't just reading from the company intranet's guides.

I got caught a couple times on software problems that appeared like hardware problems, too. By not forcing them to revert to the original software, and then escalating them to second tier support, I ended up getting in trouble. So there was at least some method to their madness.

Sending it in, though... There wasn't a place to do that. So far as I know, there weren't any physical stores other than big name retailers like Best Buy, and you couldn't just ship it in without going through phone support. So you had to try the advice from the phone support first before shipping it in.

Re:Using Rowhammer bitflips to root Android phones by josephg on Monday October 24, 2016 @07:06AM (#12777866)
Because the trust model on phones is different.

On old UNIX mainframes the trust model had 2 kinds of actors:

- System administrators

- Users

The biggest security concern was one user getting access to the files of another user on the same system. The sysadmin decided which applications to trust (and most of them were either opensource or made by big companies, so we didn't have to worry about application developers doing nasty things). As a result, applications just ran with all the permissions of the user who started them. They could do anything that the user themselves were allowed to do, like read all your files, open a network connection and send your secrets out over the internet. But so long as users didn't run any dodgy programs it was (mostly) fine.

All modern desktop operating systems inherit that system. But over the last couple decades three things have changed:

- Computers got so cheap that now everyone has their own

- There are more apps than ever, and some of them are malicious

- There aren't enough sysadmins to save grandma

Modern phones we have a much better security model, which they inherited from the web. There are two changes:

- Multiuser support is gone at an application level.

- Apps are sandboxed from one another to protect you and your data from malicious apps. The way they do that is by isolating each app on the phone so no app can read&write to any of the data owned by another app.

For example, if you use google docs then by necessity you have to trust the docs app with your documents. But thats it! The google docs app doesn't get to access to your facebook login information. And the facebook app doesn't have access to your google account. If you had equivalent native apps on your desktop, these apps would be able to read one another's files!

But rooting your phone (at least partially) ruins all that! Rooting (by definition!) gives some 3rd party apps the capacity to access data stored by other apps on your device, which ruins the phone's security model.

The reason why some manufacturers (like apple) take a hardline stance against rooting is that if rooting your phone was easy, some app developers would undoubtably decide they'll only function on rooted devices. (This happens on android today for wifi sniffers and stuff like that.) If enough apps do that, the manufacturers will feel pressure to make it easy to disable app sandboxing, which will result in more and more apps wanting "Full permissions on your phone". People will mash "yes" on the install box (nobody reads that stuff anyway) and before you know it there'll be malware on your phone reading your email and threatening to send porn to your boss on your behalf if you don't pay up. DDoS attacks will come from phones, and will cripple the mobile network. And to fix all that norton will release an android version which will start scanning your phone for viruses at the worst possible moment of that show you like on netflix.

And that is why rooting your phone is hard.

Re:Using Rowhammer bitflips to root Android phones by kps on Monday October 24, 2016 @11:09AM (#12779464)

  > […] the data owned by another app.
This makes me sad. I don't want my data owned by an app, I want it owned by me.

(This does not imply allowing all software running on my behalf access to all of my data all of the time.)

Re:Using Rowhammer bitflips to root Android phones by URSpider94 on Monday October 24, 2016 @11:52AM (#12779903)
the parent is using "owned" in the filesystem sense of the word, meaning what entity controls access and permissions for the files. That's completely separate from ownership of the data, in the sense of copyright and data portability.

Apps owning their own data in Android should make you happy, not sad, because it's what prevents a malicious app from hoovering up all of your Tinder messages, or your financial data from Mint.

Re:Using Rowhammer bitflips to root Android phones by donutz on Monday October 24, 2016 @01:16PM (#12780765)
> Apps owning their own data in Android should make you happy, not sad, because it's what prevents a malicious app from hoovering up all of your Tinder messages, or your financial data from Mint.

That's well and good, but it also prevents YOU from hoovering up all your data.

Re:Using Rowhammer bitflips to root Android phones by kps on Monday October 24, 2016 @01:13PM (#12780726)

  > That's completely separate from ownership of the data
No, it isn't. Under the app-controlled model, my access to my data is limited to what the app offers.

  > […] it's what prevents a malicious app from hoovering up all
  > of your Tinder messages, or your financial data from Mint.
That's an implementation of access control using the app-owned-data model. It's not the only possible implementation of access control.
Re:Using Rowhammer bitflips to root Android phones by Dylan16807 on Monday October 24, 2016 @05:21PM (#12783034)
> The reason why some manufacturers (like apple) take a hardline stance against rooting is that if rooting your phone was easy, some app developers would undoubtably decide they'll only function on rooted devices. (This happens on android today for wifi sniffers and stuff like that.)

Are you claiming that wifi sniffers could work without root, and require root for other reasons? An app that uses root to work around a gap in the permission system is not in support of your point.

Also, apps can already force the user to grant them very invasive permissions or exit. Yet I don't see it being universally abused.

Re:Using Rowhammer bitflips to root Android phones by startling on Monday October 24, 2016 @04:18AM (#12777323)
This isn't about you, the consumer, getting root access. It's about a piece of code running on your phone (i.e. maybe part of an app with restricted permissions) getting root access.
Re:Using Rowhammer bitflips to root Android phones by grawlinson on Monday October 24, 2016 @02:11AM (#12776978)
Most likely related to strict FCC regulations regarding the mobile transceivers.

And it's always been done this way, old "dumb phones" have always been closed proprietary blobs.

Re:Using Rowhammer bitflips to root Android phones by askvictor on Monday October 24, 2016 @02:19AM (#12776996)
That doesn't explain phones with easily and officially supported unlockable bootloaders (eg Nexus). The transceiver is, in any case, a seperate processor (the baseband) which is much more locked down.

The real reason is that hardware manufacturers like control.

Re:Using Rowhammer bitflips to root Android phones by Jonnax on Monday October 24, 2016 @04:59AM (#12777451)
Well there's also the part where root access fundamentally breaks the security model of the device.

I'd say it's a better way of running a consumer device for the typical user. For example, any application you run on a Windows PC even without administrator access could access and upload your web browser profiles. The average user doesn't expect this.

But a lot of manufactures do give you the choice to run your own firmwares which can have the root user access. It'll require a bootloader unlock which removes the signature checking.

For example: HTC: http://www.htcdev.com/bootloader

Motorolla: https://motorola-global-portal.custhelp.com/app/standalone/b...

Sony: http://developer.sonymobile.com/unlockbootloader/unlock-your...

LG: https://developer.lge.com/resource/mobile/RetrieveBootloader...

Huawei: https://emui.huawei.com/en/plugin/unlock/index

Couldn't find an official page for Samsung but it looks like it's a matter of running fastboot after enabling OEM unlock in developer settings.

The other side of this is that there are quite a few devices that are carrier branded. And usually what happens is that carrier requests that the phone's bootloader is not unlockable.

Sadly unlike how Apple can sell their phone without any carrier modifications, Android manufacturers have to accept these kinds of changes otherwise they won't be able to sell their phone.

Re:Using Rowhammer bitflips to root Android phones by tdkl on Monday October 24, 2016 @07:16AM (#12777908)
> Well there's also the part where root access fundamentally breaks the security model of the device.

Good thing we're still admin/root on our personal computers. Seeing what MS/Google are doing, perhaps not for too long.

Re:Using Rowhammer bitflips to root Android phones by firethief on Tuesday October 25, 2016 @04:54PM (#12791572)
Re:Using Rowhammer bitflips to root Android phones by swiley on Monday October 24, 2016 @06:00AM (#12777662)
A security model that locks the user out of their own device sounds fundamentally broken.