Install app as system app & Xposed Questions - SuperSU

I just rooted my MXPE with 6.0 and stock rom using the systemless method, and I have a couple questions. First, I have a few apps that want to install themselves or addons as system apps, mainly battery apps. Better Battery stats is one, and in its case, it states "does not prevent from installing updates." Since altering /system negates the main benefit of the systemless root, I'm curious if installing apps as system apps changes /system, and therefore makes it more work to take an OTA update. And on that note, how about moving apps to the system ROM (I'm guessing this wouldn't affect it, as this should be something entirely different, but I'd like to know for sure).
My other question is with xposed. I would like to install it, but as far as I can tell doing so would alter /system and, again, cause issues with accepting an OTA. However, it's my understanding all that would need to be done would be to re-flash the stock boot and system images, take the OTA, then reroot and reinstall xposed. Is this correct?

Related

Trying to get my phone ready for Android L

I've decided to get my phone ready to accept the (hopefully soon) OTA update for my 2013 X. Right now it's on 4.4.4, bootloader unlocked (thanks Sunshine!), and rooted. I had it rooted to take advantage of Xposed and Secure Settings with Tasker integration. I also used TitaniumBackup to freeze the Verizon and some Moto apps I never used.
Currently, I have uninstalled every Xposed module I downloaded, then unistalled Xposed itself and finally the Xposed installer app. After that I went into Titanium and defrosted everything that was frozen. Now I have a fair amount of updates coming in from the Play store for all those apps that were frozen. Should I go ahead and update them?
From what I've read, there's been talk on whether or not I have to un-root my phone. I thought I just had to use the toolkit to flash back the stock recovery? That should be the only thing left to do? What about some apps that are device administrators like Cerberus? Do I need to remove them from that list?
Thank you for any advice. I plan on flashing stock recovery when I get home this evening.
Generally speaking an OTA will probably fail if apps it expects to be present are missing or modified in the /system partition. I don't know if having additional items (like Cerberus) will halt the OTA or not. Custom recovery may also interfere with the OTA.
It sounds like you already did all the work, but I personally wouldn't have done any of that until the OTA was actually rolling out. I know they said it will be soon, but it could still be weeks away. I wouldn't give up my phone that was setup how I like it, but that's just my preference.
When the OTA drops, if you try and install it will do all of the validation before it installs anything. If the validation fails, it will tell you it has an error and it won't work. Then you'll have to fix whatever was modified, or reflash the stock firmware to be compatible with the OTA.
I don't believe updating the apps is necessary. I don't even think they need to be active (you can use the Disable function in the App Info screen to hide them), they just need to be present in your /system folder with the correct signature, is how I understand it.

New oxygenOS or xposed?

Hey guys,
Just wanted to know how many of you ditched the Xposed on marshmallow for the latest 7.1.1 Android based oxygenos?
Since we don't know when nougat will be supported by xposed, is staying on marshmallow worth it?
Even though most of the modules I use are more or less esthetical, there's one thing I can't live without - youtube background playback and ad block.
Share your thoughts!
Xposed over any OS without Xposed. I have never even flashed Nouget because I know its just a waste of time for me. Ive been on cm13 since the day it came out. DEC 11 2016.
If all you need is the youtube modules, there's modded youtube apps out now with adblock and background playback. Check it out here.
I've also packaged the app in a convenient Magisk module, which you can find here.
It works exactly like the xposed-modified YouTube app, but it works on Nougat.
Anova's Origin said:
If all you need is the youtube modules, there's modded youtube apps out now with adblock and background playback. Check it out here.
I've also packaged the app in a convenient Magisk module, which you can find here.
It works exactly like the xposed-modified YouTube app, but it works on Nougat.
Click to expand...
Click to collapse
Hey Anova, what is this Magisk thingy you're talking about?
Also... For me The most important is gravitybox then come youtube modules and mock mock locations.
You think it's worth the upgrade? I personally never had a phone that would get updates so quickly or even at all. So I have no idea what to expect.. Would I have to reroot, reinstall recovery or it's all a piece of cake and only the exposed won't affect anything? Lemme know.
Crishien said:
Hey Anova, what is this Magisk thingy you're talking about?
Also... For me The most important is gravitybox then come youtube modules and mock mock locations.
You think it's worth the upgrade? I personally never had a phone that would get updates so quickly or even at all. So I have no idea what to expect.. Would I have to reroot, reinstall recovery or it's all a piece of cake and only the exposed won't affect anything? Lemme know.
Click to expand...
Click to collapse
Magisk is a framework that allows you to make temporary changes to your /system partition at boot, without actually modifying the partition. It works by superimposing user-defined changes to files in /system during boot; changes are reverted to their stock state afterwards. These user-defined changes are loaded into Magisk through Magisk modules. While a lot of people may think it's similar to Xposed, they're really nothing alike. I mentioned Magisk for the YouTube app because it is merely convenient. You could manually replace the YouTube APK in system without any additional software, but Magisk will do it for you while applying all the correct permissions, etc. As a bonus, Magisk also includes its own rooting method that works, for the most part, as well as SuperSU. This means that you can flash only Magisk to root your phone (flashing SuperSU is optional and is really based on personal preference, Magisk will work with SuperSU if you flash that first).
Because of what Magisk is and how it works, it is not able to modify your device in the same way that Xposed can. This means that mods like gravitybox and mock mock locations cannot be implemented with Magisk. Technically, all Magisk modules can be installed without Magisk by manually editing/replacing things in the /system partition. What is special about it is that Magisk does these things systemlessly, meaning that (with the proper configurations), you can modify /system without triggering safetynet.
For the modified YouTube app I was talking about, that was actually modded and compiled as a stand-alone APK by someone on XDA. It does not alter your current YouTube app, but rather outright replaces it.
As for upgrading to Nougat, it's really up to personal choice. I personally never used Xposed for anything other than YouTube Adaway and Background Playback, and to top it off I rarely use YouTube on my phone anyways so upgrading was an easy choice for me. If you do end up wanting to upgrade, do the following:
1) Download the full ROM of whatever version of OOS you want to use (4.1.0 is the latest, on Android 7.1.1). Do not use the "Upgrade Phone" option in settings if you are already rooted or have modified anything in your /system partition, as it will cause problems.
2) Flash the full zip in TWRP, wipe cache/Dalvik, then immediately flash the latest Magisk.zip (from the main Magisk thread on XDA)
3) Boot, then download Magisk Manager from the Play Store
At this point, Magisk will have been fully installed and your phone should be rooted. You can confirm through the Magisk Manager app
Anova's Origin said:
Magisk is a framework that allows you to make temporary changes to your /system partition at boot, without actually modifying the partition. It works by superimposing user-defined changes to files in /system during boot; changes are reverted to their stock state afterwards. These user-defined changes are loaded into Magisk through Magisk modules. While a lot of people may think it's similar to Xposed, they're really nothing alike. I mentioned Magisk for the YouTube app because it is merely convenient. You could manually replace the YouTube APK in system without any additional software, but Magisk will do it for you while applying all the correct permissions, etc. As a bonus, Magisk also includes its own rooting method that works, for the most part, as well as SuperSU. This means that you can flash only Magisk to root your phone (flashing SuperSU is optional and is really based on personal preference, Magisk will work with SuperSU if you flash that first).
Because of what Magisk is and how it works, it is not able to modify your device in the same way that Xposed can. This means that mods like gravitybox and mock mock locations cannot be implemented with Magisk. Technically, all Magisk modules can be installed without Magisk by manually editing/replacing things in the /system partition. What is special about it is that Magisk does these things systemlessly, meaning that (with the proper configurations), you can modify /system without triggering safetynet.
For the modified YouTube app I was talking about, that was actually modded and compiled as a stand-alone APK by someone on XDA. It does not alter your current YouTube app, but rather outright replaces it.
As for upgrading to Nougat, it's really up to personal choice. I personally never used Xposed for anything other than YouTube Adaway and Background Playback, and to top it off I rarely use YouTube on my phone anyways so upgrading was an easy choice for me. If you do end up wanting to upgrade, do the following:
1) Download the full ROM of whatever version of OOS you want to use (4.1.0 is the latest, on Android 7.1.1). Do not use the "Upgrade Phone" option in settings if you are already rooted or have modified anything in your /system partition, as it will cause problems.
2) Flash the full zip in TWRP, wipe cache/Dalvik, then immediately flash the latest Magisk.zip (from the main Magisk thread on XDA)
3) Boot, then download Magisk Manager from the Play Store
At this point, Magisk will have been fully installed and your phone should be rooted. You can confirm through the Magisk Manager app
Click to expand...
Click to collapse
Thanks for such a detailed description of everything! You're the best! I seriously decided to upgrade tomorrow.
Just last couple questions before I do... Should I delete anything? Like xposed itself with it's modules, or does the system upgrade wipe everything itself? Should I perform any backups other than usual titanium ones?
Thanks in advance
Crishien said:
Thanks for such a detailed description of everything! You're the best! I seriously decided to upgrade tomorrow.
Just last couple questions before I do... Should I delete anything? Like xposed itself with it's modules, or does the system upgrade wipe everything itself? Should I perform any backups other than usual titanium ones?
Thanks in advance
Click to expand...
Click to collapse
You should delete the Xposed modules prior to updating, as they are saved as user apps and will not be wiped with an upgrade. Delete the Xposed framework app as well for the same reason. Updating should erase all of the background stuff that the Xposed originally installed in /system. Take a nandroid prior to updating just in case.
Anova's Origin said:
You should delete the Xposed modules prior to updating, as they are saved as user apps and will not be wiped with an upgrade. Delete the Xposed framework app as well for the same reason. Updating should erase all of the background stuff that the Xposed originally installed in /system. Take a nandroid prior to updating just in case.
Click to expand...
Click to collapse
Thanks again, mate!
Is this the one I should download? https://forum.xda-developers.com/oneplus-3t/how-to/rom-oos4-0-nougat-op3t-leaked-t3523482
Crishien said:
Thanks again, mate!
Is this the one I should download? https://forum.xda-developers.com/oneplus-3t/how-to/rom-oos4-0-nougat-op3t-leaked-t3523482
Click to expand...
Click to collapse
Yes, that will work. OnePlus has not yet released the official zip through their website at this time, otherwise I would advise you to use the official zip.
Anova's Origin said:
Yes, that will work. OnePlus has not yet released the official zip through their website at this time, otherwise I would advise you to use the official zip.
Click to expand...
Click to collapse
Great, thank you. Imma let you know how it goes later today.
Anova's Origin said:
Yes, that will work. OnePlus has not yet released the official zip through their website at this time, otherwise I would advise you to use the official zip.
Click to expand...
Click to collapse
Not sure if I did anything wrong or I'm just impatient... But I flashed the update successfully and deleted dalvik. But got stuck at boot logo. Been hanging like this for 15 minutes, phone got hot and drained half its juice. So I reverted for now.... I'll try again at home with a charger... ?
954wrecker said:
Xposed over any OS without Xposed. I have never even flashed Nouget because I know its just a waste of time for me. Ive been on cm13 since the day it came out. DEC 11 2016.
Click to expand...
Click to collapse
what can xposed do that you actually need that you can't do with magisk?
EuEra said:
what can xposed do that you actually need that you can't do with magisk?
Click to expand...
Click to collapse
I don't think magisk can handle what xposed can handle.
954wrecker said:
I don't think magisk can handle what xposed can handle.
Click to expand...
Click to collapse
Indeed I will miss gravitybox. But if there is any other way to make my buttons do what I like which is (on the left - menu button with double tap for previous app/ home is home and recents on long press / right is back.)
Other than that it's all purely visual enhancement such as perfect color bar, media visualizer, and ****.
On the other hand I've just encountered a slight difficulty... Magisk won't work properly if I had Supersu previously installed, right?
Crishien said:
Indeed I will miss gravitybox. But if there is any other way to make my buttons do what I like which is (on the left - menu button with double tap for previous app/ home is home and recents on long press / right is back.)
Other than that it's all purely visual enhancement such as perfect color bar, media visualizer, and ****.
On the other hand I've just encountered a slight difficulty... Magisk won't work properly if I had Supersu previously installed, right?
Click to expand...
Click to collapse
What are you gaining if I may ask? I have never tried 7.0 or magisk because I see ZERO benefit and Id lose all my favorite modules.
954wrecker said:
What are you gaining if I may ask? I have never tried 7.0 or magisk because I see ZERO benefit and Id lose all my favorite modules.
Click to expand...
Click to collapse
That's what I wanna find out. I wanna see what's the new Android about. And I'm sure rovo will find a solution soon. And we will see xposed for nougat.
GravityBox is terrible and has slowed down every phone it's ever been put on (from my experience).
Xposed is a hack and it's shameful how it's holding back advancement.
Nougat > any hack
MattBooth said:
GravityBox is terrible and has slowed down every phone it's ever been put on (from my experience).
Xposed is a hack and it's shameful how it's holding back advancement.
Nougat > any hack
Click to expand...
Click to collapse
My phone is just as fast with xposed as it is without. All my apps work perfectly so I say any OS with Xposed is > Nougat
954wrecker said:
I don't think magisk can handle what xposed can handle.
Click to expand...
Click to collapse
Most of that is either completely unnessecary, pointless, or magisk can do it if people start developing for it. I have none of it (except no ads on youtube and the ability to turn off the screen) and i am completely fine. I think you tell yourself you need all that stuff but you actually don't, staying versions behind on the OS for it seems stupid.
954wrecker said:
My phone is just as fast with xposed as it is without. All my apps work perfectly so I say any OS with Xposed is > Nougat
Click to expand...
Click to collapse
Well that's your opinion and you're entitled to it, but I've noticed the total opposite across several devices. I always try Xposed on a new phone and I always massively dislike the way it works. Intercepting code that was not supposed to be intercepted just adds overhead. There's a good reason AOSP devs will refuse to look at any bug report that has Xposed in the logs.
EDIT:
Anyway, the battery savings from Nougat are too good to pass over. The only thing I need to customise on my phone is having the Google Dialer, and AdAway, whilst still keeping SafetyNet as passing, which Magisk does perfectly.
EuEra said:
Most of that is either completely unnessecary, pointless, or magisk can do it if people start developing for it. I have none of it (except no ads on youtube and the ability to turn off the screen) and i am completely fine. I think you tell yourself you need all that stuff but you actually don't, staying versions behind on the OS for it seems stupid.
Click to expand...
Click to collapse
Exactly, unless you use every setting on GravityBox then it's not entirely necessary, yet even if those functions are off or there are features of GravityBox you don't use, their code is still run. The bigger it gets the more the overhead there is. If you don't use, say, the network speed monitor, it's hook is still active. I could be wrong, but last time I dabbled with Xposed, this was the case.
If anything, smaller more granular modules would be better for GB. One module for network speed. One module for changing the on-screen buttons, etc. That way you only install modules that you use, rather than a whole library of them where you might only use 2-3 of the actual features.

Rooting with Magisk more risky than other methods?

Hi there,
I'm in the process of deciding whether to root my next phone with Magisk or SuperSU. The point I want to discuss here is the risk of bricking the phone. I found rather little information on how Magisk actually links into the system, but it seem that it modifies the /boot image. Now my concern is that if anything goes wrong with this, the phone may be bricked with no return. If I compare this to installing SuperSU to /system, if something goes wrong with that, I still have a working boot loader to boot into recovery and install a working system image. But if /boot is damaged, there should be no return.
So my question: is my understanding of how Magisk works correct, and does this mean higher risk of bricking the device?
Thanks
Tom
I use Magisk for 1 month and I have no problems. Even that Magisk is much better than SuperSU because you can hide the root for your applications.
The boot.img is not your bootloader, it's basically the kernel (part of it anyways). Reflashing your stock boot.img and wiping data would likely reverse anything magisk does. So risky? Not if you backup your stock boot first in twrp. But we backup everything before we flash anything right? Magisk is doesn't modify system at all, everything it does is in /data (besides patching boot.img)
So the question becomes, do you need to pass safetynet for any reason? And would you like to be able to take ota updates?
madbat99 said:
The boot.img is not your bootloader, it's basically the kernel (part of it anyways). (...)
Click to expand...
Click to collapse
Thanks for the clarification. That basically answers my question!
You can use magisk it safe
The best feature of magisk you can hide root from other app like pokemon go, banking app etc
And also you can modify the the system make some app system app or uninstall system without modification of system
And lots more for more details check the magisk official thread
And ya don't download magisk from magisk.com or other site it not offical
I am using magisk in miui rom, Samsung note 4
Moto G5 plus without any problems
can i use magisk on rokit io pro 3d?

Xposed Framework Question

Hi,
At times like this I really wish that I knew more about android than I do, but then again that's part of the reason there are site's like reddit. What I'm trying to do is use the sudohide app to solve the issue I've been having as far as keeping it from trying to update itself and becoming enabled again. For my youtube stuff I use the vanced app which at least for me better than the real youtube app. When I open up the sudohide app I receive a prompt that says xposed framework is not installed. Does my lg v30 phone have to be rooted to be able to use the sudohide app? If so I really need to get it rooted, of course if it's rooted I can probably just get rid of youtube anyway.
Thanks
Davy49 said:
Hi,
At times like this I really wish that I knew more about android than I do, but then again that's part of the reason there are site's like reddit. What I'm trying to do is use the sudohide app to solve the issue I've been having as far as keeping it from trying to update itself and becoming enabled again. For my youtube stuff I use the vanced app which at least for me better than the real youtube app. When I open up the sudohide app I receive a prompt that says xposed framework is not installed. Does my lg v30 phone have to be rooted to be able to use the sudohide app? If so I really need to get it rooted, of course if it's rooted I can probably just get rid of youtube anyway.
Thanks
Click to expand...
Click to collapse
Sudohide is an (ed)xposed module, which needs root to run in the first place, so you need to unlock your device unless you haven't done so already (it will wipe all your data, backup first), flash TWRP which replaces your stock "recovery" program which is originally used to do factory resets etc, but twrp can do much more. Then flash magisk in twrp, your phone is now rooted, now you can install riru core (dependency for edxposed) and edxposed framework systemlessly, writing directly to system will definitely break safetynet, which is why this is the popular way of rooting these days. Some tinkering around is needed to keep safetynet passing (otherwise you'll lose access to some banking apps, some games, netflix will work, but you can't install it from play store). Just rooting lets you access all the read-only partitions and install magisk modules that take advantage of that, xposed lets you mess with the behavior of user/system apps.
Hi zipsu,
Of course thanks so much for your feedback, and as silly as it might sound..all I have to do now is work up my courage and attempt to root my lg v30 phone. I know that a lot of user's say that it's actually pretty simple, but I think they have more knowledge about android that I currently have. It probably doesn't matter but I'm currently running android version 9.0 on my phone.
zipsu said:
Sudohide is an (ed)xposed module, which needs root to run in the first place, so you need to unlock your device unless you haven't done so already (it will wipe all your data, backup first), flash TWRP which replaces your stock "recovery" program which is originally used to do factory resets etc, but twrp can do much more. Then flash magisk in twrp, your phone is now rooted, now you can install riru core (dependency for edxposed) and edxposed framework systemlessly, writing directly to system will definitely break safetynet, which is why this is the popular way of rooting these days. Some tinkering around is needed to keep safetynet passing (otherwise you'll lose access to some banking apps, some games, netflix will work, but you can't install it from play store). Just rooting lets you access all the read-only partitions and install magisk modules that take advantage of that, xposed lets you mess with the behavior of user/system apps.
Click to expand...
Click to collapse

Boot image patched by unsupported programs when switching from SuperSU to Magisk

Hi!
I previously had rooted my S7 Edge with Super SU v2.79 years ago but now I want to switch to Magisk because I need to hide root from certain apps. Magisk fails to install saying:
! Boot image patched by unsupported programs
! Please restore to stock boot image.
Click to expand...
Click to collapse
From here I read I can try unSU. But in my case it did not work. How exactly can I fix this now? As I understand I need to reflash some stock images? But what exactly is the minimum requirement? Just boot.img? Or system? Also if I don't want to loose my apps, data, config, can I flash them without loosing them? Or if not is it possible to hide root while still using SuperSU since I really don't want to lose my data/apps/config.
You get the info to restore the stock boot image, which is just the kernel image. As you are rooted right now, use a backup tool like Swift Backup (full version is paid) or Neo backup (FOSS) to backup all app data and apps and personal data in case something goes wrong. Backup that stuff to your PC of course, saving all data that was created by the backup app and your other stuff. Then flash stock kernel, test if all is good and stick to Magisk stable plus needed modules.
Next time please provide all system data like used (custom?) ROM and Android version. If you use a custom ROM you need to revert to the unrooted custom ROM kernel of course.
Thank you for your response!
I am not rooted currently as I uninstalled Super SU but I think I can install it back if needed. Will flashing stock kernel always cause app data to be lost? Or is there chance that it does not get touched? As for ROM I use stock android 7 rom. I am not sure where and if can I still find it.
I don't really trust backup because because previous attempts have ended up with boot loops and broken apps. If there is chance that that app data stays intact without backup then I might try it but if the process factory resets everything and then relies on restoring backup as one part of the process then for now I would try to come up with some other solution.
Also will it cause all the stock bloatware to come back or is the kernel separate from apps?
sysctl said:
Thank you for your response!
I am not rooted currently as I uninstalled Super SU but I think I can install it back if needed. Will flashing stock kernel always cause app data to be lost? Or is there chance that it does not get touched? As for ROM I use stock android 7 rom. I am not sure where and if can I still find it.
I don't really trust backup because because previous attempts have ended up with boot loops and broken apps. If there is chance that that app data stays intact without backup then I might try it but if the process factory resets everything and then relies on restoring backup as one part of the process then for now I would try to come up with some other solution.
Also will it cause all the stock bloatware to come back or is the kernel separate from apps?
Click to expand...
Click to collapse
to back up use smart switch in pc, to install magisk is recommended to flash stock firmware first and instal magisk to avoid issues like bootloops

Categories

Resources