[Q] Edit root.bat with SuperSu.apk - G2 Q&A, Help & Troubleshooting

Dear G2 owners & developers
Is it possible to integrate SuperSu.apk in the root.bat from this thread http://forum.xda-developers.com/showthread.php?t=2448887 ??
I have often read that superuser doesn't work correctly or not at all. So my question is: will this batch file work if I replace all superuser.apk with SuperSu.apk in root.bat and add the SuperSu.apk in the folder of root.bat by myself? I don't want to test it because I'm scared to kill my new G2
maybe there is already a version out there? if yes then sorry
Thanks for your support:good:
regards

Related

[Q] Rooting official 2.3.5 wirelessly

Hello!
How can one root official 2.3.5 rom without connecting to usb and adb?
The goal is to install custom ICS on U8800 that has no usb port - completely broken and even not charging phone. No warranty and repair cost is close to actual phone cost. So repairing is not an option.
Wireless adb app requires root first - so it is not an option for me also.
Any help is appreciated - I need ISC because I need ipsec vpn which is npt available in gingerbread.
I am ready to test any operation you suggest - I don't fear to brick the phone, need no backups.
It's impossible. I have one USB broken u8800 and that's why I use cm7 (.32) on it.
Sent from my U8800 using Tapatalk 2
Qqqxxxzzz said:
It's impossible. I have one USB broken u8800 and that's why I use cm7 (.32) on it.
Sent from my U8800 using Tapatalk 2
Click to expand...
Click to collapse
There is nothing impossible I believe
Maybe we could find the trick - gingerbreak works on some roms - another fine exploit maybe.
I don't know - worth a try I think.
tranced1 I might have 1 possible solution for you. I've rooted my 2.3.5 some time ago and I've done a backup of boot.img.
I remember with froyo we could root it with boot.img "rooted". I bet this won't work on 2.3.5, but who knows right?
If you want to give it a try, I upload that boot.img for you.
EDIT: darn! Totally forgot you can't access bootloader directory without root & damaged usb port
Can't remember another way out... sorry
tranced1 said:
There is nothing impossible I believe
Maybe we could find the trick - gingerbreak works on some roms - another fine exploit maybe.
I don't know - worth a try I think.
Click to expand...
Click to collapse
Gingerbreak and z4root doesn't work. Only solution is build your own exploit.
Sent from my U8800 using Tapatalk 2
Is there any way to flash zip from stock recovery? I saw this root method for some samsung phones.
Does anybody know how to compile such .zip file?
tranced1 said:
Is there any way to flash zip from stock recovery? I saw this root method for some samsung phones.
Does anybody know how to compile such .zip file?
Click to expand...
Click to collapse
compiling zip is easy. Your problem is that we don't know how to sign it correctly.
Sent from my GT-P1000 using Tapatalk 2
I believe that you can use terminal emulator and zergrush exploit to root the phone.
The automatic root methods basicaly push the needed files on /data/local change permissions etc... All can be done with linux commands which are available from a terminal emulator. So I don't think that you need the usb cable to root the device. You can try investigate the runme.bat file from doomlord's root method and give the commands manually after you have put the files from files directory on sdcard.
dancer_69 said:
I believe that you can use terminal emulator and zergrush exploit to root the phone.
The automatic root methods basicaly push the needed files on /data/local change permissions etc... All can be done with linux commands which are available from a terminal emulator. So I don't think that you need the usb cable to root the device. You can try investigate the runme.bat file from doomlord's root method and give the commands manually after you have put the files from files directory on sdcard.
Click to expand...
Click to collapse
adb can access the phone as root user - from terminal file system is read-only, so even first step permission denied
Yes, you have right about that.
But, check this thread:
http://forum.xda-developers.com/showthread.php?t=1716068
the last post.
EDIT:
After reading the discription on first post of gingerbreak, I had another Idea.
Seems that gingerbreak uses sd card to temporary store the necessary for root files. So, maybe you can replace these files(and especially the exploit) whith those of doomlord's root app, before you press the root button, so to use the working zergrush exploit.
This is the B528 root bat script:
http://pastebin.ca/raw/2163499
@adb wait-for-device
@echo --- DEVICE FOUND
@echo --- reboot to bootloader
@adb reboot-bootloader
@echo --- flash the rooted bootimage
@fastboot boot boot.img
@echo --- reboot to nomal mode
@fastboot reboot
@echo --- wait for adb connect
@adb wait-for-device
@echo --- DEVICE FOUND
@adb remount -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
You're problem is in red... you have to flash the exploited boot image. The rest is just installing busybox, su and SuperUser.apk.
You have the stock recovery which allows you to flash .zip files, but they have to be signed correctly and I don't think that's possible.
VuDuCuRSe said:
This is the B528 root bat script:
http://pastebin.ca/raw/2163499
You're problem is in red... you have to flash the exploited boot image. The rest is just installing busybox, su and SuperUser.apk.
You have the stock recovery which allows you to flash .zip files, but they have to be signed correctly and I don't think that's possible.
Click to expand...
Click to collapse
To boot a different boot image, you have to use USB, atleast on fastboot.
dancer_69 said:
Yes, you have right about that.
But, check this thread:
http://forum.xda-developers.com/showthread.php?t=1716068
the last post.
EDIT:
After reading the discription on first post of gingerbreak, I had another Idea.
Seems that gingerbreak uses sd card to temporary store the necessary for root files. So, maybe you can replace these files(and especially the exploit) whith those of doomlord's root app, before you press the root button, so to use the working zergrush exploit.
Click to expand...
Click to collapse
Thanks for clues but seems there is no way - I cant execute exploit via ssh - permission denied I cant even chmod it.
Gingerbreak completely not working - no files created on sdcard.
Ι didn't find any other way on net. There are several discussions for this problem but not a solution. I think that the only way is to do it for an app. You can contact with the creator of gingerbreak or z4root to ask for it. Also I'll try to make an app myself, but my android developing knowledge is very basic, so don't count too much on this. If I have some kind of success I'll contact you via PM.
EDIT:
Try this mod, and if you are lucky...
dancer_69 said:
Ι didn't find any other way on net. There are several discussions for this problem but not a solution. I think that the only way is to do it for an app. You can contact with the creator of gingerbreak or z4root to ask for it. Also I'll try to make an app myself, but my android developing knowledge is very basic, so don't count too much on this. If I have some kind of success I'll contact you via PM.
EDIT:
Try this mod, and if you are lucky...
Click to expand...
Click to collapse
No I am obviously not the lucky one
My android development knowledge is zero, so if you can run zergRush from executable area it will be a very good start.
And I want to thank everybody for your support.
So, it doesn't work?
I just updated the file, so give it another try.
Also, check if you have logcat and usb debuging enabled(is needed for other methods, so maybe needed here too)
dancer_69 said:
So, it doesn't work?
I just updated the file, so give it another try.
Also, check if you have logcat and usb debuging enabled(is needed for other methods, so maybe needed here too)
Click to expand...
Click to collapse
Logcat: Cannot copy boomsh. : Permission Denied
I will revert to first beta now - and will test if it will work
I suppose this logat message is for z4root fail. Unfortunately I don't know what boomsh is. I just decompiled the apk and replaced the exploit, busybox, superuser, and su files with these from doomlord's root files directory.
So, easy solution didn't work. If I have something else I'll let you know.
EDIT:
I get some info about "cannot copy boomsh"
The exploit creates this file when run. This message appears when this file already exists and needed to be deleted from /data/local/tmp.
I checked z4root-mod on my device(which is already rooted and with ICS custom rom), and I get this message too.
The problem is that this file doesn't exist on my device, so I cannot delete it.
---------- Post added at 04:16 PM ---------- Previous post was at 03:17 PM ----------
I read on a forum that these apps(as z4root) run better after a fresh boot. So, install the latest apk(has newer files), reboot the device and run z4root again.
z4root is a froyo root exploit (I think) and seems "dead" for a long time.
Check Chainfire's Gingerbreak: http://forum.xda-developers.com/showthread.php?t=1044765

[Q]Busybox installation and uninstallation problems

Hi Everyone. I think I need some helps actually. I m sorry of my poor english.
I would like to know if i install the busybox, can i still hv system updates from google?
I hv previously installed busybox in system/bin, but then i saw the suggestion which tell me to install it in the system/xbin instead of bin.
Therefore i install it again in xbin, and i found that there re also busybox files in bin, so i delete them directly. can i actually do that??
After i did that, my phone seems to be normal without any problems.
Then, i try to uninstall the busybox but it didn't allow me to do so. After that i try to install another apps called Busybox installer and i press delete busybox in that apps. The app told me that it was successful, however when i go into the system/xbin, the busybix files are still there. So What should i do?
I apologize again for my poor English. I reli need helps.

[GUIDE] Super su for xperia device with lollipop very easy way

Mod edit: This is originally the work of Mr.W0lf
see here:
http://forum.xda-developers.com/showpost.php?p=60936999&postcount=29
and here
http://www.w0lfdroid.com/2015/05/How-to-Remove-Replace-KingUser-KingRoot-with-SuperSU.html?m=1
beginning of script:
#!/system/bin/sh
echo -----------------------------------
echo -------- Made By : Mr.W0lf --------
echo -- Thanks @Chainfire for SuperSU --
echo -----------------------------------
Click to expand...
Click to collapse
This is my first post on xda, but I'm shadow thunder on htcmania the Spanish site, hope you enjoy this but I'm not a developer, so let's get started. You need to root your phone with Kingroot very easy after that just follow my step to replace Chinese root with Super Su. Let's start, here is a small script to remove Chinese kingruser, released by Mr.W0lf thanks for your great work. . This script will do all the work for you without using PC, just by terminat al, first of all, thanks to chainfire for his SuperSU files. download link to terminal emulator https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en ok.Before starting :
POST UPDATE WITH PHOTOS OF MY WIFE XPERIA TABLET Z TODAY Y UPGRADE THE TABLET TO LOLLIPOP AND ROOT WORKS
Steps :Root the device with Kingroot, install terminal emulator unzip the zip change Kingroot to super su to internal storage of your device, the folder name is mrw
then Open Terminal emulator and type :
Su
Allow root permission
Type :
sh /sdcard/mrw/root.sh
It might display some error, at the end it will launch supersu or open supersu manually.
Update su binary normal, then REBOOT . JUST DOWNLOAD KINGROOT I PUT IT HERE IN ENGLISH
DONE YOU HAVE SUPER SU NOW WITHOUT BOOTLOOP THIS IS MY FIRST POST ON XDA SORRY IF IS NOT LIKE OTHER DEVELOPER BECAUSE I'M A ORDINARY GUY WHO LIKE TO MAKE THINGS EASIER AND HELP OTHERS IF YOU LIKE MY WORK ONLY HIT THE THANKS BUTTON
I put the zip with replace the kinguser for people who can't download from mefiafire
Nice work bro @edwuard.. Keep it up..
unable to update su binary? always failed.. is there sone workarounds?
Follow the steps bro, install Kingroot, root then install terminal and unzip the zip in phone internal memory the folder name is mrw and then type Su Allow root then type the sequence and then wait and supersu start and tell you to update binary and reboot it works great bro something u did wrong
edwuard said:
Follow the steps bro, install Kingroot, root then install terminal and unzip the zip in phone internal memory the folder name is mrw and then type Su Allow root then type the sequence and then wait and supersu start and tell you to update binary and reboot it works great bro something u did wrong
Click to expand...
Click to collapse
ok sr. i gott for the second time. thanks..but after reboot is says that su binary needs to be update again.
Tested on my xperia-z, my son xperia-z my wife xperia z1 and other 6 xperia-z of my friend work great
athanne09 said:
ok sr. i gott for the second time. thanks..but after reboot is says that su binary needs to be update again.
Click to expand...
Click to collapse
You need to type this sequence sh /sdcard/mrw/root.sh if you cannot type it won't work is sh than space than / stop telling don't work because it works great and the super su open after the script did his job on terminal and open itself and tell the binary needs to update I don't know what you do because the binary after update them the phone reboot bro keep reading and then do it is very easy even a child make it is very easy
Really nice, work great, thanks you so much ^^
for some reason this didn't work the 1st time around, i had kingroot already installed from before, and it wouldn't update..
so i uninstalled SuperSU (which already removed Kingroot) and installed the Kingroot version in this Post (OP) and tried again...and it worked perfectly...
so for every one to be safe use the KingRoot APk in the attachment on the 1st post .
very good work...thanks m8...
i have a question though,,,can i update this to SuperSU pro???
Edit
Yes it can be updated to Pro.
Works fine! Thanx!!!
Great work mate!!!
@milocj by devSXSTeam
Works a treat and so simple!! Wicked stuff Dev!!
it works like a charm bro
the first time i tried, it was not worked as it suppose to be. kinguser notified that the service was in error or something like that. and i tried to reboot. (prev. I got original kingroot straight from the dev, not from the op's), i got bootloop
but i got 2nd chance, (after getting bootloop, i reflashed with the stock rom, without deleting any cache or data), after my deviced booted, i downloaded everything from attachment. and did what the op said, exactly. and it workssss
Thanks
addition,
btw. i lost my root access, how do i gain the access? do i have to install the kingroot again and root the device? i am a bit kind of new in rooting. as prev, i never played rooting before. i was scared. was...
oppsssssss...
my bad, i forgot to delete something, so i thought the root didn't work previously. so i can say this method works 100%
now, I got root access.. thanks OP
Let the post clean bro you have Q A to make questions about the root please any questions in Q A thread
Doesnt work for me ,ive tried a lot of times ,i get this and SuperSu doesnt update
nick2crete said:
Doesnt work for me ,ive tried a lot of times ,i get this and SuperSu doesnt update
Click to expand...
Click to collapse
read the full article and stop spam here go to Q&A THREAD TO ASK work great for everyone something u did wrong
edwuard said:
read the full article and stop spam here go to Q&A THREAD TO ASK work great for everyone something u did wrong
Click to expand...
Click to collapse
First of all take it easy and be more kind ,it succeed but with small letters and no capitals
It's working perfectly on C6602 ... thanx man :good:
Glad to hear bro

[Guide] Xposed for Boost Stylo 5.1.1 and Xposed Q and A for all carriers

Attention if you try this and end up with a brick or your device transforms and tries to destroy you; it's not my fault you did this not me. So just read all of this thread not just the O.P to get out of a bind if you reply with "the thread is too long i wont read it please help" don't expect anything short of "there's a search bar use it"
Here is how i got it to work without a Custom recovery
follow my steps perfectly
Found these instructions in Italian on how to install without recovery (i edited and translated them to work correctly):
This Guide will show you how to install Xposed Framework on the LG G Stylo with Android
Lollipop 5.1.1 without recovery!
Required:
Root
Busybox installed on the device: https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
Script Manager: https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
Package needed Xposed Boost Stylo.zip: https://www.androidfilehost.com/?fid=24052804347813218
1- Download the package by pressing the link
2- Unzip
3- Put the contents of the folder in the root of internal or external storage of the device (no sub-folders).
4- Install Xposed (the apk is among the file you just put into the device) BUT do not open it
5- Open Script Manager and navigate to the installer file (script) and chose script, su then press save .
6- now select the same script and press run and choose the option according to what you want (Yes/No)
7- Wait for the script to finish, now go to Xposed Installer apk that you installed before and select soft reboot (it will turn off just power back on)
8- After restart and you may use Xposed properly
PS: procedure performed perfectly on Boost LG G Stylo which as you know does not have recovery mod, should work on other 5.1.1 phones
link to the video with his links: https://www.youtube.com/watch?v=tDInZYNrEr8
and link to original Xposed thread: http://forum.xda-developers.com/showthread.php?t=3034811
Awesome, i'll test this out on my boost stylo. I've been waiting for Xposed for a while. Will report back with results.
I'm stuck trying to execute the installer script, anytime i try to run it, it shows this:
_Cristian_ said:
I'm stuck trying to execute the installer script, anytime i try to run it, it shows this:
Click to expand...
Click to collapse
Are you running script manager with root privileges?
Dont worry i got it, all i have to do is edit the script since my shell location at /system/bin/sh, not /sbin/sh
_Cristian_ said:
Dont worry i got it, all i have to do is edit the script since my shell location at /system/bin/sh, not /sbin/sh
Click to expand...
Click to collapse
hmmm...worked for me on first try....
Wel now that i look through the steps i forgot to install xposed installer, and i also had to change a line in the script for the framework, after that the script went fine. But now trying to install xposed i get "application not installed", is there something i need to change?
_Cristian_ said:
Wel now that i look through the steps i forgot to install xposed installer, and i also had to change a line in the script for the framework, after that the script went fine. But now trying to install xposed i get "application not installed", is there something i need to change?
Click to expand...
Click to collapse
hmmm...try installing it as a system app...like copy and paste it into the system/app folder and fix the permissions and reboot...
Well i pushed the installer into system/app, fixed the permissions and rebooted, and ended up with a soft brick. I think its because i deleted some of the files that were pushed from the zip folder. I'm gonna try to bring it back to life.
_Cristian_ said:
Well i pushed the installer into system/app, fixed the permissions and rebooted, and ended up with a soft brick. I think its because i deleted some of the files that were pushed from the zip folder. I'm gonna try to bring it back to life.
Click to expand...
Click to collapse
Okay try redoing my root method since it's proven to unbrick a certain brick
I tried using that but it gets stuck, i can see my device with adb, maybe pushing something into the system will fix it? A script to push the right files in? If not i pulled my internal storage so i can try a factory reset.
_Cristian_ said:
I tried using that but it gets stuck, i can see my device with adb, maybe pushing something into the system will fix it? A script to push the right files in? If not i pulled my internal storage so i can try a factory reset.
Click to expand...
Click to collapse
Try that
6th_Hokage said:
Try that
Click to expand...
Click to collapse
Wait no don't try that
_Cristian_ said:
I tried using that but it gets stuck, i can see my device with adb, maybe pushing something into the system will fix it? A script to push the right files in? If not i pulled my internal storage so i can try a factory reset.
Click to expand...
Click to collapse
https://www.androidfilehost.com/?fid=24052804347788740 That's my pulled 100% stock system.img try to dd push it to your phone
6th_Hokage said:
https://www.androidfilehost.com/?fid=24052804347788740 That's my pulled 100% stock system.img try to dd push it to your phone
Click to expand...
Click to collapse
Use dd if=/data/media/0/system.img bs=8192 seek=42816 count=327680 of=/dev/block/mmcblk0 to flash it
I already tried a factory reset and it didnt work, even it fixed my last brick. Im gonna send it in to lg and see if they can fix it, do i have to hide root or something before sending it in?
_Cristian_ said:
I already tried a factory reset and it didnt work, even it fixed my last brick. Im gonna send it in to lg and see if they can fix it, do i have to hide root or something before sending it in?
Click to expand...
Click to collapse
LG will check for root...did you get the $7 insurance?
I finally got xposed on lollipop (i followed all the steps correctly this time). I had to change the name of the .zip file in the script though, after that the script ran fine. Do you know if gravitybox works on the stylo?
_Cristian_ said:
I finally got xposed on lollipop (i followed all the steps correctly this time). I had to change the name of the .zip file in the script though, after that the script ran fine. Do you know if gravitybox works on the stylo?
Click to expand...
Click to collapse
for the most part
does this work on 5.0.2?

[New] Xperia Z1 lollipop 5.1.1

I've upgraded to lollipop 5.1.1
But the proplem was to root it
ALL I HAVE FOUND WAS
downgrade and build prerooted zip zip.. etc
But now you don't have to do that
So let's start​By rooting your device you will void warranty
1. do backup for your phone
IAM NOT RESPONSIBLE FOR ANY LOSS OR DAMAGE
2.download the the files we need... Links down
3.go to Setting>security>unknown sources .... And tick it
4. Setup king root and start it
You will notified that there is code in app trying to bypassing android security
Install it any way
5. When finish go to download folder and extract the second attachment to /sdcard/
6.download terminal emulator from here
https://play.google.com/store/apps/details?id=jackpal.androidterm
7. When install open it then get root permission
Code:
su
Then
Code:
sh /sdcard/mrw/root.sh
And you will have root with supersu
If you want to keep kingroot
Skip from step 5
Hit thank if that help you
Download
Kingroot
https://drive.google.com/file/d/0B3yReeEdHxbWZkRqWWsxdDZxWGc/view?usp=docslist_api
Repace kingroot with supersu
https://drive.google.com/file/d/0B3yReeEdHxbWbl9nYlNTc2FyeVk/view?usp=docslist_api
Sorry about thread name
My keyboard is going crazy ?
Screenshot
https://drive.google.com/file/d/0B3yReeEdHxbWNk40MzJYYXVtUnc/view
Last time I tried it only works on 5.0.2 unless kingroot updated and now you can do 5.1.1 too
Confirmed
Tested and worked for Xperia z1 lollipop 5.1.1 fw. 368
Worked for me.
First link was deleted by google. I tried with the kingroot apk from their site, but it didn't work with that.
EDIT: strange, it did work over Mobile data but not over WiFi. I am now considering you my personal God.
abdo.war said:
I've upgraded to lollipop 5.1.1
But the proplem was to root it
ALL I HAVE FOUND WAS
downgrade and build prerooted zip zip.. etc
But now you don't have to do that
Download
Kingroot
https://drive.google.com/file/d/0B3yReeEdHxbWZkRqWWsxdDZxWGc/view?usp=docslist_api
Repace kingroot with supersu
https://drive.google.com/file/d/0B3yReeEdHxbWbl9nYlNTc2FyeVk/view?usp=docslist_api
Sorry about thread name
My keyboard is going crazy ��
Click to expand...
Click to collapse
already root with pre-root zip but i wanna try this method, can you mirror kingroot file? because i cant access that file , thanks in advanced.
When I try to put in sh /sdcard/mrw/root.sh it says that the directory doesn't exist. I know it does though. Should I rename my sd card to sdcard? or is there something I'm missing?
Fishcracker29 said:
When I try to put in sh /sdcard/mrw/root.sh it says that the directory doesn't exist. I know it does though. Should I rename my sd card to sdcard? or is there something I'm missing?
Click to expand...
Click to collapse
Are you using the internal memory, or the external one? If you are using the external, and extracted the zip file there, you need to enter the path on sdcard1. So it's: sh /sdcard1/mrw/root.sh
iedafarha said:
already root with pre-root zip but i wanna try this method, can you mirror kingroot file? because i cant access that file , thanks in advanced.
Click to expand...
Click to collapse
You can Download KingRoot from their official site at http://www.kingroot.net/
oh dang what ?! kingroot works now ? since when ? why didnt this come up earlier?
migidid said:
oh dang what ?! kingroot works now ? since when ? why didnt this come up earlier?
Click to expand...
Click to collapse
doesn't kingroot add all that Chinese spyware crap?
Squatrack Curler said:
doesn't kingroot add all that Chinese spyware crap?
Click to expand...
Click to collapse
yes but if you have any knowledge about rooting, its easy to get rid of and replace it with SuperSU
Doctor0710 said:
Are you using the internal memory, or the external one? If you are using the external, and extracted the zip file there, you need to enter the path on sdcard1. So it's: sh /sdcard1/mrw/root.sh
Ah ok. I read SD card as SD card. Didn't realize he meant internal. I ran it, and it kept coming up with errors that kingroot stopped working. Is that what it is supposed to do? Also now that i have SU on it ( I assume) what next? do I need a specific rom for these? IE I have a telus phone so should I look for a international rom or can I flash any? LOL I am fairly new at Root, and only flashed an HTC M8 but not really sure how to go about the z1. Also is it safe to uninstall kingroot? Sorry and thanks.
Click to expand...
Click to collapse
just tested an it works !! thank you Z1 .368
A thread already exists for this here. Please use it to keep things together and avoid duplicate threads.
Thread closed

Categories

Resources