Hi all...when in adb shell I can't seem to access certain commands without a segmentation fault occuring.
Specifically:
ls
chmod
and I'm sure there are others.
Running
Droid 1 - Motorola
CyanogenMod v6 (latest stable release)
Android SDK on my PC
I am trying to get busybox installed. I have it copied into /data/local and can CD to that directory but cannot chmod the file to 755 perms nor can I do an ls.
I opened the terminal emulator in this ROM and I have the same problem too. So...not likely an issue with ADB.
I've made it this far and am most decidedly STUCK. Done a lot of hunting and can't find anywhere anyone has run into this. Any help appreciated.
i have. did you lose root? thats why mine says it. i was unrooted and now my permission are only read only so i dont think i can get root back.
Hello guys,
So, I am extremely frustrated with LG. Besides linger for a lifetime upgrade their phones, yet it seems to create some blocking to simple process root.
I've been researching on the web about the root of Optimus Black (the unit is good, what is bad is the LG) and all processes seem to be complicated.
I need help from you guys to see if I can finally give this blessed root to my device. He is with version 2.3.4 (just the model is P970h),the firmware is the V20a. I Want to apply a custom rom and play with it a bit, since LG has not given up any indicative of whether or not to launch the ICS on it (maybe who knows when Google launched Android 12.1, or the man get to Mars. ..)
I have faced some problems and I will report here to see if they can help me.
Problem # 1:
I can not under any circumstances recognize the phone on my pc (win vista home basic ¬ ¬).
I've tried everything. I downloaded the drivers directly with LG and nothing ... I downloaded the personnel that provided the xda forum and nothing ...The windows is insistently asking such a CDC serial driver (something of the sort ...) and the phone just not recognized.
Already installed, reinstalled the drivers and nothing! I have installed the LG PC sync and nothing to .. (Seems that my phone and my pc just does not want to share the same connection!)
I don´t have another pc (unfortunately) so I can´t install the drivers.
Simply for this reason I can´t install Clockworkmod, or do any procedure that requires root install drivers on pc (root unlock, blackjack, oneclick...)
2nd Problem:
I've been reading that there is a apk root tools for the phone, the Gingerbreak. But apparently this not works on my phone. It is infinitely loading and does not reboot.
I installed the 1.1 and 1.2 versions and nothing!
I run the Root Checker Pro App and get the log:
Root Access is not properly configured or was not granted.
Super User Applications Status:
Superuser application - version 3.1.3 - is installed!
SuperSU application - is NOT installed.
The SuperSU application is an alternative application for managing root access.
System File Properties for Root Access:
Standard Location
Check Command: ls -l /system/bin/su:
Result: -rwsr-xr-x shell shell 0 2012-08-29 23:49 su
Analysis: Setuid attribute present BUT root user ownership NOT present. Root access is NOT correctly configured for this file!
Standard Location
Check Command: ls -l /system/xbin/su:
Result: /system/xbin/su: No such file or directory
Analysis: File /system/xbin/su does not exist.
Alternative Location
Check Command: ls -l /system/xbin/sudo:
Result: /system/xbin/sudo: No such file or directory
Analysis: File /system/xbin/sudo does not exist.
Alternative Location
Check Command: ls -l /sbin/su:
Result: /sbin/su: Permission denied
Analysis: File system permissions restricted and denied access.
Root User ID and Group ID Status:
SU binary not found or not operating properly
System Environment PATH: /sbin /vendor/bin /system/sbin /system/bin /system/xbin
ADB Shell Default User:
ADB shell setting for standard access, stored in default.prop, is configured as: shell (non root) user - ro.secure=1
Results provided on your LG-P970h device by Root Checker Pro version 1.2.8 from joeykrim in the Android Market
Click to expand...
Click to collapse
So can anybody help me to root my phone??
Don't have an LG, i have an Samsung and rooted with this app SuperOneClick (http://forum.xda-developers.com/showthread.php?t=803682), and searching through the forum i saw this thread ( http://forum.xda-developers.com/showthread.php?p=22495442&highlight=optimus+black#post22495442 ), a user that succeeded root of an Lg Optimus Black.
But I only have an Samsung so I can't guarantee that will work.
Hope to have helped.
Best regards!
Wo retusou
pjm_9 said:
Don't have an LG, i have an Samsung and rooted with this app SuperOneClick (http://forum.xda-developers.com/showthread.php?t=803682), and searching through the forum i saw this thread ( http://forum.xda-developers.com/showthread.php?p=22495442&highlight=optimus+black#post22495442 ), a user that succeeded root of an Lg Optimus Black.
But I only have an Samsung so I can't guarantee that will work.
Hope to have helped.
Best regards!
Click to expand...
Click to collapse
So,
I can´t connect my phone to my pc... I don´t know why!!
Anyone can help me?
Sent from my GT-P6800 using xda app-developers app
Here's what I did.
I was having the same problem, seemingly. I went to Android Central and learned about an app called kingo root.
First, I went to LG and downloaded the drivers for USB connection to my Win7 64 PC. After they loaded, I made sure the E980 was configured to install programs from PC via USB, instead of charge only. Also, I set debugging on. Then, I hooked up the USB cable. Then, a window came up asking if I wanted to use LG Programs, which I replied OK. Then it said I was connected successfully. Went to the PC, installed kingo root (google it) and it ran a program or two that rooted the device. Piece o' cake!
Since then, I downloaded freegee and twrp, rebooted into recovery and installed CM11. KitKat goodness!
Ken
I found a world wide write vulnerability in a new model of Huawei. (Android 4.4.2)
And successfully write a path "/data/local/tmp/exploit.sh" to /sys/kernel/uevent_helper
Here is the problem, after I write the path to uevent_helper,nothing happened.
I mean,the device should run "/data/local/tmp/exploit.sh" ,but it didn't.
I've tried toggle bluetooth,wifi etc. still nothing happened.
I'm sure I didn't miss the "chmod 777 /data/local/tmp/exploit.sh" part.
did I miss something or the uevent_helper trick just dosen't work in Android 4.4.2 now ?
hello,
i'm new here (i'm french so i hope you could understand - and solve - my problem).
First of all, so great thanks for Graveen. His post help me to install the Play Store in my THBK1 (link to post : http://forum.xda-developers.com/showthread.php?t=2799404). I'm not a genious in hack and i understand computers just as well hieroglyph. So, Graveen, lot of thanks !
I just have a problem in rooting. I follow all the steps but, finally, my THBK1 is still not rooted yet (confirm by Root Checker).
The code is :
chmod 755 /mnt/system/bin/su
chmod u+s /mnt/system/bin/su
ln -s /mnt/system/bin/su /mnt/system/xbin/su
sync
So, what's wrong ?
I think there is a mistake somewhere. After several hours on net, i think i find the origin of my problem.
If the linux ls command in /mnt/system/xbin/su returns the good date of changing link (for me August 11th 2014), Robot Explorer returns January 01 1970 !!!
I read in a wiki linux that symbolic links are not updated. They must be remove first and recreated after.
I'm not a pro. So, if anyone could give me if this thing is the thing to do (give me the code please).
Thanks for your help
Detect an error in command but no rooted yet
After hours on searchs, i thought i had found the solution.
The problem fix in “ln” command.
There is : ln –s /mnt/system/bin/su /mnt/system/xbin/su
The good command is : ln –s system/bin/su /mnt/system/xbin/su
So I did. But verified by Root Checker, my system is not rooted. Damned !:crying:
I have this status in Id status : uid=10071(u0_a71) gid=10071(u0_a71) groups=1028(sdcard_r),3003(inet),50071(all_a71)
In Root Browser, I have this status for /system/bin/su : rwsr-sr-x and this status for /system/xbin/su : rwxrwxrwx.
Something is wrong ?
If I was root, my Id status should be uid(u0) gid (u0), no?
So, how could I do to gain root permissions ?
Thanks for reply.
Root THBK1 solved !
Hello,
After severals hours in search and some advices in another forum, i found why my root does not already match.
I don't know before that the "su" files match only with the application from which comes.
This "su" files needs the application named SuperUser v1.0.3.
So i did. When it works.:victory::victory:
This thread is made in an effort to root the ZTE Grand X 4 (Z957). At this point I've made some progress by using the Dirty Cow exploit to access a root shell via ADB, but have been unable to install su to the system partition.
Notes: stock rom, no custom recovery.
Exploit method:
Follow the instructions posted by Arinerron on GitHub regarding CVE-2016-5195 (under 10 posts, cannot share direct link)
When successful you will see "[email protected]:/ #" as your shell prompt, however the session will hang after any command. That said, /system/run-as is still updated allowing you to do the following:
$ adb shell
[email protected]:/ $ run-as
uid run-as 2000
uid 0
0 u:r:runas:s0
context 0 u:r:shell:s0
[email protected]:/ # id
uid=0(root) gid=0(root) groups=0(root),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0
you have access to the android system as root within this shell, but this is where I'm getting stuck. I'm not able to find a way to mount the system partition as read/write, and as such unable to install su. Also note that you will need to run the exploit again anytime you reboot the device. I have tried the following methods:
$ adb shell cp /sdcard/Download/su /system/bin/su
cp: /system/bin/su: Read-only file system
[email protected]:/ # mount -o rw,remount /system
mount: Permission denied
adb reboot disemmcwp
#still unable to remount the system partition
At this point I'll share what I've been able to do so far and see if anyone else has ideas for a next step.
Have you figured out how to root the z957.
This worked on my ZTE GrandX Max Plus to permanently disable the write protection on the system partition.
Good luck!!
reboot disemmcwp
If you ever want to re-enable being blocked from mounting system rw:
reboot emmcwpenab
Any luck on this root? I am looking to buy a phone on Cricket, but I need one that I can root.
Bump? Would love to see root here!
Bump, I've tried but I also get stuck on the same three methods:
$ adb shell cp /sdcard/Download/su /system/bin/su
cp: /system/bin/su: Read-only file system
[email protected]:/ # mount -o rw,remount /system
mount: Permission denied
adb reboot disemmcwp
#still unable to remount the system partition
Grand X 4
has anyone successfully rooted the grand x ?!
Thought I would post an update: Still no success on my end.
"Rooting" is easy, but breaking out of the selinux context to do anything is hard. ie. I expanded on timwr/CVE-2016-5195 by trying to use vikiroot to break out of the u:r:shell:s0 context. To do this adb push the vikiroot exploit to /data/local/tmp and then use the timwr method to run that exploit as root:
[email protected]:/ # /data/local/tmp/exploit
Unfortunately I could only get the reverse shell to work as a glorified echo. If anyone knows where I could find some c++ code for running a shell in android for me to work off of I'm willing to see how much further I can get in that direction.
As disemmcwp doesn't work I'm wondering if ZTE found a different way to lock down the system partition? Interestingly there is an OEM-specific settings button that is greyed out (find it at *#*#4636#*#*).
I'm running firmware from Wind/Freedom Mobile so I can access the bootloader and unlock it, but I can't install SU or anything from stock. Additionally, there is no TWRP released for this phone yet. I have no idea where to find the board config files for this phone. Without a custom bootloader I'm not sure how to make permanent changes to the rom at this point.
Thanks for your work on this. Stock Rom is pretty clean, but root would be great on this.
I've tried many different ways to root this phone. For weeks, I've tried. Nothing. I personally think that there is no way to, not now at least.
Don't know if this will help but, I found that they lock the bootloader under the developer settings!
Has anyone tried a one click root application like KingoRoot ?
Or is this more for doing it on your own without a service like that?
Previously I had tried a series of one click solutions but I haven't found any that support this device yet. Typically they use the same exploits we've tried to use the hard way
After slacking for awhile I was finally able to poke around some of the internals of the phone in FTM mode using qualcomm developer tools. Lots of nifty things in the embedded file system and plenty of opportunities to flash new boot loaders and roms to the device for those of you who have a locked bootloader, but unfortunately I haven't been able to extract a copy of the stock rom or bootloaders. I'm still lacking the information I need to compile a new one for the phone.
Where I stand:
Can create a root shell, cannot remount system as read/write for permanent root in stock rom.
Can install new boot loader, no twrp or other found for this hardware.
Can compile new twrp, no boardconfig files (handy to avoid bricking your phone)
Can explore EFS and access chip via FTM, not sure how or if possible to download current rom / bootloader from here.
Happy for any tips on what to try next!
Can you tell me which tools you used? I looked at the Qualcomm site and there are plenty to choose from.
If you can get those tools off of the site maybe I'll message you about grabbing a few items on my Christmas list! QPST includes the tools necessary, and the tools to backup the 425 should you accidentally brick your phone (basically impossible to truly brick a qualcomm if you have the right tools). Archive.org has a copy, don't remember where to find the driver pack but you'll need that too (and a windows build).
Read through some notes on marshmellow and sounds like you have to remount system from recovery. I'm camping for the next month but will try talking to the TWRP team about porting a bootloader to the phone when I get back.
Let me know if you make any headway!
try this adb command and see if you get a qualcomm serial port after reboot
Code:
adb reboot edl
if that doesnt work try
Code:
adb reboot bootloader
then run the attached
How did you get into diag mode? Just do the temp root method and setprop sys.usb.config diag,adb?
https://freeandroidroot.com/root-zte-grand-x-4/
This page claims to have a root method but does it actually work? I've tried twice with no success.
How's everyone here? I also am awaiting root for this device. It really needs some shine on it's mid levelness. So here is my friend's zte warp 7 work for root. He also got some killer roms for the Huawei ascend XT. He does great work. I'm sure if he had a grand x 4 he could move this along. Just a suggestion. This man can this done. Just a suggestion for all of us. https://forum.xda-developers.com/showpost.php?p=72560392&postcount=246
---------- Post added at 11:31 PM ---------- Previous post was at 11:10 PM ----------
https://forum.xda-developers.com/member.php?u=7934375
Anyone root this phone yet?
Sent from my Z956 using XDA-Developers Legacy app