Install kali nethunter no root termux - General Topics

Nethunter-In-Termux
This is a script by which you can install Kali nethunter (Kali Linux) in your termux application without rooted phone
Steps For Installation
Download script in HOME curl -LO https://raw.githubusercontent.com/Hax4us/Nethunter-In-Termux/master/kalinethunter
Give execution permission chmod +x kalinethunter
Run script ./kalinethunter
Now just start kali nethunter startkali
Compulsory Steps For First Time Use (Only for Fisrt Time After Installation)
So after startkali, execute this command apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
Now its time to update apt-get update

Example
{
"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"
}

Just installed ternux
If you are starting from scratch and just installed termux make sure to install curl
pkg install curl

Where is the forum to post problems with this method?

Hi,
I installed Kali net hunter in Samsung galaxy j7 prime , zip files gone extracted successfully and given exe permission to Kali hunter but when I exec
./Kali hunter the the Kali net hunter folder with files gets deleted
Everytime I tried but nothing changed.
Although other folders are fine and other modules work fine.

Mandeep Hundal said:
Hi,
I installed Kali net hunter in Samsung galaxy j7 prime , zip files gone extracted successfully and given exe permission to Kali hunter but when I exec
./Kali hunter the the Kali net hunter folder with files gets deleted
Everytime I tried but nothing changed.
Although other folders are fine and other modules work fine.
Click to expand...
Click to collapse
The command is ./kalinethunter and after run this command you type startkali in termux that should work.

lucki1000 said:
The command is ./kalinethunter and after run this command you type startkali in termux that should work.
Click to expand...
Click to collapse
I tried as you told
I gave exec permission to kalinethunter
Then exec ./kalinethunter
and used startkali command
proot warning can't sanitinze "/data/data/home dir/ kali-armhf no such file or directory fatal error : see proot --help
I checked in data/data/home folder kali-armhf gone deleted again.
---------- Post added at 07:42 AM ---------- Previous post was at 07:09 AM ----------
Mandeep Hundal said:
I tried as you told
I gave exec permission to kalinethunter
Then exec ./kalinethunter
and used startkali command
proot warning can't sanitinze "/data/data/home dir/ kali-armhf no such file or directory fatal error : see proot --help
I checked in data/data/home folder kali-armhf gone deleted again.
Click to expand...
Click to collapse
Worked

need commands
need commands for kali linux in termux

pavanpardhu said:
need commands for kali linux in termux
Click to expand...
Click to collapse
Explain commands, what do you need?
Sent from my Motorola Moto G (5) using XDA Labs

Hi I have problems on my Honor 8x android 8.1

ktl20 said:
Hi I have problems on my Honor 8x android 8.1
Click to expand...
Click to collapse
Which command gives the error ?

Now i have this only ...before everywere were dpkg warnings and problems with upgrading packages

ktl20 said:
Now i have this only ...before everywere were dpkg warnings and problems with upgrading packages
Click to expand...
Click to collapse
Do you have give termux the storage permission?
Sent from my Motorola Moto G (5) using XDA Labs

Yes i did
termux-setup-storage

ktl20 said:
Yes i did
termux-setup-storage
Click to expand...
Click to collapse
did you simply execute the above commands or how did the error occur?
Sent from my Motorola Moto G (5) using XDA Labs

After termux-setup-storage command I have no errors..... I have installed kali from Hax4us git hub like always with no errors or problems and after apt update apt upgrade dpkg warrnings shows up and after setting up man-db and dpkg - - configure - a i had proot error like on screenshots... On my ze520kl everything was fine

ktl20 said:
After termux-setup-storage command I have no errors..... I have installed kali from Hax4us git hub like always with no errors or problems and after apt update apt upgrade dpkg warrnings shows up and after setting up man-db and dpkg - - configure - a i had proot error like on screenshots... On my ze520kl everything was fine
Click to expand...
Click to collapse
Okay then you can uninstall termux and do it again maybe it works.
Sent from my Motorola Moto G (5) using XDA Labs

I did that many times and I have the same problem :-/

ktl20 said:
I did that many times and I have the same problem :-/
Click to expand...
Click to collapse
Oh okay. Have you too little space on your internal storage?
Sent from my Motorola Moto G (5) using XDA Labs

This model has 128GB and termux is my one of the first install... Why you think that the problem is in storage? Maybe it's because it's android 8.1? On my ze520kl I had 8.0

Related

[BINARY] GNU Nano editor v2.2.6 for Android

I have managed to successfully cross-compile GNU Nano editor 2.2.6 to run on Android and decided to share it here.
Please note that you need to set up terminfo (if your ROM doesn't have it already), by running:
Code:
export TERMINFO=/system/etc/terminfo
export TERM=linux
Unfortunately, it doesn't fully work through adb shell due to the fact that [enter]-key can't be used (this is a bug of adb shell).
It works flawlessly over ssh, although.
{
"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"
}
EDIT: Fully working version is here.
You will need this patch to fix the enter key:
https://github.com/Evervolv/android...b568f0b417c1fe3fe8597c600bdbcda4837013f.patch
Great! Thanks for the information. :good:
As soon as I have time for that I will apply the patch and release a new binary.
bgcngm said:
Great! Thanks for the information. :good:
As soon as I have time for that I will apply the patch and release a new binary.
Click to expand...
Click to collapse
You are welcome.
I guess you will like this patch too:
http://www.faircode.eu/freexperia/update/terminfo.patch
(I have composed it for CM9, but I guess you known how to modify it, when needed)
Edit: use git apply instead of patch
how do i install this in my phone?
ARM cross-compiling how-to
Assuming a toolchain is already present on the build environment, here are the instructions on how to cross-compile Nano 2.2.6 for ARM devices:
Set the path to C compiler:
Code:
export CC=~/toolchain/bin/arm-none-linux-gnueabi-gcc
After you have unpacked the sources change to the source directory:
Code:
cd nano-2.2.6
Now configure the source:
Code:
./configure --host=arm-none-linux-gnueabi
To compile the sources (statically) type this:
Code:
make LDFLAGS=--static
Here is the fully working version of Nano 2.2.6 for Android (without the [enter]-key bug). Enjoy. :victory:
Great job!
I went ahead and packaged this in a flashable zip for people, it also adds a script to /sbin so you can (temporarily) use nano from the recovery console in AROMA Filemanager during that recovery session.
http://forum.xda-developers.com/showpost.php?p=47402916&postcount=133
Good idea! Thank you.
@bgcngm Any way to fix the output when used through AROMA Filemanager's Terminal Console? Scrolling borks things.
Mention me back when you get the chance.
bgcngm said:
I have managed to successfully cross-compile GNU Nano editor 2.2.6 to run on Android and decided to share it here.
Please note that you need to set up terminfo (if your ROM doesn't have it already), by running:
Code:
export TERMINFO=/system/etc/terminfo
export TERM=linux
Unfortunately, it doesn't fully work through adb shell due to the fact that [enter]-key can't be used (this is a bug of adb shell).
It works flawlessly over ssh, although.
EDIT: Fully working version is here.
Click to expand...
Click to collapse
How do I exit Nano in the android Terminal emulator
Edit: I found out hacker's keyboard's ctrl key helps with this problem
If anyone has this issue, let me help out:
In Windows, running nano and vim through ADB returns weird characters on the terminal, and you need ansicon.
Or better use ConEmu.
That's right. It is documented on the internet, that Ansicon is a requirement for Windows if you use command prompt. As you say, better go with a good terminal emulator.
@bgcngm will u update it to v2.4.2 plz?
Just tried to install through CWM on Cyanogenmod 10.1 Unofficial for Samsung Infuse, and got "installation aborted." Any idea what my problem might be?
The .zip that is available is not to be installed from recovery and that's why you are not able to do it.
osm0sis said:
@bgcngm Any way to fix the output when used through AROMA Filemanager's Terminal Console? Scrolling borks things.
Click to expand...
Click to collapse
bgcngm said:
The .zip that is available is not to be installed from recovery and that's why you are not able to do it.
Click to expand...
Click to collapse
Fixed both of these issues and compiled nano 2.5.0.
http://forum.xda-developers.com/showthread.php?p=64247691#post64247691
If you are a termux user and want to install a nano or vi or any other binaries of termux in Andriod su mode. Here is the link to Termux superuser.
Give it a star if it was helpful !!!
bgcngm said:
ARM cross-compiling how-to
Assuming a toolchain is already present on the build environment, here are the instructions on how to cross-compile Nano 2.2.6 for ARM devices:
Set the path to C compiler:
Code:
export CC=~/toolchain/bin/arm-none-linux-gnueabi-gcc
After you have unpacked the sources change to the source directory:
Code:
cd nano-2.2.6
Now configure the source:
Code:
./configure --host=arm-none-linux-gnueabi
To compile the sources (statically) type this:
Code:
make LDFLAGS=--static
Click to expand...
Click to collapse
How to do this on termux? @bgcngm I got the latest 6.4 tarball.

[HowTo] Install cURL and OpenSSL on Android

NOTE: YOU MUST BE ROOTED WITH BUSYBOX INSTALLED TO INSTALL cURL AND OpenSSL.
Recently, when looking to see if it was possible to get cURL on Android, I found something posted on June 22nd of 2013 on http://curl.haxx.se/. What was it, you may ask? It was an announcement of the curl binary version 7.31.0. This also came with a nice little surprise. cURL and openssl binaries for android! If you want, you can download them by going to http://curl.haxx.se/download.html and scrolling down until you see Linux - Android. Download the ".tar.gz" file and extract it. Inside, you will see a folder called data. To install, copy the data/local/ssl to /data/local/ssl on the device. Also, push the curl and openssl binaries from data/local/bin to /system/bin on the device. Be sure to chmod them to 0755. Once all that is done, have fun using curl!
I have confirmed this to be working on my Kindle Fire HD running android 4.2.2.
EDIT: Root is needed in order to run OpenSSL, but not cURL.
Sent from my Amazon Kindle Fire HD using xda app-developers app
Screenshot!
{
"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"
}
Sent from my Amazon Kindle Fire HD using xda app-developers app
I'm surprised I was the first person to post about this.
Sent from my Amazon Kindle Fire HD using xda app-developers app
r3pwn said:
I'm surprised I was the first person to post about this.
Sent from my Amazon Kindle Fire HD using xda app-developers app
Click to expand...
Click to collapse
Since you did, you are an idol. Cheers!
Nicely done.
GoLfWRC said:
Nicely done.
Click to expand...
Click to collapse
Thanks. And in-progress is a MD4, MD5 checksum verifier app that will require OpenSSL.
Sent from my Amazon Kindle Fire HD using xda app-developers app
If anyone cares, the link to the app is http://forum.xda-developers.com/showthread.php?t=2366638.
Enjoy checking checksums!
Sent from my Amazon Kindle Fire HD using xda app-developers app
Just tried to install this and didn't seem to get it running.
My purpose for getting curl on Android is so I can have SL4A run a script launched by tasker, but every time I run the script I get "Fatal error: Call to undefined function curl_init() in storage/emulated/0/sl4a/scripts/nest.class.php (a PHP script for controlling my Nest thermostat).
I followed all your steps to install, although I seemed to have to do most through Root Explorer, by pushing to a folder through adb, copying from there into /data/local/ssl (which I had to mkdir for) and /system/bin, then using Root Explorer to change the permissions. Could this install process be the issue? If not, any other tips on getting cURL installed so it can be used?
Thanks.
heytcass said:
Just tried to install this and didn't seem to get it running.
My purpose for getting curl on Android is so I can have SL4A run a script launched by tasker, but every time I run the script I get "Fatal error: Call to undefined function curl_init() in storage/emulated/0/sl4a/scripts/nest.class.php (a PHP script for controlling my Nest thermostat).
I followed all your steps to install, although I seemed to have to do most through Root Explorer, by pushing to a folder through adb, copying from there into /data/local/ssl (which I had to mkdir for) and /system/bin, then using Root Explorer to change the permissions. Could this install process be the issue? If not, any other tips on getting cURL installed so it can be used?
Thanks.
Click to expand...
Click to collapse
I just installed adbd insecure. Should that help with the install?
heytcass said:
I just installed adbd insecure. Should that help with the install?
Click to expand...
Click to collapse
Alright, so I followed the steps to a T on a freshly formatted phone, and I am still getting the "Call to undefined function curl_init()" Fatal error within sl4a's terminal. In my searching to get this problem resolved by my Nexus 5 getting here, I found this page: http://thesoftwarerogue.blogspot.com/2010/05/porting-of-libcurl-to-android-os-using.html.
It's a bit dated, but it seems like it should work. Is there a better chance that method will work better than this one?
No help on this?
heytcass said:
No help on this?
Click to expand...
Click to collapse
Have you tried running it from Android Terminal Emulator or via an adb shell? That is how it's intended to run.
Sent from my iPod touch using Tapatalk
r3pwn said:
Have you tried running it from Android Terminal Emulator or via an adb shell? That is how it's intended to run.
Sent from my iPod touch using Tapatalk
Click to expand...
Click to collapse
I was of the understanding that the terminal within SL4A was a proper terminal emulator. I'll try it with a standalone emulator and see what result that gets me.
Thanks.
heytcass said:
I was of the understanding that the terminal within SL4A was a proper terminal emulator. I'll try it with a standalone emulator and see what result that gets me.
Thanks.
Click to expand...
Click to collapse
Okay.
You're welcome.
Sent from my iPod touch using Tapatalk
I reinstalled everything again, and did the dropbox curl test, which worked no problem. But when I run the script through SL4A, I still get the curl_init fatal error. And when I try to run it through either adb shell or terminal emulator, I get a permission denied error. I seem to be doomed in getting this thing going.
heytcass said:
Just tried to install this and didn't seem to get it running.
My purpose for getting curl on Android is so I can have SL4A run a script launched by tasker, but every time I run the script I get "Fatal error: Call to undefined function curl_init() in storage/emulated/0/sl4a/scripts/nest.class.php (a PHP script for controlling my Nest thermostat).
I followed all your steps to install, although I seemed to have to do most through Root Explorer, by pushing to a folder through adb, copying from there into /data/local/ssl (which I had to mkdir for) and /system/bin, then using Root Explorer to change the permissions. Could this install process be the issue? If not, any other tips on getting cURL installed so it can be used?
Thanks.
Click to expand...
Click to collapse
seem like your php not have curl extension.
use this method
PHP:
$html = shell_exec('/system/bin/curl --url your_target_URL');
echo $html;
for other parameters please follow the curl --help
will the cURL / openssl binaries survive ROM updates ? ie, cyanogenmod nightly --> cyanogenmod nightly ?
since you put in /system and /data folder, they will gone if you update the rom
Hi! I managed to install curl, and put the /data/local/ssl folder
in /data/local/ssl in my phone, but when I tried to do
curl to an https site, the following error appears:
So, I'm trying to guess what's going wrong. Any hint that can
help me get rid of this error will be appreciated.
jose_ramirez said:
Hi! I managed to install curl, and put the /data/local/ssl folder
in /data/local/ssl in my phone, but when I tried to do
curl to an https site, the following error appears:
View attachment 2885033
So, I'm trying to guess what's going wrong. Any hint that can
help me get rid of this error will be appreciated.
Click to expand...
Click to collapse
Do what it says,
Run "curl -k yoururlhere"

If you ever had problems with Ubuntu when using fastboot

Destr0y3r said:
Hello again! , this is just feedback of my experience the method to restore the phone to stock via ubuntu's terminal , if people are having some trouble with this , here i have a small tutorial on how to do it without a hitch.
SETTING UP FOR FASTBOOT
Open terminal and type in the following commands:
sudo apt-get install android-tools-fastboot
sudo apt-get install android-tools-adb
after this type in:
sudo apt-get update
Then here comes something a little bit complicated
you have to type : sudo apt-get install gksu (if i remember)
then after installing "gksu" type in
"gksu gedit /etc/udev/rules.d/51-android.rules"
this command will open a windows with a blank text file , in the text file type in:
# Motorola Moto G SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="2e80", MODE="0666", OWNER="plugdev" SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="2e76", MODE="0666", OWNER="plugdev"
after doing all this work if you guys didn't get confused simply reboot and just in case enable USB Debugging on the proggramer settings (to enable Developer settings go to About phone --> tap 7 times the Build number box and it will say "You are now a proggramer! that's it.
After rebooting your PC/Laptop , plug in your device and your device should have Moto G or "XT1032" as a name.
{
"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"
}
If you want to check if you succesfully did the proccess , open terminal and type
sudo adb devices
It should show some sort of model name , that means everything is ok , now to continue with all this proccess just type in "sudo adb reboot-bootloader and it should get you to Fastboot , on fastboot type in "sudo fastboot" and then type in just like the thread says
example:
"sudo fastboot flash recovery recovery.img"
OPTIONAL
If you want to open terminal from your folder where you have everything just go to terminal and type the command
sudo apt-get install nautilus-open-terminal
Once it installs, type "nautilus -q && nautilus" & to quit and reopen nautilus, and check the right click option. <------ IF THIS LAST COMMAND DOESN'T WORK TYPE IN "sudo nautilus -q && nautilus" , It should open the File
Explorer , close the terminal and now an option "Open with terminal" will appear when right
clicking.
Click to expand...
Click to collapse
Hope my new first thread helped you out! , i copied this from a previous comment i made on the thread "http://forum.xda-developers.com/showthread.php?t=2542219"
Ubuntu 15.04 for XT1033 ?
Destr0y3r said:
Hope my new first thread helped you out! , i copied this from a previous comment i made on the thread "http://forum.xda-developers.com/showthread.php?t=2542219"
Click to expand...
Click to collapse
I want to use fastboot on a Moto G (XT1033) on an Ubuntu 15.04 64 bit. However, I am not showing USB connected on the device in fastboot mode, and fastboot devices gives blank output (i.e. no devices detected).
I have already installed fastboot using sudo apt-get install android-tools-fastboot
Created an anroid.rules file named ##-android.rules in /etc/udev/rules.d/. A persistent.rules file already existed with ##=70, so I used the same number for the android.rules file first. I also tried with ##=91, ##=50 and ##=51 after deleting the old files. None worked.
Tried all these variants in the android.rules file
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", MODE="0666", OWNER="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="2e76", MODE="0666", OWNER="plugdev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
Restarted udev using service udev restart. Rebooting yeilded same effect.
using mfastboot v2 (found on xda forums) didn't help. Device was still undetected
How do I get fastboot working with my XT1033 on Ubuntu?
Try: sudo fastboot devices
No use
All that extra stuff is not necessary. Start again, just install fastboot.
lost101 said:
All that extra stuff is not necessary. Start again, just install fastboot.
Click to expand...
Click to collapse
I'm sorry but I don't understand what you want me to do. Real noob here.
You want me to uninstall the android-tools-fastboot package, delete the rules files and simply reinstall the package?
e14ng said:
I'm sorry but I don't understand what you want me to do. Real noob here.
You want me to uninstall the android-tools-fastboot package, delete the rules files and simply reinstall the package?
Click to expand...
Click to collapse
Yes.
That did the trick. Thanks !!

Having issues running any Linux distribution on my rooted Samsung Galaxy Tab S2 (WiFi

I installed Linux Deploy, BusyBox, and a VNC app (running CM 12.1 unofficial). Here's what steps I took (not including the hours of googling):
1. Installed BusyBox to the default location /system/xbin
2. Opened Linux Deploy and went to the preferences (I have root access)
Distribution: Kali Linux
Distribution suite: sana
Architecture: armhf
Mirror URL: who cares
Installation type: File
Installation path: /storage/emulated/0/linux.IMG
File system: Auto
...
DNS server: Automatic detection
Localization: POSIX
Desktop environment: GNOME
...
Chroot directory: /data/local/Linux
SSH: allowed
SSH settings: 22
GUI: allowed
Graphics subsystem: VNC
3. Installed it
4. Started it from the main menu and it gives me this
{
"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"
}
5. Google like crazy and just assume that I have to run a terminal command
6. Run the terminal and use the default command
I've tried Ubuntu, re flashing my ROM, updating ENV, reconfigured the install, uninstalled BusyBox and Linux Deploy... I don't know what to do anymore.
I've seen lots of posts about this problem but no real solution. Anyone solve this issue?
Sent from my SM-T810 using XDA-Developers mobile app
Did you install the Busybox that Linux Deploy tells you to install?
Using CM12.1 on my SGH-T999
AlienDrew said:
Did you install the Busybox that Linux Deploy tells you to install?
Using CM12.1 on my SGH-T999
Click to expand...
Click to collapse
Yeah it was step 1 but it got lost with all the bodies of text and the pictures around it. I actually fixed it but I had to boot into recovery and wipe everything but the external sdcard. Not sure what exactly happened or why but at least I know a ton about Linux Deploy.
Sent from my SM-T810 using XDA-Developers mobile app
cschuck320 said:
Yeah it was step 1 but it got lost with all the bodies of text and the pictures around it. I actually fixed it but I had to boot into recovery and wipe everything but the external sdcard. Not sure what exactly happened or why but at least I know a ton about Linux Deploy.
Sent from my SM-T810 using XDA-Developers mobile app
Click to expand...
Click to collapse
I've noticed that you didn't specify the size of the image file in the description, unless I know how big you're making the image file it could be that your not giving it enough size to install all of Linux and the desktop environment.
Using CM12.1 on my SGH-T999
---------- Post added at 06:11 AM ---------- Previous post was at 06:08 AM ----------
Oh and if you're installing Kali with the extra Kali components, you're going to need at least 6 GB (1024 MB per GB) of storage ready to download the files for the image.
Using CM12.1 on my SGH-T999

[GUIDE] How to install Xposed on the official Android emulator

Whether you're using Xposed for modding or reverse engineering, it can be useful to develop your Xposed module on an Android emulator. You might not always have a rooted phone lying around. I noticed there's not a lot of info on how to do it, so here's a guide. This is adapted from my blog, which you can check out if you want to read more info. This post is basically the TLDR.
Note that this is about the official Android emulator, combined with the official version of Xposed. So without further ado, here are the steps:
Preparation​
Create an official Android emulator. Make sure to use Android 8.1 x86, because that's the latest supported version. Do not use an x86_64 image, because there's no Xposed build for that architecture. Name your emulator xposed-emulator. Do not start it yet.
Get the latest Xposed framework zip matching your chosen image. For Android 8.1 x86, select sdk27, and then x86. At the time of writing, the latest is xposed-v90-sdk27-x86-beta3.zip.
Get the Xposed Installer APK from this XDA thread.
Launching the emulator​
See if the emulator command is on your PATH. If it's not, you can find it in the emulator/ folder in your Android SDK directory.
Run emulator -list-avds to check the name of your emulator. Any special characters will be replaced by underscores.
Run emulator -avd xposed-emulator -writable-system to start your emulator.
Wait until the emulator is fully booted up.
Installing the Xposed framework​
This might sound weird, but the first step is to unzip the xposed-v90-sdk27-x86-beta3.zip you downloaded. Then name the unzipped folder something convenient, like xposed.
Navigate to the xposed/META-INF/com/google/android folder, and move the flash-script.sh script all the way to the top level, so that it’s at xposed/flash-script.sh.
Drag the xposed folder and drop it onto your running emulator. This will copy the folder to the emulator’s Download folder.
Now open a new terminal window, and run adb root, followed by adb shell.
Change the directory to the xposed directory you copied over by running cd /sdcard/Download/xposed.
Now run the install script with sh flash-script.sh. This should complete without errors.
Installing the Xposed Installer app​
Install the Xposed Installer APK by dragging it, and dropping it onto your running emulator.
Finalizing the installation​
Shut down the emulator by clicking and holding its power button, and selecting "Power off".
Start it again using the same command as before: emulator -avd xposed-emulator -writable-system.
Open the Xposed Installer app. It should say that Xposed is active.
I hope this was helpful. Again, if you would like to read more, be sure to check out my blog. Also don't hesitate to ask any questions in this thread.
Thank you for your useful article. I went through all the steps mentioned. Of course, I use the nox emulator. In the last step when run this command :
sh flash-script.sh
i get some error:
sed: not found
head: not found
At first, I paid attention to the message that says to use a different version, and I tested all the other versions, but I still got the same error.
I am using Android version 5.1.1 on nox and I just downloaded version 22 - x86. The same thing that the Xposed Installer declares.
{
"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"
}
majixoorf said:
Thank you for your useful article. I went through all the steps mentioned. Of course, I use the nox emulator. In the last step when run this command :
sh flash-script.sh
i get some error:
sed: not found
head: not found
At first, I paid attention to the message that says to use a different version, and I tested all the other versions, but I still got the same error.
I am using Android version 5.1.1 on nox and I just downloaded version 22 - x86. The same thing that the Xposed Installer declares.
View attachment 5762117
Click to expand...
Click to collapse
Interesting, I wasn't aware of Nox. The install script is complaining that the sed and head commands do not exist on your emulator, so I'm assuming that Nox doesn't include those. You can try to use something like this to install busybox: https://github.com/SmartPack/BusyBox-Installer, but note that I have no experience with this. Busybox includes many commands, most likely including sed and head.
The "Wrong platform" error is likely a false-positive and can be ignored. The install script tries to use the (missing) commands in a function that checks the platform. This fails, and so it incorrectly reports that the platform is arm, the default value.

Categories

Resources