[Q] Busybox ls - Desire Q&A, Help & Troubleshooting

Usinng the ADB Shell I want to list all files sorted by size in /system/app to find canditates for removal.
So I tried:
ls -s -S
...but that just gives me "-S: No such file or directory"
If I do just:
ls -s
...I get what I expect, a list of files with a file size but not sorted.
Any ideas what I'm doing wrong. I'm sure this used to work!

Should I take the lack of replies to mean that:
ls -s -S
...works as expected for everyone else over ADB Shell?
Thanks

Related

[THEME] NEW Hero skinning and theme AND Hero Cleanup

There was an older thread started by johnnylicious and I am going to be starting a new one that has the new files to skin/theme the lockscreen, phone, htccontacts, and Rosie. for the lockscreen the credits go to goldenarmz.
He created the batch file, I just edited the apk and the png files in there to make it work on the new roms.
BEFORE GOING ANY FARTHER, YOU NEED ADB OR YOU NEED TO KNOW HOW TO DROP INTO RECOVERY CONSOLE OR RUN COMMANDS IN TERMINAL. If you do not have it, stop, go to the stickies, get it going and then come back here. do not junk this up with questions that you can search for.
"what is adb" - part of the SDK. it is a huge help, check out the stickies to get it.
"how do i get adb" - go to the stickies
"can i run this without root" - no
"can i run this on cyanogen" - no, this is for hero roms
"will you make this for non-rooted phones" - no, not possible.
Before doing any modifications to anything on ANY rom do a switchrom save or a nandroid backup.
-INSTALL INSTRUCTIONS-
Transparent Rosie.apk with wallpapers
adb remount
adb shell rm -r /system/sd/app_s/Rosie.apk
adb push directory\Rosie.apk /system/sd/app_s/
Click to expand...
Click to collapse
Ophone Dialer.apk
adb remount
adb push directory\Phone.apk /system/sd/app_s/
Click to expand...
Click to collapse
HtcContacts.apk
adb remount
adb push directory\HtcContacts.apk /system/sd/app_s/
Click to expand...
Click to collapse
ANOTHER OPTION FOR OPHONE DIALER AND HTCCONTACTS
Launcher Themed to look like Hero
adb remount
adb push directory\Launcher.apk /system/sd/app_s/
Click to expand...
Click to collapse
you can either adb shell reboot after each file is pushed or you can wait after all three are pushed to shell reboot
adb shell reboot
Click to expand...
Click to collapse
transparent lockscreen
for the lockscreen- unzip and run the .bat file, follow the instructions.
-FOR THOSE NOT USING ADB FOLLOW THESE INSTRUCTIONS-
COURTESY OF NOLIMIT78​CHOOSE WHICH OPTION YOU ARE DOING, EITHER TERMINAL OR RECOVERY CONSOLE, AND THEN FOLLOW THE INSTRUCTIONS "FOR BOTH"​
This is to move the Rosie.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
This is for both
Code:
rm -r /system/sd/app_s/Rosie.apk #cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
This is to move the Phone.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
This is for both
Code:
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
This is to move the HtcContact.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
This is for both.
Code:
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
This is for Hero CleanUp
This is for terminal
Code:
su
This is for console
Code:
mount /system/sd
This is for both
Code:
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/HTCSetupWizard.apk <-dont remove this one until you set up your phone!
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/Launcher.apk <- only delete this if you dont use it! This is what the secondary program looks like on Hero, basically cupcake looks.
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
DISCLAIMER- I take no responsibility for what happens to your phone, as the screenshots show, it works for me but that does not mean it will work for you. I will be glad to help if you run into problems.
These files have been tested are on working on the newest jacxhero builds from 1.8 on up so far. they should work on most of the other roms as well since they are all using jacxski newest kernel. enjoy.
credits to go goldenarmz for the lockscreen .bat file. if you seek credits just ask, i will be glad to give credit where necessary
-Clean up Hero-
Before doing any modifications to anything on ANY rom do a switchrom save or a nandroid backup.
Since I started running hero roms, i have come to realize that most of the stuff is junk and is not needed. Thus, I have removed many widgets, and many extra .apks that i do not use such as quickoffice, pdfviewer, java, flash, photo album widget, weather widget, music widget, contacts widget, messages widget, mail widgets. I am going to post the commands you can run in ADB to remove these items and speed up hero a little bit. rather than just do a .bat file, i will post them here so the n00bs can just copy and paste into ADB.
TO COPY AND PASTE INTO ADB, HIGHLIGHT THE LINE OF THE ITEM YOU WANT TO REMOVE, PRESS CTRL+C, GO TO THE CMD WINDOW RUNNING ADB AND CLICK IN THE WINDOW AND NOW PRESS ALT+SPACE ADN NOW "E" "P" (WITHOUT THE QUOTES) AND THE LINE SHOULD PASTE OVER. NOW PRESS ENTER AND IT SHOULD RUN.
COMMANDS TO REMOVE FILES
THESE COMMANDS ARE CASE SENSITIVE
adb remount
adb shell rm -r /system/sd/app_s/BizCardReader.apk
adb shell rm -r /system/sd/app_s/com.htc.MusicWidget.apk
adb shell rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
adb shell rm -r /system/sd/app_s/FlashPlayer.apk
adb shell rm -r /system/sd/app_s/HtcClockWidget.apk
adb shell rm -r /system/sd/app_s/htccontactwidgets.apk
adb shell rm -r /system/sd/app_s/htcmailwidgets.apk
adb shell rm -r /system/sd/app_s/htcmsgwidgets.apk
adb shell rm -r /system/sd/app_s/HtcPhotoWidget.apk
adb shell rm -r /system/sd/app_s/HTCSetupWizard.apk <-dont remove this one until you set up your phone!
adb shell rm -r /system/sd/app_s/Jbed.apk
adb shell rm -r /system/sd/app_s/Launcher.apk <- only delete this if you dont use it! This is what the secondary program looks like on Hero, basically cupcake looks.
adb shell rm -r /system/sd/app_s/PDFViewer.apk
adb shell rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
adb shell rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
When removing widgets and some applications, the screen may flash and do the loading screen, this is normal.
Hope this helps you guys running hero roms get things going a little speedier, once again any questions, just let me know, I am working on removing other things here and there to pick up speed, if I find things that can be removed I will post them here.
here is a video of my g1 running my phone as is with all these edits
Console/terminal?
Is it possible to run commands from recovery/terminal? if so, could you please post them in this thread as well? Looks very nice, and i would love to give this a try!
Im gonna try using terminal when i get a minute. Im sure it should work.
Thanks palosjr
akycia said:
Is it possible to run commands from recovery/terminal? if so, could you please post them in this thread as well? Looks very nice, and i would love to give this a try!
Click to expand...
Click to collapse
I'm at work right now, I will post terminal commands when I get home.
Docavelli said:
Im gonna try using terminal when i get a minute. Im sure it should work.
Thanks palosjr
Click to expand...
Click to collapse
Sounds good. If you get to it before I do feel free to post the command here.i will then add them to the OP.
palosjr said:
Sounds good. If you get to it before I do feel free to post the command here.i will then add them to the OP.
Click to expand...
Click to collapse
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
nolimit78 said:
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
thanks for butting in. im home now. about to to add rosie and lock screen. i love the transparent look.
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
nolimit78 said:
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
Thanks for loading those commands on here! Ill add them to the OP and give you the credit! Also the lockscreen did come from goldenarmZ, credit has been given both at the beginning and the end of the OP. I will edit it and make more obvious.
What else would you guys like to see skinned/themed? I am going to work with market and peep. Anything else in particular?
palosjr said:
Thanks for loading those commands on here! Ill add them to the OP and give you the credit! Also the lockscreen did come from goldenarmZ, credit has been given both at the beginning and the end of the OP. I will edit it and make more obvious.
What else would you guys like to see skinned/themed? I am going to work with market and peep. Anything else in particular?
Click to expand...
Click to collapse
What a difficult question! Because cupcake wants to be hero.. but since we're on hero.. hmmmmmm
..for the lockscreen the credits go to goldenarmz.
Click to expand...
Click to collapse
well sir, thats just me not reading! lol
harpreet1988 said:
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
Click to expand...
Click to collapse
Did you get this to work on jacxheroski 2.1??
bigchi2000 said:
Did you get this to work on jacxheroski 2.1??
Click to expand...
Click to collapse
Gotten what to work? Phone.apk?
I've used 2.1 for a day, but then flashed back to 1.5.1. 1.5.1 is faster, at least in my experience it has been. But pushing Phone.apk to 1.5.1 ROM doesn't work.
Though pushing com.htc.resources.apk from Drizzy's 1.4r1 to 1.5.1 ROM got rid of the ARC in the lockscreen.
bigchi2000 said:
Did you get this to work on jacxheroski 2.1??
Click to expand...
Click to collapse
As far as I know it should work. The thing that was keeping these mods from working before was the kernel changes. I am going to keep up with these and when the kernels change i will edit the files accordingly. If you want to be safe, just do this
adb remount
adb pull /system/framework/com.htc.resources.apk
Click to expand...
Click to collapse
This will pull your stock lockscreen, now run the .bat file and let your phone reboot. If it reboots and you cant get past the htc screen do this
adb remount
Adb push (the com.htc.resources.apk file you pulled\com.htc.resources /system/sd/app_s/
Click to expand...
Click to collapse
This will get you back to where you were before. Hope this helps, but like i said it should work just fine.
harpreet1988 said:
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
Click to expand...
Click to collapse
I will make a different phone.apk and htccontacts.apk when i get home that will work with those builds. Its drizzys 1.5.1 right? Sorry im at work still and am trying to keep up with you guys on the fly. For a quicker response hit me up on gtalk - [email protected]
palosjr said:
I will make a different phone.apk and htccontacts.apk when i get home that will work with those builds. Its drizzys 1.5.1 right? Sorry im at work still and am trying to keep up with you guys on the fly. For a quicker response hit me up on gtalk - [email protected]
Click to expand...
Click to collapse
nope it's the MoDaCo 1.5.1 but Drizzy's 1.4
harpreet1988 said:
Gotten what to work? Phone.apk?
I've used 2.1 for a day, but then flashed back to 1.5.1. 1.5.1 is faster, at least in my experience it has been. But pushing Phone.apk to 1.5.1 ROM doesn't work.
Though pushing com.htc.resources.apk from Drizzy's 1.4r1 to 1.5.1 ROM got rid of the ARC in the lockscreen.
Click to expand...
Click to collapse
try this file for phone.apk ... i took the Phone.apk directly from that build and edited it. If it works i will do the HtcContacts.apk as well. follow same instructions as in the OP
1.5.1 Phone.apk
before pushing, rename the file to Phone.apk
ok guys so after messing with peep.apk i got it to be white and transparent, but for some reason, as soon as the app actually starts and shows the tweets, it goes back to normal, i know it has something to do with .9.png and thats fine, i can mess with them, its just going to take more time. so in the meantime, what else would you guys like to see?
palosjr said:
ok guys so after messing with peep.apk i got it to be white and transparent, but for some reason, as soon as the app actually starts and shows the tweets, it goes back to normal, i know it has something to do with .9.png and thats fine, i can mess with them, its just going to take more time. so in the meantime, what else would you guys like to see?
Click to expand...
Click to collapse
Just pushed the edits thru on jacxheroskiv2.1, everything but the lockscreen worked perfectly, did everything exactly as mentioned, don't know where I could've went wrong... the arc is still there, and when i personalize my phone it gives me the option of the transparent theme, i chose it and and my lockscreen is now a solid black picture with an arc over it...
pushed everything else first,
pulled my lockscreen to C:\
extracted zip to my sdcard, ran bat file...
files were copied and then i get the above mentioned.
Wassup palos? Nice to see you getting your hero theming on. Awesome work
bigchi2000 said:
Just pushed the edits thru on jacxheroskiv2.1, everything but the lockscreen worked perfectly, did everything exactly as mentioned, don't know where I could've went wrong... the arc is still there, and when i personalize my phone it gives me the option of the transparent theme, i chose it and and my lockscreen is now a solid black picture with an arc over it...
pushed everything else first,
pulled my lockscreen to C:\
extracted zip to my sdcard, ran bat file...
files were copied and then i get the above mentioned.
Click to expand...
Click to collapse
dont zip the files to the sdcard, just zip them to the directory you downloaded them from, and then run the .bat, i think maybe when you put it on your sd it isnt finding the new files. also, if you push everything and then pull the lockscreen, there arent going to be any new images there because you pulled them off the phone.
Wassup palos? Nice to see you getting your hero theming on. Awesome work
Click to expand...
Click to collapse
whats going on bro, yea its nice to be able to know enough to give back now

[Q] bash as default shell for adb

Hi there,
Could anyone help me, please?
adb shell fires up /system/bin/sh witch don't understand [tab] and [up_arrow]
tried this solution:
(in recovery)
cd /system/bin
mv sh sh.bak
ln -s bash sh
it works great, but my favorite ghost commander file manager don't work properly:
Error is:
"FIX ME! implement ttyname()
bionic/libc/bionic/stubs.c:360"
P.S.
I'm using stock ROM from Teppic with optional mods.

[HOWTO] (Manually) Rooting the Kindle Fire 2 with a Mac

Firstly, Merry Christmas!
Note: This worked on version 10.2.4
I received a Kindle Fire 2 today and since then I've been trying to get it rooted, now that I have I though I'd share it here for other people who might be in the same situation.
This is really just a remixing of the tool made by Bin4ry (http://forum.xda-developers.com/show....php?t=1886460) but I couldn't get the script to run on my Mac...
Step 0 - Preparing
You must enable ADB and Unknown App sources from Settings.
Settings > More > Security > Enable ADB
Settings > More > Device > Allow Installation of Applications
Step 1 is to get that tool from here. and extract it somewhere you'll remember.
Step 2 (you can skip this if you already have the android SDK platform-tools in your PATH)
If you don't have the android SDK or adb installed just add the 'stuff' folder from the tool to your path.
In terminal run
Code:
export PATH=$PATH:/path/to/extracted/tool/stuff/
Step 3 - Push the required files
It's probably easiest if you change into the stuff folder first...
Code:
cd /Users/x/Downloads/Root_with_Restore_by_Bin4ry_v18.7z\ Folder/stuff
Then run the following...
Code:
adb push busybox /data/local/tmp/.
adb push su /data/local/tmp/.
adb push Superuser.apk /data/local/tmp/.
adb push ric /data/local/tmp/ric
Then you need to run an adb shell to set some permissions
Code:
adb shell
(you should get a prompt like [email protected]:/)
Run
Code:
chmod 755 /data/local/tmp/busybox
exit
Step 4 - Rooting
This requires another terminal window. Check that you can run adb from there as well (running adb should print the usage information)
In the first window run:
Code:
adb shell "while ! ln -s /data/local.prop /data/data/com.android.settings/a/file99; do :; done" > /dev/null
In the other run
Code:
adb restore fakebackup.ab
You should get a prompt on your Kindle, hit the restore my data button. As you do so the command in the first window should stop (or a few seconds later - if it doesn't stop it and re-run both commands again.)
You can now close the second window!
Run
Code:
adb reboot
, your Kindle should reboot though the screen will be blinking repeatedly (flashing between the lockscreen and the boot animation) don't worry about that as it will be fixed in a sec.
Step 5 - Cleaning Up
Run
Code:
adb shell
If all was successful you should see the prompt change to [email protected]:/
If it did, continue otherwise go back to step 4.
Run these
Code:
/data/local/tmp/busybox mount -o remount,rw /system
/data/local/tmp/busybox mv /data/local/tmp/su /system/xbin/su
/data/local/tmp/busybox mv /data/local/tmp/ric /system/bin/ric
chmod 755 /system/bin/ric
/data/local/tmp/busybox mv /data/local/tmp/su /system/xbin/su
/data/local/tmp/busybox mv /data/local/tmp/Superuser.apk /system/app/Superuser.apk
/data/local/tmp/busybox cp /data/local/tmp/busybox /system/xbin/busybox
chown 0.0 /system/xbin/su && chmod 06755 /system/xbin/su
chmod 655 /system/app/Superuser.apk
chmod 755 /system/xbin/busybox
rm /data/local.prop
reboot
Your Kindle will restart and SuperSU will be available under Apps, your now free to do as you please, though you could follow with Step 3 on this thread to get Google Apps etc working.
Update: a short guide to installing the Play store can be found here.
This worked almost perfect for me but I couldn't get it to run adb commands from the stuff folder so I dumped its contents (minus the adb stuff) into the platform-tools in the android SDK and from then on everything went great. Thanks so much.
didthis work for 10.2.4 users out there
does this work for 10.2.4
worked!
Great work, congratulations and thanks! I'd like to make some comments tho regarding some typos and suggestions.
1.- I'd suggest to install the android SDK as, in fact, adb commands didn't work from the stuff folder. Add a line to .bash_profile with the export PATH command to make permanent access to the adb shell.
2.- Push files from the Root_with_Restore_by_Bin4ry_v18 folder, not the .7z file.
3.- The command is, e.g., adb push busybox /data/local/tmp/ instead of adb push busybox /data/local/tmp/.
4.- In Step 5 the command /data/local/tmp/busybox mv /data/local/tmp/su /system/xbin/su is twice so you'll get an error the second time you execute it.
Also congratulations for instructions on how to install PlayStore - here pay attention to the names playstore.apk and servicesframework.apk which in fact are plstore3.10.10.apk and GoogleServicesFramework.apk respectively -
Once again thanks for your work.
gorganzolia said:
does this work for 10.2.4
Click to expand...
Click to collapse
Yes this worked for 10.2.4
10.2.6
Does this work with 10.2.6?
it worked
Tried it this morning on 10.2.6 and it worked woohoo now how do you stop it from automatically updating
Found out how to stop those automatic updates here http://forum.xda-developers.com/showthread.php?t=2086450

[Q] Linux user with some questions about root methods.

Okay folks, I am a rooting newb where it comes to this wonderous device known as the Optimus G, and I need some questions answered.
First lemme fill you all in on some details where the computer I might be using to root my Optimus G is concerned. I run Zorin OS 6.1 64bit Core edition (yes, Linux) and that obviously that begs my first question, of any of the rooting methods mentioned in the development part of this forum, are there any that will work with Linux? And if so which ones or is there some kind of special magic I'll need to cast or some kind of coding wizardry level I'll have to obtain in order to be able to root my Optimus G?
Second, to fill you in on the phone, yes I have updated to ZV9 so if that borks me if you could please let me know?
Third, and Fourth actually are my concerns over being able to fix whatever possible brick type damage might be done. 3)How stable are the root/unlock methods, meaning there would be no way to reverse them? Of course I mean outside of accepting an OTA update which I already know better than to do on a custom ROM (had a Samsung Epic 4g before this so yeah I know how that goes.)
and 4)Is there an LGNPST (sp?) version for Linux or will I have to figure out a wa to maybe run it on WINE or something along those lines?
I'd ask about ROMS but I know everybody has an opinion of their own and I don't so much mind the stock one, though I might get the debloated version and see what else I can do with that.
Thanks in advance everybody for any help you all can give.
1) You can root through linux, although I don't know about which distros. I did it on ubuntu, using one of the links in the link in my sig.
2) AFAIK, you have to be on zv7/8 to root or unlock. You will have to use LGNPST to go back to one of those, and as far as I've ever heard that is a windows program only.
3) Both the root and unlock methods are reversible through whatever program you use to do it.
4) ???
You forgot profit!!!!
Sent from my LG-LS970 using xda premium
As long as you can attain a root shell and install ADB aka Android SDK, and as long as after that you can run ADB shell and then receive a prompt from your device you should be able to push the necessary files and then run the exploit and install the superuser binary there should be no issues. I actually took the windows root method, and used the commands in my Debian box and it worked very well. The only thing that I would be concerned with is weather not you can get a root shell in your specific version once that is attained, run ADB start-server as root then finish.
Basically I took this root method, and modded the script to fit linux.
(as noted from my post on the last page of that thread)
Preparation
ADB can be found either from the android sdk(tools only) or from the 'stuff' folder, in the archive below (i ran the one from the sdk)
Download this zip file, and extract the 'stuff' folder to a newly created 'root' folder on your Desktop
Open a terminal and cd to ~/Desktop/root
My adb location is coded into my $PATH variable so when I issue adb, it runs ~/android-sdk-linux/platform-tools/adb but you can either set up an alias (to the one included which would be alias adb=~/Desktop/root/stuff/adb if you follow the below extraction procedures or the one from the sdk which could be anywhere)
Before running the root I ran:
Code:
su -
adb start-server
exit
Then to test whether or not I had the correct version of adb, I ran:
Code:
adb shell
You should see your prompt change to that of the phone. if it displays any type of error message, please check your version of adb. to exit this prompt and continue with the root, simply type exit and press enter.
ROOT:
Paste the following into your terminal (which should now be in the ~/Desktop/root directory)
Code:
adb "wait-for-device"
adb push stuff/busybox /data/local/tmp/.
adb push stuff/su /data/local/tmp/.
adb push stuff/Superuser.apk /data/local/tmp/.
adb shell chmod 755 /data/local/tmp/busybox
adb restore stuff/fakebackup.ab
echo 'Select "Restore my data" on your phone!'
adb shell "while ! ln -s /data/local.prop /data/data/com.android.settings/a/file99; do :; done" > /dev/null
echo "Your phone will now reboot twice, DO NOT DISCONNECT USB!"
adb reboot
adb "wait-for-device"
adb shell "/data/local/tmp/busybox mount -o remount,rw /system && /data/local/tmp/busybox mv /data/local/tmp/su /system/xbin/su && /data/local/tmp/busybox mv /data/local/tmp/Superuser.apk /system/app/Superuser.apk && /data/local/tmp/busybox cp /data/local/tmp/busybox /system/xbin/busybox && chown 0.0 /system/xbin/su && chmod 06755 /system/xbin/su && chmod 655 /system/app/Superuser.apk && chmod 755 /system/xbin/busybox && rm /data/local.prop && reboot"
echo "Rooting Complete!"
echo "SuperSU should now be available in your applications drawer!"
Assimilated using the interface that interacts with the advanced internet.

Problem accessing internal sdcard in adb shell in LG D722

Hello,
I'm trying to install TWRP on my LG D722, but I get the following error in adb shell
Code:
[email protected]:/ $ su
[email protected]:/ # dd if=/sdcard/twrp-jagnm.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery <
dd: /sdcard/twrp-jagnm.img: No such file or directory
even tho the path is correct. Through some experimenting I've found that i get the same error just by doing
Code:
[email protected]:/ # cd /sdcard
tmp-mksh: cd: /sdcard: No such file or directory
On the other hand i can do
Code:
[email protected]:/ $ cd sdcard
[email protected]:/sdcard $
which doesn't help me because i need the su permissions.
I would appreciate any help you can provide.
Same here...
A hint would be appreciated indeed
abmaar said:
Same here...
A hint would be appreciated indeed
Click to expand...
Click to collapse
Hi,
I, unfortunately, don't remember how I solved this issue exactly, but I think the problem was something with a broken symlink ( tbh I'm not sure whether it was broken or I was just doing something wrong). I am not able to reproduce the error now so I cant be more specific but try typing
Code:
ls -la
and you might be able to change directory to the target of the symlink.

Categories

Resources