Terminal Commands - Motorola Droid RAZR

Is there a list of commands somewhere for the terminal emulator? Please and thanks.
Sent from my DROID RAZR using xda premium

No.
But to see some of the available:
Code:
busybox #prints available busybox commands
ls /bin #prints all files in /bin
ls /usr/bin #prints all files in /usr/bin
ls /sbin
ls /usr/sbin

OK, how would I change the su perms for an application?
Sent from my DROID RAZR using xda premium

Find chmod manual
Sent from my XT910 using XDA App

XxSinisteRxX said:
OK, how would I change the su perms for an application?
Click to expand...
Click to collapse
sorry but I don't understand.
Is it:
You use su to become root.
You may use chmod to change permissions on a file
You use the superuser app to change witch apps that automatically approves or denies superuser access.

pajn said:
sorry but I don't understand.
Is it:
You use su to become root.
You may use chmod to change permissions on a file
You use the superuser app to change witch apps that automatically approves or denies superuser access.
Click to expand...
Click to collapse
I got this issue straightened out, thanks tho pain. I appreciate the effort.
Sent from my DROID RAZR using xda premium

Related

Aosp messaging

Can someone please post zip for aosp messaging. Thanks.
Sent from my SGH-T959 using XDA App
Here you go.
Thanks a bunch
Sent from my SGH-T959 using XDA App
How would you install this? I found something similar but had no luck at installing it
trigger1974 said:
How would you install this? I found something similar but had no luck at installing it
Click to expand...
Click to collapse
With this you would use Root Explorer or similar app to just drop it in your system/app folder
jrharvey said:
With this you would use Root Explorer or similar app to just drop it in your system/app folder
Click to expand...
Click to collapse
Code:
adb push mms.apk /sdcard && adb shell
su
mount -o remount,rw /dev/block/stl9 /system
cp /sdcard/moms.apk /system/app
Sent from my SGH-T959 using XDA App
dasunsrule32 said:
Code:
adb push mms.apk /sdcard && adb shell
su
mount -o remount,rw /dev/block/stl9 /system
cp /sdcard/[B]mms.apk[/B] /system/app
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
I could be wrong, but I am sure you meant the above.
I'll push your mom into my system/app.... lol j/k
lol @ moms.apk

Telstra Deodex

I'm trying to deodex my atrix with the 4.1.4.2 sbf, but I'm having trouble. I think it's because I don't have superuser permissions of adb, how do I get this?
adb shell
Su
On the phone itll prompt you with a super user permissions.
Run the script now and it should work
Sent from my MB860 using XDA App
ChongoDroid said:
adb shell
Su
On the phone itll prompt you with a super user permissions.
Run the script now and it should work
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
Is this done through Terminal Emulator?

Q How to run crosscompiled linux binarys in Terminal

My question:
How can i run a cross compiled Binary in Terminal?
My SGS 2 is rooted and i make ithe binary executable in terminal under root with chmod.
but when i try i become:
# app
app: not found
How about ./app just a thought?
Swyped from HTC Desire S using XDA Premium
Same Problem.
Sent from my GT-I9100 using XDA App
As long as its in $PATH and not in sdcard (no exec permissions) it should work.
What you trying to compile if you dont mind me asking?
Sent from my HTC Desire using XDA App
tried john the ripper
without how to.
but used same way as. http://www.openwall.com/lists/john-users/2011/07/17/1
have used his binary to but same problem.
Worked fine for me, i just followed instructions in the file INSTALL.
remount system rw
Copy john to /system/xbin
chmod 0755 /system/xbin/john
cd to user directory included in the download.
john...and it worked.
You doing anything different to the above? It *should* be working for you.
Sent from my HTC Desire using XDA App
Tried 2 Times. Exactly Same Result.
try again later.
Sent from my GT-I9100 using XDA App

[HowTo] Make temp-root permanent

I've rooted my HTC Amaze. The rootedness persists across reboot. Here's how I did it.
1. Copy the zergRush temp root to the phone. I put it in /data/local
2. Run zergRush on the phone via adb shell.
One you have temp root do this (from the PC)
1. adb remount
2. adb push su /system/bin/
3. adb shell chmod 04755 /system/bin/su
Then you can install superuser.apk and reboot. After rebooting you should be able to adb shell and type su. This should prompt you (on the phone) to allow su. Once you allow it then any apps that need root should begin working.
You can find the zip file that contains the su binary here
NOTE: the adb daemon will not be running as root so, when you adb shell to the device you will not have root. You just run su and then you have root.
Questions? Just ask. I'll do my best to help. But, remember, you do this all at your own risk.
-xdadevelopers-user
I had some weirdness when allowing a second root app in superuser. It would consistently FC. The first root app was fine and continued to work but I couldn't get another root app to be authorized.
It turns out it's related to the permissions on the superuser databases. To fix my problem I went to home>menu>settings>applications>manage applications>superuser>clear data. Then run superuser and dismiss the startup dialog. Now adb shell and run su. It will prompt on the device and you should allow it. You should now have the root prompt in your adb shell session. From there type
Code:
chmod 666 /data/data/com.noshufou.android.su/databases/*
Now you can run more root apps without superuser FCing.
-xdadevelopers-user
Very nice work, I will probably wait until we have recovery to actually do it. This is a great start though, hopefully this works with no problems as I saw that some were "bricking" their devices using the Zerg method for temp root.
This is still temproot , it won't allow u to go into /system to delete bloat or edit framework .
Sent from my HTC_Amaze_4G using XDA Premium App
Revolution said:
This is still temproot , it won't allow u to go into /system to delete bloat or edit framework .
Sent from my HTC_Amaze_4G using XDA Premium App
Click to expand...
Click to collapse
Yes, it will. In fact, that's basically all it does. Of course if you want to change /system/ you'll need to su to root first, then remount it RW. From there you can make any changes you want. The changes you make will persist across a reboot. To test this I deleted teeter.apk and teeter.odex from /system/app and rebooted. Teeter is now gone from my phone.
So, unless I'm misunderstanding what you mean, this is permanent root.
-xdadevelopers-user
Alright , i mean like will it let you add edit file's in /system such as editing framework ?
xdadevelopers-user said:
Yes, it will. In fact, that's basically all it does. Of course if you want to change /system/ you'll need to su to root first, then remount it RW. From there you can make any changes you want. The changes you make will persist across a reboot. To test this I deleted teeter.apk and teeter.odex from /system/app and rebooted. Teeter is now gone from my phone.
So, unless I'm misunderstanding what you mean, this is permanent root.
-xdadevelopers-user
Click to expand...
Click to collapse
Revolution said:
Alright , i mean like will it let you add edit file's in /system such as editing framework ?
Click to expand...
Click to collapse
For the record yes it dose, but your a dev next time try it b4 you post saying it don't work because u make yourself seem like you don't know what your talking about
Sent from my HTC_Amaze_4G using xda premium
I asked a question , i could speak and ask question's. kk .
Jaywan said:
For the record yes it dose, but your a dev next time try it b4 you post saying it don't work because u make yourself seem like you don't know what your talking about
Sent from my HTC_Amaze_4G using xda premium
Click to expand...
Click to collapse
Revolution said:
Alright , i mean like will it let you add edit file's in /system such as editing framework ?
Click to expand...
Click to collapse
Yes, you can make changes (add/edit/delete) to the files in /system.
I added:
/system/bin/su
/system/app/TitaniumBackup.apk
and deleted:
/system/app/teeter.apk
/system/app/teeter.odex
I did not edit anything in /system but I could if I had a reason to.
-xdadevelopers-user
for what it's worth...
I used the UOT kitchen to modify the battery to include percent. Since we don't have recovery yet I manually pushed the framework-res.apk and SystemUI.apk and then manually deleted the dalvik-cache. Now my status bar has the modified battery. Woohoo!
I was going to build a recovery today but android.git.kernel.org is STILL DOWN. Since the instructions I have require it I guess I'll wait for someone who already has the sources or until android.git.kernel.org comes back (I'm starting to wonder if it ever will).
-xdadevelopers-user
This is ****ing GENIUS work! Good job man. Pioneering for our amaze!
Not sure what I might be doing wrong but my su disappears after a reboot.
Try pushing to both xbin and bin
Sent from my HTC Sensation Z710e using xda premium
I did... No dice.
can you guys tell me what phone says when rebooting into hboot when its searching for a .zip, .nbh etc
its something like this
Example Sensation): PG58IMG.zip
It's not working for me.
C:\Users\Administrator\Desktop>adb push zergRush /data/local/
20 KB/s (21215 bytes in 1.000s)
C:\Users\Administrator\Desktop>adb shell
$ chmod 755 /data/local/zergRush
chmod 755 /data/local/zergRush
$ /data/local/zergRush
/data/local/zergRush
[**] Zerg rush - Android 2.2/2.3 local root
[**] (C) 2011 Revolutionary. All rights reserved.
[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.
[-] Cannot copy boomsh.: Permission denied
$
Click to expand...
Click to collapse
EDIT
I removed the files in the tmp directory and it worked!
BUT
It's not consistent. When I reboot the su file disappears.
I've unlocked my bootloader. This may be required. Can anyone confirm that this works/fails on a locked bootloader?
-xdadevelopers-user
Finally, you sir are a genius
Sent from my HTC_Amaze_4G using Tapatalk
xdadevelopers-user said:
I've unlocked my bootloader. This may be required. Can anyone confirm that this works/fails on a locked bootloader?
-xdadevelopers-user
Click to expand...
Click to collapse
I'm on a locked bootloader. It doesn't work.
cmenard said:
I'm on a locked bootloader. It doesn't work.
Click to expand...
Click to collapse
Confirmed, same result for me on a locked bootloader. On reboot, it all goes away (or comes back).

Can I Re-Root using Terminal Emulator?

Hi im using the lgp-769 v10g T-Mobile and i was rooted on this phone but i lost root and now in system xbin i have a file named su.old, i explored this using file browser, i found that i can access this file using terminal emulator which changes the $ sign to #. I accessed it via /system/xbin/su.old... anyways I'm wondering if there is anyway i can use this and terminal emulator to regain root? I also have busybox and kbox2 working in terminal without root if that even matters... can someone kindly point me in the right direction, it would be most appreciated. Thank you all.
Sent from my LG-P769 using XDA Premium 4 mobile app
DarksiderzSK4G said:
Hi im using the lgp-769 v10g T-Mobile and i was rooted on this phone but i lost root and now in system xbin i have a file named su.old, i explored this using file browser, i found that i can access this file using terminal emulator which changes the $ sign to #. I accessed it via /system/xbin/su.old... anyways I'm wondering if there is anyway i can use this and terminal emulator to regain root? I also have busybox and kbox2 working in terminal without root if that even matters... can someone kindly point me in the right direction, it would be most appreciated. Thank you all.
Sent from my LG-P769 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
When your have root (#) try this
Code:
cp /system/xbin/su.old /system/bin/su
chmod 644 /system/bin/su
or try
Code:
mv su.old su
Here is screenshot of the results of your suggestions. What should i do now?
Sent from my LG-P769 using XDA Premium 4 mobile app
Well it says cross device link using mv and it says can't create su and. something about can't stat system/bin/su cant chmod644
Sent from my LG-P769 using XDA Premium 4 mobile app
I ended up getting it to re-root using a few commands in terminal emulator if anyone is still stuck after OTA look into using terminal emulator
Sent from my LG-P769 using XDA Premium 4 mobile app
Hi can I root moto g4 with terminal emulator (first time doing it)

Categories

Resources