[Q] Ported CLI utilities question - Eee Pad Transformer Themes and Apps

I was just wondering if anyone has looked in to (or has already done/found) a port of any of things like bash, htop. modprobe, etc. Now that I have a massive screen I really miss bash from my CM ROMS on my phones lol ... and htop was just handy
Just curious, I've looked around but haven't found anything other than a couple Terminal apps that might have bash with them.

SpEnTBoY said:
I was just wondering if anyone has looked in to (or has already done/found) a port of any of things like bash, htop. modprobe, etc. Now that I have a massive screen I really miss bash from my CM ROMS on my phones lol ... and htop was just handy
Just curious, I've looked around but haven't found anything other than a couple Terminal apps that might have bash with them.
Click to expand...
Click to collapse
Terminal Emulator is about as bash as it gets. As far as commands like modprobe, if it isn't built into the kernel/os, just do a search for Armel ported stuff in debian repositories, you can usually find what you need, or just cross-compile with an arm-eabi compiler. Add it to /usr/bin and it will work in Terminal Emulator just like bash or any other terminal.

SpEnTBoY said:
Just curious, I've looked around but haven't found anything other than a couple Terminal apps that might have bash with them.
Click to expand...
Click to collapse
Terminal Emulator, and perhaps BusyBox (search Market) should get you a whole lot of stuff to play with.

I grabbed better terminal emulator pro which has busybox and bash but needed to install busybox from market anyway. I just copied a statically linked htop from my CM7 rom and it's happy too

SpEnTBoY said:
I grabbed better terminal emulator pro which has busybox and bash but needed to install busybox from market anyway. I just copied a statically linked htop from my CM7 rom and it's happy too
Click to expand...
Click to collapse
I am using it also, and really like it.
Sent from my Transformer TF101 using Tapatalk

Related

bash?

Hi,
Does anyone know if there's a bash available that would work on a Gtab?
Thanks,
Jim
There is a terminal emulator in the market - it can be side loaded as well.
slow68 said:
There is a terminal emulator in the market - it can be side loaded as well.
Click to expand...
Click to collapse
I'm already using a term, but there's no bash. There's an Android Bash on the market, but apparently not for Tetra ...
Jim
Hi,
I just found that the busybox has ash, with history and command completion, so I think I'm good ...
Jim

Issues with busybox wget

This is somewhat related to development, since wget is used in writing CLI scripts, but has anyone encountered the issue of wget not working with domains on the thunderbolt? I can use ip adddresses (wget http://xxx.xxx.xxx.xxx). I've googled around and there's been past issues with it not working if you don't have nameservers in your /etc/resolve.conf file, but I do have those, so I'm not sure why it's not resolving the domain. Busybox obviously has execute perms and resolve.conf is +r, so I'm at a loss. Commands like ping and traceroute will resolve domains, but not wget.
I could write a small wrapper to add a header with each wget execution, but I was more interested in solving the issue if it's possible.
The thunderbolt is my first android phone, so I don't know if it's a tb problem or android/busybox problem.
Thanks!
Works on das BAMF
adrynalyne said:
Works on das BAMF
Click to expand...
Click to collapse
This is kind of funny, since I was using das BAMF (1.2.1) already haha but no clue why it doesn't work for me. I would be open to any suggestions though and I can provide screen shots if needed.
Busybox version is:
BusyBox v1.19.0.git.adrynalyne (2010-12-21 22:03:30 MST) multi-call binary.
Basically the steps I take are (with nothing in shell profile or other config changes):
open android terminal emulator http://www.appbrain.com/app/android-terminal-emulator/jackpal.androidterm
or ssh via putty remotely with sshdroid (doesn't work in either so not an application problem I dont believe).
$ su -
# ash
# wget http://google.com
wget: bad address 'google.com'
# wget http://74.125.225.20 (google.com)
Connecting to 74.125.225.20....(works)
Known issue with most (if not all) Android BusyBox binaries. Take it up with whoever compiled the one you are using.
Edit: blame adrynalyne, all his fault! He broke it on all devices.
yareally said:
This is somewhat related to development, since wget is used in writing CLI scripts, but has anyone encountered the issue of wget not working with domains on the thunderbolt? I can use ip adddresses (wget http://xxx.xxx.xxx.xxx). I've googled around and there's been past issues with it not working if you don't have nameservers in your /etc/resolve.conf file, but I do have those, so I'm not sure why it's not resolving the domain. Busybox obviously has execute perms and resolve.conf is +r, so I'm at a loss. Commands like ping and traceroute will resolve domains, but not wget.
I could write a small wrapper to add a header with each wget execution, but I was more interested in solving the issue if it's possible.
The thunderbolt is my first android phone, so I don't know if it's a tb problem or android/busybox problem.
Thanks!
Click to expand...
Click to collapse
You can install your own busybox binary that works with wget (along with working /etc/resolv.conf).
jcase said:
Known issue with most (if not all) Android BusyBox binaries. Take it up with whoever compiled the one you are using.
Edit: blame adrynalyne, all his fault! He broke it on all devices.
Click to expand...
Click to collapse
Story of my life. Bamf 1.2 and up work for wget.
Sent from my ADR6400L using XDA App

Compiling a C program on an ARM emulator for use on my Thunderbolt

So I'm trying to compile a program on an ARM emulator (Quem and the laungauge is C) for use on an Android phone. This is because I can't get build-essentials and/or cmake on my android phone, but I do have Terminal Emulator and Busybox.
Anyways, I compiled the program last night (Took forever!), and it runs great on the ARM emulator, and when I tried to run it on Android today It was originally saying Permission Denied (Even though I have SU), I found out that it was because I need to have it as executable, but since the sdcard was a FAT32, I wasn't able to use chmod. So I mounted /system, and copied over the binary to there after chmod 777'ing it. And now it gives me ./myprogram: not found even though it is clearly there.
Doing some reading, people are saying it could mean there are missing libraries, but Android doesn't have the ldd command so I don't know how to find out what it's missing. Also, might be a game breaker, but I found out that my phone is on an ARMv7 where as the emulator is ARM926EJ-S will this make a difference?
Any input is great!
jeremy1080 said:
So I'm trying to compile a program on an ARM emulator (Quem and the laungauge is C) for use on an Android phone. This is because I can't get build-essentials and/or cmake on my android phone, but I do have Terminal Emulator and Busybox.
Anyways, I compiled the program last night (Took forever!), and it runs great on the ARM emulator, and when I tried to run it on Android today It was originally saying Permission Denied (Even though I have SU), I found out that it was because I need to have it as executable, but since the sdcard was a FAT32, I wasn't able to use chmod. So I mounted /system, and copied over the binary to there after chmod 777'ing it. And now it gives me ./myprogram: not found even though it is clearly there.
Doing some reading, people are saying it could mean there are missing libraries, but Android doesn't have the ldd command so I don't know how to find out what it's missing. Also, might be a game breaker, but I found out that my phone is on an ARMv7 where as the emulator is ARM926EJ-S will this make a difference?
Any input is great!
Click to expand...
Click to collapse
You will need to take the C code and using the Android NDK create a android app see here for more info http://developer.android.com/tools/sdk/ndk/index.html
jeremy1080 said:
So I'm trying to compile a program on an ARM emulator (Quem and the laungauge is C) for use on an Android phone. This is because I can't get build-essentials and/or cmake on my android phone, but I do have Terminal Emulator and Busybox.
Anyways, I compiled the program last night (Took forever!), and it runs great on the ARM emulator, and when I tried to run it on Android today It was originally saying Permission Denied (Even though I have SU), I found out that it was because I need to have it as executable, but since the sdcard was a FAT32, I wasn't able to use chmod. So I mounted /system, and copied over the binary to there after chmod 777'ing it. And now it gives me ./myprogram: not found even though it is clearly there.
Doing some reading, people are saying it could mean there are missing libraries, but Android doesn't have the ldd command so I don't know how to find out what it's missing. Also, might be a game breaker, but I found out that my phone is on an ARMv7 where as the emulator is ARM926EJ-S will this make a difference?
Any input is great!
Click to expand...
Click to collapse
Yes, you get "not found" because you are missing libraries you've got in the emulator but not in Android. You can work around this by linking your program -static, this way the library routines are included in your (now bloated) binary.
Even better is compiling using NDK, since it keeps track of the Android libraries, making use of dynamic linked binaries. You really don't want to compile in the emulator, there's no need for this. You can cross compile, i.e. generate ARM code on a x86 system. Much faster!
Also, /data/local is a nice writeable place you can place programs like this without the need of remounting /system read/write.

One Click Root - Sil3ntKi11 - All US Variants

Hey guys,
About two years ago when the Droid X came out, I came out with a one click root app for it that was pretty popular. Since I have the Galaxy S3 now and wanted to root me phone, I decided to make it ridiculously easy for people.
Credit goes to this thread: http://forum.xda-developers.com/showthread.php?t=1875914
I simply packaged it up into a Qt app. I will be releasing it on Linux tomorrow and if I can somehow get a Mac (or someone has one) that wants to compile the Qt app for Mac, we can have it working on all 3 main operating systems.
Here's the download: http://www.mediafire.com/?g4mfv432lzk2pj0
And some screenshots to go along with it: http://imgur.com/a/7Eq48
Enjoy!!! I will update with the Linux version tomorrow
- Sil3ntKi11
Very nice!
Sent from my SCH-I535 using xda premium
Shouldn't this be in the dev section?
jellydroid13 said:
Shouldn't this be in the dev section?
Click to expand...
Click to collapse
It could be but here is the problem i see...
all current root methods that work for ics will no longer work for jellybean. so when the jb ota drops this will be kind of null and void. not saying you couldnt odin back to a ics build then root and upgrade back to jellybeans, but thats alot of extra steps. the best method imo is to odin mr.robinson's pre rooted stock j1 update.
droidstyle said:
It could be but here is the problem i see...
all current root methods that work for ics will no longer work for jellybean. so when the jb ota drops this will be kind of null and void. not saying you couldnt odin back to a ics build then root and upgrade back to jellybeans, but thats alot of extra steps. the best method imo is to odin mr.robinson's pre rooted stock j1 update.
Click to expand...
Click to collapse
Yeah, I know that. But within a few days a new method will be up and I will update it! If someone finds it useful, then great! When the 4.1 root method (non-odin) is out, then I will put that up!
But yeah, most people after updating won't need this
Will this raise the flash counter?
I can compile the qt app on Mac if you get me the source.
Sent from my SCH-I535 using xda app-developers app
alquimista said:
I can compile the qt app on Mac if you get me the source.
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
Here's the source attached. Also, if you could send me a link to a copy of adb for mac (just the executable) that would be awesome!
ahfu25 said:
Will this raise the flash counter?
Click to expand...
Click to collapse
To be completely honest I am not sure. I have no triangle on my phone. If it does, you can use:
http://forum.xda-developers.com/showthread.php?t=1494114
To reset your counter I believe. Does someone else want to weigh in on this?
sil3ntki11 said:
Here's the source attached. Also, if you could send me a link to a copy of adb for mac (just the executable) that would be awesome!
Click to expand...
Click to collapse
Here are the most useful binaries from the Android SDK for Mac. Included in tarball:
aapt
adb
aidl
dexdump
dx
I'll try and get the Mac qt build up later tonight.
Ta,
ALQI
I'm having problems compiling on my laptop.
I keep getting the error that my version of OS X isn't supported. I'm on 10.7.4, should I be on 10.6 or something?
Anyway, I have an app built, but the bundle doesn't look right. It doesn't contain any of the root tools, and the main executable is way too small.
I don't want to post it here, cause I doubt its functional.
It looks nice though!
alquimista said:
I'm having problems compiling on my laptop.
I keep getting the error that my version of OS X isn't supported. I'm on 10.7.4, should I be on 10.6 or something?
Anyway, I have an app built, but the bundle doesn't look right. It doesn't contain any of the root tools, and the main executable is way too small.
I don't want to post it here, cause I doubt its functional.
It looks nice though!
Click to expand...
Click to collapse
Hey! Thanks for trying! So I used Qt version 4.8.3, the open source SDK. You need three libraries to run the app, QtCore4, QtGui4, and QtWebKit4. They have to be in the same folder as the executable if Qt isn't in your Path. The root tools are in there, "debugfs", "debugfsinput" and "su" and "Superuser.apk". I didn't include the Mac adb tool, as I couldn't get it. That should be named adbmac and be put in the tools/ folder of where the executable lies.
I have changed the source to make this customizable for anyone's root methods, if you look here:
http://forum.xda-developers.com/showthread.php?t=2000988
Here is cleaner source attached, basically the same. So, in order to get this work:
Build the code
Find the folder it was built into (please use release, not debug)
In that folder, find the executable. This is the main folder
Copy the /root, /tools, /html, /device folders that are in the zip into the main directory where the executable is.
Copy your OSX's adb into /tools and rename it adbmac
Make sure Qt is in the PATH variable, if not you need
QtCore4, QtGui4, and QtWebKit4 in the same folder as the executable
For others to use it, they need those libraries in there, or else they will need to have Qt installed
You can statically link the libraries if you so desire but I didn't want to deal with that.
sil3ntki11 said:
Hey! Thanks for trying! So I used Qt version 4.8.3, the open source SDK. You need three libraries to run the app, QtCore4, QtGui4, and QtWebKit4. They have to be in the same folder as the executable if Qt isn't in your Path. The root tools are in there, "debugfs", "debugfsinput" and "su" and "Superuser.apk". I didn't include the Mac adb tool, as I couldn't get it. That should be named adbmac and be put in the tools/ folder of where the executable lies.
I have changed the source to make this customizable for anyone's root methods, if you look here:
http://forum.xda-developers.com/showthread.php?t=2000988
Here is cleaner source attached, basically the same. So, in order to get this work:
[/LIST]
Click to expand...
Click to collapse
Ah, that's my problem. I'm still on Qt 4.7 cause the QtADB tool requires the 4.7 libraries. I can update to 4.8 , but it will take a while cause Macs are dumber than Linux.
Question, can't we roll the libraries into the app itself? I know Avid MediaComposer 6 and up have Qt pretty much rolled into the app to run all of the GUI, they even use some python to run some of the GUI for them (its crap for code but its better than FCP X). I'll look into it while I'm waiting for Qt 4.8 to download and install.
I'll keep you updated.
Ta,
ALQI
tplawi then
alquimista said:
Ah, that's my problem. I'm still on Qt 4.7 cause the QtADB tool requires the 4.7 libraries. I can update to 4.8 , but it will take a while cause Macs are dumber than Linux.
Question, can't we roll the libraries into the app itself? I know Avid MediaComposer 6 and up have Qt pretty much rolled into the app to run all of the GUI, they even use some python to run some of the GUI for them (its crap for code but its better than FCP X). I'll look into it while I'm waiting for Qt 4.8 to download and install.
I'll keep you updated.
Ta,
ALQI
Click to expand...
Click to collapse
Hey! Thanks for the effort. So I actually got a VMWare image of Mac OSX Lion going on my machine and got it to compile. What you are referring to is called static linking and can definitely be done, I just have to compile from source with the -static argument. I'm trying to decide if I should not use WebKit for my GUI as that is the only library that is quite large. I'm going to compile it statically and see how big it is. I might put this up on a private GitHub repo if you want to help work on it.
My idea is that this can be used by anyone to make other root packages. If you noticed in the other thread I sent you, I basically have a very simple custom batch language for them to create for the root method and the rest is taken care by the program. This way it won't discourage people and we can have a one click root truly. Let me know if you want to help me improve it!

[Tips&Tricks]All things Evita[UPDATED 6/5/13]

I've noticed a lot of people having issues getting ROMs to boot, Wifi probelms, etc. So I've decided, since I don't have much time to maintain a ROM, I would make a Tips and Tricks thread for users to be able to look at and solve things on their own.
This thread will be a compilation of noob level fixes to harder, more knowledgable fixes.
This will constantly be updated, so if you have anything you would like to add, post it up and i'll add it to the OP.
Redpoint also has an AWESOME resource compilation of anything and everything located in this specific EVITA forum.
That's located HERE
Boot Issues
Shelld causing ROM not to boot
This happens more commonly with MIUI. During the porting process one of the most tricky files needed is the shelld located in /system/xbin.
If your MIUI build or ROM download isn't booting up, and your logcat saying something to the effect of "trying to initialize shell service"... It's a shell problem.
To fix this, you'll need the following:
any form of Android Kitchen, I use dsixda's kitchen found in the main development section of the forums.
a text editor, I use Text Editor that comes with Ubuntu 12.04LTS
Steps:
take the ROM
unpack the boot.img into the kernel and ramdisk with your android kitchen
open the ramdisk folder
open you INIT.RC file in a text editor
at the very bottom insert these lines:
Code:
service shelld /system/xbin/shelld
class main
Click to expand...
Click to collapse
WiFi Issues?
Credit for this one is given to flar2. A lot of users were having trouble with WiFi when running the Sense 5 port by ImagioX1 along with the latest ElementalX kernel.
Two ways to do this. One is from your phone, the other is from your computer.
#1, Phone
What you'll need:
a root file exlplorer
a working HTC OneX(Evita)
ElementalX kernel installed
Steps:
After rom has booted navigate to /system/etc and open init.qcom.post_boot.sh. with a text editor.
Scroll to the very bottom and paste this there.( Make sure it is the last line )
Code:
insmod /system/lib/modules/prima_wlan.ko
Save and exit the file and then do a full reboot. When the phone comes back on wifi should be working.
#2, Computer
What you'll need:
a text editor, I use Text Editor that comes with Ubuntu 12.04LTS
Steps:
navigate to /ROMfolder/system/etc
open, in a text editor, init.qcom.post_boot.sh
at the very bottom, type
Code:
insmod /system/lib/modules/prima_wlan.ko
save, exit, profit.
Click to expand...
Click to collapse
ADB and Fastboot
While gunnyman has a sticky thread for this, I decided I would go ahead and add it in to my thread as well.
This is for any LINUX distro.
if you're running a linux distro and are having trouble getting ADB started, this is what you do to solve this issue...
Download my ADB/Fastboot .zip I have linked HERE
extract to a folder on your desktop
open terminal
cd to that folder you have extracted to binaries to
type:
Code:
sudo adb kill-server
sudo adb start-server
BOTH AS SEPARATE COMMANDS
ADB is now initialized on your linux distro of choice
Click to expand...
Click to collapse
I'll add an apktool guide in a little bit, this one is a tricky tool. I'll also and a smali/baksmali guide for you people who want to, or are in the process of learning how to port.
I'll also make another thread and lock this. This one is not organized one bit and there is a maximum character limit per post... -,-
More to be added, these are the first to come to mind.​
This will help a lot of the new people out there just flashing away. Good start, like to see how this evolves.
With regards to linux distros you should be able to install from repos using the package manager which will set up the paths for you as well, eliminating the need to be in a specific folder. Pretty simple too. May be a good idea to just add the distribution specific install from repo commands.
For ubuntu for example:
Sudo apt-get update
Sudo apt-get install android-tools-adb
Sudo apt-get install android-tools-fastboot
Sent from my HTC One X using xda app-developers app
exad said:
With regards to linux distros you should be able to install from repos using the package manager which will set up the paths for you as well, eliminating the need to be in a specific folder. Pretty simple too. May be a good idea to just add the distribution specific install from repo commands.
For ubuntu for example:
Sudo apt-get update
Sudo apt-get install android-tools-adb
Sudo apt-get install android-tools-fastboot
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Fair enough, I'll add this to the OP in due time. I'm still trying to write up an apktool guide as well as a smali/baksmali guide. The one I wrote up in my How to Port a ROM thread isn't as detailed as it needs to be.
Thanks.
You're taking on too much!! Slow down
Sent from my HTC One X using xda app-developers app
exad said:
You're taking on too much!! Slow down
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Since I don't have much time to maintain a ROM anymore, I want people to be able to have the resources to do it for themselves.
Myrder said:
Since I don't have much time to maintain a ROM anymore, I want people to be able to have the resources to do it for themselves.
Click to expand...
Click to collapse
Good attitude man. None of the roms we have really were exactly what I was looking for. Viper was very close but there were a few things about it too. I don't mean any disrespect to any dev (now that I'm one I see how hard they worked). Now that I know enough I can get make my own roms and get them just right. Glad to see you helping out.
Sent from my HTC Evita running Sense 5 RX ALPHA

Categories

Resources