[Q] Backtrack 5 no longer working on Atrix. HELP - Atrix 4G Q&A, Help & Troubleshooting

Hello all,
I recently put backtrack 5 on my atrix and was really enjoying having a pentesting suite on my mobile phone.
I used the method and image from this thread
http://forum.xda-developers.com/showthread.php?t=1074169&page=26
Everything worked perfectly for a while until...
I updated to 4.5.91 GB OTA and now it no longer works.
When attempting to start BT I get this
Code:
#startbt
losetup:applet not found
mount: applet not found
mount :no such file or directory
mount :no such file or directory
mount :no such file or directory
net.ipv4.ip_forward=1
Setting /etc/resolv.conf to Google open DNS 8.8.8.8 and 8.8.8.4
startbt cannot create /data/local/bt/etc/resolve.conf: directory non-existent
startbt cannot create /data/local/bt/etc/resolve.conf: directory non-existent
startby cannot create /data/local/bt/etc/hosts directory non-existent
It looks to me like the backtrack image is not getting mounted, thus the directories cannot be found.
Can someone please explain to me what in the world happened, and perhaps how I can go about fixing this?
I am rooted and do have busybox installed. Both are confirmed through the rootcheck app.
Also I apologize for not posting this in the thread in the thread I mentioned before, but post count prevents me from posting in dev forums.
If someone successfully solves my issue I would be glad to donate a a few bucks to the dev of their choice.
EDIT***
Nevermind It is fixed. Just in case others are having similar issues I will explain what was wrong...
After I updated to GB and re-rooted, I ran rootcheck to verify that I had root access. One thing I noticed is that my rootcheck claimed I didnt have busybox installed. So I reinstalled it. Like a dummy I installed it /system/xbin instead of /system/bin. Simply installing it to the correct place fixed things. I feel silly. Mods feel free to delete this.

Related

[Q] Installing Swype

Hey all,
I would just like to say I am new to this whole thing, and HAVE searched the forums, and found this link to be most helpful:
http://forum.xda-developers.com/showpost.php?p=12029729&postcount=12
I am merely trying to install the new swype beta, I am currently trying to uninstall my current version of swype, now I have done the majority of the steps the only thing I am having trouble doing is giving the phone read/write access
as when I try: mkdir /mnt/sdcard/swype_backup I get an error because it's a read-only file system.
I am using ADB; the first line of the post I linked to says to enable R/W access if you're using Root Explorer... but I am not, so how can I accomplish this through adb?
Am I missing something glaringly obvious?
Thanks for your time and patience
Edit: I believe adb is working to the extent it should... after I type in adb shell I do infact get a '#' before each line.
It's all fixed, re-did gladroot and now everything worked perfectly, not sure exactly why it wasn't before
thanks anyways!

[Q] Busybox & dmesg

Hi! Sorry if this question was already asked, but I couldn't find something related..
I have SGS2 XXKG3, so I've downloaded Chainfires's rooted kernel XXKG3 and successfully flashed it. Then I tried to install SUFBS (root file manager and terminal) and it told me that I don't have busybox when I tried to mount /system as r/w. Also it offered to install free busybox from Market. I agreed.
Everything seemed to be OK until I found that droidwall cannot show me the log - it tells "dmesg: applet not found". Little research discovered that I have symlink /sbin/dmesg which refers to busybox. But my version of busybox doesn't support dmesg. Also I'd found normal dmesg (ELF-executable) under (probably, I don't remember) /system/bin. So I deleted the symlink (/sbin/dmesg) and everything worked OK again. But.. till reboot. After reboot the /sbin/dmesg was there again.
Little more research and I found that now I have two versions of busybox on my SGS2: one from Chainfire's kernel (dated 2009) and one that I've installed myself (dated 2011, sep). The latter (2011) has about 1.5 times more functions that Chainfire's. But 2009 has dmesg function whereas 2011 hasn't.
So here is the question: why /sbin/dmesg is automatically restored after boot? And what can I do to prevent it from restoring?
Also, do I need to do something to remove one copy of busybox or two of them will live OK with each other?
Guys, please help... I can't now write to developers' forums since I don't have enough posts, so my only hope is to write here

Smb client mount using cifs library and cifsmanager

Hello everybody, I'm new and I'm a noob
Yesterday night i have root my samsung galaxy tab 10.1, then i mount cifs module with the aim to moun a smb share on my tablet. In the end all works but i can't browse folder without root privileges. For example
Using root file manager or terminal i can browse read, edit or write any file
using another app i can't because it has no privileges.
Probably there'll be three solution
1- Run all app as root (i can't do that please help me)
2- Change permission to all folder (i don't like this way)
3- Resolve problem using other ways ( change cifs.ko or something like that)
Please help me, consider that i use cifs file taken from this thread
http://forum.xda-developers.com/showthread.php?t=1058713&page=2
Maybe you should set the mount point under /mnt/sdcard/
e.g. /mnt/sdcard/yourdir
I've tried but it doesn't work. I have red on the forum to put in the options
uid=1000 (system), gid=1015. You can read at the post 368 of this thread
http://forum.xda-developers.com/showthread.php?t=756158&page=37
But i can't get the solution
everything solved mountin on sdcard using option
uid=0,gid=1015
Solve a problem band another one will come. I have mounted a share and i can't write on it. Any ideas? I think that the problem is the same, on the privileges. I have red about cifs but i can't understand. First or all cifs privileges on android discard the server rule when i write a new file or edit a old one? Second when i use privileges what is the user that execute apps on android? Third i have to use it and what is its code? Thank you
up ^ up ^ up ^ up ^
Well everything works. I write what i did probably it'll be useful for anyone.
First of all android use a series of user each for subsistem ( gps,bluetooth, radio ecc) and app ( music player, contact ecc). When you mount a share any app have access to it only if it has all privileges, so you have to specify in option the uid of the app that should open or write the share. The uid of all apps can be found in /data/system/packages.xml.
That's all folks
Sorry for digging this up, but I just wanted to thank the OP.
I had exactly the same problem on my SGS and manually overriding uid and gid did the trick.
I wonder why only some people seem to have this problem, though.

[Q] Howto upgrade the busybox properly ??

Hi,
I tried to upgrade the busybox with different manner (busybox, busybox installer, manual installation from xda), but no one works properly.
Each time i broke the original Archos busibox, so i lose the adb shell.
Can someone explain to me the good way to upgrade the busybox?
Thanks.
SirOch
Hi,
Nobody to explain a clean upgrade of the busybox?
cheers
SirOch said:
Hi,
Nobody to explain a clean upgrade of the busybox?
cheers
Click to expand...
Click to collapse
Google? also XDA has a great search feature have you tried that? :silly: Any particular reason why you want/need to upgrade busybox?
Hi,
As i said, i tried the different busybox installers and the installation was ok, but i each time, i lost the shell from adb.
That's just my problem.
So i just want to understand why the upgrade of the busybox broke the original archos busybox?
Moreover some application need to have other busybox installed.
Regards.
David
SirOch said:
Hi,
As i said, i tried the different busybox installers and the installation was ok, but i each time, i lost the shell from adb.
That's just my problem.
So i just want to understand why the upgrade of the busybox broke the original archos busybox?
Moreover some application need to have other busybox installed.
Regards.
David
Click to expand...
Click to collapse
Ahhh right, the quest for knowledge Your problem is as much to do with adb ( /sbin/adbd to be precise ) as it is to do with busybox, firstly you've probably wiped out the symlinks in /bin, especially /bin/sh which is the location that adbd on archos looks to run the when you do adb shell from your desktop. This is not the default location which just about every other android OEM adheares ,that is /system/bin/sh.
If you are going to upgrade the archos busybox be aware that a large number of symlinks back to /bin/busybox exist not only in /bin but also in /usr/bin /usr/sbin
Archos for reasons I still haven't fathomed, really went to town on restructuring and customized Android on the platform level.
A little tip if you've got more question, to save you bumping threads , which really does upset some folks round here... you'll probably get more more if you add more details, such as error messages etc. Saying " i lost the shell from adb." doesn't really help anyone who might be able to offer assistance. There about 10 different ways adb can fail to connect, Did the device disappear from the list or report as offline. or even come up with the message "- exec '/bin/sh' failed: No such file or directory (2) -".??
Hopefully that's helped.
Hi SirOrch,
i don't know why you loose your adb shell, but concerning busybox... the things on Archos tablets are like this:
Basically on a non rooted device we got a squashfs image mounted read only.
This image contains the stock busybox compiled by Archos (sharing system's uclibc) with limited functionality,
but containing enough tools to handle the daily job.
The path to this busybox is "hard-coded" as well. It's location is /bin which is the second entry in the path environment.
You might check that by typing printenv in your console.
The first entry should be /data/local/bin on your device.
So if you like to replace stock busybox with an advanced one, you should make sure that it will be installed to /data/local/bin.
Often there's no need to use all this apk Android Market stuff to get a proper busybox installation.
Sometimes it's little better to really understand what's happening under the hood.
Most busybox app's are statically linked, because with a static binary you don't have to take care of the device's libc or uclibc.
So you might easily extract on of the apk's or get one from xda-developers.
There are many floating around in the end.
If got one push it to /data/local/bin with adb.
You might need softlinks in this directory as well. This could be done by hand as well.
Anyway if you are a lazy person, who doesn't care about what's happening, go to the market install busybox.
Then check at /data/local/bin if it is there.
If it got installed elsewhere, some commands will still use stock busybox.
Extended commands might then use the installed one.
So check it out...
EDIT:
... aaaargh again simultaneous posting.
scholbert
Hi gentlemen,
Thanks for your help and sorry to forget to give you the error message i had:
the message was : - exec '/bin/sh' failed: No such file or directory (2) -
After investigation i found my mistake:
- In manual mode, i forget to change the ownership of busybox to root in /bin.
- when i tried to use any application from the market, the busybox was well updated in /system/xbin but the application also delete the busybox in /bin and don't change the symlinks in /bin. That's explain why adb shell won't work.
Regards.
SirOch

difficulty installing botbrew basil experimental (maybe related to /var)

hi, I downloaded botbrew, supersu granted it super access. It says something like "extract archive: cannot create symlink from ./system/bin/botbrew to /data/botbrew/bin/borbrew read-only file system.."
To reinstall I tried choose uninstall in the play store, and on phone, then install but it just starts back up without reinstalling. So didn't really uninstall. And also I can't see any terminal with it. I went into android terminal but it can't see any command like apt-get I see about adding a repository and searching for packages.. what repository to add to use ssh and nmap and get apt-get? (i'd like to do apt-get install dropbear)
I don't recall if that was when trying botbrew root or botbrew basil.
I have gone to the android terminal and run 'botbrew' , I see the $PATH variable change to include botbrew/bin so I know i'm in. but I don't have apt-get (which I want)
I had installed botbrew root beforehand, then realised it didn't have apt-get, so I went for botbrew basil experimental.
Botbrew basil experimental is showing nothing in the 'installed' tab, At one point one tab said something like dpkg or something was pending, but something was locked and it couldn't continue with that. So I closed some other programs and turned my phone off and on, and went back into Botbrew but now I see nothing pending.
I just got this message
E: Couldn't create temporary file to work with /var/lib/apt/lists/repo.botbrew.com_basil_main_Release - mkstemp (13: Permission denied)
E: The package lists or status file could not be parsed or opened
E: No packages found
I suppose perhaps that message might be from apt-get.. operating within the botbrew gui..
It's not surprising that it can't write to /var , as there is no /var directory on my phone. I tried cd /var, also as root.. from a terminal but nope, that directory doesn't exist.
I considered posting to http://forum.xda-developers.com/showpost.php?p=26261600&postcount=119 as that looks like it might be a dedicated thread. I don't know if i'm too newby to post in that section, but anyhow I can't in that section as one needs 10 posts to.
TIA

Categories

Resources