So I have a parasite application installed on the phone that blocks the device from booting to bootloader and bunch of other stuff. It is also set as a device administartor thus it can't be uninstalled (deactivate administartor rights is also impossible). So to fix this problem I decompiled the APK of this app and changed the code so I can deactivate the admin rights. Unfortunately recompiled APK can not be installed over the existing application.
Adb error:
INSTALL_FAILED_UPDATE_INCOMPATIBLE
So is there a way to force install the app without uninstalling it? Or if my approach is wrong can you advice me on how to get rid of this annoying app.
Unfortunately recompiled APK can not be installed over the existing application.
No, because you have no access to former key that was used to sign the installed the parasite APK package.
If your device is rooted then you can try to boot to recovery like TWRP and carefully mess with system partition removing/editing files to prevent this particular app from starting (should suffice to simply remove its folder).
it blocks the device from booting to bootloader
How it does so? Most devices offer certain key combination (i.e. hold volume up + power) to boot in other modes, so unless you got it on very low level you can try that way.
So to fix this problem I decompiled the APK
If possible, I'd first backup my data (if there's any you want to backup) and simply factory reset the device. May save you some time.
EDIT
Idk how exactly it blocks the bootloader but it does (holding power, home, volume down just restarts the device)
You can always try to reboot to recovery/bootloader using adb:
adb reboot [bootloader|recovery]
- reboots the device, optionally into the bootloader or recovery program.
Related
I am trying to install Android 10 on an LG Nexus 5x (bullhead) smartphone. I installed the TWRP app, downloaded the Pixel Experience (the OS). I booted into TWRP recovery mode, and installed the OS, then rebooted.
After rebooting, the phone starts with the screen of language setup. Right there, the message "Google Services Framew...keeps stopping" keeps popping up, and I can't press on anything else.
I restarted the phone, went back to TWRP recovery mode, wiped data and installed the OS again. But that message still insists. Is there any way to fix it, or I've just broken the phone forever?
I finally found the offical forum for this Android 10 OS: https://forum.xda-developers.com/nexus-5x/development/pixelexperience-nexus-5x-t3861437/page141
Apparently, many people also experience this issue. I will look further for the solution on the official forum.
I finally found the answer. The Pixel Experience ROM must be installed in a decrypted data partition. Mine is encrypted, so I must remove the encryption.
The simple way is, instead of "Wipe", to choose "Format Data" in the TWRP recovery mode, then proceed as usual.
My phone ( android 5.0.2) have a pattern for password and broken screen,NO ROOTED.
I try this software (http://forum.xda-developers.com/showthread.php?t=2786395)for control my phone but I can't unlock my android device.
Can you give a solution for delete lock screen (I have tried this -> adb shell rm /data/system/gesture.key but I don't have permission)/others tools or others solutions?
You can remove any lock or pattern by deleting a file *.key located in /data/system.
You will need a shell and a rooted phone.
Otherwise, you could install a clockworkmod recovery that comes with an adb shell and use it to get full access to the file system.
Hope this helps.
if you aren't a root, you can not access the key file. So you can not change key or delete it. You must be root for deleting key file or changing the key file. Sorry.
You can only install a custom recovery if your bootloader is unlocked. On Nexus devices this wipes the device, I don't know about other devices. Many are not even capable of being unlocked.
So the solution to install a custom recovery to get write access to the system partition is not likely to work unless you've previously unlocked your bootloader.
I have a Nexus 4. I accidently wiped system and tried to restore it unsuccessfully.
I did have adb before I wiped the system. Now I can only get into recovery mode. When I use Nexus root toolkit it recognizes the device only in bootloader but it can't recognize it as adb device. I thought maybe now that Android is not installed USB, debugging is disabled as default.
Do I have a way to enable it or do you have any other solution? I can't use the device. Do I have any other way to install Android without adb?
adb isn't required (adb is only one of the ways to do it. As long as you still have access to recovery mode, you're golden).
Just get the zipped image you want to install (a modded one, or the official one). You should be able to get the official one from google since it's a Nexus 4. Do not unzip it.
Connect your phone to your computer as a usb drive. Copy the zip file to the root of your internal sdcard on your phone.
Reboot your phone into recovery mode. Then navigate the menu on the phone with the sound rocker and the power key to tell it where to find the new location of the new image.
Then reboot normally. I'm writing this from memory. If you want more specific instructions, I can provide them if you want.
I'm trying to fully automate the CTS tests (including the Google registration part), but I'm running into a bit of a problem with the USB debugging/RSA fingerprint dialog that comes up when you first connect your device to the computer. Without manually pressing the OK button, the ADB cannot detect the device, so my Monkeyrunner script will not start. How would you go about automatically confirming this dialog? Better yet, is there a way to auto-accept the RSA fingerprint from the computer so at the very least ADB communication can be established so that the Monkeyrunner script can click on the dialog?
I've tried:
Pre-installing an APK in the system/app partition that makes calls
to Settings.Global.putInt(...) to enable USB debugging by default,
but you still get the confirmation dialog.
Modifying the
default.prop file found in the ramdisk part of the boot.img image,
but you still get the same problem as 1)
Extracting the relevant
bits of code from UsbDebuggingManager.java to extract the RSA
fingerprint and putting it in an APK, but I get a "Connection
Failed" error.
Is there something I overlooked? Or is this impossible without swapping the Kernel with another one?
Actually, I realized I made a mistake when flashing the boot.img file back onto the device. Now that I've got it flashed correctly, I am no longer prompted with the USB Debugging dialog in the beginning.
Make sure you have the following flags set in your default.prop:
ro.debuggable=1
persist.sys.usb.config=mtp,adb
ro.adb.secure=0
and you should be good to go. With these set, it's not necessary to pre-install an APK into the system/app folder to change the ADB_ENABLED settings using Settings.Global.putint(...)
hi i am working to create an application that could'nt be deleted or uninstalled even after hard reset or formatting the device but that is failed in such rooting process ,
Now i want a code to install an app automatically from sd card after a hard reset or reboot of an android device ,
The application is to find a lost mobile so that even the lost device is resetted or formatted
my app helps a user to find his mobile
Thank you..
i am working to create an application that could'nt be deleted or uninstalled even after hard reset or formatting the device but that is failed in such rooting process
Build your own ROM mod that has your app pre-installed.
Now i want a code to install an app automatically from sd card after a hard reset or reboot of an android device
That is not possible, fortunately, for obvious security reasons.
AFAIK, There are 2 kinds of android app: System app and User app. If you want to prevent uninstalling from your app, it must be an system app.
If you are developing app for rooted phone (and your phone is rooted also), try to copy *.apk to /system/app then restart your phone.
Hope this helps.