Friday 5 January 2018

How To Access Sdcard Or External Storage In Termux Without Permission Denied Error


Welcome To HaX4Us

It is very common thing for Termux users but also a root of common error which is permission denied.

And it is obvious that you will try to access sdcard or external storage in termux to save your any important thing & one more noticeable thing is that the permission denied error does not come in Android 5 or before.

It means that you are here because you have Android 6.0 or later. So the only thing what you have to do is that

  • run this command in termux termux-setup-storage
  • After then you will be prompt for permission like as below screenshot so you have to click on allow

Executing termux-setup-storage ensures:

  1. That permission to shared storage is granted to Termux when running on Android 6.0 or later.
  2. That an app-private folder on external storage is created (if external storage exists).
  3. That a folder $HOME/storage is created.


The contents of the created $HOME/storage folder are symlinks to different storage folders like as given screenshot

In case of any query , you can ask in comment section.

Read More

How To Edit Recovery Images Or Boot Images From Android


Hello Guys, Welcome To Hax4Us

Here I am introducing an amazing all-in-one app for extract .img files like recovery or boot images files.

Android Image Kitchen is a popular tool for Linux and ported to android in the form of Apk :)


Due to the fragmentations among Android vendors, this app may or may not work with your boot image, and don't be frustrated when it does not. I am also not responsible for any damage to your phone.

BOOT/RECOVERY: Use this tool to unpack/repack a boot/recovery image. This part is built on top of osm0sis's Android image kitchen but added support for some MTK devices. You can use "dd" or apps such as "Flashify" to flash image back.

SYSTEM: Make sure you have root and a loop device enabled kernel to make the magic happen.  If the system image is a sparse image, the app will try to convert it to a raw image in the same directory  and then mount the raw image; if the system image is a raw image, the app will mount it directly. You can use "dd" to flash image back.

EDITING: You can edit plain text files with the built in file editor or your favorite file editors such as "QuickEdit" or "DroidEditor". You can also view images from the built in image viewer or other viewers. If you want to edit image or binary files, you need to first export the files out and edit them with other apps. "HexEditor" has a limitation which prevents this app from sending binaries for direct editing.

From where should i install ?

Go to play store :)
Read More

Thursday 4 January 2018

How To Make/Create Deb Package In Termux (Part-2)

Hello Guys, Welcome To Hax4Us

So guys I know that why are you here that's why without any blah blah I am going to teach you that how can you make your own deb package in termux for termux.

Usage :

This tool expects packages to be defined in JSON manifest files. Run termux-create-package -h for more information.
An example manifest file is given below:

  "name": "newproject",
  "version": "1.0",
  "homepage": "",
  "maintainer": "@Hax4us",
  "description": "my description",
  "arch": "all",
  "depends": ["dependency"],
  "files" :{
    "": "bin/myfile",
    "": "lib/"

The fields are as follows :

  • name: The name of your package.
  • version: The version of the package.
  • maintainer: Optional informative field specifying who maintains the package.
  • homepage: Optional informative field specifying a homepage URL.
  • description: Optional informative field containing a short description of the package.
  • depends: Comma-separated list of packages that this package depends on. Will be installed automatically when this package is installed using apt.
  • arch: Set to all if the package only contains architecture-independent data, or one of arm/i686/aarch64/x86_64 as appropriate.
  • files: Files relative to the manifest file that should be included in the package. The keys are paths (relative to the current directory) to include and the values are paths where the files should end up at installation (relative to the $PREFIX path in Termux where everything is installed under).
Run the following command to create a package file named ${name}_${version}_all.deb:

$ termux-create-package manifest.json

This can then be installed in Termux using the command:

apt install ./my-package-file.deb

So my friends I hope that now you can make your own deb package without any hassle :)

Note :- In case of any error you can ask in comment section thnx :)

Read More

How To Make Own Deb Package In Termux (Part-1)

Hello Guys, Welcome To Hax4Us

Yes, Termux is built on users' contributions. Termux is an open source application; And there are many benefits. The source code is hosted at GithubTermux-app is the repository for the actual App. Changes to the user interface and terminal emulator can be made here. The termux-packagesrepository is where the apt repository of Termux is located. You can modify and add packages here.

Can I Create My Own Deb Package ?

Yes , you can ! Firstly you will have to open termux and execute this command apt install termux-create-package then you can use this command for more info termux-create-package -h 

It is very easy to create deb files for termux by termux-create-package and if you want to learn more clearly about that you can goto link given below ;)

Make deb package Part-2
Read More