what caused a shell log not running error? - Essential Phone Questions & Answers

I don't know, this used to work.

avd said:
I don't know, this used to work.
Click to expand...
Click to collapse
I will assume your rooted...
There is a magisk module that uses the iptables command to force Google's DNS to be used by your phone...
In the magisk repo
Sent from my PH-1 using Tapatalk

Related

'cp' command missing after perma-root

I was trying to make a backup of my build.prop via terminal, but after su, I get a
"cp: not found" error. Anyone else getting this? Anyone know how to fix?
I asked in the permaroot thread but no response... I guess you can just use root explorer to find and copy that file to wherever you wanted to place it?
Eh. I don't want another app that I shouldn't need. I would resort to that for now, but I don't know of a free root explorer app... suggestions?
Try:
Code:
sudo bash
cp
didn't work
From $ that returns "sudo: permission denied"
From # it returns "sudo: not found"
Sent from my T-Mobile G2 using Tapatalk
its not working for me either... i wonder why
Super manager works great is free on market.
sent from MY rooted HTC Vision, not t-mobiles G2
Works fine on mine...
anyone know why we are getting this cp not found error?
EdTeach1680 said:
Super manager works great is free on market.
sent from MY rooted HTC Vision, not t-mobiles G2
Click to expand...
Click to collapse
Great alternative till this gets fixed. Thanks! FYI for others that may use this, you have to enable root permissions in the option menu.
Sent from my T-Mobile G2 using Tapatalk
franky1029 said:
I was trying to make a backup of my build.prop via terminal, but after su, I get a
"cp: not found" error. Anyone else getting this? Anyone know how to fix?
Click to expand...
Click to collapse
figured it out, I installed busybox and it granted me cp access
franky1029 said:
From $ that returns "sudo: permission denied"
From # it returns "sudo: not found"
Sent from my T-Mobile G2 using Tapatalk
Click to expand...
Click to collapse
Once you're at # don't use sudo.
WarBird87 said:
figured it out, I installed busybox and it granted me cp access
Click to expand...
Click to collapse
i downloaded busybox but still no cp
I just rooted my phone using rage instead of visionary from this thread:
http://forum.xda-developers.com/showthread.php?t=834228
I get cp access just fine.
joebobjoe said:
Once you're at # don't use sudo.
Click to expand...
Click to collapse
Just use su to get to #.
ThaGeNeCySt said:
i downloaded busybox but still no cp
Click to expand...
Click to collapse
When you open the app did you install the latest version of busybox?
Download busybox from market then install within the program and you are golden!
Naimand said:
Download busybox from market then install within the program and you are golden!
Click to expand...
Click to collapse
Didn't work for me either. I'm debating unrooting and going the rage way to permaroot.
worked for me after installing busybox

tun.ko needed

Hello, anyone compiled a tun.ko module for the arc kernel yet? This is needed in order to use openVPN. I got my bootloader unlocked, phone rooted, busybox installed, and now am just waiting on a tun.ko file to get things rolling
Once I get toolchain environment setup on my Mac this should be easily done. Will see if I can find time tomorrow.
Sent from my R800i using XDA Premium App
I have one for Japanese version of arc, which was built against so-01c_gingerbread_3.0.D.2.79.tar.gz, working fine though, I guess the kernel version is different for you?
moperi said:
I have one for Japanese version of arc, which was built against so-01c_gingerbread_3.0.D.2.79.tar.gz, working fine though, I guess the kernel version is different for you?
Click to expand...
Click to collapse
May be easy modified to work, if you can upload it?
Sent from my R800i using XDA Premium App
http://www.megaupload.com/?d=94XITOV3
HTH,
http://www.megaupload.com/?d=94XITOV3
HTH,
Ok I will have a look at it
Sent from my R800i using XDA Premium App
OK, tested this tun.ko. You should be good to go, and use it.
To use:
adb push tun.ko /sdcard/
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
# cp /sdcard/tun.ko /system/lib/modules/
# chmod 644 /system/lib/modules/tun.ko
# rm/sdcard/tun.ko
# sync
# exit
$ exit
Thanks for all your help, got everything installed right (I think) but still can't get a tunnel working... Does the xperia arc kernel support tun? Either that or I have still got something wrong here...
paxophile said:
Thanks for all your help, got everything installed right (I think) but still can't get a tunnel working... Does the xperia arc kernel support tun? Either that or I have still got something wrong here...
Click to expand...
Click to collapse
It works. But openvpn has some issues. You need the static version. Google for openvpn-static.
You also need busybox in system/xbin and a symlink from system/xbin/bb to system/xbin.
Google again will help you.
Sent from my R800i using XDA Premium App
I have installed OpenVPN Installer and OpenVPN Settings from the market and created symlinks of ifconfig and route from busybox at /system/xbin/bb. it works except DNS settings. need to go to the preference by long-pressing the configuration and check on "Use VPN DNS Server" and add an IP address at "VPN DNS Server" explicitly.

Cant reboot via terminal.

Hey gius Im trying to reboot via terminal but I cant seem to get it to work. Keep getting "Nor premited!" error.
I tried with both commands and am using a rooted G2 with stock rom.
su reboot - same error
su reboot now- same error.
any ideas? I know there are apps to do it but why is it not working via terminal?
Any reason why you can't just hold the button in and press reboot?
$ su -
# shutdown -r now
it shoulda outta do it then
for just turning off:
# shutdown -h now
ohgood said:
$ su -
# shutdown -r now
it shoulda outta do it then
for just turning off:
# shutdown -h now
Click to expand...
Click to collapse
Hmm Tried that right now and it says shutdown: not found.
I'm getting the same error! I only tried terminal when Gscript Lite gave me a "not permited". Don't know if it's related, but terminal always starts with $ rather than #. The weirdest part is that it DID work through ADB.
I'm S-OFF, root verified. Has anyone else seen this? I've been searching the forums for a while now...
Try
$ su
# busybox killall system_server
Sent from my HTC Vision using Tapatalk
I get busybox: not found, but since I initially thought it was a busybox issue, I have already updated busybox. Per Titanium Backup, I have version 1.18.4-Titanium. Could it be the titanium busybox?
PanCubano said:
Try
$ su
# busybox killall system_server
Sent from my HTC Vision using Tapatalk
Click to expand...
Click to collapse
Having a similar problem with rebooting from terminal "not permitted", I am using Virtuous Unity,and my phone is rooted etc,anybody having any joy getting reboot from terminal working?double checked busybox permissions and are RWX so whats going on???????????????????
Ok restored my nandroid backup of CM7 and reboot from terminal works so for the problem is connected to Virtuous Unity.
got it ! command is:
$su
#reboot -f
hay presto!!!!!!!
EDIT BUT when using a gscripts reboot doesnt work???????????
I have to use the command busybox killall system_server in the script????
I dont get it,what is the problem !!!!!!!!!!!!!!!!
xsteven77x said:
Any reason why you can't just hold the button in and press reboot?
Click to expand...
Click to collapse
This.
Sent from Space using Tapatalk Pro
I know I could, just trying to understand the android system,how it works and why the reboot command works on CM 7 but not on Virtuous Unity, the search for a solution continues...........................
bombadier said:
I know I could, just trying to understand the android system,how it works and why the reboot command works on CM 7 but not on Virtuous Unity, the search for a solution continues...........................
Click to expand...
Click to collapse
I had the same problem on rooted stock, and it has since gone away since I put on CM7. The reason is that it is not just reboot that didn't work. Almost no scripts would run either, and those can be quite helpful. I believe it's a symptom of something larger, but I can't quite place my finger on what.
mjasmin said:
I had the same problem on rooted stock, and it has since gone away since I put on CM7. The reason is that it is not just reboot that didn't work. Almost no scripts would run either, and those can be quite helpful. I believe it's a symptom of something larger, but I can't quite place my finger on what.
Click to expand...
Click to collapse
I can get reboot -f which works but I have to use busybox killall_server to get it work from a script,have tried a few things but literature on the subject is pretty sparse,its not so important but would still like to understand the whole process, but I seem to be in the minority trying to solve this.......
Why I have to use reboot -f on Unity where reboot will do on CM is a mystery,have found a file that seems to define functions on Unity(virtuous-functions.sh), have tried adding REBOOT="$BUSYBOX reboot" to this but doesn't help.
reboot -f it is then!

[ROOT] Disable Automatic Update (OTA) New Kindles

This Method disable ota services.
steps:
-Decompress the attached file
-Execute the following commands:
<important>Please look the screen for superuser permission grant.
Code:
adb push disable_ota_for_kindle.sh /data/local/tmp/
adb shell "su -c 'chmod 777 /data/local/tmp/disable_ota_for_kindle.sh'"
adb shell "su -c '/data/local/tmp/disable_ota_for_kindle.sh'"
adb shell "rm /data/local/tmp/disable_ota_for_kindle.sh"
Tested in a Kindle Fire 2 (10.2.3_user_2313820
julionadal said:
This Method disable ota services.
steps:
-Decompress the attached file
-Execute the following commands:
<important>Please look the screen for superuser permission grant.
Code:
adb push disable_ota_for_kindle.sh /data/local/tmp/
adb shell "su -c 'chmod 777 /data/local/tmp/disable_ota_for_kindle.sh'"
adb shell "su -c '/data/local/tmp/disable_ota_for_kindle.sh'"
adb shell "rm /data/local/tmp/disable_ota_for_kindle.sh"
Tested in a Kindle Fire 2 (10.2.3_user_2313820
Click to expand...
Click to collapse
Guessing this can only be confirmed at the time of the next update for me. Currently running 7.2.2 on KFHD.
Will download and give it a go.
Thanks.
Droidwall is a good solution for this too. You can block all Apps for using the Internet connection to call "home"
This script looks to disable all OTA services. Would that not included whispersync, the personal documents service etc? it is possible that blocking all of these services may have undesired consequences to folks who value those services. That said, thanks for developing this script.
Can you provide more details on how to disable OTAs using Droidwall? I downloaded the application but I am not sure which applications I need to block or how to configure.
Sent from my KFTT using xda premium
Should I disable the system app in the center of the screenshot? Will it lock up the device if I do so?
Sent from my KFTT using xda premium
ameswilliam said:
Should I disable the system app in the center of the screenshot? Will it lock up the device if I do so?
Sent from my KFTT using xda premium
Click to expand...
Click to collapse
I installed DroidWall and blacklist all amazon apps, but it still update to 7.2.2 version. I doubt DroidWall can off OTA update
Did you blacklist the 10000. System file seen in the attachment?
Sent from my SPH-L710 using xda premium
Ok, so I used the OP's .SH file, and then read a bit further on this thread and realized his code would disable whispersync too.
Is there any way to reverse his code? I tried to go into his code and change the word "disable" to "enable" but the file would not execute anymore. I have no idea why. I did not change the file name, but ADB keeps telling me "no such file or directory"
Can anyone please help? I'm using Fire HD 8.9 ver. 8.1.3
After i reverse the code, I will just use droidwall
Thanks for your help.
pullmyfinger123 said:
Ok, so I used the OP's .SH file, and then read a bit further on this thread and realized his code would disable whispersync too.
Is there any way to reverse his code? I tried to go into his code and change the word "disable" to "enable" but the file would not execute anymore. I have no idea why. I did not change the file name, but ADB keeps telling me "no such file or directory"
Can anyone please help? I'm using Fire HD 8.9 ver. 8.1.3
After i reverse the code, I will just use droidwall
Thanks for your help.
Click to expand...
Click to collapse
Try running each command with ADB.
I'm not familiar with the disable 'pm' command but know that services can be enabled/disabled via titanium backup. Dont know if this is the same function but you could install it and give it a go.
bryanchapman9999 said:
Try running each command with ADB.
I'm not familiar with the disable 'pm' command but know that services can be enabled/disabled via titanium backup. Dont know if this is the same function but you could install it and give it a go.
Click to expand...
Click to collapse
Yea I dont see any service that's already frozen using Titanium Backup. Can anyone else who knows what this guy's code did help me reverse it? Thanks.
This is his code:
#!/system/bin/sh
pm disable "com.amazon.dcp/.ota.OTAUpdateMessageHandler"
pm disable "com.amazon.dcp/.ota.InventoryUploadService"
pm disable "com.amazon.dcp/.ota.UpdatesLookupService"
pm disable "com.amazon.dcp/.ota.OTAService"
pm disable "com.amazon.dcp/.ota.AppStateMonitorService"
pm disable "com.amazon.dcp/.ota.CheckForOTAUpdatesService"
pm disable "com.amazon.dcp/.ota.ViewUpdateActivity"
pm disable "com.amazon.dcp/.ota.OTAStatusActivity"
pm disable "com.amazon.dcp/.ota.ResetOTAMessageHandler"
pm disable "com.amazon.dcp/.ota.InventoryUploadService$InventoryUploadReceiver"
pm disable "com.amazon.dcp/.ota.UpdatesLookupService$MountStatusChangedReceiver"
pm disable "com.amazon.dcp/.ota.OTAService$OTAWakeupReceiver"
pm disable "com.amazon.dcp/.ota.OTAService$OTADedupeReceiver"
pm disable "com.amazon.dcp/.ota.OTAService$OTAInstallNowReceiver"
Disable OTA Updates - Kindle Fire 7" HD
Very well thought out script.
On my Kindle Fire 7" HD all I did was moved /system/ect/security/otacerts.zip to /sdcard/download - Reboot the Kindle.
So far no updates, still on 7.2.2
Thanks!
thanks Bro for sharing.just wanted to feedback after doing these procedures.my kindle fire HD 7" is not updating anymore.i give it two thumbsup!now i still have the same build 7.2.2 for almost more than a month even if Amazon has the newest build 7.2.3 thanks alot.it really helps
Thanks for the script. Looks like it worked ok for me...Just wondering about the whisper sync deal? Does it still work"
Whisper Sync Disabled
ninjabeaver said:
Thanks for the script. Looks like it worked ok for me...Just wondering about the whisper sync deal? Does it still work"
Click to expand...
Click to collapse
ninjabeaver,
This script does disable Whisper Sync which is why we had our developers redesign a scipt to remove the OTA Services
only. Here is the less aggressive version:
http://forum.xda-developers.com/showthread.php?t=2086450
when we developed the attached script we were very careful to only effect OTA and no other services. We also wrote
an enable script for the people who need to send back there Kindles for repair.
Right on thanks..I hadn't seen that thread before.
Sent from my KFTT using Tapatalk HD
prokennexusa said:
Very well thought out script.
On my Kindle Fire 7" HD all I did was moved /system/ect/security/otacerts.zip to /sdcard/download - Reboot the Kindle.
So far no updates, still on 7.2.2
Click to expand...
Click to collapse
Hows it going, did you just move otacerts.zip and not block it tru droidwall?
prokennexusa said:
ninjabeaver,
This script does disable Whisper Sync which is why we had our developers redesign a scipt to remove the OTA Services
only. Here is the less aggressive version:
http://forum.xda-developers.com/showthread.php?t=2086450
when we developed the attached script we were very careful to only effect OTA and no other services. We also wrote
an enable script for the people who need to send back there Kindles for repair.
Click to expand...
Click to collapse
If I had used this script on my KF2 but now have installed TWRP and installed new ROM, would I need to run this again ?
Does this script prevent syncing with google play?
I rooted my kindle fire 2 and I ran this script. I uploaded songs onto google play music, but i'm unable to find songs I'd uploaded to the site.
Is it because of this script that google play is unable to sync with my kindle?
Thanks
julionadal said:
This Method disable ota services.
steps:
-Decompress the attached file
-Execute the following commands:
<important>Please look the screen for superuser permission grant.
Code:
adb push disable_ota_for_kindle.sh /data/local/tmp/
adb shell "su -c 'chmod 777 /data/local/tmp/disable_ota_for_kindle.sh'"
adb shell "su -c '/data/local/tmp/disable_ota_for_kindle.sh'"
adb shell "rm /data/local/tmp/disable_ota_for_kindle.sh"
Tested in a Kindle Fire 2 (10.2.3_user_2313820
Click to expand...
Click to collapse
Good afternoon:
Is it possible to provide this service in an APK?
This would allow the user to simply install the APK and then select enable or disable OTA as required?
The User would not have to know anything about ADB and related commands.
If I knew how to create APK apps I would give it a try.
Regards

How to enable android pay with root

So I'm rooted on stock 2.66 what's the modifications I could make to enable it?
Sent from my Nexus 6P using Tapatalk
TechMillz93 said:
So I'm rooted on stock 2.66 what's the modifications I could make to enable it?
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
This has been discussed quite a bit in the last few pages of my guide thread. Apparently 2.66 doesn't play ball with Android Pay, try 2.61 instead.
TechMillz93 said:
So I'm rooted on stock 2.66 what's the modifications I could make to enable it?
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
I am using 2.66 and have Pay working. However after flashing the beta and booting I used
adb shell
su
rm -f -r /su/xbin_bind
Rebooted, and pay then worked.
dratsablive said:
I am using 2.66 and have Pay working. However after flashing the beta and booting I used
adb shell
su
rm -f -r /su/xbin_bind
Rebooted, and pay then worked.
Click to expand...
Click to collapse
Don't understand how did u apply adb shell?
Sent from my Nexus 6P using Tapatalk
TechMillz93 said:
Don't understand how did u apply adb shell?
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Assuming you have the latest Android SDK installed, and have USB Debugging enabled in developer options (on phone.) plug phone into PC.
Open Terminal
adb devices (To make sure it sees your device.)
if device is found
then
adb shell
$su
#rm -f -r /su/xbin_bind
#exit
$exit
dratsablive said:
Assuming you have the latest Android SDK installed, and have USB Debugging enabled in developer options (on phone.) plug phone into PC.
Open Terminal
adb devices (To make sure it sees your device.)
if device is found
then
adb shell
$su
#rm -f -r /su/xbin_bind
#exit
$exit
Click to expand...
Click to collapse
So simply just flash those statements? Thanks!
Sent from my Nexus 6P using Tapatalk
TechMillz93 said:
So simply just flash those statements? Thanks!
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
It worked for me. You should also be able to use the terminal from TWRP if you have that installed.
dratsablive said:
Assuming you have the latest Android SDK installed, and have USB Debugging enabled in developer options (on phone.) plug phone into PC.
Open Terminal
adb devices (To make sure it sees your device.)
if device is found
then
adb shell
$su
#rm -f -r /su/xbin_bind
#exit
$exit
Click to expand...
Click to collapse
so when i put ADB devices, it cant find my device.
ive always used the pc, am i doing something wrong?
*edit - i tried it with cmd on the pc and rebooted but android pay still doesnt let me add a card
Didn't work for me either, bummer =/
Check the other threads covered much more in depth and useful
Try this. AP always works for me this way.
Step 1 Flash UPDATE-unSU.zip http://forum.xda-developers.com/showpost.php?p=63615067&postcount=2459
Step 2 Flash SuperSU 2.61 https://download.chainfire.eu/746/SuperSU/BETA-SuperSU-v2.61-20151207213702.zip
When you reboot make sure you select "Do not install" when TWRP offers to install root.

Categories

Resources