Reinstalling original version of a broken component
-
Hi,
I have a nexus 5 with UBPorts OTA15 installed. I wanted to try out some app development. Therefore I cloned the ubuntu-app-launch git repo and ran a build using crossbuilder. The build was successful and deployed to the phone. Unfortunately, with the head revision build of branch xenial the terminal no longer launches.
How can I now get the original OTA15 release version of the ubuntu-app-launch back on the device, without re flashing it? How do I find out, which branch/commit of the component is actually present in the OTA15 release of ubuntu-app-launcher?
Best Regards,
anhilde
-
@anhilde I think the best way is to reflash without wipe or switch between channels. You won't lose data anyway.
-
@anhilde maybe by removing the deb package and try to reinstall the last one via apt-get install ( after doing an update )?
-
@kugiigi yeap, that is what I have done.
-
What I really need to know is, whether it is possible to "undeploy" a component after depoying it via crossbuilder. But perhaps my idea about how this should work is totally flawed.
-
@anhilde Yes, but not easily. You can ssh/adb in and do it manually, but it's much easier to just re-flash.
-
@anhilde You can try to look on the deploy code in crossbuilder script, and try to undeploy manually by "reverse engineering" the deploy steps. And maybe if you can find out how, you can help by implementing undeploy.
Have a nice hacking. -
@jezek good idea actually, I will give that a try.