[Q] Port Kali Linux Nethunter from Nexus 5 to LG G2 (D802)

mickmattes

Member
Jul 21, 2012
28
9
0
Hi everyone,

as the LG G2 is produced by the same manufacturer (LG) as the Nexus 5 and has the same chipset (despite some minor differences e.g. Battery, Display,...), I have been wondering if there is a way to port the Kali-Linux Android ROM (Nethunter) to work with the LG G2.
LINK: http://http://www.kali.org/kali-linux-nethunter/
LINK:http://http://www.offensive-security.com/kali-linux-nethunter-download/

The mere existence of a MAHDI ROM port from N5 to G2 makes me think, that it should be possible.

I would also be quite keen on getting involved in such an effort but I am not very fluent in porting Android ROMS.
I have basic coding skills and am not afraid of learning new stuff so I'd really appreciate if one of the Android-Gurus would kind of orchestrate the whole thing.

Thanks for your attention and good bye.

mick
 
Last edited:

mickmattes

Member
Jul 21, 2012
28
9
0
Yeah, but it seems it will remain a dream, as the members to whom this is addressed to, obviously do not read the Q&A Forums. Why should they anyway?
The problem is, if I open a development-thread it's not unlikely, that someone will be playing the wrong-forum-double-post-card.
:(:(
 
Y

Yoinx

Guest
Yeah, but it seems it will remain a dream, as the members to whom this is addressed to, obviously do not read the Q&A Forums. Why should they anyway?
The problem is, if I open a development-thread it's not unlikely, that someone will be playing the wrong-forum-double-post-card.
:(:(
To be honest, I'd say look at Dr87's github. He ported Mahdi over... Though really I don't think that the rom itself is "ported" so much as the drivers/kernel/ramdisk need to be modified to work with the code on this device.

I would suggest starting by getting the rom source you want. Then setting up the device in the source using the devices/kernel/vendor files he made. You'll likely get errors during the build, but it would give you a starting point.

There are many, many guides out there on porting roms to new devices. Read through some of those if you haven't and it might help to steer you in the right direction.
 

mickmattes

Member
Jul 21, 2012
28
9
0
To be honest, I'd say look at Dr87's github. He ported Mahdi over... Though really I don't think that the rom itself is "ported" so much as the drivers/kernel/ramdisk need to be modified to work with the code on this device.
Do you mean, that it is not "ported" due to the fact that the chipsets of both devices are the same?

I would suggest starting by getting the rom source you want. Then setting up the device in the source using the devices/kernel/vendor files he made. You'll likely get errors during the build, but it would give you a starting point.
Yeah, I'm going to try that. Sounds promising.

There are many, many guides out there on porting roms to new devices. Read through some of those if you haven't and it might help to steer you in the right direction.
I don't want to look lazy, but as you pointed out, there are many guides out there. Some are old, most are really old. Can you name one or two particularly good ones? :D

Anyway, thanks for your suggestions...it's going to be a long night. ;)
 
  • Like
Reactions: mohammad4581
Y

Yoinx

Guest
No, I mean the rom source doesn't seem to need heavy changing typically. Usually the changes to the rom code at large is pretty minimal. Most of the time you need to tweak the device files to work with the rom (caf changes and such).

To be honest, I'd point you toward the Cyanogenmod guides... they have some custom commands but their guide would probably be the most up to date of any.
 

mickmattes

Member
Jul 21, 2012
28
9
0
That should be correct. They have a FAQ at the Nethunter site where they say, that one could use the rom by building a rootfs. This would imply, however, that one could not use the features that come with a dedicated kernel.
So, yes, the rom part should not be the problem. The kernel part will be problematic. I think I'll send a message to dr87, perhaps he has some advice,too.
Just to make it clear, I bought this device some days ago and I want to be quite sure that my messing around with it will not brick or damage it somehow.

Ok. So I'll have a look at the CM-Guides.
 
  • Like
Reactions: mohammad4581

twist

Senior Member
Feb 23, 2006
507
82
0
I just read about this for the nexus 5 and googled for the lg g2 and came across this thread. I would love to get this working on my g2, gonna do some more googling and see if I can find anything else going on.

:D
 
  • Like
Reactions: mohammad4581

mohammad4581

Member
Nov 18, 2010
7
0
0
Shiraz
I just read about this for the nexus 5 and googled for the lg g2 and came across this thread. I would love to get this working on my g2, gonna do some more googling and see if I can find anything else going on.

:D

Hello
Is it possible to install NetHunter a device is jailbroken.
My phone Is LG G2 ....
.........0x0........
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone