Hello, I recently starting degoogling a motorola razr 50 and I overdid it.

My approach was to use ‘adb’ and uninstall packages. I started with the obvious ones, and then I started going a bit too far. I realise now I should have taken a backup of the apk to restore it after. Well, too late now.

I removed com.android.dialer and com.android.phone. I thought i would not need them since i installed some Fossify app alternatives. My guess is that they are more libraries than apps, and still needed by the Fossify apps (messages and phone). I’m not able now to send/receive calls/sms, and I’m wondering if I could download the apk from somewhere and restore it.

I tried to get some from the interwebs, but I get the following exception when trying to reinstall them: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Existing package com.android.dialer signatures do not match newer version; ignoring!]

The last resort would be to do a factory reset, but I would prefer to avoid it.

Anyone knows how I could fix it?

Thanks

  • noodlejetski@lemm.ee
    link
    fedilink
    arrow-up
    57
    ·
    edit-2
    2 days ago

    the apps aren’t completely uninstalled from your device, only from the current user account. according to this stackexchange thread running

    adb shell cmd package install-existing [package_name]

    should bring the “removed” package back.

    • JuanKao@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      To delete this: ./adb shell pm uninstall --user 0 com.google… To restore this: ./adb shell cmd package install-existing com.android…

  • youmaynotknow@lemmy.ml
    link
    fedilink
    arrow-up
    3
    arrow-down
    12
    ·
    edit-2
    1 day ago

    At this point, unfortunately, all you’re left with is a factory reset. The way Android is built today just won’t allow you to reinstall modules and libraries unless its6from the official channel.

    Edit: Apparently the one solution I know about for this is, not only just 1 of the potential “solutions”, but the worst possible one as well. I said this out of ignorance, and I apologize for this.

    • superkret@feddit.org
      link
      fedilink
      arrow-up
      10
      ·
      2 days ago

      The apps are still untouched on the phone.
      They’re just unavailable for the standard user.
      You can reinstall them with adb.

    • TheTechnician27@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      2 days ago

      Dude, seriously? Don’t tell a user to do a factory reset unless you actually know what you’re talking about jfc.

      • youmaynotknow@lemmy.ml
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        1 day ago

        No idea what “jfc” means, but you’re right. Just because I compulsively backup so for me a factory reset is the easiest “fix-all”, it doesn’t mean everyone else functions like me. I spoke out of place, and I’m sorry. Thanks for pointing it out, I’ll be more careful moving forward.

          • youmaynotknow@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            12 hours ago

            More than pride, I feel great someone took the time to tell me I’m wrong. We’re all growing until the day we die, and we all need others to call us out when needed for us to rethink our ways and then try to make changes for the better.

            TheTechnician27 displayed care for others enough to do his part in stopping misinformation, that’s something we sorely need more off in the world.

          • youmaynotknow@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            12 hours ago

            Nah man. It’s all good. I appreciate how you care about correcting wrong information that might affect others. Your heart is in the right place. Thank you for calling me out.