[Samsung Galaxy S 5 Unified Development] jcadduono:
WARNING: THIS IS A BETA, USB CABLES MAY CATCH FIRE, YOUR CHAIR MAY BREAK, AND TRUMP MAY WIN THE ELECTION!

Welcome to the thread on Kali NetHunter for the Galaxy S5.

These Kali NetHunter builds are designed for CyanogenMod 12.1 and CyanogenMod 13.0.

I have TouchWiz builds as well, but NetHunter has not been tested on TouchWiz.

In theory, they should work fine on all AOSP based ROMs. The TouchWiz might work on most custom TouchWiz 5.0 ROMs too!

I am releasing on a nightly based development schedule similar to CyanogenMod.

Occasionally builds can show up more than once per night. This usually happens when there's a big update like a new device added to the line or an apk update for the NetHunter app.

These builds are NOT Aroma enabled, however, it should be no issue to just drag apps you don't need to the uninstall button in your app drawer.

Aroma support is going to be phased out for a while, especially with new TWRP releases coming out soon that may have newer kernels that aren't compatible with Aroma.

DOWNLOAD

Current version: 3.0.1 (beta, 2016-01-21)

Please be careful to download the right version based on this table:

SM-G900F, SM-G900W8, SM-G900T, SM-G900M, SM-G900A, SM-G900S, SM-G900K: klte

SM-G900I: kltedv

SM-G900P: kltespr

SCL23 kltekdi

CyanogenMod 12.1: lollipop

CyanogenMod 13.0: marshmallow

Nightly TWRP flashable zips are located at: https://idlekernel.com/nethunter/nightly/

Kernel only installers are in the kernel-only directory inside each build directory. It might be a better idea to try and install that first and see if you can boot before flashing the entire NetHunter.

BEFORE INSTALLING

Do not flash the NetHunter update zip with a fresh data partition!

Most ROMs will wipe it clean on the first boot if you haven't completed the Android Setup Wizard yet, there's no need to wipe your ROM or data to try it out. I do advise backing up your data partition before flashing the zip though.

Please make sure your phone boots fine and runs fine before flashing NetHunter. It's confusing when people report bugs that exist in CyanogenMod by itself.

The Kali chroot and apps are installed on your data partition (in /data/local for chroot). To initialize the chroot and install Kali Linux, you need to start the Kali NetHunter app.

If you are already rooted or know you have systemless SuperSU installed, you will need to go into the SuperSU app and do a full unroot then reflash CyanogenMod (for the unmodified boot partition) and Gapps. The NetHunter installer does not play well with systemless SuperSU at this time.

The NetHunter installer will automatically install SuperSU in system mode, which I consider to be more stable. Since NetHunter already modifies your system partition, there is no need to use systemless SuperSU anyways.

FULL FRESH INSTALL STEPS

Flash CyanogenMod installer zip

Flash Gapps if you want them (preferably OpenGapps pico)

Boot into device

Complete setup wizard

Reboot into recovery

Flash the Kali NetHunter installer zip from this thread

Boot into device

Open the NetHunter app

Use the Kali Chroot Manager to install Kali on your phone

You're done!

UPDATING TO A NEWER BUILD

Going from 3.0.0 and up, all you have to do is flash the new build in recovery and

wipe dalvik cache

.

Upgrading from NetHunter 2.0 is not recommended, and may break the NetHunter app in some cases.

RAN INTO AN ISSUE OR BUG?

In order for me to help you, you have to at minimum reply with:

The link to the exact zip you downloaded

Your device model (klte, kltecan, kltesovietrussia, etc.)

The name of the ROM you're flashing it on

The version and build date of the ROM you're flashing it on

A complete description of your problem

Optional: An audio recording of you reading this entire post

If your issue is with a specific app, it might be better to contact the developer of that app.

If your issue is during the installation (ex. flashing the NetHunter zip), then please collect a TWRP recovery.log for me.

If you found a problem and were able to fix it, and no one's mentioned it in the thread already, it would be kind to state the issue and your fix for others to make use of as well.

You can join me and the other NetHunter developers on IRC at the #nethunter room on freenode to more handily diagnose problems together.

I apologize, but I can't do house calls at this time.

KNOWN ISSUES

F2FS - You need to have an ext4 data partition. I'm not sure why, but having a Kali chroot on your data partition totally breaks booting f2fs /data.

There is currently no fstab modifications in NetHunter, but I do plan on making a zip to automatically modify the fstab for f2fs later.

Marshmallow - New android app permissions API can wreak all sorts of havoc. On first boot, accept all permissions after opening the NetHunter app then reboot your phone. You might need to battery pull if it freezes up completely. Once app permissions are accepted, the next reboot should hopefully not freeze up and allow you to install your chroot normally. (once the NetHunter app has full support for the new Android API this should no longer be an issue)

USB Keyboard - The keyboard is unusable on some devices (ex. the Note 3) due to a depth bug that causes your key presses to go right through the keyboard into the swipe pad.

Terminal App - Full screen programs like nano or vi are unusable because they can't be rendered properly. Learn sed for text file editing. Just kidding that's cruel.

Install OpenSSH server in Kali and use the JuiceSSH app as an alternative to NetHunter Terminal. (it's wayyyy better sorry jmingov)

THE KERNEL

The NetHunter kernel for the Galaxy S5 is based on CyanogenMod 13.0 kernel sources.

It has the following changes:

F2FS updated to Jaeguek Kim's latest kernel.org f2fs-stable sources

UKSM Ultra Kernel Same-page Merging KSM support

Updated and enabled USB (OTG) Atheros, Ralink, and Realtek WiFi drivers

Krait specific Cortex-A15 & Neon-VFPv4 + -O2 compiler optimizations

Compiled with Linaro's branch of GCC 4.9.4

Simple IO (SIO) scheduler as default IO scheduler

USB HID Gadget keyboard support

mac80211 packet injection support

Additional drivers built in for the full Kali NetHunter experience

SCREENSHOTS

DEVELOPMENT

For the kernel included in NetHunter for the Galaxy S5, you can find the sources here: https://github.com/jcadduono/nethunter_kernel_klte

You can see my branch of the installer development here: https://github.com/jcadduono/kali-nethunter

Alternatively, but not updated as often, it is also available as another branch on the Offensive Security NetHunter GitHub: https://github.com/offensive-security/kali-nethunter/tree/master-jcadduono

The original branch of development is located here: https://github.com/offensive-security/kali-nethunter

DISCLAIMER

I am not affiliated with Offensive Security. They seem like cool guys though.

I'm not even a novice when it comes to security and penetration. I'm just a simple system administrator with a passion for breaking Android.

Please restrain yourselves from asking me security related questions.