PDA

View Full Version : Nexus 5 - cant install nethunter.apk



Warlord711
2016-08-12, 17:05
After installing Nethunter.zip, i tried to install the .apk

I had some fragments of a older nethunter installation, but the Nethunter App seems to be gone - its not listed under Android->Apps.

If i try to uninstall i get error, if i try to install, i also get error.

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
Uninstall:
Failure [DELETE_FAILED_INTERNAL_ERROR]

I tried to find traces/artifacts or anything::


130|root@hammerhead:/ # find / -name '*nethunter*' 2>/dev/null
/storage/emulated/0/nethunter-hammerhead-lollipop-3.0.zip
/mnt/runtime/write/emulated/0/nethunter-hammerhead-lollipop-3.0.zip
/mnt/runtime/read/emulated/0/nethunter-hammerhead-lollipop-3.0.zip
/mnt/runtime/default/emulated/0/nethunter-hammerhead-lollipop-3.0.zip
/data/local/nhsystem/kali-armhf/var/lib/dpkg/info/nethunter-utils.md5sums
/data/local/nhsystem/kali-armhf/var/lib/dpkg/info/kali-linux-nethunter.list
/data/local/nhsystem/kali-armhf/var/lib/dpkg/info/kali-linux-nethunter.md5sums
/data/local/nhsystem/kali-armhf/var/lib/dpkg/info/nethunter-utils.list
/data/local/nhsystem/kali-armhf/usr/share/kali-defaults/web/nethunter-logo-gray-trans.png
/data/local/nhsystem/kali-armhf/usr/share/doc/nethunter-utils
/data/local/nhsystem/kali-armhf/usr/share/doc/kali-linux-nethunter
/data/media/0/nethunter-hammerhead-lollipop-3.0.zip

Thats all i get.

Warlord711
2016-08-17, 09:17
Ok, i fixed the problem myself.
Even with no Nethunter App visible on phone or within the Apps Section, it seems that there are some artifacts on the device.

Since i had no idea about the internal package name, i used a adb logcat session.
Whilte logcat was running, i tried to install the latest.apk


adb install latest.apk

On the logcat, you will find a message like this:


PackageManager: Package com.offsec.nethunter signatures do not match the previously installed version; ignoring!

So i could use those information to call adb uninstall


adb uninstall com.offsec.nethunter
It succeed.

So i could call


adb install latest.apk

again, which also succeed.

jmingov
2016-08-17, 16:23
Hi @Warlord711,

Sorry for this issue, was our fault, we signed the apk with different keys.... thats what really caused the update problem.

Thank you for the reporting and the provided solution. Well done.


BR

Jaime

Warlord711
2016-08-18, 16:26
Ah ok - i thought it was because of a broken installation...so i wrote down my steps, just in case someone else encounter the same issue ;)

Nice to hear YOU are the one to blame :D