Is there any way to install an app in twrp recovery mode? - General Questions and Answers

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!

Related

[Q] How To Uninstall Apps In System (priv-app)?

The title explains it all. I'm trying to get rid of all the bloatware and other system apps I don't need on my Droid Mini (4.4 19.5.3, rooted, w/p off, BL locked) and some apps (specifically the Amazon appstore) I can't get rid of no matter what I do (it seems to be the apps in the /system/priv-app directory). I use Titanium Backup (I have the pro version), and it acts like it uninstalled it but it's still there. I use Clean Master and try to uninstall it but it fails. I use ES File Explorer (I have /system r/w mounted) and try to delete it and it says device or resource busy. Also get the device or resource busy error if I try to remove it via ADB. So I'm at a loss here.
Try to use system cleanup app from the playstore.
That app can see whats installes in priv-app.
w/p on/off isn't something i quite understand as i have only used bl unlocked maxx/mini, but what I personally do is install Root Browser, navigate to system/priv-app and rename the offending applications to app.apk.bak (example: Amazon.apk becomes Amazon.apk.bak) This way, if an update comes along I can erase the .bak and have the stock crap back. If you can't do this with your setup, i apologize, i just thought it might help, as I hate having to install an app just to do one function, and Root Browser is a great app for many things like this, not just one function.

Delete "Google Maps" stub

I've got my shiny new Pixel 4 XL up and running on the stock ROM after coming from a worn out Note 8. Everything is better except the new version of GMaps. I was using 9.47.x and this new 10.x.x is just awful. I want to completely delete the stub from the system so I can install the older version. I've tried several root uninstallers, even using the adb shell command. It always "uninstalls" but the stub is still there. Therefore the older APK refuses to install. I've even gone into the root/product/app/maps folder to try manually. It doesn't work, nor does changing any permissions. I have a feeling someone is going to tell me that this can't be done without installing a custom rom.
I'm guessing the culprit is not being able to remount the system with read/write permissions on newer versions of android. Unless there's something I'm missing.
iBreakStuff said:
I've got my shiny new Pixel 4 XL up and running on the stock ROM after coming from a worn out Note 8. Everything is better except the new version of GMaps. I was using 9.47.x and this new 10.x.x is just awful. I want to completely delete the stub from the system so I can install the older version. I've tried several root uninstallers, even using the adb shell command. It always "uninstalls" but the stub is still there. Therefore the older APK refuses to install. I've even gone into the root/product/app/maps folder to try manually. It doesn't work, nor does changing any permissions. I have a feeling someone is going to tell me that this can't be done without installing a custom rom.
I'm guessing the culprit is not being able to remount the system with read/write permissions on newer versions of android. Unless there's something I'm missing.
Click to expand...
Click to collapse
It may be having a conflict with cached data from the version that you installed, removing the cached data might allow you to install the version you want.
Uninstall the app from system partition, then, power the device off, then, boot into recovery and wipe the cache partition, then reboot into system and try installing the older version.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
Uninstall the app from system partition, then, power the device off, then, boot into recovery and wipe the cache partition, then reboot into system and try installing the older version.
Click to expand...
Click to collapse
That is right where the issue is. I can get it to the point from being a 66mb APK down to 200k where the system; or play store, even recognizes it's installed. I need to get write access to the system partition to get rid of the "Maps" folder persistently living in the root apps folder. If that can be done on 10 in stock recovery then I've never done that. Mind you I'm rooted on Magisk with the flashed boot image, no TWRP yet.
iBreakStuff said:
That is right where the issue is. I can get it to the point from being a 66mb APK down to 200k where the system; or play store, even recognizes it's installed. I need to get write access to the system partition to get rid of the "Maps" folder persistently living in the root apps folder. If that can be done on 10 in stock recovery then I've never done that. Mind you I'm rooted on Magisk with the flashed boot image, no TWRP yet.
Click to expand...
Click to collapse
After flashing the Magisk patched boot.img, did you install the Magisk Manager app? Magisk Manager is what is used to grant root permissions to your other apps. There is more to it than just flashing the boot.img.
You can also use adb shell to remove the app as demonstrated in the second method described in the link below.
https://www.maketecheasier.com/uninstall-system-apps-without-root-android/
Sent from my SM-S767VL using Tapatalk
Droidriven said:
After flashing the Magisk patched boot.img, did you install the Magisk Manager app? Magisk Manager is what is used to grant root permissions to your other apps. There is more to it than just flashing the boot.img.
You can also use adb shell to remove the app as demonstrated in the second method described in the link below.
https://www.maketecheasier.com/uninstall-system-apps-without-root-android/
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
So I tried what you suggested, I got the same result. Maps uninstalls but still lives in the root directory. Not being an ADB expert I went into adb shell super user mode and tried the the rm command to delete the folder, also the remount system command. Neither of those worked. Trying to install the older APK results in "App not installed"
And yes I have Magisk manager. It installed the latest version automatically. I use RootExplorer and it has superuser permissions.
Would something like this work? I'm not completely clear on how this works.
https://www.isrgrajan.com/how-to-copy-and-delete-files-in-android-using-recovery-mode.html

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.

Backup app data without root

Hi there, I'm working on a project.
I have below questions.
1. Is it possible to backup app data without root and without adb as app doesn't allow backup. I don't want to root my phone and i don't have any custom recovery.
2. If above question's answer is "No" then is it possible that i sign and update mod of an app on top of already installed original app from play store. I don't want to uninstall previous app i just want to update app with different signature. My device is not rooted and i don't have any custom recovery.
Thanks in advance
An app's data is stored either in /data/data/<pkg-name> or in /Android/data/<pkg-name> what depends on Android version and/or app. To successfully backup these data Android OS must be rooted, AFAIK.
self-signed app will treated as other app, so this is not possible. some apps however could be downgraded to older version with adb backup allowed (for example WhatsApp)
starting with api level 30 the flag android:allowBackup="false" seems ignored
https://www.xda-developers.com/android-11-force-app-local-backup-restore-handicap-cloud-backup
starting with api level 31 different flag android:debuggable="true" is required for adb backup
https://developer.android.com/about/versions/12/behavior-changes-12#adb-backup-restrictions
so your only chance is find the proper OEMs D2D transfer app (like Samsung Smart Switch for Samsung, Phone Clone for Huawei, etc.)

MicroG Bricked Whole Phone

Hello,
Actually I'm kinda new at root. I used to root phones that weren't too complicated to root, like the Samsung Galaxy W, so I have "pretty basic" rooting knowledge. I successfully rooted my phone this morning. There was no problem but in many modules and rooting applications it was not working properly because the system file was not read/write-able. I haven't been able to find any information, especially for Android 12, despite a lot of research. I was getting errors like "'
Code:
/dev/block/dm-0' is read-only
" and "
Code:
verity cannot be disabled/enabled - USER build
" when trying to grant write permission to the system file via adb. Eventually I came across this post on the forum: https://forum.xda-developers.com/t/fairphone-4-remove-google-apps-microg.4379791/post-86159173
I downloaded "NanoDroid-microG-23.1.2.20210117.zip" from here, then installed via Magisk app.
Actually I didn't know that this module removes Google apps. After I reboot, looks like my phone was completely broken. Not only Google apps, even the launcher crashes. Crash video here. After a while everything crashes, the phone automatically boots into Recovery mode.
I had a backup of Boot before. I first deactivated and then removed the last installed Magisk module via TWRP. I restored the Boot I backed up but the problem still persists. At the moment I have no idea of any solution other than a clean install on the phone but that would be the last thing I want. Is there any other way to solve this?
Thanks in advance.
bitblocksplicer said:
Hello,
Actually I'm kinda new at root. I used to root phones that weren't too complicated to root, like the Samsung Galaxy W, so I have "pretty basic" rooting knowledge. I successfully rooted my phone this morning. There was no problem but in many modules and rooting applications it was not working properly because the system file was not read/write-able. I haven't been able to find any information, especially for Android 12, despite a lot of research. I was getting errors like "'
Code:
/dev/block/dm-0' is read-only
" and "
Code:
verity cannot be disabled/enabled - USER build
" when trying to grant write permission to the system file via adb. Eventually I came across this post on the forum: https://forum.xda-developers.com/t/fairphone-4-remove-google-apps-microg.4379791/post-86159173
I downloaded "NanoDroid-microG-23.1.2.20210117.zip" from here, then installed via Magisk app.
Actually I didn't know that this module removes Google apps. After I reboot, looks like my phone was completely broken. Not only Google apps, even the launcher crashes. Crash video here. After a while everything crashes, the phone automatically boots into Recovery mode.
I had a backup of Boot before. I first deactivated and then removed the last installed Magisk module via TWRP. I restored the Boot I backed up but the problem still persists. At the moment I have no idea of any solution other than a clean install on the phone but that would be the last thing I want. Is there any other way to solve this?
Thanks in advance.
Click to expand...
Click to collapse
Which ROM are you actually running?

Categories

Resources