Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Will it support OnePlus 5? #942

Closed
keeganjk opened this issue Jul 26, 2017 · 222 comments
Closed

Will it support OnePlus 5? #942

keeganjk opened this issue Jul 26, 2017 · 222 comments

Comments

@keeganjk
Copy link

Device: OnePlus 5

OS version (KitKat/Lollipop/Marshmallow/Nougat): OxygenOS v4.x.x

Issue: Will (official) support for the OnePlus 5 exist in the future? And if so, when?

@Jinovas
Copy link

Jinovas commented Aug 3, 2017

errrrr.....i'd imagine so. Although if you look at their site they say "we do not provide penetration testing support, or even tool usage support, as some might expect. We limit our support to Kali Linux operating system and packaging issues "and also that there is no official support for nethunter, only community-based support like you see here, IRC and the kali forums.

Lastly, I'd imagine nethunter will work fine on the oneplus 5 once the kernel headers are available for it(very short/basic answer/opinion I know lol). At least it better! I plan on getting a oneplus 5 soon lol

@jcadduono
Copy link
Collaborator

jcadduono commented Aug 3, 2017

I'm sure once someone interested in this device will show up to port it eventually. I've taken a bit of a break from projects and don't really have the time to invest into porting devices anymore, and I'm somewhat unwilling to purchase a OnePlus device myself as I'm not a huge fan of OnePlus's proprietary kernel driver usage effectively causing custom kernels to gimp the devices in some ways, or make it very hard for other developers to implement features without having the device on hand to play with.

Official device support is pretty much someone submitting a working kernel for the device along with sources and having a NetHunter team member approve it, so you're welcome to attempt to provide it yourself! :)
Understand that even officially supported devices are prone to bugs/issues as many of them are guesswork and reporting back from testers, as well as varying versions of operating systems which may be incompatible over time.

@Jinovas
Copy link

Jinovas commented Aug 3, 2017

I'm sure once someone interested in this device will show up to port it eventually. I've taken a bit of a break >from projects and don't really have the time to invest into porting devices anymore, and I'm somewhat >unwilling to purchase a OnePlus device myself as I'm not a huge fan of OnePlus's proprietary kernel driver >usage effectively causing custom kernels to gimp the devices in some ways, or make it very hard for other >developers to implement features without having the device on hand to play with.

Very good information to know!

@keeganjk
Copy link
Author

keeganjk commented Aug 3, 2017

It looks like some people are doing something at XDA Forums...

@Jinovas
Copy link

Jinovas commented Aug 3, 2017

Wish I was still working at google OTA so I could help more xO

@keeganjk
Copy link
Author

keeganjk commented Aug 3, 2017

I don't know anything about this, so I can't do it myself... ☹️

@Jinovas
Copy link

Jinovas commented Aug 4, 2017

We're hoping it's a yes lol

@keeganjk
Copy link
Author

keeganjk commented Aug 7, 2017

It appears that they're creating official support:
https://forum.xda-developers.com/oneplus-5/development/burgerhunter-t3638810

@kimocoder
Copy link
Contributor

For porting to new devices and adding support, read the NetHunter wiki here

The 3 steps needed for complete support would be

  • Getting started, setting up a build environment and preparation, read here

  • Modifying & building a kernel, howto? Read here

  • Adding device support, read here

@keeganjk
Copy link
Author

On https://forum.xda-developers.com/oneplus-5/development/burgerhunter-t3638810, they've created a stable release, I tested it and it works. It appears that they are almost done with CDROM and HID support; someone with experience has offered to help.

@kimocoder
Copy link
Contributor

kimocoder commented Aug 10, 2017

Great, then the kernel needs to be added here for device support. I'll check back in a week to see HID and cdrom (kexec patch) has been added, if not i just add the device support without it & simply update it later.

Have you tested any adapter support?

thanks for the notes btw! great findings :)

@keeganjk
Copy link
Author

@kimocoder I just bought an OTG adapter yesterday, it should arrive in about a week. I can't seem to get USB HID attacks to work with the standard charging cable that came in the box.

@jcadduono
Copy link
Collaborator

jcadduono commented Aug 10, 2017

HID attacks are not via OTG and use standard charging/data cable. Ensure /dev/hidg0 and /dev/hidg1 exist, if they do and it still isn't working, you may need to make init.usb.rc or init.qcom.usb.rc modifications, and be sure that you are root when sending HID commands with hid-keyboard program.
You can use a Windows program like UsbTreeView to see if HID interfaces are present in the device connection from your phone.
Make sure that your kernel is in selinux permissive mode as well, as selinux can block attempts to access hidg devices from hid-keyboard program.

@keeganjk
Copy link
Author

@jcadduono I got the OTG adapter to test packet-injection.

@kimocoder
Copy link
Contributor

hid & kexec patches were not added, but I was wondering if packet injection works to see if it's worth the time adding it to devices.txt and uploading the kernel at all.

@keeganjk
Copy link
Author

OTG and wireless adapters work.

Sent from my OnePlus ONEPLUS A5000 using FastHub

@kimocoder
Copy link
Contributor

I've just checked.. Injection is working.. will push the commit for device support this evening, thank you for the information sir :)

@kimocoder
Copy link
Contributor

The maintainer is noticed & will add the device himself. Read more about it here thanks to everyone involded in getting OnePlus 5 support. This thread may be closed :)

@keeganjk
Copy link
Author

Did anyone get BadUSB to work?

@keeganjk
Copy link
Author

@jcadduono What if /dev/hidg0 and /dev/hidg1 don't exist? How could I add them?

@kimocoder
Copy link
Contributor

hid patches & cdrom support (kexec patch) to kernel are not included, as they are stated w.i.p (work in progress) at this time @xda thread.

@PatilSiddhesh
Copy link

I talked to the guy who started the work on XDA, my OP5 was due to be delivered 3 days ago, some issues with Amazon causing more delays. Once it arrives, I'd be getting my hands dirty with the sources. Hopefully we will figure something out about the HID and CDROM support.

@keeganjk
Copy link
Author

@Truestark Did you get your OP5 yet?

@PatilSiddhesh
Copy link

@keeganjk Nope. By now I've placed 3 orders of which amazon has lost 2 of them and could not deliver. It should be here within 2-3 days if Amazon doesn't f it up again.

@MyPuppet
Copy link

I would like to ask, according to the forum discussion, it seems that 100% can not be transplanted to OP5?

@jcadduono
Copy link
Collaborator

@MyPuppet u mean drivedroid and hid keyboard support? should be easy to add hid keyboard support slightly adjusting caf 3.18 patch i submitted to hid keyboard repo to work on caf 4.4
drivedroid support just needs a few lines added and changed in android usb driver for storage to add switching support between cd/mass storage
will need to switch kernel to selinux permissive using supersu OR ship kernel binary forced in permissive mode OR add policy allow for /dev/hidgX access and policy allow for kernel to R/W files and block devices for drivedroid/mass storage

@keeganjk
Copy link
Author

@jcadduono Same.

@keeganjk
Copy link
Author

@Truestark Has Amazon delivered your OP5 yet?

@simonpunk
Copy link

There is no problem at all for me to ssh my devices from my ubuntu machine, just passwd root to change your kali root password first then enable ssh from nethunter app, try ssh from other devices. Dont know why this happened on you guys.

Nh-Terminal should not crash or be killed by background after my latest build.

Did you guys catch the latest update for nethunter app or magisk module on XDA? if no, thats why I said everything here should refer to XDA. Keep reporting issue but no details about what steps you have done and which files you have flashed, how can I unify the main source of the problem if it is working for myself already.

@TheRealEliteOwl
Copy link

@simonpunk wish that i could say that I was not using the XDA builds but I have been. I do have one problem though, the Magisk Module does not actually install any of the apps for me even though it says it does in TWRP.

Note steps I've taken:
Fresh latest OOS.
universal codeworkx twrp 3.2.1? (Will have to double check)
Your latest 5T or 5 kernel (I have both devices) (your gdrive)
Magisk v16 (XDA)
Magisk Module Kali OREO (your gdrive).
Chroot (from your gdrive)

In terms of ssh
I've done everything you have suggested. So I suspect something else is up.

Also, I did report on XDA with all steps 🤣

@ravish0007
Copy link

ravish0007 commented Mar 24, 2018 via email

@simonpunk
Copy link

Maybe I try to upload a video. using words somehow is hard for me to explain.

@keeganjk
Copy link
Author

Got it working w/ material terminal and bootkali_login, but how do I get the menu w/ arrow keys, various symbols, etc?

@TheRealEliteOwl
Copy link

Hacker Keyboard?

@keeganjk
Copy link
Author

I want to use the stock keyboard and I have to be in landscape mode to use arrows, which I don't want

@TheRealEliteOwl
Copy link

Outside a sending a suggestion to Google, your kind of out of luck there if you don't want to use a 3rd party keyboard.

@TheRealEliteOwl
Copy link

@simonpunk

Ended up playing around on the one plus 5t and dissecting your GitHub reversing your notes, patches and thought processes to identify the issues deeper. I manually pulled and installed all apps that were giving me a problem before. Ssh now works, NHT no longer has issue, I will continue to look into update issues.

@simonpunk
Copy link

SSH and NHT have been working for my OP5 since my last build. So it is kinda weird everyone got into different situation and issues. Maybe start your github as well for 5T, it would be better to identify other issue and reduce time to fix these problems.

@TheRealEliteOwl
Copy link

TheRealEliteOwl commented Mar 24, 2018

Fixed update problem by entering the following in terminal

apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

I think....

@keeganjk
Copy link
Author

Yeah, I found that solution on Kali forums I think; it worked for me.
Why does it suddenly have that problem now when it didn't before?

@TheRealEliteOwl
Copy link

Ghosts in the machines. 🤣

@keeganjk
Copy link
Author

keeganjk commented Mar 24, 2018

😂 A ghost in the shell?

@ravish0007
Copy link

ravish0007 commented Mar 25, 2018 via email

@ravish0007
Copy link

ravish0007 commented Mar 25, 2018 via email

@simonpunk
Copy link

I think that problem is somehow related to the key it stored in the built Kali image which affects on all built image from the time before 2018.1

@ravish0007
Copy link

ravish0007 commented Mar 25, 2018 via email

@simonpunk
Copy link

@ravish0007 I have been looking at the vnc viewer (blue logo), I want to replace the nh_vnc with that one. But I got stuck when comes to the password encryption part. I decompiled the app but found out that the encryption is done by the .so library. Then I try the IDA pro to reverse the so file. But can't find a clue where the secret is. Have you worked at reverse engineering before?

@ravish0007
Copy link

ravish0007 commented Mar 25, 2018 via email

@simonpunk
Copy link

simonpunk commented Mar 25, 2018

@ravish0007 Yeap, I know it's not a legal way, but I won't have a chance to do it, as it seems not a open source, contact the developer is definitely not a good idea for doing this as he needs to share the open source or maybe give me the api to do this? But I won't try this unless someone else does. I think I will just giving up on this real vnc app, I will try other open source vnc app like bVNC.

Or you just take the lead as well and carry on developing this project, thank you so much!

@ravish0007
Copy link

ravish0007 commented Mar 25, 2018 via email

@ravish0007
Copy link

ravish0007 commented Mar 29, 2018 via email

@keeganjk
Copy link
Author

keeganjk commented Apr 3, 2018

If I'm on OOS 5.0.4, which kernel should I get?

@keeganjk
Copy link
Author

@simonpunk Which kernel should I download if I'm on OOS 5.0.4?

@ravish0007
Copy link

ravish0007 commented Apr 24, 2018 via email

@keeganjk
Copy link
Author

@simonpunk Where do I download?

@keeganjk
Copy link
Author

An OOS update just came out (OOS 5.1.1). Which kernel(s) will work with this version?

@keeganjk
Copy link
Author

Is there currently a working kernel for encrypted OOS 5.1.1?

@keeganjk
Copy link
Author

Are there any kernels that work on Lineage OS?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests