Adding apps to system - Xiaomi Poco F2 Pro (Redmi K30 Pro) Questions & Ans

I'm quite new to using a phone without root, so is there a possibilty to add apks to system without rooting?
I tried ADBFastbootTools but it seems like it won't add anything. No apk and also no new folder.

Impact7 said:
I'm quite new to using a phone without root, so is there a possibilty to add apks to system without rooting?
I tried ADBFastbootTools but it seems like it won't add anything. No apk and also no new folder.
Click to expand...
Click to collapse
System partition is write protected. Not only Root is needed, you need a systemlees system like Magisk for example to not break dm-verify. Another option should be a rooted phone with dm-verify disabled.
In both cases, you will need a unlocked bootloader and root

Related

[Q] How to push or remove sys apps w/o root

the title basically summed up everything
so if i wanna push or remove an apk from or to the system apps, how do i do it without unlocking the bootloader or rooting
Falc0nPuls3 said:
the title basically summed up everything
so if i wanna push or remove an apk from or to the system apps, how do i do it without unlocking the bootloader or rooting
Click to expand...
Click to collapse
You can disable it from Settings -> Applications. Deleting/moving from the system without root is not possible
not all apps can be disabled there, if you run into a particularly difficult app try the steps listed here
http://www.androidbeat.com/2014/10/disable-whats-new-application-sony-xperia-z3-z3-compact-z2/
you will need to change the app name based on what you are trying to disable though

Is there any way to install an app in twrp recovery mode?

Earlier today I successfully rooted my phone and uninstalled a bunch of bloatware. Foolishly, I also uninstalled the Samsung keyboard (figuring I only use the Swype keyboard) which I now suspect it is used to enter my pin when turning the phone on. Now I can't get past the pin entry because the keypad does not show up. Is there anyway to reinstall the app in this situation?
trusko1 said:
Earlier today I successfully rooted my phone and uninstalled a bunch of bloatware. Foolishly, I also uninstalled the Samsung keyboard (figuring I only use the Swype keyboard) which I now suspect it is used to enter my pin when turning the phone on. Now I can't get past the pin entry because the keypad does not show up. Is there anyway to reinstall the app in this situation?
Click to expand...
Click to collapse
You can get a copy of the .apk file and then boot to TWRP, then use adb to sideload the .apk to /system/app or /system/priv-app (wherever it was at before you deleted it).
Or you can reflash your stock firmware or custom ROM if you're using one.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
I flash magisk.zip but it is normal app not system app
Magisk is a 3rd-party-app. Take note that a system-app is necessary part of Android OS. And Magisk isn't.
jwoegerbauer said:
Magisk is a 3rd-party-app. Take note that a system-app is necessary part of Android OS. And Magisk isn't.
Click to expand...
Click to collapse
Not quite right, when a 3rd party user app is installed or pushed to system, it then becomes a system app. The term "system app" refers to any app that is in the system partition, it has nothing to do with whether the app is a necessary part of the OS. Stock system apps, or, at least, "some" of them can be considered to be necessary parts of the OS but this isn't completely true because a lot of devices come pre-installed with non essential bloatware apps in the system partition. These non essential bloatware apps can be removed via root or by adb on non rooted devices because they are not necessary parts of the system.
For me a "system app" is - as already mentioned - an app that comes pre-installed in Android ROM's one of the partitions /system/app or /product/app or /product/overlay or /vendor/app, is a "system app" an app that is intended for the functioning of the Android device.
Your admission to this view of mine does not change my opinion.
private app is also a system app but seems to be an add-on. and i flashed the zip but it was not set as a system app, it seems the zip is not related to install like the system in twrp, and twrp mounted the system but couldn't delete any folder in. rooted but so bad!

System file modification

I've been using Pixel 3 only for two weeks, and haven't understood its security mechanism fully yet.
Usually on other phones, I simply run TWRP and modify hosts to avoid ads. After doing the same on Pixel 3 and booting into system, ads are still there, which means hosts modification didn't work properly.
So I installed Magisk from TWRP, and did the same modification on Android, and I confirmed ads were all gone as usual. Then, I uninstalled Magisk with the modified hosts left in /system/etc, and reboot the system to find ads were all back...
It looks like you need Magisk installed on Pixel 3 to keep system file modifications working. I haven't tried font modifications, but I assume the result would be the same.
Could someone explain to me what causes this system file modifications fail without Magisk installed? A new Pixel-unique system security mechanism?? Thanks in advance!
QT
Does Pixel 3 checks whether system files are signed by Google or not??
qtotter said:
Does Pixel 3 checks whether system files are signed by Google or not??
Click to expand...
Click to collapse
It is my understanding that this mod requires root.
Yes, system files have checks. That's why when you edit system files you use the original signature.
Tulsadiver said:
Yes, system files have checks. That's why when you edit system files you use the original signature.
Click to expand...
Click to collapse
Thanks for your info. Google's security policy is getting tighter...

Has anyone figured out how to force Android 10 to R/W yet?

Android 10 has this messed up file system that does not allow any writing of the system files. While I have root neither Root Explorer or any other third party apk can force it over. I also cannot install any application with Root Explorer. What's the good of root if we can't actually mod our own system files?
Also, since debloating everything and removing google everything, I can't use instacart anymore. It says I need Google Play Services. This NEVER was an issue on my Moto G7 Power.
At the very least is there a tool where I can unpack Super.Sparsechunk files and then repack them so I can flash them as stock via fastboot. All I want to do is delete the stock ringtones on this phone and replace them with my own .ogg files (as I've done on every Moto I've ever had). Thanks.
You have to root it before using R/W
One Ace is easy to root though
Unlock bootloader and patch boot.img with Magisk app, and flash it
mingkee said:
You have to root it before using R/W
One Ace is easy to root though
Unlock bootloader and patch boot.img with Magisk app, and flash it
Click to expand...
Click to collapse
I did all that. It still will not go to R/W. This seems to be an Android 10 issue.
Here you go my friend. Enjoy!
lebigmac said:
Here you go my friend. Enjoy!
Click to expand...
Click to collapse
Your method as of now is not working.
It's working fine on my Xiaomi (which is A slot only device) but you are right. The current version is not as universal yet as I'd like it to be. There seems to be an lpmake error at the very end of the script for those with A/B slot device.
Don't worry I am working very hard on identifying and fixing the error.
Soon your system shall be RW!

How to uninstall system apps?

Hey guys,
I'm on OOS, rooted with TWRP and I want to uninstall Duo, Youtube Music, Drive and all this other pre-installed crap-apps.
TitaniumBackup does not work anymore (it fails to locate the apks when you click "uninstall") and the often quoted "uninstall system apps with adb"-method just removes the app from user space while it actually remains installed on the device in the root directory and keeps wasting space. So this method does not actually remove apps, it just sorta deactivates them in another way.
So, is there any known method to remove system apps?
Read up on how to use adb commands.. quite simple..
pm uninstall --user 0 package.name.example
You do need a laptop, it you don't have one this app is great... https://play.google.com/store/apps/details?id=com.draco.ladb
lilbrat said:
Read up on how to use adb commands.. quite simple..
pm uninstall --user 0 package.name.example
You do need a laptop, it you don't have one this app is great... https://play.google.com/store/apps/details?id=com.draco.ladb
Click to expand...
Click to collapse
it is not for android 7 (i'm using android 7)
ai.Sanaul said:
it is not for android 7 (i'm using android 7)
Click to expand...
Click to collapse
ADB still works .. or since your on 7 try this https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp.pro.
Wait you weren't the original poster... But since he has TWRP installed he could just use the file manager and delete the files from there..
lilbrat said:
ADB still works .. or since your on 7 try this https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp.pro.
Wait you weren't the original poster... But since he has TWRP installed he could just use the file manager and delete the files from there..
Click to expand...
Click to collapse
and this is an alternative of Bloatware Remover app
but thanks for help i will try
lilbrat said:
Read up on how to use adb commands.. quite simple..
pm uninstall --user 0 package.name.example
You do need a laptop, it you don't have one this app is great... https://play.google.com/store/apps/details?id=com.draco.ladb
Click to expand...
Click to collapse
As I've already written.. It does NOT really actually remove the apps from the device:
How to uninstall carrier/OEM bloatware without root access
If you want to get rid of carrier/OEM apps from your phone, here's how you can uninstall bloatware from your device without root access!
www.xda-developers.com
[...] applications truly aren’t fully uninstalled from your device. They are just being uninstalled for the current user (user 0 is the default/main user of the phone). [...]
Click to expand...
Click to collapse
lilbrat said:
ADB still works .. or since your on 7 try this https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp.pro.
Wait you weren't the original poster... But since he has TWRP installed he could just use the file manager and delete the files from there..
Click to expand...
Click to collapse
Thanks, but according to my knowledge this cannot work either since the app does not require root access. And you cannot uninstall system apps without having root. It probably just follows an adb-like approach.
lilbrat said:
ADB still works .. or since your on 7 try this https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp.pro.
Wait you weren't the original poster... But since he has TWRP installed he could just use the file manager and delete the files from there..
Click to expand...
Click to collapse
That TWRP method sounds promising. Do you happen to know if all app related files are in one place or are they spread accross several folders?
haitower said:
That TWRP method sounds promising. Do you happen to know if all app related files are in one place or are they spread accross several folders?
Click to expand...
Click to collapse
Now with all due respect, you asked for a suggestion on how to remove the apps, they were given to you, you used every reason why not to use them... Have you even tried the various methods or just "read" about them ? Trying out the methods given then verifying through TWRP file manager would be nice learning experience once you "read " up and tinker with TWRP's file manager and different file locations...
But please make a backup before you start and have necessary programs handy in case you remove the wrong file... as it can really ruin your day..
lilbrat said:
Now with all due respect, you asked for a suggestion on how to remove the apps, they were given to you, you used every reason why not to use them... Have you even tried the various methods or just "read" about them ? Trying out the methods given then verifying through TWRP file manager would be nice learning experience once you "read " up and tinker with TWRP's file manager and different file locations...
Click to expand...
Click to collapse
It is simply NOT possible to uninstall system apps without root access. Thats why neither the adb method nor the other suggested app from questionable source can even work in theory. If it were otherwise, you would have found a major flaw in the android system, which, with all due respect, I doubt a tiny little bit.
You could also suggest to swim in a muddy pond for two days and look if this removed the system apps. But I hope you understand that I won't try that approach either because I prefer to not waste my time.
But thanks anyway for the TWRP idea, I'll look into that.
@haitower here's a Magisk module I use to remove a fair number of system apps. See the REPLACE variable in customize.sh
Use the magisk module "debloater". When you are done removing apps (don't really remove) just export the file. It will make text file in your storage. Then if you want to re-install any of the apps just reopen the app and import the file.
haitower said:
Hey guys,
I'm on OOS, rooted with TWRP and I want to uninstall Duo, Youtube Music, Drive and all this other pre-installed crap-apps.
TitaniumBackup does not work anymore (it fails to locate the apks when you click "uninstall") and the often quoted "uninstall system apps with adb"-method just removes the app from user space while it actually remains installed on the device in the root directory and keeps wasting space. So this method does not actually remove apps, it just sorta deactivates them in another way.
So, is there any known method to remove system apps?
Click to expand...
Click to collapse
Maybe @BillGoss will help to clarify things a bit.
As far as i understand. On 8T (or better to say from Android 10 and latter) /system partition is read only and furthermore is located inside Super partition.
I suppose even with root access you will not be able to directly uninstall system apps without remounting /system/ as writable.
From Magisk manual we can learn that:
Since / is read-only on system-as-root devices, Magisk provides an overlay system to enable developers to replace files in rootdir or add new *.rc scripts. This feature is designed mostly for custom kernel developers.
Click to expand...
Click to collapse
For each module, the folder $MODPATH/system will be recursively merged into the real /system; that is: existing files in the real system will be replaced by the one in modules’ system, and new files in modules’ system will be added to the real system.
Click to expand...
Click to collapse
So as Magisk overlays modules /system folder to actual system with debloater module blank files android "thinks" those files specified in MODPATH/system don't exist.
Though a presume, in reality they are there.
So is magisk solutions really delete files from /system and not just "hide" them from Android?
haitower said:
Hey guys,
I'm on OOS, rooted with TWRP and I want to uninstall Duo, Youtube Music, Drive and all this other pre-installed crap-apps.
TitaniumBackup does not work anymore (it fails to locate the apks when you click "uninstall") and the often quoted "uninstall system apps with adb",method just removes the app from user space while it actually remains installed on the device in the root directory and keeps wasting space. So this method does not actually remove apps, it just sorta deactivates them in another way.
So, is there any known method to remove system apps?
Click to expand...
Click to collapse
For Xiaomi phones, first install the “Hidden Settings for MIUI” app.
1. Open “Hidden Settings for MIUI.”
2. Go to “Manage applications” and find the application you want to disable.
3. Tap on the “Disable” button.
BillGoss said:
@haitower here's a Magisk module I use to remove a fair number of system apps. See the REPLACE variable in customize.sh
Click to expand...
Click to collapse
Thank you, very reasonable and necessary.

Categories

Resources