How do you do this stuff on Linux??? - T-Mobile LG G4

I'm trying to run these rooting programs like one click root, and now low effort root but I'm using Ubuntu. Is the only way to run these by using wine?
There has to be a better way.
Thanks

http://forum.xda-developers.com/showpost.php?p=60584661&postcount=459

Anything less complicated? Is using a wine application a possibility?

Wine might be possible, but it would probably depend on how it was coded.
From the same thread posted above, but a few posts up; this python script should allow you to use Send_Command in Linux. Open the file in VIM or your text editor of choice and follow the instructions.

It might actually work thought wine. I ran the debloating tool though it just fine (surprised me).

When I get some time I will look into porting over, if someone doesn't beat me to it.

Related

**UPDATE**SuperG1-Computer 9/8/09 4:03am

Here is basic program for your windows computer that just does basic stuff.
It can reboot your phone to wherever you want like recovery, bootloader.
It will wipe your ext2/3 from recovery if you choose and it will repair your ext2/3.
This is still beta, so far everything that is on the app works. But when I say beta I mean I still to implement alot more features so just use it and then tell me what you guys want. I am working on implementing switchrom into it.
This is just about 3 hours of work so you will see alot more in the future.
Screenshots Below!
*(For those of you wondering it is writen in a mix of C++,vb.net,python,and MS-DOS)*
Twitter: http://twitter.com/kickfliprock13
** Oh I forgot to mention you need to have adb set up for this to work if you don't have it set up than it wont work. So if you want to set up just go here: http://punk-in.com/driver_vista.html
Continued
Changelog:
9/8/09: Added a link to tell you how to install usb drivers for your phone
Added links to our twitter's and plurk's
Fixed a few small bugs
Continued Again
This is for problems and things I am changing!
Problems:
Can't get it to put arguments into adb commands, for example adb shell sh /system/sd/switchrom -s (then the name they want to name it)
I suck with ShellExecute commands so I need to get better at those
Need to learn how to add .exe's and other files into a C++ file and then run it.
Changing:
I will probably be changing the layout in the next update
I will be learning ShellExecute commands hopefully. So then it can set up adb for you and do a switchrom.sh for you
looks good dling now btw how many programming languages do you know lol
Languages
I know a couple. This program is written in C++. I have only done C++ for about a week so I am still kind of a noob. But other than that I know: html, MS-DOS,Python, I am learning java, I know some C and C#.
I am taking some visual stuff right now, like blender and game development.
After that I want to learn CSS, and learn the reset of java and C++
do you think you can make it that the program can flash the new spl and radio so the phone won't brick. Anyway awesome program
It looks like it's just issuing the non-response ADB commands. Do you have anything there to capture the commandline output from ADB? I'm trying to get the push and pull confirmations for mine. It seems the stream is immedately written as blank and then changed to the confirmation but the change is not rewritten to the stream.
Also ADB does not have to be in a specific directory in order to work. Just change the working direcory of your process to the folder where you have them stored. I bundled the files with mine so I didn't have to worry about if someone didn't have them in the right place.
M..N said:
do you think you can make it that the program can flash the new spl and radio so the phone won't brick. Anyway awesome program
Click to expand...
Click to collapse
Yes, we are working on making that happen very soon. It is difficult but yeah, we already figured out a way to apply new radio,spl and get to hero in about a minute now we just need to implement that into the app but I just can't figure out exactly how to include multiple files in my C++ project but once I figure that out I will tell you.
Excellent thanks very much
Hi so how is this program coming along
Very well I almost have rooting figured out
Cool would this work on uk phones and when is the estimated release time

AdbTool: The Automated Life

Ok so this started out as a small project to make my day to day phone functions easier and quicker but I thought I might share it incase anyone thought my AdbTool was helpful or just nice to have.
Functions so far:
1. Check for device
2. Push or Pull a File
3. Install .apk
4. Reboot
5. Root your Droid X
6. Change bootanimation
7. Push framework (specifically for framework)
8. issue whatever adb command you need to with out the extra typing
9. Set project
10. Error log
11. Clean up folder
There are more functions to come in the future so let me know if you like this script and what you wanna see added. There is no install just unzip and open the .bat file.
This sounds great! Though I'm on Linux machine, so I don't think ill be able to use it :/
Sent from my DROIDX using XDA App
No sorry, I should have specified. It is a Windows script... Just wait though, because Sunday I will be getting a desktop that is already running linux. If you really want I will take the time to make a script to run for linux?
Sent from my DROIDX using XDA App
rooting the dx doesnt work for me :/
Huh... what is happening when you enter that option? Sorry for the long time for me to post I missed the email alert.
Sent from my DROIDX using XDA App
I'm assuming this doesnt allow root for 2.3.3 ota correct?
since all I see is rageagainstthecage in the files
This looks like a really useful program! I might do some work this weekend on it and see if I can get it working for the DROID 2 and port it over to UNIX machines.
If I set it up for unix I will add an SBF option too.
Woa just realized this is a really old thread
ljbaumer said:
This looks like a really useful program! I might do some work this weekend on it and see if I can get it working for the DROID 2 and port it over to UNIX machines.
If I set it up for unix I will add an SBF option too.
Woa just realized this is a really old thread
Click to expand...
Click to collapse
Yeah, this thread is quite old (almost a year) and I am sure the program/script needs to be updated to work.
It is a good idea though (if it can be updated)
D.
I'd like to make a request for a Mount and UnMount command.
fyi....you spelled Folders wrong in the main menu "Floders"
.
I can make the program for yall. Yall just need something for shell or a gui for windows?
whatever's easier for you, either would be appreciated it
i have adb properly installed by doing adb devices in cmd it shows my dx
but when i use your tool it says it cannot find the path specific

[APP] SuperWipe for Mac [ALPHA]

Ok so here's this application that I made in Automator for myself and I figured that if anyone wants it, it's here. This is a Mac OS X only app. What does this app do? It wipes the data and dalvik cache on the phone twice. It is quite quick and easy. What will you need to do to your Mac before running this application? You simply need to add adb to the .bash_profile path settings. (This means that from anywhere in terminal, you can type adb and run adb.) Then just put your phone into recovery mode and run this app. This is an alpha build as I have not tried it on my own phone yet. However it should work as I've coded it and it has NO potential to brick the phone
Download Here!
EDIT: Currently the program is not working, I will make a new one and upload ASAP.
CPCookieMan said:
Ok so here's this application that I made in Automator for myself and I figured that if anyone wants it, it's here. This is a Mac OS X only app. What does this app do? It wipes the data and dalvik cache on the phone twice. It is quite quick and easy. What will you need to do to your Mac before running this application? You simply need to add adb to the .bash_profile path settings. (This means that from anywhere in terminal, you can type adb and run adb.) Then just put your phone into recovery mode and run this app. This is an alpha build as I have not tried it on my own phone yet. However it should work as I've coded it and it has NO potential to brick the phone
Download Here!
EDIT: Currently the program is not working, I will make a new one and upload ASAP.
Click to expand...
Click to collapse
Nice job CP... with a little editing, could I get this to work on Linux?
workshed said:
Nice job CP... with a little editing, could I get this to work on Linux?
Click to expand...
Click to collapse
Hmmm, thats a good question. (I'm just hopping in with what I know, so OP feel free to correct me if I'm wrong, which I probably am.)
From what I know, Automator is basically a workflow creation/utilization program. Do most Linux distros come packaged with anything like that, or does one exist?
This might be an alternative:
"GNU Xnee is a suite of programs that can record, replay and distribute user actions under the X11 environment. Think of it as a robot that can imitate the job you just did."
http://askubuntu.com/questions/343/alternative-for-mac-os-x-automator

.9.png's editing on Linux?

Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
CleveRuse said:
Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
Click to expand...
Click to collapse
I use draw9patch without any problems. Have been for years. Make sure that the sdk tools is in your path.
Im on ubuntu 10.10 using windows xp ob virtualbox. I tried and tried to get the gothemesfactory to work, but to no avail, so i broke down and set up a vbox to make ot work.
CleveRuse said:
Yep. I'm on linux. Windows was just too slow. But now I'm trying to start theming again but I just can't figure a way to edit ant .9.png image files. On Windows I would use Xultimates D9PC but i don't believe that option is available on Linux. I would just use the draw9patch compiler provided in my SDK but i get an error stating that the "draw9patch.jar file cannot be found" ....tho I certainly see it is in there. I have of coarse Googled the problem, nut while it does seem to be a common issue, I have yet to read of it being resolved. I figure if anyone knows the answer, its the brilliant folks at XDA, so...LOL .....here I am!
(please say its possible, please say its possible, please say its possible......)
Click to expand...
Click to collapse
I am not familiar with the D9PC program, but have you tried to run it with WINE?
Ok, Thnx guys! (i love XDA)
Let me respond to u all at once. Ok, so sorry I wasn't as informative as possible.
First, I'm "'cd'-ing" to the draw9patch's dir, but I've also tried just moving the files over to my platform-tools folder.... I still get the same error: "draw9patch.jar cannot be found". Finally, even tho 'cd'ing to 'tools' folder should yeild the same result, I added it (tools) to my path and I still get the error message. Like I said, Google seems to agree that the issue is quite common .....who knows?
As for a virtual box? I've heard of it.... Just not sure Wut it is. Is that like booting an OS ROM 'flash'?
And as for "Wine", I just googled it and I'm thoroughly excited! That sounds perfect! I'd also heard of that but also wasn't sure what it was ...wait, is that a virtual box? O see I need to create a "mock" C drive to install to. Wut version of Wine should I use? On-line, its suggested to use an older version but the advice seems a little dated. I'm running 11.04 "Natty".
Hey Thnx guys! I really appreciate all the help.

Ubuntu on a few weeks. Need tips.

So, I am planning to install Ubuntu to run it alongside Win 7. The PC is broken now, but will be fixed in about 2 weeks. I have some questions about it, will have a lot of other when I install it, and will need tips and tricks for it.
So, I have a 1TB HD that, have 2 partitions: a 800 Gb for almot everything, and a 200 Gb partition that have most of my family personal files (music, videos, documents, photos and some other random files).
So, first question is: I want to partition my 1 TB HD so I have a good space for Windows (and programs), a good space for Ubuntu and the rest for files. How I should partition it? I can make a backup of everything, except Windows itself, but if I can keep everything on it's place, the better it is.
Second, how dual boot works exactly? After the PC boots, it will ask which OS I want or it will boot with a default OS and I have to do something to boot on the other one?
Third, as I Android phone owner, I need to set up everything for do Android things (ADB and related), PC Companion and Sony Update Service (Sony Mobile things). What I should do?
Forth, as Windows is the most used OS, almost everything is optimized to it. For programs, how it install things? Just like Windows (a .exe file for Ubuntu) or there is something like a store, where I just choose what to download, and then it do the job by itself. Or a mix from both? (just like Android, Market and .apk files).
Fifth, I saw there a lot of themes for it. How they work for a user? There is someway to quickly switch between them or something like that?
Sixth, coming from a 15 years experience with Windows, and 1 year from Android, I will get easily lot on it?
I think it's everything by now. As I said, when I install it, I will have a lot more of thing I don't know, so I come here again.
Thanks in advance, Felipe
I'm in a similar situation. ~15 years on Windows, power user / basically a MCSE without the certification. I've dabbled w/ linux over the years but never made the transition. I decided I wanted to dual boot vista and ubuntu. So far, it's going pretty smoothly. At first, it was difficult to configure things the way I like, but here's what I've done:
Although I liked Unity fine, I run Cinnamon instead of Unity. It's a bit more windows-like without being KDE (which I didn't care for). I installed a few tools, one is called Tweak, and the other is called Compiz Config Manager. These let you modify things a bit easier.
---------- Post added at 02:15 AM ---------- Previous post was at 02:06 AM ----------
I suppose I should have tried to answer a few of your specific questions, too.
Felimenta97 said:
How I should partition it?
Click to expand...
Click to collapse
I'm sure some expert will chime in too, but for me, just to explore Ubuntu, I installed it from inside of Windows. (So windows is "host", whatever that means). My Ubuntu boot can see all my windows files. I think I allocated about 20-30 gigs of HDD space for Ubuntu.
Felimenta97 said:
Second, how dual boot works exactly?
Click to expand...
Click to collapse
After the BIOS screen, you get a screen that lets you select which OS to boot to, Windows or Ubuntu. You can probably set the default for after timeout.
Felimenta97 said:
What I should do?
Click to expand...
Click to collapse
I don't really do any android dev so I didn't install the SDK yet. The other stuff, presuming those programs have a linux counterpart, you should be okay. Just google how to install in ubuntu from source.
Felimenta97 said:
Forth, as Windows is the most used OS, almost everything is optimized to it. For programs, how it install things? Just like Windows (a .exe file for Ubuntu) or there is something like a store, where I just choose what to download, and then it do the job by itself. Or a mix from both? (just like Android, Market and .apk files).
Click to expand...
Click to collapse
There is a ubuntu software center now that is similar to the Android Market, makes it pretty easy. You can also use the command apt-get install to install things from the command line. (generally you can google for it, like google for "apt-get install google music manager" and someone will have posted the answer in a forum. Be prepared to do a lot of this kind of discovery to get yourself up and running.
Felimenta97 said:
Fifth, I saw there a lot of themes for it. How they work for a user? There is someway to quickly switch between them or something like that?
Click to expand...
Click to collapse
Your desktop manager (I use Cinnamon) will probably have different themes available. I haven't messed with that too much, but those two programs I mentioned previously will help you customize the visual experience.
Felimenta97 said:
Sixth, coming from a 15 years experience with Windows, and 1 year from Android, I will get easily lot on it?
Click to expand...
Click to collapse
If you're willing to put the effort in at the beginning, it's not that hard. Google is your friend.
---------- Post added at 02:22 AM ---------- Previous post was at 02:15 AM ----------
Oh, I also found the #ubuntu-beginners IRC room on freenode to be helpful, but sometimes you have to ask your question and wait around a while before anyone is there to answer.
Just use wubi (windows ubuntu installer)
it partions and sets up dual boot perfectly. But one suggestion, I think you should wait for the Ubuntu 12.04 release to be finished. It is currently in a final beta but it will release later this month
Link to wubi : http://www.ubuntu.com/download/ubuntu/windows-installer
Sent from my Kindle Fire using Tapatalk
shravbits said:
Just use wubi (windows ubuntu installer)
Click to expand...
Click to collapse
Yes, that was the name of the thing I used,wubi. Very straightforward.
As for waiting for the new Ubuntu... too late for me, but might be a good idea if the release date is in the near future.
Oh, and another thing: How updates works?
Felimenta97 said:
Oh, and another thing: How updates works?
Click to expand...
Click to collapse
There is an update manager that seems to run in the background, it pops up for me from time to time when some software needs to be updated.
You can also do apt-get update. Google for this: "The Debian GNU/Linux FAQ
Chapter 9 - Keeping your Debian system up-to-date" That will take you to a good info page about it.
kindlezeb said:
There is an update manager that seems to run in the background, it pops up for me from time to time when some software needs to be updated.
You can also do apt-get update. Google for this: "The Debian GNU/Linux FAQ
Chapter 9 - Keeping your Debian system up-to-date" That will take you to a good info page about it.
Click to expand...
Click to collapse
No. I mean, on a big update (11.10 to 12.04), it's like a Windows Update Service, that may require a reboot, but will keep the system there?
Forth, as Windows is the most used OS, almost everything is optimized to it. For programs, how it install things? Just like Windows (a .exe file for Ubuntu) or there is something like a store, where I just choose what to download, and then it do the job by itself. Or a mix from both? (just like Android, Market and .apk files).
Click to expand...
Click to collapse
You have several ways of doing this.
1. You can go to the Software Center. That's like the Market/Play Store on your Android device. Search or find what you want and click install. You will not find everything since Ubuntu/Linux depends on sources. The Software Center does have the Ubuntu source and that's about it. You can add more if you want to.
2. You can use the Terminal.
"Sudo apt-get install (enter package name here)", so if you want to install Opera (which will already be in the Ubuntu app source i believe) then type "sudo apt-get install opera". That's it.
If you want to remove it (or another app) then type "sudo apt-get purge opera", and if you want to remove all of the app content then you type "sudo apt-get autoremove opera" (after purge). You can also do this with one command, and that would look something like this: "sudo apt-get purge opera -y && sudo apt-get autoremove opera -y".
3. You can use Synaptics (not installed by default anymore). With Synaptics you'll get a list and a more advanced approch to app installations. You can sort by date, size, versions, packages that's missing, broken packages and many more.
I will personally recommend you using the Software Center for app installation, but the terminal is really great to do things fast. But it takes some learning so just start by remembering some easy commands like how to install and remove apps.
I would answer your questions, but I have to get up early in the morning. For now, see this. http://www.psychocats.net/ubuntu/ I will try to help you tomorrow.

Categories

Resources