January 12, 2014 By: eagleeyetom
Recently, we’ve talked a good deal about ADB and getting it set up on various operating systems. ADB is a very handful set of tools that allows you to install your favorite apps directly from your PC or even work with your /system partition by pushing or pulling some files. ADB is also a great tool to get error logs and debug Android applications.
If you’ve used ADB more than once, you likely noticed that pushing files is far from convenient. Typing long commands and paths is not the easiest way, especially when your path resets after accessing ADB shell. Because of this, XDA Senior Member youssef badr created a useful Windows-only tool that helps you push files really easily.
All you need to do is to specify which file needs to be pushed and the path on your device. The script takes care of the rest. You can keep your device in shell state to see the full file structure. Obviously, you need to have working ADB and associated drivers on your PC to use this tool.
More information and the tool itself can be found in the original thread.
Every Android kernel is made of few parts, which (depending on the OEM) contains a zImage created during kernel compilation and a ramdisk where some device-specific settings are stored. Sometimes, the ramdisk contains a recovery, logo, and so on.
If you’ve ever tried to work on a precompiled kernel, you’ve noticed that it can’t be extracted with a simple archive manager. Rather, you need some tools capable of unpacking and repacking the kernel as an IMG file. These tools can be easily built on Linux. And thanks to XDA Senior Member A.S._id, you can download them easily and compile your 0wn.
The current set of tools includes such binaries as: mkbootfs, simg2simg, make_ext4fs, mkbootimg, ext2simg, img2simg, simg2img, sgs4ext4fs, and unpackbootimg. Some of them were created by XDA Senior Recognized Developer Chainfire and the CyanogenMod team.
The compilation process is presented in the thread. It’s really simple, and needs just two commands. If you have problems executing them, don’t forget to set the correct permissions by setting the files as executable. After compilation, you end up with binaries that can be used in the kernel modification process.
Naturally, this tool works only on Linux machines. Having configured Github account is also recommended. You can learn more about those binaries by visiting the original thread.
January 11, 2014 By: eagleeyetom
If you’ve ever flashed a custom ROM, you’ve probably noticed that your custom recovery reads some sort of script to format your system partition, make symlinks, and so on. This set of commands is known as Edify. Usually there are two parts of Edify: updater-script, which is a text file with instructions for recovery; and updater-binary, which loads said script. Open source projects generate the updater-script directly from source, but not every ROM is built from source.
It’s extremely easy to break the syntax of Edify script. One missing semicolon can interrupt the flash and gave a nasty error. If you don’t read the recovery log, finding a mistake is problematic. This is why a tool by XDA Senior Member yashade2001 should interest you.
Yashade2001 created a Windows-only application that will help greatly with finding syntax errors. Depending of the type of code, EdiSense uses different colors. So for example, comments are green and various commands are dark blue. EdiSense can save you a lot of time and find an error within few seconds.
Right now, this tool is available only for Windows. Hopefully, the developer will port it to other operating systems as well. If you are modifying your updater-script, you should definitely visit the original thread and give EdiSense a shot.
January 11, 2014 By: eagleeyetom
In the past few weeks, we’ve talked about several tools to decompile application and convert the output Java code. These tools, however, are for Windows and Linux PCs, and not Android devices. Naturally, these tools are very useful if you want to modify an application for your personal use or learn how to improve your own project.
Recently, yet another tool popped up to accomplish this task, but it has a unique twist. Show Java written by XDA Senior Member niranjan94 can decompile an application and show the code directly on your Android device. It’s a perfect solution for when curiosity takes hold, and you don’t have access to your PC.
The application uses two external tools: Class File Reader and dex2jar to get the code. The output is presented in an elegant, syntaxed form. Code is then stored on the SD Card, so you can even analyze it on your PC.
The application is still in a very early stage, which is described as Alpha by developer. There are still some bugs such as a slow decompilation process and lack of support for system applications. However, using the app is very simple. Just tap on one of installed apps and wait for result. Your device does not have to be rooted or have any additional apps installed.
You can learn more about this project and grab the newest APK by visiting the application thread.