Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

Seems to work on LineageOS 14.1 (Android 7.1.2) #94

Open
nphilipp opened this issue Aug 7, 2017 · 7 comments
Open

Seems to work on LineageOS 14.1 (Android 7.1.2) #94

nphilipp opened this issue Aug 7, 2017 · 7 comments

Comments

@nphilipp
Copy link

nphilipp commented Aug 7, 2017

Hi,

the README says: "Due to Android 7.0's security enhancement, OS Monitor won't work any more, I decide to move the project into manitenance mode, it won't support Android 7.0 and following version."

I decided to try it out anyway and installed version 3.5.0.6, which seems to work fine for me (needed to give it root permissions to be able to view all processes, but that's kind of expected). Is there something I'm missing, or is it maybe dependent on the device or custom firmware being used?

@nine7nine
Copy link

nine7nine commented Oct 26, 2017

@nphilipp

I believe that it works on LOS because they have chosen not to integrate / implement the security feature that blocks OSMonitor from working on Nougat+ devices... if I'm not mistaken,this is the code/commit in questionh; aosp-mirror/platform_system_core@c39ba5a

If I'm not mistaken, OSMonitor would need to be belong to gid, 3009 AID_READPROC to to work... I don't think that's possible without some workaround in a ROM (that has this feature enabled).

cm/Los is generally probably a less secure firmware than Samsung, google firmwares, afaict. (I used to contribute to CM).

@Jamie-Landeg-Jones
Copy link

It seems that this doesn't use SE linux and any different contexts etc.

So I think it would probably work if you required root.

Interestingly enough, it seems to grant access to the adb user. I don't know if this is a weirdness on my device, but with the hidepid value set to 2, from a non-root user I couldn't see other processes in /proc (as expected) but I could simply by doing :

adb shell ls -l /proc etc.

, so it appears you could just drop the daemon into running under adb. That doesn't really seem to add any security! so it may just be me!

As an aside, I'm all for them tightening things up, as long as the access is available when an app is granted it. They seem to be strangling more and more of our access in the name of "security" but it's getting annoying facing access restrictions on my own devices... I own them Google, not you!

@nine7nine
Copy link

@Jamie-Landeg-Jones

I'm not the dev or anything (although I do other kernel related and app development).

Last I checked with SuperSU even root didn't work. and this app does have a setting for enabling root - made no difference. Interestingly, Magisk works just fine with this app (so I'm able to use it again, yay!)...

@Jamie-Landeg-Jones
Copy link

Ah ok.... I sorta figured it wouldn't be that easy :-(

Thanks for the reply though.

And OSM already having root mode... errrr. yeah blush sorry, brain-fart moment!

cheers, jamie!

@OlegYch
Copy link

OlegYch commented Jan 2, 2018

Simple System Monitor displays cpu usage for all processes on rooted 7.1.1 (sony z5c)
os monitor displays only two processes when 'enable root privilege' is off, and no processes when it is on

@OlegYch
Copy link

OlegYch commented Jan 2, 2018

os monitor was displaying all processes on rooted 7.0 with 'enable root privilege' on

@offa
Copy link

offa commented Jan 12, 2018

os monitor was displaying all processes on rooted 7.0 with 'enable root privilege' on

I can confirm this. Works fine on rooted Android N with enable root privilege enabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants