Related
This may have been posted some where in the past but I have been searching for some time and found nothing but others looking for this information. So I though I would document what I did to get everything up and running on my note 3 and share it here.
Requirements
Rooted Note 3
Recommended
Bluetooth keyboard and mouse
From a PC
1. Download kali from the LOA website kalilinux.FULL.ext4.20131031 (5.8 GB Uncompressed) (2.0GB Download)
2. Once the download is complete extract the contents of the folder so you have a folder named “kali” then an .img and .md5 file in it then copy that to the Note 3 device storage root. I strongly recommend using USB 3.0.
On the Note 3
1. First Download Linux on Android It might be called Complete Linux Installer now
2. Then Download androidVNC and Terminal Emulator
3. Download the modified bootscript.sh from attchments and extract
4. Copy to /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh
5. Start Linux on Android
6. Swipe from the left of the screen to the right and open the menu
7. Select “Launch”
8. Using the drop down box select “Kali”
9. Press the “Settings” button on the top right
10. Select “Edit”
11. On the line that says “Image” click the “…” button
12. Select the img file you copied to the storage in the kali folder
13. Click the “Save Changes” button
14. Then you are ready to click the “Start Linux” button
15. There will be a question if you want to check the img with the MD5 I would go ahead and type “y” and do this step to verify your download was not messed up.
16. Then it will ask you to create a new password. Type it in. And again. Make it 6 char alpha numeric.
17. If all is good it will ask if you would like to start vnc and ssh servers. Select yes to both.
18. Next it will ask you if you would like to save as default settings. I would select yes.
19. After things finish loading and you have a prompt. We will have to configure ssh
20. Type “ssh-keygen –R localhost”
21. Then you will be able to connect to the linux shell via ssh
22. Type "ssh localhost"
23. It will ask you if you want to add localhost to the list of allowed hosts
24. Type "yes" then press enter
25. Type in your password
26. Once connected to the emulator you will need to setup the VNC password
27. Type "vncpasswd" then press enter
28. Type your password in. And again. I would use the same 6 char password from before
29. Then you are ready to connect to the desktop
30. Open androidVNC from them the main menu leaving the terminal running in the background
31. Create a new connection from the dropbox
32. Name it kalilinux
33. Fill in the password you created
34. Use localhost for the address and the default port
35. Select 24-bit color (4 bpp) for the color format
36. Click connect...
Great guide. My device isn't rooted (yet) but this makes me really start considering a root in near future. THIS^ is a the best reason why we need knox free devices.
Damn you Sammy with your Knox mumbo jumbo! I should start looking for an older FW/rootable SGN3....
This will not trigger the Knox bit it is running in an emulator on top of android. there are a couple of ways to root without tripping the Knox bit. And this does not need a custom rom or kernel.
Does it really work for you? I wasted almost a full day trying to get linux to run on my note 3 yesterday, I even began suspecting kitkat prohibits running linux...
On a side note, is there some smaller distro? 5+ gigs is an awful lot, I only need GCC and a few static libraries on my image...
good guide! Thanks!
Does it support packet injection out the box, or are you awaiting the modded driver as well?
Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
melaniel said:
Does it support packet injection out the box, or are you awaiting the modded driver as well?
Sent from my SAMSUNG-SM-N900A using XDA Premium 4 mobile app
Click to expand...
Click to collapse
not by default i could not start monitor mode on the adapter but you can use an external wifi adapter as long as you provide external power via usb splitter
this guide should work with other distors just download one to your likeing from the linux on android site
bruce303lee said:
not by default i could not start monitor mode on the adapter but you can use an external wifi adapter as long as you provide external power via usb splitter
this guide should work with other distors just download one to your likeing from the linux on android site
Click to expand...
Click to collapse
ill wait out the driver then. bcmon is working on the nexus 5, same driver so should theoretically work on note 3
melaniel said:
ill wait out the driver then. bcmon is working on the nexus 5, same driver so should theoretically work on note 3
Click to expand...
Click to collapse
+1
I don't think there will be a driver, but let's hope and pray... Maybe a developer take some time to port the driver for the bcm 4339 chipset to get monitor mode working .
For informations about development status for the driver you can follow my link
http://forum.xda-developers.com/showthread.php?t=2602710
Greetings Tyler
TylerDurben said:
+1
I don't think there will be a driver, but let's hope and pray... Maybe a developer take some time to port the driver for the bcm 4339 chipset to get monitor mode working .
For informations about development status for the driver you can follow my link
http://forum.xda-developers.com/showthread.php?t=2602710
Greetings Tyler
Click to expand...
Click to collapse
Well its the same driver as the Nexus 5, so here's hoping!
melaniel said:
Well its the same driver as the Nexus 5, so here's hoping!
Click to expand...
Click to collapse
This project is much more interesting!!
http://w11.zetaboards.com/Pwnie_Express/forum/3714106/
I am using it with my nexus 7 (2012) witch is bcmon supported
Sent from my SM-N9005 using XDA Premium 4 mobile app
Error: Unable to create loop device!
Hello,
I installed the 4.4.2 version on Note 3 (N9005) ... when I boot Kali I receive the error below:
Code:
[email protected]:/ $
[email protected]:/ $ cd /storage/extSdCard/Linux/KaliFull
[email protected]:/storage/extSdCard/Linux/KaliFull $ su
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/extSdCard/Linux/KaliFull/kalilinux.FULL.ext4.v2.img
sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/extSdCard/Linux/KaliFull/kalilinux.FULL.ext4.v2.img
Full/kalilinux.FULL.ext4.v2.img <
Checking loop device... MISSING
Creating loop device... /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh[130]: /data/data/com.zpwebsites.linuxonandroid/files/busybox: can't execute: Permission denied
FAILED
Error: Unable to create loop device!
1|[email protected]:/storage/extSdCard/Linux/KaliFull #
does anyone know how to fix it?
Thanks,
Error: Unable to create loop device!
yea, me too, galaxy note3
Error: Unable to create loop device!
help,
Loop device error
My device also has that loop error.
I think that this has something to do with the kernel...
Here is my kernel version:
http://i.imgur.com/C6yF4DB.png
Can anyone confirm that this is the kernel issue?
P.S. here are the instructions for setting up Kali on Galaxy S4 with Linux Deploy app (I'll try install it using these methods...):
http://forum.xda-developers.com/showthread.php?t=2400638
EDIT:
I had no luck installing it with Linux Deploy. It just fails... It says it cannot find the directory that actually exist... xD
P.S. i think this is a kernel issue according to this (and other posts I found):
http://forum.xda-developers.com/showpost.php?p=50746675&postcount=5
You can find custom kernels and ROMs here:
http://forum.xda-developers.com/showthread.php?t=2439633
I heard that the LEAN kernel has "loop devices" setting enabled.
Also, you can modify your current kernel. Instructions here:
http://forum.xda-developers.com/showthread.php?t=1818871
Is there a easier method for enabling loop devices?
access
how can I access all kali files and folders when I usee explorer root is my sd card root and I can't see a single kali file
I tried your method and still received the same errors.
I have a rooted note 3 (I think I used the chainfire method) the device is still pretty new to me.
First it won't create the loop255
I've manged to get around that by making the loop255 device myself in terminal with the play store version of bbox (for some reason there seems to be an issue with the installer calling it's own busybox)
But then it (that is the loop device) won't mount, I'm over my head with that stuff so I haven't been able to work around this.
Some guidance would be much appreciated.
On a side note I got linux running on my old LG Motion with linux deploy and it works like a dream but for some reason there are no programs on it! I've found this odd but there are (or at least I cant find them) none of the preloaded hacking programs that are the entire point of the kali project. It's possible I just didn't find them yet but it's so hard to work with a desktop OS on a 320x480 screen, that's why I'm trying to get it on my note! I'm in love with this new 1080x1900 res!
Sent from my SM-N900T using XDA Free mobile app
---------- Post added at 11:15 PM ---------- Previous post was at 10:57 PM ----------
Okay I've seen in a few places that it has to do with the stock kernel of the note 3 can anyone either confirm or deny this and if so what do I do?
Sent from my SM-N900T using XDA Free mobile app
Root Folder
I was just wondering how you were able to copy files and folders from your pc to your root folder. Do you use a program or cmd line?
Circumventing the loop device mounting problem on the Note 3
Vinniecap974 said:
I tried your method and still received the same errors.
I have a rooted note 3 (I think I used the chainfire method) the device is still pretty new to me.
First it won't create the loop255
I've manged to get around that by making the loop255 device myself in terminal with the play store version of bbox (for some reason there seems to be an issue with the installer calling it's own busybox)
But then it (that is the loop device) won't mount, I'm over my head with that stuff so I haven't been able to work around this.
Some guidance would be much appreciated.
On a side note I got linux running on my old LG Motion with linux deploy and it works like a dream but for some reason there are no programs on it! I've found this odd but there are (or at least I cant find them) none of the preloaded hacking programs that are the entire point of the kali project. It's possible I just didn't find them yet but it's so hard to work with a desktop OS on a 320x480 screen, that's why I'm trying to get it on my note! I'm in love with this new 1080x1900 res!
Sent from my SM-N900T using XDA Free mobile app
---------- Post added at 11:15 PM ---------- Previous post was at 10:57 PM ----------
Okay I've seen in a few places that it has to do with the stock kernel of the note 3 can anyone either confirm or deny this and if so what do I do?
Sent from my SM-N900T using XDA Free mobile app
Click to expand...
Click to collapse
I ran up against the same problem and the only way I could get around it was to flash with a "permissive" ROM.
Device: Galaxy Note 3 N9005 running stock Android 4.4.2 (KitKat).
Main steps I followed were:
(1) Rooted the phone using the excellent Towelroot method;
(2) Downloaded and deployed the various files mentioned in the Kali install guide in this thread (Kali image, bootscript, busybox, etc.);
(3) Flashed a bootloader. I used Mobile Odin (from Play Store) to install the latest CWM bootloader;
(4) Downloaded and flashed the Omega V21 ROM using the CWM bootloader. I opted for "no wipe" and it seems to have worked OK.
(5) Used the Complete Linux Installer app (Play Store) to load and run the Kali image;
(6) Fixed some permissions problems with the rooted version of the FX file explorer app (Play Store);
(7) Accessed Linux using the RealVNC app (Play Store) rather than the recommended android-vnc-viewer.
Found the former worked better for me;
Of course, the ROM flash voided my warranty, but that's not an issue for me.
Hope this helps,
Ronan
As I understand it , you need to flash a permissive kernel to make this work properly.
Im on 4.4.2 with knox 0x0 and really dont want to set it to 0x1.
I managed to get linux to install but its limited in what you can do with it.
Xposed didnt set mine to permissive , neither did the playstore app .
If anyone knows of a way to set a stock kernel to permissive on a rooted device plz pm me.
I set up a Debian chroot on my CM11 Note 3 and have been using it for a long time with great success. Here's a tip, don't bother with the loopback-mounted images, it's pointless on a phone with a datamedia partition layout (where /data and /sdcard are the same partition, which the Note 3 is). Instead, just dump the root filesystem directly into the /data directory in a folder, i.e. /data/debian (or /data/arch, /data/ubuntu, /data/kali, etc). This way you don't have to have loopback device support in your kernel, you can install as much crap as you want and not have to resize your image/partition, and you can delete crap you don't want to free up space for Android apps or user storage because all of them share the same space.
Another tip, instead of VNC server which is not accelerated and pretty crap overall, use XServer XSDL. This implements an X-server at the Android app level so it can take advantage of some acceleration (not 3D but possibly 2D) and is drawing with native Android surfaces rather than rendering into a VNC buffer and such. To use it, simply run a command such as:
Code:
# env 127.0.0.1:0 mate-session
from a chroot terminal. This particular one will open a MATE desktop session in XServer XSDL (make sure you either open the app right before or right after running the command, leave it too long and it times out). There's also a libandroid_shmem.so or something library you can use to speed up the chroot->xserver memory performance. Best thing is you can configure the touchscreen to act as a trackpad like on a laptop, then use the left and right (up and down, but landscape) volume keys as left and right click.
On CM11 you can even write a script and add it to /data/local/userinit.sh to automatically start the chroot (bind mount all the devices and set up networking) and even start services if you want. I have mine automatically fire up a samba server and an SSH server on boot so I can access files remotely as well as remote in and use my Note 3 as an ARM build box for compiling stuff.
Finally, I'm looking into booting Debian natively. I've already got it working on my Note 1 and my HP TouchPad. Booting natively means you get full access to run an X server with full graphics hardware access, and with the Freedreno driver you can get actual GL and GLES acceleration. The Adreno 330 should be able to handle this pretty well. The first step towards this goal is getting dual-booting kernels to work as the native Debian kernel will need some stuff that Android doesn't want and vice-versa. I'm working towards porting Kexecboot and the kexec-hardboot patches which will allow booting of multiple kernels without reflashing. Then you can boot Debian (or other Linux) natively or you can boot Android and use services from that Linux install in chroot and easily switch back and forth by rebooting. I already have this working on the Note 1 (HP TouchPad has kexecboot but it isn't really necessary as the main bootloader supports multiple kernels already).
Hi Guys,
i found something interesting for all the Car Enthusiasts out there on Github.
Im a newbie here so i cant post links but you can find it here
github.com/TrentSeed/BMW_E46_Android_RPi_IBUS_Controller
My Problem is that i cant find the " android/bin/BMW_RPi_IBUS_Controller.apk " like the developer described
Do i have to install it via Java on my Android Radio or how does it work? It seems like the app is aready "open" and not packaged
Im kind of a noob so what do i have to do that i can install the apk/app ?
I already ordered the USB Stick i need for the communication..And i own a HuiFei Android Radio Device so i think i wont need an Android Phone/Tablet for that...
My second problem here (on Raspberry Pi)
" Install python modules: pyserial, libbluetooth-dev, pybluz
easy_install pyserial
apt-get install libbluetooth-dev
pip install pybluz"
the last command "pip install plybuz" dont work for me it always says command not found ( yes im using always the sudo command in front) but without it also dont work
I think that could be a really interesting project when it works
Nobody?
Hey What is on Developers Vineet Alpha Here.Today i am gona be showing you how to run Kali-Linux with aircrack-ng on MI4I.And i will also provide my custom built kernel for MI4I with Atheros Wifi Chipset Support.I use TP-Link WN722N and Works perfectly.It Took 9 Month To Complete this Project.Remember it only works on Cyanogen Mod. It won't work on MIUI.So Strictly Follow the Steps Or you end by Bricking up your phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So, Let's get started
First Download The Things Below [ Essential's ]
Cyanogen-Mod 12.1 -> CM12.1-ferrari
G.aaps 5.1-> Gaaps5.1-Micro
T.W.R.P Recovery IMG-> Twrp 2.8.7.0.img
Kernel-> Vineet-Kernel-RebornV1.zip
Kernel2-> Default_Kernel.zip
Busy-box APK-> Busybox.apk
Juice SSH APK-> Juicessh.apk
KMOD Manager APK-> Kmod.apk
Linux Deploy-> Linuxdeploy.apk
And the Last thing a good Internet Connection So, that Linux deploy could download the kali linux image.
Step 1.
First Flash Twrp.img on your MI4I by putting it on Fastboot Mode.
Step 2.
Then Flash Cyanogen Mod 12.1 and Gaaps Using TWRP recovery.(Before Flashing Advance Wipe All the Data.)
Step 3.
Then Setup your Cyanogen Mod 12.1 Google account and Reboot Once.
Step 4.
Then Install All the apps Stated above in the essentials.
Now, Open Busy box and let it install automatically.
Then open Linux Deploy app.And go to the settings.
Leave the architecture as it is.
Then Select Install and it will take around 30 minutes to download the image and install Kali linux.
Step 5.
Then after installation click on start in linux deploy.
The output will be something like this.
Then Open Juice SSH And add a new connection to it and Add
Username= android
Password= changeme
Address as = localhost:22
and then save it.
After that Click on connect in Juice SSH and enter password if asked as = changeme
Now, you will be into the localhost i mean kali linux terminal server.
Step 6.
Now Configure the kali linux follow my commands
type these commands
A) sudo passwd (To set your SU password in the kali linux so that you can run Aircrack-ng with admin access).
B) sudo apt-get update (necessary files and binaries to install)
C) sudo apt-get install aircrack-ng
D) sudo apt-get install wifite
C) sudo apt-get install rfkill (OPTIONAL)
Almost there my friends,
Step 7.
Now reboot the phone to TWRP recovery and Flash My Kernel (Vineet_Kernel_Reborn)
Remember after installing this Kernel Internal wifi won't work. That is the reason i told you to install and download everything before on phone.If you want to use the internal wifi again the flash the default kernel i have provided.On my kernel only external wifi adapter will work.And i'll fix this soon.
Now, after flashing the custom Kernel on CM12.1 Reboot your Phone.
Step 8.
Now open the app Kmod Manager and Load all the modules. Its very easy just switch on everything in the app.
Step 9.
Again open the Linux deploy and click on start
then open the Juice SSH app and connect to the Linux Shell(I mean to the terminal localhost of kali linux)
Step 10.
Connect you Wifi adapter using
Voila Rocking moment here-------(LAst STEp)\
Type these command to put Wifi Card (My is TP-Link WN722N Atheros AR9271) on Monitor Mode And Run Aircrack-ng on it.
A) airmon-ng (Remember it show question mark on driver just ignore it and it will give a statement just ignore all that.)
Output would be something like this.
B) airmon-ng start wlan1
or ( Depend on your wifi interface)
B) airmon-ng start wlan0
Remember after putting it on monitor mode the interface you will use on the commands will be something like this wlan1mon or wlan0mon
C) airodump-ng wlan1mon
or
C) airodump-ng wlan0mon
Output will be like this
----------------------Enjoy Guys---------------------
-------You Can download additional Wifi tools and use it guys. Enjoy Folks.---
-------ENJOY MI-Hackers This is the first time aircrack-ng on MI Phone---------
----------------------Enjoy Guys-----------------------
yes!!! finaly!!! thx vineet
Share my post. If you feel thanked.
First thing - thanks for sharing your hard work!
Second: I am familiar with Kali, it is a one of four installed Linux distros on my laptop. I am also familiar with Linux Deploy app, but I have two questions:
-Will this work with Alfa AWUS036H, Realtek rtl8187L chipset (I have no TP-LINK.... )
-Will this work on Ressurection Remix LP, or we should use strict CM?
Yeah, yeah, I will try in any case, probably.
stiw47 said:
First thing - thanks for sharing your hard work!
Second: I am familiar with Kali, it is a one of four installed Linux distros on my laptop. I am also familiar with Linux Deploy app, but I have two questions:
-Will this work with Alfa AWUS036H, Realtek rtl8187L chipset (I have no TP-LINK.... )
-Will this work on Ressurection Remix LP, or we should use strict CM?
Yeah, yeah, I will try in any case, probably.
Click to expand...
Click to collapse
I am sorry bro Alfa AWUS036H and Realtek rtl8187L wont work on current kernel i have provided. Don't worry ill compile the kernel for you with Alfa AWUS036H, Realtek rtl8187L chipset soon and inform you.I think it may work with Ressurection Remix LP.
vineetdev said:
I am sorry bro Alfa AWUS036H and Realtek rtl8187L wont work on current kernel i have provided. Don't worry ill compile the kernel for you with Alfa AWUS036H, Realtek rtl8187L chipset soon and inform you.I think it may work with Ressurection Remix LP.
Click to expand...
Click to collapse
Thanks anyway, and thanks for your effort.
Sent from my MI 4i using Tapatalk
Please tell what is the use of kali linux on mi4i ?:what:
Can you please post the necessary changes required in the kernel?
I'm assuming it is enabling the ath9k drivers in kernel for the TP-LINK TL-WN722N, however, I might be mistaken and more changes might be required?
Well ,i make the flashable but not with patched kernel ,will upload today ,and everyone need to flash ur kernel
Rajat Naik said:
Please tell what is the use of kali linux on mi4i ?:what:
Click to expand...
Click to collapse
Have you ever heard BackTrack ?? It's new generation of that OS, Uses for Penetration Testing, Security parameters check, Ethical hacking stuff.
here
www.kali.org
Open that link bro
thewisenerd said:
Can you please post the necessary changes required in the kernel?
I'm assuming it is enabling the ath9k drivers in kernel for the TP-LINK TL-WN722N, however, I might be mistaken and more changes might be required?
Click to expand...
Click to collapse
see i have not mistaken . the changelog is verybig to provide and time consuming.everythings works fine till now.
Toruk.Makto said:
Have you ever heard BackTrack ?? It's new generation of that OS, Uses for Penetration Testing, Security parameters check, Ethical hacking stuff.
here
Click to expand...
Click to collapse
HA HA backtrack is the older version dude.LOL.....kali linux is the upgraded version of backtrack. Don't tell me ..........4 yrs of experience on pentesting.
thewisenerd said:
Can you please post the necessary changes required in the kernel?
I'm assuming it is enabling the ath9k drivers in kernel for the TP-LINK TL-WN722N, however, I might be mistaken and more changes might be required?
Click to expand...
Click to collapse
the changelog is verybig however ....very time consuming
vineetdev said:
see i have not mistaken . the changelog is verybig to provide and time consuming.everythings works fine till now.
Click to expand...
Click to collapse
okay, could you push your changes to github or a similar service?
vineetdev said:
HA HA backtrack is the older version dude.LOL.....kali linux is the upgraded version of backtrack. Don't tell me ..........4 yrs of experience on pentesting.
Click to expand...
Click to collapse
That's what I said, friend.
-_-
use multi quote please
thewisenerd said:
okay, could you push your changes to github or a similar service?
Click to expand...
Click to collapse
i will shortly push my sourcecode to github
vineetdev said:
Hey What is on Developers Vineet Alpha Here.Today i am gona be showing you how to run Kali-Linux with aircrack-ng on MI4I.And i will also provide my custom built kernel for MI4I with Atheros Wifi Chipset Support.I use TP-Link WN722N and Works perfectly.It Took 9 Month To Complete this Project.Remember it only works on Cyanogen Mod. It won't work on MIUI.So Strictly Follow the Steps Or you end by Bricking up your phone.
So, Let's get started
First Download The Things Below [ Essential's ]
Cyanogen-Mod 12.1 -> CM12.1-ferrari
G.aaps 5.1-> Gaaps5.1-Micro
T.W.R.P Recovery IMG-> Twrp 2.8.7.0.img
Kernel-> Vineet-Kernel-RebornV1.zip
Kernel2-> Default_Kernel.zip
Busy-box APK-> Busybox.apk
Juice SSH APK-> Juicessh.apk
KMOD Manager APK-> Kmod.apk
Linux Deploy-> Linuxdeploy.apk
And the Last thing a good Internet Connection So, that Linux deploy could download the kali linux image.
Step 1.
First Flash Twrp.img on your MI4I by putting it on Fastboot Mode.
Step 2.
Then Flash Cyanogen Mod 12.1 and Gaaps Using TWRP recovery.(Before Flashing Advance Wipe All the Data.)
Step 3.
Then Setup your Cyanogen Mod 12.1 Google account and Reboot Once.
Step 4.
Then Install All the apps Stated above in the essentials.
Now, Open Busy box and let it install automatically.
Then open Linux Deploy app.And go to the settings.
Leave the architecture as it is.
Then Select Install and it will take around 30 minutes to download the image and install Kali linux.
Step 5.
Then after installation click on start in linux deploy.
The output will be something like this.
Then Open Juice SSH And add a new connection to it and Add
Username= android
Password= changeme
Address as = localhost:22
and then save it.
After that Click on connect in Juice SSH and enter password if asked as = changeme
Now, you will be into the localhost i mean kali linux terminal server.
Step 6.
Now Configure the kali linux follow my commands
type these commands
A) sudo passwd (To set your SU password in the kali linux so that you can run Aircrack-ng with admin access).
B) sudo apt-get update (necessary files and binaries to install)
C) sudo apt-get install aircrack-ng
D) sudo apt-get install wifite
C) sudo apt-get install rfkill (OPTIONAL)
Almost there my friends,
Step 7.
Now reboot the phone to TWRP recovery and Flash My Kernel (Vineet_Kernel_Reborn)
Remember after installing this Kernel Internal wifi won't work. That is the reason i told you to install and download everything before on phone.If you want to use the internal wifi again the flash the default kernel i have provided.On my kernel only external wifi adapter will work.And i'll fix this soon.
Now, after flashing the custom Kernel on CM12.1 Reboot your Phone.
Step 8.
Now open the app Kmod Manager and Load all the modules. Its very easy just switch on everything in the app.
Step 9.
Again open the Linux deploy and click on start
then open the Juice SSH app and connect to the Linux Shell(I mean to the terminal localhost of kali linux)
Step 10.
Connect you Wifi adapter using
Voila Rocking moment here-------(LAst STEp)\
Type these command to put Wifi Card (My is TP-Link WN722N Atheros AR9271) on Monitor Mode And Run Aircrack-ng on it.
A) airmon-ng (Remember it show question mark on driver just ignore it and it will give a statement just ignore all that.)
Output would be something like this.
B) airmon-ng start wlan1
or ( Depend on your wifi interface)
B) airmon-ng start wlan0
Remember after putting it on monitor mode the interface you will use on the commands will be something like this wlan1mon or wlan0mon
C) airodump-ng wlan1mon
or
C) airodump-ng wlan0mon
Output will be like this
----------------------Enjoy Guys---------------------
-------You Can download additional Wifi tools and use it guys. Enjoy Folks.---
-------ENJOY MI-Hackers This is the first time aircrack-ng on MI Phone---------
----------------------Enjoy Guys-----------------------
Click to expand...
Click to collapse
Bro I are really great
But I used kali Linux on android all things are good but VNC is showing black and grey plz help I am really crazy about this plz help me
I ma using mi4
i think its great though i dont know much about it. Can u tell what are the benifits bcz of these?
Hello,There is some ways where you can Linux system on android ,
1.you have to download 'complete Linux installer' ,Terminal Emulator for android' and last one which is ' android vnc'.
2.Open Complete Linux installer ,It'll install boot scripts which are needed . Off course you need rooted android phone for this.
3.You will see Linux distros which are available for your device e.g. Debian,Ubuntu, Kali Linux etc.
4.Then click on any one and it will show to download these distrisos and further procedures.
Thank You Reeding..download all things from playstor
sanket73 said:
Hello,There is some ways where you can Linux system on android ,
1.you have to download 'complete Linux installer' ,Terminal Emulator for android' and last one which is ' android vnc'.
2.Open Complete Linux installer ,It'll install boot scripts which are needed . Off course you need rooted android phone for this.
3.You will see Linux distros which are available for your device e.g. Debian,Ubuntu, Kali Linux etc.
4.Then click on any one and it will show to download these distrisos and further procedures.
Thank You Reeding..download all things from playstor
Click to expand...
Click to collapse
Hello,
This forum is for newbies finding their way around XDA Developers, it isn't a development section.
Please post here Android Software Development Forum, the users looking for the same could use your help.
Thread closed !
-Vatsal
[TOOL][WIN/LIN/MAC] MiUnlockTool - Unlock bootloader of xiaomi devices on mac & linux
Ciao xda users, I'm here to introduce a new tool of mine, MiUnlockTool.
MiUnlockTool is an unofficial tool used to unlock bootloader on Xiaomi devices. This tool is copied from the original windows MiFlashUnlock tool and works the same way. The main feature of this tool is compatibility with linux and mac operating system (and windows too).
If you want more information about the tool and the story behind you can read below, if you just want the download link, here it is:
DOWNLOAD LINK
Requirements: java (javafx for gui if not included in your jdk/jre)
Usage:
- Download and extract the zip file
- If you don't have it, install java
- On windows:
-- open MiFlashUnlock.bat for graphical interface or:
-- open a cmd windows and cd into extracted dir and use "MiUnlockTool.bat username password" command for command-line usage
- On linux:
-- open a terminal window and cd into extracted dir and use "sudo ./MiUnlockTool.sh" command for gui interface or "sudo ./MiUnlockTool.sh username password" for command-line
- On mac:
-- open (double click) MiFlashUnlock.command for graphical interface or
-- open a terminal window and cd into extracted dir and use "./MiFlashUnlock.command username password" for command-line
- Attach your locked device in fastboot mode.
- If you are using gui just follow what you see on your screen
- If you are using command line version remember that there is no confirmation request before unlock and no check if the bootloader is already unlocked.
Possible errors:
- If you get a permission related error on linux or mac when launching the tool, open a terminal and cd into extracted dir and use "chmod 777 MiUnlockTool.sh" (or MiUnlockTool.command on mac) to set the executable permission.
- If your device isn't recognized:
-- On windows: install adb drivers
-- On linux/mac trying launching the tool with sudo (sudo ./MiUnlockTool.sh on linux or sudo ./MiUnlockTool.command on mac)
- Other problems launching the tool: try running "java -jar bin/MiUnlockTool.jar" command
- If you get some errors with javafx class not found stuff when you try to launch the gui, then you are missing javafx library. See openjfx package on linux.
- Any other problem: provide feedback in the comments.
Additional info: original MiFlashUnlock tool is just a bridge between fastboot, you (and your account login credentials) and xiaomi server: the tool gets device info from the device and send them to the server together with the account login token, the server checks wherever you satisfy all their requirements (account authorized, account associated with device in developer settings etc) and if everything is okay the server reply with the unlock key for your device instance (every time you reboot your phone you need a new key). Then the tool send the key to the device with a custom build of fastboot and if the key is right then the device is unlocked, else it reboots. After I discovered all the process behind the original unlock tool (and all the security encryption techniques) I decided to replicate it with a java (cross-platform) tool which embeds a custom fastboot version and replicates what the original tool does. That's a simple explaination of how my tool works (obviously it's more complicated than that).
This tool requires all of what is required by the original tool (an authorized xiaomi account binded to the device through developer options for three days if I remember correctly).
FAQs:
- Is this tool safe to use?
Yes, the main part is communication between tool and server, a safe thing. Also the unlock procedure itself is safe: or the key is correct or it is not. In both cases the device will not be damage.
- How did you find out how to replicate the original tool?
Thank you for your question. It's been a bit difficult since the original tool has been obfuscated and virtualized (protected against reverse engeneering) with a powerful protector: VMProtect. I've spent some time to reverse it (and custom fastboot too) and I finally did it. I will not explain in details how I did it.
- Is this tool more powerful than the original on? why should I use it on Windows?
Absolutely not, my tool is worst than the original one (it will have more bugs and on windows it doesn't manage drivers for example), that's why you should NOT use it on Windows. I made it work even with Windows because it was very simple to do. You can use it one Windows just to test it if you like, but I recommend using the better original tool MiFlashUnlock.
- Wow, you did a tool already done by developers paid by xiaomi, who is paying for the effort you put into this?
No one, I try to help people and getting appreciation for my work is a bit of a reward to me, but if you want to show your gratitude even more and support me as a developer you can make a donation, I will appreciate that even more (donation link below)
- I have to put my xiaomi account credentials, should I trust this?
I'm the developer of XiaoMiTool, I hope that a little bit of my reputation together with the hopefully good early feedback of reckless users on this tool is enough. If you are more a geek you can track the traffic and see that the only server connected are xiaomi and miui.
- I wanted too see the source of this tool but I see it is a bit obfuscated, why?
Xiaomi clearly doesn't wanted people to see how MiFlashUnlock works (since they obfuscated it a lot), I don't want to disrespect xiaomi decision by releasing the source plain, so I decided to obfuscated it a bit just to make it a bit harder to see (even if my tool is 100 times easier to reverse than the original)
- Can I share this tool?
Of course yes, but I would like you to share it using the xiaomitool.com link (not mega.nz one) so that if I release an update new people will get that and not the old version (there is no tool update enginge built in).
- You're english is not wonderful...
I know, hopefully it is understandable enough
Feedback.
I love feedback, feedback is the best you can do to help me improving this tool. I have not time to answer everybody's questions but I generally read feedback and do my best to make the tool work. If the tool worked or if the tool didn't worked you can write it in the comments, adding additional information like what error you get, what screen you see when the tool get stuck or even what you tried to solve the problem are precious to me. I have not all of xiaomi devices, I fully ested my tool only with two devices (a redmi 4x and a mi note 2) and only on two operating systems (linux and windows), so any new combination could lead to new errors or problems. Please include also your operating system when leaving feedback. Sometimes there are problems on gui which are not on command-line version, so if the tools fails launching or when using gui I suggest trying the command-line version.
Donation: free software is great from users prospective, but developers who spend hours of their time and don't get money for it are more unhappy to develop further free tools, so if you liked the tools and it saved you from the need to do 5000 kilometers to get a windows pc, or from the need to download a virtual machine image with your 32kB internet connection, you can show your gratitude by offering me a tasty, cold beer by clicking the link below
DONATION LINK
Download: you missed the download link at the top? Here it is again:
DOWNLOAD LINK
Fully obfuscated tool. Maybe bloatware or password hijacker
Problems with mi unlock on ubuntu system
Dear,
I tried to run this miunlock on my linux pc and it did not work. I installed the javafx using "sudo apt install openjfx" . After I ran "sudo ./*.sh". The program open, but when I put my email and password, it does not connect with the xiaomi server. I tried to access using facebook login and I have the same problem. How can I solve this problem? Do you have any idea?
Thanks
Danillo
The program does not find the phone connected. But "sudo fastboot reboot" work
---------- Post added at 12:03 PM ---------- Previous post was at 11:51 AM ----------
dpvalverde said:
Dear,
I tried to run this miunlock on my linux pc and it did not work. I installed the javafx using "sudo apt install openjfx" . After I ran "sudo ./*.sh". The program open, but when I put my email and password, it does not connect with the xiaomi server. I tried to access using facebook login and I have the same problem. How can I solve this problem? Do you have any idea?
Thanks
Danillo
Click to expand...
Click to collapse
Reinstall certs
disconnects phone on checking bootloader status with an error message on top left corner of phone "press any key to shutdown"
and stays stuck after reconnecting in fastboot mode when reading device info.
How to install it on manjaro arch Linux. did u keep it in AUR.?
Status : Success unlock bootloader
Device : Redmi 4X
Waiting Time : 72hours
Thx for the tool . love3 ??????
worked a treat.
had been struggling to use the mi tool for windows and my device was not being detected.
this took me barely a minute to unlock.
Waiting for a fastboot device...
Well, the communication with the 'net seems to work as intended but that is where it stops:
Code:
[18:01:15][INFO ] Starting login procedure
[18:01:24][INFO ] Login procedure succeeded
[18:01:25][INFO ] Checking account unlock permission
[18:01:27][INFO ] Unlock permission confirmed
[18:01:27][INFO ] Waiting for a fastboot device
Using the fastboot command line works for the same user account so this won't be solved by running the tool as root. The device reports itself as 18d1:d00d Google Inc. and shows up clearly when using the fastboot command line tool:
Code:
$ fastboot devices
deadbeef fastboot
(no, my device ID is not deadbeef)
Tried OpenJDK 10 and 9, Oracle JRE 8, no difference.
Digging deeper using strace shows the problem: the 'special' fastboot command you include (in bin/MiUnlockTool_res) is a 64-bit executable while I'm running the tool on a 32-bit machine. Substituting the provided tool for a link to the version already present on this machine makes the command progress to the error:
Code:
$ java -jar bin/MiUnlockTool.jar '[email protected]' 'mysupersecretpassword'
[18:19:25][INFO ] Starting login procedure
[18:19:36][INFO ] Login procedure succeeded
[18:19:36][INFO ] Checking account unlock permission
[18:19:39][INFO ] Unlock permission confirmed
[18:19:39][INFO ] Waiting for a fastboot device
[18:19:39][INFO ] Device connected: deadbeef
[18:19:39][INFO ] Obtaining device info...
[18:19:40][INFO ] Device info obtained
[18:19:40][INFO ] Checking if unlock will erase data and server message
[18:19:42][INFO ] Unlock procedure will erase userdata
[18:19:42][INFO ] Server message: An unlocked device is an easy target for malware which may damage your device or cause financial loss.
[18:19:42][INFO ] Querying unlock server for unlock key
[18:19:48][ERROR ] Unlock request replied with error code 20036
[18:19:48][ERROR ] Error meaning: After %d hours of trying to unlock the device
I guess I have to wait, how long I do not know as this is not shown in either mode (command line or GUI).
Anyway, you might want to add a 32-bit fastboot command or just tell users to install a native version and use that.
@YetAnotherForumUser
I see the same error message when I tried to unlock MI 8 (global version bought yesterday in official Xiaomi store in Poland). I tried official Xiaomi tools on Windows 10, but without any success (verify failed at 50%).
I'm using it on a Linux laptop, I get "buffer overflow detected" after "starting final unlock procedure" and then it fails
i have this 2 errors on linux tring to unlocking my redmi note 5 [20:59:38][ERROR ] Unlock request replied with error code 20036
[20:59:38][ERROR ] Error meaning: After %d hours of trying to unlock the device
After waiting 360 hours I was able to unlock my Mi 8 with this tool on my Ubuntu! With official MiFlashUnlock tool I wasn't able to unlock this device on Windows 10. Thanks a lot!
YetAnotherForumUser said:
Code:
...
[18:19:48][ERROR ] Unlock request replied with error code 20036
[18:19:48][ERROR ] Error meaning: After %d hours of trying to unlock the device
I guess I have to wait, how long I do not know as this is not shown in either mode (command line or GUI).
Click to expand...
Click to collapse
After about 13 days - I only tried twice in between - the thing is now unlocked. I needed to run the tool on a 64-bit machine as the 32-bit fastboot crashed (with a message in the lines of "* buffer overflow detected *"), possibly due to the longish argument used in the unlocking procedure.
YetAnotherForumUser said:
After about 13 days - I only tried twice in between - the thing is now unlocked. I needed to run the tool on a 64-bit machine as the 32-bit fastboot crashed (with a message in the lines of "* buffer overflow detected *"), possibly due to the longish argument used in the unlocking procedure.
Click to expand...
Click to collapse
I also used 64-bit OS -> Ubuntu 18.04 x64. It would be nice to see amount hours instead of %d, however it's just a minor bug. This tool is the best choice for Linux, MacOS and event Windows 10 users.
Hey guys,
Although I've unlocked & rooted other Android's in the past, this is my first time with a Xiaomi device. I've tried running the tool, and appear to get the "Error meaning: After %d hours of trying to unlock the device" error. Am I right in thinking this is just a bug in terms of the hours displayed, and that I will just need to wait the 15 or so days before I can unlock the device? At what point does that 15 days begin?
Also, once unlocked, what is the best way to flash a ROM? ADB via Terminal?
Looking to flash the Global MIUI over the Chinese one I currrently have.
Thanks!
Help. Can not connect to my phone in fastboot when using this tool. But the MiUnlock is still connected
huynhkhoa said:
Help. Can not connect to my phone in fastboot when using this tool. But the MiUnlock is still connected
Click to expand...
Click to collapse
Windows or linux ?
naik2902 said:
Windows or linux ?
Click to expand...
Click to collapse
window bro, please help me :crying:
huynhkhoa said:
window bro, please help me :crying:
Click to expand...
Click to collapse
Why r u not using original miunlock tool for windows ?
Did u enable oem unlock, usb debugging?
Installed fastboot drivers
Use fastboot devices command to check if u r device connected to pc.
Did u bind ur account to miunlock status in developer option?