[MODULE] Magisk module for Cerberus App - Magisk

App source: https://www.cerberusapp.com/
This app is mainly to protect our phone and helps to locate our device in case of lost or stolen.
Obviously, needless to mention that the device needs to be magisk rooted. Rooted with latest magisk version is good.
Why this module?
See screenshot for reference. Why we need this magisk module? Cerberus app needs to be placed in system/priv-app in order to use the "SIM checker" settings to work. This settings is very handy to include mobile numbers to be notified in case of device loss/stolen. Also, we can confugure under this settings to localize the device with a "cerberus find" sms message without a password. This means that we can find the finder location / device location in no time in case we lost it.
By the way, you have to create account in https://www.cerberusapp.com to use this app.
This module installs the app in system/priv-app folder. Flash this module in Magisk Manager and reboot device. After device boot you will see this app in app drawer in the name of "System Framework". I have used Cerberus Disguised apk and this is why the name of the app is not obvious (i.e "System framework"). If anyone needs magisk module for the named app, i.e Cerberus, please place request in yourt post. The named app will apprear in app drawer in the name of Cerberus with the developers app icon.
Without this module, we still can manually move the app folder from data partition (after we install normally) in to system/priv-app folder and set permissions to 755. But on several occations error message pops-up on each device boot.
If the developer of this app has any objections to this work, please PM me.
Usual disclaimer: I am not responsible if you break your device. You are using at your own will.
Module file attached and also it can be downloaded from this LINK.

I tested it on an old device. An LG G2 with cyanogenmod. Android Marshmallow.
First I uninstalled Cerberus completely. I rebooted the device and checked to see if there were any file remnants in Data / App. There was nothing else there.
Then I installed the Magisk module and restarted the device.
Upon restarting Cerberus was properly installed. I launched Cerberus and set it up properly.
Then I went to the System / Priv-app folder to check.
There I found the System Framework folder. Inside was only the SystemFramework.apk file, but there was no other folder like I had seen in Data / App.
Then I rebooted the device to TWRP and did the factory reset. I did on the following:
Wipe Data
Wipe Cache
Wipe Dalvik / Art Cache
Then I restarted the device.
Upon restart there was no remnant of Cerberus (System Framwork). Cerberus has been UNINSTALLED.
I accessed (via computer) the Cerberus website and tried to track, but to no avail. Not tracked.
I wonder if I made a mistake in the procedure?
I am thinking to test in my Xiaomi Mi A3.

@FredMontteiro That is expected. Magisk stores it's files in /data/adb, so any app that is moved to /system through Magisk will be removed if /data is wiped.

Didgeridoohan said:
@FredMontteiro That is expected. Magisk stores it's files in /data/adb, so any app that is moved to /system through Magisk will be removed if /data is wiped.
Click to expand...
Click to collapse
So the Magisk module doesn't really install the app in /system then. Right? It only makes it look like it. So a factory reset makes it dissappear...

iruiz2 said:
So the Magisk module doesn't really install the app in /system then. Right? It only makes it look like it. So a factory reset makes it dissappear...
Click to expand...
Click to collapse
Yes. That's always been the main function of Magisk, making system modifications without actually touching /system.

Call me crazy, but... isnt this the sole purpose of cerberus? to be installed as a system file, survive factory reset and be found in case a person loses a phone or gets it stolen/pickpocketed? I mean... is there a way in 2020 that cerberus not only survive a factory reset, but actually works after it, meaning: the phone that gets factory reseted keeps its roots functions and stealthly sends info to the cerberus website etc?

baco_852 said:
Call me crazy, but... isnt this the sole purpose of cerberus? to be installed as a system file, survive factory reset and be found in case a person loses a phone or gets it stolen/pickpocketed? I mean... is there a way in 2020 that cerberus not only survive a factory reset, but actually works after it, meaning: the phone that gets factory reseted keeps its roots functions and stealthly sends info to the cerberus website etc?
Click to expand...
Click to collapse
Yes, but it doesn't work like this on a Magisk rooted phone.

I see. In 2020, is it possible to have a root that isn't systemless and a phone/apps that won't lose a lot of functions? Or if they do, workarounds that are effective? Honest question.

baco_852 said:
Call me crazy, but... isnt this the sole purpose of cerberus? to be installed as a system file, survive factory reset and be found in case a person loses a phone or gets it stolen/pickpocketed? I mean... is there a way in 2020 that cerberus not only survive a factory reset, but actually works after it, meaning: the phone that gets factory reseted keeps its roots functions and stealthly sends info to the cerberus website etc?
Click to expand...
Click to collapse
iruiz2 said:
Yes, but it doesn't work like this on a Magisk rooted phone.
Click to expand...
Click to collapse
It has nothing to do with Magisk being systemless root (so was SuperSU). On most devices you can still edit /system, but most modern devices are now SAR devices (system-as-root), so in order to edit the system partition you actually have to edit the root directory (/). It's up to the app developers to make that work.
But, Google has twisted it a bit further with Android 10 and there are now devices that have completely read-only system partitions that are impossible to write to. You can still do systemless modifications with Magisk, but features like Cerberus' factory reset protection won't work.
What I've written here is quite simplified, so if anyone is interested to know more I urge you to do your own research. There's tons of stuff written about this already...

I posted a thread that allows the Cerberus app to survive a factory reset. (Even if your device is rooted with Magisk).
https://forum.xda-developers.com/an...rberus-app-t4045231/post81673039#post81673039

Related

Cannot Remove Project Fi app either in system or in Play Store

Hello, I bought my Nexus 6 from Amazon (US version) unlocked. I joined Project Fi which requires installation of the Project Fi app. Now I am leaving Project Fi going back to Verizon but I cannot remove the Project Fi app. I'm only able to uninstall all updates, and disable the app. Clearing the cache, disabling the app with SIM removed, rebooting with no SIM, etc. Nothing removes it. I also tried to remove it via the Play Store by holding on it and removing it with the X at the upper right. Well there is no way to select it in the play store, it can only be "enabled".
Project Fi support is of course useless. I know this app did not come on my phone unless it was hidden in a system partition until activation?
Any ideas on how to remove this app totally? I want to get it removed so I can get back on Verizon without it causing issues trying to interact with the SIM. Thank you
wats6831 said:
Hello, I bought my Nexus 6 from Amazon (US version) unlocked. I joined Project Fi which requires installation of the Project Fi app. Now I am leaving Project Fi going back to Verizon but I cannot remove the Project Fi app. I'm only able to uninstall all updates, and disable the app. Clearing the cache, disabling the app with SIM removed, rebooting with no SIM, etc. Nothing removes it. I also tried to remove it via the Play Store by holding on it and removing it with the X at the upper right. Well there is no way to select it in the play store, it can only be "enabled".
Project Fi support is of course useless. I know this app did not come on my phone unless it was hidden in a system partition until activation?
Any ideas on how to remove this app totally? I want to get it removed so I can get back on Verizon without it causing issues trying to interact with the SIM. Thank you
Click to expand...
Click to collapse
sure, its very easy, but you need root to remove it, since its a system app. just use a root file explorer to find it in /system/app/, then delete it and reboot. when you boot up, it'll be gone. or, you can perform a factory reset, then boot up first time with your Verizon sim in the phone. then the app will go back into hiding in your system partition.
simms22 said:
sure, its very easy, but you need root to remove it, since its a system app. just use a root file explorer to find it in /system/app/, then delete it and reboot. when you boot up, it'll be gone. or, you can perform a factory reset, then boot up first time with your Verizon sim in the phone. then the app will go back into hiding in your system partition.
Click to expand...
Click to collapse
Thank you sir. Just so that I am clear: I need to obtain root via this guide: http://forum.xda-developers.com/nexus-6/general/how-to-nexus-6-one-beginners-guide-t2948481
which will wipe the device. I can then use any root file explorer app to delete the system/app/folder
It's been a while since I've worked on phone but I've been rooting/flashing since the OG DROID. I just want to be very clear before I wipe my device. Thank you again for any clarification.
wats6831 said:
Thank you sir. Just so that I am clear: I need to obtain root via this guide: http://forum.xda-developers.com/nexus-6/general/how-to-nexus-6-one-beginners-guide-t2948481
which will wipe the device. I can then use any root file explorer app to delete the system/app/folder
It's been a while since I've worked on phone but I've been rooting/flashing since the OG DROID. I just want to be very clear before I wipe my device. Thank you again for any clarification.
Click to expand...
Click to collapse
well.. yes and no. root has slightly changed since 6.0.1. and i mean slightly.
1. unlock your bootloader(which will wipe your device, so move what you need to your computer). boot up once after this as well.
2. flash the twrp recovery to your phone via fastboot.
3. flash any nexus 6 custom kernel with twrp(new step)
4. flash the latest SuperSU zip(for root)
5. reboot.
the custom kernel will let you obtain root, its needed in there as of 6.0.1. oh, then don't delete the /system/app/ folder, delete the google fi app folder with its apk inside. otherwise you'll delete all your system apps.
simms22 said:
well.. yes and no. root has slightly changed since 6.0.1. and i mean slightly.
1. unlock your bootloader(which will wipe your device, so move what you need to your computer). boot up once after this as well.
2. flash the twrp recovery to your phone via fastboot.
3. flash any nexus 6 custom kernel with twrp(new step)
4. flash the latest SuperSU zip(for root)
5. reboot.
the custom kernel will let you obtain root, its needed in there as of 6.0.1. oh, then don't delete the /system/app/ folder, delete the google fi app folder with its apk inside. otherwise you'll delete all your system apps.
Click to expand...
Click to collapse
Ok. So do I still obtain root with the fastboot procedure linked in the FAQ? If not, can you link to a current guide for unlocking the bootloader and flashing the TWRP. I'm also not sure where to get a custom kernal, or which one. After that I think I got it. Thanks.
wats6831 said:
Ok. So do I still obtain root with the fastboot procedure linked in the FAQ? If not, can you link to a current guide for unlocking the bootloader and flashing the TWRP. I'm also not sure where to get a custom kernal, or which one. After that I think I got it. Thanks.
Click to expand...
Click to collapse
you can always check if you have root by downloading and installing a terminal emulator app from the play store, then open it and type su. if you have root, it'll return a #
simms22 said:
you can always check if you have root by downloading and installing a terminal emulator app from the play store, then open it and type su. if you have root, it'll return a #
Click to expand...
Click to collapse
I don't have root, I've never touched this phone. I'm just trying to make sure I understand the correct way to obtain root in 6.0.1. Your post made it sound like maybe that guide I linked wasn't the current way?
wats6831 said:
I don't have root, I've never touched this phone. I'm just trying to make sure I understand the correct way to obtain root in 6.0.1. Your post made it sound like maybe that guide I linked wasn't the current way?
Click to expand...
Click to collapse
no, it is the correct way. I just added that a kernel has to be flashed as well. but chainfire might have fixed that, I heard that a few hours ago. if he did, then the method is correct. I rooted over a year ago, my n6. so its been a while :angel:
I understand. Thank you for making that clear. I can't even root due to USB driver issues...not sure why. I followed the steps exactly.
I've switched to SuperSU 2.66, so I've just checked it, and you don't need a custom kernel for it anymore, just flash ir frim TWRP.
Sent from my Nexus 6 running cyosp using Tapatalk
simms22 said:
sure, its very easy, but you need root to remove it, since its a system app. just use a root file explorer to find it in /system/app/, then delete it and reboot. when you boot up, it'll be gone. or, you can perform a factory reset, then boot up first time with your Verizon sim in the phone. then the app will go back into hiding in your system partition.
Click to expand...
Click to collapse
So I unlocked, and rooted with Wugster and SUperSU. I booted first time with my Verizon SIM and project Fi app is still there. I can see it in my apps list, but i can't see it in the system/app/ any clue where it is? thanks.
It's in #/data/user/0/com.google.android.apps.tycho
somewhere but i can't find it
wats6831 said:
So I unlocked, and rooted with Wugster and SUperSU. I booted first time with my Verizon SIM and project Fi app is still there. I can see it in my apps list, but i can't see it in the system/app/ any clue where it is? thanks.
It's in #/data/user/0/com.google.android.apps.tycho
somewhere but i can't find it
Click to expand...
Click to collapse
it has a weird name, not fi. its like tycho or something similar. if you look into that folder, its there.
simms22 said:
it has a weird name, not fi. its like tycho or something similar. if you look into that folder, its there.
Click to expand...
Click to collapse
ok looking in that folder, i see nothing in any subfolder except for a file called "Switching.xml"
Should I delete the whole tycho folder?
The ProjectFi app is "Tycho"
You can also remove GCS (Google Connectivity Services). Only ProjectFi uses it for joining open wifi networks and the Google VPN, among other things. Totally useless unless you're a Fi'er.
Gandalf said:
The ProjectFi app is "Tycho"
You can also remove GCS (Google Connectivity Services). Only ProjectFi uses it for joining open wifi networks and the Google VPN, among other things. Totally useless unless you're a Fi'er.
Click to expand...
Click to collapse
So to be clear should I delete the whole Tycho folder? I don't want the app to show up at all in my app list.
Can GCS be removed or does it have to be deleted in /system/app? thanks.
wats6831 said:
So to be clear should I delete the whole Tycho folder? I don't want the app to show up at all in my app list.
Can GCS be removed or does it have to be deleted in /system/app? thanks.
Click to expand...
Click to collapse
You can delete it but I would recommend either Disabling it in Settings > Apps or using Titanium Backup to freeze it. Assuming you're running stock, mounting system rw will cause issues with verity

Cannot Remove bloatware on Metro 626s after MM update

I have my desire systemless rooted w/ twrp installed. I have tried several different ways of removing system apps but Everytime I restart EVERY Single app is back like they are an aggressive cancer that will not subdue to chemo. Is Anyone else experiencing this and if not please advise me on your method of removal. Thanks.
Also, Tidbit more info, when I attempt to flash ANY thing in TWRP, the phone stops the flash and IMMEDIATELY restarts into ROM.
i2andog said:
I have my desire systemless rooted w/ twrp installed. I have tried several different ways of removing system apps but Everytime I restart EVERY Single app is back like they are an aggressive cancer that will not subdue to chemo. Is Anyone else experiencing this and if not please advise me on your method of removal. Thanks.
Also, Tidbit more info, when I attempt to flash ANY thing in TWRP, the phone stops the flash and IMMEDIATELY restarts into ROM.
Click to expand...
Click to collapse
Have you tried re flashing twrp ? You can use flashify or rashr from play store to flash the .IMG file
As far as system apps and bloat, I've also had issues removing them. When I use ROM toolbox pro's app manager, a lot of times the app will still be on the list of apps installed even after I've clicked uninstall. But usually the apps are gone once I reboot
I use /system/ app mover *root* from the play store. I covert the system apps to user apps and then uninstall them.
It also shows that in the latest update it might recognize sytemless root.
IsaacGuti said:
I use /system/ app mover *root* from the play store. I covert the system apps to user apps and then uninstall them.
It also shows that in the latest update it might recognize sytemless root.
Click to expand...
Click to collapse
Why do you convert to user apps first? Could that be the reason why they aren't being removed? Due to some type of broken operation of an app that was meant to be system only?
talksickisil said:
Why do you convert to user apps first? Could that be the reason why they aren't being removed? Due to some type of broken operation of an app that was meant to be system only?
Click to expand...
Click to collapse
I do that because I keep some of the apps and also because I haven't had any problems uninstalling apps that way. converting them to user apps also gives me the option to move them to the SD card.
I remember when I used "system app remover(root),"it would still show the app in the app drawer(even after reboot) and when I pressed on them they would say "unfortunately ...has stopped"
I used titanium backup to get rid of all the apps i didnt want,afterwords i went into TWRP and wiped the dalvik cache/ART cache and it rebuild upon first reboot,and all the apps i uninstalled were gone.try this method and let us know.

Help moving user app to system partition...

I'm having a problem getting to move any user app to the system partition on my Nexus 6. I'm using the Pure Nexus ROM, now rooted with Magisk, Android 7.1.2. The thing is, I have tried to do so when I was on Stock ROM, also tried it with SuperSU root instead of Magisk with no difference whatsoever. Link2SD doesn't work but neither worked system/app mover by j4velin.
What should I do to get that to work? Thanks in advance...
You're using Magisk... There are modules for that.
Two actually. And they can be installed from the Manager:
https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851
https://forum.xda-developers.com/showthread.php?t=3477512
Take your pick.
Didgeridoohan said:
You're using Magisk... There are modules for that.
Two actually. And they can be installed from the Manager:
https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851
https://forum.xda-developers.com/showthread.php?t=3477512
Take your pick.
Click to expand...
Click to collapse
Well right now for some reason Magisk isn't installing anything on my device, however I was wondering, if there is a method which installs the app as system and that the app continues to be there even if I unroot my device?
Dorlan2001 said:
Well right now for some reason Magisk isn't installing anything on my device, however I was wondering, if there is a method which installs the app as system and that the app continues to be there even if I unroot my device?
Click to expand...
Click to collapse
The whole design concept of Magisk is to protect the system partition from being modified. It does that by sym-linking directories. Using Magisk, as designed, the apps will go into the Magisk.img, not system. When booted, it'll look like the apps are in system but if you unroot they'll be gone.
If you don't care about modifying the system partition, you can move an app manually. User apps are in /sdcard/data/app and system apps are in /system/app. Once moved, you'll have to edit the permissions for the folder to rwxr-xr-x (755) and the apk inside the folder to rw-r--r-- (644).
ktmom said:
The whole design concept of Magisk is to protect the system partition from being modified. It does that by sym-linking directories. Using Magisk, as designed, the apps will go into the Magisk.img, not system. When booted, it'll look like the apps are in system but if you unroot they'll be gone.
If you don't care about modifying the system partition, you can move an app manually. User apps are in /sdcard/data/app and system apps are in /system/app. Once moved, you'll have to edit the permissions for the folder to rwxr-xr-x (755) and the apk inside the folder to rw-r--r-- (644).
Click to expand...
Click to collapse
Thanks for the info mate! It was really helpful to me to get to understand how Magisk works, and to be able to make the changes I wanted to my system using Root Explorer. Is so weird though, that those apps who claim to automate things, don't work on my device...
Thanks again!!!! :good:

Huawei P9 Notepad APK

Can anyone please upload for me Huawei P9 Notepad APK for EMUI 8, EVA-AL10?
I need it. Thank you
md sabuj said:
Can anyone please upload for me Huawei P9 Notepad APK for EMUI 8, EVA-AL10?
Click to expand...
Click to collapse
Extracted by ApkExtractor but Notepad s system app, not sure would it work that way
zgfg said:
Extracted by ApkExtractor but Notepad s system app, not sure would it work that way
Click to expand...
Click to collapse
It's not working.
Could you please tell me in which directory of System this apk is stored?
I'll manually put the apk there and edit it’s permission to 0644.
You can check it by an App called App Inspector (Available at Play Store)
md sabuj said:
It's not working.
Could you please tell me in which directory of System this apk is stored?
I'll manually put the apk there and edit it’s permission to 0644.
You can check it by an App called App Inspector (Available at Play Store)
Click to expand...
Click to collapse
I know very well for ApkInspector - screenshot attached.
This is system app, still not sure would it work.
But guys, if you think you don't like a particular 'bloatware' app, just disable by ADB. What's the point of deleting 3 MB from Internal memory and later having such troubles
Suggesting to flash stock Ramdisk and Recovery and to take Install latest by eRecovery. You will not loose Network patch
zgfg said:
I know very well for ApkInspector - screenshot attached.
This is system app, still not sure would it work.
But guys, if you think you don't like a particular 'bloatware' app, just disable by ADB. What's the point of deleting 3 MB from Internal memory and later having such troubles
Suggesting to flash stock Ramdisk and Recovery and to take Install latest by eRecovery. You will not loose Network patch
Click to expand...
Click to collapse
I have just uninstalled the App, not deleted from System. It seems the app is still in it’s own directory. I have tried to install it by tapping install. But its not installed.
Is there any adb command to re-install an uninstalled APK?
Does flashing stock ramdisk and Recovery trigger a Factory reset?
My ramdisk modified by magisk and have stock recovery installed.
md sabuj said:
I have just uninstalled the App, not deleted from System. It seems the app is still in it’s own directory. I have tried to install it by tapping install. But its not installed.
Is there any adb command to re-install an uninstalled APK?
Does flashing stock ramdisk and Recovery trigger a Factory reset?
My ramdisk modified by magisk and have stock recovery installed.
Click to expand...
Click to collapse
Ok, then you needed to say in the first place what did you really do. If you uninstalled (for default user) by ADB, then the application remains on the system (for users 'other' than default) and can be reinstalled by ADB again (although not possible on old ADB servers like in EMUI 4). For the commands see (check examples by the end of the script there)
https://forum.xda-developers.com/showpost.php?p=80526831&postcount=3
You can't click on the apk uninstalled by ADB to 'install' back.
For that reason disabling by ADB is more practical, app can ba re-enabled without ADB, simply through Settings, Apps
PS: eRecovery Install latest does not trigger Factory reset, unless you don't take Factory reset option by mistake from eRecovery
Flashing stock Recovery or Ramdisk does not trigger Factory reset (if correct file is flashed to the correct partition)

Santander app not working on LineageOS with Magisk

Hi, I'm trying to get the santander app working on LineageOS 17.1 on an Xperia XZ1 Compact with Magisk v23.
Usually it detects that the phone isn't secure within a second or 2 of starting but by using MagiskHide, Momohider with all config files, hiding Magisk and freezing it (I used Ice Box), I can get to the screen where it asks for my ID. After entering it, THEN it detects the phone isn't secure.
Any solutions?
Do you already have a way?
Not yet but a few solutions have been suggested on the LineageOS thread in the XZ1 Compact forum. I'm working my way through them but I've been busy lately so not much progress.
In my case the problem was that I had a TWRP directory left over from flashing the rom. That by itself didn't work so I did a factory reset to get rid of any traces of magisk or TWRP and it worked.
I don't know if I understand. When I delete the TWRP directory, I won't be able to backup or restore the backup. How to do it?
1jkan said:
I don't know if I understand. When I delete the TWRP directory, I won't be able to backup or restore the backup. How to do it?
Click to expand...
Click to collapse
You could try renaming the folder or moving the files elsewhere (maybe to another device?). I think the important thing is that there be nothing with "TWRP" in the name on the phone. I'm not an expert though, this is all just based on what worked for me and what others have written.

Categories

Resources