[CM10.1]SSHd doesn't execute binaries correctly (that work properly with adb shell) - Galaxy S III Q&A, Help & Troubleshooting

Hallo,
i've noticed that when spawning some binaries with (CM10.1 built-in) SSHd they don't work properly. I've tried 'bash' and 'sh' as shell. The same command works properly when executed by adb shell.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Code:
sqlite3 /data/data/com.android.browser/databases/browser2.db
Anyone else having these issues or know how to fix that?

Same if you cd to /system/xbin?
Sent from my GT-I9300 using Tapatalk 4 Beta

I couldn't test it yet but there is very likely no other sqlite3 binary than that in xbin. It's also in the path ('which sqlite3'). I guess it has something to do with dependencies. SSHd was completely broken for months (segfault). It was just fixed some weeks ago in CM10.1. Maybe not completely.
It's a shame. Most useful tool ever. Auto completion and colors are not supported with adb shell.
I also tried some dropbear binaries but they don't work at all (segfault).

Related

Terminal strangeness and HAVS config

Trying to configure HAVS voltages on my kernel (HTC Evo). Voltage apps function just fine, but I'm trying to push custom voltages using an init.d script (the way viperMOD does -- which also works). Only, my solution isn't.
At first I ran the script from the terminal and it claimed the file vdd_levels_havs doesn't exist (when it clearly does -- I can browse to and view the file). I tried just slipping the file into init.d, rebooting and having it run from there. No voltage change whatsoever. I'm sure it's in the right place -- I'm not Linux noob.
After rebooting, I tried running the file directly again, and strangely it claims the script itself doesn't even exist, when ls clearly says it's right there.
Here's a screen of the weirdness:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What the hell is going on?

[Q] Operation not permitted

I've been trying to restore root to my phone after updating to leaked JB with no luck. I unfortunately forgot to update the su binaries before making a backup so Voodoo is no help. I took a look at Matt's script and ran it trying to get it to work and it installed superSU, but I still don't have root access with it on there. Still tells me permission denied when I do "su" in terminal emulator.
So, I took a look at the script and ran the commands line for line to see what was going on and this is what I get:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Any help would be appreciated as i've been asking this in a couple places and getting ignored.
Alright so I checked permissions on the su-backup and determined that it looks like he's trying to use setuid to inherit permissions. I finally got it working anyway. If they haven't fixed this issue in the first place then couldn't you just do what the original rage against the cage exploit did?

[Q] Pulling off Bootloader files

Good day!
My android phone is Alcatel OT-978, Gingerbread 2.3.7. After days of extensive research, I really couldn't find a way to root my phone. I had tried each of these methods but they all failed:
- z4root;
-super oneclick;
-gingerbreak;
-zergrush;
-psneuter;
I had stumbled upon some random post on the net saying that another workaround is by "hacking" the bootloader. Using ADB, I had these files on my phone:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My problem is, I can't use the command adb pull on the concerned mtdblock. Every time I use the mentioned command, RE: adb pull /dev/block/mtdblock4 c:\users\ash^03\desktop\system.img, i get the result REMOTE OBJECT '/DEV/BLOCK/MTDBLOCK4' NOT A FILE OR DIRECTORY
Can somebody help me on this. I really need to "hack" or have somebody root my bootloader for me to be able to gain a full root on my device.
BTW, when i type "adb root", it says 'adb cannot run as root in production builds."

[BOOTANIMATION]Doge (with instructions)

Hey there.
You probably know the doge meme.
Some of you may find it funny, some not, well, what I'm presenting you today is a doge-themed bootanimation.
Preview: (originally 2fps)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Stops on the last frame as the original animation.
Instructions: (if you need them)
boot your phone into recovery
Mounts and Storage -> Mount /system/
connect it to your computer
push it with adb (must be in the same folder with cmd)
Code:
adb push hTC_bootup.zip /system/customize/resource/hTC_bootup.zip
chmod it
Code:
adb shell
chmod 644 /system/customize/resource/hTC_bootup.zip
reboot (while still in adb shell)
Code:
reboot
Enjoy or whatever.
This is the best I have ever seen XD
This is brilliant xD
hahaha, gonna flash it
can i also just use this at my samsung galaxy sIII i9300?,

Help me modify kernel commandline in my Samsung A105G to boot non-Android OS

I'm trying to boot non-Android OS in my Samsung A105G. preferably Debian-based.
I tried stopping android and do chroot to a extracted rootfs that I put at /data/debian, generated by using Debootstrap in my Ubuntu host.
chroot complains that /bin/sh is not exist when it is actually there. after a bit of google research, I found that the debian binaries dont work with Android because of libc stuff (bionic vs libc?).
so after that, I have a different idea. what if I put a debootstrap generated rootfs in some ext4 formatted partition, and tell the kernel to boot from it.
I need to modify this commandline that i highlighted, to be able to use any partition i want
Code:
root=/dev/mmcblk0pX
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How can I achieve that?

Categories

Resources